uynva
uynva

Reputation: 97

Catch Out Of Memory Java/Android

I wrote a java class to create me a custom layout in Android. With little data is working correctly, the problem is when I try to upload a lot of data in the layout.

I explain a bit the structure of the layout: is a table where I insert data that I previously downloaded via REST query. The exception is in their class:

public class TableMainLayout  extends RelativeLayout {}

How can I handle this exception? and maybe go back to the Activity prior with a nice allert?

Upvotes: 0

Views: 73

Answers (1)

Eduard B.
Eduard B.

Reputation: 6803

You can avoid this by implementing the onLowMemory() callback.

Upvotes: 1

Related Questions