|
|
#1 |
|
Member
![]() Posts: 16
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
|
[Touch] getting rid of searchbar
I'm pretty sure I'm missing something rather obvious here, but: I'm working on a Kindlet and I'd like to turn off the search bar (with back-button, shop-button, search) while my kindlet is running. It takes up real estate that I'd rather have for my content. regards, lui |
|
|
|
|
|
#2 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
|
I'd sure be interested as well. I can't just tap the top to get rid of it like I do to pull it up.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
offline
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,324
Karma: 4935411
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
Could you post a minimal sample Kindlet source code along with instructions on compiling and getting it on the Kindle? (I remember that on the K3 the thing needed to be signed, the dev key added on the device etc.)
I'm willing to help in finding the solution, but I don't want to start from scratch by figuring out how to get a Kindlet working in the first place
|
|
|
|
|
|
#4 |
|
offline
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,324
Karma: 4935411
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
Ah whatever, I found some old project for the Kindle and reused that.
![]() ![]() Source code and .azw2 are attached. READ ON BEFORE INSTALLING, though: This will NOT work out of the box. From within your Kindlet, you get a com.amazon.kindle.kindlet.KindletContext. The standard implementation of it, com.amazon.kindle.kindlet.internal.StandardKindlet Context, includes three additional methods beyond those defined in the interface: getOrientationController(), getToolbar(), and setScreenUpdateMode(). So while these methods are actually available in the implementation, they are not declared in the interface. This is probably a glitch. Now, you can't just cast the instance to the actual class, because the Kindlet class loader does not allow you to access these. In fact, it'll simply give you a ClassNotFoundException. The (only) classes which you are allowed to access are listed in the resource com/amazon/kindle/kindlet/internal/security/whiteListedClassNames (contained in KindletImplementation-2.0.jar). You will have to break out of this classloader first in order to get full access to your device. This is what the json_simple-1.1.jar is there for. It allows to escape the restrictive class loader, and also allows you to do other nifty things, like gaining additional permissions to write to the file system, read additional properties etc. You have to copy this one into /opt/amazon/ebook/lib as well. This is actually a project which I did for the Kindle 3 about a year ago, but never released it. Now that I see it's actually required to get some fundamental stuff done on the K-Touch, I'll probably make it public. PS: You can use the keystore from here: http://www.mobileread.com/forums/sho...d.php?t=152294 |
|
|
|
|
|
#5 |
|
Member
![]() Posts: 16
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
|
oh dear... thanks, ixtab! I'd love to see the sourcecode for the json_simple (well.. the breaking free from classloader limitations part at least) though
|
|
|
|
|
|
#6 | |
|
offline
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,324
Karma: 4935411
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
Quote:
A few more things to note: You will need to bundle the "frontend" jar with your application (see build.xml) of the sample app. Take a look at the SuicidalKindlet and Jailbreak classes in there. You can also start and stop jailbreak mode at runtime (jailbreak.enable() and jailbreak.disable() etc.), or you can subclass Jailbreak to get additional permissions directly when the application launches. Or, from within your own code, you can request them when needed: Code:
jailbreak.getContext().requestPermission(new FilePermission(...));
|
|
|
|
|
|
|
#7 |
|
offline
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,324
Karma: 4935411
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
Update:
If you don't need to change the style at runtime, you can be set it in the .azw2 manifest. This is also working without the jailbreak. Quick example from an ant buildfile: Code:
<manifest>
<attribute name="Implementation-Title" value="${product.name}"/>
<attribute name="Implementation-Version" value="${product.version}"/>
<attribute name="Implementation-Vendor" value="${product.vendor}"/>
<attribute name="Main-Class" value="${product.mainclass}"/>
<attribute name="Amazon-Cover-Image" value="${product.image}"/>
<attribute name="Toolbar-Style" value="none"/>
</manifest>
More interesting information about supported Kindlet attributes can be found in the com.amazon.kindle.kindlet.internal.install.Metadat a class
|
|
|
|
![]() |
| Tags |
| kindlet, search |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch | jbcohen | Which one should I buy? | 4 | 06-18-2011 07:58 PM |
| Is there a way to get rid of this annoyance? | TonytheBookworm | Amazon Kindle | 7 | 12-26-2010 08:59 PM |
| get rid of all tags - how ? | cybmole | Calibre | 4 | 09-29-2010 08:50 AM |
| hi, i am currently getting rid of the | russellmz00 | Introduce Yourself | 6 | 05-25-2010 01:42 PM |
| Just to get rid of the message | pshrynk | Introduce Yourself | 10 | 04-17-2009 01:47 AM |