我正在创建一个具有发送短信模块的应用程序。我正在使用2个广播接收器和PendingIntent,一个用于发送确认短信,另一个用于发送..发送的短信广播接收器工作正常,但没有送达。我在服务中使用以下代码。PendingIntentsentPI=PendingIntent.getBroadcast(this,0,newIntent(SENT),0);PendingIntentdeliveredPI=PendingIntent.getBroadcast(this,0,newIntent(DELIVERED),0);//---whentheSMShasbeensent---isworkinga
键数组定义如下:keys=newchar[]{resolv,'А','Б','В','Г','Д','Е','Ё','Ж','З','И','Й','К','Л','М','Н','О','П','Р','С','Т','У','Ф','Х','Ц','Ч','Ш','Щ','Ъ','Ы','Ь','Э','Ю','Я'};'resolv'是一个常量char值0x00,但这与此问题无关。现在,此代码引发“java.lang.ArrayIndexOutOfBoundsException:length=34;index=34”异常有时:protectedvoidLoadKeyRects()