Question : gps

i m writing some code to get imei from gps device through socket programming.
i m able to get imei in same java class but if i want to retrieve this imei from another java class then what would be the right way to retrieve imei in different class.
i tried to get imei through session but i m not familiar with session classes  please provide me some example code.

thanks

Answer : gps

A a = new Class A(); invokes the constructor and creates the socket. So I donot see any issues.
Random Solutions  
 
programming4us programming4us