I have created an android library, it contains an Activity Class that uses to open camera intent, the library works perfect excepts for the part that invokes the Activity to
Although I don't know the root cause, you can try this solution: in your app project, define an activity extends from ScannerViewActivity, and declare it in AndroidManifest.xml.
class MyScannerViewActivity extends ScannerViewActivity {
// do nothing or something you want
}
Then you should start MyScannerViewActivity instead of ScannerViewActivity by intent.