Wednesday, August 14, 2013

[android-developers] Re: close on minimise application

that's a bad idea... unless your application is just one activity, it will probably piss your users off that they have to navigate it from the start every time it is being backgrounded.
take mbanzon's idea - each activity will need to request the password if needed. 
You can do it easily by extending an activity with code that handles that, then having all the needed activities inherit from it.

On Tuesday, August 13, 2013 5:00:08 PM UTC+3, passer wrote:
Hello.

I have application which should be ask password on start.

I done it so. onCreate MainActivity calls(startActivityForResult) EnterPasswordActivity. If user enters right password EnterPasswordActivity returns information about it. Everything works good.

But there is a problem. If application will be minimized in other actvity(not MainActivity or EnterPasswordActivity), user can start application without entering password. That's why i need to close application on minimize. how can i do it?

--
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+unsubscribe@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment