Problem with fetching pictures in Android apps - android

I have some apps on Google Store where I use images fetched from my server.
The apps were working fine, but a few days ago images stopped downloading to the app.
In the app, I download images using Picasso. Picasso's logcat shows a 504 error.
In addition, the following warnings appear in the logcat:
Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V (greylist-max-q,core-platform-api, reflection, denied)
Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setUseSessionTickets(Z)V (greylist-max-q,core-platform-api, reflection, denied)
Accessing hidden method Lcom/android/org/conscrypt/AbstractConscryptSocket;->setUseSessionTickets(Z)V (greylist-max-q, reflection, denied)
What happened that suddenly the images stopped being downloaded, since neither in the application nor on the server was anything changed?
How can I solve this problem?
I tried to update the libraries used in the project, but it didn't help

Related

Android 10 EACCES (Permission denied) issue

I have updated my app to API level 29 so it broke my image picking mechanism. Eariler everything was working fine. Now when I searched over forums/stackoverflow I came to know that I have to migrate to scoped storage framework in order to make it work. I found 2 things so far
opt out of scoped storage
Read the stream and write into cache directory so that my app can access it.
My question is that is it mandatory to copy the file for using it. If yes I'm afriad to use this approach as it will consume lot of time because my app uses large videos which we upload to server.
Is it possible to use this framework to just read the URI of image/video without copying to cache directory ? Did anyone worked on it ?
for reference I followed these articles
https://developer.android.com/guide/topics/providers/document-provider
https://medium.com/#sriramaripirala/android-10-open-failed-eacces-permission-denied-da8b630a89df
https://issuetracker.google.com/issues/130494105

I am facing a trouble while loading the application due to insufficient storage in the virtual device app is crashed and getting closed immediately?

I am building a application in android which is mostly of pdf and documents in it
May i know how to resolve this issue?
**May i know how to load ,view all documents from less storage **

Getting android.view.InflateException while loading map in Marshmallow Devices

I am trying to load map in my fragment Activity and getting the XML inflating error. The crash is only getting in Marshmallow (using Micromax AQ4501 - Android 6.0).
While googling i found same scenario Check out here
I tried the same and issue is solved by inserting SD card. But i need a right method to solve this. It may be very rare case and i cannot go for a SD availability check in all devices.Guide me to solve this issue.
Happy Coding !
The Issue was on "Micro-max Android one mobile" which was 6.0 Marshmallow. this device has not enough internal or external memory space.Even does not have SD card.
I gone through many sites and found problem was Updated Google Play services which require Space (updated Google photos ) that was not enough in my device and also one of the Error line was showing
"Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.mkdir()' on a null object reference"
I decided to check after installing SD-card. And it worked

Problems accessing local and remote files on Android

I have some problems accessing local files on my Android Application. I use FileInputStreamclass to access to a file on the SD card without any problems.
The issue appears when I close my application and add a new file to the SD Card manually. When I try to access this new one on my application it is not accessible (not found).
I think it has to be related to the cache that Android manage for every application.
I would like to clean this cache when my application is closed. Maybe it is due to the fact that when I close the application. (the activity) it is stopped but not closed, and the cacheis not cleaned.
Anyone has this trouble? Any ideas?
problem solved. On SD Card was due to a bad coding. Refreshing the SD files was done on OnCreate method in the Activity and was not executed altough the activity was closed. I've changed to OnStart and works fine.
And regarding the access to remote files on a servers I've used URLConnection.setUseCaches(false) and now is working fine too!
Thanks

Android docs is very slow in ADT r20

I updated my ADT to r20. It becomes very slow to open the docs when I have internet connection. But it works well in offline mode.
It is very slow to open xxx.html in the docs directory by clicking them directly.
why? And how to fix it?
I found the problem. The url is something wrong when the html file accesses internet to download some resource files. I get these information when I access the docs' html file.
GET file://fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumi‌​talic,bold
GET file://www.google.com/jsapi/
The two are to download js files from internet, but fail to get them due to the wrong url.
How to prevent the two url accessing the internet? There are so many html files in docs, it is impossible to edit them all.
Help!

Categories

Resources