Getting Current Signal Strength

by dolsen » Fri, 15 Jan 2010 11:14:36 GMT


Sponsored Links
 I am trying to figure out how to get the current signal strength of
the Android 2.1 device. So far I can only find access to the
SignalStrength object if I am listening for a change. I don't want to
have to wait for the strength to change in order to see what the
strength is. Can someone show me how this can be done?



Getting Current Signal Strength

by None » Wed, 20 Jan 2010 02:07:54 GMT


 Go to Settings->About Phone->Status and there is an option there for
Signal Strength.



> strength is. Can someone show me how this can be done?


Sponsored Links


Other Threads

1. How to force Activity in landscape mode without Activity restart

Hi folks,

I have a problem to start/create Activity in landscape mode. My
Activity need to start in landscape mode and be used in landscape mode
by users. So far, I used

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)

to force screen orientation of my Activity to landscape mode in
onCreate() method.

In addition to this screen mode requirement, my application need to
start another background thread in onResume() method, and this thread
takes some seconds in order to finish an initialization process, and
it is not desirable to to stop/restart this thread's service during
the initialization process.

However setRequestedOrientation
(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) forces my Activity restart
in a very little while (means onCreate->onResume->onPause->onStop are
executed twice at the first place). As a result, my background thread
be stopped/restarted during the initialization process, and this makes
me a mess at this moment.

If anyone has any idea, please share and discuss here.
Thank you.

--~--~---------~--~----~------------~-------~--~----~

2. text won't center.

I have this xml --

    <LinearLayout android:orientation="horizontal"
                      android:layout_centerVertical="true"
                  android:layout_width="fill_parent"
                  android:layout_height="35px">

                <ImageButton android:id="@+id/Btn1"
                             android:layout_width="wrap_content"
                             android:layout_height="fill_parent"
                             android:src="@drawable/btn1"
                             android:background="@color/transparent"/>

                <TextView android:id="@+id/Text1"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:layout_centerHorizontal="true"
                      android:background="@color/red"
                      android:text="Text1"/>

        </LinearLayout>

The text will not center.  What am I doing wrong.

tia.
--~--~---------~--~----~------------~-------~--~----~

3. How to add root cert? Revocation mechanism

4. ParseException: At line 1, column 0: not well-formed (invalid token)

5. How to share datas between tabs in a TabActivity

6. Where do we have to close the DB in a ContentProvider?

7. How to get JUnitReports via android.test.InstrumentationTestRunner