Posts

Java + Android Library : First Program

Image
Create a Demo Project Step - 1 : First create a 'JavaLibraryDemo '  project Step - 2 : Creating a new Android Library After creating the project, go to File -> New -> New Module: Step - 3 :  Select Java Library. Step - 4 : Next, you will be prompted to provide a name and the module name. A. Enter Library Name - In my case 'mathlib-v1.0' B. Package Name Step - 5 : After finish, Project look like this in android studio --------------------Configure---------------------- Step - 1 : Now, Configure the android project File -> Project Structure -> app -> dependencies -> Click on (+) -> Module Dependency Step - 2 : A 'Choose Module' popup will show, choose  module and press 'OK' -> 'OK' --------------------Start Code </> ------------------------------- Here, We perform simple Add Operation Step - 1 : Inside Library, goto Java 'Main' folder. RightClicl -> New ...