就是STK这个工具包。
闪烁的感觉是,系统调出正确的activity后,很快返回主界面,再很快的又调出activity 。
我抓了两次log ,大家看有什么意见:闪:
I/ActivityManager(  146): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.stk/.StkLauncherActivity bnds=[245,370][355,488] }
I/ActivityManager(  146): Starting activity: Intent { act=android.intent.action.VIEW flg=0x14000000 cmp=com.android.stk/.StkMenuActivity (has extras) }
W/InputManagerService(  146): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4519fe58
I/ActivityManager(  146): Displayed activity com.android.stk/.StkMenuActivity: 418 ms (total 803174 ms)不闪:
I/ActivityManager(  146): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.stk/.StkLauncherActivity bnds=[245,370][355,488] }
I/ActivityManager(  146): Starting activity: Intent { act=android.intent.action.VIEW flg=0x14000000 cmp=com.android.stk/.StkMenuActivity (has extras) 

解决方案 »

  1.   

    闪烁是activity已经创建出来了,又重新显示。
    不闪是第一次activity new intent的时候。
    看你界面做了什么显示的处理吧
      

  2.   

     这是 manifest : 
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.stk"
    android:sharedUserId="android.uid.phone">    <original-package android:name="com.android.stk" />    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
        <uses-permission android:name="android.permission.GET_TASKS"/> <application android:icon="@drawable/ic_launcher_sim_toolkit"
    android:label="@string/app_name"
    android:clearTaskOnLaunch="true"
    android:process="com.android.phone"> <activity android:name="StkLauncherActivity"
    android:label="@string/app_name"
    android:enabled="false" >
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity> <activity android:name="StkMenuActivity"
                 android:launchMode="singleTop">          <intent-filter>
                 <action android:name="android.intent.action.VIEW" />
                 <action android:name="android.intent.action.PICK" />
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
             </activity> <activity android:name="StkInputActivity">
    <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <action android:name="android.intent.action.EDIT" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>与这个android:launchMode="singleTop" 有关系么,
    我比较少接触UI ,还恳请详解