|  10-12-2010, 06:33 PM | #1 | 
| Member            Posts: 12 Karma: 2600 Join Date: Oct 2010 Device: Kindle 3 Wi-fi US | 
				
				Guide: How to write Kindlets
			 
			
			Big thanks for adq and his lj entries. All what I'll write I tested on my Kindle 3 wifi only. Your must have jailbreaked Kindle to do this, have some skills with Linux systems and with Java. 
 P.S. If you want to know more, you can read adq's entries in his LiveJournal about this. P.S.S. I suggest create one public develop.keystore, and sign all free apps. It prevents problem with apps from different developers. Or how can I merge keystore from another developer with mine? Last edited by KukMan; 10-12-2010 at 07:29 PM. | 
|   |   | 
|  10-13-2010, 01:15 AM | #2 | 
| Junior Member            Posts: 8 Karma: 2600 Join Date: Oct 2010 Device: none | 
			
			Thanks for writing this. I thought it might be a good idea to use the keystore that ADQ made with his first working app, "ktest": -storepass password -keypass password -alias dktest/ditest/dntest I've repackaged some of his files (K3 automatic key installer, jar signer script etc) and put them up at http://kindlebru.com/devkeys.zip. These should probably be fine for signing apps in the near future. The manifest line Amazon-Cover-Image: logo.jpg will include a thumbnail (rel to the root of the jar archive). Thumbnails can be viewed by pressing the right donut button over the app. Full-colour jpeg and png images are supported, and are automatically scaled to approx 200x200 (official apps seem to use images closer to 500x500px). For anybody else having trouble getting Kindlet jars off the device, I've also got them up at http://kindlebru.com/libs.zip (had trouble telnetting, so I just created an updater script with the command "cp -r /opt/amazon/ebook/lib/* /mnt/us/lib"). The manifest of one of the official Active Content apps has the line Network-Access-Grants: sponsored. Is this necessary to use 3G data? Last edited by neftaly; 12-14-2010 at 08:00 PM. | 
|   |   | 
| Advert | |
|  | 
|  10-14-2010, 01:06 PM | #3 | 
| Connoisseur   Posts: 63 Karma: 194 Join Date: Feb 2010 Device: notebook | 
			
			small question - how hard is to tranform any jar to azw2?  (something like opera.azw2 ) | 
|   |   | 
|  10-14-2010, 03:26 PM | #4 | 
| Member            Posts: 12 Karma: 2600 Join Date: Oct 2010 Device: Kindle 3 Wi-fi US | 
			
			jar - is simple zip file and azw2 is simple zip file. It is significant what inside archive. You can't get opera mini for mobiles and run it on kindle. You need sources of midlet and change it to run on Kindle.
		 | 
|   |   | 
|  11-23-2010, 06:28 PM | #5 | 
| I <3 my Kindle            Posts: 528 Karma: 51332 Join Date: Nov 2010 Location: United States Device: Kindle 3G + WiFi | 
			
			Gaaaah!   No matter how hard I try to follow this and ADQ's blog, I can't get it to show up on my Kindle! It compiles with no errors and what not.. and I've signed it and loaded the developer keys, but it does not show up on my Kindle screen. I've tried restarting multiple times too. The code is, as far as I can tell, very similar to ADQ's, which works perfectly on my Kindle. I'm pretty new to Java, so it is probably something obvious that I am forgetting to do. If somebody could help me tell me what's wrong, I would be eternally grateful. | 
|   |   | 
| Advert | |
|  | 
|  11-24-2010, 01:40 AM | #6 | 
| Enthusiast            Posts: 27 Karma: 2600 Join Date: Nov 2010 Location: Osaka, Japan Device: Kindle 3 | 
				
				what about modifying the policy files instead of setting dev key
			 
			
			I admit that this would be : 1. unsafe 2. not designed at all for "legitimate" application 3. should not be used by people who want to put their application on the amazon market later But : 1. give access to all the jre object 2. allow the application to spawn some sub process (like using arecord command to record sound for example). 3. create a parallel market to the amazon one for application. 4. give dev more control over their platform. However I admit that this is not safe at all, and you could end up fucking up your whole kindle. | 
|   |   | 
|  12-16-2010, 12:48 PM | #7 | |
| Enthusiast            Posts: 35 Karma: 1566 Join Date: Nov 2010 Device: kindle 3wifi | Quote: 
  I took a look at your package, I'm not sure what tool you used to package it. But I used ellipse, and exported it as a jar file, using a manifest file: Code: Manifest-Version: 1.0 Description: Test for Kindle Main-Class: test.Main Implementation-Title: Hello Implementation-Version: 0.0.1 Implementation-Vendor: Me Code: Description: Test for Kindle Main-Class: test.Main With these lines added, it ran like a charm. | |
|   |   | 
|  12-17-2010, 02:08 AM | #8 | |
| I <3 my Kindle            Posts: 528 Karma: 51332 Join Date: Nov 2010 Location: United States Device: Kindle 3G + WiFi | Quote: 
 I suspect that the problem could have been with the fact that I was using the 64-bit eclipse, but I compiled this one with 32-bit eclipse. Unfortunately, I have no way of checking because I wiped out my computer, but thanks for your help! Now I can finally try some developing   | |
|   |   | 
|  12-21-2010, 05:39 AM | #9 | 
| Enthusiast            Posts: 27 Karma: 2600 Join Date: Nov 2010 Location: Osaka, Japan Device: Kindle 3 | 
				
				I slightly updated the example to make a little bit more usefull notepad
			 
			
			Made it read a buffer.txt at start for recovery, and write it back before stopping. Tried to fiddle with the anti aliasing, but the speed impact is really too strong, and the "symbole" window position is an issue if you type long text. Oh and no scroll bars yet. it also learned me that alt+del remove the whole field content. source are provided as I don't have any rights on them, and as usual use at your own risk. | 
|   |   | 
|  12-26-2010, 03:07 PM | #10 | 
| Enthusiast            Posts: 27 Karma: 2600 Join Date: Nov 2010 Location: Osaka, Japan Device: Kindle 3 | 
			
			New hints  http://blog.tkxuyen.com/2010/10/kind...g-and-kdk.html which goes http://apetresc.wordpress.com/2010/07/03/kindle-goban/ https://github.com/apetresc/KindleGoban https://github.com/apetresc/KindleChess these code are suppose to work under the simulator | 
|   |   | 
|  12-26-2010, 10:04 PM | #11 | 
| Enthusiast            Posts: 27 Karma: 2600 Join Date: Nov 2010 Location: Osaka, Japan Device: Kindle 3 | 
			
			We are Still missing the piece where we could load resources from the jar, I'm thinking of going around it by pre-processing the resources to convert them into java byte arrays.
		 | 
|   |   | 
|  12-28-2010, 05:32 PM | #12 | |
| Junior Member            Posts: 6 Karma: 2600 Join Date: Dec 2010 Device: Kindle DX | Quote: 
 Cheers! -Adrian | |
|   |   | 
|  12-29-2010, 05:26 PM | #13 | |
| Enthusiast            Posts: 35 Karma: 1566 Join Date: Nov 2010 Device: kindle 3wifi | Quote: 
 What I need is an example for multi-page display, I could not figure out how to do that, I've heard that there was an example in KDK, but I don't have that, so could you give me an example/hint on that? | |
|   |   | 
|  12-30-2010, 03:58 AM | #14 | |
| Member            Posts: 16 Karma: 2600 Join Date: Dec 2010 Device: kindle | 
			
			Hi Adrian, Quote: 
 Edit. Now working, but with some refresh issues at startup. Seems the board isn't all displayed, perhaps because the images haven't been read in in time? Just got to fix the grey scale background for black. Cheers, Paul Last edited by azit; 12-30-2010 at 09:47 AM. | |
|   |   | 
|  12-31-2010, 12:46 AM | #15 | |
| Junior Member            Posts: 6 Karma: 2600 Join Date: Dec 2010 Device: Kindle DX | Quote: 
  The sample code for multi-page displays in the KDK (SamplePagedData) is known to be broken, several people on the developer forums have reported it. I did manage to get it working on my own though -- I have a really simple multi-page display in KindleGoban; check out line 160 of Main.java (that app is in the middle of a major refactoring, sorry about the mess  ) Let me know if that's enough of an example, or if you have specific questions about something that's not working. Cheers! -Adrian | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| How do I write Kindlets? | nathansuchy | Kindle Developer's Corner | 3 | 11-17-2012 04:16 PM | 
| Kindlets crashing | ger1972 | Kindle Developer's Corner | 8 | 06-28-2012 11:26 PM | 
| Developing kindlets on the K4 NT | ger1972 | Kindle Developer's Corner | 10 | 06-15-2012 11:45 AM | 
| List of Kindlets available | inameiname | Kindle Developer's Corner | 27 | 04-14-2012 07:16 AM | 
| iLiad jharker:would you please write a guide on installing iLiadPowerManagement | tudou331100 | iRex Developer's Corner | 10 | 01-22-2009 11:19 PM |