[android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Bender
Ok I tried to find out at which point the service is started and when I can access its database variable. The logs I used showed that the services onCreate() is called after the onResume() method by my activity. That is a bit late because I need access to the database before onResume() to fill the

Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Kostya Vasilyev
Sure. The service connection callback you seem to already have in your code. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 06.08.2010 12:10 пользователь Bender abende...@googlemail.com написал: Ok I tried to find out at which point the service is started and when I can access its database

[android-beginners] Hey my friend,

2010-08-06 Thread Eros Stein
Hey my friend, Hello, I found a good company Electronicnets! My friends introduced it to me and now I would like to introduce it to you, for it is really very good and they now have a promotion. You can find various electronic products. Originating from original factory, their products have

[android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Bender
I tried the following in my activity: mServiceConnection = new DbServiceConnection(mDatabaseBinder); final Intent databaseServiceIntent = new Intent(this, DatabaseService.class); this.bindService(databaseServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE);

Re: [android-beginners] Re: Database handling - when do you open and close

2010-08-06 Thread Kostya Vasilyev
No, calling Thread.sleep() won't work. Android framework is largely single-threaded, event-driven. This means that your application and the framework run on the same thread, passing control to each other, doing work in small pieces. This thread is called the UI thread, and blocking it by

[android-beginners] Re: how to change colours in a .xml defined layout in run time

2010-08-06 Thread ckloch
Thank you very much for your input I have solved the problem and the application is now ready for trial. best regards ckloch On 23 Jun., 17:38, TreKing treking...@gmail.com wrote: On Wed, Jun 16, 2010 at 6:55 AM, ckloch htc.kl...@hotmail.com wrote: In theory it seems to be easy, but I would

[android-beginners] Re: How comes that the estimate time becomes negative

2010-08-06 Thread ckloch
Dear all, I have solved my problem, so the issue below is no logner relevant Thank you for all the great input I have got in this forum best regards CKLOCH On 22 Jun., 11:25, ckloch htc.kl...@hotmail.com wrote: Dear all, I have developed a small app that helps the driver to regulate his

[android-beginners] Re: WQVGA not respecting android:layout_height=fill_parent for layout.

2010-08-06 Thread ckloch
I have got some support on this and my problem is now solved both on Android 1.5 and 2.1 Best regards ckloch On 17 Jun., 20:41, ckloch htc.kl...@hotmail.com wrote: Thanks for this inspiring contribtion. I have just ran in to the same problem with a HTC Hero Android 1.5 By using

[android-beginners] JavaPassion.com now offers Android Programming (with Passion!)

2010-08-06 Thread sangshin
JavaPassion.com now offers Android Programming (with Passion!) online course. Please see some sample lab documents below. Building Helloworld Android application http://www.javapassion.com/handsonlabs/android_stepbystep Android UI Layout http://www.javapassion.com/handsonlabs/android_ui_layout

[android-beginners] html formated email

2010-08-06 Thread NBS
Hi all I am trying to send email with html formated. I like to send some text with hyperlink and I am trying with following code. String body = a href=http://www.example.comExample/a final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType(text/html);

Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread Greg Donald
On Wed, Aug 4, 2010 at 8:32 PM, Indicator Veritatis mej1...@yahoo.com wrote: Yes, the distinction has been getting blurred. This is a bad thing. Discontinuing this group only makes the blurring worse, as more and more beginners will move to android-developers -- where beginning questions

[android-beginners] Default values in SharedPreferences

2010-08-06 Thread Bret Foreman
My application is somewhat complex and has lots of settable preferences. Fortunately for the user, there are sensible defaults that I can pre-configure. The SharedPreferences infrastructure includes defaults in preferences.xml, which I have set accordingly. The trouble is that if the user has

Re: [android-beginners] Default values in SharedPreferences

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 3:24 PM, Bret Foreman bret.fore...@gmail.com wrote: This is such a generic problem that I'm hoping someone has already solved it and I can get something off the shelf. Any suggestions? I haven't done this (yet) but you could probably store your default values as

[android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread fadden
On Aug 6, 1:20 pm, Greg Donald gdon...@gmail.com wrote: snip # users with less than 1500 reputation can't create new tags. The tags 'rails3 linecache' are new. Try using existing tags instead. /snip Good luck only tagging questions that already have popular tags. What advantage do you

Re: [android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-06 Thread Greg Donald
On Fri, Aug 6, 2010 at 3:52 PM, fadden fad...@android.com wrote: I do a daily walk through stackoverflow for questions tagged with android.  Nobody will be searching based on esoteric tags.  I think the point of restricting tag generation is to ensure that people *do* find your question

[android-beginners] Re: Default values in SharedPreferences

2010-08-06 Thread Bret Foreman
Yeah, that's messy, but it will probably work. One other consideration is what the next version of Android will do about this. It's pretty clear that this is an important missing feature. I expect they'll eventually make a version of getXXX that reads the default value from preferences.xml if

[android-beginners] Re: Interaction between an Activity and a Service ?

2010-08-06 Thread Rajesh Bachani
Thanks Justin, this helps :) :) Rajesh. On Aug 2, 11:52 pm, Justin Anderson janderson@gmail.com wrote: You can pass information via the Intents used to start the service, and vice versa, with the various put and get methods on Intent. For more information, see this

Re: [android-beginners] Re: Default values in SharedPreferences

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 5:38 PM, Bret Foreman bret.fore...@gmail.com wrote: One other consideration is what the next version of Android will do about this. It's pretty clear that this is an important missing feature. I expect they'll eventually make a version of getXXX that reads the default