When the intent parameter is returned with the Setresult, the receiver activity flashes

Source: Internet
Author: User

Recently in a project, you need to upload the picture back to the previous activity, set the Setresult (Result_ok,intent) in the Setresult method, Intent.putextre in intent ("BitMap", BITMAP); The results found that the receiver activity Flash back report securityexceptiony anomalies, looking for a long time reason, just at the beginning is to set the activity as a singleton mode reason. Later found that using intent to pass the picture is a problem, because the picture size is too large, it will appear this phenomenon, so it is best to save the picture to the SD card or pass a URI.

http://stackoverflow.com/questions/18096607/ Using-crop-intent-getting-java-lang-securityexception-unable-to-find-app-for-ca

When the intent parameter is returned with the Setresult, the receiver activity flashes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.