I inserted my app in the share list like bellow:
    <activity
        android:name="xxxx.MainActivity"
        android:configChanges="keyboard|keyboardHidden|screenLayout|uiMode|orientation|screenSize|smallestScreenSize"
        android:label="@string/app_name"
        android:launchMode="singleTask"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustPan">
        <meta-data
            android:name="android.app.shortcuts"
            android:resource="@xml/shortcuts" />
        <intent-filter>
            <action android:name="android.intent.action.SEND" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:mimeType="*/*" />
        </intent-filter>
    </activity>
And I get the value from Intent like bellow:
@Override
protected void onNewIntent(Intent intent) {
    super.onNewIntent(intent);
    if (getIntent().getExtras() != null) {
        Intent intents = getIntent();
        String action = intents.getAction();
        String type = intents.getType();
        if (action != null && type != null) {
            String receivedUri = intents.getParcelableExtra(Intent.EXTRA_STREAM).toString();
        }
    }
}
Problem
But when my application is in recent I don't get any value from intent.What can I do?
 
    