com.android.phone.InCallScreen activity

by Ruben » Fri, 03 Apr 2009 00:16:22 GMT


Sponsored Links
 Is it possible to intercept the intent of calling and answering and by
doing that replacing the calling/answering screen. I see from the
logcat that right now com.android.phone.InCallScreen activity is been
started. Anyway to overwrite that to have my own activity to show up?

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



com.android.phone.InCallScreen activity

by Ruben » Fri, 03 Apr 2009 00:16:35 GMT


 Is it possible to intercept the intent of calling and answering and by
doing that replacing the calling/answering screen. I see from the
logcat that right now com.android.phone.InCallScreen activity is been
started. Anyway to overwrite that to have my own activity to show up?

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


Sponsored Links


Other Threads

1. screen compatibility not quite right

Ok I have put this in my manifest

<supports-screens android:anyDensity="false"
android:largeScreens="false" android:normalScreens="true"
android:smallScreens="false" android:resizeable="false"></supports-
screens>

first of all what is the resizeable attribute? It does not seem to be
documented.

This is working almost 90% for my game except when testing in WVGA
screen resolution, all my images are scaled incorrectly, it is longer
vertically than horizontally. I was expecting the screen compatibility
to maintain aspect ratios as that of HVGA.

Also in my layout I have a scrollview and it is designed in such a way
that in HVGA when it is not scrolled down, the items are hidden away,
however now in WVGA those things are shown. If the aspect ratio of
HVGA is maintained I won't have this issue.

How can I make sure the aspect ratio is maintained?

Also in my layout I am positioning some items using pixel positions.
Should I convert these to dpi? How do I calculate what dpi they should
be?

-- 

2. Custom Dialog example may be incorrect

I spent quite a long time trying to get my first custom dialog box to
work, following the example in the Android Dev Guide.

Specifically:

http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
-------
Context mContext = getApplicationContext();
Dialog dialog = new Dialog(mContext);

dialog.setContentView(R.layout.custom_dialog);
dialog.setTitle("Custom Dialog");
-------

  I kept getting a badtokenexception whenever I tried to show the
dialog.

  Eventually I found a forum posting which suggested changing it to:

new Dialog(this);

  Which made the problem go away.

  My question is if the example is incorrect, or was the code not
intended to be used in an Activity method?


-Kevin



-- 

3. building for 1.5 using 2.0...

4. ARCHOS 5 Android tablet and getExternalStorageDirectory()

5. layout_gravity="center_horizontal" affects below widgets?

6. Networking address space

7. ARCHOS 5 Android tablet and getExternalStorageDirectory()