![]() ![]() Presumably because I'm just setting an ACTION_VIEW intent this could have been handles in the other class that does the onClickListener for the imageview that holds the book I want. I'm overriding the onReceive method in this case so that I can perform some additional steps on each book. Uri file = Uri.parse("kindle://book/?action=open&book_id=AMZNID0/" + bookID + "/0/") Intent readbook = new Intent(Intent.ACTION_VIEW) Choose and install an eBook reader from the Android Marketplace. You can transfer this file from your computer to a compatible Kindle ereader via USB. After you download a Kindle Book from Amazon's website to your computer, you can find the ebook's Amazon file in your computer's 'Downloads' folder. The code I'm using is as follows: if(intent.getAction().contains("BOOK_ACTION_"))īookID = intent.getAction().substring(12) Download the eBooks from your Humble Bundle download page in an EPUB or PDF format from your Android device. Note: Kindle Books are currently available for U.S. ![]() In my case I had to set some flags on the intent to launch a new activity. ![]() Then we need to define an Uri for the data which is actually a link that looks something like: kindle://book/?action=open&book_id=AMZNID0/B000FC1GHO/0/, where in this case the section B000FC1GHO corresponds to the ID of the book.įinally we can then start the activity. The following directions are also valid if you’d like to download a new book or periodical to read on more than one device or Kindle app, at the same. First we need to set the intent to an ACTION_VIEW intent. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |