Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-30-2015, 07:46 AM   #1
nubble
Junior Member
nubble has learned how to read e-booksnubble has learned how to read e-booksnubble has learned how to read e-booksnubble has learned how to read e-booksnubble has learned how to read e-booksnubble has learned how to read e-booksnubble has learned how to read e-booksnubble has learned how to read e-books
 
Posts: 8
Karma: 962
Join Date: Dec 2012
Device: Kindle paperwhite, Kobo Mini
Can I use EventListener? [PW]

Hi,
I am developing a kindlet to read network NMEA data and display it. Seems simple enuf [at least thats what I though]

I have a PW and its jailbroken and kindlet broken and running the backend of kual thannks to the great post and guide by Rick. I managed to make a socket connection from the kindle to a tcp service over usbnet [what an accomplishment for me - although it shouldnt really be]

Ok, so I am using a java library called marine-api that is a NMEA transcoder library. This works well in a Java app. But when run on the kindle it gives me an error popup that the kindlet cannot be started. I am new to this, so I am working blind [no debug or info] and troubleshooting line by line with an upload to the kindle on every change [this is painfull]

So I narrowed it down to a class in the NMEA library called SentenceListener which extends java.util.EventListener. My kindlet instantiates a class called TcpClient which extends SentenceListener which extends EventListener. If I dont extend EventListener the kindlet load and works fine [except that the "wiring" of the NMEA lib is now broken]

I see that the KDK uses KMenuListener and KMenuEvent. Could these be in conflict with the NMEA ones or "crosstalking": my NMEA events being sent to the KMenuListener

Thanks in advance
Jason
Is there a way to configure a build file in eclipse to make jar, sign jar and upload to kindle? Currently I am using a script to do the signing and uploading which requires the password to be entered everytime. OUCH!
nubble is offline   Reply With Quote
Old 01-30-2015, 09:14 PM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Have you looked at the repo of JBPatch or KUAL to see how they run a build system that does what you ask?
knc1 is offline   Reply With Quote
Advert
Reply


Forum Jump


All times are GMT -4. The time now is 04:31 PM.


MobileRead.com is a privately owned, operated and funded community.