I'm writting an app on android that needs to access the profile pictures of someones WhatsApp contacts.
I know that when I click on the contact and then enlarge the profile picture it will be saved on the sdcard under /sdcard/WhatsApp/Profile Pictures.
So my question is there any possible way to trigger this saving image process for all contacts once in java?
Related
I am developing social media app in which I already coded the logic to take image from my phone gallery but when I retrieve gif image from gallery it doesn't show me any animation of that gif image, it just shows the still image and I have post feature also but there also it doesn't show me animation of gif image, so if anyone know how to get the gif image working on android app then please help me.
The logic to retrieve image from gallery is:
this is a onClick function when i click on camera icon it take me back to gallery.
Photo.launch("image/*");
before this i created the global variable for photo and then i stored the image in the firebase database using registerForActivityResult
I want to know how to get the gif image animation working after I retrieve them from gallery.
I have made custom camera and want to store images in same application instead of built-in gallery.I am taking pictures with my custom camera and want to make separate gallery for that application. A small thumbnail should appear on corner after taking the pictures then on clicking thumbnail it should open my custom galley. So far i have made custom camera which is taking pictures and videos now i want to store them in separate gallery. Please help me out how can i do this task and share your code if you have done already. Your help will be appreciated
You can learn about android file storage management using this link.
Android File Storage. You can read here about differences between Internal storage(Private Location) and external storage(Public location) .
Data Storage Internal/External
As you are not very clear with the description, so there can be 2 possibilities
You want a private location for your images with no other app can access. Private location has benefit that data which you save in this location is app specific. But at the same time you'll also be not able to access the images from file explorer.
You want a public location for your images but a specific place where only your app images are available. Public location has benefit that data (files, images) which you save can be publicly accessible via file explorer, at the same time it can be accessed by other apps in your phone which are granted storage permission.
Saving file in Internal Storage (Private location for app)
Hope this helps and resolves your query.
I am a Android app developer
I want to share a photo on facebook with some explanation like the picture I have uploaded
What I want is a card that contains a picture and a description and when I click on it, I transfer it to Google Play
I need share on Facebook like this image
I have the absoluite path of an image file name in sdcard. Is there a way to get the thumbnail of it just like the way they show in android gallery? The reason i need is I have few images selected from the android gallery and http post it to a server. If the size of the file is huge, it takes a long time to upload because of slow mobile data. Instead of the file, if i can get the thumbnail of it, it will be easy to upload.
I can work on image resize to resize the image on my own before uploading it. But I would like to explore if there is a easier way?
How do I take pictures with the camera and ensure that the taken pictures are only visible from within my own application. ie I don't want the pictures to appear in the gallery app?
EDIT:
Can someone show some code on how to set this path such that when the picture is taken and the user presses save in the camera app, it saves to getFilesDir path ?
How do I take pictures with the camera and ensure that the taken pictures are only visible from within my own application.
Don't store them someplace that is indexed by the MediaScanner. That could be in your application-local file store (e.g., getFilesDir()), or on external storage in a directory that has a .nomedia file.
I have tried storing image as blob in sqlite db, but the image still appears in the gallery
Either you did not store the "image as blob in sqlite db", or the images also existed in the file system somewhere. I am very confident that an "image as blob in sqlite db" did not get indexed.