**** BEGIN LOGGING AT Fri Feb 10 02:59:57 2012 Feb 10 03:02:42 query per property is terrible Feb 10 03:03:22 1+N? Feb 10 03:03:46 other implications too Feb 10 03:03:55 round trip through the library and DB for each row Feb 10 03:04:20 granted the DB isn't as "far" as it would be if it were a webapp but there's also something to be said about the efficiency and speed (or lack thereof) of sqlite Feb 10 03:04:39 i'd prefer 1 query yes :0 Feb 10 03:04:53 JakeWharton: I know webapps that could expect faster queries ;) Feb 10 03:05:05 but still... ewww Feb 10 03:05:44 my current project uses stored procedures :) Feb 10 03:05:49 ack Feb 10 03:06:02 my current project at work explicitly avoids stored procedures Feb 10 03:06:21 i'm sure the correct query is pretty simple but my brain aint wired for this stuff or something Feb 10 03:06:25 they're impossible to revision control properly and they can't be tested properly (in the scope of this app) Feb 10 03:06:43 JakeWharton: depends on the exact tech involved Feb 10 03:06:59 xorgate, what I gave you was 1 query Feb 10 03:07:09 yeh but it aint correct :) Feb 10 03:07:19 yes it is Feb 10 03:07:29 JakeWharton: my stored procs share similar environment to client library, just execute in server process Feb 10 03:08:09 we have about 400 stored procs at work for our main web app and they are a bloody mess Feb 10 03:08:19 count every false row as 0 then every true row as it's Feb 10 03:08:25 pfn i dont understand. there's 3 properties but the query returns more than 3 Feb 10 03:08:27 count Feb 10 03:08:29 I wrote a script that dumps all of them to disk every 5 minutes and does a commit and push Feb 10 03:08:37 that way we at least have a revision-controlled history Feb 10 03:09:08 JakeWharton: I'm writing a script that loads them from scratch Feb 10 03:09:26 I tried that too but people kept going in and "tweaking" ones in the DB and then bitching about their changes getting overwritten Feb 10 03:09:49 JakeWharton: I have the nice position of being the tech lead :> Feb 10 03:09:53 and, of course, they refuse to use the revision control and THEN deploy so that was out Feb 10 03:10:12 qemu-system-s390x ... wat Feb 10 03:10:16 I'm the lowest on the totem pole Feb 10 03:10:31 I use the bottom-up management style of forcing new technologies up the chain Feb 10 03:10:55 of course, the totem pole consists of two programmers, a DB guy, hardware guy, reports guy, and manager Feb 10 03:11:24 heh Feb 10 03:12:06 we are prepping Git, AllegroGraph for DB and AllegroCL for logic, 0MQ for IPC, Rails/Sinatra/Backbone.js for frontent... Feb 10 03:12:14 nice Feb 10 03:12:18 pfn ok this is what happens, i have a property with 2 toggles, when they are both unselected, i get 1 result. when they are both selected, also 1 result. but when 1 is selected and 1 isnt, i get 2 results Feb 10 03:12:26 ... I kinda have the opposite problem - the heaviest shit lies on me -_-; Feb 10 03:12:30 git came first Feb 10 03:12:37 i was in the door about two weeks and I couldn't stand SVN Feb 10 03:13:00 oh, the heaviest shit lies on me too, by choice Feb 10 03:13:14 xorgate, of course, count the 1 result with false as 0 Feb 10 03:13:20 xorgate, pretty trivial to do Feb 10 03:13:27 these people can't be trusted with decisions Feb 10 03:13:39 we'd be writing C# desktop applications using WPF and crap Feb 10 03:14:07 they wanted me to write a C#/WPF desktop app that we could distribute to partners so they could interface with our system Feb 10 03:14:10 pfn how? i have no clue :( Feb 10 03:14:13 is it possible to force flash/directly reprogram a CDMA phone for android? Particularly the LG DARE vx9700 Feb 10 03:14:27 so I wrote a Java webapp on emerging technologies instead :) Feb 10 03:14:32 what kind of tools do you need for embedded linux programming? Feb 10 03:14:38 screwdriver Feb 10 03:15:07 yeah i used one of those, checked-out the board, but nobody had determined the chipset even. Feb 10 03:15:07 xorgate, http://pastebin.com/rEuyRt4L Feb 10 03:15:10 xorgate, take this for example Feb 10 03:15:37 xorgate, you iterate over the rows, and take a 2 f = 0 a, b 1 t + b 1 f = 1 b, c 3 t + c 1 f = 3 c Feb 10 03:15:50 xorgate, one query and you coalesce the count yourself Feb 10 03:17:19 can anyone think of a reason NOT to set an alarm in a Service's onCreate() ? Feb 10 03:18:43 maybe you don't actually need one. that'd be a good reason Feb 10 03:19:41 vadi2, cool thx. i didnt think so. just checing. Feb 10 03:20:02 we can fabricate some if you'd like Feb 10 03:20:14 JakeWharton: I'm currently the only person with an idea regarding how the whole shit works Feb 10 03:20:16 pfn ok i *think* i get it :0 Feb 10 03:20:22 JakeWharton: we are just starting though Feb 10 03:20:39 you have a big "hit by the bus" problem them Feb 10 03:20:44 xorgate, basically, just loop through the results, and for every false column it's 0, and every true column add up the count Feb 10 03:20:44 JakeWharton: yeah Feb 10 03:20:45 *then Feb 10 03:20:53 JakeWharton: fortunately, it's a student project Feb 10 03:21:08 My project was like that up until last week when I said I was quitting. Then I spent a week documenting everything on the face of the planet Feb 10 03:21:22 haha Feb 10 03:21:28 xorgate, there isn't really any other way of getting everything unless you do multiple queries Feb 10 03:21:41 xorgate, and if you do multiple queries, you need to do all this processing yourself anyway Feb 10 03:21:46 pfn thing is i would like to receive the same amount of results as there are properties, since i use this in an adapter in my listview Feb 10 03:21:48 lolol Feb 10 03:22:16 xorgate, you can't use a cursor adapter with this directly, because as soon as you do a join it's n*m rows Feb 10 03:22:25 my work project really does have a buss factor of 1. me. :P Feb 10 03:22:45 just got an email: "Some Person is no longer an employee of Company. \n Bill \n Sent from my iPhone." Feb 10 03:22:53 sent to the whole company Feb 10 03:23:00 at 10pm at night Feb 10 03:23:03 LOL Feb 10 03:23:08 HAHA Feb 10 03:23:19 is it bill? or did bill send the email?! Feb 10 03:23:26 pfn hm ok.. i was hoping there could be some sort of subquery or sth. for every property find out a count Feb 10 03:23:43 well that was almost as good as the email we all received from our CEO who was fired Feb 10 03:23:43 * p_l should have requested more money than $50 for making a working QEmu for ARM -_-; Feb 10 03:23:48 bill sent the email, he's a partial owner Feb 10 03:23:58 I am very sad to tell you that I've just been fired over the phone by Yahoo's Chairman of the Board. It has been my pleasure to work with all of you and I wish you only the best going forward. Carol. Sent from my iPad Feb 10 03:23:59 (not developing it, of course) Feb 10 03:23:59 haha wow Feb 10 03:24:26 wabz: wow Feb 10 03:24:28 wabz, haha nice Feb 10 03:25:12 I thought bartz was out for a while now... Feb 10 03:25:20 a few months yeah Feb 10 03:25:59 I don't see how y! can possibly turn themselves around Feb 10 03:26:13 well we now have the guy who was the ceo of paypal..? Feb 10 03:26:28 wabz: pre- or post- eBay acquisition? Feb 10 03:26:33 ya know what i hate doing on Android. Prefrence screens... Feb 10 03:26:49 making all the list items and options and shit in XML. so tedious... Feb 10 03:27:04 Wavesonics: write a tool for it Feb 10 03:27:23 wabz, Elon Musk? Feb 10 03:27:28 damnit roomba, get off of my powercords Feb 10 03:27:30 it would be trivial to inflate a preference screen from something other than XML Feb 10 03:27:36 wavesonics how is it more tedious than layouts Feb 10 03:27:41 scott thompson Feb 10 03:27:48 p_l, that'd be a bigger waste of time than the XML method Feb 10 03:27:54 Wavesonics: not really Feb 10 03:28:03 ron_frown, I find layouts tedious as well... i think i just hate XML... Feb 10 03:28:32 JSON > XML Feb 10 03:28:42 Wavesonics: but OTOH, I'm a lisper. My natural instinct when faced with wanting a database and PostgreSQL doesn't fit is to write my own Feb 10 03:28:49 I dont know Feb 10 03:28:50 I don't think JSON would serve that cause much either Feb 10 03:28:53 lol Feb 10 03:28:56 I dont think json would work very well for layouts Feb 10 03:28:57 maybe some form of YML? Feb 10 03:29:12 JakeWharton, well... it'd be a latter move, but i like JSON better Feb 10 03:29:17 er... lateral Feb 10 03:29:22 sp? Feb 10 03:29:25 so do I, all things being equal Feb 10 03:29:37 jake Feb 10 03:29:38 btw Feb 10 03:29:42 ronald Feb 10 03:29:47 git reflog Feb 10 03:29:54 oooo yeah Feb 10 03:29:55 git reset hard 2effg3 Feb 10 03:30:00 didn't think of that! Feb 10 03:30:04 saved my ass big time =) Feb 10 03:30:23 I mean it was still a royal pita going into EVERY git folder in android source base Feb 10 03:30:31 but starting completely from scratch again would have been bad bad Feb 10 03:30:36 yeah for sure Feb 10 03:31:05 Wavesonics: regarding the "just write a tool for it" instinct... Instead of waiting for next day for a call from vendor regarding a license, I nearly sat down and hacked simplified database :P Feb 10 03:31:30 without much thought given to my capabilities in the area Feb 10 03:31:45 p_l, and then you have some thing they have to pay you to support! :D Feb 10 03:31:47 "xocuteyxotaraxo@aol.com wants to chat with you" Feb 10 03:31:52 uh, nope Feb 10 03:32:09 heh Feb 10 03:32:13 JakeWharton, oh man, I bet it was a nice lady who was genuinly interested in you Feb 10 03:32:27 does anyone use scripts + imagemagick to create all the different resolution assets? Feb 10 03:32:30 Wavesonics: believe me or not, after calling the vendor, they signed me as "consultant contact" :D Feb 10 03:32:38 lol nice Feb 10 03:32:53 wabz, no, but if u do, share plz :P Feb 10 03:33:16 meaning that if they can't field the contract for building something with their software, they'll look among consultants... and I got on that list :) Feb 10 03:33:20 i need to write a script that creates every possible configuration of an AVD and runs a single intent and captures a screenshot Feb 10 03:33:28 Ya know... I know the whole argument for NOT using vector graphics as the silver bullet. But it should be an option atleast! Feb 10 03:34:07 I don't, I might in future, they mentioned it at one of the ADLs, but I think that you probably want to remove detail for lower dpis rather than just scale the image down Feb 10 03:36:59 a N1 is wider in DP than a GNex? Feb 10 03:37:24 wouldnt have guessed that Feb 10 03:37:32 that can't be right... Feb 10 03:42:17 wider? can't be Feb 10 03:42:29 yeah that's not right Feb 10 03:42:46 nexus one would be about 304dp, galaxy nexus about 354 Feb 10 03:45:10 Hey, I'n trying to do a simple application and Im using Eclipse, when I do Run > Run, the emulator comes up and it just says Andriod. I click the buttons and they do nothing. What am I doing wrong? Feb 10 03:45:17 I'n=I'm Feb 10 03:45:45 what's wrong is that you're not waiting long enough Feb 10 03:45:47 PlanRCS: ... wait. Just wait. The emulator boots slower than Vista on 486 Feb 10 03:45:50 wait another 20 minutes Feb 10 03:46:11 while you're at it click the enable snapshot thing Feb 10 03:46:35 try a 2.3 HVGA emulator Feb 10 03:46:39 it'll boot pretty quickly Feb 10 03:47:00 JakeWharton: maybe for you ;) Feb 10 03:47:11 it still takes a few minutes to boot the first time Feb 10 03:47:17 what's this enable snapshot thing Feb 10 03:47:18 4.0.3 WXGA boots quick at work for me Feb 10 03:47:18 * pfn looks Feb 10 03:47:31 I run it on a core i7 with 18gb of ram, it still boots slow Feb 10 03:47:32 * p_l is poor so he still uses C2D T5550 Feb 10 03:47:36 damn Feb 10 03:47:45 i have an i7 + 16GB + SSD + RAID1 10k HDDs Feb 10 03:47:55 ... srsly? Feb 10 03:48:02 sure, it was like $900 Feb 10 03:48:18 I mean RAID1 hdds and only 16G of RAM? Feb 10 03:48:55 I only have raid1 for my system disks Feb 10 03:49:09 no ssd... next computer maybe Feb 10 03:49:15 the RAID1 has /home, everything else is on SSD Feb 10 03:49:20 though if I had nicer amount of money, I'd try to grab 2x MagnyCours and ~32G ram Feb 10 03:51:01 well, ram is so cheap now Feb 10 03:51:06 it's like 12gb for $120 Feb 10 03:51:48 so 24gb for $240, plus cpu for $200, plus mobo for $150, plus 2x1TB for $250 (thai flood prices higher?), 1x80gb ssd for $100, and a cheapy gpu for $50 Feb 10 03:52:11 damn 2x1TB for $250 Feb 10 03:52:19 i remember when 3TB drives hit $115 Feb 10 03:52:36 the thai floods jacked prices up pretty badly Feb 10 03:52:40 yeah Feb 10 03:52:46 samsung said it'd be at least another year I think Feb 10 03:52:51 <\monster\> ncix.com was selling 160GB drives few month ago for like $150 Feb 10 03:53:46 I bought a replacement 500gb drive for $90 the other day... Feb 10 03:53:51 so the prices aren't /terrible/ Feb 10 03:54:04 i hope none of my drives fail then Feb 10 03:54:13 * pfn had to replace failing drive in his wife's touchsmart this weekend Feb 10 03:54:20 going to be a costly fix Feb 10 03:54:23 I need to get her data off of the old drive, damnit Feb 10 03:54:48 * pfn tries plugging in the drive dock again Feb 10 03:55:01 i bought an HDD dock thinking it'd be so handy Feb 10 03:55:05 never used it in a year and a half Feb 10 03:55:50 it's not useful unless you rotate through drives often Feb 10 03:56:45 * pfn ponders just counting the wife's data as lost and junking the drive Feb 10 03:56:52 only really wanna get her itunes library off of it Feb 10 03:57:27 just about everything else is on my computer Feb 10 03:57:32 where do i go if i have a rom question...here? Feb 10 03:57:45 #android-root Feb 10 03:57:53 thanks Feb 10 03:58:13 I preemptively replaced a drive in my home server last week - old drive was giving errors, but hadn't failed yet... managed to hotplug the new drive, move all the data over, hotunplug the old one without taking down the machine or even unmounting the LVM (RAID-ish) filesystem Feb 10 03:58:30 awesome Feb 10 03:58:31 paid just over US$140 for a 2TB drive Feb 10 03:58:44 i run ZFS so I'm looking forward to live swapping a drive in the future Feb 10 03:58:44 * p_l got a lying unused 1.5T drive Feb 10 03:58:54 hehehe, live swapping :D Feb 10 03:58:59 JakeWharton: on what OS ? Feb 10 03:59:00 I think I have an unused 1.5TB, 750GB, and a 1TB Feb 10 03:59:03 Beket, Solaris Feb 10 03:59:06 * p_l recently observed it in realtime Feb 10 03:59:11 k Feb 10 03:59:13 zfs is win Feb 10 03:59:18 zfs > * Feb 10 03:59:20 you're not really meant to do that sort of swapping with internal SATA - but it works :) Feb 10 03:59:22 zfsonlinux was too unstable at the time Feb 10 03:59:34 zfs on linux is through fuse Feb 10 03:59:36 has anyone tried zevo @ osx ? Feb 10 03:59:36 which is slow Feb 10 03:59:42 there's only one thing missing on ZFS (or was, last time I used it) - debugfs Feb 10 03:59:42 neg Feb 10 03:59:50 zfsonlinux is native Feb 10 03:59:50 if you want zfs, gotta be on solaris Feb 10 03:59:54 SunOS galactica0 5.11 11.0 i86pc i386 i86pc Solaris Feb 10 03:59:55 that, and freedom :) Feb 10 03:59:57 or FreeBSD Feb 10 04:00:02 er, *BSD Feb 10 04:00:04 pfn: it ran quite nice on FreeBSD Feb 10 04:00:06 debugfs? there's zdb for one thing ;p Feb 10 04:00:14 on freebsd it's a few versions old Feb 10 04:00:17 debugfs for what Feb 10 04:00:22 pfn: for ZFS Feb 10 04:00:22 yeah it's like snv_118 Feb 10 04:00:33 ZFS version 15 I think Feb 10 04:00:47 no, they updated it to 28 in 9.0 Feb 10 04:00:50 pfn: by debugfs, I mean "filesystem debugger", not linux kernel's debugfs Feb 10 04:00:52 JakeWharton, no, version 33 Feb 10 04:01:02 p_l, what do you need a fs debugger for Feb 10 04:01:08 Beket, BSD did? Feb 10 04:01:13 pfn: duh, to debug the filesystem! Feb 10 04:01:14 p_l: there already exists the zfs debugger (zdb) Feb 10 04:01:15 pfn: it saved my bacon few times Feb 10 04:01:20 pfn, no way Feb 10 04:01:29 JakeWharton: freebsd yeh Feb 10 04:01:31 oh, you mean freebsd Feb 10 04:01:32 Beket: how good it is at working on crashed structures? Feb 10 04:01:33 yeah, it's like 28 Feb 10 04:01:43 p_l, oh, you mean like an fs editor, for undeleting shit Feb 10 04:01:55 well my setup was a while ago and they were only on 15 I think, had to compile yourself to get 28 Feb 10 04:01:56 like e2fsdebug or e2debugfs whatever it was called Feb 10 04:02:06 p_l: pretty good for rudimentary stuff I tried; although it hardly ever crashed so bad Feb 10 04:02:07 p_l, snapshots Feb 10 04:02:12 pfn: traditionally it's called debugfs, comes from debugfs on some old Unix Feb 10 04:02:13 p_l, snapshots = never having to debugfs Feb 10 04:02:17 pfn: untrue Feb 10 04:02:31 unless you export snapshot to another device Feb 10 04:02:42 JakeWharton: true; they only recently gone to v28 (with the 9.0 release) Feb 10 04:02:48 the filesystem on my home server - the one I just hot-upgraded - has existed for over 10 years - it's outlived a few generations of drives, and at least one complete machine rebuild... when I emigrated, I left my server behind and jut brought drives :) Feb 10 04:02:55 p_l, well, if you don't have any data redundancy you're gonna get screwed either way Feb 10 04:03:00 I'm talking about "something ripped middle of the LBA addressed area and I want to recover data" Feb 10 04:03:27 ah. well considering my server is headless and I haven't had to actually SSH in for about 6 months I'm not worried about what version it's on any more Feb 10 04:03:35 at the time it was hectic trying to figure out what I wanted to go wtih Feb 10 04:03:57 or the really weird case, "first X MBs of disk got addressing shifted by x, where x << fs block size" Feb 10 04:04:03 I was migrating it from being an ESXi box that had the HDDs attached to a VM through RDMs but ESXi didn't support 3TB volumes so I was forced to switch to bare metal Feb 10 04:04:20 p_l, yes, but how often and why does that ever happen, unless you're writing garbage to the middle of the disk or something Feb 10 04:04:20 (had that, ended with me becoming intimately familiar with NTFS internals) Feb 10 04:04:54 pfn: I tend to not have money for proper redundant storage Feb 10 04:05:02 food > new disk Feb 10 04:05:29 I went all out when I got a job Feb 10 04:05:35 I was sick of not having it Feb 10 04:05:44 p_l, there's lots of instances where debugfs will never be able to save you Feb 10 04:05:50 I only lost one disk in about 4 years of just having non-redundant HDDs Feb 10 04:05:57 I've had like 4 or 5 disks fail in the past ... 10 years? Feb 10 04:06:04 and I don't have a /lot/ of disks Feb 10 04:06:13 pfn: yes. But I'll prefer having it to not having Feb 10 04:06:16 probably owned like 10-15 hard drives in that time Feb 10 04:06:25 and none of the failures were recoverable with a debugfs Feb 10 04:06:26 I've gotten two DOAs but only one fail after being used Feb 10 04:06:40 I had 2 seagates in my workstation fail Feb 10 04:06:48 the seagate in my wife's touchsmart failed this weekend Feb 10 04:06:49 right now I could really use debugfs for NTFS, but haven't finished writing it Feb 10 04:06:58 oh I think i've had two fail in desktops Feb 10 04:07:00 the problem wasn't disk, it seems, but controller Feb 10 04:07:06 my wd failed in my old linux box a couple years ago Feb 10 04:07:20 but there's was never anything stored on a desktop that I didn't have backed up on the server or now in a cloud sync service Feb 10 04:07:51 recovering the linux box's disk cost me like $1600 Feb 10 04:08:10 one of the servo motors died Feb 10 04:08:26 damn. that's more than I paid for all of the disks in my server Feb 10 04:08:53 you really couldn't part with that porn could you? Feb 10 04:08:56 the annoying thing was that I was meaning to sunset that box and transfer all the data off before it went kaput but never got around to it Feb 10 04:09:27 JakeWharton: lol Feb 10 04:09:43 I'll admit that the stuff I want to recover is a lot of media files :D Feb 10 04:10:13 I've also had too many problems with hardware raid Feb 10 04:10:19 zpools ftw Feb 10 04:10:24 don't need no stinkin' debugfs Feb 10 04:10:30 hmm... I wonder if Sun still sells that 12 disk server Feb 10 04:10:37 I've been using LVM for a long time, and it's worked well :) Feb 10 04:10:45 zpools > * Feb 10 04:10:56 I think I agree with pfn on this one Feb 10 04:11:09 either way, you need some redundancy Feb 10 04:11:15 if it's data the least bit important to you Feb 10 04:11:25 if it costs too much, go with half the space you would otherwise buy Feb 10 04:11:28 http://serverfault.com/questions/279571/lvm-dangers-and-caveats/279577#279577 Feb 10 04:11:47 pfn, precisely why zpools are nice, you can grow your pool Feb 10 04:11:49 :) Feb 10 04:12:08 mostly it's extreme resistance to corruption Feb 10 04:12:22 bit rot FTL Feb 10 04:12:28 checksums FTW Feb 10 04:12:31 it spends a fair amount of data running crcs on all reads and writes Feb 10 04:12:35 s/data/cpu Feb 10 04:12:57 Yeah it does Feb 10 04:13:04 ... holy fuck, but did Oracle destroy any legibility of pages Feb 10 04:13:12 quad-core, 12GB of RAM in my headless file server Feb 10 04:14:45 how can I uniquely identify a device. not user, not account, not any of that BS they tell you to use instead. Feb 10 04:14:50 physical device unique Feb 10 04:15:14 I wonder how Google Wallet does it Feb 10 04:15:21 generate a uuid on the device Feb 10 04:15:30 it probably has it pretty easy, though, since it only works on GDevices Feb 10 04:15:52 that can be cleared, though Feb 10 04:15:54 and won't persist across ROM flashes Feb 10 04:17:38 otherwise just get phone Id Feb 10 04:18:02 i'll do a SHA of certain things which may or may not be present or something Feb 10 04:18:23 since those "unique" things vary based on the model Feb 10 04:19:44 if it's a phone, IMEI? Feb 10 04:20:10 might not be a phone Feb 10 04:20:22 but i'll take that into consideration Feb 10 04:20:26 it doesn't have to be one specific thing Feb 10 04:21:39 I won't need that for a day or two anyways Feb 10 04:21:42 not sure why I'm thinking about it now Feb 10 04:22:28 JakeWharton: why do you need to uniquely check device? Feb 10 04:22:38 i'm making a database of sorts Feb 10 04:24:20 Sooo... This was stupid. Converting a ListActivity to fragments... I made the ListActivity extend FragmentActivity and then made a new ListFragment... Feb 10 04:24:26 probably should have done that the other way around Feb 10 04:24:48 indeed Feb 10 04:37:30 are the activities that go to the back stack gc'ed after some time ? Feb 10 04:37:44 why setTheme method is not working if I use it in onResume? Feb 10 04:37:57 setTheme needs to happen in oncreate before you set the content view Feb 10 04:38:28 so I need to restart activity? Feb 10 04:38:51 Beket, yes Feb 10 04:39:14 Gentlecat, yes Feb 10 04:39:21 thanks Jake Feb 10 04:40:04 and what is the best way to do it after I return to that activity from another one? Feb 10 04:40:13 not so much after some time, just when the resources are needed - right? so if your device is idle, old activities could hang around indefinitely Feb 10 04:40:53 finish() and then startActivity()? Feb 10 04:41:43 I'm in a position where I instantiate a lot of activities (actually the same activity, with a different set of data to act upon). I'd like to provide the user a quick way to return to main screen, rather than hitting the back button a dozen times. Is there some standard method for this ? Feb 10 04:42:29 Beket, don't let your activities add themselves to the backstack? Feb 10 04:42:43 Beket, if you use an actionbar then use the home/go-up action Feb 10 04:43:02 pfn: is this something that I can control? actually I'm developing against 2.x Feb 10 04:43:45 ah, mm launchMode attribute is what I want ? Feb 10 04:44:01 >_> building crosscompilers takes so much time Feb 10 04:45:47 Are there any libs for consuming REST API's? I watched a Google IO session about a few design patterns for RESTful apps but it was rather complex. Feb 10 04:46:42 ejb: in reality, the HTTP client is all you need Feb 10 04:46:57 because there's no standard regarding what is the data returned Feb 10 04:47:00 Beket, the action bar is a pretty well established pattern Feb 10 04:48:09 p_l: right but as far as using services, threads, etc. to do things "correctly" Feb 10 04:48:41 p_l: looking for a framework or something to get started with. Feb 10 04:49:12 uhmm... asynctasks, services... depends more on the client app, IMHO Feb 10 04:50:00 p_l: ok. What about in the case of a read only API with data that only changes once a week or so? Feb 10 04:50:30 orthogonal to framework questions Feb 10 04:52:17 just grab the data with async task Feb 10 04:52:27 plus eventually cache it Feb 10 04:53:50 unlike SOAP, REST is more of a style, convention Feb 10 04:54:11 it's easier IMHO to find a framework for the server side, or a client-server set Feb 10 04:54:59 by set do you mean a server framework that has an android "client" component? Feb 10 04:55:19 not necessarily android Feb 10 04:55:29 (there's more of that in JS world, frankly speaking) Feb 10 04:55:33 yeah Feb 10 04:55:44 I have the server framework all set Feb 10 04:57:24 p_l: can the async task as you mentioned be killed by the OS mid-task? Feb 10 04:57:52 I read that Services protect you from that Feb 10 04:58:08 Or they can help protect from that Feb 10 04:58:31 where can i find default icons for like share/add/camera ? Are they present in the device somewhere? Feb 10 04:59:32 ejb: if your whole app is killed, yes Feb 10 05:00:14 steal them from the platform Feb 10 05:00:52 * pfn ponders showing ping/whois responses to the user in a popup dialog Feb 10 05:00:55 terrible ui, damnit Feb 10 05:03:43 ok, I used launchMonde=singleTop + onNewIntent() and now it's more decent Feb 10 05:05:21 p_l: and in the case of using a service to make the REST calls? Feb 10 05:05:58 iirc more complex, good if you want to have separate "backend" thread and communicate with it, not call one-off async tasks Feb 10 05:32:48 How do I round the corners of a relativelayout with a custom background? Feb 10 05:33:14 Did you try sandpaper? Feb 10 05:37:04 lawlz Feb 10 05:37:19 I was sanding for the past 2 hours Feb 10 05:37:45 SeligArkin: you gotta be kidding me... Feb 10 05:38:07 he means the corners of your phone Feb 10 05:38:08 coolstar-pc: I was, sorry, a bit out of my mind atm with hyperactivity Feb 10 05:38:37 How do I round the corners of a relativelayout in my android app with a custom background? Feb 10 05:40:56 clip the canvas in onDraw or something Feb 10 06:00:30 guys, i need to pass view to WindowManager.addView(View, LayoutParams). Say, I have xml file with LinearLayout. How can i get View from layout id? Feb 10 06:11:05 Will ProgressBar.dismiss() call an issue incase my object is Null Feb 10 06:18:35 When i do ProgressBar.dismiss() does it destroy object ? Feb 10 06:28:38 http://www.youtube.com/watch?feature=endscreen&NR=1&v=X91ZXqy_8YE Feb 10 06:34:21 is there a way to setup builds so you can install builds from different systems without having to uninstall everytime you move between systems? Feb 10 06:34:25 (I hope that makes sense) Feb 10 06:40:41 Is it possible to make items align in a linear layout? I'm having mine be horizontal, and two buttons I put in it are sticking to the left side only Feb 10 06:42:12 vadi2: how do you want to align them? Feb 10 06:42:38 I'd like them to be in the center (so with the extra space to the left and the right of them) Feb 10 06:43:03 LinearLayout works as either items being added, linearly, vertically or horizontally. You can embed them together if you want to mix things, or look at something like GridLayout. Feb 10 06:43:18 right now your orientation is probably vertical. Feb 10 06:43:36 android:layout_gravity will help you there too. Feb 10 06:43:45 It's ccertainly horizontal. I'll check out gravity Feb 10 06:44:06 morning Feb 10 06:44:07 aha, that did it. thanks Feb 10 06:44:14 no prob. Feb 10 06:44:17 morning Seimawn2 Feb 10 06:47:00 how should I save HashMap to data storage? Feb 10 06:47:18 and which one should I use? Feb 10 06:47:29 Is it serializable? Feb 10 06:47:37 I need to open the browser with a post request - I'd have to make a custom local page for that to work, wouldn't I? Feb 10 06:47:45 Is there any way to save a Canvas to image file? Feb 10 06:48:05 wow...Seimawn2, I came here to ask very similar questions Feb 10 06:48:09 lol Feb 10 06:48:17 Lnxmad: hehe Feb 10 06:48:20 Seimawn2: I think so. should be able to save as a bitmap i think. Feb 10 06:48:26 have you checked the api? Feb 10 06:48:32 Seimawn2, maybe you can help me with my issue Feb 10 06:48:48 nullpuppy: Dunno where to start … searched SO but didn't find anything useful Feb 10 06:48:57 nullpuppy: Maybe I look at wrong place Feb 10 06:49:03 Seimawn2: kk. Feb 10 06:49:06 my draw call iterates through all the points to draw. problem is, the array becomes way to large Feb 10 06:49:12 is there a better way to draw? Feb 10 06:51:43 setBitmap(Bitmap bitmap) Feb 10 06:51:43 Specify a bitmap for the canvas to draw into. Feb 10 06:51:45 Seimawn2: Canvas.setBitmap() *might* help http://developer.android.com/reference/android/graphics/Canvas.html#setBitmap(android.graphics.Bitmap) Feb 10 06:51:50 Seimawn2, look into that Feb 10 06:52:01 lol Feb 10 06:52:06 beat you to it Feb 10 06:52:09 nullpuppy: Thanks a lot.. I`ll check that Feb 10 06:52:10 yep. Feb 10 06:52:18 Lnxmad: only barely though! Feb 10 06:52:58 http://stackoverflow.com/questions/2174875/android-canvas-to-jpg Feb 10 06:53:01 that might help too Feb 10 06:57:45 nullpuppy: That did it, thanks a lot Feb 10 06:59:25 Seimawn2, how are you drawing? Feb 10 06:59:35 just override ondraw Feb 10 06:59:39 use that canvas Feb 10 06:59:47 I lose performance as the array increases Feb 10 07:00:16 Seimawn2: excellent! Feb 10 07:02:14 no one? **** BEGIN LOGGING AT Fri Feb 10 07:28:11 2012 Feb 10 07:33:45 Hi, i am trying to compile a newer gdb for android-ndk, because the included one is from 2006 and does not support neon Feb 10 07:34:17 I am trying since a few hours, but got problems with the toolchain Feb 10 07:34:30 does anybody have any advices or a tutorial? Feb 10 07:39:04 duga3: very vague question... Feb 10 07:39:27 yeah i know Feb 10 07:39:37 i have already tried with the scripts included in ndk Feb 10 07:40:05 i simply want to update gdb and gdbserver in the ndk Feb 10 07:41:07 i think the first step is to compile the android toolchain Feb 10 07:42:14 Got my first app done, but when trying it on my phone it doesn't work the same as on my emulator :-D In the second activity, if anything goes wrong with the login validation you are supposed to get thrown back to the first activity, the login screen - but that doesn't work on my Galaxy S2. I finish the acticity from an AlertDialog that pops up when the error arises - but the Dialog never shows up on my Galaxy... how do I debug this? Hmm :-) Feb 10 07:44:29 Mikellip: the same way you debug on the emulator? =) Feb 10 07:45:19 I just debug with Log.v there and check logcat Feb 10 07:45:48 Mikellip: don't like the debugger? Feb 10 07:46:44 I'd need to run it on my phone from eclipse I guess, can't do that atm - arf Feb 10 07:46:53 I haven't used it yet Feb 10 07:47:12 If there's some other kind of debug other than reading logcat ;P Feb 10 07:47:52 Mikellip: logging and logcat can be useful but sometimes it easier to just stepping through the code with a debugger Feb 10 07:48:51 I will try it out and see if it makes any sense to me :) Feb 10 07:49:04 Mikellip: but reading logcat output also works with real devices :) Feb 10 07:49:14 Mikellip: if you're more comfortable with that Feb 10 07:52:57 ty appel1, the debug mode looks a bit alien to me though, haha Feb 10 07:53:17 I'll have to go through some beginners tutorials to be able to use it Feb 10 07:53:26 -s Feb 10 07:54:04 Mikellip: then stick with logging and logcat if you find that easier to work with :) Feb 10 07:55:02 Yeah I'll do that for now, has been working good so far... but will be hard to find out why an AlertDialog refuses to show up on my Galaxy S2 when it works on the emulator :-) Feb 10 07:58:07 Mikellip: don't you have some logging where you show it? could tell you if you ever reach the code that displays the dialog at least =) Feb 10 08:03:53 yeah I'll have to find out, right now it feels as if the condition I check for is true on the Galaxy S2 when it shouldn't, but false when it should be on my emulator.. I could do an alertbox when it's true, too - that would at least tell me if I'm right :-) ty Feb 10 08:19:34 I am trying to update gdbserver of android-ndk Feb 10 08:19:44 but the scripts ni build/tools do not work like supposed Feb 10 08:19:52 is there any other way to build an android toolchain? Feb 10 08:30:44 is there any other way to build an android toolchain? Feb 10 08:36:50 Does andybody know a way to replace gdbserver from ndk with a newer version? Feb 10 09:13:08 pfn btw this works in 1 go https://gist.github.com/1787932 Feb 10 09:36:30 Quick question: I have this permission "WRITE_EXTERNAL_STORAGE", but it is never in the list of permissions when I install my APK, is that correct? I also have "INTERNET", which is asked for. Feb 10 09:36:53 Sorry, not WRITE_EXTERNAL_STORAGE Feb 10 09:37:03 "ACCESS_NETWORK_STATE" Feb 10 09:42:03 Knossos-w: paste your manifest on pastebin or something Feb 10 09:45:13 Mikellip: http://pastebin.com/P2ZaMuZC Feb 10 09:45:16 brbsmoke Feb 10 09:45:21 oh wrong channel sry Feb 10 10:09:25 basic java question I can't seem to find the answer to: Feb 10 10:09:40 public class BLA { static { ...somecode... } } Feb 10 10:09:53 ...somecode... is run whenever the class is first instantiated ? Feb 10 10:09:57 yes Feb 10 10:10:09 first time a reference to that class is used Feb 10 10:10:22 so the first time the vm "touches" the class for any reason Feb 10 10:10:29 yep Feb 10 10:10:41 if you wanna test it just drop a runtimeerrror in there and watch the carnage Feb 10 10:10:45 thanks, that's what I thought. Just wanted to make sure :) Feb 10 10:10:59 (and its a bitch to Google for :)) Feb 10 10:12:16 well Feb 10 10:12:18 http://docs.oracle.com/javase/tutorial/java/javaOO/initial.html Feb 10 10:12:29 pretty much says what you already know now Feb 10 10:17:35 Hello Androiders Feb 10 10:17:58 hello :-) Feb 10 10:18:15 Mikellip: How goes it? Feb 10 10:18:17 HELO THAR Feb 10 10:18:38 MDijkstra: Hi Feb 10 10:19:05 aLearner: it's all good, how's aLearner doing? :-) Feb 10 10:20:11 Mikellip: I'm done with the tutorials. I'm wondering waht my next steps should be. Feb 10 10:23:24 so I'm running a background processing thread in my activity which has a boolean `running` set to true when it starts, then when the user presses a button in the activity i set the `running` flag in my threads while loop to false.. if i wanted the activity to wait for the thread to finish I could just use an Object lock with wait/notify right? Feb 10 10:31:59 guys, i just successfully published android app on market, but i still can't found it on the market. I even can't get direct link to this app. How can i get this direct link? Feb 10 10:33:31 it takes a coupla hours i think Feb 10 10:33:49 http://market.android.com/details?id=com.your.package.name Feb 10 10:33:59 but as storkme said, it can take a while Feb 10 10:34:11 just the time it takes to process it, get it out to the different servers, etc. - there's no 'delay' as such Feb 10 10:34:30 yeah, couple of hours at most Feb 10 10:34:38 updates usually go live in a matter of minutes for me Feb 10 10:35:26 it's the the nature of the storage google users Feb 10 10:35:34 replication is slow Feb 10 10:37:23 other way around for me Feb 10 10:37:31 new apps show up within minutes.. updates can take days Feb 10 10:37:37 and now we play the waiting game Feb 10 10:49:45 MDijkstra: thanks! Feb 10 10:50:56 Hello, I am getting tons of these: 02-10 10:36:57.180: I//usr/sbin/audiomixer(1244): ALSA lib pcm.c:7067:(snd_pcm_recover) underrun occured Feb 10 10:51:09 Is this a known problem? Sound stops playing when these aerrors occur. Feb 10 12:00:28 hm i override onBackPressed(), call super.onBackPressed();, then setResult(5); ... for some reason it doesnt apply the new result code.. it keeps being 0 Feb 10 12:00:56 if i dont call on super.onBackPressed() it works Feb 10 12:06:16 is it possible to like Feb 10 12:06:18 move a canvas Feb 10 12:06:30 i'm trying to draw a waveform in real time Feb 10 12:07:03 so instead of doing complex redraws of signal data i'd like to just shift the painted waveform slightly left and then just paint the new sample Feb 10 12:07:06 and repeat Feb 10 12:07:23 I guess I could draw to a seperate Canvas and then just render that o nscreen Feb 10 12:07:29 that is indeed what you should do Feb 10 12:08:02 sweet. Feb 10 12:26:07 hi Feb 10 12:26:15 sup Feb 10 12:26:20 if I don't "extends TabActivity", what else should I do ? Feb 10 12:28:50 maxagaz: that depends on what you're trying to do. Feb 10 12:28:52 http://storkme.org/2011/12/tabs-done-right-viewpager-and-fragments/ Feb 10 12:28:57 use fragments Feb 10 12:29:06 and, if you like, a viewpager Feb 10 12:31:17 noob question: android is linux based, right?, so is it easy to customize and possibly make my own android "distro"? I'd like to make a superfast minimalistic barebones OS for my android phone. Where should i start? Feb 10 12:31:19 do you guys know what the gps accuracy value range is? I need to know what kind of data type I can expect. is it something like 0-200000? Feb 10 12:31:40 hi Feb 10 12:31:55 how is it (difficult/not difficult) to create a tree view using ExpandableListView. The object lists are heterogeneous (each level is of different type). Feb 10 12:32:22 ^ question Feb 10 12:32:49 storkme: thanks Feb 10 12:37:37 hope it is useful to you Feb 10 12:37:40 Interesting. In jdk7 u need to use keytool -v to get the MD5 certificate fingerprint, while in jdk6 its default. The docs never mention this Feb 10 12:38:05 without -v it just prints the sha1 fingerprint right? Feb 10 12:38:09 i noticed this too Feb 10 12:38:09 yeah Feb 10 12:38:19 they should mention this somewhere on the android site Feb 10 12:38:30 would've be nice :P Feb 10 12:38:39 been* Feb 10 12:43:05 does anybody know how to get around the issue of my apps not being visible/compatible in Market for users who use a custom DPI ? I do not declare any screen properties or restrictions at all in my manifest Feb 10 12:44:46 guys, crazy question, im making a html code, and wanted to make understand that the phone number ares is just numbers and it loads the numbers only stuff, is it possible? Feb 10 12:45:03 that on android.. Feb 10 12:46:03 do you guys know what the gps accuracy value range is? I need to know what kind of data type I can expect. is it something like 0-200000? Feb 10 12:46:56 Motafoca: that's just simple javascript? Feb 10 12:47:06 (is it a webview?) Feb 10 12:47:22 Motafoca> input type="number" ? Feb 10 12:47:24 poppiez: but my ideia is to make android know its a number only area and load the number only keyboard, know what i mean? Feb 10 12:47:32 not webview Feb 10 12:47:51 the idea is to make my site more android friendlty Feb 10 12:53:58 ASyncTask question: Why is my onPostExecute running even though I use cancel(true) before the return in doInBackground o.O Feb 10 12:54:23 In fact, according to log output in logcat it runs before doInBackground is complete o.O Feb 10 12:58:28 will try a while-loop that checks isCancelled in doInBackground... I'm boggled... Feb 10 12:59:57 Mikellip: perhaps you've got multiple async tasks running by mistake? Feb 10 13:00:59 you mean more than one of the same ASyncTask? Feb 10 13:01:17 I do have more ASyncTask-classes defined, 3 of them actually... Feb 10 13:01:36 you are the one who has to check cancelled Feb 10 13:01:51 im pretty sure cancel doesnt do anything on its own besides set a flag Feb 10 13:02:00 oh really... Feb 10 13:02:08 I thought it would invoke onCancelled directly Feb 10 13:02:19 instead of onPostExecute... Feb 10 13:02:23 oh actually it does say that Feb 10 13:02:24 mikedg: if you succcessfully cancel then onPostExecute should never be called Feb 10 13:02:42 but you still need to check iscancelled to stop hatever operation you are doing Feb 10 13:02:57 most poeple just assume it kills the thread :/ Feb 10 13:03:10 I just fetch from web, if response is not to my liking I want to cancel and handle it differently in onCancelled Feb 10 13:03:11 Mikellip: somwhere you instantiate the task and execute it, are you sure that you're not doing that multiple times and only cancel the last one? Feb 10 13:03:38 appel1: I will ponder and check if that may be the case Feb 10 13:06:07 no just one task Feb 10 13:06:20 ok Feb 10 13:06:54 is the only way to pass my own menuinfo data to extend the widget with my own implementation to override getContextMenuInfo()? Or is there an easier way? Feb 10 13:07:04 I don't know if it will help if I check for isCancelled in a loop in the doInBackground while the response is null, but will try it Feb 10 13:12:48 Mikellip: do you cancel in doInBackground? Feb 10 13:15:28 appel1: yes Feb 10 13:15:47 if I check for isCancelled in onPostExecute and act accordingly, it works... lol Feb 10 13:15:52 but that feels wrong Feb 10 13:15:58 because it's supposed to go to onCancelled() :-/ Feb 10 13:19:14 just noticed that my android when you click on a number (browser) it launchs the phone app, anyway to disable this annoying feature? Feb 10 13:19:15 lol Feb 10 13:20:45 is patented, they'll remove it or something Feb 10 13:20:52 (just wait) Feb 10 13:26:11 i don't suppose anyone knows how to draw a canvas to another canvas? Feb 10 13:26:51 do i create the canvas with a backing bitmap and then draw that bitmap to my first canvas? Feb 10 13:34:19 For some reason when i click on an item in my list fragment onItemClick doesn't get called, i remember i had this problem sometime last year but i can't remember how i solved it. Are there any sneaky pitfalls i need to avoid? Feb 10 13:37:07 Dark-Side, don't forget to call setOnClickListener() Feb 10 13:37:17 setOnItemClickListener Feb 10 13:37:28 You don't have to do that in the listFragment do you? Feb 10 13:37:54 oh....fragments Feb 10 13:38:04 sorry. never worked with them Feb 10 13:38:06 onListItemClick is the method it should call Feb 10 13:38:33 looking at the code i did last year I've done the same now but its not working :( Feb 10 13:48:23 hello Feb 10 13:49:08 hello Feb 10 13:49:19 Hello Feb 10 13:49:40 its nice to have a warm welcome :-) Feb 10 13:54:54 Warm welcome, The_Fred ;-P Feb 10 13:56:22 hehe - cheers Mikellip Feb 10 14:05:26 Does anyone here use Git for Eclipse for using AndEngine in their projects? Feb 10 14:06:47 can anyone help me out with my collision method?-> http://pastebin.com/MmkrLmAg Feb 10 14:07:53 the ball sometimes gets stuck inside the rectangle and it will change x and y velocity rapidly inside so it either goes from left to right in the rectangle or it goes in a rectangle path around my paddle object that uses this collision method Feb 10 14:09:56 eddi3x3: its goign so fast it passes through your wall? Feb 10 14:10:07 are you using an engine? Feb 10 14:11:24 I would use a heuristic collision. Something like: if ball approaches box from left, and x velocity is positive, then flip x velocity Feb 10 14:11:53 actually I don't really understand this code. Feb 10 14:11:57 fuck yeah, hink i finally got this project ot compile Feb 10 14:12:26 how is it that setYVelocity(-1) for instance makes any sense? was the value before 1? What if the arrival direction is different? Feb 10 14:12:51 maybe there's something I'm missing. *shrug* Feb 10 14:14:32 also, when are you running the collision detection? Feb 10 14:14:59 you should update positions, then check for collisions, then update position/velocity accordingly Feb 10 14:15:58 well, a really fine algorithm can do multiple timestep scales and can find the collision point almost exactly. Feb 10 14:17:01 the key to determining timestep scale is to estimate the worst case time after which a collision might happen and only take that step + small delta (to ensure that you will eventually collide instead of enter Zeno's paradox territory) Feb 10 14:17:07 sure, especially in this case when you can just project the direction vector to see if it'll hit the paddle at some point in the future Feb 10 14:17:36 (given that the paddle does not move, of course) Feb 10 14:17:53 nah, it is allowed to move, you just have to account for both Feb 10 14:17:54 what callback fires when an intent gets delivered to an activity? Feb 10 14:18:12 is ICS out for the Motorola Xoom? Feb 10 14:19:03 alankila: yeah, just saying you can when doing collision detection in this case it doesn't really matter when you check for collisions, as long as you do it before the ball passes through the paddle Feb 10 14:20:28 sorry Feb 10 14:20:44 I didn't exactly see ur messages Feb 10 14:20:47 let me catch up Feb 10 14:20:54 no I'm not using an engine Feb 10 14:23:38 eddi3x3: but what I guess your problem is is the fact that you don't move the ball outside of the hitbox Feb 10 14:23:44 On orientation change my ASyncTasks seems to trigger and if I change orientation fast enough my app will crash :-DDDD Feb 10 14:23:48 does the java compiler optimize creating primitive variables inside for/while loops@? Feb 10 14:23:48 I'd also sort of recommend simulating collisions as if your objects were coated with elastic rubber that repel according to surface normal Feb 10 14:24:26 eddi3x3: you only modify the velocity Feb 10 14:24:36 so when the collision starts you generate a restorative force proportional to the depth of the penetration Feb 10 14:24:36 yea Feb 10 14:24:38 I mean Feb 10 14:24:44 meaning that if it's already partially inside the hitbox it'll simply retrigger the colission next cycle Feb 10 14:24:44 it usually works just fine Feb 10 14:25:00 it only happens when it comes close to a corner I suppose Feb 10 14:25:11 *collision Feb 10 14:25:21 or when the center of the ball overlaps the paddle Feb 10 14:25:25 yea basically Feb 10 14:26:47 as I see it, the easiest way to fix this is to move the object to the edge of the hitbox when you detect a collision Feb 10 14:27:19 or, when updating positions do the check and don't move it inside at all Feb 10 14:28:04 both aren't as nice as what alankila's suggesting, as you'll get jaggy motion if your game logic doesn't run at a high enough Hz Feb 10 14:28:13 a log2 search in timesteps with oracle that says "collided" or "not collided" might be sufficient to establish the point of collision to any degree of accuracy desired Feb 10 14:28:20 (in the event of a collision) Feb 10 14:30:50 anyone using Intellij? Feb 10 14:31:18 will C2DM work while note on the market yet, for testing? Feb 10 14:42:33 for me hierarchy viewer does not load the times, or the red/green/yellow dots, anyone know of why this could be? Feb 10 14:43:15 anyone use KSOAP`?? Feb 10 14:45:00 times? dots? Feb 10 14:45:48 Just thought I'd go ahead and say.... Intent.ACTION_VIEW + URI.parse saves a looot of time. Feb 10 14:46:56 Quick question, I have a base activity class from which all my other activities inherit. In that base activity class I want to implement a Handler in which the other activities that inherit from it can override the handleMessage method. How should I go about this? Feb 10 14:51:17 lazer_man: iirc you do something like Feb 10 14:51:53 public class BaseActivity extends Activity implements Handler.Callback Feb 10 14:52:02 anyone here knows how to run the android emulator? from compiled source? Feb 10 14:52:09 I've lunch'd full-eng and make'd Feb 10 14:52:15 but no 'android' or 'emulator' is on path Feb 10 14:52:25 and when I use the binaries from 'out' folder, it finds no targets to create a AVD Feb 10 14:52:31 what did i wrong? Feb 10 14:52:32 lazer_man: then in onCreate: Feb 10 14:52:44 lazer_man: mHandler=new Handler(this); Feb 10 14:53:05 anyone had problems with c2dm and the auth stuff? I'm always getting error 401, but I'm pretty sure I'm setting the header correctly Feb 10 14:53:36 marcosx86: After calling lunch, the shell you ran lunch in should have the path set up properly for "emulator" to be in the $PATH and to just work. Feb 10 14:53:40 lazer_man: and, of course implement handleMessage in BaseActivity as well with an empty implementation Feb 10 14:53:57 thanks! Feb 10 14:54:30 but generally I'd let subclasses create their own handlers Feb 10 14:54:46 a bit of flexibility without a lot of extra code Feb 10 14:54:58 It just feels like im copying a lot of code that way (I could be doing it wrong though) Feb 10 14:55:14 only those couple of lines Feb 10 14:55:24 ndim: thanks, I'll re'lunch Feb 10 14:55:27 marcosx86: you did "source build/envsetup; lunch full-eng" ? try it again in an empty terminal Feb 10 14:55:32 and since java only provides single inheritance you lose that Feb 10 14:55:55 shurane: just did that, worked now :) Feb 10 14:56:11 I'm using final Messenger mMessenger = new Messenger(new IncomingHandler()); so if I change to final Messenger mMessenger = newMessenger(this) I also have to implement IBinder...seems like overkill Feb 10 14:57:41 I have trouble compiling ics for htc ace. Has anyone done that already? Feb 10 14:57:51 the sample rate expressed in Hertz. 44100Hz is currently the only rate that is guaranteed to work on all devices, but other rates such as 22050, 16000, and 11025 may work on some devices. Feb 10 14:58:00 i love this chunk of documentation Feb 10 14:58:19 a will work, b c d e f and g might maybe work. Feb 10 15:00:50 I keep getting this error message: "make: *** No rule to make target `prebuilt/android-arm/kernel/LINUX_KERNEL_COPYING', needed by `out/target/product/ace/obj/NOTICE_FILES/src/kernel.txt'. Stop." Feb 10 15:01:02 Does anyone know how to debug that? Feb 10 15:01:35 touch prebuilt/android-arm/kernel/LINUX_KERNEL_COPYING :) Feb 10 15:02:22 thanks. I'll try that. Can you also explain why this message appears and why creating the file should help? Feb 10 15:02:37 whoop Feb 10 15:15:45 extremely frustrating, can't get c2dm auth to work Feb 10 15:18:23 http://pastebin.com/fCPHRmDT Feb 10 15:18:30 is what I'm doing Feb 10 15:26:23 anyone available for answering some feasibility questions to do with video recording Feb 10 15:28:56 is there something like a default template for an angrybirds like interface? Feb 10 15:29:13 um what Feb 10 15:29:43 I've seen plenty of games that have the exact same interface as angry birds, just with a different color sheme. is there a template? Feb 10 15:29:57 not provided by android Feb 10 15:30:09 maybe they all use the same engine or something Feb 10 15:30:17 or everybody is copying angry birds Feb 10 15:31:48 hmm :/ Feb 10 15:43:25 sorry for the noob question, but if I have an Activity that implements Handler.Callback, can I not instantiate a Messenger using new Messenger(this)? Feb 10 15:43:36 where this is the Activity Feb 10 15:44:29 someone committed a View#getX() call to our project Feb 10 15:44:35 sigh Feb 10 15:45:35 hello again Feb 10 15:45:47 Im just about ready to publish my app (not my 1st) - any urls, tips, hints, etc about using LVL for the 1st time? Feb 10 15:47:36 The_Fred: test it? Feb 10 15:47:59 lov, yea, i guess thats the only way: bite the bullet Feb 10 15:52:04 I now get the error message "No rule to make target `out/host/common/obj/JAVA_LIBRARIES/asm-tools_intermediates/javalib.jar', needed by `out/host/common/obj/JAVA_LIBRARIES/lint_api_intermediates/javalib.jar'" during ICS build does anoyone have an idea? Feb 10 15:52:47 I'm trying to follow the Notepad tutorials, in v1, I used onCreateOptionsMenu(...) to add a button to the menu, but now in v2 I'm using onCreateContextMenu(...) to do the same thing... I thought that I just simply had to add menu.add(new menu) into onCreateOptionsMenu(...) and be done with it, can someone clarify? Feb 10 15:54:35 With the one command you are adding a menu item to the context menu and with the other one you add an entry to the option menu. Feb 10 15:59:32 I'm not sure I understand, I'll try and see what it does on the emulator. Feb 10 16:00:37 Alright, I'm completely clueless. Feb 10 16:01:43 Oh, I think I get it now. Feb 10 16:15:33 I have extended View and overriden onTouchEvent but I only receive ACTION_DOWN events. I also want to trigger MOVE and UP events. Feb 10 16:15:44 http://ideone.com/0aFR2 Feb 10 16:16:41 return true when you consume the event Feb 10 16:17:17 simonvt: ugh, didnt thought that the problem would be related to that - thanks! It worked :D Feb 10 16:18:59 SimonVT: Can you explain why this solves the issue? Feb 10 16:20:14 I am trying to implement fragments, but I get the following error java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thetopomarket/com.thetopomarket.UI.DashboardActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class fragment Feb 10 16:20:21 the xml is correct Feb 10 16:20:39 I checked and checked and got somebody else to check incase I missed something Feb 10 16:20:50 Maybe some other view acted on the touchevent Feb 10 16:21:08 I am using it on a 2.3.4 device and using a support library but I just can't figure out what is wrong Feb 10 16:23:34 anybody had similar issues? Feb 10 16:23:37 ur xml is wrong :P Feb 10 16:24:01 it seems to be failing on the line that only has i don't define anything else Feb 10 16:24:31 how can it have a run time error for this line Feb 10 16:24:32 Maybe you imported the wrong Fragment class in your fragment Feb 10 16:24:48 It means the whole tag Feb 10 16:25:01 No matter if it's 1 line of 10, it'll report the first line of the tag Feb 10 16:25:18 import android.support.v4.app.Fragment; Feb 10 16:25:26 ah ok Feb 10 16:25:41 i think the import is correct Feb 10 16:25:53 its not even getting to the create view in the fragment Feb 10 16:26:50 Well, if it can't parse the xml, something's probably wrong with your xml Feb 10 16:27:09 http://youtu.be/kfVsfOSbJY0 Feb 10 16:27:20 fun fun fun fun Feb 10 16:29:37 what is everyones fasination with that song Feb 10 16:30:44 http://i3.kym-cdn.com/entries/icons/original/000/005/025/whywouldyoudothat.jpg Feb 10 16:34:47 how can I force the termination of a service to verify restarting it works correctly? Feb 10 16:36:09 http://pastebin.com/us7RTwe4 Feb 10 16:36:12 Syzygy: Sorry for not answering... Did you get it now? Feb 10 16:36:18 anyone care to check out my xml Feb 10 16:36:20 dang`r`us: unbind, stopservice Feb 10 16:37:27 jiduvah: What's wrong with it? Doesn't it compile? Feb 10 16:38:02 unable to inflate xml Feb 10 16:38:04 jiduvah: Are you extending FragmentActivity? Feb 10 16:38:18 yes Feb 10 16:40:12 ok the problem was I calling set context before calling super() on create Feb 10 16:40:15 wtf Feb 10 16:40:32 :-) Feb 10 16:40:35 I should feel happy that one of the most frustrating hours has ended Feb 10 16:40:41 but I just want to kill somebodyy Feb 10 16:43:19 Well, I guess you won't make the same mistake again ;-) Feb 10 16:44:31 I have also an issue. It occurs while compiling ICS for HTC ace. I get the following error message: Feb 10 16:44:34 make: *** No rule to make target `out/host/linux-x86/framework/lombok-ast-0.2.jar', needed by `out/host/common/obj/JAVA_LIBRARIES/lint_api_intermediates/javalib.jar'. Stop. Feb 10 16:44:35 Does anyone know the reason? Feb 10 16:45:05 what is the soft menu called? I want to add something down at the bottom of the tablet. I've seen it done I just do not know what its called to look up how to implement it. Feb 10 16:45:44 you mean the icon that sometimes appears and which opens the context menu? Feb 10 16:46:16 quick question - is it possible to set ADK up in myeclipse blue? Feb 10 16:46:16 I've seen apps put an liket icon down at the bottom for settings ... Feb 10 16:46:36 sry. not context menu, it's option menu Feb 10 16:46:50 this is for backwards compatibility AFAIK Feb 10 16:47:12 build for android 2.x and add an option menu Feb 10 16:47:30 then you will see this button on an android 3.x device Feb 10 16:48:05 when building for an android 3.x device, you will have the action bar instead. Feb 10 16:49:54 The one I'm looking to implement would show at the bottom close to the back abd home soft buttons... Is that called the action bar, I thought the action bar was at the top, which is removed for my app. Feb 10 16:50:34 no, that's not the action bar Feb 10 16:50:41 I don't know how that is called Feb 10 16:51:11 but next to these buttons, there will be no context menu button if you build for Android 3.x Feb 10 16:51:26 (sry. option menu button) Feb 10 16:51:38 BoxyK: im 4.x Feb 10 16:52:00 If you have an option menu in Android 3.x (or later) it will be displayed in the action bar (top of the screen) Feb 10 16:52:19 only if you build an app for android 2.x Feb 10 16:52:25 you can use options in 4.x, but you have to be careful about build targets. Feb 10 16:52:35 i prefer to use the old style for most things. Feb 10 16:52:51 BoxyK, sometimes it's displayed in the action bar at the bottom of the screen Feb 10 16:52:56 and only if you run this app on a device with android 3.x or later, this button will be displayed. Feb 10 16:53:00 It is a custom app, we control what device it will be on. Feb 10 16:53:18 targetsdk=8, minsdk=8, onCreateOptions will work. Feb 10 16:53:19 hi all Feb 10 16:53:20 yes, it's displayed at the bottom of the screen if the app was developed for Android 2.x Feb 10 16:53:24 i have a question:) Feb 10 16:53:28 no Feb 10 16:53:33 4x Feb 10 16:53:35 go look in gmail Feb 10 16:53:37 BoxyK: splitActionBar Feb 10 16:53:40 on ICS Feb 10 16:54:24 i set my target to 14, minsdk to 8 and the options shows up. Feb 10 16:54:40 because i'm too lazy to put shit on the actionbar. Feb 10 16:55:14 http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html Feb 10 16:55:23 I never used the splitActionBar Feb 10 16:55:32 that blog post will tell you all about options menu vs actionbar. Feb 10 16:55:54 yes, I think it will be the best to read it yourself Feb 10 16:55:59 thanks. Feb 10 16:56:01 lunch time Feb 10 16:57:12 dude, i have a question Feb 10 16:57:26 duuude Feb 10 16:57:27 dude, i believe you. Feb 10 16:57:52 so ask it. Feb 10 16:58:04 Dood Feb 10 16:58:11 what is the function to set timeout for display Feb 10 17:03:34 anyone know whats up with io 2012? Feb 10 17:03:40 by this time last year, the tickets were sold out Feb 10 17:05:37 is there anyway to mess with how media is recorded from the camcorder? Feb 10 17:05:42 I want to mexican hats on things etc Feb 10 17:07:42 sombreros* Feb 10 17:07:51 oi Feb 10 17:07:53 keep it PC Feb 10 17:08:06 wat Feb 10 17:09:57 Is it possible to detect if a item is in the options menu or if its in the overflow menu, either one? Feb 10 17:10:19 Gsingh: there's a way to assign that priority. Feb 10 17:11:31 can you elaborate? Feb 10 17:11:47 of you mean wheter it should display in the overflow menu? Feb 10 17:11:54 yes. Feb 10 17:12:18 let me explain some of my icons go in the overflow menu if there is room Feb 10 17:12:26 not room* Feb 10 17:12:38 so how do i detect if thats the case at runtime Feb 10 17:12:48 you can assign a priority to each item, higher priority is displayed first, you can also tell the menu how many items to display in the standard menu before an overflow is displayed. Feb 10 17:13:05 you don't. there's no need to. you can define it. Feb 10 17:13:19 or maybe there is, but you most likely don't need it. Feb 10 17:13:29 I do need it for what i am doing Feb 10 17:14:02 I just need to detect somehow which menu the icon is in... Feb 10 17:14:24 why? Feb 10 17:17:42 because on certain android versions the overflow menu background is white Feb 10 17:17:46 and my icons are white Feb 10 17:17:56 so u can see the problem... Feb 10 17:18:14 I want them to be a different color Feb 10 17:19:24 http://developer.android.com/guide/practices/ui_guidelines/icon_design.html Feb 10 17:19:31 http://developer.android.com/guide/practices/ui_guidelines/icon_design_menu.html Feb 10 17:23:27 Thanks ive seen that Feb 10 17:28:20 google analytics things my evo 3d is a Sony Ericsson LT15i Xperia Arc Feb 10 17:37:35 which file contains the platform files ... system.img? Feb 10 17:48:31 damn this blog didn't help me... Feb 10 17:50:37 Hello. Do android devices support vector image formats? Feb 10 17:50:49 yes, in a sense. Feb 10 17:51:07 Are PDFs supported? Feb 10 17:51:12 the android drawing library, skia, does appropriately support vector drawing primitives. Feb 10 17:51:29 Pritchard: there are PDF apps, but nothing tos upport it directly in the SDK of course. Feb 10 17:51:46 jasta: Okay. Feb 10 17:51:47 you can use the android ecosystem to open a PDF on someone's phone pretty easily, though. Feb 10 17:52:30 jasta: Is that guaranteed? :| Feb 10 17:56:51 Does anyone know if the dev team plan to make an action bar that's compatible all the way back to 2.2? Feb 10 17:57:12 how do you add the soft menu to the bottom of the app the button shows up beside the very most bottom back and home buttons on a tablet. an example of an application that has this is skype. Feb 10 17:57:14 no Feb 10 17:57:48 roger_padactor: why do you want to do that? Feb 10 17:58:00 it's really only for legacy apps Feb 10 17:58:09 it's not supposed to be something you want to add Feb 10 17:58:14 mikedg: ah I see Feb 10 17:58:16 ok Feb 10 18:00:11 Also, I have a design question. What is probably the best way to support a tabbed interface all the way back to 2.2 without using tabhosst? Feb 10 18:00:21 Because TabHost is kind of… deprecated Feb 10 18:00:34 ill just make it so when the app opens it checks for updates and pops up a notification if something is available. Feb 10 18:00:46 hwrd_work: http://storkme.org/2011/12/tabs-done-right-viewpager-and-fragments/ Feb 10 18:01:13 vierpager is optional, but in most situations i think it makes the app nicer Feb 10 18:01:33 storkme: sickness. That's a good resource. Feb 10 18:02:22 hope you find it useful, feel free to msg me any questions or whatever Feb 10 18:09:37 hi folks Feb 10 18:10:16 i'm trying to compile pl2303 module to my Galaxy S2 running ICS 4.0.2 but when I insert the module, i get insmod: init_module 'pl2303.ko' failed (Exec format error) Feb 10 18:10:44 i know i'm probably missing something stupid, i'm not a android dev.. Feb 10 18:13:07 anyway, I got the same kernel version i'm using on my phone from kernel.org and used exynos4_defconfig, then compiled it with CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- Feb 10 18:15:31 also, I configured -I9100XXLPB-CL99600 on kernel local version, so it could match my running kernel.. take a look: uname -r 3.0.15-I9100XXLPB-CL99600 and modinfo pl2303.ko vermagic: 3.0.15-I9100XXLPB-CL99600 SMP preempt mod_unload ARMv7 Feb 10 18:15:43 any idea on what am I missing? Feb 10 18:18:08 pl2303 is for USB Prolific 2303 Single Port Serial Driver Feb 10 18:21:02 Hey all. Curious question, what takes less battery on an average? bluetooth or gps? Feb 10 18:22:10 bluetooth, by such an unbelievably wide margin im surprised you dont know already :) Feb 10 18:22:18 almost nothing draws as heavily as gps Feb 10 18:22:21 does it? Feb 10 18:22:31 my guess would be that the only thing which does is the screen. Feb 10 18:22:34 woha, back in the day bluetooth drained like crazy Feb 10 18:23:13 squeakytoy: bluetooth is expensive relative to, say, a GSM radio, but not relative to gps. Feb 10 18:23:37 are there any statistics on this? Feb 10 18:24:09 someone know how solve this problem? index.xml: Failed to find style 'mapViewStyle' in current theme. I'm using Google API and imported google maps to Manifest Feb 10 18:30:58 Is there a better solution keeping to buttons in two fragments in sync than using runnables? Feb 10 18:37:09 any easy way to limit the listview from showing more than 3 elements at a time, instead of expanding? Feb 10 18:38:58 set the height to be 3 elements hi Feb 10 18:39:24 pfn: not sure what you mean Feb 10 18:39:38 I get this error at logcat everytime that I use AudioTrack.play(), any hint? 02-10 18:38:49.387: I//usr/sbin/audiomixer(1398): ALSA lib pcm.c:7067:(snd_pcm_recover) underrun occured Feb 10 18:39:42 3*prefferedListItemHeight? Feb 10 18:40:57 basically Feb 10 18:43:23 so if eclipse's logcat gets desynced, how do I attach it to the process again? Apart from closing eclipse. Feb 10 18:44:16 window -> show view -> other Feb 10 18:44:17 logcat Feb 10 18:44:25 Our custom app will not be on the market, Can i have my app download updated apk's? Feb 10 18:44:32 eclipse logcat is the biggest problem i have in my life Feb 10 18:44:33 shurane, tap on the device Feb 10 18:44:39 roger_padactor: no Feb 10 18:45:07 you could but it will be not right Feb 10 18:45:34 snooplsm, pfn: i mean the logcat window is visible in eclipse, but it's not attached to the device or whatever Feb 10 18:45:38 so how do you update an application that is not on the market? Feb 10 18:45:45 unplug your device Feb 10 18:45:48 or adb kill-server Feb 10 18:45:50 adb start-server Feb 10 18:45:59 hm... Feb 10 18:46:05 Multimedia: Subtitles support not available in android ics Feb 10 18:46:08 shurane, show the device view Feb 10 18:46:16 shurane, tap on your device in the device view, logcat will refresh Feb 10 18:46:24 click on, whatever Feb 10 18:47:26 fantastic pfn, thanks. Feb 10 18:48:30 shurane, did you give up with scala? heh Feb 10 18:51:11 pfn: haven't looked into it yet Feb 10 18:51:14 after this prototype is out though Feb 10 18:51:20 my code looks like shit :( Feb 10 18:51:28 i'm just hacking bugs away as they go Feb 10 18:51:32 all scala code looks like shit Feb 10 18:51:35 and my design is very inconsistent Feb 10 18:51:48 snooplsm: LIES and etc. Feb 10 18:53:00 well, scala code can quickly look like shit if the writer takes advantage of too many symbols in their code Feb 10 18:53:44 everyone does somethign totally different Feb 10 18:53:49 get carried around Feb 10 18:53:51 away Feb 10 18:53:54 what does ++/ mean? Feb 10 18:54:04 what does !~2 mean? Feb 10 18:54:34 the simple answer is that it depends on context Feb 10 18:54:47 same with c++, but you don't really hear too many complaints about crazy operator overloading anymore Feb 10 18:54:49 this is what I get pl2303: version magic '3.0.15-I9100XXLPB-CL99600 SMP preempt mod_unload ARMv7 ' should be '3.0.15-I9100XXLPB-CL99600 SMP preempt mod_unload ARMv7 p2v8 ' Feb 10 18:54:50 but snooplsm: creating operators is awesome Feb 10 18:54:59 especially if consistently done Feb 10 18:55:04 about the only complaint is the stupid use of cout << foo << bar Feb 10 18:55:22 that p2v8 thing in the end is messing with me.. i got the localversion right already.. but how to add that p2v8 after ARMv7 ? Feb 10 18:55:23 then why did java decide not to allow them? Feb 10 18:55:37 and after google, good luck googling for what the heck they mean Feb 10 18:55:52 snooplsm, you read the apidocs to determine what they mean Feb 10 18:56:06 pfn: yeah, good luck finding em Feb 10 18:56:21 none the less I am still a fan of scala Feb 10 18:56:26 just get super mad reading peoples code Feb 10 18:56:42 finding them isn't very difficult Feb 10 18:56:55 any library you use should be have up-to-date scaladocs Feb 10 18:59:01 snooplsm: What's awesome about Haskell is Hoogle returns you haskell specific stuff, and I think lets you search operators too Feb 10 18:59:08 and you can search things by type signature. It's rad. Feb 10 18:59:34 yeah, hoogle is pretty nice Feb 10 18:59:38 * pfn saw that the other day Feb 10 18:59:54 programming barbie says: functional languages are *hard* Feb 10 19:00:07 what's funny is... the shorter and more terse code is in haskell, the more readable haskellers call it Feb 10 19:00:10 ;-) Feb 10 19:01:18 well it's, I think, a better approach than the one liners in Perl :P Feb 10 19:01:32 * synic is digging the terse syntax of Rust Feb 10 19:01:34 shurane, that's the thing, they approach perl's one-liner complexity Feb 10 19:01:38 Perl's periodic table of operators comes to mind. Feb 10 19:01:46 or are about equivalent Feb 10 19:02:11 Really? Well the short stuff I've seen I attributed to Haskell being functional. Feb 10 19:02:20 like the definition of fix and const Feb 10 19:02:29 it takes more time (for me) to understand it than to read it Feb 10 19:02:44 But I don't know much haskell, though Feb 10 19:02:48 the same can be said of perl Feb 10 19:03:17 takes less time to read the code than it does to understand it Feb 10 19:03:26 * pfn doesn't know haskell well at all yet either Feb 10 19:03:54 but practically every line of haskell, I have to sit and think about what it does and how the function calls work after they're decomposed, etc. Feb 10 19:04:18 pfn: but currying functions in haskell! soo neat, I can send (9+) around and it makes way too much sense. Feb 10 19:04:57 of course, there's some arguable elegance when you can implement quicksort as qsort [] = []; qsort (x:xs) = qsort(filter (x) xs) Feb 10 19:05:24 also i thought functional languages were in general terse because you try to reuse stuff like filter, fold, etc. etc. Feb 10 19:06:05 er, all those design paradigms? Not paradigms so much as.... something. Dunno what. Feb 10 19:06:22 but I digress with #off-topic Feb 10 19:06:23 higher order function Feb 10 19:07:10 Trying to figure out SQlite: Is it possible to do an "UPDATE OR INSERT" based on a "WHERE myKey=? and myValue=?" clause, without having to mark the myKey and myValue columns as unique? Feb 10 19:07:10 Is anybody using AndEngine for 2D games? Feb 10 19:07:34 well there's more than just higher-order functions, I thought, but I dunno... functors, applicative, monads, arrows? Feb 10 19:08:13 is there a way to prevent a notification icon from being hidden when the status bar fills up? like giving it a higher priority? Feb 10 19:08:36 shurane, morphisms, categories, etc. Feb 10 19:10:40 pfn: ahah Feb 10 19:11:34 * pfn still doesn't know the strict definition of a monad :( Feb 10 19:11:45 umad? Feb 10 19:12:13 storkme: works for me Feb 10 19:12:40 oh well, that's covered in he next chapter of learnyouahaskell, if I ever get around to reading it Feb 10 19:14:31 hi all Feb 10 19:15:14 I am coding an application to collect sensor data. Does ti hs sense to code the collecting class as a service ? Feb 10 19:16:38 aLeSD: What kind of sensor data are you collecting? Most likely, a service will make the most sense Feb 10 19:17:10 aLeSD: if it's "kind of" realtime, i'd go with service, maybe even running in separate process Feb 10 19:18:04 skfax, p_l it's reltime and I am collecting the data from a sensor the user selects Feb 10 19:18:26 aLeSD: make a sticky service Feb 10 19:18:29 get(Measured)Width() = 0? Feb 10 19:18:47 my view has a definite size Feb 10 19:19:02 I am thinking to extend Service and implement Observable interface Feb 10 19:19:04 it takes up some area because it has a background Feb 10 19:19:48 aLeSD: use a service, potentially a foreground service so that it doesn't get reaped. Feb 10 19:19:52 now how the user can tell the service which senso has to be monitored ? Feb 10 19:20:03 Does anyone know how the new chrome pre-loads pages in the background? Whenever I've tried to preload pages with a WebView, it has to happen in the UI thread... Feb 10 19:20:10 foregrounding the service will also tell the user that it is running Feb 10 19:20:43 lov .. I 'm thinking in use a notifiction icon to tell the user the service is collecting. What do u think ? Feb 10 19:21:02 aLeSD: foregrounding a service REQUIRES that you display a notification. Feb 10 19:21:10 see the docs please Feb 10 19:21:16 that's lovely Feb 10 19:21:19 hi! Feb 10 19:21:37 hi Feb 10 19:22:26 1. I want to public app at android market. Is there any test account?? To check if everything is ok? Feb 10 19:22:39 no Feb 10 19:23:04 adrub: You publish the app and it goes live. There's no pre-production area where only you can look at it. Feb 10 19:23:08 adrub: just test it manually Feb 10 19:23:15 if you're not sure what will happen, you should test the app more. Feb 10 19:23:16 $25 to have users call you every name in the book Feb 10 19:23:20 haha Feb 10 19:23:30 ok I see. thanks. and second question Feb 10 19:23:31 $25 to have users yell at you for the advertising you're showing them that you don't even fucking have. Feb 10 19:23:42 2. is here anyone who use AdMob ? Feb 10 19:24:30 adrub: yes Feb 10 19:24:40 lov, I had that happen to me Feb 10 19:24:41 lov: oh man, it'd be cool if there was a beta market vs regular market Feb 10 19:24:47 for app development, I mean Feb 10 19:24:49 is it good idea? I have some flash games, I create apk using AiR and I want to add some ads. Feb 10 19:24:53 11:23 $25 to have users call you every name in the book Feb 10 19:24:56 you have that problem? Feb 10 19:24:57 heh Feb 10 19:25:05 SimonVT: that happens to our app like every other weak. Feb 10 19:25:07 how does it works? the will give me code in flash / action script? Feb 10 19:25:08 week Feb 10 19:25:17 pfn: my app helps with public transportation and my users think I am the agency Feb 10 19:25:20 "Best but spams. But it started spamming with ads about win apple products and txt me about it. Remove those get five stars" Feb 10 19:25:21 I am just a 3rd party :) Feb 10 19:25:35 I can't help trains being late Feb 10 19:25:58 adrub: I'm not sure what you'll be able to do. Adobe AiR isn't really on anyone's radar. You'll have to contact admob and see if they have something they can give you. Feb 10 19:26:09 adrub: if you go to the admob website, it gives you step by step instructions on what you need to do to add the ads to your app Feb 10 19:26:12 AiR is really a very non-standard way to make an app, admob expects you to take the jar they provide and use it in your app. Feb 10 19:26:24 snooplsm, hah, that's awesome Feb 10 19:26:27 if AiR gives you some sort of intermediate project you can modify and compile, that might work. Feb 10 19:26:30 snooplsm: haha Feb 10 19:26:52 Amphoras ... Thats the problem, that I use AiR :) I'm worried that they don't support it Feb 10 19:26:58 Which SDK target do you suggest to use? Feb 10 19:27:28 adrub: its free to make an account, so you could always try it and see if it works or not Feb 10 19:27:33 also there is some great pos feedback, definitely a lot more than neg feedback Feb 10 19:27:40 after all, all my users live in New Jersey Feb 10 19:27:51 aLeSD: Set the highest build target that you have installed. Set the minSdk level in the manifest to the minimum level you know you can support. Set the targetSdk level in the manifest to the highest api level you have tested against. Feb 10 19:28:00 snooplsm: ha, what app? Feb 10 19:28:09 lov: this ads are in jar? so it should work with flash i think.. Feb 10 19:28:19 adrub: you have to do some extra work with manifests. Feb 10 19:28:23 adrub: look at the admob site. Feb 10 19:28:45 I'm registering now... we will se Feb 10 19:28:48 *see Feb 10 19:28:57 anyone submitted an app to the blackberry app world for the free playbook? Feb 10 19:29:01 nope Feb 10 19:29:08 I thought about it for about a minute Feb 10 19:29:13 and then decided idgaf Feb 10 19:29:39 ditto Feb 10 19:30:24 I did it earlier :p Feb 10 19:31:43 i submitted https://market.android.com/details?id=com.amphoras.passwordgenerator will probably just sell the playbook if i get one Feb 10 19:32:08 is there a free market for apps Feb 10 19:32:20 Just some old app I made.. Downloaded the apk from market cus I was too lazy to create a project around the source :p Feb 10 19:39:25 Amphoras: free playbook? Feb 10 19:39:27 url? Feb 10 19:39:37 FYI I found this: http://blog.dreamflashstudio.com/2011/02/admob-in-flash-with-adobe-air-for-android/ Feb 10 19:39:53 snooplsm: http://us.blackberry.com/developers/tablet/playbook_offer2012.jsp Feb 10 19:39:55 flash and adobe air are crapola Feb 10 19:39:58 SimonVT, try out latest qicr yet? I fixed that disappearing text input thing Feb 10 19:40:19 oh, haven't yet Feb 10 19:40:23 I don't really use it much :P Feb 10 19:40:49 SimonVT, and ics has two mac mode options, defaults to list now Feb 10 19:41:02 mac = nav Feb 10 19:41:18 SimonVT, boo Feb 10 19:41:58 pfn said mac :| Feb 10 19:42:12 attack! Feb 10 19:42:15 thanks Feb 10 19:43:55 everybody says that Air and flash sucks... I think it works good. For me it is ok. I'm creating games for android using AiR and it works good enough. And second point: do you know any other way to play flash game on android? ;} Feb 10 19:44:33 adrub: flash doesn't work on some android phones :( Feb 10 19:44:39 like mine Feb 10 19:44:52 true... only 2.2.3 i think and newer Feb 10 19:45:07 i have 2.3.7 Feb 10 19:45:18 just my phone is bad Feb 10 19:45:24 oh.. what is it? Feb 10 19:45:25 SimonVT, I use it much too often that's why I wrote it Feb 10 19:45:35 zte blade Feb 10 19:45:48 pfn, yah, I mainly write apps for myself as well Feb 10 19:45:53 but you know it is chipper use air than develop game again especially without flash Feb 10 19:46:12 mm ... first problem : I want to create an Observable Service ... bit I can't extend from both .. is there a way to do it ... or maybe my design is wrong ? Feb 10 19:46:16 It'd be nice to have regular users, too Feb 10 19:46:26 Often the popular apps on market are pretty shit, but they've been around since the beginning so have a lot of users :P Feb 10 19:46:56 I know Feb 10 19:47:21 Amphoras: there is list of supported mobiles http://www.adobe.com/flashplatform/certified_devices/smartphones.html Feb 10 19:47:26 SimonVT: yeah, lots of people just go "oh that app has 1000000 downloads, it must be good" Feb 10 19:47:42 and I think a lot of popular mobiles are on this list, so it's enough for me ;) Feb 10 19:47:52 Amphoras: Well, mainly that those apps are at the top of searches because of 1mil downloads, and people just take the first they see Feb 10 19:48:49 SimonVT: yeah that was what i was meaning. they go for the first one/one with lots of users, so that one gets even bigger and bigger Feb 10 19:49:13 so i ordered a home theatre system from best buy on boxing day - they still havent charged my credit card for it, and ive had it for weeks Feb 10 19:49:33 Return it, say you want your money back Feb 10 19:49:34 win! Feb 10 19:49:39 lol Feb 10 19:49:41 lol Feb 10 19:49:46 but i wnat it Feb 10 19:49:55 if i got my money back, then id have to go out and buy another Feb 10 19:49:59 without the boxing day savings Feb 10 19:50:01 :P Feb 10 19:50:03 meh :p Feb 10 19:50:08 also im past the return period :P Feb 10 19:50:49 my visa expires in june Feb 10 19:50:57 i wonder if they'll catch it before then Feb 10 19:51:10 Hopefully not :p Feb 10 19:51:40 funny thing is i ordered it right before i moved Feb 10 19:51:47 so my billing address is my old address ( i dont live there) Feb 10 19:51:51 and i had it shipped to my cousin's Feb 10 19:51:55 so they really dont have any info on me Feb 10 19:53:22 :D Feb 10 19:54:00 flash works on 2.3.7 Amphoras Feb 10 19:55:25 dunivan: i know, I just said it didn't work on my phone Feb 10 19:55:34 what phone do you have? Feb 10 19:55:39 zte blade Feb 10 19:55:42 flash blows Feb 10 19:55:48 also pfn: i'd rather go the terse direction with haskell rather than the verbose direction with java >_> Feb 10 19:55:58 its an arm v6 processor so it isn't supported Feb 10 19:56:21 shoerain, tradeoffs and balance Feb 10 20:05:53 when importing an Android project into eclipse, what identifies it as an Android project? My project keeps importing as a regular Java project Feb 10 20:07:55 That you created an Android project Feb 10 20:10:39 guys! A lot of games at market needs access to location state.... why? Any idea? do they send some information about where I live to app owner? or what? Feb 10 20:10:46 hi Feb 10 20:11:14 adrub: Probably to use it for ad targeting Feb 10 20:11:38 or to do location-specific unlock; angry birds did this Feb 10 20:11:53 or because people like games and it's a good vector to be invasive Feb 10 20:13:01 aaaah! ads and unlock... goood point Feb 10 20:13:39 dragorn what to you mean in last sentense? Feb 10 20:18:48 I mean that people like games, and it's a good opportunity for sketchy behavior on the part of ad companies / spam / spyware Feb 10 20:21:47 I see... true story Feb 10 20:29:24 Bitmap bmp1 = getSomeBitmap(); Bitmap bmp2 = Bitmap.createBitmap(bmp1); bmp1.recycle(); bmp2.getPixels() ---> exception? Feb 10 20:33:10 tophyr: read the docs. Feb 10 20:34:49 have, several times. not really very clear. recycle() docs say it allows the pixel data to be GC'ed if there are no other references. createBitmap(Bitmap) says it creates another bitmap, which may reference the original data or a copy. Feb 10 20:35:13 experience seems to say that yes, exception... because that's why i'm asking... so really, i guess i'm not actually asking, just bitching. Feb 10 20:36:30 it would seem to me, that if i created a new bitmap based on some old one, that i should be able to recycle the old one with impunity and have the new one unaffected. Feb 10 20:36:43 ain't the case unfortunately. Feb 10 20:37:26 Google reportedly working on wireless home entertainment system Feb 10 20:37:30 * g00s yawns Feb 10 20:38:13 Emulator is incredibly slow to load. Anyone else have this problem? Feb 10 20:38:29 g00s: that the android@home thing they were talking about at i/o? Feb 10 20:38:30 t432: no, its just you ;) Feb 10 20:39:00 Amphoras: not sure, http://online.wsj.com/article/SB10001424052970203824904577213430617644196.html Feb 10 20:39:10 What could be problem? I tried increase sd card size and ram to no avail Feb 10 20:39:22 i guess they have to keep copying Apple :) Feb 10 20:39:23 g00s, is fucking with you Feb 10 20:39:41 t432: emulator is slow for everyone, heh Feb 10 20:40:00 guys... AdMobs use internet to send ads to mobile. Am I right? So what will happen when user don't have internet connection? the ads will not apear? Feb 10 20:40:07 on averge how long does it take for you guys? Feb 10 20:40:13 next i expect apple to emphasize gaming, and i bet in 2013 we'll see goggle expand into gaming Feb 10 20:40:28 t432: however much time you have + 5 minutes Feb 10 20:40:38 t432: it can be very slow to load, especially on first run Feb 10 20:40:43 it depends entirely on a number of factors Feb 10 20:40:48 g00s: sounds like it yeah Feb 10 20:40:51 if you think that it's stuck, run adb logcat and see if it's frozen somewhere Feb 10 20:40:57 t432: also, make your storage minimal, i make mine 9mb Feb 10 20:41:08 occasionally the emulator AVD will just poo Feb 10 20:41:14 adrub: it just means no ads show if there's no connection Feb 10 20:41:17 (unless of course you need more, and i also use -boot-noanim or whatever the fuck its called) Feb 10 20:41:40 do you guys keep it running or stop it and restart after adding new code? Feb 10 20:41:53 keep it running until you shut down for the day Feb 10 20:41:55 yeah, use wireless adb and use your device as an emulator Feb 10 20:41:58 t432: i use my phone instead cause it annoys me Feb 10 20:42:11 *emulator annoys me Feb 10 20:42:13 i do that because, i have seen it go out of control and take 100% of the cpu, which i don't want when i leave the machine over night Feb 10 20:42:33 Amphoras: Me too Feb 10 20:42:49 google should provide an x86 AVD that runs natively Feb 10 20:42:49 t432: keep it running Feb 10 20:42:55 only good reason to run th eemulator is to test your code for version incompatibilities Feb 10 20:42:55 jrr: it's being worked on Feb 10 20:43:35 you sure? Feb 10 20:43:35 g00s: are you refering to sd card size (9mb)? Feb 10 20:43:42 t432: yes Feb 10 20:44:09 jrr: yes, the devs have discussed it publicly at I/O Feb 10 20:44:17 i have mine set at 150. I thought higher the better Feb 10 20:44:17 jrr: surprise surprise porting an arm architecture to x86 is difficult Feb 10 20:44:19 t432, also, boot an older version of android like eclair or froyo Feb 10 20:44:22 also using gl for graphics Feb 10 20:44:38 t432: the sd card size doesn't really matter unless you're using the storage Feb 10 20:45:40 http://www.gizmag.com/gopad-wear-ipad/21389/ Feb 10 20:45:49 should work with other tablets Feb 10 20:46:04 actually i could see this being pretty fucking useful Feb 10 20:46:31 thanks Feb 10 20:47:00 the sd card has a minimum of 9mb i think, thats why i make it 9 Feb 10 20:47:03 fuck yeah http://www.gizmag.com/hanczar-wheeled-sled/21373/ Feb 10 20:47:27 so you can stand up on that while using your iPad with the previous gizmo :D Feb 10 20:47:35 all the time going downhill Feb 10 20:47:46 They must do something about the Emulator. Its a real drag Feb 10 20:47:52 t432: it's called "get a phone" Feb 10 20:47:56 hey any Git users here? Feb 10 20:47:56 the emulator is really bad at HC and above Feb 10 20:48:02 because it assumes native GL support Feb 10 20:48:05 (which the emu doesn't have yet) Feb 10 20:48:35 is it Kosher to host more than 1 project in a single Git repo? I do it in SVN w\o issue, just checking out a sub directory for each project Feb 10 20:48:42 too late for that. I have to wait 1 more year before my phone contract is over Feb 10 20:51:27 Wavesonics, git repo = 1 per project Feb 10 20:51:33 :/ Feb 10 20:51:41 svn is basically just a remote filesystem Feb 10 20:51:56 so this moto exec is blaming google for upgrade delays, saying the way the deal with nexus devices + supposedly the hardware porting being substantial is what leads to delay (although they do add that their custom skin is a partial factor also). Feb 10 20:52:03 http://www.pcmag.com/article2/0,2817,2400023,00.asp Feb 10 20:52:19 pfn, that sux, was looking at using GitHub for my private personal projects, but i've got like 20+ that would need their own repos then Feb 10 20:52:42 so have 20 Feb 10 20:52:46 thats easy Feb 10 20:53:06 their highest plan for private repos is 20 repos Feb 10 20:53:45 you want private? Feb 10 20:53:49 just find a shell box to host it Feb 10 20:54:12 pfn, i have my own server, thats not the issue, i wanted a hands off hosting solution Feb 10 20:54:13 or if they're small projects, just combine them in the overall repo Feb 10 20:54:27 pfn, but u just said 1 project 1 repo :P Feb 10 20:54:34 Wavesonics: make 2 accounts? Feb 10 20:54:39 that's the general usage Feb 10 20:54:50 Amphoras, ya and pay twice the $, no th Feb 10 20:55:00 why do you even need 20 private repos... Feb 10 20:55:13 * pfn shrugs Feb 10 20:55:17 private stuff goes to my private server Feb 10 20:55:22 open-source stuff goes to github for me Feb 10 20:55:24 Wavesonics: sorry, didn't notice you were paying Feb 10 20:56:12 pfn: what are you using for git on the server ? Feb 10 20:56:36 git + ssh Feb 10 20:56:45 no gitosis or crap like that , ok Feb 10 20:57:05 I dont need it for my own stuff Feb 10 20:57:12 at work theyre trying gitolite Feb 10 21:00:54 * g00s doesn't understand why the latest release of git is 1.7.9, but git-scm says its 1.7.6.6, yet the latest stable build not 1.7.9 is 1.7.8.4 Feb 10 21:01:07 <.< Feb 10 21:01:08 >.> Feb 10 21:01:43 * abaratican doesn't understand quantum physics. Feb 10 21:01:44 * pfn shrugs Feb 10 21:01:47 so i have a game that runs ~60fps on my galaxy nexus Feb 10 21:01:48 I don't bother updating all the time Feb 10 21:01:55 i can get it down to 40 if i do lots of crazy stuff Feb 10 21:01:59 same thing is around 45 on my nexus one Feb 10 21:02:02 but i can get it down to ~5 :P Feb 10 21:02:08 never realized how crappy the N1 is now Feb 10 21:02:18 heh Feb 10 21:02:26 and the GN doesn't even have an awesome gpu... Feb 10 21:02:28 so they say Feb 10 21:02:57 pfn, ya its good enough, but not stellar Feb 10 21:03:11 * pfn shrugs Feb 10 21:03:19 I don't really care about graphics performance /that/ much Feb 10 21:03:30 as long as 2d works reasonably well, I'm happy Feb 10 21:04:36 pfn it's better than the nexus one and nexus s in games im working on Feb 10 21:04:44 and i havent had any problems Feb 10 21:05:47 canadiancow|work, what are u using to make ur games? Raw OGL ES? Or some lib/engine? Feb 10 21:05:52 AndEngine Feb 10 21:06:12 cool, i made a little game w\ libGDX Feb 10 21:06:22 currently playing around w\ Unity for Android Feb 10 21:06:33 andengine sounds interesting, I might wanna try writing a game someday Feb 10 21:06:39 canadiancow|work, andengine for work, or personal? Feb 10 21:06:42 work Feb 10 21:06:50 * pfn has no interest in writing any 3d games... so no unity Feb 10 21:06:53 i think id get in trouble if i made a personal game :p Feb 10 21:07:03 I guess so, heh Feb 10 21:07:07 conflict of interest and all Feb 10 21:07:43 really? is it in ur contract or something? Feb 10 21:07:56 well theres a non-compete clause Feb 10 21:08:01 Wavesonics, that's a pretty common clause in employment contracts Feb 10 21:08:04 i certainly cant go out and release a scrabble game Feb 10 21:08:08 canadiancow|work: release it under a pseudonym, like canadiangoat|work or something. Feb 10 21:08:14 lol Feb 10 21:08:20 lol Feb 10 21:08:21 but if i made a FPS or something Feb 10 21:08:26 i MIGHT be ok Feb 10 21:08:29 but i wouldnt want to test it Feb 10 21:08:33 also i have no interest in doing that Feb 10 21:08:40 canadiancow|work: and then zynga would notice if it did well and copy it :D Feb 10 21:08:47 no comment Feb 10 21:08:50 hehe Feb 10 21:08:51 hah Feb 10 21:09:01 you know canadiancow|work is the one doing the copying for them ;-) Feb 10 21:09:05 LOL Feb 10 21:09:08 yep Feb 10 21:09:10 im not a dev Feb 10 21:09:14 * g00s wonders if Kim jung un was assassinated today Feb 10 21:09:16 im the guy who comes up with proposals on what games to make Feb 10 21:09:27 canadiancow|work, what company do u work for? Feb 10 21:09:48 take a guess? Feb 10 21:09:59 it's only been mentioned like twice Feb 10 21:10:03 and hinted at another couple times Feb 10 21:10:04 :P Feb 10 21:10:05 CombatCow canadiancow|work UNITE Feb 10 21:10:07 in the last few minutes Feb 10 21:10:10 Zynga? Feb 10 21:10:13 yes Feb 10 21:10:16 ah cool Feb 10 21:12:56 hi Feb 10 21:13:04 he works for CowNation (r) Feb 10 21:25:09 Cow Unlimited Feb 10 21:27:45 Cow Unlimited, LLC Feb 10 21:37:17 anyone knows when will ICS come to galaxy S2? Feb 10 21:37:36 Never Feb 10 21:38:17 April? Feb 10 21:38:30 with TouchWiz etc. Feb 10 21:38:45 so late.. damn Feb 10 21:38:54 I'm wagering I'll get ICS when 5.0 comes out, because I always seem to be a few years behind. Feb 10 21:39:12 So you're lucky I don't have your phone! Feb 10 21:39:24 i thought the s2 was not getting ICS Feb 10 21:39:31 well, not officially anyhow Feb 10 21:39:45 heh by the whay samsung is releasing new builds that's wath'll happen to me. Feb 10 21:40:26 where did you read that? Feb 10 21:40:27 Additionally: why does my Google Music application say there are no updates, but if I download it from the Market again, it is a newer version? If there some way we can do that in our applications? Feb 10 21:43:08 ztr_biker: my mistake, the S is not getting an update Feb 10 21:49:24 Does anyone know how to grab initrd.gz from /boot ? Feb 10 22:00:37 Oh preinstalled uninstallables, how I loathe you. Feb 10 22:03:12 what do you think is better for handling some temporary data requested from the server presented as a list: in memory List or temporary Sqlite? Feb 10 22:03:24 this data is dynamic too Feb 10 22:03:46 there's a library that some guy created, it makes and work on < 4.0 Feb 10 22:05:25 I doubt Space is a very complicated class to make work on <4.0 :p Feb 10 22:05:46 lol yea but the guy had that library Feb 10 22:06:01 there we go Feb 10 22:06:14 Peter Kuterna Feb 10 22:06:15 http://blog.peterkuterna.net/2011/11/using-new-gridlayout-on-pre-ice-cream.html Feb 10 22:07:19 Sicp: cool, thanks Feb 10 22:07:57 the support package seems to improve at a very slow rate :/ Feb 10 22:08:18 you were looking for that too? Feb 10 22:08:28 or are you the guy? Feb 10 22:08:42 no, i'm not /that guy/ ;) Feb 10 22:08:47 oh, ok Feb 10 22:08:52 but it was nice to learn about it Feb 10 22:08:56 cool Feb 10 22:10:22 I think there's more crapbloatcarrierware installed on this phone than total applications on my old phone. Feb 10 22:11:41 I go to look at the market to see what some of them are and they've all got terrible ratings because they're preinstalled and uninstallable. I wonder if having a bad rating and being not used on phones is better than only being on phones that want you... Feb 10 22:15:37 it is if it pays you more Feb 10 22:15:40 :P Feb 10 22:16:42 Do they actually pay people to allow them the opportunity to be stuck into the phone? I figured they'd make you pay them, considering that all the preinstalled tend to be things I've never heard of anyone using. Feb 10 22:44:25 can I use the same id's in multiple layout files? Feb 10 22:44:49 if I wanted to add a class by hand, not using eclipse, can I just add the file to res/ and add something to the main .java class? Feb 10 22:45:08 or do I have to adjust the manifest.xml? Feb 10 22:45:21 not res/... src/ Feb 10 22:45:37 guidocalvano: sure Feb 10 22:45:43 if its in the same src/ sure Feb 10 22:45:51 cool Feb 10 22:46:03 just cmd line vim that Feb 10 22:46:10 g00s: so you could use that to have for intance several different layouts for the same activity? Feb 10 22:46:29 yes, I don't care much for eclipse, I find it buggie Feb 10 22:46:39 guidocalvano: you need a unique ID in your hierarchy if you want to search for that view programmatically Feb 10 22:46:47 guido as long as the activity has only one instance of said id per view you should be good Feb 10 22:46:56 k Feb 10 22:46:57 but you can use the same ids in other layouts Feb 10 22:47:20 ie layout x and y both have textfields w/ id of "@+id/textfield" Feb 10 22:47:29 that's legitamite. Feb 10 22:47:35 (: Feb 10 22:48:17 time for some nice refactoring tomorrow Feb 10 22:48:38 but now its time for bed, good night people and thanks for asking the stupid noob questions o/ Feb 10 22:49:55 man, xml layouts would really benefit from a DSL Feb 10 22:50:17 one more quick question... how can I make the background of a popup window transparent Feb 10 22:50:41 shoerain: i agree Feb 10 22:50:59 xml just sucks for anything but data interchange. not fit for human consumption Feb 10 22:51:31 why does onResume get called 6 times on an orientation change in my Fragment? x.O Feb 10 22:51:42 :| Feb 10 22:51:48 g00s: and for information interchange it is very inefficient Feb 10 22:51:54 sure Feb 10 22:52:08 xml sucks for everything Feb 10 22:52:11 Feb 10 22:52:26 * alankila is still expecting people to get excited of his xml-xml Feb 10 22:52:27 but I am glad there is a consensus Feb 10 22:53:00 the funny thing is that the guy who invented xml works on the android team now, and he thought content providers were verbose Feb 10 22:53:01 hahahaha Feb 10 22:53:11 anything is better than having 1000 formats for representing trees Feb 10 22:53:17 what's DSL in that context? Feb 10 22:53:23 domain specific language Feb 10 22:53:25 g00s: actually, XML sucks for anything other than portably and interchangeably adding rigid semantics to free structured text Feb 10 22:53:31 * alankila thinks they should bring over, the generic close-currently-open-tag tag Feb 10 22:53:39 we should just have lisp-y trees =o Feb 10 22:53:50 shoerain, yeah, that's readable Feb 10 22:53:53 guidocalvano: you only need parens to represent trees :D Feb 10 22:53:56 alankila: for the purpose that XML was designed, those were useless Feb 10 22:54:06 shoerain: I aggree Feb 10 22:54:18 alankila: the problem is misuse... and the fucker who created Second Normal Form Feb 10 22:54:36 g00s: ofcourse you'd like to have something to label branches too Feb 10 22:54:41 in my experience all tech can be horribly misused Feb 10 22:54:42 but its getting late Feb 10 22:54:46 I have to sleep Feb 10 22:54:57 I had the misfortune to see how l2tp/ipsec is implemented the other day Feb 10 22:55:01 alankila: yes, but Second Normal Form is a horrible, horrible thing Feb 10 22:55:22 this protocol stack can involve 3 or 4 separate layers of wrapping on top of the fundamental ip packets being transmitted Feb 10 22:55:24 can anyone tell me what more I need to do to make a popup window transparent? Feb 10 22:55:29 it's just easy to get into a rant when you're two choices for design are xml and java. Feb 10 22:55:33 scala scala scala, huh. Feb 10 22:55:36 ug, canon camera software has to be the worst shit on the whole planet Feb 10 22:55:40 it's really amazing how a simple tech like ipsec can get bogged down in nonsense Feb 10 22:55:53 aright how can i keep onDestroy from getting called in my Fragment on orientation changes? i have android:configChanges="orientation" set on the Activity and i override onConfigurationChanged. if i can't do that, can i at least save the Cursor somehow? Feb 10 22:56:09 moonlightcheese: setRetainInstance(true) Feb 10 22:56:14 it's set. Feb 10 22:56:15 alankila: I did I think ~5 layers to shuffle IP packet Feb 10 22:56:23 on *top* IP Feb 10 22:56:24 anything else? Feb 10 22:56:28 *of IP Feb 10 22:56:46 gn o/ Feb 10 22:56:49 moonlightcheese: Hmm. It's supposed to suffice alone Feb 10 22:57:25 actually, i think i might be doing something retarded in the activity like loading a new Fragment when i shouldn't be. Feb 10 22:57:28 * moonlightcheese checks. Feb 10 22:59:22 onConfigurationChanged doesn't appear to get called in the Activity for some reason. Feb 10 23:00:53 onConfigurationChanged only gets called if you set configurationChanges in manifest Feb 10 23:01:37 Is there a way to make a bitmap with Bitmap.createBitmap in such a way that it works like one created from BitmapFactory with the "inPurgeable" option set? Feb 10 23:01:40 or so I think Feb 10 23:02:32 i got it. it's a targetSdk problem. Feb 10 23:02:48 eh? Feb 10 23:03:03 "Thus, if you want to prevent runtime restarts due to orientation change when developing for API level 13 or higher (as declared by the minSdkVersion and targetSdkVersion attributes), you must include the "screenSize" value in addition to the "orientation" value." Feb 10 23:03:18 i just changed targetSdk to 12 and it's fine now. Feb 10 23:03:41 the "screenSize" isn't available in the support library. Feb 10 23:04:48 i already had configChanges set. Feb 10 23:05:44 eh? Feb 10 23:05:52 screenSize not in supportlib? Feb 10 23:05:58 apparently not. Feb 10 23:06:25 C:\public\dev\source\android-code\console-workspace\sms-mobile-2\AndroidManifest.xml:15: error: Error: String types not allowed (at 'configChanges' with value 'orientation|screenSize'). Feb 10 23:06:25 why would you have a configchanges=screensize? Feb 10 23:06:58 "That is, you must decalare android:configChanges="orientation|screenSize"" Feb 10 23:07:04 runtime changes android docs. Feb 10 23:07:47 right, I'm just curious why the screensize will change, orientation seems to cover that Feb 10 23:08:07 "Caution: Beginning with Android 3.2 (API level 13), the "screen size" also changes when the device switches between portrait and landscape orientation." Feb 10 23:08:10 i have no idea why. Feb 10 23:08:21 they just thought it was a good idea for some reason. Feb 10 23:08:24 I see Feb 10 23:08:40 anyway, given the docs, if you target i figured that out. Feb 10 23:09:07 it's acting the way it's supposed to now. Feb 10 23:15:34 * g00s applies for a local "low budget" android gig, hope its not like $200 low budget :D Feb 10 23:18:17 why is a fuggin transformer prime so hard to get ahold of Feb 10 23:18:34 maybe they aren't making many Feb 10 23:18:55 storkme: i got mine friday two weeks ago, having ordered it on thursday two weeks ago Feb 10 23:19:08 hello :) Feb 10 23:19:27 there was an article from digitizes about oems holding off for the iPhone 5, i wonder if they are doing the same for the imminent iPad 3 release at the end of march Feb 10 23:19:31 you're not in the uk though are you tophyr Feb 10 23:19:35 http://www.amazon.com/ASUS-Transformer-TF201-B1-GR-10-1-Inch-Amethyst/dp/B0067PLM5E Feb 10 23:19:39 aha, no, i am not. Feb 10 23:19:40 is it normal that when I use sendTextMessage from SmsManager, sent sms doesnt show up in messaging application ? Feb 10 23:19:48 there's like no stock here at all :( Feb 10 23:20:09 will stuff like the above link not ship to you? Feb 10 23:20:20 not sure Feb 10 23:20:41 not sure about the screen resolution Feb 10 23:21:02 on the prime? Feb 10 23:21:06 yeah Feb 10 23:21:12 almost the same as my phone Feb 10 23:21:29 not sure i can justify dropping so much money on a tablet when i just bought a gnex Feb 10 23:21:34 though i am dying to replace this laptop Feb 10 23:21:39 i'm holding it in my hand, let me assure you it's fantastic Feb 10 23:21:49 i wish i could test one Feb 10 23:22:13 to be fair in terms of testing/etc it's not really THAT different than a tab or xoom Feb 10 23:22:39 it's just faster, and the ics ui is better. kind of like win7 vs vista. same stuff, really... just better. Feb 10 23:23:16 batt life is fantastic, which is what's making me so happy Feb 10 23:23:31 yeah, I want ics on my tab damnit Feb 10 23:23:41 * pfn kicks samsung Feb 10 23:23:50 still a little clunky to type on-screen.. will get the keyboard for the prime eventually Feb 10 23:24:05 * pfn has a bluetooth keyboard Feb 10 23:24:07 is awesome Feb 10 23:24:13 i kinda want to hold out for the one with the 1080p panel but i don't think the tegra3 will be strong enough for such an obscene amount of pixelz Feb 10 23:24:26 * pfn shrugs Feb 10 23:24:28 storkme: shoul work nicely Feb 10 23:24:30 I'd get the obscene pixels anyway Feb 10 23:24:33 don't care Feb 10 23:24:37 it's not that obscene amount Feb 10 23:24:38 it's pretty obscenely powerful Feb 10 23:24:45 greetings folks, i have a very strange issue happening in a fragment and am wondering if anybody has seen the following: Feb 10 23:24:53 obscene is cheapo tablet with >1080p Feb 10 23:25:00 i just cba to wait Feb 10 23:25:04 bundle.putParcelableArrayList() comes back in onCreate with an empty set Feb 10 23:25:04 because i'm lazy Feb 10 23:25:19 storkme: i guess nvidia was announcing quad core phones at mac Feb 10 23:25:22 *mwc Feb 10 23:25:31 isn't that in a fw days Feb 10 23:25:32 well, use of quad core processor in phones Feb 10 23:25:36 yeah Feb 10 23:25:37 oh end of the month wtf Feb 10 23:25:44 if i manually convert it to an array it works fine... Feb 10 23:26:09 * g00s wonders what ever happened to that mips tablet Feb 10 23:26:46 they took your money and ran Feb 10 23:27:07 purdyk: what's your ArrayList typed as? Feb 10 23:27:10 i never ordered one :) Feb 10 23:27:22 i guess i should get a panda maybe Feb 10 23:27:30 the arraylist contains data that properly implements Parcelable Feb 10 23:27:35 pandaboard? why? Feb 10 23:27:55 also the incoming bundle has the key and the value is just an empty set Feb 10 23:28:59 its quite strange Feb 10 23:29:14 pfn: its cheap and i don't want to buy any more android hardware :) Feb 10 23:29:21 i'd rather not do all the manual back and forth conversion between ArrayList and array Feb 10 23:29:42 g00s, not that cheap, and I'd imagine you'd get the upgrade bug after a while--what device are you on now anyway? Feb 10 23:29:49 pfn: and it runs ics well Feb 10 23:30:33 pfn: i am on a droid-1. yeah yeah, i know it is old. i enjoy developing for android, but uh - don't really like it as a consumer, so I don't want to buy another android device. Feb 10 23:30:40 g00s, for developing, yeah Feb 10 23:30:43 I guess Feb 10 23:30:44 hello, has anyone experience with Android MediaPlayer development? Feb 10 23:30:49 anyone know if there is a git channel? Feb 10 23:30:53 #git Feb 10 23:30:56 you're still on a droid1... what are you gonna get now... Feb 10 23:31:07 pfn: an iphone 5 or wp8 Feb 10 23:31:09 droid1 is... old Feb 10 23:31:12 wp8, heh Feb 10 23:31:23 thanks g00s Feb 10 23:31:28 well, i guess wp7 (7.6) Feb 10 23:31:36 have fun with that, I guess Feb 10 23:31:45 as a consumer, i am thoroughly unhappy with android Feb 10 23:31:53 but its fun to develop for Feb 10 23:32:00 sounds crazy, i know :D Feb 10 23:32:02 I have a checkable ListView and I want to update a counter which shows how many items are currently checked Feb 10 23:32:11 which event can I hook into to know when something changed? Feb 10 23:32:13 interesting Feb 10 23:32:19 I can't say I'm disappointed by android as a consumer Feb 10 23:32:48 a lot of the music apps i have seen that I would actually find useful exist for iOS devices only. and regular updates are very important to me. Feb 10 23:32:58 I really dont understand why sms sent using sendTextMessage do not show up in messaging app Feb 10 23:33:03 (from a security perspective) Feb 10 23:33:10 i enjoy android. ios has some more polish maybe, but i like the flexibility of android. i dont want to be tied to silly itunes Feb 10 23:33:25 although, i am kinda tired of the iOS l&f Feb 10 23:33:46 regular updates aren't such a big a deal, nice to have, but not really necessary for me Feb 10 23:33:54 herriojr: looks like a bug in v4 compat lib Feb 10 23:33:55 purdyk: without looking at your code, I can't really say what's going on Feb 10 23:33:55 3rd party efforts are good enough Feb 10 23:34:47 purdyk: I'm actually really surprised about that being a bug Feb 10 23:35:16 herriojr: i've seen several bugs in the compat lib Feb 10 23:35:20 most have been fixed :) Feb 10 23:35:42 hmm however it does exhibit on Honeycomb so nevermind Feb 10 23:37:08 oh wait i've found it Feb 10 23:37:12 sorry to have bothered you all Feb 10 23:39:59 Ermm Feb 10 23:40:21 What are the differences between how Java (more specifically Pattern) handles regexes kontra Preg (php)? Feb 10 23:40:32 I can get my regex to match the string via preg, but not in my app :( Feb 10 23:41:21 n20: if you have a really really crazy regex, you can also look at ragel Feb 10 23:41:48 I only need this once in the app, and it doesn't occur too often Feb 10 23:42:24 Does anyone know if it is possible to get some statistics from the Mediaplayer ? Feb 10 23:42:49 g00s: Could you look at it and tell me what I'm doing wrong? I've validated it via regextester.com: (.+)<\/a> \[(.+)\] Feb 10 23:43:11 n20, make sure you properly escape strings Feb 10 23:43:15 i.e. "\\" = \ Feb 10 23:43:18 think about it hard Feb 10 23:43:31 pfn: Yeah, it worked on regextester.com now Feb 10 23:43:32 :( Feb 10 23:43:56 think hard here Feb 10 23:44:15 you aren't thinking still Feb 10 23:44:22 This is the escaped String for Java: (.+)<\\/a> \\[(.+)\\] Feb 10 23:44:29 Ie Feb 10 23:44:39 String pattern = "(.+)<\\/a> \\[(.+)\\]"; Feb 10 23:44:41 uh, regex for html Feb 10 23:44:46 isnt it (.*) for urls? Feb 10 23:45:06 Will it make a difference? :( Feb 10 23:45:13 doesn't matter + or * for this situ Feb 10 23:45:25 g00s: Yeah, I know it's bad for us all, but I reckon I'll have a lot of overhead getting DOM into this. Feb 10 23:45:35 i am an SEO, so I also wonder why you use rel="nofollow" Feb 10 23:45:46 I'm not, the website is. :-) Feb 10 23:46:23 is it your website from your app? Feb 10 23:46:45 I'm getting preformatted output instead of the regular one (one of many stupid ideas as there is an attribute for just "body" (empty) and one for "formattedBody" lol) Feb 10 23:46:54 dunivan: It's not my website, however my app. :) Feb 10 23:46:55 Hey guys just wondering if anyone could help me understand the action bar on the Google IO Sched App Source Feb 10 23:46:58 http://bit.ly/bf3bl Feb 10 23:47:00 n20, provide the string you're matching vs. your pattern Feb 10 23:47:08 ahhhh Feb 10 23:47:15 pfn: http://battlelog.battlefield.com/bf3/forum/ [battlelog.battlefield.com] Feb 10 23:47:17 snwspeckle: its better to use ActionBarCompat, or many use ActionBarSherlock Feb 10 23:47:19 considering content://sms/sent is not officially supported, how im I supposed to add sms sent using sendTextMessage to conversation threads ? Feb 10 23:47:41 ActionBarSherLock isn't released though for android 4.0 right? Feb 10 23:47:52 pfn: (.+)<\/a> \[(.+)\] (non-escaped) Feb 10 23:48:09 pfn: "(.+)<\\/a> \\[(.+)\\]" (escaped) Feb 10 23:48:21 n20, and how are you doing your match? Feb 10 23:49:41 Is ActionBarSherlock easier to implant with a Dashboard Activity? The combination used in the Google IO App is all over the place. Feb 10 23:49:44 pfn: Pattern myPattern = Pattern.compile( *escaped pattern* ); Matcher myMatcher = myPattern.matcher( "*link conforming to the criterias here here*" ); Feb 10 23:50:19 pfn: Or more like *content with links conforming to the criterias here* Feb 10 23:51:35 Can anyone help me out? Feb 10 23:51:42 pfn: I noticed that preg needed me to \ the / too, to make it work. :) Feb 10 23:52:25 scala> "http://battlelog.battlefield.com/bf3/forum/ [battlelog.battlefield.com]".matches("(.+)<\\/a> \\[(.+)\\]") Feb 10 23:52:30 res9: Boolean = true Feb 10 23:52:32 works for me Feb 10 23:52:46 don't even need to escape / Feb 10 23:53:15 I don't need to create a pattern? Feb 10 23:53:16 n20, and then how are you calling matcher Feb 10 23:53:16 Hmm Feb 10 23:53:22 snwspeckle: main channel please Feb 10 23:53:25 n20, well, you create a pattern for optimization Feb 10 23:53:51 Okay well, where can we get some documentation on how to "correctly" add an acitonbar Feb 10 23:53:54 while( myMatcher.find() ) { *logcat the myMatcher.group()* } Feb 10 23:53:55 n20, for a one-off, you can just call matches Feb 10 23:54:09 I followed a tutorial online and I got the dashboard layout working, but now I require an actionbar Feb 10 23:54:11 snwspeckle: prior to HC, there is no such documentation Feb 10 23:54:36 in other words, even though some Google apps use a Title Bar that looks like an action bar, they pretty much say you should not do that Feb 10 23:54:37 pfn: Probably, I do need the captures though 'cause I'm going to replace the whole link with the url in href :) Feb 10 23:54:41 What's all this then - http://developer.android.com/guide/topics/ui/actionbar.html Feb 10 23:54:46 in other words, they are being hypocritical Feb 10 23:55:01 n20, you're doing something else wrong Feb 10 23:55:05 the pattern is fine Feb 10 23:55:32 pfn: I'll have to dive in deep again then, brb a few minutes Feb 10 23:55:38 * n20 goes deep-logcat:ing Feb 10 23:55:49 snwspeckle: are you just trying to add an action bar to a HC+ app? Feb 10 23:55:51 The documentation by Google explains nothing because it doesn't tell you how to implant it... Feb 10 23:55:58 Yes, exactly Feb 10 23:56:05 oh, that is much easier then Feb 10 23:56:18 did you look at the ApiDemos Feb 10 23:56:31 Yes but I got lost with all the excess codd Feb 10 23:56:34 code* Feb 10 23:58:58 actionbar in hc+ is trivial to add Feb 10 23:59:06 adding it in pre-3.0 is what's not easy Feb 11 00:00:03 So how do you add it then in hc+? I am trying to understand these API Demos and they just don't really make sense Feb 11 00:00:15 you add it by targetting api11+ Feb 11 00:00:18 and you're done Feb 11 00:00:24 kaplow Feb 11 00:00:29 profit ! Feb 11 00:00:41 I am targeting it but its not showing? Feb 11 00:00:50 don't request a notitlebar theme Feb 11 00:01:03 or fullscreen windowmode Feb 11 00:01:27 So how did google add a dashboard then? Feb 11 00:01:46 a dashboard to what Feb 11 00:01:57 I followed this tutorial: http://www.samcoles.co.uk/mobile/android-implementing-a-dashboard-activity/ --- I now have a dashboard like this and my goal was to add an action bar above this Feb 11 00:02:46 tutorials are teh suck Feb 11 00:03:11 Why> Feb 11 00:04:05 because they're oversimplified and never show how to actually get stuff done Feb 11 00:04:16 pfn: I fixed it. I really need to see a doctor. Feb 11 00:04:21 That was one of the worst things I've ever done Feb 11 00:04:24 and? Feb 11 00:04:28 what'd you do Feb 11 00:04:32 pfn: http://codepad.org/asSYgl3B Feb 11 00:04:35 Can you spot the problem? Feb 11 00:04:37 Lol Feb 11 00:05:08 So will the action bar only show if it is styled? Feb 11 00:05:20 Some background: I first need to get the quotes into the text (via the first one) and later on convert the links Feb 11 00:05:24 snwspeckle, it shows automatically if you target api11+ Feb 11 00:05:26 pfn: ^ Feb 11 00:05:34 I hate reading regex Feb 11 00:06:07 I am targeting API 15 and its not showing? Feb 11 00:06:17 pfn: Any takes on what the issue is? ;) Feb 11 00:06:18 snwspeckle, and are you running on api15? Feb 11 00:06:25 n20, not offhand Feb 11 00:06:31 I don't want to read/comprehend Feb 11 00:06:32 Running + Targetting Feb 11 00:06:33 pfn: Look at my proper indentation Feb 11 00:06:34 :D Feb 11 00:06:43 pfn: ... :D Feb 11 00:06:57 pfn: Hey, let's put that matcher up there, with the old String as a in-param Feb 11 00:07:06 pfn: I won't probably do anything bad to us Feb 11 00:07:27 pfn: So when I replace the quote into the content, the link-lookup will still be on the old content Feb 11 00:07:29 snwspeckle, so you're on a galaxy nexus Feb 11 00:07:37 pfn: Thus no links found Feb 11 00:07:40 Yup Feb 11 00:07:51 snwspeckle: btw, the dashboard pattern seems to be deprecated according to the new design guidelines Feb 11 00:08:01 snwspeckle, then it shows by default unless you request something stupid--why don't you give more details about what you're doing rather than being vague Feb 11 00:08:08 g00s: What's the new? Feb 11 00:08:21 aight... Feb 11 00:08:31 I am "trying Feb 11 00:08:31 I figured out how to add new classes Feb 11 00:08:34 whoops Feb 11 00:08:36 n20: they discourage navigation only activities Feb 11 00:08:43 from the CLI... what about this '3rd-party' .jar? Feb 11 00:08:43 "put data forward" Feb 11 00:08:46 n20, I see... so it's some funky looping thing that's screwing you Feb 11 00:09:03 I am "trying" to model the Google IO Sched App which has the Action Bar on top, as well as a 6 Image Dashboard. That is what I want to achieve Feb 11 00:09:04 the book says to add 'jtwitter.jar' Feb 11 00:09:08 i actually redesigned my app to get rid of the dashboard after i read the new guidelines Feb 11 00:09:13 pfn: Well, yeah. Since the matcher is based on the previous content :( Feb 11 00:09:33 n20, can't really tell in the context you pasted Feb 11 00:10:07 What did you switch to g00s to make up for not having the dashboard? Feb 11 00:10:13 I have to put the jtwitter.jar in the build path somehow? Feb 11 00:10:37 snwspeckle: i just redesigned the navigation and put the top-level data as the home screen Feb 11 00:12:56 not developer related, but a great video about android and its capabilities: http://www.droid-life.com/2012/02/10/video-use-your-galaxy-nexus-as-a-desktop-computer/ Feb 11 00:13:11 Lets say I want to use the dashboard + action bar though, how would I do this? Feb 11 00:13:27 I am not getting an action bar and I am targeting API 15 Feb 11 00:13:40 pfn: However, I still have one problem. How do I get it to detect multiple loops? It just finds the first, as it matches past the last ] Feb 11 00:13:50 snwspeckle, /what/ are you doing exactly Feb 11 00:13:56 is classpath an ENV variable? Feb 11 00:14:45 snwspeckle, what exactly do you see Feb 11 00:14:46 I am trying to create a dashboard with an action bar like I am saying... Feb 11 00:14:48 snwspeckle, post a screenshot Feb 11 00:14:53 One second Feb 11 00:14:54 no, that's what you are /trying/ Feb 11 00:14:56 what are you /doing/ Feb 11 00:15:04 One moment Feb 11 00:15:56 ant -l ? Feb 11 00:16:13 path/to/ of course Feb 11 00:16:47 no... -l is to log... -lib is to designate a path Feb 11 00:16:50 what kind of black magic are you doing Feb 11 00:17:07 me? I'm talking to myself Feb 11 00:18:17 http://imgur.com/4346V Feb 11 00:18:25 That's my current UI Feb 11 00:18:42 snwspeckle, that's your actionbar right up there Feb 11 00:18:54 snwspeckle, the black bar right above the blue line is the actionbar Feb 11 00:19:06 Oh, I feel like an idiot...' Feb 11 00:21:55 God I hate Eclipse Feb 11 00:22:00 Nothing refreshes Feb 11 00:22:34 whats your IDE of choice? Feb 11 00:23:04 The fricken files its supposed to be grabbing are in the exact spot and yet eclipse thinks they don't exist, I fricken hate it... Feb 11 00:23:06 i use eclipse, but i hear IntelliJ is quite good for android dev Feb 11 00:23:53 Oh yea, the assisted code pop ups don't work on eclipse either Feb 11 00:26:03 did you add the android libraries to the project build path? Feb 11 00:26:10 in eclipse Feb 11 00:26:48 I did what the developer page said Feb 11 00:27:39 if you right click your project and go to properties, go to the java build path tab on the left panel Feb 11 00:27:53 then click the libraries tab and see if the google apis are listed Feb 11 00:28:58 It says its invoking now, hmmm Feb 11 00:29:20 Like when your typing in eclipse, do auto suggestions come up for you? Feb 11 00:29:35 * pfn turns them off because they only get in the way Feb 11 00:29:52 How do you enable them?.. Feb 11 00:30:06 ctrl-space Feb 11 00:30:11 ^^ Feb 11 00:30:24 i just have the stock ctrl+space functionality Feb 11 00:30:38 content assist not available at the location?? Feb 11 00:32:48 not sure. in my complex 'helloworld' project (joke), i can for example type "super." and then ctrl+space and i get a laundry list of available methods Feb 11 00:33:13 snwspeckle, you're in some scope that doesn't have autocomplete... Feb 11 00:33:18 that seems pretty straightforward Feb 11 00:33:31 I fixed it up Feb 11 00:34:22 hello i'm having a problem trying to get osx to recognize my phone/usb device. usb devices never returns it in this list. any ways to help debug this? Feb 11 00:34:27 So can someone help me with adding action items and stuff? Feb 11 00:34:44 *adb devices Feb 11 00:35:13 @mandric, make sure the drivers are installed Feb 11 00:35:31 Same thing happened to me, installed drivers, un-plugged, re-plugged and it worked Feb 11 00:35:39 snwspeckle hrm which drivers? Feb 11 00:35:48 What phone do you have Feb 11 00:35:55 ideos Feb 11 00:35:57 Also is your USB Support Package installed? Feb 11 00:36:13 i don't think so. strange thing is it used to "just work" Feb 11 00:36:22 check that first Feb 11 00:36:34 i'm not aware of any drivers or USB Support Package (is that on the android site? Feb 11 00:36:53 In the SDK Manager go to the bottom and install the USB Support Package Feb 11 00:36:57 ok Feb 11 00:37:31 Also make sure USB Debugging is enabled, as well as accepting apps from unknown sources. Only change these settings when your phone is NOT plugged into the computer. Feb 11 00:37:47 snwspeckle yea i tried toggling both of those Feb 11 00:37:57 Was your phone connected? Feb 11 00:38:00 yes Feb 11 00:38:27 Unset the options and unplug your phone Feb 11 00:38:35 Re-enable them when it is NOT plugged in Feb 11 00:39:09 15th Eclipse crash of the hour, wtf is wrong with this program Feb 11 00:39:16 eclipse Feb 11 00:39:23 Its so shitty... Feb 11 00:39:25 doesn't crash for me... Feb 11 00:39:28 snwspeckle no luck ;\ Feb 11 00:39:36 is all about your computer and plugins. Feb 11 00:39:39 trying to Android support package Feb 11 00:39:41 Pfn whats that? Feb 11 00:39:43 You get the wrong combination and you're done for. Feb 11 00:39:46 s/to/the/ Feb 11 00:40:10 My work eclipse install used to hang all the time using the same plugins as my home install. Feb 11 00:40:28 Be back in a little, going to grab some food Feb 11 00:40:33 snwspeckle ok Android Support Package is installed… any thoughts? was thinking to try standing on my head. ;P Feb 11 00:40:59 Unplug your phone and re-plug it Feb 11 00:41:06 might have to adjust your memory allocation to eclipse if its crashing Feb 11 00:41:09 Also, go to device manager when its plugged in and see if you see your phone Feb 11 00:41:53 I have 8GB of RAM and a i7 2600k and yet i get BSOD and explorer.exe crashes daily Feb 11 00:41:57 shit forget where the device mgr is Feb 11 00:42:01 is here anybody with a Galaxy Nexus, also having problems to joing 5GHz WiFis? Feb 11 00:42:08 Go to start and type - device manager :P Feb 11 00:42:12 I tried to mess with the redomai n Feb 11 00:42:20 but it did not help so far Feb 11 00:42:20 Galaxy Nexus wifi is absolute shit Feb 11 00:42:49 I get 2 bars 5 feet away.... My OG iPod 2G gets full bars in other rooms of the house.. Feb 11 00:43:09 hm WiFi itself seems fine Feb 11 00:43:19 just the a/n support is really messy/bad Feb 11 00:43:41 The phone sucks, can't wait for Motorola + Google Feb 11 00:43:52 lol Feb 11 00:44:08 Samsung has the worst software development known to man, and they use very, very shitty hardware Feb 11 00:44:23 i love my gnex, and by the time something good roles out of googorola, im sure ill be due for an upgrade Feb 11 00:44:35 my wifi seems to always have full bars Feb 11 00:44:40 * pfn shrugs Feb 11 00:44:49 but I don't have 80211n Feb 11 00:45:02 My Gnex is always at like 110 dbm and gets 1 bar 5 feet away, idk wtf is wrong Feb 11 00:45:34 My friends Verizon iPhone at my house gets 4 bars and I get 1 on my galaxy nexus, both 3G Feb 11 00:45:44 Something is broken as hell... Feb 11 00:49:17 I have a GN and all in all I am pretty happy with it Feb 11 00:49:23 espc battery life is stellar so far Feb 11 00:49:52 pfn: n itself is no problem, but n on 5GHz seems to be fucked up :p Feb 11 00:50:07 battery life is stellar? Feb 11 00:50:10 I wouldn't think that... Feb 11 00:50:23 hmm I have a GSM version Feb 11 00:50:36 DooMMeeR, how much screen on do you have at the end of the day... Feb 11 00:50:46 and get over >24h usage where other phones ended at less than 16h Feb 11 00:50:55 4-5h Feb 11 00:51:00 screen on time is the important qualifier Feb 11 00:51:04 DooMMeeR, that's what battery usage says? Feb 11 00:51:10 jepp Feb 11 00:51:10 or that's what you think you get? Feb 11 00:51:25 if I get 5h, I'm dead right away Feb 11 00:51:51 problem seems to be whenever I change to a location with no UMTS available Feb 11 00:51:58 the battery runs dry very quickly Feb 11 00:52:21 there are just a few places I know without 3G here, but they seem to affect batterylife more than anything else Feb 11 00:54:03 pfn: it is no wonder with a device with >4" screen that the display is energy eater no1 Feb 11 00:58:09 with screen on my phone usually uses 140-220mA Feb 11 00:58:19 without 50-67mA Feb 11 00:58:45 for some reason sometimes even a lot less ~38mA Feb 11 00:59:03 and under usage it averages at 220-240mA Feb 11 00:59:13 My D4 lasted about 4 hours from the charge that came in the box. Finished charging at 3:30, but I haven't been using it very much since I got home. Feb 11 00:59:19 gaming again is another sotry Feb 11 00:59:33 DooMMeeR, what are you using as a meter? Feb 11 00:59:46 DooMMeeR, and gsmarena or something pegged the usage-time at ~3hrs Feb 11 01:00:28 Four and a half hours of ontime put it down to 80% battery with little use (screen was on a bit while I bitched at preinstalled applications). Feb 11 01:01:11 I was going to try to actually use it and see how long it took to drain, but things keep getting in the way. Feb 11 01:01:14 4.5hrs puts it at 80%? Feb 11 01:01:15 holy shit Feb 11 01:01:21 er Feb 11 01:01:25 you mean 4.5 hours of on-battery Feb 11 01:01:27 not screen-on Feb 11 01:01:30 pfn: I use Fluke 117 Digital Multimeter Feb 11 01:01:36 Yeah, lol, not screen on. Feb 11 01:01:38 because 20% * 4.5 hrs = 20 hours Feb 11 01:01:40 what does this means -----> Test running failed: Unable to find instrumentation info for: ComponentInfo{com.sticky/android.test.InstrumentationTestRunner} Feb 11 01:01:40 Empty test suite. Feb 11 01:01:42 that would be incredible Feb 11 01:01:55 That would be Feb 11 01:02:10 getting that error when running tests Feb 11 01:02:15 Hey. I'm trying to create bitmaps in purgeable memory. I can do it with BitmapFactory. Can I do it with Bitmap.createBitmap somehow? Feb 11 01:02:25 My D1 usually lasts ~16 hours with the way I use it, so we'll see how this compares. Feb 11 01:02:43 pfn: all night laying 7,5h it used about 6% battery Feb 11 01:03:14 in airplane mode over 10 hours it eats up like 9%... Feb 11 01:03:19 in standby Feb 11 01:03:32 wow Feb 11 01:03:38 that is far too much Feb 11 01:04:04 hmm I had 3G on Feb 11 01:04:11 sync over WiFI on too Feb 11 01:04:32 hmm I wonder then, where the differences come from Feb 11 01:06:09 pfn: is yours a VW or a GSM model? Feb 11 01:07:05 DooMMasteR, lte Feb 11 01:07:09 hmm ok Feb 11 01:07:26 maybe that is the difference, though in Airplanemode it should not matter Feb 11 01:07:43 right Feb 11 01:07:47 some people are reporting high usage rates of androidOS though Feb 11 01:08:09 where the os is at >20% at normal usage Feb 11 01:08:17 instead of around 5-10 Feb 11 01:08:26 after 4.0.4 it doesn't report as being so high anymore Feb 11 01:09:25 hmm 4.0.4 is still not AOSP =-.-= Feb 11 01:09:40 so I am still on 4.0.3 Feb 11 01:11:08 motorola: fffffffffffffffffffffffuuuuuuuuuuuuuuuuuuuuuuuuuuuu Feb 11 01:11:17 pfn: how high is your deep sleep percentage? Feb 11 01:11:35 mine is currently quite low at only 20% Feb 11 01:11:54 well, I use my phone pretty heavily during the day, so it's charging most of the time Feb 11 01:13:10 it just came off the charger so there's no good stats yet Feb 11 01:13:17 not to mention, I don't have a deep sleep item Feb 11 01:13:42 CPU Spy also shows deep sleep e.g/ Feb 11 01:16:48 DooMMasteR, interesting, 27% deep vs. 67% 350mhz Feb 11 01:17:02 over 137 hours or whatever that counter is Feb 11 01:17:20 ahh ok Feb 11 01:17:33 137 wil be total uptime Feb 11 01:17:34 jepp Feb 11 01:17:34 but yeah, not an extremely large amount of time in deep sleep Feb 11 01:17:43 hmm I wonder why Feb 11 01:18:03 my old legend was >50% of the time in deep sleep with the same usage scheme and same apps Feb 11 01:55:14 Hello world! Feb 11 01:55:38 What happens if I have a default strings.xml, and also a strings.xml in a locale-folder Feb 11 01:56:05 and the specified string isn't available in the locale-folder? ill it fallback to the default file? Feb 11 02:01:10 yes Feb 11 02:07:01 Great, thanks. Feb 11 02:29:53 does anyone know a good resource besides the refs to understand viewpager Feb 11 02:30:03 what's to understand Feb 11 02:30:10 look at the examples in the support lib Feb 11 02:30:16 and implement fragmentpageradapter or whatever Feb 11 02:30:19 right i'm looking at uh Feb 11 02:30:22 http://developer.android.com/reference/android/support/v13/app/FragmentStatePagerAdapter.html Feb 11 02:30:44 I'm not sure how to change this to work with what I wnat to do Feb 11 02:30:55 So I figure I just don't understand it enough Feb 11 02:30:59 fragmentstatepageradapter seems like a pita, I just use fragmentpageradapter Feb 11 02:31:25 pita? I thought FragmentState would be better for paging through listviews Feb 11 02:32:19 fragmentstate means the viewpager can discard fragments and recreate them supplying the state data that you save manually Feb 11 02:32:34 slightly lower memory usage if you can manage the state well enough Feb 11 02:32:40 and if you have a lot of fragments Feb 11 02:32:42 like a lot a lot Feb 11 02:32:53 use fragmentpageradapter to keep your life easier Feb 11 02:32:57 ah ok Feb 11 02:33:02 thanks, I'll read up on that then Feb 11 02:37:20 Is there a way to grant someone my app for free? Feb 11 02:37:34 Their order got canceled accidently and i want to just give him it for the trouble. Feb 11 02:38:52 just give the apk... no easy way Feb 11 02:39:11 hhmmmm my registerMediaButtonIntent isnt working... Feb 11 02:39:12 ah that's dumb, is there a way to download my apk off the site Feb 11 02:39:20 off android developer Feb 11 02:41:12 yeah host on your website Feb 11 02:54:33 I can not. for the LIFE of me. Capture media button intents **** ENDING LOGGING AT Sat Feb 11 02:59:57 2012