<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>スマートフォン日和</title>
<link>https://ameblo.jp/yumiahiru/</link>
<atom:link href="https://rssblog.ameba.jp/yumiahiru/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>気になるスマートフォン情報を個人的目線で書き綴る、気ままなブログ</description>
<language>ja</language>
<item>
<title>スライドショー動画も簡単に作れちゃう写真管理アプリ『Pics Memory』</title>
<description>
<![CDATA[ <p style="margin: 0px; line-height: normal; font-family: 'Hiragino Maru Gothic Pro'; "></p><p style="margin: 0px; ">この夏、絶対使えるアプリ情報！<br><br></p><div style="text-align: center;"><p style="margin: 0px; font-size: 18px; line-height: normal; "></p><p style="margin: 0px; font-family: 'Hiragino Mincho Pro'; "><span style="font-size: 36px; color: rgb(16, 16, 16); ">Pics Memory</span><span style="font-size: 12px; ">&nbsp;</span>for iPhone App<br></p><p></p></div><span style="font-size: 12px; "><div style="text-align: center;"><p style="margin: 0px; line-height: normal; "></p><p style="margin: 0px; font-family: 'Hiragino Mincho Pro'; "><br></p><p></p></div><p></p><p></p></span><p><a href="http://stat.ameba.jp/user_images/20140718/23/yumiahiru/36/cd/p/o0144014413007142984.png"><img src="https://stat.ameba.jp/user_images/20140718/23/yumiahiru/36/cd/p/t01440144_0144014413007142984.png" style="width:144px; height:144px; border:none;" ratio="1" align="left" id="1405695499916" class="selected"></a></p>&nbsp;<p style="margin: 0px; "><b style="color: rgb(169, 74, 118);">　　セール情報！！<br></b></p><p style="margin: 0px; "><b style="color: rgb(169, 74, 118);">　　今だけ<span style="font-size: 16px; ">半額100円</span>セール！<br></b></p><span style="font-size: 8px; "><p style="margin: 0px; "><b style="color: rgb(169, 74, 118);"></b></p><p style="margin: 0px; "><b style="color: rgb(169, 74, 118);"></b></p><p style="margin: 0px; "><b style="color: rgb(169, 74, 118);"><br></b></p><p style="margin: 0px; "></p><p></p><p></p><p></p></span><p>　　<a href="https://itunes.apple.com/jp/app/pics-memory-slideshow-maker/id891532887?l=ja&amp;ls=1&amp;mt=8"><img src="https://stat.ameba.jp/user_images/20140718/23/yumiahiru/1e/bd/p/t01350040_0135004013007163997.png" style="width:135px; height:40px; border:none;" ratio="3.375" id="1405695500133"></a></p><p></p><br><br><p></p><p style="margin: 0px; "></p><p style="margin: 0px; ">大切な写真をフル活用できるから、旅行やお祭り、花火大会といったイベントでも写真を撮る楽しみが増えるよ！</p><br>これまで以上にもっと写真が楽しめるスライドショー動画作成＆写真管理アプリ「Pics Memory」がapp storeでリリースされました。<p></p><p style="margin: 0px; min-height: 18px; "><br></p><p><a href="http://stat.ameba.jp/user_images/20140718/23/yumiahiru/71/c9/p/o0640113613007180928.png"><img src="https://stat.ameba.jp/user_images/20140718/23/yumiahiru/71/c9/p/t02200391_0640113613007180928.png" style="width:220px; height:391px; border:none;" ratio="0.5626598465473146" id="1405697425990" title="" alt="" align="left"></a></p><p style="text-align: right;"><a href="http://stat.ameba.jp/user_images/20140718/23/yumiahiru/d8/e2/p/o0640113613007180927.png"><img src="https://stat.ameba.jp/user_images/20140718/23/yumiahiru/d8/e2/p/t02200391_0640113613007180927.png" style="width:220px; height:391px; border:none;" ratio="0.5626598465473146" id="1405697424184" class="selected"></a></p><p></p><p></p><p style="margin: 0px; "><br><br>友達と遊んだり旅行に行ったりして撮ったたくさんの素敵な写真、カメラロールに埋もれていませんか？</p><p style="margin: 0px; ">このアプリは、大切な思い出とも言える写真をフル活用できる機能が満載です。</p><p style="margin: 0px; ">とくに最大の魅力はスライドショーを作って動画ファイルにできるところ。</p><p style="margin: 0px; ">写真をアプリ内に保存しておけば、必要な操作は最低1ステップ！　簡単に美しく感動的なスライドショー動画が作成できます。</p><p style="margin: 0px; ">作った動画はメールで友達にプレゼントできるから、記念としても喜ばれるし写真を見る楽しみも倍増！</p><p style="margin: 0px; ">もちろん音楽はiTunesから選べるので大好きな音楽とともにスライドショーが楽しめます。<br><br></p><div style="text-align: center;"><b></b></div><span style="font-size: 16px; "><div style="text-align: center;"><b></b></div><div style="text-align: center;"><b></b></div><div style="text-align: center;"><b>↓↓詳しくはこちらのサイトをチェック↓↓</b></div><div style="text-align: center;"><b>参考サイト：<a></a><a href="http://yandsproject.wix.com/enjoyapps#!picsmemoryjp/c989" target="_blank" title="">Pics Memory公式サイト</a></b></div><div style="text-align: center;"><b><a href="http://yandsproject.wix.com/enjoyapps#!picsmemoryjp/c989" target="_blank" title=""></a></b></div><div style="text-align: center;"><b><a href="http://yandsproject.wix.com/enjoyapps#!picsmemoryjp/c989" target="_blank" title=""></a></b></div></span><div style="text-align: center;"><b><a href="http://yandsproject.wix.com/enjoyapps#!picsmemoryjp/c989" target="_blank" title=""></a></b></div><p></p><p></p>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11896303863.html</link>
<pubDate>Fri, 18 Jul 2014 23:04:47 +0900</pubDate>
</item>
<item>
<title>iPhoneアプリ「ColorMode」（無料）リリース！</title>
<description>
<![CDATA[ <div style="text-align: left;">iPhoneアプリ「ColorMode」（無料）リリース！</div><br>カラーセンスを高めて、よりファッショナブルになりたい人も、色彩学を学んでいる人も、カラーデザインに磨きをかけたい人も、快適に色と接する事ができる画期的なアプリが誕生！<br><br>今後もアップデートを重ね、より充実した機能を追加予定。<br><p><a href="https://itunes.apple.com/jp/app/colormode/id717920909?mt=8" target="_blank"><b>アプリをダウンロード　「iTunes」を開く</b></a></p><br><div style="text-align: left;"><a href="http://stat.ameba.jp/user_images/20131110/00/yumiahiru/b2/bb/p/o0778035012744360679.png"><img src="https://stat.ameba.jp/user_images/20131110/00/yumiahiru/b2/bb/p/t02200099_0778035012744360679.png" style="width:220px; height:99px; border:none;" ratio="2.2222222222222223" id="1384012035747"></a></div><br><span style="color: rgb(255, 130, 115);"><b><span style="font-size: 36px; ">ColorMode</span></b></span><br>"ColorMode" は、あなた自身の手で色の不思議を体感できる画期的なアプリケーションです。<br>何よりシンプルで洗練された操作性は、より自由な発想を生み、今までにない新しいアイデアを引き出すことができます。<br>使い方は至って簡単。スクリーンに必要なだけラインを描き、3種類のカラーピッカーで色を選ぶだけ。<br>完成した作品はアプリ内に保存するだけでなく、画像として写真アプリに保存したりメールに添付することも可能。アプリ内に保存したデータは再編集することもできるから、新たなアイデアを生むために役立てることもできます。<br>デザイン、アート、ファッション、ビジネスマーケティングと様々なシーンで求められる”カラーセンス”を高め、より個性的でかつ創造的なカラーコーディネートを実現させましょう。<br>　<br>・フラットデザイン用カラーパターンのアイデア集として。　<br>・色彩感覚の向上に。　<br>・ファッションで周りと差をつけたい方にも。　<br>・商品、ロゴ等のカラーアイデアに。　<br>・お店や部屋のカラーコンセプトの設定に。　<br>・子どもの情操教育に。　<br>・カラーコーディネーターの勉強に。　<br>・色が持つ特徴やイメージを感覚的に身につけるために。<br>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11680975473.html</link>
<pubDate>Sun, 10 Nov 2013 00:22:14 +0900</pubDate>
</item>
<item>
<title>sdカードのフルパスを取得する</title>
<description>
<![CDATA[ <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><font class="Apple-style-span" color="#a94a76"><b><span style="font-size: 14px; ">SDカードのフルパスを取得する方法</span></b></font><br><br>String fullPath = Environment.getExternalStorageDirectory().getAbsolutePath()+ File.separator + "newDirectoryName"&nbsp;+ <br>File.separator + "ImageName.jpg";</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br>Uri uri = Uri.fromFile(new File(fullPath));</p><p></p><br>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11318905657.html</link>
<pubDate>Fri, 03 Aug 2012 11:43:04 +0900</pubDate>
</item>
<item>
<title>ギャラリーピッカーの呼び出し</title>
<description>
<![CDATA[ <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><font class="Apple-style-span" color="#a94a76"><b><span style="font-size: 16px; ">ギャラリーピッカーを呼び出す方法</span></b></font><br><br><span style="font-size: 14px; "><font class="Apple-style-span" color="#a94a76"><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/269.gif">ギャラリーピッカーを呼び出す</font></span><br><font class="Apple-style-span" color="#ff9f40">Intentで、ギャラリーピッカーから画像だけを呼び出す。</font><br><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">Intent&nbsp;intent = new Intent();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">intent.setType("image/*");</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">intent.setAction(Intent.ACTION_PICK);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">setResult(RESULT_OK);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">startActivityForResult(intent, ACTION_REQUEST_GALLERY);<br><br><font class="Apple-style-span" color="#a94a76"><span style="font-size: 14px; "><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/270.gif">ギャラリーピッカーからの戻り</span></font><br><font class="Apple-style-span" color="#ff9f40">onActivityResultをOverrideして、ファイルパスを取得する。</font><br><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">@Override</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">protected void onActivityResult(int requestCode, int resultCode, Intent data) {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">// TODO Auto-generated method stub</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp;super.onActivityResult(requestCode, resultCode, data);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp;if(requestCode == ACTION_REQUEST_GALLERY){</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; //ギャラリーピッカーからの戻り</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; if(resultCode == RESULT_OK){</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//ファイルパスを取得</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Uri uri = data.getData();<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ContentResolver cres = getContentResolver();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;String[] column = {MediaStore.Images.Media.DATA };</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Cursor cur =&nbsp;cres.query(uri,&nbsp;column, null, null, null);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cur.moveToFirst();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File picture = new File(cur.getString(0));</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Uri&nbsp;path = Uri.parse(picture.toString());<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cur.close();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp; &nbsp; }</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">&nbsp; &nbsp;}</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">}<br></p><p></p><p></p><br>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11311348505.html</link>
<pubDate>Wed, 25 Jul 2012 10:38:49 +0900</pubDate>
</item>
<item>
<title>画像のEXIF情報　取得と埋め込み</title>
<description>
<![CDATA[ <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><font class="Apple-style-span" color="#a94a76"><span style="font: normal normal normal 12px/normal Monaco; "></span></font><span style="font-size: 16px; "><b><font class="Apple-style-span" color="#a94a76"><span style="font: normal normal normal 12px/normal Monaco; ">&lt;&lt;</span>取得方法</font><span style="font: 12.0px Monaco"><font class="Apple-style-span" color="#a94a76">&gt;&gt;</font></span></b></span><span style="font: 12.0px Monaco"><font class="Apple-style-span" color="#a94a76"></font><br><br></span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/269.gif"><b><span style="font-size: 14px; "><font class="Apple-style-span" color="#a94a76">取得したい画像のURIをセット。</font></span></b></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">ExifInterface ex = new ExifInterface(imgUri);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><font class="Apple-style-span" color="#a94a76"><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/283.gif"></font><font class="Apple-style-span" color="#ff9f40">SDカードのURI</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">String imgUri &nbsp;= Environment.getExternalStorageDirectory().toString() &nbsp;+ "/Sample.jpeg"</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><font class="Apple-style-span" color="#ff9f40"><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/283.gif">アプリ内ストレージのURI</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">String imgUri &nbsp;= file:///data/data/" + SetGPS.this.getPackageName() + "/Sample.jpeg"<br><br></p><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/270.gif"><font class="Apple-style-span" color="#a94a76"><b><span style="font-size: 14px; ">getAttributeを使ってEXIF情報を取得。</span></b></font><span style="font: 12.0px Monaco"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">ex.getAttribute(ExifInterface.TAG_GPS_ALTITUDE);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">ex.getAttribute(ExifInterface.TAG_GPS_LATITUDE);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">ex.getAttribute(ExifInterface.TAG_DATETIME);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">ex.getAttribute(ExifInterface.TAG_IMAGE_LENGTH);<br><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><font class="Apple-style-span" color="#ff9f40"><b>LatLongの取得方法はちょっと違う。</b></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">float[] latLong = new float[2];</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">ex.getLatLong(latLong); &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><font class="Apple-style-span" color="#00beff">※上記の場合、latLong[0] には緯度、latLong[1]には経度が入ります。</font><br><br><font class="Apple-style-span" color="#a94a76"><b><span style="font-size: 14px; "><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/131.gif">サンプルソース</span></b></font><br></p><p></p><p></p></span><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><font class="Apple-style-span" color="#ff9f40">exifStr[]に各情報を入れていくサンプル。</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">String[] exifStr = new String[9];</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">String imgUri = Environment.getExternalStorageDirectory().toString() &nbsp;+ "/sample.jpeg"</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; try {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExifInterface ex = new ExifInterface(imgUri);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;float[] latLong = new float[2];</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.getLatLong(latLong); &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exifStr[0] = "latLong = " + String.valueOf(latLong[0]) + ", "+ String.valueOf(latLong[1]);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exifStr[1] = "TAG_GPS_ALTITUDE = " + ex.getAttribute(ExifInterface.TAG_GPS_ALTITUDE);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exifStr[2] = "TAG_GPS_LATITUDE = " + ex.getAttribute(ExifInterface.TAG_GPS_LATITUDE);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exifStr[3] = "TAG_DATETIME = " + ex.getAttribute(ExifInterface.TAG_DATETIME);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exifStr[4] = "TAG_GPS_LONGITUDE = " + ex.getAttribute(ExifInterface.TAG_GPS_LONGITUDE);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exifStr[5] = "TAG_IMAGE_LENGTH = " + ex.getAttribute(ExifInterface.TAG_IMAGE_LENGTH);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exifStr[6] = "TAG_IMAGE_WIDTH = " + ex.getAttribute(ExifInterface.TAG_IMAGE_WIDTH);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exifStr[7] = "TAG_ORIENTATION = " + ex.getAttribute(ExifInterface.TAG_ORIENTATION);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exifStr[8] = "TAG_WHITE_BALANCE = " + ex.getAttribute(ExifInterface.TAG_WHITE_BALANCE);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; } catch (IOException e) {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// TODO Auto-generated catch block</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;e.printStackTrace();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">&nbsp; &nbsp; &nbsp; }</p><div><br><div><b><font class="Apple-style-span" color="#a94a76"><span style="font-size: 16px; ">&lt;&lt;埋め込み方法&gt;&gt;<br><br></span></font></b></div><div><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/269.gif"><span style="font-size: 14px; "><b><font class="Apple-style-span" color="#a94a76"></font></b></span><b><font class="Apple-style-span" color="#a94a76"><span style="font-size: 14px; ">埋め込みたい画像のURIをセット。</span></font></b><br><div>ExifInterface ex = new ExifInterface(directory);</div><div><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/283.gif"><font class="Apple-style-span" color="#ff9f40">SDカードのURI</font></div><div>String directory = "/sdcard/フォルダ名/Sample.jpeg";</div><div><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/283.gif"><font class="Apple-style-span" color="#ff9f40">アプリ内ストレージのURI</font></div><div>String directory = "/data/data/" + getGPS.this.getPackageName() + "/files/Sample.jpeg";</div><div><br></div><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/270.gif"><span style="font-size: 14px; "><font class="Apple-style-span" color="#a94a76"><b>setAttributeを使ってEXIF情報をセット。</b></font></span><div>ex.setAttribute(ExifInterface.TAG_GPS_LATITUDE, lat);</div><div>ex.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, logi);</div><div>ex.setAttribute(ExifInterface.TAG_GPS_LATITUDE_REF, "N");</div><div>ex.setAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF, "E");</div><div><br></div><span style="font-size: 14px; "><font class="Apple-style-span" color="#a94a76"><b><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/271.gif">各EXIF情報をセットした後はsaveAttributes();でデータを保存する。</b></font></span><div>ex.saveAttributes();</div><div><br></div><div><font class="Apple-style-span" color="#00beff">※緯度と経度を埋め込む場合、TAG_GPS_LATITUDE_REFと,TAG_GPS_LONGITUDE_REFも合わせて埋め込むと自動的にLatLongが入ってくるゾ！</font></div><div><br><span style="font-size: 14px; "><b><font class="Apple-style-span" color="#a94a76">サンプルソース</font></b></span></div><div><font class="Apple-style-span" color="#ff9f40">緯度と経度を、SDカードに保存された画像に埋め込む。<br><br></font></div><div>String lat = "33/1,44/1,44444/1000";</div><div>String logi = "133/1,44/1,7777/1000";</div><div>String directory = &nbsp;= "/sdcard/Sample.jpeg";</div><div>try {</div><div>ExifInterface ex = new ExifInterface(directory);</div><div>ex.setAttribute(ExifInterface.TAG_GPS_LATITUDE, lat);</div><div>ex.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, logi);</div><div>ex.setAttribute(ExifInterface.TAG_GPS_LATITUDE_REF, "N");</div><div>ex.setAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF, "E");</div><div>&nbsp;ex.saveAttributes();</div><div>} catch (IOException e) {</div><div>&nbsp; &nbsp;e.printStackTrace();</div><div>&nbsp;}</div></div></div><div><br></div><p></p><br>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11308914521.html</link>
<pubDate>Sun, 22 Jul 2012 13:43:38 +0900</pubDate>
</item>
<item>
<title>MapViewを使ってGoogle Mapに画像を表示する（ソースのみ）</title>
<description>
<![CDATA[ <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><span class="Apple-style-span" style="font-size: 14px; line-height: 21px; font-family: Times; "></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><font class="Apple-style-span" color="#ff9f40">Google Mapで画像を表示させる方法です。<br>画像を表示する場所は、画像から取得できるlatlongです。Exif情報としてlatlongに緯度と軽度が埋め込まれていれば、画像を表示します。</font></p><font class="Apple-style-span" color="#a94a76"><font class="Apple-style-span" size="3"><br><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/269.gif">Activity</font></font><span style="font-size: 16px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic ProN'; "><font class="Apple-style-span" color="#a94a76">内</font></span><span style="font-size: 16px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic ProN'; "><font class="Apple-style-span" color="#a94a76"><b></b></font></span><span style="font: 12.0px 'Hiragino Kaku Gothic ProN'"><font class="Apple-style-span" color="#a94a76"><b></b></font><br><br></span><font class="Apple-style-span" color="#ff9f40"></font><p></p><span style="font-size: 14px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><font class="Apple-style-span" color="#ff9f40">ActivityにはMapActivityをextendsする。</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"></p><span style="font-size: 14px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"></p></span><span style="font-size: 14px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">final MapView map = (MapView)findViewById(R.id.map);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">map.setBuiltInZoomControls(true);　　//ズームボタンの表示</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">map.getController().setZoom(16);　　//縮尺を設定</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><br>//画像を地図上に配置<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">ImageInfo iInfo = new ImageInfo(this);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">MapOverlay overlay;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">ExifInterface et;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">List&lt;Overlay&gt; list = map.getOverlays();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><br>//アプリ内のストレージから読み込む場合のファイルパス</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">String filePath = "/data/data/" + this.getPackageName() + "/files/";</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">float[] latlong = new float[2]; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">//latlongの取得</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">et = new ExifInterface(filePath + imgNames);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">et.getLatLong(latlong);&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">if(latlong[0] != 0){</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; //画像をoverlayにセット</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; overlay = new MapOverlay(bmp,getResources().<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getDimensionPixelOffset(R.dimen.imgSizeW),&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getResources().getDimensionPixelOffset<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (R.dimen.imgSizeW)),&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new GeoPoint((int)(latlong[0] * 1E6), <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(int)(latlong[1] * 1E6)));</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list.add(overlay);<br><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;//画像GPS情報の場所を表示<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; map.getController().animateTo(new GeoPoint(<br>&nbsp; &nbsp; &nbsp; &nbsp;(int)(latlong[0] * 1E6), (int)(latlong[1] * 1E6)));</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp;} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">//mapを更新<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">map.invalidate();</p></span><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"></p></span><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><span class="Apple-style-span" style="line-height: 18px; font-family: Times; "><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/270.gif"></span><span style="font-size: 16px; "><font class="Apple-style-span" color="#a94a76">別クラスでoverlayを実装する。</font></span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"></p><span style="font-size: 14px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">public class MapOverlay extends Overlay {<br>&nbsp; &nbsp;private final Bitmap bmp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;private final GeoPoint gpoint;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;public MapOverlay(Bitmap bmp, GeoPoint gp) {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; &nbsp; this.bmp = bmp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; &nbsp; this.gpoint = gp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;}</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">public void draw(Canvas canvas, MapView mapView, boolean shadow) {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;//Mapと画面の位置を計算<br>&nbsp; &nbsp;Projection pro = mapView.getProjection();<br>&nbsp; &nbsp;//ロケーションから表示する位置を計算<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;Point p = pro.toPixels(gpoint, null); &nbsp;<br>&nbsp; &nbsp;//表示する場所へ画像を配置&nbsp;&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;canvas.drawBitmap(bmp, p.x, p.y, null); &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;}</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">}<br><br><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/271.gif">&nbsp;<font class="Apple-style-span" color="#a94a76"><span style="font-size: 16px; ">Manifest</span></font><br></p></span><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><span style="font: 12.0px 'Hiragino Kaku Gothic ProN'"><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" color="#ff9f40">以下、３つを記入。<br></font><br></font></span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><font class="Apple-style-span" face="Monaco">&lt;uses-library android:name="com.google.android.maps"&gt;&lt;/uses-library&gt;</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><font class="Apple-style-span" face="Monaco">&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><font class="Apple-style-span" face="Monaco">&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"&gt;&lt;/uses-permission&gt;<br><br></font></p><img src="https://stat100.ameba.jp/blog/ucs/img/char/char2/301.gif"><span class="Apple-style-span" style="font-family: Monaco; ">MapViewを使う場合は</span><span class="Apple-style-span" style="font-family: Monaco; ">この他APIキーの取得とか、プロジェクト作成時のAPIレベルをGoogleMapsに設定するとか、やることたくさんありますが、そんなに難しくありません。</span><br><p></p><br>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11308629545.html</link>
<pubDate>Sun, 22 Jul 2012 01:10:30 +0900</pubDate>
</item>
<item>
<title>TEXTまわりのメモ</title>
<description>
<![CDATA[ <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'">今後使えそうなネタなのでメモ。<br><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic ProN'; "><br><br><a href="http://droibit.blogspot.jp/2012/06/textview.html" target="_blank" title=""><span style="font-size: 16px; ">TextViewのテキストを選択する方法</span></a></p><p style="font-family: Monaco; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic ProN'; ">選択された文字列のみの取得もできる。</p><p></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><br><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"><a href="http://y-anz-m.blogspot.jp/2011/08/androidspannable.html" target="_blank" title=""></a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic ProN'; display: inline !important; "><span style="font-size: 16px; "><a href="http://y-anz-m.blogspot.jp/2011/08/androidspannable.html" target="_blank" title="">文字列の一部を装飾する。</a><font class="Apple-style-span" face="Times"><span class="Apple-style-span" style="line-height: 18px;"><br></span></font></span></p><span class="Apple-style-span" style="font-family: 'Hiragino Kaku Gothic ProN'; line-height: normal; ">SpannableStringBuilderを使った方法で、</span><span class="Apple-style-span" style="font-family: 'Hiragino Kaku Gothic ProN'; line-height: normal; ">サイズ、カラー、フォントの変更が可能。</span><div><span class="Apple-style-span" style="font-family: 'Hiragino Kaku Gothic ProN'; line-height: normal; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic ProN'; "><br><br></p></span></div><br>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11305062827.html</link>
<pubDate>Tue, 17 Jul 2012 20:17:18 +0900</pubDate>
</item>
<item>
<title>データのアプリ内保存</title>
<description>
<![CDATA[ <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><b><span style="font-size: 14px; "><font class="Apple-style-span" color="#a94a76">&lt;&lt;画像の保存&gt;&gt;</font></span></b><br>boolean errar = false;<br>String&nbsp;package_Name = this.getPackageName();<br>String imgName;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">try {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;Context packC = context.createPackageContext(package_Name,0);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><span class="Apple-style-span">&nbsp; &nbsp;FileOutputStream fos =&nbsp;</span>packC<span class="Apple-style-span">.openFileOutput(imgName, Context.MODE_WORLD_READABLE);</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;fos.write(imgByte);</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;fos.close();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">} catch (FileNotFoundException e) {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;// TODO Auto-generated catch block</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;e.printStackTrace();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;errar = true;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">} catch (IOException e) {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;e.printStackTrace();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;errar = true;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">} catch (NameNotFoundException e) {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;// TODO Auto-generated catch block</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;e.printStackTrace();</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;errar = true;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">}<br><br><b><font class="Apple-style-span" color="#a94a76">■&nbsp;FileOutputStreamの第２引数は以下が設定できる。</font></b><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">① MODE_APPEND: 既にファイルがあった場合、追記で開く</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">② MODE_PRIVATE: 他のアプリからアクセスできないprivate fileとして生成</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">③ MODE_WORLD_READABLE: 他のアプリへ読み込み権限を与える<br>④&nbsp;MODE_WORLD_WRITEABLE: 他のアプリへ書き込み権限を与える</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><font class="Apple-style-span" color="#bf00bf"><span class="Apple-style-span" style="font-size: 14px;"><b><br></b></span></font><font class="Apple-style-span" color="#ff9f40">※データは下記階層に保存される。<br></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><font class="Apple-style-span" color="#ff9f40">file:///data/data/" + this.getPackageName() + "/files/"</font></p><div><br><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><b><span style="font-size: 14px; "><font class="Apple-style-span" color="#a94a76">&lt;&lt;画像の読み込み&gt;&gt;</font></span></b><br></p><div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">FileInputStream fis;</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">Context packC;</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">Bitmap imgBmp;</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">String imgName = "SampleImage.jpg";</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">try {</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">&nbsp; &nbsp;packC = context.createPackageContext(PACK_NAME,0);</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">&nbsp; &nbsp;fis = packC.openFileInput(imgName);</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">&nbsp; &nbsp;imgBmp = BitmapFactory.decodeStream(fis);</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">&nbsp; &nbsp;fis.close();</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">} catch (FileNotFoundException e) {</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">&nbsp; &nbsp;// TODO Auto-generated catch block</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">&nbsp; &nbsp;e.printStackTrace();</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">}catch (Exception e) {</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">&nbsp; &nbsp;// TODO: handle exception</p></div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">}</p></div></div></div><p></p><br>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11303701235.html</link>
<pubDate>Mon, 16 Jul 2012 07:18:55 +0900</pubDate>
</item>
<item>
<title>SDカードの画像・フォルダ操作</title>
<description>
<![CDATA[ <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"><span><b><span class="Apple-style-span" style="font-family: 'Hiragino Kaku Gothic ProN'; "><font class="Apple-style-span" color="#a94a76"><span style="font: normal normal normal 12px/normal Monaco; "><span class="Apple-style-span" style="font-size: 14px;"><b>■</b>SD</span></span><span class="Apple-style-span" style="font-size: 14px;">カードのディレクトリPATHを取得</span></font></span></b></span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">String directory = Environment.getExternalStorageDirectory().toString()&nbsp; + "/" + fileName;<br><br><b><span class="Apple-style-span" style="font-family: 'Hiragino Kaku Gothic ProN'; "><span style="font: normal normal normal 12px/normal Monaco; "><span class="Apple-style-span" style="font-size: 14px; "><b><font class="Apple-style-span" color="#a94a76">■</font></b></span></span><span class="Apple-style-span" style="font-size: 14px; "><font class="Apple-style-span" color="#a94a76">ディレクトリを作成</font><br></span></span></b></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">File dir = new File(directory);&nbsp;<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">if (!dir.exists()) dir.mkdirs();<br><span class="Apple-style-span" style="font-size: 14px;"><b><br></b></span><span class="Apple-style-span" style="font-weight: bold; font-family: 'Hiragino Kaku Gothic ProN'; "><span style="font: normal normal normal 12px/normal Monaco; "><span class="Apple-style-span" style="font-size: 14px; "><b><font class="Apple-style-span" color="#a94a76">■画像を保存</font><br></b></span></span></span>String imageName = "imgName.jpg";</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp;File file = new File(directory, imgName); &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;if (file.createNewFile()) { &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; &nbsp; outputStream = new FileOutputStream(file); &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; &nbsp; if (bmp != null) { &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bmp.compress(CompressFormat.JPEG, 100, outputStream); &nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp; &nbsp; }&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco">&nbsp; &nbsp;} &nbsp;</p>&nbsp;&nbsp;<p></p><span class="Apple-style-span" style="font-family: Monaco; font-size: 14px; line-height: normal; "><b><span style="font-size: 12px; "><font class="Apple-style-span" color="#00beff">&lt;&lt;画像保存のサンプルソース&gt;&gt;</font></span><br></b></span><div><span class="Apple-style-span" style="font-size: 14px;"><span style="font-size: 12px; "><div><font class="Apple-style-span" face="Monaco"><span class="Apple-style-span" style="line-height: normal;"><div>boolean saveError = false;</div><div>OutputStream outputStream = null;&nbsp;</div><div>String fileName = "SampleFile";</div><div>String imgName = "SampleImage.jpg";</div><div>String directory1 = Environment.getExternalStorageDirectory().toString() &nbsp;+ "/" + fileName;</div><div>try { &nbsp;</div><div>&nbsp; &nbsp;File dir = new File(directory1); &nbsp;</div><div>&nbsp; &nbsp;if (!dir.exists()) { &nbsp;</div><div>&nbsp; &nbsp; &nbsp; dir.mkdirs(); &nbsp;&nbsp;</div><div>&nbsp; &nbsp;}</div><div>&nbsp; &nbsp;File file = new File(directory, imgName); &nbsp;</div><div>&nbsp; &nbsp;if (file.createNewFile()) { &nbsp;</div><div>&nbsp; &nbsp; &nbsp; outputStream = new FileOutputStream(file); &nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (bmp != null) { &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bmp.compress(CompressFormat.JPEG, 100, outputStream); &nbsp;</div><div>&nbsp; &nbsp; &nbsp; } else { &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;saveError = true;</div><div>&nbsp; &nbsp; &nbsp; } &nbsp;</div><div>&nbsp; &nbsp;} &nbsp;</div><div>} catch (FileNotFoundException ex) { &nbsp;</div><div>&nbsp; &nbsp;saveError = true; &nbsp;</div><div>} catch (IOException ex) { &nbsp;</div><div>&nbsp; &nbsp;saveError = true; &nbsp;</div><div>} finally { &nbsp;</div><div>&nbsp; &nbsp;if (outputStream != null) { &nbsp;</div><div>&nbsp; &nbsp; &nbsp; try { &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;outputStream.close(); &nbsp;</div><div>&nbsp; &nbsp; &nbsp; } catch (Throwable t) { &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;saveError = true;</div><div>&nbsp; &nbsp; &nbsp; } &nbsp;</div><div>&nbsp; &nbsp;} &nbsp;</div><div>} &nbsp;&nbsp;</div></span></font><br></div></span></span><b><span class="Apple-style-span" style="font-family: 'Hiragino Kaku Gothic ProN'; "><span style="font: normal normal normal 12px/normal Monaco; "><span class="Apple-style-span" style="font-size: 14px; "><b><font class="Apple-style-span" color="#a94a76">■</font></b></span></span></span><span class="Apple-style-span" style="font-size: 14px; "><font class="Apple-style-span" face="'Hiragino Kaku Gothic ProN'" color="#a94a76">ディレクトリの削除</font><br></span></b><font class="Apple-style-span" face="Monaco"><span class="Apple-style-span" style="line-height: normal;"><div>File dir = new File(directory);&nbsp;</div><div>dir.delete();</div></span></font></div><div><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div><br></div></span><b><span class="Apple-style-span" style="font-size: 14px; "><font class="Apple-style-span" face="Monaco"><span class="Apple-style-span" style="line-height: normal;"></span></font><font class="Apple-style-span" face="Monaco"><span class="Apple-style-span" style="line-height: normal;"></span></font><span style="font-size: 12px; "><font class="Apple-style-span" color="#00beff"><font class="Apple-style-span" face="Monaco"><span class="Apple-style-span" style="line-height: normal; ">&lt;&lt;</span></font><font class="Apple-style-span" face="'Hiragino Kaku Gothic ProN'">ディレクトリ削除のサンプルソース&gt;&gt;</font></font></span><font class="Apple-style-span" face="'Hiragino Kaku Gothic ProN'"></font><font class="Apple-style-span" face="'Hiragino Kaku Gothic ProN'"><br></font></span></b><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; ">String PATH = Environment.getExternalStorageDirectory().toString() &nbsp;+ "/" + FILE_NAME;</span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; ">&nbsp;</span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>Uri IMAGE_URI = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>File file = new File(PATH, imgName);</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>if(file.exists()) {</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp;String[] proj = { MediaStore.Images.Media._ID, MediaStore.Images.Media.DATA };</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp;Cursor cursor = managedQuery(IMAGE_URI, proj,MediaStore.Images.Media.DATA + " = ?", new String[] { PATH + "/" + imgName }, null);</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp;if(cursor.getCount() != 0) {</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp; &nbsp; cursor.moveToFirst();</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp; &nbsp; Uri deleteUri = ContentUris.appendId(</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon(),</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor.getLong(cursor.getColumnIndex(MediaStore.Images.Media._ID))).build();</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp; &nbsp; getContentResolver().delete(deleteUri, null, null);</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp;}</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp;boolean bl = file.delete();</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp;File dir = new File(PATH); &nbsp;</div></span><span class="Apple-style-span" style="font-family: Monaco; line-height: normal; "><div>&nbsp; &nbsp;if (dir.exists()) dir.delete();</div></span><div><div><br></div><div><div><br></div></div></div><div style="font-size: 14px; "></div></div><p></p><p></p><p></p><br>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11303681761.html</link>
<pubDate>Mon, 16 Jul 2012 06:33:36 +0900</pubDate>
</item>
<item>
<title>メーラーやマップなど他のアプリを呼び出す</title>
<description>
<![CDATA[ <div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic ProN'"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Maru Gothic Pro'"><font class="Apple-style-span" size="3" color="#a94a76"></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Maru Gothic Pro'"><font class="Apple-style-span" size="3" color="#a94a76"></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Maru Gothic Pro'"><font class="Apple-style-span" size="3" color="#a94a76"></font></p><span><font class="Apple-style-span" color="#a94a76"><p style="font-size: 14px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="font-size: 14px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="font-size: 14px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "></p><span style="font-size: 14px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Kaku Gothic Pro'"></p></span><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><span class="Apple-style-span" style="font-size: 14px;"></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">暗黙的Intentを使用。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><span style="font-size: 18px; "><b>&lt;&lt;各アプリの呼び出し&gt;&gt;</b></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><b>■ブラウザの呼び出し</b></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://*******");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><b>■マップの呼び出し</b></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent = new Intent(Intent.ACTION_VIEW,Uri.parse("geo:0,0?q=*****"));</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><b>■電話（ダイヤラーアプリ）の呼び出し</b></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent = new Intent(Intent.ACTION_VIEW, Uri.parse("tel:123456789"));</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><b>■メーラーの呼び出し</b></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:"));</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_SUBJECT, "タイトル");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_TEXT, "本文");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><span style="font-size: 18px; "><b>&lt;&lt;他のアプリを呼び出してデータを送る&gt;&gt;</b></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">※送りたいデータに対して受け取り可能なアプリが起動。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><b>■文字列</b></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent = new Intent();</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.setAction(Intent.ACTION_SEND);</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.setType("text/plain");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_TEXT, "送りたい文字列");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><b>■画像（メールに添付する場合）<br></b></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">※putExtraで設定するIntent.EXTRA_STREAMは、基本SDカードか端末本体のUriが指定できる。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">つまり、アプリ内保存しているデータを送る場合は、一度SDカードに保存してからUriを指定することになる。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">試していないが、キャッシュにとれば送れるかもしれない。<br>※メールへの添付ではなく、例えばDropBoxなどに画像を送りたい場合もこの方法を使う。<br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">Intent intent = new Intent(Intent.Action_SEND);</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_EMAIL, "***@***.com");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_SUBJECT, "Subject");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_TEXT, "Text");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.setType("plain/jpeg");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/file_name/image_name_name");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">Intent.createChooser(intent, "アプリを選択");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><b>■複数の画像（メールに添付する場合）</b></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">List&lt;Uri&gt; list = new ArrayList&lt;Uri&gt;(){{</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">&nbsp; &nbsp; add(Uri.parse("file:///sdcard/file_name/image_name_name"));</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">&nbsp; &nbsp; add(Uri.parse("file:///sdcard/file_name/image_name_name"));</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">&nbsp; &nbsp; add(Uri.parse("file:///sdcard/file_name/image_name_name"));</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">}};</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">Intent intent = new Intent(Intent.Action_SEND_MULTIPLE);</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_EMAIL, "***@***.com");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_SUBJECT, "Subject");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_TEXT, "Text");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.setType("plain/jpeg");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">intent.putExtra(Intent.EXTRA_STREAM, list);</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; ">Intent.createChooser(intent, "アプリを選択");</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; "><br></p></font></span><span class="Apple-style-span" style="font-size: 18px; "><b><font class="Apple-style-span" color="#a94a76" face="'Hiragino Kaku Gothic Pro'"><span class="Apple-style-span" style="line-height: normal;">&lt;&lt;受け渡しの開始&gt;&gt;</span></font><br></b></span><span class="Apple-style-span" style="color: rgb(169, 74, 118); font-family: 'Hiragino Kaku Gothic Pro'; line-height: normal; "><div><span style="font-size: 12px; ">上記で指定したイベントの受け渡しを開始するメソッド。<br><br></span></div></span><span class="Apple-style-span" style="color: rgb(169, 74, 118); font-family: 'Hiragino Kaku Gothic Pro'; line-height: normal; "><b>■返り値処理が不要の場合</b><br></span><span class="Apple-style-span" style="color: rgb(169, 74, 118); font-family: 'Hiragino Kaku Gothic Pro'; line-height: normal; "><div>startActivity(Intent)<br><br></div></span><span class="Apple-style-span" style="color: rgb(169, 74, 118); font-size: 14px; line-height: 21px; "><span><font class="Apple-style-span" color="#a94a76"></font></span></span><font class="Apple-style-span" color="#a94a76"></font><span class="Apple-style-span" style="color: rgb(169, 74, 118); font-family: 'Hiragino Kaku Gothic Pro'; line-height: normal; "><b>■返り値処理が必要な場合</b><br><div>startActivityForResult(Intent, Int)<br><br><br></div></span><span class="Apple-style-span" style="color: rgb(169, 74, 118); line-height: normal; "><font class="Apple-style-span" face="'Hiragino Kaku Gothic Pro'">＜参考サイト＞</font><br><a href="http://developer.android.com/intl/ja/reference/android/content/Intent.html" target="_blank" title="">http://developer.android.com/intl/ja/reference/android/content/Intent.html</a><br></span><span class="Apple-style-span" style="color: rgb(169, 74, 118); font-size: 14px; line-height: 21px; "><span><font class="Apple-style-span" color="#a94a76"><span class="Apple-style-span" style="font-size: 14px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "><span style="font-size: 18px; "><a href="http://yagni.jp/android/boot_mail_client" target="_blank" title=""></a></span></p></span></font></span></span><span class="Apple-style-span" style="color: rgb(169, 74, 118); font-size: 14px; line-height: 21px; "><font class="Apple-style-span" color="#a94a76"></font></span><span class="Apple-style-span" style="font-family: 'Hiragino Maru Gothic Pro'; font-size: 18px; line-height: normal; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Kaku Gothic Pro'; display: inline !important; "><a href="http://techbooster.jpn.org/andriod/application/8835/#more-8835" target="_blank" title="" style="color: rgb(169, 74, 118); ">http://techbooster.jpn.org/andriod/application/8835/#more-8835</a><font class="Apple-style-span" color="#a94a76"><br></font></p></span><span class="Apple-style-span" style="color: rgb(169, 74, 118); font-family: 'Hiragino Kaku Gothic Pro'; line-height: normal; "><a href="http://yagni.jp/android/boot_mail_client" target="_blank" title="">http://yagni.jp/android/boot_mail_client</a></span><font class="Apple-style-span" color="#bf00bf"><p style="font-size: 16px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="font-size: 16px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="font-size: 16px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="font-size: 16px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="font-size: 16px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="font-size: 16px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="font-size: 16px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p><p style="font-size: 16px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Hiragino Maru Gothic Pro'; "></p></font><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Maru Gothic Pro'"><font class="Apple-style-span" color="#bf00bf"></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Maru Gothic Pro'"><font class="Apple-style-span" color="#bf00bf"></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hiragino Maru Gothic Pro'"><font class="Apple-style-span" color="#0000ff"></font></p><p></p></div></div><br>
]]>
</description>
<link>https://ameblo.jp/yumiahiru/entry-11303624788.html</link>
<pubDate>Mon, 16 Jul 2012 01:17:58 +0900</pubDate>
</item>
</channel>
</rss>
