**** BEGIN LOGGING AT Thu Aug 30 03:00:01 2012 Aug 30 03:00:10 i havnt seen tis qemu thing before thanks. Aug 30 03:00:16 i see Aug 30 03:00:24 tech1: the -qemu flag has to be the last thing passed to emulator Aug 30 03:00:30 oh Aug 30 03:00:38 Important: When using this option, make sure it is the last option specified, since all options after it are interpretted as qemu-specific options. Aug 30 03:00:45 ^ from the docs Aug 30 03:01:10 also it was "-qemu -disable-kvm" not "-qemu-disable-kvm" Aug 30 03:02:13 is KVM given as a default? Aug 30 03:02:17 I don't think it is Aug 30 03:02:27 because that is assuming your kernel has KVM module Aug 30 03:02:50 grothendieck, it autodetects Aug 30 03:02:55 oh Aug 30 03:02:57 clever Aug 30 03:03:03 ok i did "emulator-x86 -avd one -qemu -disable-kvm" it says invalid option "disable-kvm" Aug 30 03:03:17 one is my avd name, which works with "emulator-arm" Aug 30 03:03:45 so qemu works with that command but the paramater disable-kvm is invalid Aug 30 03:04:40 lsmod | grep kvm Aug 30 03:05:15 so, insamplesize cannot scale gif images? Aug 30 03:05:17 http://code.google.com/p/android/issues/detail?id=3072 Aug 30 03:05:24 that returns nothing at all groth Aug 30 03:05:32 then you don't have KVM Aug 30 03:05:39 ahh Aug 30 03:05:52 so the -disable-kvm flag is moot anyway Aug 30 03:06:13 hmm Aug 30 03:06:18 anyway Aug 30 03:06:29 I am 90% sure your problem is missing 32-bit compatibility libraries Aug 30 03:06:40 did it give any error message with the segfault Aug 30 03:06:49 ill try and install those 32 bit libraries.. yeh. Aug 30 03:06:54 hmm sort of Aug 30 03:07:00 pastebin? Aug 30 03:07:27 Wait, you're trying to run the same AVD on both arm and x6 emulators? Aug 30 03:08:00 ^ you make a good point ;) Aug 30 03:08:18 it just said segmentation fault (core dumped) Aug 30 03:08:19 oh Aug 30 03:08:23 hi, anyone happen to know how to get the source for individual git repos, i.e where to find the git url? Aug 30 03:08:28 maybe the avd i created was only 64 bit? Aug 30 03:08:32 im interested in the CTS source only Aug 30 03:08:58 git clone $PATH_TO_URL Aug 30 03:09:05 i dont remember seeing a 32bit/64 bit option.. just chose default hardware profile Aug 30 03:09:18 no no not 32/64 bit option Aug 30 03:09:23 ARM or x86 Aug 30 03:09:34 two very different hardware architectures Aug 30 03:10:16 CISC vs RISC Aug 30 03:10:28 British vs American Aug 30 03:10:35 (complex instruction set computer) vs (reduced instruction set computer) Aug 30 03:10:39 grothendieck: was that for me? Aug 30 03:10:53 ensi: yes Aug 30 03:11:13 grothendieck: yes, where do i find the git url? Aug 30 03:11:23 of course all x86 CPUs are RISC at the microcode level nowadays anyway Aug 30 03:11:29 tech1: are you certain you're not trying to boot an arm image on an x86 emulator Aug 30 03:11:43 ensi: https://github.com/android Aug 30 03:11:44 ok when i do "android list targets" i just used one of those id numbers, i can see some are x86 Aug 30 03:11:57 im not certain.... trying an x86 id Aug 30 03:13:06 grothendieck: thanks but there is not CTS here Aug 30 03:13:28 is it possible to access FM signal from an app? Aug 30 03:13:49 like "listen on 101MHz for signal above xxx strength" ? Aug 30 03:13:54 oh yeh. it works with x86 if i chose an id with x86 Aug 30 03:14:01 so obvious now i can see it Aug 30 03:14:12 * saik0 facepalms Aug 30 03:14:16 lol Aug 30 03:14:24 :P Aug 30 03:14:34 at least now the mystery is solved Aug 30 03:14:34 double facepalm Aug 30 03:14:44 yeh thanks for helping me find it Aug 30 03:14:47 np Aug 30 03:14:51 gotta learn somehow Aug 30 03:15:02 yeh Aug 30 03:15:35 fun learning exercise: root the emulator Aug 30 03:15:52 (I mean you already get root for free with adb shell but that isn't the point) Aug 30 03:16:06 root the emulator and install busybox I should say Aug 30 03:16:24 ok will look into that too Aug 30 03:17:09 dokma: i would think you would need a sw defined radio for that, but its not my area Aug 30 03:17:21 * grothendieck taking a smoke break http://benno.id.au/blog/2007/11/14/android-busybox Aug 30 03:17:39 expecting Leeds to turn around and yell about somebody saying the word root :P Aug 30 03:18:18 boring pointless exercise, you mean Aug 30 03:18:21 g00s: no way to access the built in hardware via some api/lib ?? Aug 30 03:19:33 most hardware chips can readout signal and scan. Aug 30 03:19:55 for this to work would need the kernel support, and a pi too Aug 30 03:20:01 api Aug 30 03:20:12 depends on the type of antenna though Aug 30 03:20:19 word to the wise, insamplesize does not work with gif images Aug 30 03:20:29 but seems to work with everything else, go figure Aug 30 03:20:35 theres an hour wasted Aug 30 03:20:48 grothendieck: does this seem correct? Aug 30 03:20:56 grothendieck: yes, where do i find the git url? Aug 30 03:21:02 grumble grumble Aug 30 03:21:08 git clone git://android.googlesource.com/platform/cts/cts.git cts Aug 30 03:22:41 dokma: http://www.youtube.com/watch?v=aP4tO_sVIpI Aug 30 03:22:53 g00s: thanks a bunch! Aug 30 03:23:00 ensi: yes that is right Aug 30 03:23:53 grothendieck: i tried from two different locations, i just get connection refused/remote end hung up unexpectedly Aug 30 03:24:03 Leeds: install busybox and create a debian chroot is not pointless ;) Aug 30 03:24:52 appears to be down Aug 30 03:25:01 ensi: yeah Aug 30 03:25:01 dokma: some other cool stuff; sounds like GNU Radio Core Aug 30 03:25:02 http://www.youtube.com/watch?v=iWhnu2kOUyA Aug 30 03:25:18 grothendieck: anyway thanks! :) Aug 30 03:25:32 np Aug 30 03:28:53 dokma: and i'm sure you have also found http://www.youtube.com/watch?v=PBPhIoq5oEI and http://arstechnica.com/tech-policy/2012/07/how-software-defined-radio-could-revolutionize-wireless/ Aug 30 03:29:11 g00s: I'll eat that up Aug 30 03:29:12 the arstechnica article was pretty fascinating Aug 30 03:31:54 architectural question Aug 30 03:32:06 i have a list of items that i'm allowing the user to scroll throw Aug 30 03:32:15 it's 3 columns, with images in each item Aug 30 03:32:31 they can't scroll each column individually, it's just displayed that way Aug 30 03:32:50 when they scroll to the bottom, i need to add more items that will be pulled from a web API Aug 30 03:32:55 my concern is performance Aug 30 03:33:14 if I keep scrolling and adding more ImageViews/items, it's going to lag isn't it? Aug 30 03:33:21 there are quite a few libraries for lazy loading images from web to lv Aug 30 03:33:22 what can i do to mitigate this? Aug 30 03:34:36 g00s: right, and I'm using this one by koush https://github.com/koush/UrlImageViewHelper Aug 30 03:35:34 for some reason i thought of quiche reading koush Aug 30 03:35:55 mmm... quiche. Aug 30 03:36:03 with bacon of course Aug 30 03:36:08 bleh Aug 30 03:36:12 * HorizonXP doesn't eat beef or pork Aug 30 03:36:20 grothendieck: works over http, just fyi Aug 30 03:36:26 https* Aug 30 03:37:38 NO BACON Aug 30 03:37:50 :) Aug 30 03:38:10 also, although I'm going up to the deli soon to grab a salad, no quiche, because I've got veggie hot dogs in the fridge Aug 30 03:39:06 veggie hot dogs :/ Aug 30 03:39:08 there was some great new meat substitute being tested recently at a supermarket (whole foods) in CA Aug 30 03:39:09 blasphemy! Aug 30 03:39:31 tried veggie dogs; stuff with mushrooms and soy, never liked the texture Aug 30 03:39:45 I actually haven't had any meat for about 2 months, apart from fish Aug 30 03:39:55 Does anybody know if there is a way to execute code (like an ant task) before the ADT (in eclipse) builds the project? For example, I would really like to be able to modify my manifest to include permissions for internet so I can do some logging over UDP if I am building in debug mode. I had this setup with android build.xml (generated by the 'android' command) but now I am updating my android tools, and that build file is completely invalid and Aug 30 03:40:02 Leeds: you could wrap your veggie dog in bacon, that would make it better :D Aug 30 03:40:11 * g00s runs Aug 30 03:40:36 it is somewhat annoying having the two separate build procedures Aug 30 03:40:59 if I forget to execute the build.xml file before hitting debug then it doesn't update my manifest etc. Aug 30 03:43:18 This ListView is inverting TextView textColor on focused rows in api <= 11, any idea where I should look first? Aug 30 03:43:46 has anyone noticed that the colour white on the GNex isn't quite white? Aug 30 03:44:18 HorizonXP: Check out the xda forums for the GNex.. screen issues seem common. Aug 30 03:44:23 Or at the very least, a known issue. Aug 30 03:44:26 Not all of them though. Aug 30 03:45:44 General_Crespin: that's disappointing. :-/ Aug 30 03:58:08 nobody? shame Aug 30 03:58:11 i have ant working! Aug 30 03:58:26 now i can make apps Aug 30 03:59:00 go forth! Aug 30 03:59:13 :] Aug 30 04:01:19 can somebody clarify: when you target a specific API level in the project settings, does this have an effect on the oldest device you can run on? For example, in the BB days if I built against 4.5.0 then I couldn't run the app on 4.4.0. It seems to me though that if I build against API 14 then I can run all the way back to API 10, provided I am clever enough to not use any classes/methods/fields that aren't present on that API. Aug 30 04:01:29 is this correct? Aug 30 04:01:57 briswolf: I believe it filters in the android market based on min_sdk_version Aug 30 04:01:58 how is it possible? is the class loader much better (obviously) than the blackberry loader (which only ran once, at bootup, and was not really dynamic at all) Aug 30 04:02:16 grothendieck: not talking about the minsdk in the manifest... Aug 30 04:02:18 but targeting the API version should not have any impact on where it will install Aug 30 04:02:21 yes Aug 30 04:02:35 where it will run is a different story though Aug 30 04:02:41 ... missing 'the' before API made reading that weitrd Aug 30 04:02:43 *weird Aug 30 04:02:43 if you are clever and avoid using things introduced in a later API Aug 30 04:02:54 then it will run even though you target a higher API version Aug 30 04:03:22 yeah so there are three things, minsdk from manifest, targetssdk from manifest, and the actual build sdk Aug 30 04:03:33 min_sdk_version is the only thing that is used to filter, and it is up to the developer to set that Aug 30 04:03:34 minsdk is just to limit where you app can be installed Aug 30 04:03:37 yep Aug 30 04:03:45 targetssdk changes some runtime behaviour Aug 30 04:04:01 it tells android you have tested it on API X and therefore it should behave that way Aug 30 04:04:02 actual build sdk is so android knows where to look at compile-time for jars and stuff Aug 30 04:04:15 ok. So there is no problem setting that to the newest api Aug 30 04:04:16 yah it has nothing to do with runtime at all Aug 30 04:04:19 right Aug 30 04:04:27 no *obvious* problem at least ;) Aug 30 04:04:29 ok cool. I was confused about that :) Aug 30 04:04:31 yah. Aug 30 04:04:56 Just looking at actionbarsherlock and really confused Aug 30 04:04:59 I tend to build against the lowest API version possible Aug 30 04:05:04 yes I would too Aug 30 04:05:10 stops you using classes which don't exist Aug 30 04:05:19 exactly Aug 30 04:06:00 actionbarsherlock calls for "the latest version of the SDK as possible as long as it is 4.0 or newer" Aug 30 04:06:14 I was like, "how does that run on a 2.3 device" Aug 30 04:06:18 but I am all smarted up now Aug 30 04:06:20 thanks Aug 30 04:06:20 ;) Aug 30 04:06:22 np Aug 30 04:07:10 what exaclty happens if you use say API 14 classes and then run it on API 10 device? Aug 30 04:07:17 does it crash with an error message?... Aug 30 04:07:28 briswolf: your nick puts a strange image in my mind, of a wolf attending a bris... Aug 30 04:07:41 briswolf: runtime exception of some type Aug 30 04:07:48 app would crash, you could trap the error in logs Aug 30 04:07:51 briswolf: yes, but if your minSdk is set to 14, then Play won't allow API 10 devices to download the APK Aug 30 04:07:52 ok yep. Aug 30 04:08:06 romainguy_: not minsdk Aug 30 04:08:08 that is set to 10 Aug 30 04:08:15 right this is also assuming minsdk is not set responsibly Aug 30 04:08:31 then you have to make sure you don't call API 14 methods on those devices ;) Aug 30 04:08:37 yes exactly Aug 30 04:08:40 oops I accidentally API 14 but minsdk to API 10 Aug 30 04:08:42 just wondering what would happen Aug 30 04:09:04 it's cool I promise I won't do it ;) Aug 30 04:09:25 good luck! Aug 30 04:09:34 briswolf comes from "wolf" was always my handle in the old LAN days, but it is impossible to get on the internet, and I live in brisbane Australia Aug 30 04:09:35 you'll getting a missing symbol error Aug 30 04:09:47 briswolf: lol that is more comforting Aug 30 04:09:53 couldn't find class blah blah blah Aug 30 04:09:59 exception thrown, pants shit, app crashes Aug 30 04:10:14 dragorn: yep, cool. Aug 30 04:10:25 briswolf: it's not very dramatic, it just poops itself Aug 30 04:10:46 dragorn: just wondering if android put up a user friendly message Aug 30 04:10:51 nah Aug 30 04:11:04 app has failed, send report Aug 30 04:11:05 BB never did, if you were missing a shared library etc it would just put up developer jargon :) Aug 30 04:11:22 I am trying to think of my stupid cusomers Aug 30 04:11:24 well it wont' throw a stack trace at the user Aug 30 04:11:28 :P Aug 30 04:11:31 it'll either throw an app died error Aug 30 04:11:35 ok Aug 30 04:11:40 or just exit to launcher Aug 30 04:11:42 depends how you handle the error Aug 30 04:11:55 not that all users are stupid Aug 30 04:12:03 briswolf: they are Aug 30 04:12:06 haha Aug 30 04:12:12 ok. Just didn't want to get in trouble ;) Aug 30 04:12:19 android app comments are only marginally better than youtube comments Aug 30 04:12:22 "lame and gay" Aug 30 04:12:25 ROFL Aug 30 04:12:42 grothendieck: assuming you're making an invalid apk which doesn't define it's minimum versions properly, i'm assuming you're not catching API errors very well. Aug 30 04:12:46 did you know there is a chrome/ff plugin that stops you from reading youtube comments Aug 30 04:13:00 hahah Aug 30 04:13:37 yeah, it is something I don't quite understand, why does actionbarsherlock tell you to build with the latest API Aug 30 04:13:41 I haven't gotten any nonsense comments yet, I did get one 1-star rating w/ no comment. More confusing to me is you need specific hardware to use my code, and I've only sold about 40 of those, yet google shows 500+ downloads Aug 30 04:13:43 Heheh, I'm picturing an xkcd style graph with webservice on x axis and percentage of retarded commends on y Aug 30 04:13:45 but it is supposedly compatible back to say API 10 Aug 30 04:14:28 if it does run back to that version of API, why shouldn't I build it against API10 Aug 30 04:14:28 If I want to do animation on surface view, must I implement it by myself??? Aug 30 04:14:33 briswolf: because android wants to make sure you are always using the latest API Aug 30 04:14:47 I assume for a variety of reasons Aug 30 04:14:53 briswolf: because if you build against v10 you can't use v14 functions Aug 30 04:14:56 most of which boil down to "thinkign of their stupid users" ;) Aug 30 04:15:06 and their stupid users security Aug 30 04:15:09 briswolf: but if you build against v14 and detect api calls you can't use Aug 30 04:15:12 yeah, but if I target v14 I can't run on v10 Aug 30 04:15:25 oh ok Aug 30 04:15:36 so, it is perhaps a way around having to use reflection Aug 30 04:15:48 well, no, it's how you DO use reflection, more or less Aug 30 04:15:57 ? Aug 30 04:16:03 you have to see if you can use that function call Aug 30 04:16:06 or otherwise remap it Aug 30 04:16:10 not really, I am using v11 classes from v10 app Aug 30 04:16:13 using reflection Aug 30 04:16:26 specifically Usb related stuff Aug 30 04:16:32 reflection is the ugliest thing about Java Aug 30 04:16:36 because some v10 devices do have usb accessory support Aug 30 04:16:50 followed closely by file I/O Aug 30 04:16:52 and for my own reasons I am not using the backwards compat library Aug 30 04:17:09 briswolf: be careful what you count on w/ usb, especially host mode Aug 30 04:17:14 brb Aug 30 04:17:19 I don't count on anything Aug 30 04:17:20 accessory mode is less weird Aug 30 04:17:30 every manufacturer finds a new way to ruin host mode Aug 30 04:17:30 well it has it's bugs :( Aug 30 04:17:40 dragorn: oh, like how? Aug 30 04:17:50 so the galnex works great, as does the n7 Aug 30 04:17:51 I have only seen galaxy s3 and note so far Aug 30 04:17:58 they work very well Aug 30 04:17:59 the htc one v appearently doesn't work in host mode, period Aug 30 04:18:05 sad Aug 30 04:18:09 one x? Aug 30 04:18:17 moto devices running 4... the xoom has a wacko usb chipset which doesn't work in host right, it kind of does Aug 30 04:18:27 my contact at moto said "yeah that chipset is weird" Aug 30 04:18:37 the razr can do host mode, but only w/ custom hardware Aug 30 04:18:40 trouble with accessory mode is charging the damn android device Aug 30 04:18:49 you have to backfeed 5v because the damn device charges in host mode Aug 30 04:18:51 what kind of custom hw? Aug 30 04:18:53 LOL Aug 30 04:18:55 oh no Aug 30 04:18:57 AND you need a hub in the chain Aug 30 04:19:03 crap Aug 30 04:19:06 or else it misreports power budget and doesn't enumerated devices right Aug 30 04:19:06 crazy Aug 30 04:19:14 i'm working on making a hub+optional backfeed board Aug 30 04:19:27 what accessories do you build? Aug 30 04:19:37 mostly random stuff for projects I need Aug 30 04:19:43 http://www.grabba.com/ - ignore the terrible website. I didn't write it. Aug 30 04:19:47 I see. Aug 30 04:19:55 if I can shove it to bluetooth, i do that Aug 30 04:19:58 because its' way more reliable Aug 30 04:20:05 but some stuff is too high-bandwidth Aug 30 04:20:10 you can do zigbee over bluetooth easily Aug 30 04:20:11 yes Aug 30 04:20:13 can't do wifi stuff Aug 30 04:20:20 so i need usb host to bang on a wifi nic directly Aug 30 04:20:42 must be some special wifi, why not use the device's wifi? Aug 30 04:20:46 i was already making power boards to separate the nic and power it off a battery pack w/out draining the phone Aug 30 04:20:56 can't do monitor mode w/ the built in stuff Aug 30 04:21:10 but you can port drivers to userspace and bang the radio directly, w/out root privs Aug 30 04:21:14 cool. so is this stuff just hobby or you sell it? Aug 30 04:21:23 xoom is a pile Aug 30 04:21:28 somewhere in between Aug 30 04:21:37 ok cool. like engineering services :) Aug 30 04:21:53 haha dragorn looks like you and I may have overlapping areas of study Aug 30 04:22:34 briswolf: https://yfrog.com/j24oyurj is the 2nd-gen power injector/splitter (with way too bright LEDs) Aug 30 04:23:01 that one has no active circuits, it's just a jumper to split phone power from battery, or inject it back into the phone for the razr Aug 30 04:23:13 the rev I'm working on now has a high-speed usb2 hub in it Aug 30 04:23:26 very cool. Aug 30 04:23:30 ron_frown: on yeah? Aug 30 04:23:40 I mis read Aug 30 04:23:57 I have been working with USB devices since 2006, and I just wish they had put a provision in the USB spec to turn off VBUS current for self-powered devices Aug 30 04:24:07 it is so unfair that I have to power them. Aug 30 04:24:10 I've co-designed custom 4460 hardware, and got our own custom jellybean rom MOSTLY going on it thus far Aug 30 04:24:24 also I have NEVER in 6 years seen a device which stops drawing current from VBUS when it is suspended Aug 30 04:24:24 ron_frown: ahh.. yeah, i'm definitely on the accessory side Aug 30 04:24:26 it makes me sick Aug 30 04:24:40 briswolf: https://kismetwireless.net/screenshot/kisbee-assembled.jpg is my zigbee/bluetooth stuff Aug 30 04:25:06 the problem w/ usb on android is every manuf ruins it in some new way Aug 30 04:25:06 cool dragorn ! Aug 30 04:25:19 yeah very cool :) Aug 30 04:25:20 so you can't even design stuff consistently Aug 30 04:25:35 I like that the xoom seemed like it went from may work, to will work, to wont work ever Aug 30 04:25:35 haha Aug 30 04:25:39 no. Tell me about it. I was developing for windows mobile back in 2006/7 Aug 30 04:25:42 same thing Aug 30 04:26:01 blackberry saved me from that hell for a while, at least every blackberry behaved in an identical fashion (almost) Aug 30 04:26:30 but they had their own problems, like as soon as you connect a BB to a usb host, the BB cpu never sleeps and so the BB battery gets killed so fast Aug 30 04:26:50 I guess they assumed that they would always be charging but then the accessory guys came and put in a command to stop charging Aug 30 04:26:54 and so, trouble... Aug 30 04:27:03 anyway. it's dead now. I am looking forward to BB 10 though Aug 30 04:27:09 ron_frown: i've had some usb stuff work on the xoom Aug 30 04:27:18 ron_frown: but my wifi code which really gives usb a workout falls on its face Aug 30 04:27:43 I was happy to be rid of the xoom Aug 30 04:28:04 the iconias, the galaxy tabs, the nexus 7 etc were all much better Aug 30 04:28:33 briswolf: if you want to have some real fun with usb... http://goodfet.sourceforge.net/hardware/facedancer10/ Aug 30 04:28:39 one piece of advice for anyone buying android hardware Aug 30 04:28:42 DONT BUY MOTOROLA Aug 30 04:28:42 haha Aug 30 04:28:46 briswolf: USB emulator connected to python... emulate any USB device you want Aug 30 04:29:01 briswolf: (assuming you're willing to write the code, anyhow) Aug 30 04:29:29 ron_frown: yeah; thing is, a lot of ppl do, which means you need to be able to support it Aug 30 04:30:15 haha it uses the MAX3420. I am an expert with the MAX3421, host/device chip Aug 30 04:31:18 heya guys, I'm looking at modifying the default Camera application, to disable the preview animation (ie, have it show straight up, without the annoying zoom/pan), it looks like it is using the CaptureAnimManager class, does anyone know how to change the type of animation ? Aug 30 04:31:26 dragorn: it is a good idea for developers of windows usb drivers etc though Aug 30 04:31:32 briswolf: I'm currently using a renesas hub chip Aug 30 04:31:37 briswolf: yeah Aug 30 04:32:32 dragorn: is that just a usb hub or like a host/root hub? Aug 30 04:33:10 briswolf: the one i'm using, just a hub. Just needs to get the power budget in the firmware changed so it allows devices to actually enumerate Aug 30 04:33:40 briswolf: i'm not even doing nice regulators on it, just shoving the battery pack 5v at the devices and calling it good Aug 30 04:33:47 hah why not Aug 30 04:34:02 it probably is all good for most applications anyway Aug 30 04:34:14 what battery pack have you got that outputs 5v? Aug 30 04:34:36 briswolf: any of the usb battery packs for recharging devices, there's lots of high-capacity ones out there Aug 30 04:35:12 yeah right, well they will be regulated to usb spec anyway Aug 30 04:35:19 no point adding more regulation Aug 30 04:35:23 normal hubs don't do it Aug 30 04:35:52 dragorn: so is this your day job? Aug 30 04:36:13 briswolf: nah; i was a wifi r&d guy until recently Aug 30 04:36:31 mostly do wifi/other wireless security Aug 30 04:36:35 then I got laid off Aug 30 04:36:43 :( Aug 30 04:36:48 (last week) Aug 30 04:36:48 sorry to hear it Aug 30 04:36:59 yeah. sorry I brought it up! Aug 30 04:37:06 so now I'm just sort of messing around. Most of my hw stuff is "i need xyz tool" Aug 30 04:37:17 so to get my wifi stuff working on android, i need a usb power injector w hub Aug 30 04:37:35 to get zigbee sniffing working, i need to make a conveniently packaged zigbee radio Aug 30 04:37:40 means to an end Aug 30 04:38:04 yep. so out of curiousity, how much bandwidth does android/usb have? (I know that depends on a lot of things) Aug 30 04:38:27 I've never tried to flatten it so i don't know. Aug 30 04:38:37 It brokers through a daemon in android Aug 30 04:38:41 which will add some degree of latency Aug 30 04:38:55 if you shove the usb file descriptor down to native code instead of running it in a java thread Aug 30 04:39:05 yeah I was thinking about that Aug 30 04:39:06 you might minimize things a little Aug 30 04:39:17 It's on my list to patch libusb to accept a fd to the open commands Aug 30 04:39:31 i've got a path back upstream on that; other than that it compiles into the ndk just fine Aug 30 04:39:46 wow, very cool Aug 30 04:40:13 i've got a bunch of stuff pending on libusb on android so getting that done is actually higher on my list Aug 30 04:40:28 ask google for a job Aug 30 04:40:46 Either I'm a shoe-in or google won't touch me with a 10 foot pole Aug 30 04:41:05 that whole streetview wifi sniffing stuff... kind of my code. (I wasn't the one who put it in there, but I'm the one who wrote the tool they used) Aug 30 04:41:25 oh, you're famous :) Aug 30 04:41:46 see if you can get them to fix my USB bug :P http://code.google.com/p/android/issues/detail?id=20545 Aug 30 04:41:59 for some definition of "famous", I suppose. My constant fear is "hey lets sue everyone" Aug 30 04:42:22 tho the lawyer I talked to said I should sell my services as an expert witness and "bill like a mother-f'er" Aug 30 04:42:25 infamous? Aug 30 04:42:52 dragorn: you should. expert witness. sounds cool. Aug 30 04:46:21 http://techpp.com/2012/08/29/stormy-weather-interferes-with-cloud-computing-us-survey-reveals/ :( Aug 30 04:46:24 goodnight Aug 30 04:46:45 grothendieck: night Aug 30 04:47:03 dragorn: can you tell google to stop filtering out ad-hoc networks in their wifi-scans on android Aug 30 04:47:07 it's ridiculous Aug 30 04:47:18 grothendieck: heh. I can't tell google anything :P Aug 30 04:47:22 dragorn: nice, are you allowed to visit europe still? Aug 30 04:47:26 grothendieck: sure, storms can take out your infrastructure :P Aug 30 04:47:28 if you get a chance ;) Aug 30 04:47:35 grothendieck: even when I was in a position to yell, they didn't listen Aug 30 04:47:41 haha Aug 30 04:47:52 mh`: haven't tried. haven't heard I can't - I don't work for them Aug 30 04:48:08 dragorn: yeah sorry missed the whole 'tool they used,' part Aug 30 04:48:09 :) Aug 30 04:48:19 mh`: had nothing to do w/ their decisions on how they used kismet, so... don't see why it's my problem ;P Aug 30 04:48:20 I bugged google about it Aug 30 04:48:28 i'm thinking the nsa has all of dragorn's emails :) Aug 30 04:48:29 case is still open Aug 30 04:48:33 3 years now or more Aug 30 04:48:36 heh Aug 30 04:48:36 dragorn: thanks for kismet :) Aug 30 04:48:45 oh nice Aug 30 04:48:47 g00s: they have all our emails,I'm not special :P Aug 30 04:48:48 I <3 kismet Aug 30 04:48:54 thannks Aug 30 04:48:59 dragorn: oh yeah :( Aug 30 04:49:05 Well, if android sucked less at usb host, you'd see kismet on android sooner, too :P Aug 30 04:49:29 we could play madlibs with that sentence ^ Aug 30 04:49:29 port GNU libusb? Aug 30 04:49:43 https://lh5.googleusercontent.com/-lQv3c_HHowQ/Tx32oMZX5AI/AAAAAAAACEc/pozIDjZzMAs/s800/2012-01-23_19-08-24_10.jpg Aug 30 04:50:01 grothendieck: wlel, it's more the problem that all the vendors mess it up in different ways Aug 30 04:50:04 dragorn: neat Aug 30 04:50:55 dragorn: you will need root Aug 30 04:51:01 dont you? Aug 30 04:51:05 grothendieck: no Aug 30 04:51:13 grothendieck: not on android3+ Aug 30 04:51:25 why permission denied then? Aug 30 04:51:40 grothendieck: in that photo? because it's an early build and it's writing to a nonsense directory Aug 30 04:51:45 oh Aug 30 04:51:52 fair enough Aug 30 04:51:54 that is awesome Aug 30 04:51:58 that's the rtl8187 driver ported to userspace java running in one thread Aug 30 04:52:06 nice Aug 30 04:52:08 kismet compiled as a JNI native library running in another thread Aug 30 04:52:19 a man of my own heart Aug 30 04:52:33 it was just early in dev so it's trying to write to ~/.kismet/foo Aug 30 04:52:35 all my work on android is porting native libs Aug 30 04:52:36 which doesn't exist Aug 30 04:52:38 right Aug 30 04:52:46 grothendieck: i can't figure out how to pronounce your name Aug 30 04:53:09 prolly shouldn't try Aug 30 04:53:20 [gʁɔtɛndik] Aug 30 04:53:30 that didn't help :| Aug 30 04:53:31 http://en.wikipedia.org/wiki/Alexander_Grothendieck Aug 30 04:53:41 I stole it from a famous mathematician Aug 30 04:53:52 for an app to show up in the share menu, do i have to use an activity for it, or can i use a broadcast receiver as well? Aug 30 04:55:05 it needs to have an intent filter matching the share action on something, iirc Aug 30 04:55:37 dragorn: I worked on a port of OLSRd (mesh routing protocol) to Android a few years ago Aug 30 04:55:57 so dug pretty deep into the wifi guts Aug 30 04:56:00 p_i: thats what i did. it worked for the activity, but not the broadcast receiver. not sure if i'm missing an attribute or if its not possible Aug 30 04:56:49 grothendieck: I try to stay out of requiring root or custom roms, just because of the support and security hassles Aug 30 04:56:50 if you ever want a second pair of eyes, feel free to msg me Aug 30 04:56:53 f2prateek_: http://developer.android.com/training/sharing/receive.html Aug 30 04:57:00 grothendieck: which is somewhat limiting Aug 30 04:57:02 dragorn: you are wiser than I ;) Aug 30 04:57:29 grothendieck: at $oldjob we were modifying wpa_supplicant and such Aug 30 04:57:30 it is limiting when you need to run as a daemon Aug 30 04:57:35 yah Aug 30 04:57:48 I rolled my own wpa_cli Aug 30 04:58:01 and hacked wpa_supplicant Aug 30 04:58:08 to force into ad-hoc mode Aug 30 04:58:31 mr6: anything like that for BroadcastReceivers? i already have it working with an activity, but since all its doing is copying the share intent text to the clipboard, i though BroadcastReceiver would be more elegant. Aug 30 04:59:22 here is the pastebin http://pastebin.com/3bEZxXFq Aug 30 04:59:29 sorry manifest Aug 30 04:59:33 okay seriously now goodnight, no more being dragged in to discussions because somebody is actually doing something cool for once :P Aug 30 05:00:18 f2prateek_: just make the component you receive the intent in a BroadcastReciver Aug 30 05:00:27 f2prateek_: I don't see the problem Aug 30 05:01:18 mr6: the problem is the broadcast receiver doesn't show up in the share menu… Aug 30 05:01:33 f2prateek_: did you register in the manifest? Aug 30 05:01:47 f2prateek_: what version are oyu on Aug 30 05:01:48 *you Aug 30 05:01:48 yeah http://pastebin.com/3bEZxXFq Aug 30 05:02:07 ... Aug 30 05:02:08 ? Aug 30 05:02:11 jellybean Aug 30 05:02:28 f2prateek_: have you run the app since you last pushed the apk/installed it? Aug 30 05:02:39 the app needs to be run once or it will not show up in the share menu Aug 30 05:02:44 and i assume that resets on every install Aug 30 05:03:02 http://www.vogella.com/articles/AndroidIntent/article.html Aug 30 05:03:03 tut here Aug 30 05:03:27 hmm i'll try that….all the app does is have a braodcast receiver so there isnt any activty at all Aug 30 05:03:49 not sure how you can meet that requirement then, hrm Aug 30 05:04:00 make a quick main activity, doesnt need to do anything, so you can run it from launcher Aug 30 05:04:31 though to be honest it will be kind of weird to have a share receiver that has no UI Aug 30 05:04:40 yeah, its for AOKP Aug 30 05:04:48 all it does is copy the intent to clipboard Aug 30 05:05:11 ctrl-f to 'earlier' in that link Aug 30 05:05:13 it explains limitation i mentioned Aug 30 05:05:15 i had it with an activity so there was no issue, was just testing moving it to a broadcast receiver, since no UI is associated with the action Aug 30 05:06:17 that's not what i'm talking about Aug 30 05:06:41 i'm suggesting it may be that the only reason your broadcastreceiver isn't in the share menu is because 3.1+ requires that the app be run successfully at least once post-install Aug 30 05:06:49 and until then it will not show up in that menu Aug 30 05:07:11 and also if you force stop it, it will stop showing up in the menu (i mention this because if you're deploying from i.e. eclipse or adb, you may be killing it in a way that triggers) Aug 30 05:07:21 i've not worked on a version of android that has this 'feature' implemented, so can't help you Aug 30 05:08:41 it still doesnt show up though, even after running the app once Aug 30 05:08:43 i gotta go shower the android-meetup off of me Aug 30 05:08:46 bbiaf Aug 30 05:08:51 dunno then, check your filters Aug 30 05:08:56 loosen them up to * to test Aug 30 05:09:05 you can definitely receive action_send on a broadcastreceiver without a doubt Aug 30 05:09:21 theres explicit sample code in the link i gave that i know works Aug 30 05:09:24 so compare yours Aug 30 05:09:27 bbiaf :) Aug 30 05:09:28 gl Aug 30 05:34:39 just got actionbarsherlock working, it is effing fantastic. Thanks JakeWharton :D Aug 30 05:34:49 my please good sir Aug 30 05:34:51 pleasure as well Aug 30 05:35:12 yup, it's awesome, I'd like to say thanks too! Aug 30 05:36:33 you're welcome! glad it helps Aug 30 05:45:53 i have a bunch of LinearLayouts consisting of an ImageView & TextView that I'm populating dynamically based on JSON data from an API Aug 30 05:46:05 I'm trying to animate their addition to the view Aug 30 05:46:19 i'm using setAnimation, but it's pretty slow. :-/ Aug 30 05:46:26 is there a best practices for doing this? Aug 30 05:48:56 give it a faster duration? Aug 30 05:51:54 when I used the android command (android.bat in windows) to update my build.xml file (updated all my android tools today) it said that it thought maybe subprojects were being used. Excuse my ignorance, but can anybody tell me exactly what a sub-project is? Is it something like a library project? Aug 30 05:59:02 JakeWharton: i can try :P Aug 30 06:01:39 JakeWharton: it just ends up skipping frames Aug 30 06:06:06 HorizonXP: which kind of animation are you using? Aug 30 06:07:08 vavirta: it's just a slide-in animation from the top Aug 30 06:07:25 vavirta: so it translates from -100% to 0% YDelta over 200 ms Aug 30 06:07:47 however, i'm adding the animation to 30 composite views that are being added at about the same time Aug 30 06:08:07 yeh, but you are using tweened view animations? Aug 30 06:08:07 http://developer.android.com/guide/topics/graphics/view-animation.html Aug 30 06:09:15 I've experienced also few performance issues with it Aug 30 06:10:10 I needed to rotate pretty big background image, and couldn't find any way to make it faster Aug 30 06:11:38 vavirta: i am using the same technique as that link you pasted Aug 30 06:13:21 3.0 introduced Interpolated Property Animations Aug 30 06:13:22 http://developer.android.com/guide/topics/graphics/prop-animation.html Aug 30 06:14:24 I haven't played with that so don't know about performance Aug 30 06:14:38 morning Aug 30 06:19:20 anyone here participating in the Intel/CodeProject android game contest? Aug 30 06:22:46 <[emil]> I had asked this yesterday but got no reply. I am trying to login to twitter using twitte4j. Here is the code http://pastebin.com/iu7wCVYS. After going to the twitter page and pressing 'allow' it is redirecting me to mobile.twitter.com. If I dont specify CALLBACK it redirects to the callback url I spedified in dev.twitter.com/apps(.*). Am not even getting the pin. Aug 30 06:23:53 [emil]: no idea, but didn't twitter just make changes to what clients can connect ? Aug 30 06:24:06 hey I am learning about fragments - can I reuse a layout xml file which I previously used with an Activity for a fragment? I.e. is there any difference for a layout xml file you use with an activity to one you use with a fragment? Aug 30 06:24:22 I thought they just removed information about the client that users use to tweet Aug 30 06:24:25 briswolf: should work Aug 30 06:24:48 g00s: should work - is it the right way? I am confused, as always :D Aug 30 06:25:08 basically, the layout for a fragment just has like a linearlayout/other full of views Aug 30 06:25:15 and doesn't need to do anything special :) Aug 30 06:25:17 briswolf: yeah, thats fine Aug 30 06:25:26 <[emil]> g00s, I didnt know that. From when exactly? Aug 30 06:26:10 [emil]: ok, i was wrong sorry - Knossos was right Aug 30 06:26:26 Knossos 1 | g00s 0 Aug 30 06:27:14 briswolf: only difference is that you need to inflate it Aug 30 06:27:20 and can't use setContentView Aug 30 06:27:27 [emil]: http://gigaom.com/2012/08/21/after-tumultuous-summer-developers-cast-wary-eye-on-twitter/ Aug 30 06:27:37 http://www.readwriteweb.com/archives/twitter-to-developers-display-tweets-our-way-or-else.php Aug 30 06:27:43 and you have to inflate it on onCreateView-callback Aug 30 06:28:07 vavirta: yep, that much I understand :) Aug 30 06:28:34 * g00s says: fuck all this social stuff :) Aug 30 06:28:53 hehe, I never "got" twitter Aug 30 06:28:56 so, another dumb question, when it comes time for me to write a tablet app, you just basically use fragments as you would use views, putting them inside of some kind of layout Aug 30 06:29:08 is that right? Aug 30 06:29:12 yes Aug 30 06:29:15 Not just for tablet apps Aug 30 06:29:15 http://www.youtube.com/watch?v=PN2HAroA12w Aug 30 06:29:43 If you can separate anything into fragments, you can make UI changes a lot simpler Aug 30 06:29:58 just remember, fragments can't contain fragments Aug 30 06:30:19 yep. Cool. Aug 30 06:31:03 so really, you should never not use fragments ;) Aug 30 06:31:31 aw google! why, oh why are you wiping /sdcard when upgrading the galaxy nexus?! Aug 30 06:31:42 I try to use Fragments where I can Aug 30 06:32:35 yeah. Ok, I think I understand now, I was just hung up looking for some magic fragment type layout xml, but a layout is a layout no matter what you put it in Aug 30 06:37:18 <[emil]> I was going through the two links. I was actually learning android and thought I would give a hand at twitter integration. Does this actually mean I wont be able to do it. My sample app would display the user's pic , name , allow him to tweet and also display his followers. Aug 30 07:22:46 ahoy Aug 30 07:23:29 is there a way to dynamically walk all parameters in a Camera.Parameters object? So there can be a handler according to the type of the parameter? Aug 30 07:24:59 rigid1: could you do that with reflection? Aug 30 07:25:13 reflection? Aug 30 07:25:33 http://java.sun.com/developer/technicalArticles/ALT/Reflection/ ? Aug 30 07:25:45 reflection is a way to get access to classes, methods. fields etc at runtime without knowing what they were at compile time Aug 30 07:26:42 maybe this? http://docs.oracle.com/javase/tutorial/reflect/class/classMembers.html Aug 30 07:26:49 i guess that's not the way to go since Camera.Parameters seems to use it's own internal format to store parameters... i'd rather parse Camera.Parameters.flatten() i guess Aug 30 07:26:51 do you need to do this though? Aug 30 07:27:10 yes maybe. I am not familiar with it Aug 30 07:27:20 relfection should rarely be used Aug 30 07:27:30 it is more for dynamic class loading etc Aug 30 07:27:37 well, it's the decent way to create an UI for _all_ existing camera devices & their parameters... i wouldn't know a better way *shrug* Aug 30 07:28:15 hm... i'll look into it, didn't know java could do that :) Aug 30 07:32:34 I've created a monster! ;) Aug 30 07:32:36 bye Aug 30 07:33:53 :) Aug 30 07:45:38 "BasicDream" isn't _acutally_ a thing, is it? Aug 30 07:46:00 guys am having a ght maestro running android 2.1 , i have done chmod 777 /sys , now my phone is not even working , i can't even find a rom please help :'( Aug 30 07:46:23 i think you should join #android for those kind of questions Aug 30 07:47:40 flam , am getting no response in android Aug 30 07:48:19 proby: please read channel topic Aug 30 07:59:24 Hi Aug 30 08:01:26 What happens to views/view hierarchy belonging to setContentView after a fresh call to setContentView is made? Aug 30 08:03:38 aa Aug 30 08:03:50 aaa Aug 30 08:07:14 lasserix: i think its a bad idea to call setContentView twice :) Aug 30 08:07:45 technically it works, i thought i remember hearing it was bad tho Aug 30 08:08:56 eurgh, this is gonna be fun.. trying to create a new version of my app that has some extra features while re-using the majority of the code... any tips :| ? Aug 30 08:09:41 feel like i'm gonna have to involve reflection Aug 30 08:10:33 aa Aug 30 08:15:09 i have no idea how to go about this Aug 30 08:40:49 can anyone give opinion wether ot not to do the latest update for SSGSIII OTA? T-mo USA Aug 30 08:41:20 sorry Aug 30 08:41:30 just one Q :) Aug 30 08:43:15 #android Aug 30 08:49:05 stork: my tip would be: Don't be afraid of refactoring Aug 30 08:49:55 stork: are you just updating the same app, or having 2 different apps that share commonality ? Aug 30 08:51:21 well i'm making a second app that adds functionality to the first Aug 30 08:52:20 so, like a lite and pro version ? Aug 30 08:52:50 put the common stuff in a library project perhaps, and have the specifics residing in each app-project Aug 30 08:52:56 more or less Aug 30 08:53:11 yeah that's what i'm trying to do, gonna have to refactor a fair bit though Aug 30 08:54:15 hi all Aug 30 08:54:24 I can't seem to find the AVD manager, I think it did not get installed Aug 30 08:55:09 I can get to the SDK manager, but that's about it. I am also getting errors when trying to test and app to the emulator Aug 30 08:55:16 saying the emulator is in old state Aug 30 08:55:35 can someone suggest how to get to the avd manager and shut down (not suspend) the images or so? Aug 30 08:55:48 Heya all... Can anyone point out any reading about background synchronisation? Android-specific or Generic... Aug 30 08:55:48 try 'android -avd' or something Aug 30 08:56:01 sivang: Start the emulator, but choose WIPE USER DATA. Aug 30 08:56:01 g00s: thanks, is this somewhere in the docs? Aug 30 08:56:07 um Aug 30 08:56:08 Lachezar: noted, ++ Aug 30 08:57:08 Lachezar: background synchronization ? Aug 30 08:57:47 g00s: I need to exchange data with the server... Hence synchronisation. Aug 30 08:58:10 g00s: I was doing that in an activity that the users started manually. Aug 30 08:58:31 g00s: The client has requested, that the synchronisation process is performed in the background at regular intervals. Aug 30 08:58:44 oh, look at SyncManager i think Aug 30 08:58:55 g00s: I was wondering if someone has done that, so that I don't reinvent the hot-water. Aug 30 08:59:20 sivang: do you have a "Tools" menu in the SDK manager? Aug 30 09:02:21 oh, its 'android avd' not 'android -avd' Aug 30 09:02:37 Leeds: no, I could not spot it there Aug 30 09:02:47 <.< Aug 30 09:02:49 strange Aug 30 09:03:03 what happens if I just reinstalled the SDK? Aug 30 09:03:36 I had a prev instal. at one folder, and I created a new one Aug 30 09:03:48 just now, will it interfere with things? Aug 30 09:04:41 sivang: The emulator images are in ~/.android. You might want to remove the directory if you want to start over. Back it up though, because there is the debug keystore too. Aug 30 09:12:11 What's the best way to make a database helper / cursor available to a list fragment without initializing it in that fragment's code (ie, in the parent activity)? Aug 30 09:13:08 sounds like bad encapsulation Aug 30 09:14:26 How do you mean? Aug 30 09:15:24 I'd like to use just the simpleCursorAdapter, but the database needs to be available to other portions / fragments of the activity Aug 30 09:15:26 its a good idea that fragments are self contained; they should not depend much on their outer context (in general sense). sharing a cursor is 'too intimate' Aug 30 09:15:42 Okay Aug 30 09:16:24 How do I safely access the database if I'm openning multilple instances of it in different fragments? Aug 30 09:16:38 thats ok. i do it also Aug 30 09:16:51 i mean, don't select * in a bunch of fragments :) Aug 30 09:17:43 So it's not a bad idea to initialize multiple instances of the database in different fragments pending the queries are reasonable? Aug 30 09:17:44 Does anyone have any idea how to make android persist the changes in contact information data? The changes in contacts in sim card are overwritten on reboot. Aug 30 09:17:51 Even new contacts created on phone are deleted, if they have been aggregated to a sim contact. Aug 30 09:18:10 lasserix: there will only be 1 instance of the db Aug 30 09:19:17 Then how do I get access to that db in the multiple fragments? Aug 30 09:19:41 lasserix: take a look at the iosched app Aug 30 09:19:46 this code downloads a file and saves it to the SDCard, http://stackoverflow.com/questions/5472226/how-to-save-file-from-website-to-sdcard Aug 30 09:19:53 how can I save it to the internal memory Aug 30 09:20:06 Ahh thanks goos! Aug 30 09:26:10 guys, if I need widget size: 4x2, it will be 146dp of height and 294dp of width? :/ Aug 30 09:29:15 Ahh LoaderManager thanks again goos. Aug 30 09:40:08 can anyone give opinion wether ot not to do the latest update for SSGSIII OTA? T-mo USA Aug 30 09:40:29 I've heard input that it kills 4G Aug 30 10:08:40 hi all, I'm trying to write a utility class for doing HTTPS POSTs which loads a CA cert from a resource, but of course it's tricky to access the resource from outside a Service or Activity.... what's the best solution for this? Aug 30 10:08:47 where is MODE_PRIVATE referring to here? http://developer.android.com/guide/topics/data/data-storage.html#filesInternal Aug 30 10:09:10 <[emil]> has anyone tried this page of twiter integration. https://github.com/Sheikh-Aman/Android_Samples/blob/master/1.%20Sign-inWithTwitterT4J/src/com/aman/samples/t4jsignin/Main.java. The same page is not doing callback. Instead am getting redirected to mobile.twitter.com. Aug 30 10:09:16 ex-parrot: use CA cert already in android, or install the CA cert Aug 30 10:09:48 deebo: can I programmatically install the CA cert when the app launches for the first time? Aug 30 10:10:00 Sicp: er, see where it says Context.MODE_PRIVATE in the code sample Aug 30 10:10:19 I see where it says that, but where is the path? Aug 30 10:10:50 ex-parrot: probably, but youd scare your users away, just get a proper certificate for the service? Aug 30 10:11:07 <[emil]> from line 64 it goes to the signup page. if it is getauthorizationrul instead of getauthentication url . it goes to the page you are prompted to click a button to allow/disallow permission. Aug 30 10:11:14 deebo: there's no need to involve an outside CA in this app, it's just for the app to be sure it's talking to the server it's meant to be.... Aug 30 10:11:44 in this case an in-house CA managed by us is probably more "proper" than a commercial CA, since we control both the client and server Aug 30 10:12:40 get your CA signed by a proper authority and it should work? :) Aug 30 10:12:53 I don't think you understand what I'm trying to do here. Aug 30 10:13:16 i do, but atleast I wouldnt allow an app to install a certificate Aug 30 10:13:22 the alternative is to just store the fingerprints for the valid server certs in the app, but using CA validation as it was designed is probably the easier choice Aug 30 10:13:29 i guess you can finagle with httpclient and manually set the CA Aug 30 10:13:43 yeah, which is what I'm doing. but it requires having a KeyStore in a resource Aug 30 10:14:25 if its for a company, i guess it wouldnt be a problem to just tell everyone that they need to have the company CA intsalled on their phone to use the app Aug 30 10:14:36 but if it's public, it'd be weird Aug 30 10:14:52 you might not want to let an app install a CA, which is a reasonable concern, but by the same token I don't want to outsource my certificate issuing to a third party organisation who will charge me for the privelege of issuing certs that will only ever be interacted with by my own software who won't verify the CSR nearly as closely as I will for my own little CA :P Aug 30 10:15:28 I've never done any of the hacks to get at a resource from inside a non-context subclass, are they actually OK to do, or should I just not do them? Aug 30 10:17:01 maybe I could just base64 the keystore and paste it in to the class as a string constant :/ Aug 30 10:20:09 http://www.youtube.com/watch?v=Z486Zvv6wAc nsfw :) Aug 30 10:20:35 just checking Aug 30 10:20:40 :) Aug 30 10:20:55 :P Aug 30 10:21:35 Parhs: why do you keep posting that video ? Aug 30 10:22:01 http://www.aarkey.info/babble/images/wellalrightythen.jpg Aug 30 10:22:04 check this then Aug 30 10:22:08 anyone using cordovawebviews in their fragments? Aug 30 10:22:15 g00s second time i posted this video Aug 30 10:27:53 Parhs: and the relationship to Android development is? Aug 30 10:30:48 lol Aug 30 10:30:59 the guy on the pic, is a developer Aug 30 10:36:06 yes he is an android developer :0 Aug 30 10:36:07 :) Aug 30 10:36:36 they both look like android developers XD Aug 30 10:37:30 g00s, good relation! Aug 30 10:37:38 yep :) Aug 30 10:38:14 i hate to see any pictures Parhs has of iOS devs Aug 30 10:38:28 heh Aug 30 10:38:51 i'll post some time in the future here Aug 30 10:39:16 btw android 4+ looks nice Aug 30 10:39:50 Leeds: still doing django ? Aug 30 10:39:54 can anyone give opinion wether ot not to do the latest update for SSGSIII OTA? T-mo USA Aug 30 10:40:05 wrenny: do it ! Aug 30 10:40:13 g00s: when I can rouse myself from an absolutely unproductive stupor to do anything at all, yes... Aug 30 10:40:20 wrenny: don't do it! Aug 30 10:40:32 Leeds: have you looked at web2py by any chance ? Aug 30 10:40:38 nope Aug 30 10:40:44 I've heard rumors it kills 4G? Aug 30 10:40:50 meh. it so sucks to get /sdcard erased on a userdata wipe on the galaxy nexus. Aug 30 10:40:53 wrenny: do it ! Aug 30 10:41:01 wrenny: it's unlikely that web2py kills 4G Aug 30 10:41:07 eloborate Aug 30 10:41:19 many reports thus Aug 30 10:41:22 web2py is only for 2g Aug 30 10:41:32 web4p4 would be for 4g Aug 30 10:41:57 but it doesn't work with py3k Aug 30 10:42:12 i think django has experimental py3k Aug 30 10:42:18 my device currenty says ver. 404 Aug 30 10:42:31 t-mo GS3 Aug 30 10:42:32 wrenny: omg it's not found ! Aug 30 10:42:36 because, ur firmware not found ur version Aug 30 10:42:44 huh Aug 30 10:42:53 usa Aug 30 10:43:16 not found what Aug 30 10:43:23 wrenny: you know this is -dev, right? Aug 30 10:43:49 yes, but what means the 'dev'? :) Aug 30 10:44:03 "Android application development!" Aug 30 10:44:04 so what am I asking wrong Aug 30 10:44:15 just asking Aug 30 10:44:29 wrenny: your question not related to development Aug 30 10:44:47 maybe if anyone owns the T-mo device and has doen the update Aug 30 10:45:09 and you want to ask if it affects the device as a development test platform? Aug 30 10:45:19 no just as a whole Aug 30 10:45:38 Hmmm... web2py demo seems to fall into infinite recursive redirects. Aug 30 10:45:38 so we can speak about lunch, maybe others have lunch time too Aug 30 10:45:47 i just had lunch Aug 30 10:45:50 since nobody knows crap in any other android channel in freenode Aug 30 10:46:11 i only have an afternoon of work left before my 2 weeks off Aug 30 10:46:12 yay! Aug 30 10:46:43 Snuffel: so you have an afternoon to do 2 weeks worth of work :P Aug 30 10:46:57 g00s: kind of Aug 30 10:47:56 so u can take a rest, and do ur work in last hour Aug 30 10:48:25 I'm having a hard time figuring out what to put in my Fragment class and what to put in my Activity class, is there a tutorial abot that? Aug 30 10:53:01 kevwilde: the idea is that activity is different based on device screen size, but the fragments are reused Aug 30 10:53:53 kevwilde: so fragments show something, display pieces of the UI, and call to the activity to let it know what user is doing. The activity orchestrates the fragments and decides which ones are visible or how the display changes based on the fragment's report on user interaction Aug 30 10:56:13 so if i am understanding it correct, if i have a LoginFragment and a LoginActivity, the Activity just loads the fragment and the fragment does all the login stuff and creates the dialogs ? Aug 30 10:56:28 like a 'processing dialog' when the user clicked 'sign in' Aug 30 10:57:40 kevwilde: to unravel the puzzle you have to think about how it should look like to users of different screen sizes. If your answer is "it doesn't change" then it doesn't truly matter how you do the work, or even if you used no fragments at all, I suppose. Aug 30 10:58:17 oh okaym thanks for that tip! Aug 30 10:58:23 but fragments are a solution to supporting multiple screen sizes by reusing chunks of the display code, and that is their prime reason for existence Aug 30 10:59:07 a typical example has a panel on left hand side with list and when users chooses a value from list, on right hand side the item itself appears. This is appropriate UI for tablet, but for a phone the click on item replaces the panel and shows the detail in narrower whole-screen view Aug 30 10:59:46 there would be a tabletactivity and phoneactivity that both receive clicks from the "left-hand panel" fragment, but how they manipulate the UI is different Aug 30 11:00:48 and in fact on phone there is no left-hand side panel, the list already takes the whole screen Aug 30 11:01:28 ok, so if the fragment is assuming something that is visible, i should put it in the activity instead Aug 30 11:02:01 sort of ... the fragment only takes care of what is inside itself, all fragment-to-fragment cooperation would have to occur via activity Aug 30 11:02:05 also fragments can not nest Aug 30 11:03:29 so yeah in your case, if you do login fragment, and show a progress dialog or something, I'd actually ask the activity to handle the mechanics of the login, and to show a dialogfragment or something such on top of the existing loginfragment Aug 30 11:04:32 simply put "keep the fragment dumb" ? Aug 30 11:04:52 * alankila shrugs Aug 30 11:05:05 it's a possibility. I'm not sure of the optimum design. Aug 30 11:06:11 android has so much busywork and complexity to it in general -- sort of too much "air" in the design. I'm not sure personally what is the right way to do things. Aug 30 11:06:30 so I fall back on the usual answer which is that there is no style points. Whatever works is good. Aug 30 11:06:42 how big programming task is programming camera in android? Just simple picture. Aug 30 11:06:52 pity there is no real consensus about it Aug 30 11:07:01 tneva82_: something like 80 lines of code IIRC, to open the camera, display the preview window, and take a picture Aug 30 11:07:23 tneva82_: most of the complexity is around the preview window. Aug 30 11:08:02 Hmm wait no, I misrecall. Aug 30 11:08:32 linecount in my case is with the various camera-related callbacks. I guess I managed to simplify the preview window a lot Aug 30 11:09:32 ok Aug 30 11:09:40 that's good to hear Aug 30 11:09:58 boss is funny. He keeps adding new features faster than I can manage to do previous ones :D Aug 30 11:10:07 good if at least this one isn't that big job Aug 30 11:10:50 anyone used cordovawebview in a fragment before? Aug 30 11:13:05 my experience with the camera activity was that I had to force it in portrait orientation to get landscape to look reasonable -- if the device shows landscape window, and the camera view is also rotated because it captures naturally in landscape, then it rotates 90 degrees extra Aug 30 11:13:15 then I had aspect ratio issues that I did not feel like solving Aug 30 11:13:59 also keeping the thing reliable was hard -- for instance shifting from and to the camera activity seemed likely to give me nullpointerexceptions here or there. In the end I managed but not without struggle Aug 30 11:14:36 It shouldn't be that hard, but whatever the cause, it was Aug 30 11:16:18 I guess the major problem was with shutting the camera down cleanly. to show the preview, you must have camera open, then the surfaceholder's callback on the preview surfaceview fires, and you tell the camera to use that surfaceholder as the preview Aug 30 11:16:31 I guess I should have been more careful somehow about when exactly these callbacks can fire Aug 30 11:17:50 interesting bit about mqtt, if you're into the IoT stuff http://www.readwriteweb.com/archives/facebooks-updated-iphone-app-aids-internet-of-things.php Aug 30 11:18:11 i might use the java lib in an android project Aug 30 11:19:10 This is the first time I hear the phrase 'internet of things' Aug 30 11:34:08 ok, starting with 4.1, apps can no longer access "logcat -b radio" Aug 30 11:34:47 now I wonder if I should file a bugreport on android. Aug 30 12:03:21 im having trouble implementing onCreateOptionsMenu in my fragment. Im using actionbarsherlock and using min api level 7. If I import the actionsherlockbar view i cant override onCreateOptionsMenu Aug 30 12:14:25 <_TheFred> hello Aug 30 12:14:36 hiya Aug 30 12:16:27 eSatsu: you have to make sure you get your imports right (importing android classes vs ABS classes) Aug 30 12:40:01 hello guys, I've just started my first app and I have some doubts; I'm developing a service that should start after boot is completed. This service will have no UI at all and just run in the background, but, correct me if I'm wrong, the startService() call must be put in a class extending Activity, right? Aug 30 12:40:30 hello Aug 30 12:40:43 ertl, just try it out and see Aug 30 12:41:10 ertl: how do you plan to run your Service after boot? Aug 30 12:41:46 The_Fred: I tried, it starts on boot successfully but then the user have to minimize the app .. I'd like to have nothing on screen for this service Aug 30 12:42:06 Leeds: sorry, what do you mean exactly? Aug 30 12:42:22 Heya... this might be the wrong place to ask this, but I suppose someone might know the solution Aug 30 12:42:23 Leeds: I have a timer object to run some code every 60 seconds Aug 30 12:42:39 and how do you start the timer? Aug 30 12:43:05 if I have a base64 encoded image data and just dump it into a file called image.jpg, will that actually be that image? Aug 30 12:43:27 It's a stupid question, but bear with me please, it's been a long day... Aug 30 12:43:28 Leeds: I have a class extending Service Aug 30 12:43:48 how do you start the bloody Service? Aug 30 12:44:11 Wiith BroadcastReceiver? Aug 30 12:44:13 bloody services? Aug 30 12:44:28 oh yeah, with BroadcastReceiver, sorry! Aug 30 12:44:48 and what does your BroadcastReceiver do? Aug 30 12:45:24 I'm trying to get you to explain how you are starting your app at boot time, such that it has to be 'minimised' Aug 30 12:45:41 Leeds: public void onReceive(Context context, Intent intent) { Intent serviceIntent = new Intent(ServizioBackground.class.getName()); context.startService(serviceIntent); Aug 30 12:45:55 ertl, your original question was about using startService()? Aug 30 12:45:56 and how does that start an Activity? Aug 30 12:47:12 ertl: BroadcastReceiver which starts a service is a very normal technique - not sure how that results in anything needing to be minimiserd Aug 30 12:47:54 Tee_Pee: It is not the image data, but Base64 encoded string and when dumped in file it is not an image file. Aug 30 12:47:58 no - he want to hide his activity and let his service run in the bakground Aug 30 12:48:18 The_Fred: exactly! Aug 30 12:48:24 The_Fred: yes, but I'm trying to work out why he's even starting the Activity Aug 30 12:48:27 hi all Aug 30 12:48:30 But there should be no activity if one is not started. Aug 30 12:48:40 Leeds, because he doesnt want to? Aug 30 12:49:05 ah, he's starting it because he doesn't want to? that makes much sense Aug 30 12:49:07 jKKr, +1 Aug 30 12:49:16 my edittext and button at the bottom are getting hidden by the softkeyboard Aug 30 12:49:25 i have tried windowsoftinputmode Aug 30 12:49:33 but nothing seems to work out Aug 30 12:50:03 sunny_slls, put our layout into a scrollview and it should roll up when the soft KB is shown... Aug 30 12:50:03 ertl: why are you starting your Activity if you don't want to? Aug 30 12:50:09 on launching the soft keyboard only half of the editext window is shown Aug 30 12:50:23 wait guys ... I'll explain better. I want to run the Service without any UI or Activity, but I read (but maybe it's not true, I'm here asking it) that the StartService call should be included into an Activity Aug 30 12:50:24 The_Fred: its in the scrollview itself Aug 30 12:50:36 aha - i dont know then Aug 30 12:50:46 ertl: no, you just call startService from the BroadcastReceiver Aug 30 12:51:06 Leeds: so I can remove the activity part even from the Manifest? Aug 30 12:51:07 Leeds: can you please help me out Aug 30 12:51:29 ertl: sure, if you don't want your app to be launchable or have any UI at all... wtf? Aug 30 12:51:40 Leeds: cool, thanks Aug 30 12:51:48 The_Fred: thanks to you, too :) Aug 30 12:51:57 ertl, np Aug 30 12:53:10 Leeds: can you help me out please Aug 30 12:53:56 ertl: um, do you actually want your app to have no UI at all, not be launchable, etc? I was joking... Aug 30 12:55:45 Leeds: I have a section with receiver and this action android:name="android.intent.action.BOOT_COMPLETED"> inside Manifest, it's not OK? Aug 30 12:56:36 ertl: it's fine... and that will run at boot time Aug 30 12:56:49 do you want your app to have any front-end at all? Aug 30 12:57:07 Leeds: it's what I need, started automatically at boot time, without any front-end Aug 30 12:57:15 what does your app do? Aug 30 12:57:52 Leeds: we'd like to use it to get GPS coords and send them to our server in a JSON format, to store them in a mysql db Aug 30 12:58:05 ah, so this isn't a public app? Aug 30 12:58:22 Leeds: nope Aug 30 12:58:31 ok Aug 30 12:58:47 depending on how often you run it, it'll kill your battery... just so you know Aug 30 13:00:07 Leeds: I know, but the tablets will always be on charge I think ... they'll be given to trucks drivers to monitor them Aug 30 13:00:17 fair enough :) Aug 30 13:00:56 personally, I'd still want a way to disable it, but it's your app Aug 30 13:01:30 frankly, if I were ertl I'd want to try to find ways to not disable it, so that drivers don't end up "cheating" and then blame the tablet. Aug 30 13:01:42 Leeds: a second question, if I can ... what should I do to respawn automatically the service if it crashes? well OK, they can turn off and on the tablet Aug 30 13:01:47 lov: exactly Aug 30 13:01:57 lov: put a password on it, whatever Aug 30 13:02:10 on what, the force close button? Aug 30 13:02:37 lov: simple UI with big on/off swich Aug 30 13:02:39 switch! Aug 30 13:02:41 heh Aug 30 13:02:57 ertl: how often will you push data? Aug 30 13:03:23 Leeds: let's say every 60 seconds, still not sure about it Aug 30 13:04:15 for a longer gap, you should definitely be using AlarmManager Aug 30 13:04:21 Hi! :) I've two layouts, one for the login and another to register a new user on a website but I want to create a flip 3d animation when the user clicks in the "New user? Register now!". What's the easiest/best way to achieve that? :S Aug 30 13:05:37 fragments, though i don't know about the animation bit specifically Aug 30 13:08:16 wongk: Can this lib https://code.google.com/p/android-3d-flip-view-transition/ flip layouts? Aug 30 13:09:30 i don't know, i didn't write it Aug 30 13:09:44 lol Aug 30 13:15:40 hey guys... i'm using SpannableStringBuilder to insert images and links to a TextView. i want the user to be able to copy the contents of this textview and paste it somewhere else in my app. what's the best way to serialize it and deserialize it back? Aug 30 13:17:24 maybe html, it looks easy Aug 30 13:52:22 oh, come on, Android... why is this app running out of memory when I'm null'ing everything and forcing GC... Aug 30 13:53:03 the only difference is that instead of saving a byte[] with raw JPEG data to a file and then loading it back later with BitmapFactory, I'm keeping the byte[] around temporarily and loading it with BitmapFactory via a different method Aug 30 13:54:01 Hi All, how would I go about finding the values to use to generate a new AVD config? Specifically I am interest in the layout values of the phone. If I have short term access to one is it possible to write a program I can run on the phone to get the values? Aug 30 13:54:11 but decodeByteArray is giving the OutOfMemoryError now Aug 30 13:55:29 why the hell does the email program on my android device think that the network is not available? Aug 30 13:55:46 and only when started from an intent.. Aug 30 13:55:54 ACTION_SEND that is Aug 30 13:56:51 from the email program itself i can send emails however i want.. Aug 30 13:57:44 erm, actually my bad :D Aug 30 13:57:50 the mail server for that one account is down.. Aug 30 13:57:51 gnah Aug 30 13:57:56 heh Aug 30 13:58:17 but hey, no the "network is not available" is only vaguely correct as an error message in that case.. Aug 30 14:06:24 for EditText how do you get the drawable like how twitter has it? Aug 30 14:07:41 the ediittext has about 8 or 12 9-patches Aug 30 14:10:11 gaaah, "Unable to start activity ComponentInfo" when I rotate the screen in one activity... NPE for some reason Aug 30 14:11:07 there's a line number Hodapp Aug 30 14:11:13 that should help you Aug 30 14:12:07 not particularly, when it's buried in not-my-code Aug 30 14:12:25 ComponentInfo isn't yours? Aug 30 14:13:16 um, no Aug 30 14:16:43 good morning everyone :) Aug 30 14:16:52 Hodapp: look for a nice fat "caused by" in that stacktrace Aug 30 14:17:03 there's usually a root cause which is your fault Aug 30 14:17:08 lov, deja'vu lol Aug 30 14:30:57 http://pastebin.com/UsztyKCy i cant overwrite onCreateOptionsMenu in my fragment for some reason, heres my list of imports Aug 30 14:31:02 i cant seem to figure this out Aug 30 14:31:53 if i rightclick and go source - override Aug 30 14:32:10 err overwrite --> override Aug 30 14:33:18 You need to extend SherlockFragment Aug 30 14:33:19 ill get the method with the right imports.....using android.view.menuitem, but the calls i need require lvl 11 api there Aug 30 14:34:32 oh Aug 30 14:34:36 thanks Aug 30 14:36:39 Trying to retreive an InputStreamReader(char[] buff) I get ioException in FutureTask$Sync.class so I don't see any stacktrace Aug 30 14:37:08 http://pastebin.com/T8WFQizB here is a pastebin of my class Aug 30 14:39:39 please :( Aug 30 14:41:33 teb_: debug Aug 30 14:42:07 also, have you add the permission for internet access ? Aug 30 14:42:17 yes, I have Aug 30 14:42:22 oh, there it is, a RED exception Aug 30 14:42:47 a red exception... Aug 30 14:42:49 ok Aug 30 14:43:00 it's an uncaught exception .. imma pastebin it Aug 30 14:43:04 Heya folks - any reason why my app would hang on BitmapFactory.decodeStream()? I get the file successfully with myF=new File(path), and send it off to decodeStream(new FileInputStream(myF)) Aug 30 14:43:17 However, the line after the decodeStream never happens Aug 30 14:43:18 http://pastebin.com/jKrPw8ak Aug 30 14:43:43 http://stackoverflow.com/questions/12199469/split-actionbar-same-size-withtext Aug 30 14:43:50 teb_: MainActivity.java:81 Aug 30 14:43:52 NPE Aug 30 14:45:06 nullpointer? Aug 30 14:46:20 hi, I am trying to play http stream in my app ... I am doing it on standard m3u8 urls, but I want to use php file that returns same content, but that case does not works I think problem is the content type header, can anyone help me with this? Aug 30 14:46:41 teb_: yes... Aug 30 14:50:00 alright so... I can't open a fileinputstream Aug 30 14:50:08 how can i make the menuitems in the split actionbar in the same size? Aug 30 14:56:52 how can i make the menuitems in the split actionbar in the same size? Aug 30 14:57:36 No need to repeat yourself.. Aug 30 14:57:39 Also, what? Aug 30 15:01:57 SimonVT i have the split actionbar Aug 30 15:02:16 I'm with you that far Aug 30 15:02:35 So... I'm at a loss. Aug 30 15:02:47 My code just hangs on fs=new BufferedInputStream(new FileInputStream(original)); Aug 30 15:02:54 SimonVT but my bottom menuitems havent the same size (in width) Aug 30 15:02:58 how can i make that? Aug 30 15:03:05 original is a File object which I know exists because I log original.getName() earlier. Aug 30 15:03:21 Nothing after the inputstream line gets executed. Aug 30 15:03:57 Did you give them an icon? Aug 30 15:04:48 no. all have only text Aug 30 15:05:02 Then you can't Aug 30 15:05:22 Also, you should always give them an icon Aug 30 15:05:25 it isnt posible to have the same width with text? Aug 30 15:05:52 when all have a icon i can do that? how? Aug 30 15:06:13 You have no control over the size of the menu items Aug 30 15:06:21 if they have an icon, only the icon is shown Aug 30 15:06:22 Always Aug 30 15:06:31 And since all icons are the same size, so are your menu items Aug 30 15:06:35 and then all the icons have the same size? Aug 30 15:06:45 bad ... thank you Aug 30 15:06:53 With text, just make sure all your text is the same size Aug 30 15:06:56 Add some extra spaces Aug 30 15:06:59 Misspell a few words Aug 30 15:07:02 You'll get there Aug 30 15:07:50 Hi everybody Aug 30 15:08:01 Hi Dr. Nick! Aug 30 15:08:23 Is it possible to open a native android view from a web view? and.. also pass data to it? Aug 30 15:08:28 :) Aug 30 15:11:05 you can pass data to and from a WebView using javascript interfaces Aug 30 15:11:31 http://developer.android.com/guide/webapps/webview.html Aug 30 15:11:39 Are there any restrictions to either FileInputStream or BitmapFactory.decodeFile? Aug 30 15:11:52 are some directories restricted? Aug 30 15:11:59 My app just hangs on either one of those two lines Aug 30 15:12:04 I know that the file exists Aug 30 15:14:13 JakeWharton, that looks cool way to do it. On iOS it doesnt seem as easy Aug 30 15:14:46 you have to open it like customprotocol://params/go/here Aug 30 15:14:49 or something Aug 30 15:14:51 Tee_Pee: do you have permission to read from wherever you're reading from? Aug 30 15:15:05 thomas`-: that's correct Aug 30 15:16:04 http://androidrises.blogspot.com/ says that the back button or finish() cause onPause(), onStop(), onDestroy() to be called in an Activity Aug 30 15:16:11 is there anything uniquely called with just the back button? Aug 30 15:16:31 JakeWharton - Currently my app has blanket permissions to essentially do everything... Just to be sure I am gonna try a different path, from the apps own cache directory to which I've written and read from before. Aug 30 15:16:46 nope, still same thing. Aug 30 15:16:54 Hodapp: onBackPressed() Aug 30 15:17:00 oh, derp Aug 30 15:17:28 JakeWharton, but i think i see an advantage to the iOS method because if a user opens my site in the inbuilt browser (not lauched by my app), and they come to the code that binds the javascript to Android, it will not know where to find it? Aug 30 15:17:41 just to make sure - if new File(somepath) can't actually find and load the file, I won't be able to do stuff like .getName() or getAbsolutePath(), right? Aug 30 15:18:08 thomas`-: in Android you add an intent filter so that when they navigate to the site it opens your app Aug 30 15:20:23 JakeWharton, thats pretty neat. thanks! Aug 30 15:20:53 Tee_Pee: the File class doesn't actually do any sort of loading; it's just a wrapper around the file path. Aug 30 15:21:16 Tee_Pee: you should generally call .exists() and .canRead() to determine if the file is even available and usable. Aug 30 15:21:36 I just realized that. Looks like my file lookup is wrong, the path doesn't match. I believed that it managed to resolve the file since it managed to get its name, path etc. Aug 30 15:21:37 if you create a new File() instance pointing to a file that doesn't yet exist, or a file that you don't have read permission to, nothing will go wrong. Aug 30 15:22:04 that being said Aug 30 15:22:25 the path to my file is /mnt/sdcard/blabla Aug 30 15:22:38 Do I pass that to new File(), or without the starting / ? Aug 30 15:23:29 actually, the string passed to the function looks like file:///mnt/sdcard/Android/data/com.content.pycsell_mobile/cache/PycsellMobile/album_105/images_410_bprf5s6t_view.jpg Aug 30 15:23:37 How far do I have to trim it? Aug 30 15:38:03 I wish people would do a better job of keeping maven repos up to date with android libraries Aug 30 15:40:26 why don't you do it Aug 30 15:42:32 because damned if I know how to or whatnot Aug 30 15:42:54 and for that matter, if some arbitrary person can update central mvn repos, I can't really trust using it Aug 30 15:43:29 well then complaining about it is useless Aug 30 15:43:43 and yes, it's done by a normal person Aug 30 15:44:34 install them locally or deploy to your own nexus Aug 30 15:44:40 takes 30 seconds and you can "trust" it Aug 30 15:45:56 presumably projects own their own public... repo entry? Aug 30 15:47:28 They do Aug 30 15:47:43 But you can get permissions to other groupIds Aug 30 15:47:57 I maintain the com.google.android:support-v4 artifact and I certainly don't work at Google Aug 30 15:48:35 yet ;) Aug 30 15:50:09 but the point is that I can't just publish a new version of that tag (artifact?) and have people automatically pick it up Aug 30 15:50:32 right Aug 30 15:51:13 which is what it sounds like pfn was scared of Aug 30 15:51:22 when doing restapi stuff using a sync adapter, should I be doing the actualy rest calls in another thread or via a service, or can I (theoretically) inline them directly in onPerformSync? Aug 30 15:53:38 hitting Ctrl-End to go to the end of a manifest XML document in Eclipse... failed. Aug 30 15:53:52 Eclipse brought me up an error and everything. Aug 30 15:54:14 '"Text End" did not complete normally. Please see the log for more information.' Aug 30 15:54:31 buggy piece of shit. Aug 30 15:55:52 why do i keep getting banned from #android all of a sudden Aug 30 15:55:59 i dont even talk in that channel, i just restarted my mirc Aug 30 15:56:16 cant find a youve been kicked quote in any of the logs Aug 30 15:56:44 Konigsberg7: you identified to nickserv? Aug 30 15:56:48 yeah Aug 30 15:56:59 otherwise he couldn't talk in here :P Aug 30 15:57:14 oh well Aug 30 15:57:51 i'm trying to animate the addition of an item to a LinearLayout column Aug 30 15:57:58 is this possible on API level 10? Aug 30 15:58:27 Konigsberg7: you were in #android until 10 minutes ago... Aug 30 15:58:48 yeah Aug 30 15:58:50 i restarted Aug 30 15:58:57 well i was installing a new vbox so i got disconnected Aug 30 16:05:18 fucking android Aug 30 16:05:32 how can i theme a dialogfragment (using the compat api) Aug 30 16:06:57 there's a setStyle on the dialogfragment Aug 30 16:07:24 got it sat in my onCreate, doesn't seem to be doing anything Aug 30 16:09:22 doesn't work on ~api9 at least Aug 30 16:09:28 hmm... got a report of the market being blocked in China... Aug 30 16:10:12 so are animations just simply not worth it on API 10? Aug 30 16:10:25 hmm... wait Aug 30 16:10:27 ?? Aug 30 16:10:31 nvm Aug 30 16:10:33 i'm dumb Aug 30 16:10:43 i could just detect API level and animate accordingly Aug 30 16:11:39 Leeds: communism is good for you, embrace it Aug 30 16:22:50 so i'm getting a lot of skipped frames from the Choreographer Aug 30 16:23:04 is there a way to profile my code so I can figure out where I'm being a shitty coder? Aug 30 16:23:29 too many people think amazon appstore == kindle fire Aug 30 16:23:37 fuck Aug 30 16:23:45 HorizonXP: yes Aug 30 16:23:47 watch the i/o talks Aug 30 16:23:54 how do people get an online marketplace and a physical devivce confuseD? Aug 30 16:23:54 So I am having some real problems getting an AuthenticationService to be called by my AccountManager Aug 30 16:23:59 Could someone help me troubleshoot this? Aug 30 16:24:06 canadiancow: 2012? Aug 30 16:24:09 yea Aug 30 16:24:17 wongk, i mean they think that appstore is only on fire Aug 30 16:24:18 or something Aug 30 16:24:27 i buy that Aug 30 16:24:29 Cuz it seems like no one understands these authenticator workflows. Even the sample apps are sorta sparse on details. Aug 30 16:24:29 like they dont understand the need to test amazon iap on non-kindles Aug 30 16:24:45 or the fact that we shouldnt just be testing 7 inch devices now Aug 30 16:24:46 I start by saying Aug 30 16:24:47 accountManager.getAccountsByType(AuthenticationConstants.ACCOUNT_TYPE); Aug 30 16:24:51 And if I find no accounts Aug 30 16:24:59 I call accountManager.addAccount Aug 30 16:25:13 But I do this and my Authentication service never wakes up or is called Aug 30 16:25:20 I've made sure to add an authenticator xml Aug 30 16:25:46 KirinDave: i've never handled the service piece of it, but i've seen a few walkthroughs on the subject Aug 30 16:25:46 and made sure that the service is registered, exported, and responds to android.accounts.AccountAuthenticator Aug 30 16:26:08 have you been through those? Aug 30 16:26:24 Which ones? Aug 30 16:26:34 id' have to find them again Aug 30 16:26:35 The stuff on the android dev site is ludicrously obtuse. Aug 30 16:26:49 wongk: Well I dunno if I have been through the ones you saw. In general detail on this subject seems very sparse. Aug 30 16:26:58 Even the sample apps in the adk are like 3/4 null methods. Aug 30 16:27:45 here's one: http://www.finalconcept.com.au/article/view/android-account-manager-step-by-step-1 Aug 30 16:29:03 I'll give it a whirl, thanks. Aug 30 16:30:50 I did all that, wongk Aug 30 16:30:57 But what's frustrating is that it's very unclear how to actually use that. Aug 30 16:31:14 Is it expected that when I call AccountManager.addAccount that nothing happens? Is there any way I can troubleshoot it? Aug 30 16:31:46 well, i would suspect the authenticator service isn't called until you call getAuthToken or whetever Aug 30 16:31:51 08-30 09:30:39.371: D/AccountManagerService(355): bind attempt failed for Session: expectLaunch false, connected false, stats (0/0/0), lifetime 0.0, addAccount, accountType com.virtuoussoftware.apptly, requiredFeatures Aug 30 16:31:53 Interesting Aug 30 16:32:01 I wonder why that is Aug 30 16:35:16 Hummmm Aug 30 16:47:46 We received this error from ACRA (http://pastie.org/4617403), we have a single custom dimension that is mapped in the xml as @dimens/foo_width. Is the only solution to inline the value? It hasn't appeared on other devices we've tested on. Aug 30 16:51:11 First you'd have to check it's actually your dimension it's trying to read Aug 30 16:52:00 SimonVT: it error's inflating our custom ListView, so I'm pretty sure it's that. Aug 30 16:52:32 The custom ListView is what contains the @dimens value. Aug 30 16:52:43 Man I am so goddamn confused. Are the docs just wrong? Aug 30 16:53:05 So in Aug 30 16:53:06 http://developer.android.com/reference/android/accounts/AccountManager.html#addAccount(java.lang.String, java.lang.String, java.lang.String[], android.os.Bundle, android.app.Activity, android.accounts.AccountManagerCallback, android.os.Handler) Aug 30 16:53:28 It implies that I am supposed to launch an Activity? Aug 30 16:53:47 But in all the sample code, people return a Bundle returning a KEY_INTENT. Aug 30 16:53:55 And doing this doesn't call the KEY_INTENT. Aug 30 16:54:13 So I'm supposed to execute the future and get the bundle I sent back and check for a KEY_INTENT? Aug 30 16:54:27 But it warns me stridently that I am never, EVER to run that future in the main thread. Aug 30 16:54:38 So where DO I run it? Aug 30 16:54:44 in separate thread? Aug 30 16:54:59 p_l: But all it can ever do is call startActivityForResult. Aug 30 16:55:07 Which is going to go back to the main thread. Aug 30 16:55:10 So… why? Aug 30 16:55:28 KirinDave: so you won't block the main thread while waiting for the future? Aug 30 16:55:48 hrnt: But the future for addCount explicitly just constructs an intent? Aug 30 16:55:53 KirinDave: "main" thread is actually "UI thread". Its task is processing events from system Aug 30 16:55:55 It should take basically no time. Aug 30 16:56:12 And the result of that call is actually async. Aug 30 16:56:32 So you don't wait for the service to return (which could take awhile if it crashed and needs to be restarted or something) Aug 30 16:56:41 So like I suspect maybe this is a case of doc copypasta? Aug 30 16:57:27 I can see why things like getAuthToken are done off-thread. Aug 30 16:57:29 KirinDave: according to the docs the future might involve network connection Aug 30 16:57:49 p_l: It's hard to imagine what account adding scheme might do that. Aug 30 16:57:50 so you get the future, then execute it in separate thread (whether AsyncTask or whatever) Aug 30 16:57:58 KirinDave: one that contacts an authenticator) Aug 30 16:58:04 yeah Aug 30 16:58:06 But Aug 30 16:58:12 SimonVT: any ideas around the cause of TypeArray..getDimensionPixelSize failing on certain devices? Aug 30 16:58:33 p_l: I wonder if this is maybe something you can ignore if you're just going to be calling a KEY_INTENT anyways. Aug 30 16:59:05 KirinDave: note that it can throw IOException - that's a pretty good sign that it does blocking operations on possibly unavailable/slow resources Aug 30 16:59:31 p_l: Well, as far as I can tell it does nothing at all except what my service tells it to do. Aug 30 16:59:32 also, note that exact behaviour depends on type of account and thus authenticator Aug 30 16:59:36 Yeah Aug 30 16:59:48 KirinDave: won't it need to launch the Application that hosts the authenticator to create the intent? Aug 30 16:59:51 KirinDave: yeah, but I don't know if it's not blacklisted for strict mode Aug 30 16:59:59 hrnt: Not from within the app itself. Aug 30 17:00:11 still, the way the service might be called might be blocking Aug 30 17:00:23 the only correct info is in source on that Aug 30 17:00:28 yeah. Aug 30 17:00:35 and you really, really don't want to stop message processing loop Aug 30 17:00:40 No I get that Aug 30 17:00:59 KirinDave: what do you mean? Aug 30 17:01:19 KirinDave: if the account provider has implemented a AbstractAccountAuthenticator, how can you create one without creating an instance of Application? Aug 30 17:01:22 okay, apparently AccountManagerFuture is explicitly described as blocking interface Aug 30 17:01:23 hrnt: Oh, I am within the app going, "Do you know about any accounts for this service? If not, let's make one." Aug 30 17:01:34 hrnt: In that I am already within the app calling it. Aug 30 17:02:01 p_l: So the account authenticator activites occur within a different context, perhaps? Aug 30 17:02:04 KirinDave: let's say you are creating a custom client that uses google accounts to authenticate Aug 30 17:02:05 p_l: That'd make sense then. Aug 30 17:02:08 hrnt: No. Aug 30 17:02:17 hrnt: Iet's say I'm doing what I am doing. Aug 30 17:02:29 KirinDave: let's not, because the same API has to work for the worst case scenario as well Aug 30 17:02:47 which is when the account authenticator is implemented by a separate party Aug 30 17:03:12 hrnt: But the whole point of addAccount is to return a KEY_INTENT in most every scenario. Aug 30 17:03:37 KirinDave: ok, and to get that KEY_INTENT you need to launch the Application that provides the Authenticator for that account type Aug 30 17:03:39 I can sort of see though why people don't use this interface. Aug 30 17:03:56 hrnt: So what about the case where you are in the application trying to use your authentication service? Aug 30 17:04:12 KirinDave: well, obviously you would get the KEY_INTENT back very fast Aug 30 17:04:13 hrnt: Should I just NOT use the AccountManager in this case? Aug 30 17:04:27 Right. Aug 30 17:04:42 In fact i wouldn't be exporting this service if the interface didn't force me to. Aug 30 17:04:52 I have 0 expectations of anyone outside of my app calling it. Aug 30 17:04:59 the android is built on the idea that you can link basically anything together Aug 30 17:05:05 one app can call an Activity of another app Aug 30 17:05:16 you can access the data of other apps (with ContentResolver) and stuff like that Aug 30 17:05:23 Well that's fine. Aug 30 17:05:26 so the idea that you can use accounts provided by other apps fits Aug 30 17:05:30 But I suspect I should maybe try unexporting my authentication service Aug 30 17:05:36 Since it only makes sense to use within the context of my applicaiton Aug 30 17:05:43 App.net is not a third party identity provider at this time. Aug 30 17:05:52 well, you don't need to use accountmanager in that case Aug 30 17:05:56 I do Aug 30 17:05:59 For syncadapters Aug 30 17:06:04 well, there you go Aug 30 17:06:04 :) Aug 30 17:06:11 Right Aug 30 17:06:15 But if all that is internal to my app Aug 30 17:06:18 then I don't need to export it, right? Aug 30 17:06:29 I just export my content resolvers for other apps and say, "Let me worry about auth, you guys." Aug 30 17:07:23 by exporting, do you mean declaring it in the manifest? Aug 30 17:07:57 "android:exported="true"" Aug 30 17:08:00 In the manifest Aug 30 17:08:04 Every service has to be in the manifest either way Aug 30 17:08:10 Just if you expose it to third parties. Aug 30 17:09:06 exported=true is default if you have intent filters Aug 30 17:09:28 and note that android itself uses your authenticator if you go to settings/accounts and sync Aug 30 17:09:42 Yeah. Aug 30 17:09:51 Well I will let other services worry about async calls. Aug 30 17:09:59 I don't need to. Aug 30 17:10:01 Internally Aug 30 17:10:07 are you sure? Aug 30 17:10:17 you mean you would touch the future in the UI thread? Aug 30 17:10:21 Yes. Aug 30 17:10:24 I sort of have to. Aug 30 17:10:27 ok, it might work Aug 30 17:10:30 There is literally no path forward for the app. Aug 30 17:10:34 Well I am about to find out Aug 30 17:10:36 ...or android might throw an exception "no touching futures in the UI thread!" Aug 30 17:10:39 And my patience for java is limited. Aug 30 17:10:55 NetworkOnMainThreadException style :) Aug 30 17:10:57 Really do hope rhickey gets a performant version of clojure. Aug 30 17:11:05 hrnt: Well for this the code is just next door. Aug 30 17:11:36 I'm already in anonymous class instances up to my next. Aug 30 17:11:38 err, neck Aug 30 17:21:36 Hmm Aug 30 17:21:41 I can see now how you might use fragments without UI. Aug 30 17:21:48 This authentication flow is perfect for an invisible fragment. Aug 30 17:22:03 That way you can get the current auth token if it's stored from any entry point. Aug 30 17:22:29 ugh, why is Eclipse destroying this SurfaceView object every single time I edit any of its properties in the Graphical Layout editor? Aug 30 17:23:05 can edit the XML just fine Aug 30 17:24:40 Hodapp: Because the eclipse tools are kinda janky? Aug 30 17:26:32 bleah Aug 30 17:26:54 I just want to touch the GUI without it exploding into shrapnel :( Aug 30 17:30:53 I have to slide a image in drawable in a imageview in loop. How can i do? some suggestion? Aug 30 17:31:32 In loop means without interruption...when the image ends, starts from the beginning Aug 30 17:34:11 Hi friends, Is there a way to replicate the animation in a tablelayout similar to iphone UItableviewRowAnimation ? Any sample code or pointers will be helpful Aug 30 17:53:00 can someone suggest me how can i do please? Aug 30 17:56:42 Ugh, weird. Aug 30 17:56:53 Once again, Stack Overflow lies. Aug 30 17:58:08 How does one catch and enable 302 redirects in a webview in 4.*? Aug 30 17:58:29 that should happen automatically Aug 30 17:58:58 Well it's saying 'may have moved permanently' Aug 30 17:59:03 It seems like it used to work Aug 30 17:59:03 b Aug 30 17:59:07 but now is failing Aug 30 17:59:12 And I dunno what I did wrong... Aug 30 17:59:29 heh Aug 30 17:59:50 It seems like all I changed in this code was getting the cookie sync manager. Aug 30 18:00:15 It says 'may be down or may have moved permanently to a new address' Aug 30 18:00:22 And when I curl the url Aug 30 18:00:28 it shows me a 302. Aug 30 18:00:37 Not sure how to pursue debugging. Aug 30 18:00:51 shouldOverrideUrlLoading in web client is never called tho. Aug 30 18:00:53 Which is irritating Aug 30 18:05:26 Wow is this an actual bug? Aug 30 18:05:33 I can see it try to load my page twice Aug 30 18:05:38 Like it is trying to follow the redirect Aug 30 18:05:42 but it uses my original loadUrl url Aug 30 18:05:58 I can even reproduce it with google.com Aug 30 18:06:07 It says google.com is unavailable because it's trying to redirect to www. Aug 30 18:10:32 I'm trying to use android.hardware.usb.* to communicate with an USB note taker (kind of mouse/tablet). When I connect the device I see that the kernel can see it and logcat spits some messages about a "mouse" and a "/dev/input". However UsbManager always reports an empty device list. Any clue? Aug 30 18:14:10 Man…. I have somehow really broken WebView. Aug 30 18:14:15 And all the stackoverflows are wrong. Aug 30 18:33:15 jelly bean is old news, when is key lime pie coming out :) Aug 30 18:34:14 that name has been a rumour since before a name was decided Aug 30 18:34:20 not that im saying a name has been decided yet Aug 30 18:34:52 whatever it is called Aug 30 18:35:11 i want some 5.0 with your new apps Aug 30 18:35:20 my new apps? Aug 30 18:35:25 anyway if it follows previous years Aug 30 18:35:29 we'll get a holiday launch of a device Aug 30 18:35:33 with a new version of android Aug 30 18:35:53 unless they slow releases like rubin said Aug 30 18:36:40 they already slowed them Aug 30 18:36:47 cupcake donut eclair were all 2009 Aug 30 18:36:57 since then it's been two a year Aug 30 18:37:16 but if you look at the ICS/JB, we got a major bump 3->4 Aug 30 18:37:20 and a minor 4.0->4.1 Aug 30 18:37:27 JB didnt add much new stuff Aug 30 18:37:31 compared to past releases Aug 30 18:37:31 man, ill be happy to get rid of GB Aug 30 18:37:35 (not that it wasnt an awesome release) Aug 30 18:38:41 ive decided to use my g1 on its anniversary every year Aug 30 18:38:55 still rockin donut Aug 30 18:38:56 stentimental are we? :P Aug 30 18:39:13 i used it last week, its not bad Aug 30 18:39:44 no nfc, but besides that it is still a useful device Aug 30 18:39:48 if by not bad, you mean "like punching yourself in the face" Aug 30 18:41:08 by not bad i mean i could use it on a regular basis, it does almost everything a gnexus with jelly bean does, albeit much slower Aug 30 18:41:25 and smaller Aug 30 18:41:51 iphone users get by with small screens Aug 30 18:42:00 they swear by them Aug 30 18:42:20 i'm not an iphone user :P Aug 30 18:42:31 wish my ex girlfriend could have gotten by with a "small screen" Aug 30 18:42:34 and they arent the brighest of the bunch Aug 30 18:43:11 wongk: the gnexus has a small screen compared to a note Aug 30 18:43:20 speaking of which, i need to get my note back Aug 30 18:43:28 i don't consider the note a phone Aug 30 18:43:35 it's a phablet ;) Aug 30 18:44:30 i was actually asked if it was the new ipad mini Aug 30 18:44:35 i wanted to smack them Aug 30 18:44:40 note = best phone I've ever owned. Aug 30 18:45:52 i have to give that title to the one x Aug 30 18:50:24 has anyone had any problem with list view where the background image gets copied for every row? Aug 30 18:51:15 the background image in that layout gets copied into each row in the listview Aug 30 18:52:29 Nope, no issues with that Aug 30 18:52:42 what background image? Aug 30 18:52:48 the background image of a list item? Aug 30 18:53:20 greetings Aug 30 18:55:16 romainguy: the background image of my layout Aug 30 18:55:19 the activity Aug 30 18:55:23 I'm quite green in android programming, was hoping someone could give me a hand with the architecture of a project Aug 30 18:55:49 How did you set the background of your activity? Aug 30 18:55:52 it gets copied into each row of my list view as the row's background image, so it's making my rows very tall Aug 30 18:56:07 I set it in the relativelayout Aug 30 18:56:25 Srsly, pastebin some code Aug 30 18:56:36 one sec Aug 30 18:59:26 SimonVT: http://pastebin.com/YErx3tiC Aug 30 19:00:25 The list view worked fine at first when I set it to be full screen without background image Aug 30 19:00:29 paddingRight="690dp"??? Aug 30 19:01:02 birbeck: now I wanna add a background image, and also I don't want it to take up full screen, so I set paddings to compress it Aug 30 19:01:35 so I set up a relative layout to enclose the textview and listview Aug 30 19:01:39 with a background image Aug 30 19:01:51 so this is not a phone layout? Aug 30 19:02:13 also, padding is inside the element and you have fill_parent for the width Aug 30 19:02:29 anyhow, that shouldnt affect your background Aug 30 19:02:35 yes Aug 30 19:02:56 each row is supposed to be just one line of plain text Aug 30 19:03:13 now it contains the text AND the background image, which makes every row very tall Aug 30 19:03:29 are you using a custom adapter or view for your list items? Aug 30 19:03:40 no Aug 30 19:03:42 someone knows the 'rules' of how images are handles in the layout? for example: I set the src of an imagebutton and then a hardcoded height & width ( dp ) and it's scaled but also cut off , why is it cut off Aug 30 19:03:49 just extends ListActivity Aug 30 19:03:59 birbeck: http://stackoverflow.com/questions/4830351/android-listview-background-image-shows-on-each-row-why Aug 30 19:04:26 that question is exactly same as mine. I tried the proposed solution but doesn't work Aug 30 19:05:06 you are not doing setBackgroundResource() are you? Aug 30 19:05:10 The question is the same, but still no information.. The layout you pasted before shouldn Aug 30 19:05:18 t cause the background to show up on each list item Aug 30 19:05:26 So you're doing something wrong somewhere else Aug 30 19:05:29 birbeck, you meant me? Aug 30 19:05:30 SimonVT: yes…. I know Aug 30 19:05:34 but there is no usable information there to answer the question... need to see the list adapter and the list item view Aug 30 19:05:51 one sec, paste bin the java here Aug 30 19:05:56 dzan: sorry, was talking to calvinchan Aug 30 19:05:57 Where else are you using actBackground Aug 30 19:07:40 dzan: scaling of image buttons can be a bit tricky, you need to make sure that the image fits within the buttons implicit padding Aug 30 19:08:02 dzan: you might want to try a