Kev*_*vik 24 xml android manifest
如何在我的Android清单中注册我的应用程序类?我在网上看过很多教程但仍然无法正确使用.我的应用程序类被调用Monitor.java.如何在下面的清单文件代码中注册它?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.project"
android:versionCode="1"
android:versionName="1.0" >
<application
android:allowBackup="true"
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="xyz"
android:screenOrientation="landscape"
android:theme="@style/AppTheme" >
<service
android:name=".AudioService"
android:icon="@drawable/ic_launcher"
android:label="audioservice" >
</service>
<activity
android:name=".MainActivity"
android:screenOrientation="landscape" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Editor"
android:screenOrientation="landscape"
android:windowSoftInputMode="stateHidden" >
<intent-filter>
<action android:name="com.example.project.EDITOR" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
Run Code Online (Sandbox Code Playgroud)
fra*_*yab 52
<application
android:name="package.YourApplicationClass" <--------
android:allowBackup="true"
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="xyz"
android:screenOrientation="landscape"
android:theme="@style/AppTheme">
Run Code Online (Sandbox Code Playgroud)
试试这个:
<application android:icon="@drawable/icon"
android:label="@string/app_name"
android:name="Monitor">
Run Code Online (Sandbox Code Playgroud)
请参阅下面的参考链接:
谢谢.
| 归档时间: |
|
| 查看次数: |
28153 次 |
| 最近记录: |