[android-developers] Re: Resolving activities

2010-07-11 Thread CMWiii
The end result is the same. Activity not found. For reference: Using ComponentName(Package, Class) produced the same values as unflatten(package/class). On Jul 11, 1:34 am, Dianne Hackborn wrote: > On Sat, Jul 10, 2010 at 5:39 PM, CMWiii wrote: > > "name" was just chosen for the psuedo code.

Re: [android-developers] Re: Resolving activities

2010-07-11 Thread Dianne Hackborn
On Sat, Jul 10, 2010 at 5:39 PM, CMWiii wrote: > "name" was just chosen for the psuedo code. It is a component name of > the form" packagename/classname", > hence the unflatten. > Don't use flattened names. The only time you'll use those is if you actually to have to flatten to a string, to pu

[android-developers] Re: Resolving activities

2010-07-10 Thread CMWiii
"name" was just chosen for the psuedo code. It is a component name of the form" packagename/classname", hence the unflatten. On Jul 10, 5:24 pm, Dianne Hackborn wrote: > What is "Name"? > > ComponentName has a constructor that takes a package name and class name; in > the activity info these are

Re: [android-developers] Re: Resolving activities

2010-07-10 Thread Dianne Hackborn
What is "Name"? ComponentName has a constructor that takes a package name and class name; in the activity info these are .packageName and .name. On Sat, Jul 10, 2010 at 3:52 PM, CMWiii wrote: > Same result: > > used: > myIntent.setComponent(ComponentName.unflattenFromString(Name)); > > > On Ju

[android-developers] Re: Resolving activities

2010-07-10 Thread CMWiii
The line: ResolveInfo ri = manager.resolveActivity(exceptionIntent,0); should read: ResolveInfo ri = manager.resolveActivity(myIntent,0); On Jul 10, 3:28 pm, CMWiii wrote: > In a test app I pass an intent to resolveActivity to find out what is > the > best fit for the intent. > > For example:

[android-developers] Re: Resolving activities

2010-07-10 Thread CMWiii
Same result: used: myIntent.setComponent(ComponentName.unflattenFromString(Name)); On Jul 10, 3:38 pm, Mark Murphy wrote: > Try setComponent() instead of setPackage(). > > > > On Sat, Jul 10, 2010 at 6:28 PM, CMWiii wrote: > > > In a test app I pass an intent to resolveActivity to find out wh