This is the code I\'m currently using
String iosjiUrl = \"http://modapps.com/NotoCoji.ttf\";
DownloadManager.Request request
Use a BroadcastReceiver
to detect when the download finishes:
public class DownloadBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (DownloadManager.ACTION_DOWNLOAD_COMPLETE.equals(action)) {
//Show a notification
}
}
}
and register it in your manifest: