How can I change the Activity in Android ? I don't want to create a new Activity, I just want to change it.
Asked
Active
Viewed 5,640 times
-5
-
what you want to change in activity? – Ankit Apr 03 '13 at 10:06
-
1You can switch between Activities via `Intents`. your question is little confusing. – Simon Dorociak Apr 03 '13 at 10:06
-
What have you do so far? – Shreyos Adikari Apr 03 '13 at 10:06
-
replace the ui with setContentView(). – Raghunandan Apr 03 '13 at 10:13
-
Thanks for the fast answers. I should be more precise, sry. All answers solved my Problem. :D Thanks – Kollegah_best Apr 03 '13 at 10:26
2 Answers
1
You can do something as below
Intent myIntent = new Intent(this, TargetAvitivityName.class);
startActivity(myIntent)
Jay Mayu
- 16,523
- 31
- 112
- 147
0
There are tons of tutorials about this, also on Stackoverflow. Reading the Docs would help too... But here is the Solution you are searching for: On Android, how do you switch activities programmatically?
Community
- 1
- 1
Naturjoghurt
- 521
- 6
- 21