I have downloaded CSipSimple project . THen I have run it . But I am getting following error .
01-17 16:36:33.451 16882-16882/com.csipsimple E/ActivityThread﹕ RuntimeExceptionjava.lang.RuntimeException: Unable to start activity ComponentInfo{com.csipsimple/com.csipsimple.ui.SipHome}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.csipsimple/com.csipsimple.ui.Dialer}: android.view.InflateException: Binary XML file line #23: Error inflating class com.csipsimple.widgets.EditSipUri The XML file of the dialer is as follows :
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2010 Regis Montoya (aka r3gis - www.r3gis.fr) This file is part of CSipSimple. CSipSimple is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. CSipSimple is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with CSipSimple. If not, see <http://www.gnu.org/licenses/>. --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/toplevel" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <include android:id="@+id/dialer_digit" layout="@layout/dialer_digit" /> <include android:id="@+id/dialer_text" layout="@layout/dialer_text" /> <com.csipsimple.widgets.SlidingPanel android:visibility="gone" android:id="@+id/warningPanel" android:orientation="horizontal" android:handle="@+id/handle" android:content="@+id/content" android:gravity="bottom" android:layout_height="fill_parent" android:layout_width="fill_parent" > <ImageButton android:id="@id/handle" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="bottom|right" android:padding="0dip" android:layout_marginBottom="11dp" android:background="@android:color/transparent" android:src="@drawable/snipet_warning" /> <ScrollView android:id="@id/content" android:layout_height="fill_parent" android:layout_width="fill_parent" android:background="#EEFFFFFF" android:padding="10dip" android:clickable="true" > <include layout="@layout/gingerbread_int_conflict"/> </ScrollView> </com.csipsimple.widgets.SlidingPanel> </RelativeLayout> The line no 23 is the following :
<include android:id="@+id/dialer_digit" layout="@layout/dialer_digit" /> The xml file of dialer_digit is as follows :
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2010 Regis Montoya (aka r3gis - www.r3gis.fr) Copyright (C) 2008 The Android Open Source Project This file is part of CSipSimple. CSipSimple is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. CSipSimple is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with CSipSimple. If not, see <http://www.gnu.org/licenses/>. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/top_digit_dialer" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:id="@+id/topField" android:layout_weight="2.5" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/btn_dial_textfield" android:padding="0dip" android:layout_marginBottom="10dip" android:orientation="horizontal"> <ImageButton android:id="@+id/switchTextView" android:layout_width="wrap_content" android:layout_height="fill_parent" android:background="@drawable/btn_dial_textbadge" android:src="@drawable/ic_tab_unselected_contacts" /> <EditText android:id="@+id/digitsText" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:maxLines="1" android:scrollHorizontally="true" android:textSize="28sp" android:freezesText="true" android:background="@android:color/transparent" android:layout_marginTop="0dip" android:layout_marginBottom="0dip" android:layout_marginRight="5dip" android:layout_marginLeft="5dip" android:contentDescription="@string/description_digits_edittext" android:focusableInTouchMode="true" android:editable="true" android:cursorVisible="false" /> <com.csipsimple.widgets.AccountChooserButton android:layout_width="wrap_content" android:layout_weight="0" android:id="@+id/accountChooserButton" android:layout_height="fill_parent" /> </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1"> <com.csipsimple.widgets.Dialpad android:id="@+id/dialPad" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@id/digitsText" /> </LinearLayout> <LinearLayout android:id="@+id/dial_actions" android:layout_weight="2.4" android:layout_width="fill_parent" android:layout_centerHorizontal="true" android:layout_height="fill_parent" android:layout_marginTop="2dip" android:layout_marginLeft="1dip" android:layout_marginRight="1dip" android:orientation="horizontal" android:gravity="center" android:padding="10dp"> <ImageButton android:id="@+id/vmButton" android:layout_width="87dip" android:layout_height="fill_parent" android:layout_gravity="center" android:state_enabled="false" android:background="@drawable/btn_dial_domain" android:src="@drawable/ic_dial_action_voice_mail" /> <ImageButton android:layout_height="fill_parent" android:layout_gravity="center" android:contentDescription="@string/description_dial_button" android:layout_weight="1" android:state_enabled="false" android:background="@drawable/btn_dial_action" android:src="@drawable/ic_dial_action_call" android:layout_width="fill_parent" android:scaleType="center" android:id="@+id/dialButton" /> <ImageButton android:id="@+id/deleteButton" android:layout_width="87dip" android:contentDescription="@string/description_delete_button" android:layout_height="fill_parent" android:layout_gravity="center" android:state_enabled="false" android:src="@drawable/ic_dial_action_delete" android:background="@drawable/btn_dial_delete" /> </LinearLayout> </LinearLayout> How can I resolve this exception ? Any advice is of great help
No comments:
Post a Comment