android.telephony

by run99ner_ff » Tue, 10 Feb 2009 06:40:10 GMT


Sponsored Links
 I understand that android.telephony.PhoneStateIntentReceiver has been
retired.

How can I get the 3 neighbor's cell id and signal strength?

Thanks!

run99ner_ff

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



android.telephony

by pynetmony » Wed, 18 Feb 2009 01:33:55 GMT


 


Why is has this be done? I need that.

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


Sponsored Links


android.telephony

by run99ner_ff » Fri, 06 Mar 2009 05:18:38 GMT


 Okay, I have found a way to get the cell id, lac, ncc, bcc, (bsic),
rxLev, rxQual, C/I, neighbor info, gsm & umts information.  Launch the
Dialer app and type *#*#7262626#*#* . . next push the "Menu" key and
select "Test Item".

But I'm still disappointed as there are more than 10 screens.  I would
love to know what the API's are so I can write an app that allows the
user to select what information they want to see.  I simply want to be
able to see only what I want on just one screen without scrolling.

I wonder if Google is purposely avoiding my questions because they
don't want to give out those API's?  Are there any Google employees on
these blogs?

Thanks!

run99ner_ff
--~--~---------~--~----~------------~-------~--~----~



android.telephony

by Joe Petruchi » Fri, 06 Mar 2009 13:19:51 GMT


 HI when i type this code in emulator the number disappears.

Do you know why my dialer application is not supporting this ??

regards
Joe





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



Other Threads

1. How do I do to save an Image ????

I want to save image after I make the photo with the Camera of the
Emulator......
My program make a photo but don't save it.
How do I do ???
Thanks !!!!!!!!!!!
--~--~---------~--~----~------------~-------~--~----~

2. Save Image

I want to save image after I make the photo with the Camera of the
Emulator......


This is the Code :::: this program makes a photo when you push
space.....but don't save it !!!!!!


public class AppCam extends Activity implements SurfaceHolder.Callback
{
    private static final String TAG = "CameraApiTest";
    Camera mCamera;
    boolean mPreviewRunning = false;

    public void onCreate(Bundle icicle)
    {
        super.onCreate(icicle);

        Log.e(TAG, "onCreate");

        getWindow().setFormat(PixelFormat.TRANSLUCENT);

        setContentView(R.layout.main);
        mSurfaceView = (SurfaceView)findViewById(R.id.surface);

        mSurfaceHolder = mSurfaceView.getHolder();
        mSurfaceHolder.addCallback(this);
        mSurfaceHolder.setType
(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
    }

    public boolean onCreateOptionsMenu(android.view.Menu menu) {
        MenuItem item = menu.add(0, 0, 0, "Gallery");
        item.setOnMenuItemClickListener(new
MenuItem.OnMenuItemClickListener() {
            public boolean onMenuItemClick(MenuItem item) {
                Uri target = Uri.parse("content://media/external/
images/media");
                Intent intent = new Intent(Intent.ACTION_VIEW,
target);
                startActivity(intent);
                return true;
            }
        });
        return true;
    }

    @Override
    protected void onRestoreInstanceState(Bundle savedInstanceState)
    {
        super.onRestoreInstanceState(savedInstanceState);
    }

    Camera.PictureCallback mPictureCallback = new
Camera.PictureCallback() {
        public void onPictureTaken(byte[] data, Camera c) {
            Log.e(TAG, "PICTURE CALLBACK: data.length = " +
data.length);
            mCamera.startPreview();
        }
    };

    public boolean onKeyDown(int keyCode, KeyEvent event)
    {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            return super.onKeyDown(keyCode, event);
        }

        if (keyCode == KeyEvent.KEYCODE_SPACE) {

            mCamera.takePicture(null, null,mPictureCallback);

            mCamera.

            return true;
        }

        return false;
    }

    protected void onResume()
    {
        Log.e(TAG, "onResume");
        super.onResume();
    }

    protected void onSaveInstanceState(Bundle outState)
    {
        super.onSaveInstanceState(outState);
    }

    protected void onStop()
    {
        Log.e(TAG, "onStop");
        super.onStop();
    }

    public void surfaceCreated(SurfaceHolder holder)
    {
        Log.e(TAG, "surfaceCreated");
        mCamera = Camera.open();
        //mCamera.startPreview();
    }

    public void surfaceChanged(SurfaceHolder holder, int format, int
w, int h)
    {
        Log.e(TAG, "surfaceChanged");

        // XXX stopPreview() will crash if preview is not running
        if (mPreviewRunning) {
            mCamera.stopPreview();
        }

        Camera.Parameters p = mCamera.getParameters();
        p.setPreviewSize(w, h);
        mCamera.setParameters(p);
        mCamera.setPreviewDisplay(holder);
        mCamera.startPreview();
        mPreviewRunning = true;
    }

    public void surfaceDestroyed(SurfaceHolder holder)
    {
        Log.e(TAG, "surfaceDestroyed");
        mCamera.stopPreview();
        mPreviewRunning = false;
        mCamera.release();
    }

    private SurfaceView mSurfaceView;
    private SurfaceHolder mSurfaceHolder;
}
--~--~---------~--~----~------------~-------~--~----~

3. Google I/O dates?

4. FYI easy high quality video encoding for android

5. Keyboard Input

6. Sending Multipart SMS

7. network defaultroute