本文介绍了机器人:parentActivityName并不虽然Android的支持 - v4.jar工作包括的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经包含了Android的支持 - v4.jar库使用机器人:parentActivityName =com.myApp.example.MainActivity。它包含在Android的相关性和引用的库,但它仍然不工作 - >
Any suggestions?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myApp.example"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="17" />
<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_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.location.network" />
<uses-feature android:name="android.hardware.location.gps" />
<uses-feature android:name="android.hardware.wifi" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.myApp.example.MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:uiOptions="splitActionBarWhenNarrow" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.SEARCH" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.myApp.example.AboutUsActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/AboutUs"
android:parentActivityName="com.myApp.example.MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.myApp.example.MainActivity" />
</activity>
</application>
</manifest>
解决方案
The attribute android:parentActivityName
is introduced in API 16. Set your project's build target to Android 4.1 and then you can run your app on the devices that have API level 14(you declared minimum sdk level to be 14) or higher levels if android support library is included in your project's build path.
这篇关于机器人:parentActivityName并不虽然Android的支持 - v4.jar工作包括的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!