I'm not happy with the other answers, though they are not really incorrect. (The "object with a hashmap of properties" thing that Hari mentions is not really a JavaBean, though some packages can use maps as if they were implicitly a JavaBean).
I'd rather explain it from a minimalist point of view. A JavaBean is, at a minimum, an object with data that you access with public getter and setter methods. e.g. public void setFoo(String foo) and public String getFoo() -- although it doesn't need to be strings. This corresponds to a String- valued property named 'foo'. There's more layered on that, in terms of facilities to manipulate and work with them, but when someone says "bean class", that's all you really know they're talking about. That's enough to be a JavaBean. On Jan 22, 4:50 pm, TreKing <treking...@gmail.com> wrote: > On Sat, Jan 22, 2011 at 1:26 AM, Deeps <pradeepb...@gmail.com> wrote: > > I want to get shared preference from non activity class. > > Pass a Context, the SharedPreferences, or the value itself from somewhere > "higher up" that has this information. > > > I want to create a bean class to get and set the shared pref. > > I have no idea what a "bean class" is. > > --------------------------------------------------------------------------- > ---------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en