Page 656 - 2
P. 656

Putch(*str++);
            }
            char Getch()
            {                                    // 데이터가 들어44     왔을때 UDR     반환
                 while(!(UCSR0A & 0x80));
                 return UDR0;
            }


            나-2. 안드로이드
            <?xml version="1.0" encoding="utf-8"?>
            <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:app="http://schemas.android.com/apk/res-auto"
                xmlns:tools="http://schemas.android.com/tools"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                tools:context="com.example.jbts201605.today_weather.MainActivity">


                <TextView
                    android:id = "@+id/tv_WeatherInfo"
                    android:text=" 오늘의 날씨"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content" />


            </ScrollView>


            package com.example.jbts201605.today_weather;


            import android.app.Activity;
            import android.content.ContentValues;
            import android.content.Intent;
            import android.os.Message;
            import android.support.v7.app.AppCompatActivity;
            import android.os.Bundle;
            import android.util.Log;
            import android.view.View;
            import android.widget.Button;
            import android.widget.ImageButton;
            import android.widget.TextView;


            import java.util.ArrayList;
            import android.os.Handler;
            import android.widget.Toast;


            public class MainActivity extends AppCompatActivity {
                public static final int THREAD_HANDLER_SUCCESS_INFO = 1;


                                                         - 656 -
   651   652   653   654   655   656   657   658   659   660   661