Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
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: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: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