将apk集成到我们现有的android项目中的方法
我只有 .apk 文件(条形码扫描仪应用程序),而不是它的源代码,并且想将其添加到我正在工作的 android 项目中,所以任何人都可以帮助我实现这一目标..?我将非常感激。
I have only .apk file(Barcode Scanner app) with me not the source code of that and wants to add it in my working android project so can anyone assist me the way to achieve that..?? I would be very obliged.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在应用程序中使用条形码扫描仪,而无需在应用程序中实际包含源代码。看看通过意图扫描,这应该可以实现您正在寻找的内容。
You can use the barcode scanner with your application without actually including the source inside of your app. Have a look at scanning via intents, this should accomplish what you are looking for.
我正在研究同样的问题。我得出的结论是,不可能将 apk 文件包含在现有项目中。但还有另一种可能,使用zxing开源lib。这是集成本机条形码扫描仪的一个很好的教程:
http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using -日食/
I'm looking into the same issue. I have concluded that its not possible to include an apk file in an excisting project. But there is another possibility, using zxing open source lib. Here is a good tutorial for integrating a native barcode scanner:
http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/