[android-developers] Re: Android Application Settings Problems

2011-03-24 Thread MattClark
import android.app.Activity; import android.content.SharedPreferences; import android.content.pm.ActivityInfo; import android.os.Bundle; import android.view.*; import android.view.View.*; import android.widget.*; /* * * @author Matt */ public class MainActivity extends Activity {

Re: [android-developers] Re: Android Application Settings Problems

2011-03-24 Thread Kostya Vasilyev
Move this inside onCreate. 24.03.2011 13:17, MattClark пишет: SharedPreferences settings = getSharedPreferences(AppSettings, 0); Member initializers are executed when the object instance is constructed, which may be too early in the Android-specific lifecycle. -- Kostya -- Kostya Vasilyev

[android-developers] Re: Android Application Settings Problems

2011-03-23 Thread kiran
Could you provide log cat error message or some more detailed code what you are executing. Because the piece of code you wrote some what confusing me public SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); On Mar 24, 9:19 am, MattClark mrclark32...@gmail.com wrote: I am