On Sat, Jun 30, 2012 at 9:17 AM, Mystique <joven.ch...@gmail.com> wrote:
> I was also thinking to write a simple app that generate hash value and > write it in a file, user will purchase this app and my main app will look > for this file and compare the hash value. Will this work? Does Google allow > this? The are two separate apps, so they run under different uids, so can't generally share files. You could do hacks with putting the file to a location on external storage where app permissions are not enforced, but a content provider would be the more formally correct way to do this -- it allows you to have security between the two (protecting the provider with a signature-only permission) and guarantee things like no other applications being able to get in the middle and manipulate the data that is transferred. Definitely don't use shared user IDs just for this. To be honest, I think this is a great example of where in-app billing work well, instead of needing to have two different versions of an app. Just be sure to use the kind of billing product that persists with the user's account. :) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en