「MyLocation、LocationCar、および方向」を含むメニューを作成しました。方向メニューをクリックすると、彼女の方向が表示さMyLocation
れLocationCar
ます。
それを作る方法、私を助けることができるチュートリアルはありますか?
これは私のメニューコードです:
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case MENU_MyLocation:
map.setMyLocationEnabled(true);
return(true);
case MENU_LocationCar:
startActivity(new Intent(this, Gps.class));
return(true);
case MENU_Direction:
// here to show the direction of MyLocation to LocationCar??
return(true);
}
return(super.onOptionsItemSelected(item));
}