Hi,

I am trying to launch the browser for a given URL, but also while
adding an HTTP header to the request. I have successfully launched a
browser using the Intent object like this:

    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        Uri uri = Uri.parse("http://mydomain.com/";);
        Intent i = new Intent(Intent.ACTION_VIEW, uri);
        startActivity(i);
    }


Is there any way to add an HTTP header for this request? I don't see
any method on the Intent object that allows me to do that. I have also
seen documentation showing other ways to add headers using the
android.webkit.WebView object, but the specific loadURL method
mentioned is not supported in version of the API I am using. (I have
used both 1.6 and 2.1)

Has anyone found a way to accomplish this? Thanks for any help or
insight you can provide!

-Marc

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

Reply via email to