[英]“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.