Who needs to program what with Android Intents? -


we working on concept app more powerful if users can share images our app using other apps. our app appear when users press share on many apps possibe.

i still don´t know how android intents work.

i know this:

  • with android intents, apps-to-share-to appear if users have them installed on device
  • some apps on android have customised (limited) menu after share button. example instagram app offers option share fb, twitter, tumblr , flickr.

not clear me:

  • do other apps need authorise/know about/pick our app appear 1 of options in share menu? (assuming
    implement android intents version of share function)
  • do need develop apps want appear in? write targetted code 100+ apps? .. or can program 1 api saying: our app "listen" app android intents sharing, , appear 1 of options when installed.

clarification welcome. bonus answers same questions ios8 extensions..

this done through intent-filters tell device app should listed on when launches intent share or whatever action (take photo, make call, etc). intent filters i'm referring added in manifest , specify activity handle action, , receive data associated it. example if you're sharing image, you'll receive image, if handling "take picture" action, you'll need return image.

quoting docs:

when create implicit intent, android system finds appropriate component start comparing contents of intent to intent filters declared in manifest file of other apps on the device. if intent matches intent filter, system starts component , delivers intent object. if multiple intent filters compatible, system displays dialog user can pick app use.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -