On Friday, March 29, 2013 11:16:52 PM UTC-4, Kristopher Micinski wrote:
>
> You might try asking the package manager if the intent you're sending
> will have any receivers, also..
>
I'm not sure how do that. Using the intent I use to launch my activity, I
tried . . .
PackageManager p = ctx.getPackageManager();
final List<ResolveInfo> info=p.queryIntentActivities(intent,
PackageManager.GET_ACTIVITIES);
...but I had no idea how to interpret the output. Here it is, first the
successful (singleInstance) case, and second the failing (standard)
case. I don't see a difference but I may just be too blurry-eyed to see
it (it's 8PM here).
info ArrayList (id=830008681048)
array Object[1] (id=830008671280)
[0] ResolveInfo (id=830008643864)
activityInfo ActivityInfo (id=830008586728)
applicationInfo ApplicationInfo (id=830008677824)
configChanges 0 [0x0] [^@ (NUL)]
descriptionRes 0 [0x0] [^@ (NUL)]
enabled true
exported false
flags 0 [0x0] [^@ (NUL)]
icon 0 [0x0] [^@ (NUL)]
labelRes 0 [0x0] [^@ (NUL)]
launchMode 3 [0x3] [^C]
logo 0 [0x0] [^@ (NUL)]
metaData null
name "com.xxxx.remote.DGraphActivity"
(id=830008007480)
nonLocalizedLabel null
packageName "com.xxxx.remote" (id=830007988376)
permission null
processName "com.xxxx.remote" (id=830007818216)
screenOrientation 1 [0x1] [^A]
softInputMode 0 [0x0] [^@ (NUL)]
targetActivity null
taskAffinity "com.xxxx.remote" (id=830007817688)
theme 0 [0x0] [^@ (NUL)]
filter null
icon 0 [0x0] [^@ (NUL)]
isDefault false
labelRes 0 [0x0] [^@ (NUL)]
match 0 [0x0] [^@ (NUL)]
nonLocalizedLabel null
preferredOrder 0 [0x0] [^@ (NUL)]
priority 0 [0x0] [^@ (NUL)]
resolvePackageName null
serviceInfo null
specificIndex -1 [0xffffffff]
modCount 1 [0x1] [^A]
size 1 [0x1] [^A]
info ArrayList (id=830008607104)
array Object[1] (id=830008590088)
[0] ResolveInfo (id=830008265248)
activityInfo ActivityInfo (id=830008525064)
applicationInfo ApplicationInfo (id=830008598288)
configChanges 0 [0x0] [^@ (NUL)]
descriptionRes 0 [0x0] [^@ (NUL)]
enabled true
exported false
flags 0 [0x0] [^@ (NUL)]
icon 0 [0x0] [^@ (NUL)]
labelRes 0 [0x0] [^@ (NUL)]
launchMode 0 [0x0] [^@ (NUL)]
logo 0 [0x0] [^@ (NUL)]
metaData null
name "com.xxxx.remote.DGraphActivity"
(id=830008010320)
nonLocalizedLabel null
packageName "com.xxxx.remote" (id=830008010248)
permission null
processName "com.xxxx.remote" (id=830007812448)
screenOrientation 1 [0x1] [^A]
softInputMode 0 [0x0] [^@ (NUL)]
targetActivity null
taskAffinity "com.xxxx.remote" (id=830007796672)
theme 0 [0x0] [^@ (NUL)]
filter null
icon 0 [0x0] [^@ (NUL)]
isDefault false
labelRes 0 [0x0] [^@ (NUL)]
match 0 [0x0] [^@ (NUL)]
nonLocalizedLabel null
preferredOrder 0 [0x0] [^@ (NUL)]
priority 0 [0x0] [^@ (NUL)]
resolvePackageName null
serviceInfo null
specificIndex -1 [0xffffffff]
modCount 1 [0x1] [^A]
size 1 [0x1] [^A]
Thanks for your help on this!!
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.