×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2013
    Posts
    7

    Error - OutOfMemoryError or nativeDecodeImage

    Am into a project where I need to display images from phone memory or from memory card. I get an error when I try to display the images in a list. It says 'Out Of Memory Error java/lang/OutOfMemoryError or nativeDecodeImage' Does anyone have any idea how to overcome this..?? I did google about this but couldn't find anything which would overcome the error.


    Any help will be appreciated
    Thanks in advance

  2. #2
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    161

    Re: Error - OutOfMemoryError or nativeDecodeImage

    My guess: This post it is not about an Asha/Series 40 WebApp.
    If it is: I don't think that is's possible to access local pictures that are not packaged into the app.

  3. #3
    Registered User
    Join Date
    Aug 2013
    Posts
    7

    Re: Error - OutOfMemoryError or nativeDecodeImage

    Hai lorion84 its not a web app but am confused to which category I should put my post into..?? Its a mobile app for S40 devices..

  4. #4
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    161

    Re: Error - OutOfMemoryError or nativeDecodeImage

    Since you are using Mobile JAVA, try
    http://developer.nokia.com/Community...e-Java-General

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    Re: Error - OutOfMemoryError or nativeDecodeImage

    Quote Originally Posted by Suja Christy View Post
    Am into a project where I need to display images from phone memory or from memory card. I get an error when I try to display the images in a list. It says 'Out Of Memory Error java/lang/OutOfMemoryError or nativeDecodeImage' Does anyone have any idea how to overcome this..?? I did google about this but couldn't find anything which would overcome the error.


    Any help will be appreciated
    Thanks in advance
    Its a J2me App - for S40 - and you are getting Out-of-memory- when you are trying to display the images in a list.
    All S40 devices have limited heap memory 2mb max, which device you are using - how many images are trying to load from memory ?
    Load only image -icon, to reduce the heap/run-time memory needs of your app - device list. (or load a image, before adding it into the list item - reduce its size to say 32x32 pixel)
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. Error: java/lang/OutofMemoryError b: Maximum byte code length(32kb) exceeded
    By Atul Prakash in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2011-10-11, 05:42
  2. Error: Uncaught exception java/lang/OutOfMemoryError
    By kumar1234567 in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2011-07-06, 12:32
  3. S40 Web App- 'Out Of Memory Error java/lang/OutOfMemoryError'
    By manzar_alam12 in forum Nokia Asha Web Apps
    Replies: 3
    Last Post: 2011-05-02, 08:25
  4. Replies: 5
    Last Post: 2009-08-06, 12:33
  5. OutOfMemoryError
    By manojkumar.m in forum Mobile Java General
    Replies: 10
    Last Post: 2008-10-24, 11:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •