Android Question activity to lack of memory

Douglas Farias

Expert
Licensed User
Longtime User
hi i m making tests on my app
i have 2 activity

1° have one buton to start the 2°
2° have a button to close activity.finish

ok

i start the app
click on button and it start the activity 2

later i press a button on activity 2 to close with activity.finish

ok i make this 6 or 7 times and my app stop
why this?

telaprincipal
B4X:
     Activity.Finish
        StartActivity(selecionacidade)
selecionacidade
B4X:
StartActivity(telaprincipal)
    Activity.Finish

i realy dont understand why Downsampling image due to lack of memory.
when i start new activity i close the current why give this error?



LogCat connected to: B4A-Bridge: motorola XT1033-359321054369100
--------- beginning of /dev/log/main
Installing file.
PackageAdded: package:achou.ganhou.vallow
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
** Activity (main) Pause, UserClosed = false **
** Activity (telaprincipal) Create, isFirst = true **
** Activity (telaprincipal) Resume **
WakeLock already held.
** Activity (telaprincipal) Pause, UserClosed = false **
** Activity (telaprincipal) Resume **
WakeLock already held.
** Activity (telaprincipal) Pause, UserClosed = false **
** Activity (telaprincipal) Resume **
WakeLock already held.
** Activity (telaprincipal) Pause, UserClosed = true **
** Activity (selecionacidade) Create, isFirst = true **
** Activity (selecionacidade) Resume **
[{"Estado":"Rio Grande do Sul"}]
[{"Cidade":"S\u00e3o Leopoldo"},{"Cidade":"Porto Alegre"},{"Cidade":"Canoas"},{"Cidade":"Novo Hamburgo"}]
** Activity (selecionacidade) Pause, UserClosed = true **
Killing previous instance (telaprincipal).
** Activity (telaprincipal) Create, isFirst = false **
** Activity (telaprincipal) Resume **
WakeLock already held.
** Activity (telaprincipal) Pause, UserClosed = true **
** Activity (selecionacidade) Create, isFirst = false **
** Activity (selecionacidade) Resume **
[{"Estado":"Rio Grande do Sul"}]
[{"Cidade":"S\u00e3o Leopoldo"},{"Cidade":"Porto Alegre"},{"Cidade":"Canoas"},{"Cidade":"Novo Hamburgo"}]
** Activity (selecionacidade) Pause, UserClosed = true **
** Activity (telaprincipal) Create, isFirst = false **
** Activity (telaprincipal) Resume **
WakeLock already held.
** Activity (telaprincipal) Pause, UserClosed = true **
** Activity (selecionacidade) Create, isFirst = false **
** Activity (selecionacidade) Resume **
[{"Estado":"Rio Grande do Sul"}]
[{"Cidade":"S\u00e3o Leopoldo"},{"Cidade":"Porto Alegre"},{"Cidade":"Canoas"},{"Cidade":"Novo Hamburgo"}]
** Activity (selecionacidade) Pause, UserClosed = true **
** Activity (telaprincipal) Create, isFirst = false **
** Activity (telaprincipal) Resume **
WakeLock already held.
** Activity (telaprincipal) Pause, UserClosed = true **
** Activity (selecionacidade) Create, isFirst = false **
** Activity (selecionacidade) Resume **
[{"Estado":"Rio Grande do Sul"}]
[{"Cidade":"S\u00e3o Leopoldo"},{"Cidade":"Porto Alegre"},{"Cidade":"Canoas"},{"Cidade":"Novo Hamburgo"}]
** Activity (selecionacidade) Pause, UserClosed = true **
** Activity (telaprincipal) Create, isFirst = false **
** Activity (telaprincipal) Resume **
WakeLock already held.
** Activity (telaprincipal) Pause, UserClosed = true **
** Activity (selecionacidade) Create, isFirst = false **
** Activity (selecionacidade) Resume **
[{"Estado":"Rio Grande do Sul"}]
[{"Cidade":"S\u00e3o Leopoldo"},{"Cidade":"Porto Alegre"},{"Cidade":"Canoas"},{"Cidade":"Novo Hamburgo"}]
** Activity (selecionacidade) Pause, UserClosed = true **
** Activity (telaprincipal) Create, isFirst = false **
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
Downsampling image due to lack of memory: 4
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
 
Top