Help needed regarding HTTPClient

by Viju » Fri, 20 May 2011 09:34:06 GMT


Sponsored Links
 Hi,

Is it possible to get all the HTTP URL request triggered by the
browser (Apache) from my client application ?
If then, can you please tell me the framework API which gives me the
URL ?


I'm developing some kinda of HTTP sniffer application for android
which will log all the HTTP Url request made by the native browser
(Apace) and store it in a local file.

-- 



Other Threads

1. http POST request problem

in the following code - i get an http response code
400 - BAD REQUEST.

if i comment out the post.setEntity() line - then it
works fine - response code 200.

of course i've got internet permission

params is a list of 1 entry - string2string mapping.

        URI uri = new URI(urlPath);

        HttpPost post = new HttpPost(uri);

        UrlEncodedFormEntity entity = new UrlEncodedFormEntity(params,
"UTF-8");

        post.setEntity(entity);  // if this line is commented out -
the post results in status 200 OK

        DefaultHttpClient client = new DefaultHttpClient();

        HttpResponse res = client.execute(post);

-- 

2. Problem when starting translucent activity from Broadcast receiver.

Hi
I got a graphical problem regarding the Translucent theme at Samsung
Galaxy i9000. It works well in the emulator with android version
ranging from 1.6 to 2.2 as well as on SE x10 mini. I have yet to test
on more devices.

I am starting an activity from a broadcast receiver. The activity
started got the theme @android:style/Theme.Translucent
If all the activities in my application are destroyed when the
broadcast occurs, then the new activity got a working translucent
theme and is presented on top of the activity currently in front.

However, if the user left the application with the HOME-key, not
destroying the activity, I get a graphical bug when the broadcast
triggers.
The application gets brought to the front with the activity the user
last visited showing instead of the new activity that I started from
my broadcast receiver.
When I press the back key I can see my Translucent activity quickly
showing itself and then getting destroyed.

This flow results in the graphical bug:
Start application. Activity A will be shown.
Leave application by pressing HOME-key. Home screen is shown.
Trigger broadcast.
Start activity B.
Application gets brought to foreground and activity A is shown.
Press BACK-key. Activity B quickly shows itself and disappears. Now
activity A is shown.

Also, after activity B is started and when activity A is shown in its
place. Pressing the screen will triggers buttons that belong in
activity B even if the user can see them.

If I remove the theme, then activity B will show itself when it
supposed to.

Is there anyone else who have encountered a similar problem?
Is there any good workarounds I can apply? (I don want to rebind
home to finish all activities)
Is the problem my fault or can there possibly be some glitch in
Touchwiz?

-- 

3. when we write words in editText, i want to know toggle state in virtual keyboard

4. AppWidget on receive method and documentation

5. Autofill in local webview

6. "CTS" Test plan Query

7. Understanding the Transaction mechanism