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

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

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -