在Android上以编程方式输入类似*#*#0011#*#*的密码

时间:2013-05-24 08:30:48

标签: android android-source

我已尝试在

上发布的解决方案

Programmatically enter secret code like *#*#4636#*#* on Android 我的密码#*# 0011##*喜欢

Intent intent = new Intent(Intent.ACTION_DIAL);    
intent.setData(Uri.parse("tel:*#*#0011#*#*"));
startActivity(intent); 

这不起作用!

还写作: -

<action android:name="android.provider.Telephony.SECRET_CODE"/> 
<data android:scheme="android_secret_code" android:host="0011" />

在清单中也无法正常工作

不幸的是,上述解决方案没有提供任何结果并且坚持拨号屏幕。 我有什么遗漏的东西吗?

1 个答案:

答案 0 :(得分:0)

如果你看到你提到的帖子中的答案,你会注意到你没有使用Intent.ACTION_DIAL,但是:

Intent in = new Intent(Intent.ACTION_MAIN);
in.setClassName("com.android.settings", "com.android.settings.TestingSettings");
startActivity(in);
相关问题