Most Android code snippets are about one Activity class or other derivative, like ExpandableListActivity. But what if you have multiple classes that you want to render in some orchestrated fashion?
If you have an ExpandableListActivity called healthProfile, and you need to render it from a main class called KeasDroid, this will get it done:
Intent myIntent = new Intent(KeasDroid.this, healthProfile.class); KeasDroid.this.startActivity(myIntent);
But remember you have to add the activity in the manifest file, as shown below:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment