This is how I connect to a php script that I wrote. To fill in a form
on any website surely it's just a matter of loading it in the browser?

hope this helps
John

s = callWebPage(Constants.WebCall, "?
do=startgroup&phone="+getMy10DigitPhoneNumber());
exampel of a webcall the url is in Constants.WebCall

 public String callWebPage(String URLstring, String parameters){
        String s;
        try {
            URL updateURL = new URL(URLstring+parameters);
            URLConnection conn = updateURL.openConnection();
            InputStream is = conn.getInputStream();
            BufferedInputStream bis = new BufferedInputStream(is);
            ByteArrayBuffer baf = new ByteArrayBuffer(50);
            Log.e("SettingsDialog", "after the call to web");
            int current = 0;
            while((current = bis.read()) != -1){
                baf.append((byte)current);
            }
            Log.e("SettingsDialog", "back from web page"+parameters);
            /* Convert the Bytes read to a String. */
             s = new String(baf.toByteArray());
             Log.e("SettingsDialog", String.format("in callWebPage =
%s ",s));
             return s;
        } catch (Exception e) {
                Log.e("SettingsDialog", "exception in callWebPage");
        }
        return "error";
    }


On Nov 11, 8:54 pm, mnish <[email protected]> wrote:
> Hello all,
>
> Can someone please tell me how to do the following in andoird?:
>
> 1. connect to a website
> 2. fill in a form with necessary information
> 3. get the found information
>
> Even if you know just answer to one of those questions please drop
> some lines of info.
>
> thank you very much in advance,
>
> mnish

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en

Reply via email to