在Android的ePub档案工作 [英] Working with ePub files in android

查看:142
本文介绍了在Android的ePub档案工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我提到这个 siegmann安卓教程
并成功登录后的标题作者名称目录

现在,我读了整本书可以在的WebView

Now I read that the whole book can be viewed in WebView.

但我没有找到任何教程的 Dispalying ePub文件

But I don't find any tutorial for Dispalying an ePub file.

当谈到创建ePub文件,我发现从 href=\"http://stackoverflow.com/questions/5640728/render-epub-files-in-android\">这
但我无法实现它,因为我没有任何想法的main.xml

When it comes to creating an ePub file, I found this from SO But I'm unable to implement it as I don't have any idea about main.xml.

请提出任何教程为创建和显示的ePub文件。

有关创建EPUB,我试图参照这siegmann例如
但我不能够正确地理解它。

For creating ePub, I tried to refer this siegmann eg but I'm not able to understand it properly.

我是否需要以创建ePub文件提供的.html 每个章节和的.css

Do I need to provide .html for each chapter and .css in order to create an ePub file?

我知道我在这个qustion有点不清楚,因为我是绝对的初学者,当谈到与ePub格式的工作,所以任何建议/帮助AP preciated。

I know I'm little unclear in this qustion as I'm absolute beginner when it comes to working with ePub, so any suggestions/help appreciated.

推荐答案

logTableOfContents试试这个()

while ((line = r.readLine()) != null) {

line1 = line1.concat(Html.fromHtml(line).toString());

}

finalstr = finalstr.concat("\n").concat(line1);

这篇关于在Android的ePub档案工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆