|
|||||||
|
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features. If you have any problems with the registration process or your account login, please contact us. Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience. |
| Kindle Developer's Corner Linux, hacking and development of software and hardware |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Connoisseur
![]()
Posts: 62
Karma: 24
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.
__________________
So we beat on, boats against the current, borne back ceaselessly into the past. ------- The Great Gatsby, F. Scott Fitzgerald |
|
|
|
|
Enthusiast
|
|
|
|
#2 |
|
Member
![]()
Posts: 16
Karma: 10
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. |
|
|
|
|
|
#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. |
|
|
|
|
|
#4 |
|
Member
![]()
Posts: 16
Karma: 10
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;
}
}
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PDFReader 1.8.2 works great with Kindle | quantamix | Kindle Developer's Corner | 24 | 07-23-2009 07:45 AM |
| Report: Not one, but several Kindle successors in the works! | Alexander Turcic | News | 83 | 02-28-2009 03:20 AM |
| Custom Java apps/booklets on Kindle? | dumky | Kindle Developer's Corner | 10 | 02-10-2009 03:26 PM |
| Kindle software updates in the works? | tsgreer | Amazon Kindle | 4 | 12-06-2007 08:09 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 |