Hi,
In my NDK project I have two global variables, int and pointer.

When I install my app and run it for first time, all global variables
are empty.
When I exit app and start it again, in both variables stored values
from previous run.

When I start application, Activity::onCreate will call native function
that check my global pointer, I do not destroy it on exit and it have
object from previous run.

So not only globals persist, but also the heap?

I do not understand C++ nor Android, can someone explain it?

My phone: Samsung Ace, Android 2.2, API level 8.

Thanks,
Anatoliy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to