Insert Android Application inside another Android application

2

Imagine that I make an Android application that can be included inside apps from other Android developers. They do not have access to my source code and may in some place of the application include my application.

If possible, how can it be done to achieve this?

For example, in web I can use iframe to put a web application inside my site.

    
asked by anonymous 02.03.2014 / 01:17

1 answer

1

The solution for Android is to create a Android library project < sup> (English) , thus allowing other applications to use attaching it to application (English) .

The steps are described in the links and need a complete reading for a correct implementation, although it does not differ much from the creation of a "normal" project.

  • Set up a library project

      

    Setting up a Library Project
      A library project is a standard Android project, so you can create a new one in the same way as you would a new application project.

    What translated:

      

    Set up a library project
      A library project is a regular project on Android, so you can create a new one the same way you would with a new app project.

  • Referencing a library project

      

    Referencing a library project
      If you are developing an application and want to include the shared code or resources from a library project, you can do so easily by adding a reference to the library project in the application project's properties.

    What translated:

      

    Referencing a library project
      If you are developing an application and want to include the shared code or features of a project library, you can do so easily by adding a reference to the project library in the application project's properties.

It's the only way I know it's approaching what happens on a webpage where we use iframe to include third-party code / applications within our     

02.03.2014 / 02:46