News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Java/ J2ME mobile orbiter

Started by david_a_dawson, October 19, 2007, 04:31:08 PM

Previous topic - Next topic

tschak909

yeaugh, we may need another variation.

-Thom

massabuntu

I think so  :-[, maybe i can do it.

massabuntu

#332
I post here some problems,

1) I followed 1:1 (as Hari said) the wiki instruction to build the dev envinroinment (http://wiki.linuxmce.org/index.php/JavaMO) but when i make, it return ERROR:Cannot find java.lang
Anyway i create a Nokia6233.java class inside "com/linuxmce/javamo/devices" with some Keytranslation and i need a working env to test it.

  This "road" is ok? and which other file we need to change to add the nokia6233 class?  Maybe in the phone detenction in JavaMO.java?

    private PhoneDevice detectPhone() {
83                 String platform = System.getProperty("microedition.platform");
84                 MOLogger.log(5, "Device:" + platform);
85                 if (platform != null) {
86                         if (platform.toUpperCase().indexOf("NOKIA") >= 0) {
87                                 MOLogger.log(5, "Detected as Nokia");
88                                 return new NokiaPhone();
89                         } else if (platform.toUpperCase().indexOf("SONYERICSSON") >= 0) {
90                                 MOLogger.log(5, "Detected as SonyEricsson");
91                                 return new SEPhone();
92                         }
93
94                 }
95                 return new NokiaPhone();
96         }


2) With KeyCodes.jar (as u see in the previous post in the previous page) i have too few button to control the orbiter. I need at least, in addiction to the numeric pad and the directional pad, a OK button and a BACK button. But i have only one (the green Take Call Button).  We should implement the square button in the center of the additional pad but i don't even know where to start to do this.

3) We need a custom skin variation i guess, the MO is all inside the folder "Mobile Orbiter" inside the skins/basic folder?

TNX for helping,
Martino.

tschak909

Actually, this falls under a new variation. This will require some code changes, I believe, and a new device template for your phone.

-Thom

sambuca

Hi massabuntu,

1) Can't help much with the dev. env., I got it working easily by using the wiki article. Might seem like your Java JDK might be faulty or not properly set up, but that is just a wild guess from my side....

This way seem OK, although there are still a right way and a wrong way. Is your Nokia6233 class a subclass of the Nokia class ?
This would be the right way to do it, if many keys have the same mapping.
And yes, you should add some detection for the 6233 to the section you pasted.

2) Does the center button  give you a key code? What about the soft-buttons (the two just below the screen), do they return a key code? Those two are also used in the orbiter. Not sure if you can get by with that few buttons, though. I have 5 buttons more than the ones you marked out on the image, and this is just enough.
Do you have volume keys also, they might be usable also...

3) Yes, maybe. But I think you should look into what capabilities you would get out of such a "light" mobile orbiter before starting to create a new variation.

best regards,
sambuca

tschak909

different cell phone families should have their own variations, so we can create necessary UI images etc to match, as well as proper key mappings etc, while using the existing designObjs.

I am standing firm on this one.

-Thom

sambuca

Thom,

I don't disagree with you, but we cannot possibly create a variation for every possible phone. Of course there will be a limit on how many phones we support and a few models might well be defined as the ideal phone. But for the other phones, we could get a long way with defining new key mappings.

As I see it, we should (at least) have a new variation for the "normal", most common cell phones variants, that considers the available buttons on those phones. And maybe a simpler one, which could fit the 6233 and similar phones.

But again, I wouldn't be opposed to having a variation for every phone family, I just don't know if the work will justify the gain. After all, the current mobile orbiter works fine on my SE phones with only key adjustments.

best regards,
sambuca

tschak909

We will have to do both mapping and variations to pull it off.

The goal is to make sure:

(1) the keys work
(2) what you see on the screen jives with the key map. If I have to press (Soft Key 4) for "C" then we're doing something wrong.

-Thom

massabuntu

Quote
Hi massabuntu,

1) Can't help much with the dev. env., I got it working easily by using the wiki article. Might seem like your Java JDK might be faulty or not properly set up, but that is just a wild guess from my side....

I'll look deeper.

Quote
This way seem OK, although there are still a right way and a wrong way. Is your Nokia6233 class a subclass of the Nokia class ?

The point is, when i look to the code, seems that the Nokia class did not translate any keys, like the nokia is basically the default keymapping. Anyway i guess my Nokia6233 is a subclass of phonedevice (This is my first time in Java and  i'm not a coder, so please be patient)

I would like to speak to you in the #devel channel so i can pastebin some code and u can easly look throught it.

Quote
2) Does the center button  give you a key code? What about the soft-buttons (the two just below the screen), do they return a key code? Those two are also used in the orbiter. Not sure if you can get by with that few buttons, though. I have 5 buttons more than the ones you marked out on the image, and this is just enough.
Do you have volume keys also, they might be usable also...

Neither the Soft-Buttons, The Central button, the volume button and the Camera Button give me a non 0 value. (But it sound strange to me)


For sure we add to start the variation work when we are sure we can manage the orbiter, anyway is not only a single phone variation 'cause you can found  this button layout in a lot of nokia models, even the economic newer ones.

br,
Martino.

massabuntu

Guys, i'm stuck because of the lack of usable buttons i get from Keycodes.jar in my Nokia 6233.
I Hope you can give me a hint or any kind of workaround.

I have an idea, and look if we can work with that.

Speaking about Symbian s60 skin,
In normal screens of the orbiter, like this one


We can use, all the numeric buttons, asterisk and pound as theirself.
Directional pad left and right -> Softkey left and Softkey Right
Directional pad up and dowe -> OK and C
green button -> pencil


While Speaking about the Playlist skin or media skin or whatever skin without a numeric pad, we ca use

Directional Pad as itself.
Green button -> pencil
Numeric Button as their self
* -> like OK
# -> like C

We lost the softkeys but we don't really need in that screens. At least i hope.

Anyone as a better idea???

massabuntu

Does anyone have any interest to this anymore??

sambuca

The Right Way (TM) would be to create a new skin for phones with a limited number of keys. I think this could use the same JavaMO code that we have now.

Other than that, I'm sorry but I don't think there is much interest in making a duct-tape solution. But if you got something you feel works for you, please let us know about it.

best regards,
sambuca

massabuntu

Well, with these assumptions i think i'll drop.
With that framework it's very hard to make a non duct-taped solution, you can't even use the central button of the pad, or the spft-buttons.

BR,
Martino.

Zaerc

Quote from: Sistepef73 on November 11, 2009, 12:17:59 PM
can someone point me in the direction of a good virus free java game site. plz
And now, we just wait for the second spam-bot to come along and answer that question... :P
"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

colinjones

Quote from: Zaerc on November 11, 2009, 02:14:50 PM
Quote from: Sistepef73 on November 11, 2009, 12:17:59 PM
can someone point me in the direction of a good virus free java game site. plz
And now, we just wait for the second spam-bot to come along and answer that question... :P

hmmm, yea strange how his profile claims to hail from the US yet his IP address is Latvia! Shall we leave as a cautionary tail, or delete summarily?!