Shared Database / Library for Android Intent

I used to search openintents.org to find information about intentions in general. I also noticed here that questions about how to send an email, how to take a photo ... were regularly asked.

I also found this question: Android Intent Database , which has not yet received an answer.

Therefore, I compiled my current utility functions into a library and put it on Git: Android intent

What intentions do you continue to use over and over again? What are the general purpose goals that could be found in such a library?

I begin to answer my question by putting a list of what I still needed to use in various projects (and I presented in the library):

  • Send email
  • Send SMS
  • Phone number to call / call
  • Open URL in browser
  • Play video
  • To photograph
  • Choose photo from gallery
  • Open a selection to share text.
  • Show address in map application

PS: maybe this question can / should be included again in the community wiki?

+4
source share
1 answer

Intent is an abstract operation that you need to perform, even determine your intention and make some intent filters in another application.

Defining an intent filter in another application means that if the user invokes this intent, your application will be able to process it. For example, you wrote "Show address on Google Maps" - this is not entirely accurate, the goal is to show these coordinates on the map - and not just the google map , if you have another map provider (for example, yandex {in Russia) ) - after calling the "map" system of intent, you ask where you want to show your coordinates - google or yandex.

I think that all definitions of basic intentions can be found here . Also, even intentions by default can have parameters - for example, when you take a photo from a camera \ gallery, you can ask your system to crop this image with a given size \ ratio.

As I see it, the best way to share this expiration is with something like a wiki with examples (even with creating your own custom intent). People often seek guidance on how to perform certain actions - some text with an explanation, I think, will be better than a library.

-1
source

All Articles