1
votes

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.

1

1 Answers

1
votes

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.