Friday, March 29, 2013

Re: [android-developers] Re: Debugging the Activity life-cycle?

>
> 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? The system does not "drop intents
randomly". Can you point out concrete cases where it has without
sufficient error messages, because those would be bugs..

> I'm currently trying to debug a case where I can ONLY start an activity if
> it's singleInstance. I don't know why and lots of people on StackOverflow
> have made many guesses and suggestions, none of which (as of this writing)
> have worked. Because we're all fumbling in the dark since we don't know
> what Android is doing behind the scenes. I want to know if there's a way
> to find out.

There's not logged output from the Android internals that give an
account of why your intent is "dropped" but I am more confused as to
why this would be happening in the first place. In the past, whenever
I've heard this happening, it's because there's always been something
like a misspelling of package name, or something's been signed
incorrectly..

Kris

--
--
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
---
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 android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate