This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 41137
    
  45
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to read more than one text files stored in sdcard
 
Similar Threads
Interactive Stories on Android
How to get the complete path of file from android application
Unable to read file from Emulator's SD
Cannot find the problem in the code
Send variable value from one activity to another