added query to new portal search intent

This commit is contained in:
Philipp Schaefer
2013-04-27 00:47:49 +02:00
parent a208ba9083
commit 28da9e1746
2 changed files with 3 additions and 4 deletions

View File

@ -20,9 +20,8 @@ public class IITC_JSInterface {
// send geo intent for navigation apps like gmaps or waze etc...
@JavascriptInterface
public void intentPosLink(String lat, String lng) {
// TODO eventually we want back our lat/lng-query? + "?q=" + lat + "," + lng;
String uri = "geo:" + lat + "," + lng;
public void intentPosLink(String lat, String lng, String portal_name) {
String uri = "geo:" + lat + "," + lng + "?q=" + lat + "," + lng + portal_name;
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse(uri));
context.startActivity(intent);