This repository has been archived by the owner on Dec 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated readme according to new version
- Loading branch information
1 parent
01b6a60
commit a50d488
Showing
1 changed file
with
0 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. |