android
http://www.crystal-creation.com/software/technical-information/smart-phone/android/ui/event/listener.htmコード(java src)とレイアウトxmlによるOnClickListenerの設定が簡潔にまとめられていて分かりやすい。 コードによる登録 Button button = (Butt…
ポイントは、 レイアウトxmlによる独自レイアウト BaseAdapter継承のアダプタクラス android:onClick="〜" によるイベント登録 かな? activity_main.xml
http://y-anz-m.blogspot.jp/2011/01/android-sqline-database.html ↑このurlの写経で、dbにある単語をListViewに一覧表示します DbHelper perlで言うところのDBI。どのアプリであっても、同様になるはずです。 package jp.end0tknr.dbtest; import java.io.…
基本的な画面遷移 AndroidManifest.xml <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="jp.end0tknr.intenttest" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="15" /> </uses-sdk></manifest>
src/MenuTestActivity.java package jp.end0tknr.menutest; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.app.AlertDialog; public class MenuTestActivity extends Ac…
Linear(リニア)、Relative(相対)、Table(テーブル)、Grid(グリッド)、Tab(タブ)があり、次のurlには各レイアウトの画面キャプチャがあります。 http://developer.android.com/resources/tutorials/views/index.html リニアレイアウトにおけるres/layout/main…
クリックしたリストの内容をテキストボックスに表示します res/layout/main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > </linearlayout>
http://code.google.com/intl/ja/android/add-ons/google-apis/maps-api-signup.html jdk 1.7のkeytoolでは「あれ? MD5 MD5 finger printがない」 C:\>C:\"Program Files"\Java\jdk1.7.0_03\bin\keytool -list -keystore "C:\Users\endo\.android\debug.keys…