Hi Senthil,

Browser renderes .wml file as text file is because it treats .wml file
as "text/plain". Please comment one line in file "frameworks/base/core/
java/android/webkit/LoadListener.java" as follows to make it work.

private void handleHeaders(Headers headers) {
            ...

            } else if (mMimeType.equalsIgnoreCase("text/vnd.wap.wml"))
{
                // As we don't support wml, render it as plain text
                // mMimeType = "text/plain";
            } else {

            }
}

Dave

On 4月16日, 下午12时03分, Senthil <[email protected]> wrote:
> Hello,
>
> Any suggestions on required changes to make WML work on Android?
> Does it require minimal changes or would take much time to make it
> work?
>
> Appreciate your answers on this.
>
> -Senthil
> On Apr 15, 11:51 pm, stantonpk <[email protected]> wrote:
>
>
>
> > Why not?
> > Or rather -- since WML code from Webkit is in Cupcake build, is it
> > fair to expect that WML will be parseable and viewable?
>
> > On Apr 15, 1:00 pm, Jean-Baptiste Queru <[email protected]> wrote:
>
> > > No.
>
> > > JBQ
>
> > > On Wed, Apr 15, 2009 at 7:07 AM, Senthil <[email protected]> 
> > > wrote:
>
> > > > Hello,
>
> > > > Since recent Cupcake version of Android picks up WML source from
> > > > Webkit, I tried compiling after enabling (ENABLE_WML) WML feature.
> > > > When I try to access some .wml page, Browser just opens .wml file in
> > > > text mode , but it does not creating WAP page.
>
> > > > Does Android support WML functionality in full-fledge ?
>
> > > > Thanks,
> > > > -Senthil
>
> > > --
> > > Jean-Baptiste M. "JBQ" Queru
> > > Android Engineer, Google.
>
> > > Questions sent directly to me that have no reason for being private
> > > will likely get ignored or forwarded to a public forum with no further
> > > warning.- Hide quoted text -
>
> > - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to