add code comment

main
Peanut_Ono 1 year ago
parent 062a36a5e5
commit c38085dea3

@ -46,11 +46,14 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD
private static final int SNIPPET_PREW_MAX_LEN = 60;
MediaPlayer mPlayer;
/**
*
* @param savedInstanceState Bundle Map key-value
* saveInstanceState Activity
*/
@Override
protected void onCreate(Bundle savedInstanceState) {
// Bundle类型的数据与Map类型的数据相似都是以key-value的形式存储数据的
// saveInstanceState是用来保存Activity的状态的
super.onCreate(savedInstanceState); // 能从onCreate的参数saveInstanceState中获得状态数据
requestWindowFeature(Window.FEATURE_NO_TITLE); // 显示无标题界面
@ -76,7 +79,7 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD
: mSnippet;
// 判断标签片段是否达到符合长度
} catch (IllegalArgumentException e) {
e.printStackTrace();
e.printStackTrace(); // 输出异常信息
return;
}

Loading…
Cancel
Save