语言

Menu
Sites
Language
DownloadRequest is "undefined and is not constructor"

Hi everyone,

I recently start to develop on the Tizen SDK for wearable, and I've got a problem with DownloadRequest. I'm working on the emulator. 

It seems that the compiler doesn't recognize the Constructor, and nobody never have problem with that. 

Here is my code : 

var url1 ="https://dl.dropboxusercontent.com/u/44098322/hellobank.json";

        var downloadRequest = new tizen.DownloadRequest(url1);

And here is the error I get everytime

index.html (73) :TypeError: 'undefined' is not a constructor (evaluating 'new tizen.DownloadRequest(url1)')

index.html (73) :TypeError: 'undefined' is not a constructor (evaluating 'new tizen.DownloadRequest(url1)')

 

Have anyone heard about this ? Found a solution ? Thanks

 : 

 

响应

3 回复
AVSukhov

Hello,

As I understand Tizen wearable SDK has no Download API.

Please see documentation.

Tristan LE GUILLOU

Hi, thanks for your response.

But then what's that ? https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.device.apireference/tizen/download.html#::Download::DownloadManagerObject

 

AVSukhov

Documentation for Tizen Wearbale you can find in IDE -> Help -> Help Contents