1

我的新 Android 应用程序可以从 Playstore 下载,但不会出现在我下载的应用程序中。当我从Play商店下载它时,通常有一个“打开”应用程序以及“卸载”的选项,只有卸载按钮可见。(http://i.imgur.com/jNTvJq2.png注意缺少打开按钮)

这是我的清单,在我运行的所有测试中都没有错误。

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

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/iconimage"
        android:label="@string/app_name"
        android:theme="@style/Theme.Sherlock" >

        <activity
            android:name="com.jackattackapps.bigl.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAINACTIVITY" />

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


        <activity
            android:name="com.jackattackapps.bigl.Splashscreen"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.SPLASHSCREEN" />

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

        <activity android:name="com.google.ads.AdActivity"
                      android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>



    </application>

</manifest>

这是应该在应用程序启动时加载的活动。

package com.jackattackapps.bigl;

import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;

public class Splashscreen extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {

    // TODO Auto-generated method stub

    super.onCreate(savedInstanceState);

    setContentView(R.layout.splashscreen);
    Thread timer = new Thread(){
        public void run(){
            try{

                MediaPlayer ourSong = MediaPlayer.create(Splashscreen.this, R.raw.splashsound);
                ourSong.start();
                sleep(2300);

            }
            catch (InterruptedException e){
                e.printStackTrace();

            } finally {

                Intent openMainActivity = new Intent("android.intent.action.MAINACTIVITY");
                startActivity(openMainActivity);

            }
        }
    };
    timer.start();
}

@Override
protected void onPause() {
    // TODO Auto-generated method stub
    super.onPause();
    finish();

}

}

如果需要更多信息,请发表评论,我们将不胜感激。

4

1 回答 1

1

你的启动器活动应该有这个Intent Filter

<intent-filter>
    <action android:name="android.intent.action.MAIN"/>
    <category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
于 2013-08-28T14:00:22.373 回答