문제

I want to test our app for low memory cases.

Do you have any ideas, how to cause onLowMemory on devices?

Thank you.

도움이 되었습니까?

해결책

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!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top