I fear this will be a limit of Android itself, not B4A.
I have created a small app to open the ZXing Barcode scanner app from the notification bar. All was working well, but today I actually put the app into real use and noticed something that I had assumed would work my way.
The idea of the app is to reduce the barcode scanner / code input process from:
Close the app your in > launch barcode scanner > scan barcode > close barcode scanner > re-launch app > paste code.
To (from an open app):
Open notification bar and tap ZXTrigger (barcode scanner loads) > scan barcode (barcode scanner auto closes with code in clipboard) > paste code.
Everything works right up to the end. Once the barcode scanner auto closes, the previous app is no longer in the background. I was hoping it would just pause and once the scanner closes, the previous app would resume. Does everyone follow?
So is there anyway to get the previous app in code. Obviously it can be loaded by long pressing the home button and picking it out, but it would be nice to get rid of this step.
Thanks for looking.
p.s. this is the app if anyone wishes to take a look
https://play.google.com/store/apps/details?id=barxdroid.ZXTrigger
I have created a small app to open the ZXing Barcode scanner app from the notification bar. All was working well, but today I actually put the app into real use and noticed something that I had assumed would work my way.
The idea of the app is to reduce the barcode scanner / code input process from:
Close the app your in > launch barcode scanner > scan barcode > close barcode scanner > re-launch app > paste code.
To (from an open app):
Open notification bar and tap ZXTrigger (barcode scanner loads) > scan barcode (barcode scanner auto closes with code in clipboard) > paste code.
Everything works right up to the end. Once the barcode scanner auto closes, the previous app is no longer in the background. I was hoping it would just pause and once the scanner closes, the previous app would resume. Does everyone follow?
So is there anyway to get the previous app in code. Obviously it can be loaded by long pressing the home button and picking it out, but it would be nice to get rid of this step.
Thanks for looking.
p.s. this is the app if anyone wishes to take a look
https://play.google.com/store/apps/details?id=barxdroid.ZXTrigger