<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Android%2F%E5%86%99%E7%9C%9F%E3%82%AE%E3%83%A3%E3%83%A9%E3%83%AA%E3%83%BC%E5%91%BC%E5%87%BA</id>
		<title>Android/写真ギャラリー呼出 - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Android%2F%E5%86%99%E7%9C%9F%E3%82%AE%E3%83%A3%E3%83%A9%E3%83%AA%E3%83%BC%E5%91%BC%E5%87%BA"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Android/%E5%86%99%E7%9C%9F%E3%82%AE%E3%83%A3%E3%83%A9%E3%83%AA%E3%83%BC%E5%91%BC%E5%87%BA&amp;action=history"/>
		<updated>2026-04-24T16:03:00Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Android/%E5%86%99%E7%9C%9F%E3%82%AE%E3%83%A3%E3%83%A9%E3%83%AA%E3%83%BC%E5%91%BC%E5%87%BA&amp;diff=423&amp;oldid=prev</id>
		<title>127.0.0.1: ページの作成:「*HelloworldActivity.java  import android.widget.ImageView;  private static final int REQUEST_GALLERY = 0;  ImageView imgView;  imgView = (ImageView)findViewById(R.id.test...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Android/%E5%86%99%E7%9C%9F%E3%82%AE%E3%83%A3%E3%83%A9%E3%83%AA%E3%83%BC%E5%91%BC%E5%87%BA&amp;diff=423&amp;oldid=prev"/>
				<updated>2015-05-19T18:11:59Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「*HelloworldActivity.java  import android.widget.ImageView;  private static final int REQUEST_GALLERY = 0;  ImageView imgView;  imgView = (ImageView)findViewById(R.id.test...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;*HelloworldActivity.java&lt;br /&gt;
 import android.widget.ImageView;&lt;br /&gt;
 private static final int REQUEST_GALLERY = 0;&lt;br /&gt;
 ImageView imgView;&lt;br /&gt;
 imgView = (ImageView)findViewById(R.id.testtest);&lt;br /&gt;
 // ギャラリー呼び出し&lt;br /&gt;
 Intent intent = new Intent();&lt;br /&gt;
 intent.setType(&amp;quot;image/*&amp;quot;);&lt;br /&gt;
 intent.setAction(Intent.ACTION_PICK);&lt;br /&gt;
 startActivityForResult(intent, REQUEST_GALLERY);&lt;br /&gt;
 // startActivity(intent);&lt;br /&gt;
 @Override&lt;br /&gt;
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {&lt;br /&gt;
     // TODO Auto-generated method stub&lt;br /&gt;
     if(requestCode == REQUEST_GALLERY &amp;amp;&amp;amp; resultCode == RESULT_OK) {&lt;br /&gt;
         try {&lt;br /&gt;
             InputStream in = getContentResolver().openInputStream(data.getData());&lt;br /&gt;
             Bitmap img = BitmapFactory.decodeStream(in);&lt;br /&gt;
             in.close();&lt;br /&gt;
             // 選択した画像を表示&lt;br /&gt;
             imgView.setImageBitmap(img);&lt;br /&gt;
         } catch (Exception e) {&lt;br /&gt;
         }&lt;br /&gt;
     }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
main.xml&lt;br /&gt;
 &amp;lt;&amp;lt;nowiki /&amp;gt;ImageView&lt;br /&gt;
   android:id=&amp;quot;@+id/testtest&amp;quot;&lt;br /&gt;
   android:layout_width=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
   android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
   android:src=&amp;quot;@drawable/ic_launcher&amp;quot;&lt;br /&gt;
   android:scaleType=&amp;quot;fitStart&amp;quot;&lt;br /&gt;
   android:adjustViewBounds=&amp;quot;true&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>	</entry>

	</feed>