android4.0移植,拨号异常
D/dalvikvm( 2274): GC_CONCURRENT freed 206K, 12% free 6571K/7431K, paused 2ms+3ms
D/dalvikvm( 2274): GC_FOR_ALLOC freed 294K, 15% free 6603K/7751K, paused 26ms
I/dalvikvm( 2274): threadid=1: stack overflow on call to Landroid/util/SparseArray;.get:LIL
I/dalvikvm( 2274): method requires 28+20+16=64 bytes, fp is 0x50b1b31c (28 left)
I/dalvikvm( 2274): expanding stack end (0x50b1b300 to 0x50b1b000)
I/dalvikvm( 2274): Shrank stack (to 0x50b1b300, curFrame is 0x50b1b350)
D/AndroidRuntime( 2274): Shutting down VM
W/dalvikvm( 2274): threadid=1: thread exiting with uncaught exception (group=0x40b291f8)
D/OpenGLRenderer( 2286): Flushing caches (mode 0)
D/dalvikvm( 2274): GC_CONCURRENT freed 271K, 12% free 6886K/7815K, paused 2ms+3ms
E/AndroidRuntime( 2274): FATAL EXCEPTION: main
E/AndroidRuntime( 2274): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: android.view.InflateException: Binary XML file line #35: Error inflating class <unknown>
E/AndroidRuntime( 2274): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
E/AndroidRuntime( 2274): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
E/AndroidRuntime( 2274): at android.app.ActivityThread.access$600(ActivityThread.java:123)
E/AndroidRuntime( 2274): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
E/AndroidRuntime( 2274): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2274): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2274): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 2274): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2274): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2274): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 2274): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 2274): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2274): Caused by: android.view.InflateException: Binary XML file line #35: Error inflating class <unknown>
E/AndroidRuntime( 2274): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
E/AndroidRuntime( 2274): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 2274): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
E/AndroidRuntime( 2274): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)
E/AndroidRuntime( 2274): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
E/AndroidRuntime( 2274): at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
E/AndroidRuntime( 2274): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:823)
E/AndroidRuntime( 2274): at android.view.LayoutInflater.rInflate(LayoutInflater.java:729)
E/AndroidRuntime( 2274): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 2274): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 2274): at android.view.ViewStub.inflate(ViewStub.java:232)
E/AndroidRuntime( 2274): at com.android.phone.InCallScreen.initInCallScreen(InCallScreen.java:1223)
E/AndroidRuntime( 2274): at com.android.phone.InCallScreen.onCreate(InCallScreen.java:514)
E/AndroidRuntime( 2274): at android.app.Activity.performCreate(Activity.java:4465)
E/AndroidRuntime( 2274): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
E/AndroidRuntime( 2274): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
E/AndroidRuntime( 2274): ... 11 more
E/AndroidRuntime( 2274): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2274): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 2274): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 2274): at android.view.LayoutInflater.createView(LayoutInflater.java:586)
E/AndroidRuntime( 2274): ... 26 more
E/AndroidRuntime( 2274): Caused by: java.lang.StackOverflowError
E/AndroidRuntime( 2274): at android.util.SparseArray.get(SparseArray.java:73)
E/AndroidRuntime( 2274): at android.content.res.StringBlock.get(StringBlock.java:69)
E/AndroidRuntime( 2274): at android.content.res.AssetManager.getResourceValue(AssetManager.java:201)
E/AndroidRuntime( 2274): at android.content.res.Resources.getValue(Resources.java:1015)
E/AndroidRuntime( 2274): at android.content.res.Resources.getDrawable(Resources.java:663)
E/AndroidRuntime( 2274): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)
E/AndroidRuntime( 2274): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:867)
E/AndroidRuntime( 2274): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:804)
E/AndroidRuntime( 2274): at android.content.res.Resources.loadDrawable(Resources.java:1922)
E/AndroidRuntime( 2274): at android.content.res.Resources.getDrawable(Resources.java:664)
E/AndroidRuntime( 2274): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)
E/AndroidRuntime( 2274): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:867)
E/AndroidRuntime( 2274): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:804)
E/AndroidRuntime( 2274): at android.content.res.Resources.loadDrawable(Resources.java:1922)
E/AndroidRuntime( 2274): at android.content.res.Resources.getDrawable(Resources.java:664)
E/AndroidRuntime( 2274): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)
E/AndroidRuntime( 2274): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:867)
E/AndroidRuntime( 2274): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:804)
E/AndroidRuntime( 2274): at android.content.res.Resources.loadDrawable(Resources.java:1922)
E/AndroidRuntime( 2274): at android.content.res.Resources.getDrawable(Resources.java:664)
E/AndroidRuntime( 2274): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)
E/AndroidRuntime( 2274): at andro
W/ActivityManager( 2148): Force finishing activity com.android.phone/.InCallScreen
D/dalvikvm( 2274): GC_CONCURRENT freed 460K, 15% free 6936K/8071K, paused 2ms+15ms
D/dalvikvm( 2148): GC_CONCURRENT freed 528K, 44% free 8313K/14599K, paused 4ms+6ms
W/ActivityManager( 2148): Activity pause timeout for ActivityRecord{41868ae0 com.android.phone/.InCallScreen}
I/power ( 2148): *** set_screen_state 1
W/PowerManagerService( 2148): App called preventScreenOn(true) but didn't promptly reenable the screen! Forcing the screen back on...
D/dalvikvm( 2229): GC_CONCURRENT freed 316K, 33% free 6270K/9223K, paused 1ms+4ms
W/ActivityManager( 2148): Activity destroy timeout for ActivityRecord{41868ae0 com.android.phone/.InCallScreen}
最近在移植android4.0.3时,在屏幕密度设为120时,出现Phone拨号挂死的情况,抓取log如上所示,google的时候发现有好多人月到同样的问题
我解决该问题的方法:
1.修改android4.0.3/packages/apps/Phone/res/layout/dialpad.xml
36行:把android:src="@drawable/dial_num_1_no_vm" 修改为 android:src="@drawable/dial_num_1"
81行:把android:src="@drawable/dial_num_0_no_plus" 修改为 android:src="@drawable/dial_num_0"
2.修改android4.0.3/packages/apps/Phone/res/drawable/
复制 dial_num_0_no_plus.xml, 修改为 dial_num_0.xml
复制 dial_num_1_no_vm.xml 修改为 dial_num_1.xml
3.打开 dial_num_0.xml,修改 android:drawable="@drawable/dial_num_0_no_plus_wht" 为 android:drawable="@drawable/dial_num_0_wht"
打开 dial_num_1.xml 修改 android:drawable="@drawable/dial_num_1_no_vm_wht" 为android:drawable="@drawable/dial_num_1_wht"
4. 我的屏幕分辨率是320*240,android系统默认调用的是图片是drawable-mdpi目录下的图片,所以修改drawable-mdpi目录下:
新复制 dial_num_0_no_plus_wht.png出来,修改复制后图片的名称为 dial_num_0_wht.png
新复制 dial_num_1_no_vm_wht.png出来,修改复制后图片的名称为 dial_num_1_wht.png
5.修改后重新编译该源码程序,我的机子上就没出现该应用程序挂死的情况,我的这种方法还没有找到最根本的原因,只是临时性的解决方法,由于我作android驱动的工作,对应用上面不是很懂!
android4.0移植,拨号异常的更多相关文章
- [odroid-pc] ubuntu12.04 android4.0移植到odroid-pc过程
參考:http://blog.csdn.net/sunnybeike/article/details/8098349 odroid prebuilt版 img下载地址:tag=ODROID-PC&q ...
- 深入浅出 - Android系统移植与平台开发(三)- 编译并运行Android4.0模拟器
作者:唐老师,华清远见嵌入式学院讲师. 1. 编译Android模拟器 在Ubuntu下,我们可以在源码里编译出自己的模拟器及SDK等编译工具,当然这个和在windows里下载的看起来没有什么区别 ...
- 深入浅出-Android系统移植与平台开发(一)- Android4.0系统的下载与编译
作者:唐老师,华清远见嵌入式学院讲师. 一.Android4.0系统的下载与编译 Android系统的下载与编译,Google的官方网站上已经给出了详细的说明,请参照Android的官方网址: htt ...
- Android4.0 声卡配置-高通msm8916移植
一个正常的UAC设备插入Android 7.0是默认打开UAC配置的,打印的log如下: [ - using xhci_hcd [ - [ -, Product=, SerialNumber= [ - ...
- QT210 Android4.0源码编译和烧录文档整理
开发环境说明: Ubuntu 12.04 LTS 32bit 源码文件目录: 勤研光盘2013-5-4\4.0 https://github.com/jackyh (建议在Linux环境下通过git下 ...
- android4.0以上访问网络不能在主线程中进行以及在线程中操作UI的解决方法
MONO 调用一个线程操作UI 然后报Only the original thread that created a view hierarchy can touch its views.错误 goo ...
- android4.0 4.1 4.2 4.3 4.4新特性
http://blog.csdn.net/kaiyang45/article/details/7179349 4.0 http://digi.tech.qq.com/a/20120628/000827 ...
- QT210 android2.3 和android4.0 烧写编译日记
QT210下载烧录编译android2.3过程 工作环境:ubuntu12.04.5 | QT210开发板光盘 | QT210开发板 android2.3编译环境:gcc version 4.4.7 ...
- 【原】webapp开发中兼容Android4.0以下版本的css hack
话说现在的手机型号越来越多,主要还是android和ios这2个巨头称霸了江湖,而他们自带的浏览器内核是webkit,那对于做移动网页开发的同事来说,一般只要做好webkit内核浏览器的展现效果就行了 ...
随机推荐
- CCPC A(模拟)
Secrete Master Plan Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Othe ...
- 将文件存储到数据库中(MySQL)
package com.play; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundEx ...
- UIControl IOS控件编程 及UITextField的讲解
第一部分 UIKit提供了一组控件:UISwitch开关.UIButton按钮.UISegmentedControl分段控件.UISlider滑块.UITextField文本字段控件.UIPageCo ...
- Java自定义简单标签
Java自定义简单标签可以方便的在页面输出信息,并且对于权限的控制,和对于Jsp标签和servlet代码的分离有着很好的作用. 下面将以权限的控制为例自定义一个标签: 一.标签类型 <wxt: ...
- [Swust OJ 801]--Ordered Fractions
题目链接:http://acm.swust.edu.cn/problem/801/ Time limit(ms): 1000 Memory limit(kb): 10000 Description ...
- JS拖动DIV布局
方法一: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3 ...
- Tortoisegit 记住用户名和密码
Tortoisegit 记住用户名和密码方法: [Windows系统] 当你配置好git后,在 C:\Documents and Settings\Administrator\ 目录下有一个 .gi ...
- KbmMW资源汇总(更新中…)
KbmMW框架是收费的,不在此提供下载,如需购买,请自行联系作者Kim Madsen. 网址资源: 官网主页:http://www.components4programmers.com/product ...
- Qt编程中,Ui文件如何被利用
这两天跟着班级辅导,总有学生感到很疑惑,用ui designer设计出来的ui文件是如何使用的,下面我从一个例子来说明下,希望能对有这样疑惑的同学有帮助. 事实上,现在有了继承设计工具qtcreato ...
- stackoverflow,stackexchange,zhihu,ilewen,segmentfault,answerhub,question2answer,,
http://stackexchange.com/ http://question2answer.org/ http://answerhub.com/qa/ http://segmentfault.c ...