Author name: Laura

Solutions, Tutorials

Android How to put markers/pins on the map

We’ve already explained how to make an application with a map here. So, now we will try to put markers or pins (or however are they called) on the map, by knowing the Latitude and Longitude, in case you will ever need it and someday you will :) . So lets start: 1. After you […]

, ,
Tutorials

Android PreferenceActivity & SharedPreferences tutorial

I will start with an example. Let’s assume that we want the user to change the date format of your application. For this you must have a class that extends PreferenceActivity, but first you have to create an XML file like this: 1. Make a directory in res called “xml” 2. In the xml directory

, , ,
Snippets, Solutions

Android: PreferenceActivity Custom Title

If you want to make a custom title in a class that extends PreferenceActivity you must put requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); BEFORE super.onCreate(savedInstanceState); Otherwise you will get a Force Close

Solutions

Android PreferenceScreen

If you encounter this problem: “CheckBoxPreference is not allowed here” or other preference tag and your xml file is all red is because you create the xml in res/layout and you must create it in res/xml. So you have to make a new directory in res called “xml” and this is where your preferences xml

,
Scroll to Top