2
When we receive an email with an attached file and click on this file a list of programs that can open this file is shown. How do I make my app also appear in this list?
I’m sorry, I’m new to the tool and I didn’t see the answer. I changed my code and it still doesn’t work.
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<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.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*"/>
</intent-filter>
</activity>
<activity android:name=".Arquivos"/>
<activity android:name=".NomeSenha" />
<activity android:name=".Bateria" />
<activity android:name=".Tensao"/>
</application>
Artur, I made an edition in the reply based on the information added. I added another link in the documentation that talks about how to allow other applications to start their activity. I tested it here and it works perfectly.
– viana