Java 密码广播接收器根本不工作

Java 密码广播接收器根本不工作,java,android,broadcastreceiver,Java,Android,Broadcastreceiver,我正在开发一个应用程序(主要用于私人用途),我想在其中实现一个密码系统 我已经设置了以下广播接收器,但是当我输入*.*.\887755.*.*.时,它不会启动接收器 为什么会这样?谁能告诉我问题出在哪里 AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" packag

我正在开发一个应用程序(主要用于私人用途),我想在其中实现一个密码系统

我已经设置了以下广播接收器,但是当我输入
*.*.\887755.*.*.
时,它不会启动接收器

为什么会这样?谁能告诉我问题出在哪里

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.liamwli.spyware.usertrack"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="7"
        android:targetSdkVersion="10" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".ProcessSMS"
            android:label="@string/app_name" >
        </activity>
        <activity
            android:name=".ActivityConfig"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="com.liamwli.spyware.usertrack.ACTIVITYCONFIG" />
            </intent-filter>
        </activity>

        <receiver android:name=".CodeReceive" >
            <intent-filter>
                <action android:name="android.provider.Telephony.SECRET_CODE" />

                <data
                    android:host="887755"
                    android:scheme="android_secret_code" />
            </intent-filter>
        </receiver>
    </application>

</manifest>

我没有收到任何logcat输出,我已经尝试向接收器添加
android:exported=“true”
,但是没有任何区别。

尝试使用完整的包名

<receiver android:name="com.something.something.CodeReceive" >

我发现这是由于安卓3.1的变化+

在Android 3.1+上启动应用程序之前,广播接收器将无法工作,因此此应用程序无法工作


绕过此问题的方法是将其作为系统应用程序安装,或允许用户手动启动,然后隐藏图标。

没有任何区别:(你的代码在我的手机上运行得很好。在拨号器中键入*#*#887755#*##*#################会显示一个祝酒词。好吧,奇怪。对我不起作用。你
<receiver android:name="com.something.something.CodeReceive" >