J Juzer Hussain Active Member Licensed User Longtime User Dec 19, 2019 #1 Hi Friends, As per the requirements of google to change api level and targetSDKversion I changed my manifest file as below <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" maxSdkVersion="26" /> After doing this change app is working in older android version upto 8.1.0 but its not working in later versions. Is the manifest file ok, Do I need to do something else also. Pls suggest. Thanks Juzer Hussain
Hi Friends, As per the requirements of google to change api level and targetSDKversion I changed my manifest file as below <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" maxSdkVersion="26" /> After doing this change app is working in older android version upto 8.1.0 but its not working in later versions. Is the manifest file ok, Do I need to do something else also. Pls suggest. Thanks Juzer Hussain
J Juzer Hussain Active Member Licensed User Longtime User Dec 19, 2019 #3 Don't get any error. On Login button click it runs a job to connect to server. The job is failing.The job should succeed. Upvote 0
Don't get any error. On Login button click it runs a job to connect to server. The job is failing.The job should succeed.
DonManfred Expert Licensed User Longtime User Dec 19, 2019 #4 Check the unfiltered log. If the job finishes unsuccessfully then there must be an error. Upload a small project which shows the issue. Upvote 0
Check the unfiltered log. If the job finishes unsuccessfully then there must be an error. Upload a small project which shows the issue.
J Juzer Hussain Active Member Licensed User Longtime User Dec 19, 2019 #5 Job should fail in other mobiles also. If there is error. Its not failing in all versions. Upvote 0
DonManfred Expert Licensed User Longtime User Dec 19, 2019 #6 Are you calling http (not https) urls? If so then you need adapt your manifest because of plaintext access. See android.jar / targetSdkVersion / minSdkVersion Upvote 0
Are you calling http (not https) urls? If so then you need adapt your manifest because of plaintext access. See android.jar / targetSdkVersion / minSdkVersion
J Juzer Hussain Active Member Licensed User Longtime User Dec 19, 2019 #7 Yes i am using http site. The link says add <uses-library android:name="org.apache.http.legacy" android:required="false"/> to AndroidManifest.xml I added in Manifest file. Do i need to do something else also? Upvote 0
Yes i am using http site. The link says add <uses-library android:name="org.apache.http.legacy" android:required="false"/> to AndroidManifest.xml I added in Manifest file. Do i need to do something else also?
J Juzer Hussain Active Member Licensed User Longtime User Dec 19, 2019 #9 I read it but don't see anything else. Can u pls point it. Upvote 0
DonManfred Expert Licensed User Longtime User Dec 19, 2019 #10 Juzer Hussain said: I read it but don't see anything else. Can u pls point it. Click to expand... OMG There are 3 SDK 28 Items. Only one of them points to "non-https". Hmm, which one could it be? Upvote 0
Juzer Hussain said: I read it but don't see anything else. Can u pls point it. Click to expand... OMG There are 3 SDK 28 Items. Only one of them points to "non-https". Hmm, which one could it be?
J Juzer Hussain Active Member Licensed User Longtime User Dec 19, 2019 #11 SORRY. CreateResourceFromFile(Macro, Core.NetworkClearText) to be added in manifest. I am using B4A 8.5 will that be ok. Upvote 0
SORRY. CreateResourceFromFile(Macro, Core.NetworkClearText) to be added in manifest. I am using B4A 8.5 will that be ok.
DonManfred Expert Licensed User Longtime User Dec 19, 2019 #12 i dont know. the macro is added to B4A 9+ You can try to add this to your manifest B4X: SetApplicationAttribute(android:networkSecurityConfig, @xml/network_security_config) CreateResource(xml, network_security_config.xml, <network-security-config> <base-config cleartextTrafficPermitted="true"> <trust-anchors> <certificates src="system" /> </trust-anchors> </base-config> </network-security-config> ) Upvote 0
i dont know. the macro is added to B4A 9+ You can try to add this to your manifest B4X: SetApplicationAttribute(android:networkSecurityConfig, @xml/network_security_config) CreateResource(xml, network_security_config.xml, <network-security-config> <base-config cleartextTrafficPermitted="true"> <trust-anchors> <certificates src="system" /> </trust-anchors> </base-config> </network-security-config> )
J Juzer Hussain Active Member Licensed User Longtime User Dec 19, 2019 #13 Thank You, DonManfred I will recompile and check with client in a day or two if it works. I feel it should work. Juzer Upvote 0
Thank You, DonManfred I will recompile and check with client in a day or two if it works. I feel it should work. Juzer
J Juzer Hussain Active Member Licensed User Longtime User Jan 6, 2020 #14 Juzer Hussain said: Thank You, DonManfred I will recompile and check with client in a day or two if it works. I feel it should work. Juzer Click to expand... Upvote 0
Juzer Hussain said: Thank You, DonManfred I will recompile and check with client in a day or two if it works. I feel it should work. Juzer Click to expand...
J Juzer Hussain Active Member Licensed User Longtime User Jan 6, 2020 #15 Thanks DonManfred I checked it is working now in Android 9.0 version. Upvote 0