This week's giveaway is in the OCPJP forum.
We're giving away four copies of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) and have Paul Anilprem on-line!
See this thread for details.
Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

how to give a file name duting run time

 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 7350
170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic