【问题标题】:Beta App Does Not Launch Or Create ShortcutBeta 版应用程序无法启动或创建快捷方式
【发布时间】:2014-01-09 01:05:51
【问题描述】:

我刚刚将我的应用作为测试版发布到 Play 商店。我收到了下载链接并为 beta 测试人员创建了 google 组...我可以使用该链接安装应用程序,但没有为应用程序创建快捷方式,也没有启动应用程序。我查看了应用程序管理器并能够找到我的应用程序,但很明显我的应用程序从未运行过。我尝试卸载/重新安装,但没有运气......

在三星 Galaxy 3 和 Droid Razr M 上试用过

我尽可能按照 Google Checklist 进行启动,并且相信我已正确签名和导出应用程序,因为我创建了密钥库密码、别名、将 .apk 保存到某个位置并将 .apk 上传到我的开发者控制台

另外,我相信我不再需要获取 Google Maps API 的发布密钥,因为由于更新,我可以使用调试密钥.....如果我错了请告诉我

请注意,通过eclipse调试时,应用程序一直运行良好

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

<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="15" />

<permission
    android:name="com.alpha.boozl.permission.MAPS_RECEIVE"
    android:protectionLevel="signature" />

<uses-permission android:name="com.alpha.boozl.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />

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

    <!-- <uses-library android:name="com.google.android.maps" /> -->

    <activity
        android:name="com.alpha.boozl.Main"
        android:configChanges="keyboardHidden|orientation"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateHidden" >
        <intent-filter>
            <action android:name="com.alpha.boozl.MAIN" />

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

    <!-- I changed this part for the Search activity instead of the normal Search_Page -->

    <activity
        android:name="com.alpha.boozl.RandomAlc"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="com.alpha.boozl.RANDOM" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.alpha.boozl.Search"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="com.alpha.boozl.SEARCH" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.alpha.boozl.DealPage"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="com.alpha.boozl.DEALPAGE" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.alpha.boozl.StorePage"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="com.alpha.boozl.STOREPAGE" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.alpha.boozl.Map"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="com.alpha.boozl.MAP" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.alpha.boozl.TapDealTest"
        android:label="TapDeal"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateHidden" >
        <intent-filter>
            <action android:name="com.alpha.boozl.TAPDEALTEST" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.alpha.boozl.StoreSearch"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="com.alpha.boozl.STORESEARCH" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.alpha.boozl.MainCall"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="com.alpha.boozl.MAINCALL" />

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

    <meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />

    <meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="Left Blank" />
</application>

【问题讨论】:

    标签: android google-play manifest launch


    【解决方案1】:

    com.alpha.boozl.Main 上的意图过滤器不正确。

    应该是

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

    您有com.alpha.boozl.MAIN 而不是正确的操作android.intent.action.MAIN

    我不确定您是否在使用它们,但您不必在每个 Activity 上定义一个 Intent 过滤器,除非您在其中明确处理 Intents。 Android 会在调用startActivity() 时自动处理所需的意图。

    【讨论】:

    • 非常感谢!像魅力一样工作
    猜你喜欢
    • 1970-01-01
    • 2012-10-29
    • 1970-01-01
    • 2019-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-14
    • 1970-01-01
    相关资源
    最近更新 更多