C#/C Sharp – Delete file in a folder
Hi, Let’s see a simple example of deleting a file in a folder using c#. sampleFile.Create() will create the file in the specified folder. sampleFile.Delete() will delete the file in the specified folder.
Hi, Let’s see a simple example of deleting a file in a folder using c#. sampleFile.Create() will create the file in the specified folder. sampleFile.Delete() will delete the file in the specified folder.
Hi all, In today’s tutorial I will show you how to send an image to server using POST method in ANDROID. Uploading an image to server is a basic requirement in many of our application. Sending data to server which is using a PHP Script is already explained in this example . Now in this… Read More »
Hi, If you want to show the latest twitter update of yours in your blogger/blogspot, then use the following steps. 1. Go to your blogger ‘Design’ 2. Click ‘Add A Gadget’ 3. Add ‘HTML/JavaScript’ 4. Paste the following JavaScript code into it and save 5. Done! Note : Replace ‘SampleURL’ with your twitter id &… Read More »
Hi all……. In today’s tutorial I will show you how to get the incoming phone number inside your application. In many situation we may need this. For this we need to have BoradCastReceivers. Inside this class we create an object of the TelephonyManager class ang register with the sytem service.Now we have to make another… Read More »
Hi, How can you create a text file in C# and write to it? Sometimes you may need to create a text file using C sharp program. Here is how you can do that.
Hi, How can you identify the sprite associated with a particular body while using box2D ? Sometimes you may need to identify the sprite associated with the body you are using. For that use the following line of code. Now you got the corresponding sprite in your ‘yourSprite’
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… Read More »
Hi, See how a very simple exception handling works with try-catch methods using C#. Output- “You got the exception-> Attempted to divide by zero.”
For implementing a ListView, we first create a xml which contains a ListView named list.xml Next we create a Dialog Object and inflate the above xml and when the listItem is clicked then a Alert Dialog windows comes The java file is listed below The alert window look like this When the Item is selected… Read More »
This is a simple example that shows how many bytes are free in your SDCard. Inorder to run this example, you have to create an SDCard and start the emulator with the SDCard. Now create a fresh project and name it “FreeSpaceActivity.java” and copy the following code to it. The main.xml file AndroidManifest file Please… 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… Read More »
Hi, Sometimes you may need to find whether a particular year is leap year or not. But how can you find out whether a particular year is leap year or not in C# ? Use the following code. And the output is, Is the year 2011 a leap year ? = False
Hi, In order to access all the items of an array in C#, use the following lines of code. We are using foreach loop to access all the elements of an array in C#. It will print out, Spell: Apple Spell: Ball Spell: Cat
Hi, Want to see a simple example on how to search an array in c# ? See the following lines of code. Output-“Yahooo! Found it in Array!!!”
Hi, Want to know how to replace a string in C#? See the following code. Guess output? “Codings”
Hi, Want to know how to insert a string at a particular position in C# ? See the following code. It will print- “Coderz Codes Heaven”
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… Read More »
Hi, Sometimes you may need to find the distance between two CGPoint in cocos2D or box2D using Objective C. See the following code to see how you could do that.
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… Read More »
By adding a custom shape we can make the layout more attractive. For this we have to create a xml file and specify this in the main layout xml file First make a xml inside the drawable folder. Then in the main file specify this shape like this. The “category” is the name of the… Read More »
Hello all….. I have already covered this in another tutorial (click here for that post), but there I didn’t mention this method of simulating a call or SMS in android emulator. Let’s see how to do this… First start your emulator. Wait until it is Home. Then in Eclipse go to DDMS perspective. Look at… Read More »
Hi, How to take screenshot of your application in ANDROID Using Eclipse? It’s really simple … Go to your DDMS perspective On the left side in devices click the screen capture button.
Hi, Sometimes you may want to detect shake gesture in iPhone using your programs. But how can you detect shake gesture in iPhone? Shake gesture in iPhone can be detected by using the accelerometer. The following lines of code can be used for detecting the shake gesture in iPhone. You can use these lines of… Read More »
Hello everyone…… Of course for the above question there are other ways to do it. This is one simple method Start two emulators and call each other, but the problem is it will be time consuming and memory will be consumed. Another method 1. First start your emulator and make sure it’s running. 2. Then… Read More »