简体   繁体   English

“使用完整操作”发送未在Android中显示我的应用的短信

[英]“Complete action using” to send SMS not showing my app in android

I know this question is asked many times and I have tried all the solutions also. 我知道这个问题已经问过很多遍了,我也尝试了所有解决方案。 But still my app is not shown in the "Complete action using" list. 但是,我的应用程序仍未显示在“使用完成操作”列表中。

My myapp.manifest code: 我的myapp.manifest代码:

    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.SEND_SMS" />
    <uses-permission android:name="android.permission.CALL_PHONE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.example.contactmanager.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />

                <intent-filter>
                    <action android:name="android.intent.action.VIEW" />
                    <action android:name="android.intent.action.SENDTO" />
                    <action android:name="android.intent.action.SEND" />

                    <category android:name="android.intent.category.DEFAULT" />
                    <category android:name="android.intent.category.BROWSABLE" />

                    <data android:scheme="sms" />
                    <data android:scheme="smsto" />
                </intent-filter>
            </intent-filter>
        </activity>
    </application>

I have set permissions also but still i am missing something.May I need to restart my cell after installing this app?Or any settings i need to change?.Kindly help me to figure out the problem. 我还设置了权限,但仍然缺少任何东西。安装此应用后是否需要重新启动手机?或者需要更改任何设置?请帮助我解决问题。

You have an <intent-filter> in your <intent-filter> , which isn't correct. 您的<intent-filter>中有一个<intent-filter> <intent-filter> ,这是不正确的。 Instead, you should have two <intent-filter> entries - one for the launcher intent and another for SMS sending: 相反,您应该有两个<intent-filter>条目-一个用于启动程序的意图,另一个用于SMS发送:

<activity
        android:name="com.example.contactmanager.MainActivity"
        android:label="@string/app_name" >
        <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.SENDTO" />
            <action android:name="android.intent.action.SEND" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="sms" />
            <data android:scheme="smsto" />
        </intent-filter>
    </activity>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试发送SMS消息会弹出“使用完成操作”对话框,但是消息传递应用不在列表中吗? - trying to send SMS message brings up “Complete action using” dialog, but messaging app isn't in the list? 在Android 4.4上使用非默认短信应用发送短信 - Send SMS message using non default SMS app on Android 4.4 阻止在我的应用中使用“完整操作”? - prevent “complete action using” in my app? Android pushwoosh:从通知(带有触发器)启动应用程序时,如何避免显示“使用以下项完成操作”对话框 - Android pushwoosh: when launch app from notification (with trigger), how to avoid showing “complete action using” dialog 如何从我的应用程序向其他Android设备发送短信 - How to send SMS message to another android device from my app 如何从我的Android应用发送短信? - How can i send SMS from my android app? 我需要将我的语音搜索应用程序添加到 Android 中的“使用完成操作” - I need to add my Voice Search app to “Complete action using” in Android 如何通过“使用完成操作”和“共享通过”菜单截取所有链接并定向到我的Android应用程序? - How to intercept all links and direct to my Android app, via both the “complete action using” and “share via” menus? 我需要将Android带有蓝牙耳机的语音搜索应用添加到“使用中完成操作” - I need to add my Voice Search app to “Complete action using” in Android with Bluetooth headset Android完成动作使用 - Android Complete Action Using
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM