activity is destroyed when press home key

by Dianne Hackborn » Wed, 30 Sep 2009 04:50:38 GMT


Sponsored Links
 i, I just replied to the bug, but should say something here as well --

This is intentional behavior, since launching a single task activity means
bringing it to the foreground, the stack is cleared so it can always receive
the new intent. So for example Browser, which is one of the few single task
activities -- if it is launched from somewhere with a new URI the root
activity needs to be brought foreground to display it.

The solution is simple: don't use single task. There are very very few
places where this is actually appropriate, and those few cases are for this
kind of special case behavior for the browser.

On Mon, Sep 28, 2009 at 6:52 AM, Johan Schring <scho...@gmail.com> wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

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.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Issue in Connecting USB Hub to Hawkboard

Hello all,
            Earlier i was working in porting Android to Hawkboard. With no
issues i can boot android from USB drive. Now i am on connecting an external
GSM modem. For that i used a 4 port USB hub externally powered. With my usb
drive alone connected to hub, i could able to see filesystem loaded in
output monitor. While connecting Keyboard to the hub to work in emulator, i
am ending up with I/O error. while connecting my GSM modem through
serialtoUSB convertor boot screen vanishes with following log......

Linux version 2.6.32-rc6-gfa4fa8b-dirty (r...@prem-laptop) (gcc version
4.3.2 (Sourcery G++ Lite 2008q3-72) ) #11 PREEMPT Wed Aug 25 16:20:32 IST
2010
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: OMAPL 138 Hawkboard.org
Memory policy: ECC disabled, Data cache writeback
DaVinci da850/omap-l138 variant 0x0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS2,115200n8 noinitrd root=/dev/sda1
video=omapfb.mode=dvi:1280*
1280...@60 androidboot.console=ttyS2 rootwait rw init=/init
Unknown boot option `androidboot.console=ttyS2': ignoring
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 124784KB available (4024K code, 797K data, 144K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 144 gpio irqs
regulator: core version 0.5
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi4.1-dma, (host+peripheral), debug=0
Waiting for USB PHY clock good...
musb_hdrc: USB OTG mode controller at fee00000 using DMA, IRQ 58
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
ashmem: initialized
Installing knfsd (copyright (C) 1996 o...@monad.swb.de).
JFFS2 version 2.2. (NAND) \0xc2\0xa9 2001-2006 Red Hat, Inc.
msgmni has been set to 244
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
da8xx_lcdc da8xx_lcdc.0: GLCD: Found VGA_Monitor panel
Console: switching to colour frame buffer device 80x30
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A
console [ttyS2] enabled
brd: module loaded
console [netcon0] enabled
netconsole: network logging started
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci ohci.0: DA8xx OHCI
ohci ohci.0: new USB bus registered, assigned bus number 2
ohci ohci.0: irq 59, io mem 0x01e25000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC 6a:cb:60:db:0b:de
usb0: HOST MAC fe:43:db:59:f1:82
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
logger: created 64K log 'log_main'
logger: created 256K log 'log_events'
logger: created 64K log 'log_radio'
logger: created 64K log 'log_system'
Advanced Linux Sound Architecture Driver Version 1.0.21.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
Waiting for root device /dev/sda1...
usb 2-1: new full speed USB device using ohci and address 2
usb 2-1: configuration #1 chosen from 1 choice
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
usb 2-1.2: new low speed USB device using ohci and address 3
usb 2-1.2: configuration #1 chosen from 1 choice
input: USB-compliant keyboard as
/devices/platform/ohci.0/usb2/2-1/2-1.2/2-1.2:1.0/input/input0
generic-usb 0003:062A:0201.0001: input: USB HID v1.10 Keyboard
[USB-compliant keyboard] on usb-ohci.0-1.2/input0
input: USB-compliant keyboard as
/devices/platform/ohci.0/usb2/2-1/2-1.2/2-1.2:1.1/input/input1
generic-usb 0003:062A:0201.0002: input: USB HID v1.10 Mouse [USB-compliant
keyboard] on usb-ohci.0-1.2/input1
usb 2-1.4: new full speed USB device using ohci and address 4
usb 2-1.4: not running at top speed; connect to a high speed hub
usb 2-1.4: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access                               0.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 7897088 512-byte logical blocks: (4.04 GB/3.76 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
usb 2-1.4: reset full speed USB device using ohci and address 4
usb 2-1.4: reset full speed USB device using ohci and address 4
usb 2-1.4: reset full speed USB device using ohci and address 4
usb 2-1.4: reset full speed USB device using ohci and address 4
usb 2-1.4: reset full speed USB device using ohci and address 4
usb 2-1.4: reset full speed USB device using ohci and address 4
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 44 00 3e 00 00 30 00
end_request: I/O error, dev sda, sector 4456510
Buffer I/O error on device sda1, logical block 557056
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 557057
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 557058
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 557059
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 557060
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 557061
lost page write due to I/O error on sda1
JBD: recovery failed
EXT3-fs: error loading journal.
EXT2-fs: sda1: couldn't mount because of unsupported optional features (4).
List of all partitions:
0800         3948544 sda driver: sd
  0801         3944719 sda1
No filesystem could mount root, tried:  ext3 ext2 cramfs vfat msdos
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(8,1)
---------------------------------------------------------------------------------------------------------------------------------------

What might be the problem and how can i resolve it.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Need project idea

Can any tell me a project related to automative industries using
android.

-- 

3. ByPass UI for Activiating DevicePolicyManager

4. What is INSTRUMENTATION_CODE refers to

5. usb 3g cdma datacard on android

6. how to dynamically remove widgets from a layout inside a layout ( nested ).

7. problem with GL_CLAMP_TO_EDGE