Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4423

Can I use EventListener? [PW]

$
0
0
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
:offtopic: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!:eek:

Viewing all articles
Browse latest Browse all 4423

Trending Articles