Bug? Android 4.4 issues

Informatix

Expert
Licensed User
Longtime User
I don't need many colors in the instances I use GIF. That's part of why I went with it. Low size.
My entire program is low-colors, actually. https://play.google.com/store/apps/details?id=com.omnicorp.lcarui.test&hl=en
The format is not disappearing at all, I see animations everyday. Google+ even just expanded support for them.
There are statistics about this format. It was used by about 68% of web sites at the beginning of 2012. Less than 52% in November of this year. And the trend is obvious since a few years. It's probably really difficult nowadays to find a professional still using it. Anyway, I don't say it's a bad format, it's just something that we shouldn't continue to use because it's not suited for our modern devices and the advantage of size is too weak compared to the disadvantage of limited colors. Your application is an extreme but interesting case.
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
Less than 52% in November of this year"

That's still a ton of sites using it, no where near the amount you'd drop support for.

Your application is an extreme but interesting case.

My app being an extreme case is irrelevant. Google shouldn't go out of their way to screw devs over like that.
They're making the fragmentation problem worse on purpose
 

Dominex

Active Member
Licensed User
Longtime User
This is probably the case.

You can try the attached core jar file.
It should fix the DrawText issue.

Copy core.jar to Basic4android internal libraries folder.
Thanks Erel, you've solved my problem with Kitkat 4.4.
 

Agnetha

Member
Licensed User
Longtime User
Hi!
I've got B4A 2.71 installed and the same problem with drawing hollow text.
Updating the core.jar file doesn't work. The App crashes right after starting. Do i have to update B4A, too?
 

derez

Expert
Licensed User
Longtime User
My nexus 5 fails with the cctvClient program, on this sub from CameraExClass:
B4X:
PublicSub CommitParameters
r.target = nativeCam
r.RunMethod4("setParameters", ArrayAsObject(parameters), ArrayAsString("android.hardware.Camera$Parameters"))
End Sub
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
0, 0
Supported preview sizes
3264x2448
3200x2400
2592x1944
2048x1536
1920x1080
1600x1200
1280x960
1280x768
1280x720
1024x768
800x600
800x480
720x480
640x480
352x288
320x240
176x144
java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:1650)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.agraham.reflection.Reflection.runmethod(Reflection.java:216)
at anywheresoftware.b4a.agraham.reflection.Reflection.RunMethod4(Reflection.java:857)
at anywheresoftware.b4a.samples.camera.cameraexclass._commitparameters(cameraexclass.java:180)
at anywheresoftware.b4a.samples.camera.main._camera1_ready(main.java:490)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:173)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:858)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:815)
at anywheresoftware.b4a.samples.camera.cameraexclass._camera_ready(cameraexclass.java:135)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:173)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:157)
at anywheresoftware.b4a.objects.CameraW$2$1.run(CameraW.java:139)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: setParameters failed
 

derez

Expert
Licensed User
Longtime User
It fails when this line is not commented:
B4X:
camEx.SetPreviewSize(640,480)
I tried almost all the supported preview sizes that are in the log list.
When commented everything else works fine.
 

derez

Expert
Licensed User
Longtime User
I'll appreciate if someone else with nexus 5 can check this with any camera app using cameraEx, to see if it is something general or specific to my device.
 
Top