目前我正在使用较低版本的 sdk-platform:2.3.3 Revision :2 开发应用程序。并且应用程序运行完美,没有任何问题..现在我想让这个应用程序向前兼容,以便我可以在更高版本上运行这个应用程序请建议我如何升级我的代码,以便我的应用程序可以在所有设备上运行......
告诉我我必须在下面的清单文件中进行哪些更改。我正在使用 Phonegap 和 cordova 使平台兼容...
Cordova:1.6.1 -- 假设如果我升级我的cordova,它应该可以正常工作......
我刚刚在更高版本的android上运行我的应用程序我的应用程序正在关闭请告诉我如何解决这个问题
这是 Logcat 文件,我收到网络连接错误。如果我的应用程序版本为 4.0.3 API:15 ...请检查问题所在并建议我最好的解决方案,以便我的应用程序与更高版本具有可比性。
我一运行应用程序它就会崩溃。它显示我提示发生网络错误
我的 manifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.lbs"
android:versionCode="1"
android:versionName="1.0" >
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
12-17 17:25:17.914: D/DroidGap(534): Origin to allow: http://127.0.0.1*
12-17 17:25:17.954: I/CordovaLog(534): Found log level DEBUG
12-17 17:25:17.954: I/CordovaLog(534): Changing log level to DEBUG(3)
12-17 17:25:17.974: I/CordovaLog(534): Found preference for classicRender
12-17 17:25:17.974: D/DroidGap(534): DroidGap.onCreate()
12-17 17:25:18.174: D/DroidGap(534): DroidGap.loadUrl(file:///android_asset/www/login.html?imeino=000000000000000&status=0)
12-17 17:25:18.244: D/DroidGap(534): DroidGap: url=file:///android_asset/www/login.html?imeino=000000000000000&status=0 baseUrl=file:///android_asset/www/
12-17 17:25:18.304: D/DroidGap(534): DroidGap.init()
12-17 17:25:18.354: I/dalvikvm(534): threadid=3: reacting to signal 3
12-17 17:25:18.444: I/dalvikvm(534): Wrote stack traces to '/data/anr/traces.txt'
12-17 17:25:18.494: D/PluginManager(534): init()
12-17 17:25:18.704: D/chromium(534): Unknown chromium error: -6
12-17 17:25:18.724: D/SoftKeyboardDetect(534): Ignore this event
12-17 17:25:18.864: I/dalvikvm(534): threadid=3: reacting to signal 3
12-17 17:25:19.035: D/Cordova(534): DroidGap: GapViewClient.onReceivedError: Error code=-1 Description=A network error occurred. URL=file:///android_asset/www/login.html?imeino=000000000000000&status=0
12-17 17:25:19.044: I/dalvikvm(534): Wrote stack traces to '/data/anr/traces.txt'
12-17 17:25:19.314: D/SoftKeyboardDetect(534): Ignore this event
12-17 17:25:19.364: I/dalvikvm(534): threadid=3: reacting to signal 3
12-17 17:25:19.534: I/dalvikvm(534): Wrote stack traces to '/data/anr/traces.txt'
12-17 17:25:19.644: D/dalvikvm(534): GC_CONCURRENT freed 87K, 2% free 13129K/13383K, paused 10ms+9ms
12-17 17:25:19.864: I/dalvikvm(534): threadid=3: reacting to signal 3
12-17 17:25:19.984: I/dalvikvm(534): Wrote stack traces to '/data/anr/traces.txt'