On Friday, March 29, 2013 11:16:26 PM UTC-4, Kristopher Micinski wrote:
>
> >
> > In that particular example the returning Activity was standard but the
> > Activity invoking it was singleInstance. I knew the returning Activity
> had
> > to be standard but I only found out that the caller couldn't be
> > singleInstance by time-consuming trial-and-error. I've never seen it
> > documented. When I made the caller activity also standard it worked.
> > Which illustrates my question: which is whether there's a way to
> > systematically find out from Android what happened. Is any of this
> stuff
> > instrumented so we can see why something did or did not happen?
> >
>
> No.
>
> But you should see something in the logcat that shows an intent was
> fired. Do you not see that?
When the Activity (called DGraphActivity (xxxx-out proprietary namespace)
is set to a "standard" launchMode and I do a search of all the logCat
output I see two references to it
*03-29 19:21:04.357: I/ActivityManager(119): Force finishing activity
HistoryRecord{40698f18 com.xxxx.remote/.*
*DGraphActivity}
03-29 19:23:56.454: I/ActivityManager(119): Starting: Intent {
flg=0x4000000 cmp=com.xxxx.remote/.**DGraphActivity (has extras) } from pid
13727*
What was interesting about this is that my program has lots of Activities
and in all the other ones the "Starting: Intent" was followed immediately
by a "trying to launch..." the Activity in question. But DGraphActivity
had no "trying to launch", it just stops at "starting: intent" - that must
be some kind of clue but I don't know what.
*But*, when DGraphActivity's launchmode is set to singleInstance the logcat
shows this . . .
*03-31 18:49:12.224: I/ActivityManager(119): Starting: Intent {
flg=0x4000000 cmp=com.xxxx.remote/.DGraphActivity (has extras) } from pid
19024
03-31 18:49:12.298: W/ActivityManager(119): Trying to launch
com.xxxx.remote/.DGraphActivity
03-31 18:49:12.318: D/DGraphActivity(19024): created*
For my purposes I need it to be standard but I don't know how to interpret
this to glean why Android can start the Activity in singleInstance, but not
in standard mode
>
>
--
--
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.