I try to make a configuration activity using PreferenceActivity...
I found some working examples like
"WiFi Advanced Configuration Editor"
and
"Wifi Config Editor Pro"
but the code I wrote waits for 10-15 seconds on the line editor.commit()
...
it must be very simple but I cant figure out.
here is the brief code;
...
SharedPreferences prefs = PreferenceManager
.getDefaultSharedPreferences(v.getContext());
prefs.registerOnSharedPreferenceChangeListener(ClassConfig.this);
SharedPreferences.Editor editor = prefs.edit();
editor.clear();
editor.putString("key1", value1);
editor.putString("key2", value2);
editor.putBoolean("key3", value3);
...
//i got nearly 35 keys here
...
editor.putString("key33", value33);
editor.putBoolean("key34", value34);
editor.putBoolean("key35", value35);
editor.commit();
Any ideas??
Update: one more thing. I saw these warnings in the log file
W/BackupManagerService(1914) dataChanged but no participant pkg='com.android.providers.settings' uid=10046