• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to use scanner and camera in tablayout simultaneously

Am Developing Scanner Application in android, im using tablayout in that,one tab contains camera to scan the qr code and in another tab want to show camera to take photo of the content, but in android we cant access same resources simultaneously (viewpage) so how can i fix this issue? now i temporarly fix this issue using camera intent
 
Try to attach two background Threads to two Fragments, one Fragment + background thread for scanner, another Fragment with own background Thread for photos.
Then add synchronization between those background threads. Use camera in both threads one after another with some logic.
 
Try to attach two background Threads to two Fragments, one Fragment + background thread for scanner, another Fragment with own background Thread for photos.
Then add synchronization between those background threads. Use camera in both threads one after another with some logic.
k ill try
 
Back
Top Bottom