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

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


Thread Tools Search this Thread
Old 12-13-2010, 06:21 PM   #1
Junior Member
joebo began at the beginning.
Posts: 2
Karma: 10
Join Date: Dec 2010
Device: kindle
jscheme proof of concept

Not sure how useful this is yet, but I have a proof of concept java app running through jscheme on my kindle 3g

howto (short):
1. download jscheme.jar and copy to kindle
2. run java -cp jscheme.jar jscheme.REPL on a root shell
3. paste in the proof of concept scheme code

howto (long):
1. download java 1.4 sdk
2. download jscheme
3. modify (see attached)
4. run bin\make in jscheme
5. copy jscheme to device

1. jail break
2. usbnetwork

I wanted to be able to develop a simple app/script on the kindle. Scheme seemed like a good choice.


I can't figure out how to keep the key code from bubbling up to the main window manager. It captures the keys but the main window (behind it) still gets its. For example, if I type abc then the search box still intercepts it too. Any ideas how to prevent that?


(import "java.awt.*")
(import "jlib.*")

(define *y* 0) 
(define win (EventFrame. "Hello"))
(define font (Font. "Arial" 1 20))
(.paintHandler$ win (lambda(g) 
  (.setColor g Color.white$)
  (.fillRect g 0 0 600 800)
  (.setColor g$)
  (.setFont win font)
	(.drawString g (.toString *y*) 10 *y*)
	(.drawOval g  40 50 100 100)
(.addKeyListener win 
  (Listener11. (lambda (e) 
    (set! *y* (+ 10 *y*))
    (.consume e) 
    (.setKeyCode e 0) 
    (.println System.out$ e) 
    (.requestFocus win) 
    (.repaint win))))
(.pack win)
(.setSize win 600 800)
(.setFocusableWindowState win #t)
(.requestFocus win)
(.show win)
Attached Thumbnails
Click image for larger version

Name:	kindle scheme.jpg
Views:	206
Size:	73.8 KB
ID:	62780  
Attached Files
File Type: txt (1.4 KB, 101 views)
File Type: txt jscheme.jar_rename.txt (601.4 KB, 95 views)

Last edited by joebo; 12-13-2010 at 06:25 PM.
joebo is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DR800 Shutdown mode - proof of concept Shaggy iRex 51 09-16-2012 06:39 AM
Proof of Concept: TeX-based ebook program in iPad frabjous General Discussions 2 07-09-2010 08:46 AM
Proof of US address? mgmueller Amazon Kindle 1 03-19-2010 09:27 AM
Shatter Proof Screens Jumpn Jack Flash News 2 01-05-2010 10:52 AM
Proof Of Concept - RSS->PDF sartori Sony Reader 12 10-07-2006 03:40 PM

All times are GMT -4. The time now is 02:52 AM. is a privately owned, operated and funded community.