hi,
can any one let me know, does SAMSUNG Galaxy GT-S5830, support to work with"neiboringcellinfo" or not?
when I am trying to work with it, its just crashing the code.
thnx !
Printable View
hi,
can any one let me know, does SAMSUNG Galaxy GT-S5830, support to work with"neiboringcellinfo" or not?
when I am trying to work with it, its just crashing the code.
thnx !
In the future, please make sure you do the following:
- Post in the correct forum (this should be in Android)
- Give exact details as to the problem (what does the stack trace say?)
- Provide a short, self contained, correct example of the problem (SSCCE)
Fortunately for you, I just happen to know the answer to this because I ran across it not to long ago (on HTC Desire). Have a look at the manifest file. It should contain the following persmissions; READ_PHONE_STATE, ACCESS_COARSE_UPDATES and ACCESS_COARSE_LOCATION
If it is still crashing, check how you are accessing the telephony context manager. It should look like this:
Code Java:TelephonyManager telManager = ( TelephonyManager )getSystemService(Context.TELEPHONY_SERVICE);
Also, make sure you are not using the deprecated constructor and check the results of the getCid() method for UNKNOWN_CID and UNKNOWN_RSSI as per the definition of the NeighboringCellInfo class.
I've moved this thread to the Android forum. But you'd benefit from following Christopher's advice. You telling us that "my code crashes" is as useful to us as us saying "then fix it" is useful to you.