Back to project page That-photo-app-for-that-mobile-class.
The source code is released under:
GNU General Public License
If you think the Android project That-photo-app-for-that-mobile-class listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.gatech.cs4261.wheresdabeef; //from w w w .j a v a2 s .co m import android.app.SearchManager; import android.content.Intent; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class SearchResultsActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.search_main); } @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); handleIntent(intent); } private void handleIntent(Intent intent) { if (Intent.ACTION_SEARCH.equals(intent.getAction())) { String query = intent.getStringExtra(SearchManager.QUERY); //use the query to search your data somehow } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.search_results, menu); return true; } }