Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
updated readme according to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianknopf committed Feb 11, 2020
1 parent 01b6a60 commit a50d488
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,5 @@ is to take a look into the latest enhancements and take a short look over the so
the existing code, to keep the project clean and easy to maintain. If you've any questions left, you can
contact me via my profile or write an email to [[email protected]](mailto:[email protected]).

To call the ViewerActivity from your own application, you can send an intent with file - / content uri containing
a reference to the GGPKG file to open. See this code snippet as little cheat-sheet:

```
Uri packageFileUri = Uri.fromFile(new File(packageFileName)); // create uri from whatever you want
Intent intent = new Intent(Intent.ACTION_VIEW); // default action = VIEW
intent.setDataAndType(packageFileUri, "application/com.ggnome.ggpkg"); // important: use MIME type application/com.ggnome.ggpkg!!!
this.startActivity(intent); // and let's go ... :-)
```

## License
This project is licensed under the Apache 2.0 license. See [LICENSE.md](LICENSE.md) for more information.

0 comments on commit a50d488

Please sign in to comment.