Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Testing and securing android studio applications
  • Table Of Contents Toc
  • Feedback & Rating feedback
Testing and securing android studio applications

Testing and securing android studio applications

By : Cruz Zapata, Antonio Hernández Niñirola
4.6 (5)
close
close
Testing and securing android studio applications

Testing and securing android studio applications

4.6 (5)
By: Cruz Zapata, Antonio Hernández Niñirola

Overview of this book

If you are a developer with some Android knowledge, but you do not know how to test your applications using Android Studio, this book will guide you. It is recommended that you are familiar with Android Studio IDE.
Table of Contents (13 chapters)
close
close
12
Index

Login implementations


We will now see a small example on how to perform authentication using Android. The example we are going to see here uses the login and password combination technique. We are going to start with a very simple example and increase the functionalities as well as the complexities in every iteration.

First of all, we will define EditText and Button, shown as follows:

<EditText
   android:id="@+id/etUsername"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"/>
<EditText
   android:id="@+id/etPassword"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:inputType="textPassword"/> 
<Button
   android:id="@+id/bLogin"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:onClick="login"
   android:text="Login"/>

Now, we are going to check whether the combination of a username and password is good or not. To start, we will simply check whether both the username...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Testing and securing android studio applications
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon