Save More Time in Making an Android Apps

As an Android Developer in software consultant, time is the most important thing. We are always chased by “deadlines” that are impossible for everyone. But as we know there is a saying “Many roads lead to Rome”, something that seems impossible, we can solve it. The essence of the speed at which the application is made, do not repeat what we have done. Besides time, i also have to pay attention to the quality of the code and program.

This time the method that I use for making an application is using a framework and template. From my experience using framework and templates, I can save up to 30–50 minutes in making one feature, because we don’t have to recreate every function, besides that we only enter the class name, and some files will be made automatically by Android Studio. The next thing I have to do is just equalize the design and add some functions that didn’t exist before.

Photo by Artem Sapegin on Unsplash

For installation, you can clone the framework and template from here and here. The framework uses the MVVM design pattern, I chose to use MVVM because we can directly change the appearance by simply changing the value of the variable from the Java/Kotlin class. But, I don’t judge that MVVM is powerful than any design pattern, you can also use MVP, MVC or MVW (Model View Whatever ?✌?), but i created the template compatible for MVVM.

The Templates

After clone the framework and template, first you can execute install.sh (tested on mac), but if you use Windows platform, you can copy manually the folder into Android Studio template folder location ( [androidstudio-location]/plugins/android/lib/templates/other/ ), just paste all of the templates folder into that location. After copying frameworks, you can restart the Android Studio. And when the Android Studio is already running again, you can see the framework in New > Other > Choose your template.

Benefits of using templates:

  • Speed up the application creation period
  • Minimize errors and bugs
  • Other developers are easier to read our code
  • Other developers are faster learning our code.

If you choose MVVM-Fragment; Android Studio will create all MVVM files (activity, fragment, viewmodel, userActionListener, layout file), but if you choose MVVM-Fragment; Android Studio will create files without activity file, and then we have MVVM-Fragment-LIST, this template will create all MVVM with recyclerView adapter with dummy data. If you have finished making an android page using template, then you must done all TODO and register your new view model into ViewModelFactory class. After that you can redesign the layout into the application that you expect!

If you got problem when installation framework or templates, you can see these videos:


Radhika Yusuf is an Android developer.


To be a good developer, coding skill is a must. But, there are more than that that are needed. Find out here.

admin
GITS Indonesia menyediakan solusi IT bagi perusahaan Anda.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

More articles

Latest article

Implementasi REST API di iOS Development menggunakan Alamofire dan SwiftyJSON

iOS Development – Tentang REST API Bagi seorang developer, mungkin sudah tidak asing lagi...

GITS Expert Talks: How to Build a Learning Organization

In 1995, Peter Senge coined the term of a Learning Organization. He defines it as a company that facilitates learning of its...

GITS Webinar: How to Build UI UX Portfolio that Stand Out

Apa saja yang harus disiapkan UI/UX designer dalam membuat portfolio? Setelah kamu membuat UI design, lalu bagaimana cara mendokumentasikan...

12 Pelajaran dalam GITS 12 Tahun

GITS genap berumur 12 tahun pada 13 September ini. Ini juga tandanya saya sudah 2 tahun lebih 1...

Customer Loyalty Program yang Cocok untuk Masa Pandemi COVID-19

Customer loyalty program atau program loyalitas kepada pelanggan adalah tentang bagaimana menghargai pelanggan. Kemudian, pada akhirnya, pelanggan yang...