我有一个应用程序,它安装在用户的手机,并保持隐藏的应用程序抽屉,实现这一目标只是一个删除intent-filter标签,这项工作对于ICS 4.0以下的所有内容都适用,有什么帮助让它在ICS中工作的?从抽屉中删除应用程序图标不工作在Android 4.1
这个作品在姜饼和Froyo的罚款,开始我的活动,并不断从抽屉中隐藏的应用程序图标,
<activity
android:label="@string/app_name"
android:name=".DashboardActivity" >
</activity>
但在ICS不工作,如果我删除此行的活动不会启动,任何想法为什么?
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
这是代码为我的拨号键盘监听
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
public class DialpadLauncher extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Bundle bundle = intent.getExtras();
if (null == bundle)
return;
// outgoingNumber=intent.getStringExtra(Intent.ACTION_NEW_OUTGOING_CALL);
String phoneNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
if (phoneNumber.equals("#00008#")){
//START APPLICATION HERE
//Toast.makeText(context,"DIALED: " + phoneNumber, Toast.LENGTH_LONG).show();
try {
Intent activity = new Intent(context, DashboardActivity.class);
activity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(activity);
setResultData(null);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// catch not found (only works on HTC phones)*/
}
}
}
你打算如何开始它? – FoamyGuy
我有一个拨号盘的监听器,如果我拨打*#00008#*活动来到前面,但这不会发生在4.0 – RonEskinder
上发布您的拨号器代码的监听器,这可能有助于修复它。 – FoamyGuy