Different context?Tidon wrote:You're right, the system releases the memory if it is needed by another app.Nandaka wrote:I think this is the normal behaviour for Android, they only will release it when the memory is low. Maybe you can try to run another application which uses a lot of memory (games?) and see what it the behaviour?
What I don't understand is why the system won't reuse the allocated memory even if the same chapter is opened multiple times.
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
- 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
Visit my blog for other applications.
-
- Reader
- Posts: 9
- Joined: Thu Jan 17, 2013 1:16 am
- Favourite Light Novel:
Re: New Baka-Tsuki Android App: Development
No, I meant the following:
When I open a new chapter, the app/system caches the entire page in ram. When I exit the chapter, the system does not release the cached content. Bloodscythe found out that the app will allocate a new part of ram if I reopen the same chapter again. My question is, why can't the system reuse the old cache if the content is exactly the same as last time the chapter was opened.
When I open a new chapter, the app/system caches the entire page in ram. When I exit the chapter, the system does not release the cached content. Bloodscythe found out that the app will allocate a new part of ram if I reopen the same chapter again. My question is, why can't the system reuse the old cache if the content is exactly the same as last time the chapter was opened.
-
- Kyonist
- Posts: 14
- Joined: Mon Aug 13, 2012 7:15 am
- Favourite Light Novel:
Re: New Baka-Tsuki Android App: Development
My guess - somewhere leaks Context. Context has references to all Views and Activity, so if it keep in memory, all loaded Activity will too. Memory will be freed only when process will be destroyed by Android's Memory Manager.Tidon wrote:No, I meant the following:
When I open a new chapter, the app/system caches the entire page in ram. When I exit the chapter, the system does not release the cached content. Bloodscythe found out that the app will allocate a new part of ram if I reopen the same chapter again. My question is, why can't the system reuse the old cache if the content is exactly the same as last time the chapter was opened.
Also - in Java you always allocating new memory block for any new object, though it's right not only for Java. Memory leaks occurs when objects, that must be released didn't released.
- Erakk
- Digitalizer Editor
- Posts: 152
- Joined: Sat Jan 21, 2012 3:12 am
- Favourite Light Novel:
Re: New Baka-Tsuki Android App: Development
Ok, im half back...
Half, because i am going to keep at this while at work. My ISP said they were going to remake all the cable structure on my home in about 7 work days, so i am out of internets at home for now, aside from my phone's 3G which works when it wants.
Im going to get git stuff now and compile the new build. And also check the memory management, if i can.
Half, because i am going to keep at this while at work. My ISP said they were going to remake all the cable structure on my home in about 7 work days, so i am out of internets at home for now, aside from my phone's 3G which works when it wants.
Im going to get git stuff now and compile the new build. And also check the memory management, if i can.
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
Update:
- Update updateService to include new novel
Source in GitHub
- Update updateService to include new novel
Source in GitHub

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
I'm updating with build 32 and ill get a link to it soon.Nandaka wrote:Update:
- Update updateService to include new novel
Source in GitHub
I had some cool UI updates but i cant upload them now because the source code is at home =/
So i have to bring it to work...
EDIT:
Build 32 With latest Updates as of this part of thread:
https://www.dropbox.com/s/w0j56z647njib ... 1-0-32.apk
EDIT2: I am having connection problems when attemping to update github with this apk...
If you can get this file and substitute build 31, Nandaka =)
In theory, practice and theory are the same.
but, practically, they arent.
but, practically, they arent.
-
- Astral Realm
Re: New Baka-Tsuki Android App: Development
Would it be possible to separate the invert colours setting between content reading and menus? For example I like a black background with white text for the page with the buttons: "Light Novels" "Watch List" "Jump to Last Read" etc as well as for the light novel and volume/chapter select screens, but for reading I like a white background with black text.
It isn't a huge deal switching them back and forth, but is somewhat annoying.
It isn't a huge deal switching them back and forth, but is somewhat annoying.
-
- Haruhiist Disciple
- Posts: 63
- Joined: Fri Dec 14, 2012 1:50 pm
- Favourite Light Novel:
Re: New Baka-Tsuki Android App: Development
I didn't notice at first but the dialogue pop up when loading novel or watchlist is gone. Now it feels a lot smoother which is great.
Will you be doing the same when opening novel details and chapters?
Anyway, I might seem like an idiot for asking, no, I am an idiot, but what does the "Use Internal Webview for External Link" option do?
At first, I though it was to read chapters that were posted outside of Baka Tsuki but when I try to open an External Chapter, it just pops up with the box to open a specific web browser....
Notes: External Chapters aren't marked blue anymore but with an arrow.
Need to update settings to reflect this, haha.
I tested the clear image cache function but it still ended up deleting everything....
If this is too difficult to fix why not have Clear image cache do this:
Backup novel database then replace database with the backup as the backup contains no images.
I admit it's a weird workaround but if all else fails, you could try this.
Gekkou Short Stories is now confirned to appear. Thank you, Devs.
Will you be doing the same when opening novel details and chapters?
Anyway, I might seem like an idiot for asking, no, I am an idiot, but what does the "Use Internal Webview for External Link" option do?
At first, I though it was to read chapters that were posted outside of Baka Tsuki but when I try to open an External Chapter, it just pops up with the box to open a specific web browser....
Notes: External Chapters aren't marked blue anymore but with an arrow.
Need to update settings to reflect this, haha.
I tested the clear image cache function but it still ended up deleting everything....
If this is too difficult to fix why not have Clear image cache do this:
Backup novel database then replace database with the backup as the backup contains no images.
I admit it's a weird workaround but if all else fails, you could try this.
Gekkou Short Stories is now confirned to appear. Thank you, Devs.
- Erakk
- Digitalizer Editor
- Posts: 152
- Joined: Sat Jan 21, 2012 3:12 am
- Favourite Light Novel:
Re: New Baka-Tsuki Android App: Development
@ Dialogs: Yes, we want to make the app more smooth and seamless. Dialogs are cool but only if you need to stop the user from doing another thing, (like for exmaple, when he backups/restores/clears the DB)Bloodscythe wrote:I didn't notice at first but the dialogue pop up when loading novel or watchlist is gone. Now it feels a lot smoother which is great.
Will you be doing the same when opening novel details and chapters?
Anyway, I might seem like an idiot for asking, no, I am an idiot, but what does the "Use Internal Webview for External Link" option do?
At first, I though it was to read chapters that were posted outside of Baka Tsuki but when I try to open an External Chapter, it just pops up with the box to open a specific web browser....
Notes: External Chapters aren't marked blue anymore but with an arrow.
Need to update settings to reflect this, haha.
I tested the clear image cache function but it still ended up deleting everything....
If this is too difficult to fix why not have Clear image cache do this:
Backup novel database then replace database with the backup as the backup contains no images.
I admit it's a weird workaround but if all else fails, you could try this.
Gekkou Short Stories is now confirned to appear. Thank you, Devs.
@ External WebView: gonna change the name. Thats basically experimental, its because, when reading an external novel, it will open in a browser, so we cant keep track of your scroll position and/or use next/previous/jump to features. By using our designated webview, we can.
@ External arrow change: Will do that.
@ Clear DB problem: we will have to look more into it maybe.
@ Gekkou =D
ALSO:
@ Separate Themes for reading/menu: Can be done, but i dont think will be done soon. I am checking as to what features to leave for a future patch, so we can release this one officially. but first we gotta fix some problems, as people have been complaining, the app os using too much memory.
In theory, practice and theory are the same.
but, practically, they arent.
but, practically, they arent.
-
- Astral Realm
Re: New Baka-Tsuki Android App: Development
it seems this problem happends when you use the zoom.Flesher wrote:Whenever I press back and enter the chapter again it just starts at the beginning of the chapter instead of where i was.
- 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
Can you give the chapter for testing?Bloodscythe wrote:I didn't notice at first but the dialogue pop up when loading novel or watchlist is gone. Now it feels a lot smoother which is great.
Will you be doing the same when opening novel details and chapters?
Anyway, I might seem like an idiot for asking, no, I am an idiot, but what does the "Use Internal Webview for External Link" option do?
At first, I though it was to read chapters that were posted outside of Baka Tsuki but when I try to open an External Chapter, it just pops up with the box to open a specific web browser....
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)Erakk wrote:@ External WebView: gonna change the name. Thats basically experimental, its because, when reading an external novel, it will open in a browser, so we cant keep track of your scroll position and/or use next/previous/jump to features. By using our designated webview, we can.
Weird, I've put checking on the delete logic to skip db. I'll see it.Bloodscythe wrote:I tested the clear image cache function but it still ended up deleting everything....
Visit my blog for other applications.
-
- 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
just wanted to know if the its volentery to have the notification not showing updates but chapters only. What I mean is when I pull down the bar to look it Shows xx new chapters but no longer the number of updates. You can still see the updates in the update history though.
- 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
I can make the options for that, but don't blame me if you got 40++ notificationAzyrion wrote:just wanted to know if the its volentery to have the notification not showing updates but chapters only. What I mean is when I pull down the bar to look it Shows xx new chapters but no longer the number of updates. You can still see the updates in the update history though.

Visit my blog for other applications.
-
- 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
What I meant is that in built 31 you had this when you pulled down the top bar:
now its only:BakaReader EX Updates
Found xx Updates, Found xx new chapters
the part for updates(edits, new parts of chapters etc.) is missing. just wanted to know if that was your intention or not. Because I couldnt find it in you changelog (or missed it). You still see every change in the update history if you touch the notification so its ok.BakaReader EX Updates
Found xx new chapters
- 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
Yap, it should only show each portion if there is any update, so if there is 1 updated chapter and 1 new chapter, it will show as "Found 1 new chapter(s) and 1 updated chapter(s)".Azyrion wrote:What I meant is that in built 31 you had this when you pulled down the top bar:
now its only:BakaReader EX Updates
Found xx Updates, Found xx new chaptersthe part for updates(edits, new parts of chapters etc.) is missing. just wanted to know if that was your intention or not. Because I couldnt find it in you changelog (or missed it). You still see every change in the update history if you touch the notification so its ok.BakaReader EX Updates
Found xx new chapters
Is it show wrong information?
Visit my blog for other applications.