12-04-2012 05:26 PM
12-04-2012 05:35 PM
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.
12-04-2012 06:34 PM
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
12-05-2012 02:21 AM
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 ...
12-05-2012 04:27 AM
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-Develo
If this doesn't help you, then please post your 'main' method.
12-05-2012 10:05 AM
The app works perfectly on simulator of same device i'm using..i'm gonna post my main method in a few hours
thanks
12-05-2012 10:18 AM
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);
}