Android Question Detecting if Phone On/Offline and Reading/Writing to file


New Member
Just a couple of quick questions:

1. How do I save the contents of textboxes and the state of a checkbox to a file?
2. How do I detect when the phone is offline?
3. When the phone goes online again, I need to read the file which was saved in question 1 and then send it in an email. So how do I read the file again?

Last edited by a moderator:


Staff member
Licensed User
1. Simplest way is with KVS2.

2 / 3. This can only be done if your app is running all the time in the background (search for foreground services). You can do it with PhoneEvents.