Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2013, 10:36 AM   #1
phatmanace
Junior Member
phatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheese
 
Posts: 4
Karma: 1000
Join Date: Sep 2013
Device: Kindle Touch 5
Kindle KDK PNG support + autostart?

Hi Folks,

would anyone have a code example lying around to show a png on a kindle?

secondly - is there a recommended way to auto start an application on a kindle? I guess you can just use the java Graphics context like you would with any other java application -but it would be nice to see an example if anyone has one.

I'm basically shooting for the weather hack application but instead of just using eips to show the png, I'd like to have some interactivity to take advantage of the touch screen on my kindle 5

Thanks, Ace
phatmanace is offline   Reply With Quote
Old 09-14-2013, 11:29 AM   #2
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: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by phatmanace View Post
Hi Folks,

would anyone have a code example lying around to show a png on a kindle?

I guess you can just use the java Graphics context like you would with any other java application -but it would be nice to see an example if anyone has one.
Yes, but only a rather cryptic one. Start with the handleSpecialEntry() method here, and try to understand how it works. This is the code that implements the easter egg hidden in Collections Manager. (That's also why it's somewhat cryptic - it is not meant to be very easily understandable at a first glance). What it does is this: when CM is told to hide itself, it will refuse to do so. Instead, it will display a png for 15 seconds, then return to its normal display. Donwload CM and try it out to see it in action.

But in one sentence: yes, displaying a png works pretty much exactly like in any other Swing application. You use the standard classes for handling Images and for loading and painting them.

Quote:
secondly - is there a recommended way to auto start an application on a kindle?
There's no autostart folder or anything like that. There's an event handler here which may, or may not, be useful.

PS: Please update your profile and correct your device list.
ixtab is offline   Reply With Quote
Advert
Old 09-14-2013, 02:52 PM   #3
phatmanace
Junior Member
phatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheesephatmanace can extract oil from cheese
 
Posts: 4
Karma: 1000
Join Date: Sep 2013
Device: Kindle Touch 5
Thanks - profile updated correctly (I hope) I'll have a look at the code and see if I can work my way through it.

-Ace
phatmanace is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle KDK and Simulator ulver Kindle Developer's Corner 2 09-16-2011 04:54 PM
Ubuntu: Autostart Calibre if connecting Kindle SteffenH Calibre 0 09-05-2010 04:22 PM
Amazon's email about the KDK. KDK isn't here... yet. ziplizard Amazon Kindle 3 05-14-2010 12:25 AM
where to get autorun.xml, icon.png, key.png, lut.bin for PRS-505 obender Sony Reader Dev Corner 2 01-25-2009 03:20 PM


All times are GMT -4. The time now is 06:16 PM.


MobileRead.com is a privately owned, operated and funded community.