OutOf MemoryError

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nditwani mudau
    New Member
    • Sep 2011
    • 1

    OutOf MemoryError

    Hi I need your help i am developing a mobile app with lots of sign language images,i have a set of small images that im trying to stretch to fit the whole screen,and i am getting outOfMemmoryErr or on smaller phones, how can i catch this error so that i can continue with my application and display maybe an Alert to show that i cannot stretch the image.
  • thatos
    New Member
    • Aug 2007
    • 105

    #2
    You can try catching the Exception
    e.g
    Code:
    try{
      //Your Code
    }catch(OutOfMemoryError e){
      //Display Cannot Display Message
    }

    Comment

    Working...