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
creative391
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by creative391 »

I'm not the most tech savvy person in the world so I apologize if I'm missing some thing obvious, but I'd love to read lns on my kindle using this. I'm just not overly sure how.

If it's possible to get an .apk version of this app I would greatly appreciate it.
User avatar
Ickarium
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Ickarium »

Nandaka wrote:Either it is being blocked by you phone antivirus/firewall/adblock/etc, or the requested page didn't include index (unlikely). Try to backup your db from S3 and transfer it to your N7, or upload the whole log when refreshing the Main page. I can get Toaru Index on CM11(KitKat) on my phone.
For the record, I can't see any chapter information either, and it's not a firewall in my case.

Could it be because the page recently changed to a 'collapsed' format? I don't know, but I used to view it fine, but now I cannot. I refreshed the novel as I hadn't since NT7.
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 »

You can get the apk here: https://www.mediafire.com/folder/ebfw4a9lzw53q/lnreader

Just look for the latest upload date.
Visit my blog for other applications.
User avatar
cautr
Tsuruya Gigglenator
Posts: 740
Joined: Mon Sep 16, 2013 10:41 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by cautr »

Also please see the post by Ickarium, Nandaka. It hadn't been approved when you answered.
Translator at guhehe.TRANSLATIONS

"Life's a tale, told by an idiot." -Shakespeare
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 »

Ickarium wrote: For the record, I can't see any chapter information either, and it's not a firewall in my case.

Could it be because the page recently changed to a 'collapsed' format? I don't know, but I used to view it fine, but now I cannot. I refreshed the novel as I hadn't since NT7.
Collapsed or not, should not have any effect, as the main identifier still the same (p-Light_Novels). Try to enable/disable https?

Can you upload the log file when refreshing the main page?
Visit my blog for other applications.
Ickarium
Kyonist
Posts: 14
Joined: Tue Dec 10, 2013 7:05 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Ickarium »

Enabled HTTPS. Didn't work. I'm not sure what you mean by the log file, can you clarify?

This basically just started happening. How I 'update' light novels is I delete that novel set totally, refresh the list, and download a fresh listing and then novel data. Seems to fix problems. Well, usually.

Odd thing is every single other LN I read (Campione!, High School DxD, Seirei Tsukai no Blade Dance, etc) work fine. It's just Index.
User avatar
Dogi
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Dogi »

I can promise it's nothing on my end, I've tried on a few different networks and my phone gets it fine still while my N7 does not. I'm wary of reinstalling ex on my phone and losing access there too. I've also tried it on some friend's android devices who didn't have it and Index isn't showing for them either. I'll try and transfer the novels from my phone but I think there's something up with the newest version of the app or something with the index page and how it requests the data.
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 »

@Dogi and Ickarium:
To get the log file:
1. If you device is rooted, you can use this app CatLog: https://play.google.com/store/apps/deta ... son.logcat
2. If not, please follow the tutorial from http://forum.xda-developers.com/showthr ... ?t=1726238

The problem is either at parsing the page or the data being sent.
To refresh the Main Novel list: Go to Light Novel > it will show the activity with 3 tab, the 1st one is Main, click the menu button (3-dotted icon), and press Refresh.

Fyi, if you have another device, you can backup the DB then transfer it to the N7.

I don't have N7 so I cannot replicate this, but I have tested on my phone using Android 4.4/KitKat
Visit my blog for other applications.
Ickarium
Kyonist
Posts: 14
Joined: Tue Dec 10, 2013 7:05 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Ickarium »

Here you go. I cut out anything that wasn't referring to class com.erakk.lnreader. If you need the full log, send me an email and I'll email it.
Spoiler! :
12-11 08:21:17.094 V/RunningAppsList(25277): move task to front > package name : com.erakk.lnreader
12-11 08:21:22.424 D/class com.erakk.lnreader.dao.NovelsDao( 9684): Getting Novel Details from internet: To_Aru_Majutsu_no_Index
12-11 08:21:22.424 W/WifiStateTracker( 193): getNetworkInfo : NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true
12-11 08:21:24.694 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Cover: http://www.baka-tsuki.org/project/image ... _cover.jpg
12-11 08:21:24.704 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Alternative_Languages
12-11 08:21:24.704 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Alternative_Languages
12-11 08:21:24.704 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Story_Synopsis
12-11 08:21:24.704 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Story_Synopsis
12-11 08:21:24.704 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Awards
12-11 08:21:24.704 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Awards
12-11 08:21:24.704 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Translation
12-11 08:21:24.714 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Translation
12-11 08:21:24.714 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Updates
12-11 08:21:24.714 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Updates
12-11 08:21:24.714 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Terminologies
12-11 08:21:24.714 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Terminologies
12-11 08:21:24.714 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: The_Toaru_Majutsu_no_Index_series
12-11 08:21:24.714 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Got valid id: The_Toaru_Majutsu_no_Index_series
12-11 08:21:24.714 D/class com.erakk.lnreader.parser.CommonParser( 9684): Before: Season 1 Novels
12-11 08:21:24.714 D/class com.erakk.lnreader.parser.CommonParser( 9684): After: Season 1 Novels
12-11 08:21:24.724 D/class com.erakk.lnreader.parser.CommonParser( 9684): Before: Season 2 Novels
12-11 08:21:24.724 D/class com.erakk.lnreader.parser.CommonParser( 9684): After: Season 2 Novels
12-11 08:21:24.724 D/class com.erakk.lnreader.parser.CommonParser( 9684): Before: Prelude to War
12-11 08:21:24.724 D/class com.erakk.lnreader.parser.CommonParser( 9684): After: Prelude to War
12-11 08:21:24.724 D/class com.erakk.lnreader.parser.CommonParser( 9684): Before: World War Three
12-11 08:21:24.734 D/class com.erakk.lnreader.parser.CommonParser( 9684): After: World War Three
12-11 08:21:24.734 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: The_Toaru_Majutsu_no_Index:_New_Testament_series
12-11 08:21:24.734 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Got valid id: The_Toaru_Majutsu_no_Index:_New_Testament_series
12-11 08:21:24.734 D/class com.erakk.lnreader.parser.CommonParser( 9684): Before: Gremlin Saga
12-11 08:21:24.734 D/class com.erakk.lnreader.parser.CommonParser( 9684): After: Gremlin Saga
12-11 08:21:24.744 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Side_Stories
12-11 08:21:24.744 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Got valid id: Side_Stories
12-11 08:21:24.744 D/class com.erakk.lnreader.parser.CommonParser( 9684): Before: Long Stories
12-11 08:21:24.744 D/class com.erakk.lnreader.parser.CommonParser( 9684): After: Long Stories
12-11 08:21:24.744 D/class com.erakk.lnreader.parser.CommonParser( 9684): Before: Short Stories
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.CommonParser( 9684): After: Short Stories
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Official_Parody_Stories
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Official_Parody_Stories
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Story_Calendar
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Story_Calendar
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Project_Staff
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Project_Staff
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: Series_Overview
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: Series_Overview
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Checking: More_Information
12-11 08:21:24.754 D/class com.erakk.lnreader.parser.BakaTsukiParser( 9684): Not valid id: More_Information
12-11 08:21:24.824 D/class com.erakk.lnreader.dao.NovelsDao( 9684): PageModel = To_Aru_Majutsu_no_Index
12-11 08:21:24.824 W/WifiStateTracker( 193): getNetworkInfo : NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true
12-11 08:21:25.134 D/class com.erakk.lnreader.parser.CommonParser( 9684): parsePageAPI pages size: 1
12-11 08:21:25.144 D/class com.erakk.lnreader.parser.CommonParser( 9684): parsePageAPI source: To_Aru_Majutsu_no_Index
12-11 08:21:25.144 D/class com.erakk.lnreader.parser.CommonParser( 9684): parsePageAPI normalized: To Aru Majutsu no Index
12-11 08:21:25.144 I/class com.erakk.lnreader.parser.CommonParser( 9684): parsePageAPI redirected: Toaru Majutsu no Index
12-11 08:21:25.144 I/class com.erakk.lnreader.parser.CommonParser( 9684): parsePageAPI To_Aru_Majutsu_no_Index Last Update: Wed Dec 11 00:51:03 EST 2013
12-11 08:21:25.164 I/class com.erakk.lnreader.helper.db.PageModelHelper( 9684): Page Model: To_Aru_Majutsu_no_Index Updated, Affected Row: 1
12-11 08:21:25.174 I/class com.erakk.lnreader.helper.db.PageModelHelper( 9684): Page Model: To_Aru_Majutsu_no_Index Updated, Affected Row: 1
12-11 08:21:25.204 D/class com.erakk.lnreader.task.DownloadFileTask( 9684): Start Downloading: http://www.baka-tsuki.org/project/image ... _cover.jpg
12-11 08:21:25.204 D/class com.erakk.lnreader.task.DownloadFileTask( 9684): Saving to: /mnt/sdcard/Android/data/com.erakk.lnreader/files/project/images/thumb/f/f7/To_Aru_Majutsu_no_Index_new_cover.jpg/250px-To_Aru_Majutsu_no_Index_new_cover.jpg
12-11 08:21:25.214 D/class com.erakk.lnreader.task.DownloadFileTask( 9684): Path to: /mnt/sdcard/Android/data/com.erakk.lnreader/files/project/images/thumb/f/f7/To_Aru_Majutsu_no_Index_new_cover.jpg
12-11 08:21:25.214 D/class com.erakk.lnreader.task.DownloadFileTask( 9684): Start downloading image: http://www.baka-tsuki.org/project/image ... _cover.jpg
12-11 08:21:25.824 D/class com.erakk.lnreader.task.DownloadFileTask( 9684): File exists: /mnt/sdcard/Android/data/com.erakk.lnreader/files/project/images/thumb/f/f7/To_Aru_Majutsu_no_Index_new_cover.jpg/250px-To_Aru_Majutsu_no_Index_new_cover.jpg Size: 30658
12-11 08:21:25.824 D/class com.erakk.lnreader.task.DownloadFileTask( 9684): Complete Downloading: http://www.baka-tsuki.org/project/image ... _cover.jpg
12-11 08:21:25.824 D/class com.erakk.lnreader.dao.NovelsDao( 9684): Cover Image: /project/images/thumb/f/f7/To_Aru_Majutsu_no_Index_new_cover.jpg/250px-To_Aru_Majutsu_no_Index_new_cover.jpg
12-11 08:21:25.824 D/class com.erakk.lnreader.dao.NovelsDao( 9684): Complete getting Novel Details from internet: To_Aru_Majutsu_no_Index
12-11 08:21:25.824 D/DownloadNovelDetailsTask( 9684): Downloaded: To_Aru_Majutsu_no_Index
12-11 08:21:25.824 D/class com.erakk.lnreader.adapter.PageModelAdapter( 9684): Refreshing data: 115 items
12-11 08:21:29.964 D/class com.erakk.lnreader.activity.DisplayLightNovelDetailsActivity( 9684): OnResume: RUNNING
12-11 08:21:30.034 D/GetCover( 9684): /mnt/sdcard/Android/data/com.erakk.lnreader/files/project/images/thumb/f/f7/To_Aru_Majutsu_no_Index_new_cover.jpg/250px-To_Aru_Majutsu_no_Index_new_cover.jpg
12-11 08:21:30.044 D/class com.erakk.lnreader.activity.DisplayLightNovelDetailsActivity( 9684): Non Stretch
12-11 08:21:30.044 D/class com.erakk.lnreader.activity.DisplayLightNovelDetailsActivity( 9684): Loaded: To_Aru_Majutsu_no_Index
Edited to Add: For the record, I'm using a Galaxy Tab 10.1. It runs Android 4.0.4.
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 »

I think I misunderstood the problem:
1. You can see the Novel Name in Main Light Novel List.
2. You cannot see the Chapter List in the light Novel Details.

Yeah, this is because they change the layout...
I'll check about it.

EDIT: crap, they didn't follow the standard format. The assumption is after h2 tag, it will be followed with h3 tag for the volume marker, which containing the chapter list. They changed the volume marker to h4 tag. I think I need to update to add the h4, which should be quite safe as no other novel using heading this deep.
Visit my blog for other applications.
Ickarium
Kyonist
Posts: 14
Joined: Tue Dec 10, 2013 7:05 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Ickarium »

That's it exactly, yeah. :) I see the the Index Novel in the main list, but when I try to load the novels for Index, it won't provide a listing.
User avatar
Plue
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Plue »

Is there a way to change where it saves the files? So that I can use my removable storage instead of filling up the small internal?
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 »

Plue wrote:Is there a way to change where it saves the files? So that I can use my removable storage instead of filling up the small internal?
For DB, cannot change the location.
For Images, you can change it in Settings > Storage > On Images section, press the Image Save Location.
Visit my blog for other applications.
User avatar
Plue
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Plue »

Ah perfect thank you. The text files are at least small enough they don't take too much space up.
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 »

Ickarium wrote:That's it exactly, yeah. :) I see the the Index Novel in the main list, but when I try to load the novels for Index, it won't provide a listing.
Updated in 1.1.13-beta: https://www.mediafire.com/?qpdctf922v3ggyj

Please check before I release it to market.
Visit my blog for other applications.
Post Reply

Return to “Developers and Code”