**** BEGIN LOGGING AT Sun May 31 02:59:57 2009 May 31 06:09:44 A google group for ADC2 participants: http://groups.google.com/group/adc-2 May 31 07:08:28 what is a good strategy for making it very very easy (1 click) for my users to buy the full version from within the free version ? May 31 07:09:18 download the modules on the fly, and self update May 31 07:13:13 muthu: ive never done that before. i think the bottom of this page is related: http://developer.android.com/guide/publishing/publishing.html May 31 07:17:59 yea, publishing upgrades explains May 31 07:21:00 hey, i was wondering if anyone has the init for android compiled as armv5? May 31 07:53:30 where can i find some information to add a new entry in the "share" option when taking a pic with the phone ? May 31 07:55:55 and is it available for api level 2 ? :) May 31 08:02:54 testing 123 May 31 08:03:02 456 May 31 08:03:51 Very strange, what I have posted to the android-developers@googlegroups.com does not appear in the group. May 31 08:05:50 I wonder if I have done something wrong, or else. May 31 08:08:29 ker2x_: The way to achieve this is to set the correct intent-filter in your manifest file. If you check the logs once you select share from the camera you will notice it saying that it is filtering a given category and action, set these in your intent filter and your app will magically appear in the list May 31 08:09:11 yay \o/ May 31 08:09:18 thank you :) May 31 08:10:22 i'm not a developper, and bad at java. and i find android development easy enough. very well done May 31 08:10:38 Any one know how to use raw resource files from TestCase's ? ie: how would one access the resources of the test activity from a unit test? Or do I need to use an activitytestcase with a null activity May 31 08:12:02 ker2x_: Sounds like you are developing an android app - that means you are a developer May 31 08:12:26 well... kinda. butits not my job. i'm unix sysadmin May 31 09:56:54 hello May 31 09:57:04 i would like to read logcat output in a program May 31 09:57:07 how can i do ? May 31 10:11:39 rlifchitz: you could just execute adb logcat and read stdout May 31 10:11:56 ok May 31 10:12:04 but how can you launch an external program May 31 10:12:14 and read its output ? May 31 10:12:42 is it possible to launch "logcat" within a Android program ? May 31 10:12:55 doesn't it require root ? May 31 10:16:58 I'm trying to register a broadcast receiver for changes in date/time, do I need any particular uses-permission? casue changing date/time/timezones does not trigger my receiver. May 31 10:18:26 AmirMohammad - use an alarm May 31 10:20:35 skyPhyr: sorry, but care to elaborate a little more? May 31 10:21:39 AmirMohamma: the android.app.AlarmManager allows you to set alarms for particular times May 31 10:22:29 AmirMohammad: sorry - missed the d, but yeah - there's a set function which you can use to set the time for the first and interval for repeats May 31 10:26:03 skyPhyr: hmm, I'm writing a calendar widget. it simply converts gregorian to jalali and display it in a 1x1 widget. I just want to monitor changes in date/time in order to update the widget. I can set updatePeriod to say once per minute but that would kill battery. May 31 10:26:47 ahhh - there is a special type that should be suitable for something like this... and it's vanished from my brain... thinking May 31 10:29:01 AmirMohammad: check out Chronometer - it's a type of View, but maybe it's suitable for what you want May 31 10:29:29 skyPhyr: ok, thanks :) May 31 10:29:56 AmirMohammad: also feel free to use an alarm May 31 10:30:03 but if you do, don't set it to wake the phone May 31 10:30:28 this way it won't wake the phone up and drain battery, but it will make sure it redraws when the phone is awake May 31 12:09:42 is it possible to create background processes that hook to events that happen on the phone May 31 12:10:02 an example would be last.fm scrobbling when any audio file with artist metadata is played May 31 12:13:30 hey folks i swapped to .ogg and all my sound problems have gone!! May 31 12:28:38 any thoughts on setting fullscreen programatically? May 31 12:28:43 or via xml May 31 12:29:51 recursv: no titlebar, etc? May 31 12:29:57 yep May 31 12:30:14 messing with a game and i want control ! May 31 12:30:19 the "you really shouldn't do it this way" way is May 31 12:30:20 requestWindowFeature(Window.FEATURE_NO_TITLE); May 31 12:30:20 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); May 31 12:30:31 thanks ' May 31 12:30:43 the "you should do it this way" way is through themes I think May 31 12:31:47 Great, thanks May 31 12:35:17 yw May 31 12:52:11 I'm trying to create a "Menu" page with 2 (or eventually 3?) images which toggle as they are selected. May 31 12:52:19 I've tried ImageButton, Button, but it's harder than it should be May 31 12:54:36 I've even tried StateListDrawable, but that seems to disable the touch screen May 31 12:55:57 weird, "android.intent.action.DATE_CHANGED" broadcasts when a user manually changes the date, but seems not to broadcast when date moves to the next day (in 00:00) May 31 13:00:37 AmirMohammad: well, why would such a thing be useful ? May 31 13:00:46 you can set an alarm to get the same thing May 31 13:16:58 Could somebody please help me understand StateListDrawable? May 31 13:44:02 anyone got any idea how to write a text file to sd card? May 31 13:44:06 google isnt turning up much May 31 13:52:15 new File("/sdcard/.....") then standard java io May 31 13:52:35 of course, then you gotta handle stuff like the sdcard not being available, being full etc May 31 13:52:41 * TD was just writing some code to handle that in his app May 31 13:53:16 TD, yikes, don't do that May 31 13:53:27 use Environment.getExternalStorageFolder() or whatever it is May 31 13:53:58 oh, right, yeah. actually i just checked and i'm already doing that :) May 31 13:54:01 * TD has a faulty memory May 31 13:54:03 Gaz, my code is May 31 13:54:14 phew May 31 13:54:16 :) May 31 13:54:24 http://pastebin.com/m3cb756a5 May 31 13:54:41 although i bet loads of apps do just new File("/sdcard/..."); May 31 13:54:50 the File constructor should check for that actually May 31 13:54:52 TD, I was guilty of it once May 31 13:55:03 well, the example of Windows shows it's gonna happen May 31 13:55:36 it'd also be nice if there was an API for creating app-specific directories on it May 31 13:55:45 TD, yeah, that would be really nice May 31 13:55:48 although, i bet this sort of this will become less common as G1s eventually fall out of use May 31 13:55:55 the magic has a lot more internal storage right ? May 31 13:56:01 yes May 31 13:56:17 but I still think that some things should be stored on external storage May 31 13:56:21 yeah May 31 13:56:30 ok, thanks. May 31 13:56:32 * TD -> outta here May 31 13:58:26 anyone had any luck adding a header/footer view to a ListActivity? May 31 14:41:16 how do i handle an orientation changes on a widget? May 31 15:36:41 want to ask if its possible to have a something like loader when calling DefaultHttpClient? tnx May 31 15:47:02 almondmendoza, what do you mean "something like loader"? May 31 15:49:43 something like a Toast, i had done something like create a Toast show it, after that call DefaultHttpClient but what happens is that the toast is delayed and is only visible after the call to DefaultHttpClient and XMLPullParser is done May 31 15:50:18 almondmendoza, you're probably doing your work on the UI thread which is wrong May 31 15:50:36 almondmendoza, you should be doing your HTTP stuff on a separate thread (see AsyncTask) May 31 15:50:56 ic cool, ill study it tnx May 31 15:55:23 hi May 31 15:55:37 can someone help me with this repo problem? http://groups.google.com/group/repo-discuss/t/6e163e636cd89b04?hl=en May 31 16:05:11 Serdar: Connection timed out sounds more like a problem with your network May 31 16:05:26 Serdar: or the git daemon at kernel.org was down May 31 16:13:03 KNY its working perfectly, thanks a lot May 31 17:06:19 is there a way to use prepared statements with LIKE? Example: SELECT foo FROM bar WHERE foo LIKE '?%' <-- doesn't work May 31 17:11:23 KNY: I'm incredibly rusty with SQL stuff, but I'd suspect it's the ?% May 31 17:11:51 Qwell, I think I got it--just bind the value of: query + "%" May 31 17:11:57 and just stick with ? in the sql May 31 17:12:05 right, exactly May 31 17:59:30 is the overlayed search widget in the market app a custom view, or something available in the sdk? May 31 18:09:00 http://playerx.sourceforge.net/doom.html <-- source code giving 404, anyone know where I can get it ? May 31 18:23:12 wmealing_: http://www.lmgtfy.com/?q=android+doom+source ;) May 31 18:24:07 * wmealing_ sighs May 31 18:24:25 you havn't tried that have you May 31 18:24:32 i have May 31 18:24:36 shows the source code in the second result May 31 18:24:56 not on mine May 31 18:25:02 that's odd May 31 18:25:05 http://code.google.com/p/doom-for-android/source/checkout May 31 18:25:13 this is what shows up in the results May 31 18:25:30 could be just the google i'm using , who knows May 31 18:25:33 thanks May 31 18:25:46 hrm, I'd really like opengl es based doom ... May 31 18:26:48 sometimes it really annoys me that google doesn't pay attention to the configured preferred language of the browser May 31 18:27:24 simply prefers content in the language it determines by ip based guesswork May 31 18:27:35 nbd: good to know it's not just me then May 31 18:28:22 somebody should tell them there's a standard for that ;( May 31 18:28:24 ;) May 31 18:28:37 nbd: I've been wondering why I keep getting french results first, although my interface language is in english and english is set to be the preferred language May 31 18:29:18 I wish you could do if(var == (null || size() == 0)) May 31 18:29:22 that'd be handy May 31 18:33:39 lol, there's a funny thing about the android doom stuff: http://code.google.com/p/support/issues/detail?id=2551 May 31 18:35:06 haha, I like how it's posted as a bug (and marked WONTFIX) May 31 18:39:46 ha May 31 18:39:52 I love folks who don't understand free software May 31 18:40:18 technically he has lost the right to distribute the prboom code for all time now unless every contributor formally forgives him May 31 18:43:17 yeah, just noticed that too May 31 18:43:55 wtf? part of the source code is GPL v1 (!) May 31 18:44:09 without 'or any later version' May 31 18:44:16 doom was released forever ago May 31 18:44:29 i'm talking about java source files May 31 18:44:44 the c files seem to be v2 or later May 31 18:44:53 hrm ... it's ok IIRC doom was released under gplv2+ so they are in fact gplv2+ May 31 18:45:14 well, the GPLv1 java files would be incompatible then May 31 18:45:25 the alternate is that it is illegal to distribute binaries of the doom port at all May 31 18:45:39 maybe it's just a typo May 31 18:45:45 apparently the guy is in gpl violation himself May 31 18:45:45 as he distributed binaries, but the source he provided is not enough to create those binaries May 31 18:45:49 header files and other things missing May 31 18:46:14 wmealing_: yes, and if he distributes *at all* now as a result he is violating the gpl even if he supplies the headers... May 31 18:46:19 the gpl is vicious to violaters May 31 18:47:07 It has the spirit of RMS losing his entire community to proprietary forks ... "play nice or we'll bit your damn head off" May 31 18:49:25 poor guy. May 31 18:49:42 poor *us* May 31 18:49:43 i understand why he wants it.... just went about it entirely the wrong way May 31 18:49:52 oh, the vladmir guy I dunno May 31 18:49:57 he's been a huge dick about it May 31 18:50:13 kind of makes me think he might be some stupid fifteen year old May 31 18:54:55 has a nice quote in there somewhere, in the ticket resolution with google May 31 18:55:02 "can i unpublish my work" May 31 18:55:28 http://code.google.com/p/support/issues/detail?id=2551#c2 May 31 18:55:44 ah, you linked that earlier May 31 18:56:33 http://code.google.com/p/doom-for-android/issues/list too May 31 18:56:37 see the dupe posts May 31 18:57:21 oh interesting. welcome to the GPL. May 31 18:57:43 yep May 31 18:59:39 also heh "you left out some header files. you're legally required to distribute them. i can has source?" May 31 18:59:45 is it possible to hook received sms and modify them on the fly ? May 31 19:13:45 i have been working through the notepad tutorials...what is the best way to customize the look of that list view... i have seen other tutorials where the height of each item in the list is tall... do you just customize this in the xml file? May 31 19:14:25 hmm how to add a sd card to the emulator? May 31 19:14:51 jbrkb, yes May 31 19:15:04 thanks May 31 19:15:09 deebo, you add one when you set up the AVD, IIRC May 31 19:15:52 apparently theres an mksdcard tool that creates a fat32 image, but that doesnt help me on windows :) May 31 19:16:40 is there any way to have multiple widgets on the desktop with individual pending intents? May 31 19:16:47 (why not ?) May 31 19:17:27 its not making itself apparent to me, and i need my widgets to perform actions on themselves May 31 19:17:56 oh sorry ObsidianX , that was for deebo May 31 19:18:22 mmk =) still important to explain myself though ;P May 31 19:19:00 agreed May 31 19:19:05 deebo, http://www.anddev.org/emulating_a_sd-card-t263.html May 31 19:19:21 im obviously too tired.. catch you guys later. May 31 19:19:27 * wmealing_ tips his hat May 31 20:07:55 how do I set style="?android:attr/buttonStyleSmall" without using XML? May 31 20:10:22 i don't think you can; that's an xml attribute itself that just points to another resource May 31 20:10:28 what are you actually trying to do? May 31 20:10:39 ctate: that's not true... May 31 20:10:58 it's a parameter on the constructor View(Context, AttributeSet, int) May 31 20:11:04 jasta: oh? it's certainly implied by the doc. sigh. May 31 20:11:09 the final int refers to the attribute you want to reference from the theme May 31 20:11:12 inasmuch as its value is a resource ID. May 31 20:11:29 so new Button(context, null, android.R.attr.buttonStyleSmall) will do it. May 31 20:12:10 obtainStyledAttributes is magic. it will take care of it. May 31 20:12:11 oh, i thought he was asking how to *change* that style May 31 20:12:15 not specify it May 31 20:12:24 i didnt parse it that way? let's clarify :) May 31 20:12:30 yeah, you're probably right May 31 20:12:53 how do i create a button in the small style for the current theme? that's a more useful question, anyway :) May 31 20:13:06 (also man what is it with people dynamically creating layouts? wack.) May 31 20:13:24 that said, i dont think you should ever do layout construction without the aid of XML. it's clumsy looking in code. May 31 20:13:44 and tedious and error prone and... May 31 20:13:49 and code size matters May 31 20:13:50 etc. May 31 20:14:11 yeah there's just no reason to do it ever May 31 20:22:06 I think you two scared Rexxars away May 31 20:30:45 How do I purchase a game from myself? May 31 20:31:49 svm_invictvs: with actual money I'm afraid May 31 20:32:07 It says it's against google's policies. May 31 20:32:16 But, i wanna make sure what I put up there is all in order May 31 20:32:19 for testing, y'know? May 31 20:32:22 so android is a linux system and you can basically do anything you want with it? like bring up a console? write a program? ssh to my home box? etc... ? May 31 20:32:39 methods: kind of... May 31 20:32:57 methods: console, yes, write a program, yes, ssh to whatver, yes .. get root, not without rooting your phone May 31 20:33:35 well yea i would imagine by default they are trying to be user freindly... but if your a hacker type personality then the system is yours to do whatever right? May 31 20:33:57 svm_invictvs: sucks, but at least it's in line with google's "Users ueber alles, Devs should be thankful" ;) May 31 20:34:01 hm is there any opengl and 3d graphics ? May 31 20:34:36 does google read your phone and send you targeted adds and such ? May 31 20:34:46 methods: no May 31 20:34:50 at least not for me May 31 20:34:52 methods: May 31 20:35:05 methods: Yes, there's hardware accelerated graphics in Java May 31 20:35:16 hm in java only ??? May 31 20:35:25 Well, the apps are written in Java May 31 20:35:31 is the whole thing java based? **** BEGIN LOGGING AT Sun May 31 20:37:22 2009 May 31 20:37:49 svm_invictvs: ahh .. yes. the market comments.. always sooooo helpfull and full of genuine niceties May 31 20:37:58 any idea why they chose to use tmobile ? i mean do they even have 3g like speed ? May 31 20:38:23 methods: what is "3g like speed" ? May 31 20:38:36 like evdo May 31 20:38:41 methods: the G1 has 3G, 2G and wifi .. oh and blutooth . May 31 20:38:46 so I guess that the answer is yes May 31 20:38:58 hm but calls can't migrate onto the wifi network can they ? May 31 20:39:20 Well, if somebody would purchase my app and confirm for me that it's up there okay, I'd be much appreciated. ;) May 31 20:39:33 methods: write a P2P voice apps, and make it do it May 31 20:39:39 i assume someone has written a nice voip app for it so i could use my voip service at home or in hot spots ? May 31 20:39:48 svm_invictvs: I would, but I don't have access to paid aps from where I live :/ May 31 20:40:07 methods: not that I know of, so .. you're welcome to do it :) May 31 20:40:14 ah it uses arm... May 31 20:40:38 hm yea but i mean there is plenty of voip programs couldn't you just download any voip program that runs on linux and compile it ? May 31 20:41:23 methods: you could, but then you'd be limiting your application to one specific phone running android, wouldn't you? :) May 31 20:41:39 methods: unless of course you find another phone which has exactly the same hardware May 31 20:42:08 well I'm asking if i could download and compile any normal linux program and run it on the screen ? May 31 20:42:12 there are, going by some press release from Google IIO, around 20 phones running Android coming out May 31 20:42:29 methods: all I can say is : try it out May 31 20:42:46 how could i do that? May 31 20:42:49 methods: or ask in #android ... the people there are probably better to answer such questions May 31 20:43:15 yea idk i mean would i have to use java to get access to hard ware and such or is this just a normal linux system with device drivers and such ? May 31 20:43:42 methods, seriously head to #android... all the modders and rooters are there :) May 31 20:44:11 methods: so they'll probably know better than people here, who are generally more into writing apps for Android, and thus more into java May 31 20:44:56 where is the android phone list ? May 31 20:45:56 http://lmgtfy.com/?q=android+phone+list May 31 20:45:58 there May 31 20:46:08 lol May 31 20:46:14 anyone used the lastfm java bindings on android? May 31 20:46:42 im trying to and im getting clear failures that i doubt should be happening, wondering if its really just plain bugged or is it some implementation thing May 31 20:47:20 hm so is there a nice keyboard like on the iphone instead of using the physical one ? May 31 20:48:06 also, any ideas how to make logcat "work", when running the emulator through eclipse i have to always close and reopen the logcat view, otherwise it just stops updating May 31 20:50:36 method, depends which Android phone May 31 20:51:11 yea but it should just be an app you can install May 31 20:53:53 methods: ah ... sorry. misread your question May 31 20:53:58 yes, there is a softkeyboard May 31 20:55:49 ? May 31 20:56:06 It shows 8 active orders in my transactions inbox. May 31 20:57:04 is there any way for me to have multiple instances of a widget on the desktop but have each one contain a separate PendingIntent? May 31 20:58:39 svm_invictvs: nice May 31 20:58:55 svm_invictvs: wait for the transaction to actually occur May 31 20:59:01 I see May 31 20:59:04 it takes 24 hours May 31 20:59:15 This is messed u May 31 20:59:16 p May 31 20:59:23 I can't re-enter my bank account info May 31 20:59:31 I think I messed it up because I'm not seeing google's deposits. May 31 21:01:00 svm_invictvs: don't start spending the money just yet though. At least for me, the cancelation rate is rther high May 31 21:01:18 OH yeah, I noticed May 31 21:01:27 sammyF: What's your app? May 31 21:01:30 sammyF: People are assholes. May 31 21:01:34 haha May 31 21:01:46 I noticed people just say my game's too short. May 31 21:01:47 credit cards with one week of validity left generally May 31 21:02:13 sammyF: I'm talking about the deposits that google makes to validate your bank account. May 31 21:02:29 svm_invictvs: "pin it" and "chibiny's crazy maze" are mine so far. both in games->casual May 31 21:02:41 ah May 31 21:02:48 sammyF: Guns of Legend in Arcade & Action May 31 21:03:09 What is the "Lite" version of a game. May 31 21:03:16 As I understand it, it's a demo version May 31 21:03:24 demo version May 31 21:04:20 ahh ... and as I see, you get "force close issues" too May 31 21:07:06 I can't seem to reproduce them. May 31 21:07:17 svm_invictvs: welcome to the club :/ May 31 21:07:27 I'm pushing an update which I think solves the problem. May 31 21:07:38 That I don't even know i Have. May 31 21:08:41 yep. Didn't crash at all so far here May 31 21:08:44 nice artwork btw :) May 31 21:09:09 (c) 2008? May 31 21:09:14 you sure about that one? May 31 21:09:50 docs say that I have to set data authority to be able to filter by pathPattern; but I would like to handle local files as intents with scheme="file" and pathPattern="*.foo"; what should I specify in data authority for file scheme? May 31 21:11:10 ANR (app not responding) issues are because you're spinning too hard on the main thread, preventing it from responding to input or draw events etc within 5 seconds of delivery May 31 21:11:24 sammyF: yes, I'm sure. We put the first screenshots up in 2009 May 31 21:11:27 sammyF: yes, I'm sure. We put the first screenshots up in 2008 May 31 21:11:29 rather May 31 21:11:30 lol May 31 21:11:47 :) May 31 21:12:00 then it should probably be (c) 2008, 2009 May 31 21:12:19 sammyF: yeah, I worked at a place and every year they'd change all their source files so the copyright was "up to date" May 31 21:12:44 I tried to explain to them that in the case of a suit, you want to be the one with the earliest copyright. May 31 21:13:41 If I publish a game, today and I don't have a registered copyright. May 31 21:14:17 Somebody could just potentially copy it all they want. May 31 21:14:24 You shouldn't just change the year like that, heh May 31 21:14:42 And if a year from now it's "updated" May 31 21:14:44 There's nothing substantial to copyright. Once there are significant enough changes, then sure, change it. May 31 21:15:09 Qwell: basically yeah. May 31 21:15:18 Or if two people publiish similar works. May 31 21:15:34 ANd there's allegations of infringement May 31 21:15:58 The court will award the suit to the person who can prove that they had it first. May 31 21:16:49 hmm May 31 21:16:55 anyone run across gmail intents to open specific threads? May 31 21:17:18 well ... as I've only been developping for Android for a month, at least I don't have the problem ;) May 31 21:17:38 svm_invictvs: on the bad side of things : your game is nice but I seriously couldn't crash it May 31 21:17:50 :P May 31 21:18:30 sammyF: iPhone version comes out in a month or so ;) May 31 21:18:42 I really hope they update the market a bit, at least so that we can get better bug reports :/ May 31 21:18:49 Yeah, exactly. May 31 21:18:56 svm_invictvs: nice. can't write for the iPhone myself. Don't have a mac :P May 31 21:19:13 sammyF: also blackberry, and ovi May 31 21:20:27 svm_invictvs: cool :) i'm a one man team, so writing for one platform is tough enough I'm afraid :) May 31 21:20:42 we're 5... May 31 21:21:13 2 programmers, 2 artists, and 1 guy who does both May 31 21:24:06 that probably helps a lot May 31 21:24:34 spent the whole night creating "achievement" gfx, and two nights ago doing sound loops ;) May 31 21:24:49 and then writing the code for that ;) May 31 21:28:18 whats the simpilist way to have a layout for port. and one for landscape? and switching between, whats this i hear about autorot? =) May 31 21:29:50 * critta is just wondering if theres something in xml that can spec which layout file is for land/port, or does it have to be done programatically May 31 21:31:10 any idea why android:pathPattern=".*.foo" doesn't match, but android:pathPattern=".*foo" matches? May 31 21:31:57 critta: there's nothing to do May 31 21:32:08 just put your XML layout in res/layout-land for landscape May 31 21:32:14 and a file with the same name in res/layout-port May 31 21:32:24 romainguy, cool, thats what i thought, sweet.. thanks May 31 21:32:26 romainguy: where can I read up on some details abotu the listview settag bug May 31 21:32:35 what listview set tag bug? May 31 21:32:51 you mentioned it at i/o May 31 21:32:56 it's not a bug in listview May 31 21:33:02 it's in simpleadapter May 31 21:33:02 adatpors? May 31 21:33:04 and it's not a bug May 31 21:33:09 well May 31 21:33:15 it's just that the adapter uses the tag May 31 21:33:18 romainguy and i disagree on whether it's a bug :) May 31 21:33:20 but it's fixed in donut May 31 21:33:24 ctate: it's not May 31 21:33:26 and you're wronge :) May 31 21:33:29 -e May 31 21:33:42 heh May 31 21:33:42 ctate: you may call it a regression if you want :p May 31 21:33:45 well, either way is there any where I can read about it, so that my changes to fix it in cupcake apps don't break when donut rolls around May 31 21:34:00 or is it just going to flat out go back to the precupcake way? May 31 21:34:17 it'll go back to pre-cupcake May 31 21:34:32 and donut just makes tags even better May 31 21:34:35 is there a suggested way to handle that transition gracefully? May 31 21:34:37 you can now call setTag(int, Object) May 31 21:34:41 yhes May 31 21:34:43 SimpleAdapter and, um, one other adapter May 31 21:34:44 don't do anything May 31 21:34:48 SimpleListAdapter or whatever May 31 21:34:48 if it works, it works May 31 21:34:56 ctate: SimpleCursorAdapter May 31 21:35:00 ah right that one May 31 21:36:00 gah May 31 21:36:02 I have slides to do May 31 21:36:03 fuck May 31 21:36:06 ? May 31 21:36:22 ctate: CommunityOne tomorrow and JavaOne on Wednesday and Friday May 31 21:36:30 i'm so sorry. May 31 21:36:51 I like giving the talks May 31 21:36:54 but I hate slides May 31 21:36:57 lol May 31 21:37:23 romainguy: Powerpoint hell? May 31 21:37:27 yawn May 31 21:37:34 sammyF: no, I'm pretty happy about Keynote May 31 21:37:37 but slides are just boring May 31 21:37:43 and conferences require them May 31 21:37:51 i could give you some tips on how to make them less boring May 31 21:37:52 and they require the use of their ass-ugly templates :) May 31 21:37:53 but i'd get fired May 31 21:37:58 ctate: hehe :)) May 31 21:39:27 hello! May 31 21:41:57 how many apps entered in ADC 1 May 31 21:42:10 cause some of the 100,000 winners dont sound worth it May 31 21:42:53 blame that on the judges, not on the number of participants May 31 21:42:55 but maybe im just jealous May 31 21:49:01 I'm trying to run adb with htc Kaiser but adb devices lists no devices. May 31 21:49:21 Is there something I need to do to get the device to talk to the adb server? May 31 21:49:33 and that's what you'd expect from a device which doesn't implement the adb protocol... May 31 21:49:49 tre9: the first step would be to use lsusb to confirm that your host is actually seeing the device May 31 21:50:08 ok. do you know if Kaiser supports usbnet or anything like that? May 31 21:50:46 have you just booted it into linux or is the android stack up? May 31 21:51:00 actually, lets move this conversation to #android May 31 21:51:03 this is a developers channel May 31 21:51:22 ok, sorry May 31 22:11:36 <_duncan> /j nginx May 31 22:11:59 <_duncan> whoops May 31 22:46:30 http://osteele.com/images/2008/git-transport.png FTW May 31 22:46:53 that's like the single most useful diagram of git operation *ever* May 31 22:49:03 indeed May 31 22:49:11 * ctate bookmark bookmark May 31 22:57:48 nice find, ctate May 31 22:58:02 not i; someone else here came across it May 31 22:58:04 but yeah May 31 23:11:33 Hi May 31 23:12:20 Can I restore a nandroid backup without use fastboot ? May 31 23:13:02 because the device is a product builder May 31 23:13:28 thx Jun 01 00:03:40 why could the dispatch of a key time out? Jun 01 00:03:50 http://pastebin.com/d6dbe5fe0 Jun 01 00:12:34 Is there a way to append release notes to an update? Jun 01 00:13:21 apart from putting an intent which shows them, I don't think so Jun 01 00:13:35 none whatsoever on the market at least Jun 01 00:33:26 sammyF: you're doing something time-consuming on the main thread of the activity Jun 01 00:33:52 see these lines? Jun 01 00:33:58 * ctate | 05-31 20:00:51.605: INFO/dalvikvm(6331): Wrote stack trace to '/data/anr/traces.txt' Jun 01 00:34:15 ctate: yep. I should check those traces? Jun 01 00:34:15 if you adb pull that file off the device, you can see what your app was doing at the time of the ANR Jun 01 00:34:24 cool. thanks Jun 01 00:34:34 or if you get an adb bugreport they will be included Jun 01 00:35:23 you get the ANR message when the OS is trying to deliver a synchronous event to you -- typically a key or touch input event -- and your main thread doesn't get around to handling it for 5 seconds Jun 01 00:35:36 wall-clock seconds Jun 01 00:35:41 I think I might have found the problem in the meantime. putting a mediaplayer.prepare() makes the starting of my application longer, but so far it seems like the blocking behaviour isn't there anymore. I'll still get the traces though :) Jun 01 00:35:47 as you might imagine, this indicates bad user experience :) Jun 01 00:36:02 ctate: and even worse self-ego experience when reading the comments ;) Jun 01 00:36:07 heh Jun 01 00:36:20 the basic rule of thumb is "don't do I/O from the main thread" Jun 01 00:36:32 there are exceptions and so on, but that's a good rule of thumb Jun 01 00:37:16 so I should start an extra thread to handle the sound output? Jun 01 00:54:36 I have an issue when sending key events from my instrumentation test. I keep seeing this in the logs: Permission denied: injecting key event . I get the restrictions around release apps but is there a way to pass this when testing ? Jun 01 01:05:19 hmm, the INJECT_EVENTS permission is signature-only Jun 01 01:06:47 so you can use it if you're building your own device image but probably not on other peoples' Jun 01 01:21:35 surely though, this should be a common problem as more than just I wish to test activity's responses to key events ? Jun 01 01:21:55 ping jsharkey/romainguy Jun 01 01:22:57 ctate: could the garbage collector running in the background delay my activity long enough for a "wait/force close" popup to appear? Jun 01 01:23:08 evening skyPhyr btw ;) Jun 01 01:23:19 hey sammyF: how's it going? Jun 01 01:23:42 sammyF, haven't given the bug free/reduced version a swing yet :) Jun 01 01:24:20 skyPhyr: depends ;) Circuits is 99% finished. a nice helpscreen and some otfication when you reach an achievement are all that is missing Jun 01 01:24:43 sammyF: sweet Jun 01 01:25:20 skyPhyr: if you ignore the fact that one time in 5 you get a wait/force close popup on the first keypress (waiting solves the problem until you exit the game, but somehow I don't think users will go THAT far) Jun 01 01:26:02 actually, waiting before pressing anything solves the problem too apparently Jun 01 01:26:31 maybe I should just put a blank screen and wait for a while, just to make sure ;) Jun 01 01:28:51 what I get from all the debug and trace files is that it stalls (sometimes) on start on something that works completely fine for he rest of the time, but that Dalvik is freeing a lot of mem (which makes sense, considering i do sadly need quite a lot) Jun 01 01:29:15 thus my question to ctate about the garbage collector Jun 01 01:29:44 GC is not going to hold you back by 5 seconds Jun 01 01:30:20 then I'm even more clueless than I am by nature :/ Jun 01 01:30:36 in the trace files, what is your activity's main thread doing at the point of the ANR? Jun 01 01:30:50 processing the touchscreen Jun 01 01:31:22 what exactly does "processing the touchscreen" mean? Jun 01 01:31:29 which, in this case, is only setting a variable and playing a soudn file Jun 01 01:31:31 is it in your app's code, in the framework's code...? Jun 01 01:31:39 I tried disabling the soundfile, but that didn't help Jun 01 01:31:52 it's in the mmain thread's code Jun 01 01:32:07 I'm using the same structure as the lunar lander demo Jun 01 01:32:51 well Jun 01 01:32:57 except that I capture touchevents instead of keyevents Jun 01 01:33:04 erm Jun 01 01:33:08 touch events are delivered really really fast Jun 01 01:33:55 i suspect that your touch handling is just taking too long Jun 01 01:34:42 ctate, but only in the first 5 secs? that's the part I have trouble understanding. Once you passed the initial wait popup, everything runs extremely fine Jun 01 01:34:42 *all* you're doing is setting a variable? Jun 01 01:34:59 oh, this only happens once? Jun 01 01:35:06 yes Jun 01 01:35:08 if you just say "wait" to the ANR dialog, it never happens again? Jun 01 01:35:43 that's the whole problem. You start the application, either you get the wait popup or you don't. if you do get it, and press wait (or even restart the application for all it's worth), you don't get it again and everything runs nicely Jun 01 01:36:40 and from then on you can play for as long as you want Jun 01 01:36:49 aHA Jun 01 01:37:09 that suggests that it's your onCreate() etc setup code that is taking too long Jun 01 01:37:29 hmmm ... then it's really the soundpool thing Jun 01 01:37:41 I'm getting a lot of "Soundfile not ready" messages Jun 01 01:38:35 I actually play the soundfiles (with 0 volume) until SoundPool.play returns somethign that's not 0 Jun 01 01:38:56 because I suspected that the delay at the start was due to the soundfiles not being loaded correctly Jun 01 01:39:31 (and yes .. they are oggs) Jun 01 01:39:32 surely that is not the canonical way to initialize a soundpool Jun 01 01:40:06 I must confess I improvised a lot on that Jun 01 01:40:35 you're calling load() on all your sounds, then just calling play() on them? Jun 01 01:40:52 i would recommend pushing the load() calls out into a separate thread Jun 01 01:40:53 I have 8 sounds, and the loading looks like this : Jun 01 01:40:59 AsyncTask is a good way to do that kind of thing Jun 01 01:41:34 http://pastebin.com/m2792159e Jun 01 01:41:54 wow Jun 01 01:42:02 the while loop came on while trying to figure out why I had the delay btw Jun 01 01:42:05 i don't know our media stuff Jun 01 01:42:18 i have no idea why play() fails for a while after load() returns a sound ID Jun 01 01:43:02 yep ... that's the weird part. I assumed at first the soudn would be loaded if load returns a valid id .. but apparently the loading is asynchroneous Jun 01 01:43:43 ask on android-developers about that :) Jun 01 01:43:46 in the meantime Jun 01 01:43:58 which is why I put the while loop in there. my Idea was that touching the screen triggered a soudn effect, but as the soudn wasn't there yet, it might delay the whole thing Jun 01 01:44:08 this loop you've pasted will spin hard until the sound is readay Jun 01 01:44:18 which is apparently taking some reasonable amount of time Jun 01 01:44:28 so: push that off into a separate thread! Jun 01 01:44:32 AsyncTask ftw Jun 01 01:44:41 yep. that's what I get in logcat. lines upon lines of "Soudn not ready" ;) Jun 01 01:44:49 and inside the while loop put in a sleep Jun 01 01:44:52 k .. I'll try that. thanks :) Jun 01 01:44:55 to avoid just spinning the cpu hard Jun 01 01:45:02 you may also be starving the rest of the system of cpu! Jun 01 01:45:35 Thread.sleep(50) or something Jun 01 01:45:41 that's 50 ms Jun 01 01:45:43 1/20 second Jun 01 01:45:50 and see how that goes Jun 01 01:45:57 thanks. i'll try that :) Jun 01 01:46:06 seriously, AsyncTask is awesome Jun 01 01:46:19 (assuming you're writing for 1.5) Jun 01 01:46:52 yes. first 1.5 application I write Jun 01 01:56:46 sammyF: ctate: could the garbage collector running in the background delay my activity long enough for a "wait/force close" popup to appear? << no Jun 01 02:48:39 romainguy, I just got your update on #2795 (missing drawables)--does this mean we won't have access to those drawables? Jun 01 02:48:48 indeed Jun 01 02:49:01 hey, so I'm trying to install packages to the emulator that I just built from Donut, adb doesn't seem to recognize the emulator, so how do I push anything to it? Jun 01 02:49:57 romainguy, dang. Are you able to shed light on the reasoning behind excluding those in particular? Jun 01 02:50:03 yes Jun 01 02:50:07 we don't want apps to rely on them Jun 01 02:50:12 copy the icons you want in you rapp Jun 01 02:50:38 what makes those twelve different from the rest? Jun 01 02:51:21 the rest should not have been public Jun 01 02:51:55 nvm on my question Jun 01 02:52:22 ah, so we're not supposed to use any of them? Jun 01 02:52:59 now they're public you can Jun 01 02:53:02 but I'd advise against it Jun 01 02:53:20 haha, alright. thanks for the heads up **** ENDING LOGGING AT Mon Jun 01 02:59:57 2009