안드로이드 연동 홈시스템 앱(졸업작품, 서버, 안드로이드, 졸업작품보고서 등 첨부)
닫기
  • 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
해당 자료는 8페이지 까지만 미리보기를 제공합니다.
8페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

안드로이드 연동 홈시스템 앱(졸업작품, 서버, 안드로이드, 졸업작품보고서 등 첨부)에 대한 보고서 자료입니다.

목차

1. 모바일 앱
- MainActivity
- MainPage
- ToastHandler
- ManuActivity
- 각종 사운드 및 그림들

자바서버
- Serialtest.java

스케치코드
- 아두이노 센싱을위한 스케치 코드

본문내용

package com.example.homenavigation;

import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;

import android.R.integer;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.telephony.gsm.SmsManager;
import android.text.Layout;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends Activity implements Runnable {


static TextView et1,stTv;
static Button exBt;
static TextView tv1, tv2, tv3, tv4, tv5, tv6, tv7;
ImageButton exitBt, setBt, previusbt;
static String serverName = "IP Address";
static int port = 9206;
//boolean isokh = false;

Handler handler;
String tum = ""; // 습도
String temp = ""; // 온도
String motion = ""; // 인체감지
String fire = ""; // 화염감지
String gas = ""; // 가스감지
static int customTum;
static int customTemp;

static boolean chkAlertAll, chkAlertFire, chkAlertGas, chkAlertMan;
static boolean chkChild, chkPregnant, chkCustomT=false;
static ManuActivity ma;
static ImageButton networkStBt;
static MediaPlayer mp, mp_fire_event, mp_gas_event, mp_man_event;
static MediaPlayer mp_child_temp_d, mp_child_temp_u, mp_child_tum_d, mp_child_tum_u;
static MediaPlayer mp_child_temp_d_tum_d, mp_child_temp_u_tum_u, mp_child_temp_d_tum_u, mp_child_temp_u_tum_d;
static MediaPlayer mp_preg_temp_d, mp_preg_temp_u, mp_preg_tum_d, mp_preg_tum_u;
static MediaPlayer mp_preg_temp_d_tum_d, mp_preg_temp_u_tum_u, mp_preg_temp_d_tum_u, mp_preg_temp_u_tum_d;
static InputStream inStream = null;
static EditText etIp, etPort;
static String strIp;
static int strPort;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);
tv1 = (TextView)findViewById(R.id.tv1);
tv2 = (TextView)findViewById(R.id.tv2);
tv3 = (TextView)findViewById(R.id.tv3);
tv4 = (TextView)findViewById(R.id.tv4);
tv5 = (TextView)findViewById(R.id.tv5);
tv6 = (TextView)findViewById(R.id.tv6);
tv7 = (TextView)findViewById(R.id.tv7);
previusbt = (ImageButton)findViewById(R.id.previusBt);
networkStBt = (ImageButton)findViewById(R.id.networkStBt);

MainActivity t1 = new MainActivity();
Thread tt1 = new Thread(t1);
tt1.start();

mp_fire_event = MediaPlayer.create(getApplicationContext(), R.raw.fire_event);
mp_gas_event = MediaPlayer.create(getApplicationContext(), R.raw.gas_event);
mp_man_event = MediaPlayer.create(getApplicationContext(), R.raw.man_event);

mp_child_temp_d = MediaPlayer.create(getApplicationContext(), R.raw.child_temp_d);
mp_child_temp_u = MediaPlayer.create(getApplicationContext(), R.raw.child_temp_u);
mp_child_tum_d = MediaPlayer.create(getApplicationContext(), R.raw.child_tum_d);
mp_child_tum_u = MediaPlayer.create(getApplicationContext(), R.raw.child_tum_u);
mp_child_temp_d_tum_d = MediaPlayer.create(getApplicationContext(), R.raw.child_temp_d_tum_d);
mp_child_temp_u_tum_u = MediaPlayer.create(getApplicationContext(), R.raw.child_temp_u_tum_u);
mp_child_temp_d_tum_u = MediaPlayer.create(getApplicationContext(), R.raw.child_temp_d_tum_u);
mp_child_temp_u_tum_d = MediaPlayer.create(getApplicationContext(), R.raw.child_temp_u_tum_d);

mp_preg_temp_d = MediaPlay
  • 가격5,000
  • 페이지수25페이지
  • 등록일2015.12.07
  • 저작시기2015.12
  • 파일형식압축파일(zip)
  • 자료번호#989544
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니