Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Tom74
Posts: 8
Registered: ‎12-04-2012
My Device: Curve 9300
My Carrier: Telecom

Can't launch app on device

Hi, I have an issue I can't solve... I've compiled signed and loaded on my device (blackberry Curve with 6.0 OS) an app compiled with jdr 4.6 Environment within Eclipse (so it should work..); Anyway when I click on it on my device nothing happens.... can somebody help me ? Thanks Tom
Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Can't launch app on device

Hi @Tom74

 

In the device, click on alt + 'l' + 'g' + 'l' + 'g'.

 

This should open the device log and give you some more info on the problem.

 

E.

 

 

Please use plain text.
New Contributor
Tom74
Posts: 8
Registered: ‎12-04-2012
My Device: Curve 9300
My Carrier: Telecom

Re: Can't launch app on device

Ok I did open log...and this is what I see:

 

:AppManager: foreground is requested

 AppManager:foreground is set:net_rim_event_viewer_app(333)

 a UI: GS-D 556cf0a9

 

Please can u tell what does it mean ? I'm sorry but i'm new in Backberry and java programming

 

Thanks

Please use plain text.
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900
My Carrier: MTN

Re: Can't launch app on device

It would be easier to assist if you added a code snippet of the initilization of your app. Maybe there is something that you're missing.

 

Also, why would you compile for 4.6 to run on an OS 6 device ...

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Can't launch app on device

Before adding this code, can you confirm that this code works fine on a Simulator, preferrably a Simulator for the same device you are trying it on?

 

Then try debugging on device - that way you get to see the log and you get to stop your application.  The process of debugging on device is described here:

http://supportforums.blackberry.com/t5/Java-Development/How-Do-I-Debug-on-a-Live-Device/ta-p/446842

 

If this doesn't help you, then please post your 'main' method. 

 

Please use plain text.
New Contributor
Tom74
Posts: 8
Registered: ‎12-04-2012
My Device: Curve 9300
My Carrier: Telecom

Re: Can't launch app on device

The app works perfectly on simulator of same device i'm using..i'm gonna post my main method in a few hours

thanks


 

Please use plain text.
New Contributor
Tom74
Posts: 8
Registered: ‎12-04-2012
My Device: Curve 9300
My Carrier: Telecom

Re: Can't launch app on device

Ok here is my Main methond and the GPSDemo called my it

 

public static void main(String[] args)

{

new GPSDemo().enterEventDispatcher();

}

 

 

// Constructor privateGPSDemo()

{

// Used by waypoints, represents the time since the last waypoint._startTime = System.currentTimeMillis();

 

_altitudes = newfloat[GRADE_INTERVAL];

 

_horizontalDistances = newfloat[GRADE_INTERVAL];

 

_messageString = newStringBuffer();

 

GPSDemoScreen screen =

newGPSDemoScreen();

screen.setTitle("Extreme Gps Tracker");

 

_status = new EditField(Field.NON_FOCUSABLE);

screen.add(

_status);

 

// Try to start the GPS thread that listens for updates.if( startLocationUpdate() )

{

// If successful, start the thread that communicates with the server.

startServerConnectionThread();

}

// Render our screen.

pushScreen(screen);

}

Please use plain text.