Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3279458
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:35:42+00:00 2026-05-17T19:35:42+00:00

Is there an Image cropping Activity in Android? I know that when you save

  • 0

Is there an Image cropping Activity in Android? I know that when you save an images as your wallpaper, it pops up an image cropper… and I’ve looked into the sourcecode for that, but it depends on a LOT of gallery specific stuff. Not very reusable.

Does anyone know how this might be done, or are there any third party libraries that can help me out on this one?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:35:42+00:00Added an answer on May 17, 2026 at 7:35 pm

    There’s a reasonably well-supported Intent for this (worked on my testing on at least a half dozen different Android 2.1+ phones, including SenseUI and Motoblur devices, and I believe it’s been around since Android 1.0 or earlier on the G1). This might get you started:

        final Intent intent = new Intent("com.android.camera.action.CROP");
        intent.setData(uriOfImageToCrop);
        intent.putExtra("outputX", 400);
        intent.putExtra("outputY", 400);
        intent.putExtra("aspectX", 1);
        intent.putExtra("aspectY", 1);
        intent.putExtra("scale", true);
        intent.putExtra("noFaceDetection", true);
        intent.putExtra("output", Uri.fromFile(someOutputFile));
        startActivityForResult(intent, SOME_RANDOM_REQUEST_CODE);
    

    Then just handle what you need to do in the onActivityResult() method of your Activity; your output file should have the cropped image in it at that point.

    NOTE: This code makes use of an internal API and will not work on all devices. To be safe, though, you may want to have a fallback behavior (autocrop? Don’t crop?) if someone has a device that doesn’t support this Intent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any alternative image manipulation library for .net? I would prefer something that
There is a data file and some image files that I have to download
There might be applications that are not suited for Core Data - image manipulation
http://biochrom.fivesite.co.uk/catalogue4.asp On the page above there is an image floated to the left. To
There are lots of non-image-based CAPTCHA ideas floating around. But what about the old-fashioned
There are some nice free image to ASCII art conversion sites like this one:
Is there a System.Drawing.Image.FromHbitmap equivalent in WPF? Also, is it possible to dispose the
Is there any way to convert a bmp image to jpg/png without losing the
Is there a way to compress a VMWare image on a ESXi server for
Is there a good way to read RAW image files (especially Canon CR2 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.