How to disable orientation change in Android?

Some of the application that if you want to disable orientation in android, then try some of the tricks, which is not 100% working all level of API.In Stackoverflow, Intrications   give most reliable and useful answers, Add android:configChanges="keyboardHidden|orientation" to your AndroidManifest.xml. This tells the system what configuration changes you are going to...

How to create Transparent Activity in Android?

You have to add the following style In your res/values/styles.xml file (if you don’t have one, create it.) Here’s a  gnobal code from stackoverflow.<?xml version="1.0" encoding="utf-8"?><resources> <style name="Theme.Transparent" parent="android:Theme"> <item name="android:windowIsTranslucent">true</item> <item name="android:windowBackground">@android:color/transparent</item>...

Problem: Android : CalledFromWrongThreadException;: Only the original thread that created a view hierarchy can touch its views

Avoid performing long-running operations (such as network I/O) directly in the UI thread — the main thread of an application where the UI is run — or your application may be blocked and become unresponsive. Here is a brief summary of the recommended approach for handling expensive operations:Create a Handler object in your UI threadSpawn off worker threads to perform any required expensive operationsPost...

How to lazy load of images in ListView or LazyList?

Lazy List is lazy loading of images from sd-card or from server using urls. It is like on demand loading images.Images can be cached to local sd-card or phone memory. Url is considered the key. If the key is present in sd-card, display images from sd-card else display image by downloading from...