{"id":278,"date":"2011-02-11T22:56:47","date_gmt":"2011-02-11T13:56:47","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2011\/02\/11\/android_intent_twitter_evernote\/"},"modified":"2011-02-11T22:56:47","modified_gmt":"2011-02-11T13:56:47","slug":"android_intent_twitter_evernote","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2011\/02\/11\/android_intent_twitter_evernote\/","title":{"rendered":"Android \u6697\u9ed9\u7684 Intent \u3067 Twitter \u3084 Evernote \u3068\u9023\u643a\u3059\u308b"},"content":{"rendered":"<div style=\"text-align:center\">\n<iframe loading=\"lazy\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?t=typea09-22&#038;o=9&#038;p=13&#038;l=st1&#038;mode=books-jp&#038;search=Android&#038;fc1=000000&#038;lt1=_blank&#038;lc1=3366FF&#038;bg1=FFFFFF&#038;f=ifr\" marginwidth=\"0\" marginheight=\"0\" width=\"468\" height=\"60\" border=\"0\" frameborder=\"0\" style=\"border:none;\" scrolling=\"no\"><\/iframe>\n<\/div>\n<h2>\u6697\u9ed9\u7684 Intent<\/h2>\n<p>Android \u3067\u306f\u3001<a href=\"http:\/\/developer.android.com\/reference\/android\/content\/Intent.html\">Intent<\/a> \u3068\u3044\u3046\u5b9f\u884c\u3059\u3079\u304d\u51e6\u7406\u3092\u62bd\u8c61\u7684\u306b\u8a18\u8ff0\u3057\u305f\u30af\u30e9\u30b9\u3092\u5229\u7528\u3057\u3066\u3001\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u9023\u643a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Windows \u3067\u3082\u95a2\u9023\u3065\u3051\u3055\u308c\u3066\u3044\u306a\u3044\u62e1\u5f35\u5b50\u3092\u6301\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u305f\u308a\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3059\u308b\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u958b\u304f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/file_choise.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"file_choise\" border=\"0\" alt=\"file_choise\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/file_choise_thumb.jpg\" width=\"320\" height=\"213\" \/><\/a> <\/p>\n<p>\u3053\u308c\u3068\u4f3c\u305f\u3088\u3046\u306a\u3053\u3068\u304c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u9593\u3067\u306e\u60c5\u5831\u306e\u53d7\u3051\u6e21\u306b\u3066\u3001\u3082\u3063\u3068\u67d4\u8edf\u306b\u884c\u3046\u3053\u3068\u304c\u3068\u3044\u3046\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u304b\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u3042\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3001<\/p>\n<p>\u300c\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3067\u304d\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u624b\u3092\u6319\u3052\u3066\uff01\u300d<\/p>\n<p>\u3068 Intent \u3092\u6295\u3052\u308b\u3068\u3001\u300c\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6\u53ef\u80fd\u300d\u3068 AndroidManifest.xml \u306b\u8a18\u8ff0\u3057\u3066\u3042\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e00\u89a7\u304b\u3089\u3001\u51e6\u7406\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u540c\u3058\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u306e Activity (\u753b\u9762) \u304b\u3089 \u5225 Activity \u3092\u8d77\u52d5\u3059\u308b\u3068\u304d\u306b\u3082 Intent \u3092\u4f7f\u3063\u3066\u60c5\u5831\u3092\u53d7\u3051\u6e21\u3059\u304c\u3001\u3053\u306e\u5834\u5408\u3001\u8d77\u52d5\u3059\u308b Activity \u3092\u660e\u793a\u3059\u308b\u305f\u3081\u3001\u660e\u793a\u7684 Intent \u3068\u547c\u3070\u308c\u308b\u3002<\/p>\n<p>\u5bfe\u3057\u3066\u524d\u8005\u306f\u3001Intent \u3092\u9001\u4fe1\u3059\u308b\u5148\u3092\u660e\u793a\u3057\u306a\u3044\u305f\u3081\u3001\u6697\u9ed9\u7684 Intent \u3068\u547c\u3070\u308c\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Intent \u304c\u3001\u3059\u3070\u3089\u3057\u3044\u306e\u306f\u3001\u3053\u306e\u3088\u3046\u306b\u3001\u3086\u308b\u30fc\u3044\u60c5\u5831\u306e\u3084\u308a\u3068\u308a\u306e\u307f\u3067\u3001\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u9023\u643a\u3067\u304d\u308b\u6a5f\u69cb\u306e\u304a\u304b\u3052\u3067\u3001\u7c21\u5358\u306b Twitter \u5bfe\u5fdc\u3060\u3063\u305f\u308a\u3001Dropbox \u5bfe\u5fdc\u3060\u3063\u305f\u308a\u3001Evernote \u5bfe\u5fdc\u3060\u3063\u305f\u308a\u3068\u3044\u3046\u30ad\u30e3\u30c3\u30c1\u30fc(?) \u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u308c\u3066\u3057\u307e\u3046\u306e\u3060\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u3067\u3001\u4eca\u56de\u306f\u3001\u305d\u3093\u306a\u3059\u3070\u3089\u3057\u3044\u3001\u524d\u8005\u306e\u6697\u9ed9\u7684 Intent \u306e\u5229\u7528\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<h2>\u6697\u9ed9\u7684 Intent \u3092\u6295\u3052\u3066\u30c7\u30fc\u30bf\u3092 Twitter \u306b\u9001\u4fe1<\/h2>\n<p>\u81ea\u4f5c\u306e <a href=\"https:\/\/market.android.com\/details?id=info.typea.typeapad\">\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf<\/a> \u3092\u4f8b\u306b\u3001\u6319\u52d5\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3002<\/p>\n<h3>\u307e\u305a\u3001\u30a8\u30c7\u30a3\u30bf\u304b\u3089\u6587\u7ae0\u306e\u4e00\u90e8\u5206\u3092\u9078\u629e\u3059\u308b<\/h3>\n<h2><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent01.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"intent01\" border=\"0\" alt=\"intent01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent01_thumb.png\" width=\"164\" height=\"270\" \/><\/a> <\/h2>\n<h3>\u5171\u6709\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u5bfe\u5fdc\u3059\u308b\u30a2\u30d7\u30ea\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u308b<\/h3>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent02.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"intent02\" border=\"0\" alt=\"intent02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent02_thumb.png\" width=\"162\" height=\"268\" \/><\/a> <\/p>\n<h3>TweetDeck \u3092\u9078\u629e\u3059\u308b\u3068\u3001\u898b\u4e8b\u306b\u6a5f\u80fd\u9023\u643a\u304c\u679c\u305f\u3055\u308c\u308b<\/h3>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent03.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"intent03\" border=\"0\" alt=\"intent03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent03_thumb.png\" width=\"159\" height=\"263\" \/><\/a> <\/p>\n<p>\u3068\u3044\u3046\u6a5f\u80fd\u3092\u5b9f\u73fe\u3059\u308b\u306e\u306b\u3001\u4ee5\u4e0b\u304f\u3089\u3044\u306e\u884c\u6570\u3057\u304b\u5fc5\u8981\u3068\u3057\u306a\u3044\u3002\u3057\u304b\u3082\u307b\u3068\u3093\u3069\u30c6\u30ad\u30b9\u30c8\u306e\u9078\u629e\u7bc4\u56f2\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3001Intent \u306b\u3064\u3044\u3066\u306f\u30014\u30015\u884c\u3067\u81ea\u30a2\u30d7\u30ea\u3068Twitter \u30a2\u30d7\u30ea\u3068\u306e\u9023\u643a\u304c\u3067\u304d\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u3044\u3084\u3001\u3053\u308c\u3060\u3051\u3067\u3001Twitter \u3060\u3051\u3067\u306f\u306a\u304f\u3001Gmail \u3084 Evernote \u3068\u3082\u9023\u643a\u304c\u3067\u304d\u3066\u3044\u308b\u3002<\/p>\n<p>\u3059\u3070\u3089\u3057\u3044\uff01<\/p>\n<pre class=\"prettyprint linenums\">\/**\r\n * \u6697\u9ed9\u7684 Intent \u3067\u30c6\u30ad\u30b9\u30c8\u3092\u5171\u6709\u3059\u308b\r\n *\/\r\npublic void share() {\r\n    Intent intent = new Intent(android.content.Intent.ACTION_SEND);\r\n    intent.setType(\"text\/plain\");\r\n\r\n    \/\/ EditText \u304b\u3089\u9078\u629e\u7bc4\u56f2\u3092\u53d6\u5f97\u3059\u308b\u3002\u9078\u629e\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u5168\u4f53\u3092\u5bfe\u8c61\u3068\u3059\u308b\r\n    String content = getEditor().getText().toString();\r\n    int start = getEditor().getSelectionStart();\r\n    int end   = getEditor().getSelectionEnd();\r\n\r\n    if (start &gt;= 0 &amp;&amp; start != end) {\r\n        if (start &gt; end) {\r\n            int tmp = start;\r\n            start = end;\r\n            end = tmp;\r\n        }\r\n        content = content.substring(start, end);\r\n    }\r\n    intent.putExtra(Intent.EXTRA_TEXT, content);\r\n    startActivity(Intent.createChooser(\r\n            intent, getString(R.string.msg_share_file)));\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u6697\u9ed9\u7684 Intent \u3092\u53d7\u4fe1\u3057\u3066\u3001\u81ea\u30a2\u30d7\u30ea\u3067\u5229\u7528\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u9006\u306b\u4ed6\u306e\u30a2\u30d7\u30ea\u304c\u6295\u3052\u305f\u3001Intent \u3092\u62fe\u3046\u306b\u306f\u3069\u3046\u3059\u308b\u304b\u3002<\/p>\n<h3><a href=\"http:\/\/andronavi.com\/2010\/05\/19368\">\u30a2\u30b9\u30c8\u30ed\u30d5\u30a1\u30a4\u30eb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc<\/a> \u3068\u3044\u3046\u9ad8\u6a5f\u80fd\u30d5\u30a1\u30a4\u30eb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30bf\u30c3\u30d7\u3059\u308b<\/h3>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent04.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"intent04\" border=\"0\" alt=\"intent04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent04_thumb.png\" width=\"158\" height=\"260\" \/><\/a> <\/p>\n<h3>\u69d8\u3005\u306a\u7acb\u6d3e\u306a\u30a2\u30d7\u30ea\u306b\u6df7\u3058\u3063\u3066<a href=\"https:\/\/market.android.com\/details?id=info.typea.typeapad\">\u81ea\u4f5c\u30a8\u30c7\u30a3\u30bf<\/a>\u304c\u9078\u629e\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u8868\u793a\u3055\u308c\u305f\uff01<\/h3>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent05.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"intent05\" border=\"0\" alt=\"intent05\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent05_thumb.png\" width=\"158\" height=\"260\" \/><\/a> <\/p>\n<h3><a href=\"https:\/\/market.android.com\/details?id=info.typea.typeapad\">\u81ea\u4f5c\u30a8\u30c7\u30a3\u30bf<\/a>\u3092\u9078\u629e\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3067\u304d\u308b<\/h3>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent06.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"intent06\" border=\"0\" alt=\"intent06\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent06_thumb.png\" width=\"162\" height=\"267\" \/><\/a> <\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3092\u884c\u3046\u305f\u3081\u306b\u306f\u3001\u6697\u9ed9\u7684 Intent \u306e\u9001\u4fe1\u3088\u308a\u306f\u5c11\u3057\u591a\u3081\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3002<\/p>\n<h3>AndroidManifest.xml \u306e activity \u8981\u7d20\u306b\u3001intent-filter \u3092\u8a18\u8ff0\u3057\u3001\u3069\u306e\u3088\u3046\u306a\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u5fdc\u7b54\u3059\u308b\u306e\u304b\u3092\u8a18\u8ff0\u3059\u308b<\/h3>\n<pre class=\"prettyprint linenums\"> &lt;activity android:label=\"@string\/app_name\" android:name=\"TypeapadActivity\"&gt;\r\n   &lt;intent-filter&gt;\r\n     &lt;action android:name=\"android.intent.action.MAIN\" \/&gt;\r\n     &lt;category android:name=\"android.intent.category.LAUNCHER\" \/&gt;\r\n   &lt;\/intent-filter&gt;\r\n   &lt;intent-filter&gt;\r\n     &lt;action android:name=\"android.intent.action.VIEW\" \/&gt;\r\n     &lt;action android:name=\"android.intent.action.EDIT\" \/&gt;\r\n     &lt;category android:name=\"android.intent.category.DEFAULT\" \/&gt;\r\n     &lt;data android:mimeType=\"text\/plain\" \/&gt;\r\n     &lt;data android:mimeType=\"text\/html\" \/&gt;\r\n   &lt;\/intent-filter&gt;\r\n &lt;\/activity&gt;<\/pre>\n<h3>Activity \u306e onCreate \u3067\u3001\u6697\u9ed9\u7684 Intent \u304c\u6e21\u3055\u308c\u305f\u6642\u306e\u51e6\u7406\u3092\u8a18\u8ff0\u3059\u308b<\/h3>\n<p>\u4e0b\u3067\u306f\u7701\u7565\u3057\u3066\u3042\u308b\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u306eURI\u304c\u6e21\u3063\u3066\u304d\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u6587\u5b57\u5217\u304c\u6e21\u3063\u3066\u304d\u305f\u3089EditText\u306b\u8868\u793a\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3092\u884c\u3063\u3066\u3044\u308b\u306e\u307f\u3002<\/p>\n<pre class=\"prettyprint linenums\"> @Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n     super.onCreate(savedInstanceState);\r\n \r\n     \/\/ \u6697\u9ed9\u7684\u30a4\u30f3\u30c6\u30f3\u30c8\u3067\u6e21\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u51e6\u7406\r\n     if (!getIntent().getAction().equals(Intent.ACTION_MAIN)) {\r\n         Uri uri = getIntent().getData();\r\n \r\n         \/\/ \u30b9\u30ad\u30fc\u30de\u306e\u5224\u5b9a\r\n         if (\"file\".equals(uri.getScheme())) {\r\n             File file = new File(uri.getPath());\r\n             \r\n             \/\/ file \u306b\u5bfe\u3059\u308b\u51e6\u7406\r\n             \r\n         } else if \r\n             (\"content\".equals(uri.getScheme())){\r\n             try {\r\n                 StringBuffer buf = new StringBuffer();\r\n                 ContentResolver cr = getContentResolver();\r\n             \r\n                 BufferedReader reader = new BufferedReader(\r\n                     new InputStreamReader(cr.openInputStream(uri)));\r\n                 \r\n                 String line = null;\r\n                 while((line = reader.readLine()) != null) {\r\n                     buf.append(line).append(\"\\n\");\r\n                 }\r\n                 reader.close();\r\n                 \r\n                 \/\/ buf \u3092\u5229\u7528\u3057\u305f\u51e6\u7406\r\n                 \r\n             } catch (Exception e) {\r\n                 \/\/ \u30a8\u30e9\u30fc\u51e6\u7406\r\n             }\r\n         }\r\n     }<\/pre>\n<\/p>\n<\/p>\n<p>\u7d30\u304b\u3044\u8a71\u306f\u3001\u4ed6\u306e\u30b5\u30a4\u30c8\u3084\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u3069\u3093\u306a Intent \u3092\u6295\u3052\u305f\u308a\u53d7\u3051\u305f\u308a\u3059\u308c\u3070\u3088\u3044\u306e\u304b<\/h2>\n<p>\u3067\u306f\u3001\u3042\u306e\u304a\u6c17\u306b\u5165\u308a\u306e\u30a2\u30d7\u30ea\u306b\u81ea\u4f5c\u30a2\u30d7\u30ea\u306e Intent \u3092\u62fe\u3063\u3066\u3082\u3089\u3046\u306b\u306f\u3001\u3069\u3093\u306a\u98a8\u306b Intent \u3092\u6295\u3052\u308c\u3070\u3044\u3044\u306e\u304b\uff1f<\/p>\n<p>\u7d50\u69cb\u60a9\u3093\u3067\u3001\u30b0\u30b0\u3063\u3066\u3082\u3088\u304f\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u304b\u3082\u3002\u81ea\u5206\u306f\u3042\u3063\u305f\u3002<\/p>\n<p>LogCat \u3092\u307f\u308b\u3068\u30d2\u30f3\u30c8\u304c\u5f97\u3089\u308c\u308b\u304b\u3082\u3002<\/p>\n<p>LogCat \u306f\u3001Eclipse \u30e1\u30cb\u30e5\u30fc Show View \uff0d Other \u304b\u3089\u958b\u304f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/logcat.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"logcat\" border=\"0\" alt=\"logcat\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/logcat_thumb.jpg\" width=\"229\" height=\"260\" \/><\/a> <\/p>\n<p>\u3053\u308c\u306d\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent07.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"intent07\" border=\"0\" alt=\"intent07\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent07_thumb.jpg\" width=\"673\" height=\"124\" \/><\/a> <\/p>\n<p>\u3053\u308c\u3092\u958b\u3044\u3066\u304a\u3044\u3066\u3001\u4f8b\u3048\u3070\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u30da\u30fc\u30b8\u3092\u5171\u6709\u3059\u308b\u3068<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent08.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"intent08\" border=\"0\" alt=\"intent08\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidIntent_10D2D\/intent08_thumb.jpg\" width=\"172\" height=\"284\" \/><\/a> <\/p>\n<p>\u30ed\u30b0\u306bIntent \u306e\u5185\u5bb9\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u308b(\u6539\u884c\u3057\u3066\u307e\u3059)\u3002<\/p>\n<pre class=\"prettyprint linenums\">02-11 22:22:18.712: INFO\/ActivityManager(95): Starting activity: \r\nIntent { \r\n  act=android.intent.action.CHOOSER \r\n  cmp=android\/com.android.internal.app.ChooserActivity (has extras) \r\n}<\/pre>\n<p>\u3053\u308c\u3092\u78ba\u8a8d\u3059\u308c\u3070\u3001\u3069\u306e\u3088\u3046\u306a Intent \u3092\u6295\u3052\u308b\u3068\u3001\u3069\u3093\u306a\u30a2\u30d7\u30ea\u306b\u62fe\u3063\u3066\u3082\u3089\u3048\u308b\u306e\u304b\u3064\u304b\u3081\u308b\u3068\u601d\u3046\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001LogCat \u306e\u884c\u3092 Ctrl + C \u3059\u308c\u3070\u3001\u5185\u5bb9\u304c\u30b3\u30d4\u30fc\u3055\u308c\u308b\u306e\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u78ba\u8a8d\u3059\u308c\u3070\u3001Eclipse\u4e0a\u3067\u7121\u7406\u306b\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3044\u3058\u3087\u3002\u307e\u305f\u4e00\u6b69\u91ce\u671b\u306b\u8fd1\u3065\u3044\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6697\u9ed9\u7684 Intent Android \u3067\u306f\u3001Intent \u3068\u3044\u3046\u5b9f\u884c\u3059\u3079\u304d\u51e6\u7406\u3092\u62bd\u8c61\u7684\u306b\u8a18\u8ff0\u3057\u305f\u30af\u30e9\u30b9\u3092\u5229\u7528\u3057\u3066\u3001\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u9023\u643a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u308b\u3002 \u4f8b\u3048\u3070\u3001Windows \u3067\u3082\u95a2\u9023\u3065\u3051\u3055\u308c\u3066\u3044\u306a\u3044\u62e1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[39],"tags":[],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-android"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}