android


Android task and back stack


Suppose A is the main activity with default launch mode, and activity B has singleTask launch mode. Now, we launch the app and there is only one task in this app containing only one activity (activity A). What happens when A starts B? Two tasks or just one task?
My experiment shows that B is placed on top of A in the same task, while the developer guide says singleTask activities should always be started in a new task. So, what am I missing?
UPDATE #1: in my experiment, I run adb shell dumpsys activity to see the task information.
Not always, only in certain situations. It's very rare really, check out the post and video here: http://angrybyte.me/post/156362879355/android-tasks-and-back-stack
When launching from default, you'll always get it in the same task.

Related Links

ANDROID - positioning views programatically
About Android SDK add-on development
jQuery UI Sortable and Dragable NOT working on iPad, iPhone or Android
Launch another activity if checkbox is checked
phonegap android edittext is hidden behind virtual keyboard
Scroll a View and refresh content
Clickable textview link
Can we have 2 Application running simultaneously on an android device?
Not Scrolling elements inside HTML pages in phonegap in Android version
Google maps zoom controls not displayed fully
Android: Background images for relative layout
MapView onTap issue: android.view.WindowManager$BadTokenException: Unable to add window — token null is not for an application
Android: How do i set the source of imageview to a bitmap in a bitmap array
create dyanamic rule
use html5 for android design
How to work with Music Picker for android?

Categories

HOME
shell
gridview
cobalt
merge
wakanda
socket.io
newrelic
gembox-spreadsheet
ado.net
webix
elasticsearch-5
p2p
spin
owin
minecraft-forge
drop-down-menu
commonjs
android-securityexception
startup
frequency-distribution
coin3d
entitymanager
nim
tosca
flask-sqlalchemy
short-url
slidetoggle
quantlib
errbot
nsurl
anki
quickfixj
android-maps-extensions
carriage-return
openproject
typesafe-config
mongoose-schema
apriori
print-css
pom.xml
excel-dna
er-diagram
libjpeg
flac
ampps
restore
gets
webjars
mta
hclust
installshield-2010
clipboard.js
omniauth-facebook
nullable
thread-sleep
grass
false-sharing
exim4
linklabel
lazybones
forwarding
ons-api
uncompress
vacuum
graphics2d
entity-framework-4.3
xmltype
mass-assignment
dbaccess
boost-program-options
cocos3d
rmysql
nsmenu
named-parameters
codeplex
jquery-slider
koala
jeromq
kogrid
pagedown
cascadingdropdown
preload
xcode3.2
cross-database
strsep
tmx
appledoc
silent
blender-2.49
build-environment
windows-identity
firefox-3
soappy
contentpresenter

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App