Is there an easy way to simulate low memory in an Android emulator?

344900 pts.
Tags:
Android
Emulator
Mobile
I'm looking to get into performing resource cleanups on my application so I'm looking for the best way to simulate low memory inside an Android emulator. Does someone have any recommendations? Thanks!

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    In old android versions there used to be a 'ulimit' option that you could set to assign some limits, including memory, but I don't know if it still exists.

    If you want to simulate the app being killed in the background because of memory constraints, then you could simply kill the process from the shell, which is exactly what the system will do if it needs to free memory for the foreground app.

    There used to be also some tools that could make the system kill specific activities after they were used, which some people found helpful to test different app or activity lifecycle events.  I don't remember their names though.
    69,065 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following