I mean in RAM. The OP said "Every time the application is launched the database is repopulated".
On Nov 2, 3:37 pm, Argus <[email protected]> wrote: > Dan, do you mean storing a HashMap on the phone or in ram. The former > is no different than using the sqllite database with the exception > that you would then have to write your own less optimized accessors > and the later doesn't give you persistence. This question should not > be so easily dismissed. There are tons of apps coming that will need > real security as the world moves their lives to their phones. This > early in establishing frameworks and methodologies, all holes in > technology need to be fleshed out. > > On Nov 2, 4:22 am, DanH <[email protected]> wrote: > > > Yeah, my first question would be why do you need a database? I've > > seen many folks here go through the trouble of building a database > > when a HashMap would be perfectly sufficient. > > > On Oct 27, 7:13 pm, swgillan <[email protected]> wrote: > > > > Hello, > > > > I have seen a few discussions on this, but I just wanted to see if > > > there has been anything new. > > > > Currently, a rooted phone can access the /data/data/ > > > com.your.company.here/ path. Insides are all the wonderful areas like > > > databases, files, and preferences. In fact, I was actually horrified > > > to see that I could browse all the apps data on my development phone. > > > > Is there a way to protect someone from accessing these (ie, password > > > protect the database from shell access)? > > > > My issue is specifically in the database. While there isn't anything > > > regarding passwords stored inside, there is some intellectual property > > > in terms of the actual data and schema that could make it easier for > > > people to copy what my application does. > > > > My solution right now is to clear the particular tables I don't want > > > people seeing in the database in onDestroy (when the user exits), or > > > more accurately in onPause() with isFinishing(). Every time the > > > application is launched the database is repopulated, so I am not > > > worried about losing any data. I do realize that this isn't foolproof, > > > but it seems to be better then nothing. > > > > Is there a better way? > > > > Regards, > > > > Steven Gillan -- 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

