How to create Image Reflection in Android?
This simple Activity creates a reflection of the provided image. Download the complete source code for above example from here.
This simple Activity creates a reflection of the provided image. Download the complete source code for above example from here.
Hello all… Today I will show you how to get notified when a video completes playing in android. PLease check this post for playing a video and the resources. First create a folder named “raw” inside the “res” folder and copy a video inside it. Now copy the xml from this link. For listening to… Read More »
Hello everyone…. In today’s tutorial I will show how to start with a HelloWorld Application in PhoneGap for ANDROID. So what is PhoneGap PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores. Follow these steps exactly to build the helloworld… Read More »
Hello everyone Today I will explain how will you call a function that is defined inside the java android code from a webview. For this we need to add a webviewclient in android for the WebView we are adding in the xml. Then we have to register the webviewclient with the WebView we are creating… Read More »
Hello all… I have shown a lot of examples of animations in android. Today I will show you how to show an image transition animation between two images. For that you have to create an xml named “expand_collapse.xml” inside the res/drawable folder. The contents of “expand_collapse.xml” are Now in the main.xml place an imageView to… Read More »
Hello everyone, Today’s example shows how to create a custom layout for your camera preview, that is if you want a custom layout while your camera is opening. This example helps you to achieve this. First create a fresh project and name it CameraCustomLayout and copy this code to CameraCustomLayout.java file. After that create an… Read More »
In this post I will show you how to install an apk on to the emulator or the device through the shell or command prompt. Before experimenting with this post I assume that you have these done 1. Installed the Android SDK. 2. Added the adb path to the environment path. This is how you… Read More »
Hello all, Often we need to show data from a source such as a database in a tableView like we see in an HTML Page. In Android also we can do this with the help of TableLayout. We can create dynamic rows and add data to it. MainActivity Layout Below is the layout that actually… Read More »
In the previous example I showed how to parse an xml that is stored in a file in res/xml folder. In this post I will show you how to parse an xml that is stored in a server in an xml file. Here I am using an xml that is stored in here Here is… Read More »
Android 4.0 is here and it is completely different from its predecessors. The rate at which android is growing is unbeleivable. Students earning computer forensics degrees need to be aware of all different systems, so they should learn about these features. These are some of the features. 1. Refined, evolved UI 2. Home screen folders… Read More »
This is a simple example showing how to parse an xml in Androi. In this method the xml file is stored in res/xml folder. First create a folder named “xml” inside the raw folder. Then create an xml file named test.xml and copy the contents into it. This is the XML file we are going… Read More »
Hello everyone, I have already showed you how to use a SlidingViewer to create a slidingWindow. Today I will show another way to create such a window with the help of animation. Please check one of my previous posts to do this in another way. How to show a sliding window from below in Android?… Read More »
In the last few posts I have showed some examples of how to work with Google maps. In this post I will show you how to add a marker in our desired position in the map. Adding something on top of a map is called overlay. Here we will create a class to add an… Read More »
In the previous post I showed you how to start with google Maps and changing the views and changing the zooming of maps. Today I will show how to show our desired location in the Map. For that we need the latitude and longitude of the location we want to show the location on the… Read More »
Hello all……… In the previous post I showed you how to start with Google maps in android. In this post I will show you how to show zooming controls and changing the view of the map. Actually this is really simple. Add these lines to the previous code to add the zooming controls. Now how… Read More »
Hello everyone, in this tutorial I will show you how to start with Google Maps in android. Follow these steps while connecting to Google Maps in android. Create a project with “Google APIs” as the Base SDK. First, if you are testing the application on the Android emulator, locate the SDK debug certificate located in… Read More »
Hello all, Today I will show you a demo on how to use Asynchronous task in android. You should use this if you are doing a task that takes longer time to complete. This class doesnot block the UI thread so the “Application Not Responding” dialog will not appear when you are doing a big… Read More »
Hello everyone In today’s tutorial I will show you how to filter a ListView based on an input from the EditText. This is really simple we just need to call getFilter().filter(search_string) on the adapter to filter the values from the ListViews. Just take a look at this example. Here is the layout file main.xml Here… Read More »
Here are some of the string functions that are most commonly used in Corona SDK. In this example you can find all the common string functions with a wroking example for each. This example contains functions to 1. Check the first character in a string 2. Check the last character in a string. 3. Changing… Read More »
Here are the different ways to trim a string in Corona SDK. Please check the console for the output. Download the source code from here
This is a sample tutorial for creating custom tabs that look like android tabs may be beautiful than that with buttons and styles. Here is the sample code for that. This is the layout for the tabs The main.xml file that includes the tab layout. Note : Please include the resources as needed. Please leave… Read More »
Sliding-Drawer in a nice and useful widget in android. Please check one of my previous posts to do this in another way. How to show a sliding window from below in Android? Check this new One using Navigation Drawer About Sliding drawer SlidingDrawer hides content out of the screen and allows the user to drag… Read More »
math.modf is used to get the integral and fractional part of a given number in corona. Return the integral and fractional parts of the given number.
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.
Here is the sample code to get the number of taps on a view in Corona SDK. here button is a displayObject like an image or a UI Button and event.numTaps gives the number of Taps on that view.