1. Check out our companion app, Forums for Android! Download from Google Play

Google map Geopoint

Discussion in 'Application Development' started by sw22, Oct 8, 2010.

  1. sw22

    sw22 Member
    Thread Starter
    5

    Sep 14, 2010
    7
    0
    5
    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

Share This Page

Loading...