java - How to check if one application can access other application? -


several apps can launch other applications well. example contacts can launch camera, music, message etc.

i have track these interfaces. idea great help.

what have done till now.

  1. check permissions in manifest file. got packages installed on phone , got permissions has.
  2. check 'uses feature' in manifest file.

the problem list still not complete because of apps interact other apps using intents. example message.

no, can't this. app interact another, in cases use intent. when want take photo using camera or select picture through gallery, codes may this:
take photo camera:

intent intent = new intent(mediastore.action_image_capture); intent.putextra(mediastore.extra_output, uri.fromfile(new file(environment                 .getexternalstoragedirectory(),"temp.jpg"))); startactivityforresult(intent, photo_graph); 


pick picture through gallery:

intent intent = new intent(intent.action_pick, null); intent.setdataandtype(mediastore.images.media.external_content_uri, image_unspecified); startactivityforresult(intent, photo_zoom); 

so, if want trace these interfaces, need detective intents not androidmanifest.xml.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -