so I am in this situation and i typed "adb shell dumpsys activity" --
and here's the top of what i get.  One thing that's interesting is
that launchedFromUid=-1 almost seems to suggest that it didn't know
where to go back to?

tia.

Currently running services:
  activity
-------------------------------------------------------------------------------
DUMP OF SERVICE activity:
Activities in Current Activity Manager State:
    Task{5 com.myco.gui}
    clearOnBackground=false numActivities=2 rootWasReset=false
    affinity=com.myco.gui
    intent=Intent { flags=0x10000000 comp={com.myco.gui/
com.myco.gui.MyActivity1} }
    affinityIntent=null
    origActivity=null
    lastActiveTime=456149 (inactive for 71s)
      History #2:
        HistoryRecord{436850e8 {com.myco.gui/
com.myco.gui.MyActivity2}}
        packageName=com.myco.gui processName=com.myco.gui
        launchedFromUid=10021 app=ProcessRecord{4379ecf0
834:com.myco.gui/10021}
        Intent { comp={com.myco.gui/com.myco.gui.MyActivity2} (has
extras) }
        frontOfTask=false task=Task{5 com.myco.gui}
        taskAffinity=com.myco.gui
        realActivity=ComponentInfo{com.myco.gui/
com.myco.gui.MyActivity2}
        dir=/data/app/com.myco.gui.apk res=/data/app/com.myco.gui.apk
data=/data/data/com.myco.gui
        labelRes=0x7f060001 icon=0x7f02000e theme=0x1030006
        stateNotNeeded=false componentSpecified=true
isHomeActivity=false
        configuration={ scale=1.0 imsi=310/260 locale=en_US touch=3
key=2/1/2 nav=3 orien=1 }
        resultTo=null resultWho=null resultCode=-1
        results=null
        pendingResults=null
        readUriPermissions=null
        writeUriPermissions=null
        launchFailed=false haveState=false icicle=null
        state=RESUMED stopped=false finishing=false
        keysPaused=false inHistory=true persistent=false launchMode=0
        fullscreen=true visible=true frozenBeforeDestroy=false
thumbnailNeeded=false idle=true
        waitingVisible=false nowVisible=true
        configDestroy=false configChangeFlags=0
        connections=null
      History #1:
        HistoryRecord{43603018 {com.myco.gui/
com.myco.gui.MyActivity1}}
        packageName=com.myco.gui processName=com.myco.gui
        launchedFromUid=-1 app=ProcessRecord{4379ecf0 834:com.myco.gui/
10021}
        Intent { flags=0x10000000 comp={com.myco.gui/
com.myco.gui.MyActivity1} }
        frontOfTask=true task=Task{5 com.myco.gui}
        taskAffinity=com.myco.gui
        realActivity=ComponentInfo{com.myco.gui/
com.myco.gui.MyActivity1}
        dir=/data/app/com.myco.gui.apk res=/data/app/com.myco.gui.apk
data=/data/data/com.myco.gui
        labelRes=0x7f060001 icon=0x7f02000e theme=0x1030006
        stateNotNeeded=false componentSpecified=true
isHomeActivity=false
        configuration={ scale=1.0 imsi=310/260 locale=en_US touch=3
key=2/1/2 nav=3 orien=1 }
        resultTo=null resultWho=null resultCode=0
        results=null
        pendingResults=null
        readUriPermissions=null
        writeUriPermissions=null
        launchFailed=false haveState=true icicle=Bundle
[mParcelledData.dataSize=932]
        state=STOPPED stopped=true finishing=false
        keysPaused=false inHistory=true persistent=false launchMode=0
        fullscreen=true visible=false frozenBeforeDestroy=false
thumbnailNeeded=false idle=true
        waitingVisible=false nowVisible=false
        configDestroy=false configChangeFlags=0
        connections=null

On Sep 1, 7:30 pm, Dianne Hackborn <[email protected]> wrote:
> Look at the log.
>
> Look at "adb shell dumpsys activity" to see the current history stack.
>
> Use the debugger to step through your code when in the situation where you
> should be going back but aren't.
>
> On Tue, Sep 1, 2009 at 7:00 PM, sdphil <[email protected]> wrote:
>
> > I have a bunch of activities that are launching each other through
> > intents.  somehow, i got into a code state where some of the screens
> > the back button (physical button) works, but others it does not.
>
> > I didn't do anything intentionally to disable the back button - what
> > could be causing the back button not to work?
>
> > tia.
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to