**** BEGIN LOGGING AT Tue Dec 04 02:59:56 2007 Dec 04 05:16:15 Question: View's contain their own canvas? do you draw on the view and the view gets posted on the screen? in the event the screen get corrupted the view still has a copy of the contents you drew onto it? Dec 04 05:16:21 or does it not work like that? Dec 04 05:42:58 i have a little problem Dec 04 05:43:33 i m trying to start a new project in android Dec 04 05:43:45 and it wont let me click finish Dec 04 05:43:50 i got a screenshot Dec 04 05:43:55 http://getoo.blogspot.com/2007/12/android.html Dec 04 06:05:30 back Dec 04 06:05:45 wb Dec 04 06:06:20 getoo: perhaps you should try filling in required fields. Dec 04 06:06:29 or, better yet, reading android documentation. Dec 04 06:06:40 jasta: i did , i think i havent filled them the proper way Dec 04 06:06:48 i tried few options Dec 04 06:06:56 whatever Dec 04 06:07:01 :) Dec 04 06:31:09 wee, the nightly emulator lockup Dec 04 06:32:35 im sure they'll release a new version of the emulator before the challenge in jan Dec 04 06:32:51 I hope so :) Dec 04 06:32:58 so do i :( Dec 04 06:33:05 most of the nio stuff is unimplemented Dec 04 06:37:42 :( Dec 04 06:39:32 morning all Dec 04 07:11:17 hrmm Dec 04 07:11:31 my web view is flashing white before displaying content for some reason Dec 04 13:25:59 ok, back to hacking Android-Hecl Dec 04 14:01:14 if i start with Workbench User guide is this a good way for me to learn android Dec 04 14:10:50 hi * , the listactivity view is recommended only for showing data ? Dec 04 15:19:50 could someone help me please -- I am reading: http://code.google.com/android/intro/tutorial-ex1.html and it says I should look at the DBHelper class, but I can't find that class wnywhere. Dec 04 15:24:44 its in the excersice source code you download on http://code.google.com/android/intro/tutorial.html Dec 04 15:25:02 http://code.google.com/android/intro/codelab/NotepadCodeLab.zip Dec 04 15:25:16 thank you! Dec 04 15:28:09 where is a good source of source code and examples .. other than the google docs? Dec 04 15:29:03 define good ;) Dec 04 15:29:34 at this point the documentation or their official blog is the only place i'd readily read code. Dec 04 15:29:42 I also read the news groups Dec 04 15:29:47 http://code.google.com/hosting/search?q=label:android Dec 04 15:30:04 would be another good place to look at other people's code, whether it's good or not Dec 04 15:30:11 I am looking for absolute beginner examples of hot to create a simple/single activity.. a simple intent receiver... a simple service.. and a simple content provider. Dec 04 15:30:12 ..well i'll leave that up to you Dec 04 15:30:29 how to use the graphics... how to use the net Dec 04 15:30:34 i'd say google's docs at this point are the best place and the discussions Dec 04 15:30:39 I can see the google samples, but that's like 1000s of lines. Dec 04 15:30:54 ok Dec 04 15:31:07 I've set up my own site for my android work... just a skeleton now Dec 04 15:31:10 you really have to just trawl trhough the docs and peice it together bit by bit. its too early for lots of comprehensive examples unfortumately Dec 04 15:31:14 it's assembled by a c++ program I wrote. :-) Dec 04 15:31:23 the api demos can provide good pointers for UI stuff Dec 04 15:31:24 cyb: that's what I'm seeing. Dec 04 15:31:58 I'm actually getting paid to learn android, so i'm happy Dec 04 15:32:12 people are pretty responsive in here though, including some google engineers Dec 04 15:32:14 and I may work on my own company with it in a few months, if I get good enough with it. Dec 04 15:32:24 this channel has been dead every time I've been here. Dec 04 15:32:34 lol maybe its a timezone thing Dec 04 15:32:52 <-- USA / EST / GMT-5 Dec 04 15:33:28 well that ought to be the same for most in here. i'm gmt. maybe its your irc idling threshold hehe Dec 04 15:34:07 * absentia started with IRC in late '88 Dec 04 15:34:14 * absentia can idle like a champ. Dec 04 15:34:17 hehe Dec 04 15:34:30 well i think alot of people on here are west coast usa Dec 04 15:34:36 ya Dec 04 15:34:47 also it's a busy time of year for alot of people. Dec 04 15:35:02 yeah it did die when thanksgiving came around Dec 04 15:35:19 Iw as in mountain time for a while, was difficult. you weren't in yet when est was doing their morning rush.. when you got in, they were out to lunch.. and west coat was just starting up... when you get back from lunch they wer about to leave on the east coast. etc. Dec 04 15:35:29 ya, that's when I got on the chanel Dec 04 15:35:52 hehe mt time what a rough timezone Dec 04 15:36:00 is there a link from that example1 page to the source code to download? Dec 04 15:36:23 i dont think so, its on the tutorial main page though http://code.google.com/android/intro/tutorial.html Dec 04 15:37:09 got it Dec 04 15:37:12 preparing for exercises. Dec 04 15:37:59 what OS (and IDE) do people here use? Dec 04 15:38:46 eclipse with the plugin seems most popular. quite a few use it under linux, some windows Dec 04 15:38:58 though its pretty much the same where eclipse is concerned lol Dec 04 15:40:08 i usually use netbeans for java stuff, but cos of the andoid plugin its easier in eclipse, and i'm starting to really like eclipse now Dec 04 15:43:34 hello ? Dec 04 15:43:44 ah. nevermind. lag. Dec 04 15:44:08 I am using just emacs + java 1.603+ ant ... in suse line 10.1 Dec 04 15:44:26 I had it working before, but I think I'm missing anv env var JAVA_HOME now something now... getting a strange error. Dec 04 15:44:40 suse101-c [716]> ant Dec 04 15:44:40 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher Dec 04 15:46:15 sounds like smething in android overwrote an ant path Dec 04 15:46:24 ya Dec 04 15:46:27 I'm checking it. Dec 04 15:46:32 but it havent even thought about that stuff, eclipse does it for me hehe Dec 04 15:47:00 I'm in the example, doing activity creator.. so I can get a build.xml, and there is src/com ..and so I do activity src.com.blah.blah and its makeing src/src/com ... strange. Dec 04 15:47:34 I've always just found that ides just get in my way Dec 04 15:48:45 i'm like that for some languages, but java classpaths when you have a bunch of libraries just annoys me somehow Dec 04 15:48:55 a Dec 04 15:48:57 h Dec 04 15:49:25 so i give in to the idealised abstraction of java lol Dec 04 15:51:35 ya. I've been trying to learn c++ lately.. so it's feeling a little more like a straight jacket, doing java again. Dec 04 15:57:30 Java feels more like a straight jacket than C++? Dec 04 15:58:00 sure i can see that Dec 04 15:58:27 it depends on your perspective, but if your used to playing with the bits and bytes, java can seem almost arrogant telling you what you can and cant do with your data lol Dec 04 15:58:53 but if your used to working at a higher level, c/c++ can seem like a lot of work for simple things Dec 04 16:00:21 hmm Dec 04 16:00:31 ok, but I still can't understand it Dec 04 16:00:38 Java is a whole lot simpler than C++ imo Dec 04 16:03:13 yeah but its more restrictive Dec 04 16:03:19 type safety and all that Dec 04 16:03:35 i have to shift mental gears between c and java in that respect Dec 04 16:03:36 it's just as easy to screw up... in different ways Dec 04 16:03:54 Java's got type safety too? Dec 04 16:04:01 perhaps not as many types though Dec 04 17:33:59 Luniv: lol, some other guy released an RSS reader yesterday and the poor guy copied quite a bit of my terrible code. i feel bad for him :) Dec 04 17:35:38 heh Dec 04 17:36:51 anyway, gotta run to work. Dec 04 18:14:39 at work :( Dec 04 18:23:10 so on the iPhone, it's pretty easy for me to "host" Safari as a view in my app. Is there an equivalent in Android? Dec 04 18:45:48 how do you turn of that google monitoring your eclipse stuff? Dec 04 18:46:07 i accepted it at first but want to turn it off Dec 04 19:06:43 yay Dec 04 19:06:50 better day today (so far) than yesterday. Dec 04 19:06:56 how so? Dec 04 19:07:11 oh, wrong channel. :-> just not as much sh!t (not) happening today. Dec 04 19:08:23 djMax: Yes, there is. Read the documentation for WebView. Dec 04 19:08:53 cool, thx. I see it in the docs now but didn't see any samples (on first glance) so got worried. Dec 04 19:08:59 djMax: There are also examples with this functionality. Read them. Dec 04 19:09:20 I didn't see any on the emu, but I'll dig around. Dec 04 19:09:37 It will be clearer when I read the book. Is that out yet? :) Dec 04 19:10:16 (Somebody is almost done with an iPhone dev book apparently, and that's not even "sanctioned" dev yet) Dec 04 19:11:08 djMax: It is clear if you grok the ApiDemos source. Dec 04 19:26:33 if anyone knows how to undo that google spyware thing in eclipse tell me :) Dec 04 19:35:55 you're being totally paranoid Lede, Google don't write no spyware Dec 04 19:52:00 haavi: if you installed the eclipse plugin it asked if you allowed google to collect statistic information or something Dec 04 19:52:39 oh yeah I remember that now Dec 04 19:52:56 it's not spyware as it's not looking at YOU Dec 04 19:53:02 it's looking at statistical info ;) Dec 04 19:53:04 exactly Dec 04 19:53:06 ...or something like that Dec 04 19:53:15 and it's probably totally anonymous Dec 04 19:53:22 also they asked you, so it's not exactly being a good spy either Dec 04 19:54:01 my guess though Lede is that you'd have to reinstall the plugin to change that setting Dec 04 19:54:44 yeah. Dec 04 19:54:51 i know you can change it Dec 04 19:54:56 i just can't find the panel it's on now Dec 04 20:07:29 suse101-c [797]> ant Dec 04 20:07:29 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher Dec 04 20:07:50 anyone know if I need to set ANT_HOME or CLASSPATH or something... I had this working before, but since I logged in again, it's not working.. not sure why Dec 04 20:18:29 ok, fixed that one. got another error.. fixed that. working now, again. yay. Dec 04 20:53:50 hi again morrildl. Dec 04 20:55:50 jasta: howdy Dec 04 20:59:49 morrildl: are you guys holding back a more mature SDK :P Dec 04 21:06:25 doh Dec 04 21:09:19 has anybody played with the QRCode and UPC readers? Dec 04 21:09:48 the UPC one seems remarkably bad (probably the fault of hardware not software) Dec 04 21:57:14 * Lede is suddenly getting database errors Dec 04 21:57:28 nice way to end the day and go to sleep :P Dec 04 22:48:57 hi, hope someone can help me trouble shoot . I'm a complete newbie, but trying the steps on (http://code.google.com/android/kb/troubleshooting.html) to see why my app isn't showing up. Dec 04 22:49:17 I've successfully built hello world and lunar lander in Eclipse, but now my own app isn't showing up. Dec 04 22:49:32 there's no mention of it in 'adb logcat' Dec 04 22:50:08 I checked AndroidManifest.xml and it seems ok to me. Dec 04 22:50:57 I don't know how to validate this step in Eclipse: "Did you send your .apk file to the device (adb install)?" - Should I expect the Eclipse Run dialog to handle this? Dec 04 22:55:22 I don't use eclipse.. so I am not sure what to suggest Dec 04 22:55:32 all the docs for eclipse seem to indicate that all this just happens magically... Dec 04 22:56:10 theonly thing I've seen is that sometimes there may be an issue wit the emulator being stuck -- and perhaps to adb kill-server, stop the emulator, start the wmulator and adb start-server .. but not sure if that affects eclipse. Dec 04 22:56:26 I'm new to eclipse too, but it seems like it has lots of nice automation. Dec 04 22:57:42 thanks, absentia Dec 04 22:58:05 yeah killing any strat adb processes can help, and i've also seen deleting the img file for the emulator help Dec 04 22:58:15 it maintains state between runs unless you delete that Dec 04 22:58:30 adb shell Dec 04 22:58:34 cd /data/apps Dec 04 22:58:34 ls Dec 04 22:58:47 emulator -wipe-data can be useful, too. Dec 04 22:59:16 i exploded my home screen app once, and had to do that. Dec 04 22:59:36 yeah that should have the same effect Dec 04 23:00:01 ls /data/app shows myapp.apk is there. Dec 04 23:00:08 yay for that Dec 04 23:00:28 silly question, but your app does have an Activity right? Dec 04 23:00:56 I'll check to be sure - after all, I am a complete newbie Dec 04 23:01:12 cos if theres no Activity subclasses, theres no UI and nothing to see hehe Dec 04 23:01:30 the AndroidManifest.xml has an Dec 04 23:01:56 yeah, I have a public class myapp extends Activity Dec 04 23:02:45 it has an OnCreate(Bundle icicle) which calls setContentView(R.layout.main) Dec 04 23:03:44 what's the pattern for putting lots of debug printfs to the console? Dec 04 23:04:03 or does Eclipse have something smarter I should use? Dec 04 23:04:11 Log.v Dec 04 23:04:49 thanks Dec 04 23:05:16 you can open the debug and/or android DDMS perspective for general debugging too Dec 04 23:07:11 anyone know offhand how to pipe System.err to Log.v? Dec 04 23:08:08 create your own PrintStream that calls Log.v and use System.setErr()? Dec 04 23:08:12 (this is from j2se) Dec 04 23:15:29 davidw: any joy? Dec 04 23:20:12 hi cybereagle, I'm trying the debug and DDMS perspective, thanks. I can see myapp.apk in ls /data/app, but it doesn't appear anywhere in logcat. Where should I expect it to show signs of having been loaded and/or launched? Dec 04 23:22:01 well if you have ddms open when you launch it you should see in the log window everything that gets loaded Dec 04 23:22:23 if i were you i'd try deleting ~/.android/userdata.img (unless your under windows?) Dec 04 23:22:31 I added category LAUNCHER in AndroidManifest.xml - is that the right way to get a launcher icon somewhere on the Applications folder in the Android user gui? Dec 04 23:22:56 I'm running Eclipse under windows Dec 04 23:22:59 yeah, inside your activity tag Dec 04 23:23:10 Dec 04 23:23:31 yes, I have that verbatim inside my activity tag Dec 04 23:24:00 in windows C:\Documents and Settings\\Local Settings\Application Data\Android\ contians the img and an emulator config Dec 04 23:24:09 if you delete them they will be recreated from scratch Dec 04 23:24:20 ok, will try that Dec 04 23:24:36 once in a while something gets stuck and that kind of hard reset seems ot help Dec 04 23:25:16 if that doesnt help i guess it must be something in your app, though from what you said so far it all sounds in order Dec 04 23:28:33 nope, sorry. I quit the emulator, trashed those two files, restarted, and have similar missing activity Dec 04 23:28:48 I will have to log out and run along for now, thanks for all of your help Dec 04 23:29:04 ok, hope you fix it later :) Dec 04 23:47:43 hrmm, forgot I had irc running at work Dec 04 23:48:01 jasta: lol really? you should be flattered ;) Dec 04 23:56:57 i'm thinking about taking care of some big refactorization instead of doing the icon just yet. Dec 04 23:57:04 actually no, that doesnt make any sense Dec 04 23:57:10 it would be better to implement that first hehe Dec 04 23:57:38 i did end up just getting drunk last night hehe, so i gotta play catch up :) Dec 04 23:58:12 screw work, im out. Dec 04 23:58:38 or, better yet, i'll just start working on android stuff :) Dec 05 00:01:09 heh Dec 05 00:05:33 believe it or not, there are more distractions at work than my house though :) Dec 05 00:09:38 I believe it Dec 05 00:09:46 it's the same for me, heh Dec 05 00:46:33 hmm, that's lame. Dec 05 00:46:46 i assumed that subclipse would be capable of issuing svn move commands if you move/refactor, but apparently it issues delete/add. Dec 05 00:46:49 that is very bad. Dec 05 00:48:11 oh well, this is just a dummy project anyway. Dec 05 00:51:31 it doesn't? Dec 05 00:51:39 blah Dec 05 00:51:48 it didn't seem to? perhaps there was something special i had to do? Dec 05 00:51:56 lol no idea Dec 05 00:52:04 I use tortoisesvn most of the time Dec 05 00:52:25 i would have issued the commands manually and had eclipse sort out the code refactoring if i had known... Dec 05 00:52:40 i just kind of assumed it would support this. Dec 05 00:54:07 ine would think Dec 05 00:54:09 *one Dec 05 00:54:45 i think it would be neat if android had a cool history visualization/management interface. Dec 05 00:54:58 so instead of just going back, you could visualize the whole thing and jump to specific apps Dec 05 00:55:55 kinda like expose? Dec 05 00:56:21 is it possible to get the history records though? Dec 05 00:58:26 well, time for the trek home Dec 05 01:00:03 few people have spoken about having some thing like that Dec 05 01:10:49 Luniv: well, no, but i mean, the platform should implement this :) Dec 05 01:10:52 not a specific app Dec 05 01:11:08 im pretty sure they will do something like that though. did you see the webkit demo they gave? Dec 05 01:11:14 it had some cool 3d history thing Dec 05 02:09:16 Luniv: i'm lifting your DAO code ;) Dec 05 02:09:30 i decided to tidy up afterall. Dec 05 02:23:13 oh? Dec 05 02:23:35 no images tonight? :p Dec 05 02:29:48 maybe not, unless i code later than i expected :) Dec 05 02:29:56 than i expect* Dec 05 02:30:59 i'm sick of working with all this clumsy, disorganized code. Dec 05 02:33:07 :D Dec 05 02:33:32 it's nice to be able to actually do something about it though, isn't it Dec 05 02:33:38 instead of being shackled with it Dec 05 02:39:08 definitely. untidy code is frustrating :) Dec 05 02:40:26 can't wait to look at all of google's untidy code :) Dec 05 02:40:30 lol Dec 05 02:40:36 ^^ Dec 05 02:41:01 hrmm Dec 05 02:41:23 I seem to be able to kill my process by refreshing all the feeds Dec 05 02:42:08 I'm manage to fill up the GREF (Global Reference Table?) Dec 05 02:42:23 i've been able to get my process to emit SIGBUS somehow the past week or so. Dec 05 02:42:30 that excites me. Dec 05 02:42:34 lol Dec 05 02:42:40 that's more impressive then me lol Dec 05 02:43:08 considering that the privilege context i'm working in shoudl not permit that, yes :) Dec 05 02:43:33 anyway, i'm closing up here at work. gonna grab a bite to eat then resume when i get home. Dec 05 02:43:37 see ya. **** ENDING LOGGING AT Wed Dec 05 02:59:56 2007