virajpu / androjena

Automatically exported from code.google.com/p/androjena
0 stars 0 forks source link

[Urgent Help ]Cannot execute the androjena.test.android.apk #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow all the steps on the BuildAndrojena Tutorial.

2. Right click on the androjena.test.android Folder in Project Explorer and
run as  Android Project using Android 1.5 Platform of avd

3.  When the application starts, click on Start Test on the top of the screen.

What is the expected output? What do you see instead?
Expected Output is the normal execution the program.
I am  having the following error: 
It gave Error displaying " The Application Androjena Tests (
process.it.polimi.dei.dbgroup.pedigree.androjena.test ) has stopped
unexpectedly"

What version of the product are you using? On what operating system?

Using Eclipse Galileo , executed on Emulator, with virtual device of
Android 1.5 on Windows XP SP2

Please provide any additional information below.

I have enclosed the screen shots of two situations:
  a. When the application is started
  b. When the Application shows error.

I have also made a small project using the jar files which is also giving
error:
------------------   My Sample Program using your API -------------------

package nishant.androjena;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.hp.hpl.jena.rdf.model.*;

import com.hp.hpl.jena.vocabulary.*;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.Statement;
import com.hp.hpl.jena.rdf.model.StmtIterator;
import com.hp.hpl.jena.vocabulary.VCARD;

public class tryAndrojena extends Activity 
{

    String subjectString ="Ready for Jena";

    @Override   
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        TextView textView = new TextView(this);

        String personURI    = "http://somewhere/JohnSmith";
        String fullName     = "Nishant Kumar";

    Model model = ModelFactory.createDefaultModel(); // Error  Starts // Here
        Resource johnSmith = model.createResource(personURI);
        johnSmith.addProperty(VCARD.FN, fullName);

    StmtIterator total_statements = model.listStatements();

    Statement statement = total_statements.nextStatement();
    Resource subject = statement.getSubject();
    subjectString = subject.toString();

        textView.setText(subjectString);    
        setContentView(textView);

    }
}

Original issue reported on code.google.com by nishant....@gmail.com on 28 May 2010 at 12:14

GoogleCodeExporter commented 8 years ago
Hi Nishant,
please take a look at the following comment about the test application crash:

http://code.google.com/p/androjena/issues/detail?id=2#c2

With regard to your test application, we need some lower level details to find 
out 
the error. Please include at least a dump of logcat output from the application 
launch till the crash, and any other detail that seems significant or clarifies 
the 
problem. Maybe the following comment could be of some help: 

http://code.google.com/p/androjena/issues/detail?id=3#c3

Please let us know if that was the problem, so we can close this issue or 
investigate 
it further.
Thanks,
lorenzo

Original comment by loreca...@gmail.com on 3 Jun 2010 at 9:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by loreca...@gmail.com on 5 Jun 2010 at 12:37

GoogleCodeExporter commented 8 years ago
Hi lorecarra,

Thanks for your reply. However, I was able to make my own application and 
execute
your androjena library successfully.  So, dont investigate it further.
(But the androjena.test still reports the out of memory message. I will also 
try to
figure it when in need from your recent posts.)

Thanks,
Nishant Kumar

Original comment by nishant....@gmail.com on 5 Jun 2010 at 1:01

GoogleCodeExporter commented 8 years ago
I've updated the androjena.test.android.apk package. When you have some time, 
please 
try the new version: now it shouldn't crash on OOM errors, and probably a good 
portion 
of the tests will be executed (lighter memory footprint).
Thanks,
lorenzo

Original comment by loreca...@gmail.com on 5 Jun 2010 at 3:15