Page 1 of 1

Advanced Download Manager Pro intent help

Posted: 28 Jul 2018 13:12
by anuraag
can anyone tell me what should be extra field in automagic for batch adding list? I am successfully able to create single download links.
I am using ADM Pro (com.dv.adm.pay)

Here is translated documentation

Code: Select all

// ------ creating 
Intent intent = new Intent("android.intent.action.MAIN");
intent.setClassName("com.dv.adm", "com.dv.adm.AEditor"); // for the PRO version "com.dv.adm.pay", for DVGet "com.dv.get" and "com.dv.get.pro" 

// ------ 1 --- single addition with by opening the 
intent.putExtra("android.intent.extra.TEXT", "htt_p://example.com/path/name.ext");
// optional 
intent.putExtra("com.android.extra.filename", "name.ext"); 

// ------ 2 --- batch adding without opening the Editor window
intent.putExtra("com.dv.get.ACTION_LIST_ADD", "htt_p://example.com/path/name.ext"); // or "url1 <line> url2 ...", or "url1 <info> name_ext1 <line> ..." 
// optionally 
intent.putExtra("com.dv.get.ACTION_LIST_PATH", "sdcard/path/folder"); // folder for files (by default "Settings - Download - Folder for files") 
intent.putExtra("com.dv.get.ACTION_LIST_OPEN", true)); // open the activation with the download list (default is false) 
Original Document just in case
https://pastebin.com/ScDNr2if

Re: Advanced Download Manager Pro intent help

Posted: 29 Jul 2018 19:23
by Martin
Hi

The description sounds like you should add the extras like this:

Code: Select all

putString("com.dv.get.ACTION_LIST_ADD", "htt_p://example.com/path/name.ext");

//optionally
putString("com.dv.get.ACTION_LIST_PATH", "sdcard/path/folder");
putBoolean("com.dv.get.ACTION_LIST_OPEN", true);
However the underscore in the htt_p looks suspicious to me. It should probably read "http://example.com/path/name.ext".

Regards,
Martin