01-21-2013 01:23 AM
From my App i am downloading some file,which i am giving to browser session object to download.It downloads fine.Now i want to know whether is it possible to capture,if download has been successful,i mean when it shows the OK button in th browser,i can perform some task from my main screen class.
01-21-2013 03:26 AM
can u explain more !!!!
01-21-2013 03:38 AM
Surely,actually from my app i am dowloading certain third party app.So i give the download link,which points to a jad file to the browser.It downloads fine and shows an OK message.What i want now is that when i click the OK in browser,i should be able to perform some specific task
01-21-2013 04:36 AM
I presume you are sending this request to the Browser, which is running the download independently of your application?
If so, I am not aware of any way you can interact with the Browser and have it tell you when the download is complete. Nor am I aware of a way of listening for applications added to the device. So I think in this circumstance the only option is to look for the application so you can check to see if it is there in some way. If it is your application then you should be able to perform some interaction.
Alternatively you could download it yourself?
01-21-2013 04:37 AM
how to download it myself,without the browser?
01-21-2013 04:40 AM - edited 01-21-2013 06:50 AM
Look at this KB article:
Search the forum too - there have been other questions about downloading applications.
01-21-2013 05:43 AM
Btw i have now tried with browserfield,its downloading fine in simulator,but in the real device it throws content type error,i am setting the content type like this
BrowserFieldConfig _bfConfig = new BrowserFieldConfig();
_bfConfig.setProperty("Content-Type", "text/vnd.sun.j2me.app-descriptor");
_bfConfig.setProperty("Content-Type", "application/vnd.rim.cod");
BrowserField browser = new BrowserField(_bfConfig);
add(browser);
browser.requestContent(Url);Is it the correct way to set the content type for downloading jad file in browserfield
01-21-2013 05:58 AM
Any idea?