Skip to main content

LG KG800 (Chocolate) platformrequest doesn't seem to work

6 replies [Last post]
Anonymous

Hello,

We are having some problems with the LG
KG800 platformrequest not working. The phone
throws a ConnectionNotFound exception - despite
it being a well formed url with valid content.
Are there any tricks to this?

Thanks in
advance,

James Brook
Teazel Ltd

===========================================================================
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".

Reply viewing options

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

On 2/20/07, James Brook wrote:
>
> I'm not sure I completely follow what you mean with the TextField. I can
> see how to create a TextField which is limited to a phone number or url
> etc.

The MIDP 2.0 spec allows PHONENUMBER text fields to initiate calls:

"The implementation may automatically start a phone dialer
application that is initialized so that pressing a single key would be
enough to make a call."

This is implemented on some handsets, though it is not a requirement.

As for platformRequest, tel: support is required, so it looks like
your handset is not compliant:(

"If the URL specified is of the form tel:, as specified in
RFC2806, then the platform MUST interpret this as a request to
initiate a voice call."

By the way, platformRequest returns a boolean indicating if your
MIDlet needs to exit before the request can be handled. That's not
the issue here apparently, but it would make your sample code more
robust.

--
Joe Bowbeer

PS -

JTWI adds the requirement that PHONENUMBER text fields provide access
to the phone book:

"Compliant devices must implement a mechanism for selecting a phone number
from the device phone book when the user is editing a TextBox or TextField
and the constraint of the TextBox or TextField is TextField.PHONENUMBER."

===========================================================================
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".

James Brook

Hello Again,

Sorry I missed the second reply.

I'm not sure I completely follow what you mean with the TextField. I can
see how to create a TextField which is limited to a phone number or url
etc. When you hit submit it should do a platform request with tel: or the
web url. However it is this step that is failing on the LG Chocolate
(KG800) but it does work on the LG Shine and about 20 other phones (Nokia's
and SonyEric's).

Here is a code snippet:

try {
midlet.platformRequest("http://www.someurl.com");
} catch (Exception ex) {
Debug.staticDebug(ex.getMessage());
}

We see a ConnectionNotFoundException from the call.

I've never seen this fail on a real phone before, I kinda thought it was a
fairly basic MIDP 2.0 feature.

The problem we have is that we quite like to build an upgrade facility into
our apps.

Out of interest is there an LG developers forum?

Cheers,

James Brook

===========================================================================
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".

Tom Hubina

I've seen this fail on a number of MIDP2 phones (Samsungs and LGs seem to be
the worst offenders). There are also cases where it doesn't error out but
behaves differently if the browser is already running in the background.

I would expect a decent number of problems if you make an app that requires
plaformRequest to work reliably.

Tom

> -----Original Message-----
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of James Brook
> Sent: Tuesday, February 20, 2007 4:27 PM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: LG KG800 (Chocolate) platformrequest doesn't seem to work
>
> Hello Again,
>
> Sorry I missed the second reply.
>
> I'm not sure I completely follow what you mean with the
> TextField. I can see how to create a TextField which is
> limited to a phone number or url etc. When you hit submit it
> should do a platform request with tel: or the web url.
> However it is this step that is failing on the LG Chocolate
> (KG800) but it does work on the LG Shine and about 20 other
> phones (Nokia's and SonyEric's).
>
> Here is a code snippet:
>
> try {
> midlet.platformRequest("http://www.someurl.com");
> } catch (Exception ex) {
> Debug.staticDebug(ex.getMessage());
> }
>
> We see a ConnectionNotFoundException from the call.
>
> I've never seen this fail on a real phone before, I kinda
> thought it was a fairly basic MIDP 2.0 feature.
>
> The problem we have is that we quite like to build an upgrade
> facility into our apps.
>
> Out of interest is there an LG developers forum?
>
> Cheers,
>
> James Brook
>
> ==============================================================
> =============
> 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".

James Brook

Hum,

All a bit depressing.

I'll have to do special instructions for the LG upgrade process.

Thanks,

James Brook

===========================================================================
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".

Sreejit Gopinath

Hi James,
On some LG devices platformrequest doesn't work. You can use a TextField
where it is required to make a call from the application. Below is the
sample code for creating the textfield
TestField phoneNumber = new TextField("phone no","9812121212",10,TextField.
PHONENUMBER);

Or You can also set the constraint through

phoneNumber.setConstraints(TextField.PHONENUMBER);

this will automatically start a phone dialer application that is initialized
so that pressing a single key would be enough to make a call.

Regards,
Sreejit

-----Original Message-----
From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Suchit Tatkare
Sent: Monday, February 19, 2007 10:25 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: LG KG800 (Chocolate) platformrequest doesn't seem to work

Dear James,
plateformrequest throws a ConnectionNotFoundException- if the platform
cannot handle the URL requested. It you are trying to make a call using
plateformrequest, following is the URL;
"tel:xxxxxxxx" where xxxxxxx is the tel number
if you wanna connect to any wap site
"http://www.xxxxx.com"

To my experience platformrequest does not support sms. If you could
post the code , it would definitely help to evaluate the cause of this
issue.

Regards,
Suchit Tatkare

On ???, 2007-02-18 at 16:20 -0700, James Brook wrote:
> Hello,
>
> We are having some problems with the LG
> KG800 platformrequest not working. The phone
> throws a ConnectionNotFound exception - despite
> it being a well formed url with valid content.
> Are there any tricks to this?
>
> Thanks in
> advance,
>
> James Brook
> Teazel Ltd
>
>
===========================================================================
> 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".

--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.

===========================================================================
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".

Suchit Tatkare

Dear James,
plateformrequest throws a ConnectionNotFoundException- if the platform
cannot handle the URL requested. It you are trying to make a call using
plateformrequest, following is the URL;
"tel:xxxxxxxx" where xxxxxxx is the tel number
if you wanna connect to any wap site
"http://www.xxxxx.com"

To my experience platformrequest does not support sms. If you could
post the code , it would definitely help to evaluate the cause of this
issue.

Regards,
Suchit Tatkare

On रवि, 2007-02-18 at 16:20 -0700, James Brook wrote:
> Hello,
>
> We are having some problems with the LG
> KG800 platformrequest not working. The phone
> throws a ConnectionNotFound exception - despite
> it being a well formed url with valid content.
> Are there any tricks to this?
>
> Thanks in
> advance,
>
> James Brook
> Teazel Ltd
>
> ===========================================================================
> 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".