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

Thatdot7 wrote:In terms of the app, has there been a decision on which "test" to use?
I prefer Test1.
Thatdot7 wrote:Is it worth exporting the apk for other testers to use?
I don't mind doing it, as long they know what is the limitation (no auto update from google play because of different key, and might have a bug).
Thatdot7 wrote:And probably the craziest for that I would like to put off forever:
Is it worth implementing pagination?
Personally, I don't like pagination. I prefer long scroll because this is from web content. Also, how do you define a page as the original content doesn't have any information about this. If you follow MS Word way, basically you are defining the maximum number of line in single page, how do you handle different screen size and zoom?
Thatdot7 wrote:What if we split the novel into columns and only show 1 column at a time as a page?
How do you split the content into column?
Thatdot7 wrote:1) The app detect a swipe to the side (onFling in the OnGestureListener class)
Better to use javascript and load if pagination = true? Check https://github.com/xui/xui or http://rabblerule.blogspot.sg/2009/08/d ... ebkit.html?
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 »

Nandaka wrote:
ShadowfoxEX wrote:My device has it's own primary storage under SDcard, and it's added memory to external_SD. It also creates two drives when connecting to the computer, while the main device has the folder external_SD, there's nothing in it. When going to the device, all of the stuff on the external storage is in that folder. It might be just me, and if it is, can someone help me with this issue?
Your device sd card path in not standard one, I think. To handle this, we need to modify the way it get the db path (read from shared pref? not sure if can resolve the pref before loading db), or you can create a symbolic-link to map the path of images/db to your external sd card (see: http://forum.xda-developers.com/showthr ... ?t=1083308)
Did some digging. Apparently my device has three storage, two of which are built in. There's the system storage that my device has built in, the sd or "extra" storage for varying models, and a third expandable storage slot as indicated.
nockgeneer
VOID UNDEAD SPECTOR
Posts: 3
Joined: Mon Mar 04, 2013 5:44 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by nockgeneer »

Just leaving a note that I'll be looking into some suggestions I have for the app as listed below:
  • Multi-select for marking both volumes and chapters as read/unread—useful if they've been read online or on another device, etc...
  • Online sync (through website login or Google Drive or some other method perhaps...) for moving between devices. This would make the above feature less necessary. . . . at least for me.
I didn't find any mention of these two features yet in this thread doing a search, and it was a bit much to go through all 50 pages. So I thought I would post them now. As mentioned, I'll look into coding at least the first one myself, but my Android coding experience is greatly lacking. Let me know if there are any comments on these features and if someone can figure out a way to connect the Baka-Tsuki main login (not forum) with the app, allowing for a more unified synchronization ability. Of course, if that's how the synchronization is done (my personal preference), there should be a read/unread link or menu item added to the wiki. More work, but again, for creating an app that links into the website I think it's worth it.
deathlight
Reader
Posts: 8
Joined: Tue Mar 05, 2013 12:11 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by deathlight »

hi Im new here and wan to thank you for creating this app but how do I use bookmark?
Image
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 »

deathlight wrote:hi Im new here and wan to thank you for creating this app but how do I use bookmark?
Go to Settings -> Reading Layout -> Enable Bookmark is ticked, then just go to any of the chapter and tap the paragraph. It should became highlighted, tap again to remove.

To access the bookmarked contents, just click the bookmark icon on the main page or in novel details option menu. Another way is by opening the chapter and click Bookmark on Chapter to list only available bookmark on that chapter in Novel Content.
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 »

nockgeneer wrote:Multi-select for marking both volumes and chapters as read/unread—useful
Might be little difficult as we depend on the pop-up menu for context sensitive menu.
nockgeneer wrote:Online sync (through website login or Google Drive or some other method perhaps...) for moving between devices. This would make the above feature less necessary. . . . at least for me.
Syncing through file is not recommended, too much pain. See: http://inessential.com/2011/10/25/why_j ... _on_dropbo
nockgeneer wrote:I didn't find any mention of these two features yet in this thread doing a search, and it was a bit much to go through all 50 pages. So I thought I would post them now. As mentioned, I'll look into coding at least the first one myself, but my Android coding experience is greatly lacking. Let me know if there are any comments on these features and if someone can figure out a way to connect the Baka-Tsuki main login (not forum) with the app, allowing for a more unified synchronization ability. Of course, if that's how the synchronization is done (my personal preference), there should be a read/unread link or menu item added to the wiki. More work, but again, for creating an app that links into the website I think it's worth it.
Wiki already have the api for login (http://www.mediawiki.org/wiki/API:Login), the problem on how you want to store the data. For sure we need database and custom api for handling the synchronization, I'm not well versed in php, so I don't think I can help you there... As long the API is defined and implemented, then it is possible to do it.
Visit my blog for other applications.
deathlight
Reader
Posts: 8
Joined: Tue Mar 05, 2013 12:11 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by deathlight »

Nandaka wrote:
deathlight wrote:hi Im new here and wan to thank you for creating this app but how do I use bookmark?
Go to Settings -> Reading Layout -> Enable Bookmark is ticked, then just go to any of the chapter and tap the paragraph. It should became highlighted, tap again to remove.

To access the bookmarked contents, just click the bookmark icon on the main page or in novel details option menu. Another way is by opening the chapter and click Bookmark on Chapter to list only available bookmark on that chapter in Novel Content.
When I tap to highlight it does not show anything on the bookmark or Bookmark on Chapter
Image
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 »

deathlight wrote: When I tap to highlight it does not show anything on the bookmark or Bookmark on Chapter
Well, that's weird. Are you sure you have enabled the bookmark feature? What is your device and android version, also the chapter name. It is working in my device.
Visit my blog for other applications.
User avatar
kuroneko
Devoted Haruhiist
Posts: 50
Joined: Tue Mar 27, 2012 1:58 am
Favourite Light Novel: Ahouka!
Contact:

Re: New Baka-Tsuki Android App: Development

Post by kuroneko »

Interesting indeed.
Visit my site for the highest-quality ePubs. Each are meticulously crafted by hand, not automated, not converted.

Polyaness.com
User avatar
TaitoMagatsu
Reader
Posts: 9
Joined: Fri Mar 01, 2013 7:15 pm
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by TaitoMagatsu »

Nandaka wrote:
nockgeneer wrote:Online sync (through website login or Google Drive or some other method perhaps...) for moving between devices. This would make the above feature less necessary. . . . at least for me.
Syncing through file is not recommended, too much pain. See: http://inessential.com/2011/10/25/why_j ... _on_dropbo
I think that what you need in order to make a reliable syncing through file is modeling as if it was a Subversion system. Like in Git or SVN, you'd upload first a "base" of the data, and from since onwards you'd only upload the changes to it (in fact, the base would be unnecessary if you consider that every user starts from a certain "default" data). Then, every time you wanna update the information on the current device, you check the last "commited changes" you updated yourself to and start downloading since that one (which would make updating costs stable through time).

The device commits your changes to the info, if there's any, every 15 minutes or so. First, it'd check if there was any commit you didn't download yet, download them if there's any, and use some DIFF mechanism (which, seeing as the user data in this app is very simple, would be also very simple itself) to check if there's conflictive changes. If there is any, it would throw a popup or a notification to the user to ask for actions. There could be even an option that makes it so "automatically do X when there is conflict" if it is necessary. If there is no conflict, and also after solving existing conflicts, you commit your changes to the directory.

Now, how would you get directions along the updates? Very simple. Just make it as Subversion does in SVN (idk if Git does): Every update is labelled with a number, which is (<last update's number> + 1). Also, for avoiding concurrent conflicts, when you start creating an update, you make an empty archive inside the main folder, with the name <not ready - updating>, so every other device sees it when trying to commit and waits. You would upload every update as a folder, or as a text/XML file, with the ID in its name. Then, when you finished committing the changes, you erase the "WAIT" archive and let the other devices kick in with their commits.

This model I find to be very simple. The only challenge would be to do it using a cloud storage, which I'm not familiar with so I can't give you my thoughts. But I've seen a lot of devs. using dropbox, so that one seems to be the way to go. Maybe there's something better though.

Thanks for the app btw. Mostly because of its ease-of-use is that I use it instead of Aldiko for reading your works guys. Much much better.
User avatar
kuroneko
Devoted Haruhiist
Posts: 50
Joined: Tue Mar 27, 2012 1:58 am
Favourite Light Novel: Ahouka!
Contact:

Re: New Baka-Tsuki Android App: Development

Post by kuroneko »

SVN, Git those are good but I prefer Mecurial+Tortoise easier to learn than git.

Downloading the app now @gp...
Visit my site for the highest-quality ePubs. Each are meticulously crafted by hand, not automated, not converted.

Polyaness.com
deathlight
Reader
Posts: 8
Joined: Tue Mar 05, 2013 12:11 am
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by deathlight »

Nandaka wrote:
deathlight wrote: When I tap to highlight it does not show anything on the bookmark or Bookmark on Chapter
Well, that's weird. Are you sure you have enabled the bookmark feature? What is your device and android version, also the chapter name. It is working in my device.
Im using HTC Desire S on version 2.3.5. All of the novels are not able to bookmark at all and Ive tried online and offline reading of different novels :( .
Here are some pictures of the problem
http://i778.photobucket.com/albums/yy65 ... c2e3b5.jpg
http://i778.photobucket.com/albums/yy65 ... cd9a81.jpg
http://i778.photobucket.com/albums/yy65 ... 68dc1c.jpg
Image
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 »

deathlight wrote: Im using HTC Desire S on version 2.3.5. All of the novels are not able to bookmark at all and Ive tried online and offline reading of different novels :( .
Here are some pictures of the problem
http://i778.photobucket.com/albums/yy65 ... c2e3b5.jpg
http://i778.photobucket.com/albums/yy65 ... cd9a81.jpg
http://i778.photobucket.com/albums/yy65 ... 68dc1c.jpg
Is it possible to get the log file? If you phone is rooted, you can use CatLog to get it without pc, if not then you need to get the android sdk and run adb log (See: http://forum.samdroid.net/f38/tutorial- ... rain-2543/).

There is another log reader for android (https://play.google.com/store/apps/deta ... tb.alogcat), I suppose this one doesn't need root (haven't test it).
Visit my blog for other applications.
User avatar
TaitoMagatsu
Reader
Posts: 9
Joined: Fri Mar 01, 2013 7:15 pm
Favourite Light Novel:

Re: New Baka-Tsuki Android App: Development

Post by TaitoMagatsu »

kuroneko wrote:SVN, Git those are good but I prefer Mecurial+Tortoise easier to learn than git.

Downloading the app now @gp...
Well, in the core those are the same. What I mean by "similar to SVN and Git" is the way of commiting and saving changes. Instead of uploading the whole work, you just upload the changes done to it, same as mercurial does.

@offtopic: I use tortoise too, but with a SVN repository. It's marvelous how quick you can manage stuff compared to RapidSVN and others... jeez.
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 »

TaitoMagatsu wrote:What I mean by "similar to SVN and Git" is the way of commiting and saving changes. Instead of uploading the whole work, you just upload the changes done to it, same as mercurial does.
Then you need to create the diff engine for sqlite data, also you need to create the conflict resolution for it too. I still prefer db+web api.
Visit my blog for other applications.
Post Reply

Return to “Developers and Code”