[Q] How to modify an app to run at system start (AndroidManifest.xml )

Benzonat0r

Senior Member
Sep 4, 2009
1,298
1,256
0
Could anyone help me with that? I tried to modify it myself but I'm drawing a blank here, it doesn't wanna run on startup.


Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="1" android:versionName="1.0" package="biosistemika.pcrplate"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
	<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
        <activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".PcrplateActivity" android:screenOrientation="landscape" />
        <activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".MainMenuActivity" android:screenOrientation="landscape"> 
		<receiver android:name=".BootReceiver">
		<intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
		  </receiver>
		</activity>
	</application>
</manifest>
Thanks.
 

sangalaxy

Senior Member
Aug 30, 2013
555
122
63
kerala
Could anyone help me with that? I tried to modify it myself but I'm drawing a blank here, it doesn't wanna run on startup.


Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="1" android:versionName="1.0" package="biosistemika.pcrplate"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
        <activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".PcrplateActivity" android:screenOrientation="landscape" />
        <activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".MainMenuActivity" android:screenOrientation="landscape"> 
        <receiver android:name=".BootReceiver">
        <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
          </receiver>
        </activity>
    </application>
</manifest>
Thanks.
Iam not sure but
is it on external storage may be that is causing the delay:confused:
 

sangalaxy

Senior Member
Aug 30, 2013
555
122
63
kerala
No it's installed as an app, not a system app tho.
yeah
Iam asking is it on external or internel storage as installed on sd or external storage
there is a permission with write on external so at boot if it want to start I think the external media should start up also
am I wrong?? Iam not sure tho

---------- Post added at 06:58 PM ---------- Previous post was at 06:51 PM ----------

one more thing you have set boot permission to the app
I don't know how
and you can try using any start up applications for that
 

Benzonat0r

Senior Member
Sep 4, 2009
1,298
1,256
0
yeah
Iam asking is it on external or internel storage as installed on sd or external storage
there is a permission with write on external so at boot if it want to start I think the external media should start up also
am I wrong?? Iam not sure tho
Oh sorry, it's on internal storage didn't catch that at first.
You're right it should and yet it doesn't I don't know why tho.
 

Benzonat0r

Senior Member
Sep 4, 2009
1,298
1,256
0
yeah
Iam asking is it on external or internel storage as installed on sd or external storage
there is a permission with write on external so at boot if it want to start I think the external media should start up also
am I wrong?? Iam not sure tho

---------- Post added at 06:58 PM ---------- Previous post was at 06:51 PM ----------

one more thing you have set boot permission to the app
I don't know how
and you can try using any start up applications for that
Yeah I know but I don't want to use any app for that, I'm doing this for for a friend and his company he works at, and I want the tablet to be as clean as possible. So no additional apps or any sort of bloatware.