Log In | New Account | Search
  mBS Mobile for Android  
Send Topic | Print Previous topic Next topic 
 Pages: 1
 Moderator Group: ProSyst Support
Preferences Service (Read 115 times)
Andreas Feldmann
Beginner Member
*




Posts: 10
Preferences Service
Mar 11th, 2010, 7:20pm
 
Hi,
 
it's me again Smiley
 
I try to get a Preferences Service, but my Servicetracker is not able to get one. I have used the following snippet, which works quite well in my equinox framework.
 
Quote:

ServiceTracker st = new ServiceTracker(context, "org.osgi.service.prefs.PreferencesService", null);
st.open();
PreferencesService ps = (PreferencesService) st.getService();

...doing things with the Preferences Service like creating Nodes etc.

 
Are you able to reproduce a similar behaviour?
 
 
Back to top
 
 
  IP Logged
Tsvetan Nachev
ProSyst Team
*****




Posts: 42
Re: Preferences Service
Reply #1 - Mar 12th, 2010, 1:06pm
 
Hi Andreas,
 
The snippet for getting PreferencesService is ok, but the mBS Mobile for Android runtime does not support PreferencesService specification. If I can give an advice to you, you may consider using the ConfigurationAdmin service for persistent storing of user/app preferences.
 
Best Regards,
Tsvetan Nachev, Product Manager mBS Mobile for Android
Back to top
 
 
  IP Logged
 Pages: 1
 Moderator Group: ProSyst Support
Send Topic | Print Previous topic Next topic 
Go 
    © 1997-2010 ProSyst · All Rights Reserved | Legal | Sitemap | Contact
  HOME | PRODUCTS | SUPPORT AND FILE EXCHANGE | DISCUSSION FORUMS
    ProSyst Software | Duerener Str. 405 | D-50858 Cologne | Germany | Phone: +49 221 6604-0 | Fax: +49 221 6604-660
 
Discussion Forums » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.