<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://shiyoka.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://shiyoka.com/feed.php">
        <title>ClownWiki - android:development</title>
        <description></description>
        <link>https://shiyoka.com/</link>
        <image rdf:resource="https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-08T13:25:09+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=android:development:annotation&amp;rev=1739713982&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=android:development:border&amp;rev=1739713982&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=android:development:cui_db&amp;rev=1739713982&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=android:development:link&amp;rev=1739713982&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=android:development:listview&amp;rev=1739713982&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=android:development:memo&amp;rev=1739713982&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=android:development:onclick&amp;rev=1739713982&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=android:development:sample001&amp;rev=1739713982&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=android:development:sample002&amp;rev=1739713982&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>ClownWiki</title>
        <link>https://shiyoka.com/</link>
        <url>https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://shiyoka.com/doku.php?id=android:development:annotation&amp;rev=1739713982&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>annotation</title>
        <link>https://shiyoka.com/doku.php?id=android:development:annotation&amp;rev=1739713982&amp;do=diff</link>
        <description>アノテーション

@Deprecated

その要素の利用がもはや推奨されないときに使う。

@Override

メソッドがスーパークラスにある宣言や実装をオーバーライドしているときに記述。

@SuppressWarnings</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=android:development:border&amp;rev=1739713982&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>border</title>
        <link>https://shiyoka.com/doku.php?id=android:development:border&amp;rev=1739713982&amp;do=diff</link>
        <description>border（罫線）を付ける

Androidのデザインでは標準でborderはない。
そこで、デザインを作ってはめ込むことに。

border.xml


&lt;shape xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
    &lt;!-- 背景を透過する --&gt;
    &lt;solid
        android:color=&quot;#00000000&quot;
        /&gt;
    &lt;!-- borderを付ける --&gt;
    &lt;stroke
        android:width=&quot;1dp&quot;
        android:color=&quot;#CCCCCC&quot; /&gt;
    &lt;!-- セル内の位置調整 --&gt;
    &lt;padding
        android:left=&quot;5dp&quot;
        android:top=&quot;2dp&quot;
        android:right=&quot;2dp&quot;
        android:bottom=&quot;2dp&quot; /&gt;
&lt;/shape&gt;…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=android:development:cui_db&amp;rev=1739713982&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>cui_db</title>
        <link>https://shiyoka.com/doku.php?id=android:development:cui_db&amp;rev=1739713982&amp;do=diff</link>
        <description>CUIでデータベース操作

前提：エミュレータが起動している必要がある。


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\&gt;C:\AndroSDK\android-sdk-windows\platform-tools\
adb.exe shell
# cd data/data/【プロジェクト作成時に指定したPackage name】
cd data/data/【プロジェクト作成時に指定したPackage name】
# ls
ls
lib
databases
files
# cd databases
cd databases
# ls
ls
【DB名】
# sqlite3 【DB名】
sqlite3 【DB名】
SQLite version 3.6.22
Enter &quot;.help&quot; for instructions
Enter SQL statements terminated with a &quot;;&quot;
sqlite&gt; .tables
.tables
android_…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=android:development:link&amp;rev=1739713982&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>link</title>
        <link>https://shiyoka.com/doku.php?id=android:development:link&amp;rev=1739713982&amp;do=diff</link>
        <description>Link

Androidをx86パソコンで動かしてみよう(Android 2.2/2.3編)
&lt;http://itpro.nikkeibp.co.jp/article/COLUMN/20110413/359397/?ST=oss&gt;</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=android:development:listview&amp;rev=1739713982&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>listview</title>
        <link>https://shiyoka.com/doku.php?id=android:development:listview&amp;rev=1739713982&amp;do=diff</link>
        <description>ListViewのデザインを手軽に変更する

main.xml

全体の枠となるListViewを定義


&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:orientation=&quot;vertical&quot;
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;fill_parent&quot;
    &gt;
    &lt;ListView
        android:id=&quot;@+id/listview_id&quot;
        android:layout_width=&quot;fill_parent&quot;
        android:layout_height=&quot;wrap_content&quot;
        /&gt;
&lt;/LinearLayout&gt;</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=android:development:memo&amp;rev=1739713982&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>memo</title>
        <link>https://shiyoka.com/doku.php?id=android:development:memo&amp;rev=1739713982&amp;do=diff</link>
        <description>雑記

dip、sp、pix

デザインのサイズ指定に使われるのが dip（dpも可）。
画面サイズ（解像度）に応じて表示する大きさが変わるので、どの解像度で見てもデザイン（イメージ）が崩れにくい。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=android:development:onclick&amp;rev=1739713982&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>onclick</title>
        <link>https://shiyoka.com/doku.php?id=android:development:onclick&amp;rev=1739713982&amp;do=diff</link>
        <description>onClickでエラー

症状

Eclipse（Pleiades All in One）でAndroidの開発を行っていると、以下のようなエラーに遭遇することがある。

コード抜粋


btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
    // TODO Auto-generated method stub
    finish();
}</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=android:development:sample001&amp;rev=1739713982&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>sample001</title>
        <link>https://shiyoka.com/doku.php?id=android:development:sample001&amp;rev=1739713982&amp;do=diff</link>
        <description>サンプルソース

画面遷移、パラメータ取得、DB検索、セル風表示、etcのサンプル


package ui.flow03;

import java.util.ArrayList;
import java.util.HashMap;

import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;

public class SecActivit…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=android:development:sample002&amp;rev=1739713982&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>sample002</title>
        <link>https://shiyoka.com/doku.php?id=android:development:sample002&amp;rev=1739713982&amp;do=diff</link>
        <description>単純な2画面の遷移

AndroidManifest.xml

2画面目のアクティビティを登録する


&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;com.moonlight_aska.android.mainactivity&quot;
      android:versionCode=&quot;1&quot;
      android:versionName=&quot;1.0&quot;&gt;
    &lt;uses-sdk android:minSdkVersion=&quot;8&quot; /&gt;

    &lt;application android:icon=&quot;@drawable/icon&quot; android:label=&quot;@string/app_name&quot;&gt;
        &lt;activity android:name=&quot;.MainActivity&quot;
                  android:label=&quot;@string/app_name…</description>
    </item>
</rdf:RDF>
