Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to read more than one text files stored in sdcard

 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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



-------------------------------------------------
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic