使用mob发送短信验证码(自带GUI版本)

要想自绘界面,请看我的另一章博客

http://blog.csdn.net/qq_32400821/article/details/56014314

一、安装jdk

注意其:aar文件如何导入liblary?

二、如何使用有GUI的接口?
String APPKEY = "18fb0e366525b" ;
String APPSECRET = "cc8d98fbe1e6ae52ac1aa1417e0573b3" ;

SMSSDK. initSDK (LoginActivity. this, APPKEY , APPSECRET ) ;


//打开注册页面
RegisterPage registerPage = new RegisterPage() ;
registerPage.setRegisterCallback( new EventHandler() {
public void afterEvent ( int event , int result , Object data) {
// 解析注册结果
if (result == SMSSDK. RESULT_COMPLETE ) {
@SuppressWarnings ( "unchecked" )
HashMap<String , Object> phoneMap = (HashMap<String , Object>) data ;
String country = (String) phoneMap.get( "country" ) ;
String phone = (String) phoneMap.get( "phone" ) ;

startActivity( new Intent(LoginActivity. this, ModifyPassword. class )) ;
}

}
}) ;
registerPage.show(LoginActivity. this ) ;

猜你喜欢

转载自blog.csdn.net/qq_32400821/article/details/65714062