Hi,
I'm modifying phone.apk on android 1.6 for research activities.
First I added following lines to call_card.xml and everything worked fine
<ImageView
android:src="@drawable/unknowncaller"
android:layout_width="320sp"
android:layout_height="320sp"
></ImageView>
Then I modified the ImageView and added an id:
<ImageView
android:id="@+id/callscreen_test_test"
android:src="@drawable/unknowncaller"
android:layout_width="320sp"
android:layout_height="320sp"
></ImageView>
Since then I get the following exception:
E/AndroidRuntime( 961): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 961): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: java.lang.ClassCastException: android.widget.EditText
E/AndroidRuntime( 961): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401)
E/AndroidRuntime( 961): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2417)
E/AndroidRuntime( 961): at android.app.ActivityThread.access $2100(ActivityThread.java:116)
E/AndroidRuntime( 961): at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime( 961): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 961): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 961): at android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime( 961): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 961): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 961): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 961): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime( 961): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 961): Caused by: java.lang.ClassCastException: android.widget.EditText
E/AndroidRuntime( 961): at com.android.phone.InCallScreen.onCreate(InCallScreen.java:462)
E/AndroidRuntime( 961): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123)
E/AndroidRuntime( 961): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2364)
E/AndroidRuntime( 961): ... 11 more
I don't think that's a bug in the syntax (or I'm blind?), I think that's a bug in compiling and some R.id.* were not updated or so... I compile phone.apk with "mmm packages/apps/Phone".
Please help me.
Thanks
No idea?
Does anyone knows an opensource implementation from an modified phone.apk where I can have a look at?
Thanks
this is logcat from installing Titanium Backup for example:
Code:
W/ActivityManager( 328): No content provider found for: null
W/dalvikvm( 328): threadid=12: thread exiting with uncaught exception (group=0x2aac8578)
E/PackageManager( 328): Couldn't create temp file for downloaded package file.
E/AndroidRuntime( 328): *** FATAL EXCEPTION IN SYSTEM PROCESS: PackageManager
E/AndroidRuntime( 328): java.lang.NullPointerException
E/AndroidRuntime( 328): at com.android.server.PackageManagerService$FileInstallArgs.c
reateCopyFile(PackageManagerService.java:5011)
E/AndroidRuntime( 328): at com.android.server.PackageManagerService$FileInstallArgs.c
opyApk(PackageManagerService.java:5019)
E/AndroidRuntime( 328): at com.android.server.PackageManagerService$InstallParams.han
dleStartCopy(PackageManagerService.java:4815)
E/AndroidRuntime( 328): at com.android.server.PackageManagerService$HandlerParams.sta
rtCopy(PackageManagerService.java:4666)
E/AndroidRuntime( 328): at com.android.server.PackageManagerService$PackageHandler.do
HandleMessage(PackageManagerService.java:496)
E/AndroidRuntime( 328): at com.android.server.PackageManagerService$PackageHandler.ha
ndleMessage(PackageManagerService.java:441)
E/AndroidRuntime( 328): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 328): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 328): at android.os.HandlerThread.run(HandlerThread.java:60)
cleaning dalvik cache didn't help... i was deleting a few system apps, maby thats a problem's reason? Which app if yes?
did you solve the problem? I've the same one!
If you click dialer you get error message that unfortunately contacts has stopped.
I have tried wipe cache, wipe dalvik fix permissions. This is on a fresh installed of cm10.1 2m from stock rooted ICS build. I did import my contacts from my back up pro. Only thing left I can think of thanks in advance for any help.
CM question answers discussion thread on the forum .
jje
Wipe contacts and dialler data
slap20 said:
Wipe contacts and dialler data
Click to expand...
Click to collapse
I had seen thar suggested. How do I wipe indivual data caches? Or do you mean deleting all contacta indivdual?
Settings/apps/all......find the apks, tap on them, hit wipe data
Thank you so much! That fixed it. So glad I didn't have to reflash
slaphead20 said:
Settings/apps/all......find the apks, tap on them, hit wipe data
Click to expand...
Click to collapse
Hi guys,
I'm sorry but I still have this problem. I wiped data from everything that may be related (contacts, dialer, google contacts, dialer/contacts storage) but still no joy.
I flashed the phone with CM 10.1 M3 a few days ago but frankly I don't remember I've ever seen the stock dialer open.
Logcat says:
W/dalvikvm( 8958): threadid=1: thread exiting with uncaught exception (group=0x40b54930)
E/AndroidRuntime( 8958): FATAL EXCEPTION: main
E/AndroidRuntime( 8958): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/com.android.contacts.activities.DialtactsActivity}: java.lang.NullPointerException
E/AndroidRuntime( 8958): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
E/AndroidRuntime( 8958): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2357)
E/AndroidRuntime( 8958): at android.app.ActivityThread.access$600(ActivityThread.java:153)
E/AndroidRuntime( 8958): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
E/AndroidRuntime( 8958): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 8958): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 8958): at android.app.ActivityThread.main(ActivityThread.java:5226)
E/AndroidRuntime( 8958): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 8958): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 8958): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 8958): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime( 8958): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 8958): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 8958): at com.android.contacts.activities.DialtactsActivity.setupDialer(DialtactsActivity.java:747)
E/AndroidRuntime( 8958): at com.android.contacts.activities.DialtactsActivity.onCreate(DialtactsActivity.java:530)
E/AndroidRuntime( 8958): at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime( 8958): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime( 8958): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2261)
E/AndroidRuntime( 8958): ... 11 more
Any ideas or should I buy an iPhone?
Aviopene said:
Hi guys,
I'm sorry but I still have this problem. I wiped data from everything that may be related (contacts, dialer, google contacts, dialer/contacts storage) but still no joy.
I flashed the phone with CM 10.1 M3 a few days ago but frankly I don't remember I've ever seen the stock dialer open.
Logcat says:
W/dalvikvm( 8958): threadid=1: thread exiting with uncaught exception (group=0x40b54930)
E/AndroidRuntime( 8958): FATAL EXCEPTION: main
E/AndroidRuntime( 8958): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/com.android.contacts.activities.DialtactsActivity}: java.lang.NullPointerException
E/AndroidRuntime( 8958): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
E/AndroidRuntime( 8958): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2357)
E/AndroidRuntime( 8958): at android.app.ActivityThread.access$600(ActivityThread.java:153)
E/AndroidRuntime( 8958): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
E/AndroidRuntime( 8958): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 8958): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 8958): at android.app.ActivityThread.main(ActivityThread.java:5226)
E/AndroidRuntime( 8958): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 8958): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 8958): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 8958): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime( 8958): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 8958): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 8958): at com.android.contacts.activities.DialtactsActivity.setupDialer(DialtactsActivity.java:747)
E/AndroidRuntime( 8958): at com.android.contacts.activities.DialtactsActivity.onCreate(DialtactsActivity.java:530)
E/AndroidRuntime( 8958): at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime( 8958): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime( 8958): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2261)
E/AndroidRuntime( 8958): ... 11 more
Any ideas or should I buy an iPhone?
Click to expand...
Click to collapse
Found the cause of the problem. It was the theme's fault! I was (stupidly, I admit it) using an old CM7 theme (goo.gl -slash- 5wyP4) that was also working on CM9 but not in CM10.1. Apparently the stack trace was saying that the dialer activity failed to draw the interface.
Cheers
Avio
So, I am trying to theme my OmniRom Settings.apk in Holo Light style, using styles.xml.
All works perfectly, exept for one thing:
When tapping "Quick Launch Shortcuts", I get a force close.
Got a log here:
Code:
D/SubSettings( 2133): Launching fragment org.omnirom.omnigears.interfacesettings.NavRing
D/AndroidRuntime( 2133): Shutting down VM
W/dalvikvm( 2133): threadid=1: thread exiting with uncaught exception (group=0x4178fba8)
E/AndroidRuntime( 2133): FATAL EXCEPTION: main
E/AndroidRuntime( 2133): Process: com.android.settings, PID: 2133
E/AndroidRuntime( 2133): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: android.view.InflateException: Binary XML file line #7: Error inflating class com.android.internal.widget.multiwaveview.GlowPadView
E/AndroidRuntime( 2133): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
E/AndroidRuntime( 2133): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
E/AndroidRuntime( 2133): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 2133): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 2133): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2133): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 2133): at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime( 2133): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 2133): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2133): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime( 2133): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime( 2133): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2133): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class com.android.internal.widget.multiwaveview.GlowPadView
E/AndroidRuntime( 2133): at android.view.LayoutInflater.createView(LayoutInflater.java:620)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
E/AndroidRuntime( 2133): at org.omnirom.omnigears.interfacesettings.NavRing.onCreateView(NavRing.java:108)
E/AndroidRuntime( 2133): at android.app.Fragment.performCreateView(Fragment.java:1700)
E/AndroidRuntime( 2133): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:890)
E/AndroidRuntime( 2133): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
E/AndroidRuntime( 2133): at android.app.BackStackRecord.run(BackStackRecord.java:684)
E/AndroidRuntime( 2133): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
E/AndroidRuntime( 2133): at android.app.Activity.performStart(Activity.java:5240)
E/AndroidRuntime( 2133): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2157)
E/AndroidRuntime( 2133): ... 11 more
E/AndroidRuntime( 2133): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2133): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 2133): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.createView(LayoutInflater.java:594)
E/AndroidRuntime( 2133): ... 23 more
E/AndroidRuntime( 2133): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x10
E/AndroidRuntime( 2133): at android.content.res.TypedArray.getDimension(TypedArray.java:399)
E/AndroidRuntime( 2133): at com.android.internal.widget.multiwaveview.GlowPadView.<init>(GlowPadView.java:242)
E/AndroidRuntime( 2133): ... 26 more
W/ActivityManager( 799): Force finishing activity com.android.settings/.SubSettings
W/ActivityManager( 799): Force finishing activity com.android.settings/.SubSettings
The issue only appears with light themed settings, so it must be caused by one of my changes in styles.xml.
Any help would be greatly appreciated.
Thanks in advance.
Solved by copying the related xmls from unmodified apk over to modified one.
Hi, I installed my rom, and it crashes like this:
E/AndroidRuntime( 2414): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setColorFilter(int, android.graphics.PorterDuff$Mode)' on a null object reference
E/AndroidRuntime( 2414): at com.android.settings.cyanogenmod.qs.QSTiles.buildQSTile(QSTiles.java:226)
E/AndroidRuntime( 2414): at com.android.settings.cyanogenmod.qs.QSTiles.onActivityCreated(QSTiles.java:76)
E/AndroidRuntime( 2414): at android.app.Fragment.performActivityCreated(Fragment.java:2061)
E/AndroidRuntime( 2414): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:912)
E/AndroidRuntime( 2414): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
E/AndroidRuntime( 2414): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1049)
E/AndroidRuntime( 2414): at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1869)
E/AndroidRuntime( 2414): at android.app.Activity.performCreateCommon(Activity.java:6856)
E/AndroidRuntime( 2414): at android.app.Activity.performCreate(Activity.java:6863)
E/AndroidRuntime( 2414): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/AndroidRuntime( 2414): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306)
E/AndroidRuntime( 2414): ... 10 more
Just crash when I trying to get in. I tried to google it, but only same log in pastebin, I can't fine any solutions or something lie that. Any ideas?