Image Loading and caching had been a little bit pain in react native. In-fact react native didn’t had native support for caching. But after the recent release, there is now support for caching in iOS only. Still not for Android. You can read more about this from here https://facebook.github.io/react-native/docs/images.html#cache-control-ios-only Now these are the variety of options available. default:… Read More »
We can send data between two individual applications in Android if the receiving application is configured to received that type of data. For example if an application is to receive Image data then it’s manifest should contain the ImageFilter as Shown below For example ac activity in the receiving application is named “Receiver” then its entry in the… Read More »
I have already shown another example of creating custom spinner in android in this post. That was by extending the ArrayAdapter class, Now it’s using the baseAdapter class. You all knew that a spinner or combobox is an inbuilt widget in android. And Like any other widgets spinners are also customizable. Here is a simple example to customize… Read More »
This is a sample program that launches the camera and crop the captured image. Check this link to another crop image example. http://www.coderzheaven.com/2011/03/15/crop-an-image-in-android/ This is the layout xml. activity_main.xml Now this is the Main Java File that implements the crop functionality. Here we are using the “com.android.camera.action.CROP” Intent to crop the Image passing the captured Image URI to… Read More »
Actually this is really simple. I have already posted an example for how to download a file in this post. How to Download an image in ANDROID programatically? This is another one little different with a progressbar included. Previously I have shown three other methods to upload files to a server. Check these posts to refer this. 1.… Read More »
Hello……… Sometimes you may want your body to act against the gravity of the world. One method to do this is described below. First what you have to do is to make a body in the shape of a circle and give it the image of a balloon as the userdata. Then in the tick function write this… Read More »
Hello everyone…… Windows Phone 7 with it’s simplicity has become really easy to study and code. In today’s tutorial I will show you how to set an image in an image control in windows phone 7. Assuming you have place the image control in the xaml file. I will first show you how to set the image source… Read More »
Hello all……….. Android has been absoultely wonderful for customizing widgets. I have shown a lot of example to customize ListViews, spinners etc. Today I will show you how to customize gridviews. Using this method you can actually place anything inside a gridview even a webview also. So here we start. We customize a gridview by creating an adapter… Read More »
Downloading an image in corona is really easy. Check out the example. Check the console to see where the downloaded file is saved. Download the complete source code from here.
Here is a simple function to change the opacity of a view in android. Opacity is called alpha in android. so setAlpha(int) will do the job. The integer value may range from 0-255.
Hi, For adding a label/text to an image in Corona, using Lua, use the following code, 🙂
A series of frames is drawn one after the other at regular intervals. For this create a xml which contains ImageView for showing the animation The main java file is Next the main part, an xml which holds each image and duration in which each image shows. The xml should be placed inside drawable folder When i click… Read More »
When you are working on an Android application that stores data in a SQLite database.There arise many questions like where does this database file get stored on the filesystem ? How can we access the database? I will give solution to all these problems. I created the SQLite database from my previous post about Using SQLite in ANDROID… Read More »
Hello ANDROID Lovers…….. In today’s tutorial I will show you how to deal with SQLite Databases in ANDROID. You know that SQLite are Lightweight databases which is maintained only on the client side. They don’t need a server. The SQLite databases are simply a file wrapped around with some stuff which helps us deal with them like a… Read More »
Hi, In most situations we have to use progress bar dialogs, Alert View Dialogs and Our own custom Dialogues in our applications. In most situations the built in dialogs may be enough but in certain other situations we have to build our own dialogs for better user experience. But still there is problem people don’t know how to… Read More »
Following example shows how to set a Bitmap as wallpaper in ANDROID. After running this code your wallpaper on the ANDROID phone will change. Make sure that you have an image named ‘my_wallpaper’ in your drawable folder. And You have to set this permission in the Manifest.