短信验证码:围绕以下两个方法开展
1、sendCaptcha 获取验证码
2、commitCaptcha 提交验证码
方法:
1、addTextChangedListener 文本变化
2、requestFocus 请求焦点
3、String phone = etPhoneNum.getText().toString().trim().replaceAll("\\s*", "");
4、
R.string.receiveMessgeCountDown的内容为:<Data>接收短信大约需要<font color=#209526>%s</font>秒</Data>
//这句话就是用time把 html里的%号替换掉
String unReceive=getResources().getString(R.string. receiveMessgeCountDown,time );
//把用html格式化的字符串设置给倒计时的文本框
tvCountDown.setText(Html.fromHtml(unReceive));
参考:http://blog.csdn.net/dmk877/article/details/45582629