<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>simple blog</title>
	<atom:link href="http://www.simple-sys.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simple-sys.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 15 Jan 2012 20:34:54 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Android端末で夏祭りの出店の会計システムを構築</title>
		<link>http://www.simple-sys.com/blog/2011/06/27/484/</link>
		<comments>http://www.simple-sys.com/blog/2011/06/27/484/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 03:15:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=484</guid>
		<description><![CDATA[息子が通っている保育園で夏祭りがありました。 保育園では、「父母の会」ってのがありまして。まぁいわゆるPTA的なものなんですけど、園内で行われるいろいろな行事に結構かかわっていて。。。 まぁ、正直面倒な面はあるんですけど <a href='http://www.simple-sys.com/blog/2011/06/27/484/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>息子が通っている保育園で夏祭りがありました。</p>
<p>保育園では、「父母の会」ってのがありまして。まぁいわゆるPTA的なものなんですけど、園内で行われるいろいろな行事に結構かかわっていて。。。</p>
<p>まぁ、正直面倒な面はあるんですけど、ここは子供たちが楽しみにしてるので、がんばろうかと。</p>
<p>で、今年、うちは夏祭りの係になりまして。うちのクラスは「パン・ジュース・ゼリー」の販売をすることに。毎年同じような内容なんですけど（＾＾；</p>
<p>業者にパンやジュースを発注したり、ゼリーを袋に詰めたり、事前注文で受け付けた商品を家族ごとに袋詰めしたり。。。まぁ、この辺はアナログな作業なんで、人手さえあればなんとかなるんですが、、、</p>
<p>問題は、当日にテントで販売する際の会計。<br />
その場で注文を受け付け、計算し、会計する形になるんですけど、、、商品アイテムは以下の通り。</p>
<table border="1">
<tr>
<th>ジュース</td>
<td align="right">80円</td>
</tr>
<tr>
<th>パン単品</td>
<td align="right">100円</td>
</tr>
<tr>
<th>パン詰め合わせ</td>
<td align="right">400円</td>
</tr>
<tr>
<th>ゼリー</td>
<td align="right">50円</td>
</tr>
</table>
<p>これをその場ですぐに計算して、会計しなきゃならないんですが、暗算は・・・（＾＾；電卓を使うにも単価が違うし、、その場でお釣りも計算して渡さなきゃいけないし。。。<br />
前年の実績から、当日はお店にたくさんのお客さんが殺到し、続々と購入されるということなので、会計をスムーズにしないとならない。。。</p>
<p>ということで、ここは一つ、Androidでシステムを作ってしまおうと、、、当日の朝3時に思いつき（＾＾；1時間ほどで作っちゃいました。</p>
<p>「会計システム」なんて大げさな書き方しましたが、実際はこの夏祭り用に特化した電卓を作るだけのものです。<br />
会計内容を記録したり、レシートを発行したり、、、やろうと思えばできますが、今回は時間もないので、会計補助システム的な位置づけで作りました。</p>
<p>作成する際に気をつけたのは、「いかにユーザーインターフェースを単純にするか？」<br />
余計な機能は設けず、機械が得意でない人でも、ちょっと説明すればすぐ使えるように心がけました。</p>
<p>画面は以下のような感じ。<br />
<a href="http://www.simple-sys.com/blog/2011/06/27/484/natumaturi/" rel="attachment wp-att-485"><img src="http://www.simple-sys.com/blog/wp-content/uploads/2011/06/natumaturi.png" alt="" title="natumaturi" width="480" height="800" class="alignnone size-full wp-image-485" /></a></p>
<p>動作は以下の画像をクリックすると動画で確認できます。<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/rpzl3VqmaZI?hl=ja&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/rpzl3VqmaZI?hl=ja&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><br />
ボタンは極力少なくし、操作方法は以下のように説明しました。</p>
<p>・注文があった商品の数を「＋」ボタン「－」ボタンで調整してください<br />
・赤い文字が合計金額です。下にお釣りの情報が出ます。<br />
・会計が終わったら「クリア」ボタンを押してください。</p>
<p>これなら誰でも使えるかな？ということで。</p>
<p>・預かり金を入力する<br />
・商品の個数を入力する</p>
<p>などの機能は、ソフトウェアキーボードを出さないとできないので、やめておきました。<br />
なにより素早く会計をするためなので、、、</p>
<p>実際に使ってみて、初めて触ってもらってもすぐに使い方を理解していただき、非常にスムーズに会計処理が行えました（＾＾）</p>
<p>プログラムそのものをアップロードしておきます。商品名や価格は組み込みで作ってますので、他では使えませんが（＾＾；</p>
<p><a href="/natumaturi.apk" target="_blank">natumaturi.apkのダウンロード</a></p>
<p>ご希望があれば、このプログラムを発展させて<br />
・商品や価格を編集できるようにしたもの<br />
・会計結果を端末に保存したり、通信してサーバーに残したりする<br />
・レシートをその場で発行する<br />
などしたものも提供することも可能です。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2011/06/27/484/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excelでメールを受信して添付ファイルの画像をシートに張り付ける</title>
		<link>http://www.simple-sys.com/blog/2011/04/02/469/</link>
		<comments>http://www.simple-sys.com/blog/2011/04/02/469/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 10:09:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VBAのお勉強]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=469</guid>
		<description><![CDATA[タイトルまんまですが（＾＾； http://www.simple-sys.com/blog/mailtorikomi/ のコメントでいただきました内容について、サンプルで作ってみました。 BSMTP.DLLは今回も必要と <a href='http://www.simple-sys.com/blog/2011/04/02/469/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>タイトルまんまですが（＾＾；<br />
<a href="http://www.simple-sys.com/blog/mailtorikomi/" target="_blank">http://www.simple-sys.com/blog/mailtorikomi/</a><br />
のコメントでいただきました内容について、サンプルで作ってみました。<br />
BSMTP.DLLは今回も必要となります。上記の記事をご参考にインストールしてください。<br />
<img class="alignnone size-full wp-image-470" title="image1" src="http://www.simple-sys.com/blog/wp-content/uploads/2011/04/image1.gif" alt="" width="285" height="181" /><br />
設定する内容はこんな感じです。<br />
メールを受信するとサーバー内の<span style="color: #ff6600;"><strong>すべてのメールを削除</strong></span>してしまいますので、注意してください（受信対象メールであろうが無かろうが、添付ファイルがあろうが無かろうがです。）</p>
<p>テスト専用のメールアカウントを作成してお試しください。<br />
「ダウンロード実行」のボタンを押すと<br />
<img src="http://www.simple-sys.com/blog/wp-content/uploads/2011/04/image2.gif" alt="" title="image2" width="644" height="143" class="alignnone size-full wp-image-471" /><br />
このように受信したメールを一覧で表示し、添付ファイルがあった場合は、その１つ目のデータを貼り付けます。</p>
<p>添付ファイルが複数ある場合や、画像ファイルではない場合、HTMLメールなどには一切対応していません。また、エラー処理も手抜きで作っていますので、実際にお使いになる際は、プログラムを修正して使ってください。</p>
<p>お約束ですが、このプログラムを使った事による一切の保証はございません。ご了承ください。<br />
以下のリンクからダウンロードしてください。<br />
<a href='http://www.simple-sys.com/blog/2011/04/02/469/phototorikomi/' rel='attachment wp-att-472'>phototorikomi.xls</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2011/04/02/469/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>androidで絵本アプリ：いきなり完成版</title>
		<link>http://www.simple-sys.com/blog/2011/02/25/464/</link>
		<comments>http://www.simple-sys.com/blog/2011/02/25/464/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 06:51:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=464</guid>
		<description><![CDATA[Javaど素人の自分がなんとか作り上げました（＾＾； まず、本体のmokomokomoko.java PLAIN TEXT JAVA: package com.simple_sys.Mokomokomoko; &#038;nbsp <a href='http://www.simple-sys.com/blog/2011/02/25/464/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Javaど素人の自分がなんとか作り上げました（＾＾；<br />
まず、本体のmokomokomoko.java</p>
<div class="igBar"><span id="ljava-3"><a href="#" onclick="javascript:showPlainTxt('java-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-3">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">package com.<span style="color: #006600;">simple_sys</span>.<span style="color: #006600;">Mokomokomoko</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.app.Activity;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.os.Bundle;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.view.Window;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Mokomokomoko <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/** Called when the activity is first created. */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; @Override</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #993333;">void</span> onCreate<span style="color: #66cc66;">&#40;</span>Bundle savedInstanceState<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; super.<span style="color: #006600;">onCreate</span><span style="color: #66cc66;">&#40;</span>savedInstanceState<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; requestWindowFeature<span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AWindow+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Window</span></a>.<span style="color: #006600;">FEATURE_NO_TITLE</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; setContentView<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> MokoView<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
どこぞのサンプルをほぼまる写し・・・（＾＾；</p>
<p>続いて、上記から呼ばれる、MokoViewクラス</p>
<div class="igBar"><span id="ljava-4"><a href="#" onclick="javascript:showPlainTxt('java-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-4">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">package com.<span style="color: #006600;">simple_sys</span>.<span style="color: #006600;">Mokomokomoko</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.app.Activity;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.app.AlertDialog;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.content.res.Resources;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.content.Context;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.content.DialogInterface;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.graphics.Bitmap;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.graphics.BitmapFactory;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.graphics.Canvas;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.graphics.Color;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.graphics.Rect;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.media.MediaPlayer;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.view.View;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.view.MotionEvent;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.util.Log;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">import android.media.MediaPlayer;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> MokoView <span style="color: #000000; font-weight: bold;">extends</span> <a href="http://www.google.com/search?q=allinurl%3AView+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">View</span></a> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> Bitmap image;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #993333;">int</span> max=<span style="color: #cc66cc;color:#800000;">17</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #993333;">int</span> page=<span style="color: #cc66cc;color:#800000;">1</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> Resources r;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?q=allinurl%3AString+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">String</span></a> pkgname;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> MediaPlayer player;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #993333;">int</span> touchStart;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #993333;">int</span> touchEnd;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> MokoView<span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AContext+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Context</span></a> context<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; super<span style="color: #66cc66;">&#40;</span>context<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; setBackgroundColor<span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AColor+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Color</span></a>.<span style="color: #006600;">WHITE</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; r=context.<span style="color: #006600;">getResources</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; pkgname=context.<span style="color: #006600;">getPackageName</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; image=BitmapFactory.<span style="color: #006600;">decodeResource</span><span style="color: #66cc66;">&#40;</span>r,getResources<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">getIdentifier</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"moko"</span>+page, <span style="color: #ff0000;">"drawable"</span>, pkgname<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; setFocusable<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; @Override</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #993333;">void</span> onDraw<span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3ACanvas+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Canvas</span></a> canvas<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">int</span> w=image.<span style="color: #006600;">getWidth</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">int</span> h=image.<span style="color: #006600;">getHeight</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Rect src=<span style="color: #000000; font-weight: bold;">new</span> Rect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">0</span>,w,h<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Rect dst=<span style="color: #000000; font-weight: bold;">new</span> Rect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">0</span>,getWidth<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>,getHeight<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; canvas.<span style="color: #006600;">drawBitmap</span><span style="color: #66cc66;">&#40;</span>image,src,dst,<span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//メディアファイルの再生</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player=MediaPlayer.<span style="color: #006600;">create</span><span style="color: #66cc66;">&#40;</span>getContext<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, getResources<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">getIdentifier</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"moko"</span>+page+<span style="color: #ff0000;">"s"</span>, <span style="color: #ff0000;">"raw"</span>, pkgname<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">prepare</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.google.com/search?q=allinurl%3AException+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Exception</span></a> e<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">seekTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; player.<span style="color: #006600;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; @Override</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #993333;">boolean</span> onTouchEvent<span style="color: #66cc66;">&#40;</span>MotionEvent event<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">getAction</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>==MotionEvent.<span style="color: #006600;">ACTION_DOWN</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #808080; font-style: italic;">//押された。押された時点での位置を取得</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; touchStart=<span style="color: #66cc66;">&#40;</span><span style="color: #993333;">int</span><span style="color: #66cc66;">&#41;</span>event.<span style="color: #006600;">getX</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">getAction</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>==MotionEvent.<span style="color: #006600;">ACTION_UP</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #808080; font-style: italic;">//離された</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; touchEnd=<span style="color: #66cc66;">&#40;</span><span style="color: #993333;">int</span><span style="color: #66cc66;">&#41;</span>event.<span style="color: #006600;">getX</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>touchStart&gt;touchEnd<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #808080; font-style: italic;">//右から左に指が移動した（次のページへめくった）</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">page</span>+=<span style="color: #cc66cc;color:#800000;">1</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">page</span>&gt;this.<span style="color: #006600;">max</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">page</span>=<span style="color: #cc66cc;color:#800000;">1</span>;<span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #808080; font-style: italic;">//左から右に指が移動した（前のページをめくった）</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">page</span>-=<span style="color: #cc66cc;color:#800000;">1</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">page</span>==<span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">page</span>=<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">max</span>;<span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; image=BitmapFactory.<span style="color: #006600;">decodeResource</span><span style="color: #66cc66;">&#40;</span>r,getResources<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">getIdentifier</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"moko"</span>+page, <span style="color: #ff0000;">"drawable"</span>, pkgname<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; invalidate<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
一応、指でめくる機能はつけました。<br />
あと、ページが表示されると同時に音声もなるようにしています。</p>
<p>画像と音声の情報ですが、本当はSDカードに入れて、簡単に入れ替えられるようにしたかったのですが、ちょっと力つきまして（＾＾；アプリケーションの中に埋め込む形になっています。<br />
エラー処理とか手抜きまくりとは思いますが、とりあえず自分で作ったアプリがandoroid上で動くという目的は達成しました。</p>
<p>肝心の息子の反応は・・・今は、もこもこもこより電車の絵本に夢中・・・　f^_^;<br />
次は電車アプリか？ (^_^;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2011/02/25/464/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>androidで絵本アプリ:ADTのインストール</title>
		<link>http://www.simple-sys.com/blog/2010/10/20/433/</link>
		<comments>http://www.simple-sys.com/blog/2010/10/20/433/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 05:46:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=433</guid>
		<description><![CDATA[次、ADTのインストール。 Eclipseを立ち上げ、ヘルプ→新規ソフトウェアのインストール。 追加ボタンを押し、名前は「Android Plugin」、ロケーションは「https://dl-ssl.google.com <a href='http://www.simple-sys.com/blog/2010/10/20/433/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>次、ADTのインストール。<br />
Eclipseを立ち上げ、ヘルプ→新規ソフトウェアのインストール。<br />
追加ボタンを押し、名前は「Android Plugin」、ロケーションは「https://dl-ssl.google.com/android/eclipse/」で、ＯＫ。<br />
しばらくすると、「Developer Tools」と表示されるので、チェックして「次へ」→「次へ」→「使用条件の条項に同意します」をチェックして「完了」ボタン。<br />
Eclipseを再起動して、ウィンドウ→設定→Android→参照ボタン→Android SDKのパスを指定（今回はC:&yen;android&yen;android-sdk-windows としました。）して「ＯＫ」。これで完了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2010/10/20/433/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>androidで絵本アプリ:Android SDKのインストール</title>
		<link>http://www.simple-sys.com/blog/2010/10/09/402/</link>
		<comments>http://www.simple-sys.com/blog/2010/10/09/402/#comments</comments>
		<pubDate>Sat, 09 Oct 2010 08:37:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=402</guid>
		<description><![CDATA[次に、Android SDKのインストール。 http://developer.android.com/sdk/index.htmlへ行き、PlatformがWindowsのもの、Packageが「android-sdk <a href='http://www.simple-sys.com/blog/2010/10/09/402/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>次に、Android SDKのインストール。<br />
<a href="http://developer.android.com/sdk/index.html" target="_blank">http://developer.android.com/sdk/index.html</a>へ行き、PlatformがWindowsのもの、Packageが「<a href="http://dl.google.com/android/android-sdk_r07-windows.zip" target="_blank">android-sdk_r07-windows.zip</a>」をダウンロード。<br />
ZIPファイルなので、適当なツールで解凍。<br />
<img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/android-sdk_1.png" alt="" title="android-sdk_1" width="393" height="168" class="alignnone size-full wp-image-394" /><br />
こんな中身です。適当なフォルダに移動します。とりあえず。C:&yen;android&yen;　を作成し、その下にフォルダごとコピーします。<br />
次、コマンドラインで上記のSDKのtoolsの中のコマンドを使うので、そこにパスを通します。<br />
スタートボタン→設定→コントロールパネル→システム→<br />
で、システムのプロパティを開き、詳細設定タブ→環境変数→システム環境変数→変数「Path」のところをクリックして編集<br />
今表示されている変数値の一番最後に「 ;C:&yen;android&yen;android-sdk-windows&yen;tools 」を追加して、OK→OK→OK。<br />
<img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/android-sdk_2.png" alt="" title="android-sdk_2" width="401" height="131" class="alignnone size-full wp-image-397" /><br />
きちんと設定できたかどうかの確認をします。スタートボタン→プログラム→アクセサリ→コマンドプロンプト<br />
を表示して、「adb version」と入力してエンター<br />
<img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/android-sdk_3.png" alt="" title="android-sdk_3" width="381" height="167" class="alignnone size-full wp-image-398" /><br />
こんな感じで表示されればおっけい。SDKのインストールはここまで。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2010/10/09/402/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>androidで絵本アプリ:Eclipseのインストール</title>
		<link>http://www.simple-sys.com/blog/2010/10/09/428/</link>
		<comments>http://www.simple-sys.com/blog/2010/10/09/428/#comments</comments>
		<pubDate>Sat, 09 Oct 2010 07:41:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=428</guid>
		<description><![CDATA[次にEclipseのインストール。 http://developer.android.com/sdk/index.html によると、「3.4か3.5」ってあるので、 http://www.eclipse.org/dow <a href='http://www.simple-sys.com/blog/2010/10/09/428/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>次にEclipseのインストール。<br />
<a href="http://developer.android.com/sdk/index.html" target="_blank">http://developer.android.com/sdk/index.html</a><br />
によると、「3.4か3.5」ってあるので、<br />
<a href="http://www.eclipse.org/downloads/" target="_blank">http://www.eclipse.org/downloads/</a><br />
の右下にある、「Related Links」から、Eclipse Galileo (3.5)のリンクをクリック。<br />
「Ｄｏｗｎｌｏａｄ Now」をクリックし、<a href="http://www.eclipse.org/downloads/packages/release/galileo/r" target="_blank">http://www.eclipse.org/downloads/packages/release/galileo/r</a>から、「Eclipse IDE for Java Developers」をクリック。<br />
Download Linkから「Windows 32-bit」を選んで、「eclipse-java-galileo-win32.zip」をダウンロードし、適当なところに解凍。今回は「c:&yen;eclipse3.5&yen;」に解凍しました。<br />
で、<a href="http://www.myeclipseide.jp/blog/2009/07/eclipse35-download-install.html" target="_blank">http://www.myeclipseide.jp/blog/2009/07/eclipse35-download-install.html</a>このあたりを参考に日本語化しました。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2010/10/09/428/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>androidで絵本アプリ:JDKのインストール</title>
		<link>http://www.simple-sys.com/blog/2010/10/09/413/</link>
		<comments>http://www.simple-sys.com/blog/2010/10/09/413/#comments</comments>
		<pubDate>Sat, 09 Oct 2010 06:00:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=413</guid>
		<description><![CDATA[環境作りから。 必要なのは、 ・Java Developent Kit(JDK) ・Eclipse ・Android　SDK ・Android Development Tool(ADT) とのこと。まずはJDKのインスト <a href='http://www.simple-sys.com/blog/2010/10/09/413/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>環境作りから。<br />
必要なのは、<br />
・Java Developent Kit(JDK)<br />
・Eclipse<br />
・Android　SDK<br />
・Android Development Tool(ADT)<br />
とのこと。まずはJDKのインストール。<br />
<a href="http://developer.android.com/sdk/index.html" target="_blank">http://developer.android.com/sdk/index.html</a><br />
によると、「JDKの5か6」をインストールってあるので、<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" target="_blank">http://www.oracle.com/technetwork/java/javase/downloads/index.html</a>から、JDK 6 Ipdate22の「Download JDK」ボタンを押して、ダウンロード。プラットフォームを選んで、「jdk-6u22-windows-i586.exe」をダウンロードしました。ダウンロードしたファイルを実行し、<img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/image1.png" alt="" title="image1" width="503" height="377" class="alignnone size-full wp-image-416" /><br />
で「次へ」ボタン。<br />
<img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/image2.png" alt="" title="image2" width="504" height="376" class="alignnone size-full wp-image-418" /><br />
で「次へ」ボタン。<br />
<img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/image3.png" alt="" title="image3" width="503" height="377" class="alignnone size-full wp-image-420" /><br />
で「完了」ボタン。<br />
次、PATHの設定。<br />
スタートボタン→設定→コントロールパネル→システム→<br />
で、システムのプロパティを開き、詳細設定タブ→環境変数→システム環境変数→変数「Path」のところをクリックして編集<br />
今表示されている変数値の一番最後に「 ;%JAVA_HOME%&yen;bin 」を追加して、OK。<br />
<img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/image4.png" alt="" title="image4" width="400" height="132" class="alignnone size-full wp-image-422" /><br />
あと、JAVA_HOMEという変数を新規に追加。<br />
「新規」のボタンを押し、変数名に「ＪＡＶＡ＿ＨＯＭＥ」、変数値に「C:&yen;Program Files&yen;Java&yen;jdk1.6.0_21」を入力し、ＯＫ→ＯＫ→ＯＫ。<br />
<img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/image5.png" alt="" title="image5" width="401" height="131" class="alignnone size-full wp-image-424" /><br />
正常にインストールされたかのチェックは、スタート→プログラム→アクセサリ→コマンドプロンプトから<br />
「javac -version」と入力し、Enter。<br />
<img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/image6.png" alt="" title="image6" width="666" height="177" class="alignnone size-full wp-image-425" /><br />
こんな感じに出ればおっけい。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2010/10/09/413/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>androidで絵本アプリ作成</title>
		<link>http://www.simple-sys.com/blog/2010/10/08/387/</link>
		<comments>http://www.simple-sys.com/blog/2010/10/08/387/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 16:53:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=387</guid>
		<description><![CDATA[一気にblogの毛色が変わりますが(^^; 「これからの時代はandroidだ！」と思い、docomoのHT-03Aを購入したのが去年の11月。 しばらく本業の仕事が忙しく、アプリを使うことしかしていなかったのですが、  <a href='http://www.simple-sys.com/blog/2010/10/08/387/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>一気にblogの毛色が変わりますが(^^;</p>
<p>「これからの時代はandroidだ！」と思い、docomoのHT-03Aを購入したのが去年の11月。<br />
しばらく本業の仕事が忙しく、アプリを使うことしかしていなかったのですが、<br />
ようやくここへ来て、アプリの開発のほうに手を出すことに。</p>
<p>ただ。。。androidで開発するにあたり、とりあえず必要な知識、Javaだと思うんですが、<br />
当方、まったくJavaについて知識がない状態でして・・・(^^;<br />
こんな状態で、作れるようになれるのかな・・・？</p>
<p>とりあえず、Javaの本は、以下を購入。</p>
<table cellpadding="0" cellspacing="0" border="0" style=" border:1px solid #ccc; width:300px;">
<tr style="border-style:none;">
<td style="font-size:12px; vertical-align:middle; border-style:none; padding:10px;">
<p style="padding:0; margin:0;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2F%25E6%2598%258E%25E8%25A7%25A3Java-%25E5%2585%25A5%25E9%2596%2580%25E7%25B7%25A8-%25E6%259F%25B4%25E7%2594%25B0-%25E6%259C%259B%25E6%25B4%258B%2Fdp%2F4797339535%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D4797339535" target="_blank">明解Java 入門編</a></p>
<p style="color:#cc0000; font-weight:bold; margin-top:10px;">新品価格<br/>￥2,730<span style="font-weight:normal;">から</span><br/><span style="font-size:10px; font-weight:normal;">(2010/10/8 01:39時点)</span></p>
</td>
<td style="vertical-align:top; border-style:none; padding:10px;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2F%25E6%2598%258E%25E8%25A7%25A3Java-%25E5%2585%25A5%25E9%2596%2580%25E7%25B7%25A8-%25E6%259F%25B4%25E7%2594%25B0-%25E6%259C%259B%25E6%25B4%258B%2Fdp%2F4797339535%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D4797339535" target="_blank"><img border="0" alt="" src="http://ecx.images-amazon.com/images/I/51SXPN5zDeL._SS80_.jpg" /></a></td>
</tr>
</table>
<p><img border="0" width="1" height="1" src="http://www17.a8.net/0.gif?a8mat=1O4WM1+EC6U9E+249K+BWGDT" alt=""></p>
<table cellpadding="0" cellspacing="0" border="0" style=" border:1px solid #ccc; width:300px;">
<tr style="border-style:none;">
<td style="font-size:12px; vertical-align:middle; border-style:none; padding:10px;">
<p style="padding:0; margin:0;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2F%25E8%25A7%25A3%25E3%2581%258D%25E3%2581%25AA%25E3%2581%258C%25E3%2582%2589%25E5%25AD%25A6%25E3%2581%25B6Java-%25E5%2585%25A5%25E9%2596%2580%25E7%25B7%25A8-%25E6%259F%25B4%25E7%2594%25B0-%25E6%259C%259B%25E6%25B4%258B%2Fdp%2F4797339543%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D4797339543" target="_blank">解きながら学ぶJava 入門編</a></p>
<p style="color:#cc0000; font-weight:bold; margin-top:10px;">新品価格<br/>￥2,520<span style="font-weight:normal;">から</span><br/><span style="font-size:10px; font-weight:normal;">(2010/10/8 01:36時点)</span></p>
</td>
<td style="vertical-align:top; border-style:none; padding:10px;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2F%25E8%25A7%25A3%25E3%2581%258D%25E3%2581%25AA%25E3%2581%258C%25E3%2582%2589%25E5%25AD%25A6%25E3%2581%25B6Java-%25E5%2585%25A5%25E9%2596%2580%25E7%25B7%25A8-%25E6%259F%25B4%25E7%2594%25B0-%25E6%259C%259B%25E6%25B4%258B%2Fdp%2F4797339543%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D4797339543" target="_blank"><img border="0" alt="" src="http://ecx.images-amazon.com/images/I/514IMZXUxqL._SS80_.jpg" /></a></td>
</tr>
</table>
<p>一通り、読む・・・。なかなか頭に入ってきません(^^;<br />
未だに、「メソッド？」「クラス変数？」「継承？」「implements？」わけわからん状態。。。(^^;</p>
<p>んでも、わからないところは調べながら、やっていくということで。<br />
androidの本は、</p>
<table cellpadding="0" cellspacing="0" border="0" style=" border:1px solid #ccc; width:300px;">
<tr style="border-style:none;">
<td style="font-size:12px; vertical-align:middle; border-style:none; padding:10px;">
<p style="padding:0; margin:0;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2FAndroid-1-5%25E3%2583%2597%25E3%2583%25AD%25E3%2582%25B0%25E3%2583%25A9%25E3%2583%259F%25E3%2583%25B3%25E3%2582%25B0%25E3%2583%2590%25E3%2582%25A4%25E3%2583%2596%25E3%2583%25AB-%25E5%25B8%2583%25E7%2595%2599%25E5%25B7%259D-%25E8%258B%25B1%25E4%25B8%2580%2Fdp%2F488337663X%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D488337663X" target="_blank">Android 1.5プログラミングバイブル</a></p>
<p style="color:#cc0000; font-weight:bold; margin-top:10px;">新品価格<br/>￥2,940<span style="font-weight:normal;">から</span><br/><span style="font-size:10px; font-weight:normal;">(2010/10/8 01:40時点)</span></p>
</td>
<td style="vertical-align:top; border-style:none; padding:10px;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2FAndroid-1-5%25E3%2583%2597%25E3%2583%25AD%25E3%2582%25B0%25E3%2583%25A9%25E3%2583%259F%25E3%2583%25B3%25E3%2582%25B0%25E3%2583%2590%25E3%2582%25A4%25E3%2583%2596%25E3%2583%25AB-%25E5%25B8%2583%25E7%2595%2599%25E5%25B7%259D-%25E8%258B%25B1%25E4%25B8%2580%2Fdp%2F488337663X%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D488337663X" target="_blank"><img border="0" alt="" src="http://ecx.images-amazon.com/images/I/41a7n80XoQL._SS80_.jpg" /></a></td>
</tr>
</table>
<p><img border="0" width="1" height="1" src="http://www17.a8.net/0.gif?a8mat=1O4WM1+EC6U9E+249K+BWGDT" alt=""><br />
を購入。。。ちょっと前に買ったので、今はこれより新しいバージョン対応の本も出ているようです。</p>
<table cellpadding="0" cellspacing="0" border="0" style=" border:1px solid #ccc; width:300px;">
<tr style="border-style:none;">
<td style="font-size:12px; vertical-align:middle; border-style:none; padding:10px;">
<p style="padding:0; margin:0;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2FAndroid2-1%25E3%2583%2597%25E3%2583%25AD%25E3%2582%25B0%25E3%2583%25A9%25E3%2583%259F%25E3%2583%25B3%25E3%2582%25B0%25E3%2583%2590%25E3%2582%25A4%25E3%2583%2596%25E3%2583%25AB-%25E5%25B8%2583%25E7%2595%2599%25E5%25B7%259D-%25E8%258B%25B1%25E4%25B8%2580%2Fdp%2F4883377075%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D4883377075" target="_blank">Android2.1プログラミングバイブル</a></p>
<p style="color:#cc0000; font-weight:bold; margin-top:10px;">新品価格<br/>￥3,129<span style="font-weight:normal;">から</span><br/><span style="font-size:10px; font-weight:normal;">(2010/10/8 01:49時点)</span></p>
</td>
<td style="vertical-align:top; border-style:none; padding:10px;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2FAndroid2-1%25E3%2583%2597%25E3%2583%25AD%25E3%2582%25B0%25E3%2583%25A9%25E3%2583%259F%25E3%2583%25B3%25E3%2582%25B0%25E3%2583%2590%25E3%2582%25A4%25E3%2583%2596%25E3%2583%25AB-%25E5%25B8%2583%25E7%2595%2599%25E5%25B7%259D-%25E8%258B%25B1%25E4%25B8%2580%2Fdp%2F4883377075%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D4883377075" target="_blank"><img border="0" alt="" src="http://ecx.images-amazon.com/images/I/41ceVJ97+PL._SS80_.jpg" /></a></td>
</tr>
</table>
<p><img border="0" width="1" height="1" src="http://www15.a8.net/0.gif?a8mat=1O4WM1+EC6U9E+249K+BWGDT" alt=""><br />
で、作りたいアプリなんですけど、ずばり「絵本アプリ」</p>
<p>というのも、私、息子（1歳）がおります。<br />
その息子が生まれた直後、出産祝いに戴いたものがありまして、それがこの絵本。</p>
<table cellpadding="0" cellspacing="0" border="0" style=" border:1px solid #ccc; width:300px;">
<tr style="border-style:none;">
<td style="font-size:12px; vertical-align:middle; border-style:none; padding:10px;">
<p style="padding:0; margin:0;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2F%25E3%2582%2582%25E3%2581%2593%25E3%2582%2582%25E3%2581%2593%25E3%2582%2582%25E3%2581%2593-%25E3%2581%25BD%25E3%2581%25A3%25E3%2581%25BD%25E3%2583%25A9%25E3%2582%25A4%25E3%2583%2596%25E3%2583%25A9%25E3%2583%25AA-%25E3%2581%25BF%25E3%2582%258B%25E3%2581%25BF%25E3%2582%258B%25E7%25B5%25B5%25E6%259C%25AC-%25E8%25B0%25B7%25E5%25B7%259D-%25E4%25BF%258A%25E5%25A4%25AA%25E9%2583%258E%2Fdp%2F4580813952%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D4580813952" target="_blank">もこもこもこ (ぽっぽライブラリ みるみる絵本)</a></p>
<p style="color:#cc0000; font-weight:bold; margin-top:10px;">新品価格<br/>￥1,365<span style="font-weight:normal;">から</span><br/><span style="font-size:10px; font-weight:normal;">(2010/10/8 01:42時点)</span></p>
</td>
<td style="vertical-align:top; border-style:none; padding:10px;"><a href="http://px.a8.net/svt/ejp?a8mat=1O4WM1+EC6U9E+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2F%25E3%2582%2582%25E3%2581%2593%25E3%2582%2582%25E3%2581%2593%25E3%2582%2582%25E3%2581%2593-%25E3%2581%25BD%25E3%2581%25A3%25E3%2581%25BD%25E3%2583%25A9%25E3%2582%25A4%25E3%2583%2596%25E3%2583%25A9%25E3%2583%25AA-%25E3%2581%25BF%25E3%2582%258B%25E3%2581%25BF%25E3%2582%258B%25E7%25B5%25B5%25E6%259C%25AC-%25E8%25B0%25B7%25E5%25B7%259D-%25E4%25BF%258A%25E5%25A4%25AA%25E9%2583%258E%2Fdp%2F4580813952%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-13822-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D4580813952" target="_blank"><img border="0" alt="" src="http://ecx.images-amazon.com/images/I/41ru1MzjDCL._SS80_.jpg" /></a></td>
</tr>
</table>
<p><img border="0" width="1" height="1" src="http://www16.a8.net/0.gif?a8mat=1O4WM1+EC6U9E+249K+BWGDT" alt=""><br />
月齢が小さいころは、読んであげてもまったく反応しないし、こんな本面白いのかなぁ？と思っていたら、このところ、本に書いてあるセリフを私が読むと、息子も一緒に読むようになりました。</p>
<p>息子の今一番のお気に入りの絵本なんですが、、、いかんせん、赤ちゃん、本の扱いが乱暴で、そこかしこに折り目、破れ、よだれで汚れ・・・だんだん見るも無残な状態に（＾＾；</p>
<p>で、考えたのが「androidで絵本を見せるアプリを作ればいいんではないか？」</p>
<p>こんな動機でアプリを作成していきます。<br />
次回、アプリの開発環境設定から始めます。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2010/10/08/387/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweetly Updaterを導入してみた</title>
		<link>http://www.simple-sys.com/blog/2010/10/06/379/</link>
		<comments>http://www.simple-sys.com/blog/2010/10/06/379/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 00:53:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=379</guid>
		<description><![CDATA[せっかく記事を書くのだから、その更新情報を、twitterで呟いてみることにしました。 記事を更新したときに、自動的にtwitterにPostしてくれる、Tweetly Updaterを導入してみました。 今回このブログ <a href='http://www.simple-sys.com/blog/2010/10/06/379/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>せっかく記事を書くのだから、その更新情報を、twitterで呟いてみることにしました。</p>
<p>記事を更新したときに、自動的にtwitterにPostしてくれる、Tweetly Updaterを導入してみました。<br />
今回このブログ用に新たにアカウントを取得し記事を投稿してみましたが、うまくできたかな？</p>
<p>追記・うまくできました（＾＾）v<br />
<a href="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/twitter.png"><img src="http://www.simple-sys.com/blog/wp-content/uploads/2010/10/twitter-300x206.png" alt="" title="twitter" width="300" height="206" class="alignnone size-medium wp-image-381" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2010/10/06/379/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>久しぶりに更新＆アフェリエイト貼り付け</title>
		<link>http://www.simple-sys.com/blog/2010/10/06/372/</link>
		<comments>http://www.simple-sys.com/blog/2010/10/06/372/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 17:15:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.simple-sys.com/blog/?p=372</guid>
		<description><![CDATA[しばらくブログの更新を行ってきませんでしたが（＾＾； 本業のシステム開発が忙しく、なかなかblogの更新に手をつけられない状態でした。 今ちょっと余裕ができたので、久しぶりにblogを更新。 ついでにデザインも変更してみ <a href='http://www.simple-sys.com/blog/2010/10/06/372/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>しばらくブログの更新を行ってきませんでしたが（＾＾；<br />
本業のシステム開発が忙しく、なかなかblogの更新に手をつけられない状態でした。<br />
今ちょっと余裕ができたので、久しぶりにblogを更新。</p>
<p>ついでにデザインも変更してみました。あと、アフェリエイトも張ってみたり。<br />
この右側→に表示されている、ExcelVBA関係の本のリンク、リロードするたびに<br />
ランダムに商品内容が変わるような仕組みになっています。</p>
<p>wordpressでそういうプラグインがあるとは思うのですが、探してもいまいちピンとくるものが<br />
なかったので、、、。特定のフォルダに表示対象となるアフェリエイトのコードが記述されたテキストファイルを複数枚おいて、それをランダムに読み込んで表示させるになっています。<br />
あまりphpでプログラムを書いたことがないので（＾＾；、ネットで検索、本を読みながら組み込んでみました。</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showPlainTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$filesuu</span>=<a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'/xxx/xxx/filesuu.txt'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$fileno</span>=<a href="http://www.php.net/rand"><span style="color:#000066;">rand</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC66CC;color:#800000;">1</span>,<span style="color:#0000FF;">$filesuu</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$hyoujifile</span>=<a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"/xxx/xxx/$fileno.txt"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$hyoujifile</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
まず特定のディレクトリ（上記では/xxx/xxx/）に、（数字）.txtというファイル（この中にアフェリエイトのコードが入っています）があり、<br />
また、filesuu.txtというファイルに、上記のファイルが何個あるかが登録されています。<br />
$filesuuという変数の中に、file_get_contents関数を用いてファイルの中身（ファイル数の数字）を取り込み、<br />
その後$filenoで１から$filesuuまでの乱数を発生させています。<br />
その後、$hyoujifileの中に表示したいテキストファイルを読み込みechoで表示する、という感じです。</p>
<p>これでリロードするたびにランダムに表示されるようになりました（＾＾）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simple-sys.com/blog/2010/10/06/372/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

