Posts

Showing posts with the label android

Android Studio: How to create a .jar file

Image
As per mentioned by the title for today, I would do some sharing on how to create jar file for android studio. This method might not be the only solution but it definitely is working one. I came across this how to because i have a task back with my work at office. I have to compile a my program to jar library. After few research on google, I found one way that have a more neat step and decide to give it a go.  (there are so many method posted but I have no confident to try it and some are very confusing) Okay, let's get started. First, of course you need to have your program ready in a normal project folder. Then you shall proceed with the steps below: Create a new module for the jar library. Choose android library Name your library After you have successfully create the module, open the build.gradle of the module You shall add on the two task as below and createJar. Follow exactly as follow except for the library name Then at ...

How to automatically generate getter and setter for android studio

Image
Hi y'all. I just wanted to share something that is truly a life saver for programmer like, me. As mentioned in my previous post, I currently stuck around with coding everyday. Today, during a short discussion with my supervisor and another colleague, supervisor mentioned that: " Do you guys know that in eclipse and android there is a shortcut to generate the getter and setter? You guys do not have to type by yourself. But i couldn't remember it now. Later i will share to you guys okay. " Then I was like so curious about what is it about because I had never do research on that ever since i started doing android java coding. So, not so long after the discussion ended, I decided to clear my doubt. I googled and I got my answer! HERE IS THE LIFE SAVIOUR TIPS: Windows: Alt+Insert Mac OSX: Cmd+N After the shortcut, a dialog Generate will drop down and this is what you will see, choose what you need. To my surprise, there are quite some useful on...