[android-developers] Make a one app appliance (prevent quitting app)

2013-03-06 Thread Tobiah

I am going to hand out Android phones with an app on it
that is geared to a large event.  I'd like to launch the app,
and cause the user to be unable to quit it.  I don't want
them messing around with other software on the phone.  We did
this on our Blackberry app by making the program bring itself
to the foreground every two seconds.  It was cheesy, but worked.
If the user quit the app, it would come right back up.

Any ideas as to how to get an Android program to always be
the focused program?

Thanks!

Tobiah

--
--
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
--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Make a one app appliance (prevent quitting app)

2013-03-06 Thread Mark Murphy
You are welcome to make it be the home screen. There's the Home sample
in the SDK that demonstrates the intent-filter you need on your
activity:

intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.HOME/
category android:name=android.intent.category.DEFAULT /
/intent-filter

Then, BACK and HOME lead to your app.

However:

- The user may be able to get to other things, depending on the
device, by means such as the notification drawer

- The user can simply reboot your phone in safe mode to nuke your app



On Wed, Mar 6, 2013 at 6:36 PM, Tobiah t...@tobiah.org wrote:
 I am going to hand out Android phones with an app on it
 that is geared to a large event.  I'd like to launch the app,
 and cause the user to be unable to quit it.  I don't want
 them messing around with other software on the phone.  We did
 this on our Blackberry app by making the program bring itself
 to the foreground every two seconds.  It was cheesy, but worked.
 If the user quit the app, it would come right back up.

 Any ideas as to how to get an Android program to always be
 the focused program?

 Thanks!

 Tobiah

 --
 --
 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
 --- 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+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.6 Available!

-- 
-- 
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
--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Make a one app appliance (prevent quitting app)

2012-11-26 Thread Toby

I need to make a one function appliance out of an Android phone
for distribution to participants of an event.  I want the user
to see the app running, but not be able to do anything else.
What sort of ways are there to lock down a device so that it
appears as a one-app appliance?  We retain ownership of the
devices, so we can mess with the phones in any way before or
after installing the program.

Thanks,

Tobiah

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


Re: [android-developers] Make a one app appliance (prevent quitting app)

2012-11-26 Thread Nikolay Elenkov
On Tue, Nov 27, 2012 at 6:57 AM, Toby t...@tobiah.org wrote:
 I need to make a one function appliance out of an Android phone
 for distribution to participants of an event.  I want the user
 to see the app running, but not be able to do anything else.
 What sort of ways are there to lock down a device so that it
 appears as a one-app appliance?  We retain ownership of the
 devices, so we can mess with the phones in any way before or
 after installing the program.


What version are you devices running? If you are on 4.2, you can
add another user and disable all built-in applications, effectively
limiting access to your own. You can also write a custom launcher
that simply restarts your app when you press Home, which is your
best bet if you are on a lower version (or a handset that doesn't
support multi-user) There are apps that do this with different levels
of success on the Play Store, you can try using one of those.

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