Android Tutorial

Responsive Mobile Ready WebPage Using ViewPort Meta Tag Example

When you create an Html web page, of course, you want it to be viewable and user-friendly on all screen-sized devices include the mobile device, PC, and tablets. But before the viewport meta tag is introduced in Html, the mobile devices can not display the web page as well as desktop. This article will introduce …

Responsive Mobile Ready WebPage Using ViewPort Meta Tag Example Read More »

How To Connect To A Http Server Running In Android Emulator From PC Vice Versa

Sometimes you need to connect to the local webserver running on your PC from the android emulator. And sometimes you need to use a PC web browser to browse web pages stored in a web server running in an android emulator. These two scenarios are common use cases when you develop android applications. This article …

How To Connect To A Http Server Running In Android Emulator From PC Vice Versa Read More »

How To Display Html Text In TextView And WebView

This example will tell you how to display Html text in the android.widget.TextView and android.webkit.WebView object. 1. Display Html Data In Android TextView And WebView Example. If you can not watch the above video, you can see it on the youtube URL https://youtu.be/gUisxpEm908. There are three buttons on the screen in this example. When you …

How To Display Html Text In TextView And WebView Read More »

Android Absolute Layout Example

Android AbsoluteLayout is used to layout UI components with absolute x, y-axis coordinate values. For example, if you put a button widget in AbsoluteLayout, you can set the button’s layout_x, and layout_y property value to place the button in a specific location. This example will show you how to use it.

Android Floating Action Button, Snackbar, List View Example

This example will tell you how to open a popup alert dialog when the user clicks a floating action button, and after the user inputs the user name in the dialog, it will save the user name in the list view on the main screen. If the user name exists, it will popup a message …

Android Floating Action Button, Snackbar, List View Example Read More »

Android Studio Rebuild DexArchiveMergerException Unable To Merge Dex

When you build an android project in android studio, you may encounter DexArchiveMergerException unable to merge dex exception. The detailed error message is as below. Error:Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’. > java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex If you still can not fix this error after struggle for taking some actions such as clean the …

Android Studio Rebuild DexArchiveMergerException Unable To Merge Dex Read More »