10-26-2009, 05:31 AM | #1 |
Connoisseur
Posts: 63
Karma: 2600
Join Date: Oct 2008
Device: PRS-505
|
Kindle DX Homebrew - It works with Java!!
A lot of people have successfully built binary code to run on Amazon Kindle DX. But the hard part has always been how to work with the e-ink framebuffer driver, to correctly refresh the screen.
I have spent some time digging/reverse engineering the Amazon Java library and have just found a solution with Java code. So you will just need to know some basic Java/Awt stuff to program for your kindle A sample program has been attached. The key lies in the JNI adapter 'FrameBufferJNI.java', for which the binary file is /usr/java/lib/libjniframebuffer.so It supports partial, fully and black-white out screen refreshing, which is basically all what you can do with the device. To run the program - 1. Download JDK/Java ME SDK/NetBeans from Sun 2. Build the program, scp the whole directory to your Kindle DX. 3. Run: /usr/java/bin/cvm cdcapplication1.Main Have fun! I'm looking forward to some programs ported to Kindle DX, e.g. FBReader for Java. |
10-27-2009, 12:03 PM | #2 |
Member
Posts: 19
Karma: 12
Join Date: Aug 2009
Device: Kindle DX
|
Cool!!!
Can you show me how to handle key (and 5 way controller) events? Last edited by dr_g100k; 10-27-2009 at 12:05 PM. |
Advert | |
|
10-27-2009, 02:08 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2009
Device: Kindle 2
|
This inspired me..
Okay, this got me to crack open my kindle 2 and start poking around. I'm working on compiling your sample app now.
Thanks for the work! I can't believe you're not getting more kudos here -- to me a working framework for java apps seems like the key to getting the kindle 2 whipped into shape and submitting to its masters. |
10-27-2009, 04:05 PM | #4 |
Member
Posts: 19
Karma: 12
Join Date: Aug 2009
Device: Kindle DX
|
Code:
package com.lab126.util.framebuffer; public class FrameBufferException extends RuntimeException{ private static final long serialVersionUID = 1L; private int errorCode = 0; public FrameBufferException() { super(); } public FrameBufferException(String msg) { super(msg); } public FrameBufferException(Throwable t) { super(t); } public FrameBufferException(String msg, Throwable t) { super(msg, t); } public int getErrorCode() { return this.errorCode; } } |
04-26-2011, 10:55 PM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2011
Device: Kindle 3 wifi
|
When you run a java program from the command line like this that uses the eink frame buffer, how does sharing work with the framework app? Do both apps just use the frame buffer simultaneously?
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle DX Homebrew - Booklet&AWT Event Hook works, a step forward | DairyKnight | Kindle Developer's Corner | 11 | 11-24-2010 10:52 AM |
Kindle SDK (Java) vs. Qt | bordon | Amazon Kindle | 0 | 05-08-2010 03:45 AM |
Kindle DX java trouble | Netroman | Amazon Kindle | 1 | 02-12-2010 02:30 PM |
Custom Java apps/booklets on Kindle? | dumky | Kindle Developer's Corner | 10 | 02-10-2009 03:26 PM |
[Apple]Java Embedding Plugin 0.9.2: Force java to run in browsers other than Safari | Zire | Lounge | 4 | 05-24-2005 09:12 PM |