On Wed, Sep 15, 2010 at 9:56 PM, Dhrumil Shah <[email protected]>wrote:
> I thought you want to to display a mark on a map from the latitude and
> longitude a user entered in two text fields. But I don't understand if you
> want to display that on a MapActivity in your app or in another app.
> - I want to display that on a MapActivity in my app. Not in another
> activity.
>
>
>
>
OK, but I'm not following the code you posted. What is supposed to happen
after startActivity():
public void onClick(View v) {
// TODO Auto-generated method stub
String _lat = lat.getText().toString();
String _lng = lng.getText().toString();
Uri uri = Uri.parse("geo:"+_lat+","+_lng);
startActivity(new Intent(Intent.ACTION_VIEW, uri));
It's unclear why you are doing that from the MapActivity itself. Also, I
mentioned earlier that the latititude and longitude from the text boxes are
not used anywhere else.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en