Friday, November 27, 2009

[android-developers] start activity without mention in androidmanifestfile

Hi,
I want to start an activity without mention it in AndroidManifest.xml file.Is it possible,If so how it is
Give me me a sample code,
I have tried the following but it throws exception activity not found
 Intent i=new Intent();
         ComponentName cn=new ComponentName("com.android.Layout","com.android.Layout.spinnners");//packagename,activityname
         i.setComponent(cn);
         i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         startActivity(i);

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate