Re: [android-developers] Sharing gps stuff between several activity

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 4:06 AM, Federico Paolinelli wrote: > I found myself using the same code for accessing to gps / cell location > stuff from a couple of activities of my application. > Yup, it happens. > What I was wondering now is, which is the best way to avoid > code duplication? > Do

[android-developers] Sharing gps stuff between several activity

2010-05-11 Thread Federico Paolinelli
I found myself using the same code for accessing to gps / cell location stuff from a couple of activities of my application. What I was wondering now is, which is the best way to avoid code duplication? Should I use a superclass for the activities which implements that kind of stuff? Use an helper