Security Exception-Application unauthorized to access restricted api
posted 12 years ago
I am developing an instant messaging application, it is working fine with midp 1.x versions but gives securtiy exception saying APPLICATION UNAUTHORIZED TO ACCESS RESTRICTED API'S. I tried to go thru the code and found that a socket is being created but is unable to write on that socket. The application is working fine when tested on NOKIA N-GAGE but dosent work on NOKIA 7610,6260,6600....etc(probably it is not able to write on the tcp socket).. Looking for a solution badly!!!
I am facing yet another problem in reading from the socket, it seems it is not able to find end of file, i have given a condition to read the file till it gets -1 but it is not coming out of the while loop. The same code is working fine in MIDP 1.0 but gives problem using MIDP 2.0, can anyone help me out......