By Oleg Mazurashu,on November 30th,2009% Sometimes you need to open browser with specific URI from your application. For example you want to show application’s page and so on. This operation is very simple. You need to use Activity as usual you use it for walking from one activity to other. In this post I am going to show snippet of . . . →Read More:Opening browser with specific URI in Android By Oleg Mazurashu,on November 27th,2009% There is a possibility to store arrays in application package. You need to create file arrays.xml under /res/values. In this file you can save arrays as much as you want. Also it is easy to get them from this file. I found it very useful and I am going to share this information. . . . →Read More:Using arrays from arrays.xml 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 By Oleg Mazurashu,on November 15th,2009% What if you need to validate user input in EditText component. For example you need to save some file and filename user should set at EditText component. You can specify what chars can be used in this component,but how you determine how match “.”are there. . . . →Read More:Validating user input with regular expression in EditText component in Android By Oleg Mazurashu,on November 15th,2009% There are some situations when need to filter data in your EditText component. For example your EditText component represent email,phone number,city and so on. I these cases you want that your EditText component recieved only some specific data. You can use android:inputType tag in your layout xml file,but sometimes you need to . . . →Read More:Filtering data in EditText component in Android By Oleg Mazurashu,on November 15th,2009% I found a lot of the same questions on several Android Dev forums:“How to put cursor at specific position in EditText?”. As I understood,new to platform developers can’t find proper method. At the first blush this is strange situation,because there is no such method as putCursor or setCursor,but if you will . . . →Read More:Put cursor at specific position in EditText component 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