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

RxJava: return a cached value synchronously/immediately
How to check for string changes after a user presses a Button?
android - groovy script error in custom live template
How to zoom in an ImageView in Android
How to load string.xml for indian languages in android?
Classic asp or phonegap
Android WhisperSystems/libsignal-service
android retrofit await method to finish outside of response
Unable to restore array to array adapter when addTextChangedListener is used
Detect if first auth via Facebook/Google
Install error when trying to update android application programmatically [duplicate]
Android the navigation toolbar icon and logo can not align
Reverse image on Nexus 5x in portrait
Android Studio 2.3, cannot build gradle. Error 304 [duplicate]
Android - How to allow/enable “Floating notifications” setting as default for App using code
Need to select a file and Save it in given folder in android

Categories

HOME
sonarqube
url-redirection
go
phpword
delphi-7
nunit
twig
mjml
angular2-material
static
obfuscation
devise
cublas
ado.net
crystal-lang
barcode
gson
rtf
naivebayes
scrolltop
cumulocity
microsoft-dynamics-nav
sencha-touch
microsoft-ocr
breadth-first-search
string-concatenation
tosca
displaytag
xunit
google-api-client
maze
sinch
carrierwave
testbed
fossil
browser-extension
apiary.io
bc
odroid
stringtokenizer
linqpad
stylecop
builder
dbcontext
launchctl
tinymce-3
amq
excel-dna
jqchart
universal-analytics
bootstrap-tags-input
renaming
lrs
async.js
adafruit
uicolor
jboss-tools
pre-build-event
angular-ui-typeahead
php-socket
hadoop-partitioning
aspen
iokit
oracle-spatial
atoi
avahi
beatsmusic
universal-image-loader
lnk
radiant
abstract-data-type
mantle
wimax
redis-py
wcf-configuration
role
u2netdk
cgbitmapcontextcreate
timthumb
msr
delimited-text
dot-emacs
build-environment
lalr
cuda.net
sun
sqlobject

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