last day (15 days later) » 

10:05 PM
0
A: Android: Cropping an image after capture or picking from Gallery

Anton KazakovAs i said I was using the same Soundcloud library to crop images. It was doing fine when getting called in Activity but everything changed when I switched to fragment so in onActivityResult requestCode!=Crop.REQUEST_CROP so u can't handle data. So you have few options here: Take an actual value...

 
What do you mean by this? "ACTUAL_VALUE_OF_LIBRARI_REQUEST_CODE" Where can I get the actual value?
 
I mean see what value you expect and look at the actual value. then put expected value to if block
 
I am so sorry I didn't get you. How can I know the value of the requestcode? Is there any possible way to know that? Please do let me know!
 
just log both values
 
I check it and found it to be 6709. I have tried else if (requestCode == 6709) but styill it is not going into this loop! What might be going wrong?
 
10:05 PM
try to call Crop.of this way: Crop.of(cropInputUri, cropOutputUri).asSquare().start(getContext(), Fragment.this, Crop.REQUEST_CROP);
hey
try it
 
hello
I am trying it
will let you know
Thank you so much for your help
 
no problem :)
got the same problems few months ago
 
It is working!
Awesome!
Thanks a lot
can you tell me whats the problem here?
 
i think that problem was with activity result so when you call it with getActivity it was some problem with wrong request code but when u call it right from fragment it will set correct code
so ill change answer
accept it ;)
 
sure
 
10:13 PM
good luck :)
 
Please change
Awesome!
i have given an upvote as well!
 
haha thanks dude)
 
can you give me an upvote or somehting for my question!
if possible
sorry! :)
 
already uprooted )
upvoted
 
haha Thank you!
Can you give me your gmail id or anyother contact means! If I have any questions I can ask ytou
 
10:17 PM
ye
antonanton08@gmail.com
 
thank you!
Will stay in touch!
mine is shravangangadhar@gmail.com
it was great talking to u
u made my day!
 
me too) good luck
 
Thank you and have a great day!
 

last day (15 days later) »