[APP][H811+H815] Snap Camera G4-Edition

codeworkx

Senior Recognized Developer
Nov 20, 2010
8,493
57,074
0
Bad Neustadt
What? Oh, no. I like Kubuntu :)
Now i use CyanogenMod/android_packages_apps_Snap. But i see, you're doing a lot of commits, which are absent in the CM repo. They will be supplemented later, or it will be exclusive to g4 in this thread?
I'm building from CM repo as well. But you should also have a look at gerrit code review.
 
  • Like
Reactions: MSephiroth

JackSlaterIV

Senior Member
Sep 4, 2013
132
24
38
Start -> cmd -> Run command prompt -> connect phone via usb -> run "adb logcat".

You can try it again with your app but please do not filter.
Hello @codeworkx,
Is this sufficient?
Code:
--------- beginning of crash

E/AndroidRuntime( 6494): FATAL EXCEPTION: main

E/AndroidRuntime( 6494): Process: org.cyanogenmod.snap, PID: 6494

E/AndroidRuntime( 6494): java.lang.NoSuchMethodError: No virtual method clearPrivateFlags(I)V in class Landroid/view/Window; or its super classes (declaration of 'android.view.Window' appears in /system/framework/framework.jar:classes2.dex)

E/AndroidRuntime( 6494): 	at com.android.camera.CameraActivity.initPowerShutter(CameraActivity.java:1807)

E/AndroidRuntime( 6494): 	at com.android.camera.PhotoModule.init(PhotoModule.java:499)

E/AndroidRuntime( 6494): 	at com.android.camera.CameraActivity.onCreate(CameraActivity.java:1499)

E/AndroidRuntime( 6494): 	at android.app.Activity.performCreate(Activity.java)

E/AndroidRuntime( 6494): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread.access$800(ActivityThread.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java)

E/AndroidRuntime( 6494): 	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 6494): 	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread.main(ActivityThread.java)

E/AndroidRuntime( 6494): 	at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 6494): 	at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 6494): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)

E/AndroidRuntime( 6494): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)

F/libc    ( 6586): Fatal signal 6 (SIGABRT), code -6 in tid 6586 (ex.callrecorder)

--------- beginning of system
It's the v9.
Let me know.
 

codeworkx

Senior Recognized Developer
Nov 20, 2010
8,493
57,074
0
Bad Neustadt
Hello @codeworkx,
Is this sufficient?
Code:
--------- beginning of crash

E/AndroidRuntime( 6494): FATAL EXCEPTION: main

E/AndroidRuntime( 6494): Process: org.cyanogenmod.snap, PID: 6494

E/AndroidRuntime( 6494): java.lang.NoSuchMethodError: No virtual method clearPrivateFlags(I)V in class Landroid/view/Window; or its super classes (declaration of 'android.view.Window' appears in /system/framework/framework.jar:classes2.dex)

E/AndroidRuntime( 6494): 	at com.android.camera.CameraActivity.initPowerShutter(CameraActivity.java:1807)

E/AndroidRuntime( 6494): 	at com.android.camera.PhotoModule.init(PhotoModule.java:499)

E/AndroidRuntime( 6494): 	at com.android.camera.CameraActivity.onCreate(CameraActivity.java:1499)

E/AndroidRuntime( 6494): 	at android.app.Activity.performCreate(Activity.java)

E/AndroidRuntime( 6494): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread.access$800(ActivityThread.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java)

E/AndroidRuntime( 6494): 	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 6494): 	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 6494): 	at android.app.ActivityThread.main(ActivityThread.java)

E/AndroidRuntime( 6494): 	at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 6494): 	at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 6494): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)

E/AndroidRuntime( 6494): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)

F/libc    ( 6586): Fatal signal 6 (SIGABRT), code -6 in tid 6586 (ex.callrecorder)

--------- beginning of system
It's the v9.
Let me know.
Thanks.
That's stuff needed for the power shutter feature which the stock lg rom doesn't support.

I can do you one single private build where it's removed, but that's all. You'll never get updates.
I'm not going to care about stock rom.
 

JackSlaterIV

Senior Member
Sep 4, 2013
132
24
38
Thanks.
That's stuff needed for the power shutter feature which the stock lg rom doesn't support.

I can do you one single private build where it's removed, but that's all. You'll never get updates.
I'm not going to care about stock rom.
Are you sure it's relative to stock roms? Because @Juzman said the app starts fine on stock.

v9 working fine on stock, just doesn't save images to sdcard only internal.
The only difference is that his device is a G4, mine is a G3.
 
Last edited:

JackSlaterIV

Senior Member
Sep 4, 2013
132
24
38
Thanks.
That's stuff needed for the power shutter feature which the stock lg rom doesn't support.

I can do you one single private build where it's removed, but that's all. You'll never get updates.
I'm not going to care about stock rom.
Can you make the power shutter feature active only if it detects the correct environment?
I mean, when the app starts it checks if that resource is missing or not, and it enables that feature or not.
So the app can start in both cases without crashing.
So you can let stock-based roms use this app, and you can save time without having to manage a separate build.
Please consider this option, a lot of G3 users are on stock based rom but they would like to run your app.
Thanks anyway.
 

codeworkx

Senior Recognized Developer
Nov 20, 2010
8,493
57,074
0
Bad Neustadt
Can you make the power shutter feature active only if it detects the correct environment?
I mean, when the app starts it checks if that resource is missing or not, and it enables that feature or not.
So the app can start in both cases without crashing.
So you can let stock-based roms use this app, and you can save time without having to manage a separate build.
Please consider this option, a lot of G3 users are on stock based rom but they would like to run your app.
Thanks anyway.
This is a CyanogenMod app.
The required code will never be approved and merged in.
And i don't have the time for it.

Ask one of the G3 devs to do it. The code is public: http://github.com/CyanogenMod/android_packages_apps_Snap
 

JackSlaterIV

Senior Member
Sep 4, 2013
132
24
38
This is a CyanogenMod app.
The required code will never be approved and merged in.
I never asked you to modify the original Cyanogen app, it doesn't make sense at all!
I asked you to modify your release, the one that you are sharing here on XDA.
And i don't have the time for it.
I don't think that a work like this would require hours. And you had the time to release 5 versions in 2 days...
However it's your time.
Ask one of the G3 devs to do it. The code is public: http://github.com/CyanogenMod/android_packages_apps_Snap
They would spend much more time than you, because they would have to study and get familiar with the code.
You know exactly were to put your hands. That's why I asked you to do it.

You clearly don't like the idea, that's all. Do what you want.