How to hide dialer application after establishing call?

by mmj » Tue, 04 Aug 2009 01:30:24 GMT


Sponsored Links
 Hi all,

I am with an application that will establish a call from it and do
something else after that.Establishing call from my application is
working fine using Intent.Action_Call.But after that the control is
going to the native dialer application.I want to bring the control
back to my application after few seconds.Even though i start a new
activity depending on the call states obtained by the
PhoneStatelistener, it is launching the new activity in that
application.But it is all happening at the background because as soon
as dialer comes into picture,my application is minimized.

I need the control to be back to my application from the dialer after
some time and call established should be there until the user is
disconnecting it.

Can anyone help me in implementing the same?

Thanks in advance

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



Other Threads

1. Strange behaviour of EditText

Hi,

we have a strange problem with EditText in a LinearLayout on some HTC
devices (Magic, Legend, Desire, Desire HD). On those devices when you
type more than 4 rows with a non-standard Keyboard or about the size
of the Textbox on the buildin keyboard on Eclair, Froyo (both with
Sense) and a Cyanogen7 (w/o Sense). The textbox shifts out and can not
be reached or seen. The strange thing is, that this behaviour can only
be reproduced on those HTC devices, not on the NexusOne. The problem
arises in landscape and portrait. Does anybody have an idea?

This is the layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:orientation="vertical" android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:background="#fff">

        <!-- Buttons -->
        <LinearLayout style="@style/NavBarButtons">

                <Button android:id="@+id/backButton" style="@style/BackButton" 
/>

                <ImageView android:layout_width="wrap_content"
                        android:layout_height="wrap_content" 
android:layout_weight="4" />

        </LinearLayout>

        <!-- Headline -->
        <TextView android:id="@+id/headline"
android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:paddingLeft="7dp"
                android:textSize="20sp" android:textStyle="bold"
android:textColor="@color/blue" />

        <LinearLayout android:orientation="vertical"
                android:layout_width="fill_parent"
android:layout_height="wrap_content"
                android:paddingLeft="8dp" android:paddingRight="12dp"
                android:paddingTop="6dp" android:paddingBottom="6dp"
                android:layout_weight="1">

                <!-- Title -->
                <TextView android:layout_width="wrap_content"
                        android:layout_height="wrap_content" 
android:textColor="@color/
black"
                        android:text="@string/forum_post_title" />

                <EditText android:id="@+id/forumPostTitle"
                        android:layout_width="fill_parent"
android:layout_height="wrap_content"
                        android:singleLine="true" />

                <!-- Content -->
                <TextView android:layout_width="wrap_content"
                        android:layout_height="wrap_content" 
android:textColor="@color/
black"
                        android:text="@string/forum_post_content" />

                <EditText android:id="@+id/forumPostContent"
                        android:layout_width="fill_parent"
android:layout_height="wrap_content"
                        android:layout_weight="1" android:gravity="top"
android:inputType="textMultiLine" />

                <!-- Buttons -->
                <LinearLayout android:orientation="horizontal"
                        android:layout_width="fill_parent"
android:layout_height="wrap_content">

                        <Button android:id="@+id/forumPostSaveButton"
                                android:layout_width="wrap_content"
android:layout_height="wrap_content"
                                android:layout_weight="1" 
android:background="@drawable/btn_blue"
                                android:textColor="#fff" 
android:text="@string/forum_post_save" />

                        <Button android:id="@+id/forumPostPreviewButton"
                                android:layout_width="wrap_content"
android:layout_height="wrap_content"
                                android:layout_weight="1" 
android:layout_marginLeft="12dp"
                                android:background="@drawable/btn_blue" 
android:textColor="#fff"
                                android:text="@string/forum_post_preview" />

                </LinearLayout>

        </LinearLayout>

</LinearLayout>

-- 

2. setTextColor dynamically, major phail

The following do not work:

myDate.setTextColor(0xFFFF00FF);
myDate.setTextColor(Color.argb(250,250,0,250));

The reason being is that it wants a reference to the XML object.
Search after search I find that no one in the androidverse has been
able to programatically set a custom color.

Can anyone get the TextView to change color without pulling the color
from an XML file? given that there are about 16million possible
colors, taking that approach seems unreasonable for my purposes. I
need to give the user the ability to use sliders to precision pick the
color of the text in the TextView.

-- 

3. port sms receive

4. Unable to create new AVD

5. Help - adb cant' see running emulators, emulator can't connect to internet

6. Regarding Database

7. Keyboard layout