BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-09-2007, 05:28 PM   #1 (permalink)
New Member
 
Join Date: May 2005
Model: 7520
Carrier: nextel
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default GPSDEMO in JDE 4.1

Please Login to Remove!

Hi!
Does anyone have a compiled and distributable (signed) version of GPSDEMO that comes with the JDE? I've got a backend server set up which works with MOLOGOGO's alt url mode and would really like to try the GPSDEMO on a live bberry. From what I can see from the emulator, it looks pretty cool. Forgive me if I'm posting in the wrong area.
Thanks!

BTW, running Sprint/Nextel 7520 with OS4.1, if it matters.

Last edited by Wrenfroe : 05-09-2007 at 05:30 PM.
Offline  
Old 05-10-2007, 08:13 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Mar 2007
Model: 8800
Carrier: The New ;) AT&T
Posts: 60
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Wrenfroe View Post
Hi!
Does anyone have a compiled and distributable (signed) version of GPSDEMO that comes with the JDE? I've got a backend server set up which works with MOLOGOGO's alt url mode and would really like to try the GPSDEMO on a live bberry. From what I can see from the emulator, it looks pretty cool. Forgive me if I'm posting in the wrong area.
Thanks!

BTW, running Sprint/Nextel 7520 with OS4.1, if it matters.
I don't think there is anything in there that needs to be sign. There are some hardcoded settings for the backend server though, so I don't think someone else compiling it for you would help....
Offline  
Old 05-10-2007, 09:45 AM   #3 (permalink)
New Member
 
Join Date: May 2005
Model: 7520
Carrier: nextel
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey, thanks for replying. Maybe I'm doing something else wrong then, but when I compile I get the following:

Warning!: Reference to class: net.rim.device.api.system.PersistentObject requires signing with key: RIM Runtime API
Warning!: Reference to class: net.rim.device.api.system.PersistentStore requires signing with key: RIM Runtime API

It compiles fine and runs on the simulator, however on my bberry, I get:

Error starting gpsdemo: Module 'gpsdemo' attempts to access a secure API

This is what led me to believe it needs signing, any other pointers would be appreciated, I'm only in the first week with the bberry JDE.

Also, the only variable that I (think I) need to change is the server url, and it looks like that's available from the 'options' menu.

Thanks!
Offline  
Old 05-10-2007, 01:36 PM   #4 (permalink)
New Member
 
Join Date: May 2005
Model: 7520
Carrier: nextel
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Disregard, I gutted the routines that requiring signatures and have seen what I needed to see.
Thanks.
Offline  
Old 05-10-2007, 02:04 PM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Mar 2007
Model: 8800
Carrier: The New ;) AT&T
Posts: 60
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Wrenfroe View Post
Hey, thanks for replying. Maybe I'm doing something else wrong then, but when I compile I get the following:

Warning!: Reference to class: net.rim.device.api.system.PersistentObject requires signing with key: RIM Runtime API
Warning!: Reference to class: net.rim.device.api.system.PersistentStore requires signing with key: RIM Runtime API

It compiles fine and runs on the simulator, however on my bberry, I get:

Error starting gpsdemo: Module 'gpsdemo' attempts to access a secure API

This is what led me to believe it needs signing, any other pointers would be appreciated, I'm only in the first week with the bberry JDE.

Also, the only variable that I (think I) need to change is the server url, and it looks like that's available from the 'options' menu.

Thanks!
Sorry Wrefroe,

I missed those api's. I tried signing the app, but either you can't sign the demo apps or something is afoul with my signature tool...
Offline  
Old 05-12-2007, 02:28 PM   #6 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2007
Model: 8800
PIN: N/A
Carrier: telus
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just for the archives
being a bit of a newbie to bb / midp I also had issues with gpsdemo
yah i gutted the ref to PersistentObject and that got around the signing issue but then after i did a ota install the app could not resolve the reference to com.rim.samples.device.resource.*;

I assumed that the bb 4.1 compiler was smart enuff to pkg all the refs up from the resource dir into a single cod file but I guess it does not work that way

I had to do an ota of resources/com_rim_demores.jad, com_rim_demores.cod

then the gpsdemo ran fine ...

Last edited by tclark : 05-13-2007 at 08:46 AM.
Offline  
Old 09-21-2007, 11:16 AM   #7 (permalink)
New Member
 
Join Date: Sep 2007
Location: New York
Model: 8800
PIN: N/A
Carrier: AT&T
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default GPSDemo

Hello, I am acatching up on this thread late. Does this GPSDemo application work on the 8800? I am looking to get a simple location log on an AT&T/Cingular 8800, ideally saved to a log on the flash card... -lj
Offline  
Old 04-26-2008, 11:31 AM   #8 (permalink)
iox
New Member
 
Join Date: Mar 2008
Model: 8300
PIN: N/A
Carrier: ATT
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm a beginer in Java but Following the first post of Wrenfroe, I'm having same problem trying to save information in a BlackBerry 8200 and using JDE 4.3. I want to save some basic information and I getting

Warning!: Reference to class: net.rim.device.api.system.PersistentObject requires signing with key: RIM Runtime API

My code goes list this.

import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.i18n.*;
import net.rim.device.api.util.*;
import net.rim.device.api.system.*;
import javax.microedition.io.*;
import java.io.*;
import java.util.Vector;
import javax.microedition.*;
import javax.microedition.location.*;

// "so you have something to save" <-- Coverted to Long
// 0x8983707cbcf0fdc3L
private static Vector _data;

private static net.rim.device.api.system.PersistentObject store;
static {
store = net.rim.device.api.system.PersistentStore.getPersi stentObject( 0x8983707cbcf0fdc3L );
/* _data = (Vector)store.getContents();
synchronized(store){
if (_data == null){
_data = new Vector();
store.setContents(_data);
store.commit();
}
}*/
}
Offline  
Old 04-28-2008, 10:26 AM   #9 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

It just means that if you want to use your code on a real terminal you have to sign your code.

It's not an programming error
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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