Sunday, January 6, 2008

First create a class extending some activity(Activity/ListActivity/MapActivity etc).
You have to put this activity reference in AndroidManifest xml file like this


< activity class=".nameOfTheClass" / >


so that android can find this activity.

To lauch an activity from an activity, here is a simple code.

Intent i = new Intent(this, newActivity.class);
startSubActivity(i, ACTIVITY_CREATE);

Here Activity_create is a simple integer declared.

I don't know the details so i am not going into those, i understand nothing, i can do copy paste well :D. And google is there ;).

0 Comments:

Post a Comment