+ Reply to Thread
Results 1 to 2 of 2

Thread: Make application run at startup

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    14

    Make application run at startup

    I`d like to make my application run at startup , can you tell me how can i do so ?
    Because i seem to be having a some kind of permission issue which i don`t understand.

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    24
    For the application on startup, you need to add the permission to your manifest
    Code:
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    Then in onReceive() method create an Intent for your activity:
    Code:
    @Override
    public void onReceive(Context context, Intent intent) {
    
     Intent MIT = new Intent(context, YourActivity.class);
     context.startActivity(MIT);
    }

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts