In this Kotlin code example we will learn how to create DatePicker in Kotlin programmatically. To break it in more details the code example below will cover: Create DatePicker in LinearLayout Initialize DatePicker with current date( Year, Month and Day) When user changes the DatePicker values, call OnDateChangeListener and get input from the DatePicker Set DatePicker values…
Read More Create DatePicker in Kotlin
In this tutorial on Firebase and Kotlin, we will learn how to use Firebase Authentication API to implement user Registration feature and store user data in Firebase and then allow user to login into our mobile app using their username and password. We will also use Firebase and Kotlin in this tutorial to implement Email…
Read More Firebase Authentication Example in Kotlin
In Kotlin you may skip and not use the findViewById( ) and still be able to refer to UI components defined in XML Layout file. There is another way. You will need to do a couple of things first: Edit your Module/ app level build.gradle file Import the data binding library into the Kotlin file (Don’t worry,…
Read More You may skip and not use the findViewById( ) in Kotlin
In this Kotlin code example we will learn how to create ImageView in Kotlin programmatically. The code example below will cover: Create ImageView in a ConstraintLayout Load picture from a resource and add it to the ImageView For this example to work and to actually load an image, you will need to add at least…
Read More Create ImageView in Kotlin
In this short code example below we will learn how to create ImageButton in Kotlin programmatically. A short code snippet in Kotlin below will cover: Create ImageView in a ConstraintLayout Load image from a resource Set onClickListener on ImageButton Change ImageButton image when the button is tapped For this example to work and to load an…
Read More Create ImageButton in Kotlin programmatically
With this set of step by step Swift video tutorials you will learn one of the most common must to have functionality for your mobile application: User registration, Sign in and Sign out. To break it a little bit in more details you will learn: Create user interface for Sign up, Sign in and protected page,…
Read More User Registration, Log in, Log out – Video Tutorials
In this tutorial, we will use Kotlin to make a simple Android mobile app that will be able to receive push notifications sent from Firebase. I used to call these kind of messages “push messages” but the correct term for this tutorials will probably be a Firebase Cloud Messaging or the FCM which also stands for Firebase Cloud Messaging. I…
Read More Push Notifications Example with Kotlin and Firebase
Heads up guys! Google has just launched a new certification program for mobile web developers. The complete name of certification exam is Mobile Web Specialist Certification and if you have been building mobile web apps then this is your chance to show off your skills and become Google Certified Mobile Web Specialist :). Those who…
Read More A new certification program from Google for mobile web developers
In this blog post I am going to share with you how to handle Exceptions in your RESTFul Web Service API and how to return expected JSON Payload message back to a mobile application if an error takes place in your Java code. For that I am going to use the exception @Provider annotation and…
Read More Exception Handling in a RESTful Web Service
In this blog post we will implement Token-base authentication and will learn how to use Access Token we have created in a previous blog post to communicate with Web Service endpoints which require user to be a registered user with our mobile application. If you have not followed the previous two blog posts then it…
Read More Token-based Authentication Example
It time to learn how to create a Web Service to authenticate user with their user name and password and how to issue a unique secure access token which our Mobile Application can use to send HTTP requests and communicate with protected web services of our API. For a free video tutorial on how to…
Read More RESTful Web Service to Authenticate User and Issue Access Token
In this blog post I am going to share with you a way to create a RESTful Web Service to: Create a new user profile, Generate and save in database a user secure user password rather than an actual password provided by user, Return back as a response a custom user profile object(JSON) with information that…
Read More RESTful Web Service to Save a New User in Database
Earlier I’ve published a blog post on now to create a RESTful Web Service(JAX-RS) to accept JSON payload with user profile details and how to save user profile details into a MySQL database using Java Hibernate framework. In this blog post I am going to share with you how to test(using JUnit and Mockito) it’s Service…
Read More Test RESTful Web Service with JUnit and Mockito
When building RESTful Web Services for your Mobile app with Java JAX-RS and Jersey you can use any Java Servlet container to deploy and run your final .WAR file. But if you use Jetty then there is a very quick way to build and run your application using Maven and jetty-maven-plugin. Below is a short…
Read More Add Jetty Maven Plugin to Your JAX-RS Project
Create RESTFul Web Services with JAX-RS and Jersey Most of the below code examples have been included in my video course: REST API with Java JAX-RS. Create and Deploy to Amazon Cloud. So you can learn how to build RESTful Web Service either by following the below tutorials or watch video lessons or even both! :). Create…
Read More RESTful Web Services