This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unable to make call in Android GingerBread using beagleboard -xM

 

Hi All,

 

  I did the required changes in RIL, and now i am able to send and receive SMS ,but when i try to make a call it gives an error  " The process android.process.acore has stopped unexpectedly. Please try again. ". I tried debugging the Android source code and found out that error occurs  in DialtactsActivity.java (Located at :- "TI_Android_GingerBread_2_3_4Sources/packages/apps/Contacts/src/com/android/contacts/")  file, it  gives the error when trying to execute following code.

  1.  private void setupDialerTab() {
  2.     Log.d("CDIS =>"," dialer tab 1 ");        //Our log for testing
  3.              Intent intent = new Intent("com.android.phone.action.TOUCH_DIALER");
  4.     Log.d("CDIS =>"," dialer tab 2");           //Our log for testing
  5.             intent.setClass(this, TwelveKeyDialer.class);
  6.  Log.d("CDIS =>"," dialer tab 3");              //Our log for testing
  7.           StickyTabs.setTab(intent, TAB_INDEX_DIALER);
  8.  Log.d("CDIS =>" ,"dilar---b--4"+getResources());      //Our log for testing
  9.  Log.d("CDIS =>"," dialer tab 5");                //Our log for testing
  10.  mTabHost.addTab(mTabHost.newTabSpec("dialer").setIndicator(getString(R.string.dialerIconLabel),getResources().getDrawable(R.drawable.ic_tab_dialer)).setContent(intent));
  11.  Log.d("CDIS =>"," dialer tab end");             //Our log for testing
  12.     }

  When we monitor the log ,error comes at line 10 . In the log given below it shows the log up to line 9 "CDIS => dialer tab 5" after that it shows error as given below

************************************************************************************************************************************************************************************

01-01 00:01:22.835: INFO/ActivityManager(1108): Starting: Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.android.contacts/.DialtactsActivity } from pid 1194
01-01 00:01:22.859: INFO/ActivityManager(1108): Start proc android.process.acore for activity com.android.contacts/.DialtactsActivity: pid=1495 uid=10002 gids={3003, 1015}
01-01 00:01:23.101: INFO/ActivityThread(1495): Pub com.android.social: com.android.providers.contacts.SocialProvider

01-01 00:01:23.125: DEBUG/dalvikvm(1495): GC_CONCURRENT freed 455K, 50% free 2951K/5831K, external 716K/1038K, paused 3ms+3ms
01-01 00:01:23.132: INFO/ActivityThread(1495): Pub applications: com.android.providers.applications.ApplicationsProvider
01-01 00:01:23.171: INFO/ActivityThread(1495): Pub contacts;com.android.contacts: com.android.providers.contacts.ContactsProvider2
01-01 00:01:23.382: INFO/ActivityThread(1495): Pub call_log: com.android.providers.contacts.CallLogProvider
01-01 00:01:23.382: INFO/ActivityThread(1495): Pub user_dictionary: com.android.providers.userdictionary.UserDictionaryProvider

01-01 00:01:23.406: DEBUG/CDIS =>(1495): CONTROL_CHECK
01-01 00:01:23.468: DEBUG/CDIS =>(1495): CONTROL_CHECK_SUCCESS
01-01 00:01:23.468: DEBUG/CDIS =>(1495):  SUCCESS 1
01-01 00:01:23.468: DEBUG/CDIS =>(1495):  SUCCESS 2
01-01 00:01:23.468: DEBUG/CDIS =>(1495):  dialer tab 1
01-01 00:01:23.468: DEBUG/CDIS =>(1495):  dialer tab 2
01-01 00:01:23.468: DEBUG/CDIS =>(1495):  dialer tab 3
01-01 00:01:23.468: DEBUG/CDIS =>(1495): dilar---b--4android.content.res.Resources@406f2c38
01-01 00:01:23.468: DEBUG/CDIS =>(1495):  dialer tab 5

01-01 00:01:23.515: WARN/ResourceType(1495): CDIS->Failure getting entry for 0x7f030039 (t=2 e=57) in package 0 (error -75)

01-01 00:01:23.523: DEBUG/AndroidRuntime(1495): Shutting down VM
01-01 00:01:23.523: WARN/dalvikvm(1495): threadid=1: thread exiting with uncaught exception (group=0x40152560)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495): FATAL EXCEPTION: main
01-01 00:01:23.546: ERROR/AndroidRuntime(1495): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/com.android.contacts.DialtactsActivity}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/com.android.contacts.TwelveKeyDialer}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030039
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.os.Handler.dispatchMessage(Handler.java:99)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.os.Looper.loop(Looper.java:130)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.ActivityThread.main(ActivityThread.java:3683)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at java.lang.reflect.Method.invokeNative(Native Method)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at java.lang.reflect.Method.invoke(Method.java:507)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at dalvik.system.NativeStart.main(Native Method)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495): Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/com.android.contacts.TwelveKeyDialer}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030039


01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.ActivityThread.startActivityNow(ActivityThread.java:1487)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:654)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.widget.TabHost.setCurrentTab(TabHost.java:326)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.widget.TabHost.addTab(TabHost.java:216)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at com.android.contacts.DialtactsActivity.setupDialerTab(DialtactsActivity.java:136)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at com.android.contacts.DialtactsActivity.onCreate(DialtactsActivity.java:81)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     ... 11 more
01-01 00:01:23.546: ERROR/AndroidRuntime(1495): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030039
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.content.res.Resources.getValue(Resources.java:892)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.content.res.Resources.getLayout(Resources.java:731)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.view.LayoutInflater.inflate(LayoutInflater.java:318)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.Activity.setContentView(Activity.java:1657)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at com.android.contacts.TwelveKeyDialer.onCreate(TwelveKeyDialer.java:200)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
01-01 00:01:23.546: ERROR/AndroidRuntime(1495):     ... 21 more

01-01 00:01:23.562: WARN/ActivityManager(1108):   Force finishing activity com.android.contacts/.DialtactsActivity
01-01 00:01:23.671: DEBUG/dalvikvm(1495): GC_CONCURRENT freed 274K, 46% free 3218K/5959K, external 731K/1038K, paused 3ms+4ms
01-01 00:01:24.062: WARN/ActivityManager(1108): Activity pause timeout for HistoryRecord{40696140 com.android.contacts/.DialtactsActivity}
01-01 00:01:34.171: WARN/ActivityManager(1108): Activity destroy timeout for HistoryRecord{40696140 com.android.contacts/.DialtactsActivity}
01-01 00:02:00.296: DEBUG/dalvikvm(1108): GC_EXPLICIT freed 225K, 45% free 4166K/7495K, external 2092K/2428K, paused 53ms

******************************************************************************************************************************************************************************

  After studying this Log ,we found that this warning log " 01-01 00:01:23.515: WARN/ResourceType(1495): CDIS->Failure getting entry for 0x7f030039 (t=2 e=57) in package 0 (error -75) "  is coming from ResourceType.cpp  (Located at :- "/TI_Android_GingerBread_2_3_4Sources/frameworks/base/libs/utils/")  file,in the  following code section

 

    const ResTable_type* type;
        const ResTable_entry* entry;
        const Type* typeClass;
        ssize_t offset = getEntry(package, t, e, &mParams, &type, &entry, &typeClass);
        if (offset <= 0) {
            if (offset < 0) {
                LOGW("CDIS->Failure getting entry for 0x%08x (t=%d e=%d) in package %zd (error %d)\n",
                        resID, t, e, ip, (int)offset);
                return offset;
            }
            continue;
        }

is it because of some  resource file missing. kindly help me out from this issue.

 

Thanks and Regards

Prajith Warrier