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.

Results 1 to 3 of 3

Thread: neiboringcellinfo SAMSUNG GT-S5830

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default neiboringcellinfo SAMSUNG GT-S5830

    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 !


  2. #2
    Forum VIP
    Join Date
    Jun 2011
    Posts
    305
    My Mood
    Bored
    Thanks
    45
    Thanked 85 Times in 71 Posts
    Blog Entries
    4

    Default Re: neiboringcellinfo SAMSUNG GT-S5830

    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.

  3. #3
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,290
    My Mood
    Hungover
    Thanks
    142
    Thanked 620 Times in 531 Posts

    Default Re: neiboringcellinfo SAMSUNG GT-S5830

    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!