Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: junetec on March 14, 2013, 12:49:11 PM

Title: START APP ON BOOT ?
Post by: junetec on March 14, 2013, 12:49:11 PM
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.
Title: Re: START APP ON BOOT ?
Post by: 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
Title: Re: START APP ON BOOT ?
Post by: 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.
Title: Re: START APP ON BOOT ?
Post by: junetec on March 14, 2013, 04:25:02 PM
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.
Title: Re: START APP ON BOOT ?
Post by: junetec on March 14, 2013, 04:26:31 PM
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
Title: Re: START APP ON BOOT ?
Post by: vicccc on March 16, 2013, 10:23:19 AM
General method

http://www.elandroidelibre.com/2011/03/aprendiendo-android-x-ejecutando-metodos-al-iniciar-el-movil.html