B4A Class ParsGlide(Glide)

Hi ,it is a simple and clean class for use in B4A of this project.
in this sample images load from URL,Asset,Resource,MediaBrowser...
this lib support gif images....

Download glide-full-4.0.0.jar and copy in lib folder

Download glide-full-4.0.0.jar


Note: Update your SDK before using...and run in release mode..


Glide is a fast and efficient open source media management and image loading framework for Android that wraps media decoding, memory and disk caching, and resource pooling into a simple and easy to use interface.


Comparison between PICASSO VS GLIDE

 

Attachments

  • ParsGlide.zip
    109.3 KB · Views: 459
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
Hi @mshafiee110
i downloaded your lib and tested, your example works fine.

but when i will try add this to another project (not your demo) give me error.

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
Error occurred on line: 30 (ParsGlide)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
at anywheresoftware.b4j.object.JavaObject.RunMethodJO(JavaObject.java:138)
at b4a.example.parsglide._initialize(parsglide.java:63)
at b4a.example.main._jobdone(main.java:591)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA$2.run(BA.java:360)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6692)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
Caused by: java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:111)
at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:356)
at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:413)
... 19 more


i have added the class to my project, i have copied the res folder and added this to my project too.
i have the glide-full-4.0.0.jar on my lib folder, b4a lib folder too.

you know how solve this error?

the error is on this line.
B4X:
Return jo.InitializeStatic("com.bumptech.glide.Glide").RunMethod("with", Array(context))

thank you
 

mshafiee110

Active Member
Licensed User
Longtime User
can you put your code here?
 

cxdzbl

Active Member
Licensed User
Hi ,it is a simple and clean class for use in B4A of this project.
in this sample images load from URL,Asset,Resource,MediaBrowser...
this lib support gif images....

Download glide-full-4.0.0.jar and copy in lib folder

Download glide-full-4.0.0.jar


Note: Update your SDK before using...and run in release mode..


Glide is a fast and efficient open source media management and image loading framework for Android that wraps media decoding, memory and disk caching, and resource pooling into a simple and easy to use interface.


Comparison between PICASSO VS GLIDE

Initialize error in debug mode
 

MAGAREY

Member
Licensed User
Longtime User
i dont know if i made it wrong but, only works if you creates the image view by code?
when i create with the designed , it throws me an error:

B4X:
 parsglide_initialize (java line: 109)
java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
    at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:111)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:356)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:413)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
    at anywheresoftware.b4j.object.JavaObject.RunMethodJO(JavaObject.java:138)
    at com.FliFlix.tv.parsglide._initialize(parsglide.java:109)
    at com.FliFlix.tv.tablettv._imgitemdown(tablettv.java:1629)
    at com.FliFlix.tv.tablettv._createlistitem(tablettv.java:1508)
    at com.FliFlix.tv.tablettv._llenarsecciones(tablettv.java:2541)
    at com.FliFlix.tv.tablettv._cearsecciones(tablettv.java:1316)
    at com.FliFlix.tv.tablettv$ResumableSub_Activity_Create.resume(tablettv.java:715)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
starter_application_error (java line: 165)
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND_MULTIPLE typ=text/plain flg=0x10000000 (has extras) }
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
    at android.app.ContextImpl.startActivity(ContextImpl.java:791)
    at android.app.ContextImpl.startActivity(ContextImpl.java:768)
    at android.content.ContextWrapper.startActivity(ContextWrapper.java:356)
    at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:850)
    at com.FliFlix.tv.starter._application_error(starter.java:165)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1038)
    at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:1001)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.handleUncaughtException(ServiceHelper.java:135)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:212)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
starter_application_error (java line: 165)
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND_MULTIPLE typ=text/plain flg=0x10000000 (has extras) }
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
    at android.app.ContextImpl.startActivity(ContextImpl.java:791)
    at android.app.ContextImpl.startActivity(ContextImpl.java:768)
    at android.content.ContextWrapper.startActivity(ContextWrapper.java:356)
    at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:850)
    at com.FliFlix.tv.starter._application_error(starter.java:165)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1038)
    at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:1001)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.handleUncaughtException(ServiceHelper.java:135)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:212)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
** Activity (main) Create, isFirst = true **
parsglide_initialize (java line: 100)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
    at anywheresoftware.b4j.object.JavaObject.RunMethodJO(JavaObject.java:138)
    at de.amberhome.appcompat.serachviewexample.parsglide._initialize(parsglide.java:100)
    at de.amberhome.appcompat.serachviewexample.main$ResumableSub_Activity_Create.resume(main.java:375)
    at de.amberhome.appcompat.serachviewexample.main._activity_create(main.java:338)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at de.amberhome.appcompat.serachviewexample.main.afterFirstLayout(main.java:102)
    at de.amberhome.appcompat.serachviewexample.main.access$000(main.java:17)
    at de.amberhome.appcompat.serachviewexample.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
    at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:111)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:356)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:413)
    ... 18 more
java.lang.reflect.InvocationTargetException
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
parsglide_initialize (java line: 100)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
    at anywheresoftware.b4j.object.JavaObject.RunMethodJO(JavaObject.java:138)
    at de.amberhome.appcompat.serachviewexample.parsglide._initialize(parsglide.java:100)
    at de.amberhome.appcompat.serachviewexample.main$ResumableSub_Activity_Create.resume(main.java:376)
    at de.amberhome.appcompat.serachviewexample.main._activity_create(main.java:339)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at de.amberhome.appcompat.serachviewexample.main.afterFirstLayout(main.java:102)
    at de.amberhome.appcompat.serachviewexample.main.access$000(main.java:17)
    at de.amberhome.appcompat.serachviewexample.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
    at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:111)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:356)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:413)
    ... 18 more
java.lang.reflect.InvocationTargetException
** Activity (main) Create, isFirst = true **
parsglide_initialize (java line: 100)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
    at anywheresoftware.b4j.object.JavaObject.RunMethodJO(JavaObject.java:138)
    at de.amberhome.appcompat.serachviewexample.parsglide._initialize(parsglide.java:100)
    at de.amberhome.appcompat.serachviewexample.main$ResumableSub_Activity_Create.resume(main.java:376)
    at de.amberhome.appcompat.serachviewexample.main._activity_create(main.java:339)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at de.amberhome.appcompat.serachviewexample.main.afterFirstLayout(main.java:102)
    at de.amberhome.appcompat.serachviewexample.main.access$000(main.java:17)
    at de.amberhome.appcompat.serachviewexample.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
    at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:111)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:356)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:413)
    ... 18 more
java.lang.reflect.InvocationTargetException
 

mshafiee110

Active Member
Licensed User
Longtime User
i dont know if i made it wrong but, only works if you creates the image view by code?
when i create with the designed , it throws me an error:

B4X:
 parsglide_initialize (java line: 109)
java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
    at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:111)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:356)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:413)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
    at anywheresoftware.b4j.object.JavaObject.RunMethodJO(JavaObject.java:138)
    at com.FliFlix.tv.parsglide._initialize(parsglide.java:109)
    at com.FliFlix.tv.tablettv._imgitemdown(tablettv.java:1629)
    at com.FliFlix.tv.tablettv._createlistitem(tablettv.java:1508)
    at com.FliFlix.tv.tablettv._llenarsecciones(tablettv.java:2541)
    at com.FliFlix.tv.tablettv._cearsecciones(tablettv.java:1316)
    at com.FliFlix.tv.tablettv$ResumableSub_Activity_Create.resume(tablettv.java:715)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
starter_application_error (java line: 165)
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND_MULTIPLE typ=text/plain flg=0x10000000 (has extras) }
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
    at android.app.ContextImpl.startActivity(ContextImpl.java:791)
    at android.app.ContextImpl.startActivity(ContextImpl.java:768)
    at android.content.ContextWrapper.startActivity(ContextWrapper.java:356)
    at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:850)
    at com.FliFlix.tv.starter._application_error(starter.java:165)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1038)
    at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:1001)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.handleUncaughtException(ServiceHelper.java:135)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:212)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
starter_application_error (java line: 165)
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND_MULTIPLE typ=text/plain flg=0x10000000 (has extras) }
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
    at android.app.ContextImpl.startActivity(ContextImpl.java:791)
    at android.app.ContextImpl.startActivity(ContextImpl.java:768)
    at android.content.ContextWrapper.startActivity(ContextWrapper.java:356)
    at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:850)
    at com.FliFlix.tv.starter._application_error(starter.java:165)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1038)
    at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:1001)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.handleUncaughtException(ServiceHelper.java:135)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:212)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
** Activity (main) Create, isFirst = true **
parsglide_initialize (java line: 100)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
    at anywheresoftware.b4j.object.JavaObject.RunMethodJO(JavaObject.java:138)
    at de.amberhome.appcompat.serachviewexample.parsglide._initialize(parsglide.java:100)
    at de.amberhome.appcompat.serachviewexample.main$ResumableSub_Activity_Create.resume(main.java:375)
    at de.amberhome.appcompat.serachviewexample.main._activity_create(main.java:338)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at de.amberhome.appcompat.serachviewexample.main.afterFirstLayout(main.java:102)
    at de.amberhome.appcompat.serachviewexample.main.access$000(main.java:17)
    at de.amberhome.appcompat.serachviewexample.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
    at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:111)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:356)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:413)
    ... 18 more
java.lang.reflect.InvocationTargetException
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
parsglide_initialize (java line: 100)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
    at anywheresoftware.b4j.object.JavaObject.RunMethodJO(JavaObject.java:138)
    at de.amberhome.appcompat.serachviewexample.parsglide._initialize(parsglide.java:100)
    at de.amberhome.appcompat.serachviewexample.main$ResumableSub_Activity_Create.resume(main.java:376)
    at de.amberhome.appcompat.serachviewexample.main._activity_create(main.java:339)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at de.amberhome.appcompat.serachviewexample.main.afterFirstLayout(main.java:102)
    at de.amberhome.appcompat.serachviewexample.main.access$000(main.java:17)
    at de.amberhome.appcompat.serachviewexample.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
    at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:111)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:356)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:413)
    ... 18 more
java.lang.reflect.InvocationTargetException
** Activity (main) Create, isFirst = true **
parsglide_initialize (java line: 100)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
    at anywheresoftware.b4j.object.JavaObject.RunMethodJO(JavaObject.java:138)
    at de.amberhome.appcompat.serachviewexample.parsglide._initialize(parsglide.java:100)
    at de.amberhome.appcompat.serachviewexample.main$ResumableSub_Activity_Create.resume(main.java:376)
    at de.amberhome.appcompat.serachviewexample.main._activity_create(main.java:339)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at de.amberhome.appcompat.serachviewexample.main.afterFirstLayout(main.java:102)
    at de.amberhome.appcompat.serachviewexample.main.access$000(main.java:17)
    at de.amberhome.appcompat.serachviewexample.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
    at com.bumptech.glide.request.target.ViewTarget.getRequest(ViewTarget.java:111)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:356)
    at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:413)
    ... 18 more
java.lang.reflect.InvocationTargetException
In this case you must claer tag from view ...
 

asales

Expert
Licensed User
Longtime User
[SOLVED]
I'm testing this class but I get this error:
B4X:
** Activity (main) Create, isFirst = true **
parsglide_v0 (java line: 82)
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap;
    at com.bumptech.glide.load.Options.<init>(Options.java:12)
    at com.bumptech.glide.request.RequestOptions.<init>(RequestOptions.java:86)
    at java.lang.Class.newInstance(Native Method)
    at anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(JavaObject.java:85)
    at de.amberhome.appcompat.serachviewexample.parsglide._v0(parsglide.java:82)
    at de.amberhome.appcompat.serachviewexample.parsglide._initialize(parsglide.java:98)
    at de.amberhome.appcompat.serachviewexample.main$ResumableSub_Activity_Create.resume(main.java:403)
    at de.amberhome.appcompat.serachviewexample.main._activity_create(main.java:352)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at de.amberhome.appcompat.serachviewexample.main.afterFirstLayout(main.java:105)
    at de.amberhome.appcompat.serachviewexample.main.access$000(main.java:17)
    at de.amberhome.appcompat.serachviewexample.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6123)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.ArrayMap" on path: DexPathList[[zip file "/data/app/de.amberhome.appcompat.serachviewexample-1/base.apk"],nativeLibraryDirectories=[/data/app/de.amberhome.appcompat.serachviewexample-1/lib/arm, /system/lib, /vendor/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
What could be?

Thanks in advance for any tip.

[SOLVED] : jetify the lib.
 
Last edited:
Top