yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] toto2700:
Aldiko sync is not working again. I got this: "Page load failed. Error: 403."

I think Dropbox changed something.
[Android Apps and Games] droidmark:
Seems to be working fine here.
[Android Apps and Games] GameGod72:
I've had one other report about a similar issue and I can reproduce it, if I clear the existing token.

I'll be looking at this over the weekend, and hopefully have a fix.

Sorry for the inconvenience.
[Android Apps and Games] toto2700:
That's weird. I just reinstalled my phone so it's clean. Even in settings I cannot click on 'Clear Token' because it's grey.
[Android Apps and Games] GameGod72:
Sorry, if I wasn't clear. If you haven't logged in, or clear your existing token, you will see this issue.

It does seem like Dropbox has changed something that is causing the app to not receive the token from the authentication process.
[Android Apps and Games] toto2700:
Where is this token located? I have a tablet. I thought I just copy the token from the tablet.
[Android Apps and Games] GameGod72:
New version released

The issue with the Dropbox login has been fixed and new version released.

First post updated with details.
[Android Apps and Games] GameGod72:
New version released

Issue with acquiring root on Marshmallow devices fixed.

First post updated with details.
[Android Apps and Games] manpreetnehra:
Hi,

I have been using Your app for almost 3 yrs now and I love it. Rooting not being an issue its fun. But I do have a feature request. Currently i am locked in with using dropbox as my storage location, It would be awesome if there were other options like

MEGA(50GB space and encrypted) or even ownCloud (you own your storage) or something like that. I hate being tied to any company especially google/dropbox/yahoo/micro$oft

Manpreet
[Android Apps and Games] GameGod72:
This is on my TODO list, but each provider has a different API, so takes quite a bit of work to support them. I personally have had no issues with Dropbox (except for the occasional short service down times), so haven't seriously looked into any others.
[Android Apps and Games] GameGod72:
New version released

New version that fixes issue with acquiring root privileges on certain devices with Android OS 5.1.1 and later.
[Android Apps and Games] GameGod72:
New version released

Fix issue introduced in previous release: Sync waiting forever while acquiring root the very first time after install/upgrade on devices with Android OS 5.0 (Lollipop) and later.
[Android Apps and Games] GameGod72:
New version released

Improve root acquisition compatibility.
[Android Apps and Games] GameGod72:
New version released

Fix issue introduced with previous version on CyanogenMod ROM's.
[Android Apps and Games] manpreetnehra:
Feature Request: I know its not a high priority but would it be possible to add support for other cloud apps. Ex.

1. Seafile

2. Owncloud

3. Megasync
[Android Apps and Games] GameGod72:
Sorry for the very late response. The sync app is now in maintenance mode, and I won't be able to add any new features.
[Android Apps and Games] GameGod72:
New version released

Migrate Dropbox interface to new API, as the older version will be disabled on 28-Jun-2017.
[Android Apps and Games] snipinu:
Has this app stopped being updated issues with Android O
[Android Apps and Games] gwisch:
Yes, I asked the developer and he told me that he hasn't got the time any more to maintain the app.

Which is a bummer as I do not know of any other ebookreader sync app with this level of simplicity and perfection.

BTW: The syncing also seems to have stopped working under the later version of Android 7.
[Android Apps and Games] Test_subj:
I did a titanium backup from my 6.0 tablet and restored it on my 8.0 tablet and it's working!

Well, it only works with auto sync enabled.
[Android Apps and Games] met67:
This app is cool!

Any hope to support .metadata.calibre file? This way we could use Calibre to connect to a DropBox folder using Aldiko folder structure, add or remove books to it and then use Aldiko Sync to update any device we own!

It seems that .metadata.calibre is in JSON format and has most of the infos needed. The only problems could arise with page_count and _id fields: it should be relatively easy to generate a new _id for new books but I have no idea how to find page_count, maybe it can be ignored.
[Android Apps and Games] GameGod72:
Sorry, I don't follow. Can you please explain how this works?
[Android Apps and Games] met67:
Well, it doesn't work, as of now :p

What I am thinking of is some kind of support from Aldiko Sync for the "Folder Device" in Calibre.

When you connect Calibre to a folder, you can use it as a device, sending books to it as you do with any physical reader. Calibre lets you define the pattern of the path to use for these books in the folder device and it should be possible to mimic the path used by Aldiko (and Aldiko Sync) for its library.

Calibre also store its metadata in a file called .metadata.calibre in the root of the foder device, and this file holds the infos on the books stored in the folder device.

IF you could interface to this file, it should be possible to integrate these infos in your library.xml when updating an Aldiko instance on a device.

The scenario is the following: using a Dropbox folder as a folder device you manage your ebooks library from your PC, and, e.g., you decide to add a new book to it.

Behind the curtains, Dropbox syncs the new book and the updated .metadata.calibre on Dropbox servers.

Then you launch Aldiko Sync in your NOOKColor where it reads, e.g., both library.xml and .metadata.calibre, finds that calibre added a new book and so allocates a new id for it in Aldiko, insert the right record in the DB and proceeds to sync the ebook file as usual.

It should not be too hard to implement, but, of course, I have not gone too deep in the analysis of details, so YMMV ;)
[Android Apps and Games] GameGod72:
Interesting idea.

However, the biggest problem that I see, without investigating this further, is thumbnails and covers. Aldiko uses proprietary code to extract and generate the thumbnail and cover images from eBooks and PDF's. I currently get around the problem by "shuffling" the Aldiko generated images from device that added a new book to other devices. To support this feature, I'd have to write the code to do the heavy lifting.

IMHO, the easiest way to work around this issue is to first sync the book to dropbox from your PC (using the dropbox folder as a device, like you suggested), then use the Android Dropbox app to sync the book and manually add it to Aldiko from one of your devices. Once that's done, my app will do the rest automatically.
[Android Apps and Games] met67:
You are right, there are lot of details that must be further investigated.

I'll try some ideas and will report here, just for the sake of discussion :)
[Android Apps and Games] GameGod72:
Thanks. I look forward to it :)
[Android Apps and Games] met67:
In the mean time, take a look at this :

http://xdaforums.com/showthread.php?t=1022347

It is not very hard to extract covers from an ebook as long as you can use a zip extraction and an image manipulation library.
[Android Apps and Games] GameGod72:
The problem is not finding the cover for epubs, its figuring out what Aldiko does with it to generate its version of the thumbnail/cover. If I don't duplicate/reverse-engineer that, then covers for books imported with this method will likely look different/odd than ones imported directly via Aldiko. On the other hand, if I do manage to figure that out, then I will no longer need to store the thumbnails/covers on dropbox, saving bandwidth costs for users.

Also, this doesn't cover the question of thumbnails for PDF's.
[Android Apps and Games] met67:
Uhmmm... I'm afraid that PDF covers are a show stopper and I don't think it is worth the effort of reversing Aldiko code :(
[Android Apps and Games] GameGod72:
Yeah, I thought about this issue and couldn't find any easy ways of getting around it, which is the reason I went with the "shuffle" solution.

Let me know if you discover something that might make this feature viable again.

Thanks.
[Android Apps and Games] pharpe:
Can this be used to add books to my phone from my PC? I put some new ebooks into the dropbox folder on my PC. I can see the files in the dropbox on my phone but I do not see them in Aldiko after running the Sync.
[Android Apps and Games] GameGod72:
You must first import the books into Aldiko from one device before they can be seen by my app.

To do that, try this on the phone that has the new books:

Open Aldiko and then navigate to the "Home" screen within it.

You should see an option called "SD Card".

Click that option, navigate to the dropbox folder on the SD card, and import your books from it into Aldiko.

Once they are in Aldiko, use my app to do a sync.

Now, use my app as usual from any of your other devices and the new books will get added to the device if they don't exist.

Let me know if you have any issues.
[Android Apps and Games] pharpe:
Thanks. That worked.
[Android Apps and Games] jdaudlin:
Nice update. Would like to see it auto update only after using Aldiko. Also, would it be possible to remove the notification icon. I have enough of them already.
[Android Apps and Games] GameGod72:
Thanks!

Yes, I'll add an option to remove the notification icon with the next update.

Can you elaborate on what you mean by only auto update after using Aldiko?

Here's how auto update works:

When you wake the device, the app runs a check against the current status in Dropbox to determine if any changes from other devices need to be synced down. This is done so your books are ready for you should you choose to open Aldiko.

When you quit Aldiko, changes from your books are synced up to Dropbox.

The sync check after wake should be really quick (especially if you have network optimization on) unless actual changes need to be brought down from dropbox.

I designed it this way so auto sync is set-and-forget as far as possible and your books are always ready for you.

Let me know if your experience is different.
[Android Apps and Games] jdaudlin:
When I tried the update yesterday it seemed like the update was constantly syncing. Also, inorder for me to get an accurate sync I have use the reset option and then sync.
[Android Apps and Games] GameGod72:
That's certainly not normal.

You should never have to use the reset option, unless you've deleted everything from your local Aldiko library and want to force sync it with the dropbox version so you get everything back.

Can you try again, and try and tell me exactly what's happening?

- Can you check your dropbox account and see if the library.xml and library.md5 files are being updated?

- Can you screenshot and post the log contents from my app when you see this problem (please don't use the reset option when you do this)

Thanks.
[Android Apps and Games] jdaudlin:
Apparently I am using this update program wrong. I have icons of my books setup on my desktop. These icons are linked as shortcut widgets to my Aldiko library. When I want to open a book I use the icon, I don't actually open the Aldiko program. It seems that your program is to be used to open Aldiko and then open your book from there. Hope you can see my screenshot.
[Android Apps and Games] GameGod72:
Yes, I see the screenshot. Thanks.

What is the hardware/android version that you're seeing this issue on?

You don't need to open Aldiko from within my app. It should work, as long as Aldiko is opened and my app is running in the background (via auto sync option being enabled).

Can you tell me how you've setup your shortcuts? The app you're using to set them up (if any) and any other info that you can provide so I can try duplicating it on my end and see if I can reproduce the issue.

As a test, can you please open Aldiko directly (from the launcher/desktop) and see if my app behaves as expected?

Thanks.
[Android Apps and Games] jdaudlin:
I use a program called Desktop Visualizer to create my book icons. I have had auto update running for a couple hours now and it is not updating. I understand that your program updates when you wake the phone, but it just isn't updating. It just keeps saying "No local or remote changes detected. " And yes I have made changes.
[Android Apps and Games] GameGod72:
Okay, I'll try that on my end as well and let you know if I run into similar issues.

In the mean time, can you try this please:

- Open Aldiko directly from the desktop, without using your book icons. Make sure you open a book, browse a couple of pages, then quit Aldiko so you're back at the desktop. Does sync launch automatically?

- If you're still seeing the "no changes" message, go to the settings menu within my app, and turn OFF network optimization. Then manually run a sync by clicking on the "Sync" button. Does it detect any changes?

Thanks.
[Android Apps and Games] jdaudlin:
Opening Aldiko directly did nothing. No auto update after closing the app

I then manually synced and nothing. Turned network optimization off and it successfully synced.
[Android Apps and Games] GameGod72:
So the sync didn't even launch after you closed Aldiko? or did it launch but gave you the "no changes" message?

Now that you've done one successful sync, does it work as expected? That is, automatically sync on quitting Aldiko and get changes from Dropbox on wake?

If that is working, can you try turning on network optimization and see what happens?

Thanks.
[Android Apps and Games] jdaudlin:
Nothing happens when I open or close Aldiko.

The only time it syncs is when I wake my phone or I manually sync.

Network optimization diffinently does not work. When it is on I get no changes. With it off it syncs normal.
[Android Apps and Games] GameGod72:
Weird. Something is preventing my app from noticing changes to the Aldiko library. That would cause a cascading failure and make the network optimization feature not work as expected.

In my app, navigate to the settings and first turn off "auto sync". You should see a message that says "Automatic sync disabled". Then, turn it back on. You should see a message that says "Automatic sync enabled". Please let me know if you see both those messages.

If you're okay with helping me track this down, please let me know and I'll send you a PM with more details.

Thanks.

Edit:

Looking into this further, the network optimization feature will not work if automatic sync is disabled. In the next release, I'll update the app so the dependency is made obvious to the user.
[Android Apps and Games] jdaudlin:
I saw both messages. I appreciate the work you've done on this app and am confident that you will find a solution. I can try to help you track the problem down, let me know what you need.
[Android Apps and Games] GameGod72:
Thanks. PM sent.
[Android Apps and Games] hakan42:
Hi,

Did you get around to check what you need from 2.2? My eye doctor would really really love me to read on the Nook instead of the phone display :)
[Android Apps and Games] GameGod72:
Yes, I did.

Unfortunately, I can't move it back to 2.1 because I am using the javax.xml.transform API. Initially I was using XOM, but I had some issues with it and the built in API works consistently, not to mention that its also a bit faster.

Sorry.
[Android Apps and Games] hakan42:
Ah, o.k. On the other hand, this is a strong incentive to actually finish my own little project which was intended to work with my Nook as well ;)
[Android Apps and Games] GameGod72:
I'm curious, why are you averse to upgrading?

Its already rooted, and you should be able to make a complete backup using either ClockworkMod or Titanium Backup so you can easily rollback in case you see issues.
[Android Apps and Games] hakan42:
Actually, I am not averse to upgrading. Just did not see how. I checked CyanogenMod yesterday, but they support only the Nook Color. Do you have any pointers to check out?
[Android Apps and Games] tjhart85:
I just purchased the pro version. I love this app.

One thing though, on my Nook Color with CyanogenMod, its showing as an incompatible device, so it won't let me install from the market. Is there any way you can make it so a CyanogenMod version of the Nook is accepted as a compatible device?

Its running gingerbread, so none of the 2.1 issues
[Android Apps and Games] GameGod72:
Thanks for purchasing the Pro version and I'm glad you like it :)

What is the Android OS version shown on the device?

Thanks.

Edit:

I found some threads via google, it seems like its a known issue for the Nook Color. See: Link, especially this one.

Unfortunately, there's nothing I can do on my end to make it show up on it. Understandably, the Nook is not even listed as a device in the app profile.

Please let me know if you manage to make it work.
[Android Apps and Games] GameGod72:
I'm sorry I can't seem to find an upgrade for the classic Nook. For some reason, I thought you had the newer version.
[Android Apps and Games] hakan42:
In that case, do you mind if I try to read / parse the data structure you keep in library.xml ?

I really like the idea of using dropbox as a data storage, and might hack something over the weekend to read that file for my Nook. Actually downloading the book from dropbox might be a little bit too much for a weekend project though :o
[Android Apps and Games] GameGod72:
Sure. Its very simple. I serialize the books and the bookmarks tables.

Each table serializes its columns in the "columns" element and the actual data in the "rows" element.

Dates/timestamps are stored as deltas from epoch.

That's it :)

That did get me thinking, if i switched over to a binary format instead of xml, then it would be much easier to support 2.1

I'll think about that over the weekend and see how feasible that is...
[Android Apps and Games] GameGod72:
New version released, and first post updated with the details.
[Android Apps and Games] hakan42:
In that case, I might be tempted to let you think on the binary format idea and work on my OSM contact syncher project instead...

So many project ideas, so little time on weekends :)
[Android Apps and Games] GameGod72:
I know exactly what you mean :)
[Android Apps and Games] hakan42:
Actually, would you mind to "officially document" the Intent you are using to launch the synchronization? ( I know, I could look into AndroidManifest.xml, but having it from you is nicer... )

That way, a Locale / Tasker plugin could be written that allows the user to customize the sync event any way he likes... And you could still keep that Intent only available in the pro version if you want to avoid any impact on your financial plans :)
[Android Apps and Games] GameGod72:
Good idea. Currently, a sync cannot be launched from an external app, since I don't export any intent filters for any of my triggers.

I'll add this feature to the next release and let you know the details.
[Android Apps and Games] met67:
Is there any way not to show the "Aldiko sync got root" (or smtg like that) message whenever you unlock the device?

On another subject, I noticed that Aldiko generates differently size covers and thumbnails depending on the device you import the epubs.

I have both a Desire HD and a Nook Color: covers and thumbs created on the NC are 400x600 and 112x156 respectively, while those created on the DHD are 480x720 and 132x186.

On the NC I set LCD density to 200.
[Android Apps and Games] GameGod72:
The "got root" message is displayed by the "SuperUser" app and not by me. In earlier versions, you could only turn it off for all apps. In later versions, you can turn it off on a per app basis. Check the one you have on your device to see what options you have regarding this.

I already know about the cover size issue. Its a problem only on devices that have a non standard LCD density. I plan to fix this issue in a future release. Its not a trivial fix, as I will have to figure out the correct way to resize the images generated by Aldiko.
[Android Apps and Games] GameGod72:
Released a new bug-fix version and added ability to trigger a sync operation from external apps.

Details in the first post.
[Android Apps and Games] hakan42:
Thank you, now it's my turn to put code where my mouth is :D
[Android Apps and Games] GameGod72:
You're welcome :) Please let me know if you do write a tasker/locale plugin, so I can promote it with future releases.

Thanks!
[Android Apps and Games] gascomm:
excellent addition to aldiko. thanks
[Android Apps and Games] GameGod72:
You're welcome. Glad you like it.

Please add your review to this app's market page, if possible :)
[Android Apps and Games] StormtrooprDave:
I have aldiko pre installed on galaxy s bit it doesn't recognise that it is installed. Any way to make this work without installing version 2 from the market cos version 1 is much better in my eyes?
[Android Apps and Games] GameGod72:
Maybe. If you can send me the Aldiko apk from your device I can take a look and see I can support it.
[Android Apps and Games] StormtrooprDave:
I sent a pm with the app , hope you can do something with it
[Android Apps and Games] GameGod72:
Thanks, I'll take a look and let you know.
[Android Apps and Games] jamieaxall:
Very cool-

Subscribed.
[Android Apps and Games] R3dF1v3:
Great app - enough that I decided to purchase the pro version, as I have a Desire HD and a Galaxy Tab, and the automatic sync is a godsend.

The only annoyance I have, is the sync-on-wake. Not a problem in itself, except that when my devices boot, Aldiko Sync always tries to start a sync before the phone has finished initialising, (therefore before SuperUser has loaded). This results in a notification error, which I then have to clear,and then I'm having to remove your app from SuperUser, and then let it ask for permission again. Not exactly a showstopper, but a definite pain...

Anyway of delaying that first sync after the phone has booted?
[Android Apps and Games] GameGod72:
Thanks for purchasing the Pro version :)

Does this happen only on reboot or after every wake?

Have you white-listed my app in the SuperUser app? At least on my devices, once the app is white listed, I only get a notification that the app has acquired super user permissions and it requires no further user interaction.

If you've already tried that, can you post a couple of screen shots showing the issue, if possible?

Thanks.
[Android Apps and Games] tjhart85:
Thanks! Changing 161 to 160 in build.prop resolved that issue.

Loving the pro functionality so far. After you've forgotten to sync after reading a hundred or so pages, you realize just how non-trivial an auto sync is!
[Android Apps and Games] GameGod72:
Thank you for getting back to me on this.

Am so glad that changing the build.prop was enough to get things to work :)
[Android Apps and Games] debew:
blank dropbox folder

Hi, I am new here. This app is great for me. I follow instructions listed above, and find the dropbox folder on the SD card is empty. I check dropbox folder on file manager and it's ok with eBooks files. What went wrong here? Thanks.
[Android Apps and Games] GameGod72:
I'm not sure what you mean by "file manager", but I'll assume you mean you can see the books in the online dropbox folder but not on the SD card.

In this case, you first need to install the official dropbox app, then download the books to your SD card. Once they are on the SD card, you can follow the instructions above.

Note, that you only have to do this once, and only on one device, so the books are available in Aldiko. Once the books are in Aldiko, my app will manage the rest.

Let me know if you still have issues.
[Android Apps and Games] debew:
Thanks for your fast response. It works. I find a file named Aldikosync in the Dropbox folder. It is almost the same size comparing to the original library folder. And it definitely consumes a big chunk of the free Dropbox folder... BTW, the tags and authors appear differernt from my own setting. Why? Doesn't the syncing work on my setting of metadata of the ebooks?