Skip to content

Commit

Permalink
geosolutions-it#120 Add link to external page
Browse files Browse the repository at this point in the history
  • Loading branch information
taba90 committed Oct 11, 2020
1 parent 29df49e commit c8360a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,11 @@ public void changeFragment(int position, String ... extraData) {
bundle.putString(EXTRA_DATA, extraData[0]);
fragment.setArguments(bundle);
break;

case R.id.personalization:
goToURL("http://custom.parkpre.it/savemybike");
break;

default:
break;
}
Expand Down Expand Up @@ -1257,5 +1262,11 @@ private boolean checkNFCIntent(){
return false;
}

private void goToURL(String url){
Uri uriUrl = Uri.parse(url);
Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
startActivity(launchBrowser);
}


}
5 changes: 5 additions & 0 deletions app/src/main/res/menu/drawer_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
android:icon="@drawable/bluetooth_ic"
android:title="Bluetooth Scan"/>

<item
android:id="@+id/personalization"
android:icon="@drawable/ic_personalize"
android:title="@string/personalize_bike"/>

<item
android:id="@+id/navigation_about"
android:icon="@drawable/ic_about"
Expand Down

0 comments on commit c8360a8

Please sign in to comment.