In my app, I managed to send intent to Barcode Scanner app and get result.
My problem is: After sent intent, Barcode Scanner activates and shows rectangle view finder in center and message "Place a barcode inside the viewfinder rectangle to scan it.". At this stage, I want to show custom background image which 开发者_如何学Chas some pictures around remaining center rectangle area transparent for view finder. Has anyone accomplished this?
You can send an Intent to open another app, but you cannot do something like change the layout of the other app you open. It's not possible, sorry. Not unless that other app was built to accept intents from other apps and use the data attached in some way. For example, you could use intent.putExtra()
to add your image or a reference id for it, but the the other app would have to be pre-built to do something with that data. And that would be up to the author of the other app.
精彩评论