Go foreground when DownloadManager notification clicked

Viewed 121

I have a long lasting download using Android's native DownloadManager API. I've registered the broadcast receivers at my AndroidManifest.xml like:

<receiver
    android:name=".services.DownloadNotificationClickedReceiver"
    android:exported="false">
    <intent-filter>
        <action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED" />
    </intent-filter>
</receiver>

Now I wonder: how, at DownloadNotificationClickedReceiverclass, would I request my application to go foreground (only) if it was put in background by the user and how to specify the activity it should go (my downloads activity).

0 Answers
Related