Category Archives: Files

How to copy a file to another saved in SDCARD in Android?

Hello all… This tutorial explains how to copy a file contents to another in Android. The file to copy is saved in SDCARD, however you can change the path to save it in your application sandbox. if you want to save it in your sandbox, change the path to /data/data/your_packagename/your_file.extension Now we will see the… Read More »

How to store an Image from Android to a SQlite and retrieve it?

Hello all… In today’s post I will show you how to store an image in an SQLite database and retrieve it. If you want to see the SQLite DB Structure and values in Eclipse you can check this post… http://www.coderzheaven.com/2011/04/18/sqlitemanager-plugin-for-eclipse/ This is the layout for the MainActivity. Now the code for the Activity. MainActivity.java Please… Read More »

How to find your Google Plus ID

This is so simple 1. Go to your Google + account (https://plus.google.com/). 2. Click on the Profile icon on the Left. 3. If you look at the URL in the address bar, it should look something like this: https://plus.google.com/104653270154306099169/posts 4. The long numerical string in the URL is your Google+ ID. Here is CoderzHeaven’s from… Read More »

How to read and write files to SDCARD and application SandBox in Android – A complete example?

Here is a complete example of How to read and write files to SDCARD and application SandBox in Android. First create a new project and inside the mainActivity paste this code. Now create another class named MyFile.java and copy this code into it. Now the layout for the xml file. Note you should give this… Read More »