Android Question Getting results from common activities

nibbo

Active Member
Licensed User
Longtime User

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
Why do you need to have a common activity and not a common class? It will make things simpler.

Hi Erel

I have several warehouse apps running on rugged handhelds with built in barcode readers that all need to scan Stock Barcodes and Location QR Codes.
There is a UI associated with this also so it does need to be an activity; correct me if I am wrong...
Having it in a single app means that I only need to change it once should the requirements change in any way.
It also means that I have the scanner service wrapped up in a single app and only need to mess about with one manifest if we start using different hardware/scanners etc.

Thanks
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is a UI associated with this also so it does need to be an activity; correct me if I am wrong...
This is wrong. You can use the same activity and implement parts of the UI in a class.

Anyway, you can call other activities with CallSubDelayed. You can pass Me to the other activity and then call it back with another CallSubDelayed.
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
Thanks Erel, unfortunately I don't think my level of expertise extends to this just yet and I don't really have the time to experiment.
I have got it working with StartActivityForResult but may revisit it again later if time permits; which I doubt... Ta
 
Upvote 0
Top