Android :: Slow Reading From HTTPs URL Connection

Mar 28, 2009

So I have the following code.
StringBuilder sb = new StringBuilder(4096);
while (true) { int i = in.read(); if (i == 0) break;
else if (i == -1) throw new EOFException();
sb.append((char)i); }
What I see (with thousands of times run) is that this code takes about 1ms for every 7-10 bytes read. So reading just 10k takes almost a second!

Android :: Slow Reading from HTTPs URL Connection


Android :: Https Connection

Jun 15, 2009

I am doing a https post and I'm getting an exception of ssl exception Not trusted server certificate. If i do normal http it is working perfectly fine. Do I have to accept the server certificate somehow?

View 7 Replies View Related

Android :: HTTPS Connection To Exactly One Site

Jan 18, 2010

I'm creating an app for the Android platform which will connect with just one site using HTTPS. It is essential that it won't be able to connect to any other sites, even with valid SSL certificates. I want it to be resistant to every form redirection (for example to site pretending to be the one I need to connect with) or other "attacks". Unfortunately I cannot find any good tutorial about SSL in Android.Do you know any? I'd be grateful for some links or advices. Or maybe could you give me some code snippets? My app is prepared to use HttpURLConnection or HttpClient - it makes no difference which path will I choose.

View 2 Replies View Related

Android :: Client Certificate Authentication For Ssl / Https Connection

Feb 23, 2010

I want to connect to a server using ssl/https connection. During handshake between client and the server, I want to have server certificate authentication as well as client certificate authentication. The server certificate authentication is successful. But I don't know how to send client certificate to server for authentication, during the handshake.

View 4 Replies View Related

Android : Trouble Making Https Connection To Server - With Password Authentication

Oct 11, 2009

I'm having trouble making https connection to the server , with password authentication. What is the simplest & recommended way to do it ?

View 4 Replies View Related

HTC Incredible : 3g Connection Very Slow

Jul 19, 2010

Connection is so slow right now I have to use wifi could this mean something like a lot of traffic right now

View 1 Replies View Related

Android :: Droid Application Become Slow In Running / Why Is So - Internet Connection Is Reason?

Nov 19, 2010

I'm using this code to display several images from the Internet code...

but the application became slow in running why?
does the Internet connection is the reason? or because i input several input stream to display each image?

View 1 Replies View Related

General :: Slow Connection Speed In Emulator

May 6, 2012

So I've been developing some stuff here and there for Android, and I noticed my device emulator has a RIDICULOUSLY low connection speed. I'm not talking about performance which is fine, I'm talking just about 'network speed'. What it means is that transferring files to and from the AVD using ADB (which as you may know relies on networking protocols) is EXTREMELY slow, and what's worse, internet transfers are VERY very slow. Therefore, when I'm working with online content (which my app, and let's face it - most apps are about) it's EXTREMELY slow.

It's worth mentioning that those same apps work great and about ten times faster on an actual android device.

View 2 Replies View Related

HTC Desire :: Internet Connection Running Pretty Slow

Jun 7, 2010

My internet connection seems to be running pretty slow atm. It keep jumping from 3G+ which is really fast then back to G which is pretty slow, Why is this? Is there a way to make it 3G+ all the time and be stable or is it common for it to flip through them its changing like every few seconds.

View 12 Replies View Related

Motorola Droid X :: Slow And Constantly Dropping Connection

Sep 1, 2010

i've had my droidx since it came out. Its always worked great. but for the last two weeks or so it has been VERY annoying. App for chatting like AIN or trillian do not connect long enough or well enough to talk to people. My service is also lagging as well as wifi. And my market is very very bad with loading. Any suggestions? I do not have an automatic task killer. And i do use juicedefender, but on days i leave it off i have the same problem.

View 1 Replies View Related

HTC Desire :: Slow Internet Connection On O2 / Way To Get Good 3g Signal?

May 31, 2010

Anyone else having issues with a slow internet connection on o2? Also when i try to watch a vid on the bbc i player app im getting a msg saying that im connected via edge or gprs and i need to view via wifi or 3g. Im in a 3g area as the people beside me in work can get a good 3g signal via O2 also.

View 20 Replies View Related

Motorola Droid X : Slow WiFi Connection Network

Jul 27, 2010

I did a search and couldn't really find any threads with people having similar issues. I saw that people were having trouble keeping their X connected to a network, but that's not my issue.

I have a Droid Incredible and added a line to get the X figuring I'd just sell off the Inc when my X arrived. Since I got my X, I've noticed that when I am connected to a wifi network, it almost seems to crawl when I hop around from page to page.

I ran some speed tests on my internet connection, it seemed that it was my phone. So then I ran speed tests with the app in the marketplace, first on the DInc and then on X. The upload speeds were pretty close to identical, but the download speeds were consistently 300 kbps higher on the Droid Incredible.

So after running those tests, I decided to just do some side by side browsing on the X and Inc to see how big the difference was between the two. I opened up a few pages that I don't ever really visit so they weren't in my browsing history and the Incredible would again open pages 10-15 seconds quicker.

Has anyone else had these same issues? I know their was a software release shortly after the initial launch, is their another one in the pipeline?

I love the phone, it's a multimedia beast. But I don't think I want to keep one that has a busted wifi connection.

View 7 Replies View Related

HTC Desire :: Slow Internet Connection - When Two Arrows Showing GPRS?

Sep 20, 2010

Newbie question here:

My internet conection is painfully slow. when I have the mobile network switched on a get a G with two arrows showing GPRS?

Is this correct, should I not see a 3G with two arrows? I am with O2UK.

View 1 Replies View Related

Jelly Bean :: S4 - Auto-disabling WiFi On Slow Connection?

Feb 20, 2014

the phone automatically disables the Wi-Fi connection and switches over to data which she chews through really rather quickly.

I've got no problem with her downloading the universe when connected to my ADSL but preferably not through cellular data.

How I can go about disabling this "auto-disabling" of the Wi-Fi connection when it detects that it is slow? I couldn't find the option but I also find the S4's settings a tad disorganised.

I don't have this happening on my phone (BB10) so I wasn't expecting this to happen and she doesn't check the symbol at the top to see whether it's on Wi-Fi or not.

It is a Samsung Galaxy S4 running 4.3.1

View 3 Replies View Related

General :: Samsung Galaxy Note 10.1 2014 Edition Slow Connection

Jan 6, 2014

I got a Samsung Galaxy Note 10.1. 2014 Edition. I love the Tablet, great for watching Youtube videos, and mostly for playing my retro games. But lately now I have a serious problem. I have Verizon Fios at home and whenever I try to connect my Wireless tablet to it It lags, it slows down, many times the connection comes up for a couple of seconds, then connection drops. I told Verizon about and they are going to send me a new router. it is a software connection issue with the Samsung Tablet? On my computer, I am getting 7 mbps download speed and 6 mbps when I am supposed to be getting 50 Mbps on my comupter.

View 8 Replies View Related

Motorola Droid :: Slow Wifi Connection On Droid

Nov 10, 2009

i just recently purchases a droid and noticed the wifi connection upload and download speed is very slow relative to what it should be. I have fios with a westell wireless g router but im only getting about 1 mbit up and down when i sit right next to it. Also wondering if anything notices the screen tilts a little bit when you press on it, like its loose.

View 3 Replies View Related

Android :: HttpClient And HTTPS?

Apr 8, 2010

I'm new to implementing HTTPS connections in Android. Essentially, I'm trying to connect to a server using the org.apache.http.client.HttpClient. I believe, at some point, I'll need to access the application's keystore in order to authorize my client with a private key. But, for the moment, I'm just trying to connect and see what happens; I keep getting an HTTP/1.1 400 Bad Request error.

I can't seem to make heads or tails of this despite many examples (none of them seem to work for me). My code looks like this (the BODY constant is XmlRPC):

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

View 1 Replies View Related

Android :: Using Ksoap2 Via Https?

Feb 11, 2010

Has any one been able to connect to a soap server using ksoap2 android via https?

I keep getting the error that "Hostname <###>was not verified"

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

Apparently looking back at other ksoap which isn't for android your ment to us a different call to connect via https, but i can't find a way to do it in the android version.

View 1 Replies View Related

Android :: Get Image Source From HTTPs URL?

Nov 11, 2010

I am trying to get an image from a https url but it doesn't seem to display and get the image correctly but works fine on my computer browser. I have tested out a http url pointing to a different image and it works fine. My code is below:

public Bitmap getContactPhoto(String url) {
Bitmap pic = null; try { pic = BitmapFactory
.decodeStream((InputStream) new URL(
"https://mail.google.com/mail/photos/static/AD34hIjbK2m-Lj333E4nBcCkBC3MYl2tTs0xizuSqUOP3-Jd6DOrpFg1M5HG8jXh0MuPbeFepInZZDu92Dx8ST4b59EbOKmfYTortuuO3P1_Ohyu7b7a3gc")
.getContent()); } catch (MalformedURLException e) {
// TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) {
// TODO Auto-generated catch block e.printStackTrace(); } return pic; }

Here is the code from the activity class that calls the method above:
private ImageView mContactPhoto; private ContactDetailsViewHelper mViewHelper;
mContactPhoto = (ImageView) findViewById(R.id.contact_photo);
mViewHelper = new ContactDetailsViewHelper(mContext);
mContactPhoto.setImageBitmap(mViewHelper.getContactPhoto(mDetail.getImageRef()));
ignore the mDetail.getImageRef, that passes the real url value but for this case I tried hard coding the url as you can see from the getContactPhoto method.

View 1 Replies View Related

Android :: How To Track All Https Requests?

Apr 12, 2010

How to collect URLs of all http/https requests made by the phone as well as well as the return status code and user agent from the headers. This information should be coming for all browser requests and other applications too.Please let me know this information can be retrieved on App level or we have to go to system level for this.

View 5 Replies View Related

Android :: Java URL Class Can't Use HTTPS In App / Way To Do

Jan 11, 2010

I want to use HTTPS in my application. The Java URL class does not seem to do the job.

Does anyone have any pointers?

View 3 Replies View Related

Android :: HTTPS SSL Error While Installing?

Sep 7, 2010

I downloaded Android SDK when I run setup, it displays the following error message.

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.

View 1 Replies View Related

Android :: HTTPS With Self Signed SSL Certificate - Solution Or Better?

Apr 29, 2010

I need to do is download some basic text-based and image files from a web server that has a self-signed SSL certificate. I have been trying to figure out how to use HttpClient to do this, but getting the SSL to work is a nightmare that seems to be way too much trouble for such a simple task. Is there a better way to perform these file downloads? Perhaps through a WebView or Browser feature? Reinventing the wheel of making a simple HTTPS GET request is a major pain, and is significantly holding up my development schedule.

View 3 Replies View Related

Android :: Load Https Requests With Webview

Jun 2, 2010

I'm trying to load https requests with a Webkit object but It shows only a blank page, with http requests I don't have problems, It shows the page correctly. I have look the source code of the browser, in http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a... but I don't understand how the browser process the https requests. I think that the class BrowserActivity process the http and https requests but I don't see how to do it. Somebody could explain how the browser process the https request? It uses a Webview object to show the response of the https requests?

View 5 Replies View Related

Android :: Progressive Video Play Over HTTPs

Jul 13, 2010

I am trying to stream video over https from Android browser. If the video URL is http, everything works fine. But when I switch the url to https, no video can be played. I tried 2 methods to stream over http/ https through Android browser.

1. Use html5 Video tag on browser (Android 2.0+ device) and call video.play( ) from javascript. - With Https url. Browser launches media player and the player displays alert dialog saying "Can't play video". I captured the client TCP traffic and found no SSL handshake between client and server. It looks like the player pops up the alert on any https link. - With Http url. Browser launches media player and the player can stream the video successfully.

2. Use direct link of html <a> tag on browser and click the link - With Https url. Browser downloads the video file without launching the player. The browser seems not try to load any https link in media player. - With Http url. Browser launches media player and the player can stream the video successfully.

So the above tests make me think Android media player cannot play media from any https url.

View 4 Replies View Related

Android :: HTTPS Authentication Over WiFi Using HttpClient 4

Jul 9, 2009

I have Android pet-project DroidIn which utilizes HttpClient 4 (built into Android) to do some form based authentication. I started noticing that people who are using WiFi are reporting connection problems. It also doesn't help that site I'm accessing has self-assigned certificate. Well - the question is (I'm quite vague on WiFi details) If WiFi at the hotspot doesn't support HTTPS would that be a good enough reason for connection to fail and is there anything that I can do beside proxying into another appserver using HTTP which then would call HTTPS site?

View 2 Replies View Related

Android :: Using Ksoap Over HTTPs To Request Data From Server?

Feb 11, 2010

I'm using ksoap over https to request data from a server. It works fine, but only every other time! Looking at the traffic with wire shark it seems that on every other request something goes wrong with the ssl traffic/handshake (data doesn't even get sent except for an fc-fault coming back). Doing the same requests using curl the server always responds fine and afaik the iPhone version of the program also doesn't seem to have any problems with the server.

View 13 Replies View Related

Android :: How To Design REST Writing PHP To Handle HTTPs?

Mar 2, 2010

In short, I am writing an Android application that I want to have pull data from a remote database. I was looking into .NET web services, but this http://stackoverflow.com/questions/297586/how-to-call-web-service-with-android question pointed me away from that direction.

Is REST as simple as writing some short PHP to handle something like https://www.example.com/data.php?employee=michael and have it return relevant XML or JSON data? That to me seems like what has been described to me by various sites and videos. Also, is this the best way to do this kind of operation over the internet for mobile devices, desktop applications, etc?

View 2 Replies View Related

Android :: Break Export Laws When Access Web Site Using Https From App

Dec 11, 2009

If I access my web site using https from my app will it break any export laws?

View 2 Replies View Related

Android :: WebView With Https LoadUrl Shows Blank Page

Sep 13, 2010

I used webview to visit https link. the page always show blank. i found the way to dill with it

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

That's work fine.

But i used API Android 2.1, the above method is belongs to Android 2.2.

View 1 Replies View Related







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