Android Question StartActivity or CallSubDelay

Douglas Farias

Expert
Licensed User
Longtime User
hi
i m making a new app here i m crazy

i have 6 activity
sometimes i need close one activity and i use activity.finish

ok all 6 activitys have
If FirstTime Then
Activity.LoadLayout("logar")
End If

if FirstTime load my layout

but i have a big bug now

if i close activity using activity.finish my layout dont load in the 2° time my buttons not initializate etc and give me a error

if i user
Activity.LoadLayout("logar")

without
If FirstTime Then
Activity.LoadLayout("logar")
End If

5 times i have
Downsampling image due to lack of memory.


what i make now o_O

i cant close and start again a activity using
If FirstTime Then
Activity.LoadLayout("logar")
End If

and if i dont use

this show me Downsampling image due to lack of memory.
i realy dont know what i make here o_O
 
Top