Reputation: 1035
I have to read device information that's why I have added Android code in codename one under native/Android code. My code is
TelephonyManager tm=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
In this code getting problem to implement getSystemService
method.
I have included android.jar library still getting the problem.
So can you tell me which library required and what import statement should require for that?
Thanks in advance.
Upvotes: 1
Views: 75
Reputation: 52760
Don't include the android jar as that is builtin. I'm guessing you didn't import the package correctly but without an error message it's hard to guess.
Upvotes: 1