Why emulator cannot recieve incoming call?

by bluebol...@gmail.com » Wed, 29 Apr 2009 01:07:48 GMT


Sponsored Links
 I make android source code and try to emulate the image.
A problem occurr when I dial.

MO call works well, but MT call always can't apply to UI.
On the other hand, Android SDK MT/MO both work well.
I found the problem is caused by
D/GSM     (   84): [CallTracker] (ringing) hangup waiting or
background
Up layer always send a hangup event when it get Incoming call state.
How can I fix it?


Here is the radio log

D/RILJ    (   84): [0103]< SIGNAL_STRENGTH {7, 99}
D/RILJ    (   84): WAKE_LOCK_TIMEOUT  mReqPending=0 mRequestList=1
D/RILJ    (   84): 0: [14] SET_NETWORK_SELECTION_AUTOMATIC
D/AT      (   21): AT< RING
D/RILJ    (   84): [UNSL]< UNSOL_RESPONSE_CALL_STATE_CHANGED
D/RILJ    (   84): [0104]> GET_CURRENT_CALLS
D/RIL     (   21): onRequest: GET_CURRENT_CALLS
D/AT      (   21): AT> AT+CLCC
D/AT      (   21): AT< +CLCC: 1,1,4,0,0,"5556",129
D/AT      (   21): AT< OK
D/RILJ    (   84): [0104]< GET_CURRENT_CALLS
[id=1,mt,INCOMING,voice,norm,129,0]
D/GSM     (   84): [GSMConn] acquireWakeLock
D/GSM     (   84): [CallTracker] (ringing) hangup waiting or
background
D/RILJ    (   84): [0105]> HANGUP_WAITING_OR_BACKGROUND
D/RIL     (   21): onRequest: HANGUP_WAITING_OR_BACKGROUND
D/AT      (   21): AT> AT+CHLD=0
D/AT      (   21): AT< OK
D/RILJ    (   84): [0105]< HANGUP_WAITING_OR_BACKGROUND
D/RILJ    (   84): [0106]> GET_CURRENT_CALLS
D/RIL     (   21): onRequest: GET_CURRENT_CALLS
D/AT      (   21): AT> AT+CLCC
D/AT      (   21): AT< OK
D/RILJ    (   84): [0106]< GET_CURRENT_CALLS
D/GSM     (   84): [CallTracker] missed/rejected call,
conn.cause=LOCAL
D/GSM     (   84): [CallTracker] setting cause to INCOMING_REJECTED
D/GSM     (   84): [GSMConn] onDisconnect: cause=INCOMING_REJECTED
D/GSM     (   84): [GSMConn] releaseWakeLock
D/RILJ    (   84): [UNSL]< UNSOL_RESPONSE_CALL_STATE_CHANGED
D/RILJ    (   84): [0107]> GET_CURRENT_CALLS
D/RILJ    (   84): [0108]> SIGNAL_STRENGTH
D/RIL     (   21): onRequest: GET_CURRENT_CALLS
D/AT      (   21): AT> AT+CLCC
D/AT      (   21): AT< OK
D/RIL     (   21): onRequest: SIGNAL_STRENGTH
D/AT      (   21): AT> AT+CSQ
D/RILJ    (   84): [0107]< GET_CURRENT_CALLS
D/AT      (   21): AT< +CSQ: 7,99
D/AT      (   21): AT< OK
D/RILJ    (   84): [0108]< SIGNAL_STRENGTH {7, 99}
D/RILJ    (   84): WAKE_LOCK_TIMEOUT  mReqPending=0 mRequestList=1
D/RILJ    (   84): 0: [14] SET_NETWORK_SELECTION_AUTOMATIC

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



Other Threads

1. onKeyDown

Can someone tell me why the onKeyDown event never gets called here?
(even when a key is pressed)


import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Display;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class Tutorial2D extends Activity {

        public int ctr = 0;
        Bitmap bkGround;
        Bitmap _scratch;


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

                requestWindowFeature(Window.FEATURE_NO_TITLE);
                setContentView(new Panel(this));
                bkGround = BitmapFactory.decodeResource(getResources(),
                                R.drawable.background_ocean);

                Display display = ((WindowManager)
getSystemService(Context.WINDOW_SERVICE))
                                .getDefaultDisplay();

                int wid = display.getWidth();
                int height = display.getHeight();

                bkGround = bkGround.createScaledBitmap(bkGround, wid, height, 
true);

                _scratch = BitmapFactory.decodeResource(getResources(),
R.drawable.icon);


        }

        class Panel extends View {
                public Panel(Context context) {
                        super(context);
                }


            @Override
            public boolean onKeyDown(int keyCode, KeyEvent msg) {
                        return false;
               // return thread.doKeyDown(keyCode, msg);
            }





                @Override
                public void onDraw(Canvas canvas) {

                        canvas.drawBitmap(bkGround, 0, 0, null);

                //      canvas.drawBitmap(_scratch, ctr % 200, 10, null);



                        ctr++;

                        invalidate();
                }
        }

}

-- 

2. Sample SoftKeyboard

Hi All,

I am using the sample soft keyboard source code available from the SDK
samples to write my own keyboard.

For my keyboard, instead of alphabets I am having words. E.g "Insert".
When user clicks this the word "Insert" will be inserted into the
respective field.

Under qwerty.xml, I can change the wordings of the keyboard, but how
to insert a word instead of a letter? Currently they are specifying
unicode to insert this.

Any idea how to modify to insert word instead of a alphabet?

Thanks In Advance,
Perumal

-- 

3. onConfigurationChanged call back is not getting called?

4. Android Newby here

5. URLClassLoader to load an Android application components dynamically

6. Final Class and Android Compatibility [CTS]

7. Android WhiteBoxTesting