Page 375 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 375

// Handle  action bar  item  clicks here. The  action  bar  will
                  //  automatically  handle  clicks  on  the  Home/Up  button,  so  long
                  // as  you  specify  a  parent activity  in  AndroidManifest.xml.

                       int  id  =  item.getItemId();
                       if  (id  ==  R.id.action_settings)  {
                             return  true;
                       }
                       return  super.onOptionsItemSelected(item);
                 }


            /**
            *  A  placeholder  fragment  containing  a  simple  view.
            */
                  public  static  class  PlaceholderFragment  extends  Fragment  {


                       public  PlaceholderFragment()  {
                       }


                       @Override
                       public  View  onCreateView(LayoutInflater  inflater,  ViewGroup  container,
                       Bundle  savedInstanceState) {
                            View  rootView =  inflater.inflate(R.layout.fragment_write,
                             container,  false);
                             return  rootView;
                       }
                 }


            /************************************
            *  여기서부턴  NFC  관련  메소드
            ************************************/
                  @Override
                  protected  void  onPause()  {
                       if  (nfcAdapter  !=  null)  {
                             nfcAdapter.disableForegroundDispatch(this);

                       }
                       super.onPause();
                 }


                  @Override
                  protected  void  onResume()  {



                                                         -  368  -
   370   371   372   373   374   375   376   377   378   379   380