Android - Call Main Class Activity -


i go main activity @ point in application. tried calling activity in intent usual, since activity name main class called "android.intent.action.main", general name of every application's main activity, "complete action using:" menu pops every possible application on phone option. not want this; want main activity application loads up.

how can achieve this?

thank in advance!

you can specify specific activity launch so:

intent nextactivityintent = new intent(this, myactivity.class); startactivity(nextactivityintent); 

as per intent documentation, action_main flag used specify want launch application using application's main entry point. not use in app unless trying open app.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -