Google map Geopoint


Last Updated:

  1. sw22

    sw22 Member This Topic's Starter

    Joined:
    Sep 14, 2010
    Messages:
    7
    Likes Received:
    0
    Hi,
    I have simplify my problem as simple as I could and I end up with this program which I don't understand why it is not working (I dont find the message in LOGCAT usefull)

    Code (Text):
    1. import android.os.Bundle;
    2. import android.util.Log;
    3.  
    4. import com.google.android.maps.GeoPoint;
    5. import com.google.android.maps.MapActivity;
    6.  
    7. public class Main extends MapActivity {
    8.  
    9.    
    10.     /** Called when the activity is first created. */
    11.     @Override
    12.     public void onCreate(final Bundle savedInstanceState) {
    13.         super.onCreate(savedInstanceState);
    14.         setContentView(R.layout.map);
    15.  
    16.         GeoPoint mpFrom = new GeoPoint(19240000, -99120000);
    17.         Log.d("aaa", getString(mpFrom.getLatitudeE6()));
    18.  
    19.    
    20.     }
    21.  
    22.     @Override
    23.     protected boolean isRouteDisplayed() {
    24.         // TODO Auto-generated method stub
    25.         return false;
    26.     }
    27. }

    It is failing at the call
    Code (Text):
    1. mpFrom.getLatitudeE6()
     

    Advertisement
  2. lexchandra

    lexchandra Member

    Joined:
    Sep 6, 2010
    Messages:
    9
    Likes Received:
    0

Share This Page

Loading...