参考:[Think IT] 第4回:Androidの重要な機能、インテント
わかりやすい Sampleつき
参考:日本Androidの会 - インテントを発行してみよう
IntentクラスのputExtra()を使用して引き渡したい情報を付加する
参考:mucchinのAndroid戦記
参考 : 「コードを貼り付けながら。」さんのページ - Intent(インテント)連携をまとめてみる
参考 :んぱかさんのページ
コンストラクタIntentやsetComponentなどによって明示的に指定。相手先が明確。
Intent intent = new Intent(this, xxx.xxx.xxx.class); //xxxにはパッケージのパスが入る
startActivity(intent);
jpegを送信するアクティビティを起動
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.setType("image/jpeg");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("jpegファイルの場所"));
startActivity(intent);
http://www.taosoftware.co.jp/blog/2009/03/alarmmanager_5.html
http://toru.tea-nifty.com/toru204e/2009/12/post-a4e3.html
インテントフィルタは、2方法ある
・プログラム内にIntent Filter クラスを使って直接記述
・マニフェストファイル内に intent-filterタグで記述 (一般的)
コード内で作成して登録したブロードキャストレシーバの場合、インテントフィルタは、Intent Filter オブジェクトとして直接インスタンス化される。それ以外のっ全てのフィルタは、マニフェストで設定する