Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 71

RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
02/17/15 01:58 PM (9 years ago)

Error running Light Droid plugin

I have the latest Light Droid plugin in my Android app, and when I press the "On" button, I get this under Android Studio logcat: 02-17 15:37:56.589 16833-16833/com.scsportsmanandroid E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.scsportsmanandroid, PID: 16833 java.lang.RuntimeException: setParameters failed at android.hardware.Camera.native_setParameters(Native Method) at android.hardware.Camera.setParameters(Camera.java:1876) at com.scsportsmanandroid.CM_flashLight.turnOnFlash(CM_flashLight.java:202) at com.scsportsmanandroid.CM_flashLight$1.onClick(CM_flashLight.java:164) at android.view.View.performClick(View.java:4756) at android.view.View$PerformClick.run(View.java:19749) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) Could it be a setting on my nexus7 device has to allow Camera settings to be changed?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/17/15 02:20 PM (9 years ago)
Thanks for pointing this out. I'm thinking you might not have flash on your device. I'm not sure but I'll update it tonight to not crash and show an alert if it doesn't support it.also I'll add a lot of cool features I've been wanting to add bUT never took the time too.I'll post back when it's done
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
02/17/15 02:27 PM (9 years ago)
Duh, you're right, the Nexus 7 does not have a flash...tells you how much I take pictures! Still looking forward to a more graceful exit and cool features for other devices. Thanks CMCOFFEE for the fast support
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/17/15 04:26 PM (9 years ago)
Chris ROCKS in his responses to problems! Mark
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/18/15 02:13 PM (9 years ago)
Thanks Mark Didn't have time to it last night. I thought you could change color of flash but apps on the market are actually just making the screen very bright and changing that color.so I was thinking maybe ask user to use it like that if it doesn't have flash feature. What do yall think?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/18/15 11:05 PM (9 years ago)
Ive uploaded the fix.still working on the extra feature
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/06/15 02:53 AM (9 years ago)
hey guys. question about the light droid. i don't have any errors but the app is totally blank, despite adding the images to the control panel and manually in the CM_flashLight. When i press the empty screen i don't have any errors in the logcat .. I'm using 3.0 thanks!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.