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

if ( cursor.getCount() !=  0) {
                            cursor.close();
                            db.close();
                            return  false;
                       }
                       else {
                            cursor.close();
                            db.close();
                            return  true;
                       }
                 }
            }       //데이터가  비어있는지  확인.(기억  안남)




            나.  DataBase  Activity


            package  com.example.jbts_22.clientsocket;


            import  android.app.Activity;

            import  android.os.Bundle;
            import  android.support.v7.app.AppCompatActivity;
            import  android.view.View;
            import  android.view.ViewGroup;

            import  android.widget.TableLayout;
            import  android.widget.TableRow;
            import  android.widget.TextView;


            import  org.joda.time.DateTime;
            import  org.joda.time.DateTimeZone;

            import  org.joda.time.JodaTimePermission;


            import  java.util.ArrayList;



            /**
            *  Created  by  JBTS-22  on  2016-11-12.
            */


            public  class  DatabaseActivity  extends  AppCompatActivity  {






                                                         -  256  -
   258   259   260   261   262   263   264   265   266   267   268