0

エミュレーターアプリは正常にインストールされましたが、アプリが起動していません。ここにコンソールの詳細を貼り付けています。マニフェストファイルも追加しています。インテントフィルターも追加しています。この情報で十分だといいのですが、stackoverflowにはもう少し情報が必要です。

 [2012-12-13 20:29:52 - PongUr2] Android Launch!
    [2012-12-13 20:29:52 - PongUr2] adb is running normally.
    [2012-12-13 20:29:52 - PongUr2] No Launcher activity found!
    [2012-12-13 20:29:52 - PongUr2] The launch will only sync the application package on the device!
    [2012-12-13 20:29:52 - PongUr2] Performing sync
    [2012-12-13 20:29:52 - PongUr2] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD_4.0'
    [2012-12-13 20:29:52 - PongUr2] Uploading PongUr2.apk onto device 'emulator-5554'
    [2012-12-13 20:29:53 - PongUr2] Installing PongUr2.apk...
    [2012-12-13 20:30:00 - PongUr2] Success!
    [2012-12-13 20:30:01 - PongUr2] \PongUr2\bin\PongUr2.apk installed on device
    [2012-12-13 20:30:01 - PongUr2] Done!

ここにxmlがあります

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.sabrebutt.pongur"
    android:versionCode="49"
    android:versionName="0.8.8.2" >

    <application
        android:icon="@drawable/icon"
        android:label="@string/app_name" >
        <service
            android:name="PongUr"
            android:enabled="true"
            android:icon="@drawable/icon"
            android:label="@string/app_name"
            android:permission="android.permission.BIND_WALLPAPER" >
            <intent-filter android:priority="1" >
                <action android:name="android.service.wallpaper.WallpaperService" />

                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </intent-filter>

            <meta-data
                android:name="android.service.wallpaper"
                android:resource="@xml/pongur" />
        </service>

        <activity
            android:name="PongUrSettings"
            android:exported="true"
            android:label="@string/pongur_settings"
            android:theme="@android:style/Theme.Black" >
        </activity>
    </application>

    <uses-sdk android:minSdkVersion="7" />
     />

</manifest>
4

2 に答える 2

5

どのアクティビティにもランチャーインテントフィルターがありません。マニフェストで起動するアクティビティに以下の行を追加してください

    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>

編集:intentFilter内にintentfilterを含めることはできず、ランチャーインテントフィルターはサービスでは機能しません。アクティビティのみを起動でき、UIを使用できます

   <activity
        android:name="PongUrSettings"
        android:exported="true"
        android:label="@string/pongur_settings"
        android:theme="@android:style/Theme.Black" >
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>
于 2012-12-13T15:53:59.673 に答える
0

Setting -> Application(apps) --> uninstall your appアプリをもう一度実行してみてください。以前のインストールでこのタイプの問題が発生する場合があります。そうでない場合は、menifestファイルに問題がある可能性があります。

于 2012-12-13T15:44:31.723 に答える