[android-developers] NFC - missing method getParcelableExtra( ... )

2011-03-14 Thread Lars Nielsen Lind
Hi, I have used the following code which is published on various sites: PendingIntent intent = PendingIntent.getActivity(this.getApplicationContext(), 0,new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),0);

[android-developers] Location distanceBetween()

2010-06-13 Thread Lars Nielsen Lind
Hi, we try to make use of Location distanceBetween() with local lat/lon and remote users lat/lon in order to get bearing. The method always return a negative value for instace -109. Anyone that knows how to make use of this? How do we translate it for instance to 0-360 degrees. We want to show

[android-developers] Dynamically update preferences

2010-05-12 Thread Lars Nielsen Lind
Hi, we have an XML file placed in the res/xml folder containing our preferences. Is it possible at runtime to add new items to the preferences. Example: The user starts the app and the preferences consists of: America - New York - Los Angeles - Chicago Where all the cities are

[android-developers] Dynamically add items to preferences

2010-05-12 Thread Lars Nielsen Lind
Hi, we have an XML file placed in the res/xml folder containing our preferences. Is it possible at runtime to add new items to the preferences. Example: The user starts the app and the preferences consists of: America - New York - Los Angeles - Chicago Where all the cities are

[android-developers] Update/alter Android Preferences dynamicaly

2010-05-03 Thread Lars Nielsen Lind
Hi, I have tried to find a way to update the Android Preferences dynamically. Under the /res/xml directory I have placed a XML file with CheckBoxPreference elements. During application usage some of the preferences CheckBoxPreference elements may vary in numbers. Sometimes there may be 10 items