Back to project page Aircraftcarriers.
The source code is released under:
GNU General Public License
If you think the Android project Aircraftcarriers listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/**Copyright (C) 2013 Thomas Maher */* www .j a va2 s.com*/ * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/> */ package com.jimsuplee.aircraftcarriers; import android.app.ListActivity; //import android.app.Activity; import android.content.Intent; import android.widget.ListView; import android.widget.ArrayAdapter; import java.util.ArrayList; import java.util.List; import android.os.Bundle; //import android.widget.ArrayAdapter; import android.net.Uri; import android.widget.TextView; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.view.View; //import android.util.Log; public class Carrier extends ListActivity { static final String TAG = "CARRIERS"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); displayListView(); } private void displayListView() { ////Log.w(TAG, "In Flight.displayListView(), about to make carrierList"); List<String> carrierList = new ArrayList<String>(); if (!com.jimsuplee.aircraftcarriers.Aircraftcarriers.carrierSearchList.isEmpty()) { carrierList = com.jimsuplee.aircraftcarriers.Aircraftcarriers.carrierSearchList; } else if(Aircraftcarriers.navy == "Argentine") { carrierList.add("ARA_Independencia_1958"); carrierList.add("ARA_Veinticinco_de_Mayo_V2"); } else if(Aircraftcarriers.navy == "Brazilian") { carrierList.add("Brazilian_aircraft_carrier_Minas_Gerais"); } else if(Aircraftcarriers.navy == "French") { carrierList.add("French_aircraft_carrier_Arromanches_R95"); carrierList.add("French_aircraft_carrier_Bois_Belleau"); carrierList.add("French_aircraft_carrier_Charles_de_Gaulle_R91"); carrierList.add("French_aircraft_carrier_Clemenceau_R98"); carrierList.add("French_aircraft_carrier_Dixmude"); carrierList.add("French_aircraft_carrier_Foch_R99"); carrierList.add("French_aircraft_carrier_Joffre"); carrierList.add("French_aircraft_carrier_La_Fayette_R96"); carrierList.add("French_aircraft_carrier_Painleve"); carrierList.add("French_aircraft_carrier_Verdun"); carrierList.add("French_seaplane_carrier_Commandant_Teste"); carrierList.add("French_seaplane_carrier_Foudre"); carrierList.add("French_submarine_Surcouf"); carrierList.add("PH_75"); } else if(Aircraftcarriers.navy == "Indian") { carrierList.add("INS_Vikramaditya"); carrierList.add("INS_Vikrant"); carrierList.add("INS_Vikrant_2013"); carrierList.add("INS_Viraat"); } else if(Aircraftcarriers.navy == "Japanese") { carrierList.add("Japanese_aircraft_carrier_Akagi"); carrierList.add("Japanese_aircraft_carrier_Akitsu_Maru"); carrierList.add("Japanese_aircraft_carrier_Amagi"); carrierList.add("Japanese_aircraft_carrier_Aso"); carrierList.add("Japanese_aircraft_carrier_Chitose"); carrierList.add("Japanese_aircraft_carrier_Chiyoda"); carrierList.add("Japanese_aircraft_carrier_Chuyo"); carrierList.add("Japanese_aircraft_carrier_Hiryu"); carrierList.add("Japanese_aircraft_carrier_Hiyo"); carrierList.add("Japanese_aircraft_carrier_Hosho"); carrierList.add("Japanese_aircraft_carrier_Ikoma"); carrierList.add("Japanese_aircraft_carrier_Junyo"); carrierList.add("Japanese_aircraft_carrier_Kaga"); carrierList.add("Japanese_aircraft_carrier_Kaiyo"); carrierList.add("Japanese_aircraft_carrier_Kasagi"); carrierList.add("Japanese_aircraft_carrier_Katsuragi"); carrierList.add("Japanese_aircraft_carrier_Kumano_Maru"); carrierList.add("Japanese_aircraft_carrier_Ryuho"); carrierList.add("Japanese_aircraft_carrier_Ryujo"); carrierList.add("Japanese_aircraft_carrier_Shimane_Maru"); carrierList.add("Japanese_aircraft_carrier_Shinano"); carrierList.add("Japanese_aircraft_carrier_Shinyo"); carrierList.add("Japanese_aircraft_carrier_Shoho"); carrierList.add("Japanese_aircraft_carrier_Shokaku"); carrierList.add("Japanese_aircraft_carrier_Soryu"); carrierList.add("Japanese_aircraft_carrier_Taiho"); carrierList.add("Japanese_aircraft_carrier_Taiyo"); carrierList.add("Japanese_aircraft_carrier_Unryu"); carrierList.add("Japanese_aircraft_carrier_Unyo"); carrierList.add("Japanese_aircraft_carrier_Yamashiro_Maru"); carrierList.add("Japanese_aircraft_carrier_Zuiho"); carrierList.add("Japanese_aircraft_carrier_Zuikaku"); carrierList.add("Japanese_battlecruiser_Amagi"); carrierList.add("Japanese_battleship_Hyuga"); carrierList.add("Japanese_submarine_I13"); carrierList.add("Japanese_submarine_I14"); carrierList.add("Japanese_submarine_I15"); carrierList.add("Japanese_submarine_I17"); carrierList.add("Japanese_submarine_I19"); carrierList.add("Japanese_submarine_I21"); carrierList.add("Japanese_submarine_I23"); carrierList.add("Japanese_submarine_I25"); carrierList.add("Japanese_submarine_I26"); carrierList.add("Japanese_submarine_I27"); carrierList.add("Japanese_submarine_I28"); carrierList.add("Japanese_submarine_I29"); carrierList.add("Japanese_submarine_I30"); carrierList.add("Japanese_submarine_I31"); carrierList.add("Japanese_submarine_I34"); carrierList.add("Japanese_submarine_I400"); carrierList.add("Japanese_submarine_I401"); carrierList.add("Japanese_Submarine_I402"); carrierList.add("JDS_Izumo_DDH183"); carrierList.add("Type_AM_submarine"); carrierList.add("Type_B1_submarine"); carrierList.add("Japanese_aircraft_carrier_Hiryu"); carrierList.add("Japanese_aircraft_carrier_Hiyo"); } else if(Aircraftcarriers.navy == "Koninklijke") { carrierList.add("HNLMS_Karel_Doorman_QH1"); carrierList.add("HNLMS_Karel_Doorman_R81"); } else if(Aircraftcarriers.navy == "Kriegsmarine") { carrierList.add("German_aircraft_carrier_Graf_Zeppelin"); carrierList.add("German_cruiser_Seydlitz"); carrierList.add("SS_Europa_1928"); } else if(Aircraftcarriers.navy == "MarinaMilitare") { carrierList.add("HMAS_Melbourne_R21"); carrierList.add("HTMS_Chakri_Naruebet"); carrierList.add("Italian_aircraft_carrier_Aquila"); carrierList.add("Italian_aircraft_carrier_Cavour_550"); carrierList.add("Italian_aircraft_carrier_Giuseppe_Garibaldi_551"); carrierList.add("Italian_aircraft_carrier_Sparviero"); carrierList.add("Italian_seaplane_tender_Giuseppe_Miraglia"); } else if(Aircraftcarriers.navy == "PLA") { carrierList.add("Chinese_aircraft_carrier_Liaoning"); } else if(Aircraftcarriers.navy == "Thai") { carrierList.add("HTMS_Chakri_Naruebet"); } else if(Aircraftcarriers.navy == "Russian") { carrierList.add("Russian_aircraft_carrier_Admiral_of_the_Fleet_of_the_Soviet_Union_Kuznetsov"); carrierList.add("Russian_aircraft_carrier_Admiral_of_the_Fleet_of_the_Soviet_Union_Kuznetsov"); carrierList.add("Soviet_aircraft_carrier_Admiral_Gorshkov"); carrierList.add("Soviet_aircraft_carrier_Admiral_of_the_Fleet_of_the_Soviet_Union_Kuznetsov"); carrierList.add("Soviet_aircraft_carrier_Admiral_of_the_Fleet_of_the_Soviet_Union_Kuznetsov"); carrierList.add("Soviet_aircraft_carrier_Kiev"); carrierList.add("Soviet_aircraft_carrier_Minsk"); carrierList.add("Soviet_aircraft_carrier_Novorossiysk"); carrierList.add("Soviet_aircraft_carrier_Ulyanovsk"); carrierList.add("Soviet_aircraft_carrier_Ulyanovsk"); carrierList.add("Soviet_aircraft_carrier_Varyag"); carrierList.add("Soviet_aircraft_carrier_Varyag"); carrierList.add("Soviet_helicopter_carrier_Leningrad"); carrierList.add("Soviet_helicopter_carrier_Moskva"); } else if(Aircraftcarriers.navy == "Spanish") { carrierList.add("Spanish_aircraft_carrier_Dedalo"); carrierList.add("Spanish_aircraft_carrier_Principe_de_Asturias"); carrierList.add("Spanish_seaplane_carrier_Dedalo"); carrierList.add("Spanish_ship_Juan_Carlos_I_L61"); } else if(Aircraftcarriers.navy == "Swedish") { carrierList.add("HSwMS_Dristigheten"); carrierList.add("HSwMS_Gotland_1933"); } else if(Aircraftcarriers.navy == "UK") { carrierList.add("HMAS_Albatross_1928"); carrierList.add("HMAS_Albatross_1928"); carrierList.add("HMAS_Melbourne_R21"); carrierList.add("HMAS_Melbourne_R21"); carrierList.add("HMAS_Sydney_R17"); carrierList.add("HMAS_Sydney_R17"); carrierList.add("HMAS_Vengeance_R71"); carrierList.add("HMAS_Vengeance_R71"); carrierList.add("HMCS_Bonaventure_CVL_22"); carrierList.add("HMCS_Bonaventure_CVL_22"); carrierList.add("HMCS_Bonaventure_CVL_22"); carrierList.add("HMCS_Magnificent_CVL21"); carrierList.add("HMCS_Magnificent_CVL21"); carrierList.add("HMCS_Warrior_R31"); carrierList.add("HMCS_Warrior_R31"); carrierList.add("HMS_Activity_D94"); carrierList.add("HMS_Africa"); carrierList.add("HMS_Albion_R07"); carrierList.add("HMS_Ameer_D01"); carrierList.add("HMS_Arbiter_D31"); carrierList.add("HMS_Archer_D78"); carrierList.add("HMS_Argus_I49"); carrierList.add("HMS_Ark_Royal_1914"); carrierList.add("HMS_Ark_Royal_91"); carrierList.add("HMS_Ark_Royal_R07"); carrierList.add("HMS_Ark_Royal_R09"); carrierList.add("HMS_Ark_Royal_R09"); carrierList.add("HMS_Atheling_D51"); carrierList.add("HMS_Attacker_D02"); carrierList.add("HMS_Audacity_D10"); carrierList.add("HMS_Avenger_D14"); carrierList.add("HMS_Battler_D18"); carrierList.add("HMS_Begum_D38"); carrierList.add("HMS_Biter_D97"); carrierList.add("HMS_Bulwark_R08"); carrierList.add("HMS_Campania_1914"); carrierList.add("HMS_Campania_D48"); carrierList.add("HMS_Chaser_D32"); carrierList.add("HMS_Colossus_R15"); carrierList.add("HMS_Courageous_50"); carrierList.add("HMS_Dasher_D37"); carrierList.add("HMS_Eagle_1918"); carrierList.add("HMS_Eagle_R05"); carrierList.add("HMS_Emperor_D98"); carrierList.add("HMS_Empress_D42"); carrierList.add("HMS_Fencer_D64"); carrierList.add("HMS_Formidable_67"); carrierList.add("HMS_Furious_47"); carrierList.add("HMS_Glorious"); carrierList.add("HMS_Glory_R62"); carrierList.add("HMS_Hermes_95"); carrierList.add("HMS_Hermes_R12"); carrierList.add("HMS_Hermes_R12"); carrierList.add("HMS_Hunter_D80"); carrierList.add("HMS_Illustrious_87"); carrierList.add("HMS_Illustrious_R06"); carrierList.add("HMS_Implacable_R86"); carrierList.add("HMS_Indefatigable_R10"); carrierList.add("HMS_Indomitable_92"); carrierList.add("HMS_Invincible_R05"); carrierList.add("HMS_Khedive_D62"); carrierList.add("HMS_M2"); carrierList.add("HMS_Manxman_1916"); carrierList.add("HMS_Nabob_D77"); carrierList.add("HMS_Nairana_1917"); carrierList.add("HMS_Nairana_D05"); carrierList.add("HMS_Ocean_L12"); carrierList.add("HMS_Ocean_R68"); carrierList.add("HMS_Patroller_D07"); carrierList.add("HMS_Pegasus_1917"); carrierList.add("HMS_Powerful_R95"); carrierList.add("HMS_Powerful_R95"); carrierList.add("HMS_Powerful_R95"); carrierList.add("HMS_Premier_D23"); carrierList.add("HMS_Prince_of_Wales_R09"); carrierList.add("HMS_Puncher_D79"); carrierList.add("HMS_Puncher_D79"); carrierList.add("HMS_Pursuer_D73"); carrierList.add("HMS_Queen_D19"); carrierList.add("HMS_Queen_Elizabeth_R08"); carrierList.add("HMS_Rajah_D10"); carrierList.add("HMS_Ranee_D03"); carrierList.add("HMS_Ravager_D70"); carrierList.add("HMS_Ruler_D72"); carrierList.add("HMS_Searcher_D40"); carrierList.add("HMS_Shah_D21"); carrierList.add("HMS_Slinger_D26"); carrierList.add("HMS_Smiter_D55"); carrierList.add("HMS_Speaker_D90"); carrierList.add("HMS_Stalker_D91"); carrierList.add("HMS_Striker_D12"); carrierList.add("HMS_Terrible_R93"); carrierList.add("HMS_Terrible_R93"); carrierList.add("HMS_Thane_D48"); carrierList.add("HMS_Tracker_D24"); carrierList.add("HMS_Trouncer_D85"); carrierList.add("HMS_Trumpeter_D09"); carrierList.add("HMS_Unicorn_I72"); carrierList.add("HMS_Venerable_R63"); carrierList.add("HMS_Vengeance_R71"); carrierList.add("HMS_Vengeance_R71"); carrierList.add("HMS_Victorious_R38"); carrierList.add("HMS_Vindex_1915"); carrierList.add("HMS_Vindex_D15"); carrierList.add("HMS_Warrior_R31"); carrierList.add("HMS_Warrior_R31"); carrierList.add("HNLMS_Karel_Doorman_QH1"); carrierList.add("HNLMS_Karel_Doorman_R81"); carrierList.add("MV_Acavus"); carrierList.add("MV_Acavus"); carrierList.add("MV_Adula"); carrierList.add("MV_Adula"); carrierList.add("MV_Alexia"); carrierList.add("MV_Alexia"); carrierList.add("MV_Amastra"); carrierList.add("MV_Amastra"); carrierList.add("MV_Ancylus"); carrierList.add("MV_Ancylus"); carrierList.add("MV_Empire_MacAlpine"); carrierList.add("MV_Empire_MacAndrew"); carrierList.add("MV_Empire_MacCabe"); carrierList.add("MV_Empire_MacCallum"); carrierList.add("MV_Empire_MacCallum"); carrierList.add("MV_Empire_MacColl"); carrierList.add("MV_Empire_MacDermott"); carrierList.add("MV_Empire_MacKay"); carrierList.add("MV_Empire_MacKendrick"); carrierList.add("MV_Empire_MacMahon"); carrierList.add("MV_Empire_MacRae"); carrierList.add("MV_Gadila"); carrierList.add("MV_Gadila"); carrierList.add("MV_Macoma"); carrierList.add("MV_Macoma"); carrierList.add("MV_Miralda"); carrierList.add("MV_Miralda"); carrierList.add("MV_Rapana"); carrierList.add("MV_Rapana"); } else if(Aircraftcarriers.navy == "US") { carrierList.add("USS_Abraham_Lincoln_CVN72"); carrierList.add("USS_Admiralty_Islands_CVE99"); carrierList.add("USS_Altamaha_CVE18"); carrierList.add("USS_Altamaha_CVE6"); carrierList.add("USS_America_CV66"); carrierList.add("USS_Antietam_CV36"); carrierList.add("USS_Anzio_CVE57"); carrierList.add("USS_Archer_BAVG1"); carrierList.add("USS_Attu_CVE102"); carrierList.add("USS_Badoeng_Strait_CVE116"); carrierList.add("USS_Baffins_CVE35"); carrierList.add("USS_Bairoko_CVE115"); carrierList.add("USS_Barnes_CVE20"); carrierList.add("USS_Barnes_CVE7"); carrierList.add("USS_Bastian_CVE37"); carrierList.add("USS_Bataan_CVL29"); carrierList.add("USS_Belleau_Wood_CVL24"); carrierList.add("USS_Bennington_CV20"); carrierList.add("USS_Bismarck_Sea_CVE95"); carrierList.add("USS_Block_Island_CVE106"); carrierList.add("USS_Block_Island_CVE21"); carrierList.add("USS_Bogue_CVE9"); carrierList.add("USS_Bolinas_CVE36"); carrierList.add("USS_Bon_Homme_Richard_CV31"); carrierList.add("USS_Bougainville_CVE100"); carrierList.add("USS_Boxer_CV21"); carrierList.add("USS_Breton_CVE10"); carrierList.add("USS_Breton_CVE23"); carrierList.add("USS_Bunker_Hill_CV17"); carrierList.add("USS_Cabot_CVL28"); carrierList.add("USS_Cape_Esperance_CVE88"); carrierList.add("USS_Cape_Gloucester_CVE109"); carrierList.add("USS_Card_CVE11"); carrierList.add("USS_Carl_Vinson_CVN70"); carrierList.add("USS_Carnegie_CVE38"); carrierList.add("USS_Casablanca_CVE55"); carrierList.add("USS_Charger_CVE30"); carrierList.add("USS_Chatham_CVE32"); carrierList.add("USS_Chenango_CVE28"); carrierList.add("USS_Constellation_CV64"); carrierList.add("USS_Copahee_CVE12"); carrierList.add("USS_Coral_Sea_CV43"); carrierList.add("USS_Cordova_CVE39"); carrierList.add("USS_Core_CVE13"); carrierList.add("USS_Corregidor_CVE58"); carrierList.add("USS_Cowpens_CVL25"); carrierList.add("USS_Croatan_CVE14"); carrierList.add("USS_Croatan_CVE25"); carrierList.add("USS_Delgada_CVE40"); carrierList.add("USS_Dwight_D_Eisenhower_CVN69"); carrierList.add("USS_Edisto_CVE41"); carrierList.add("USS_Enterprise_CV6"); carrierList.add("USS_Enterprise_CVN65"); carrierList.add("USS_Enterprise_CVN80"); carrierList.add("USS_Essex_CV9"); carrierList.add("USS_Estero_CVE42"); carrierList.add("USS_Fanshaw_Bay_CVE70"); carrierList.add("USS_Forrestal_CV59"); carrierList.add("USS_Franklin_CV13"); carrierList.add("USS_Franklin_D_Roosevelt_CV42"); carrierList.add("USS_Gambier_Bay_CVE73"); carrierList.add("USS_George_HW_Bush_CVN77"); carrierList.add("USS_George_Washington_CVN73"); carrierList.add("USS_Gerald_R_Ford_CVN78"); carrierList.add("USS_Gilbert_Islands_CVE107"); carrierList.add("USS_Glacier_CVE33"); carrierList.add("USS_Guadalcanal_CVE60"); carrierList.add("USS_Hamlin_CVE15"); carrierList.add("USS_Hancock_CV19"); carrierList.add("USS_Harry_S_Truman_CVN75"); carrierList.add("USS_Hoggatt_Bay_CVE75"); carrierList.add("USS_Hollandia_CVE97"); carrierList.add("USS_Hornet_CV12"); carrierList.add("USS_Hornet_CV8"); carrierList.add("USS_Independence_CV62"); carrierList.add("USS_Independence_CVL22"); carrierList.add("USS_Intrepid_CV11"); carrierList.add("USS_Iwo_Jima_CV46"); carrierList.add("USS_Jamaica_CVE43"); carrierList.add("USS_John_C_Stennis_CVN74"); carrierList.add("USS_John_F_Kennedy_CV67"); carrierList.add("USS_John_F_Kennedy_CVN79"); carrierList.add("USS_Kadashan_Bay_CVE76"); carrierList.add("USS_Kalinin_Bay_CVE68"); carrierList.add("USS_Kasaan_Bay_CVE69"); carrierList.add("USS_Kearsarge_CV33"); carrierList.add("USS_Keweenaw_CVE44"); carrierList.add("USS_Kitkun_Bay_CVE71"); carrierList.add("USS_Kitty_Hawk_CV63"); carrierList.add("USS_Kula_Gulf_CVE108"); carrierList.add("USS_Kwajalein_CVE98"); carrierList.add("USS_Lake_Champlain_CV39"); carrierList.add("USS_Langley_CV1"); carrierList.add("USS_Langley_CV27"); carrierList.add("USS_Lexington_CV16"); carrierList.add("USS_Lexington_CV2"); carrierList.add("USS_Leyte_CV32"); carrierList.add("USS_Lingayen_CVE126"); carrierList.add("USS_Liscome_Bay_CVE56"); carrierList.add("USS_Long_Island_CVE1"); carrierList.add("USS_LST16"); carrierList.add("USS_LST525"); carrierList.add("USS_LST906"); carrierList.add("USS_Lunga_Point_CVE94"); carrierList.add("USS_Makassar_Strait_CVE91"); carrierList.add("USS_Makin_Island_CVE93"); carrierList.add("USS_Manila_Bay_CVE61"); carrierList.add("USS_Marcus_Island_CVE77"); carrierList.add("USS_Matanikau_CVE101"); carrierList.add("USS_Midway_CV41"); carrierList.add("USS_Midway_CVE63"); carrierList.add("USS_Mindoro_CVE120"); carrierList.add("USS_Mission_Bay_CVE59"); carrierList.add("USS_Monterey_CV26"); carrierList.add("USS_Munda_CVE104"); carrierList.add("USS_Nassau_CVE16"); carrierList.add("USS_Natoma_Bay_CVE62"); carrierList.add("USS_Nehenta_Bay_CVE74"); carrierList.add("USS_Niantic_CVE46"); carrierList.add("USS_Nimitz_CVN68"); carrierList.add("USS_Okinawa_CVE127"); carrierList.add("USS_Ommaney_Bay_CVE79"); carrierList.add("USS_Oriskany_CV34"); carrierList.add("USS_Palau_CVE122"); carrierList.add("USS_Perdido_CVE47"); carrierList.add("USS_Petrof_Bay_CVE80"); carrierList.add("USS_Philippine_Sea_CV47"); carrierList.add("USS_Point_Cruz_CVE119"); carrierList.add("USS_Prince_CVE45"); carrierList.add("USS_Princeton_CV37"); carrierList.add("USS_Princeton_CVL23"); carrierList.add("USS_Prince_William_CVE19"); carrierList.add("USS_Prince_William_CVE31"); carrierList.add("USS_Puget_Sound_CVE113"); carrierList.add("USS_Pybus_CVE34"); carrierList.add("USS_Rabaul_CVE121"); carrierList.add("USS_Randolph_CV15"); carrierList.add("USS_Ranger_CV4"); carrierList.add("USS_Ranger_CV61"); carrierList.add("USS_Rendova_CVE114"); carrierList.add("USS_Reprisal_CV35"); carrierList.add("USS_Roi_CVE103"); carrierList.add("USS_Ronald_Reagan_CVN76"); carrierList.add("USS_Rudyerd_Bay_CVE81"); carrierList.add("USS_Sable_IX81"); carrierList.add("USS_Saginaw_Bay_CVE82"); carrierList.add("USS_Saidor_CVE117"); carrierList.add("USS_Saipan_CVL48"); carrierList.add("USS_Salamaua_CVE96"); carrierList.add("USS_Salerno_Bay_CVE110"); carrierList.add("USS_Sangamon_CVE26"); carrierList.add("USS_San_Jacinto_CVL30"); carrierList.add("USS_Santee_CVE29"); carrierList.add("USS_Saratoga_CV3"); carrierList.add("USS_Saratoga_CV60"); carrierList.add("USS_Sargent_Bay_CVE83"); carrierList.add("USS_Savo_Island_CVE78"); carrierList.add("USS_Shamrock_Bay_CVE84"); carrierList.add("USS_ShangriLa_CV_38"); carrierList.add("USS_Shipley_Bay_CVE85"); carrierList.add("USS_Siboney_CVE112"); carrierList.add("USS_Sicily_CVE118"); carrierList.add("USS_Sitkoh_Bay_CVE86"); carrierList.add("USS_Solomons_CVE67"); carrierList.add("USS_St_Andrews_CVE49"); carrierList.add("USS_Steamer_Bay_CVE87"); carrierList.add("USS_St_George_CVE17"); carrierList.add("USS_St_Joseph_CVE50"); carrierList.add("USS_St_Lo_CVE63"); carrierList.add("USS_St_Simon_CVE51"); carrierList.add("USS_Sunset_CVE48"); carrierList.add("USS_Suwannee_CVE27"); carrierList.add("USS_Takanis_Bay_CVE89"); carrierList.add("USS_Tarawa_CV40"); carrierList.add("USS_Theodore_Roosevelt_CVN71"); carrierList.add("USS_Thetis_Bay_CVE90"); carrierList.add("USS_Ticonderoga_CV14"); carrierList.add("USS_Tinian_CVE123"); carrierList.add("USS_Tripoli_CVE64"); carrierList.add("USS_Tulagi_CVE72"); carrierList.add("USS_United_States_CV58"); carrierList.add("USS_Valley_Forge_CV45"); carrierList.add("USS_Vella_Gulf_CVE111"); carrierList.add("USS_Vermillion_CVE52"); carrierList.add("USS_Wake_Island_CVE65"); carrierList.add("USS_Wasp_CV18"); carrierList.add("USS_Wasp_CV7"); carrierList.add("USS_White_Plains_CVE66"); carrierList.add("USS_Willapa_CVE53"); carrierList.add("USS_Windham_Bay_CVE92"); carrierList.add("USS_Wolverine_IX64"); carrierList.add("USS_Wright_CVL49"); carrierList.add("USS_Yorktown_CV10"); carrierList.add("USS_Yorktown_CV5"); } else { carrierList.add("ARA_Independencia_1958"); carrierList.add("ARA_Veinticinco_de_Mayo_V2"); carrierList.add("Brazilian_aircraft_carrier_Minas_Gerais"); carrierList.add("Chinese_aircraft_carrier_Liaoning"); carrierList.add("French_aircraft_carrier_Arromanches_R95"); carrierList.add("French_aircraft_carrier_Bois_Belleau"); carrierList.add("French_aircraft_carrier_Charles_de_Gaulle_R91"); carrierList.add("French_aircraft_carrier_Clemenceau_R98"); carrierList.add("French_aircraft_carrier_Dixmude"); carrierList.add("French_aircraft_carrier_Foch_R99"); carrierList.add("French_aircraft_carrier_Joffre"); carrierList.add("French_aircraft_carrier_La_Fayette_R96"); carrierList.add("French_aircraft_carrier_Verdun"); carrierList.add("French_aircraft_carrier_Bearn"); carrierList.add("French_aircraft_carrier_Painleve"); carrierList.add("French_seaplane_carrier_Commandant_Teste"); carrierList.add("French_seaplane_carrier_Foudre"); carrierList.add("French_submarine_Surcouf"); carrierList.add("German_aircraft_carrier_Graf_Zeppelin"); carrierList.add("German_cruiser_Seydlitz"); carrierList.add("HMAS_Albatross_1928"); carrierList.add("HMAS_Melbourne_R21"); carrierList.add("HMAS_Sydney_R17"); carrierList.add("HMAS_Vengeance_R71"); carrierList.add("HMCS_Bonaventure_CVL_22"); carrierList.add("HMCS_Magnificent_CVL21"); carrierList.add("HMCS_Warrior_R31"); carrierList.add("HMS_Activity_D94"); carrierList.add("HMS_Africa"); carrierList.add("HMS_Albion_R07"); carrierList.add("HMS_Ameer_D01"); carrierList.add("HMS_Arbiter_D31"); carrierList.add("HMS_Archer_D78"); carrierList.add("HMS_Argus_I49"); carrierList.add("HMS_Ark_Royal_1914"); carrierList.add("HMS_Ark_Royal_91"); carrierList.add("HMS_Ark_Royal_R07"); carrierList.add("HMS_Ark_Royal_R09"); carrierList.add("HMS_Atheling_D51"); carrierList.add("HMS_Attacker_D02"); carrierList.add("HMS_Audacity_D10"); carrierList.add("HMS_Avenger_D14"); carrierList.add("HMS_Battler_D18"); carrierList.add("HMS_Begum_D38"); carrierList.add("HMS_Benmy_Chree"); carrierList.add("HMS_Biter_D97"); carrierList.add("HMS_Bulwark_R08"); carrierList.add("HMS_Campania_1914"); carrierList.add("HMS_Campania_D48"); carrierList.add("HMS_Chaser_D32"); carrierList.add("HMS_Colossus_R15"); carrierList.add("HMS_Courageous_50"); carrierList.add("HMS_Dasher_D37"); carrierList.add("HMS_Eagle_1918"); carrierList.add("HMS_Eagle_R05"); carrierList.add("HMS_Emperor_D98"); carrierList.add("HMS_Empress_D42"); carrierList.add("HMS_Fencer_D64"); carrierList.add("HMS_Formidable_67"); carrierList.add("HMS_Furious_47"); carrierList.add("HMS_Glorious"); carrierList.add("HMS_Glory_R62"); carrierList.add("HMS_Hermes_95"); carrierList.add("HMS_Hermes_R12"); carrierList.add("HMS_Hunter_D80"); carrierList.add("HMS_Illustrious_87"); carrierList.add("HMS_Illustrious_R06"); carrierList.add("HMS_Implacable_R86"); carrierList.add("HMS_Indefatigable_R10"); carrierList.add("HMS_Indomitable_92"); carrierList.add("HMS_Invincible_R05"); carrierList.add("HMS_Khedive_D62"); carrierList.add("HMS_M2"); carrierList.add("HMS_Manxman_1916"); carrierList.add("HMS_Nabob_D77"); carrierList.add("HMS_Nairana_1917"); carrierList.add("HMS_Nairana_D05"); carrierList.add("HMS_Ocean_L12"); carrierList.add("HMS_Ocean_R68"); carrierList.add("HMS_Patroller_D07"); carrierList.add("HMS_Pegasus_1917"); carrierList.add("HMS_Powerful_R95"); carrierList.add("HMS_Premier_D23"); carrierList.add("HMS_Prince_of_Wales_R09"); carrierList.add("HMS_Puncher_D79"); carrierList.add("HMS_Pursuer_D73"); carrierList.add("HMS_Queen_D19"); carrierList.add("HMS_Queen_Elizabeth_R08"); carrierList.add("HMS_Rajah_D10"); carrierList.add("HMS_Ranee_D03"); carrierList.add("HMS_Ravager_D70"); carrierList.add("HMS_Ruler_D72"); carrierList.add("HMS_Searcher_D40"); carrierList.add("HMS_Shah_D21"); carrierList.add("HMS_Slinger_D26"); carrierList.add("HMS_Smiter_D55"); carrierList.add("HMS_Speaker_D90"); carrierList.add("HMS_Stalker_D91"); carrierList.add("HMS_Striker_D12"); carrierList.add("HMS_Terrible_R93"); carrierList.add("HMS_Thane_D48"); carrierList.add("HMS_Tracker_D24"); carrierList.add("HMS_Trouncer_D85"); carrierList.add("HMS_Trumpeter_D09"); carrierList.add("HMS_Unicorn_I72"); carrierList.add("HMS_Venerable_R63"); carrierList.add("HMS_Vengeance_R71"); carrierList.add("HMS_Victorious_R38"); carrierList.add("HMS_Vindex_1915"); carrierList.add("HMS_Vindex_D15"); carrierList.add("HMS_Warrior_R31"); carrierList.add("HNLMS_Karel_Doorman_QH1"); carrierList.add("HNLMS_Karel_Doorman_R81"); carrierList.add("HSwMS_Dristigheten"); carrierList.add("HSwMS_Gotland_1933"); carrierList.add("HTMS_Chakri_Naruebet"); carrierList.add("INS_Vikramaditya"); carrierList.add("INS_Vikrant_2013"); carrierList.add("INS_Vikrant"); carrierList.add("INS_Viraat"); carrierList.add("Italian_aircraft_carrier_Aquila"); carrierList.add("Italian_aircraft_carrier_Cavour_550"); carrierList.add("Italian_aircraft_carrier_Giuseppe_Garibaldi_551"); carrierList.add("Italian_aircraft_carrier_Sparviero"); carrierList.add("Italian_seaplane_tender_Giuseppe_Miraglia"); carrierList.add("Japanese_aircraft_carrier_Akagi"); carrierList.add("Japanese_aircraft_carrier_Akitsu_Maru"); carrierList.add("Japanese_aircraft_carrier_Amagi"); carrierList.add("Japanese_aircraft_carrier_Aso"); carrierList.add("Japanese_aircraft_carrier_Chitose"); carrierList.add("Japanese_aircraft_carrier_Chiyoda"); carrierList.add("Japanese_aircraft_carrier_Chuyo"); carrierList.add("Japanese_aircraft_carrier_Ikoma"); carrierList.add("Japanese_aircraft_carrier_Hiryu"); carrierList.add("Japanese_aircraft_carrier_Hiyo"); carrierList.add("Japanese_aircraft_carrier_Hosho"); carrierList.add("Japanese_aircraft_carrier_Junyo"); carrierList.add("Japanese_aircraft_carrier_Kaga"); carrierList.add("Japanese_aircraft_carrier_Kaiyo"); carrierList.add("Japanese_aircraft_carrier_Kasagi"); carrierList.add("Japanese_aircraft_carrier_Katsuragi"); carrierList.add("Japanese_aircraft_carrier_Kumano_Maru"); carrierList.add("Japanese_aircraft_carrier_Ryuho"); carrierList.add("Japanese_aircraft_carrier_Ryujo"); carrierList.add("Japanese_aircraft_carrier_Shimane_Maru"); carrierList.add("Japanese_aircraft_carrier_Shinano"); carrierList.add("Japanese_aircraft_carrier_Shinyo"); carrierList.add("Japanese_aircraft_carrier_Shoho"); carrierList.add("Japanese_aircraft_carrier_Shokaku"); carrierList.add("Japanese_aircraft_carrier_Soryu"); carrierList.add("Japanese_aircraft_carrier_Taiho"); carrierList.add("Japanese_aircraft_carrier_Taiyo"); carrierList.add("Japanese_aircraft_carrier_Unryu"); carrierList.add("Japanese_aircraft_carrier_Unyo"); carrierList.add("Japanese_aircraft_carrier_Yamashiro_Maru"); carrierList.add("Japanese_aircraft_carrier_Zuiho"); carrierList.add("Japanese_aircraft_carrier_Zuikaku"); carrierList.add("Japanese_battlecruiser_Amagi"); carrierList.add("Japanese_battleship_Hyuga"); carrierList.add("Japanese_submarine_I13"); carrierList.add("Japanese_submarine_I14"); carrierList.add("Japanese_submarine_I15"); carrierList.add("Japanese_submarine_I17"); carrierList.add("Japanese_submarine_I19"); carrierList.add("Japanese_submarine_I21"); carrierList.add("Japanese_submarine_I23"); carrierList.add("Japanese_submarine_I25"); carrierList.add("Japanese_submarine_I26"); carrierList.add("Japanese_submarine_I27"); carrierList.add("Japanese_submarine_I28"); carrierList.add("Japanese_submarine_I29"); carrierList.add("Japanese_submarine_I30"); carrierList.add("Japanese_submarine_I31"); carrierList.add("Japanese_submarine_I34"); carrierList.add("Japanese_submarine_I400"); carrierList.add("Japanese_submarine_I401"); carrierList.add("Japanese_Submarine_I402"); carrierList.add("JDS_Izumo_DDH183"); carrierList.add("MV_Acavus"); carrierList.add("MV_Adula"); carrierList.add("MV_Alexia"); carrierList.add("MV_Amastra"); carrierList.add("MV_Ancylus"); carrierList.add("MV_Empire_MacAlpine"); carrierList.add("MV_Empire_MacAndrew"); carrierList.add("MV_Empire_MacCabe"); carrierList.add("MV_Empire_MacCallum"); carrierList.add("MV_Empire_MacColl"); carrierList.add("MV_Empire_MacDermott"); carrierList.add("MV_Empire_MacKay"); carrierList.add("MV_Empire_MacKendrick"); carrierList.add("MV_Empire_MacMahon"); carrierList.add("MV_Empire_MacRae"); carrierList.add("MV_Gadila"); carrierList.add("MV_Macoma"); carrierList.add("MV_Miralda"); carrierList.add("MV_Rapana"); carrierList.add("PH_75"); carrierList.add("Russian_aircraft_carrier_Admiral_of_the_Fleet_of_the_Soviet_Union_Kuznetsov"); carrierList.add("Soviet_aircraft_carrier_Admiral_Gorshkov"); carrierList.add("Soviet_aircraft_carrier_Admiral_of_the_Fleet_of_the_Soviet_Union_Kuznetsov"); carrierList.add("Soviet_aircraft_carrier_Kiev"); carrierList.add("Soviet_aircraft_carrier_Minsk"); carrierList.add("Soviet_aircraft_carrier_Novorossiysk"); carrierList.add("Soviet_aircraft_carrier_Ulyanovsk"); carrierList.add("Soviet_aircraft_carrier_Varyag"); carrierList.add("Soviet_helicopter_carrier_Leningrad"); carrierList.add("Soviet_helicopter_carrier_Moskva"); carrierList.add("Spanish_aircraft_carrier_Principe_de_Asturias"); carrierList.add("Spanish_ship_Juan_Carlos_I_L61"); carrierList.add("Spanish_aircraft_carrier_Dedalo"); carrierList.add("Spanish_seaplane_carrier_Dedalo"); carrierList.add("SS_Europa_1928"); carrierList.add("Type_AM_submarine"); carrierList.add("Type_B1_submarine"); carrierList.add("USS_Abraham_Lincoln_CVN72"); carrierList.add("USS_Admiralty_Islands_CVE99"); carrierList.add("USS_Altamaha_CVE18"); carrierList.add("USS_Altamaha_CVE6"); carrierList.add("USS_America_CV66"); carrierList.add("USS_Antietam_CV36"); carrierList.add("USS_Anzio_CVE57"); carrierList.add("USS_Archer_BAVG1"); carrierList.add("USS_Attu_CVE102"); carrierList.add("USS_Badoeng_Strait_CVE116"); carrierList.add("USS_Baffins_CVE35"); carrierList.add("USS_Bairoko_CVE115"); carrierList.add("USS_Barnes_CVE20"); carrierList.add("USS_Barnes_CVE7"); carrierList.add("USS_Bastian_CVE37"); carrierList.add("USS_Bataan_CVL29"); carrierList.add("USS_Belleau_Wood_CVL24"); carrierList.add("USS_Bennington_CV20"); carrierList.add("USS_Bismarck_Sea_CVE95"); carrierList.add("USS_Block_Island_CVE106"); carrierList.add("USS_Block_Island_CVE21"); carrierList.add("USS_Bogue_CVE9"); carrierList.add("USS_Bolinas_CVE36"); carrierList.add("USS_Bon_Homme_Richard_CV31"); carrierList.add("USS_Bougainville_CVE100"); carrierList.add("USS_Boxer_CV21"); carrierList.add("USS_Breton_CVE10"); carrierList.add("USS_Breton_CVE23"); carrierList.add("USS_Bunker_Hill_CV17"); carrierList.add("USS_Cabot_CVL28"); carrierList.add("USS_Cape_Esperance_CVE88"); carrierList.add("USS_Cape_Gloucester_CVE109"); carrierList.add("USS_Card_CVE11"); carrierList.add("USS_Carl_Vinson_CVN70"); carrierList.add("USS_Carnegie_CVE38"); carrierList.add("USS_Casablanca_CVE55"); carrierList.add("USS_Charger_CVE30"); carrierList.add("USS_Chatham_CVE32"); carrierList.add("USS_Chenango_CVE28"); carrierList.add("USS_Constellation_CV64"); carrierList.add("USS_Copahee_CVE12"); carrierList.add("USS_Coral_Sea_CV43"); carrierList.add("USS_Cordova_CVE39"); carrierList.add("USS_Core_CVE13"); carrierList.add("USS_Corregidor_CVE58"); carrierList.add("USS_Cowpens_CVL25"); carrierList.add("USS_Croatan_CVE14"); carrierList.add("USS_Croatan_CVE25"); carrierList.add("USS_Delgada_CVE40"); carrierList.add("USS_Dwight_D_Eisenhower_CVN69"); carrierList.add("USS_Edisto_CVE41"); carrierList.add("USS_Enterprise_CV6"); carrierList.add("USS_Enterprise_CVN65"); carrierList.add("USS_Enterprise_CVN80"); carrierList.add("USS_Essex_CV9"); carrierList.add("USS_Estero_CVE42"); carrierList.add("USS_Fanshaw_Bay_CVE70"); carrierList.add("USS_Forrestal_CV59"); carrierList.add("USS_Franklin_CV13"); carrierList.add("USS_Franklin_D_Roosevelt_CV42"); carrierList.add("USS_Gambier_Bay_CVE73"); carrierList.add("USS_George_HW_Bush_CVN77"); carrierList.add("USS_George_Washington_CVN73"); carrierList.add("USS_Gerald_R_Ford_CVN78"); carrierList.add("USS_Gilbert_Islands_CVE107"); carrierList.add("USS_Glacier_CVE33"); carrierList.add("USS_Guadalcanal_CVE60"); carrierList.add("USS_Hamlin_CVE15"); carrierList.add("USS_Hancock_CV19"); carrierList.add("USS_Harry_S_Truman_CVN75"); carrierList.add("USS_Hoggatt_Bay_CVE75"); carrierList.add("USS_Hollandia_CVE97"); carrierList.add("USS_Hornet_CV12"); carrierList.add("USS_Hornet_CV8"); carrierList.add("USS_Independence_CV62"); carrierList.add("USS_Independence_CVL22"); carrierList.add("USS_Intrepid_CV11"); carrierList.add("USS_Iwo_Jima_CV46"); carrierList.add("USS_Jamaica_CVE43"); carrierList.add("USS_John_C_Stennis_CVN74"); carrierList.add("USS_John_F_Kennedy_CV67"); carrierList.add("USS_John_F_Kennedy_CVN79"); carrierList.add("USS_Kadashan_Bay_CVE76"); carrierList.add("USS_Kalinin_Bay_CVE68"); carrierList.add("USS_Kasaan_Bay_CVE69"); carrierList.add("USS_Kearsarge_CV33"); carrierList.add("USS_Keweenaw_CVE44"); carrierList.add("USS_Kitkun_Bay_CVE71"); carrierList.add("USS_Kitty_Hawk_CV63"); carrierList.add("USS_Kula_Gulf_CVE108"); carrierList.add("USS_Kwajalein_CVE98"); carrierList.add("USS_Lake_Champlain_CV39"); carrierList.add("USS_Langley_CV1"); carrierList.add("USS_Langley_CV27"); carrierList.add("USS_Lexington_CV16"); carrierList.add("USS_Lexington_CV2"); carrierList.add("USS_Leyte_CV32"); carrierList.add("USS_Lingayen_CVE126"); carrierList.add("USS_Liscome_Bay_CVE56"); carrierList.add("USS_Long_Island_CVE1"); carrierList.add("USS_LST16"); carrierList.add("USS_LST525"); carrierList.add("USS_LST906"); carrierList.add("USS_Lunga_Point_CVE94"); carrierList.add("USS_Makassar_Strait_CVE91"); carrierList.add("USS_Makin_Island_CVE93"); carrierList.add("USS_Manila_Bay_CVE61"); carrierList.add("USS_Marcus_Island_CVE77"); carrierList.add("USS_Matanikau_CVE101"); carrierList.add("USS_Midway_CV41"); carrierList.add("USS_Midway_CVE63"); carrierList.add("USS_Mindoro_CVE120"); carrierList.add("USS_Mission_Bay_CVE59"); carrierList.add("USS_Monterey_CV26"); carrierList.add("USS_Munda_CVE104"); carrierList.add("USS_Nassau_CVE16"); carrierList.add("USS_Natoma_Bay_CVE62"); carrierList.add("USS_Nehenta_Bay_CVE74"); carrierList.add("USS_Niantic_CVE46"); carrierList.add("USS_Nimitz_CVN68"); carrierList.add("USS_Okinawa_CVE127"); carrierList.add("USS_Ommaney_Bay_CVE79"); carrierList.add("USS_Oriskany_CV34"); carrierList.add("USS_Palau_CVE122"); carrierList.add("USS_Perdido_CVE47"); carrierList.add("USS_Petrof_Bay_CVE80"); carrierList.add("USS_Philippine_Sea_CV47"); carrierList.add("USS_Point_Cruz_CVE119"); carrierList.add("USS_Prince_CVE45"); carrierList.add("USS_Princeton_CV37"); carrierList.add("USS_Princeton_CVL23"); carrierList.add("USS_Prince_William_CVE19"); carrierList.add("USS_Prince_William_CVE31"); carrierList.add("USS_Puget_Sound_CVE113"); carrierList.add("USS_Pybus_CVE34"); carrierList.add("USS_Rabaul_CVE121"); carrierList.add("USS_Randolph_CV15"); carrierList.add("USS_Ranger_CV4"); carrierList.add("USS_Ranger_CV61"); carrierList.add("USS_Rendova_CVE114"); carrierList.add("USS_Reprisal_CV35"); carrierList.add("USS_Roi_CVE103"); carrierList.add("USS_Ronald_Reagan_CVN76"); carrierList.add("USS_Rudyerd_Bay_CVE81"); carrierList.add("USS_Sable_IX81"); carrierList.add("USS_Saginaw_Bay_CVE82"); carrierList.add("USS_Saidor_CVE117"); carrierList.add("USS_Saipan_CVL48"); carrierList.add("USS_Salamaua_CVE96"); carrierList.add("USS_Salerno_Bay_CVE110"); carrierList.add("USS_Sangamon_CVE26"); carrierList.add("USS_San_Jacinto_CVL30"); carrierList.add("USS_Santee_CVE29"); carrierList.add("USS_Saratoga_CV3"); carrierList.add("USS_Saratoga_CV60"); carrierList.add("USS_Sargent_Bay_CVE83"); carrierList.add("USS_Savo_Island_CVE78"); carrierList.add("USS_Shamrock_Bay_CVE84"); carrierList.add("USS_ShangriLa_CV-38"); carrierList.add("USS_Shipley_Bay_CVE85"); carrierList.add("USS_Siboney_CVE112"); carrierList.add("USS_Sicily_CVE118"); carrierList.add("USS_Sitkoh_Bay_CVE86"); carrierList.add("USS_Solomons_CVE67"); carrierList.add("USS_St_Andrews_CVE49"); carrierList.add("USS_Steamer_Bay_CVE87"); carrierList.add("USS_St_George_CVE17"); carrierList.add("USS_St_Joseph_CVE50"); carrierList.add("USS_St_Lo_CVE63"); carrierList.add("USS_St_Simon_CVE51"); carrierList.add("USS_Sunset_CVE48"); carrierList.add("USS_Suwannee_CVE27"); carrierList.add("USS_Takanis_Bay_CVE89"); carrierList.add("USS_Tarawa_CV40"); carrierList.add("USS_Theodore_Roosevelt_CVN71"); carrierList.add("USS_Thetis_Bay_CVE90"); carrierList.add("USS_Ticonderoga_CV14"); carrierList.add("USS_Tinian_CVE123"); carrierList.add("USS_Tripoli_CVE64"); carrierList.add("USS_Tulagi_CVE72"); carrierList.add("USS_United_States_CV58"); carrierList.add("USS_Valley_Forge_CV45"); carrierList.add("USS_Vella_Gulf_CVE111"); carrierList.add("USS_Vermillion_CVE52"); carrierList.add("USS_Wake_Island_CVE65"); carrierList.add("USS_Wasp_CV18"); carrierList.add("USS_Wasp_CV7"); carrierList.add("USS_White_Plains_CVE66"); carrierList.add("USS_Willapa_CVE53"); carrierList.add("USS_Windham_Bay_CVE92"); carrierList.add("USS_Wolverine_IX64"); carrierList.add("USS_Wright_CVL49"); carrierList.add("USS_Yorktown_CV10"); carrierList.add("USS_Yorktown_CV5"); } // create an ArrayAdaptar from the String Array ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, R.layout.aircraftcarriertextview, carrierList); setListAdapter(dataAdapter); ListView listView = getListView(); // filtering for contents of ListView listView.setTextFilterEnabled(true); listView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { com.jimsuplee.aircraftcarriers.Aircraftcarriers.carrierSearchList.clear(); Intent i = new Intent(""); String carrierChoice = ((TextView) view).getText().toString(); i.setData(Uri.parse(carrierChoice)); setResult(RESULT_OK, i); finish(); } }); } }