Skip to main content

Motorola's disappearing menu button

7 replies [Last post]
Anonymous

Hi there,

Having previously made use of Motorola's extra menu softkey (the one in
the middle with three lines on it) for our Moto-specific builds, I've
noticed it's been removed on their new models (eg. the KRZR, RAZR maxx
and RIZR).

I thought that by running the code below, I'd be able to ascertain
whether the button there or not:

boolean hasMenuKey = false;
try {
if (getKeyName(-23).equals("SOFT3")) {
hasMenuKey = true;
}
} catch (Exception e) { }

In a test on an off-site KRZR, hasMenuKey always comes back as true.

Maybe another key has taken over the code and name (they're not very
specific), but I'd hoped this would separate the haves from the have-nots.

Has anyone else found a good way to determine if the button is there or
not? It would be a shame to remove support for the button when it is there.

Cheers,
Kirwan

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kirwan Lyster

Stefan Haustein wrote:
> the new models all seem to have a clear key (to the right below the
> RSK)? It may have a well-defined key name that is not available for
> older models, enabling a distinction?
>

Thanks for that suggestion Stefan. I put in a check for the C key but
unfortunately the ROKR E1 I'm using (which doesn't have such a key)
still recognises the standard -8 as being a clear key so that doesn't
seem to get me very far either.

It's understandable that they use the same KVM and therefore recognise
the codes in the same ways, but does anyone else have an idea how to
tell newer Motorolas, without menu keys, from older ones? That is, apart
from looking for specific values in System.getProperty("device.model").

Cheers,
Kirwan

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Stefan Haustein

Hi Kirwan,

if "device.model" is supported only for the new models, you may not need
to look at the value at all? At least, the number of old models should
be limited, so you could assume a new model for an unknown value....?

Best regards,
Stefan

Kirwan Lyster wrote:
> Stefan Haustein wrote:
>> the new models all seem to have a clear key (to the right below the
>> RSK)? It may have a well-defined key name that is not available for
>> older models, enabling a distinction?
>>
>
> Thanks for that suggestion Stefan. I put in a check for the C key but
> unfortunately the ROKR E1 I'm using (which doesn't have such a key)
> still recognises the standard -8 as being a clear key so that doesn't
> seem to get me very far either.
>
> It's understandable that they use the same KVM and therefore recognise
> the codes in the same ways, but does anyone else have an idea how to
> tell newer Motorolas, without menu keys, from older ones? That is, apart
> from looking for specific values in System.getProperty("device.model").
>
> Cheers,
> Kirwan
>
> ===========================================================================
>
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Walker Simon-SWALKER1

Hi Chris,

On the newer products you can use System.getProperty( "device.model" ) .

Regards,

Simon Walker,

-----Original Message-----
From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Chris B
Sent: 16 January 2007 14:53
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Motorola's disappearing menu button

> In my opinion, it's a shame that microedion.platform still returns
> "j2me" for the new motorola phones (according to jbenchmark)....
>

Is there anyway to get the device name from the midlet other than
microedition.platform?

========================================================================
===
To unsubscribe, send email to listserv@java.sun.com and include in the
body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris B

Nice! Cheers Simon

----- Original Message -----
From: "Walker Simon-SWALKER1"
To:
Sent: Wednesday, January 17, 2007 4:50 AM
Subject: Re: Motorola's disappearing menu button

Hi Chris,

On the newer products you can use System.getProperty( "device.model" ) .

Regards,

Simon Walker,

-----Original Message-----
From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Chris B
Sent: 16 January 2007 14:53
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Motorola's disappearing menu button

> In my opinion, it's a shame that microedion.platform still returns
> "j2me" for the new motorola phones (according to jbenchmark)....
>

Is there anyway to get the device name from the midlet other than
microedition.platform?

========================================================================
===
To unsubscribe, send email to listserv@java.sun.com and include in the
body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Stefan Haustein

Hi Kirwan,

the new models all seem to have a clear key (to the right below the
RSK)? It may have a well-defined key name that is not available for
older models, enabling a distinction?

Please let me know whether this works out, unfortunately I do not have
access to the new models yet...

In my opinion, it's a shame that microedion.platform still returns
"j2me" for the new motorola phones (according to jbenchmark)....

Best regards

Kirwan Lyster wrote:
> Hi there,
>
> Having previously made use of Motorola's extra menu softkey (the one in
> the middle with three lines on it) for our Moto-specific builds, I've
> noticed it's been removed on their new models (eg. the KRZR, RAZR maxx
> and RIZR).
>
> I thought that by running the code below, I'd be able to ascertain
> whether the button there or not:
>
> boolean hasMenuKey = false;
> try {
> if (getKeyName(-23).equals("SOFT3")) {
> hasMenuKey = true;
> }
> } catch (Exception e) { }
>
> In a test on an off-site KRZR, hasMenuKey always comes back as true.
>
> Maybe another key has taken over the code and name (they're not very
> specific), but I'd hoped this would separate the haves from the have-nots.
>
> Has anyone else found a good way to determine if the button is there or
> not? It would be a shame to remove support for the button when it is there.
>
> Cheers,
> Kirwan
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris B

> In my opinion, it's a shame that microedion.platform still returns
> "j2me" for the new motorola phones (according to jbenchmark)....
>

Is there anyway to get the device name from the midlet other than
microedition.platform?

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Stefan Haustein

Hi Chris,

the only way I am aware of is to put the user agent into the JAD if you
are in control of the OTA process.

Best regards,
Stefan

Chris B wrote:
>> In my opinion, it's a shame that microedion.platform still returns
>> "j2me" for the new motorola phones (according to jbenchmark)....
>>
>
>
> Is there anyway to get the device name from the midlet other than
> microedition.platform?
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".