├── KawaHello ├── libs │ ├── .keepme │ └── kawa.jar ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── values │ │ └── strings.xml │ └── layout │ │ └── main.xml ├── make-and-send ├── project.properties ├── local.properties ├── AndroidManifest.xml ├── ant.properties ├── src │ └── kawa │ │ └── android │ │ └── hello.scm └── build.xml ├── LunarLander ├── libs │ ├── .keepme │ └── kawa.jar ├── res │ ├── drawable │ │ ├── lander_plain.png │ │ ├── lander_crashed.png │ │ ├── lander_firing.png │ │ └── app_lunar_lander.png │ ├── drawable-land │ │ └── earthrise.png │ ├── drawable-port │ │ └── earthrise.png │ ├── layout │ │ └── main.xml │ └── values │ │ └── strings.xml ├── make-and-send ├── project.properties ├── local.properties ├── AndroidManifest.xml ├── ant.properties └── build.xml ├── LearningAndroid-chapter10 ├── libs │ ├── .keepme │ └── kawa.jar ├── res │ ├── drawable │ │ ├── icon.png │ │ └── background.png │ ├── xml │ │ └── prefs.xml │ ├── layout │ │ ├── timeline.xml │ │ ├── row.xml │ │ └── status.xml │ ├── menu │ │ └── menu.xml │ └── values │ │ └── strings.xml ├── make-and-send ├── project.properties ├── local.properties ├── ant.properties ├── AndroidManifest.xml ├── build.xml └── src │ └── com │ └── zeroxab │ └── learningandroid │ └── yamba │ ├── collections_utils.scm │ └── Yamba.scm ├── LearningAndroid-chapter6 ├── libs │ ├── .keepme │ └── kawa.jar ├── res │ ├── drawable │ │ ├── icon.png │ │ └── background.png │ ├── values │ │ └── strings.xml │ └── layout │ │ └── status.xml ├── make-and-send ├── project.properties ├── local.properties ├── ant.properties ├── AndroidManifest.xml ├── src │ └── com │ │ └── zeroxab │ │ └── learningandroid │ │ └── yamba │ │ └── Yamba.scm └── build.xml ├── LearningAndroid-chapter7 ├── libs │ ├── .keepme │ └── kawa.jar ├── res │ ├── drawable │ │ ├── icon.png │ │ └── background.png │ ├── menu │ │ └── menu.xml │ ├── xml │ │ └── prefs.xml │ ├── values │ │ └── strings.xml │ └── layout │ │ └── status.xml ├── make-and-send ├── project.properties ├── local.properties ├── ant.properties ├── AndroidManifest.xml ├── build.xml └── src │ └── com │ └── zeroxab │ └── learningandroid │ └── yamba │ └── Yamba.scm ├── LearningAndroid-chapter8 ├── libs │ ├── .keepme │ └── kawa.jar ├── res │ ├── drawable │ │ ├── icon.png │ │ └── background.png │ ├── menu │ │ └── menu.xml │ ├── xml │ │ └── prefs.xml │ ├── values │ │ └── strings.xml │ └── layout │ │ └── status.xml ├── make-and-send ├── project.properties ├── local.properties ├── ant.properties ├── AndroidManifest.xml ├── build.xml └── src │ └── com │ └── zeroxab │ └── learningandroid │ └── yamba │ ├── collections_utils.scm │ └── Yamba.scm ├── LearningAndroid-chapter9 ├── libs │ ├── .keepme │ └── kawa.jar ├── res │ ├── drawable │ │ ├── icon.png │ │ └── background.png │ ├── menu │ │ └── menu.xml │ ├── xml │ │ └── prefs.xml │ ├── values │ │ └── strings.xml │ └── layout │ │ └── status.xml ├── make-and-send ├── project.properties ├── local.properties ├── ant.properties ├── AndroidManifest.xml ├── build.xml └── src │ └── com │ └── zeroxab │ └── learningandroid │ └── yamba │ ├── collections_utils.scm │ └── Yamba.scm ├── SpeedRead ├── libs │ └── kawa.jar ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── values │ │ └── strings.xml │ └── layout │ │ ├── main.xml │ │ └── player.xml ├── make-and-send ├── src │ └── zeroxab │ │ └── speedread │ │ └── speedread.java ├── local.properties ├── project.properties ├── ant.properties ├── proguard-project.txt ├── AndroidManifest.xml └── build.xml ├── libkawadroid ├── libs │ └── kawa.jar ├── local.properties ├── project.properties ├── build.xml └── src │ └── com │ └── zeroxab │ └── libkawadroid │ └── misc.scm ├── bin ├── start-emulator ├── colorize-adb-logcat ├── setup-kawa └── make-project └── README.org /KawaHello/libs/.keepme: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LunarLander/libs/.keepme: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/libs/.keepme: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LearningAndroid-chapter6/libs/.keepme: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LearningAndroid-chapter7/libs/.keepme: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LearningAndroid-chapter8/libs/.keepme: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LearningAndroid-chapter9/libs/.keepme: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /KawaHello/libs/kawa.jar: -------------------------------------------------------------------------------- 1 | ../../kawa/kawa.jar -------------------------------------------------------------------------------- /SpeedRead/libs/kawa.jar: -------------------------------------------------------------------------------- 1 | ../../kawa/kawa.jar -------------------------------------------------------------------------------- /LunarLander/libs/kawa.jar: -------------------------------------------------------------------------------- 1 | ../../kawa/kawa.jar -------------------------------------------------------------------------------- /libkawadroid/libs/kawa.jar: -------------------------------------------------------------------------------- 1 | ../../kawa/kawa.jar -------------------------------------------------------------------------------- /bin/start-emulator: -------------------------------------------------------------------------------- 1 | emulator -avd Test -qemu -sdl 2 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/libs/kawa.jar: -------------------------------------------------------------------------------- 1 | ../../kawa/kawa.jar -------------------------------------------------------------------------------- /LearningAndroid-chapter6/libs/kawa.jar: -------------------------------------------------------------------------------- 1 | ../../kawa/kawa.jar -------------------------------------------------------------------------------- /LearningAndroid-chapter7/libs/kawa.jar: -------------------------------------------------------------------------------- 1 | ../../kawa/kawa.jar -------------------------------------------------------------------------------- /LearningAndroid-chapter8/libs/kawa.jar: -------------------------------------------------------------------------------- 1 | ../../kawa/kawa.jar -------------------------------------------------------------------------------- /LearningAndroid-chapter9/libs/kawa.jar: -------------------------------------------------------------------------------- 1 | ../../kawa/kawa.jar -------------------------------------------------------------------------------- /LunarLander/res/drawable/lander_plain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LunarLander/res/drawable/lander_plain.png -------------------------------------------------------------------------------- /KawaHello/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/KawaHello/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /KawaHello/res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/KawaHello/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /KawaHello/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/KawaHello/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /LunarLander/res/drawable-land/earthrise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LunarLander/res/drawable-land/earthrise.png -------------------------------------------------------------------------------- /LunarLander/res/drawable-port/earthrise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LunarLander/res/drawable-port/earthrise.png -------------------------------------------------------------------------------- /LunarLander/res/drawable/lander_crashed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LunarLander/res/drawable/lander_crashed.png -------------------------------------------------------------------------------- /LunarLander/res/drawable/lander_firing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LunarLander/res/drawable/lander_firing.png -------------------------------------------------------------------------------- /SpeedRead/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/SpeedRead/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /SpeedRead/res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/SpeedRead/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /SpeedRead/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/SpeedRead/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /SpeedRead/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/SpeedRead/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /LearningAndroid-chapter6/res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter6/res/drawable/icon.png -------------------------------------------------------------------------------- /LearningAndroid-chapter7/res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter7/res/drawable/icon.png -------------------------------------------------------------------------------- /LearningAndroid-chapter8/res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter8/res/drawable/icon.png -------------------------------------------------------------------------------- /LearningAndroid-chapter9/res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter9/res/drawable/icon.png -------------------------------------------------------------------------------- /LunarLander/res/drawable/app_lunar_lander.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LunarLander/res/drawable/app_lunar_lander.png -------------------------------------------------------------------------------- /LearningAndroid-chapter10/res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter10/res/drawable/icon.png -------------------------------------------------------------------------------- /KawaHello/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | hello 4 | 5 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/res/drawable/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter10/res/drawable/background.png -------------------------------------------------------------------------------- /LearningAndroid-chapter6/res/drawable/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter6/res/drawable/background.png -------------------------------------------------------------------------------- /LearningAndroid-chapter7/res/drawable/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter7/res/drawable/background.png -------------------------------------------------------------------------------- /LearningAndroid-chapter8/res/drawable/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter8/res/drawable/background.png -------------------------------------------------------------------------------- /LearningAndroid-chapter9/res/drawable/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/android-kawa/HEAD/LearningAndroid-chapter9/res/drawable/background.png -------------------------------------------------------------------------------- /KawaHello/make-and-send: -------------------------------------------------------------------------------- 1 | adb shell kill $(adb shell ps|grep -i kawa.android|awk '{ print $2 }') 2 | ant debug && adb install -r bin/KawaHello-debug.apk && adb shell am start -a android.intent.action.MAIN kawa.android/.hello -------------------------------------------------------------------------------- /LunarLander/make-and-send: -------------------------------------------------------------------------------- 1 | adb shell kill $(adb shell ps|grep -i com.zeroxab.lunarlander|awk '{ print $2 }') 2 | ant debug && adb install -r bin/LunarLander-debug.apk && adb shell am start -a android.intent.action.MAIN com.zeroxab.lunarlander/.LunarLander -------------------------------------------------------------------------------- /SpeedRead/make-and-send: -------------------------------------------------------------------------------- 1 | adb shell kill $(adb shell ps|grep -i zeroxab.speedread|awk '{ print SpeedRead }') > /dev/null 2 | ant debug && adb install -r bin/SpeedRead-debug.apk && adb shell am start -a android.intent.action.MAIN zeroxab.speedread/.speedread 3 | -------------------------------------------------------------------------------- /SpeedRead/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | speedread 4 | loading ... 5 | location 6 | 7 | -------------------------------------------------------------------------------- /LearningAndroid-chapter6/make-and-send: -------------------------------------------------------------------------------- 1 | adb shell kill $(adb shell ps|grep -i com.zeroxab.learningandroid|awk '{ print $2 }') 2 | ant debug && adb install -r bin/LearningAndroid-debug.apk && adb shell am start -a android.intent.action.MAIN com.zeroxab.learningandroid.yamba/.StatusActivity -------------------------------------------------------------------------------- /LearningAndroid-chapter7/make-and-send: -------------------------------------------------------------------------------- 1 | adb shell kill $(adb shell ps|grep -i com.zeroxab.learningandroid|awk '{ print $2 }') 2 | ant debug && adb install -r bin/LearningAndroid-debug.apk && adb shell am start -a android.intent.action.MAIN com.zeroxab.learningandroid.yamba/.StatusActivity -------------------------------------------------------------------------------- /LearningAndroid-chapter8/make-and-send: -------------------------------------------------------------------------------- 1 | adb shell kill $(adb shell ps|grep -i com.zeroxab.learningandroid|awk '{ print $2 }') 2 | ant debug && adb install -r bin/LearningAndroid-debug.apk && adb shell am start -a android.intent.action.MAIN com.zeroxab.learningandroid.yamba/.StatusActivity -------------------------------------------------------------------------------- /LearningAndroid-chapter9/make-and-send: -------------------------------------------------------------------------------- 1 | adb shell kill $(adb shell ps|grep -i com.zeroxab.learningandroid|awk '{ print $2 }') 2 | ant debug && adb install -r bin/LearningAndroid-debug.apk && adb shell am start -a android.intent.action.MAIN com.zeroxab.learningandroid.yamba/.StatusActivity -------------------------------------------------------------------------------- /LearningAndroid-chapter7/res/menu/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/make-and-send: -------------------------------------------------------------------------------- 1 | adb shell kill $(adb shell ps|grep -i com.zeroxab.learningandroid|awk '{ print $2 }') 2 | ant debug && adb install -r bin/LearningAndroid-debug.apk && adb shell am start -a android.intent.action.MAIN com.zeroxab.learningandroid.yamba/.TimelineActivity 3 | # StatusActivity -------------------------------------------------------------------------------- /LearningAndroid-chapter6/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | LearningAndroid 4 | LearningAndroid 5 | Status Update 6 | Please enter your 140-character status 7 | Update 8 | 9 | -------------------------------------------------------------------------------- /KawaHello/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-17 12 | -------------------------------------------------------------------------------- /LunarLander/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-14 12 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-17 12 | -------------------------------------------------------------------------------- /LearningAndroid-chapter6/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-17 12 | -------------------------------------------------------------------------------- /LearningAndroid-chapter7/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-17 12 | -------------------------------------------------------------------------------- /LearningAndroid-chapter8/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-17 12 | -------------------------------------------------------------------------------- /LearningAndroid-chapter9/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-17 12 | -------------------------------------------------------------------------------- /SpeedRead/src/zeroxab/speedread/speedread.java: -------------------------------------------------------------------------------- 1 | package zeroxab.speedread; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | 6 | public class speedread extends Activity 7 | { 8 | /** Called when the activity is first created. */ 9 | @Override 10 | public void onCreate(Bundle savedInstanceState) 11 | { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.main); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /KawaHello/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /KawaHello/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked in Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/opt/android-sdk-update-manager 11 | -------------------------------------------------------------------------------- /LunarLander/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked in Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/opt/android-sdk-update-manager 11 | -------------------------------------------------------------------------------- /SpeedRead/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/opt/android-sdk-update-manager 11 | -------------------------------------------------------------------------------- /libkawadroid/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/opt/android-sdk-update-manager 11 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked in Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/opt/android-sdk-update-manager 11 | -------------------------------------------------------------------------------- /LearningAndroid-chapter6/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked in Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/opt/android-sdk-update-manager 11 | -------------------------------------------------------------------------------- /LearningAndroid-chapter7/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked in Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/opt/android-sdk-update-manager 11 | -------------------------------------------------------------------------------- /LearningAndroid-chapter8/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked in Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/opt/android-sdk-update-manager 11 | -------------------------------------------------------------------------------- /LearningAndroid-chapter9/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked in Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/opt/android-sdk-update-manager 11 | -------------------------------------------------------------------------------- /LearningAndroid-chapter8/res/menu/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /LearningAndroid-chapter9/res/menu/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /bin/colorize-adb-logcat: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | adb logcat | \ 4 | perl -p -e '$|=1; s/^.\/NetworkStats\(.*//g' | \ 5 | perl -p -e '$|=1; s/^V\//\e[01;30m/g' | # dark grey \ 6 | perl -p -e '$|=1; s/^I\//\e[00;32m/g' | # dark green \ 7 | perl -p -e '$|=1; s/^D\//\e[00;37m/g' | # white \ 8 | perl -p -e '$|=1; s/^W\//\e[01;31m/g' | # dark red \ 9 | perl -p -e '$|=1; s/^E\//\e[00;41m/g' | # red \ 10 | perl -p -e '$|=1; s/^F\//\e[00;41m/g' | # red \ 11 | perl -p -e '$|=1; s/^(.*?)\( *(.*?)\): +/\1,\2,/g' | \ 12 | awk -F, '{ printf "%30s %5s %s\033[00;37m\n", $1, $2, $3}' 13 | -------------------------------------------------------------------------------- /SpeedRead/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-17 15 | -------------------------------------------------------------------------------- /libkawadroid/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-17 15 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/res/xml/prefs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /LearningAndroid-chapter7/res/xml/prefs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /LearningAndroid-chapter8/res/xml/prefs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /LearningAndroid-chapter9/res/xml/prefs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /KawaHello/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /LunarLander/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/res/layout/timeline.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | 14 | 15 | -------------------------------------------------------------------------------- /KawaHello/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /LunarLander/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /SpeedRead/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked into Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /LearningAndroid-chapter6/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /LearningAndroid-chapter7/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /LearningAndroid-chapter8/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /LearningAndroid-chapter9/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /LearningAndroid-chapter7/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | LearningAndroid 4 | LearningAndroid 5 | 6 | Please enter your 140-character status 7 | Update 8 | 9 | Status Update 10 | Prefs 11 | Username 12 | Password 13 | API Root 14 | 15 | Enter your username 16 | Enter your password 17 | URL of Root API 18 | 19 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/res/menu/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | 11 | 13 | 14 | -------------------------------------------------------------------------------- /LearningAndroid-chapter6/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /SpeedRead/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /LearningAndroid-chapter8/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | LearningAndroid 4 | LearningAndroid 5 | 6 | Please enter your 140-character status 7 | Update 8 | 9 | Status Update 10 | Prefs 11 | Username 12 | Password 13 | API Root 14 | 15 | Stop 16 | Start 17 | 18 | Enter your username 19 | Enter your password 20 | URL of Root API 21 | 22 | -------------------------------------------------------------------------------- /LearningAndroid-chapter9/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | LearningAndroid 4 | LearningAndroid 5 | 6 | Please enter your 140-character status 7 | Update 8 | 9 | Status Update 10 | Prefs 11 | Username 12 | Password 13 | API Root 14 | 15 | Stop 16 | Start 17 | 18 | Enter your username 19 | Enter your password 20 | URL of Root API 21 | 22 | -------------------------------------------------------------------------------- /LearningAndroid-chapter7/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /LunarLander/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 15 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /LearningAndroid-chapter8/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /LearningAndroid-chapter9/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/res/layout/row.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 8 | 12 | 17 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /LunarLander/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Lunar Lander 4 | Start 5 | Stop 6 | Pause 7 | Resume 8 | Easy 9 | Medium 10 | Hard 11 | 12 | Lunar Lander\nPress Up To Play 13 | Paused\nPress Up To Resume 14 | Game Over\nPress Up To Play 15 | Success!\n 16 | in a row\nPress Up to Play 17 | 18 | Stopped 19 | Off Landing Pad 20 | Too Fast 21 | Bad Angle 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | LearningAndroid 4 | LearningAndroid 5 | 6 | Please enter your 140-character status 7 | Update 8 | 9 | Status Update 10 | Preferences 11 | Username 12 | Password 13 | API Root 14 | Timeline 15 | Purge 16 | 17 | Stop 18 | Start 19 | 20 | Enter your username 21 | Enter your password 22 | URL of Root API 23 | 24 | Enter username and password 25 | Data purged 26 | 27 | -------------------------------------------------------------------------------- /SpeedRead/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /LearningAndroid-chapter10/res/layout/status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 13 | 14 | 18 | 19 | 25 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /LearningAndroid-chapter6/res/layout/status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 13 | 14 | 18 | 19 | 25 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /LearningAndroid-chapter7/res/layout/status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 13 | 14 | 18 | 19 | 25 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /LearningAndroid-chapter8/res/layout/status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 13 | 14 | 18 | 19 | 25 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /LearningAndroid-chapter9/res/layout/status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 13 | 14 | 18 | 19 | 25 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /KawaHello/src/kawa/android/hello.scm: -------------------------------------------------------------------------------- 1 | (require 'android-defs) 2 | 3 | (define-namespace Log "class:android.util.Log") 4 | 5 | (activity hello1 6 | (on-create-view 7 | (Log:i "kawa" "i") 8 | (Log:d "kawa" "d") 9 | (Log:e "kawa" "e") 10 | (android.widget.TextView 11 | (this) 12 | text: "Hello, Android from Kawa Scheme!"))) 13 | 14 | (activity hello2 15 | (on-create-view 16 | (android.widget.LinearLayout 17 | (this) 18 | orientation: android.widget.LinearLayout:VERTICAL 19 | view: 20 | (android.widget.TextView 21 | (this) 22 | text: "Hello, Android from Kawa Scheme!") 23 | view: 24 | (android.widget.Button 25 | (this) 26 | text: "Click Me!" 27 | on-click-listener: (lambda (v) 28 | ((android.widget.Toast:makeText 29 | (this) 30 | "Clicked!" 31 | android.widget.Toast:LENGTH_LONG):show)))))) 32 | 33 | (activity hello 34 | (on-create-view 35 | (define mTts 36 | (android.speech.tts.TextToSpeech 37 | (this) 38 | (lambda (i) ()))) 39 | (android.widget.LinearLayout (this) 40 | orientation: android.widget.LinearLayout:VERTICAL 41 | view: 42 | (android.widget.TextView (this) 43 | text: "Enter the text to speak") 44 | view: 45 | (android.widget.EditText (this) 46 | id: 101) 47 | view: 48 | (android.widget.Button (this) 49 | text: "Speak!" 50 | on-click-listener: 51 | (lambda (v) 52 | (mTts:speak 53 | ((as 54 | ((this):findViewById 101)):getText) 55 | android.speech.tts.TextToSpeech:QUEUE_FLUSH 56 | #!null)))))) 57 | -------------------------------------------------------------------------------- /SpeedRead/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 |