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 !
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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:
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.
Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!