1

I am working on a Cordova Android project with barcode scanning ability. I find the detailed steps on this blog helpful: http://simonmacdonald.blogspot.ca/2011/12/installing-barcode-plugin-for-phonegap.html

However, I am a bit concerned about the mismatch of SDK target of barcodeScanner library (Android 4.0) and that of main project being 2.x. As 2.x is still dominant Android OS in the market, it makes sense to build main project targeting 2.x.

Will that barcodeScanner library targeting 4.0 work well on 2.x handset?

Am I missing something here?

Any pitfalls to watch out for? especially considering future code changes to adapt to fast changing Android handsets.

4

1 回答 1

2

别担心。您总是希望针对最新版本的 Android SDK 构建您的应用程序。SDK 可以处理向后兼容性方面的问题。如果您想从 Android 2.1 和更高版本开始,请将 AndroidManifest.xml 中的最低 SDK 设置为 7。

于 2012-07-24T18:32:50.007 回答