Java Mobile

An Introduction to Dynamic Language Support in JVM

JVM has been extended to support modern dynamic languages, also called scripting languages, since version 6. The release of Java 8 gave more impetus on this frontier. The necessity of this support is felt because Java as a language is inherently statically typed. Everything is decided at the compile time. The behavior of the dynamic language, on the other hand, is defined at runtime....

Getting Started with Android Things Development

The Internet of Things (IoT for short) is a phrase used to describe the connecting of electronic devices over the Internet that participate together on a system. In many cases, people also need to communicate with devices via their smartphones, tablets, and even watches. That's where Android Things comes in. Launched by Google on 13 December 2016, Android Things is an Android-based OS for...

Android Studio Tutorial: An Introduction

Android is one of the most popular mobile device platforms. The Android platform allows developers to write managed code using Java (http://www.developer.com/java) to manage and control the Android device. Android Studio is a popular IDE developed by Google for developing applications that are targeted at the Android platform. Note that Android Studio has replaced Eclipse as the IDE of choice for developing Android applications....

Writing Mobile Java Applications with the Android SDK

The Android operating system is open source and its source code was released under the Apache license. It is an operating system designed and built for mobile devices by Google. Built upon the Linux kernel, the design goals of the Android platform include: platform neutrality, open source, flexibility, and rapid development. Android is the most popular mobile operating system in the world. Note that...

How to Use Images in Java

abstract boolean drawImage(Image img, int x, int y, ImageObserver observer) Draws as much of the specified image as is currently available. abstract boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) Draws as much of the specified image as has already been scaled to fit inside the specified rectangle. abstract boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) Draws as much...

Working with Embedded Databases in Java

An embedded database means that the database is integrated as an inseparable part of an application software. A Java application, in particular, accesses the database using a JDBC driver. The database engine runs as a cohort inside the same JVM while the application is running. The storage acts like any library extension, similar to a jar file attached to the Java application. The end...

Android Data Binding Tutorial

Introduction Most applications typically work with data. Until recently, Android developers had to write a lot of code because of no first-class platform support for data binding. Developers need to get the data for a database or user input and then assign values to the elements that present it to the user in the UI. This made Android data binding a pretty laborious, non-intellectual exercise for...

Working with Android View Animation in Apps

Introduction Do you want to build transition effects in your application? If yes, read on. Android has first class support for animation that developers can leverage in their applications. Basics Animations in Android come in two flavors: view animation and property animation. View Animation can be applied on a single view only and, at the end of the animation, the effects are lost. Property animation, on the...

How Java is Used in Android App Development

Java is the technology of choice for building applications using managed code that can execute on mobile devices. Android is an open source software platform and Linux-based operating system for mobile devices. The Android platform allows developers to write managed code using Java to manage and control the Android device. Android applications can be developed by using the Java programming language and the Android SDK....

Using the Basic UI Controls in Android: Buttons, Texts, Checkboxes, Radio Buttons, Toggle Buttons, and Spinners (Building a Simple Android Application Demo)

Introduction To help provide a great user experience, Android provides ready-made dialogs to choose date or time. These dialogs are called pickers and allow users to choose each part of the date, hiding away the complexities associates with time zone and user locale. Picker Basics The time picker allows the user to choose the hour, minute, and whether it is AM or PM. The date picker allows...

Latest Articles