![]() |
#61 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Then use the appropriate type(s) of block quotes. Translation: The problem is on your side of the keyboard. |
|
![]() |
![]() |
![]() |
#62 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Code:
Here is some text. Here is some indented text. This is more indented. And out a level. Text Indented text. More indent. Less indent.Just quote this message in a new message then view the tags in your edit box. These tags and more have toolbar icons for them, when you click the "Advanced Edit" button. Beware that the indent tag adds extra blank lines that you may need to mess with to get it the way you want. After the "end indent" tag, you may need to add a couple of blank lines. |
|
![]() |
![]() |
Advert | |
|
![]() |
#63 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28
Karma: 50000
Join Date: Jun 2012
Device: kindle touch
|
OK, thanks. But the editor is the minor problem.
![]() The KTextArea isn't documented in Amazon's dev kit reference, so I replaced the KTextArea with a Button. Now it compiles, cool! However, it still doesn't work. The following is a bash script that generates my azw2: Code:
#!/bin/bash PROJECTNAME=HelloWorld CLASSPATH=../lib/Kindlet-2.1.jar export CLASSPATH echo "Making $PROJECTNAME..." if [ -f developer.keystore ]; then echo "developer.keystore exists!" else echo "Generating developer.keystore..." keytool -genkeypair -keystore developer.keystore -storepass password -keypass password -alias dk$PROJECTNAME -dname "CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown" -validity 5300 keytool -genkeypair -keystore developer.keystore -storepass password -keypass password -alias di$PROJECTNAME -dname "CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown" -validity 5300 keytool -genkeypair -keystore developer.keystore -storepass password -keypass password -alias dn$PROJECTNAME -dname "CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown" -validity 5300 fi echo "Compiling..." javac *.java echo "Creating jar file..." /bin/rm $PROJECTNAME.jar >&/dev/null /bin/rm $PROJECTNAME.azw2 >&/dev/null jar cvmf $PROJECTNAME.manifest $PROJECTNAME.jar *.java echo "Creating signed azw2 file..." jarsigner -keystore developer.keystore -storepass password $PROJECTNAME.jar dk$PROJECTNAME jarsigner -keystore developer.keystore -storepass password $PROJECTNAME.jar di$PROJECTNAME jarsigner -keystore developer.keystore -storepass password $PROJECTNAME.jar dn$PROJECTNAME mv $PROJECTNAME.jar $PROJECTNAME.azw2 echo "Done." Last edited by digory; 07-02-2012 at 12:49 AM. |
![]() |
![]() |
![]() |
#64 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28
Karma: 50000
Join Date: Jun 2012
Device: kindle touch
|
There was a mistake in my bash script: I added *.java to the jar instead of *.class. Stupid me. Another, minor mistake was that I named my key aliases as xy$PROJECTNAME. I should've used xy$USER, because I obviously need only one developer key triplet, to be used for all my projects. It still wouldn't work, though, and I learnt that the manifest file in the original post was wrong. Here's one that actually works:
Code:
Manifest-Version: 1.0 Main-Class: com.digory.helloworld.Main Implementation-Title: Hello World! Implementation-Version: 1.0 Implementation-Vendor: digory Extension-List: SDK SDK-Extension-Name: com.amazon.kindle.kindlet SDK-Specification-Version: 2.1 Toolbar-Mode: persistent Font-Size-Mode: point Last edited by digory; 07-06-2012 at 03:49 AM. |
![]() |
![]() |
![]() |
#65 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Did you update the post with the wrong code in it then? I still see *.java etc? |
|
![]() |
![]() |
Advert | |
|
![]() |
#66 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
helllooo from a 3.3
okay. here's one that worked for me on 3. (3.3, SDK 1.2, Java 1.4.2_19)
(remember to derive from com.amazon.kindle.kindlet.AbstractKindlet as shown in this project...) Included the sign.sh that you call like ./sign.sh filename.jar Included the developer.keystore from ixtabs font project. you run it against the EXPORTED jar dump the final azw2 in /mnt/us/documents should be golden. Quote:
hope this helps someone like me who was struggling with the info that is mainly for 4 and 5's these days. Last edited by twobob; 09-05-2012 at 07:27 PM. Reason: added com.amazon.kindle.kindlet.AbstractKindlet |
|
![]() |
![]() |
![]() |
#67 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Lifecycle
http://docs.oracle.com/javase/tutori...lifeCycle.html helpful reading. retroweaver http://www.openmamba.org/showfile.ht...weaver125.spec http://retroweaver.sourceforge.net/g...aver-guide.pdf and more generally about the java: Bit of a "cvm" overview Spoiler:
Last edited by twobob; 01-10-2013 at 07:52 AM. |
![]() |
![]() |
![]() |
#68 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2013
Device: Kindle 4 Black
|
Anyone found out how to hide/remove the title bar on top of application (showing app name, battery charge etc)? I'm making an application, which is showing full screen images.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |