[mythtv] J2ME Remote via Bluetooth

Buzz buzz at oska.com
Fri Apr 21 09:07:15 UTC 2006


Ariel,
I got as far as buying a BT dongle and getting it working in windows,
reading the J2ME specs/docs (big, but good), installing the SDK/s (Sun Java
Wireless toolkit2.3 Beta), building and installing a 'Hello World' to my
6230,  learning the difference between MIDP 1 and 2 (2 rocks in comparison),
installing a bunch of pre-made crappy apps to my phone (2/3 of which didn't
run due to null pointer exceptions and the like).... and then got
distracted....        oooh look, what's that shiny thing over there.....
<wanders off>
 
Sorry, back again..... I can help work on this a bit ....  if you can keep
my attention :-) <grins>
 
As a start, I'd like to see a minimalist application, which just sends
"button presses" or "keystrokes" over blue-tooth, and somehow gets them
converted into lirc compatible events that lirc can then translate into
whatever you like (go lirc!), and essentially dumbs the phone down to a
pocket sized bluetooth keyboard.  :-)  Getting smart UI and/or advanced
features is something to do after getting it working.  :-)
 
What do you reckon?
 
Buzz.
 
FYI: for those with NO mobile phone programming here's a hello world that
runs on my 6320 and any MIDP compatible phone ....
 
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
 
public class HelloBuzz
    extends MIDlet 
    implements CommandListener {
  private Form mMainForm;
  
  public HelloBuzz() {
    mMainForm     mMainForm.append(new StringItem(null, "Hello THere Buzz!"));
    mMainForm.addCommand(new Command("Exit", Command.EXIT, 0));
    mMainForm.setCommandListener(this);
  }
  
  public void startApp() {
    Display.getDisplay(this).setCurrent(mMainForm);
  }
  
  public void pauseApp() {}
  
  public void destroyApp(boolean unconditional) {}
  
  public void commandAction(Command c, Displayable s) {
    notifyDestroyed();
  }
}




  _____  

From: mythtv-dev-bounces at mythtv.org [mailto:mythtv-dev-bounces at mythtv.org]
On Behalf Of Ariel Mauricio Nunez Gomez
Sent: Thursday, 20 April 2006 6:17 AM
To: Development of mythtv
Subject: [mythtv] J2ME Remote via Bluetooth


Hello All,

I've been thinking about the idea of using my Nokia 6620 as an alternate
remote for my mythTV box. Until now, i've been using bemused (
http://bemused.sourceforge.org ) as a remote control for winamp and
powerpoint. I use it via my bluetooth usb dongle(Haven't tried IR or GPRS
yet).

Before starting, I would like to know if someone has already tried something
similar or suggestions about it.

Kind Regards,
Ariel 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20060421/628c1e25/attachment.htm 


More information about the mythtv-dev mailing list