Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6575109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:20:49+00:00 2026-05-25T15:20:49+00:00

I have a little problem with a SignalStrength Android class. Is there a way

  • 0

I have a little problem with a SignalStrength Android class. Is there a way to use methods from this class without referencing an object from this class in a onSignalStrengthsChanged() method?
From all the examples I saw, it seems to me that this is an Event Class and that object is created when an event (change of gsm signal strength) occurs and that this is the only way to call methods from this class. Am I right?

    public void onSignalStrengthsChanged(SignalStrength signalStrength)
  {
     String power= String.valueOf(signalStrength.getGsmSignalStrength());
     gsmStat.setText("GSM cinr: " +power);
  }

What if I want to call methods from this class (and read gsm signal properties) in some other case, for example when I click a button object?

Thank you very much for any help, I’m really stuck with this.

BR,
Z


Thank you for clearing this up. I tried to use getNeighbouringCellInfo but for some reason this return 0. And yes I’ve searched and tried different examples.

Tel = ( TelephonyManager )getSystemService(Context.TELEPHONY_SERVICE);

public void onClick(View v) {
List<NeighboringCellInfo>  neighCell = null; 
neighCell = Tel.getNeighboringCellInfo(); 
NeighboringCellInfo thisCell = neighCell.get(1);
int thisNeighRSSI = thisCell.getRssi();
String rssi=Integer.toString(thisNeighRSSI);
tvRSSI.setText("Test: " +rssi);
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:20:49+00:00Added an answer on May 25, 2026 at 3:20 pm

    You can’t. The only way to get a relevant SignalStrength object is in the onSignalStrengthChanged method.

    You can, however, use the TelephonyManager.getNeighbouringCellInfo method to list surrounding cells and get the signal RSSI power (getRssi).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one little problem...Here is my code..Is there a way to distribute weights
I have this little problem, that I cannot figure out which arguments to pass
I have a little problem. I use argparse to parse my arguments, and it's
I have little problem with printing data like this, I have written script like
I have a little problem because I don't know whats the best way to
I have little problem. I can't use AcceptVerb.Get on some ASP.NET MVC actions because
have a little problem with this code: UITableViewCell *cell = (UITableViewCell *)[[button superview] superview];
Hey most of my issue has been solved but i have little problem This
I have a little problem, I am building a database from CSV files using
I have a little problem with multiline UILabel, my UILabel text like starts from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.