[android-beginners] List content observers
Hi there I'm building an app that uses content observers. My problem is, that I tend to register my content observers multiple times. This causes my application to log events several times. How do I find out, if my content observer is already registered? - Frederik -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Setup SQLite db at install time
Hi Richard Thanks for answering. Sorry for the double post. I guess I thought that my post wasn't submitted properly (i got no confirmation that it was successfully submitted). - Frederik On Oct 27, 6:03 pm, RichardC wrote: > I have already answered you earlier (duplicate > post)http://groups.google.com/group/android-beginners/browse_thread/thread... > > -- > RichardC > > On Oct 27, 6:48 am, Froens wrote: > > > Hi group > > > I am new to developing programs to the Android framework. > > > I've read the sample exercises (http://developer.android.com/guide/ > > tutorials/notepad/notepad-ex1.html) but have a question regarding > > their database creating. > > > All database creation happens in the function ["onCreate()" - > > NotesDbAdapter.java ln 67]. > > > As I read the code, the create statement is run without checking that > > the DB exists. > > What if the db exists already? How ofthe is the function run? ... It > > doest override a method, but the class does not extend any class and > > thus does not inherint any functions to override? > > > I've seen some work-arounds on the internet: > > To include a "IF NOT EXISTS"-statement in the SQL > > or > > Just check that the DB exists before querying it. If not, create it. > > > Both seem very clumsy. Is there no way to setup a db at install time? > > > Best regards and thanks in advance > > Frederik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Setup SQLite db at install time
Hi group I am new to developing programs to the Android framework. I've read the sample exercises (http://developer.android.com/guide/ tutorials/notepad/notepad-ex1.html) but have a question regarding their database creating. All database creation happens in the function ["onCreate()" - NotesDbAdapter.java ln 67]. As I read the code, the create statement is run without checking that the DB exists. What if the db exists already? How ofthe is the function run? ... It doest override a method, but the class does not extend any class and thus does not inherint any functions to override? I've seen some work-arounds on the internet: To include a "IF NOT EXISTS"-statement in the SQL or Just check that the DB exists before querying it. If not, create it. Both seem very clumsy. Is there no way to setup a db at install time? Best regards and thanks in advance Frederik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Android and SQLite - setting up a db at install time
Hi group I am new to developing programs to the Android framework. I've read the sample exercises (http://developer.android.com/guide/ tutorials/notepad/notepad-ex1.html) but have a question regarding their database creating. All database creation happens in the function ["onCreate()" - NotesDbAdapter.java ln 67]. As I read the code, the create statement is run without checking that the DB exists. What if the db exists already? How ofthe is the function run? ... It doest override a method, but the class does not extend any class and thus does not inherint any functions to override? I've seen some work-arounds on the internet: To include a "IF NOT EXISTS"-statement in the SQL or Just check that the DB exists before querying it. If not, create it. Both seem very clumsy. Is there no way to setup a db at install time? Best regards and thanks in advance Frederik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---