Channel Frequency API & String ???

by laf0138 » Thu, 14 Oct 2010 02:08:37 GMT

Sponsored Links
 I've searched the blogs and forums to find a string or api that will
tell me what channel or frequency I'm on with the cell tower.

Any hints would be great.



Other Threads

1. Socket Rocket - Im losing my mind!

Greetings group,

My Splash Screen activity launches ConnectionService which establishes a
Connection to a hardware controller. While the Service is being launched, I
display a "Connecting..." ProgressDialog. I have been developing the app
with the IP and Port hard coded. I am now  trying to develop an
Activity(User Settings) where the User can enter the IP address and Port for
their hardware controller. If I enter the correct IP address and Port, the
User Settings Activity works great. I can store the data to preferences and
retrieve the data in the ConnectionService.

I am having an issue when I enter the wrong IP and/or Port. I haven't tried
it, but I would imagine I would encounter the same issue if the controller
were offline. In the end, I would like for the ConnectionService to display
a dialog on the main UI thread (when my app is running) informing the User
that there is a problem with the Connection. Then navigate them to the User
Settings Activity to update/input their settings.

The behavior is such that the app basically locks up. The indeterminate
progress bar on the ProgressDialog displayed by the Splash Screen stops
spinning. Then, shortly after, comes my new friend "force close".

I've googled every combination of Sockets and error detection that I can
find. I have been trying for several days now to catch exceptions, but I get
nothing. I am able to Log.i right up until the Connection class calls for
the new Socket(). The only thing I notice in the LogCat is that the
ActivityManager is timing out. I can't imagine this is a unique problem, but
I can't seem to find any reference as to how to handle this issue.

Here is the code from my Splash Screen onCreate():

    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {

 Log.i("SPLASH","making connection...");
 makeConnection = new Runnable(){
            public void run() {
             try {
              startService(new Intent(Haus.this, ConnectionService.class));
             } catch (Exception e){
              Log.i("CAUGHTIT","I caught it!");
        Log.i("SPLASH","starting thread...");
        t =  new Thread(null, makeConnection, "ConnectingToBackground");
        m_ProgressDialog =,
                "Please wait...", "Connecting...", true, false);
        /* New Handler to start the Menu-Activity
         * and close this Splash-Screen after some seconds.*/
        new Handler().postDelayed(new Runnable(){
             public void run() {
                  /* Create an Intent that will start the Menu-Activity. */
                  Intent mainIntent = new
        }, 3000);

The ConnectionService pulls in the IP and Port from preferences. When I have
the correct IP and Port, it works fine.
The try/catch in the makeConnection runnable doesn't work for any type of

Any tips/guidance/etc are greatly appreciated.



2. InstrumentationTestRunner Error Help!

Okay, so I'm new to Android dev, and I've been doing the tutorials and
stuff. Yesterday, everything compiled and ran fine. Then, I decided to
add some sound clips to my app, everything still compiled and ran

Today, I keep getting the following error. I also tried to make my own
app, and I still get the same error across all my apps:

ERROR: Application does not specify a
android.test.InstrumentationTestRunner instrumentation or does not
declare uses-library android.test.runner

I tried searching for a solution, and came up with adding:

<instrumentation android:name="android.test.InstrumentationTestRunner"
android:label="Sample Instrumentation" >

to the manifest, but that does nothing!

What should I do to fix this?


3. help hero saya pengen kayak gini

4. commands to sent to device to run JUnit tests

5. Google Maps API: How to detect when the user has stopped panning the map

6. Accessing Listview items

7. HTML Email with inline image