MobileRead Forums
Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Welcome to the MobileRead Forums.

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.

Notices

Kindle Developer's Corner Linux, hacking and development of software and hardware

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-26-2009, 05:31 AM   #1
DairyKnight
Connoisseur
DairyKnight began at the beginning.
 
DairyKnight's Avatar
 
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.
Attached Thumbnails
Click image for larger version

Name:	IMG_1013.jpg
Views:	355
Size:	24.1 KB
ID:	38046  
Attached Files
File Type: zip CdcApplication1.zip (30.8 KB, 200 views)
__________________
So we beat on, boats against the current, borne back ceaselessly into the past.
-------
The Great Gatsby, F. Scott Fitzgerald
DairyKnight is offline   Reply With Quote
 
Enthusiast
Old 10-27-2009, 12:03 PM   #2
dr_g100k
Member
dr_g100k began at the beginning.
 
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.
dr_g100k is offline   Reply With Quote
Old 10-27-2009, 02:08 PM   #3
vessenes
Junior Member
vessenes began at the beginning.
 
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.
vessenes is offline   Reply With Quote
Old 10-27-2009, 04:05 PM   #4
dr_g100k
Member
dr_g100k began at the beginning.
 
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;
    }
}
I think this version is more readable
dr_g100k is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

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


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


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