question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to call cropping activity from my activity.

See original GitHub issue

i followed all the instruction as you mention.

added dependancy in gradle file 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"/>

Now Calling method

private void startCropImageActivity(Uri imageUri) {
        CropImage.activity(imageUri)
                .setGuidelines(CropImageView.Guidelines.ON)
                .setMultiTouchEnabled(true)
                .start(this);
    }

but no activity is starting. even i am not getting any error message.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
geekyRJcommented, May 4, 2017

i have resolved my issue beginCrop(Uri.fromFile(mFileTemp));

private void beginCrop(Uri source) { Uri destination = Uri.fromFile(new File(getCacheDir(), “cropped”)); Crop.of(source, destination).asSquare().start(this); }

case Crop.REQUEST_CROP: String path = Crop.getOutput(data).getPath(); Intent shareActivity = new Intent(getBaseContext(),NextActivity.class); shareActivity.putExtra(“ImageUri”, path); startActivity(shareActivity);

            break;
0reactions
sakibulraselcommented, Jan 18, 2019

What is the problem??

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to continue after cropping a image in CropActivity
When you press the crop button and it comes back to the previous activity without crashing means it returns the data correctly, you...
Read more >
Cropping Activities is Possible! : r/Strava - Reddit
On your mobile device, open the activity, and click the 3 dots in the top right corner, and select “crop activity”. It's very...
Read more >
Activity Cropping on Mobile | A post by The Strava Club on ...
Now you can crop your activity right from the mobile app. Just tap into any activity you need to crop and then hit...
Read more >
Soil compaction | UMN Extension
A well-structured soil holds and conducts the water, nutrients and air necessary for healthy plant root activity. What is compaction? Soil compaction occurs ......
Read more >
The Art and Science of Agriculture | National Geographic Society
They could use this extra food when crops failed or trade it for other goods. Food surpluses allowed people to work at other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found