Author Topic: Java/ J2ME mobile orbiter  (Read 111948 times)

sambuca

  • Guru
  • ****
  • Posts: 443
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #285 on: January 22, 2009, 08:26:12 pm »
I did a preliminary check-in of my current VMC code. It is still very much a work in progress.

Still much to do, though I am not sure whether all the code in the original mo is used for lmce. Maybe someone can shed some light on this?

br,
sambuca

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #286 on: January 22, 2009, 08:35:07 pm »
i think zaerc and tschak use the original symbian orbiter. Maybe thay can tell about the available features..
br, Hari

ps: keep up your great work!
rock your home - http://www.agocontrol.com home automation

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #287 on: January 22, 2009, 10:44:35 pm »
To be honest I have never even looked at the code so far. :-[  But I might be able to answer some of the more basic questions about the (everyday) usage.  And I'd be glad to lend a hand where I can, you guys are doing an awesome job!
"Change is inevitable. Progress is optional."
-- Anonymous


ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Java/ J2ME mobile orbiter
« Reply #288 on: February 02, 2009, 08:24:27 pm »
Hi Guys!

I'm trying to get back into the swing of things here..
I have had Hari's version running on my blackberry 8330 Curve, it's amazing what upgrading the OS will give you :)

Sambuca:  I tried to get your version working, maybe I'm missing something, it installed fine over the web..
when I attempt to start it, I get:

Error starting JavaMO:
Symbol 'CommandListener.SELECT_COMMAND' not found

any ideas?
Phone is midp2.0/CLDC1.1/JSR082 (Hari's version worked for about 2 keypresses)

Thanks in advance!  Glad someone picked this project up!

All the best,

Dan
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #289 on: February 02, 2009, 09:04:51 pm »
i'd assume this is related to the list stuff, but that is just a blind guess.

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

sambuca

  • Guru
  • ****
  • Posts: 443
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #290 on: February 03, 2009, 04:30:20 pm »
Hi Dan,

Would you mind trying again? I changed the reference to SELECT_COMMAND, so maybe it works now. I cannot see anything wrong with the code, but maybe some devices are a bit picky.

(It was the list, hari :) The phone tries to access CommandListener.SELECT_COMMAND when I use the SELECT_COMMAND reference in the code. The class extends List and implements CommandListener, the SELECT_COMMAND is in the List class)

br,
sambuca

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Java/ J2ME mobile orbiter
« Reply #291 on: February 03, 2009, 10:45:09 pm »
Okee Dokee, will try tonight, and report back. :)

Update:  attempted again, now I can't install it,

I get: 904 JAR size mismatch
jar size does not match MIDlet-Jar-Size attribute

Getting closer, I can feel it in my bones :)

HTH,

Dan
« Last Edit: February 03, 2009, 10:48:14 pm by ddamron »
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

sambuca

  • Guru
  • ****
  • Posts: 443
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #292 on: February 04, 2009, 09:34:28 am »
Hmm,
As far as I can see, the jar file size is the same as the Midlet-Jar-Size. It also installs fine on my SonyEricsson phone. Maybe there is some caching/proxy in your providers network?
At least I can't think of anything else at this moment.

br,
sambuca

sambuca

  • Guru
  • ****
  • Posts: 443
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #293 on: February 09, 2009, 09:02:06 pm »
Ok, I got time to do some more work on the JavaMO.  8)

I fixed some issues related to disconnect/reconnects. I ran into them when testing follow me. It disconnected, but it never succesfully reconnected. I'm not sure but perhaps hari's version handled reconnects better.
Anyway, it should work now.
For those who like to read log files etc, it is now possible to close the VMCViewer/Orbiter, open the log, close it and then reopen the viewer with a "Orbiter" menu entry when it is connected.

The new version has been published on my website. (see previous post for url  ;D )

br,
sambuca

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #294 on: February 09, 2009, 10:36:44 pm »
Ok, I got time to do some more work on the JavaMO.  8)
cool!

Quote
I'm not sure but perhaps hari's version handled reconnects better.
I would not bet on that one :-)

br, Hari
rock your home - http://www.agocontrol.com home automation

sambuca

  • Guru
  • ****
  • Posts: 443
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #295 on: February 15, 2009, 02:04:44 pm »
Hi everyone,

I've added parsing of the configuration file to the MO and opening of the web browser from within the VMC viewer. This should enable much more of the original MOs functionality (set scenarios, view alerts etc.).

But it does not inform you of any events like (I think) the original mo does, because Java does not allow call interception, which is what the Symbian orbiter uses to alert you. (LMCE calls your phone, and the PlutoMO intercept it, and does its magic). Please correct me if I am wrong ;)
It would be possible to intercept SMS in the JavaMO, but it would require a change in LMCE to send SMS instead of calling your phone. I don't even know if most phone providers support sending SMS via land line/VOIP?

Time to bring out your phones and start testing  :D

br,
sambuca

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2420
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #296 on: February 15, 2009, 02:09:35 pm »
Great work sambuca!! I'll give it a try on 0810.

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

WhateverFits

  • Guru
  • ****
  • Posts: 228
    • View Profile
    • Sean Walker
Re: Java/ J2ME mobile orbiter
« Reply #297 on: March 11, 2009, 04:21:16 am »
I just tried to load the JavaMO on my Windows Mobile phone running the intent Java MIDlet Manager. It started and gave the error about JSR-82: Can't access JSR082Device : intent JTE. I was reading up on the Bluetooth stack and JSR-82 compatibility after looking at this and found http://code.google.com/p/bluecove/ ,  is a JSR-82 implementation. I was wondering if that could be linked into this jar, providing the necessary bits to allow my phone to work. I'm pretty weak on Java so I'm not sure if it is possible or I just spewed rubbish.

sambuca

  • Guru
  • ****
  • Posts: 443
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #298 on: March 11, 2009, 07:58:44 pm »
From what I can see from a quick look on the web page, it is enough to add the bluecove jar to the javamo's classpath. This could be done in the Manifest file, if I remember correctly. I'll see if I can make a second jad/jar pair which references the bluecove.jar.
I haven't got a clue about installing the bluecove jar in the phone though. You'll have to install it yourself, if nobody else on the forum has a clue..

br,
sambuca

WhateverFits

  • Guru
  • ****
  • Posts: 228
    • View Profile
    • Sean Walker
Re: Java/ J2ME mobile orbiter
« Reply #299 on: March 12, 2009, 03:37:21 pm »
Very nice. I'll look for any manifest info for the intent Java MIDlet manager. I'll post what I find. Might take a while as I have a 10 page essay due at school. The audacity of them to require I do work for a degree.