View Single Post
Old 09-23-2012, 02:59 PM   #9
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by damaru View Post
It seems the kindlet may might not be the easiest way to start.

Reflecting on the step to start coding. What about instead of a kindlet create a 'hack' that would be triggered with a shortcut (SHIFT E D) like I use for the FB of TY (reader and terminal... can't remember the name of the launcher at this point... too lazy). That would resolve some of the limitation of the kindlet right?
No, not really. The point is that there isn't really a way to start a new Java "application" - you have to find a way to run the code in the already running VM. And that is easiest to do if you implement it as a Kindlet - though there might be other options. I don't know how the K3 starts kindlets - if you manage to get it to run from the internal partition (/opt/lib), you will at least have unrestricted permissions, but you will still run with the "castrated" class loader.

Trust me, the Kindlet jailbreak is the easiest solution if you want to implement this in Java. And it's not as complicated to use as it initially sounds.

Otherwise, you can of course try to write (or port) a native application. I can't say much about that though, I never put a lot of effort into compiling native stuff (but there are other people around who did).


Quote:
Originally Posted by damaru View Post
Also to simplify the first step, I think I will aim to create a java app that will 1) pull the imap new email only, 2) download the email as text 3) save the email as .mobi in the user document folder and (or simply .txt at first) 4) mark these imap email as read (so they don't get re-downloaded each time. The .mobi would be formatted trough java as a simple html book. That would actually be a nice first step for my usage anyhow... and the new email would appear right in your main listing...

Thinking out loud here...
I don't think that this approach is any easier than displaying it in a Kindlet - and a lot messier once you reach more than a dozen or so mails.
ixtab is offline   Reply With Quote