By Oleg Mazurashu,on January 13th,2010% It is very easy to work with SDCard in Android. Here we are working with File objects as with standard Java I/O operations. In this article I am going to show how to read,write,create files and how to create a folder in SDCard. . . . →Read More:Working with SDCard’s filesystem in Android By Oleg Mazurashu,on December 14th,2009% In Android application you can use /res/xml XML files. These files are different than other Android resources. They are different from raw files,you don’t use a stream to access them because they are compiled into an efficient binary form when deployed,and they are different from other resources and they can be of any . . . →Read More:Using XML file resources in Android By Oleg Mazurashu,on November 27th,2009% Why need such type of resources,we can get data from /assets,/res folders and now I am going to show /res/raw folder. It is simple,raw resources are not compiled by the platform,they available as raw files and these files can refer to any type of files. When you need to include raw . . . →Read More:Using files as raw resources in Android By Oleg Mazurashu,on November 26th,2009% You can use Android’s filesystem the same as you use it in your life. Creating,editing,deleting,reading and etc. I want to remember that filesystem is based on Linux. Android allows to use full advantages of java.io package when you are working with it without limitations. . . . →Read More:Using filesystem in Android By Oleg Mazurashu,on November 25th,2009% As I wrote in previous post,where I described how to use preferences system,SharedPreferences object can be created and opened with Context mode constants. These constants allows to define who has access to what preference. Also it is not a secret that data contains in xml file. As I said constants allows to define . . . →Read More:Getting SharedPreferences from other application in Android By Oleg Mazurashu,on November 19th,2009% Android has a mechanism which called preferences system for saving simple key-value pairs of primitive data types within applications. This mechanism works through SharedPreferences object. Preferences system stores data in xml file. If this file doesn’t exists Android will create automatically one. Preferences can be private or be accessible to other application. You can use it for storing some global . . . →Read More:Using SharedPreferences in Android By Oleg Mazurashu,on November 17th,2009% Android offers one more directory where you can keep files which also will be included in package. This directory called /assets. The difference between /res and /assets is that Android doesn’t generate IDs for assets content. You need to specify relative path and name for files inside /assets. . . . →Read More:Using assets in Android | A sample text widgetEtiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa. Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna. | "If people do not believe that architecture is simple,it is only because they do not realize how complicated life is." - J.H. von Neumann |
Recent Comments