Why can't I open the android manifest class in eclipse?
In eclipse, if you click CTRLand click on a method name, you can open a declaration or implement that method. I want to use this idea to navigate to a class in android manifest.xml
. All other actions or services are working fine, but only the receiver does not.
see code below
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.seafile.seadroid2"
android:versionCode="20"
android:versionName="1.0.1"
android:installLocation="internalOnly"
>
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:name="com.seafile.seadroid2.SeadroidApplication"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher">
<receiver android:name=".OSBootReceiver" >
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<activity android:name="com.seafile.seadroid2.BrowserActivity"
android:label="@string/app_name"
android:theme="@style/Theme.SeafileTheme"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.seafile.seadroid2.sync.CameraUploadService" > </service>
</application>
</manifest>
I checked if the path was right, the class exists in this path, so why can't I open this class? Who can help?
+3
source to share
2 answers
Your receiver is not using the full path. Try changing your ad:
<receiver android:name=".OSBootReceiver" >
...
</receiver>
in
<receiver android:name="com.seafile.seadroid2.OSBootReceiver" >
...
</receiver>
I found that Eclipse will only respond to ctrl-click in the manifest file if the name is fully qualified.
+1
source to share