Losing tabs when scanning an NFC tag -android -


i have app has tab layout. 1 main activity tabhost/tabspecs/intents etc , 3 others in want read nfc tags using enableforegrounddispatch.

my problem when read tag 1 of 3 activities, activity gets loaded anew, replacing tabbed layout.

i think it's activity i'm calling in pending intent, can't work out, or find on web, how keep tabbed layout.

i'm not sure if maybe should switching fragments because possibly tabs activities can't handle functionality?

thanks in advance.

russ

p.s. can include code if helps, i'm hoping people have dealt before, though seem asked on here few times no answers.

it's known problem (see example here or here). solution nfc intent handling in tabactivity launchmode set singletask (not nice solution). better switch using fragments, say. there 1 activity, can handle nfc intents.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -