Android Question BCTextEngine contains httputils2??

aidymp

Well-Known Member
Licensed User
Longtime User
Hi, I wanted a quick toast that I can make look nice, so tried to add BCToast as it seems to fit what I wanted

However I use a custom httputils2service and it now says I have two copies?

The question is does BCTestEngine contain httputils2? and if so why?

Thanks

Aidy
 
Upvote 0
do you have the library checked also?
You can use either the modules OR the library. Not both.

No I have okHttp lib ticked, I have 3 code modules HttpUtils2Service, Httpjob, Downloadservice

NOTHING ELSE.

I have just tried again, this time no CODE!!! just ticked the BCToast lib.

Log Error!
HttpUtils2Service is declared twice. You should either remove the library reference or the code module.

Its inside that BCToast lib then isnt it!
 
Upvote 0
Maybe BCToast depends on the lib? If so then b4a is adding the library when using BCToast

Edit:

B4A.DependsOn=JavaObject, BitmapCreator, XUI, OkHttpUtils2, B4XCollections, BCTextEngine
It depends on the library.
You can remove OkHttpUtils2 from the file manifest.txt (inside the b4xlib)
 
Upvote 0
Maybe BCToast depends on the lib? If so then b4a is adding the library when using BCToast

Edit:


It depends on the library.
You can remove OkHttpUtils2 from the file manifest.txt (inside the b4xlib)

Thankyou, That worked!
 
Upvote 0
It is a mistake to use HttpJob or HttpUtils2Service modules. Which changes have you made?

If you must make the changes then it is better to rename the modules (MyHttpJob / MyHttpUtils2Service). Otherwise you will encounter all kinds of issues with all kinds of libraries.

It was mainly to expose the progress counter as I NEED that. You made the modification I think! then a joint effert of the forum users, got it upto date, when okhttp was introduced.

Its working fine, and I know how it works so prefer to keep it like that.
 
Upvote 0
Back
Top