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 8070581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:25:49+00:00 2026-06-05T13:25:49+00:00

OK, here we go: I have a search interface/ dialog (the type that gets

  • 0

OK, here we go:

I have a search interface/ dialog (the type that gets created by the system) This calls FilesList, an activity that when called without a search intent will show all of a users items (This works fine when it is called from the main activity)

The query from the search filters these results fine, but when the user selects one of these results it will return to the previous activity, whereas I want it to always return to the main activity, passing the id of the selected item (Which I can get fine)

Also, in whichever activity I call the search from, onActivityResult is not called (Because the search intent isn’t for a result?)

Basically, always return to main activity after search, returning an item selected in FilesList

EDIT:

To select an item the user clicks a listview and calls this method:

protected void onListItemClick(ListView l, View v, int position, long id) {
    Log.d("onclick ID", ((Note)data.get(position)).ID);
    Note array=(Note)data.get(position);
    intent.putExtra("id", array.ID);
    intent.putExtra("tag", currentTag);
    setResult(RESULT_OK, intent);
    finish();
}

And the search is launched like this: http://developer.android.com/guide/topics/search/search-dialog.html

  • 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-05T13:25:51+00:00Added an answer on June 5, 2026 at 1:25 pm

    Ok,
    Instead of trying to return to that activity, I simply make the search point to my main activity and from there I get the query, sort the results and return it to my main activity to be opened.

    Basically re-arranged the program flow, this post kinda helped: Android: Return search query to current activity

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MySQL/Rails app that needs search. Here's some info about the data:
The question raised from the question here . In order to have search engines
so here's the problem I have one form, it outputs search results after submit,
my question is that I have made multimap.Here is the partial code. if(binary_search(final.begin() ,
First of all I am stumped. I have a search-module for a CMS that
I have experience with Android's search functionality as described here: http://developer.android.com/guide/topics/search/index.html , but haven't
I have a Drupal 7 website that is running apachesolr search and is using
Search as I may I have not found a solution to my problem here
I have written a utility that search logfiles for exceptions and it have worked
Let's suppose I have an interface named Controller. Several classes implement this interface and

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.