Author Message
riza87
Joined: Sep 29, 2017
Messages: 39
Offline
Hi All,

how to implement auto configuration using a web address, username and password especially on the android platform,
I have a code like this (like forum https://www.devconnectprogram.com/forums/posts/list/22003.page),

my code :
https://paste.co.id/rHSlnrbreL

.the problem is I don't know what to write in the downloadFile method and is the code that I wrote is implemented correctly?
Please help..

Thanks and Regards,

Jon

ware16.avaya.com
Joined: Sep 23, 2019
Messages: 80
Offline
Hi,

Thanks for your query!

Once the file is downloaded successfully (please check onSuccess() in downloadFile method) you need to parse the file and apply settings.

You can also use RetrieveTextFromUrl() method to retrieve settings directly from the URL.


Thanks,
Avaya DevConnect Team
riza87
Joined: Sep 29, 2017
Messages: 39
Offline
Hi,

thank you for your answer,

After checking the file in onSuccess() and have succeeded what are the next steps
And how to use retrieveTextFromURL () for settings directly from the URL. I hope you can share your code for us to discuss
and I hope for your help because I am in an emergency to resolve this

Thanks and Regards,

Jon
ware16.avaya.com
Joined: Sep 23, 2019
Messages: 80
Offline
Hi,

I am afraid that we have sample code. Still, I will try to get the sample code if possible.

As explained earlier, you can either use "RetrieveTextFromUrl" or the existing file download mechanism. In both cases, you will get the configuration details which you need to parse and apply settings.


Thanks,
Avaya DevConnect Team
Go to:   
Mobile view