■Log出力
Log.i(string, string);
Log.d(String tag, String msg, Throwable tr)
Log.v:VERVOSE(すべてのログ情報)
Log.d:DEBUG(デバッグ情報)
Log.i:INFO(情報)
Log.w:WARN(警告)
Log.e:ERROR(致命的な問題)
■Intent
Intent(Context packageContext, Class<?> cls)
参考URL:http://www.javadrive.jp/android/intent/index1.html
インテントというのは簡単に言えばアクティビティなどが他のアクティビティやアプリケーションなどと情報のやり取りを行うための箱のようなものです。インテントという箱には、相手先や届けたい情報などが含まれています。
アクティビティから他の指定したアクティビティへインテントを送ることがあります。例えば他の画面を表示したい場合などです。
Intent.putExtra(キー,数値)
Intent.putExtra(キー,文字列) などなど
参考URL:http://android.roof-balcony.com/intent/putextra/
Androidで、起動させるActivityに値を渡す方法
●値の受け渡し
// 渡す値
intent.putExtra("A", a);
intent.putExtra("B", b);
// 値の取得
// データがない場合、第2引数の 0 が返る
Integer request_code = intent.getIntExtra("A", 0);
String ticker = intent.getStringExtra("B");
■PendingIntent
RemoteViewやNotificationクラスに用いるPendingIntent
参考URL:http://androidpg.blogspot.jp/2012/02/progressbar_09.html
PendingIntent.getBroadcast
参考URL:https://akira-watson.com/android/alarmmanager-timer.html
アラームサービスを取得
context.getSystemService(Context.ALARM_SERVICE)
参考URL:http://d.hatena.ne.jp/takeR/20140110/1389362595
■AlarmManager
参考URL:http://santea.hateblo.jp/entry/2015/12/23/235158
参考URL:http://techbooster.jpn.org/andriod/application/2166/
setRepeating
参考URL:http://www.taosoftware.co.jp/blog/2009/02/alarmmanager.html
set
参考URL:http://ichitcltk.hustle.ne.jp/gudon2/index.php?pageType=file&id=Android027_AlarmManager
■NotificationManager
cancelAll
参考URL:http://blog.livedoor.jp/kojikoji1985/archives/51432816.html
参考URL:https://developer.android.com/guide/topics/ui/notifiers/notifications.html?hl=ja
■BroadcastReceiver
BroadcastReceiverはブロードキャストされたIntentに応答するための仕組みです
参考URL:http://www.sakc.jp/blog/archives/24996