Google+

Android4Beginners.com

Apps development for Android step by step
Welcome to Android4Beginners.com! Start developing apps for smartphones and tablets thanks to our step by step tutorials with examples!
Below you will find recent lessons. You could also check list of all Android lessons available as well as alphabetic index of Android java keywords and XML tags.
Problems with Android Studio after upgrade? Read Google troubleshooting. There you will find how to deal with error: Gradle 'basic' project refresh failed.

Appendix C: Everything about sizes and dimensions in Android

Designing Android app you have to be aware of enormous variety of devices. They have different physical sizes (from small phones to large tablets), different screen sizes (diagonal from 3 inches or less to above 5 inches), different screen resolutions (from 320×480 pixels to Full HD – 1920×1080 – or more) and different screen densities – number of pixels per inch (from 120 dpi to 480 dpi). And there is also screen orientation (landscape or portrait) to take into account.

Read More

Lesson 1.5: How to color part of the text and use alpha channel in TextView?

Let’s say that we want to have every word presented in TextView in different color. Any of solutions from previous lesson doesn’t address this issue, but we know how to do it. And there is one more thing related to colors – so called alpha channel that’s responsible for transparency.

Read More

Lesson 1.4: How to change a color of text and background in TextView?

From the previous lesson we know how to display a text on Android device’s screens both using XML layout files and Java code. Now it’s time to format that text. We start with font and background colors, but beside a standard text color there are also other options, like links, highlight and hint colors. Moreover we would check current colors.

Read More

Lesson 1.3: How to modify TextView in Java code (findViewById, setText and getText methods)

We have already presented some text on the screen using layout XML file. This is recommended approach, but if we want to modify that text we have to use Java.

Read More

Lesson 0.12: Java basics – more about methods & variables (access modifiers public or private, getters and setters)

In this lesson we are going to understand what happens, if there are a few variables with the same name. And what does it mean that some variables or methods are public and others private? We would also learn how to easily add so called getters and setters.  Read More