Insert Android App into another Android app

Asked

Viewed 157 times

2

Imagine that I make an Android app that can be included within apps from other Android developers. They don’t have access to my source code and can at a certain place in their app include my app.

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

For example, on the web I can use a iframe to place a web application inside my website.

  • I don’t know if it solves your problems but your application can start an actitivy from another application and even receive a feedback from it. But both apps need to be installed separately.

1 answer

1

The solution in the case of Android is to create a Android library project (English), allowing other applications to use it attaching it to the application (English).

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

  • Configuring 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.

    That translated:

    Configuring 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 application 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.

    That translated:

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


It’s the only way I know that approaches what happens on a web page where we turn to iframe to include third party code/applications within our.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.