how to get a hardware phone information

by Igor Nesralla Ribeiro » Fri, 01 Apr 2011 06:47:58 GMT


Sponsored Links
 Hi,

 

How to get a hardware or system (like model.processor. information about
cellphone ?its possible !?

 

 

Thanks

Igor 

 

 

-- 



Re: how to get a hardware phone information

by Kostya Vasilyev » Fri, 01 Apr 2011 06:51:07 GMT


 Some of it is available in android.os.Build class as statics.
01.04.2011 2:48  "Igor Nesralla Ribeiro" <nesra...@gmail.com>
:

-- 


Sponsored Links


Other Threads

1. Switch back to my application after phone call ends

>From my application I am currently launching the dialer:

newCallIntent = new Intent(Intent.ACTION_DIAL);
PhoneCallReciever receiver = new PhoneCallReciever();
telephonyManager.listen(receiver,
PhoneStateListener.LISTEN_CALL_STATE);
startActivityForResult(newCallIntent, DIAL_RESULT);

Then I have a listener:

public void onCallStateChanged(int state, String incomingNumber) {
                        String stateString = "N/A";
                        switch (state) {
                        case TelephonyManager.CALL_STATE_IDLE:
                                stateString = "Idle";
                                IBinder wmbinder = 
ServiceManager.getService("window");
                                Log.i(LOG_TAG, "WindowManager: " + wmbinder);
                                IWindowManager wm = 
IWindowManager.Stub.asInterface(wmbinder);
                                keyUpDown(wm, KeyEvent.KEYCODE_BACK);

                                break;
}
}

The goal is to then watch the call and when the phone goes IDLE I
would like to switch back to the application. How can I do this?
Thanks!

-- 

2. Stream Audio Android 2.1

Hello every one !
I'm new on Android Dev (and French, sorry for my mistakes) and I try
to develop an app which enables to listen a shoutcast stream.

It prefectly works on Android 2.2 but not in Android 2.1... Coul'd you
help me ?

I've got this code (just the function play()) :

private void play() {
Uri myUri = Uri.parse("http://ecoutez.fajet.net:8014/");
try {
 if (mp == null) {
  this.mp = new MediaPlayer();
 } else {
         mp.start();
 }
 mp.setDataSource(this, myUri); // Go to Initialized state
 mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
 mp.setOnPreparedListener(this);
 mp.setOnBufferingUpdateListener(this);

 mp.setOnErrorListener(this);
 mp.prepareAsync();

 System.out.println("Truc : " + mp.getDuration());

 Log.d(TAG, "LoadClip Done");
} catch (Throwable t) {
 Log.d(TAG, t.toString());
}
}

-- 

3. Disable Button after click

4. Driver CTS - compatibility test

5. adding a view as indicator for my tabwidget

6. using eclipse run the monkeyrunner?

7. Moving an image in android