Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvavra committed Aug 17, 2012
1 parent c06f417 commit 8f320b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Start new activity using this code:
Intent intent = new Intent(Intent.ACTION_DEFAULT, Uri.parse("cz.destil.gpsaveraging.AVERAGED_LOCATION"));
startActivityForResult(intent, 0);
} catch (ActivityNotFoundException e) {
//GPS Averaging is not installed, you can redirect user to Market like this:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=org.destil.gpsaveraging"));
//GPS Averaging is not installed, you can redirect user to Play like this:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=org.destil.gpsaveraging"));
startActivity(intent);
}
In your activity override function onActivityResult for receiving data:
Expand All @@ -40,4 +40,5 @@ In your activity override function onActivityResult for receiving data:
else
{
//handle cancel
}
}
}

0 comments on commit 8f320b7

Please sign in to comment.