12-07-2008 03:44 PM
I'm not sure where to post this but I'm trying to place an icon on my blackberry. When click I would like it to go to a website. I can't find a tutorial or anything on this. Can someone provide some help on this?
Thanks
Solved! Go to Solution.
12-07-2008 05:52 PM
12-07-2008 07:22 PM - edited 12-07-2008 07:23 PM
check this thread here on another forum, you might inquire with the user known as 7100simpleisbetter.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
12-07-2008 08:44 PM
Hmm although I thank you for you help, I was looking to learn how to create them myself. I want to create a few different ones and it would be more useful if I could do it myself.
Thanks
12-07-2008 10:02 PM
I understand that, it is a very simple process--I am told. I just know that person could advise you what to do.
You can also check with the user here on this Forum "simon hain", I have had him create a webshortcut for me in the past.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
12-07-2008 10:28 PM - edited 12-07-2008 10:29 PM
create a custom png that is (I believe) 42x36.
use the java code below to create a web launcher application
----------------
package yourpackagehere;
import net.rim.blackberry.api.browser.Browser;
import net.rim.blackberry.api.browser.BrowserSession;
import net.rim.device.api.ui.UiApplication;
/**
*
*/
class WebLink extends UiApplication{
public static void main(String[] args){
WebLink instance = new WebLink();
instance.enterEventDispatcher();
}
public WebLink() {
BrowserSession site = Browser.getDefaultSession();
site.displayPage("http://www.yourURLhere.com") ;
System.exit(0);
}
}
--------------
if you're using the BlackBerry JDE, once you've created your project and have this java file in there, right-click to "add file to project". Then add the png file (it will create an "img" folder). Now, right-click the png in the jde now, and select "properties", then click "use as application icon". I believe you also select "file is generated".
I'm still a newbie too, but this code helped me out quite a bit.
12-08-2008 03:56 AM
12-10-2008 01:43 AM
Shinebox wrote:create a custom png that is (I believe) 42x36.
use the java code below to create a web launcher application
----------------
package yourpackagehere;
import net.rim.blackberry.api.browser.Browser;
import net.rim.blackberry.api.browser.BrowserSession;
import net.rim.device.api.ui.UiApplication;
/**
*
*/
class WebLink extends UiApplication{
public static void main(String[] args){
WebLink instance = new WebLink();
instance.enterEventDispatcher();
}
public WebLink() {
BrowserSession site = Browser.getDefaultSession();
site.displayPage("http://www.yourURLhere.com") ;
System.exit(0);
}
}--------------
if you're using the BlackBerry JDE, once you've created your project and have this java file in there, right-click to "add file to project". Then add the png file (it will create an "img" folder). Now, right-click the png in the jde now, and select "properties", then click "use as application icon". I believe you also select "file is generated".
I'm still a newbie too, but this code helped me out quite a bit.
Message Edited by Shinebox on 12-07-2008 10:29 PM
Hmm I tried this code and it loaded up the website but it didn't direct my screen to the browser. I had to manually open up the browser. Is there something I have to call to open the browser?
12-10-2008 12:34 PM
I have had two problems with this sort of code depending on the OS involved.
a) For OS 4.2, the Firewall screen that you need to check to allow access is not displayed.
b) For OS 4.5, the Browser Session was never started (though the URL seemed to make through to the browser).
Are either of these your problem?
12-11-2008 02:12 PM
peter_strange wrote:I have had two problems with this sort of code depending on the OS involved.
a) For OS 4.2, the Firewall screen that you need to check to allow access is not displayed.
b) For OS 4.5, the Browser Session was never started (though the URL seemed to make through to the browser).
Are either of these your problem?
I'm not sure what the problem was other then the JDE just not supporting vista too well. I had so many problems using Vista, then I got the idea to use my virtural xp machine and everything worked just fine. Same with code signing it wouldn't work in vista but worked just fine in xp.