Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Essentially you're trying to have a custom build of the AOSP where the "Home" is your application. If you look into <em>/packages/apps/Launcher2</em> you'll find the code for the default Home screen. </p> <p>If you look at the <em>AndroidManifest.xml</em> file in there, you'll see something like this:</p> <pre><code> &lt;activity android:name="com.android.launcher2.Launcher" android:launchMode="singleTask" android:clearTaskOnLaunch="true" android:stateNotNeeded="true" android:theme="@style/Theme" android:screenOrientation="nosensor" android:windowSoftInputMode="stateUnspecified|adjustPan"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.HOME" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.MONKEY"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre> <p>Essentialy, this says that this Activity reacts to the </p> <blockquote> <p>android.intent.category.HOME <em>intent</em>. </p> </blockquote> <p>When the system finishes booting (the ActivityManager more specifically), sends that intent. So, if you want your app to start instead of the Launcher, just create yourself an app with a similar intent filter and remove the default Launcher2 (take it out of the list in <em>build/target/product/generic.mk</em> and put yours instead). Also make sure the relevant .mk file has something like this:</p> <pre><code>LOCAL_OVERRIDES_PACKAGES := Home </code></pre> <p>So long as your app doesn't provide a way for the user to launch other apps using icons (like the Launcher does), no other app will be started; unless of course something sends an Activity-starting intent from some other path than the one controlled by your app - say by using the "am" command on the target's Android shell.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload