日期:2014-05-20 浏览次数:21327 次
public boolean register(String mima){ try{ [color=#FF0000]String mingWen = decrypt(mima);[/color] String IMEI = getIMEI(); mIsRegister = MEI.equals(mingWen); }catch(Exception e){ e.printStackTrace(); mIsRegister = false; } return mIsRegister; } private String decrypt(String miString) { byte[] miByte = Base64.decode(miString); byte[] mingByte = rsa.decrypt(miByte); [color=#FF0000] return new String(mingByte);[/color] }
java.lang.NullPointerException at java.lang.String.<init>(String.java:198) at com.anxing.englishgameII.Register.decrypt(Register.java:116) at com.anxing.englishgameII.Register.register(Register.java:84) at com.anxing.englishgameII.GameApp.onCreate(GameApp.java:48) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1045)