**** BEGIN LOGGING AT Sat Apr 05 02:59:57 2008 Apr 05 03:41:13 how can i disable/hide the Set button in a TimePicker? Apr 05 03:57:53 nothing annoys me more than a java nullpointer exception Apr 05 03:58:06 its the kind of thing that makes you want to throw the computer out the window Apr 05 03:58:48 agreed michaelnovakjr Apr 05 03:59:00 E/AndroidRuntime( 2306): Caused by: java.lang.RuntimeException: Binary XML file line #125: You must supply a layout_width attribute. Apr 05 03:59:03 wtf, i specified it! Apr 05 03:59:55 if java knows something returned null then why not just say so and so is returning null when it isn't supposed to Apr 05 04:02:04 this is bullshit Apr 05 04:02:09 can't nest layouts Apr 05 04:02:42 well LinearLayout Apr 05 04:03:01 isn't there an absolute layout? Apr 05 04:03:07 yes Apr 05 04:03:12 i am using linear because my UI is pretty simple Apr 05 04:03:24 you shoudl never use absolute layouts Apr 05 04:03:36 linearlayouts ar egood for linear stuff Apr 05 04:03:41 i have one in a relativelayout Apr 05 04:03:49 i guess it works out for me then Apr 05 04:08:37 how can i write debugging messages when running my app? Apr 05 04:09:03 Log.d("facility or shit", "my dumb message"); Apr 05 04:09:08 adb logcat Apr 05 04:09:14 cool Apr 05 04:09:15 thanks Apr 05 04:09:53 ok Apr 05 04:09:54 so i got 3 buttons Apr 05 04:10:01 well Apr 05 04:10:06 have you used RelativeLayout ? Apr 05 04:10:11 if not, i wont ask. Apr 05 04:10:43 well Apr 05 04:10:46 i'll just use 2 then Apr 05 04:10:48 Prev/Next/Finish Apr 05 04:10:57 what's happening when you have three buttons? Apr 05 04:11:18 [ Prev ] [ Next ] [ Finish ] Apr 05 04:11:20 is what i wanted Apr 05 04:11:27 but Next wasnt working out Apr 05 04:11:33 anyway i only need 2 :) Apr 05 04:11:43 works out :) Apr 05 04:12:14 man, this is going to be abitch to use without a touchscreen Apr 05 04:12:23 cause the joystick stucks Apr 05 04:12:33 as far as widget order is concerned Apr 05 04:12:36 *sucks Apr 05 04:12:36 yea... phone UI's are getting that way Apr 05 04:12:47 or atleast since i started using a touchscreen Apr 05 04:12:49 hah Apr 05 04:13:44 heh Apr 05 04:16:41 i found it! Apr 05 04:16:46 ha eat that nullpointer Apr 05 04:18:58 michaelnovakjr: you know how to add an exception breakpoint? Apr 05 04:19:47 nope, never had an issue with exceptions before like this one Apr 05 04:20:09 michaelnovakjr: in the breakpoint view click the little J! button (if using eclipse) Apr 05 04:20:12 i don't even use a debugger. maybe it would improve productivity. Apr 05 04:20:23 ah interesting Apr 05 04:20:37 then you can add an exception to the list and it will automatically break when/where that exception happens Apr 05 04:20:49 thanks for the tip Apr 05 04:20:54 makes finding something like an NPE really easy Apr 05 04:21:03 i bet Apr 05 04:21:07 that's awesome Apr 05 04:23:02 I also really like using field breakpoints Apr 05 04:23:10 to break whenever a field is read/written Apr 05 04:23:12 very handy too Apr 05 04:23:27 ahh, didn't know about that Apr 05 04:23:32 yea, i have to start using debugging tools more Apr 05 04:25:42 ok i just fired up the debug perspective Apr 05 04:27:09 ok this is way too slow to use Apr 05 04:27:25 what kind of machine are you on? Apr 05 04:27:51 pentium m iirc Apr 05 04:28:00 running it about 1.33 GHz righ tnow Apr 05 04:28:09 how about ram Apr 05 04:28:10 non-debug works better Apr 05 04:28:13 2 GB Apr 05 04:28:44 ah, i am running an athalon x2 2.8 with 4gb of ram Apr 05 04:29:07 michaelnovakjr: does the emulator run pretty quick for you? Apr 05 04:29:40 and i am running with -noaudio -nojni options Apr 05 04:30:31 yea, the emulator is responsive when it doesn't crash Apr 05 04:31:00 I've been happy with the performance of this box until android came out Apr 05 04:31:21 the emulator takes a lot of resources Apr 05 04:31:23 i am waiting to read reviews on the new AMD quad core Apr 05 04:32:06 zhobbs: well, the emulator is running a Linux OS basically Apr 05 04:33:21 yeah, and an ARM processor to run that linux OS Apr 05 04:33:27 yep Apr 05 04:33:39 but it runs really well on a MacPro ^^ Apr 05 04:33:59 romainguy... using a MacPro? Apr 05 04:34:10 a MacPro and a MacBook Pro at work Apr 05 04:34:12 I would love to have a MacPro Apr 05 04:34:28 i have a macpro at work.... great machines.... just sweat alot sitting next to one :) Apr 05 04:34:29 and a MacPro at home Apr 05 04:35:09 everytime I build one on apple.com they come out to like 4k :) Apr 05 04:35:45 :) Apr 05 04:36:03 yea, gotta do the dual display Apr 05 04:36:15 it just makes using it that much better Apr 05 04:36:25 I prefer using a single 30" Apr 05 04:36:33 or one of those :) Apr 05 04:36:36 (except at work where I use a 30" and a 24") Apr 05 04:36:50 the 24" just shows the build status and various dashboards, it's pretty cool Apr 05 04:37:09 yea... its great to have log windows visible when working Apr 05 04:37:21 no more alt-tab :) Apr 05 04:37:27 totally Apr 05 04:37:28 uhuh Apr 05 04:37:41 surprisingly, I still use exposé a lot on 30+24 Apr 05 04:37:58 making the IDE almost fullscreen is nice but it's still not enough /o\ Apr 05 04:38:40 yea Apr 05 04:39:24 romainguy: can i run the emulator on a remote machine and connect to it? Apr 05 04:39:30 that is, i want to slave it off to another machine Apr 05 04:39:33 while developing on another Apr 05 04:39:46 I'm pretty sure you can with adb Apr 05 04:39:53 and the emulator has an option to open a VNC display Apr 05 04:41:22 hmm i dont see that option Apr 05 04:41:36 well i have two machines here, so i could just 'look' Apr 05 04:42:04 try emu -qemu help Apr 05 04:42:11 or -qemu -h Apr 05 04:43:18 ok found the vnc option Apr 05 04:57:35 anyone know why the Node class doesn't have a getTextContent method? Apr 05 05:00:43 how can I debug why my service arent being run form the AlarmService? Apr 05 05:01:03 i am using org.w3c.dom in two places... android and another java class outside of android... getTextContent is a method in org.w3c.dom, but not in android?? Apr 05 05:01:13 I can run my Service by calling it explicitly, but when I set it to run every via the alarm system, it never seems to run Apr 05 05:01:23 michaelnovakjr: probably a different version of the W3D DOM APi Apr 05 05:01:31 that sucks Apr 05 05:01:57 it's not very difficult to get the node's content as text Apr 05 05:02:32 getNodeValue returns null when there is definitely a value Apr 05 05:03:03 is the Node an Element? Apr 05 05:03:12 indeed Apr 05 05:03:14 if so, I seem to recall that you need to get the first child and *then* call getNodeValue Apr 05 05:03:24 I've always used the W3C DOM API that way in Java Apr 05 05:03:27 ah Apr 05 05:03:34 the text is a node by itself Apr 05 05:03:47 in my other java class getTextContent took care of that i guess Apr 05 05:04:00 yes Apr 05 05:04:18 in every Java program I wrote using XML I would always start by creating a few utility methods for XML :) Apr 05 05:04:29 like getAttributeValue(node, attributeName) Apr 05 05:04:35 or getNodeText(node) Apr 05 05:04:36 :) Apr 05 05:04:55 i was spoiled :) Apr 05 05:05:09 excellent, that took care of it! Apr 05 05:05:18 ;-) Apr 05 05:05:38 what's odd was if i run the getChildNodes it gets cranky because it says there aren't any Apr 05 05:05:50 but getFirstChild returned the value Apr 05 05:06:35 hi Apr 05 05:06:44 howdy Apr 05 05:06:45 yo Apr 05 05:07:50 off topic: anyone here do machine learning ? Apr 05 05:15:12 romainguy: expose, bah. i have it but rarely use it since multiple desktops is clearly superior :) Apr 05 05:15:59 I prefer exposé Apr 05 05:22:15 well Apr 05 05:22:20 enough of Lightroom for tonight Apr 05 05:22:50 Hi All, I am new to android, I have been generating .apk file using eclipse....can u tell me cmd line syntax to generate proper .apk file... Apr 05 05:23:12 I tried to call Apr 05 05:23:13 Apr 05 05:23:16 use activityCreator.py to generate a build.xml file and then examine it. Apr 05 05:23:42 ok Apr 05 05:24:28 where is that activityCreator.py file Apr 05 05:25:01 in the SDK Apr 05 05:25:29 ok there is .bat file Apr 05 05:25:31 sorry Apr 05 05:25:58 the bat file is just for the handicapped. Apr 05 05:26:02 haha Apr 05 05:30:53 have a goodnight Apr 05 05:39:41 ? Apr 05 05:44:38 hey androiders Apr 05 05:47:58 howdy Apr 05 05:48:48 has anyone found any good app preview screenshots yet? Apr 05 05:49:41 I'm thinking of using the everaldo crystal icons Apr 05 05:49:59 ? Apr 05 05:49:59 does anyone have a good icon set recommendation? Apr 05 05:50:06 i made my own icon Apr 05 05:50:21 for the main app? Apr 05 05:50:32 i could probably use some icons inside the app Apr 05 05:58:06 can someone help me with a problem I have with the alarmservice? Apr 05 05:59:24 if I run this manually, it works fine: startService(new Intent(this,FileUploadService.class), null); but if I use an alarm service, my code never runs: Intent intent = new Intent(this, FileUploadService.class); long firstTime = SystemClock.elapsedRealtime(); AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE); Integer interval = 15*1000; am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,firstTime, interval, intent); Apr 05 06:41:41 deadlines closing in Apr 05 06:41:59 i'm almost about to submit my app Apr 05 06:42:08 just have to run and test these 2 classes and im good to go Apr 05 07:20:26 jerkface03: what did you write if i may ask? Apr 05 07:23:25 Lede: networked twitch gaming framework Apr 05 07:23:49 twitch? Apr 05 07:24:02 yeppers Apr 05 07:24:08 quake, bomberman, etc.. Apr 05 07:24:22 subspace would probably be the best workable port Apr 05 07:25:20 interesting Apr 05 07:25:59 great, netherlands is going nuts Apr 05 07:26:33 it seems that 42 percent wants the dead penalty back into our system Apr 05 07:26:51 what happend? Apr 05 07:26:57 gruesome murder? Apr 05 07:28:25 nothing Apr 05 07:29:13 after the movie fitna people think the muslims in this country are going to attack them, behead them, eat their babies and implement a rule of law like taliban Apr 05 07:29:56 it's called mass hysteria Apr 05 07:30:19 little do they know muslims have been living in this country since the sixties and they didnt even notice or something Apr 05 07:30:44 * Lede goes away Apr 05 07:30:47 were those cartoons from the netherlands? Apr 05 07:31:16 no, denmark Apr 05 07:51:09 hrm Apr 05 07:51:18 have you guys ever attached the debugger to your apps? Apr 05 07:51:44 davidw: yeah sometimes Apr 05 07:51:55 you use the eclipse one? Apr 05 07:52:12 tried it once Apr 05 07:52:22 also used it with intellij Apr 05 07:52:47 sometimes its buggy.. need to restart emulator Apr 05 08:32:30 ok, I remember why I f(*&(&) loathe eclipse Apr 05 08:32:51 welcome to the club Apr 05 08:42:32 I just want to debug the wretched thing Apr 05 08:46:39 ARGGHHHH Apr 05 08:48:35 we've all been there...trying to figure out if you should just go ahead and uninstall eclipse for good Apr 05 08:52:42 "we need to take off and nuke it from orbit - it's the only way to be sure" Apr 05 08:53:22 I just need to debug this damn android app:-/ Apr 05 09:01:09 I mean how the f(&()&()*& do you even import an existing project Apr 05 09:03:36 ugh... it sort of imported it Apr 05 09:03:38 what a POS Apr 05 09:03:53 an eclipse project? Apr 05 09:04:01 for an eclipse project file -> import Apr 05 09:04:24 non-eclipse project file -> new -> android project -> (o) from existing Apr 05 09:04:44 it's pretty obvious really Apr 05 09:08:21 no it isn't Apr 05 09:08:30 obvious would be 'import' Apr 05 09:08:35 but zhobbs is correct Apr 05 09:08:50 yes, i know he is, and as a first-time Eclipse user, I would say that it was pretty obvious. Apr 05 09:09:09 also, it's documented in the Android getting started section. Apr 05 09:09:17 import should be a flyout: Eclipse Project, Java Project, etc Apr 05 09:10:11 obvious means you can figure it out be looking at it... apple products are generally obvious, for instance Apr 05 09:11:02 well like i said, as a first-time eclipse user, i was able to figure it out. Apr 05 09:17:06 I don't know, it still screws lots of stuff up... it can't find my manifest xml file Apr 05 09:17:59 it can't "find it"? Apr 05 09:21:44 file /Hecl/android/AndroidManifest.xml file doesn't exist, it says Apr 05 09:25:31 it seems to have figured out things in any case, but it's just weird Apr 05 09:27:08 I just miss gdb... gdb filename is all there is to it Apr 05 10:23:20 I want to put an EditText under a ListView...how can I tell the ListView to expand as much as possible without pushing the edittext below the bottom of the screen? Apr 05 10:23:35 I have a feeling something to do with weight Apr 05 10:25:26 set the LiestView's weight to 1? Apr 05 10:26:14 and its height to 0dip Apr 05 10:26:38 thanks Apr 05 10:27:19 np Apr 05 10:36:22 hmm...that kills the scrollbars when I do that Apr 05 10:36:28 wonder if that's a bug Apr 05 10:39:31 probably not Apr 05 12:12:22 ARGHHHHH, stupid f*&*)(&*(*& eclipse Apr 05 12:12:37 M-x die-eclipse-die Apr 05 12:13:08 davidw what about android ? web sciernce APIs are not compatible and not even near to portable Apr 05 12:13:13 so android must die i guess Apr 05 12:13:40 eh? Apr 05 12:13:46 Android is cool Apr 05 12:14:21 ok find me an RFF api for android ;) Apr 05 12:14:24 RDF* Apr 05 12:14:52 android is pure BS Apr 05 12:15:48 well, fine, don't use it then Apr 05 12:15:52 anyway googlke is becoming careless like microsoft no wonder Apr 05 12:16:10 davidw have you replied me to sustain your statement ? Apr 05 12:16:20 I'm just hoping you'll go away really Apr 05 12:16:50 davidw haha ur funny you wish ppl with different opinions to leave ? Apr 05 12:17:07 bleh am talking to a kid over here Apr 05 12:17:14 well, let's see - this channel is about Android. You don't like Android. So what's your point in being here? Apr 05 12:17:40 seems counterproductive to me Apr 05 12:17:42 cause i have some work to do on android Apr 05 12:18:07 davidw work is work Apr 05 12:18:41 have fun then:-) Apr 05 12:44:46 <[AD]Turbo> hi all Apr 05 12:50:03 hi Apr 05 14:01:33 anyone know if there's a intent or some other way to detect when something is loading data, i.e when (re)loading mapview? Apr 05 14:43:37 * davidw triumphs against the evil thread bug Apr 05 14:48:26 haha Apr 05 14:50:07 * davidw is basically a true believer in the actor model at this point Apr 05 14:50:27 erlang +1 Apr 05 15:01:04 can one add text to imageview? like, create a new "tab bar" where is user's Log in name and stuff like that? Apr 05 15:09:43 you mean have an image with text overlayed on top of it? Apr 05 15:10:25 if you want to do stuff with tabs you might want to check out TabActivity Apr 05 15:28:50 I'm not sure if TabActivity is the thing I mean.. Apr 05 15:31:38 could you describe in more detail what you want to do? Apr 05 15:31:58 add a transparent "tab" under my label Apr 05 15:32:16 ok Apr 05 15:32:19 label tab contains name of currently running app/class Apr 05 15:32:48 or if it's possible to use that "label tab" to add info, would be great Apr 05 15:32:53 to do that, use TextView and set the 'background' element to the drawable resource that represents your 'tab' image Apr 05 15:33:04 oh okay, g2 try thanks Apr 05 15:33:15 sure Apr 05 15:34:20 is it possible to add some alpha to textview? Apr 05 15:59:32 i'm not sure if it's possible to set the alpha of the background image Apr 05 15:59:47 does the .png format allow you to set an alpha channel of the image itself? Apr 05 16:00:21 if it does, might want setting alpha in the png and see if you can get transparency that way Apr 05 16:17:45 yep, thatwise I did it, but just wondered if it's possible Apr 05 16:47:10 you can set the alpha channel if you're just setting a background color, but i don't believe you can do it if you're setting an image Apr 05 16:48:24 are we talking PNGs in general, or just those as applied to the Android platform? Apr 05 16:50:54 well my question to Hai-Fai was about PNGs in general, and judging by his response it looks like the PNG format does allow you to set the alpha channel Apr 05 18:05:08 anyone knows how to play videos on android ? Apr 05 19:28:45 hmm.. looks like it's pretty much impossible to write any junit tests for code that is using android sqlite.. or has anyone succeeded? Apr 05 21:13:55 howdy Apr 05 21:18:52 my sqlite database is not showing up in the sqlite3 tool... any reason? Apr 05 21:18:58 is it not supposed to? Apr 05 21:33:36 it should Apr 05 21:33:44 did you pass the database file into the sqlite3 command? Apr 05 21:34:09 where does the emulator put those? Apr 05 21:34:13 the database file is in /data/data//databases Apr 05 21:37:18 doesn't seem to be working Apr 05 21:37:53 you're in the databases folder for your app? Apr 05 21:40:01 i can't find it Apr 05 21:40:18 can you find the folder for your package in /data/data? Apr 05 21:40:36 when you say /data/data you mean the system root? Apr 05 21:40:51 adb shell; cd /data/data; Apr 05 21:41:08 / = system root Apr 05 21:41:24 ddms also has a file system explorer, you might find that easier to use if your not familiar with the linux file system layout Apr 05 21:41:49 u'll still have to use the shell to use sqlite3 though Apr 05 21:41:52 in the adb shell you can open sqllite? Apr 05 21:42:11 cool Apr 05 21:42:24 i was going into sqlite3 from my OS shell Apr 05 21:42:27 that was my problem Apr 05 21:42:45 ahh Apr 05 21:42:53 yeah, you can run it in adb shell Apr 05 21:43:02 just pass in the database file as an argument Apr 05 21:43:31 awesome thanks, i got into the database Apr 05 21:44:05 :) Apr 05 21:44:40 they have an impressive set of tools for android Apr 05 21:44:53 i like using the shell when possilbe Apr 05 21:45:58 yeah, being able to query the data is handy Apr 05 21:47:02 definitely Apr 05 21:47:33 if you application is not visible on the screen it is still able to run correct? Apr 05 21:47:50 what do you mean? Apr 05 21:49:39 if someone has your app running and they click to go back to the homescreen....is your app still running? Apr 05 21:49:53 probably... Apr 05 21:50:05 but it can be killed if the system needs the resources Apr 05 21:50:36 that's why you need to think about activity lifecycle, because if the system kills it then you need to design your app to resume like it wasn't killed Apr 05 21:50:52 gotta go..hungry! Apr 05 21:53:42 thanks.... some research for later Apr 05 22:03:03 anyone awake? what format does the documentation have to be in for the submission? zipped? pdf? Apr 05 22:08:28 jerkface03: i'm sure it doesn't much matter. Apr 05 22:08:58 any format that would be typical for such a project to distribute would be acceptable i'd bet. Apr 05 22:09:50 I probably should package up the source with the documentation package Apr 05 23:16:35 jerkface03: why? Apr 05 23:31:38 morrildl_: because its opensource Apr 05 23:31:52 jerkface03: *nod* Apr 05 23:31:56 morrildl_: is pdf fine for the documentation? Apr 05 23:32:00 that's fine, just note that you don't HAVE to do that Apr 05 23:32:12 ...and in fact, it's 99% likely no one will look at it if you do :) Apr 05 23:32:34 of course, feel free to mention that it's open source in your documentation Apr 05 23:32:36 i would rather it be there incase someone did decide to have a look ;) Apr 05 23:32:46 Perfectly fair. Apr 05 23:32:54 Just wanted to make sure you knew you didn't have to go to hte trouble :) Apr 05 23:33:05 PDF is fine Apr 05 23:33:10 kk Apr 05 23:33:10 ty Apr 05 23:33:12 np Apr 05 23:46:21 morrildl_: you guys should consider easing the code requirements for an activity that is tethered to a service. Apr 05 23:46:57 for example, providing a convenient facility in that case to defer layout and drawing until the activity is connected to the service. Apr 05 23:47:03 hmm Apr 05 23:47:12 can you provide an example use case? Apr 05 23:47:22 and have the activity managing lifecycle so that if the service unexpectedly dies, so does the activity. Apr 05 23:48:24 morrildl_: For example, I have a background music playback management service. It handles playlists, enqueueing songs, retrieving content, etc. Apr 05 23:48:36 okay Apr 05 23:48:43 Nearly every activity in my music player will require a connection to this service in order to enqueue songs, display playlist information, pause, etc. Apr 05 23:48:58 And it is tricky to manage the state of an activity that critically depends on its connection to a service. Apr 05 23:49:24 Interesting Apr 05 23:49:35 Also, I have a synchronization activity that connects to a service to control the meta data synchronization process. Apr 05 23:49:37 and yeah I see what you mean Apr 05 23:49:39 Not unlike ActiveSync on Windows Mobile. Apr 05 23:50:06 I have to use a ViewSwitcher so that when the activity opens, it doesn't display a UI, but when the connection is established, and the state of the service determined, the UI is presented. Apr 05 23:50:18 And if the service disconnects, the activity has no choice but to die. Apr 05 23:50:37 because the activity is little more than a visualization of the service. Apr 05 23:50:57 how would this API work? Apr 05 23:51:06 meaning, how would you declare it, etc? Apr 05 23:51:14 would you subclass Activity? Apr 05 23:51:19 etc. Apr 05 23:51:34 That I'm unsure of, and unfortunately cannot discuss it now. If you think there would be some interest in exploring this, I'd be happy to write something up and submit it as an issue or something. Apr 05 23:52:29 Anyway, gotta run, we can talk later. Apr 05 23:54:57 cool Apr 05 23:55:08 feel free to submit it as an issue Apr 05 23:55:15 or email it to me if you'd like to discuss more or whatever Apr 05 23:55:32 it's an interesting idea Apr 06 00:22:56 :\ Apr 06 00:23:19 no one will look at the readme file? Apr 06 00:25:05 i think that post on the challange group is saying that likley noone will look at any attached source Apr 06 00:25:19 not the readme Apr 06 00:25:26 but i dont know really **** ENDING LOGGING AT Sun Apr 06 02:59:56 2008