• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Need a advice, decrypt when app is open and encrypt when closed

Thamathar

Lurker
Hi.

The program is all rdy done and such, but now I need do decrypt an column on a table when the app is first open, then decrypt when the application is closed.

I need for the app to decrypt a table when the application is open (app as several activities inside to navigate) and when the app is closed to encrypt the same table.

After seeying the cycles of the activity I rly don't know how to implement this. I did port this APP from C# that I have done and on C# when the main form was activated I could just decrypt the information and when it was closed it would encrypt the information and open other several forms and such and have the data allways available without the need to decrypt the information again.

Have all rdy just needed some ideas to implement this

But now from what I did understood on the Activity cycle of android, when I start another activity goes to onStop(), when when the app is closed goes to onDestroy() and both of this can be killed without running all the necessary code.

Any advice how I could implement this ?

Thanks

P.S. I could pass everything into a Hashmap, but wanted to avoid this because it would require more changes on the code
 
Back
Top Bottom