Search results for: Java

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 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 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

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

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