Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7947167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:21:18+00:00 2026-06-04T01:21:18+00:00

I m trying to access a rdf file from the google nexus…..(now this code

  • 0

I m trying to access a rdf file from the google nexus…..(now this code is able to access the rdf file from disc)….as google nexus doesnt have sdcard slot…..so I am having the problem to define the path from where the rdf file will be retrieved….

   public class andro extends Activity implements View.OnClickListener{
    /** Called when the activity is first created. */

Graph graph;
Load ld;
Mappings map;
QueryProcess exec;
ResultFormat f;
RDFFormat f3;

Button runbtn;
Button clearbtn;
Button test;
Button triple;
EditText et1;
TextView tv1;

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


   clearbtn = (Button) findViewById(R.id.clear) ;
   runbtn = (Button) findViewById(R.id.run);
   test = (Button) findViewById(R.id.test);
   triple = (Button) findViewById(R.id.rdf);

   tv1 = (TextView) findViewById(R.id.output); 
   et1 = (EditText) findViewById(R.id.input);


   clearbtn.setOnClickListener(new OnClickListener(){
       public void onClick(View v){
           et1.setText("");
           tv1.setText("");


       }
   });
      test.setOnClickListener(new OnClickListener(){
    //runbtn.setOnClickListener(new OnClickListener(){
      public void onClick(View v){

 /*     String op = et1.getText().toString();   
      tv1.setText(op);  
 */
   // graph = Graph.create();    
     graph = Graph.create(true);

      ld = Load.create(graph);
      ld.load("/user/roy/home/DownLoad/foaf.rdf");
     // ld.load("dataset.rdf");
     /* 
      try {
        ld.loadWE("dataset.rdf");
    } catch (LoadException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }
     */ 
     // String query = null;
    //  Mappings map = null;


    //   String query1 = "select * where {?x ?p ?y}";

     exec = QueryProcess.create(graph); 
     query1 = et1.getText().toString();
      try {
          map = exec.query(query1);
            } catch (EngineException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        // f = ResultFormat.create(map);
        // f3 = TripleFormat.create(map);
         String f2 = ld.toString();
         tv1.setText(ld);   
        //System.out.println(f2);           

         }  
      });

   }  

@Override
public void onClick(View v) {
    // TODO Auto-generated method stub

}   
 }

Thanks in advance….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:21:20+00:00Added an answer on June 4, 2026 at 1:21 am

    While the Nexus doesnt have a REMOVABLE sd card, it basically still has an internal one. Therefore, with the external storage, you can just treat it like you normally would if you could remove the SD card:

    String SD_CARD = Environment.getExternalStorageDirectory() + "/my/path";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to access and change a array from a different class file.
i am trying access an asp label within an asp repeater from my code
Trying to access file attributes from an input field after a file is selected.
I am trying to access Outlook 2007 from C#. I have installed the PIA
Im trying to access the org.testng.reporters.XMLReporter from my Java code. I am writing code
Trying to access a Servlet from a button on HTML page //Html Page FORM
I'm trying to access list data using SSRS 2008. I have created an XML
Im trying to access ValidationMessage through jquery. I have <%: Html.TextBox(vcr_LinkAddress,null, new { maxlength
I am trying to access Facebook from Python :D I want to fetch some
I'm trying to access 1.20163 from the following: 1 British Pound Sterling = 1.20163

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.