2014-11-22 5 views
0

코드를 다운로드하고 가져 왔으며 코드를 실행하는 동안 No Launcher 활동을 찾지 못했습니다! 시작하면 장치의 응용 프로그램 패키지 만 동기화됩니다. 난 검색 및 솔루션 매니지드 메인 및 발사기 액션 하나씩해야한다. 나는 그것을했지만 얻은 같은 오류가 발생하고 내 애플 리케이션은 에뮬레이터에있는 "바탕 화면 \ 빈 \ 바탕 화면에 장치에 설치되어있는 메시지를 받고있다"위치하지 않습니다. 제발 나를 도와주세요, 이것은 내 매니페스트 파일입니다louncher가 발견되지 않았습니다.

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.wallpaper" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk 
     android:minSdkVersion="8" 
     android:targetSdkVersion="17" /> 
    <uses-feature 
     android:name="android.software.live_wallpaper" 
     android:required="true" > 
    </uses-feature> 

    <application 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 
     <service 
      android:name="LiveWallpaperService" 
      android:enabled="true" 
      android:label="Wallpaper Example " 
      android:permission="android.permission.BIND_WALLPAPER" > 
      <intent-filter> 
       <action android:name="android.service.wallpaper.WallpaperService" /> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
      <meta-data 
       android:name="android.service.wallpaper" 
       android:resource="@xml/mywallpaper" > 
      </meta-data> 
     </service> 
    </application> 
</manifest> 
+0

대신 서비스를 실행 활동을 정의해야이 실행 활동에 서비스를 시작 &. –

+0

아웃 서비스와 벽지는 어떻게 작동하나요? – Tara

+0

서비스를 활동에서 호출 해보십시오. –

답변

0

서비스에 인 텐트 필터 시작 관리자와 기본을 설정할 수 없습니다. 활동 만 시작할 수 있습니다. 활동을 추가하여 프로젝트에서 서비스를 시작하고 런처와 주 의도 필터를 활동으로 설정하십시오. 이 같은 실행 활동을 정의

+0

이제 내 새 매니 페스트 파일 – Tara

0

,

<activity 
    android:name=".yourlauncheractivity" 
    android:screenOrientation="portrait" 
    android:theme="@android:style/Theme.Light.NoTitleBar" > 
    <intent-filter> 
     <action android:name="android.intent.action.MAIN" /> 

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

+0

을 어디서 서비스를 설정해야합니까? – Tara

+0

내 전화 번호를 바꿀 수있는 곳이 어디 있습니까? – Tara

+0

응용 프로그램 태그 사이에 넣습니다 –

관련 문제