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
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

Re: New Light Novel Reader Android App (In the works)

Post by Koakuma »

Mkay, thanks
Image
User avatar
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)

Post by Erakk »

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.
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 Light Novel Reader Android App (In the works)

Post by Nandaka »

Correct the manifest for service name, apparently you forgot to prepend .service.xxx in the service/receiver name :)

Also add doBindService on onRestart event.
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 Light Novel Reader Android App (In the works)

Post by Erakk »

You're incredible.

Now i gotta verify some stuff about the alarm.
In theory, practice and theory are the same.
but, practically, they arent.
User avatar
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)

Post by Teh_ping »

Testing from my new phone. How to install on Samsung 3 now?
User avatar
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)

Post by Nandaka »

ben1234 wrote:Instructions for dummies:
  1. 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.
  2. Turn on USB storage on your phone. The option should automatically pop up on the notifications after plugging in the USB cable.
  3. 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.
  4. 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.
  5. Download an install app or a file explorer app from the Play Store if you didn't already have one. Like this one
  6. 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.
  7. 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.
  8. Open LNReader-signed-nandaka and click on install.
  9. You're done!
@Mod: can you put this on the first page too?
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 Light Novel Reader Android App (In the works)

Post by Erakk »

Teh_ping wrote:Testing from my new phone. How to install on Samsung 3 now?
Should be the same as ben1234 posted. If you're still having dificulties, ill take a look.

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.
User avatar
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)

Post by Nandaka »

Erakk wrote: - Background color has some "shade" nuances (intead of black, it starts dark grey and goes to light grey)
This is normal, this is from the default theme (Holo) for Honeycomb++
Erakk wrote:- Chapter content glitches (won't show if orientation changes, takes a while to load, etc)
like usual, need log file :)
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 Light Novel Reader Android App (In the works)

Post by Erakk »

Nandaka wrote: This is normal, this is from the default theme (Holo) for Honeycomb++
Woot, never knew... still theres something...
Nandaka wrote: like usual, need log file :)
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)

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.
User avatar
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)

Post by Nandaka »

Erakk wrote:What about a service for downloading entire volumes/novels?
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?

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.
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 »

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.
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: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)
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?)

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.
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 »

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.
Visit my blog for other applications.
ShadowfoxEX
Haruhiist Specialist
Posts: 78
Joined: Sun Sep 16, 2012 9:53 pm
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by ShadowfoxEX »

Is there any way to download the full series for offline reading like the other reader did?
ff7_freak
Project Editor
Posts: 11
Joined: Thu Jun 28, 2012 1:23 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by ff7_freak »

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
Post Reply

Return to “Developers and Code”