0

I'm currently programming an app where you should enter a text which is stored. The text should be able to be loaded in the app (maybe another activity) then.

It should be able to be used this way:

task.execute(new String[]{city,lang});

Is this makeable?

Thanks

Made by FA
  • 710
  • 2
  • 7
  • 27
  • how do you want to store your text?, http://developer.android.com/guide/topics/data/data-storage.html – manuelBetancurt Sep 01 '14 at 22:59
  • The text should be a code string, is that possible? As city and lang are strings but they are hardcoded strings currently – Made by FA Sep 01 '14 at 23:02
  • Assuming you don't want to store the data persistently and just want to use it directly, you can follow [the official tutorial](http://developer.android.com/training/basics/firstapp/starting-activity.html), especially "Build an Intent" and "Receive the Intent". – Andrew T. Sep 02 '14 at 01:12

1 Answers1

0

You can use an Edittext on your first Activity on which user can type something.You can get that "something" programmatically in the same activity as a string.Now if you want to avail that string to another activity then you can use an Intent from the first activity to the second activity which will avail that string in the second activity.

Sash_KP
  • 5,551
  • 2
  • 25
  • 34