Android Question Fatal Exception: android.content.res.Resources$NotFoundException

D

Deleted member 103

Guest
Hi Guys,

the procedure "SetNinePatchDrawable" causes the error below.
Should I exchange this procedure with something else, or should I not pay attention to the error, since anyway it affects only one device?

B4X:
Public Sub SetNinePatchDrawable(Control As View, ImageName As String)
    Dim r As Reflector
    Dim package As String
    Dim id As Int
    package = r.GetStaticField("anywheresoftware.b4a.BA", "packageName")
    id = r.GetStaticField(package & ".R$drawable", ImageName)
    r.Target = r.GetContext
    r.Target = r.RunMethod("getResources")
    Control.Background = r.RunMethod2("getDrawable", id, "java.lang.int")
End Sub

Firebase-Crashlytics:

at fg.MasterOfRegolarity.mbbl._vvvvvvvvvvvvvvvvvvv3(mbbl.java:1962):
 
D

Deleted member 103

Guest
How are the resources organized?
It's all under "...\Objects\res\drawable".

Just now, the customer contacted me and said that the app does not offer the horizontal orientation.
But that only happens because the device outputs the wrong display size.
Maybe everything has to do with the same problem.

The device is: Hamlet Zelig 412 LTE
 
Upvote 0
D

Deleted member 103

Guest
These resources should be available to all devices. Not sure why it failed.
I think that's a weird tablet, it's too cheap and you can not expect much.

Due to the display size problem, I have sent the customer a small app for a test, the app only shows the display size.
Let's see if we can fix this problem at least.
 
Upvote 0
D

Deleted member 103

Guest
Due to the display size problem, I have sent the customer a small app for a test, the app only shows the display size.
Let's see if we can fix this problem at least.
Just for info!
My customer has tested my test-app, it shows a display size of 4.63" inches, and that should be a tablet with 10.1" inch display?
That's a cheap stuff, he writes he throws it away.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…