Page 930 - 3-2
P. 930

Intent intent = new Intent(getApplicationContext(),
                                                                                     MainActivity.class);
                                            PendingIntent pIntent = PendingIntent.getActivity
                                                                                (getApplicationContext()
                                                    , 0
                                                    , intent
                                                    , PendingIntent.FLAG_UPDATE_CURRENT);
                                            builder.setContentIntent(pIntent);
                                            manager.notify(1, builder.build());
                                        }
                                    }
                                } else {
                                    notFlag=0;
                                }
                            }


                            for(int i=0;i<ja1;i++){
                                if(fireData[1].equals(MainActivity.callval)){
                                    if(fireData[2].equals(MainActivity.room)){
                                        if(fireData[4].equals("1")){
                                            //textGas=" 감지되었습니다";
                                        }else; //{textGas=" 감지되지않았습니다";}
                                        if(fireData[5].equals("1")){
                                            //textSpark=" 감지되었습니다";
                                        }else; //{textSpark=" 감지되지않았습니다";}
                                        textTemp= String.valueOf(fireData[6]);
                                    }
                                }
                            }
                            Thread.sleep(100);


                        } catch (InterruptedException e) {
                            e.printStackTrace();
                        }
                    }
                }
            }




            * ListItem.java  코드


            package example.com.myapplication;


            import android.util.Log;
            import java.util.Vector;


                                                         - 930 -
   925   926   927   928   929   930   931   932   933   934   935