Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hbb20/mobilecompany
This project is example of multiple 'target' for one application.
https://github.com/hbb20/mobilecompany
Last synced: about 1 month ago
JSON representation
This project is example of multiple 'target' for one application.
- Host: GitHub
- URL: https://github.com/hbb20/mobilecompany
- Owner: hbb20
- Created: 2014-12-25T11:13:04.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-25T12:15:34.000Z (about 10 years ago)
- Last Synced: 2024-10-15T21:27:14.018Z (3 months ago)
- Language: Java
- Size: 590 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mobileCompany
=============This project is example of multiple 'target' for one application.
This is an android project which shows how to use resources for specific client.
**Scenario**
There is an advertising company which have a basic app with a screen on which company's name , tagline and logo are there. Suppose motorola and apple are clients of this advertising company. So now if company wants to manage single app and wants to export .apk using client specific resource. This project demonstrate best practice for such scenario.**Steps**
1. Created a new project named 'MobileCompany'
2. Designed one sample activity layout with titleTextView, taglineTextView and Logo image
3. Added two new library module named 'apple' and 'motorola'. [Stackover flow question](http://stackoverflow.com/questions/16601299/how-to-create-a-library-project-in-android-studio-and-an-application-project-tha) shows how to add library
4. Added company specific resources in associated library module. For this project resources are company's logo, tagline, app-name, company's theme color.
5. Goto project structure -> app (from left bottom pane) -> dependancies
6. Add new module dependency and choose appropriate module (either of motorola or apple)
7. gradle will take time to configure it self.
8. Once gradle completes execution successfully run app.
9. To change target got remove the older dependency which we included in step 6. and add other dependency.
10. DONE!**Outputs**
*Application for APPLE*
![Application for apple](https://raw.githubusercontent.com/hbb20/mobileCompany/master/app/src/main/res/drawable/Screenshot_2014-12-25-17-01-42.png)*Application for MOTOROLA*
![Application for motorola](https://raw.githubusercontent.com/hbb20/mobileCompany/master/app/src/main/res/drawable/Screenshot_2014-12-25-17-10-03.png)**References**
1. [Google guidelines](http://developer.android.com/tools/projects/index.html)
2. [Stackover flow question](http://stackoverflow.com/questions/16601299/how-to-create-a-library-project-in-android-studio-and-an-application-project-tha)