Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to give a file name duting run time  RSS feed

 
deepika deepi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi every body,

i have an file that is stored in the data base and the file name is declared in the code. i want the user to enter the file name and get the contents inside the file.



how to change this? i have tried some thing to change in this code. but it's telling the emulator is forced to close. can any one help here would be of great help indeed. i am in my final stage of my project and need to complete this today. so any one helps would be of great help for my project at this crucial moment.
 
Tim Moores
Saloon Keeper
Posts: 3754
78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can let users enter text by adding an EditText widget to your UI.

As to an app being force closed: every time that happens the stack trace is written to the logcat output; that tells you at which line of your code it happened, and should also include an error message that at least hints at the problem.
 
Onion rings are vegetable donuts. Taste this tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!