Does app could cause phone reboot and how to release variable
<p>I write an app which will continuously request data from a sensor board and send data to server. I use a Motorola Droid phone which have not be activated to test my app. I find that sometimes after several hours the phone will reboot. I just want to know does it cause by my app run out of memory. And if an app runs out of phone's memory, should just the app be force closed or the phone be reboot? </p>

<p>If this causes by app running out of memory how could I release and clear variables. Should the system automatically do this? I think the main problem might be that I set a global json variable to receive and send all data. After sending the data, I just user <strong>new JSONObject()</strong> to initiate the variable. I just want to know does the old one will be released automatically? If not, how can I do to release it?</p>

<p>Thanks</p>
