How to upload an image in Firebase same as WhatsApp? - java

I am making a chat app in which i am using RecyclerView to send images and messages, I am able to upload images in the Firebase and able to show them in RecyclerView when clicking send message button, but when i am sending the image message the image is showing in the RecyclerView after it gets uploaded because I am accessing it using a link which firebase providing the image after is gets uploaded. What i want is to show that image in the RecyclerView or i want to show a placeholder until the image gets uploaded. i am using picasso library but it is not showing placeholder until it gets uploaded. It would be great if i get progress dialogue just like whatsapp inside the image to show its progress.

Related

Send Image in Whatsapp without showing in Image editer of whatsapp?

I am making a demo app which functionality is that send image automatically without showing it in whatsapp image editor. How can I send the image directly my app to whatsapp?
Image
Video Demo
On button click i am sending image but open below screen which i don't want and share image directly to my contact.
Here is demo Video to send image directly application to whatsapp.
I do not think it is possible to bypass the video editor. You need to go through it.

Not able to retreive images data from firebase

I am working on an application like Olx where any user can list their items. So for that, I have a fragment to upload the photos of the item user wants to list on the application.
Now the problem is that when the user uploaded the photos to the firebase now I am confused how can I retrieve the same photos to the same user to show on the recycler view on the home screen??? please guide me on how can i achieve that.

Not able to display JPEG image in ImageView

I want to display the below JPEG image in an ImageView.
Android Device is not able to decode the Image. Log Cat is showing this message: decoder->decode returned false. The image is loading correctly on PC and in chrome(Mobile). I've tried various solutions already on the StackOverflow, None of them worked. Currently, I'm displaying the image in a WebView and It's working fine.
webView.loadUrl("file:///"+Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator+"0101YC17000000000003.jpeg")
It's not an optimal solution, so I want to display the image in ImageView from the external storage.
Original Image: 0101YC17000000000003.jpeg

Getting Data From Online (Android)

I want to make an photo gallery app, so I want something like I upload pics to a webpage and it automatically gets displayed in that app.
I don't want to edit the coding for every single image and yess I don't want "WebView" all I want is a pure native android app, that gets data (images/audios/videos) from a webpage and display it in my native android app activity.
What you need to use is a grid view, you pass an array with the links to download the image and place them in each row.
Here is an [example] (http://www.tutorialspoint.com/android/android_grid_view.htm) of how to use it.
Hope it helps

read/write image file in java on android platform

How do i read an image file and display that image in java onto the android platform. I understand i need to use intents and activities, but i'm not sure how to do it.
Basically i want to make an app on android that reads an image file and then write/display it. This can be done using intents and activities. When the user clicks on the read button, the image file gets read, and then when the user clicks on the write button the image gets displayed.
I'm not sure how to read an image file and then to display that image onto the android platform.

Categories

Resources