08-08-2011, 07:44 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: kindle 3g
|
Directory contents & opening books through kindlets
Hi, does anyone have any idea how can I get the full content of the /mnt/us/documents directory? I need to get this info into a kindlet. I tried the ctx.getHomeDir, creating a File object and getting the list of files and executing ls as a Runtime Process, but every time I run into an Access Denied error message.
My second question is, if I have the location and name of a book, how can I make the kindle open it in the default viewer? |
08-08-2011, 10:34 PM | #2 |
Enthusiast
Posts: 35
Karma: 1566
Join Date: Nov 2010
Device: kindle 3wifi
|
You're not supposed to access the files outside your application's directory.
|
Advert | |
|
08-09-2011, 03:58 AM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: kindle 3g
|
Yes, i realized that, but do I have any options if I want to go around this within the kindlets' boundaries?
|
08-09-2011, 03:35 PM | #4 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: kindle 3g
|
I've found a good enough workaround using launchpad and the ls command, which, on the long run, can probably be hooked to the reader's auto-refresh-book cycle. Only the second part of the question remains now: how can I make the kindle open a given book from a kindlet? Please help me out with this, two cute girls are waiting for a usable collection manager Any solution, no matter how messy, would be great.
|
08-10-2011, 09:39 AM | #5 | |
Member
Posts: 10
Karma: 26
Join Date: Aug 2011
Device: kindle k3 3G/wifi
|
Quote:
are you on the kdk? or are you an unofficial developer? |
|
Advert | |
|
08-10-2011, 10:28 AM | #6 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: kindle 3g
|
I'm just an enthusiastic, with no prior java, and limited linux knowledge, using the kdk grabbed from the kindle – among other great stuff I've found here. The worst part is I have some ideas about how it could be done, but I lack the knowledge to figure them out myself.
Right now even a command line method to open a book would be much appreciated, because from then on I could create a file from within the kindlet with the book's path, and if a program were to wait in the background, maybe with some inotify support, it could handle the actual opening. Or maybe the launchpad could be convinced to help out somehow… |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transliteration in file&directory names | vadim_k | Calibre | 4 | 11-14-2011 07:04 AM |
Is there a way to browse the Kindle contents by directory? | sweevo | Amazon Kindle | 1 | 09-15-2010 04:07 PM |
opening & closing journals | Rina | enTourage Archive | 4 | 05-14-2010 06:47 PM |
Functions for directory & file naming | LARdT | Calibre | 4 | 01-09-2010 12:06 PM |
Help! Corrupted books Directory | carandol | iRex | 3 | 02-15-2008 07:51 AM |