[android-developers] Cannot download. the content is not supported on the phone
Hi,
I tried to connect to google maps api to create directions using this
code below. However, after clicking on the button, it displays "cannot
download. the content is not supported on the phone." I am using only
an emulator in eclipse.
OnClickListener onDirections = new OnClickListener(){
public void onClick(View v){
System.out.print(addressLabel.getText().toString());
String url = "http://maps.googleapis.com/maps/api/directions/
json?origin=" + addressLabel.getText().toString()
+ "&destination=" + addressLabel.getText().toString() +
"&sensor=false";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
}
};
Please help me figure this out. Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home