This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Android and the fly likes Unable to read more than one text files stored in sdcard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Unable to read more than one text files stored in sdcard" Watch "Unable to read more than one text files stored in sdcard" New topic
Author

Unable to read more than one text files stored in sdcard

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634


--------------------------



-------------------------------------------------
my sdcard contains two text files. I want when the user selects one of them within the application then it should open the selected file.
In the above code I am trying to pass the variable path,postion from AndroindApplication.java to Readfile.java .But in Readfile it is unable to get the path.

The text files are stored in myfolder under sdcard.
The two varaibles are used by File Oject in readfile.java to read the file.

HELP

OCPJP 6.0 93%
OCPJWCD 5.0 98%
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41587
    
  54
What does "unable to get the path" mean? What does happen, exactly, and what do you think should happen instead? What are the values of variables involved?


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: Unable to read more than one text files stored in sdcard