Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7710453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:07:47+00:00 2026-06-01T01:07:47+00:00

is it possible to programatically increase the JVM android machine to 10MB? If yes

  • 0

is it possible to programatically increase the JVM android machine to 10MB? If yes can someone post a java code and let me know how to do it? I have a file of 11MB and I get the error out of memory when I try to parse the file in a string. Need help. appreciate

UPDATE:

I’ve also parse with SAX. Same result. When adding android:largeHeap=true I have error: No resource identifier found for attribute LargeHeap
Any other solutions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:07:48+00:00Added an answer on June 1, 2026 at 1:07 am

    Can you answer, what exactly you trying to do?

    If your app targets at honeycomb (android 3.0) and later you can try to set option
    android:largeHeap=”true” in Application tag of your AndroidManifest.xml.

    If you trying to parse JSON or XML, try to streaming aproach instead of tree-based.

    UPDATE:
    In AndroidManifest.xml

    ...
    <application android:largeHeap="true">
       ...
    </application>
    ...
    

    You are lucky if have a rooted phone. You can try change line

    dalvik.vm.heapsize=24m
    

    in /system/build.props.

    If not, you can try to use the SAX library to parse your XML content. It can help to avoid to load full file at time, instead with this library you can load your data by small pieces.

    ALSO: There are no JVM on android. There is Dalvik.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicates: Setting JVM heap size at runtime programatically setting max java heap size
Possible Duplicate: Enable GPS programatically like Tasker Anybody know how to enable the GPS
Is it possible to set the android wallpaper image programatically? I'd like to create
Possible Duplicate: Change language programatically in Android I would like to develop an Android
Possible Duplicate: How can I disable the UITableView selection highlighting? I am programatically making
Is it possible to programatically change the query URL within PHP? I know I
just wanted to know if it is programatically possible to halt the execution of
Is it possible to organize the homescreen icons programatically so that i can arrange
Is it possible to programatically find the free space available in mapped drives? How
Possible Duplicate: How to block a website programatically using DotNet HAI I am developing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.