12-31-2010, 12:50 AM | #16 | |
Junior Member
Posts: 6
Karma: 2600
Join Date: Dec 2010
Device: Kindle DX
|
Quote:
Wow, I'm surprised you got KindleChess so far -- I haven't focused as much on it because I was discouraged by the lack of the chess figures in the Unicode fonts on the device. It works fine on the simulator, but shows up as squares on the device. The solution, of course, is to load images for each one. As you've discovered, loading 12 different images in 32 places is non-trivial for the Kindle to do, especially since all image loading in the KDK has to be done asynchronously (!!) I'm actually impressed you got as far as you did -- please feel free to send me a pull request on GitHub if you're so inclined. The better solution, I think, it to add hacks to KWT to allow the loading of fonts as resources from the JAR. Then I can put in a decent Unicode font that includes the chess glyphs I linked above. The Kindle is much better at rendering fonts than images! If that were to work, I would go back to putting in effort to KindleChess to make it work as well as KindleGoban does. Thanks! -Adrian |
|
12-31-2010, 02:46 AM | #17 |
Member
Posts: 16
Karma: 2600
Join Date: Dec 2010
Device: kindle
|
Hi Adrian,
I understood that loading images was asynchronous, so as a hack I slept for a second after loading them and it still made no difference. Surely it can't take that long! I started with static images of the right size and with a preset background, so actually 24 images (I'm very new to this!), but when it was working, changed them back to images with transparent background and also added scaling so that the board can be resized. Looking at some other active content, I can't believe this should be very hard to do even with images. As for fonts, yes, I noticed that you were trying to use a unicode chess font and that it didn't exist on the K3, so I thought of adding a font as in the font hacks on this site, but that means it would only be of use to people who jailbroke their kindle. If you can load fonts as resources, than that could be nice. According to this: http://en.wikipedia.org/wiki/Chess_symbols_in_Unicode there seem to be some fonts with decent looking chess pieces. Maybe one solution is to ask amazon to add a font? Are they receptive to requests like this? I will send you a git pull request as soon as I've cleaned up my changes (and figured out how to send a git pull request!). Alternatively, I could just send you a patch. I couldn't actually see any licence text in your code. Is it supposed to be GPL/apache/public domain, or what? Do you work for Amazon as you put it in a com.amazon.kindle package which sort of implies that it's amazon code. Cheers, Paul ps. how did you get on the KDK beta? I asked a month ago but it doesn't look like it's likely to happen. pps. it turns out not to be too bad at all developing directly on the kindle. $ ant build-signed-active-content && scp build/KindleChess.azw2 k:/mnt/us/documents Takes 2 seconds Last edited by azit; 12-31-2010 at 02:55 AM. |
01-01-2011, 11:10 PM | #18 |
Enthusiast
Posts: 27
Karma: 2600
Join Date: Nov 2010
Location: Osaka, Japan
Device: Kindle 3
|
I've not tried this one as I'm still trying to figure out how to load images
http://forums.kindlecentral.com/foru...eID=1555ؓ |
01-02-2011, 01:13 AM | #19 | |
Member
Posts: 16
Karma: 2600
Join Date: Dec 2010
Device: kindle
|
Quote:
http://forums.kindlecentral.com/foru...messageID=1253 is the thread. |
|
01-02-2011, 01:33 PM | #20 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
I just transferred the jar file as azw2 to my kindle 3 Wifi. When I try to open it a message comes up saying "The device is not registered as a Test Kindle to run this title. Please ask the developer to add this device to the list of registered test Kindles.". I don't know what I've done wrong. Has anyone else had the same problem or have I overlooked something?
|
01-02-2011, 03:01 PM | #21 | |
Member
Posts: 16
Karma: 2600
Join Date: Dec 2010
Device: kindle
|
Quote:
The instructions are here: http://adq.livejournal.com/107360.html |
|
01-27-2011, 11:09 AM | #22 |
[Polo]
Posts: 11
Karma: 10
Join Date: Jan 2011
Device: Kindle 3G + WiFi
|
Is there anywhere I can download the chess game? I am currently trying to get my head round sorting out the dev environment for kindlets, and also trying to get my head round java, lol... I'm new to Java as you can already guess,
Thank you. |
01-28-2011, 12:57 AM | #23 | |
Junior Member
Posts: 6
Karma: 2600
Join Date: Dec 2010
Device: Kindle DX
|
Quote:
Cheers, Adrian |
|
01-28-2011, 12:59 AM | #24 |
Member
Posts: 16
Karma: 2600
Join Date: Dec 2010
Device: kindle
|
The original code is here: https://github.com/apetresc/KindleChess
My hacks to get it working are here: http://www.sbrk.co.uk/kdk.tar.gz Note, it only replays pgn games, it doesn't actually play chess against you. That's left as an exercise for the reader |
02-04-2011, 11:10 PM | #25 | |
Junior Member
Posts: 6
Karma: 2600
Join Date: Dec 2010
Device: Kindle DX
|
Quote:
As for what it does, a comfortable PGN viewer is all I envision for this project, for my part. If you want to read my vision for it, just see this post: http://apetresc.wordpress.com/2010/07/03/kindle-goban/ Thanks again! Please send me any more contributions if you have them I'll probably be making a bunch more commits to KindleChess in the near future. Cheers, Adrian |
|
02-05-2011, 10:13 AM | #26 |
Member
Posts: 16
Karma: 2600
Join Date: Dec 2010
Device: kindle
|
Hi Adrian,
I did actually send you a pm via this site a few weeks ago, but I guess it got lost in the ether. I'll download your new repo and see if I can add anything. Cheers. |
02-07-2011, 12:40 PM | #27 | |
Junior Member
Posts: 6
Karma: 2600
Join Date: Dec 2010
Device: Kindle DX
|
Quote:
Sorry, I didn't get your PM It appears I had set the forum to e-mail me about new replies to this thread, but not about new PMs. My bad! I've reimplemented the BoardController to use a new PGNParser library that I ported to PBP. It now displays all kinds of moves properly, and displays PGN comments as well. Working pretty well so far, and I have lots of UI-related features in the pipeline. |
|
03-11-2011, 01:38 PM | #28 |
Guru
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Would there be any possibility of porting this to the Kindle 3 WiFi:
http://code.google.com/p/opensoftphone/ It would be limited in its capabilities, as I am unaware of a way to connect a headset to the Kindle, but it would be interesting to see if this would work. Dave |
03-11-2011, 04:49 PM | #29 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
OpenSoftPhone uses JNI which doesn't really work well for kindlets. It would work only on jailbroken Kindles with changed Kindlet settings anyway. And then someone would have to figure out a way to force unloading of the JNI library upon Kindlet termination. Otherwise, it only works for the first start of the Kindlet after each framework start. The Kindlet API isn't really prepared for this at the moment. It does not provide an audio API either, I think.
|
03-12-2011, 08:23 PM | #30 |
Guru
Posts: 829
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
That doesn't sound encouraging. Thanks for the information. So if an SIP phone package is to be implemented on the kindle it would probably need to go through another route.
Dave |
|
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 |