I have image from rest API
Image.memory(result.bodyBytes).image;
I display this image in app.
Wish the user could share this image but i don't know how to do it.
It is only supposed to work on android.
Related
I want to make an app that helps the user to crop his image into the different part's so he can upload all of them into the Instagram Like this
How can I do this?
I'm using the Glide library for my Android app in which most users have connected their Facebook profile and are using their profile picture from Facebook as their profile picture on my app. Suddenly today, without having changed any of the code, all images from graph.facebook.com aren't loading correctly with the exception of Facebook's generic profile pictures (what you will see as your profile picture if you haven't yet uploaded one). When I take the URL for the images and paste it in my browser, the images are now being downloaded into a file rather than displayed on the screen like they were in the past. Again, the exception is a generic image which will simply display within my browser like I had been used to.
Does anyone know if there was a change made on Facebook's end and if so, where I could find some sort of documentation of this change? Of course, I'm in need of a solution for how to actually display the images like normal again as well.
Here is the code for how I'm loading the image using the Glide library:
Glide.with(activity)
.load(user.getProfileUrl())
.placeholder(R.mipmap.ic_profile_zero_state)
.bitmapTransform(new com.zensports.util.views.CircleTransform(activity))
.into(mProfileImage);
user.getProfileUrl() should return a URL like https://graph.facebook.com/1670580029918211/picture?width=700&height=700
Thanks in advance.
We have our own Artwork and photography images uploaded in different websites like Tumblr,500px,Deviantart,Flickr etc.So for every image there will be already some URL which is publicly available for everybody to view or download.
Example of such a URL is : http://40.media.tumblr.com/b12772f7533b6283ca008ba8d7ec2192/tumblr_nsezua4hur1r4xqayo1_500.jpg
Like there will be a lot of URL, and we are able to show this in our app and app let user to download this URL. Since the server is not our own, But the images are our own, are we allowed to use these urls in our app to show as a gallery app and let the user download it to their own.
Is it allowed? This is related to programming, because we have seen same websites providing their own APIs to fetch data. But we dont want too many details, Our requirement is simple, So we are trying to keep it simple and economical.
You should be fine, but check that the URLs don't change, or you'll be left with a lovely little error.
I want a simple way where there is an ImageView representing a user profile picture. It is set to a default photo if they have not picked one.
I would like them to simply click on it and it opens up the gallery and they can set (and crop) a profile picture. That picture than is set in the ImageView (and stays there the next time the app is opened -- I am also using an Internet MySQL database to connect to that I may need to store the picture in so other users can see. I just need to see the Android side of things).
I am assuming I may need to use an Intent of some sort? Can I see basic code on how one might do this?
Here's a tutorial on using an intent with the Gallery: http://www.helloandroid.com/tutorials/gallery-intent-tutorial
I want to implement functionality same like in Facebook album viz. first it show blur image then clear version of that with swipe effect but I am not getting any idea from where to start from.
EDIT: I will be getting these images from webserver.
Actually what happens is:
Facebook show its thumbnail image(which is already downloaded) if the large image is not loaded. So it is not intentionally blurred.
and downloads the original image in background. and then sets the large image to that ImageView.
Numerous examples are available to show Gallery in Android.
afaik the "blurred photo" displaying in Facebook app is not actually an android feature, but more of how the embedded WebView handles images. Facebook App is basically just an embedded webview that hopes to look and feel like a native android app.
For the swiping gesture to view the next photo, you can use this.
Try making a custom class extending Android Gallery
And then try applying a blur effete on both Left and Right imageviews.