Friday, 26 February 2016

Android app development guideline.

source: https://github.com/codepath/android_guides/wiki

CodePath Android Cliffnotes

Welcome to the open-source CodePath Android Cliffnotes! Our goal is to become the central crowdsourced resource for complete and up-to-date practical Android developer guides for any topic. Just take me to the notes!
CodePath
We have Android guides for everyone whether you are a beginner, intermediate or expert. Want to learn how to use the ActionBar or the ins and outs of fragments? We got that. Want to learnabout automated unit testing or how to build flexible user interfaces for multiple devices? We got you covered. We don't waste time with the "theoretical approach" you might get from a book. We cover exactly the things we use every day as we are developing apps for contracts.
Need Help? Please join this gitter real-time chat or the google groups for these guides where you can post related questions. You can also get 1:1 mentorship online through codementor.

Wednesday, 3 February 2016

Speed up your android app

source:https://github.com/square/leakcanary

A memory leak detection library for Android and Java.
“A small leak will sink a great ship.” - Benjamin Franklin
screenshot.png





source:http://blog.udinic.com/2015/09/15/speed-up-your-app/



A few weeks ago, I gave a talk about Android Performance Optimization, at Droidcon NYC.
I invested a lot of time in this presentation, since I wanted to show real examples for performance issues, and how to identify them with the available tools. I had to cut down about a half of my slides because I didn’t have enough time to show everything. In this post, I’ll summarize everything I was talking about, and show examples I didn’t have time to go over.
The talk was recorded and you can watch it here:

The slides are also available:
Now, Let’s go over some of the important things I was talking about, hopefully I can give a deeper explanation for everything, starting with the basic rules I follow when I work on optimizations:

My Rules

Everytime I approach a performance problem, or looking for performance problems, I follow these rules:
  • Always Measure - Optimizing with your eyes is never a good idea. After looking at the same animation for a few times, you’ll start imagining it’s running faster. Numbers don’t lie. Use the tools we’ll go over soon, and measure how your app performs a few times before and after you make your change.
  • Use slow devices - If you really want to expose all the weak spots, slower devices will help you more. Newer and stronger devices might not get too excited about performance issues you may have, but not all your users use the latest and greatest.
  • Trade-offs - Performance optimization is all about trade-offs. You optimize one thing - it comes on the expense of another. In many cases, that other thing can be your time spent finding and fixing it, but it can also be the quality of your bitmaps or the amount of data you should store in a specific data structure. Prepare yourself to make sacrifices.

Systrace

Systrace is one of the greatest tools that you probably don’t use. That’s because developers weren’t sure what to do with the information it provides.
Systrace shows us an overview of what’s currently running on the phone. This tool reminds us that the phone we hold in our hands, is actually is a powerful computer that can do many things at the same time. In one of the latest SDK tools updates, this tool was improved with generated insights from the data, helping us to find problems. Let’s see how a trace file looks like:
img


Thursday, 21 January 2016

Complete video tutorial of android

Because you enrolled in "Become an Android Developer from Scratch"


Source: https://www.udemy.com/payment/success/?courseId=146156



Android material design icon.

Generate material design icon online.

Change color and size of the icon.

https://materialdesignicons.com


==================================================================

  • Adds about 200kb to your apk (so a wopping average of 170 bytes per icon)
       https://github.com/code-mc/material-icon-lib

==================================================================

Search through more than 3600 free icons. IconsDB let's you customize and download icons. Browse icons by category. Download as ico, icns, png, gif or jpg.

http://www.iconsdb.com/

Material icons are beautifully crafted, delightful, and easy to use in your web, Android, and iOS projects. Learn more about material design and our process for making these icons in the system icons section of thematerial design guidelines.

https://design.google.com/icons/


Download color icon

http://www.flaticon.com/




Monday, 18 January 2016

Build android application from repository

An extendable open source automation server





 Using the Jenkins build server

Continuous integration is a process in which all development work is integrated as early as possible and the resulting artifacts are automatically created and tested. This process should identify errors as very early in the process.
Jenkins is one open source tool to perform continuous integration and build automation. The basic functionality of Jenkins is to execute a predefined list of steps. The trigger for this execution can be time or event based. For example every 20 minutes or after a new commit in a Git repository.
The list of steps can, for example, include:
  • perform a software build with Apache Maven or Gradle
  • Run a shell script
  • Archive the build result
  • Afterwards start the integration tests
Jenkins also monitors the execution of the steps and allows to stop the process if one of the steps fails. Jenkins can also send out notifications about the build success or failure.
Jenkins can be extended by additional plug-ins, e.g., for building and testing Android applications or to support the Git version control system.

source: http://www.vogella.com/tutorials/Jenkins/article.html


Monday, 21 December 2015

Android expert code

source: https://codelabs.developers.google.com/android-dev-summit

Learn about Google codelabs.
This codelab will introduce you to the key Android TV concepts and the Leanback fragments. We will then walk through adding Android TV functionality to an existing mobile video app using Leanback fragments. By the end of the codelab, you'll have a single APK that you can use on both mobile and Android TV.