I'm trying to make the sample camera application on Nexus One.
Until now, the programming is not commercial and only test program.
I referenced the source code of android 1.5 platform.
The test code that I made is working well on the other android 1.5 phone.
But the code is not working on Nexus One.
I checked the log of Nexus One.
If I press shutter button, surfaceChanged(...) is called on the android 1.5 phone.
However, surfaceDestroyed(...) is called on Nexus One.
I don't why suraceDestroyed(...) is called.
If anybody has information about this problem, please let me know that.
Thanks in advance.
Hi,
I believe that there's a great change between 1.5 and 2.1 APIs. Rarely apps made for 1.5 are compatible with 2.1. Though, I'm definitely not at expert at this. Why not code a check to use which method depending on the version of the phone?
Ok.....Maybe, there is a great difference between 1.5 and 2.0.
However, I think that there is only little difference for camera application.
Maybe, you agree that the example code of android sdk 2.0 would work well on Nexus One.
But the CameraPreview.java doesn't work on Nuxus.
CameraPreview.java Example(Anroid SDK 2.0) not working......
I'm trying to program my camera application on Nexus One,
But the example code of android sdk 2.0 isn't working.
The example source is the CamraPreview.java.
Maybe, the preview size is the problem but I don't know how to fix the problem.
I include the log of CameraView.java on Nexus One.
If anybody has the information about this problem, please let me know that.
Thanks in advance.
========> The log of CameraPreview.java on Nexus One
E/QualcommCameraHardware( 52): Invalid preview size requested: 533x295
I/QualcommCameraHardware( 52): Set zoom=0
D/AndroidRuntime( 2551): Shutting down VM
W/dalvikvm( 2551): threadid=3: thread exiting with uncaught exception (group=0x4001b180)
E/AndroidRuntime( 2551): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 2551): java.lang.RuntimeException: setParameters failed
E/AndroidRuntime( 2551): at android.hardware.Camera.native_setParameters(Native Method)
E/AndroidRuntime( 2551): at android.hardware.Camera.setParameters(Camera.java:619)
E/AndroidRuntime( 2551): at com.example.android.apis.graphics.Preview.surfaceChanged(CameraPreview.java:90)
E/AndroidRuntime( 2551): at android.view.SurfaceView.updateWindow(SurfaceView.java:460)
E/AndroidRuntime( 2551): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
E/AndroidRuntime( 2551): at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
E/AndroidRuntime( 2551): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
E/AndroidRuntime( 2551): at android.view.View.draw(View.java:6538)
E/AndroidRuntime( 2551): at android.widget.FrameLayout.draw(FrameLayout.java:352)
E/AndroidRuntime( 2551): at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
E/AndroidRuntime( 2551): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
E/AndroidRuntime( 2551): at android.view.View.draw(View.java:6538)
E/AndroidRuntime( 2551): at android.widget.FrameLayout.draw(FrameLayout.java:352)
E/AndroidRuntime( 2551): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1830)
E/AndroidRuntime( 2551): at android.view.ViewRoot.draw(ViewRoot.java:1349)
E/AndroidRuntime( 2551): at android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
E/AndroidRuntime( 2551): at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
E/AndroidRuntime( 2551): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2551): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 2551): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 2551): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2551): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 2551): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 2551): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 2551): at dalvik.system.NativeStart.main(Native Method)
I/Process ( 74): Sending signal. PID: 2551 SIG: 3
I/dalvikvm( 2551): threadid=7: reacting to signal 3
I/dalvikvm( 2551): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 2551): Sending signal. PID: 2551 SIG: 9
E/JavaBinder( 74): !!! FAILED BINDER TRANSACTION !!!
Can you please post all your logs here and don't create new thread for each problem you have.
Thanks.
blue0sky said:
E/QualcommCameraHardware( 52): Invalid preview size requested: 533x295
...
E/AndroidRuntime( 2551): at com.example.android.apis.graphics.Preview.surfaceChanged(CameraPreview.java:90)
Click to expand...
Click to collapse
You're right, it's the preview size. http://developer.android.com/reference/android/hardware/Camera.Parameters.html states:
Different devices may have different camera capabilities, such as picture size or flash modes. The application should query the camera capabilities before setting parameters.
Click to expand...
Click to collapse
You want to use
Code:
public List<Camera.Size> getSupportedPreviewSizes ()
to get a list of supported sizes and use one of those, instead of hardcoding the values.
Related
Hi, I just flashed 4.2.1 on my phone and found that PhotoSphere force closes whenever I choose it in the Camera app. adb logcat reveals something like:
W/ApplicationContext( 2892): Unable to create external files directory
E/LightCycle-storage( 2892): Sessions root directory could not be created.
D/AndroidRuntime( 2892): Shutting down VM
W/dalvikvm( 2892): threadid=1: thread exiting with uncaught exception (group=0x41e6e930)
E/AndroidRuntime( 2892): FATAL EXCEPTION: main
E/AndroidRuntime( 2892): java.lang.NullPointerException
E/AndroidRuntime( 2892): at com.google.android.apps.lightcycle.storage.LocalFileStorageManager.cleanUpOldSessions(LocalFileStorageManager.java:428)
E/AndroidRuntime( 2892): at com.google.android.apps.lightcycle.storage.LocalFileStorageManager.init(LocalFileStorageManager.java:66)
E/AndroidRuntime( 2892): at com.google.android.apps.lightcycle.PanoramaModule.onResumeAfterSuper(PanoramaModule.java:276)
E/AndroidRuntime( 2892): at com.android.camera.CameraActivity.openModule(CameraActivity.java:175)
E/AndroidRuntime( 2892): at com.android.camera.CameraActivity.onCameraSelected(CameraActivity.java:161)
E/AndroidRuntime( 2892): at com.android.camera.ui.CameraSwitcher.onCameraSelected(CameraSwitcher.java:104)
E/AndroidRuntime( 2892): at com.android.camera.ui.CameraSwitcher.access$000(CameraSwitcher.java:38)
E/AndroidRuntime( 2892): at com.android.camera.ui.CameraSwitcher$1.onClick(CameraSwitcher.java:130)
E/AndroidRuntime( 2892): at android.view.View.performClick(View.java:4202)
E/AndroidRuntime( 2892): at android.view.View$PerformClick.run(View.java:17340)
E/AndroidRuntime( 2892): at android.os.Handler.handleCallback(Handler.java:725)
E/AndroidRuntime( 2892): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 2892): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2892): at android.app.ActivityThread.main(ActivityThread.java:5039)
E/AndroidRuntime( 2892): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 2892): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2892): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 2892): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 2892): at dalvik.system.NativeStart.main(Native Method)
I cannot find the source of LightCycle on the web, but apparently, it seems to be a permission issue because it says "E/LightCycle-storage( 2892): Sessions root directory could not be created.". Anyone can give me some hints on how to solve? Thanks!
Francisco
Which phone? Photosphere doesn't work if the phone doesn't have gyroscope!
Sent from my head runnin on CM10!
Lifehacker7 said:
Which phone? Photosphere doesn't work if the phone doesn't have gyroscope!
Sent from my head runnin on CM10!
Click to expand...
Click to collapse
I am using Galaxy Nexus. The problem is that getExternalFilesDir(null) is null.
Hey Guys, I was porting MIUI 2.11.30 rom of ARC S to Live With Walkman with the help of SANDY7 tutorial
After doing all the thing, I was getting bootloop
Here is logcat, I know that there is some problem with HDMI display, I know our wt19i does not contain hdmi display, it is mdpi but I don't know what to change...
Need Help!!
This is full Logcat (http://pastebin.com/Ss3tX1w0)
And here is the error which is causing bootloop
Code:
W/dalvikvm( 345): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/sonyericsson/hdmi/controlservice/HDMIDisplay;
W/dalvikvm( 345): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/sonyericsson/hdmi/controlservice/HDMIControlService;
W/dalvikvm( 345): Class init failed in newInstance call (Lcom/sonyericsson/hdmi/controlservice/HDMIControlService;)
W/dalvikvm( 345): threadid=12: thread exiting with uncaught exception (group=0x2b542210)
I/Email ( 1342): Onetime initialization: 1
I/Email ( 1342): Onetime initialization: 2
E/AndroidRuntime( 345): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 345): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 345): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime( 345): at java.lang.Class.newInstance(Class.java:1319)
E/AndroidRuntime( 345): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2254)
E/AndroidRuntime( 345): at android.app.ActivityThread.access$1600(ActivityThread.java:127)
E/AndroidRuntime( 345): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1212)
E/AndroidRuntime( 345): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 345): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 345): at com.android.server.ServerThread.run(SystemServer.java:748)
E/AndroidRuntime( 345): Caused by: java.lang.ExceptionInInitializerError
E/AndroidRuntime( 345): at com.sonyericsson.hdmi.controlservice.HDMIControlService.<clinit>(HDMIControlService.java:87)
E/AndroidRuntime( 345): ... 8 more
E/AndroidRuntime( 345): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load hdmidisplay: findLibrary returned null
E/AndroidRuntime( 345): at java.lang.Runtime.loadLibrary(Runtime.java:365)
E/AndroidRuntime( 345): at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 345): at com.sonyericsson.hdmi.controlservice.HDMIDisplay.<clinit>(HDMIDisplay.java:56)
E/AndroidRuntime( 345): ... 9 more
I/ActivityManager( 345): Start proc com.sonyericsson.credentialmanagerservice for broadcast com.sonyericsson.credentialmanagerservice/.CredentialManagerBootCompleteReceiver: pid=1476 uid=1000 gids={1015, 3002, 3001, 3003, 3006, 3007, 1007}
I/Process ( 345): Sending signal. PID: 345 SIG: 9
I/Zygote ( 161): Exit zygote because system server (345) has terminated
I am new to ROM porting, so please be soft on me :laugh:
deamonoid said:
Hey Guys, I was porting MIUI 2.11.30 rom of ARC S to Live With Walkman with the help of SANDY7 tutorial
After doing all the thing, I was getting bootloop
Here is logcat, I know that there is some problem with HDMI display, I know our wt19i does not contain hdmi display, it is mdpi but I don't know what to change...
Need Help!!
This is full Logcat (http://pastebin.com/Ss3tX1w0)
And here is the error which is causing bootloop
Code:
W/dalvikvm( 345): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/sonyericsson/hdmi/controlservice/HDMIDisplay;
W/dalvikvm( 345): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/sonyericsson/hdmi/controlservice/HDMIControlService;
W/dalvikvm( 345): Class init failed in newInstance call (Lcom/sonyericsson/hdmi/controlservice/HDMIControlService;)
W/dalvikvm( 345): threadid=12: thread exiting with uncaught exception (group=0x2b542210)
I/Email ( 1342): Onetime initialization: 1
I/Email ( 1342): Onetime initialization: 2
E/AndroidRuntime( 345): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 345): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 345): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime( 345): at java.lang.Class.newInstance(Class.java:1319)
E/AndroidRuntime( 345): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2254)
E/AndroidRuntime( 345): at android.app.ActivityThread.access$1600(ActivityThread.java:127)
E/AndroidRuntime( 345): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1212)
E/AndroidRuntime( 345): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 345): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 345): at com.android.server.ServerThread.run(SystemServer.java:748)
E/AndroidRuntime( 345): Caused by: java.lang.ExceptionInInitializerError
E/AndroidRuntime( 345): at com.sonyericsson.hdmi.controlservice.HDMIControlService.<clinit>(HDMIControlService.java:87)
E/AndroidRuntime( 345): ... 8 more
E/AndroidRuntime( 345): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load hdmidisplay: findLibrary returned null
E/AndroidRuntime( 345): at java.lang.Runtime.loadLibrary(Runtime.java:365)
E/AndroidRuntime( 345): at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 345): at com.sonyericsson.hdmi.controlservice.HDMIDisplay.<clinit>(HDMIDisplay.java:56)
E/AndroidRuntime( 345): ... 9 more
I/ActivityManager( 345): Start proc com.sonyericsson.credentialmanagerservice for broadcast com.sonyericsson.credentialmanagerservice/.CredentialManagerBootCompleteReceiver: pid=1476 uid=1000 gids={1015, 3002, 3001, 3003, 3006, 3007, 1007}
I/Process ( 345): Sending signal. PID: 345 SIG: 9
I/Zygote ( 161): Exit zygote because system server (345) has terminated
I am new to ROM porting, so please be soft on me :laugh:
Click to expand...
Click to collapse
delete the HDMI apk from system/app
sandy7 said:
delete the HDMI apk from system/app
Click to expand...
Click to collapse
Thanks Man, you always ROCKKSS!!!
Now Miui is successfully booting, but there is MIUIhome FC and it is not even loading, no way to make launcher work, I will try to find out the problem.
Anyway Thanks man!!
Miuihome is source bug in latest version...
Sent from my SK17i using XDA Premium HD app
sandy7 said:
Miuihome is source bug in latest version...
Sent from my SK17i using XDA Premium HD app
Click to expand...
Click to collapse
ok... It means I have to use old MIUIHome.apk.
Thanks man!!
Old may also problem....I some how solved it..
Sent from my SK17i using XDA Premium HD app
I have read in different threads that the new miuihome is hooked to shelld, so if this daemon not running, miuihome cant' obtain those services.
and there is fix in one of the thread but this fix should be done in kernel
This is the link (http://forum.xda-developers.com/showpost.php?p=34287168&postcount=1962)
I don't know much but just trying to help from my side
sandy7 said:
Old may also problem....I some how solved it..
Click to expand...
Click to collapse
So can I use your MIUIHome.apk, if it works....
This is ROM is for my personal use only.
deamonoid said:
I have read in different threads that the new miuihome is hooked to shelld, so if this daemon not running, miuihome cant' obtain those services.
and there is fix in one of the thread but this fix should be done in kernel
This is the link (http://forum.xda-developers.com/showpost.php?p=34287168&postcount=1962)
I don't know much but just trying to help from my side
So can I use your MIUIHome.apk, if it works....
This is ROM is for my personal use only.
Click to expand...
Click to collapse
Yes just replace those 4 files in the /system and use the kernel from my thread...I have modified the kernel to start the demon at booting...
EDIT:
i mean replace these files
/system/xbin/shelld
/system/lib/libshell.so
/system/lib/libshell_jni.so
/system/lib/libshellservice.so
and use the kernel from my miui thread
Sent from my SK17i using XDA Premium HD app
sandy7 said:
Yes just replace those 4 files in the /system and use the kernel from my thread...I have modified the kernel to start the demon at booting...
EDIT:
i mean replace these files
/system/xbin/shelld
/system/lib/libshell.so
/system/lib/libshell_jni.so
/system/lib/libshellservice.so
and use the kernel from my miui thread
Sent from my SK17i using XDA Premium HD app
Click to expand...
Click to collapse
IT WORKED!!!
THANKS MAN!!
This is my first ROM and without you, it would not be possible!! :victory:
u are welcome
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
Hi,
It appears I've gotten myself into a little predicament. As the title indicates, after restarting my Galaxy S4 last night, everything crashes, basically rendering the device useless. The launcher is stuck in a crash loop, as well as any app I open via adb. I am currently running a rooted android 4.2.2 on the stock TouchWiz ROM which I believe is the MI1 build for my GS4.
I do have access to adb as well as su, so hopefully someone can help me through this.
A little more info on the things I've tried:
My initial thought as to why this was happening was because I froze some bloatware via App Quarantine. During this process, I disabled a few keyboards since SwiftKey would never be the default when I restarted Android, hoping that it would just eventually just default to SwiftKey. However, I also recently put a magnet on the back of my phone for use with a magnetic car mount, but I don't believe this is causing the issue.
I first tried disabling Xposed, this had no effect.
Next, I tried to install another keyboard through adb.
I tried to install an alternative launcher, this crashed as well.
I booted into safe mode, still no luck.
I tried launching apps through the monkey command, they crashed after a few seconds as well.
I believe my logcat points to the following error whenever anything crashes, however I cannot be certain.
Code:
E/AndroidRuntime( 8123): FATAL EXCEPTION: main
E/AndroidRuntime( 8123): java.lang.NullPointerException
E/AndroidRuntime( 8123): at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1203)
E/AndroidRuntime( 8123): at android.view.inputmethod.InputMethodManager.onWindowFocus(InputMethodManager.java:1411)
E/AndroidRuntime( 8123): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3298)
E/AndroidRuntime( 8123): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 8123): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 8123): at android.app.ActivityThread.main(ActivityThread.java:5329)
E/AndroidRuntime( 8123): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 8123): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 8123): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
E/AndroidRuntime( 8123): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
E/AndroidRuntime( 8123): at dalvik.system.NativeStart.main(Native Method)
Based on the presumed error, I made one last attempt and tried to change the keyboard via adb but I got the following error:
Code:
>adb shell ime list
Error: Could not access the Input Method Manager. Is the system running?
I have attached my error logcat, as well as the verbose logcat.
I'm basically at a loss here. I do have most of the bare-minimum, important data backed up with Titanium Backup, but I really don't want it to come to the point where I have to wipe my phone. Any help is appreciated.
Thanks.
Have you tried the No-Wipe Stock Image for odin?
bamige1 said:
Have you tried the No-Wipe Stock Image for odin?
Click to expand...
Click to collapse
I have not tried this yet. I had completely forgotten about those. I'll give it a shot and report back.
bamige1 said:
Have you tried the No-Wipe Stock Image for odin?
Click to expand...
Click to collapse
I just went ahead with the no wipe image and the problem still persists. I'm at a complete loss as of what to do next.
EDIT:
The logcat is giving this error as well:
Code:
E/ViewRootImpl( 875): sendUserActionEvent() mView == null
E/AndroidRuntime( 9913): FATAL EXCEPTION: main
E/AndroidRuntime( 9913): java.lang.NullPointerException
E/AndroidRuntime( 9913): at android.view.inputmethod.InputMethodManager.s
tartInputInner(InputMethodManager.java:1203)
E/AndroidRuntime( 9913): at android.view.inputmethod.InputMethodManager.o
nWindowFocus(InputMethodManager.java:1411)
E/AndroidRuntime( 9913): at android.view.ViewRootImpl$ViewRootHandler.han
dleMessage(ViewRootImpl.java:3298)
E/AndroidRuntime( 9913): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 9913): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 9913): at android.app.ActivityThread.main(ActivityThrea
d.java:5329)
E/AndroidRuntime( 9913): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 9913): at java.lang.reflect.Method.invoke(Method.java:5
11)
E/AndroidRuntime( 9913): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:1102)
E/AndroidRuntime( 9913): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:869)
E/AndroidRuntime( 9913): at dalvik.system.NativeStart.main(Native Method)
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?