Start FragmentActivity from Activity

How can I run FragmentActivity from Activity?

My MainActivity is a splash screen, and I want the FragmentActivity function to appear now.

I need something instead, like this:

startActivity(new Intent("com.example.manager.MyFragmentActivity")); 

TIA.

+6
android android-fragmentactivity
Dec 07 '12 at 6:00
source share
1 answer

From your first activity call:

  startActivity(new Intent(this, MyFragmentActivity.class)); 

Note. Be sure to register MyFragmentActivity in your AndroidManifest.xml .

Edit: This tutorial on launching another event should be helpful to you.

+14
Dec 07
source share



All Articles