I am still not 100% sure what caused it but i solved it as follows.

I created a Service with a Handler. However that Handler was not in
its own thread.
So i had someting like:

public class ImageUploadService extends IntentService {
  private Handler handler = new Handler()


The service was not run in its own process. This caused the handler to
be executed in the ui thread.

The solution was to wrap the handler in a thread like this:

class UploadLooperThread extends Thread {
        public Handler mHandler;

        public void run() {
            Looper.prepare();

            mHandler = new Handler();

            Looper.loop();
        }
    }


On Jul 8, 12:41 am, fadden <[email protected]> wrote:
> On Jul 6, 6:43 am, TjerkW <[email protected]> wrote:
>
> > Basically this stops me from properly implementing a background file
> > upload.
> > Anybody has an idea what is going on here?
>
> Looks like theheapis full.  What's taking up all that space?
>
> Is something catching and ignoring OOM?

-- 
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