Android Profile image resizing and cropping option facebook - java

I am working on a project in which I need to pick an image using image picker intent and then give option to user to crop it like facebook so that he can make it a profile picture. Image picker in done. But i wonder how can i give this crop option to user in android. What I need is , after selecting an image a rectangular box (like facebook) appears and user can crop , resize image and then save it. It their any help or library available for this?

I have successfully used Cropper for this purpose.

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.

How to change the app icon on android studio multiple times and nothing

I have tried multiple times to change the app icon but to no use. If I click under the ic_launcher it shows my picture but when I run it it does not.
I have done the new image set way and the add manually into the andoid manifest.
Help
enter image description here

How to design a android chat bubble with preview of any media file

How can a design a chat bubble that won't show preview of image only but also other types of media files like videos, pdf, word media files.
You can use 9-Patch Images for bubble background.
You can Draw 9-patch tool is a WYSIWYG editor included in Android Studio that allows you to create bitmap images that automatically resize to accommodate the contents of the view and the size of the screen. Selected parts of the image are scaled horizontally or vertically based on indicators drawn within the image.
Please follow this LINK
You can also use Android Asset Generator to generate 9-patch image HERE

How do I avoid artifacts/blurring when enlarging an image in an Android app?

I want to show this image in an Android (Java) app, but the app displays it as. How do I display the first image in an app without getting this blurring effect?
EDIT::
And how can I change the size with no blurring effect?, the imagen will show pixelated. Like this http://i.gyazo.com/18b227adb4c442b09152ca6ebc04c54c.png
To show image with the original size use layout_width="wrap_content" and layout_height="wrap_content". This is considering that your image is smaller than the screen in which it is to be shown. Also if you only provide image in your drawable-hdpi folder then the images in mdpi screen with be scaled by a predefined scale factor(possibly 2). Same case applies for other screen density. To avoid this scaling you can put your images in drawable-nodpi folder.
Note: the images you posted are not properly made(highly pixilated). Try optimizing the resolution and provide multiple resources.

Capture Android screenshot without having the View

I have found a lot of examples like this:
how to Capture screen in android and covert it to image
I need to capture an screenshot of screen activity, but I'm developing an external library, so I can't get current activity of the application to get the View and then flush the bitmap into canvas. Is there another way to capture a screenshot?
If you are trying to save the image from Snapchat, you need to save the Bitmap in another way.
With a rooted phone you can access the apps storage and copy the image while the app shows it.
That way the app wont notice you took a "Screenshot" :)

Categories

Resources