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. add tab cause exception

Hey,
I tried to add composite control to tabHost, I followed android
example Tab3.java to do that.
I created a new activity with listview, textview as following:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <LinearLayout android:id="@+id/goal"
                android:layout_width="fill_parent"
android:layout_height="fill_parent"
                android:background="#fff49501" android:orientation="vertical"
                xmlns:android="http://schemas.android.com/apk/res/android">
                <ListView android:id="@+id/goallist"
                        android:layout_width="fill_parent" 
android:layout_height="150px">
                </ListView>
                <TextView android:id="@+id/healthTipLabel"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
android:layout_marginTop="20px"
                        android:text="Health Tips" android:textSize="20sp"
                        android:typeface="sans" android:textStyle="bold"
                        android:layout_gravity="center_horizontal">
                </TextView>
                <ListView android:id="@+id/healthtiplist"
                        android:layout_width="fill_parent" 
android:layout_height="200px"
                        android:layout_marginTop="20px">
                </ListView>
                </LinearLayout>
</ScrollView>

and my java:

public class GoalView extends Activity {
protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.goalcontrol);
   }
}

manifest file:

<activity android:name=".views.GoalView">
                        <intent-filter>
                                <action 
android:name="android.intent.action.MAIN"></action>
                        </intent-filter>
                </activity>

Tab.java:

public class MyActivity extends TabActivity  {

        DatabaseAdapter da = null;

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

                ArrayList<String> script = loadCreateScript();
                da = (DatabaseAdapter.getInstance(this, script));

                final TabHost tabHost = getTabHost();
                tabHost.addTab(tabHost.newTabSpec("Goals").setIndicator("Goals",
                                
getResources().getDrawable(R.drawable.goal_icon)).setContent(new
Intent(this, GoalView.class)));

But when I run my app, I got runtime exception:
InvocationTargetException (id=xxxxxxxxxxx)
Unable to start activity ComponentInfo{com.mycompany/
com.mycomapny.MyActivity}: java.lang.RuntimeException: Unable to
instantiate activity ComponentInfo{com.mycompany/
com.mycompany.views.GoalView}: java.lang.InstantiationException:
com.mycompany.views.GoalView

Please help!!!
Thanks in advance.

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

2. Debug - Tracing

Hi!

I wanted to trace my application with >startMethodTracing(String
traceName)< but i got an exception, that it is not possible to write
in the file!
The file is written on the sd-card, is this may only possible with
root rights?

Thanks
--~--~---------~--~----~------------~-------~--~----~

3. How to see image and media files in SDCard from emulator

4. ListView with TextFilter

5. Problem with continuos animation of children on long press of keys in a Viewgroup.

6. what is difference between View's Canvas and Bitmap's Canvas

7. HttpResponse