Below is a simple function to implement this.
Hello everyone, Check out the popular posts from Coderzheaven.com Uploading and Downloading of files – Popular and Useful posts from CoderzHeaven In one of the previous posts I have shown one method to upload an image in android. Here is another method to upload a media file like images,audio or video in android. Here is the main java… Read More »
Hi all… In this tutorial I will show you how to add links in a menu in Adobe AIR/ FLEX. It is really simple. Just add a normal menu item and on the click handler for menu items match the label and navigate to the URL, that’s all. Check out this example. Change the mx:Application to mx:windowedApplication to… Read More »
Many of our application reqiures sending data from one intent to another. This is done by putting data into one intent using putExtras() and getting it in the other intent using the getExtras() which matches the string value. However you can pass string, boolean, integer etc between intents. For passing data between intents you need atleast two intents.… Read More »
Hi all…. We all need to know which key is pressed in an application up on which we may need to take an action. For example if the user presses “Ctrl + s” we know he want to save. So for that we need to listen to keyBoard events. For this we use the keyBoard event Listener. First… Read More »
The following code helps you to invoke a phone call in ANDROID without any user interaction. This code uses intent to start the activity. You know that intent can be used to start another acitivty from with in an application. Dialing a number is done using this code… and Calling number using
Hello everyone… Today we will see how to customize an indeterminate progressBar in android. For that we have to create an xml with a progress animation.For this I used these three images Inside the folder res/drawable create an xml named “progress_indeterminate_horizontal.xml” and copy this code into it Now the layout file containing the progressBar.I named it main.xml See… Read More »
Hi, For removing the forces applied to your Box2D bodies, use the following line of code. Here ‘yourWorld’ is the your box2D world. 🙂
Hi all…. Today in this post I will show you how to give a custom layout for the titleBar in ANDROID. You can place almost anything inside a title using your custom layout. Now go on and create a fresh project and copy this code into the main java file Now create a new xml file and name… Read More »
This is a sample code snippet that adds a Bitmap as Source of an image in windows phone 7. Assuming you have placed an image in the UI and named it image1.
This sample code comes handy when you have to check that an application is already installed in your ANDROID Phone. Call the below function appInstalledOrNot() with the package name of the app installed on the ANDROID Device as a string parameter. This function returns true if the app is installed otherwise returns false.
Hi, Use the following simple lines of code to check whether a particular file exists or not using C#/C Sharp. It will return either True or False depending on whether your file exists or not. 🙂
You can prevent that tray from appearing while your application is running (and in effect, get access to the entire screen) by changing an attribute in the root element of your xaml page from: to
Hello Friends…. Today I am going to talk about how to use ndk in android to run c code. Note : These steps are for Mac and Linux Users not for Windows users. Follow these step exactly to set up and run ndk in android. 1. I think that you are having your eclipse and android uptodate. 2.… Read More »
Concating one string to another in C# is just like java. ie. just by adding using “+” sign.
This simple code snippet checks whether SDCARD is mounted in an android device or not.
For creating Custom ListView First create a new project named “Lists” and the language is “C#” here. Now open the “MainPage.xaml” and copy this code. Now we have to create another xaml for each custom row in the List. For that right click on the project folder in the solution explorer. Please check the screenshot, then select Add->New… 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 »
Open a webbrowser in very simple in Windows phone 7
Hello everyone… This is my first post on windows phone. I have just started windows mobile programming. In this post I will show you how to go from one Page to another in windows. First I am creating a C# project and in the MainPage.xaml Open the phone interface and then drag a button into it. Double click… Read More »
Hello all…… Someone has been asking me how to play a video in android in fullscreen. Then I made some surfing in the internet and found a solution. You can check out how to play a video in android here and to check whether the video has completed playing here. The only change was to do in the… Read More »
Hello…….. This post is just a simple demonstration to show a way to store a checkbox value in a database and reload it. Here I am storing only a value of a single checkbox and reloading it. But you can make changes in the code to save the id and value of the checkbox in the database and… Read More »
Apple Inc. (AAPL) got a partner to sell the iPhone in the world’s biggest mobile-phone market, China. The may be too late to catch Samsung with a market share that’s three times larger and growing. Samsung controlled 24.3 percent of the market for phones in China. “I don’t expect Apple to replace Samsung any time soon,” Gartner analyst… Read More »
Hello everyone… I have shown in my previous tutorials on how to create notification in android and cancel it. This is the post showing this . Now today I am going to show how to send data when you click on the notification message. Here I am creating two activities. One the main activity that creates the notification… Read More »