Well killing the app some hackey way certainly isn't the answer!

Instead put a bit of code in your onResumes that does the check and
redirects them not to use the app if you don't want.

Be aware that it's always possible to subvert the app and lie about the
location...

kris

On Fri, Feb 10, 2012 at 12:49 AM, ashiq sayyad <[email protected]>wrote:

> HI Kris,
>
> I want my app to be used inside certain defined region(Location).If user
> gets out of the predefined region, I need to show a dailog that "You are
> not  allowed to use app in this area" and on dialog action, I need to exit
> the app...
>
>
> On 9 February 2012 23:44, Kristopher Micinski <[email protected]>wrote:
>
>>
>>
>> On Thu, Feb 9, 2012 at 1:01 PM, ashiq sayyad <[email protected]>wrote:
>>
>>> Actually activity.finish() will finish the current activity & app will
>>> show the previously stacked activity.But i want to finish all activities &
>>> also stop all background processes.So I need to have similar kind of
>>> implementation as "Force stop" in manage applications
>>
>>
>> Again, why?
>>
>> kris
>>
>> --
>> 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
>>
>
>  --
> 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
>

-- 
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

Reply via email to