我为android平台制作了一个firebase聊天应用程序。我有另一个应用程序来加密文本,并使用意图使用其他或第三方应用程序发送它。但是当我点击后一个应用程序中的发送按钮时,应用程序列表似乎会选择我想要发送加密文本的应用程序,但在该列表中,我的firebase聊天应用程序不会作为选择。任何人都可以帮助我吗? 清单文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.firebase.udacity.friendlychat">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.google.firebase.udacity.friendlychat.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
答案 0 :(得分:0)
为了让您的应用在菜单中列出,您需要拥有一个带有意图过滤器的活动来捕捉SEND操作。在你的清单中,你只有一个发射器活动。