**** BEGIN LOGGING AT Sun Nov 02 02:59:57 2008 Nov 02 15:54:09 Does anyone know how long an Task has to hang before the Force Quit panel pops up? Nov 02 17:02:24 5 seconds or sth :/ Nov 02 17:02:47 Anyone got a snippet to read out the addresses of all contacts? Nov 02 17:04:47 plusminus_: dan did a demo app on contacts, it didn't pull addresses but its not difficult Nov 02 17:04:57 http://code.google.com/p/android-random Nov 02 17:05:10 thx I'll have a look Nov 02 17:05:20 if you look at the messages source code, specifically the createmessage class there's some contacts interface in there Nov 02 17:05:29 just have to pull the address instead of number Nov 02 17:43:18 I'm playing with the SensorManager stuff now. AFAICT, SENSOR_ORIENTATION is just a filtered, euler-angle representation of the data already available from the accelerometer and compass, is that right? Or is there real hardware to handle torque detection? Nov 02 17:56:56 michaelnovakjr seems like I'm to dumb for that ... I just want my TABLEs I can join myself :( Nov 02 17:57:23 (yes there is rawQuery but I cant even really figure out how all the tables are connected) Nov 02 17:58:12 I query this table: http://code.google.com/android/reference/android/provider/Contacts.ContactMethods.html Nov 02 17:58:21 with the ID of the person ... right? Nov 02 17:59:04 yea Nov 02 17:59:11 you use the provider to get the info Nov 02 17:59:32 I don't like this way of doing it... Nov 02 18:02:13 no? Nov 02 18:03:51 i want the raw tables Nov 02 18:04:19 + an image of how the Tables are connected (ER Diagram) Nov 02 18:07:58 Contacts app open source? Nov 02 18:15:03 * SanMehat is now married Nov 02 18:24:58 ah, SanMehat is it scary Nov 02 18:25:06 i'm getting married in August Nov 02 19:38:25 when picking an Contact, using (Intent iPick = new Intent(Intent.ACTION_PICK);) is there a way to add constraints, i.e. select only ones having an address? Nov 02 19:39:55 So I just decided to start trying out developing for Android so I installed the latest version Eclipse, JDK and Android SDK. I'm trying to run just simple test apps (like the Hello World and one of the samples) and the emulator doesn't seem to do anything but say "ANDROID". What did I forget to do? Nov 02 19:41:04 the loadng screen ? Nov 02 19:41:14 yeah Nov 02 19:41:28 Actually hold on, it might FINALLY be spitting out errors Nov 02 19:41:47 But it seems to take forever to do so Nov 02 19:42:05 you can disable the loading-animation Nov 02 19:42:10 in Eclipse-PReferences Nov 02 19:43:02 Well it switched from a text "A N D R O I D" to a logo now :P Nov 02 19:45:39 Hi! Nov 02 19:46:21 Can someone help me with the eclipse plugin? Nov 02 19:47:39 I cannot get the layout editor to work properly... Nov 02 19:48:25 Howdy, folks. I'm making a word game that has a list with 1.8MB worth of unique words. Nov 02 19:48:42 And every time the user inputs a word, I need to test it against that list. Nov 02 19:48:54 Well and good, but: Trying to load it in word by word and save it a bundle gets an OOM error. Nov 02 19:49:14 As does loading it in as a single large string for performing a binary search on it. Nov 02 19:50:16 MikHel: Probably because its not a Layout-Editor ;) Nov 02 19:50:22 My next attempt is going to be to populate an sqlite db with those words, then make the .apk copy it to its proper data/ dir. Nov 02 19:50:41 But does anyone else have a better idea? =) Nov 02 19:51:16 There's some 173,000 words. :-/. Nov 02 19:52:04 plusminus_: What do you mean? Nov 02 19:52:36 MikHel: Have you tried using http://www.droiddraw.org/ ? Nov 02 19:53:30 lethalcode: Not recently. I did in the past, but then I saw that the new eclipse plugin would have an editor for the layout and I wanted to try it. Nov 02 19:54:06 Heh. Nov 02 19:54:25 Now if I open the main.xml layout, I get a partial interface but an error message saying: Eclipse failed to load the framework information and the Layout Library! Nov 02 19:54:28 * lethalcode edits layout files by hand, anyway. Nov 02 19:54:58 I went to have a look at the eclipse log and there is a line that seems to have the problem info: Nov 02 19:55:17 java.lang.NoClassDefFoundError: com/android/layoutlib/api/ILayoutLibBridg Nov 02 19:55:35 There is an 'e' at the end of that message. Nov 02 19:56:17 Maybe I will go ack to using droiddraw... Nov 02 19:56:32 You could always learn to write 'em by hand? Nov 02 19:57:03 lethalcode: True, but it is frustrating that eclipse brings this editor if I try to open the xml file. Nov 02 19:57:18 I will find out how to force it to use a regular xml editor maybe... Nov 02 20:01:00 Hey guys how long does it usually take for the emulator to fully start up? Nov 02 20:07:49 Jouva: About 45 seconds on my laptop. Nov 02 20:09:05 plusminus_: Can you help? What did you mean earlier? Nov 02 20:36:51 MikHel: I meant that is not an layout editor, it just displays the xml-code (almost like it looks on a device) Nov 02 20:58:24 plusminus_: Thanks. I discovered that eclipse was still using the 0.9 tools. I am doing a re-install and removing the 0.9. It may solve the issue. Nov 02 20:59:35 hey so how is everyone handling passing db refs around between activities? i was just reopening it and got a reference-leak crash (actually worse, it opened twice on boot rather than creating the activity when i hit the button to switch screens) Nov 02 21:09:15 Disconnect: you mean sqlite connections? Nov 02 21:10:49 yah Nov 02 21:11:51 basically just pulling up a create/edit page, not bothering to pass data back or anything (it can pick it up from the db automatically) Nov 02 21:13:09 anyone playing with gridview? Nov 02 21:13:53 yea, Disconnect wouldn't you only have to pass a sql id and create a new instance of your db adapter in the next activity? Nov 02 21:15:21 thats what i'm trying btu its blowing up Nov 02 21:15:47 hm, getting an error message? Nov 02 21:15:55 "leak found" "11-02 18:53:25.152: ERROR/Database(398): java.lang.IllegalStateException: /data/data/foo/databases/foo SQLiteDatabase created and never closed" Nov 02 21:16:03 yea... Nov 02 21:16:27 check out http://code.google.com/p/android-random ... browse the source for the Messages app. Nov 02 21:16:56 i use a database adapter class, and each activity handles its own connection, only data IDs are passed as extras to the next intent Nov 02 21:18:39 thats prolly what i need to do. cool :) Nov 02 21:19:14 it works for my purposes... i've seen content providers used as well Nov 02 21:19:21 it all depends on your access needs i guess Nov 02 21:25:34 part of my problem is a listview fed from a cursor - can i close the db and keep the cursor? (I suspect no) Nov 02 21:33:28 Disconnect: take a look at the view adapter in Glance Nov 02 21:33:47 i extend the adapter, to get more control Nov 02 22:27:21 michaelnovakjr, my wife just went looking through my apps, checked out glance and gllefully screeched OOO I NEED THIS!!! Nov 02 22:27:30 *gleefully Nov 02 22:27:39 lulz Nov 02 22:27:43 :) Nov 02 22:27:48 its going up shortly Nov 02 22:27:51 cool Nov 02 22:28:04 just one annoying thing left Nov 02 22:28:14 all of a sudden my menu doesn't show up anymore Nov 02 22:28:50 michael: what you working on? Nov 02 22:29:13 Glance Nov 02 22:29:16 its a file manager Nov 02 22:29:31 i first wrote it in July for the vogue Nov 02 22:30:29 it'll really come in handy when the bootloaders cracked lol Nov 02 22:31:15 haha Nov 02 22:32:17 btw, are you setting up a donations page? Nov 02 22:32:44 i'm planning to have one up on the androidnerds site Nov 02 22:33:03 tonight when Glance goes 1.0, not going to push it though, just have it there Nov 02 22:33:10 nod Nov 02 22:33:39 it would be nice, as it helps fund for development, but you know... the code and app will still be there :) Nov 02 22:34:02 well, just have your url in the info/about window for glance, and throw the paypal donation link on the page Nov 02 22:34:15 cool Nov 02 22:34:59 after my next round of ebaying, I'm gonna pass out some monetary appreciation in drips and drabs to the file manager that works best for me, and connectbot Nov 02 22:35:08 (ya you have competition, lol) Nov 02 22:35:17 :) not really Nov 02 22:35:21 lol Nov 02 22:35:25 good, then it's yours :) Nov 02 22:35:26 the other one shows only the sdcard now Nov 02 22:35:35 hh yeah I heard about that Nov 02 22:35:43 strange choice Nov 02 22:35:52 and has mediaplayer stuff in it... Nov 02 22:36:02 mine will use intents to open specific content Nov 02 22:36:06 i haven't checked out the new version yet Nov 02 22:36:21 cool, looking forward to it then :) Nov 02 22:36:29 Glance 1.1 will support intents to open files Nov 02 22:36:37 nod Nov 02 22:36:41 and it has the FilePicker option available Nov 02 22:37:26 man I got so much too learn Nov 02 22:37:44 it'll be a few weeks before i finish with unloading my ebay stuff, so I'll have time to pick a few apps I appreciate Nov 02 22:38:57 :) Nov 02 22:40:09 oh man, totally didn't realize this was -dev. wrong window to be chatting in. sorry guys Nov 02 22:42:19 michael: by supporting intents, meaning other apps can use you'rs? Nov 02 22:42:32 elad, for choosing a file yes Nov 02 22:42:51 i'm also going to support other app's intents, like for opening html, mp3's stuff like that Nov 02 22:42:57 nice, im trying to get an understanding for all this. Nov 02 22:43:01 its very new to me Nov 02 22:43:57 cool, my source is available, but its still a bit sloppy :) Nov 02 22:44:40 nice Nov 02 22:45:29 looking at the library intimidates me heh Nov 02 22:46:14 i really need to understand the basic flow of an app first that would help alot Nov 02 22:46:43 http://code.google.com/android/reference/android/app/Activity.html Nov 02 22:46:53 that explains a lot of the way apps flow Nov 02 22:47:04 which methods run first and what not Nov 02 22:50:18 so an activity I can think of as like a form and views being components such as buttons,lists..etc Nov 02 22:51:44 for the most part... its a good place to start, the activity handles a lot of information and links to other services Nov 02 23:11:56 is there something wrong with this method? http://pastebin.com/m19d39f65 Nov 02 23:12:20 you always return true? Nov 02 23:12:58 would that prevent the options menu from not showing up? Nov 02 23:13:13 yes Nov 02 23:13:23 you need a return super.onKeyDown(...) Nov 02 23:13:38 I won't even ask why you override the behavior of the BACK key :) Nov 02 23:13:39 makes sense, thank you Nov 02 23:13:47 :) Nov 02 23:14:04 i actually just removed it, but was curious to why it was behaving that wayu Nov 02 23:19:32 yes romainguy_ i've solved the issue without having to override the behavior Nov 02 23:19:38 :) Nov 02 23:20:22 the back key essentially just goes back on the history stack right? Nov 02 23:20:39 or down I should say? Nov 02 23:20:49 yes Nov 02 23:21:10 activity history stack Nov 02 23:22:33 hey michael Nov 02 23:22:38 hey Nov 02 23:22:40 any tips on how to add a custom UI in the XML file? Nov 02 23:22:51 does google provide any documentation on this? Nov 02 23:22:56 there is documentation Nov 02 23:23:03 the common way to do it is simply: Nov 02 23:23:15 Nov 02 23:23:20 and then the attributes Nov 02 23:23:40 you can look in the SDK samples at ApiDemos or Home to see how it's done Nov 02 23:23:47 Home in particular creates new attributes Nov 02 23:24:53 the one thing about Android is that, at this point, it's not for novices, what i mean is ... in HTMl or CSS u can just rip code and write it up, i like how android developers at least know a thing or two about some things with computers Nov 02 23:25:43 you mean you have to know how to program? Nov 02 23:27:09 Sorium, don't confuse scripting with programming Nov 02 23:27:09 I think he means that the documentation is rough, which it is, honestly. There are environments where newbie coders can be productive (c.f. web development). Android isn't one of them. Whether that's good or bad is I guess an exercise for the reader. Nov 02 23:27:58 html is just markup, css is scripting. development for android is programming. they have varrying levels of complexity Nov 02 23:28:22 I would not qualify CSS as scripting Nov 02 23:28:36 heh Nov 02 23:28:41 yea thats basically what i mean Nov 02 23:28:51 yea andyross just said what i was tryin to say Nov 02 23:28:52 It's not. It's a data format, just like HTML is. And FWIW, scripting *is* programming Nov 02 23:29:15 i started learnin JAva Nov 02 23:29:16 3 weeks ago Nov 02 23:29:21 so i find the documentation kind of hard Nov 02 23:30:01 i won't argue it, I don't completely disagree, as it's seen in a different light based on your perception Nov 02 23:31:20 the documentation is good if you understand what you need Nov 02 23:31:34 its java doc :) Nov 02 23:31:41 i actually like it Nov 02 23:32:13 yep Nov 02 23:32:13 see Nov 02 23:32:22 i just need to understand java better and then i'll get a hang of the documentation Nov 02 23:32:43 michaelnovakjr__: I have to admit that years of digging through the JDK's docs helped a lot to learn what and how to search inside an API Nov 02 23:32:46 :) Nov 02 23:33:15 yea definitely Nov 02 23:33:32 and that's even less descriptive :) Nov 02 23:33:41 true :) Nov 02 23:34:07 i think what people new to java are interested in is a step by step guide Nov 02 23:34:20 i'm sure ed's book will be exactly what they are looking for Nov 02 23:34:31 where is the link to the JDK documentation? Nov 02 23:34:59 http://java.sun.com/j2se/1.5.0/docs/api/ Nov 02 23:35:02 that's for 1.5 Nov 02 23:35:26 michaelnovakjr__: I read Ed's book Nov 02 23:35:34 and to be honest, I didn't like it much Nov 02 23:35:39 but that's just my personal opinion Nov 02 23:35:46 yea? i haven't read it but i saw a few examples Nov 02 23:35:56 what exactly is a context? Nov 02 23:36:03 to me it felt like a 250 pages tutorial Nov 02 23:36:08 what is Ed's book? Nov 02 23:36:12 but it wasn't really explaining correctly many important aspects of Android Nov 02 23:36:21 while spending a lot of time on "useless" features like OpenGL Nov 02 23:36:30 romainguy_: i think that is what it was meant to be unfortunately Nov 02 23:36:33 but I can see it being valuable for new programmers Nov 02 23:36:37 kinda like the learn java in 14 days stuff Nov 02 23:36:42 sure Nov 02 23:36:44 and I understand that Nov 02 23:36:49 but I still think it misses Nov 02 23:36:55 yea, definitely Nov 02 23:37:03 also the samples were not always good examples Nov 02 23:37:07 i didn't find many of those books helpful to me personally Nov 02 23:37:19 a lot of ways to do things we would frown upon if that code was written for Android Nov 02 23:37:33 romainguy_, did you try to contribute to his book to correct the aspects you found lacking? Nov 02 23:37:40 how close is it to being published? Nov 02 23:37:46 im Nov 02 23:37:52 crash coursing myself in java as this moment Nov 02 23:38:05 languish: I was on the reviewers list but I was unfortunately too busy with Android itself Nov 02 23:38:10 besides Nov 02 23:38:27 the directives I got were things like "it's too late to do big changes, we are looking for spelling errors" Nov 02 23:38:32 so... :) Nov 02 23:39:15 :) oopss Nov 02 23:39:23 that's never a good way to go about a review Nov 02 23:39:32 o Nov 02 23:39:33 yo Nov 02 23:39:36 real basic question Nov 02 23:39:57 romainguy_, ahh that sucks Nov 02 23:39:59 if a field is STATIC Nov 02 23:40:14 what does that do? Nov 02 23:40:35 michaelnovakjr__: well having published a book myself I understand why Nov 02 23:40:40 it's the late reviews Nov 02 23:40:49 the book is about to be published, and it's just about polishing it Nov 02 23:41:14 did they inlcude you on early reviews? Nov 02 23:43:05 Asked this earlier, trying again now that there are more folks around: Nov 02 23:43:05 I'm playing with the SensorManager stuff now. AFAICT, SENSOR_ORIENTATION is just a filtered, euler-angle representation of the data already available from the accelerometer and compass, is that right? Or is there real hardware to handle torque detection? Nov 02 23:43:34 it's just data from the accelerometer Nov 02 23:43:50 Sorium: the keyword static means there's only one instance of the variable..... Nov 02 23:43:59 OK, so it's safe to ignore if I'm willing to do the angle computation myself. Nov 02 23:44:33 question, in the layout res folder, im editing my xml source, when i click over to layout should i see all my views in the dark box or no? Nov 02 23:45:28 sorium do you have oop experience? Nov 02 23:48:59 andyross: yes Nov 02 23:50:44 would u say Nov 02 23:50:46 learn JAVA Nov 02 23:50:52 then learn the Android SDK? Nov 02 23:50:57 rather than both at same time Nov 02 23:51:26 thanks michael Nov 02 23:51:28 im out -- Nov 02 23:51:36 ;/ Nov 02 23:52:06 its nice when people can answer their own questions Nov 02 23:52:13 just a waste to type it all out :) Nov 03 00:03:05 when I pass a context to NotesAbAdapter, I'm basically assigning the db to work in this activity? Nov 03 00:53:02 I think I may have found an error in one of the tutorials Nov 03 00:53:30 post a developer bug? (the default is user bug and it looks like most of the devs do that too) Nov 03 00:59:57 Disconnect: if I add Add in strings.xml, I should be able to call R.string.menu_insert, no? Nov 03 00:59:59 elad, there are heaps of errors in the documentation because the SDK evolved so rapidly Nov 03 01:00:11 mostly minor Nov 03 01:00:28 gambler you may know a solution to my above question? Nov 03 01:00:53 I can't see menu_insert, but my others I can. Nov 03 01:01:40 elad, might be an eclipse bug Nov 03 01:02:02 yea, I've restarted.. maybe I need to try 3.3 Nov 03 01:02:05 * elad sighs Nov 03 01:02:27 I found the latest one alot better for code templates Nov 03 01:03:03 3.4 is the one current ver im using Nov 03 01:03:10 -one **** ENDING LOGGING AT Mon Nov 03 02:59:56 2008