[android-developers] Local Bound Service vs a static Reference

2012-04-12 Thread Lindsay Mathieson
Been going through the Local Bound Servcie example here: http://developer.android.com/guide/topics/fundamentals/bound-services.html And kinda wondering whats the point - public IBinder onBind(Intent arg0) is essentially being used to retrun a reference to the service class so its methods can

[android-developers] Re: Local Bound Service vs a static Reference

2012-04-12 Thread Lindsay Mathieson
Dammit, premature sending :) e,g public class MainService extends Service { static public MainService mMainService = null; public MainService() { mMainService = this; } } On 11 April 2012 17:59, Lindsay Mathieson lindsay.mathie...@gmail.comwrote: Been going

Re: [android-developers] Local Bound Service vs a static Reference

2012-04-13 Thread Lindsay Mathieson
On 13 April 2012 02:05, TreKing treking...@gmail.com wrote: The system can kill your Service instance at any time if it needs memory, which would suck quite bad if you had a global reference to it. But if you bind to it, via the provided API, it tells the system hey, I'm using this thingy,

Re: [android-developers] Local Bound Service vs a static Reference

2012-04-13 Thread Lindsay Mathieson
2012/4/13 Kostya Vasilyev kmans...@gmail.com Using binding with a local service has, as far as I'm concerned, two benefits: 1) Provides a way to know when the service has actually been started, since it happens asynchronously wrt. startService 2) Is somewhat cleaner. True, and I've gone

[android-developers] Ubuntu Eclipse - Repos or Manual install?

2012-04-15 Thread Lindsay Mathieson
Ubuntu 12.04, 64 Bit Whats peoples opinions on installing eclipse on Ubuntu? Easy enough to do so from the repo (gets me Indigo) but I found that doing updates from eclipse pretty much broke my setup. Its also pretty easy to install manually so maybe thats the best way, but I don't like

Re: [android-developers] Ubuntu Eclipse - Repos or Manual install?

2012-04-16 Thread Lindsay Mathieson
On 16/04/12 16:49, Yaron Reinharts wrote: Troubleshooting Ubuntu Linux Notes ... 3) The Ubuntu package manager does not currently offer an Eclipse 3.3 version for download, so we recommend that you download Eclipse from eclipse.org ... Hope this helps /Yaron Thanks Yaron, but I think the

Re: [android-developers] Newbie Java question

2012-04-25 Thread Lindsay Mathieson
On Wed, 25 Apr 2012 02:24:28 PM g...@deanblakely.com wrote: public NotesDbAdapter open() throws SQLException { mDbHelper = new DatabaseHelper(mCtx); mDb = mDbHelper.getWritableDatabase(); return this; } One or both of the function calls (getWritableDatabase