Portable barcode scanner?

How can i embed the barcode scanner in my application?

  • How can i embed the the barcode scanner into my application such that when i start the application, the barcode scanner screen is actually a part of another activity.. the barcode scanner screen itself should be one of the screens.. on top i should be able to have a textview controlled from my custom activity and at the bottom the barcode scanner which is from the zxing library... One way i know is using fragments.. but then i want to support all platforms starting 2.2 and that wont be possible in this case.. Please help anyone, if anyone has the answers...

  • Answer:

    To do that, your Activity needs to extend ActivityGroup. I think my response in this question contains the details: http://stackoverflow.com/questions/7968078/tabs-using-fragments-on-android-but-inside-another-layout/7968181#7968181 A big problem with this is that Google is planning to deprecate the ActivityGroup class. I understand why they have created Fragments, and they are important. But I still think ActivityGroup is needed for cases like yours.

user1095761 at Stack Overflow Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.