Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9309037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:46:13+00:00 2026-06-19T00:46:13+00:00

manifest code for the built in search, using the searchview. can anyone tell me

  • 0

manifest code for the built in search, using the searchview.
can anyone tell me please what is wrong with it?
the SearchableActivity is created in the scr -> presentation, and it is using an xml layout called search.xml. I am new to android and can’t find out what is wrong with my code. when launching the search view typing a word and press on “Go” on the keyboard the debugger opens a ActivityThread.perfor…. and tells me source not found.

here is my hole manifest.xml:

   <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="myTV.Android"
android:versionCode="4"
android:versionName="1.12" >

<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="12" />

<uses-feature
    android:name="com.google.android.tv"
    android:required="true" />
<uses-feature
    android:name="android.hardware.touchscreen"
    android:required="false" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<application
    android:icon="@drawable/mytv"
    android:label="@string/app_name"
    android:theme="@style/Theme.Transparent" >
    <activity android:name="myTV.Presentation.Main" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="myTV.Presentation.Player" >
    </activity>
    <activity android:name="myTV.Presentation.VODCatalogGenre" >
    </activity>
    <activity android:name="myTV.Presentation.VODCatalog" >
    </activity>
    <activity android:name="myTV.Presentation.HomePage" >
    </activity>
    <activity android:name="myTV.Presentation.Programs" >
    </activity>
    <activity android:name="myTV.Presentation.Episodes" >
        <intent-filter>
            <action android:name="android.intent.action.SEARCH" />
        </intent-filter>
    </activity>
    <activity android:name="myTV.Presentation.ChannelsListing" >
    </activity>
    <activity android:name="myTV.Presentation.Packages" >
    </activity>
    <activity android:name="myTV.Presentation.SpecialOfferContent" >
    </activity>
    <activity android:name="myTV.Presentation.linkedpage" >
    </activity>
    <activity android:name="myTV.Presentation.howtolinkdevice" >
    </activity>
    <activity android:name="myTV.Presentation.OnlineRegister" >
    </activity>
    <activity android:name="myTV.Presentation.SpecialOffer" >
    </activity>
    <activity android:name="myTV.Presentation.MyVOD" >
    </activity>
    <activity android:name="myTV.Presentation.SearchEpisodes" >
    </activity>
    <activity android:name=".Countries" />
    <activity android:name=".Genres" />
    <activity android:name=".WeeklyRecap" />


    <meta-data
        android:name="android.app.default_searchable"
        android:value=".SearchableActivity" />
    <activity android:name=".SearchableActivity" > 
        <intent-filter>
            <action android:name="android.intent.action.SEARCH" />
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
        </intent-filter>

        <meta-data
            android:name="android.app.searchable"
            android:resource="@xml/searchable" />
    </activity>
</application>

    import myTV.Android.R;
    import android.app.Activity;
    import android.app.SearchManager;
    import android.content.Context;
    import android.content.Intent;
    import android.os.Bundle;
    import android.widget.Toast;

    public class SearchableActivity extends Activity{

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.search);

    // Get the intent, verify the action and get the query
    Intent intent = getIntent();
    if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
      String query = intent.getStringExtra(SearchManager.QUERY);
      doMySearch(query);
    }
}
public void doMySearch(String query){
    //new Request().Search(query);
    //new SearchEpisodes().Search(query);
    Context context = getApplicationContext();
    CharSequence text = query;
    int duration = Toast.LENGTH_LONG;

    Toast toast = Toast.makeText(context, text, duration);
    toast.show();
}


    }

Here is my searchable.xml:

    <searchable xmlns:android="http://schemas.android.com/apk/res/android"
        android:label="@string/app_name"
        android:hint="@string/SearchHint" >
</searchable>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T00:46:14+00:00Added an answer on June 19, 2026 at 12:46 am

    Try adding the below in your <intent-filter>.

    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw a piece of Scala code with manifest syntax as follows. I do
This code installs gems into your project based on a gem manifest. Why does
I'm able to read the Manifest file inside of my Java code, but I
Please see the following manifest. The Activity_1's primary objective has mapInfo refers to a
I am embedding a manifest in a .NET exe so that it can request
So when i try to run the following code i can never ever get
Im trying to run a VOIP call using built in SIP on android 3.1.
I have several options - both in code and in the manifest file -
Trying to set orientation in manifest file, using a string qualifier android:screenOrientation=@string/orientation Works on
I'm trying to build System.Data.SQLite in Visual Studio using the source code downloaded from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.