Android Low memory: no background process? Help is needed

I ran into a low memory problem. Low memory:no more background processAnd here is the script.

I use a list that gets its data from an array of strings, it has its own background, clicking on an element, the list gets another string array to display the second or third level. Information for three levels written in a database.

After the third level, there are two more levels for which data will be retrieved from web services,

And that causes a low memory error.

How can I get rid of the solution?

Edit: After some digging, I found that the GC is trying to (kill or) restart if it already has a failed service com.android.inputmethod.latin/.latinIME. One of the notable points is that the application is translated into French and Italian, but there is no text to translate on this screen, does this information help?

Edit 2: After a detailed study of traceview, I found that all textual representations have custom fonts used in it. (There is a call to TypeFace.createFromAsset ()), which IMO causes failures.

And the problem is that I have to store fonts .... Is it possible to avoid collapse and have fonts? (Because I think the answer is no: they are still waiting for some opinions)

3. . , . . , , - helvetica.

? , ?

+3
2

, :

Typeface font = Typeface.createFromAsset(getContext().getAssets(),
"fonts/Helvetica.ttf");

"font" , . , . .

+11

, , :

  • - / ? , . OOM.
  • , , - Cursor. Cursor - , Cursor, Cursor.deactivate()
0

Source: https://habr.com/ru/post/1783817/


All Articles