-
Notifications
You must be signed in to change notification settings - Fork 29
Standalone ABaker
ABaker allows you to create an standalone book application, which basically means that if you want to publish a book, you can just create your content and put it inside the final APK and this will cause ABaker to open the book immediately after the user opens the app.
Also, you can put several books, magazines (or whatever content) inside the same APK and ABaker will build a shelf of your books by reading the contents of each book directory.
First of all, if you need ABaker to run as standalone, you must enable the feature in the configuration. Open the file "res/values/booleans.xml" and set the property run_as_standalone to true. By default this setting is false.
After enabling the setting and running the application, ABaker will search for directories inside the "assets/books" (by default) with valid "book.json" files and build a shelf based on the information of the number of issues found or, if only one issue is found, ABaker will open the issue automatically.
Additionally, there are other settings in "res/values/strings.xml" that you can use along the standalone configuration, which includes:
sa_books_directory
: This is the directory inside "assets" which must contain the directories of the issues with valid "book.json".
sa_no_issues
: This is just a message to show to the user in case the application cannot detect any valid books or issues or "book.json" files.