{"id":121,"date":"2012-11-12T14:26:08","date_gmt":"2012-11-12T05:26:08","guid":{"rendered":"http:\/\/androiphone.uvs.jp\/?p=121"},"modified":"2013-01-05T22:17:27","modified_gmt":"2013-01-05T13:17:27","slug":"android%e7%94%bb%e9%9d%a2%e9%81%b7%e7%a7%bb%e6%99%82%e3%81%abintent%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e6%b8%a1%e3%81%99%e3%82%b7%e3%83%aa%e3%82%a2%e3%83%a9","status":"publish","type":"post","link":"https:\/\/androiphone.uvs.jp\/?p=121","title":{"rendered":"[Android]\u753b\u9762\u9077\u79fb\u6642\u306bIntent\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u6e21\u3059(\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba)"},"content":{"rendered":"<p>\u753b\u9762\u9077\u79fb\u6642\u306b\u3001\u3069\u3046\u3057\u3066\u3082\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u3044\u308b\u30af\u30e9\u30b9\u3054\u3068\u6e21\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u3069\u3046\u3084\u3063\u3066\u3059\u308b\u304b\u3092\u30e1\u30e2<\/p>\n<p>\u307e\u305a\u3001\u30c7\u30fc\u30bf\u4fdd\u5b58\u3057\u305f\u3044\u304f\u3089\u3044\u3092\u7528\u610f\u3059\u308b\u3002\u4e0b\u306e\u306f\u300c\u4e5d\u4e5d\u304a\u307c\u3048\u3061\u3083\u304a\u300d\u306e\u5404\u554f\u984c(1X1,1X2\u30fb\u30fb\u30fb)\u306e\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b\u30af\u30e9\u30b9\u3067\u3059\u3002<\/p>\n<p>[js highlight=&#8221;5,9&#8243;]<\/p>\n<p>package jp.co.kuku;<\/p>\n<p>import java.io.Serializable;<\/p>\n<p>public class QuesContents implements Serializable{<br \/>\n \/**<br \/>\n *<br \/>\n *\/<br \/>\n private static final long serialVersionUID = -6576047754467174033L;<br \/>\n public String question = &quot;&quot;;<br \/>\n public String left_ans = &quot;&quot;;<br \/>\n public String right_ans = &quot;&quot;;<\/p>\n<p> public String ques_voice = &quot;&quot;;<br \/>\n public String ans_voice = &quot;&quot;;<\/p>\n<p> public boolean ans_flag;<\/p>\n<p> protected QuesContents(String _question,String _left_ans,String _right_ans,boolean _ans_flag,String _ques_voice,String _ans_voice) {<br \/>\n this.question = _question;<br \/>\n this.left_ans = _left_ans;<br \/>\n this.right_ans = _right_ans;<br \/>\n this.ans_flag = _ans_flag;<br \/>\n this.ques_voice = _ques_voice;<br \/>\n this.ans_voice = _ans_voice;<\/p>\n<p> }<br \/>\n}<\/p>\n<p>[\/js]<\/p>\n<p>5\u884c\u76ee\u306e\u3068\u3053\u308d\u3067\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3059\u308b<\/p>\n<p>\u3069\u3046\u3084\u3089\u3001\u5909\u6570\u3082\u3059\u3079\u3066\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u53ef\u80fd\u306a\u5909\u6570\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<br \/>\n9\u884c\u76ee\u306f\u81ea\u52d5\u3067\u3001\u3084\u3063\u3066\u304f\u308c\u308b\u3002\u3069\u3046\u3084\u3089\u53d7\u3051\u6e21\u3057\u306e\u6642\u306b\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4fdd\u6301\u3059\u308b\u306e\u304c\u76ee\u7684\u3089\u3057\u3044\u3002<br \/>\n\u3067\u3042\u3068\u306f\u3001<br \/>\n\u9077\u79fb\u5143<\/p>\n<p>[js]<br \/>\nQuesContents QC =QuesContents(&quot;1\u00d71&quot;,&quot;1&quot;,&quot;4&quot;,true,&quot;dan1_1_ques&quot;,&quot;dan1_1_ans&quot;);<br \/>\n intent.putExtra(&quot;exam_data&quot;,QC);<br \/>\n startActivity(intent);<br \/>\n[\/js]<\/p>\n<p>\u9077\u79fb\u5148<\/p>\n<p>[js]<br \/>\nQuesContents QC = (QuesContents)getIntent().getSerializableExtra(&quot;exam_data&quot;);<br \/>\n[\/js]<\/p>\n<p>\u3067\u3001\u3042\u3068\u306f\u716e\u308b\u306a\u308a\u713c\u304f\u306a\u308a\u30fb\u30fb\u30fb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u753b\u9762\u9077\u79fb\u6642\u306b\u3001\u3069\u3046\u3057\u3066\u3082\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u3044\u308b\u30af\u30e9\u30b9\u3054\u3068\u6e21\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u3069\u3046\u3084\u3063\u3066\u3059\u308b\u304b\u3092\u30e1\u30e2 \u307e\u305a\u3001\u30c7\u30fc\u30bf\u4fdd\u5b58\u3057\u305f\u3044\u304f\u3089\u3044\u3092\u7528\u610f\u3059\u308b\u3002\u4e0b\u306e\u306f\u300c\u4e5d\u4e5d\u304a\u307c\u3048\u3061\u3083\u304a\u300d\u306e\u5404\u554f\u984c(1X1,1X2\u30fb\u30fb\u30fb)\u306e\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b\u30af\u30e9\u30b9\u3067\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[5,6],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-android","category-6","ja"],"_links":{"self":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=121"}],"version-history":[{"count":10,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/121\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}