在Android 4.4.2上,当我的应用程序启动时其启动器图标出现在状态栏中并在主活动期间保持,直到结束()没有被叫。有没有办法让它出现在状态栏中? (我正在使用GCM通知,并且一个到达时彼此相邻的两个几乎相同的图标非常令人困惑,不用说它需要不必要的空间)。请注意,它不会发生在以前的Android版本中。下面是我的 AndroidManifest.xml 。
感谢您的任何建议。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.twentydeka.itrash.android"
android:versionCode="0"
android:versionName="0" >
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="9" />
<supports-screens android:anyDensity="true"/>
<!-- The RedLaser SDK requires that these permissions be set -->
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Additional permission required by GCM and OAuth -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<permission android:name="com.twentydeka.itrash.android.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.twentydeka.itrash.android.permission.C2D_MESSAGE" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="20deka"
android:name="com.twentydeka.itrash.android.app.ItrashApplication"
android:theme="@style/itrash_theme" >
<!-- activities -->
<activity
android:name="com.twentydeka.itrash.android.activity.MainActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustPan|stateHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable"
android:resource="@xml/searchable"/>
</activity>
<activity
android:name="com.twentydeka.itrash.android.activity.product.BarcodeScannerActivity"
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation" >
</activity>
<activity android:name="org.acra.CrashReportDialog"
android:theme="@android:style/Theme.Dialog"
android:launchMode="singleInstance"
android:excludeFromRecents="true"
android:finishOnTaskLaunch="true" >
</activity>
<!-- services -->
<service android:name="com.twentydeka.itrash.android.service.ItrashHttpClientService"
android:exported="false" >
</service>
<service android:name="com.twentydeka.itrash.android.service.ItrashGCMSyncService"
android:exported="false" >
</service>
<service android:name="com.twentydeka.itrash.android.service.ProductSyncService"
android:exported="false" >
</service>
<service android:name="com.twentydeka.itrash.android.service.ConsumerHealthCheckService"
android:exported="false" >
</service>
<!-- providers -->
<provider android:name="com.twentydeka.itrash.android.contentprovider.ItrashContentProvider"
android:authorities="com.twentydeka.itrash.android.contentprovider"
android:exported="false" >
</provider>
<!-- receivers -->
<receiver android:name="com.twentydeka.itrash.android.receiver.GCMSyncBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.twentydeka.itrash.android" />
</intent-filter>
</receiver>
<receiver android:name="com.twentydeka.itrash.android.receiver.ConsumerHealthCheckBroadcastReceiver" />
</application>
</manifest>