2012-12-14 52 views
-1

应用程序已成功安装,但未在模拟器上启动此处我正在使用服务,可能是我在启动服务时出错了我正在放置清单和控制台详细信息任何一个帮助启动我的应用程序应用程序已安装但未在我的Android设备中说明

<?xml version="1.0" encoding="utf-8"?> 
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" 
     android:installLocation="auto" 
     package="fi.harism.wallpaper.flowers" 
     android:versionCode="10" 
     android:versionName="3.2" > 

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

     <uses-feature android:glEsVersion="0x00020000" /> 
     <uses-feature android:name="android.software.live_wallpaper" /> 

     <application 
      android:icon="@drawable/ic_application" 
      android:label="@string/app_name" > 
      <service 
       android:name=".FlowerService" 
       android:description="@string/description" 
       android:label="@string/app_name" 
       android:permission="android.permission.BIND_WALLPAPER" > 
       <intent-filter> 
        <action android:name="android.service.wallpaper.WallpaperService" /> 
       </intent-filter> 

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

      <activity 
       android:name=".prefs.FlowerPreferenceActivity" 
       android:exported="true" 
       android:label="@string/preferences_name" /> 
     </application> 

    </manifest> 

    [2012-12-14 14:33:30 - flowers] Android Launch! 
    [2012-12-14 14:33:30 - flowers] adb is running normally. 
    [2012-12-14 14:33:30 - flowers] No Launcher activity found! 
    [2012-12-14 14:33:30 - flowers] The launch will only sync the application package on the device! 
    [2012-12-14 14:33:30 - flowers] Performing sync 
    [2012-12-14 14:33:30 - flowers] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD_4.0' 
    [2012-12-14 14:33:30 - flowers] Uploading flowers.apk onto device 'emulator-5554' 
    [2012-12-14 14:33:31 - flowers] Installing flowers.apk... 
    [2012-12-14 14:33:37 - flowers] Success! 
    [2012-12-14 14:33:37 - flowers] \flowers\bin\flowers.apk installed on device 
    [2012-12-14 14:33:37 - flowers] Done! 
+0

我导入了3个android动态墙纸项目有同样的问题,但其他项目工作正常。 – Miracle

+0

你真的期望它做什么? – njzk2

+0

我试图做动态壁纸的例子。 – Miracle

回答

1

里面的意图过滤器应用此代码。

<activity 
    android:name=".prefs.FlowerPreferenceActivity" 
    android:exported="true" 
    android:label="@string/preferences_name"> 
<intent-filter> 
    <action android:name="android.intent.action.MAIN" /> 
    <category android:name="android.intent.category.LAUNCHER" />  
</intent-filter> 
</activity> 
+0

仍然没有启动 – Miracle

+1

检查更新的答案,也是壁纸不是一个活动,你需要长按主屏幕并启动安装的壁纸 – nandeesh

+0

显示错误 - >元素必须是元素的直接子元素 – Miracle

相关问题