• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Html illiterate... Please help!!

I am trying to right some code for an application to read the signal strength in decibels and I can't get it right. Any help here's my code - PhoneStateListener phoneStateListener = new PhoneStateListener() { public void onSignalStrengthChanged(int asu) {} };

telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTH

Do you think this might work?

What needs changing
 
1) There's no HTML there at all. (1a) You can't write programs in HTML anyway.

2) What units is LISTEN_SIGNAL_STRENGTH in?
 
The code you have provided makes no sense without a little context. And its not html.

Can you give some more info so people can help you better? Like, what platform your using, maybe a little more code?
 
Nice work deciphering this ;)

I know only a lil java, and need a little more info about the implementation of this code to understand what the heck is going on here lol

:thumb:
 
Back
Top Bottom