This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.gpsexample" | |
| android:versionCode="1" | |
| android:versionName="1.0" > | |
| <uses-sdk | |
| android:minSdkVersion="8" | |
| android:targetSdkVersion="17" /> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package com.example.listviewsample; | |
| /** | |
| * カスタマイズしたリストのビューは、タイトルや本文、画像のURLなど複数のデータを保持している。 | |
| * データをやりとりするためのクラス Data Transfer Object を利用すると良い。 | |
| * @author shikajiro | |
| * | |
| */ | |
| public class ArticleDTO { | |
| private String title; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | InputStream in = null; | |
| try { | |
| // ②feedjsonを読み込む | |
| in = getAssets().open("feed.json"); | |
| BufferedReader buff = new BufferedReader(new InputStreamReader(in)); | |
| StringBuilder bld = new StringBuilder(); | |
| String line = null; | |
| while ((line = buff.readLine()) != null) { | |
| bld.append(line); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.dhw" | |
| android:versionCode="1" | |
| android:versionName="1.0" > | |
| <!-- インターネット接続に必須--> | |
| <uses-permission android:name="android.permission.INTERNET"/> | |
| <uses-sdk | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package com.example.study0930; | |
| import android.app.Activity; | |
| import android.app.ProgressDialog; | |
| import android.os.AsyncTask; | |
| import android.os.Bundle; | |
| import android.view.Menu; | |
| import android.view.View; | |
| import android.view.View.OnClickListener; | |
| import android.widget.Button; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package com.example.study0930; | |
| import android.app.Activity; | |
| import android.app.ProgressDialog; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.util.Log; | |
| import android.view.Menu; | |
| import android.view.View; | |
| import android.view.View.OnClickListener; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | try { | |
| //②feedjsonを読み込む | |
| InputStream in = getAssets().open("feed.json"); | |
| BufferedReader buff = | |
| new BufferedReader(new InputStreamReader(in)); | |
| StringBuilder bld = new StringBuilder(); | |
| String line = null; | |
| while((line = buff.readLine()) != null){ | |
| bld.append(line); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical" | |
| tools:context=".MainActivity" > | |
| <Button | |
| android:layout_width="200dp" | |
| android:layout_height="wrap_content" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class Homework { | |
| public static void main(String[] args) { | |
| int[] array = new int[30]; | |
| for (int i = 0; i < 30; i++) { | |
| array[i] = i + 1; | |
| } | |
| int total = 0; | |
| for (int i = 0; i < array.length; i++) { | |
| total += array[i]; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import java.util.Arrays; | |
| public class HomeWork { | |
| public static void main(String[] args) { | |
| int[] numbers = {43, 23, 45, 11, 10982}; | |
| int index = 0; | |
| //検索する前に必ずソート(昇順で並び替え)しておく必要がある。 |