Skip to content Skip to sidebar Skip to footer

Android Activities Startactivity

Possible Duplicate: Android - How to open Activity by clicking button i want to open another Activity(GameProcess) from this one (KlikomaniaActivity) through button, but when i

Solution 1:

First make sure that you added your activity to the manifest file :

<activityandroid:name="com.makeandroid.klikomania.GameProcess"></activity>

second, to start the activity use this code:

final Intent gameProcessIntent= newIntent(this, GameProcess.class);
Butstart.setOnClickListener(new View.OnClickListener() {
    publicvoidonClick(View v) {
        startActivity(gameProcessIntent);
    }
});

this should work normaly

Post a Comment for "Android Activities Startactivity"