Android :: Something That Will Log All HTTP Requests Phone Makes?

Aug 29, 2010

I saw an message "page could not be loaded" in an app that I was using which made me realize that it's UI may be HTTP based somehow. Is there a way that I can find out where it is sending its requests?

Android :: something that will log all HTTP requests phone makes?


Android :: Simultaneous Http Requests

Jan 13, 2010

Is there a limit on the number of simultaneous http requests of the form:

HttpResponse response = client.execute(request);

I'm interested in any official limit as well as practical ones.

(In a previous life, you had to dig deep to discover that WinMo only allowed three WebRequests to be open at a time.)

Let's say I have a list of 20 files to download on a background thread.

Should I: Download them one at a time, blocking the thread (but not the UI thread) to wait for each one? Start 20 threads each downloading one of the files?

I expect the answer may be somewhere in between, where I create C threads and work on the queue of N files, where C is a number like 3 or 4.

I suspect some of you here have already done some experimentation and know the magic number. In addition, I suspect there may be more efficient ways of doing what I'm doing than creating a new DefaultHttpClient for each request.

View 10 Replies View Related

Android :: How To Do Async HTTP Requests?

Feb 23, 2010

Im using a web service, so I want to use an async thread for the HTTP authentication request and another thread later to make additional service requests while my main thread runs.Would like to see a good example of how to do this and how to show busy messages somehow in main app. How does the main app know when the thread finished? And what if my thread encounters exceptions, how do I deal with that?HTTP requests are sent later, use the same cookies setup up by the first auth request, so will the later requests pick up the same cookies and just work?

View 2 Replies View Related

Android :: How To Trace HTTP Requests / Responses?

Jul 22, 2009

How to trace the HTTP requests/responses e.g. by using Wireshark? I am using soap web services i want tocheck wheather the soap request from the web service sis going properly.I neee the Xml response from the server but non xml format i am getting how to check this request and response using Wireahark or any other process.

View 2 Replies View Related

Android :: Multi Threaded Http Requests Cause Exception

Jan 27, 2010

I have an app making an https post on one thread while performing a file download on another thread. For some odd reason, I am getting a ClientProtocolException saying that "The server failed to respond with a valid HTTP response". The error goes away if everything is run on a separate thread. Oddly if I run the two server requests in serial, the error goes away. It seems there's a bug that happens when two requests are made at the same time.

Important note: The post occurs to a different server than the download so the servers themselves should not be causing the problem. The code is simple. Here's the file download code:.............

View 9 Replies View Related

Android :: How To Use Separate Thread To Perform Http Requests?

Aug 2, 2010

I have an application that is performing HTTP Requests (specifically calling the FogBugz API) when the user clicks certain buttons. Right now, I am just creating a service when the application starts, and then calling different methods in that service to complete requests. However, when I do this, there is the usual hang in the UI thread. I have looked at AsyncTask, but am not sure it will do what I want to accomplish. Because I need to instantly parse the XML that the HTTP Request returns, I need to have a process that is able to return this data to the UI thread. Will ASyncTask be able to accomplish this, or is there some other way.

View 1 Replies View Related

Android :: Injecting HTTP Header Into All Requests By Emulator

Mar 17, 2009

Is there an easy way to inject a header into all HTTP request sent from the emulator, including HTTP requests made by my app and also by the built-in web browser? I need this ability to model the behavior of a carrier gateway. I tried running the emulator through Fiddler as a proxy because I know how to manipulate HTTP requests in Fiddler, but that that didn't work. The emulator was successfully able to make the first HTTP request, but choked on subsequent ones. Reading this list, it seems that getting the emulator to use a proxy is not is not that easy. If this is the only way to do what I need, then I'll certainly give it another shot and post details about any problems I encounter. I am just wondering if perhaps there is an easier way to inject a header.

View 3 Replies View Related

Android :: Sending Multiple Http Requests To Django

May 19, 2010

I am developing a microblogging platform in which I need to populate the page with Post (user defined class with fields) obtained from the Django server using HttpGet.In the client side(Android) I am using GSON to parse the responses from server to the type Post. So I require that server should send Post's one by one so as to add each of them to a list of Posts after parsing and then finally notifying the list adapter of changes in the data set after all Post's have been added.But the problem coming when intially loading the application, the page has to be populated with 10 latest Post's from the server. So I thought of a rather dirty way of sending 10 httpget requests to the server one after the other to the server. The code looks like this.I was thinking of executing it 10 times in a loop to get the 10 Post's I require. But in Django as far I know (correct me if I am wrong) there's no way to keep an index of the last sent Post to the client and so no way to send the 'next' Post on the next HttpGet request. So I am out of ideas.I feel there's a better way to do this efficiently.

View 1 Replies View Related

Caching Of HTTP Requests (HttpResponseCache)

Jan 14, 2014

I'm trying to employ HttpResponseCache to cache each HTTP-request sent with HttpURLConnection.

why I get hit count always zero?

Code:

HttpResponseCache.getInstalled().getHitCount()
Usage:

Code:
for(int i = 0; i < 2; i++){
try {
HttpURLConnection connection = (HttpURLConnection) new URL("http://www.google.com").openConnection();
connection.setUseCaches(true);
if(i == 1){
try {

[code]....

On 2'nd run I have "NOT cached" in console and hit count == 0.

View 2 Replies View Related

Sending And Receiving Asynchronous HTTP Requests?

Jul 20, 2012

I developed a game for Android called Jumping Bird, it writes the score obtained by the player in the database on my web server, but it does so synchronized. While it tries to write data in the database on the web, the entire game is stopped , and worse, when the server is slow, the request takes more than 5 or 10 seconds, an ANR(application not respond) error occurs and the OS tries to close the app.

I wonder how I can make that request asynchronous.There is any library that does it?

View 1 Replies View Related

Android :: Can Phone Pause WiFi Scan Requests?

Aug 19, 2010

I wrote an android application to request a scan for available WiFi signals around, using the WifiManager, then dump the results to a file. The program works fine, but this weird bug occurs. Initially I was requesting a scan every 30 seconds, and everything worked fine. I then tried to request a scan every two seconds, I get this strange bug. Everything will work fine for a few minutes, then the time between two scan requests jumps from 2 seconds to 50 seconds for no reason.

Then, for four more scans, it will scan at 2-second intervals, then skip to a 50-second interval, and it continues to do this consistently. With larger time intervals this bug does not appear. Has anyone experienced this bug before? Is there a way to prevent it? Or does Android automatically cancel scan requests if they are too frequent?

View 1 Replies View Related

General :: Android 4.3 Makes Phone Unstable - How To Roll Back (Boost Mobile)

Jan 12, 2014

I've had 4.3 on my phone now for about a month. It is horrible, phone freezes a lot, and run very slow. Is there a way to roll back to the previous version?

View 5 Replies View Related

Sprint HTC Hero :: New Battery Makes Phone VERY Hot

Mar 30, 2010

I've had my Hero for a few months now and it has been wonderful. However, the other night, the phone wouldn't charge all the way, so I unplugged it, restarted it, and charged it and it charged up to 90% through the night. Last night it only charged up to about 50% give or take. This morning at work, I plugged it in and instead of charging, it got extremely hot and then it died.

This afternoon, I took it to the Sprint store and they put in a new battery and the phone worked again, but it got REALLY hot again. I took it back in and they looked at it again and said the phone has definitely got a problem and the cause of this is water. It has been raining, but I don't recall ever having any water get in the phone - just the occasional rain drop hits the screen and I wipe it off. I never keep it out in the rain. They are saying I'll have to do an insurance claim to replace it because of water damage. They say there are 4 water marks in the phone. I find this so hard to believe and don't like that they want me to spend $100 on a new phone.

View 3 Replies View Related

Motorola Droid X :: 2.2 Makes Phone Laggy

Aug 20, 2010

ever since I installed Froyo my phone has been so laggy it's almost unresponsive. I'm rooted so that may be a cause but it might be a bad app. Anyone else have similar problems?

View 5 Replies View Related

Motorola Droid X :: Camcorder Makes Phone Restart

Oct 29, 2010

I've never really used the video-recording until today. After maybe 3-5 seconds of recording, my phone will automatically restart. It's happened 3 out of 3 times, and one of those times it was stuck on the big M [battery pull fixed it]. I am rooted, but not running any ROMs or Themes. I am overclocked to 1.45ghz [if this makes a difference].

View 1 Replies View Related

General :: Shutdown Makes Phone Unable To Boot Without PC

Jan 21, 2013

After unlocking my phone's bootloader and flashing the kernel:

When I power off the phone, it gets into a state where I cannot control it by itself (black screen, no charging light if connected to a power source, does not react in any way to any key).

However, I am able to access it via adb over USB. Using adb, I can put it into some other state (reboot, reboot bootloader, etc) and again gain control over it (also through its own keys). When I select the "power off" function of the bootloader, it enters this state again.

I can even reboot the phone (also into recovery/bootloader/fastboot) from any state

So I can use the phone, but I can't power it on by itself, which isn't a good situation when I don't have a computer around.

device: HTC One S
ROM: CyanogenMod 10 (device is officially supported by CM10; I used the version I found in the Wiki.)
kernel: The one included in CM10 (had to be flashed manually via fastboot because of restrictions by the device; I flashed the kernel before flashing the ROM)

View 9 Replies View Related

Samsung Epic 4G :: Phone Makes Noises When I Make Call

Sep 9, 2010

My Epic makes three loud beeps every time I make a call, and its rather annoying. Does anyone else's phone do this?

View 2 Replies View Related

Sony Ericsson Xperia X10 :: Other Phone Makes Of Headset / Mic Work?

Aug 10, 2010

can anyone suggest some replacement wired handsfree earphones for the ones that came with the x10 - costing roughly 30 say.At a minimum I want a microphone and a button to recieve/end calls, but it would also be good to stop/start music as well. Do other phone makes of headset/mic work? I know the iphone ones don't.I don't really want the bluetooth headset because the battery life is short enough as it is...

View 7 Replies View Related

Motorola Droid :: Download A Program That Makes QR Codes For Phone?

Jan 2, 2010

A friend of mine has the iphone, and was able to download a program that makes QR codes. Is there a program that has this capability for the droid?

View 2 Replies View Related

General :: Making App That Makes Phone Vibrate With Big Bass Beats?

Dec 21, 2012

I was wondering if any devs out there could make an app that makes your phone vibrate with big bass beats in your music

View 1 Replies View Related

Motorola Droid X :: Earpiece Makes A Buzzing / Rattling When Talking On Phone

Jul 15, 2010

Earpiece makes a buzzing / rattling when talking on phone

View 25 Replies View Related

Motorola Droid : Swype Makes Phone Extremely Slow When It Is Running?

Apr 19, 2010

Has anyone downloaded the swype and seem like your phone runs extremely slow when it is running. When i have the swype app running then my phone is very slow, meaning when i just hit the home bottom takes five seconds to get there with all icons showing. I return to using the stock keyboard and the lag is gone. Anyone else getting this?

View 22 Replies View Related

Android :: Need App That Makes Calls / Stores Data For I Phone / Android

Jun 18, 2009

The app I'd like to build aims at giving contact information of a person using a search engine. This is the basic feature.
To make it more appealing, I'd like to add those enhancement features:
(1) allowing making a phoning call to the contact (when pressing a button for ex.)
(2) allowing the user to store contact information that would be available off-line
I need to have it work for i phone, Android and Blackberry. The application should also provide the basic feature (with not necessarily the enhancement features) for the maximum phone devices. I'm a beginner in i phone, Android and Blackberry. What would be the more efficient way to code the app ? For example, is it possible to make a common web application for all the mobile devices to provide the basic feature (display contact info using the search engine) and only code the specific features using each specific language without re writing the common code ? How would it possible to achieve it? I would prefer not to use a 3rd application tool such as edgelib, xmlvm or phone Gap that generates code for you.

View 1 Replies View Related

HTC Droid Eris :: Stop Phone To Makes Noise When Receiving A Text Just Vibrates?

Jan 25, 2010

How can I make it so my eris makes no noise when receiving a text just vibrates?

View 3 Replies View Related

Samsung I7500 :: Disable Sound Galaxy Makes When Deconnecting Handsfree Get With Phone?

Oct 23, 2009

just wondering if anyone know how to disable the sound the galaxy makes when deconnecting the handsfree u get with the phone.

View 5 Replies View Related

Motorola Droid :: When Loaded Bunch Of Pictures From Comp To Phone Makes Several Folders In Gallery?

Mar 21, 2010

I got my Motorola droid last week and when I loaded a bunch of pictures from my comp to the phone it made several folders in my gallery. Is this normal or is there something I can do?

View 4 Replies View Related

Samsung Fascinate : If Rotate Phone Or Set On Desk - Makes An Annoying Sound That Interrupts Music

Sep 28, 2010

I'm listening to Pandora and I go to my home page. If I rotate the phone, or even set it on my desk, the phone makes an annoying sound that interrupts my music. I turned off system sounds and I still get the noise. Any ideas on what I can do to get rid of that annoying noise.

View 2 Replies View Related

Android :: Want A Site / Book To Learn Using Http Methods For Phone?

Apr 28, 2010

As part of the college mini-project, I am developing a micro-blogging platform for Android. I am planning to use Django framework in python to handle the communication between Android and remote server so as to make database API independent. I heard its best practice to use HTTP methods for the communication. Which is the best site/book to learn using HTTP methods for Android?

View 1 Replies View Related

Android : Mobile Network Types Allow Http Traffic During Phone Calls

Oct 28, 2010

Would this Android code be a correct way to test for http network availability during a phone call, or does it exclude networks that should be included or vice versa:

CODE:.....................

View 1 Replies View Related

Android :: Viewing Requests Made By Another App

Sep 16, 2009

Is it possible to view what requests are made to external sites/ servers by an app? Basically I'd kind of like to throw an application (I did not make) into a debugging type thing to see what requests (to where and what data) it makes. This is to kind of ensure a third party app does what it is saying, and isn't sending data elsewhere.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved