What is the appropriate way to add a widget to an existing Android project in Android Studio? -
i created new android widget (using appwidgetprovider
) integrate pre-existing standard android application. want both distributed 1 .apk file when user installs app, widget, too.
before integrating original app, wrote widget in separate project, want create separate module called "appwidget" java/res/etc. files widget remain separate of rest of app. however, doing allows 1 of modules (whichever declared active in drop-down menu left of run button) installed in emulator @ time. install each 1 separately, makes me doubt both included in 1 .apk file upon distribution.
so question is: how can compile 2 different modules (one app , 1 widget) in android studio such installed in 1 .apk file? i've searched many other threads including app widgets guide, talks how make widget, not how integrate pre-existing application, , no 1 has mentioned multiple-module problem i'm talking about.
Comments
Post a Comment