今、私は電子ブックリーダーで作業しています.iはこのhttp://www.siegmann.nl/epublib/androidからepubライブラリを手に入れましたが、行ごとに内容を読み込むのに長い時間がかかり、プロジェクトではコンテンツを強調するオプションがあります。可能であれば、事前に感謝しています。Androidでepubファイルを読むには?
1
A
答えて
1
私はその答えをどのように考え出したのか分かりませんでした。
現在の質問では、スパインインデックス(目次とは異なり、背骨は目次とは異なります)または目次(情報がメタデータにある場合)を見ることができます。
今、あなたは背骨のインデックスのためにそれを行う方法:
Spine spine = new Spine(book.getTableOfContents());
List<SpineReference> spineList = spine.getSpineReferences(); //List of spine information
Resource res = spine.getResource(1);//1 is an example to proper utilize this you have to store the information on which part you are in and how much you rendered. I suggest keeping a static integer on what your location is and after this part is done you can go to the next one and so on.
InputStream is = res.getInputStream();//getting the inputstream
StringBuilder string = new StringBuilder();//Create a builder as we will add more information to the string
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
string html,line = null;
while ((line = reader.readLine()) != null) {//start reading the information line by line
html = string.append(line + "\n").toString();//get information for line by line basis
}
今、あなたはそれが起こっている内容のテーブルのために正しい情報今
を取得するには、テキストからHTML情報を解析する必要があります。変更
ArrayList<TOCReference> book_list = new ArrayList<TOCReference>(amBook().getTableOfContents().getTocReferences());
それを読むために同じ方法の1行を除いてトップと同じにします。 BufferReader - > Inputstream
関連する問題
- 1. Androidで.epubファイルを読む
- 2. Android - epubの読者.epubファイル..
- 3. ブラックベリーのepubファイルを読む
- 4. iPhone - .epubファイルを読む
- 5. ePub形式を読む
- 6. epubファイルから全章を読むには?
- 7. javascriptを使用してepubファイルを読む方法
- 8. 「com.apple.ibooks.display-options.xml」ファイルをepubに埋め込む
- 9. AndroidでXMLファイルを読む
- 10. Androidのファイルを読む
- 11. はEPUBでEPUB
- 12. PHPでepubファイルを開く
- 13. .docファイルを読むには?
- 14. Androidでfacebookチャットメッセージを読むには?
- 15. Androidのリモートxmlファイルを読む
- 16. リソースフォルダ内のCSVファイルを読むandroid
- 17. AndroidからPDFファイルを読む
- 18. PHPでBerkeleyDBファイルを読むには?
- 19. Flask:アプリケーションルートでファイルを読むには?
- 20. XcodeでZwoptex XMLファイルを読むには?
- 21. C#でWMVファイルを読むには?
- 22. Rで.arffファイルを読むには?
- 23. asp.netでExcelファイルを読むには
- 24. goでExcelファイルを読むには?
- 25. SDカードでtxtファイルを読むには?
- 26. PerlでExcelファイルを読むには?
- 27. C#でwk3ファイルを読むには?
- 28. 2列のEpubファイル
- 29. Android WebViewでキーボードイベントを読む
- 30. AndroidでTwitterを読む
あなたの問題は何ですか? –
私はepub教科書をtextview.isで表示したいですか?fはいどのように適切な答えが高く評価されましたか – daffodils
@ daffodils私はそのサイトからダウンロードしましたが、それが機能していません。 – PankajAndroid