Friday, 7 August 2015

Top Android learning website for beginners


If you want to learn Android programming there are a lot of Android tutorials and other learning materials online. There are lots of beginner tutorials and tons of advanced tutorials from various sources. We at SitePoint also offer a new Android development tutorial every now and then.
When there is so much information and you are a beginner, it’s easy to get confused about where to start. To make it easy for you and with no illusions that this list of Android tutorials is the best or complete, here are 12 Android tutorials to start with.
Not all the tutorials and their content are strictly beginner beginner focussed. Some of them start out for beginners and then delve into more advanced topics. So if you can’t follow everything in every single tutorial, don’t get desperate or frustrated.
If you encounter a hurdle, just spend more time with the tutorial, reading it a couple of times if necessary. If you are still not on friendly terms with it, there is no drama – just move forward and revisit it later.

Building Your First App

Naturally, we start the list with a tutorial from Google, the creators of Android. The ‘Building Your First App‘ tutorial starts from the very beginning and it’s suitable for absolute beginners. If you have no programming knowledge whatsoever, don’t expect to be able to handle the tutorial but if you have some programming background, it’s easy.
The tutorial has several ‘Best Practice’ sections at the end. This is good because all the important content about the topic in one place and you just have to read it.
01 - Building Your First App

Android Development – Tutorial

The reason this tutorial is near the top is that it’s very up-to-date (based on Android 4.4, the latest Android version as of today).
This tutorial has more topics and information than the tutorial from Google, so if you are looking for an in-depth tutorial, this is one the.
02 - Android Development - Tutorial
It’s not an easy or quick tutorial. If you want to get the most from it, you will need quite a lot of time to read it from start to finish. It can be a great source if you need to consult a given topic in detail.

3. Video Tutorials Series

I find video tutorials less useful (except when they teach design, animation, or any other visual topic) but for many people they are the preferred way of learning. If you belong to this group, you will love this series of video tutorials.
03 - Android Video Tutorials
It’s a comprehensive series of video tutorials ranging from under 5 to 15 minutes in length. Similarly to the previous two tutorials, this series covers everything from absolute beginner level to advanced topics.

An Android Tutorial/Book

It might be old-school, but for me the best way to get a complete idea about something is by reading a book about it. In a book, everything is organized logically, pages are numbered and keep their layout and there is enough text to explain the and code/graphics. The first two tutorials in this list are book-like but if you want something more authentic you could print them. Even better, a pdf tutorial, like this one, is a much better option.
04 - PDF Tutorial
This is one more general tutorial that covers Android development from beginner level to advanced.

Game Development Series

If you have some knowledge about Android but you want to delve into games development, this series of video tutorials is a great start. The series starts with the very basics of Android (and Eclipse) but my personal feeling is that if you are a total stranger to Android, the journey will be too hard.
05 - Android Game Development Tutorial
From what I saw, the series mentions general Android as well, not only game development. If you don’t know Android basics, my advice is to first read some of the general Android tutorials and then move to specialized topics, such as game development.

Better User Interfaces with the Android Action Bar

After you have had enough of general Android tutorials, let’s move to tutorials for common tasks. For some of these topics you can find information in the general tutorials as well but if you want more detail, this is for you. The first tutorial is about how to build Better User Interfaces with the Android Action Bar.
06 - Action Bar
In this tutorial you will learn how to set up the action bar, how to add actions, how to split, hide, and overlay it, as well as how to add navigation. You will also learn about action bar interactivity, such as how to handle clicks on its items and to use action views.

Learning to Parse XML Data in Your Android App

While you could write Android applications that do not involve any data input, often you will need external data. In such cases you need to know how to handle this data. XML can help you a lot and this is why I’ve included a tutorial on how to Parse XML Data in Your Android App.
This tutorial leads you step by step in the world of XML parsing. It also helps you create a parser that will look like the one shown in the next screenshot.
07 - XML Parsing Tutorial
Some More Online Web Sites Are..
  1. www.javatpoint.com/android-tutorial
  2. developer.android.com/
  3. www.tutorialspoint.com/android/
  4. www.codelearn.org/android-tutorial
  5. www.vogella.com/tutorials/Android/article.html
  6. developer.android.com/ 
  7. www.tutorialspoint.com/android/
  8.  www.javatpoint.com/android-tutorial 
  9. www.codelearn.org/android-tutorial
  10.  www.vogella.com/tutorials/Android/article.html 
  11. www.raywenderlich.com/78574/android-tutorial-for-beginners-part-1
  12. www.coreservlets.com/android-tutorial/
  13.  www.mkyong.com/tutorials/android-tutorial/
  14.  www.sitepoint.com/12-android-tutorials-beginners/ programmerguru.com/android-tutorial/ www.edumobile.org/tutorials/android/
  15.  www.androidhive.info/

how to change android SDK and JDK in android studio

From Android Studio 1.0.1
Go to
  1. File -> project Structure into Project Structure
  2. Left -> SDK Location
  3. SDK location select Android SDK location (old version use Press +, add another sdk)



Configuring Gradle Builds

This section builds on the Build System Overview and Build and Running from Android Studio to show you how to use build variants based on product flavors and build types.

Build Configuration Basics


Android Studio projects contain a top-level build file and a build file for each module. The build files are called build.gradle, and they are plain text files that use Groovy syntax to configure the build with the elements provided by the Android plugin for Gradle. In most cases, you only need to edit the build files at the module level. For example, the build file for the app module in the BuildSystemExample project looks like this:
apply plugin: 'com.android.application'

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.0"

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile project(":lib")
    compile 'com.android.support:appcompat-v7:19.0.1'
    compile fileTree(dir: 'libs', include: ['*.jar'])




How To install Drawable Importer:


Drawable add
Import Drawables
To adapt to all Android screen sizes and densities, each Android project contains the drawable folder. Any developer with experience of Android development knows that to support all the screen sizes you must import different drawables for each screen type. The Android Drawable Importer makes this job easier. It reduces the effort needed to import scaled images into the Android project. Android Drawable Importer adds an option to import drawables in different resolutions or scale a specified image to a defined resolution. This plugin speeds up every developer's work with drawables.

To install Drawable Importer:

Install Drawable Importer

Android Drawable Importer For creating drawable for all screen resolution


Vendor: Marc Prengemann
License: LICENSE
This plugin consists of four main features. You can access them by a right-click anywhere, but not on a file, inside an Android module under New. 

1. AndroidIcons Drawable Import 
You are able to select the asset, specify your color, change the target resource name and select all the resolutions you want to import. 
All the missing folders will be created automatically. If there are already drawables with the same name, you will be warned. 

2. Material Icons Drawable Import 
This feature offers basically the same like the AndroidIcons import. You are able to select the asset by category, specify the color, change the target resource name and select all the resolutions you want to import. 

3. Scaled Drawable 
Select at least one asset and specify the resolution of it. If you want to scale the to be imported image as well, you should select "other" and then fill out the "target resolution" and the "target width / height". Then you can specify all the resolutions, to which the drawable should be resized to. 
This works also with 9-Patch-Images. But take care: sometimes it's necessary to remove / add about one "pixel" in the 9-Patch-Editor. But just try it :) 

4. Multisource-Drawable 
Ever got a zip with drawables for your Android project by your designer with the following structure? 

root/ 
./drawable_ldpi.png 
./drawable_mdpi.png 
./drawable_hdpi.png 
./drawable_xhdpi.png 

No problem! Now you can just select for every resolution a different asset, specify one name for them, and the rest is done by the plugin. 

Hint: When you select an asset, you can also just drag a file from your finder / explorer to the text field and drop it there.
Downloads: 23107
Rating:
Participated in rating: 3
VersionCompatible buildsDate
0.2.1123.7230.01.2015Download
3 updates are hidden show all updates
Screenshot #14925
Screenshot #14931
Screenshot #14926
Screenshot #14922
Screenshot #14930

Supporting Multiple Screens


To simplify the way that you design your user interfaces for multiple screens, Android divides the range of actual screen sizes and densities into:
  • A set of four generalized sizessmallnormallarge, and xlarge
    Note: Beginning with Android 3.2 (API level 13), these size groups are deprecated in favor of a new technique for managing screen sizes based on the available screen width. If you're developing for Android 3.2 and greater, see Declaring Tablet Layouts for Android 3.2 for more information.
  • A set of six generalized densities:
    • ldpi (low) ~120dpi
    • mdpi (medium) ~160dpi
    • hdpi (high) ~240dpi
    • xhdpi (extra-high) ~320dpi
    • xxhdpi (extra-extra-high) ~480dpi
    • xxxhdpi (extra-extra-extra-high) ~640dpi
To create alternative bitmap drawables for different densities, you should follow the 3:4:6:8:12:16 scaling ratiobetween the six generalized densities. For example, if you have a bitmap drawable that's 48x48 pixels for medium-density screens, all the different sizes should be:
  • 36x36 (0.75x) for low-density
  • 48x48 (1.0x baseline) for medium-density
  • 72x72 (1.5x) for high-density
  • 96x96 (2.0x) for extra-high-density
  • 180x180 (3.0x) for extra-extra-high-density
  • 192x192 (4.0x) for extra-extra-extra-high-density (launcher icon only; see note above)

How to import eclipse project in android studio

1.Update your Eclipse ADT Plugin (you must have version 22.0 or higher).
2.In Eclipse, select File > Export.
3.In the window that appears, open Android and select Generate Gradle build files.
4.Select the projects you want to export for Android Studio and click Finish.
Your selected projects remain in the same location but now contain a build.gradle file and are ready for Android Studio.
Import into Android Studio
1.In Android Studio, select File > Import Project.
2.Locate a project you exported from Eclipse, select the project's root directory and click OK.
3.Select Create project from existing sources and click Next.
4.Follow the walk-through to complete the import process.