You can have an activity started at boot by doing the following:

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />


<receiver
    android:name=".BootReceiver"
    android:enabled="true"
    android:exported="true"
    android:label="BootReceiver">
    <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED" />
    </intent-filter></receiver>


public class BootReceiver extends BroadcastReceiver {

public void onReceive(Context context) {

context.startActivity(new Intent(context, SomeActivity.class));

}


}

On Saturday, March 23, 2013 6:22:44 PM UTC-4, J4ckkn1fe wrote:

Is there anyway to make an app run at startup and open a locked browser, 
> user cannot minimize it or close. The said phone would not have any other 
> apps everything would be run through the website. Also the phone 
> wouldn't receive calls. You can compare the functionality I want to achieve 
> to that of the itouch. Except everything would be ran through a website. Is 
> this possible with android if I heavily modded it?

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


Reply via email to