START APP ON BOOT ?

Started by junetec, March 14, 2013, 12:49:11 PM

Previous topic - Next topic

junetec

Hello,

I try to adapt the A13 for or kiosk equipment running android, to substitute miniitx board.

But I need to start my kiosk app after boot. In our linux minitix it's easy but with android at the moment I don't have succes.

Anyone can help me on this?

I had try some indications that found on the net like:

http://developer.appcelerator.com/question/119219/other-types-than-interval-service-on-android

http://rdcworld-android.blogspot.in/2012/03/start-service-from-broadcast-receiver.html

I don't know if there's some A13 specific command to do.

olimex


murerten

Put these in your AndroidManifest.xml:

<application
        ... >
        <activity
            android:name=".MainActivity"
            ... >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.HOME" />
            </intent-filter>
        </activity>


But there is statusbar and you can go to settings from there. So if statusbar is not important for you, you can remove SystemUI.apk from /system/apk folder. Also you can remove the default launcher app (Launcher2.apk). But copy these files before you delete so you can put them to /system/apk again later.

junetec

Quote from: murerten on March 14, 2013, 02:21:31 PM
Put these in your AndroidManifest.xml:

<application
        ... >
        <activity
            android:name=".MainActivity"
            ... >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.HOME" />
            </intent-filter>
        </activity>


But there is statusbar and you can go to settings from there. So if statusbar is not important for you, you can remove SystemUI.apk from /system/apk folder. Also you can remove the default launcher app (Launcher2.apk). But copy these files before you delete so you can put them to /system/apk again later.

Thanks a lot that solve my problem.

junetec

Quote from: olimex on March 14, 2013, 02:14:22 PM
Google returns lot of results with "Android application start on boot"

like http://stackoverflow.com/questions/6391902/how-to-start-an-application-on-startup

Yes I had been googleing for hours but the finall and more easy solution was nurerten solution.

thanks a lot