InputProfilFirstFourActivity.kt 86.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038
package com.wello.vip

import android.content.Intent
import android.content.Context
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.*
import com.google.android.gms.tasks.OnCompleteListener
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.database.FirebaseDatabase
import com.google.firebase.iid.FirebaseInstanceId
import com.google.firebase.messaging.FirebaseMessaging
import kotlinx.android.synthetic.main.activity_input_profil_first_four.*
import kotlinx.android.synthetic.main.activity_input_profil_first_four.nextButton
import kotlinx.android.synthetic.main.activity_input_profil_first_four.previousButton

class InputProfilFirstFourActivity : AppCompatActivity() {

    private val firebaseAuth = FirebaseAuth.getInstance()
    val user_db = FirebaseDatabase.getInstance("https://wello-topic.firebaseio.com/").reference
    private fun sendToken(){
        FirebaseInstanceId.getInstance().instanceId
            .addOnCompleteListener(OnCompleteListener { task ->
                if (!task.isSuccessful) {
                    //Log.w(TAG, "getInstanceId failed", task.exception)
                    return@OnCompleteListener
                }

                // Get new Instance ID token
                tkn = task.result!!.token

                // Log and toast
               // val msg = getString(R.string.msg_token_fmt, tkn)
                //Log.d(TAG, msg)
                //Toast.makeText(baseContext, msg, Toast.LENGTH_SHORT).show()
            })
    }

    private fun writeNewUser(Topic : String) {
        user_db.child(Topic).setValue(1)/// .setValue(user)
    }





    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_input_profil_first_four)

        val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
        val editor: SharedPreferences.Editor=prof.edit()

        // 1. 툴바 사용 설정
        setSupportActionBar(toolbar)

        //pushing code start
        intent.extras?.let {
            for (key in it.keySet()) {
                val value = intent.extras?.get(key)
                //Log.d(TAG, "Key: $key Value: $value")
            }
        }
        //pushing code end


        skipButton.setOnClickListener {
            sendToken()
            val user=firebaseAuth?.currentUser!!.uid
            Log.d("test:", user.toString())

            val cat_1=listOf("c1_1","c1_2","c1_3")
            val cat_2=listOf("c2_1","c2_2","c2_3","c2_4","c2_5","c2_6","c2_7")
            val cat_3=listOf("c3_1","c3_2","c3_3")
            val cat_4=listOf("c4_1","c4_2","c4_3","c4_4","c4_5","c4_6","c4_7","c4_8","c4_9","c4_10","c4_11")
            val cat_5=listOf("c5_1","c5_2","c5_3","c5_4","c5_5","c5_6","c5_7","c5_8","c5_9")
            val cat_6=listOf("c6_1","c6_2","c6_3","c6_4","c6_5","c6_6","c6_7")
            val cat_7=listOf("c7_1","c7_2","c7_3")
            val cat_8=listOf("c8_1","c8_2","c8_3","c8_4","c8_5","c8_6","c8_7","c8_8","c8_9","c8_10","c8_11","c8_12","c8_13","c8_14","c8_15","c8_16","c8_17")
            val cat_9=listOf("c9_1","c9_2","c9_3","c9_4","c9_5","c9_6","c9_7","c9_8","c9_9","c9_10","c9_11","c9_12","c9_13","c9_14","c9_15","c9_16","c9_17","c9_18","c9_19")
            val cat_10=listOf("c10_1","c10_2","c10_3","c10_4","c10_5","c10_6","c10_7","c10_8","c10_9","c10_10","c10_11","c10_12","c10_13","c10_14","c10_15","c10_16","c10_17","c10_18")
            val cat_11=listOf("c11_1","c11_2","c11_3","c11_4","c11_5","c11_6","c11_7","c11_8","c11_9","c11_10","c11_11","c11_12","c11_13","c11_14","c11_15","c11_16","c11_17","c11_18")
            val cat_12=listOf("c12_1","c12_100","c12_101","c12_102","c12_103","c12_104","c12_105","c12_106","c12_107","c12_108","c12_109","c12_110","c12_111","c12_112","c12_113","c12_114","c12_115","c12_116","c12_117","c12_118","c12_119","c12_120","c12_121","c12_122","c12_123","c12_124","c12_125","c12_126","c12_127","c12_128","c12_129","c12_130","c12_131","c12_132","c12_133","c12_134","c12_135","c12_136","c12_137","c12_138","c12_139","c12_140","c12_141","c12_142","c12_143","c12_144","c12_145","c12_146","c12_147","c12_148","c12_149","c12_150","c12_151","c12_152","c12_153","c12_154","c12_155","c12_156","c12_157","c12_158","c12_159","c12_160","c12_161","c12_162","c12_163","c12_164","c12_165","c12_166","c12_167","c12_168","c12_169","c12_170","c12_171","c12_172","c12_173","c12_174","c12_175","c12_176","c12_177","c12_178","c12_179","c12_180","c12_181","c12_182","c12_183","c12_184","c12_185","c12_186","c12_187","c12_188","c12_189","c12_190","c12_191","c12_192","c12_193","c12_194","c12_195","c12_196","c12_197","c12_198","c12_199","c12_200","c12_201","c12_202","c12_203","c12_204","c12_205","c12_206","c12_207","c12_208","c12_209","c12_210","c12_211","c12_212","c12_213","c12_214","c12_215","c12_216","c12_217","c12_218","c12_219","c12_220","c12_221","c12_222","c12_223","c12_224","c12_225","c12_226","c12_227","c12_228","c12_229","c12_230","c12_231","c12_232","c12_233","c12_234","c12_235","c12_236","c12_237","c12_238","c12_239","c12_240","c12_241","c12_242","c12_243","c12_244","c12_245","c12_246","c12_247","c12_248","c12_249","c12_250","c12_251","c12_252","c12_253","c12_254","c12_255","c12_256","c12_257","c12_258","c12_259","c12_260","c12_261","c12_262","c12_263","c12_264","c12_265","c12_266","c12_267","c12_268","c12_269","c12_270","c12_271","c12_272","c12_273","c12_274","c12_275","c12_276","c12_277","c12_278","c12_279","c12_280","c12_281","c12_282","c12_283","c12_284","c12_285","c12_286","c12_287","c12_288","c12_289","c12_290","c12_291","c12_292","c12_293","c12_294","c12_295","c12_296","c12_297","c12_298","c12_299","c12_300","c12_301","c12_302","c12_303","c12_304","c12_305","c12_306","c12_307","c12_308","c12_309","c12_310","c12_311","c12_312","c12_313","c12_314","c12_315","c12_316","c12_317","c12_318","c12_319","c12_320","c12_321","c12_322","c12_323","c12_324","c12_325","c12_326","c12_327","c12_328","c12_329","c12_330","c12_331","c12_332","c12_333","c12_334","c12_335","c12_336","c12_337","c12_338","c12_339","c12_340","c12_341","c12_342","c12_343","c12_344","c12_345","c12_346","c12_347","c12_348","c12_349","c12_350")
            val cat_13=listOf("c13_1","c13_2","c13_3")
            val cat_14=listOf("c14_1","c14_2","c14_3")
            val cat_15=listOf("c15_1","c15_2","c15_3")
            val cat_16=listOf("c16_1","c16_2","c16_3","c16_4","c16_5","c16_6","c16_7")

            val cat_list=mutableListOf<String>()
            cat_list.addAll(cat_1)
            cat_list.addAll(cat_2)
            cat_list.addAll(cat_3)
            cat_list.addAll(cat_4)
            cat_list.addAll(cat_5)
            cat_list.addAll(cat_6)
            cat_list.addAll(cat_7)
            cat_list.addAll(cat_8)
            cat_list.addAll(cat_9)
            cat_list.addAll(cat_10)
            cat_list.addAll(cat_11)
            cat_list.addAll(cat_12)
            cat_list.addAll(cat_13)
            cat_list.addAll(cat_14)
            cat_list.addAll(cat_15)
            cat_list.addAll(cat_16)

            var user_topic=""
            for(item in cat_list){if(prof.getInt(item,3)==1){user_topic=user_topic+item}}

            if(prof.getString("existing_topic","none")!=user_topic){
                FirebaseMessaging.getInstance().unsubscribeFromTopic(prof.getString("existing_topic","none").toString())
                FirebaseMessaging.getInstance().subscribeToTopic(user_topic).addOnCompleteListener { task ->
                    if (!task.isSuccessful) { } // 성공
                }
                writeNewUser(user_topic) // db에 쓰기
                editor.putString("existing_topic",user_topic)
                editor.commit()
            }else{

            }
            var intent = Intent(this, SignInActivity::class.java)
            startActivity(intent)
        }


        previousButton.setOnClickListener {
            var intent = Intent(this, InputProfilFirstThreeActivity::class.java)
            startActivity(intent)
        }

        var doadapter = ArrayAdapter(this, android.R.layout.simple_spinner_item, listOf("선택해주세요.","서울특별시", "부산광역시", "대구광역시", "인천광역시","광주광역시","대전광역시","울산광역시","세종특별자치시","경기도","강원도","충청북도","충청남도","전라북도","전라남도","경상북도","경상남도","제주특별자치도"))
        doadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
        doSpinner.adapter = doadapter

        doSpinner.setSelection(1)

            if(prof.getInt("c11_2",0)==1){doSpinner.setSelection(1)}
            if(prof.getInt("c11_3",0)==1){doSpinner.setSelection(2)}
            if(prof.getInt("c11_4",0)==1){doSpinner.setSelection(3)}
            if(prof.getInt("c11_5",0)==1){doSpinner.setSelection(4)}
            if(prof.getInt("c11_6",0)==1){doSpinner.setSelection(5)}
            if(prof.getInt("c11_7",0)==1){doSpinner.setSelection(6)}
            if(prof.getInt("c11_8",0)==1){doSpinner.setSelection(7)}
            if(prof.getInt("c11_9",0)==1){doSpinner.setSelection(8)}
            if(prof.getInt("c11_10",0)==1){doSpinner.setSelection(9)}
            if(prof.getInt("c11_11",0)==1){doSpinner.setSelection(10)}
            if(prof.getInt("c11_12",0)==1){doSpinner.setSelection(11)}
            if(prof.getInt("c11_13",0)==1){doSpinner.setSelection(12)}
            if(prof.getInt("c11_14",0)==1){doSpinner.setSelection(13)}
            if(prof.getInt("c11_15",0)==1){doSpinner.setSelection(14)}
            if(prof.getInt("c11_16",0)==1){doSpinner.setSelection(15)}
            if(prof.getInt("c11_17",0)==1){doSpinner.setSelection(16)}
            if(prof.getInt("c11_18",0)==1){doSpinner.setSelection(17)}

        doSpinner.onItemSelectedListener = object: AdapterView.OnItemSelectedListener {
            override fun onNothingSelected(parent: AdapterView<*>?) {
            }
            override fun onItemSelected(parent: AdapterView<*>, view: View?, position: Int, id: Long) {
                // either one will work as well
                // val item = parent.getItemAtPosition(position) as String
                //val item = adapter.getItem(position)
                if(doSpinner.selectedItem.toString()=="서울특별시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","종로구","중구","용산구","성동구","광진구","동대문구","중랑구","성북구","강북구","도봉구","노원구","은평구","서대문구","마포구","양천구","강서구","구로구","금천구","영등포구","동작구","관악구","서초구","강남구","송파구","강동구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="부산광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","강서구","금정구","기장군","남구","동구","동래구","부산진구","북구","사상구","사하구","서구","수영구","연제구","영도구","중구","해운대구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="대구광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","남구","달서구","달성군","동구","북구","서구","수성구","중구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="인천광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","강화군","계양구","남구","남동구","동구","부평구","서구","연수구","옹진군","중구","미추홀구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="광주광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","광산구","남구","동구","북구","서구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="대전광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","대덕구","동구","서구","유성구","중구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="울산광역시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","남구","동구","북구","울주군","중구"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="세종특별자치시"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("해당 없음"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="경기도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","가평군","고양시","과천시","광명시","광주시","구리시","군포시","김포시","남양주시","동두천시","부천시","성남시","수원시","시흥시","안산시","안성시","안양시","양주시","양평군","여주시","연천군","오산시","용인시","의왕시","의정부시","이천시","파주시","평택시","포천시","하남시","화성시"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="강원도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","강릉시","고성군","동해시","삼척시","속초시","양구군","양양군","영월군","원주시","인제군","정선군","철원군","춘천시","태백시","평창군","홍천군","화천군","횡성군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="충청북도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","괴산군","단양군","보은군","영동군","옥천군","음성군","제천시","증평군","진천군","청주시","충주시"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="충청남도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","계룡시","공주시","금산군","논산시","당진시","보령시","부여군","서산시","서천군","아산시","예산군","천안시","청양군","태안군","홍성군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="전라북도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","고창군","군산시","김제시","남원시","무주군","부안군","순창군","완주군","익산시","임실군","장수군","전주시","정읍시","진안군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="전라남도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","강진군","고흥군","곡성군","광양시","구례군","나주시","담양군","목포시","무안군","보성군","순천시","신안군","여수시","영광군","영암군","완도군","장성군","장흥군","진도군","함평군","해남군","화순군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="경상북도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","경산시","경주시","고령군","구미시","군위군","김천시","문경시","봉화군","상주시","성주군","안동시","영덕군","영양군","영주시","영천시","예천군","울릉군","울진군","의성군","청도군","청송군","칠곡군","포항시"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else if(doSpinner.selectedItem.toString()=="경상남도"){
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","거제시","거창군","고성군","김해시","남해군","밀양시","사천시","산청군","양산시","의령군","진주시","창년군","창원시","통영시","하동군","함안군","함양군","합천군"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }else {
                    var gooadapter = ArrayAdapter(this@InputProfilFirstFourActivity, android.R.layout.simple_spinner_item, listOf("선택해주세요.","서귀포시","제주시"))
                    gooadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
                    gooSpinner.adapter = gooadapter
                }
            }

        }
        if(prof.getInt("c12_100",0)==1){gooSpinner.setSelection(1)}
        if(prof.getInt("c12_101",0)==1){gooSpinner.setSelection(2)}
        if(prof.getInt("c12_102",0)==1){gooSpinner.setSelection(3)}
        if(prof.getInt("c12_103",0)==1){gooSpinner.setSelection(4)}
        if(prof.getInt("c12_104",0)==1){gooSpinner.setSelection(5)}
        if(prof.getInt("c12_105",0)==1){gooSpinner.setSelection(6)}
        if(prof.getInt("c12_106",0)==1){gooSpinner.setSelection(7)}
        if(prof.getInt("c12_107",0)==1){gooSpinner.setSelection(8)}
        if(prof.getInt("c12_108",0)==1){gooSpinner.setSelection(9)}
        if(prof.getInt("c12_109",0)==1){gooSpinner.setSelection(10)}
        if(prof.getInt("c12_110",0)==1){gooSpinner.setSelection(11)}
        if(prof.getInt("c12_111",0)==1){gooSpinner.setSelection(12)}
        if(prof.getInt("c12_112",0)==1){gooSpinner.setSelection(13)}
        if(prof.getInt("c12_113",0)==1){gooSpinner.setSelection(14)}
        if(prof.getInt("c12_114",0)==1){gooSpinner.setSelection(15)}
        if(prof.getInt("c12_115",0)==1){gooSpinner.setSelection(16)}
        if(prof.getInt("c12_116",0)==1){gooSpinner.setSelection(17)}
        if(prof.getInt("c12_117",0)==1){gooSpinner.setSelection(18)}
        if(prof.getInt("c12_118",0)==1){gooSpinner.setSelection(19)}
        if(prof.getInt("c12_119",0)==1){gooSpinner.setSelection(20)}
        if(prof.getInt("c12_120",0)==1){gooSpinner.setSelection(21)}
        if(prof.getInt("c12_121",0)==1){gooSpinner.setSelection(22)}
        if(prof.getInt("c12_122",0)==1){gooSpinner.setSelection(23)}
        if(prof.getInt("c12_123",0)==1){gooSpinner.setSelection(24)}
        if(prof.getInt("c12_124",0)==1){gooSpinner.setSelection(25)}
        if(prof.getInt("c12_125",0)==1){gooSpinner.setSelection(26)}
        if(prof.getInt("c12_126",0)==1){gooSpinner.setSelection(27)}
        if(prof.getInt("c12_127",0)==1){gooSpinner.setSelection(28)}
        if(prof.getInt("c12_128",0)==1){gooSpinner.setSelection(29)}
        if(prof.getInt("c12_129",0)==1){gooSpinner.setSelection(30)}
        if(prof.getInt("c12_130",0)==1){gooSpinner.setSelection(31)}
        if(prof.getInt("c12_131",0)==1){gooSpinner.setSelection(32)}
        if(prof.getInt("c12_132",0)==1){gooSpinner.setSelection(33)}
        if(prof.getInt("c12_133",0)==1){gooSpinner.setSelection(34)}
        if(prof.getInt("c12_134",0)==1){gooSpinner.setSelection(35)}
        if(prof.getInt("c12_135",0)==1){gooSpinner.setSelection(36)}
        if(prof.getInt("c12_136",0)==1){gooSpinner.setSelection(37)}
        if(prof.getInt("c12_137",0)==1){gooSpinner.setSelection(38)}
        if(prof.getInt("c12_138",0)==1){gooSpinner.setSelection(39)}
        if(prof.getInt("c12_139",0)==1){gooSpinner.setSelection(40)}
        if(prof.getInt("c12_140",0)==1){gooSpinner.setSelection(41)}
        if(prof.getInt("c12_141",0)==1){gooSpinner.setSelection(42)}
        if(prof.getInt("c12_142",0)==1){gooSpinner.setSelection(43)}
        if(prof.getInt("c12_143",0)==1){gooSpinner.setSelection(44)}
        if(prof.getInt("c12_144",0)==1){gooSpinner.setSelection(45)}
        if(prof.getInt("c12_145",0)==1){gooSpinner.setSelection(46)}
        if(prof.getInt("c12_146",0)==1){gooSpinner.setSelection(47)}
        if(prof.getInt("c12_147",0)==1){gooSpinner.setSelection(48)}
        if(prof.getInt("c12_148",0)==1){gooSpinner.setSelection(49)}
        if(prof.getInt("c12_149",0)==1){gooSpinner.setSelection(50)}
        if(prof.getInt("c12_150",0)==1){gooSpinner.setSelection(51)}
        if(prof.getInt("c12_151",0)==1){gooSpinner.setSelection(52)}
        if(prof.getInt("c12_152",0)==1){gooSpinner.setSelection(53)}
        if(prof.getInt("c12_153",0)==1){gooSpinner.setSelection(54)}
        if(prof.getInt("c12_154",0)==1){gooSpinner.setSelection(55)}
        if(prof.getInt("c12_155",0)==1){gooSpinner.setSelection(56)}
        if(prof.getInt("c12_156",0)==1){gooSpinner.setSelection(57)}
        if(prof.getInt("c12_157",0)==1){gooSpinner.setSelection(58)}
        if(prof.getInt("c12_158",0)==1){gooSpinner.setSelection(59)}
        if(prof.getInt("c12_159",0)==1){gooSpinner.setSelection(60)}
        if(prof.getInt("c12_160",0)==1){gooSpinner.setSelection(61)}
        if(prof.getInt("c12_161",0)==1){gooSpinner.setSelection(62)}
        if(prof.getInt("c12_162",0)==1){gooSpinner.setSelection(63)}
        if(prof.getInt("c12_163",0)==1){gooSpinner.setSelection(64)}
        if(prof.getInt("c12_164",0)==1){gooSpinner.setSelection(65)}
        if(prof.getInt("c12_165",0)==1){gooSpinner.setSelection(66)}
        if(prof.getInt("c12_166",0)==1){gooSpinner.setSelection(67)}
        if(prof.getInt("c12_167",0)==1){gooSpinner.setSelection(68)}
        if(prof.getInt("c12_168",0)==1){gooSpinner.setSelection(69)}
        if(prof.getInt("c12_169",0)==1){gooSpinner.setSelection(70)}
        if(prof.getInt("c12_170",0)==1){gooSpinner.setSelection(71)}
        if(prof.getInt("c12_171",0)==1){gooSpinner.setSelection(72)}
        if(prof.getInt("c12_172",0)==1){gooSpinner.setSelection(73)}
        if(prof.getInt("c12_173",0)==1){gooSpinner.setSelection(74)}
        if(prof.getInt("c12_174",0)==1){gooSpinner.setSelection(75)}
        if(prof.getInt("c12_175",0)==1){gooSpinner.setSelection(76)}
        if(prof.getInt("c12_176",0)==1){gooSpinner.setSelection(77)}
        if(prof.getInt("c12_177",0)==1){gooSpinner.setSelection(78)}
        if(prof.getInt("c12_178",0)==1){gooSpinner.setSelection(79)}
        if(prof.getInt("c12_179",0)==1){gooSpinner.setSelection(80)}
        if(prof.getInt("c12_180",0)==1){gooSpinner.setSelection(81)}
        if(prof.getInt("c12_181",0)==1){gooSpinner.setSelection(82)}
        if(prof.getInt("c12_182",0)==1){gooSpinner.setSelection(83)}
        if(prof.getInt("c12_183",0)==1){gooSpinner.setSelection(84)}
        if(prof.getInt("c12_184",0)==1){gooSpinner.setSelection(85)}
        if(prof.getInt("c12_185",0)==1){gooSpinner.setSelection(86)}
        if(prof.getInt("c12_186",0)==1){gooSpinner.setSelection(87)}
        if(prof.getInt("c12_187",0)==1){gooSpinner.setSelection(88)}
        if(prof.getInt("c12_188",0)==1){gooSpinner.setSelection(89)}
        if(prof.getInt("c12_189",0)==1){gooSpinner.setSelection(90)}
        if(prof.getInt("c12_190",0)==1){gooSpinner.setSelection(91)}
        if(prof.getInt("c12_191",0)==1){gooSpinner.setSelection(92)}
        if(prof.getInt("c12_192",0)==1){gooSpinner.setSelection(93)}
        if(prof.getInt("c12_193",0)==1){gooSpinner.setSelection(94)}
        if(prof.getInt("c12_194",0)==1){gooSpinner.setSelection(95)}
        if(prof.getInt("c12_195",0)==1){gooSpinner.setSelection(96)}
        if(prof.getInt("c12_196",0)==1){gooSpinner.setSelection(97)}
        if(prof.getInt("c12_197",0)==1){gooSpinner.setSelection(98)}
        if(prof.getInt("c12_198",0)==1){gooSpinner.setSelection(99)}
        if(prof.getInt("c12_199",0)==1){gooSpinner.setSelection(100)}
        if(prof.getInt("c12_200",0)==1){gooSpinner.setSelection(101)}
        if(prof.getInt("c12_201",0)==1){gooSpinner.setSelection(102)}
        if(prof.getInt("c12_202",0)==1){gooSpinner.setSelection(103)}
        if(prof.getInt("c12_203",0)==1){gooSpinner.setSelection(104)}
        if(prof.getInt("c12_204",0)==1){gooSpinner.setSelection(105)}
        if(prof.getInt("c12_205",0)==1){gooSpinner.setSelection(106)}
        if(prof.getInt("c12_206",0)==1){gooSpinner.setSelection(107)}
        if(prof.getInt("c12_207",0)==1){gooSpinner.setSelection(108)}
        if(prof.getInt("c12_208",0)==1){gooSpinner.setSelection(109)}
        if(prof.getInt("c12_209",0)==1){gooSpinner.setSelection(110)}
        if(prof.getInt("c12_210",0)==1){gooSpinner.setSelection(111)}
        if(prof.getInt("c12_211",0)==1){gooSpinner.setSelection(112)}
        if(prof.getInt("c12_212",0)==1){gooSpinner.setSelection(113)}
        if(prof.getInt("c12_213",0)==1){gooSpinner.setSelection(114)}
        if(prof.getInt("c12_214",0)==1){gooSpinner.setSelection(115)}
        if(prof.getInt("c12_215",0)==1){gooSpinner.setSelection(116)}
        if(prof.getInt("c12_216",0)==1){gooSpinner.setSelection(117)}
        if(prof.getInt("c12_217",0)==1){gooSpinner.setSelection(118)}
        if(prof.getInt("c12_218",0)==1){gooSpinner.setSelection(119)}
        if(prof.getInt("c12_219",0)==1){gooSpinner.setSelection(120)}
        if(prof.getInt("c12_220",0)==1){gooSpinner.setSelection(121)}
        if(prof.getInt("c12_221",0)==1){gooSpinner.setSelection(122)}
        if(prof.getInt("c12_222",0)==1){gooSpinner.setSelection(123)}
        if(prof.getInt("c12_223",0)==1){gooSpinner.setSelection(124)}
        if(prof.getInt("c12_224",0)==1){gooSpinner.setSelection(125)}
        if(prof.getInt("c12_225",0)==1){gooSpinner.setSelection(126)}
        if(prof.getInt("c12_226",0)==1){gooSpinner.setSelection(127)}
        if(prof.getInt("c12_227",0)==1){gooSpinner.setSelection(128)}
        if(prof.getInt("c12_228",0)==1){gooSpinner.setSelection(129)}
        if(prof.getInt("c12_229",0)==1){gooSpinner.setSelection(130)}
        if(prof.getInt("c12_230",0)==1){gooSpinner.setSelection(131)}
        if(prof.getInt("c12_231",0)==1){gooSpinner.setSelection(132)}
        if(prof.getInt("c12_232",0)==1){gooSpinner.setSelection(133)}
        if(prof.getInt("c12_233",0)==1){gooSpinner.setSelection(134)}
        if(prof.getInt("c12_234",0)==1){gooSpinner.setSelection(135)}
        if(prof.getInt("c12_235",0)==1){gooSpinner.setSelection(136)}
        if(prof.getInt("c12_236",0)==1){gooSpinner.setSelection(137)}
        if(prof.getInt("c12_237",0)==1){gooSpinner.setSelection(138)}
        if(prof.getInt("c12_238",0)==1){gooSpinner.setSelection(139)}
        if(prof.getInt("c12_239",0)==1){gooSpinner.setSelection(140)}
        if(prof.getInt("c12_240",0)==1){gooSpinner.setSelection(141)}
        if(prof.getInt("c12_241",0)==1){gooSpinner.setSelection(142)}
        if(prof.getInt("c12_242",0)==1){gooSpinner.setSelection(143)}
        if(prof.getInt("c12_243",0)==1){gooSpinner.setSelection(144)}
        if(prof.getInt("c12_244",0)==1){gooSpinner.setSelection(145)}
        if(prof.getInt("c12_245",0)==1){gooSpinner.setSelection(146)}
        if(prof.getInt("c12_246",0)==1){gooSpinner.setSelection(147)}
        if(prof.getInt("c12_247",0)==1){gooSpinner.setSelection(148)}
        if(prof.getInt("c12_248",0)==1){gooSpinner.setSelection(149)}
        if(prof.getInt("c12_249",0)==1){gooSpinner.setSelection(150)}
        if(prof.getInt("c12_250",0)==1){gooSpinner.setSelection(151)}
        if(prof.getInt("c12_251",0)==1){gooSpinner.setSelection(152)}
        if(prof.getInt("c12_252",0)==1){gooSpinner.setSelection(153)}
        if(prof.getInt("c12_253",0)==1){gooSpinner.setSelection(154)}
        if(prof.getInt("c12_254",0)==1){gooSpinner.setSelection(155)}
        if(prof.getInt("c12_255",0)==1){gooSpinner.setSelection(156)}
        if(prof.getInt("c12_256",0)==1){gooSpinner.setSelection(157)}
        if(prof.getInt("c12_257",0)==1){gooSpinner.setSelection(158)}
        if(prof.getInt("c12_258",0)==1){gooSpinner.setSelection(159)}
        if(prof.getInt("c12_259",0)==1){gooSpinner.setSelection(160)}
        if(prof.getInt("c12_260",0)==1){gooSpinner.setSelection(161)}
        if(prof.getInt("c12_261",0)==1){gooSpinner.setSelection(162)}
        if(prof.getInt("c12_262",0)==1){gooSpinner.setSelection(163)}
        if(prof.getInt("c12_263",0)==1){gooSpinner.setSelection(164)}
        if(prof.getInt("c12_264",0)==1){gooSpinner.setSelection(165)}
        if(prof.getInt("c12_265",0)==1){gooSpinner.setSelection(166)}
        if(prof.getInt("c12_266",0)==1){gooSpinner.setSelection(167)}
        if(prof.getInt("c12_267",0)==1){gooSpinner.setSelection(168)}
        if(prof.getInt("c12_268",0)==1){gooSpinner.setSelection(169)}
        if(prof.getInt("c12_269",0)==1){gooSpinner.setSelection(170)}
        if(prof.getInt("c12_270",0)==1){gooSpinner.setSelection(171)}
        if(prof.getInt("c12_271",0)==1){gooSpinner.setSelection(172)}
        if(prof.getInt("c12_272",0)==1){gooSpinner.setSelection(173)}
        if(prof.getInt("c12_273",0)==1){gooSpinner.setSelection(174)}
        if(prof.getInt("c12_274",0)==1){gooSpinner.setSelection(175)}
        if(prof.getInt("c12_275",0)==1){gooSpinner.setSelection(176)}
        if(prof.getInt("c12_276",0)==1){gooSpinner.setSelection(177)}
        if(prof.getInt("c12_277",0)==1){gooSpinner.setSelection(178)}
        if(prof.getInt("c12_278",0)==1){gooSpinner.setSelection(179)}
        if(prof.getInt("c12_279",0)==1){gooSpinner.setSelection(180)}
        if(prof.getInt("c12_280",0)==1){gooSpinner.setSelection(181)}
        if(prof.getInt("c12_281",0)==1){gooSpinner.setSelection(182)}
        if(prof.getInt("c12_282",0)==1){gooSpinner.setSelection(183)}
        if(prof.getInt("c12_283",0)==1){gooSpinner.setSelection(184)}
        if(prof.getInt("c12_284",0)==1){gooSpinner.setSelection(185)}
        if(prof.getInt("c12_285",0)==1){gooSpinner.setSelection(186)}
        if(prof.getInt("c12_286",0)==1){gooSpinner.setSelection(187)}
        if(prof.getInt("c12_287",0)==1){gooSpinner.setSelection(188)}
        if(prof.getInt("c12_288",0)==1){gooSpinner.setSelection(189)}
        if(prof.getInt("c12_289",0)==1){gooSpinner.setSelection(190)}
        if(prof.getInt("c12_290",0)==1){gooSpinner.setSelection(191)}
        if(prof.getInt("c12_291",0)==1){gooSpinner.setSelection(192)}
        if(prof.getInt("c12_292",0)==1){gooSpinner.setSelection(193)}
        if(prof.getInt("c12_293",0)==1){gooSpinner.setSelection(194)}
        if(prof.getInt("c12_294",0)==1){gooSpinner.setSelection(195)}
        if(prof.getInt("c12_295",0)==1){gooSpinner.setSelection(196)}
        if(prof.getInt("c12_296",0)==1){gooSpinner.setSelection(197)}
        if(prof.getInt("c12_297",0)==1){gooSpinner.setSelection(198)}
        if(prof.getInt("c12_298",0)==1){gooSpinner.setSelection(199)}
        if(prof.getInt("c12_299",0)==1){gooSpinner.setSelection(200)}
        if(prof.getInt("c12_300",0)==1){gooSpinner.setSelection(201)}
        if(prof.getInt("c12_301",0)==1){gooSpinner.setSelection(202)}
        if(prof.getInt("c12_302",0)==1){gooSpinner.setSelection(203)}
        if(prof.getInt("c12_303",0)==1){gooSpinner.setSelection(204)}
        if(prof.getInt("c12_304",0)==1){gooSpinner.setSelection(205)}
        if(prof.getInt("c12_305",0)==1){gooSpinner.setSelection(206)}
        if(prof.getInt("c12_306",0)==1){gooSpinner.setSelection(207)}
        if(prof.getInt("c12_307",0)==1){gooSpinner.setSelection(208)}
        if(prof.getInt("c12_308",0)==1){gooSpinner.setSelection(209)}
        if(prof.getInt("c12_309",0)==1){gooSpinner.setSelection(210)}
        if(prof.getInt("c12_310",0)==1){gooSpinner.setSelection(211)}
        if(prof.getInt("c12_311",0)==1){gooSpinner.setSelection(212)}
        if(prof.getInt("c12_312",0)==1){gooSpinner.setSelection(213)}
        if(prof.getInt("c12_313",0)==1){gooSpinner.setSelection(214)}
        if(prof.getInt("c12_314",0)==1){gooSpinner.setSelection(215)}
        if(prof.getInt("c12_315",0)==1){gooSpinner.setSelection(216)}
        if(prof.getInt("c12_316",0)==1){gooSpinner.setSelection(217)}
        if(prof.getInt("c12_317",0)==1){gooSpinner.setSelection(218)}
        if(prof.getInt("c12_318",0)==1){gooSpinner.setSelection(219)}
        if(prof.getInt("c12_319",0)==1){gooSpinner.setSelection(220)}
        if(prof.getInt("c12_320",0)==1){gooSpinner.setSelection(221)}
        if(prof.getInt("c12_321",0)==1){gooSpinner.setSelection(222)}
        if(prof.getInt("c12_322",0)==1){gooSpinner.setSelection(223)}
        if(prof.getInt("c12_323",0)==1){gooSpinner.setSelection(224)}
        if(prof.getInt("c12_324",0)==1){gooSpinner.setSelection(225)}
        if(prof.getInt("c12_325",0)==1){gooSpinner.setSelection(226)}
        if(prof.getInt("c12_326",0)==1){gooSpinner.setSelection(227)}
        if(prof.getInt("c12_327",0)==1){gooSpinner.setSelection(228)}
        if(prof.getInt("c12_328",0)==1){gooSpinner.setSelection(229)}
        if(prof.getInt("c12_329",0)==1){gooSpinner.setSelection(230)}
        if(prof.getInt("c12_330",0)==1){gooSpinner.setSelection(231)}
        if(prof.getInt("c12_331",0)==1){gooSpinner.setSelection(232)}
        if(prof.getInt("c12_332",0)==1){gooSpinner.setSelection(233)}
        if(prof.getInt("c12_333",0)==1){gooSpinner.setSelection(234)}
        if(prof.getInt("c12_334",0)==1){gooSpinner.setSelection(235)}
        if(prof.getInt("c12_335",0)==1){gooSpinner.setSelection(236)}
        if(prof.getInt("c12_336",0)==1){gooSpinner.setSelection(237)}
        if(prof.getInt("c12_337",0)==1){gooSpinner.setSelection(238)}
        if(prof.getInt("c12_338",0)==1){gooSpinner.setSelection(239)}
        if(prof.getInt("c12_339",0)==1){gooSpinner.setSelection(240)}
        if(prof.getInt("c12_340",0)==1){gooSpinner.setSelection(241)}
        if(prof.getInt("c12_341",0)==1){gooSpinner.setSelection(242)}
        if(prof.getInt("c12_342",0)==1){gooSpinner.setSelection(243)}
        if(prof.getInt("c12_343",0)==1){gooSpinner.setSelection(244)}
        if(prof.getInt("c12_344",0)==1){gooSpinner.setSelection(245)}
        if(prof.getInt("c12_345",0)==1){gooSpinner.setSelection(246)}
        if(prof.getInt("c12_346",0)==1){gooSpinner.setSelection(247)}
        if(prof.getInt("c12_347",0)==1){gooSpinner.setSelection(248)}
        if(prof.getInt("c12_348",0)==1){gooSpinner.setSelection(249)}
        if(prof.getInt("c12_349",0)==1){gooSpinner.setSelection(250)}
        if(prof.getInt("c12_350",0)==1){gooSpinner.setSelection(251)}
        nextButton.setOnClickListener {
            editor.remove("first_four")
            editor.remove("c11_2")
            editor.remove("c11_3")
            editor.remove("c11_4")
            editor.remove("c11_5")
            editor.remove("c11_6")
            editor.remove("c11_7")
            editor.remove("c11_8")
            editor.remove("c11_9")
            editor.remove("c11_10")
            editor.remove("c11_11")
            editor.remove("c11_12")
            editor.remove("c11_13")
            editor.remove("c11_14")
            editor.remove("c11_15")
            editor.remove("c11_16")
            editor.remove("c11_17")
            editor.remove("c11_18")
            editor.remove("c12_100")
            editor.remove("c12_101")
            editor.remove("c12_102")
            editor.remove("c12_103")
            editor.remove("c12_104")
            editor.remove("c12_105")
            editor.remove("c12_106")
            editor.remove("c12_107")
            editor.remove("c12_108")
            editor.remove("c12_109")
            editor.remove("c12_110")
            editor.remove("c12_111")
            editor.remove("c12_112")
            editor.remove("c12_113")
            editor.remove("c12_114")
            editor.remove("c12_115")
            editor.remove("c12_116")
            editor.remove("c12_117")
            editor.remove("c12_118")
            editor.remove("c12_119")
            editor.remove("c12_120")
            editor.remove("c12_121")
            editor.remove("c12_122")
            editor.remove("c12_123")
            editor.remove("c12_124")
            editor.remove("c12_125")
            editor.remove("c12_126")
            editor.remove("c12_127")
            editor.remove("c12_128")
            editor.remove("c12_129")
            editor.remove("c12_130")
            editor.remove("c12_131")
            editor.remove("c12_132")
            editor.remove("c12_133")
            editor.remove("c12_134")
            editor.remove("c12_135")
            editor.remove("c12_136")
            editor.remove("c12_137")
            editor.remove("c12_138")
            editor.remove("c12_139")
            editor.remove("c12_140")
            editor.remove("c12_141")
            editor.remove("c12_142")
            editor.remove("c12_143")
            editor.remove("c12_144")
            editor.remove("c12_145")
            editor.remove("c12_146")
            editor.remove("c12_147")
            editor.remove("c12_148")
            editor.remove("c12_149")
            editor.remove("c12_150")
            editor.remove("c12_151")
            editor.remove("c12_152")
            editor.remove("c12_153")
            editor.remove("c12_154")
            editor.remove("c12_155")
            editor.remove("c12_156")
            editor.remove("c12_157")
            editor.remove("c12_158")
            editor.remove("c12_159")
            editor.remove("c12_160")
            editor.remove("c12_161")
            editor.remove("c12_162")
            editor.remove("c12_163")
            editor.remove("c12_164")
            editor.remove("c12_165")
            editor.remove("c12_166")
            editor.remove("c12_167")
            editor.remove("c12_168")
            editor.remove("c12_169")
            editor.remove("c12_170")
            editor.remove("c12_171")
            editor.remove("c12_172")
            editor.remove("c12_173")
            editor.remove("c12_174")
            editor.remove("c12_175")
            editor.remove("c12_176")
            editor.remove("c12_177")
            editor.remove("c12_178")
            editor.remove("c12_179")
            editor.remove("c12_180")
            editor.remove("c12_181")
            editor.remove("c12_182")
            editor.remove("c12_183")
            editor.remove("c12_184")
            editor.remove("c12_185")
            editor.remove("c12_186")
            editor.remove("c12_187")
            editor.remove("c12_188")
            editor.remove("c12_189")
            editor.remove("c12_190")
            editor.remove("c12_191")
            editor.remove("c12_192")
            editor.remove("c12_193")
            editor.remove("c12_194")
            editor.remove("c12_195")
            editor.remove("c12_196")
            editor.remove("c12_197")
            editor.remove("c12_198")
            editor.remove("c12_199")
            editor.remove("c12_200")
            editor.remove("c12_201")
            editor.remove("c12_202")
            editor.remove("c12_203")
            editor.remove("c12_204")
            editor.remove("c12_205")
            editor.remove("c12_206")
            editor.remove("c12_207")
            editor.remove("c12_208")
            editor.remove("c12_209")
            editor.remove("c12_210")
            editor.remove("c12_211")
            editor.remove("c12_212")
            editor.remove("c12_213")
            editor.remove("c12_214")
            editor.remove("c12_215")
            editor.remove("c12_216")
            editor.remove("c12_217")
            editor.remove("c12_218")
            editor.remove("c12_219")
            editor.remove("c12_220")
            editor.remove("c12_221")
            editor.remove("c12_222")
            editor.remove("c12_223")
            editor.remove("c12_224")
            editor.remove("c12_225")
            editor.remove("c12_226")
            editor.remove("c12_227")
            editor.remove("c12_228")
            editor.remove("c12_229")
            editor.remove("c12_230")
            editor.remove("c12_231")
            editor.remove("c12_232")
            editor.remove("c12_233")
            editor.remove("c12_234")
            editor.remove("c12_235")
            editor.remove("c12_236")
            editor.remove("c12_237")
            editor.remove("c12_238")
            editor.remove("c12_239")
            editor.remove("c12_240")
            editor.remove("c12_241")
            editor.remove("c12_242")
            editor.remove("c12_243")
            editor.remove("c12_244")
            editor.remove("c12_245")
            editor.remove("c12_246")
            editor.remove("c12_247")
            editor.remove("c12_248")
            editor.remove("c12_249")
            editor.remove("c12_250")
            editor.remove("c12_251")
            editor.remove("c12_252")
            editor.remove("c12_253")
            editor.remove("c12_254")
            editor.remove("c12_255")
            editor.remove("c12_256")
            editor.remove("c12_257")
            editor.remove("c12_258")
            editor.remove("c12_259")
            editor.remove("c12_260")
            editor.remove("c12_261")
            editor.remove("c12_262")
            editor.remove("c12_263")
            editor.remove("c12_264")
            editor.remove("c12_265")
            editor.remove("c12_266")
            editor.remove("c12_267")
            editor.remove("c12_268")
            editor.remove("c12_269")
            editor.remove("c12_270")
            editor.remove("c12_271")
            editor.remove("c12_272")
            editor.remove("c12_273")
            editor.remove("c12_274")
            editor.remove("c12_275")
            editor.remove("c12_276")
            editor.remove("c12_277")
            editor.remove("c12_278")
            editor.remove("c12_279")
            editor.remove("c12_280")
            editor.remove("c12_281")
            editor.remove("c12_282")
            editor.remove("c12_283")
            editor.remove("c12_284")
            editor.remove("c12_285")
            editor.remove("c12_286")
            editor.remove("c12_287")
            editor.remove("c12_288")
            editor.remove("c12_289")
            editor.remove("c12_290")
            editor.remove("c12_291")
            editor.remove("c12_292")
            editor.remove("c12_293")
            editor.remove("c12_294")
            editor.remove("c12_295")
            editor.remove("c12_296")
            editor.remove("c12_297")
            editor.remove("c12_298")
            editor.remove("c12_299")
            editor.remove("c12_300")
            editor.remove("c12_301")
            editor.remove("c12_302")
            editor.remove("c12_303")
            editor.remove("c12_304")
            editor.remove("c12_305")
            editor.remove("c12_306")
            editor.remove("c12_307")
            editor.remove("c12_308")
            editor.remove("c12_309")
            editor.remove("c12_310")
            editor.remove("c12_311")
            editor.remove("c12_312")
            editor.remove("c12_313")
            editor.remove("c12_314")
            editor.remove("c12_315")
            editor.remove("c12_316")
            editor.remove("c12_317")
            editor.remove("c12_318")
            editor.remove("c12_319")
            editor.remove("c12_320")
            editor.remove("c12_321")
            editor.remove("c12_322")
            editor.remove("c12_323")
            editor.remove("c12_324")
            editor.remove("c12_325")
            editor.remove("c12_326")
            editor.remove("c12_327")
            editor.remove("c12_328")
            editor.remove("c12_329")
            editor.remove("c12_330")
            editor.remove("c12_331")
            editor.remove("c12_332")
            editor.remove("c12_333")
            editor.remove("c12_334")
            editor.remove("c12_335")
            editor.remove("c12_336")
            editor.remove("c12_337")
            editor.remove("c12_338")
            editor.remove("c12_339")
            editor.remove("c12_340")
            editor.remove("c12_341")
            editor.remove("c12_342")
            editor.remove("c12_343")
            editor.remove("c12_344")
            editor.remove("c12_345")
            editor.remove("c12_346")
            editor.remove("c12_347")
            editor.remove("c12_348")
            editor.remove("c12_349")
            editor.remove("c12_350")
            editor.commit()


            if(doSpinner.selectedItem.toString()=="서울특별시"){            editor.putInt("c11_2",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="부산광역시"){            editor.putInt("c11_3",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="대구광역시"){            editor.putInt("c11_4",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="인천광역시"){            editor.putInt("c11_5",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="광주광역시"){            editor.putInt("c11_6",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="대전광역시"){            editor.putInt("c11_7",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="울산광역시"){            editor.putInt("c11_8",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="세종특별자치시"){            editor.putInt("c11_9",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="경기도"){            editor.putInt("c11_10",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="강원도"){            editor.putInt("c11_11",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="충청북도"){            editor.putInt("c11_12",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="충청남도"){            editor.putInt("c11_13",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="전라북도"){            editor.putInt("c11_14",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="전라남도"){            editor.putInt("c11_15",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="경상북도"){            editor.putInt("c11_16",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="경상남도"){            editor.putInt("c11_17",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(doSpinner.selectedItem.toString()=="제주특별자치도"){            editor.putInt("c11_18",1); editor.commit();editor.putString("first_four","done");editor.commit()}

            if(gooSpinner.selectedItem=="종로구"){editor.putInt("c12_100",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="중구"){editor.putInt("c12_101",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="용산구"){editor.putInt("c12_102",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="성동구"){editor.putInt("c12_103",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="광진구"){editor.putInt("c12_104",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="동대문구"){editor.putInt("c12_105",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="중랑구"){editor.putInt("c12_106",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="성북구"){editor.putInt("c12_107",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="강북구"){editor.putInt("c12_108",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="도봉구"){editor.putInt("c12_109",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="노원구"){editor.putInt("c12_110",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="은평구"){editor.putInt("c12_111",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="서대문구"){editor.putInt("c12_112",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="마포구"){editor.putInt("c12_113",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="양천구"){editor.putInt("c12_114",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="강서구"){editor.putInt("c12_115",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="구로구"){editor.putInt("c12_116",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="금천구"){editor.putInt("c12_117",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영등포구"){editor.putInt("c12_118",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="동작구"){editor.putInt("c12_119",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="관악구"){editor.putInt("c12_120",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="서초구"){editor.putInt("c12_121",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="강남구"){editor.putInt("c12_122",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="송파구"){editor.putInt("c12_123",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="강동구"){editor.putInt("c12_124",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="서구"){editor.putInt("c12_125",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="동구"){editor.putInt("c12_126",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영도구"){editor.putInt("c12_127",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="부산진구"){editor.putInt("c12_128",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="동래구"){editor.putInt("c12_129",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="남구"){editor.putInt("c12_130",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="북구"){editor.putInt("c12_131",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="해운대구"){editor.putInt("c12_132",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="사하구"){editor.putInt("c12_133",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="금정구"){editor.putInt("c12_134",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="연제구"){editor.putInt("c12_135",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="수영구"){editor.putInt("c12_136",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="사상구"){editor.putInt("c12_137",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="기장군"){editor.putInt("c12_138",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="수성구"){editor.putInt("c12_139",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="달서구"){editor.putInt("c12_140",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="달성군"){editor.putInt("c12_141",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="중구영종출장소"){editor.putInt("c12_142",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="중구용유출장소"){editor.putInt("c12_143",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="미추홀구"){editor.putInt("c12_144",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="연수구"){editor.putInt("c12_145",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="남동구"){editor.putInt("c12_146",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="부평구"){editor.putInt("c12_147",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="계양구"){editor.putInt("c12_148",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="서구검단출장"){editor.putInt("c12_149",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="강화군"){editor.putInt("c12_150",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="옹진군"){editor.putInt("c12_151",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="광산구"){editor.putInt("c12_152",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="유성구"){editor.putInt("c12_153",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="대덕구"){editor.putInt("c12_154",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="울주군"){editor.putInt("c12_155",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="수원시"){editor.putInt("c12_156",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="수원시 장안구"){editor.putInt("c12_157",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="수원시 권선구"){editor.putInt("c12_158",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="수원시 팔달구"){editor.putInt("c12_159",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="수원시 영통구"){editor.putInt("c12_160",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="성남시"){editor.putInt("c12_161",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="성남시 수정구"){editor.putInt("c12_162",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="성남시 중원구"){editor.putInt("c12_163",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="성남시 분당구"){editor.putInt("c12_164",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="의정부시"){editor.putInt("c12_165",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="안양시"){editor.putInt("c12_166",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="안양시 만안구"){editor.putInt("c12_167",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="안양시 동안구"){editor.putInt("c12_168",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="부천시"){editor.putInt("c12_169",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="광명시"){editor.putInt("c12_170",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="평택시"){editor.putInt("c12_171",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="송탄출장소"){editor.putInt("c12_172",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="안중출장소"){editor.putInt("c12_173",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="동두천시"){editor.putInt("c12_174",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="안산시"){editor.putInt("c12_175",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="안산시 상록구"){editor.putInt("c12_176",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="안산시 단원구"){editor.putInt("c12_177",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="고양시"){editor.putInt("c12_178",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="고양시 덕양구"){editor.putInt("c12_179",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="고양시 일산동구"){editor.putInt("c12_180",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="고양시 일산서구"){editor.putInt("c12_181",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="과천시"){editor.putInt("c12_182",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="구리시"){editor.putInt("c12_183",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="남양주시"){editor.putInt("c12_184",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="풍양출장소"){editor.putInt("c12_185",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="오산시"){editor.putInt("c12_186",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="시흥시"){editor.putInt("c12_187",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="군포시"){editor.putInt("c12_188",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="의왕시"){editor.putInt("c12_189",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="하남시"){editor.putInt("c12_190",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="용인시"){editor.putInt("c12_191",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="용인시 처인구"){editor.putInt("c12_192",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="용인시 기흥구"){editor.putInt("c12_193",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="용인시 수지구"){editor.putInt("c12_194",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="파주시"){editor.putInt("c12_195",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="이천시"){editor.putInt("c12_196",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="안성시"){editor.putInt("c12_197",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="김포시"){editor.putInt("c12_198",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="화성시"){editor.putInt("c12_199",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="화성시동부출장소"){editor.putInt("c12_200",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="화성시동탄출장소"){editor.putInt("c12_201",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="광주시"){editor.putInt("c12_202",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="양주시"){editor.putInt("c12_203",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="포천시"){editor.putInt("c12_204",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="여주시"){editor.putInt("c12_205",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="연천군"){editor.putInt("c12_206",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="가평군"){editor.putInt("c12_207",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="양평군"){editor.putInt("c12_208",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="춘천시"){editor.putInt("c12_209",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="원주시"){editor.putInt("c12_210",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="강릉시"){editor.putInt("c12_211",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="동해시"){editor.putInt("c12_212",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="태백시"){editor.putInt("c12_213",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="속초시"){editor.putInt("c12_214",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="삼척시"){editor.putInt("c12_215",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="홍천군"){editor.putInt("c12_216",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="횡성군"){editor.putInt("c12_217",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영월군"){editor.putInt("c12_218",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="평창군"){editor.putInt("c12_219",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="정선군"){editor.putInt("c12_220",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="철원군"){editor.putInt("c12_221",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="화천군"){editor.putInt("c12_222",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="양구군"){editor.putInt("c12_223",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="인제군"){editor.putInt("c12_224",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="고성군"){editor.putInt("c12_225",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="양양군"){editor.putInt("c12_226",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="청주시"){editor.putInt("c12_227",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="청주시 상당구"){editor.putInt("c12_228",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="청주시 서원구"){editor.putInt("c12_229",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="청주시 흥덕구"){editor.putInt("c12_230",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="청주시 청원구"){editor.putInt("c12_231",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="충주시"){editor.putInt("c12_232",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="제천시"){editor.putInt("c12_233",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="보은군"){editor.putInt("c12_234",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="옥천군"){editor.putInt("c12_235",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영동군"){editor.putInt("c12_236",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="증평군"){editor.putInt("c12_237",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="진천군"){editor.putInt("c12_238",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="괴산군"){editor.putInt("c12_239",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="음성군"){editor.putInt("c12_240",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="단양군"){editor.putInt("c12_241",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="천안시"){editor.putInt("c12_242",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="천안시 동남구"){editor.putInt("c12_243",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="천안시 서북구"){editor.putInt("c12_244",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="공주시"){editor.putInt("c12_245",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="보령시"){editor.putInt("c12_246",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="아산시"){editor.putInt("c12_247",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="서산시"){editor.putInt("c12_248",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="논산시"){editor.putInt("c12_249",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="계룡시"){editor.putInt("c12_250",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="당진시"){editor.putInt("c12_251",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="금산군"){editor.putInt("c12_252",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="부여군"){editor.putInt("c12_253",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="서천군"){editor.putInt("c12_254",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="청양군"){editor.putInt("c12_255",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="홍성군"){editor.putInt("c12_256",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="예산군"){editor.putInt("c12_257",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="태안군"){editor.putInt("c12_258",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="전주시"){editor.putInt("c12_259",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="전주시 완산구"){editor.putInt("c12_260",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="전주시 덕진구"){editor.putInt("c12_261",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="전주시효자출"){editor.putInt("c12_262",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="군산시"){editor.putInt("c12_263",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="익산시"){editor.putInt("c12_264",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="익산시함열출"){editor.putInt("c12_265",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="정읍시"){editor.putInt("c12_266",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="남원시"){editor.putInt("c12_267",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="김제시"){editor.putInt("c12_268",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="완주군"){editor.putInt("c12_269",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="진안군"){editor.putInt("c12_270",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="무주군"){editor.putInt("c12_271",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="장수군"){editor.putInt("c12_272",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="임실군"){editor.putInt("c12_273",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="순창군"){editor.putInt("c12_274",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="고창군"){editor.putInt("c12_275",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="부안군"){editor.putInt("c12_276",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="목포시"){editor.putInt("c12_277",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="여수시"){editor.putInt("c12_278",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="순천시"){editor.putInt("c12_279",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="나주시"){editor.putInt("c12_280",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="광양시"){editor.putInt("c12_281",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="담양군"){editor.putInt("c12_282",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="곡성군"){editor.putInt("c12_283",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="구례군"){editor.putInt("c12_284",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="고흥군"){editor.putInt("c12_285",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="보성군"){editor.putInt("c12_286",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="화순군"){editor.putInt("c12_287",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="장흥군"){editor.putInt("c12_288",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="강진군"){editor.putInt("c12_289",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="해남군"){editor.putInt("c12_290",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영암군"){editor.putInt("c12_291",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="무안군"){editor.putInt("c12_292",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="함평군"){editor.putInt("c12_293",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영광군"){editor.putInt("c12_294",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="장성군"){editor.putInt("c12_295",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="완도군"){editor.putInt("c12_296",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="진도군"){editor.putInt("c12_297",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="신안군"){editor.putInt("c12_298",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="포항시"){editor.putInt("c12_299",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="포항시 남구"){editor.putInt("c12_300",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="포항시 북구"){editor.putInt("c12_301",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="경주시"){editor.putInt("c12_302",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="김천시"){editor.putInt("c12_303",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="안동시"){editor.putInt("c12_304",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="구미시"){editor.putInt("c12_305",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영주시"){editor.putInt("c12_306",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영천시"){editor.putInt("c12_307",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="상주시"){editor.putInt("c12_308",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="문경시"){editor.putInt("c12_309",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="경산시"){editor.putInt("c12_310",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="군위군"){editor.putInt("c12_311",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="의성군"){editor.putInt("c12_312",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="청송군"){editor.putInt("c12_313",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영양군"){editor.putInt("c12_314",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="영덕군"){editor.putInt("c12_315",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="청도군"){editor.putInt("c12_316",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="고령군"){editor.putInt("c12_317",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="성주군"){editor.putInt("c12_318",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="칠곡군"){editor.putInt("c12_319",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="예천군"){editor.putInt("c12_320",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="봉화군"){editor.putInt("c12_321",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="울진군"){editor.putInt("c12_322",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="울릉군"){editor.putInt("c12_323",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="창원시"){editor.putInt("c12_324",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="창원시 의창구"){editor.putInt("c12_325",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="창원시 성산구"){editor.putInt("c12_326",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="창원시 마산합포구"){editor.putInt("c12_327",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="창원시 마산회원구"){editor.putInt("c12_328",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="창원시 진해구"){editor.putInt("c12_329",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="진주시"){editor.putInt("c12_330",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="통영시"){editor.putInt("c12_331",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="사천시"){editor.putInt("c12_332",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="사천남양출장"){editor.putInt("c12_333",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="김해시"){editor.putInt("c12_334",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="장유출장소"){editor.putInt("c12_335",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="밀양시"){editor.putInt("c12_336",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="거제시"){editor.putInt("c12_337",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="양산시"){editor.putInt("c12_338",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="양산시웅상출장소"){editor.putInt("c12_339",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="의령군"){editor.putInt("c12_340",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="함안군"){editor.putInt("c12_341",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="창녕군"){editor.putInt("c12_342",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="남해군"){editor.putInt("c12_343",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="하동군"){editor.putInt("c12_344",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="산청군"){editor.putInt("c12_345",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="함양군"){editor.putInt("c12_346",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="거창군"){editor.putInt("c12_347",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="합천군"){editor.putInt("c12_348",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="제주시"){editor.putInt("c12_349",1); editor.commit();editor.putString("first_four","done");editor.commit()}
            if(gooSpinner.selectedItem=="서귀포시"){editor.putInt("c12_350",1); editor.commit();editor.putString("first_four","done");editor.commit()}




            var intent = Intent(this, InputProfilFirstFiveActivity::class.java)
            startActivity(intent)
        }
    }
}