In the Inshorts app, when you click on the share button. It shares the news card with a modified image of the card. How it does that.
I can think of doing it by changing the view to a bitmap and then storing on file system temporarily, and then trigger an intent of sharing the image among various apps like WhatsApp / facebook etc.
Is there any other method available to do that, instead of bitmap conversation.
Related
I would like to make image sharing easier by implementing what Telegram does to send a picture:
That is, a gallery strip with the latest pictures.
But until now I've only worked with external intents to launch the native gallery.
How can I implement this? Do I have to manually search the phone for pictures? I assume I require strong permissions for this?
OK, just found another difference between iOS and Android (strange one, I think)
According to Android Share Intent for a Bitmap - is it possible not to save it prior sharing?
I can't share an image without saving it
In my case, I want to share a screenshot (byte array) to other apps (Facebook, Instagram, Mail, etc), but I have to save it first, no matter in internal or external storage
It's totally doable on iOS using UIActivityViewController with NSArray as input, but I can't do it with Intent and ACTION_SEND to share a byte array
Did I miss something or it's just undoable currently?
Any ideas would be appreciated
I want to display pictures in the Gallery but without giving the user the capability to manipulate/send them or change the settings of the Gallery application.
Currently I am using the following code:
Intent intent = new Intent(Intent.ACTION_VIEW,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivity(intent);
When I am using ACTION_PICK, the Gallery is opened in "clean" mode without all those functions (manipulate image, send image, change settings, etc) and this is what I am looking for but with ACTION_VIEW intent.
There are hundreds, if not thousands, of "gallery" apps, both pre-installed on Android devices and downloaded from places like the Play Store.
There are no options on ACTION_VIEW to allow you to request "manipulate/send them or change the settings". And there is no requirement that every gallery application honor such a request, even if there were a way to express it.
ACTION_VIEW, and similar implicit Intents, are for linking to third-party apps, where those third-party apps can do what they want. In that respect, it is like linking to a Web site -- you cannot control, from your site, what another site shows the user.
If you need absolute control over the UX here, write your own image viewer.
I am developing an application for Android I want the button in the .html file to show the device's native gallery (in my case is android) which user can select multiple images and present it's thumbnails in the html page.
I already watch the video in This Website and I still get confusing.
Thank you for all suggestion and solutions.
Ps. I found the solution of select multiple images Here but I am not sure how to use it. ;(
Unfortunately, this is not possible with the current Gallery application of Android.
Within the Gallery application, you can select multiple photos and you can share them using SEND_MULTIPLE Intent. But that is different.
When you select photo from your application, that is called PICKER. And PICKER Intent does not support multiple selection.
I have a large amount of online images stored on my server. I have created a small java server backend to provide album lists and images per album, including a small management console.
I want to use/view these images on my Android device, by using the standard photo/gallery application. Apps like Google Picasa and Facebook do the same thing.
Eg. When I open up the gallery app, there's a tab called "Albums" where a number of folders are visible, including Picasa/Facebook. Most of these folders can be found on my SD card, but the albums by Picasa/Facebook are only online. Entering these online albums clearly shows the "album structure" you have with that provider ("Profile Pictures" at Facebook for instance).
The question:
How did Picasa/Facebook end up there, and how can I recreate said functionality?
I am almost certain it is done using Content Providers, but I can't even find a simple example when used for images. And unfortunatly, most answers here are providing solutions to the wrong problem.
The secondary question: Would this also be possible with Android's Movie and Music players?