Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Trekbuddy on Blackberry 8800 ?!?
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Devices
View previous topic :: View next topic  
Author Message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5665

PostPosted: Fri Jul 27, 2007 10:06 pm    Post subject: Reply with quote

It means that TrekBuddy did not detect FileConnection API (JSR-75) support on BB 8800, which is a surprise to me... What OS version are you running in the device?
Back to top
View user's profile Send private message
vlast3k



Joined: 27 Jul 2007
Posts: 13

PostPosted: Sat Jul 28, 2007 4:34 am    Post subject: Reply with quote

It is: 4.2.168.

When I first started the application, it asked me to open a file on e:\xxx\yyy\ whatever, and i accepted it, but i do not have such a folder.
Is it possible that based on this entry the application now thinks that i do not have folders at all?

I have written a small j2me application for the BB myself and it uses the FileSystemRegistry.listRoots() method and it seems to work. At least it shows two roots - one for the memory card and one for the internal memory.

In addition, what is the best way to convert it for the BB? I have downloaded some bat file from the net, that coverts JAD/JAR to COD/ALX, but maybe in some cases it strips some information about supported/required APIs and this is the problem?

Thanks in advance
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5665

PostPosted: Sun Jul 29, 2007 7:35 am    Post subject: Reply with quote

I assume you tried trekbuddy_rim_bb_v42. This version is compiled against net_rim_api.jar from JDE v4.2.1.

If FileConnection API is not detected (using Class.forName("javax.microedition.io.file.FileConnection") construct), map and atlas loading menu commands are not available. However, you say you were ask for access to e:\something on application start (I guess custom image files were looked for), which means that JSR75 was detected. How come you cannot see loading commands in the menu then.... Shocked

Did you convert your testing application to COD? Or, did you add RIM-specific attributes to JAD?
Back to top
View user's profile Send private message
vlast3k



Joined: 27 Jul 2007
Posts: 13

PostPosted: Sun Jul 29, 2007 8:38 am    Post subject: Reply with quote

I converted it to COD using some script from internet...

Code:

@echo off
cls
:: get jde location
set jde=f:\program files\Research In Motion\BlackBerry JDE 4.2.1
rem set /p jde=what is the complete path to your Blackberry JDE directory?
echo.
:: get jad and jar locations
set sve=d:\download\BlackBerry
rem set /p sve=enter the complete path where your jad and jar files are located:
echo.
:: get the name of the jad and jar files
set jar=%1
rem set /p jar=what is the name of your jar file?
echo.
:: copy jad and jar files to the jde directory
xcopy "%sve%\%jar%.jad" "%jde%\bin\"
xcopy "%sve%\%jar%.jar" "%jde%\bin\"
::create the cod files
cd /d "%jde%/bin"
pause
rapc import="%jde%\lib\net_rim_api.jar" codename=%jar% -midlet jad=%jar%.jad %jar%.jar
pause
:: move the cod file to the jad and jar directory
move "%jde%\bin\%jar%.*" "%sve%\"
pause

:: change to the new directory
cd /d %sve%
:: create the new alx file
echo ^<loader version="1.0"^> >%jar%.alx
echo ^<application id="%jar%"^> >>%jar%.alx
echo ^<name^>%jar%^</name^> >>%jar%.alx
echo ^<description^>%jar%^</description^> >>%jar%.alx
echo ^<version^> ^</version^> >>%jar%.alx
echo ^<vendor^> ^</vendor^> >>%jar%.alx
echo ^<copyright^> ^</copyright^> >>%jar%.alx
echo ^<fileset Java="1.0"^> >>%jar%.alx
echo ^<files^>%jar%.cod^</files^> >>%jar%.alx
echo ^</fileset^> >>%jar%.alx
echo ^</application^> >>%jar%.alx
echo ^</loader^> >>%jar%.alx
pause
:end


What other options are there?
I can write some simple midlet that opens files and run it on the BB to see when it works and when not...
In addition, I am not asked anymore to accept any connections...? I even tried to remove the application and then install it again Sad
Back to top
View user's profile Send private message
trispark



Joined: 22 Jun 2007
Posts: 12

PostPosted: Mon Jul 30, 2007 3:13 pm    Post subject: Reply with quote

I have a similar problem. I can't see the load map menu. Mine didn't ask for a path.

I installed it using the Media Manager as described earlier in this thread.
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5665

PostPosted: Mon Jul 30, 2007 7:56 pm    Post subject: Reply with quote

And what about Info->Extra Jsr - isthere 75 in the list?
Back to top
View user's profile Send private message
vlast3k



Joined: 27 Jul 2007
Posts: 13

PostPosted: Mon Jul 30, 2007 9:11 pm    Post subject: Reply with quote

It does not list JSR 75 Sad
I tried the approach to copy the JAR file to the device and then install it from the device - unfortunately the result was the same.
I tried also the COD/ALX files published in the downloads section, unfortunately the installation went "well" but then i do not see the trekbuddy icon on the screen... But in the list of installed applications - i can find it - very strange...
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5665

PostPosted: Mon Jul 30, 2007 9:27 pm    Post subject: Reply with quote

Hmm that's weird. I just checked Opera Mini for BB; maybe my ALX is not complete - in fact, trekbuddy_bb_v42.cod contains 3 cods (Opera has 2), so in the ALX, fileset should probably look like

Code:
<files>trekbuddy_bb_v42.cod trekbuddy_bb_v42-1.cod trekbuddy_bb_v42-2.cod</files>


Anyway, in your testing application, can you try

Code:
Class.forName("javax.microedition.io.file.FileConnection");
?
Back to top
View user's profile Send private message
vlast3k



Joined: 27 Jul 2007
Posts: 13

PostPosted: Tue Jul 31, 2007 5:25 am    Post subject: Reply with quote

Here it comes.

I am using BB Device Manager v 4.2.1.69
And BB Simulator v2.6.0.49

I see exactly the same behavoir on my BB and on the Simulator, when using the sample program.
When installing the TreckBuddy program on the simulator, there are some exceptions initially (One was NullPointerException), but i still have not found where to get the stacktraces from.
Then it starts and displays the same way as on the BB, w/o option for loading maps.

i also tried the approach described earlier in the thread - how to load jar files into the BB (by copying it using the media manager), this worked out well, but did not give a different result Sad

Is it possible that depending ot the result of the opening the initial file (E:\xxxxx), you choose not to enable file system?



8800.png
 Description:
This is the screenshot from the BB Simulator.
 Filesize:  2.18 KB
 Viewed:  13093 Time(s)

8800.png



BBTester.zip
 Description:
This archive contains the JAR/JAD, converted COD/ALX using the script above, and the source

Download
 Filename:  BBTester.zip
 Filesize:  5.68 KB
 Downloaded:  568 Time(s)

Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5665

PostPosted: Tue Jul 31, 2007 11:44 am    Post subject: Reply with quote

Where can I get the simulator you are using? I have "4.2.1.84 (8800-O2)" and it DRIVES ME CRAZY - I upload the cod, but cannot see TrekBuddy in applications...
Back to top
View user's profile Send private message
vlast3k



Joined: 27 Jul 2007
Posts: 13

PostPosted: Tue Jul 31, 2007 12:27 pm    Post subject: Reply with quote

Hmm i tried now the following:


http://na.blackberry.com/eng/developers/downloads/simulators.jsp

-> Download a Device Simulator -> BlackBerry Device Simulators v4.2.1

Then there you can download:
BlackBerry® Device Simulators v4.2.1.90

Or:
BlackBerry® Device Simulators v4.2.1.68

Though - what is strange is that this seems to match the version of the Device Manager, and not the Simulator htat i have ??
I am now downloading the latest version from this place - to cehck what exactly is this Smile
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5665

PostPosted: Tue Jul 31, 2007 12:35 pm    Post subject: Reply with quote

How do you upload tehe application to the simulator? I remember I once succeded with Medi Manager, but now it is not available in Desktop Manager (I'm using 4.2.1).

And with JavaLoader, upload seems successful but no TrekBuddy in Apps...

EDIT: Aha! I have Desktop Manager 4.0.x! ... Downloading 4.2.x...
Back to top
View user's profile Send private message
vlast3k



Joined: 27 Jul 2007
Posts: 13

PostPosted: Tue Jul 31, 2007 12:52 pm    Post subject: Reply with quote

In the simulator, in the upper left menu - there was an entry - Install Application or something like this....
And from there i just selected the app and it was installed
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5665

PostPosted: Tue Jul 31, 2007 1:07 pm    Post subject: Reply with quote

There's Load Java Program... I select trekbuddy_bb_v42... and nothing happens Evil or Very Mad
Back to top
View user's profile Send private message
trispark



Joined: 22 Jun 2007
Posts: 12

PostPosted: Tue Jul 31, 2007 1:42 pm    Post subject: Reply with quote

In ExtraJSR I have 82 120 135 179

In the Simulator you can go to the Simulate menu, USB Cable Connected and use the Desktop Manager to copy the jad and jar files. Install with Media Manager.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Devices All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group