Android :: Sending Huge Files With HttpsUrlConnection

Mar 12, 2010

I have some Android code that can send files to my webserver using an HttpsUrlConnection, but when it tries to send larger files I get an OutOfMemory exception when opening the OutputStream. Can anyone offer some assistance?

It looks something like this:

code:..............

This is where I try different things. The closes solution has been: httpConn.setChunkedStreamingMode(1024); In this case, I don't get the OutOfMemory immediately when opening the OutputStream, but I see the heap growing as I os.write() and it eventually runs out.

code:..............

Android :: Sending huge files with HttpsUrlConnection


General :: Any Apps For Android To Join Huge Files?

Jul 18, 2012

Is there any apps for android to join huge files? It's more than 300mb

View 1 Replies View Related

HTC Incredible :: Movie Files Too Big / Compress This Without Huge Loss In Quality?

May 20, 2010

I think I need a step by step. So I ripped Avatar from a dvd using dvdfab. I chose main movie and Dvd9. This gave me a 7 gig file. I used handbrake to convert to mp4 at 480 x 272 or something on ipod legacy setting. When I put that file on the phone, it is 2 gigs. Does that seem too big? How can I compress this without a huge loss in quality? It plays perfect right now.

View 15 Replies View Related

Android :: Sending Files For FREE Via SMS

Nov 29, 2009

Beta-Testers needed for File via SMS sending software and service!

SMSMyFile is a free file-sending hosting service. It features a new and original concept of sending files via SMS to other mobile users.

THE ADVANTAGES:

- Send full-size pictures and videos, any type of data, audio, programs etc. to mobile or PC

- You dont need to set up an email connection and are not limited to MMS, Bluetooth or infrared connectivity restrictions

- Service is completely free of charge, the only costs are your regular carrier charges for SMS and data sending

- Supports all the latest Mobile platforms - Symbian, Windows Mobile, iPhone, Android, Palm Pre - WebOS, Blackberry, JAVA Mobile.

- Data can be sent as a link to recipient's email on PC and then downloaded at no cost

PLEASE NOTE:

- The uploads are currently limited to a maximum file-size of 10MB per upload

- The person receiving will be be charged only for data transfer, with no charge when using a WiFi connection

SMSMyFile service and client now free for all Android users!

I N S T A L L A T I O N:

Search for "smsmyfile" on Android market and install!

View 9 Replies View Related

Android :: Sending Files Via Bluetooth And Wifi

Jul 3, 2009

We are using Android SDK 1.5 for our project. I dono how to send files using Bluetooth and Wi-fi i,e Which APIs or Intents to use and all..

View 3 Replies View Related

HTC Hero :: Sending & Receiving Files

Dec 31, 2009

i have a HTC Hero & i was wondering how you send songs or images to other people via Bluetooth?I have looked around the phone and there is no Send via Bluetooth anywhere.It kinda sucks if you cant do it as every phone these days should have the capability of sending & receiving Files.

View 1 Replies View Related

HTC Desire :: Sending Files By Bluetooth

Apr 26, 2010

Has anyone managed to send files via bluetooth on the Desire? I'm able to receive without any issues, but cannot get a file sent to a macbook or Nokia mobile. I'm trying Bluetooth File Transfer, Explorer and Astro to do so and nothing seems to happen.

View 25 Replies View Related

Android :: HttpsUrlConnection Problem

May 20, 2009

I have been working with the HttpsUrlConnection class and have found an interesting issue, it seems to fail on every other connection. The first request connects to the server successfully but the second one always fails. Any ideas on what i may be doing wrong.

Here is my code.

code:.................

View 3 Replies View Related

Android :: Problem With HttpsURLConnection

Sep 17, 2010

I use the following code snippet to connect to a server and retrieve some data:

HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection(); InputStream ins = con.getInputStream();

The code mostly works fine. If I leave the app for a few minutes, and return to it and make another request, I receive an IOException: Broken Pipe.

Once it has failed one time, it immediately works again, and will continue to do so until I leave it for a while once more.

I don't know if this is an Android specific thing, or general Java, but it doesn't happen on my desktop test version.

View 7 Replies View Related

Android :: ClassCastException With HttpsURLConnection

Aug 30, 2010

I try to establisch a HttpsURLConnection with:

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

But I get an Exception:

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

But I can't find out, why. The same example is everywhere across the web.

View 2 Replies View Related

Sprint HTC Hero :: Problems Sending Large Files

Dec 22, 2009

I've been havng trouble emailing pictures with my HTC hero ("unable to send mail" notices) and wonder if others have had similar experiences. The problem seems to be worse with anything greater than the lowest resolution. Even 400kbyte pictures are a problem. I assume this is just a file transfer problem, not a camera app problem (the app from which the file is mailed). Mails w/o attachments go thru 100% of the time.

I spoke with someone at sprint today, and the first thing they told me was that I need to have at least three bars of signal strength, then I was told that higher resolution pictures can't be sent from the hero.

Given that Sprint does not have more that two bars in most of northern new jersey, this is a bit of a problem. If this is true, I don't think they should be calling this a data service.

For the most part, internet browsing and even video like youtube and TED work fine, and most the time I can get an EVDO connection.

Playing with it a bit, it looks to me like the issue is maintaining a solid data link to upload the file. I'd expect better with a TCP/IP connection, as I've had some experience designing that sort of thing. Late at night, if I get two bars and set the phone down so the signal strength does not waver, I can generally send even a 5 mpixel picture that's nearly 1000k.

I've tried this with the mail set to allow up to 1000k transfers and with no limit on transfer size, and that has no effect.

Some specific questions I have are:

1) Are others having this problem?

2) Anybody have a solution?

3) Anybody notice if it's network congestion related?

4) Anybody know anything about messing with the TCP/IP settings like timeouts and retrys to hold a connection on a spotty rf network?

View 2 Replies View Related

Android :: Query About The Usage Of HttpsURLConnection

Mar 9, 2010

I am using HttpsURLConnection to post data to a web server.

Here is the function I wrote to get the result. (see the code below)

Very strangely, when the function be first called in my program it would very likely return -1; and then I re-call the function after the first call, it would always work ok.

So I wonder if there is anything I am missing in the code that when the function be firstly called, the missing party is be "initialized", in that the followed call goes OK.

Here is my code of the function:

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

View 3 Replies View Related

Android :: HttpsURLConnection And Intermittent Connections

Jan 31, 2010

I'm hoping someone could help me out with intermittent connections I'm getting using code with HttpsURLConnection.

The code I'm using is below:

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

The connection works the first time everytime when I use it to pull a json file. However, when I use the connection again to send a command, it always fails the first time. It then typically works if I send the
command quickly ( within 5 seconds), but fails if I wait a while. I don't think its a SSL issue because it connects the first time correctly, but I could be wrong here. I also tried many different
variations such as adding:

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

However, I had no luck. Any help would be greatly appreciated.

View 2 Replies View Related

Android :: HttpsURLConnection Failing Intermittently To Same URL

May 15, 2010

I think I'm experiencing the same as http://groups.google.com/group/android-developers/msg/9d37d64aad0ee357

This is Android 1.5 SDK. I happen to call several times below code(which is in a method) with
the same url and it fails intermittently. When it fails, there is no exception, the stream is empty so the
readConnection fails, and getResponseCode returns -1. Global caching is disabled, setDefaultUseCaches(false);

I suppose there must be some kind of url connection object pool somewhere.

How can I workaround this?

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

View 2 Replies View Related

Android :: HttpsURLConnection.getInputStream Hangs

Aug 16, 2010

I try to build an https client for android and i need do get some request of an Servlet but when i use the getInputStream method the applicaion hangs.

There is no error only hanging when i call the method.

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

This is only to check the call, but it didtn work.

the subscribe method works, when i comment out the line with the inputstream, the server show me all is correct. I can try the same with the Firefox and it works and i can see the request. i also put the keystore into the TrustManager.

View 2 Replies View Related

Android :: HttpsURLConnection Connection Problems

Sep 27, 2010

I'm a problem with a HttpsURLConnection that I can't seem to solve. Basically, I'm sending up some info to a server and if some of that data is wrong, the server sends me a 500 response code. However, it also sends a message in the response telling me which bit of data was wrong. The problem is that the message is always empty when I read it in. I think this is because a filenotfound exception always gets thrown before the stream can be read. Am I right? I tried reading the errorstream as well but this is always empty.

Here's a snippet:

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

View 3 Replies View Related

Samsung Captivate :: Sending Files From Phone To Computer Using Bluetooth

Sep 21, 2010

I have no problem sending a file from my computer to my phone via bluetooth. However I cant seem to figure out how to send files from my phone to my computer. I tried using bluetooth file transfer from the app market but its not working.

View 2 Replies View Related

Sony Ericsson Xperia X10 :: Cant Sending Receiving Files Via Bluetooth

Jul 29, 2010

I'm facing a problem with my new Xperia X10 Mini pro. I CAN'T SEND/RECEIVE FILES VIA BLUETOOTH.

I can pair my phone to another phones but it's impossible to establish a connection and send files via Bluetooth.

View 10 Replies View Related

Android :: HttpsUrlConnection And OpenSSL Freeing Session

Mar 30, 2010

I've got a problem with my application when I make a number of requests using the HttpsUrlConnection class.

My program makes the first request using the HttpsUrlConnection class to retrieve a file. It then makes a second request to the same server to retrieve a different file. What happens however is that periodically I'm getting a -1 HTTP response code on the connection.

When the failure occurs between the two requests I see the following line of trace in logcat:

D/OpenSSLSessionImpl( 699): Freeing OpenSSL session

This seems to happen fairly consistently. If I retry the second request after it has failed it generally works and I get the requested file from the server.

Note that if I don't see the OpenSSL session being freed the second request works fine the first time.

Some other information:

1) I'm not calling disconnect on the connection

2) I'm don't always read the entire file from the server after the first request

3) I always close the InputStream in the event that I get an InputStream on the first connection

How to prevent the OpenSSL session from being freed.

View 2 Replies View Related

Android :: HttpsURLConnection Returns -1 Code On Second Request

May 15, 2010

I'm experiencing the same as http://groups.google.com/group/android-developers/msg/9d37d64aad0ee357

This is Android 1.5 SDK. I happen to call several times below code(which is in a method) with the same url and it fails intermitently. When it fails, there is no exception, the stream is empty so the readConnection fails, and getResponseCode returns -1. Global caching is disabled, setDefaultUseCaches(false);

How can I workaround this?

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

View 4 Replies View Related

Android :: Every Second HttpsUrlConnection Request Of My Static Method Fails

Nov 24, 2010

I'm having a big issue with a static HTTPS connection method. Every second request fails and HttpsUrlConnection.getResponseCode() returns -1. So every second call works well, returning data as expected.

It's the method of a static class I'm using in different corners of my application. I would guess there is anything I don't clean up correctly when the method returns the first time and that whatever causes a problem might get destroyed through a second call of the method. But I'm having a hard time finding any clues.

I'm currently using this class to talk to hosts with invalid SSL certificates. Not going to use this in the final version of the app, but right now I need to save money. ;)

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

View 1 Replies View Related

Android :: Notifications Of Huge Memory Usage

Aug 31, 2010

I am developing an application with a service which show the progress of a timer in the notification area (with a progress bar and a text). I have extracted below a simpler example with the same problem.

The code of the Service:

public class TNService extends Service {
private NotificationManager nm;
private Notification notification;
private RemoteViews remoteView;

@Override
public void onCreate () {................

View 1 Replies View Related

Android :: OpenGL ES - Best Practice For Huge Maps?

Jan 13, 2010

If I want to render just a huge map, what is the best practice when using OpenGL ES with a mobile device (Android or iPhone based)? What is the best structure to contain all the vertices, normales and texture coordinates? I guess using a interleaved structure may give you some performance benefits caused by memory caching. Ok? Should I use drawArrays or drawElements to push my data to OpenGL ES? Well, I did no testing at all but I might think, that drawElements might be faster if the GFX does not use shared memory since you do not have to push that much data. Since this is really close to metall, what do you think? (the iPhone is ARM based while the Android platform is Qualcomm based (also an ARM?)

View 2 Replies View Related

Android :: Huge Benefits When Combining Quickdesk And Bar Control

Jul 30, 2010

The quick desk and bar control apps are so far my favourite. Previously I had my switches/toggles of WiFi/3g/gps/silent/bluetooth on the desktop. Now I have these switches in quickdesk. Thats not all - using the bar control app I can have any shortcuts in my slide down bar. So I just added the quickdesk app in my bar. The benefit is that I can now access my switches/toggles from anywhere.

For example if I am using my browser and forgot to switch on WiFi, while browser is open I just slide down the bar and through quick desk switch on WiFi. This means that I do not need to navigate away from the current app that is open. Normally you would have to minimize the current app open and navigate to desktop to toggle switches, then go back to the app you were using.

View 3 Replies View Related

Android :: Huge Drop In Sessions For All Of Apps (using Flurry)

Dec 2, 2009

I noticed a huge drop in sessions for all of my apps (using Flurry). I don't think the problem is reporting, since ad revenue and sales were also affected. Sessions for my most popular game plunged yesterday to a level of a month ago, and all my apps saw a similar drop (about 25-30%). I didn't see anything about outages or issues on any of the blogs I follow...anyone here know anything?

View 4 Replies View Related

Android :: Emulator - Huge Icons On Desktop And Wrong Density

Apr 22, 2010

I was working with Eclipse some minutes ago and I simply launched the emulator with a couple of AVDs that I created (QVGA, HVGA and WVGA screens). I've been doing thta for months, in order to check that every time I change something, the app looks fine for each type of phone.

The problem is that suddenly, the emulator in QVGA and WVGA start with huge icons on the desktop. They even overlap and the home of Android is corrupted. And when I run any application to test the emulator, the screen only shows a portion of the main View. It's like everything was zoomed in. I'm blocked because I can't use anymore the emulator. I'm going to remove completely Eclipse and re-install it, but I don't know if it will be enough.

View 5 Replies View Related

HTC EVO 4G :: How To Get Rid Of Huge Clock On Homescreen?

Jun 4, 2010

I swap the giant clock on homescreen for something much smaller? I need more real estate and cant figure out how to disable it for the life of me. I also like weather but it, too, should be much smaller if there is different weather application.

View 6 Replies View Related

HTC EVO 4G :: Why Are Clockwork Recoveries So Huge?

Sep 11, 2010

Amon backups are around 180 megs. I was wondering why the hell it was taking so long to transfer the clockwork recovery to my computer. its 750 megs! For the backup of the same phone state as the 180 meg one!

View 9 Replies View Related

HTC Incredible :: Huge Battery Fix / Is This Legit?

Jun 24, 2010

Anyone tried this to see if it works? HTC Incredible Battery Fix - shadrach's posterous

View 27 Replies View Related

Motorola Droid :: HUGE Camera Bug On Low Battery

Dec 9, 2009

When the battery is low (Red LED blinkng) and somtimes at 15% when the popup comes up and you try to take pictures in close to or complete darkness pictures taken will look cut off like below:

Picasa Web Albums - JeffreyPeacock

If you keep taking pictures it will get to a point where the flash will stop working altogether and it will focus red bars take a picture of darkness since the flash did not come off. Opening and closing the camera app fixes this problem temporarily. If you plug it in and take pictures while plugged in the problem goes away. If you let it charge for a little bit unil it gets to around 15% and take unplug it and take pictures, the pictures will be fine until the battery drops to low (Red LED blinking). Two of my droids experiences this issue and my friend's droid as well.

This happened with 2.0 and 2.0.1

Additional Info:
What is weird is that when I start taking pictures, first 1/4 of the photo will be cut off, then 1/2, then 3/4, finally just a sliver of picture will come through. Then the flash wont even come on at all... even if I force the flash on under settings no light will appear. Then I have to restart the camera app to get it to cycle through. It would make sense it is a battery issue having a decrease in voltage and not being able to supply the needed power to the LED, but do all droids have that problem? Do I defected unit or battery?

View 49 Replies View Related







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