CoderzHeaven

You can read the First Article about Best Coding Practices in Android here. Re-Use Elements and Layouts Use for reusing layouts. You can read about this from here. Use Different resources for different density Screens. Properly organize your images in mdpi, hdpi,xhdpi etc folders for corresponding screens. This helps to prevent blurry images. Read more […]

Read More

Following conventions. Do not try to create a new convention for coding. Follow the standard convention. Like Class Naming. File Naming. Variable Naming. Code commenting. Code intending. Performing Background Jobs Use Asynctasks and Services for long running Tasks. While normal services run in main thread as the application, it should be used to run very […]

Read More

In an application we usually works with Data tasks – Data tasks are used for requesting data from a server, such as JSON data. These data are usually stored in memory and never touches the File System We can use NSURLSessionDataTask. Upload Tasks – Upload tasks are used to upload data to a remote destination. […]

Read More

The RecyclerView widget is a more advanced and flexible version of ListView. This widget is a container for displaying large data sets that can be scrolled very efficiently by maintaining a limited number of views. Use the RecyclerView widget when you have data collections whose elements change at runtime based on user action or network […]

Read More

Ripple Drawables. Touch feedback in material design provides an instantaneous visual confirmation at the point of contact when users interact with UI elements. The default touch feedback animations for buttons use the new RippleDrawable class, which transitions between different states with a ripple effect. We can either apply RippleDrawable in XML or using Drawable XML […]

Read More

In this Demo we will see Check compatibility of the device. Turn On/Off Bluetooth, Making it discoverable List Paired Devies. Check for Online Bluetooth Devices. Connect with a Device. Communicate between Connected Bluetooth Devices. Disconnect from Device. You can download the complete Android Studio Source code at the end of the post. Before We start […]

Read More

Here is a simple example for Streaming video in Android… Below is my layout that contains a VideoView and ProgressBar. Don’t forget to add internet permission in the Android Manifest. MainActivity Done.

Read More

Hi Friends, Here is a simple way to do background task in iOS using “BackgroundFetch”. We will just try to send a message to the UI when a new data arrives in the background. You can do anything there you want. To enable “BackgroundFetch” in your app, you have to do some modifications in your […]

Read More

This is actually fairly simple… 1. Create a new Swift file and name it say “MyConstants.swift”. 2. Declare your constants like below.. 3. Now you can directly use “NOTIFICATION_ID” in any class, Swift will directly import it for you. Thats all….

Read More

LocalBroadcastManager is Helper to register for and send broadcasts of Intents to local objects within your process. This is has a number of advantages over sending global broadcasts with sendBroadcast(Intent): You know that the data you are broadcasting won’t leave your app, so don’t need to worry about leaking private data. It is not possible […]

Read More

Blogroll