Skip to content
This repository was archived by the owner on Nov 24, 2019. It is now read-only.
This repository was archived by the owner on Nov 24, 2019. It is now read-only.

BootReceiver: sendToBack meta-data doesn't work! #11

Description

@carlosrd

Hi!

I've tried the BootReceiver function included on Android.Tools but it doesn't work as I expected. There is an option in the meta-data parameters to set the restart to background or foreground (sendToBack).

The problem is it doesn't matter the value on sendToBack: Always restart the app on foreground!

<receiver android:exported="true" android:name="bencoding.android.receivers.BootReceiver">

     <intent-filter>
         <action android:name="android.intent.action.BOOT_COMPLETED"/>
         <action android:name="android.intent.action.QUICKBOOT_POWERON"/>
    </intent-filter>

    <meta-data android:name="bootType" android:value="restart"/>
    <meta-data android:name="sendToBack" android:value="true"/>

</receiver>

I tested the app on a Nexus 4 running Android 4.4.2 and I used Titanium SDK 3.4.1 to develop it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions