• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Google map Geopoint

sw22

Lurker
Sep 14, 2010
7
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:
import android.os.Bundle;
import android.util.Log;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;

public class Main extends MapActivity {

    
    /** Called when the activity is first created. */
    @Override
    public void onCreate(final Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.map);

        GeoPoint mpFrom = new GeoPoint(19240000, -99120000);
        Log.d("aaa", getString(mpFrom.getLatitudeE6()));

    
    }

    @Override
    protected boolean isRouteDisplayed() {
        // TODO Auto-generated method stub
        return false;
    }
}


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

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones