BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-31-2010, 07:32 AM   #1
vartaaa
New Member
 
Join Date: Nov 2009
Model: 9500
PIN: N/A
Carrier: T-m
Posts: 1
Default BB MAPS Please HELP

Please Login to Remove!

Hi ,

i ´m trying to implement bb maps since a long time, and now i am frustated cause it is not working.
Perhaps i´m doing a easy mistake .
I hope this forum can help me.

My hardware :
- eclipse 3.41
- jde 4.7.0.46
- Simmulator 2.11.0.86

it should be for the storm device.

Code:
int bbm = CodeModuleManager.getModuleHandle("net_rim_bb_lbs");
if (bbm >= 1)
{

   MapView mapview = new MapView();
   mapview.setLatitude(4542349);
   mapview.setLongitude(-7569792);
   mapview.setZoom(3);

   Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments(mapview));

			
   String document = "<location-document><location lon='-7938675' lat='4367022' label='Toronto, ON' description='Go Leafs Go!' zoom='10'/></location-document>";

    Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments( MapsArguments.ARG_LOCATION_DOCUMENT, document));
}

in the first line od the mapview the app is going down with :

Code:
Class File Editor

SourceNotFounr
The Jar file c:\Programm\eclipse\plugins\net.rim.eide.componentpack4.7.0_4.7.0.46\components\lib\net_rim_api.jar has no source attachment.
You can attach the source below :

(Button)

  (version 1.3 : 47.0, super bit)
public class net.rim.blackberry.api.maps.MapView {
  
  // Field descriptor #24 I
  public static final int MAX_ZOOM = 15;
  
  // Method descriptor #37 ()V
  public native MapView();
  
  // Method descriptor #44 (I)V
  public native void setLatitude(int arg0);
  
  // Method descriptor #47 ()I
  public native int getLatitude();
  
  // Method descriptor #44 (I)V
  public native void setLongitude(int arg0);
  
  // Method descriptor #47 ()I
  public native int getLongitude();
  
  // Method descriptor #44 (I)V
  public native void setZoom(int arg0);
  
  // Method descriptor #47 ()I
  public native int getZoom();
  
  // Method descriptor #44 (I)V
  public native void setRotation(int arg0);
  
  // Method descriptor #47 ()I
  public native int getRotation();
}
Offline  
Old 04-26-2010, 07:56 PM   #2
samnyemba
Thumbs Must Hurt
 
Join Date: Oct 2008
Location: Mozambique
Model: 9300
OS: 6.0.0.546
PIN: 27c3f559
Carrier: vodacom
Posts: 172
Default

Wirelessly posted

Those are very big longitude/latitude numbers you are using? Is that correct? Latitude range from -90 to 90 and longitude is from -180 to 180. Try substituting your numbers with 45.42349 & -75.69792 and 43.67022 & -79.38675 respectively. N.B. I have NO experience in what u r doing. If my suggestion doesn't work I'm sorry pliz ignore.
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


Spiral Coil Binding Machine Electric Coil Inserter+Hole Punch Binder & 100 Coils picture

Spiral Coil Binding Machine Electric Coil Inserter+Hole Punch Binder & 100 Coils

$137.00



Spiral Coil Binding Machine-Hole Punch 46-Holes Binder,w/Electric Coil Inserterï¼ picture

Spiral Coil Binding Machine-Hole Punch 46-Holes Binder,w/Electric Coil Inserterï¼

$109.00



AC HVAC Coil Cleaning System Automotive Pressure Washer Machine 145 PSI w/Hose picture

AC HVAC Coil Cleaning System Automotive Pressure Washer Machine 145 PSI w/Hose

$155.99



Spiral Coil Binding Machine-Hole Punch 46 Holes Binder w/ Electric Coil Inserter picture

Spiral Coil Binding Machine-Hole Punch 46 Holes Binder w/ Electric Coil Inserter

$109.00



GE CL06A300MJ Non-Reversing IEC Contactor, 110/120 VAC V Coil, 50 A picture

GE CL06A300MJ Non-Reversing IEC Contactor, 110/120 VAC V Coil, 50 A

$299.99



Whites 6″ x 10″ DD Elliptical Search Coil for MX Sport (801-3258) picture

Whites 6″ x 10″ DD Elliptical Search Coil for MX Sport (801-3258)

$70.00







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