Android Question SQLite Image Viewing from value click

Shelby

Well-Known Member
Licensed User
Longtime User
I've been studying SQLite for the past few months. I'm ready to add an important function to my app.
In my SQLite db app I have 443 records with 4 columns. Thus far, my app is actually a discription of 443 tables. I'd like to have a column where the user clicks a value of one of the tables and that particular table from an exterior repository on my website is called and displayed in a new page.
Thinking it might work, I downloaded Erel's ImageDownloader from: (https://www.b4x.com/android/forum/t...mple-way-to-download-images.30875/#post179512).
I was hoping I could try entering my website location with a repository of images to view them one at a time as I mentioned above. Unfortunately I can't get Erel's project to compile as it is for me either in the Debug or Release mode. I have made the versionCode appropriate for my projects and made the upper SDK version 29 in the manifest editor. I get the following logs' red error text:

*** Service (imagedownloader) Create ***
** Service (imagedownloader) Start **
imagedownloader_download (java line: 171)
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpGet;
at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializeGet(HttpClientWrapper.java:342)
at anywheresoftware.b4a.samples.httputils2.httpjob._download(httpjob.java:71)
at b4a.example.imagedownloader._download(imagedownloader.java:171)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1178)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpGet
... 13 more

Does someone know what I can do to properly display this ImageDownloader project? I'll eventually want my app to be encrypted, just in case that might have some bearing on suggestions for my case here. The project is attached here.
Thanks, Shelb
 

Attachments

  • 1.zip
    8.4 KB · Views: 156
Last edited:

Shelby

Well-Known Member
Licensed User
Longtime User
Attempting to use some class, I have added some text from Erel's thread: https://www.b4x.com/android/forum/threads/class-fileprovider-share-files.97865/#content I also checked the library: FileProvider.

What I added is additional text for the manifest editor. Now I have a compiling complaint in part:

Linking resources Error
AndroidManifest.xml:29: error: resource xml/provider_paths (aka b4a.example:xml/provider_paths) not found.
error: failed processing manifest.

( Seeing provider_paths above, I'm not sure if I should change my pathways in the tools tab for AVD mgr or SDK mgr [but I doubt it] )
I'll attach the new project with only those manifest changes and the FileProvider library addition. As I have said, this is Erel's project from 2013 here: https://www.b4x.com/android/forum/t...-simple-way-to-download-images.30875/#content
 

Attachments

  • 1.3.zip
    8.7 KB · Views: 149
Last edited:
Upvote 0
Top