Case 1: Activity is started using "action" Action might be same for few activities.. User need 2 select an activity depending on req. Most of the time.. class name are not visible ..
Case 2 : Activity is started by refering a class name As class name can be unique. Intent resolver will resolve rqd intent action from list of avilable intents in service manager. User need select if 2 activity may pop fopr same action. On Tue, Feb 24, 2009 at 6:44 PM, gganesh <ganesh....@gmail.com> wrote: > > hi friends, > What is the difference between starting an new Activity by case :1 and > case: 2 > > case : 1 > > Intent i= new Intent("com.android.google.Anyname") > startActivity(i); > > case: 2 > > Intent i = new Intent(this, newActivity.class); > startSubActivity(i, ACTIVITY_CREATE); > > what is the scenario which decides to chose between those two options > to start an Activity > Thanks > > > > -- Best Regards Nagaraj --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---