102d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert/* 202d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * Copyright (C) 2009 The Android Open Source Project 302d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * 402d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * Licensed under the Apache License, Version 2.0 (the "License"); 502d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * you may not use this file except in compliance with the License. 602d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * You may obtain a copy of the License at 702d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * 802d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * http://www.apache.org/licenses/LICENSE-2.0 902d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * 1002d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * Unless required by applicable law or agreed to in writing, software 1102d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * distributed under the License is distributed on an "AS IS" BASIS, 1202d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1302d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * See the License for the specific language governing permissions and 1402d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert * limitations under the License. 1502d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert */ 1602d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert 1702d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringertpackage com.android.quicksearchbox.tests.spammy; 1802d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert 1902d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringertimport android.app.Activity; 2002d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringertimport android.content.Intent; 2102d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringertimport android.os.Bundle; 2202d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringertimport android.util.Log; 2302d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert 2402d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringertpublic class SpammySuggestionLauncher extends Activity { 2502d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert private static final String TAG = SpammySuggestionLauncher.class.getSimpleName(); 2602d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert 2702d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert @Override 2802d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert protected void onCreate(Bundle savedInstanceState) { 2902d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert super.onCreate(savedInstanceState); 3002d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert Intent intent = getIntent(); 3102d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert Log.i(TAG, "Launched a spammy suggestion: " + intent); 3202d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert finish(); 3302d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert } 3402d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert 3502d897ec26d81fa1f3cb9e1b8f05c6bcb5d7b9dbBjorn Bringert} 36