My android application is caching an images from this address
"https://raw.githubusercontent.com/mobilesiri/Android-Custom-Listview-Using-Volley/master/images/Bill_Gates.jpg"
But it is not caching and showing the images from my wamp server's address which is
http://localhost/RightF/Upload/15.png
Through API this address looks like
"image":"http://localhost/RightF/Upload/15.png
I even dont get any error.
Related
I am making an e-commerce android application and faced a major issue.I am fetching data for display through remote server and using JSON format.There will be many images may be 40-60 images and some text content for a activity.Now what i do uptil now is that firstly i fetches json data from server which also contains image link with name in it.After that using glide i fetches all the images and show in it.During development phase,it works fine on localhost but when i deployed all backened files on server then a major issue arises.It does not fetches data and takes too long.My backened API is working i checked them in browser and postman.What i am doing wrong here ? Does too much network request gives this issue?And main point is that server and all the php and sql files are working fine.
I don't know whether the title is appropriate or not. But here is my problem that I am trying to solve.
There is a Web Server (e.g. Apache) installed in my Android device.
There is another Android application developed by me that will send an image (taken from device camera) when it gets HTTP request.
For example, HTTP request can be as below:
http://192.168.16.56:8080/camera/snapshot?width=450&height=320
When HTTP request comes, Android will take the image from camera, resize it and provide it to the client.
I can solve this issue by creating a ServerSocket in Android. But I want to use the external Web-Server (e.g. Apache).
I heavily searched in internet but didn't find any clue using external Web-Server.
How I can solve this problem?
I am dubious about the approach usually followed by popular Chat applications like Whatsapp, Wechat etc. It is seen that these apps share a low -resolution blurred out image of the actual image/video file. How is this managed?
My concern is the space management at the server end. Does the client process the original image and create a low-res version and sends 2 requests (Original+blurred file) to the server? Following which, the blurred image being lower in size is shared with others who trigger a GET request for the original image/video file.
Or does the server itself does some processing one the Original file received and make a low-res version out of it. And proceeds as above.
In both cases i could think of, space is being eaten up at the server end with 2 instances of each image/video being shared.
Kindly let me know how this is genrally carried out.
Would be grateful!
you need to upload your original files on your server(web server) and using web server you can send thumbnail of file base64 to ejabberd server. create blurred image from client side not server side(less work load on server if you do it client side).In this case you need to create custom ejabberd module via this custom module http server communicate from ejabberd server.
I have made an android app in which I store image path and their details into sql database and retrieve those data using web service in an android app. The images path are of online web sites at this time.
But I want to get images stored in my pc through their path like c:\xyz.jpg. My pc and android device are on same wifi network. Is it possible?
I stored image in wamp server's www folder and can view from my browser as following "http://192.168.*.***:8080/1.png" But not able to retrieve same from android app.
My code is working fine for accessing images from any online web site. But I want to access images stored in my pc. Is that possible or not like I access web services running on my localhost from android app over same wifi network.
and can view from my browser as following "192.168.*.*:8080/1.png" But not able to retrieve same from.... That is not correct. You should type http://192.168.*.*:8080/1.png.
Did you add
<uses-permission android:name="android.permission.INTERNET" />
to your manifest?
When testing my android app on an emulator I can get data from my local MySQL server database using an httpconnection. However, when testing the app on my samsung phone, I cannot get data from my database. Is there some parameter I need in my manifest file or does anyone know what I need to do to be able to get data from my local server onto my samsung phone?
Well i think you can't access the local database from device.
If you want to access on device you should host your database online and internet should be connected to access that url and then you can probably access it.