This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Android and the fly likes how to give a file name duting run time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to give a file name duting run time " Watch "how to give a file name duting run time " New topic

how to give a file name duting run time

deepika deepi
Ranch Hand

Joined: Jan 23, 2012
Posts: 199
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

Joined: Sep 21, 2011
Posts: 2408
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.
I agree. Here's the link:
subject: how to give a file name duting run time
Similar Threads
Post an XML filt to a Web Server
how to declare array of list for an file
App wont connect to my database?
how to transfer images to ftp server in android
Where File is saved in the phone?