Note that there are some explanatory texts on larger screens.

plurals
  1. POOut of memory on a 10171204-byte allocation in android app
    primarykey
    data
    text
    <p>in my app i am trying to download some video in button click. i am showing a progress bar in the notification area, i have already asked a question regarding this <a href="https://stackoverflow.com/questions/8102837/progress-bar-in-notification-area-is-not-closing-and-not-starting-the-second-pro">here</a> (it is under bounty)</p> <p>Now to solve my problem i changed the code to be as follows, when the first button is clicked it starts an progress bar in notification by a class UploadService extends IntentService and the progress bar is shown</p> <p>When the second button is clicked it tries to start another progress bar in notification by a class UploadService2 extends IntentService, but immediately the app gets crashed and it shows the following error as follows</p> <pre><code>E/dalvikvm-heap( 2325): Out of memory on a 10171204-byte allocation. E/AndroidRuntime( 2325): Uncaught handler: thread IntentService[UploadService2] exiting due to uncaught exception E/AndroidRuntime( 2325): java.lang.OutOfMemoryError E/AndroidRuntime( 2325): at uk.me.hardill.android.notification.UploadService2$1.run(UploadService2.java:93) E/AndroidRuntime( 2325): at uk.me.hardill.android.notification.UploadService2.onHandleIntent(UploadService2.java:134) E/AndroidRuntime( 2325): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:30) E/AndroidRuntime( 2325): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 2325): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 2325): at android.os.HandlerThread.run(HandlerThread.java:60) </code></pre> <p>My UploadServices class is <a href="https://stackoverflow.com/questions/8102837/progress-bar-in-notification-area-is-not-closing-and-not-starting-the-second-pro">here</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload