Android Studio Essentials

Android Studio Essentials is my third book that has been recently published by Packt Publishing here. You can get it also from Amazon here. This book is an update of my previous book “Android Studio Application Development”.

Android Studio Essentials coverAndroid Studio Essentials back

Android Studio is an IDE that is based on the JetBrains IntelliJ IDEA. It gives developers a unique platform to develop and debug Android apps using various developer tools. It has a wide array of features such as live layout facility, Gradle build support, and template-based wizards, which makes it a preferred choice for developers.

Starting off with the basic installation and configuration of Android Studio, this book aids you in building a new project by helping you to create a custom launcher icon and guiding you to choose your activity. You then gain an insight on the additional tools provided in Android Studio, namely the Software Development Kit (SDK) Manager, Android Virtual Device (AVD) Manager, and Javadoc.

Finally, it helps you to familiarize yourself with the Help section in Android Studio that enables you to search for the help you might require in different scenarios.

Read More

Giveaway Winners: Free copy of new book on Android Studio

The giveaway that was published here has ended. The winners were generated automatically and they will be contacted to let them know about it.

Winners:
Angel (entry #53)
Paul (entry #106)
Victor (entry #41)

I used an external tool, PromoSimple (promosimple.com) to register the entrants and their number of entries. The following screenshot shows the Manage Winners page in which you can generate a winner for each prize.

Manage winners

To generate a random number, you can use the external site of Random.org or the PromoSimple generator.

Generate winners randomly

Thanks to everyone who participated and shared it!

You can still buy it at several sites:

Testing and Securing Android Studio Applications cover

Read More

Win Free copy of new book on Android Studio

Readers would be pleased to know that I have teamed up with Packt Publishing  to organize a Giveaway of my book “Testing and Securing Android Studio Applications

Three lucky winners stand a chance to win e-copy of the book. Keep reading to find out how you can be one of the Lucky Ones.

Testing and Securing Android Studio Applications cover

Overview

  • Explore the foundations of security and learn how to apply these measures to create secure applications using Android Studio
  • Create effective test cases, unit tests, and functional tests to ensure your Android applications function correctly
  • Optimize the performance of your app by debugging and using high-quality code

How to Enter?

All you need to do is write your e-mail and name below. It’s that simple. Winners will be contacted by email, so be sure to use your real email address when you comment!

In the second step, you can get extra entries if:

  • You head on over to the book page (Testing and Securing Android Studio Applications) and look through the product description of the book and drop a line via the comments after sending your email, to let us know what interests you the most about this book.
  • You tweet about this giveaway.
  • You follow me on twitter.

Winners will get an e-copy of the Book.

Read More

Testing and Securing Android Studio Applications

Testing and Securing Android Studio Applications is my second book that has been recently published by Packt Publishing here. You can get it also from Amazon here.

Testing and Securing Android Studio Applications coverTesting and Securing Android Studio Applications cover

Today, mobile applications are increasingly being used to access the Web. Mobile developers play a key role in how consumers access the Web with millions of people depending on them to create secure and functional applications. This book, beginning with the fundamentals of Android security, will guide you through the process of creating a secure and debugged application. We will look at the Android Studio development environment and take you through the steps needed to protect your local data and secure your network communications.

Initially covering the threats, risks, and vulnerabilities in software and in the Android environment, this book will then dig deeper, exploring different types of authentication methods that can be adopted in your Android application. You will be introduced to techniques and classes to test your application, before finally learning about supporting tools that will help you to improve your application.

By the end of this book, your Android application will be debugged and secure and you will be able to apply what you’ve learned to further application projects.

Read More

Test project setup in Android Studio – Updated

Android Studio IDE is gradually improving. One of these improvements is the management of tests cases in the Android projects. In this old post: Test project setup in Android Studio, I explained how to prepare your Android project to run test cases.
In the last versions of Android Studio, v0.8 and above, this process has been simplified. When a new project is created, a test package is automatically added. Tests will be saved in this package under the folder: /src/androidTest/java/<your_package>. Notice that the classes under test and the test classes are in the same package.
The project structure now looks like:
Project structure
Add your test classes in the test folder. To execute them, click on the package using the right mouse button and select the Run ‘Tests in <your_package>’ command. You can also run only one test class if you directly select it instead of the whole package.
Run Tests

Read More

Test project setup in Android Studio

Android Studio supports testing for activities natively. Let’s see how you can set up your test environment:

  1. Open Android Studio and the Android project under test. You can create a blank project with a main activity and layout.
  2. Create the package where the tests will be saved. You can create the test package in the source folder: /src/main/java/<your_package>.tests.
  3. Create the running configuration for testing. Open the top menu Run and execute the Edit Configurations option. On the left side of the window, the list of running configurations is shown. You should at least have the running configuration for your Android Application. Click on the add button and select the Android Tests type:
    Android Tests Configuration
  4. Configure the package for testing. Select the recently created running configuration so you can edit it on the right side of the window. Do the following modifications:
    1. Write a name, for example My Tests.
    2. Select your app in the Module list.
    3. Check the All in package option to establish the whole package for testing.
    4. Select your test package in the Package input text.
    5. Check the Show chooser dialog option so later you can select the emulator or a real device connected via USB. If you prefer using always the USB device, change this option, as you like.
    6. Click on the OK button to save the changes and close the window.

    Test configuration

  5. Verify that the running configuration is available in the toolbar of Android Studio as is shown in the following screenshot.
    Configuration check

Read More

Giveaway Winners: Free copy of my book on Android Studio

The giveaway that was published here, has ended. The winners were generated automatically and I’ve already contact them to let them know about it.

Winners:
Sergio (entry #71)
Paul (entry #62)
Saravanan (entry #113)

I used an external tool, PromoSimple (promosimple.com) to register the entrants and their number of entries. The following screenshot shows the Manage Winners page in which you can generate a winner for each prize.

Manage winners

To generate a random number, you can use the external site of Random.org or the PromoSimple generator.

Generate winners randomly

Thanks to everyone who participated and shared it!

You can still buy it at several sites:

Android Studio Application Development

Read More

Win Free copy of my book on Android Studio

Readers would be pleased to know that I have teamed up with Packt Publishing  to organize a Giveaway of the Android Studio Application Development book.

And three lucky winners stand a chance to win ecopy of their new book. Keep reading to find out how you can be one of the Lucky Winners.

Overview

Android Studio Application Development

  • Install Android Studio and configure the Android Software Development Kit
  • Create your first project and explore its structure
  • Improve your productivity while programming, by getting the best from the code editor
  • Design the user interface and learn how to handle user events
  • Integrate the Google Play Services into your app
  • Test your app using the emulator and learn how to manage the virtual devices
  • Run and debug your app
  • Monitor your app whilst it is running and improve its performance
  • Build your app for release

How to Enter?

All you need to do is write your e-mail and name below. It’s that simple. Winners will be contacted by email, so be sure to use your real email address when you comment!

In the second step, you can get extra entries if:

  • You head on over to the book page (Android Studio Application Development) and look through the product description of the book and drop a line via the comments after sending your email, to let us know what interests you the most about this book.
  • You tweet about this giveaway.
  • You follow me on twitter.

Winners from the U.S. and Europe can either choose a physical copy of the book or the eBook. Users from other locales are limited to the eBook only.

Read More

Android Studio Application Development

Android Studio Application Development is the book I’ve been working on during this last summer. Last week was published by Packt Publishing. It is available at several sites:

Book coverBook backside

Mobile apps have become extremely popular over the last few years and offer a great opportunity for developers. Android is now one of the most popular mobile systems in the world. The new Android Studio IDE has introduced a specialized development environment, welcomed by the emerging Android community, which is perfect for the development of apps.
“Android Studio Application Development” is a practical guide that will show you how to develop and build Android apps using this new, integrated development environment. Following a tutorial approach, this book will progress from the basics features up until the steps to build for release, using real world examples. This book is a must have for every Android app developer evangelist.

Our book explores the Android Studio development environment in-depth, taking you through the necessary steps to create an app, test it, and prepare it for release. First, you will learn how to use the code editor in order to increase your productivity, and to easily create the screens of your app. Then, this book will show you how to debug your app and examine its performance using the most important additional tools within Android Studio: Android SDK tools. We will also take a look at the existing Google Play Services and how they can be integrated into your app.

Finally, it is important for a developer to be able to search for any help they might need. This book provides a vast help section which covers online documentation, updates, and FAQs.

Sample Chapter

You can download a sample chapter here.

Read More

First look at Android Studio

Android Studio is a new Android development environment based on IntelliJ IDEA. Similar to Eclipse with the ADT Plugin, Android Studio provides integrated Android developer tools for development and debugging. You can download Android Studio and find all the information here.

Loading Android Studio…

Android Studio loading

The first window is the quick start one.
Android Studio Quick Start
After creating a new project, now we can see the development environment. Although the look&feel is different from Eclipse, the features are very similar. There are some new menu options such as “Analyze”, “Build” or “Tools”.

Android Studio menu

In the build menu we can directly generate the signed APK.

Android Studio build menu

In the tools menu as well as in the toolbar, we find the Android tools such as the AVD and SDK managers.

Android Studio tools menu

And finally the project structure changes too. The resources and the manifest file are now inside de “src” directory.
Android Studio project structure
From now on we expect new features and plug-ins.

Read More