I have an activity which have a method in it. In this method I write
Intent intent=new Intent();
intent.putExtra("geoLat", geoLat); // latitude
intent.putExtra("geoLng", geoLng); // longitude
There is another activity which have the following line of code
Intent intent1=getIntent();
double geoLat = intent1.getDoubleExtra("geoLat", 0.0);
double geoLng = intent1.getDoubleExtra("geoLng", 0.0);
Problem geoLat and geoLng are always 0.0
Please correct it where it is going wrong.
Or any other way to get this.
Thanks!!
You can try this:
Hope this help!