I want to test our app for low memory cases.
Do you have any ideas, how to cause onLowMemory on devices?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I just know only one way to do, which is to create a method running in a different thread that does memory leak, make it loop continuously until
onLowMemory()is called, then stop the thread.It’s nice if anyone shares experiences on this case!