demoadda.com

300,000+ members

our android apps in store

demoAdda.com is a community of 3.00 lakh programmers and students, just like you, helping each other. Join them; it only takes a minute: Sign Up

Free Download Crop Image Demo in Android.


15 Reviews
4.5

849

6

0


Android development tutorial with demos and sample codes. Here you can download Android demo code for your projects and tutorial helpful for learning Android development. Crop Imagedemo with simple code example development in Android. Download Crop Image source code with screen shot and video tutorials. Android Example Source Code. Android tutorial for beginners youtube video. Android sample basic example tutorial for learning beginners and experiences developer.


Demo Category


Android

Download

Asp .net

Download

C# .net

Download

IPhone

Download

Java Servlet

Download

Javascript jquery

Download

Python

Download

Vb .net

Download

implement Crop Image in Android programmatically.

Simple Crop Image example with screen shots. android. Crop Image this demo development by dharap404.




My Favorites Demo

0 favorited



Crop Image demo overviews.


Title : Crop Image
Submit by : dharap404
Programming Language : Android
Posting Date : 2017-02-03 05:56:54
Demo Type : mobile
Demo Tag : android
Viewed : 849
No of download : 6

submit your project source code ...

Download Demo Here (0.0021MB)

share your demo click to upload your code



Crop Image Demo Description.

       Hello, This is demo for crop image using library add dependency in your gradle 
dependencies {
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.+'
}
  1. Add CropImageActivity into your AndroidManifest.xml

    <activity android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
       android:theme="@style/Base.Theme.AppCompat"/> 
  2. Start CropImageActivity using builder pattern from your activity

    CropImage.activity(imageUri)
      .setGuidelines(CropImageView.Guidelines.ON)
      .start(this);
    
    // for fragment (DO NOT use `getActivity()`)
    CropImage.activity(imageUri)
       .start(getContext(), this);
  3. Override onActivityResult method in your activity to get crop result

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
       if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {
           CropImage.ActivityResult result = CropImage.getActivityResult(data);
           if (resultCode == RESULT_OK) {
               Uri resultUri = result.getUri();
           } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {
               Exception error = result.getError();
           }
       }
    }

  1. Add CropImageView into your activity

    
    <com.theartofdev.edmodo.cropper.CropImageView
      xmlns:custom="http://schemas.android.com/apk/res-auto"
      android:id="@+id/cropImageView"
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_weight="1"/>
  2. Set image to crop

    cropImageView.setImageBitmap(bitmap);
    // or
    cropImageView.setImageUriAsync(uri);
  3. Get cropped image

    Bitmap cropped = cropImageView.getCroppedImage();
    // or (must subscribe to async event using cropImageView.setOnCropImageCompleteListener(listener))
    cropImageView.getCroppedImageAsync();


Download Latest Android Demo Source Code


YouTube Intro Video Play inside App in Android

4.5

This Demo plays YouTube video inside your app. You can show Intro video of your app directly from YouTube using this demo. Also can play any YouTube videos using this demo.... view more

YouTube Player, VideoPlayer, Video Streaming

Android demo   hardikmaru2001 2017-03-10

Show Case View in Android

4.5

         This is showcase-view demo, it can be used as a walk through for the entire screen that is currently visible, Or just for one view on the screen         add this in your /build.gradle and dependency in your /app//build.gradleal... view more

android

Android demo   dharap404 2017-02-10

Emoji Keyboard in Android

4.5

      Hello, This is Emoji-keyboard demo using this you can open emoji keyboard in your app and also use your device default emoji keyboard also add this library dependency in your gradle dependencies { compile 'hani.momanii.supernova_emoji_li... view more

android

Android demo   dharap404 2017-02-03

Crop Image in Android

4.5

       Hello, This is demo for crop image using library add dependency in your gradle dependencies { compile 'com.theartofdev.edmodo:android-image-cropper:2.3.+'} Add CropImageActivity into your AndroidManifest.xml Start CropImageAc... view more

android

Android demo   dharap404 2017-02-03

ValidationLibrary in Android

4.5

     Hello, This is Validation Demo using library and you need to add dependency  in your gradle file dependencies { compile 'com.basgeekball:awesome-validation:1.3'}// Step 1: designate a style AwesomeValidation mAwesome... view more

android

Android demo   dharap404 2017-02-03