Passing one String from Activity A to Activity B

Put your problem here if it does not fit any of the other categories.

Re: Passing one String from Activity A to Activity B

Postby Marbert » Sat Feb 18, 2012 2:44 pm

Ok, this is my solution (maybe not the best way, but it's working ;)):

In Choose.java, the String storage is declared with

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. String storage = "Default";
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


If I replace Default with my path to the file and the app is started and you directly go to Main and press the button this String is loaded.

If you open Settings first the text from the EditText is taken. :)

This is how storage is looking now:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. String storage = "/sdcard/readmein;
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


I just have to read into the ExternelStorage-thing to make it work on each device, but that shouldn't be that problem (I hope). ;)

Thanks
Marbert
Developer
Developer
 
Posts: 30
Joined: Sat Feb 04, 2012 7:31 pm

Top
Previous

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 9 guests