Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts

Custom Toast


Certainly, toasts were boring and I'm sure you have resorted to a better message library but you could now use custom views to display toasts.

So, now you can dress up your toast to show some simple app messages/notifications. You could also have an image in them. If you would have to add a custom toast layout to a toast to show a message, you would have to do the following.

Create the custom layout for your toast.

Gradle: Print dependency graph for Android

While using gradle build in Android Studio or IntelliJ you might face the duplicate dependency issues when you have multiple libraries using the same dependencies and each might have different versions added within them. So, it becomes important to print and take a look at what dependencies each library has and exclude them.

So, to print the dependency graph for all dependencies of the app module.

Go to terminal and type in the root folder.

gradle :app:dependencies

or

gradle app:dependencies









Hosting Sencha app on Raspberry Pi

     I'm super excited as this is my first Raspberry Pi project. If a tiny computer allows you to do a plethora of things effortlessly isn't it great? Particularly for Linux users playing around with Raspberry Pi should be a child's game.

      What I'm trying to attempt here is pretty straight-forward. I will be hosting a Sencha app on Raspberry Pi by making it the web-server.

Pre-requisites:

  1. Raspberry Pi with Raspbian OS running on it. 
   
   2. An ethernet connection.

Tutorial three: How to set up a git repository?

Local git repository:


             Setting up a local repository is pretty simple. By local repository I mean making your project a git repo on your work-station.  

            Open git-bash. Navigate to your project folder. In my case it is \android-test.

  Sowmya\android-test$ git init                                                     


Tutorial Two: Git terminologies


             This post is a continuation of Tutorial one: Git basics. One of the challenges I faced while learning Git was the keywords used. Once you know what each command means your life becomes a lot simpler. It would definitely take a few screws up to get a hang of it. But the best part is every screw-up can be undone.

1. Config: 'git config' allows you to get or set any repository or global options. It allows you to set variables in the config file.


Tutorial One: Git Basics

Git history: 


Git is a version-control system that was developed by the Linux-open source community under the guidance of Linus Travolds. It mainly aimed at solving some of the problems they faced with Bitkeeper a Distributed Version Control System used back in 2005.

The major problems Git addresses are:
    

UI designing tools and tips for Android noobs.


           I know I speak for most of the Android developers when I say my UI designing skills are just about manageable. Inspite of Android community being overly generous to provide copious amount of help and tutorials online, I find myself pondering on a particular problem at times. So, came up with this post to inform the noob developers about the Android Asset Studio  a great tool produced by the Google Android developers to make programmers' life simpler. 

Simplest way to sign your Android app for publishing in Google Play.


            Only when I started reading the google documentation did I realize how confusing it can get to sign the Android app for publishing in the Android market. The documentation is way too elaborate(which is a good thing if you're not in a hurry;)) and runs for pages which some may find intimidating. Therefore, I decided to help fellow noobs to publish their apps hassle-free. First of all, you need to check your application for "debug" mode. You could do that by looking in the Android manifest file for the "debuggable" attribute.