Unfortunately I have several outdated devices and I need to update the App.
The App compiled with B4A 12.2 crashes when started on Android 4.4.
To be able to see the error I tried to start it in debug mode on A 4.4 and I get the error I am attaching.
I state that with the B4A 11.8 version and previous sdk it worked correctly.
Thanks for your help
Hi Erel,
your solution obviously works fine,
but,
is it possible to find a solution to compile by making sure that if the application runs on android 4.4 it uses the old version of the okHttp library and instead uses the new version on android releases higher than 4.4?
Thank you
hi Erel,
Hi Erel,
your solution obviously works fine,
but,
is it possible to find a solution to compile by making sure that if the application runs on android 4.4 it uses the old version of the okHttp library and instead uses the new version on android releases higher than 4.4?
Thank you
hi Erel,
a solution could be to include 2 libraries
http_old
http_last
in the code I could use a TRY CATCH or test the android release and correctly instantiate the object
i know but i don't know ho to use 2 version of some library.
my questio is: Is possible rename the old version of Okhttp library in OKhttp_4.4 library and use it in addiction with new okattp library in the last version?
If this is possible i write my code as following :
B4X:
if phone.SDKVersion = 16 then
dim oh as okhttp_old
else
dim oh as okhttp
end
but i don't kno hot to rename the library as i wont
ok Erel
I didn't want to miss out on the new library features on new devices.
In fact I have several projects and only on a couple I need to support android 4.4
On new projects the minimum requirements are android 6.0