Note that there are some explanatory texts on larger screens.

plurals
  1. POQuick search in android application
    primarykey
    data
    text
    <p>I am making an android application that needs to display a simple quick search, but to do this i need to change the:</p> <pre><code>&lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; </code></pre> <p>To:</p> <pre><code>&lt;action android:name="android.intent.action.SEARCH" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; </code></pre> <p>But once I do, the application doesn't find a launcher activity, how can i fix this? This is the code that i am using:</p> <hr> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mysoftwaremobileapps.School" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="3" /&gt; &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name" &gt; &lt;activity android:label="@string/app_name" android:name=".SchoolActivity" &gt; &lt;intent-filter &gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;meta-data android:name="android.app.searchable" android:resource="@xml/searchable" /&gt; &lt;/activity&gt; &lt;activity android:name=".GoogleActivity" android:label="@string/app_name"&gt;&lt;/activity&gt; &lt;activity android:name=".WikipediaActivity" android:label="@string/app_name"&gt;&lt;/activity&gt; &lt;activity android:name=".ProjectsActivity" android:label="@string/app_name"&gt;&lt;/activity&gt; &lt;activity android:name=".NotesActivity" android:label="@string/app_name"&gt;&lt;/activity&gt; &lt;activity android:name=".SearchFunction" android:label="@string/app_name"&gt; &lt;intent-filter android:label="ACTION_SEARCH"&gt;&lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; </code></pre> <p></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. 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