BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-21-2009, 05:12 AM   #1
Klanjabrik
Knows Where the Search Button Is
 
Join Date: Nov 2008
Model: 8800
PIN: N/A
Carrier: simulator
Posts: 21
Default Create Web Shortcut Launcher

Please Login to Remove!

Hi guys,

i was creating icon to launch the brwoser and go direct to the homepage, here is the code

Code:
import net.rim.blackberry.api.browser.Browser;
import net.rim.blackberry.api.browser.BrowserSession;
import net.rim.device.api.ui.UiApplication;

public class tempomobile extends UiApplication {
public static void main(String[] args){
tempomobile instance = new tempomobile();
instance.enterEventDispatcher();
}

public tempomobile() {
BrowserSession site = Browser.getDefaultSession();
site.displayPage("http://m.tempointeraktif.com/?install=true");
System.exit(0);
}
}
but when i tested on:
Bold: OS 4.6.0.214 dan 4.6.0.217
Curve 8310: oS 4.5.0.108


the application don't want to work, please help me...
Offline  
Old 01-21-2009, 05:20 AM   #2
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

here is the source of the blackberryforums weblink:
(you can cut the AEP stuff if you do not want a rollover icon)
(don't forget to sign your code)

Code:
package com.blackberryforums.displayforums;

import net.rim.blackberry.api.browser.Browser;
import net.rim.blackberry.api.homescreen.HomeScreen;
import net.rim.device.api.system.Application;
import net.rim.device.api.system.Bitmap;

public class BBForum extends Application {

	public static void main(String[] args) {
		/*
		 * alternate entry point used by the autostart project
		 * to provide a rollover icon
		 */
		if (args.length>0 && "autostartup".equals(args[0])){
			HomeScreen.updateIcon(Bitmap.getBitmapResource("BBForumIcon1.png"), 0);
			HomeScreen.setRolloverIcon(Bitmap
					.getBitmapResource("BBForumIcon2.png"), 0);
		} else {
			Browser.getDefaultSession().displayPage("http://www.blackberryforums.com/");
		}
		

	}

}
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 01-21-2009, 07:46 AM   #3
kellyjdrummer
Thumbs Must Hurt
 
Join Date: Aug 2008
Model: 8520
OS: 5.0.0.509
PIN: N/A
Carrier: TMo
Posts: 176
Default

I'm going to stick with the 'B' key. Works like a champ.
Offline  
Old 01-21-2009, 08:35 AM   #4
guruleenyc
Thumbs Must Hurt
 
guruleenyc's Avatar
 
Join Date: Oct 2006
Location: nYc & CT
Model: 8820
Carrier: AT&T/Sprint/Nextel
Posts: 186
Default

Wirelessly posted (NXTL7520)

What does the code get saved as (I.e. Cod, jad) and how does one sign it? I need create a shortcut to a browser-base app...?
__________________
BES Admin/Nextel 60x 7520's/10x AT&T 8800's/2x BES

"Knowledge breeds confidence and confidence breeds success"
Offline  
Old 01-21-2009, 10:39 AM   #5
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

cod is the executable binary for BB, jad or alx are the descriptor files for either OTA or desktop manager.
you have to register with RIM for a signing key, it is $20 currently. you sign the files either by "build - request signatures" in the JDE or by launching sigtool.jar.
__________________
java developer, Devinto, hamburg/germany
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


DCI FOOT SWITCH PEDAL 2 POSITION 1/PK. SELECT SPS # 9406 picture

DCI FOOT SWITCH PEDAL 2 POSITION 1/PK. SELECT SPS # 9406

$132.99



ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR picture

ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR

$17.99



40A Manual Transfer Switch Line-Off-Gen for (2)120V or (1)240V Device, UL Listed picture

40A Manual Transfer Switch Line-Off-Gen for (2)120V or (1)240V Device, UL Listed

$69.25



ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR picture

ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR

$21.95



NS1-63-NA. EATON /Moeller breaker  MAIN SWITCH  63 AMPS picture

NS1-63-NA. EATON /Moeller breaker MAIN SWITCH 63 AMPS

$375.00



Square D by Schneider Electric 9013FHG12J52M1X Air-Compressor Pressure Switch... picture

Square D by Schneider Electric 9013FHG12J52M1X Air-Compressor Pressure Switch...

$34.71







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.