Questions tagged [android-module]

146 questions
0
votes
0 answers

Android base library module implementation

We are currently updating the app code, and we are splitting the code into different library modules, which are used by one application module. The problem is that the app compiling time has increased exponentially and all of a sudden the 64k…
0
votes
0 answers

How to load a view from another module by implementing a shared interface

I have an app (MyApp) that loads a view from another app (pluginA). pluginA provides the view by implementing an interface provided in a shared Library module. However, I keep getting the error: 08-12 10:38:38.378 8931-8931/ca.rev.revcore…
Program-Me-Rev
  • 6,184
  • 18
  • 58
  • 142
0
votes
2 answers

How to build a module in Android

I have a project that has multiple modules: MyProject module1 module2 I would like to generate the APK for module 2. module 2 has the following instructions in its build.gradle: android.applicationVariants.all { variant -> …
0
votes
1 answer

Access Android Module Classes From Core Module Classes in libgdx

I was integrating my (libgdx) core module with android module to compile my whole project into one big project. However, at the end of this integration, I ran into a problem which I didn't think before. I am not able to access the functions in the…
Kamil Kamili
  • 1,757
  • 5
  • 24
  • 39
0
votes
1 answer

Using app style inside android module

I've got a module with some custom components. Inside one of these I have a DatePickerDialog. I need to using a custom accent color for these. How can I retrieve the color from the main app style? Is there a way to use the same style avoiding…
Manuel Castro
  • 1,633
  • 3
  • 24
  • 38
0
votes
0 answers

Android Library Project Export

I am developing first time Android Library Project that have external dependences of different libraries like retrofit and ormlite-android. The problem i am facing right now is when i use my Android Library Project .aar file inside other project the…
Zohaib Akram
  • 617
  • 1
  • 5
  • 16
-1
votes
1 answer

How do I create an Android library module in Android Studio which contains debug and main packages instead?

I want to create an Android library module which contains main and debug packages only in the Java root. Whenever I create a new Android library module, I get the usual in the Java root which are main, androidTest and test. However I want to change…
-1
votes
2 answers

How to get context of a non activity class with no Application Class in a module

I am trying to get the context to use in sharedprefs in a module of my app. The module doesn't have any Activity class extended nor does the Application Class. Below is the code: public class GetMovieCreditsUseCase extends BaseUseCase { public…
Darshan Gowda
  • 4,956
  • 3
  • 19
  • 27
-1
votes
1 answer

How to add an android studio project to another android studio project?

I want to add an android studio project to my existing android studio project but when i try to import another module from file->import module then i get an error saying the app module already exists.
vipul bansal
  • 91
  • 1
  • 10
-3
votes
1 answer

Generating two APKs from the same app

Trying to generate two APK files that can be installed separately on the same device, the only difference in the functionalities being the app icon. My first assumption was to create two separate projects, but this didn't allow separate…
user1938007
  • 459
  • 1
  • 5
  • 14
-4
votes
1 answer

Get Android module's Package Name from Main Project

How can get the Android module's Package Name from Main Project? The main project contains some Module. getPackageName() return the App Package Name
Hossein Kurd
  • 3,184
  • 3
  • 41
  • 71
1 2 3
9
10