Click here to Skip to main content
15,913,179 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all
I want to write a App that created multi activities. in other words, there is a menu App when click on every icon call active a sub application(for example call a my gallery or my reminder).

I don't know how to call sub activities (or sub application). Do I should use intent? or there are other ways?

thank you
Posted

intent would be the best way to call them!!
 
Share this answer
 
use explicit or implicit intent. depends on situation.

Java
public class MyActivity extends Activity
{
.... onCreate(....)
{
Intent intent = new Intent(MyActivity.this,CalledActivity.class);
//after that start the intent ... u can get exact syntax from developer.android.com
startActivity(intent);
}

}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900