Search Unity

What happens to an AndroidJavaObject when the app goes into the background?

Discussion in 'Android' started by fractivSammy, Jul 20, 2011.

  1. fractivSammy

    fractivSammy

    Joined:
    May 26, 2011
    Posts:
    10
    If I create an AndroidJavaObject in my unity script, and then the Android process gets killed after going into the background (because the Android OS kills it to free up memory), does the AndroidJavaObject get restored automatically by Unity? If so, does Unity internally just 'new' the object again as if it was being created from scratch? How does the object's internal state get restored?