New Baka-Tsuki Android App: Development

Forum for volunteer developers working on Baka-Tsuki related applications (Baka-Reader, BTprince, etc).

Moderators: thelastguardian, Fringe Security Bureau, Senior Editors, Senior Translators, Alt. Language Translator/Editor, Executive Council, Project Translators, Project Editors

Post Reply
User avatar
Bleboo
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Bleboo »

Lionspork wrote:
Bleboo wrote:Hello Guys,

recently I have the problem that the novel illustrations in the chapters dont show up properly, even if i download the novel completely. I don't know how to fix this and re-downloaded the app several times to try new options in the app, but nothing works.

I sent you a screenshot of how it looks on my device (HTC One M8). Maybe you know a solution and can help me.

http://imgur.com/GoVHXw2

Thanks.
Hi Bleboo are you connecting with HTTPS? Do the full illustrations still show up properly if you tap on the broken thumbnail? Because that sounds like the problem I'm having.
Yes, if i tap on the image it will load properly and that's what is so weird about it. I just won't show up in the chapter, like it should.
User avatar
Nandaka
Digitalizer Editor
Posts: 535
Joined: Thu Aug 09, 2012 9:46 am
Favourite Light Novel: Ahouka!
Location: Singapore
Contact:

Re: New Baka-Tsuki Android App: Development

Post by Nandaka »

See this: http://forum.xda-developers.com/showthr ... ?t=1726238 for how to get the android log file.

EDIT: I still see HTTP Error 400 if using my internet connection (StarHub Singapore), but if I'm using proxy/vpn, most of the time I got no issue... Any ideas?
Visit my blog for other applications.
User avatar
Lionspork
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Lionspork »

Nandaka wrote:See this: http://forum.xda-developers.com/showthr ... ?t=1726238 for how to get the android log file.

EDIT: I still see HTTP Error 400 if using my internet connection (StarHub Singapore), but if I'm using proxy/vpn, most of the time I got no issue... Any ideas?
Okay, I started CatLog running, opened BakaReader EX, downloaded Toaru Majutsu no Index NT12, tried to open a couple of pages, then turned HTTPS off and opened those same pages. Stopped logging, filtered using keyword "lnreader", then dumped to a TXT. Here's the result.

http://pastebin.com/h4Ngu5GL

To my untrained eye this looks like it may be an issue.

Code: Select all

W/class com.erakk.lnreader.helper.BakaTsukiWebChromeClient(27513):  Console: 368:Mixed Content: The page at 'https://www.baka-tsuki.org/' was loaded over HTTPS, but requested an insecure image 'file:///storage/extSdCard/Android/data/com.erakk.lnreader/files/project/images/thumb/f/fa/NT_Index_v12_000.jpg/120px-NT_Index_v12_000.jpg'. This request has been blocked; the content must be served over HTTPS.
Towards the end there is also

Code: Select all

W/PackageManager(1220):  Failure retrieving resources for com.erakk.lnreader: Resource ID #0x0
I'm using the External SD card here but it's a problem when using internal storage too.
User avatar
Nandaka
Digitalizer Editor
Posts: 535
Joined: Thu Aug 09, 2012 9:46 am
Favourite Light Novel: Ahouka!
Location: Singapore
Contact:

Re: New Baka-Tsuki Android App: Development

Post by Nandaka »

Lionspork wrote: Okay, I started CatLog running, opened BakaReader EX, downloaded Toaru Majutsu no Index NT12, tried to open a couple of pages, then turned HTTPS off and opened those same pages. Stopped logging, filtered using keyword "lnreader", then dumped to a TXT. Here's the result.

http://pastebin.com/h4Ngu5GL

To my untrained eye this looks like it may be an issue.

Code: Select all

W/class com.erakk.lnreader.helper.BakaTsukiWebChromeClient(27513):  Console: 368:Mixed Content: The page at 'https://www.baka-tsuki.org/' was loaded over HTTPS, but requested an insecure image 'file:///storage/extSdCard/Android/data/com.erakk.lnreader/files/project/images/thumb/f/fa/NT_Index_v12_000.jpg/120px-NT_Index_v12_000.jpg'. This request has been blocked; the content must be served over HTTPS.
Towards the end there is also

Code: Select all

W/PackageManager(1220):  Failure retrieving resources for com.erakk.lnreader: Resource ID #0x0
I'm using the External SD card here but it's a problem when using internal storage too.
Most likely. What is your android version? Mine is still using 4.3.1 (CM10.2).

And from the android doc:
https://developer.android.com/about/ver ... iorWebView

Code: Select all

If your app targets API level 21 or higher:
The system blocks mixed content and third party cookies by default. To allow mixed content and third party cookies, use the setMixedContentMode() and setAcceptThirdPartyCookies() methods respectively.
The system now intelligently chooses portions of the HTML document to draw. This new default behavior helps to reduce memory footprint and increase performance. If you want to render the whole document at once, disable this optimization by calling enableSlowWholeDocumentDraw().
If your app targets API levels lower than 21: The system allows mixed content and third party cookies, and always renders the whole document at once.
Anyone uses older android below 4.0? I'm thinking to drop the gingerbread (android 2.3.x) support...
Visit my blog for other applications.
User avatar
Lionspork
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Lionspork »

Nandaka wrote:
Lionspork wrote: Okay, I started CatLog running, opened BakaReader EX, downloaded Toaru Majutsu no Index NT12, tried to open a couple of pages, then turned HTTPS off and opened those same pages. Stopped logging, filtered using keyword "lnreader", then dumped to a TXT. Here's the result.

http://pastebin.com/h4Ngu5GL

To my untrained eye this looks like it may be an issue.

Code: Select all

W/class com.erakk.lnreader.helper.BakaTsukiWebChromeClient(27513):  Console: 368:Mixed Content: The page at 'https://www.baka-tsuki.org/' was loaded over HTTPS, but requested an insecure image 'file:///storage/extSdCard/Android/data/com.erakk.lnreader/files/project/images/thumb/f/fa/NT_Index_v12_000.jpg/120px-NT_Index_v12_000.jpg'. This request has been blocked; the content must be served over HTTPS.
Towards the end there is also

Code: Select all

W/PackageManager(1220):  Failure retrieving resources for com.erakk.lnreader: Resource ID #0x0
I'm using the External SD card here but it's a problem when using internal storage too.
Most likely. What is your android version? Mine is still using 4.3.1 (CM10.2).

And from the android doc:
https://developer.android.com/about/ver ... iorWebView

Code: Select all

If your app targets API level 21 or higher:
The system blocks mixed content and third party cookies by default. To allow mixed content and third party cookies, use the setMixedContentMode() and setAcceptThirdPartyCookies() methods respectively.
The system now intelligently chooses portions of the HTML document to draw. This new default behavior helps to reduce memory footprint and increase performance. If you want to render the whole document at once, disable this optimization by calling enableSlowWholeDocumentDraw().
If your app targets API levels lower than 21: The system allows mixed content and third party cookies, and always renders the whole document at once.
Anyone uses older android below 4.0? I'm thinking to drop the gingerbread (android 2.3.x) support...
I'm using Android 5.0 here.
User avatar
Lionspork
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Lionspork »

I downloaded the latest update, however it only fixes the thumbnails in the Illustration pages (the ones that use the really small 80px or 81px thumbnails), the thumbnails in the text pages are still broken.

Relevant logcat (filtered for "lnreader"). Here I start logging, open the Preface and then the Character Introduction pages of Horizon 1A, then the Illustrations page. As said, the thumbnails on Illustrations now load whereas they were previously broken, but Preface and Character Introduction remain broken.

http://pastebin.com/JG2u0fAC

https://baka-tsuki.org/project/index.ph ... 1A_Preface
https://baka-tsuki.org/project/index.ph ... troduction
https://baka-tsuki.org/project/index.ph ... ustrations
User avatar
Pur0
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Pur0 »

why not make the actual version (curently compatible with android < 4.0) a side version, and improve the app with a version that had dropped the support for older devices?

Like a "Baka Reader (for old phones)" and a "Baka Reader EX"
User avatar
Nandaka
Digitalizer Editor
Posts: 535
Joined: Thu Aug 09, 2012 9:46 am
Favourite Light Novel: Ahouka!
Location: Singapore
Contact:

Re: New Baka-Tsuki Android App: Development

Post by Nandaka »

Lionspork wrote:Relevant logcat (filtered for "lnreader"). Here I start logging, open the Preface and then the Character Introduction pages of Horizon 1A, then the Illustrations page. As said, the thumbnails on Illustrations now load whereas they were previously broken, but Preface and Character Introduction remain broken.
Have you tried to refresh the contents for the preface and chara intro? The log says it found 7 images (preface) and 2 images (chara intro), but I don't see the mixed content warning.
The illust page shows the mixed content warning.

I suspect, the image is either not downloaded successfully or the link is broken.
Pur0 wrote:why not make the actual version (curently compatible with android < 4.0) a side version, and improve the app with a version that had dropped the support for older devices?

Like a "Baka Reader (for old phones)" and a "Baka Reader EX"
I still need to maintain both version. I rather not to do that :P
Visit my blog for other applications.
User avatar
Lionspork
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Lionspork »

Nandaka wrote:
Lionspork wrote:Relevant logcat (filtered for "lnreader"). Here I start logging, open the Preface and then the Character Introduction pages of Horizon 1A, then the Illustrations page. As said, the thumbnails on Illustrations now load whereas they were previously broken, but Preface and Character Introduction remain broken.
Have you tried to refresh the contents for the preface and chara intro? The log says it found 7 images (preface) and 2 images (chara intro), but I don't see the mixed content warning.
The illust page shows the mixed content warning.

I suspect, the image is either not downloaded successfully or the link is broken.
Yep, refreshed the content to no avail and also checked in the thumbs folder to confirm the thumbnails were in there. As before, it works without HTTPS on. For what it's worth the magnify icon is broken too.

As a last resort I tried reinstalling the app, deleting the database and thumbnails cache, didn't help. Again the thumbnails do work on the Illustrations pages, but but anywhere else.

Do you have a Lollipop device to do your own testing on? Also when are you closing the poll?
User avatar
Nandaka
Digitalizer Editor
Posts: 535
Joined: Thu Aug 09, 2012 9:46 am
Favourite Light Novel: Ahouka!
Location: Singapore
Contact:

Re: New Baka-Tsuki Android App: Development

Post by Nandaka »

> Lolipop

Nope, I only have old galaxy note running 4.3 and hp touchpad running 4.4

> illust page

That's weird, as it should use the same code to do img src update....

> poll

Most likely this week
Visit my blog for other applications.
User avatar
neogen93
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by neogen93 »

Seikoku no Ryu Kishi

Only get the cover pic n descriptions, the rest is missing, cant access the book at all. Seems like there's still a prob with the downloading all info, will stuck at kill no more at 102/107 for me. Not sure if every one else have that issue.

Thanks for the hard work
User avatar
Lionspork
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Lionspork »

Hmm, there are Lollipop based roms for Galaxy Note available on XDA, that should be mostly stable, if you want to try it. I guess doing a clean update would be a hassle though.
User avatar
Sacredus
馬鹿月の衛星保障機構 [F.S.B]
Posts: 177
Joined: Thu Feb 11, 2010 12:53 pm
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Sacredus »

I have problem with Baka-Reader. It don't download chapters in some alternative language projects. For example Polish translations of: "No Game No Life PL", "Shinmai Maou no Keiyakusha - Polski" and "Utsuro no Hako to Zero no Maria PL". This is reader error or problem is on projects pages on the wiki?
User avatar
Nandaka
Digitalizer Editor
Posts: 535
Joined: Thu Aug 09, 2012 9:46 am
Favourite Light Novel: Ahouka!
Location: Singapore
Contact:

Re: New Baka-Tsuki Android App: Development

Post by Nandaka »

>> Poll Updates:
Image

41,4% said no to dropping the support for older Android, so I think I will keep it for now.
neogen93 wrote:Seikoku no Ryu Kishi

Only get the cover pic n descriptions, the rest is missing, cant access the book at all. Seems like there's still a prob with the downloading all info, will stuck at kill no more at 102/107 for me. Not sure if every one else have that issue.

Thanks for the hard work
Yap, this is because of the layout *is not the standard one*, so the application cannot find the listing....

They need to change the layout to the standard format <== someone need to tell them.

Lionspork wrote:Hmm, there are Lollipop based roms for Galaxy Note available on XDA, that should be mostly stable, if you want to try it. I guess doing a clean update would be a hassle though.
Risky, cos I'm using this one as my main phone, unless you want to buy me new phone :P
Sacredus wrote:I have problem with Baka-Reader. It don't download chapters in some alternative language projects. For example Polish translations of: "No Game No Life PL", "Shinmai Maou no Keiyakusha - Polski" and "Utsuro no Hako to Zero no Maria PL". This is reader error or problem is on projects pages on the wiki?
This is because the identifier defined in the application to detect the chapter listing only have these:
- _autorstwa
- Pe.C5.82ny_tekst
- Seria_
- seria_
- Historie_poboczne
- Historie_Poboczne
- Historie_kr.C3.B3tki
- Historie_Kr.C3.B3tki

For example:
- Anohana: Kwiat, który widzieliśmy tamtego dnia autorstwa Mari Okady << will be detected
- No Game No Life napisana przez Kamiya Yuu << no identifier, so it will be skipped.

Either change the title of the headings or you need to give me the additional identifier.
Visit my blog for other applications.
User avatar
Sacredus
馬鹿月の衛星保障機構 [F.S.B]
Posts: 177
Joined: Thu Feb 11, 2010 12:53 pm
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Sacredus »

Thanks. I fixed all Polish project pages but for some reason Kimi to Boku no Uta World's End chapters are listened twice... Well, I shouldn't start fixing thinks without drinking coffee xP

EDIT: Or this is just cache problem on my side... Anyway, Polish projects are fixed.
Post Reply

Return to “Developers and Code”