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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2009, 05:31 AM   #1
DairyKnight
Connoisseur
DairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with othersDairyKnight plays well with others
 
DairyKnight's Avatar
 
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.
Attached Thumbnails
Click image for larger version

Name:	IMG_1013.jpg
Views:	962
Size:	24.1 KB
ID:	38046  
Attached Files
File Type: zip CdcApplication1.zip (30.8 KB, 569 views)
DairyKnight is offline   Reply With Quote
Old 10-27-2009, 12:03 PM   #2
dr_g100k
Member
dr_g100k began at the beginning.
 
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.
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: 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;
    }
}
I think this version is more readable
dr_g100k is offline   Reply With Quote
Old 04-26-2011, 10:55 PM   #5
bdaddy
Junior Member
bdaddy began at the beginning.
 
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?
bdaddy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 07:35 AM.


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