New Baka-Tsuki Android App: Development
Moderators: thelastguardian, Fringe Security Bureau, Senior Editors, Senior Translators, Alt. Language Translator/Editor, Executive Council, Project Translators, Project Editors
- Koakuma
- Mikuru's Master
- Posts: 21
- Joined: Thu Sep 06, 2012 12:33 am
- Favourite Light Novel: Ahouka!
- Location: Voile, the Magical Library inside the Scarlet Devil Mansion
- Erakk
- Digitalizer Editor
- Posts: 152
- Joined: Sat Jan 21, 2012 3:12 am
- Favourite Light Novel:
Re: New Light Novel Reader Android App (In the works)
Ok.... by now the service SHOULD work with the example and some modifications....
But this thing is not binding...
I used that tutorial along with this http://developer.android.com/reference/ ... rvice.html
Obviouslly they seem very alike, but the easy part (witch is starting the service and sending a notification) is...driving...me...nuts.
But this thing is not binding...
I used that tutorial along with this http://developer.android.com/reference/ ... rvice.html
Obviouslly they seem very alike, but the easy part (witch is starting the service and sending a notification) is...driving...me...nuts.
In theory, practice and theory are the same.
but, practically, they arent.
but, practically, they arent.
- Nandaka
- Digitalizer Editor
- Posts: 535
- Joined: Thu Aug 09, 2012 9:46 am
- Favourite Light Novel: Ahouka!
- Location: Singapore
- Contact:
Re: New Light Novel Reader Android App (In the works)
Correct the manifest for service name, apparently you forgot to prepend .service.xxx in the service/receiver name 
Also add doBindService on onRestart event.

Also add doBindService on onRestart event.
Visit my blog for other applications.
- Erakk
- Digitalizer Editor
- Posts: 152
- Joined: Sat Jan 21, 2012 3:12 am
- Favourite Light Novel:
Re: New Light Novel Reader Android App (In the works)
You're incredible.
Now i gotta verify some stuff about the alarm.
Now i gotta verify some stuff about the alarm.
In theory, practice and theory are the same.
but, practically, they arent.
but, practically, they arent.
- Teh_ping
- Editor-in-Assistance
- Posts: 1729
- Joined: Thu Sep 17, 2009 10:32 pm
- Favourite Light Novel: Ahouka!
- Location: Magdala
Re: New Light Novel Reader Android App (In the works)
Testing from my new phone. How to install on Samsung 3 now?
- Nandaka
- Digitalizer Editor
- Posts: 535
- Joined: Thu Aug 09, 2012 9:46 am
- Favourite Light Novel: Ahouka!
- Location: Singapore
- Contact:
Re: New Light Novel Reader Android App (In the works)
@Mod: can you put this on the first page too?ben1234 wrote:Instructions for dummies:
- Download the apk anywhere on your computer, preferably some place you can quickly get to (ie. desktop). The apk should be named "LNReader-signed-nandaka" or something similar.
- Turn on USB storage on your phone. The option should automatically pop up on the notifications after plugging in the USB cable.
- Bring up your 'My Computer' folder and open up your phone's removable storage folder. In the case that you have more than one folder, pick whichever one you want as long as you can remember which one it is.
- Drag and drop the apk from wherever you put it in your computer to the removable storage folder. When that's done, turn off USB storage from your phone.
- Download an install app or a file explorer app from the Play Store if you didn't already have one. Like this one
- Before we do anything though, you'll have to enable installing from unknown sources in the settings:
Android 2.3 and below:
Settings -> Applications -> Make sure the check box next to 'Unknown Sources' is on. It should be at the top of the list.
Android 3.0 and above:
Settings -> Security -> Scroll down to 'Unknown Sources' and make sure the box next to it is on.- Open up the app you just downloaded and look for LNReader-signed-nandaka. If you don't see it, you might have put it in your SD card so check the external_sd folder.
- Open LNReader-signed-nandaka and click on install.
- You're done!
Visit my blog for other applications.
- Erakk
- Digitalizer Editor
- Posts: 152
- Joined: Sat Jan 21, 2012 3:12 am
- Favourite Light Novel:
Re: New Light Novel Reader Android App (In the works)
Should be the same as ben1234 posted. If you're still having dificulties, ill take a look.Teh_ping wrote:Testing from my new phone. How to install on Samsung 3 now?
EDIT:
Test results on HTC Desire showed:
- Background color has some "shade" nuances (intead of black, it starts dark grey and goes to light grey)
- Very slow startup sometimes
- Chapter content glitches (won't show if orientation changes, takes a while to load, etc)
Please post if you're having one or more of these same issues, so we can narrow it down (if it's a individual problem, model problem or just bad luck).
In theory, practice and theory are the same.
but, practically, they arent.
but, practically, they arent.
- Nandaka
- Digitalizer Editor
- Posts: 535
- Joined: Thu Aug 09, 2012 9:46 am
- Favourite Light Novel: Ahouka!
- Location: Singapore
- Contact:
Re: New Light Novel Reader Android App (In the works)
This is normal, this is from the default theme (Holo) for Honeycomb++Erakk wrote: - Background color has some "shade" nuances (intead of black, it starts dark grey and goes to light grey)
like usual, need log fileErakk wrote:- Chapter content glitches (won't show if orientation changes, takes a while to load, etc)

Visit my blog for other applications.
- Erakk
- Digitalizer Editor
- Posts: 152
- Joined: Sat Jan 21, 2012 3:12 am
- Favourite Light Novel:
Re: New Light Novel Reader Android App (In the works)
Woot, never knew... still theres something...Nandaka wrote: This is normal, this is from the default theme (Holo) for Honeycomb++
When i get home i'll try to reproduce it on that phone... but something tells me he was just unlucky., His whole phone is slow as hell... (my brother's)Nandaka wrote: like usual, need log file
EDIT: i think im getting the hang of services, i *might* change it again...
What about a service for downloading entire volumes/novels?
In theory, practice and theory are the same.
but, practically, they arent.
but, practically, they arent.
- Nandaka
- Digitalizer Editor
- Posts: 535
- Joined: Thu Aug 09, 2012 9:46 am
- Favourite Light Novel: Ahouka!
- Location: Singapore
- Contact:
Re: New Light Novel Reader Android App (In the works)
You mean a feature to download the whole novels, including the volumes and chapters? I can implement it, but I don't think is it polite?Erakk wrote:What about a service for downloading entire volumes/novels?
For the updating service, probably I'll just call the method xxxFromInternet and compare the before and after to get the updated chapters. Probably I'll create the helper method for the update service on the weekend.
Visit my blog for other applications.
- Erakk
- Digitalizer Editor
- Posts: 152
- Joined: Sat Jan 21, 2012 3:12 am
- Favourite Light Novel:
Re: New Baka-Tsuki Android App: Development
Well, i know where you're getting at, but, even if its only a Volume?
because we already do the Volume download (the older app did it too) but we do it in a modal way
(the user MUST wait for it to complete, theres no "cancel" or "ok" button)
We could ask the translators/editors if that would be polite, of course.
because we already do the Volume download (the older app did it too) but we do it in a modal way
(the user MUST wait for it to complete, theres no "cancel" or "ok" button)
We could ask the translators/editors if that would be polite, of course.
In theory, practice and theory are the same.
but, practically, they arent.
but, practically, they arent.
- 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
If you want to implement it as background process, then we need to use service, not asynctask. Also you need to handle if the user is try to open the chapter, when the running download task is not finished yet (show blank page? show notification the job is still running? disallow the user to open?)Erakk wrote:because we already do the Volume download (the older app did it too) but we do it in a modal way
(the user MUST wait for it to complete, theres no "cancel" or "ok" button)
I'm implementing the volume download using for-loop by chapters. There is no way to cancel (gracefully) a running download for a chapter. If you want to implement cancel, what we can do is wait until the last running task if finished, then check the cancel flag. If it is true, break the for-loop.
EDIT: somehow my post count stuck at 28?
Visit my blog for other applications.
- 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
Update the Update Service. It will monitor the watched novel and uses AsyncTask to execute the update (only the chapter list, not the actual download).
Now we need to know how to load the page when the notification is clicked.
Now we need to know how to load the page when the notification is clicked.
Visit my blog for other applications.
-
- Haruhiist Specialist
- Posts: 78
- Joined: Sun Sep 16, 2012 9:53 pm
- Favourite Light Novel:
Re: New Baka-Tsuki Android App: Development
Is there any way to download the full series for offline reading like the other reader did?
-
- Project Editor
- Posts: 11
- Joined: Thu Jun 28, 2012 1:23 am
- Favourite Light Novel:
Re: New Baka-Tsuki Android App: Development
Is it possible for the app or light novel data to save to sd instead of the phones internal memory. Am running a Samsung Galaxy Ace with android version 2.3.5