This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DfuServiceInitiator setZip - how to translate Uri from google drive API

Hi,

I'm implementing a simple DFU for my device. The device has the buuttonless dfu rom and bootloader. I working on my android app now. 

I want to be able to read the rom file (zip) from my drive. And I thought I could do this using only the api_key. At least I can get the file using the browser or in the code as well. I just use Vollley:

StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
response -> {...

The url I have is in this form

https://www.googleapis.com/drive/v3/files/FILE_IDc?key=MY_API_KEY&alt=media


Can I somehow translate it to a form acceptable by the setZip method? It expects URI content.
Do I really have to download the file?

regards,

Related