added query to geo intent to get a marker on the map
This commit is contained in:
parent
3592a91e51
commit
63474d4c40
@ -46,7 +46,7 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList
|
|||||||
intent.putExtra(Intent.EXTRA_SUBJECT, mTitle);
|
intent.putExtra(Intent.EXTRA_SUBJECT, mTitle);
|
||||||
addTab(intent, R.string.tab_share, R.drawable.share);
|
addTab(intent, R.string.tab_share, R.drawable.share);
|
||||||
|
|
||||||
String geoUri = "geo:" + mLl;
|
String geoUri = "geo:" + mLl + "?q=" + mLl;
|
||||||
intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(geoUri));
|
intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(geoUri));
|
||||||
addTab(intent, R.string.tab_map, R.drawable.location_map);
|
addTab(intent, R.string.tab_map, R.drawable.location_map);
|
||||||
|
|
||||||
@ -55,6 +55,8 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
||||||
|
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_share);
|
setContentView(R.layout.activity_share);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user