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
Bloodscythe
Haruhiist Disciple
Posts: 63
Joined: Fri Dec 14, 2012 1:50 pm
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Bloodscythe »

External Chapters tested:
High School DxD Lets go to the Onsen
Kore wa Zombie Desu Ka Volume 2 Prologue, Chapter 1
Kikou Shoujo wa Kizutsukanai Volume 2: Chapter 1 & 2
They all just give me a prompt to open it in a web browser. Although, is it suppose to open it in a web browser or in the app?

The update NOTIFICATION only shows New Chapters. Even if there's a chapter update it won't show any sign of it.
It will only say xx New Chapters and WON'T display xx chapter updates even if there are chapter updates.
The update list in the app will, however, still show any New chapters and Chapter updates.
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 »

Bloodscythe wrote:External Chapters tested:
High School DxD Lets go to the Onsen
Kore wa Zombie Desu Ka Volume 2 Prologue, Chapter 1
Kikou Shoujo wa Kizutsukanai Volume 2: Chapter 1 & 2
They all just give me a prompt to open it in a web browser. Although, is it suppose to open it in a web browser or in the app?

The update NOTIFICATION only shows New Chapters. Even if there's a chapter update it won't show any sign of it.
It will only say xx New Chapters and WON'T display xx chapter updates even if there are chapter updates.
The update list in the app will, however, still show any New chapters and Chapter updates.
I'll check it out. Btw, do you use the compiled apk or compile by yourself?
Visit my blog for other applications.
Bloodscythe
Haruhiist Disciple
Posts: 63
Joined: Fri Dec 14, 2012 1:50 pm
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Bloodscythe »

I use the compiled apk by Erakk.
Unfortunately, I possess no Android Development skills so I don't even know how to compile apks.
User avatar
Erakk
Digitalizer Editor
Posts: 152
Joined: Sat Jan 21, 2012 3:12 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Erakk »

Nandaka wrote:I won't promise you whether it can track the scrolling, as I'm using javascript to detect the scrolling event and I don't think I can inject a javascript to the external webpage (except after downloading the whole page, but this might break the external page javascript)
Well my intent was to subclass WebView and grab on touch events/scrolling events... would that break JS?
In theory, practice and theory are the same.
but, practically, they arent.
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 »

Erakk wrote:
Nandaka wrote:I won't promise you whether it can track the scrolling, as I'm using javascript to detect the scrolling event and I don't think I can inject a javascript to the external webpage (except after downloading the whole page, but this might break the external page javascript)
Well my intent was to subclass WebView and grab on touch events/scrolling events... would that break JS?
As long you didn't inject the js, then should be ok. If you try to track based on the coordinate (x/y), you'll lost the scroll position if you do rotate or zoom. This is the reason I'm using js, so I can scroll to the element, rather than x/y.
Visit my blog for other applications.
User avatar
Erakk
Digitalizer Editor
Posts: 152
Joined: Sat Jan 21, 2012 3:12 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Erakk »

Nandaka wrote:As long you didn't inject the js, then should be ok. If you try to track based on the coordinate (x/y), you'll lost the scroll position if you do rotate or zoom. This is the reason I'm using js, so I can scroll to the element, rather than x/y.
I see...
Well i'll still use subclassing for webview dynamic buttons...

But honestly, i think we should leave the internal webview for a future update. Let's not hurt our heads with this, i want to push some interface modifications, fix some bugs, and publish 1.1. then we can either go for 1.1.1 for small things or just hold alittle bit and work on the next big update.

EDIT: i still have no internet at home, so i am setting up my environment at work... due to some silly thing my computer couldnt detect my phone USB so i have to wait for my brother to get online at work so he can send me the files for the merge.
In theory, practice and theory are the same.
but, practically, they arent.
User avatar
Imbatman
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by Imbatman »

I'm on build 32, can any of you confirm that bakemonogatari volume 2 works?
I downloaded it and when I opened it, it's left on a black blank page.
Are there any settings that might be messing with it?
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 »

Erakk wrote:EDIT: i still have no internet at home, so i am setting up my environment at work... due to some silly thing my computer couldnt detect my phone USB so i have to wait for my brother to get online at work so he can send me the files for the merge.
Yap, I don't intent to track the scrolling or zooming for external pages.
Visit my blog for other applications.
User avatar
Erakk
Digitalizer Editor
Posts: 152
Joined: Sat Jan 21, 2012 3:12 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Erakk »

Nandaka wrote:
Erakk wrote:EDIT: i still have no internet at home, so i am setting up my environment at work... due to some silly thing my computer couldnt detect my phone USB so i have to wait for my brother to get online at work so he can send me the files for the merge.
Yap, I don't intent to track the scrolling or zooming for external pages.
Then, lets roll back the internal webview... it seems theres no much point to it? (well it was my idea lol, sorry =) )
In theory, practice and theory are the same.
but, practically, they arent.
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 »

Change Log:
- Update constants for novel divider, need db refresh (only the chapter list)
- Refactor method to Util class.
- Update handler for external page.
- Add js handler for complete load.
- Fix update notification message.

Uploaded to github
Visit my blog for other applications.
User avatar
GothicRexterz
Astral Realm

Re: New Baka-Tsuki Android App: Development

Post by GothicRexterz »

Problem: Crash (Exception Class Name java.lang.IllegalArgumentException)
Source file: LoadedApk.java
Source Class: android.app.Loaded/Apk
Source Method: forgetServiceDispatcher
Line number: 888
process name: com.erakk.Inreader
Device: ST21i2 (Sony Xperia Tipo Dual)
SDK Version: 15
OS: 4.0.4

...I can understand a bit of programming (but rather not think about it since I'm not that good at it) but I think this info should suffice.
Azyrion
Kyonite - The Haruhi Pacifier
Posts: 144
Joined: Sat Dec 01, 2012 12:27 pm
Favourite Light Novel: Ahouka!
Location: Germany

Re: New Baka-Tsuki Android App: Development

Post by Azyrion »

Imbatman wrote:I'm on build 32, can any of you confirm that bakemonogatari volume 2 works?
I downloaded it and when I opened it, it's left on a black blank page.
Are there any settings that might be messing with it?
Thats because those chapters doesnt exist at all. Like here : http://www.baka-tsuki.org/project/index ... _Snake_001
User avatar
Erakk
Digitalizer Editor
Posts: 152
Joined: Sat Jan 21, 2012 3:12 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Erakk »

New Build 33 with the above changes:
https://www.dropbox.com/s/wv5v8wj7v8eqf ... 1-0-33.apk

IF you are wondering why the Readme on github is not updated:
I am having dificulty uploading my code on github from work. So ill keep track of it offline until i get those stupid ISP tech guys to fix my internet wires at home.
'til then, its dropBox baby.
In theory, practice and theory are the same.
but, practically, they arent.
Bloodscythe
Haruhiist Disciple
Posts: 63
Joined: Fri Dec 14, 2012 1:50 pm
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by Bloodscythe »

App now thinks EVERY chapter in watchlist is a new chapter and puts them all in the notifications and update list.
How do I know I'm not paranoid/crazy?
921 new chapter updates.
Yeah, above sentence says it all.
Come to think of it, wasn't this bug here before? Seems like it was brought back to life.
On an unrelated note, I'm suprised that there are 921 chapters in my watchlist.
EDIT:
The fix is to refesh your novel/watch list.
I didn't spot that before...
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 »

Bloodscythe wrote:EDIT:
The fix is to refesh your novel/watch list.
I didn't spot that before...
Sorry about that :D
This is because I'm using very short constants for the chapters parent which causes problems with novels with special chars. I've changed it to much longer one.
Visit my blog for other applications.
Post Reply

Return to “Developers and Code”