**** BEGIN LOGGING AT Tue Nov 25 02:59:57 2014 Nov 25 03:04:44 shmooz: thanks! Nov 25 03:06:48 seems like i don't need an intent filter at all Nov 25 03:09:08 shmooz: hmm... unfortunately, I'm actually dealing with a RadioButton, which does not have setColorFilter Nov 25 03:10:00 just implement your own Nov 25 03:10:04 radiobutton is pretty useless class Nov 25 03:12:04 looks like I will have too, but I won't do this now for the prototype... hopefully I'll get the contract for the production version. then I can have more 'fun'!!! :-) Nov 25 03:22:27 Anyone know why getaddrinfo would fail with err = 7? Nov 25 03:24:35 looks like hostname get so far down the check and gets set to null Nov 25 03:26:25 check the man pager and associated header file. my system says a return code of 7 is NODATA - "no address associated with hostname"... but this system isn't linux, so might be diff Nov 25 03:27:47 I tried setting yeah Nov 25 03:27:50 I checked Nov 25 03:28:13 ./libc/include/netdb.h in bionics Nov 25 03:28:30 #define EAI_NODATA 7 Nov 25 03:29:12 if (hostname == NULL) Nov 25 03:29:13 ERR(EAI_NODATA); Nov 25 03:29:17 that's the only place.. Nov 25 03:29:23 but there are checks for hostname prior to this Nov 25 03:29:30 and dropbear is printing the hostnames Nov 25 03:29:50 after the failure Nov 25 03:29:57 so.. I don't understand what's going on Nov 25 03:33:09 too tired to trace through the code, I guess. Nov 25 03:33:39 and I don't feel like compiling libc/dns/net/getaddrinfo.c iwht printf Nov 25 03:33:59 printk, maybe. Nov 25 03:50:20 Upgrading to app compat 21 Nov 25 03:50:25 I get a bunch of warnings Nov 25 03:50:27 major version 51 is newer than 50, the highest major version supported by this compiler. Nov 25 03:50:30 What am I doing wrong? Nov 25 03:50:35 Upgraded to java sdk 1.7 Nov 25 03:52:33 sounds like you busted your jdk install Nov 25 03:52:40 ;\ Nov 25 03:52:44 you're running java 6 Nov 25 03:52:49 Just got it from oracle, and did the basic install Nov 25 03:52:52 I'm on osx Nov 25 03:52:57 * pfn ponders buying the SwiftKey material themes Nov 25 03:53:03 50 is java 6 Nov 25 03:53:14 so you're not running java 7 Nov 25 03:53:35 what are my options Nov 25 03:53:44 ciree make sure you exit your shell, some symlinks, paths etc get updated Nov 25 03:53:58 you will have apple java 6 and oracle java 7 at the same time Nov 25 03:54:21 run java 7 Nov 25 03:54:28 is it normal for an emulator to take more than 30 minutes on first boot? Nov 25 03:54:29 it's that easy Nov 25 03:54:44 madprops, on a really shitty. pc, yes Nov 25 03:54:47 rgr Nov 25 03:55:01 mine is ok Nov 25 03:55:06 i don't know why it takes this long Nov 25 03:55:53 whats the specs Nov 25 03:56:05 and im back Nov 25 03:56:09 madprops: use genymotion instead Nov 25 03:56:18 restarted shells, restarted android studio Nov 25 03:56:30 now i got Nov 25 03:56:32 Error:compileSdkVersion android-21 requires compiling with JDK 7 Nov 25 03:56:42 Its set correctly Nov 25 03:56:46 ciree go into AS and point it to java 7 Nov 25 03:56:51 the 4.0 emulator is really fast! :) Nov 25 03:56:52 should I quit android development? Nov 25 03:57:00 AS gets confused when you update the jvm Nov 25 03:57:57 http://i.imgur.com/YzIohzM.png Nov 25 03:58:27 its not /library/java/home :D Nov 25 03:58:58 try /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk Nov 25 03:59:05 or insert your rev there Nov 25 03:59:21 hey guys Nov 25 03:59:32 I'm trying to import android.support.v13 Nov 25 03:59:35 but I can't seem to. Nov 25 03:59:44 Even though my targeted sdk is v18 Nov 25 03:59:57 and the minimum is 14 Nov 25 03:59:58 it shiuld be jdk1.8? Nov 25 04:00:10 ciree whatever you installed, 7, 8 , jack, jill Nov 25 04:00:26 which should I do? Nov 25 04:00:37 does android support 8? Nov 25 04:00:39 !?! Nov 25 04:00:41 hmm, lollipops translucent system UI is different from how it was in kitkat Nov 25 04:00:49 ciree jesus ! Nov 25 04:01:00 I made a decision once on my own Nov 25 04:01:01 it was terrible Nov 25 04:01:04 I liked how it was in kitkat more Nov 25 04:01:15 ciree might be best to quit now while you're still ahead Nov 25 04:01:55 ;\ Nov 25 04:02:20 install jdk 7, 8 - doesn't matter. make sure you set the build language level to SEVEN Nov 25 04:02:35 rgr Nov 25 04:02:46 I CAN DO IT! Nov 25 04:03:46 anyone? Nov 25 04:04:09 you know, someone here has the nick rgr Nov 25 04:04:18 Then thou must use 7. 7 shall be the number of the counting and the number of the counting shall be 7. Four shalt thou not count, neither shalt thou count two, excepting that thou then proceedeth to 7. Five is right out. Once the number 7, being the number of the counting, be reached Nov 25 04:04:19 and you keep highlighting them, ciree Nov 25 04:05:15 day also has a highlightable nick Nov 25 04:05:20 oh shit my bad Nov 25 04:05:30 r g r for me is roger Nov 25 04:05:51 /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home Nov 25 04:05:53 Worked! Nov 25 04:05:55 Thanks guys Nov 25 04:06:22 don't ever update your JDK again Nov 25 04:06:28 :) Nov 25 04:06:31 I needed v7 21 ;\ Nov 25 04:06:46 thinking about hiring a devops guy Nov 25 04:06:48 for my personal stuff Nov 25 04:09:30 We're working on the same project on the same repository, he can import android.support.v13 but I cannot. Nov 25 04:09:47 I only see android.support.v4 when I look for it Nov 25 04:15:33 i just placed my first order from androidarea - i hope those guys are legit Nov 25 04:15:55 aww what'd you get Nov 25 04:16:48 bankai_au https://androidarea.com/sales/limefuel-lite-the-20-000mah-dual-usb-battery-pack-us Nov 25 04:17:04 58% off, had to do it :) Nov 25 04:17:39 why does no one ship to my stupid country Nov 25 04:18:15 because you live in a stupid country with dropbears Nov 25 04:18:26 bankai_au don't feel bad, i don't think they are shipping to hawaii even Nov 25 04:19:01 there are at least 3-4 companies I know of which provide a reshipping service from US->HK Nov 25 04:20:10 so you buy from Amazon, or whoever, in the US, ship it to a US warehouse address, then they ship it on to you Nov 25 04:21:34 also, Hawaii is barely in the US anyway :) Nov 25 04:22:09 too far dor a drone Nov 25 04:22:12 *for Nov 25 04:23:24 plus sharks and volcanoes and stuff Nov 25 04:24:54 Leeds lol, i just googled what a dropbear was. kinda like AZ jackalope Nov 25 04:25:07 yeah Nov 25 04:25:41 of course, in Oz, it's really the spiders, snakes, jellyfish, sharks, crocs and centipedes you have to watch out for... Nov 25 04:26:13 also that guy from Rover Nov 25 04:26:29 nearly ran over a snake the other day on my bike ... you think riding up to it "oh wow it's a tyre.. sshhiiiitttt avoid avoid" Nov 25 04:28:14 haha, i was riding up a crazy steep incline on my mountain bike, like maybe 40' incline. a real huffer. and i rode over a rattle snake (front tire) was like, "oh shit!" in panic my feet came out from the pedals, i rolled backwards instantly, rolled over him again, he got caught in the spinergy and i wrecked going backwards and the bike went flying Nov 25 04:28:22 i think that was my only bacwards wreck Nov 25 04:30:21 from then on, i called my spinergy wheels snake catchers :) Nov 25 04:33:10 traded those in for aerospokes when the rear exploded Nov 25 04:33:17 true story ! Nov 25 04:33:54 bankai_au ever see these before ? http://www.pinkbike.com/photo/8653655/ Nov 25 04:34:45 i ride road bikes :P Nov 25 04:35:58 bankai_au ok, then these ? http://2.bp.blogspot.com/-sczq2Wk5Lj4/UXki6FKieZI/AAAAAAAAG04/b15fIslCnqc/s1600/DSCN7806.JPG Nov 25 04:36:16 they look fancy pants -- carbon fibre? Nov 25 04:36:41 yeah, but pretty deadly :) they don't make them any more. once in a while, i see somebody use them and wonder how much longer they have to live Nov 25 04:37:31 the aerospokes are pretty bomber though. i got them because i HATE truing wheels :) (and i totally suck at it) Nov 25 04:38:01 and you gotta know how to true your wheel on mountain bikes, or you'll be spending lots of money having somebody do it for you Nov 25 04:39:57 actually, best to know how to do all your bike work. i did everything except face tubes Nov 25 04:40:18 need a special tool for that, that is costly and used like once every couple of years ;) Nov 25 04:43:39 hi guys, i'm new to android developer Nov 25 04:43:53 if i save data to sharedpreferences Nov 25 04:44:07 where exactly it saved? in which file? Nov 25 04:44:25 it's saved in an XML under /data/data/package/something .. Nov 25 04:44:48 same folder with the sqlite db? Nov 25 04:44:54 nuh diff one Nov 25 04:45:12 what exactly is the file name? Nov 25 04:45:49 AndroidDeve you couldn't google this ? Nov 25 04:46:10 ugh sorry guy Nov 25 04:46:17 ok, i'll look for it Nov 25 04:46:20 thanks bankai_au Nov 25 04:46:27 :D Nov 25 04:46:44 rule #1 : don't ask what can easily be googled :) Nov 25 04:47:41 Hey guys, I'm going to ask again just in case someone new sees it Nov 25 04:47:44 part of the point is that you shouldn't need to know or care Nov 25 04:48:09 if you're going to ask about your silly import problem you need to provide some actual information this time Nov 25 04:48:18 bankai_au: Nov 25 04:48:28 it would have been nice if you said that when I asked :) Nov 25 04:48:29 where and how it's stored isn't part of the interface, AFAIK Nov 25 04:49:18 hm, the gradle plugin is now 1.0.0-rc1 Nov 25 04:51:20 everyone is goign RC atm... exciting times Nov 25 04:52:27 an RC for you ... and one for you ... Nov 25 04:52:35 and one for you ! Nov 25 04:53:06 what if I prefer Pepsi? Nov 25 04:53:25 as long as its not dr pepper Nov 25 04:53:33 i thought you americans loved dr pepper Nov 25 04:53:42 that shit is delicious Nov 25 04:53:51 shower in that shit Nov 25 04:53:58 I like A&W, but damn, that stuff is *sweet* Nov 25 04:54:00 i like water. that stuff is getting hard to find Nov 25 04:54:15 Leeds: not irn bru ? Nov 25 04:54:30 bankai_au: made in Scotland, from giRRRders! Nov 25 04:54:39 hehee those ads are awesome Nov 25 04:55:24 are you guys using the release candidate? Nov 25 04:55:50 https://www.youtube.com/watch?v=H4PxuFQCDis Nov 25 04:57:07 my eyes Nov 25 04:57:30 https://www.youtube.com/watch?v=SD3LippIN40 Nov 25 04:57:53 anyway, no IDE for me... might put that on the to-do for next year - "try IDE, go back to vim" Nov 25 04:58:36 Leeds i think what will happen is, you will start to cry ... Nov 25 04:58:49 so sad, that .. for all these years, you weren't being productive :) Nov 25 04:58:56 I think what will happen quite soon is that I'll have to Nov 25 05:00:08 dude, I haven't had any contact with my boss for 2 weeks, I spend most of my time at home playing games and pissing around online... what do I care about productive :) Nov 25 05:00:35 you guys hiring? Nov 25 05:00:49 nope Nov 25 05:00:54 ;\ Nov 25 05:01:07 Leeds your boss seems kinda "absent" Nov 25 05:01:29 he got fired ... this is how his boss does it Nov 25 05:02:13 not 1st time boss went away :) Nov 25 05:02:49 My question is: Why is there no android-support-v13.jar in my Android Private Libraries and what steps can I get to include it? I don't see it in the project lib folder either Nov 25 05:03:16 http://developer.android.com/tools/support-library/setup.html Nov 25 05:04:07 Thank you bankai_au Nov 25 05:18:44 kinda glad i'm not in ferguson tonight O.o Nov 25 05:19:11 is she a bit dirty ? Nov 25 05:19:45 oh bankai_au Nov 25 05:20:42 i still can't find a good tutorial on multiple item selection with RecyclerView. either everyone has figured it out except me , or few know how to do it Nov 25 05:42:11 this is so weird, i found a sample for LinearLayoutManager here Nov 25 05:42:13 https://chromium.googlesource.com/android_tools/+/18728e9dd5dd66d4f5edf1b792e77e2b544a1cb0/sdk/extras/android/support/samples/Support7Demos/src/com/example/android/supportv7/widget/LinearLayoutManagerActivity.java Nov 25 05:42:18 I am having problems with the android sdk on linux Nov 25 05:42:21 but its not in the Samples Nov 25 05:42:27 the build tools folder is missing Nov 25 05:42:35 can't figure out why Nov 25 05:43:43 thats a hella long URL Nov 25 05:43:45 hello! Nov 25 05:44:12 the folder -/opt/android-sdk-linux/build-tools is missing :( Nov 25 05:44:31 underpants gnomes probably Nov 25 05:45:28 nice reference Nov 25 05:45:40 but seriously I am not sure how to do it Nov 25 05:45:50 download a new sdk bro Nov 25 05:46:22 run on linux vm like coolg uy Nov 25 05:46:37 I have disabled a send button and what to enable it when clicked on any field except button.What is the changelistener called? Nov 25 05:46:44 this is a new sdk Nov 25 05:46:52 I am trying to compile xbmc Nov 25 05:46:52 right now I am using addTextChangeListener Nov 25 05:47:06 It fails because there is no build tools Nov 25 05:47:22 but I want to have it irrespective of edittext or textview or spinner Nov 25 05:47:24 there is platform tools etc but no build tools Nov 25 05:48:57 ls: cannot access /opt/android-sdk-linux/build-tools: No such file or directory Nov 25 05:49:13 I'm trying to build a clean library interface, for a special kind of view that can contain any other view but does some additional things (like record screen coordinates before passing on to the respective view within). I hope to make it so that the user can just use this custom view as the parent view and the rest of the application remains the same. What would be the right way to do this? Nov 25 05:54:36 Haxxa: maybe u need ndk Nov 25 05:54:50 nick9998 I have ndk installed Nov 25 05:54:56 oh snap Nov 25 05:55:03 nick9998 I think sdk is missing a folder for some reason Nov 25 05:55:14 I don't what I am doing wrong Nov 25 05:55:19 download again vinegar Nov 25 05:57:07 nick9998 I have twice Nov 25 05:57:14 and different versions Nov 25 05:57:21 none come with build tools folder Nov 25 05:57:56 ugh, I hate the chrome tab UI on lollipop Nov 25 05:59:17 Oh, but it can be turned off Nov 25 05:59:20 thank god Nov 25 05:59:34 pfn one of a kind Nov 25 05:59:47 the website says android studio comes with the sdk but it isnt there when i downloaded it Nov 25 06:00:31 you still need to run the sdk manager to get everything Nov 25 06:00:47 Unzip the file, android-studio-ide--windows.zip and launch the studio.exe file.Follow the setup wizard to install Android Studio and the SDK Tools....... when i run it, it just says cant find sdk Nov 25 06:00:54 it doesnt even come with the sdk manager Nov 25 06:01:17 so, if you go to tools android sdk manager it doesn't show? Nov 25 06:02:04 AS installs the SDK on first run Nov 25 06:02:10 dat feel when upgrating to 21 fucks up everything Nov 25 06:02:18 i just have /bin /lib / license / plugins Nov 25 06:02:32 no tools or sdk folder inside anywhere Nov 25 06:02:50 njcomsec what version of AS ? Nov 25 06:03:25 Hey Nov 25 06:03:32 can someone explain the encoding done to the APK files Nov 25 06:03:34 like Nov 25 06:03:35 135.1538390 Nov 25 06:03:40 the newest one on the site now Nov 25 06:03:41 if I want to read an .XML file it looks weird Nov 25 06:03:50 is there a name for that encoding/decoding Nov 25 06:03:52 Haxxa maybe u have to make the make-tools Nov 25 06:04:01 lol Nov 25 06:04:02 ?? Nov 25 06:04:07 can you do a build-toolchain or some such Nov 25 06:04:17 njcomsec dunno. its actually a bug, AS installs the SDK even if you have it :) you are the exception :D Nov 25 06:04:18 Like assuming I want to decode an xml file after unzipping the apk file Nov 25 06:04:18 toolchain is built Nov 25 06:04:26 I know I can use apktool Nov 25 06:04:33 but I want to know the name of the encoding Nov 25 06:04:34 of the file Nov 25 06:04:38 does anyone know it? Nov 25 06:04:49 yo Haxxa bro you want to buy cigarettes Nov 25 06:05:02 like the encoding method that is used to encrypt the xml files Nov 25 06:05:11 yo bro keep it on the downlow bro the feds are out Nov 25 06:05:20 Installing Android SDK Tools, revision 23.0.5 - good sign Nov 25 06:05:29 seems like its running it the background Nov 25 06:05:42 I will monitor top see what happens Nov 25 06:05:44 yeh i remember having 2sdks before Nov 25 06:05:58 ajoul ZIP Nov 25 06:06:02 guess ill just download the seperate sdk Nov 25 06:06:18 ajoul, read the source to apktool Nov 25 06:06:26 it's not encrypted Nov 25 06:06:28 zip it up baby,ugh yeah Nov 25 06:06:34 it's just a binary packed xml Nov 25 06:06:45 pfn: ok so why is the xml not readable after I unzip it? nick9998 Nov 25 06:06:59 because it's binary packrd Nov 25 06:07:09 packed, similar to wbxml Nov 25 06:07:10 its encrypted bro using RSA 911 Nov 25 06:09:07 ok thats what I was asking Nov 25 06:09:43 nick9998: are you sure its name is RSA 911? Nov 25 06:09:47 america is # wah-unn Nov 25 06:12:22 is it enough to just have api 4.0 and 5.0 Nov 25 06:12:23 to understand nick9998 , you must unencrypt his jibberish with rsa 9998 Nov 25 06:12:35 or should i test on 4.1 4.2 4.3 whatever etc Nov 25 06:12:46 pfft testing, who does that Nov 25 06:13:06 launch app. rotate. crash? no -> ship Nov 25 06:13:56 well i will also test on devices Nov 25 06:14:05 g00s obviously has lots of experience building and shipping apps Nov 25 06:14:09 and will always target 4.0 Nov 25 06:14:17 \o/ Nov 25 06:15:07 how the fuck do I decrypt an xml file from an apk Nov 25 06:15:21 ajoul not an android app dev question Nov 25 06:15:40 g00s: what is the encryption method used to encrypt the xml files in an APK Nov 25 06:15:49 this channel is for working on your own apps :) Nov 25 06:15:56 not somebody elses :D Nov 25 06:16:04 it's not encrypted Nov 25 06:16:16 use a newer copy of infozip my friend Nov 25 06:16:17 if you can't figure that out, you're not worth helping Nov 25 06:16:21 and may allah bless you Nov 25 06:16:29 pfn: then wtf is it. Its unreadable Nov 25 06:17:15 read the source of apktool Nov 25 06:17:20 or aapt Nov 25 06:17:32 or anything that works with the xml resources Nov 25 06:17:37 ill get 4.1 and 4.4 too Nov 25 06:17:43 pfn: you know the answer? Nov 25 06:18:01 what are everyone's thoughts on android 5.0. great android update -- or greatest android update ? Nov 25 06:18:07 ajoul, just about no one except per writing those tools know it off the top of their head Nov 25 06:18:19 vote now [jeopardy.wav] Nov 25 06:18:22 per=people Nov 25 06:18:26 i like how my social msgs are on my lock screeen on 5.0 Nov 25 06:18:36 sort of Nov 25 06:18:38 njcomsec, you can block. them Nov 25 06:18:43 i said i like it Nov 25 06:18:57 sounds like sarcasm Nov 25 06:19:03 no really) Nov 25 06:19:08 because im lazy Nov 25 06:19:20 vote: which SwiftKey theme should I buy, material dark or minimal dark? Nov 25 06:19:45 njcomsec: that sounds good Nov 25 06:23:09 iv decided to make a game. i dont know what its about. im just gonna make a screen first and add stuff on as it develops Nov 25 06:23:13 pfn: buy both Nov 25 06:23:25 the fuck do i care its not my money Nov 25 06:23:45 i notice that the guys writing android samples, really like cheese Nov 25 06:24:09 what's wrong with cheese? Nov 25 06:24:23 chees is fucken sweet man Nov 25 06:25:46 cheddar + bacon FTW Nov 25 06:26:06 you can live on just those 2 things Nov 25 06:27:58 lol! https://groups.google.com/forum/#!topic/adt-dev/j2EwlTVYPWg Nov 25 06:29:29 hahah. nice Nov 25 06:31:09 inflating a view with a fragment Duplicate id, tag null, or parent id Nov 25 06:31:15 using toolbar for appcompat 21 Nov 25 06:31:16 halp Nov 25 06:31:25 was working before Nov 25 06:32:08 Its a fragment view within a layout Nov 25 06:32:44 http://pastebin.com/xM2CM2z1 Nov 25 06:33:03 can everyone pls go give my game 5 stars Nov 25 06:33:07 thanks Nov 25 06:35:07 Hi, I'm using facebook sdk. There's a section where I've to provide the default activity class name (to deeplink into the app from facebook app), I have a splash screen in my android app which is launched first everytime, should I add this class or the one that comes after this one. Nov 25 06:36:13 yes Nov 25 06:38:10 nick9998, splash screen activity? Nov 25 06:39:48 guy sorry i'm gonna level with you Nov 25 06:39:52 i have no idea Nov 25 06:40:35 nick9998: it's alright :) Nov 25 06:44:33 My lollipop has hair stuck to it Nov 25 06:44:34 i can tell you that android turns down the mixer settings well below what their capable of Nov 25 06:44:42 for headphones Nov 25 06:44:54 what is api 4.4w2 Nov 25 06:45:12 thats just for watches Nov 25 06:46:10 after maxing my volume button on the phone, my HPH? volume setting is only 6/12 Nov 25 06:46:18 oh screw that then Nov 25 06:46:30 i knew something was up!! Nov 25 06:47:17 my earphones are half broken and sometimes twisting them makes my phone run google voice dial Nov 25 06:47:19 its weird Nov 25 06:47:53 it sets off the voice recognition Nov 25 06:47:55 ? Nov 25 06:48:08 what does the * in the lollipop status bar mea Nov 25 06:48:09 maybe there is some api which allows special headphones to control the phone Nov 25 06:48:09 n Nov 25 06:48:09 yes Nov 25 06:48:19 ah i see Nov 25 06:48:20 it says" please say a number to dial" or something Nov 25 06:48:35 you should get new headphones next time you are on a plane Nov 25 06:48:45 why do i have to be on a plane? Nov 25 06:48:46 pfn it means UI fail Nov 25 06:48:56 because they are free Nov 25 06:49:00 on the plane Nov 25 06:49:05 no Nov 25 06:49:09 usually they take them back Nov 25 06:49:09 but what about for motha fucken snakes Nov 25 06:49:25 >Free Nov 25 06:49:28 >Crap Nov 25 06:49:32 hmm, I guess it means dnd mode Nov 25 06:49:48 cool, dungeons and draggons ? Nov 25 06:50:03 so many easter eggs Nov 25 06:50:20 The phone's charisma modifier is higher than your own Nov 25 06:50:20 not d&d Nov 25 06:50:22 The feels Nov 25 06:50:29 anyways about the volume-gate 2014 Nov 25 06:50:37 i think there should be more outrage.. Nov 25 06:51:04 interage Nov 25 06:51:13 dnd in relation to phones is a common terminology Nov 25 06:51:46 Do Not Drop Nov 25 06:51:57 department of national defense Nov 25 06:52:57 anyways its almost my bed time Nov 25 06:53:06 its 7am here Nov 25 06:53:25 i am a hardworking vitnamese lady Nov 25 06:54:12 it's mid-afternoon in Vietnam... Nov 25 06:54:30 in vietnam, work does you Nov 25 06:56:48 don't have to be in Vietnam to be vietnamese Nov 25 06:58:47 even with the equalizer settings and volume maxed on the phone , the HPHL/R volume settings are still 6 on 12 Nov 25 06:59:01 for fucks sakes Nov 25 06:59:50 i'm going to write to the android police about this Nov 25 07:09:59 just noticed this book "Java Puzzlers: Traps, Pitfalls, and Corner Cases". somebody should write an android version "Android Puzzlers: Traps, Pitfalls, and Corner Cases" Nov 25 07:10:12 should be pretty thick and meaty Nov 25 07:10:54 and would need rewriting with every release of As Nov 25 07:13:11 there would need to be a separate AS / gradle book then Nov 25 07:15:58 how do i boot a different linux kernel on my device Nov 25 07:17:55 hm, seems recyclerview + checkboxes are actually simpler than ListView, no Checkable bullshit now Nov 25 07:18:44 i think this one has some shit networking options Nov 25 07:19:07 this is pure speculation however Nov 25 07:35:34 JakeWharton , Serializable Police Nov 25 07:36:20 Yeah. Fuck that shit, as they say. Nov 25 07:37:23 Greetings Nov 25 07:39:34 How to I check the permissions an existing installed app uses ? Nov 25 07:44:28 you mean on your phone settins or your own app that does it? Nov 25 07:44:36 Unknown0BC check the manifest Nov 25 07:44:54 not own app. Nov 25 07:45:05 unzip that shit bro Nov 25 07:45:16 existing installed ap on device. Nov 25 07:45:49 is there not a way to check the permissions used by an existing installed app ? Nov 25 07:46:13 other than rooting the phone getting the apk and unzipping it to read the manifest ? Nov 25 07:46:15 lol Nov 25 07:46:30 ( I am not talking about my own developed app ) Nov 25 07:46:31 you could uninstall and reinstall Nov 25 07:46:35 an installed ap. Nov 25 07:46:47 doesn't the Settings app say ? Nov 25 07:46:48 so thats it you can really check it other than doing tricks ? Nov 25 07:47:16 Settings -> app -> (the app) -> permissions Nov 25 07:47:47 g00s is smart Nov 25 07:48:20 Yeah it does say :) Nov 25 07:48:33 great thats what I wanted. Nov 25 07:48:34 ty Nov 25 07:48:36 :) Nov 25 07:48:48 Thought the phone should be able to do that... Nov 25 07:49:39 on the bottom of the Play listing there is 'permission details' Nov 25 07:50:00 Play Store -> My apps -> app -> perm details Nov 25 07:50:25 Yeah Nov 25 07:50:40 ideally whispercore should be used.. Nov 25 07:50:59 happy birthday tooo you, happy birthday dear g000hooos happy birthday toooo yoooooou ! Nov 25 07:51:16 for when your next birthday is g00s Nov 25 07:51:29 :) Nov 25 07:52:21 http://stackoverflow.com/questions/27121027/getting-a-query-string-from-google-play-via-the-broadcast-receiver Nov 25 07:52:26 I'm ridiculously stuck. Nov 25 07:52:35 It worked for a while, but inexplicably doesn't anymore. Nov 25 07:55:01 happy birthday bro Nov 25 07:55:12 let me know if ican get you something Nov 25 07:55:23 what's that fancy scroll view used in Vivino called? Where the bottom part of the screen kinda scrolls over the top banner? Nov 25 07:55:42 I've seen in quite a few apps now Nov 25 07:56:35 spotify has a take on it as well Nov 25 07:57:01 and All The Cooks / Cookpad, when you look at a recipe Nov 25 07:58:24 what do these volume booster apps even do Nov 25 07:58:26 ,gosh! Nov 25 08:00:11 seems like a gimmick - i'd file it as a bug unless told it was part of the design language ;) Nov 25 08:03:15 What do these SDK development guys smoke ? Nov 25 08:03:23 Anyone else having this issue with Nexus 6 bleeding? There's no bug tracking that I can find documenting it Nov 25 08:03:38 green blood ? Nov 25 08:04:17 No it's red which is alarming Nov 25 08:06:01 Darklust your display ? Nov 25 08:06:31 The blood is red Nov 25 08:07:21 the nexus 9 seems to have some serious problems with backlight bleeding Nov 25 08:08:41 I don't think it's the phone that's bleeding actually Nov 25 08:11:05 is it your arm? Nov 25 08:12:26 You mean the processor? No, I don't think that's it... Nov 25 08:13:15 no on your body Nov 25 08:14:45 what's the best way to develop for Android? using ADB debug with a real device, using Bluestacks or using the emulator? Nov 25 08:14:58 g00s: mine has a little bleed, but not much - if you're looking straight at the screen it's barely visible Nov 25 08:15:08 personally i prefer a real device Nov 25 08:15:31 but i test a little on emu too Nov 25 08:15:47 Could I plug my S3 into a USB port and use it as a test device? Nov 25 08:16:06 yes Nov 25 08:16:18 cool Nov 25 08:17:36 you can use *any* mainstream Android device for development Nov 25 08:17:49 nice Nov 25 08:17:57 I'm just not sure what kind of app to write Nov 25 08:18:22 you need an inspiring idea Nov 25 08:18:30 all devved up with nowhere to go Nov 25 08:18:32 or a job Nov 25 08:18:34 yeah haha Nov 25 08:18:38 well I have a daytime job Nov 25 08:18:38 mainly i do games Nov 25 08:19:02 I have a game idea but the implementation of it has really been a challenge to me Nov 25 08:19:43 im not even touching 3d or online gaming yet Nov 25 08:20:02 The game I want to make would be a simple 2D puzzle Nov 25 08:20:23 an enhanced version of an old NES puzzle but with my own characters and style Nov 25 08:20:31 go for it Nov 25 08:21:04 yeah the only problem I've been having is working out the internal mechanics of the game, like how to keep track of the board state and stuff Nov 25 08:21:21 @njcomsec: do u already have games in the google play store? Nov 25 08:21:48 for more 'advanced' games you would want to use frameworks like libgdx, not plain java/android themselves Nov 25 08:22:09 no i havnt released anything yet Nov 25 08:22:17 http://www.nintendo.com/games/detail/800OE-0ki87aVOOzE_R_LmN5Wsir1WZv <- my idea is to make enhancements to this game and use my own graphics stuff Nov 25 08:22:28 i dont play to use any 3rd party game engines ever Nov 25 08:22:47 id rather make something with simpler graphics from scratch Nov 25 08:22:47 RudyValencia: by "make enhancements to" do you mean "copy"? Nov 25 08:22:57 not a straight copy Nov 25 08:23:04 that's a yes then... Nov 25 08:23:16 well, I'm not using Mario and Yoshi Nov 25 08:23:19 every game copies others to a degree Nov 25 08:23:19 enhancements! Nov 25 08:23:25 look at every fps and every rts Nov 25 08:23:29 they are almost identical Nov 25 08:23:34 2048 isnt copy of 1024, its 2048! Nov 25 08:23:38 candy crush saga.... Nov 25 08:23:41 but my own characters hatching baby dragons Nov 25 08:23:43 ;D Nov 25 08:24:02 what about tetris :V Nov 25 08:24:05 and with my own music and sound effects Nov 25 08:24:23 of course you can't just ripp off other games completley.... but dont be afraid to borrow some mechanics Nov 25 08:25:04 my version of this game will have two extra modes Nov 25 08:25:12 and even some extra features Nov 25 08:25:17 thats why games are so good because they are inspired by other past games which improved upon other past games Nov 25 08:25:22 yep Nov 25 08:25:36 but the internals of it are what I'm not sure about Nov 25 08:26:05 for one I don't know how to track the state of the game, and how to translate the internal state to an external representation Nov 25 08:26:06 hi, what is the best way to measure the hight of a line in a textview without creating a textview? Nov 25 08:26:09 Make a game about cave exploring, that secretly makes the user an expert on the female anatomy Nov 25 08:26:13 lol Nov 25 08:27:16 perhaps you should read some basic game dev tutorials Nov 25 08:27:49 i also must do this because i hardly know crap yet Nov 25 08:27:54 I can't find any decent puzzle game tutorials out there Nov 25 08:28:13 there are tons of sudoku ones Nov 25 08:28:18 even a few especially for android Nov 25 08:28:57 ahh finally.. i thought of a name for my game) Nov 25 08:29:12 now i can create project and start coding Nov 25 08:33:53 hey guys. i have a textview and i need it to should 1-100 over a certain period of time. can you point me in the right direction as to what i should use? i was thinking a valueanimator or objectanimator to change the value of a string and have textview show that Nov 25 08:38:03 Hi, am I being really stupid or does the Android Studio download which claims to come with the Android SDK not include it at all. In fact there isn't even an installer - I just get a zip with only the IDE in it. Nov 25 08:38:20 From this link: http://developer.android.com/sdk/installing/win-studio Nov 25 08:39:04 I swear there was once an installer which would at least install the SDK manager and put shortcuts in the start menu. Anyone know what happened to it? Nov 25 08:39:38 Timmmm, the tools are built into android studio Nov 25 08:39:49 Tools > Android > ... Nov 25 08:40:07 should i use objectanimator? Nov 25 08:40:11 there you can access the SDK manager and download the version you want Nov 25 08:40:11 kevel1: Nope, it says it can't find the SDK. SDK Manager is greyed out in the welcome screen. Nov 25 08:40:40 then you should probably set it in your global variables or something Nov 25 08:41:03 Timmmm, Android SDK was removed from AS a few versions back Nov 25 08:41:21 Timmmm, the 1.0-RC1 features an installer wizard but it's buggy at this time Nov 25 08:42:15 Mavrik: Ah, any idea which version? The SDK download page makes no mention of this... Nov 25 08:42:25 i would have been OK if they simply left the avd manager outside of AS Nov 25 08:42:30 Timmmm, the tools site does Nov 25 08:42:35 Timmmm, just download SDK package separately Nov 25 08:42:51 Ok Nov 25 08:42:58 bundling the SDK with AS was silly anyway, caused a bunch of issues Nov 25 08:43:30 bundling the installer is meh too Nov 25 08:43:59 Well they should update the download page then. Currently it says "Download Android Studio Beta *with the Android SDK*" Nov 25 08:44:27 timm Nov 25 08:44:33 i just had the exact same thing Nov 25 08:44:38 had to dl sdk seperately Nov 25 08:45:01 njcomsec: Where did you download it from. I can't find a link... Nov 25 08:45:13 its on the same page Nov 25 08:45:19 or click Tools at top Nov 25 08:45:30 and downoad sdk / use existing ide Nov 25 08:45:46 Ah yeah got it, cheers. Nov 25 08:45:51 the one which stupidly says *if you are not using eclipse or android studio* Nov 25 08:46:23 ha Nov 25 08:55:14 hi i m using the latest adt/eclipse bundle but it keeps crshing with this log : https://bpaste.net/show/d6049f9b9baa Nov 25 08:55:19 is openjdl the reason ? Nov 25 09:19:03 is there a clever way to time SQLite queries in code? Nov 25 09:19:29 I saw that there is a value in the SQLiteDatabase class but it's derived from a system variable Nov 25 09:19:34 that I have no access to Nov 25 09:20:47 troulouliou_dev: try the workaround in the last entry. https://bugs.eclipse.org/bugs/show_bug.cgi?id=405786 Nov 25 09:21:05 aliasaila, yeah works :) Nov 25 09:24:44 Can android figure out what abi a shared object is compiled for if it is not in lib/ ? Nov 25 09:25:25 only the most basic info Nov 25 09:25:37 which is not really enough Nov 25 09:25:54 the directory scheme is there for a reason Nov 25 09:26:39 Does an x86 or arm binary contain information about its abi? Nov 25 09:27:04 Is the directory scheme necessary? Nov 25 09:31:36 Yes, since Android will not unpack native libraries from other dirs. Nov 25 09:32:00 When you install an app it unpacks native libs from its ABI dir to the directory that lib loader looks into Nov 25 09:34:07 I didn't mean necessary right now, but necessary in theory Nov 25 09:34:52 In other words, do x86 or arm binaries contain information which would allow Android to correctly load shared objects without the current directory scheme? Nov 25 09:35:28 Well besides the OS actually not being able to understand the file it's not built for its CPU... Nov 25 09:36:00 it'll happily load other libs it is compatible tho (e.g. loading armeabi lib on armeabi-v7a compatible CPU) Nov 25 09:36:18 (or loading armeabi-v7a lib on a x86 CPU with libhoudini present) Nov 25 09:37:12 hey, I had a question on code style Nov 25 09:37:18 I was thinking a binary could contain a header with information about the abi, which could be read before trying to execute it Nov 25 09:37:29 is still needed at the top of every xml file? Nov 25 09:37:33 do Google recommend declaring all variables at the top of a class, before defining them? Nov 25 09:37:53 adnap, it does to some extent Nov 25 09:37:57 what are you ACTUALLY asking? Nov 25 09:38:01 what are you trying to do? Nov 25 09:38:11 he's gone Nov 25 09:38:21 yay. Nov 25 09:38:41 wouldnt that make all your variables global/fields or whatever? Nov 25 09:38:47 vin-ivar, see the java style guide about that, but generally splitting declaration just clutters the code Nov 25 09:39:05 vin-ivar, also clearly scoping vars helps with memory management :) Nov 25 09:39:09 njcomsec, yes Nov 25 09:39:19 njcomsec, to the XML question :) Nov 25 09:39:29 ok Nov 25 09:39:29 cheers, I'll have a look. Thanks. Nov 25 09:39:48 with regards to his question, i believe if a variable is only used in one method, it should not be at the top of the class Nov 25 09:39:52 correct me if im wrong Nov 25 09:40:11 I think so too, but I wasn't too sure Nov 25 09:40:15 um Nov 25 09:40:36 doh, if the variable is a local variable for method then it certanly should not be a field in the class Nov 25 09:40:48 what I meant was Nov 25 09:40:49 keep the scope as tight as possible to keep code maintainable Nov 25 09:41:18 do I declare first - at the top of the block - and instantiate when I actually use them, or both simultaneously? Nov 25 09:41:46 do both simultaniously if it makes sense Nov 25 09:41:55 personally i try to keep scope tight and then just code in a style that is easiet to read for me Nov 25 09:42:01 the top of the block style comes from C89 where you had to declare everything on top Nov 25 09:42:18 i dont even use the saem style in every file Nov 25 09:42:21 since then even C people stopped recommending that because it adds needless clutter Nov 25 09:42:45 njcomsec, beatings would be administred if you'd be my employee :P ;) Nov 25 09:42:49 i just like to make every file as clear as possible on its own Nov 25 09:42:55 njcomsec, yeah, that's what I do too, but I figured I ought to start getting used to a fixed code style Nov 25 09:42:58 well good thing i work alone))) Nov 25 09:44:00 i also used to have this ocd thing where i tried to use as few lines as possible Nov 25 09:44:15 but that was just silly Nov 25 09:50:16 hi launching arm emulator is too long here with a core I7; is it officilay recomended to use x86 image for speed ? Nov 25 09:53:33 troulouliou_dev: for speed, yes Nov 25 09:53:55 p_l, so you always debug with x86; then test with arm before releasing ? Nov 25 09:54:34 I mostly muck around in different areas these days, but if I were developing something, I'd probably start with x86 Nov 25 09:55:08 i'm targeting SDK 21 and trying to setElevation Nov 25 09:55:15 and stresstest the app by compiling for x86, x86-64, arm, arm64 and mips Nov 25 09:55:19 i'm targeting SDK 21 and trying to setElevation() on an ImageView but it is not working.. i tried in XML as well Nov 25 09:55:23 p_l, ok Nov 25 10:01:36 i'm targeting SDK 21 and trying to setElevation() on an ImageView but it is not working.. i tried in XML as well Nov 25 10:09:23 o/ Nov 25 10:09:36 did anyone of you noticed funny behaviour using ART Nov 25 10:09:54 lots of out of memory errors that didnt happen under android kitkat Nov 25 10:10:07 nop Nov 25 10:14:50 if i have a bitmap as the background of an activity would i need to recycle it in the ondestroy method of that activity? Nov 25 10:15:56 i'm targeting SDK 21 and trying to setElevation() on an ImageView but it is not working.. i tried in XML as well Nov 25 10:15:56 You don't have to recycle bitmaps since 4.x Nov 25 10:16:26 jvrodrigues, just remember that if you hold a reference to it it'll stay in memory until all references are cleared Nov 25 10:18:32 I see Nov 25 10:24:11 HI guys i have developed a app with kitkat... is possible update my app to material design and run it on kitkat? Nov 25 10:28:53 why wouldnt it be? Nov 25 10:29:45 roxdragon: You can use v7 to get Toolbar and so on. Nov 25 10:30:31 yes but in /res/values/style.xml i have "android:Theme.Light Nov 25 10:30:43 I think you'll have to change that. Not sure, though. Nov 25 10:30:53 oh right Nov 25 10:30:57 You'll probably have to use Theme.AppCompat.something. Nov 25 10:31:05 Or whatever it is. Nov 25 10:31:30 im not going to bother making a different UI for 4 / 5 Nov 25 10:31:48 ill just use what i can from jellybean Nov 25 10:33:02 mmh.... :Theme.AppCompat.Light Nov 25 11:00:42 gee this expansion file concept is a little detailed :-/ few more permissions than i wanted too :( Nov 25 11:05:12 setElevation or when I set elevation in XML on an ImageView has no effect.. I am running SDK 21 (5.0) but it has no effect whatsoever Nov 25 11:26:13 useless question: what's the point of obfuscate the code with proguard, as nothing is guaranteed (same with all language / all obfuscator) Nov 25 11:26:46 what's the point of any security through obscurity Nov 25 11:27:14 it depends of the "obscurity" Nov 25 11:27:17 I guess it makes it slightly harder for people to acquire "secrets". Nov 25 11:27:22 nop Nov 25 11:27:31 server side obscurity, i may be fine with it Nov 25 11:27:31 I also read that ProGuard can increase execution speed. Nov 25 11:27:32 It's about reducing your attacker group size Nov 25 11:27:43 client side obscurity can't be controlled Nov 25 11:27:47 And minimize APK size. Nov 25 11:28:12 blusky: server side obscurity? Nov 25 11:29:24 I don't think you entirely get the basic concept. It's not about proofing your code from reversing, since given enough time and an slightly autistic developer, you would be able to do it by looking at the machine code Nov 25 11:29:30 c03: using an unkown method to store password hash for exemple Nov 25 11:30:27 with in app billing, can I check if the user has bought something (and when?) Nov 25 11:30:30 blusky: that makes no sense Nov 25 11:32:37 c03: i'm a webapp auditor. Sometimes I test webapp that are SQLi vulnerable. When i dump the user / password table, sometimes, password are hashed with an unknown method. It's "security with obscurity". It may be harder to crack than a good password with a good hash mecanism Nov 25 11:37:10 is there a way of getting the thread that is currently running an activity to get it to sleep? Nov 25 11:39:01 blusky: I'm a computer scientist. Security through obscurity, regardless of the deployment area, is not meant to defend against any attacker, but rather filter away amateurs and novices. It's fine that you hide what hash function you are using =) But serverside/clientside obscure security is still the same, smoke and mirrors Nov 25 11:41:08 there's a difference between "security through obscurity" and "deception" Nov 25 11:41:51 the former is "dubious security coming from lack of knowledge", the latter is legitimate tool ;) Nov 25 11:42:04 ChrisUK: How do you mean? Nov 25 11:42:15 p_l: no ;) Nov 25 11:44:27 what crash reporting can i use that does not require me to set up my own backend? Nov 25 11:46:16 osxorgate: google play has crash reporting Nov 25 11:51:27 samskiter: yes but only if the user clicks 'ok' Nov 25 11:54:02 elevation is not working on my android L Nov 25 11:54:05 why????????// Nov 25 11:54:19 osxorgate: meh. we get enough useful data through that to debug apps Nov 25 11:54:20 setElevation and elevation in xml do nothing on my imageview Nov 25 11:54:24 anyone? Nov 25 11:54:53 hello everybody Nov 25 11:55:43 I'm trying use Volley to send an image to my php Web Service Nov 25 12:00:48 I'm trying this: http://pastebin.com/ahYycqjy Nov 25 12:00:56 anybody help me ? Nov 25 12:08:22 How can I show tabs without adding it to the action bar? Nov 25 12:08:25 hi guys, what is a good way to end "edit mode" when user taps on a layout view? Nov 25 12:08:40 vedu: Are you asking because the "add tab" methods are now deprecated? Nov 25 12:09:09 TacticalJoke: No I am asking since I have a common view below my actionbar and I want tabs below it Nov 25 12:09:44 hi do i need to update the adt bundle package through manual download/upgrade or is there an update tool for it Nov 25 12:10:17 I didn't know they are deprecated :D But I would use actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS) anyway Nov 25 12:11:47 has anyone seen lemonxah lately? Nov 25 12:12:00 Yeah, they're deprecated because Toolbar is recommended (but I am not switching to Toolbar yet). Nov 25 12:23:21 vedu: tabs are just styled textviews in a linearlayout.. Simple to replicate Nov 25 12:25:58 is Bluetooth MAC the same as Wifi MAC? Nov 25 12:26:20 usually not Nov 25 12:27:14 damn it. thanks :) Nov 25 12:27:36 anybody here use Volley library ? Nov 25 12:28:09 fernandopaiva, what do u want to use it for? Nov 25 12:28:46 kevel1: I'm trying send an image to my web service using Volley Nov 25 12:29:17 looking for a solution I found suggestions to use MultiPart Nov 25 12:29:33 but I cannot do this works Nov 25 12:29:38 fernandopaiva, have you seen retrofit? Nov 25 12:30:07 http://square.github.io/retrofit/ Nov 25 12:30:44 literally, @Multipart @PUT("/user/photo") User updateUser(@Part("photo") TypedFile photo) Nov 25 12:30:45 done. Nov 25 12:31:04 very nice Nov 25 12:31:38 do you use retrofit ? Nov 25 12:33:19 religiously Nov 25 12:33:20 hi guys, im wondering why when setting an edittextfield to password, the font changes? how can i disable this Nov 25 12:33:33 ps. stackoverflow is blocked on my network :( Nov 25 12:34:44 kevel1: retrofit does execute post and get json ? Nov 25 12:35:17 pangelovski, stackoverflow http://pastebin.com/bM8DaiRh Nov 25 12:35:36 pangelovski, use https://hide.me/en/proxy in the future :) Nov 25 12:35:44 fernandopaiva, among other things yes Nov 25 12:36:49 kevel1: do you have any example to send me ? Nov 25 12:36:52 SimonVT: any code? o.O Or which styles can I apply Nov 25 12:38:52 kevel1:i just wrote that stackoverflow is blocked on the network Nov 25 12:39:25 pangelovski, thats why i linked you to a proxy? Nov 25 12:39:37 pangelovski, also paste has a solution for you. Its not stackoverflow Nov 25 12:39:45 fernandopaiva, no, but google does Nov 25 12:40:02 fernandopaiva, check the main retrofit page, it pretty much explains itself Nov 25 12:40:07 kevel1:thanks Nov 25 12:40:24 thanks. Nov 25 12:44:59 kevel1: the problem is that my project is all developed using Volley :/ Nov 25 12:45:36 oh Nov 25 12:45:37 lol Nov 25 12:48:43 :( Nov 25 12:49:04 the next project I want use RetroFit Nov 25 12:49:15 but now I need solve the problem with volley Nov 25 12:52:46 my next project i want to use a full JakeWharton stack Nov 25 12:52:56 can't go wrong with that Nov 25 12:59:07 greetings Nov 25 12:59:51 So what do you guys do if you want to put a line on a layout like under a nifty image and heading name ? Nov 25 13:00:29 kevel1: do you can help me with volley ? Nov 25 13:01:01 fernandopaiva, ive never used volley before Nov 25 13:01:25 http://stackoverflow.com/questions/16797468/how-to-send-a-multipart-form-data-post-in-android-with-volley Nov 25 13:03:25 kevel1: :( Nov 25 13:05:22 hi i mtrying firt android dev here and after compiling hellop world anbd clicking hre and there i m getting this issue in appcopatc_V7 : android:actionModeShareDrawable requires API level 21 (current min is 8) Nov 25 13:08:04 troulouliou_dev: you should be able to find a solution by googling that last error Nov 25 13:08:11 requires API level 21 (current min is 8) Nov 25 13:08:56 You are using a feature which is introduced in a later version than what you are compiling for. Nov 25 13:09:19 c03, it was compiling fine and just clicking on extréact include / cancel on a buttin Nov 25 13:09:28 on a button and i get this issue Nov 25 13:10:24 troulouliou_dev, keyboard has small buttons? Nov 25 13:10:41 kevel1, hello world Nov 25 13:10:46 troulouliou_dev: you added a feature (somehow) that is not included in your target api =) Nov 25 13:12:12 c03, i need to change the minSdkVersion / compileSdkVersion targetSdkVersion or all of thezm ? Nov 25 13:12:40 the minSdkVersion Nov 25 13:12:43 try changing it to 21 Nov 25 13:13:10 the compileSdkVersion must be equal to or greater than minSdkVersion... which makes sense if you think about it Nov 25 13:13:24 c03, manage with android tools -> clear lint markers Nov 25 13:13:42 c03, thanks for time Nov 25 13:13:57 huh? Nov 25 13:14:02 np mate, hope you figure it out =) Nov 25 13:14:45 c03, side question but isn't there a gui tool to set up the event handler; like in visual studio or others ? Nov 25 13:15:25 troulouliou_dev: I don't know visual studio, so I don't know what you mean Nov 25 13:15:58 you mean like some sort of flow graph for event handlers? Nov 25 13:25:21 hi Nov 25 13:25:35 anybody can suggest a service to publish my app in many app stores? Nov 25 13:54:01 my app depends on retrieving json from an api and as a r esult is dependent on an internet connection. where all should i check for the connection? before my async tasks? Nov 25 13:57:46 Some days ago, Napalm adviced me to use picasso for my imgs downloads instead of a self made URL() connection. It's awesome. Do you also advise me to use OkHttp in order to make calls to my api ? Nov 25 13:57:57 if the nature of your app is such that caching data makes sense - that's what you should do, possibly display a non-intrusive warning that your data may be stale Nov 25 13:58:06 (*it's a gneric "you") Nov 25 13:58:11 if it only makes sense to show live data, I'd say check as soon as possible Nov 25 13:58:54 hey blusky Nov 25 13:59:03 thanks leeds Nov 25 14:02:04 I'm considering using volley for json rpc, does anyone have any experience with this? Nov 25 14:04:29 c03: rpc? I do use volley Nov 25 14:04:53 vedu: for jsonrpc? Nov 25 14:05:10 vedu: http://json-rpc.org/ Nov 25 14:05:27 I dont know what jsonrpc is your answer is no ;-) Nov 25 14:05:37 right =) Nov 25 14:05:53 rpc is remote procedure calling btw. Nov 25 14:06:07 http://en.wikipedia.org/wiki/Remote_procedure_call Nov 25 14:06:08 I saw the link Nov 25 14:06:29 Have any of you noticed that sometimes in eclipse when you change an attribute in an xml file ( and you make a mistake, say maybe a syntax error ) that eclipse gets stuck on that error even if you correct it ? Nov 25 14:06:31 I use it for JSON GET and POST Nov 25 14:06:46 probably for HTTP GET and POST Nov 25 14:07:06 and your HTTP response content is json formatted data Nov 25 14:07:28 Unknown0BC: You might have to go Project > Clean. Nov 25 14:13:11 After clean R.java is gone... Nov 25 14:13:18 * Unknown0BC lewks at TacticalJoke Nov 25 14:13:42 It should be regenerated. Try cleaning again or restarting Eclipse. Nov 25 14:14:05 Unless you really do have an error in your XML file. Nov 25 14:14:14 no Nov 25 14:15:14 Its gone for all the projects I cleaned now. Nov 25 14:16:16 If it's not being regenerated, there's a good chance there's an error in one of your XML files. Nov 25 14:16:50 Can you open the Problems view? Nov 25 14:17:04 Type Ctrl+3 --> Problems --> Enter. Nov 25 14:18:04 soooo sick and tired of the emulator Nov 25 14:18:48 pangelovski: What's the exact complaint? Just curious. Nov 25 14:19:03 I can probably predict it, but you never know. :) Nov 25 14:19:04 sorry for the rant, it freezes efter a couple of runs Nov 25 14:19:29 im on a mac. and people say that that installing haxm 1.1.1 should fix it but nope Nov 25 14:19:34 After a couple of app runs? Nov 25 14:21:01 sorry so i run my application and it works, then i click the run button again and it works, but after the 3rd or sometime 7th time it freezes with the rainbow spinner Nov 25 14:21:29 It's okay. The emulator deserves to be complained about. Nov 25 14:21:57 I have no idea what is causing this Nov 25 14:22:17 Im using SDK 21 (5.0) and I set the elevation for an imageview and it does nothing. I've done it in XML and programatically, whats the deal? Nov 25 14:22:40 TacticalJoke: one a side note, when entering an activity with a edittext, i notice that the focus is set on one of the textfields. is it possible do disable this behavior Nov 25 14:22:42 Tactical there was another xml error. Anyway, clean helps for when eclipse gets stuck on an error anyway, it did get stuck also. Nov 25 14:22:54 thanks Nov 25 14:23:36 Ya. The Eclipse XML-editing thing is kinda touchy. Nov 25 14:24:09 I have had plenty of similar problems with it. Nov 25 14:24:26 Im using SDK 21 (5.0) and I set the elevation for an imageview and it does nothing. I've done it in XML and programatically, whats the deal? Nov 25 14:25:48 MartialLaw, I suspect the SDK development guys smokes stuff. Nov 25 14:26:31 It works on some views, like relativelayouts and whatnot but not my textviews or imageviews Nov 25 14:32:41 I have removed all margins from my program, yet the navigation drawer insists on having margins. Nov 25 14:32:48 What am I missing ? Nov 25 14:33:02 all else now has zero margins. Nov 25 14:35:05 I'm just going to let it have its margins :) Nov 25 14:35:28 i just downloaded the new version of the adt and now all references to my apklib maven-dependency (from my own local project) are not working anymore... it simply doesn't know the classes that are in the other project. any ideas what changed in the new IDE? Nov 25 14:35:48 Hi folks. Anyone knows how to get a broadcast receiver triggered when a picture gets taken? I tried these broadcast receivers, without success com.android.camera.NEW_PICTURE. Nov 25 14:36:32 and com.android.camera.NEW_PICTURE Nov 25 14:36:52 android.hardware.action.NEW_PICTURE Nov 25 14:37:15 fancy42, it might have something to do with appcompat Nov 25 14:38:09 thanks, i'll check it out Nov 25 14:39:26 I really dunno I just remember that I had trouble getting stuff working after some upgrades, it it had something to do with appcompat in my case. Nov 25 14:39:31 fancy42 Nov 25 14:39:38 yah? Nov 25 14:42:39 if apps are compiled by android at runtime why does android-studio needs to compile them before the adb installs it/ Nov 25 14:42:42 ? Nov 25 14:43:05 Unknown0BC, thanks, but i can't find how this relates to my issue :/ but i'll keep looking Nov 25 14:43:48 good luck Nov 25 14:57:13 jvrodrigues: they aren't compiled by android at runtime. Android basically does JIT optimization to turn the compiled bytecode into something more optimized for the hardware it's running on. Nov 25 14:57:24 jvrodrigues: you still have to turn the java code into bytecode Nov 25 14:59:12 what's the difference between volley and okhttp ? I know it's not the same "brick", but what is it ? Nov 25 15:00:31 hi i m trying to compil an application i git pulled on the web but it requires gridlayout_v7/ what is the process with adt to add this lib ? Nov 25 15:03:32 jvrodrigues, AS: java source -> java bytecode -> java JAR -> Dalvik DEX Nov 25 15:03:53 jvrodrigues, Dalvik: Dalvik DEX -> ODEX -> interpretation / (JIT compilation while running) Nov 25 15:04:04 jvrodrigues, because they need to be compiled to dex first Nov 25 15:04:06 jvrodrigues, ART: Dalvik DEX -> ART ELF -> execution Nov 25 15:06:16 Ah Nov 25 15:06:17 ok got it Nov 25 15:07:41 I have been reading about transitions using shared elements in lollipop, is it possible to have the same shared element transitions between two fragments inside the same activity? Nov 25 15:30:14 mm Nov 25 15:39:57 Do you folks think Aqua is a good name for a Reddit client? I'm thinking of showing "Aqua for Reddit" on Google Play (to clarify) and just "Aqua" on the home screen. (The word makes me think of water {oceans, seas} or the colour {aquamarine} or the gem {aquamarine}. It also gives the app a colour theme.) Nov 25 15:42:53 i dont think it is particularly good or bad Nov 25 15:43:03 but the term Aqua might be trademarked Nov 25 15:43:59 The app would be listed as "Aqua for Reddit", though. Nov 25 15:44:04 Only after install would they see "Aqua". Nov 25 15:44:13 I also wonder about whether someone can trademark such a basic word. Nov 25 15:44:37 presumably Reddit have a naming policy, like Android Nov 25 15:44:49 Yeah, Reddit has given me permission to use this name. Nov 25 15:44:56 Even permission to use their logo. Nov 25 15:45:10 Though I'll have to run logo edits by them. Nov 25 15:45:17 even if the app name is safe, the logo or title screen can be a target if it just says "aqua" Nov 25 15:45:35 so you should use Aqua For Reddit everywhere in the app to be safe.... in my personal opinion Nov 25 15:45:36 Can someone really trademark a basic dictionary word? Nov 25 15:45:50 Windows, is probably trademarked Nov 25 15:46:01 i dont know Nov 25 15:46:01 <_Auron_> yeah but in the scope of specified industries Nov 25 15:46:08 Okay, that makes sense. Nov 25 15:46:22 <_Auron_> like Candy Nov 25 15:46:33 So a new OS called Windows would be violating, but a new double-glazing company called Windows wouldn't be violating MS's trademark. Nov 25 15:46:33 Bethesda filed a lawsuit against the minecraft developer who was making a game called Scrolls Nov 25 15:46:43 because Bethesda has Elder Scrolls Nov 25 15:46:56 there are patent trolls everywhere Nov 25 15:47:02 <_Auron_> yup Nov 25 15:47:56 even if they dont have a decent legal case... a patent troll just filing a suit against you can make your life hell Nov 25 15:48:19 i don't know about this specific term you are using but i would just be as cautious as possible Nov 25 15:48:33 then again, MS allegedly abandoned the 'Metro' name for what they now call 'modern UI' because a supermarket in Germany got lawyer-ish Nov 25 15:48:55 <_Auron_> haha Nov 25 15:49:20 hmm, chromecast support in comedy central, nice Nov 25 15:50:31 i take it a step further.... i make sure my app names have never been used to name anything else, if the name has been used by a company, website, or even a username on a forum, i wont use it Nov 25 15:51:42 Hmm. That's so restrictive, though. Nov 25 15:51:44 njcomsec: so you only ever use random strings, unpronounceable in any language which uses latin lettering? Nov 25 15:51:48 Then we have to namespace every single app. Nov 25 15:52:05 i use very abstract terms Nov 25 15:52:50 generally i pick 2 abstract and uncommon words Nov 25 15:53:37 of course if i google it, it will get a few hundred or even a few thousand hits.... but generally the words happen to be together by chance on some webpage Nov 25 15:53:52 if i see someone chose that name for a book, website, forum name, name of their cat Nov 25 15:53:54 i get worried Nov 25 15:53:56 you're aware of googlewhacks? Nov 25 15:54:03 i know im a bit paranoid Nov 25 15:54:09 googlewhat? Nov 25 15:54:46 actually, I should say, you sound like my boss... our site/app has a meaningless name, which hasn't exactly been kept secret, but hasn't been used in public until this year Nov 25 15:54:58 The test for trademark infringement is "likelihood of confusion". Nov 25 15:55:01 (From some website.) Nov 25 15:55:44 someone in Belgium - or Holland, he doesn't seem to be clear on the difference - has apparently tried to register it as a trademark, just about the same time he applied in the UK... he's going a bit mad over it Nov 25 15:56:16 hahaha Nov 25 15:56:33 he thinks someone is trying to scam us Nov 25 15:57:08 they're going to challenge our trademark, and ask us for cash to withdraw their challenge Nov 25 15:57:10 its possible Nov 25 15:57:28 your company has a mole! Nov 25 15:57:44 it's only him and me! and I'm reasonably sure I'm human, mostly Nov 25 15:57:50 lol Nov 25 15:58:11 to be honest, given that we've never done any business under that name, it'd just be simpler for us to change our trading name Nov 25 15:58:58 i feel like everything i do in life... i am walking on eggshells Nov 25 15:59:21 to protect mysself or someone else... or try not to offend someone or do something someone might misunderstand Nov 25 15:59:25 I prefer to walk on sunshine Nov 25 15:59:37 but thats how you get burnt((( Nov 25 15:59:59 <_Auron_> lol Nov 25 16:00:05 Is this idea of avoiding basic app names common? Nov 25 16:00:07 https://www.youtube.com/watch?v=iPUmE-tne5U Nov 25 16:00:12 Dictionary words, I mean. Nov 25 16:01:42 my maven project builds fine from console, but eclipse/adt doesn't recognize the classes of my apklib project thats included as a library under properties/android/library. any ideas? Nov 25 16:03:19 fancy42: You will likely get better help here with Android Studio Nov 25 16:03:43 ist it recommended to use android studio with maven? Nov 25 16:03:54 You definitely can yes Nov 25 16:04:11 There's even a little side panel by default for Maven in Android Studio Nov 25 16:04:24 Is it recommended, though? I thought Gradle was always recommended. Nov 25 16:04:36 my last update was that AS is still... in progress? but it really can't have any more bugs than eclipse, right? Nov 25 16:04:37 ytou can import maven just fine in android studio Nov 25 16:04:46 android studio is completely better than eclipse Nov 25 16:04:52 with the exception that ddms isn't integrated Nov 25 16:05:09 fancy42: Eclipse is way more stable for me. Nov 25 16:05:11 YMMV. Nov 25 16:05:22 troll? Nov 25 16:05:22 TacticalJoke, a matter of familiarity, I assume Nov 25 16:05:38 Who's trolling, yiati? Nov 25 16:05:43 lol idk Nov 25 16:06:17 anyways, i updated something of my whole maven/eclipse configuration and now i spend a day fixing it again Nov 25 16:06:27 (and it's not fixed yet) Nov 25 16:06:36 It's weird how the tiniest critisim of Android Studio can be met with trolling accusations. Seen it a lot in here. Nov 25 16:06:58 there's plenty of criticism of AS in here :) Nov 25 16:07:00 maven + eclipse is pain Nov 25 16:07:11 Leeds, you can't talk, either, you only use vim Nov 25 16:07:19 you don't even use my build plugin, even though you only use vim Nov 25 16:07:20 "Eclipse is way more stable" is not tiny though to be fair Nov 25 16:07:20 I can too talk Nov 25 16:07:49 Why is saying "Eclipse is more stable than AS for me" trolling? Nov 25 16:08:00 That's not what you said Nov 25 16:08:03 "way" Nov 25 16:08:06 more stable Nov 25 16:08:10 different level Nov 25 16:08:13 It's exactly what I said. Nov 25 16:08:17 nope Nov 25 16:08:26 eclipse isn't way more stable Nov 25 16:08:37 vim is extremely stable Nov 25 16:08:41 It's kinda lame to call someone a troll because they disagree. That's all I'm saying. Nov 25 16:08:53 pfn: It is for me. Nov 25 16:08:55 In my experience. Nov 25 16:08:58 emacs is excrutiatingly stable Nov 25 16:09:12 TacticalJoke: i am with you. i still like eclipse more Nov 25 16:09:21 there's nothing unstable about it, you just say a blanket statement which no support Nov 25 16:09:43 The last time I tried Android Studio, I was able to generate an "Internal IDE failure" every time I set up (using the wizard) a basic Android app. Nov 25 16:09:44 damnit, I forgot to pay attention to my phone while I was on my conf call to see how this volte shit worked Nov 25 16:09:51 pfn: I'm saying that it's not stable for me. Nov 25 16:09:53 If it's stable for you, great. Nov 25 16:10:12 TacticalJoke, there's a dialog/console that shows what exactly that error was Nov 25 16:10:22 and "the last time" no specific version or anything Nov 25 16:10:41 Who cares? Nov 25 16:10:49 or even time frame Nov 25 16:10:55 could have been in june of last year Nov 25 16:11:00 or whenever it was first launched/announced Nov 25 16:11:04 everyone should use what he likes most. Nov 25 16:11:11 TacticalJoke: AS has changed a lot. I had lots of issues "the last time I tried it" also, but now its waaaaay better. Nov 25 16:11:20 just know that continuing to use eclipse is a path for pain Nov 25 16:11:21 does AS have the concept of workspaces? :D Nov 25 16:11:22 fmontano: The last time was around three weeks ago. Nov 25 16:11:32 I am very glad I forced my company to make the switch.. we are never looking back Nov 25 16:11:52 That's cool, fmontano. Unfortunately, AS hasn't been stable in my use. It also doesn't support something I need (JVM unit tests). Nov 25 16:11:56 NDK is still not officially supported Nov 25 16:11:59 fancy42, projects == workspaces in Eclipse Nov 25 16:12:08 fancy42, Eclipse projects == modules in AS Nov 25 16:12:11 So, when someone asks "Is AS stable?" in here, I'll be honest and tell them that it hasn't been in my experience. Nov 25 16:12:17 Despite the weird reactions that seems to create. Nov 25 16:12:30 because you're wrong, your experience is anecdotal and contrary to everyone else's Nov 25 16:12:31 beo6, NDK code builds just fine Nov 25 16:12:40 pfn: I'm wrong about my experience? That's extremely arrogant of you. Nov 25 16:12:41 android studio doesn't do anything special with ndk Nov 25 16:12:47 but yes, IDEA suite has no C/C++ editor yet Nov 25 16:13:00 TacticalJoke, yep, it is, just keep your recommendation to yourself, because no one cares about it Nov 25 16:13:05 No. Nov 25 16:13:09 especially when it's contrary to everyone else Nov 25 16:13:14 you'll just be called out for a troll Nov 25 16:13:29 pfn: "Agree with everyone or keep quiet." Nov 25 16:13:30 Yeah, no. Nov 25 16:13:31 Lets just agree that for TacticalJoke it's not stable, for everyone else it is Nov 25 16:13:34 why is it 'building gradle project info' :D Nov 25 16:13:42 SimonVT: I've seen a lot of similar reports on /r/androiddev. Nov 25 16:13:47 Though they get the same reaction: downvoted. Nov 25 16:13:54 i would only try to use AS for new projects. When i tried to import my old eclipse project nothing worked. Nov 25 16:13:56 I guess it's stable for a lot of people but not all. Nov 25 16:14:11 because random "it doesn't work" posts are useless and deserve to be downvoted Nov 25 16:14:19 Those aren't the posts. Nov 25 16:14:34 For the majority it's perfectly stable Nov 25 16:14:49 beo6, the point is to actually learn how Gradle works Nov 25 16:14:51 The thing is, we don't have evidence of that. Nov 25 16:14:59 beo6, of you'll have issues always. Nov 25 16:15:15 If we're gonna be anal about claims, we then have to substantiate "for the majority it's stable". Nov 25 16:15:22 (Also, it will make development and CI way easier if you understand that build system isn't the same as IDE) Nov 25 16:15:26 That, too, is just anecdotal, from what I can see. Nov 25 16:16:42 make -j 32 Email Exchange2 Nov 25 16:16:47 * pfn twiddles thumbs Nov 25 16:16:56 moving aosp to ssd has been the best thing ever Nov 25 16:18:45 intellij imports aosp code so effortlessly, it's nice Nov 25 16:19:08 well importing my old project to AS leads to the same issue (not recognizing the classes of the apklib) and i think my chances of fixing it in AS are even more slim :D Nov 25 16:19:20 fancy42, apklib isn't supported by AS Nov 25 16:19:22 use aar Nov 25 16:19:50 but apklib is an easy fix, build with maven once, add your bin/classes to your project libraries Nov 25 16:19:53 and poof, it works Nov 25 16:20:03 change your resdir in project structure to point to your bin/res as well Nov 25 16:20:20 ugh, forgot to unstash my changes before building email+exchange Nov 25 16:21:18 pfn, thanks for the support, i'll try it later on. i will have to fix this in eclipse anyways since it's for my company :D Nov 25 16:22:56 there is so much fun stuff i wanna be working on... eclipse+maven is not one of them -_- Nov 25 16:23:38 I feel for you fancy42, I have a similar setup at work Nov 25 16:26:24 I forced everyone to use intellij on my current project Nov 25 16:26:24 heh Nov 25 16:28:10 hmm, shoulda assigned more cpus to my vm, only getting 50% utilization on make -j 32 Nov 25 16:28:26 pfn is that because Swift is so bad ? Nov 25 16:28:32 * g00s wonders if pfns gets the joke Nov 25 16:28:49 nope Nov 25 16:29:20 pfn https://groups.google.com/forum/#!topic/adt-dev/j2EwlTVYPWg Nov 25 16:29:32 comparison : AS vs Swift :) Nov 25 16:29:43 Xavier Ducrohet Nov 25 16:29:43 Nov 21 Nov 25 16:29:44 Thank you for the detailed and actionable feedback. We'll get right on it. Nov 25 16:29:46 I agree with xavd Nov 25 16:29:54 i think it was a joke Nov 25 16:30:16 * g00s hopes anyhow :) Nov 25 16:31:12 the initiator or xavd's response? Nov 25 16:31:24 lol, the initiator Nov 25 16:32:34 considering he seems like a nobody, I wouldn't count on it Nov 25 16:32:36 From : "Trademark infringement is improper or unauthorized use of a trademark in a way that is likely to cause confusion as to the source of that product." Nov 25 16:32:47 Hmm, I doubt it's worth worrying about. Nov 25 16:33:09 its not worth worrying about until its worth worrying about Nov 25 16:33:13 * g00s tries being obvious Nov 25 16:33:32 That's tautologically tautological. Nov 25 16:34:46 hmm, maybe I'll just embed luaj since it's available on mavencentral Nov 25 16:34:55 don't feel like dealing with rhino anymore Nov 25 16:36:08 12 minutes to build framework and email/exchange, not bad Nov 25 16:38:03 ugh, no wonder akm doesn't work on lollipop anymore, LockPatternUtils doesn't re-calculate password strength on saving :( Nov 25 16:39:37 I guess time to file a bug Nov 25 16:40:34 akm? Nov 25 16:40:39 advanced keyguard manager Nov 25 16:41:34 https://code.google.com/p/android/issues/detail?id=80520&q=resetPassword&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Nov 25 16:41:38 oh, someone got to it before me Nov 25 16:42:12 Hello folks, is it possible to have something scrollable (horizontal) (like a list of images) within a viewpager (2 tabs) that is already have an action what i swipe horizontaly ? Will be any conflict or the one inside the tab will have priority ? Nov 25 16:42:23 its fine Nov 25 16:42:33 <_Auron_> GC ovearhead limit exceeded.. o.O Nov 25 16:42:40 <_Auron_> I think I just broke eclipse Nov 25 16:42:52 racar the top one will handle the touch events and not pass them to the parent view Nov 25 16:43:26 for example, i have a pannable/zoomable imageview in a viewpager, and it works fine for the most part Nov 25 16:43:51 pfn, I see, never figured out a usecase for such apps but ok :) Nov 25 16:44:06 never? Nov 25 16:44:22 JacobTabak, Thats what i would expect. thx Nov 25 16:44:32 you don't lock your phone, I assume Nov 25 16:46:11 I'm having wierd problems with an enum Nov 25 16:46:16 I used to, but I didn't really feel that was necessary and then I wrote a music player with remotecontrolclient support and only the default slide lock supported lockscreen controls :p Nov 25 16:47:02 https://code.google.com/p/android/issues/detail?id=78272#c6 Nov 25 16:47:03 meh Nov 25 16:47:13 http://pastebin.com/M6Lf0ptK Nov 25 16:47:29 https://code.google.com/p/android/issues/detail?id=80115 this one is fun too :) Nov 25 16:47:44 adq, 0.14.4 is out Nov 25 16:47:57 yeah and problematic with shrinkresource Nov 25 16:47:59 when I print Endpoint.scores.getEndpoint() I get /MyFacebookAppId/scores Nov 25 16:48:06 instead of /%/scores Nov 25 16:48:09 speaking of 0.14.4, they published 1.0.0-rc1 Nov 25 16:48:10 time to update Nov 25 16:48:15 read the issue Nov 25 16:48:19 Why does this not apply the style to my view: https://gist.github.com/danijoo/465b720166f4fa0e05f3 Nov 25 16:48:22 any idea wtf is going on? Nov 25 16:48:23 there is no link of the "new rc1" Nov 25 16:48:31 hi there Nov 25 16:48:32 it's still the old from the 19th/20th Nov 25 16:48:37 ? Nov 25 16:48:51 in line 7 I call super and put the style in it, but it does nothng at all Nov 25 16:48:52 is there a button in android that act like a 3-state button? Nov 25 16:49:05 pfn, http://tools.android.com/download/studio/canary/latest was released earlier Nov 25 16:49:18 but they announced a "REAL rc1" yesterday Nov 25 16:49:21 however there is none Nov 25 16:49:25 I mean we can transit from state to state of that button Nov 25 16:49:36 we're many very confused :) Nov 25 16:49:37 adq, http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.android.tools.build%22 Nov 25 16:49:49 it was published tocentral yesterday Nov 25 16:50:00 * pfn runs integration tests against 1.0.0rc1 Nov 25 16:50:06 so we have to fetch it from there non?? Nov 25 16:50:07 now* Nov 25 16:50:10 ? Nov 25 16:50:15 pfn, I might also not really understand what your app even does :p Nov 25 16:50:17 no, the gradle plugin has always been published to central Nov 25 16:50:33 Zharf, it turns off pin/password lock depending on certain criteria Nov 25 16:50:44 ok thanks for the links anyway Nov 25 16:51:33 I think I thought so, but can't figure out why you would want it Nov 25 16:51:42 This is really strange it doesn't make ANY sense Nov 25 16:51:43 hi, I have trouble understanding the logic behind the slidingmenu library Nov 25 16:52:09 what is the purpose of setBehindContentView ? Nov 25 16:52:30 adq, and when you specify android plugin version in your gradle scripts, it's pulled from there Nov 25 16:52:31 isn't setMenu enough ? Nov 25 16:53:01 Marlinski, don't use sliding menu anymore... Nov 25 16:53:39 pfn, yup, so i should switch from gradle 0.14.x to 1.0.0-rc1, right? Nov 25 16:53:46 that's a big jump lol Nov 25 16:53:51 it's a small change Nov 25 16:54:00 just relabling the most stable 0.14.x to 1.0 Nov 25 16:54:24 whenever I select appcompat as a library… No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'. Nov 25 16:54:33 No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid'. Nov 25 16:54:36 tricknology, you shouldn't be using Holo Nov 25 16:54:42 appcompat doesn't have holo Nov 25 16:54:43 No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid.Inverse'. Nov 25 16:54:51 no shit Nov 25 16:54:54 ooh ay that would be it Nov 25 16:55:18 thanks, pfn.. what should I use instead? Nov 25 16:55:32 Theme.AppCompat and its various relatives Nov 25 16:55:45 look in res/values/styles.xml and res/values/themes.xml in appcompmat Nov 25 16:55:55 thanks Nov 25 16:56:04 pfn: well, the navigation drawer doesn't really allow me to easily slide the actionbar Nov 25 16:56:23 why slide the actionbar, yuck Nov 25 16:56:41 tricknology, http://developer.android.com/reference/android/support/v7/appcompat/R.style.html Nov 25 16:56:42 probably a dumb question but where do i set this? manifest? Nov 25 16:56:59 pfn: plus, I need a Left and Right drawer Nov 25 16:57:07 Marlinski, drawerlayout does both Nov 25 16:57:10 ah style Nov 25 16:57:10 simultaneously even Nov 25 16:57:25 pfn: : it works with the Navigation Drawer (gravity end) but it seems a little hacky Nov 25 16:57:43 especially due to the fact that the actionbar doesn't slide Nov 25 16:57:43 hacky? works fine Nov 25 16:57:56 yes but I find that it doesn't render well Nov 25 16:58:05 renders fine Nov 25 16:58:14 also it annoys me that slide should be done at the very border Nov 25 16:58:26 that's easily tweaked Nov 25 17:00:08 im having some trouble with changing activities and exchanging information between them Nov 25 17:00:50 ok thanks pfn, got few error like needing to update wrapper to 2.2, seems to work :) Nov 25 17:01:04 * pfn doesn't use gradle fyi Nov 25 17:01:04 :p Nov 25 17:01:34 ugh, I hate waiting so long to rebase branches, such ugly merge conflicts Nov 25 17:05:50 how to gracefully propose the user to open the right drawer ? Nov 25 17:06:08 because the button on the actionbar placed on the left open the left drawer Nov 25 17:06:18 should I add a button for the right drawer symetrically ? Nov 25 17:06:28 (in that case were goes the extra action ?) Nov 25 17:08:30 Marlinski, add an action bar icon, use a floating button elsewhere, etc. Nov 25 17:08:39 add a mini hamburger along the right edge Nov 25 17:09:54 how can i change activities and exchange values? Nov 25 17:10:04 for instance just a boolean value Nov 25 17:10:23 StingRay` see this? http://phandroid.com/2014/11/24/cyanogen-inc-launches-themes-studio-with-design-challenge-contest/ Nov 25 17:11:52 interesting http://www.androidpolice.com/2014/11/25/lollipop-bug-users-reporting-apps-frequently-restart-and-performance-suffers-the-longer-you-go-without-a-restart/ Nov 25 17:12:27 if R cannot be resolved is there a chance that the app context is not set properly in the manifest? Nov 25 17:12:55 usually means xml is broken somewhere Nov 25 17:13:41 * g00s glad stayed with 4.4.4 Nov 25 17:13:45 tricknology, I don't know if this applies to android studio, but I find resources in aar/apklib don't resolve properly in xml Nov 25 17:14:20 why g00s? 4.4.4? Nov 25 17:14:31 * pfn is happy with lollipop Nov 25 17:14:37 I've had this problem before, just try and rebuild the project Nov 25 17:15:28 I have rebuilt.. same thing saying R cannot be resolved. It wants me to import R and I get a list of R’s from projects with similar names Nov 25 17:15:38 if I import the R of my project everything is good. Nov 25 17:15:44 smart lock trusted places in lollipop is annoying Nov 25 17:15:49 it won't let me pick home/work Nov 25 17:15:50 jsut weird.. never happened before Nov 25 17:16:11 at least it lets me add a custom place Nov 25 17:16:16 oh where you don’t have to use the lock screen at home/work? I was wondering if that feature existed.. Nov 25 17:16:26 tricknology, in lollipop yes Nov 25 17:16:30 hi guys, i have subclassed an EditText with a custom OnTouchListener, how can i clear the text inside the OnTouchListener Nov 25 17:16:33 ..where is that? Nov 25 17:16:35 in prior versions of android, you could use 3rd party apps to enable it Nov 25 17:16:40 tricknology, security -> smart lock Nov 25 17:16:52 pangelovski, use a callback Nov 25 17:17:02 or send a message to a handler Nov 25 17:17:09 thx pfn Nov 25 17:17:12 tricknology, if you don't have trusted places under smart lock, then you need to wait until your device gets play services 6.5 (or side load it manually) Nov 25 17:17:15 tricknology:i am but i am not sure how to reference "this" inside the callback Nov 25 17:17:27 get an external global reference Nov 25 17:17:30 maybe google maps needs to be updated Nov 25 17:17:36 Context context = (context) this Nov 25 17:17:56 assuming that your outer class is an activity or fragment.. something that carries the proper context Nov 25 17:17:58 that's the best cast ever... Nov 25 17:18:06 lol Nov 25 17:18:10 that will break Nov 25 17:18:16 you con’t even need the cast Nov 25 17:18:26 but I do it sometimes because I like to have exlipse make fields for me Nov 25 17:18:32 ugh, 66% off sale on swiftkey skins? I just bought material last night, but it was 99c to begin with, heh Nov 25 17:19:04 and of course, the material pack is 99c now Nov 25 17:19:08 and I already bought minimal dark, damniut Nov 25 17:19:36 protip: don't buy stuff right before black friday :) Nov 25 17:19:42 It seems I have accidentally put my app in Production in the Google Play console, is there a way to set my Alpha version to published without publishing the production one? (It doesn’t let me delete the app in production) Nov 25 17:20:04 pfn I only have trusted face Nov 25 17:20:32 tricknology, not even trusted device? Nov 25 17:20:41 I have trusted device Nov 25 17:20:41 tricknology, you need play services 6.5 for trusted places Nov 25 17:20:48 ah yes you said that Nov 25 17:20:54 damn you emulator!!!!!!!!!! Nov 25 17:20:55 I have a stock N6 Nov 25 17:21:18 hi guys, im pulling stuff from my repo and get following error depending my project "the system identifier must begin with either a single or double quote character....." someone knows how to solve this error? is this dependend on project settings? Nov 25 17:21:52 where is a trusted site to get the latest play services build? Nov 25 17:22:05 .. it recognized my face pretty well btw Nov 25 17:22:14 The Facebook SDK has stopped using native log in controls since yesterday :( this is most upsetting. Nov 25 17:22:20 where is play service 6.5 sdk? they announced it last week; would be better if they just announced it when it was available Nov 25 17:22:34 ^^ Nov 25 17:22:44 does anyone have a solution for this: http://stackoverflow.com/questions/27132413/set-style-programatically-does-not-work ? Nov 25 17:22:52 I see it on apkmirror but IDK if i trust that site Nov 25 17:23:17 there was one site (forget which) where I downloaded an apk and it was the app btu wrapped in some hot100 malware shit Nov 25 17:23:26 im glad I decompiled it before installing it Nov 25 17:23:49 tricknology, apkmirror is generally trustworthy; as long as the signature matches, it's fine Nov 25 17:24:00 on updated OS, it is Nov 25 17:24:02 danijoo i think you are using wrong ctor Nov 25 17:24:10 use the one with attributeset or whatever Nov 25 17:24:12 ctor? Nov 25 17:24:14 where can I go to get the original signature to compare? Nov 25 17:24:21 constructor Nov 25 17:24:25 danijoo, need the defStyle constructor Nov 25 17:24:31 tricknology, the original signature is on your device Nov 25 17:24:36 it won't let you install if the signature doesn't match Nov 25 17:24:40 but im calling the super defstyle constructor there Nov 25 17:24:42 oh cool Nov 25 17:24:45 super(context, null, R.style.GreenCardView); is certainly wrong Nov 25 17:24:53 was thinking it was on a google site somewhere.. Nov 25 17:24:58 oh, missed that Nov 25 17:25:10 danijoo you aren't passing in attributeSet Nov 25 17:25:23 danijoo, that works Nov 25 17:25:29 g00s, that's not how defstyle works Nov 25 17:25:33 using fragments, can I reuse a fragment xml? Nov 25 17:25:34 yeah because it doesnt need any attributes. I just want the style Nov 25 17:25:44 use this http://developer.android.com/reference/android/view/View.html#View(android.content.Context, android.util.AttributeSet) Nov 25 17:25:46 I am following this example: http://manishkpr.webheavens.com/android-navigation-drawer-example-using-fragments/ Nov 25 17:25:59 is it really necessary to have three different xmls? Nov 25 17:26:11 if you want to have that many xml files Nov 25 17:26:17 g00s: and how does this let me set a custom style? Nov 25 17:26:18 i thought you said you like building layouts programmatically Nov 25 17:26:21 Ideally I would have one? Nov 25 17:26:28 g00s, that's not correct Nov 25 17:26:34 g00s, the defStyle constructor is correct Nov 25 17:26:42 I do btu I’m getting used to how fragments work before starting on that voodoo Nov 25 17:26:50 danijoo oh, sorry overriding theme in xml :( Nov 25 17:26:52 e.g. I do new TextView(context, null, android.R.style.TextAppearance_Large) all the time Nov 25 17:27:06 this might be an appcompat bug Nov 25 17:27:21 danijoo make sure your context is from the activity Nov 25 17:27:31 yes it is Nov 25 17:27:41 im trying to style the cardviews in a listview with this Nov 25 17:28:10 yay, got my refund for the theme Nov 25 17:28:13 time to buy theme pack Nov 25 17:28:18 cheap bastard ! Nov 25 17:28:23 refund for $99 Nov 25 17:28:26 so g00s, I can reuse the 1 xml or no? Nov 25 17:28:27 $.099 Nov 25 17:28:47 I'm poor Nov 25 17:28:49 what do you expect Nov 25 17:29:49 passion Nov 25 17:29:57 pfn lol, when are you going to donate your machine with ssds and 64G ram to salvation army? let me kwno so i can wait for it Nov 25 17:30:09 I don't have 64g Nov 25 17:30:12 i'll stand in line :) Nov 25 17:30:17 I do have 1tb of ssd though Nov 25 17:30:19 it seems to apply my android:forground and color Radius correctly, but not the cardBackgroundColor. Nov 25 17:30:25 seems like a bug to me Nov 25 17:31:20 pfn defines new kind of poorness ;) Nov 25 17:31:44 yeah, I only go on month long vacations to asia and week trips to the caribbean Nov 25 17:31:53 :p Nov 25 17:31:59 :D Nov 25 17:32:12 hey pfn, ltns Nov 25 17:32:21 sup homeslice Nov 25 17:32:31 the usual, cursing Android Studio Nov 25 17:32:34 Activity cannot be cast to Aplication? Nov 25 17:32:57 Its latest diversion is selecting a java 8 JDK, thereby neatly preventing me from compiling android stuff Nov 25 17:32:59 tricknology: no. because its 2 totally different things Nov 25 17:33:01 tricknology no magic can do that Nov 25 17:33:18 when I select a java 7 jdk in project structure, it just changes it back to java 8. Any idea how to get it to stop doing that? Nov 25 17:33:20 I want to be a wizard :( Nov 25 17:33:24 I watn to believe Nov 25 17:33:29 you try to cast a room into a house ^^ Nov 25 17:33:34 (i'm on 1.0rc1 AS) Nov 25 17:34:13 wyvern: you need to choose *android* sdk not java Nov 25 17:34:25 error happening on this: ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, data); Nov 25 17:34:38 “this†is an Activity of FragmentActivity Nov 25 17:34:40 errors on both Nov 25 17:34:41 gordon_: perhaps you have not used the 'sdk location' dialog in recent versions of AS? Nov 25 17:35:26 * pfn uses intellij Nov 25 17:35:30 none of that silliness occurs there Nov 25 17:35:32 I'm talking specifically about the JDK location, not the Android SDK. Nov 25 17:35:55 Unfortunately up until *extremely* recently (like, Friday), IntelliJ didn't support the latest gradle build tools version Nov 25 17:36:06 But, the latest EAP does, so perhaps I'll go back to Intellij. Nov 25 17:36:33 intellij 14 supports sbt fully Nov 25 17:36:35 so I use that Nov 25 17:36:44 my plugin has been standardized into 14 Nov 25 17:36:47 :) Nov 25 17:36:50 You and your sbt. Nov 25 17:36:55 sbt > gradle Nov 25 17:37:12 You and the three other sbt users can have all the fun you want :) Nov 25 17:37:32 thousands, but sure, ok Nov 25 17:37:39 wyvern: recent version is which one ? 1.0RC ? Nov 25 17:37:47 or 0.8.14 ? Nov 25 17:37:49 gordon_: yep Nov 25 17:37:52 1.0RC Nov 25 17:38:04 I found it problematic Nov 25 17:38:09 so I dont know, sorry Nov 25 17:38:22 I need to add analytics to my sbt plugin, artifactory/etc. aren't enough Nov 25 17:38:24 :( Unfortunately this project's build only works with 0.9.2+, and all of those versions have ... issues Nov 25 17:39:01 pfn: how long does it take to build the project ? Nov 25 17:39:19 gordon_, what project? I normally have rebuilds in <10 seconds Nov 25 17:39:29 from clean ? Nov 25 17:39:34 thats long Nov 25 17:39:38 oh wait, proguard Nov 25 17:39:41 with proguard? Nov 25 17:39:50 no Nov 25 17:39:59 proguard is skipped on many rebuilds Nov 25 17:40:02 no is answer to which question Nov 25 17:40:08 ok Nov 25 17:40:10 no proguard on rebuild Nov 25 17:40:11 multidex ? Nov 25 17:40:12 or what Nov 25 17:40:18 where is the magic :) Nov 25 17:40:22 but 10 seconds includes deploying a nd starting on device Nov 25 17:40:37 gordon_, I have a proguard cache and optional multidex support Nov 25 17:40:45 possible to do some nice robolectric flavour ? ;) Nov 25 17:40:53 seems nice Nov 25 17:40:56 https://github.com/pfn/android-sdk-plugin/pull/124 Nov 25 17:40:58 merged that yesterday Nov 25 17:41:03 what can cause this error? Caused by: java.lang.ClassCastException: com.dis.my.project.test.DummyActivity cannot be cast to android.app.Application Nov 25 17:41:22 tricknology: casting ? Nov 25 17:41:24 unable to instantiate application Nov 25 17:41:24 tricknology, an activity is not an application Nov 25 17:41:27 much like a cat is not a dog Nov 25 17:41:29 I am not casting it thouhg Nov 25 17:41:32 but you are Nov 25 17:41:38 well indirectly I guess Nov 25 17:41:40 show the code if you can Nov 25 17:41:54 It’s basically this: Nov 25 17:41:55 gordon_, robolectric isn't anything I've been interested in working on lately Nov 25 17:41:56 pfn: care to make some nice post about it ? Nov 25 17:41:59 I rarely write unit tests Nov 25 17:42:00 http://manishkpr.webheavens.com/android-navigation-drawer-example-using-fragments/ Nov 25 17:42:08 pfn: that hurts Nov 25 17:42:12 integration tests or go home Nov 25 17:42:19 both Nov 25 17:42:23 gordon_, on a unit level, my code generally always works Nov 25 17:42:39 I've heard that before :D Nov 25 17:42:49 * pfn shrugs Nov 25 17:42:57 I've never had any bugs where unit testing was very useful Nov 25 17:43:06 I’m trying to deactivate an apk I’ve accidentally marked as published in Google Play keeps but the console says, ‘Previously active APKs supported more devices than those in the draft configuration. Some devices will not receive upgrades.’ Nov 25 17:43:10 integration tests catch the vast majority of anything interesting Nov 25 17:43:11 Even though all I changed was the version code? Nov 25 17:43:29 http://us.louisvuitton.com/eng-us/products/petite-malle-damier-ebene-008701 Nov 25 17:43:38 why is there so little info for this thing online... Nov 25 17:43:39 whoops Nov 25 17:43:40 pfn: so what do you use for 'integration testing' ? Nov 25 17:43:54 gordon_, instrumented tests Nov 25 17:44:16 gordon_: http://pastebin.com/6EvfSQr2 Nov 25 17:44:16 pfn: meaning ? Nov 25 17:44:26 gordon_, instrumented tests that run on device Nov 25 17:44:44 pfn $5200 ? Nov 25 17:44:51 * g00s thinks pfsn is not poor after all Nov 25 17:45:11 well I can write instrument tests that checks the if label is 'hello world' Nov 25 17:45:47 gordon_, yeah, but my tests are not so trivial Nov 25 17:45:59 like I said, I don't find value in testing if my label is "hello world" Nov 25 17:45:59 extends ActivityInstrumentationTestCase2 Nov 25 17:46:33 wtf was that LV trunk? Nov 25 17:46:42 for me functional test are espresso Nov 25 17:46:44 someone’s ballin’ Nov 25 17:47:17 pfn is poor because he needs to stay wit gucci Nov 25 17:47:27 Christmas shopping, pfn? Nov 25 17:47:30 or maybe pfn is a she? Nov 25 17:47:50 Is there a way to set the width and height of a drawable used in a Compound Drawable Nov 25 17:47:54 while his collegues buy LV Nov 25 17:48:27 But that’s none of my business Nov 25 17:49:54 hmm, I guess I can stop using my hacked email/exchange apks now with smart lock Nov 25 17:50:15 Hmm guess there is this Nov 25 17:50:16 http://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(int, int, int, int) Nov 25 17:51:22 Looks like I can only set it programatically, not via xml Nov 25 17:52:25 ok.. getting somewhere on that class cast.. android:name=“com.my.test.DummyActivity†made it think it was an Application? Nov 25 17:52:46 changed to android:name=“.DummyActivity†now getting classdefnotfound Nov 25 17:52:51 tricknology: yes. androd:name sets the application class Nov 25 17:53:01 ahahaha Nov 25 17:53:11 what do you try do do with this? Nov 25 17:53:30 with what? Nov 25 17:53:38 I’m jsut tryign to get drawer nav to work Nov 25 17:53:42 setting an activity as application ^^ Nov 25 17:53:51 saw it somewhere stupidly Nov 25 17:54:24 stupidly put it in Nov 25 17:54:27 yiati: you can set that in XML Nov 25 17:54:34 yano: drawableLeft, drawableRight, etc. Nov 25 17:55:28 I uploaded a second apk with the only difference being the version number icreased and Google Play is saying, ‘Previously active APKs supported more devices than those in the draft configuration. Some devices will not receive upgrades.’ Any thoughts on why? Nov 25 17:55:31 this example is all errors... Nov 25 17:55:33 fml Nov 25 17:55:34 JakeWharton: Yep I found that. I am trying to get the drawable to be a certain size though (it's a vector) Nov 25 17:55:49 Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.support.v4.widget.DrawerLayout Nov 25 17:55:53 who does that? Nov 25 17:56:14 you can still give a vector intrinsic size with its width and height properties Nov 25 17:57:35 JakeWharton: You mean directly to the asset itself right? not via xml? Nov 25 17:57:49 i mean on the vector Nov 25 17:58:08 the vector has a viewportWidth and a viewportHeight but you can also specify width and height as the default size Nov 25 17:58:41 I am trying to find an example of fragment transactions with shared elements using 5.0 with no luck. Nov 25 17:59:27 Anyone has an example or know where to go? I am trying to do use a shared element between a row on a list that will become the title (textview) on a detail fragment Nov 25 17:59:52 I have found examples between fragments and activities, but none going from fragment to fragment Nov 25 18:00:14 fmontano: can you link to that example? im just looking for something like that :p Nov 25 18:00:50 danijoo: sure, let me look for it Nov 25 18:01:52 so 5.0 has more problems Nov 25 18:02:05 the Play Music app has been closed multiple times Nov 25 18:02:19 one time I could not get it to play any music at all Nov 25 18:02:23 without force-closing it Nov 25 18:03:06 I feel like most background apps are being killed Nov 25 18:03:21 so facebook, for example, takes a long time to resume Nov 25 18:03:32 matt_j there is a bug for that Nov 25 18:03:46 :\ Nov 25 18:03:49 http://www.androidpolice.com/2014/11/25/lollipop-bug-users-reporting-apps-frequently-restart-and-performance-suffers-the-longer-you-go-without-a-restart/ Nov 25 18:04:06 how possible would it be to downgrade to 4.x without losing data? Nov 25 18:04:45 oh yeah, chrome restarts... hehe.. lost my tabs so many times now Nov 25 18:05:31 if you ever read the code for adjusting the process oom in ActivityManager - its so damn complicated Nov 25 18:05:48 i bet dianne messed something up :) Nov 25 18:05:53 chrome restarts shouldn't cause you to lose your tabs Nov 25 18:06:04 the tab state is stored on-disk Nov 25 18:06:05 I've lost my tabs several times Nov 25 18:06:18 sure, but it's not because of the process restarting Nov 25 18:06:20 aaaah crap.. Nov 25 18:06:21 music playback from different apps has stopped Nov 25 18:06:37 and the home screen lags like crazy when i press the home button :O Nov 25 18:06:45 sometimes no wallpaper, no icons Nov 25 18:07:52 sounds like ART has a memory leak Nov 25 18:08:23 I'm sending file using wifi direct from phone to tablet. works great. restart all and try from tablet to phone, same code, FAILS! anybody got idea why? Nov 25 18:08:48 they connect seccessfully Nov 25 18:08:54 yoavst well, wifi direct on android is flaky as hell Nov 25 18:08:58 POS example.. Nov 25 18:09:19 g00s: but it worked :P Nov 25 18:09:33 when the stars are aligned, yes, sometimes Nov 25 18:09:36 I don't really care about this since I only need to send from phone to tablet Nov 25 18:09:46 but maybe it happens with other phones to the tablet Nov 25 18:09:54 so... :/ Nov 25 18:10:11 * g00s dreads getting that to work in his app also Nov 25 18:10:28 * g00s prepares for 1 star reviews Nov 25 18:10:38 g00s: oh, It is for a developer challange Nov 25 18:10:44 for using something with bluetooth product Nov 25 18:10:48 but bluetooth is so much slow Nov 25 18:11:00 so I use it only for broadcasts Nov 25 18:13:14 g00s: does UDP safe enough for sending 2mb files? Nov 25 18:14:04 hm, i don't know. transmitting largish files is actually a special thing. there are protocols like supertcp for that, but 2mb isn't "large" i guess Nov 25 18:14:56 i don't have much experience with udp, sorry. last i used it was in clustering heartbeat application Nov 25 18:15:29 files from the large hadron collider are "large" :) Nov 25 18:15:37 because the only lib I found for wifi direct is https://github.com/pocmo/Android-Network-Intents Nov 25 18:15:43 you can lose packet with UDP, because there is no retransmission system like TCP does Nov 25 18:16:02 yoavst there is the opengarden one, but that might just be for chat Nov 25 18:16:29 http://opengarden.com/ Nov 25 18:16:31 Click here to send us your info to be notified when the SDK is ready! Nov 25 18:18:13 they are probably waiting for wifi direct on android to actually work :) Nov 25 18:18:18 :P Nov 25 18:18:25 what is the proper way to close a drawer? Nov 25 18:18:28 drawer.closeDrawer(view);? Nov 25 18:18:39 getting ClassCastException android.widget.FrameLayout$LayoutParams to android.support.v4.widget.DrawerLayout$LayoutParams Nov 25 18:19:05 damn Nov 25 18:19:45 i read a bug report by one of the devs basically outlining the situation Nov 25 18:19:52 works good on iOS, not android Nov 25 18:19:58 g00s if I send file with UDP, I can be sure that if *it arrived* the file will be non corrupted? Nov 25 18:20:16 you will have to do some flow control, reframing, packet reconstruction probably Nov 25 18:20:30 out of order correction, etc Nov 25 18:21:58 yoavst also see http://shop.oreilly.com/product/0636920028420.do Nov 25 18:22:07 ping canadiancow Nov 25 18:22:20 oh i hope somebody got a phone :) Nov 25 18:22:41 an invite, if he wants it lol Nov 25 18:23:08 g00s: till it arrive the challange will end Nov 25 18:23:25 yoavst don't have them send it udp :) Nov 25 18:23:31 :P Nov 25 18:24:06 an EditText inside a LinearLayout. edittext click event is not propagating to the layout's onclicklistener. is this a known issue. i couldn't find anything Nov 25 18:24:31 ^question mark missing Nov 25 18:25:13 ok. I think I'll work with what I already got, if it won't work for the voters then I'll said it works for me :P Nov 25 18:26:17 it's udp... Nov 25 18:26:25 udp is a non-guaranteed, non-ordered datagram protocol Nov 25 18:26:34 perfectly ideal for stuff like bittorrent Nov 25 18:27:52 pfn: In my app I send pictures from phone to tablet Nov 25 18:27:56 is it ideal for this case? Nov 25 18:28:42 yoavst, local? no, tcp Nov 25 18:28:54 and especially considering it's pictures Nov 25 18:29:03 if it were some media stream, udp would be better Nov 25 18:29:43 bitkiller: https://ajma.wordpress.com/2012/05/11/bubbling-onclick-events/ Nov 25 18:30:25 click events don't get propagated like touch events.. the button handles the touch and fires up its click handler, and then marks the event as handled (whether your click handler did anything or not) Nov 25 18:30:57 woo Nov 25 18:31:07 that was rough… I hate when examples are broken Nov 25 18:31:34 anybody there use Volley library ? Nov 25 18:31:52 i do Nov 25 18:32:59 sarbs: are you use Volley ? Nov 25 18:33:05 yeah Nov 25 18:33:29 ohhh boy Nov 25 18:33:42 can you help me ? Nov 25 18:33:55 I'm trying send an image to json web service Nov 25 18:34:31 but doesn't work Nov 25 18:34:56 what's the error? Nov 25 18:34:58 doesn't work is never helpful Nov 25 18:35:23 1 minute Nov 25 18:35:35 I'm go post in pastebin.com Nov 25 18:37:06 doesn't work is #1 feedback Nov 25 18:37:24 everything is so easily fixed with those 2 words Nov 25 18:37:34 it's like a magic incantation Nov 25 18:37:50 number 1 best feedback make you good fix Nov 25 18:38:02 1star uninstall Nov 25 18:38:03 :)) Nov 25 18:38:31 I ate nothing last night but a jar of olives and triscuits.. regretting it today Nov 25 18:39:01 http://pastebin.com/rjsPXaFM Nov 25 18:40:28 I was doing the coursera app101 course, but it made me bored lol. Does anyone know a better course than that to learn how to develop android apps Nov 25 18:40:30 ? Nov 25 18:40:41 sarbs, what Nov 25 18:40:57 canadiancow birdie told me you were looking for a 1+1 invite Nov 25 18:41:30 got one, thanks Nov 25 18:41:36 shibby Nov 25 18:43:03 sheilong: nerd ranch book is pretty cool Nov 25 18:43:13 _bit_ outdated, but still worth it Nov 25 18:43:35 fernandopaiva ok, read thru the code.. what's going wrong with it? Nov 25 18:45:22 sarbs: I'm trying send the image, but image doesn't send Nov 25 18:45:27 when I try get result Nov 25 18:45:57 does Log.i("", result) print a lot of characters Nov 25 18:46:31 if result is big.. Nov 25 18:46:37 do you have any example to do this with Volley ? Nov 25 18:46:47 yep, result is very big...with much characters Nov 25 18:47:07 wait so you do get a result? Nov 25 18:48:00 I want add User with your Picture and if User is added return true or false Nov 25 18:48:15 but I can not send the picture of user Nov 25 18:48:43 ... but parseNetworkResponse does get called? Nov 25 18:49:13 if parseNetworkResponse gets called, that would indicate that you are indeed sending and receiving data over the network.. whether that's the correct data i don't know Nov 25 18:49:42 yep, does return called, but always return false because image picture doesn't send Nov 25 18:50:38 in resume, how can I send image to web service, you know ? Nov 25 18:50:55 Foxandxss: nice. I'll google it and check out Nov 25 18:51:00 oh ok.. so you know you are sending *something*, you just know you are not sending the correct data Nov 25 18:51:00 ? Nov 25 18:51:02 Foxandxss: thanks for the tip Nov 25 18:51:17 sheilong: read it twice, lot of fun :) Nov 25 18:51:22 i need convert image to string all right ? Nov 25 18:51:30 no, i wouldn't do that Nov 25 18:51:47 web service using php Nov 25 18:51:55 and wait a image file Nov 25 18:52:20 with values of User Nov 25 18:53:50 how do you do that ? Nov 25 18:54:19 you seem to be on the right track with your multipart stuff.. i haven't looked too closely at that code, but that's how you do it Nov 25 18:54:29 you can send binary data and json data in one payload using multipart mime Nov 25 18:54:56 do you have any example ? Nov 25 18:55:16 g00s: Nov 25 18:55:19 i don't, sorry Nov 25 18:55:20 I found out that Nov 25 18:55:32 :´( Nov 25 18:55:36 info.groupOwnerAddress.getHostAddress() return different ip then busybox ifconfig Nov 25 18:56:15 I'm looking for any way to solve that Nov 25 18:56:20 http://i.imgur.com/QJwnFfS.png vs 192.168.49.1 Nov 25 18:56:55 fernandopaiva if volley doesn't have built-in multipart support, it's not hard to implement Nov 25 18:57:08 it looks like you've already got something in there for it Nov 25 18:57:29 look at my class ApplicationController Nov 25 18:57:39 in that I am using multipart Nov 25 18:57:54 I don't know if to blam my custom rom or android ;) Nov 25 18:58:09 anyone ever tried using the lombok @Builder annotation? Nov 25 18:58:37 I have it set up on a couple models, but it doesn't seem to work... Nov 25 18:58:50 shekibobo the lombok dev hangs out in #java i guess Nov 25 18:59:09 thanks, I'll check it out Nov 25 18:59:11 that thing sounds scary :) Nov 25 18:59:22 :) Nov 25 18:59:34 doesn't lombok do dynamic bytecode generation ? Nov 25 18:59:52 lol, when I wrote the right ip it worked :/ Nov 25 19:01:19 Foxandxss: Android Programming: The Big Nerd Ranch Guide (Big Nerd Ranch Guides) this one you were meant ? Nov 25 19:01:28 sheilong: yes sir Nov 25 19:01:38 completely practical Nov 25 19:01:41 building 6-7 apps Nov 25 19:01:44 some of them are fun Nov 25 19:05:32 sarbs: finding a solution I found this: http://hitherejoe.com/wordpress/sending-multipart-data-android-using-volley/ Nov 25 19:05:59 anybody knows why info.groupOwnerAddress.getHostAddress() return WRONG IP? Nov 25 19:06:07 is it you say ? Nov 25 19:06:18 anyone know how to do file:///android_res/raw/whatever but specifying a package name other than your own? Nov 25 19:06:22 fernandopaiva awesome! Nov 25 19:08:37 canadiancow https://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String,%20int) Nov 25 19:08:49 i dont have a context Nov 25 19:08:55 this is in an html file loaded into awebview Nov 25 19:09:12 ooh. hmm. Nov 25 19:09:24 i have no idea if that's supported, then Nov 25 19:09:49 g00s, lombok is semi-cool, but much less so in the face of jvm languages Nov 25 19:09:58 * pfn wrote the original pieces upon which lombok is based... Nov 25 19:10:53 (http://projectlombok.org/credits.html) Perry Nguyen (pfn on ##java on freenode) for creating the inspiration for project lombok. Nov 25 19:10:53 heh Nov 25 19:12:46 this part of my app to send image fuc*** with me :/ Nov 25 19:16:11 <_Auron_> I've spent all day trying to find and integrate a custom calendar view into my project but I can't get anything to work Nov 25 19:17:22 <_Auron_> hm Nov 25 19:21:42 I’m trying to select ‘This application meets Android Content Guidelines.’ in the Content guidelines part of Google Play but its greyed out? Has this ever happened to anyone else? Nov 25 19:23:58 thanks ActionBarCompat for adding the actionBarTheme attribute and not documenting it ANYWHERE Nov 25 19:24:48 canadiancow: not possible. webview down in the chromium layers grabs the ApplicationContext from the Webview's Context, and uses that to open the resource Nov 25 19:25:05 yeah i just spent a while looking through the source Nov 25 19:25:19 canadiancow if you constructed the Webview using the other application's Context, maybe that part would work, but then i doubt you'd be able to add it to your hierarchy Nov 25 19:25:26 it's not "the other application" Nov 25 19:25:37 im using aapt's --rename-manifest-package flag Nov 25 19:25:50 so the package in the manifest is different than the package that R is in Nov 25 19:25:56 oh interesting Nov 25 19:27:01 yep still boned. the code does context.getClassLoader().loadClass(context.getPackageName() + ".R$" + assetType); Nov 25 19:27:06 and then reflects from there to get the field. sorry bud Nov 25 19:29:43 what class are you looking at? AndroidProtocolHandler.java ? Nov 25 19:31:56 yeah, lemme open it back up to find the lines Nov 25 19:32:10 i can see it, thanks :P Nov 25 19:32:21 kk Nov 25 19:34:06 oh.. you could totally use WebViewClient's shouldInterceptRequest to do this yourself Nov 25 19:34:36 canadiancow://my_res/whatever and then parse and load it yourself, and return a stream Nov 25 19:36:09 <_Auron_> why is doing a custom calendar view in android a nightmare? does anyone know of a decent custom calendar view/library out there? Nov 25 19:39:36 is there a way to port your app to iOS? Nov 25 19:39:51 yes Nov 25 19:39:52 I mean I hate iOS but it increases the target audience :/ Nov 25 19:39:58 you write it in objective C Nov 25 19:40:20 there is no quick and dirty way to do it eh? Nov 25 19:40:39 I'm familiar with java, not so much C Nov 25 19:41:16 have any experience with J2ObjC tool? Nov 25 19:42:03 "i like iPhone because it has payng users, but I don't want to put time into writing the app" :D Nov 25 19:42:24 sarbs, i can fix this more easily than that, im just trying to get all the info i need to file a bug against webview :P Nov 25 19:42:31 im not looking to get rich from my app, just giving others the opportunity to use it Nov 25 19:42:33 canadiancow ahh gotcha Nov 25 19:55:06 hi guys, i have crated a new resource that is a xml EditText, with some generic attributes. Is it possible to create a new layout and "inherit the attributes from the other xml? Nov 25 20:03:04 do yall use Genymotion or HAXM? Nov 25 20:03:21 Genymotion Nov 25 20:04:41 HAXM on mac Nov 25 20:06:02 Reason I ask is that I am about to get a new Mac at work, which is a big deal because everyone is on a virtualized system with thin clients. Trying to decide on using free HAXM vs trying to get them to buy a license for Genymotion. Nov 25 20:06:49 Anyone ever get an infinite spinner when they call webView.getSettings().setJavaScriptEnabled(true), but everything works fine (excpt js of course) with out it? Nov 25 20:08:44 mattblang: haxm, until we started using Vagrant heavily. you can't run haxm and virtualbox at the same time. Nov 25 20:09:22 mattblang: beyond that, unless you need the paid features of genymotion, the x86 emulator images have generally been more stable and more complete than genymotion's. Nov 25 20:09:33 E/AndroidRuntime(22240): at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:6081) Nov 25 20:09:36 1 million times Nov 25 20:10:02 Groxx: cant agree with that. Geny is incredible stable for me Nov 25 20:10:32 TransactionTooLargeException Nov 25 20:10:53 ERR: TOTAL BYTES WRITTEN: 20147712 Nov 25 20:11:12 danijoo: I've had them corrupt themselves more than the official ones, and occasionally have graphical glitches. the vast majority of the time though genymotion is great. Nov 25 20:11:18 that’s a lot of bytes, no? Nov 25 20:12:03 lol stack overflow Nov 25 20:13:25 its just 20Mb Nov 25 20:13:42 of an 8mb stack Nov 25 20:13:47 oh ^^ Nov 25 20:14:05 Jenga Nov 25 20:14:45 weird.. Nov 25 20:14:46 An internal error occurred during: "JDI Event Dispatch". Nov 25 20:14:47 java.lang.NullPointerException Nov 25 20:15:07 IM AN IDIOT>.. haha was doing sv.addView(sv) Nov 25 20:17:52 I am quite confused about Bitmap recycling. Nov 25 20:18:53 hey marrrk_ Nov 25 20:19:17 hello tricknology Nov 25 20:21:49 marrrk_: probably because it's confusing? Nov 25 20:22:21 Anyone know about this error? http://pastebin.com/MA7us1T7 Nov 25 20:22:25 I don't really know how new Bitmaps are created. Nov 25 20:22:27 while sliding the drawer in and out Nov 25 20:22:32 nothing pointing to my code.. Nov 25 20:23:15 tricknology: I don't know about that one in particular, but I've had problems with drawerlayout and touch events being handled after the view goes away. Nov 25 20:23:37 seems liek that’s what’s happening.. and it’s very slow Nov 25 20:24:23 tricknology: give this a shot? it has essentially solved my problem: https://code.google.com/p/android/issues/detail?id=60464#c5 Nov 25 20:25:00 this is BS, lol Nov 25 20:25:01 marrrk_: what seems to be the confusion? or, what's the goal, "make this thing work" or "understand how bitmaps work"? Nov 25 20:26:58 I have some code which takes one bitmap and draws another one over it. To this end I run copy on the first bitmap and then draw the second one over it. I thought then I could recycle the source and desetionation bitmaps, but I run into trouble with that. Nov 25 20:28:57 marrrk_: as in, mutating a bitmap? or drawing two bitmaps to a canvas? Nov 25 20:29:02 any of you ever used codename one? any experience from it? Nov 25 20:29:49 i have a tricky obstacle. im trying to set the drawable right of a edittext depending on the focus state in my onFocusListerner. at the same time I am creating a listerner for the onTouch to check if the drawable right was clicked, however for some reason it is alway the null Nov 25 20:30:06 Groxx: https://gist.github.com/i-am-the-slime/735ab860961ea1d31d23 Nov 25 20:31:03 ugh ever since RC1 the xml autocomplete is suggesting views from my apklibs before custom views in my own project Nov 25 20:32:19 JacobTabak there're always rc2 :) Nov 25 20:32:22 and rc100 :) Nov 25 20:32:31 Groxx: I try to set the original Bitmap back Nov 25 20:32:53 But loading it again. It still seems to be marked as recycled. Nov 25 20:33:48 marrrk_: hm. superficially it looks fine to me… unfortunately I haven't done anything with mutable bitmaps yet :( does the .copy succeed though? could it be returning null? Nov 25 20:34:08 it works Nov 25 20:34:17 I can draw one bitmap over the original one Nov 25 20:34:28 It just busts when I try to reset the old one. Nov 25 20:34:33 <_Auron_> god, it's going to take me at least a week to get a customizable calendar, whether I having to effing write my own or figure out why the hell none of the libraries out there will work. Nov 25 20:34:53 * _Auron_ head->desk, head->desk, head->desk Nov 25 20:34:55 marrrk_ what line? Nov 25 20:35:04 aah i se Nov 25 20:35:13 The first commented out recycle. Nov 25 20:35:42 is this python? Nov 25 20:35:55 what is the error? Nov 25 20:36:04 No. Maybe I get the same reference to something in a Bitmap pool Nov 25 20:36:19 The error is... Nov 25 20:36:44 move source.recycle() down a line Nov 25 20:36:57 see what happens… Nov 25 20:37:07 * tricknology grabs popcorn Nov 25 20:37:59 Groxx, I’m still gegtting a funky touch error, but it kind of fixed it.. only crashing on abou the third drawer bull Nov 25 20:37:59 Can't copy a recycled bitmap. Nov 25 20:38:04 Also when I move it 2 lines down. Nov 25 20:38:36 so source is already recycled is what it’s telling you? Nov 25 20:38:58 at android.graphics.Bitmap.copy Nov 25 20:38:58 are you getting that error on line 2? Nov 25 20:39:20 tricknology: looking closer at your stacktrace, could you be doing e.g. view.post(runnable) anywhere? or something similar? Nov 25 20:39:21 but not if you uncomment those lines? Nov 25 20:39:37 Groxx, no I am not but I do have a scroll view in there somewhere Nov 25 20:39:39 I did uncomment them Nov 25 20:39:45 If they are commented it works fine. Nov 25 20:40:21 tricknology: 2.3, or newer? there are scroll/list view-fling-runnable problems in older OSes. Nov 25 20:40:39 I will check the code again. Nov 25 20:40:47 maybe by passing the bitmaps in like that you are actually making a copy Nov 25 20:41:00 err recycling Nov 25 20:41:05 but that wouldnt make sense.. Nov 25 20:41:27 ah damn, I'm doing something weird Nov 25 20:41:46 https://developer.android.com/training/displaying-bitmaps/manage-memory.html Nov 25 20:42:03 I was decoding the base image and but then I used set imageResource and not even using that bitmap, maybe that was wrong. Nov 25 20:42:19 heh Nov 25 20:42:39 Seems like that was it. Nov 25 20:42:45 :D Nov 25 20:42:46 Okay, I'll assume it works now. Nov 25 20:43:08 Groxx, no, 4.4.2+ Nov 25 20:43:13 Perfect. Thanks guys! Nov 25 20:43:13 So do I need to do anything exciting to get an AVD to work, as I'm just seing a black screen with now a glowy 'android' on it :P Nov 25 20:43:21 using Eclipse on Ubuntu 14.04 Nov 25 20:43:35 ThePendulum, do you have HAXM or genymotion? Nov 25 20:43:42 ThePendulum: how long have you waited? it can take a few minutes to boot, depending on the image. Nov 25 20:44:00 it might take a bit if you dont have some kind of hardware accerlerator Nov 25 20:44:41 Now a nice thing would be to have the bitmaps crossfade Nov 25 20:45:07 Groxx: Is it supposed to boot at all if you don't have an app programmed? Nov 25 20:45:12 That to start with Nov 25 20:45:19 Groxx: It's a full Android device? Nov 25 20:45:22 ThePendulum: yeah, they're essentially complete devices Nov 25 20:45:25 alright Nov 25 20:45:35 tricknology: even if you'd kill me... Nov 25 20:46:07 ThePendulum: in the past I've had issues with GPU acceleration and multiple desktops (though this is on OSX, so YMMV), possibly it's something similar? Nov 25 20:47:27 marrrk_: heh. probably use view animation? that's likely to be hardware accelerated, and no need to manually interpolate. Nov 25 20:47:48 I'm just changing the bitmap of the imageview Nov 25 20:47:54 Should I instantiate another imageview? Nov 25 20:48:52 marrrk_: if you want to fade, perhaps. or I think you can do a drawable-transition-animation somehow in XML, though I'm not too familiar with that. Nov 25 20:49:49 marrrk_: looks promising :) http://developer.android.com/reference/android/graphics/drawable/TransitionDrawable.html Nov 25 20:51:26 Hmm maybe that one. Nov 25 20:52:44 Hmm Nov 25 20:52:53 Do I have to use that instead of an ImageView Nov 25 20:52:54 ? Nov 25 20:53:30 Hmm, no okay it works. Nov 25 20:53:49 http://i.imgur.com/yhpAd1m.png Nov 25 20:53:51 Still this :/ Nov 25 20:54:47 either the emulator's borked or you're not running accelerated and it's doing a looooot of work Nov 25 20:54:58 is the boot screen animating at least? Nov 25 20:55:10 and if it is animating, does it seem choppy Nov 25 20:56:44 sarbs: A shadow flows over it seemingly having quite a hard time Nov 25 20:57:00 ok, you're definitely not running accelerated then Nov 25 20:57:02 That means I have to think about the recycling again. Nov 25 20:57:10 sarbs: How do I ensure that? Nov 25 20:57:14 what os are you on? Nov 25 20:57:29 looks like ubuntu? Nov 25 20:57:32 yeah Nov 25 20:57:50 https://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-emulator Nov 25 20:58:15 Ah fuck it, I'm not gonna have it fade now. Nov 25 20:58:35 Hello, I wanted to know if having a service running that does nothing for some time is bad for resources/battery? I mean I have a service that usually does something, but sometimes it just needs to sleep for a few hours, is it bad? Nov 25 20:59:55 no Nov 25 20:59:57 sarbs: Neither the VD or my machine are Intel though Nov 25 21:00:07 intel architecture Nov 25 21:00:22 amd is intel arch Nov 25 21:00:30 unless you're running on something WAY wacky Nov 25 21:00:37 ah right Nov 25 21:00:43 i gotta split; follow thos instructions and you should be golden Nov 25 21:02:07 cheers :) Nov 25 21:03:27 On Lollipop my appcompat checkbox remains black instead of being the primary colour. Nov 25 21:04:46 marrrk_, happens if the wrong theme is applied Nov 25 21:05:01 'cept the reverse is true for me Nov 25 21:05:09 it's black on pre-lollipop, and it's the correct color on lollipop Nov 25 21:05:13 Hmm. Nov 25 21:05:16 Not bad either. Nov 25 21:08:11 pfn, appcompat replaces CheckBox with TintCheckBox Nov 25 21:08:15 That colors Nov 25 21:08:35 SimonVT, is that so, that must be why, interesting Nov 25 21:08:47 Same with EditText Nov 25 21:08:47 Nohus: it doesn't really cost anything. but: your process may be killed, so it won't be able to "resume" after a few hours. your process is also higher priority than "normal" background apps, so you'll be making things worse for the phone-owner by forcing others to shut down first. Nov 25 21:08:49 And some other views Nov 25 21:09:13 SimonVT, eh? not there? or not public api? Nov 25 21:09:15 Nohus: if you're waiting for more than, say, a minute, you almost definitely want to use an Alarm Nov 25 21:09:40 I am fighting with EditText right now Nov 25 21:09:40 pfn: They're in the .internal package Nov 25 21:09:50 oh finally im running genymotion with accel capabilities on my unsupported old laptop Nov 25 21:10:14 SimonVT, yeah, private api Nov 25 21:10:37 "private" Nov 25 21:10:59 If you're subclassing CheckBox, subclass TintCheckBox instead Nov 25 21:11:36 All it does is override Activity#onCreateView and return a TintCheckBox if it encounters a Nov 25 21:12:10 SimonVT, ah, interesting, they do custom inflation, and that explains that.. Nov 25 21:12:13 SimonVT: appcompat does not give the animations for checkboxes from L, right? Nov 25 21:12:25 marrrk_, only appearance, no animations Nov 25 21:12:36 I am very dissapointed by that. Nov 25 21:13:40 Groxx: Oh, I see. I hadn't known about alarms, that sounds a lot better. Does it also make sence to use it for waiting a minute? My service updates a notification each minute and currently it uses a postDelayed Runnable for waiting the minute, would it be more efficient to also use that alarms for that or keep it this way? Thanks. Nov 25 21:13:51 Not everything can be easily backported Nov 25 21:14:24 * pfn shrugs Nov 25 21:14:31 marrrk_, if you want the animations, run L Nov 25 21:15:15 I also lose the animations on L when using appcompat, right? Nov 25 21:15:19 no Nov 25 21:15:32 appcompat uses native implementation when on the corresponding platform Nov 25 21:15:56 Okay, so I'm doing something wrong there. Nov 25 21:17:11 Nohus: if it's important that it's every minute, including when the device is "off", yes. postDelayed will only run when you get CPU time, which isn't guaranteed when you're not the foreground app. alarms will wake the device and give you some CPU. Nov 25 21:17:37 Nohus: but every minute is likely to have some impact on battery use, fwiw. maybe not huge, except when compared to airplane mode, but some. Nov 25 21:20:15 Groxx: Ah, but I don't want to wake the device, I want to use the least battery possible. And since it's for updating a notification it's only needed when the user can see the notification, so if the device is off it doesn't need to run. So for minimizing battery usage, I should probably keep doing it with the Runnable and only switch to alarms for the long wait, right? Nov 25 21:20:18 Ahh, I'm using a CheckedTextView, maybe that's the problem. Nov 25 21:21:43 thanks, sarbs, for a link posted here three hours ago... Nov 25 21:23:19 Seems like that didn't help much, still slow :( Nov 25 21:24:07 Hmm, the multiline EditText looks weird. Nov 25 21:24:26 Nohus: tbh, I'm really not sure what the best option would be. if your process dies in the background (this can and will happen, pretty much guaranteed), it won't start back up on its own without e.g. an alarm. Nov 25 21:24:48 Nohus: or… maybe this will work. Nov 25 21:25:06 hi Nov 25 21:25:08 hi Nov 25 21:25:16 why isn't Timely part of the default Google Apps package? Nov 25 21:25:30 Nohus: use a service, make it run in the foreground (this requires a notification), and return START_STICKY from onStartCommand. in theory that'll keep it alive, and start it back up when there are enough resources (if it got killed anyway). Nov 25 21:25:30 on my nexus 5 there's still this "default" clock app Nov 25 21:25:49 Nohus: I'm not sure how well START_STICKY works, unfortunately. never thoroughly tested it. Nov 25 21:29:00 Groxx: I already use START_STICKY, but yeah, since the only thing the service is for is the notification, I may as well use startForeground with that notification to make it less killable, good idea. Thanks. Nov 25 21:30:27 Nohus: cool, good luck :) oh, and you probably also want to receive the boot_completed event, otherwise they'll have to launch the app by hand after rebooting (unless you want that) Nov 25 21:31:27 hmm Nov 25 21:31:34 my android wallpaper just changed Nov 25 21:32:04 <_Auron_> I. hate. calendars. Nov 25 21:32:16 <_Auron_> They're currently the bane of my existance. Nov 25 21:33:42 Groxx: Yeah, that's reasonable. Thanks again. : ) Nov 25 21:34:47 my problem is more with clocks Nov 25 21:36:29 it would be a idea to use eventbus sticky events to send sensor data to a fragment? maybe should find another way? Nov 25 21:36:58 <_Auron_> I don't know what kind of loon at google thought it was a good idea to have non-customizable text in a CalendarView Nov 25 21:37:16 There aren't buttons in appcompat? Nov 25 21:37:45 <_Auron_> using reflection I can modify parts of it, but not the day numbers' text Nov 25 21:38:09 <_Auron_> and I've spent my entire day trying to figure that out or use a custom calendarview library, but I can't get any of them to work Nov 25 21:38:52 <_Auron_> if CalendarView.drawWeekNumbersAndDates() wasn't a private method I could override it, but alas. Nov 25 21:40:40 Nohus: sorry, thought of another: app upgrades kill your process, so you _also_ want to handle that one Nov 25 21:40:55 dunno if sticky notifications change that. probably not? Nov 25 21:43:47 Groxx: I hope that users at least open the app once after an upgrade. : P Nov 25 21:44:32 or reboot :) but yeah, hopefully. fwiw I often don't though Nov 25 21:44:52 is there a scaleType like centerCrop but instead is aligned to the top? Nov 25 21:45:20 so the image fits by width but is cropped out the bottom if needed Nov 25 21:48:25 ScaleType.MATRIX, does whatever you want it to do Nov 25 21:48:39 adjustViewBounds seemed to work actually Nov 25 21:48:42 with no scaleType Nov 25 21:48:54 Hi all. Trying to do some work with mediacodec and opengl and I am having an issue that m,y opengl vertex shader is not compiling. The real issue ids that there is no output error. In addition when i ask for the shader source I dont get anything back fomr opengl. Thoughts? Nov 25 21:49:21 or not... crap Nov 25 21:50:02 basically trying to compile the cts example: https://android.googlesource.com/platform/cts/+/master/tests/tests/media/src/android/media/cts/DecodeEditEncodeTest.java Nov 25 21:50:14 How can I set the tint of the notification bar ? Nov 25 21:55:03 marrrk_: I think, in kitkat, you have to draw a view behind it (typically a 'tall' action bar, from what I've seen). in lollipop, thankfully, it's just a window param. Nov 25 21:55:48 I had not even thought about kitkat Nov 25 21:56:02 Groxx: How do you set that in Lollipop? Nov 25 21:56:45 marrrk_: apparently material theme does it for you: https://developer.android.com/training/material/theme.html otherwise https://developer.android.com/reference/android/view/Window.html#setStatusBarColor%28int%29 Nov 25 21:57:05 crazy easy. should've been this easy in kitkat :| Nov 25 21:58:07 So what I have to get the window in each of my activities and then call that function? Nov 25 21:58:31 Or have them extend some Base Activity Nov 25 21:58:37 and do it in there.... Nov 25 21:59:56 Grr Nov 25 22:00:03 marrrk_: yeah. or in xml it looks like the style name is "android:statusBarColor" (on the material theme page). you could set your app theme to include that, and/or use one for each activity Nov 25 22:00:20 That's much better. Nov 25 22:01:40 it crosses my mind, i really like the idea of android, but really hate some of the implementation details. Nov 25 22:01:55 Does anyone know of projects to fork android? Nov 25 22:02:00 OSS Nov 25 22:03:43 cyanogenmod is an obvious one Nov 25 22:05:14 true. i guess doesn't address my concerns Nov 25 22:05:32 any others? Nov 25 22:07:39 i guess i should cut my teeth on cyanogenmod Nov 25 22:07:51 any way to have Google notify me when there is a crash? Nov 25 22:07:54 uh, what are you expecting, it's a fork... Nov 25 22:08:11 should have spooned.. spooning leads to forking Nov 25 22:08:19 tricknology, crash of what? Nov 25 22:08:23 pfn, it doesn't change anything really Nov 25 22:08:24 tricknology, gdata Nov 25 22:08:42 tricknology: if not, i'll knife ya Nov 25 22:09:11 BREAKING: Repositories lead to rape. Nov 25 22:09:14 * tricknology is dish. will run away with spoon Nov 25 22:09:48 pfn, the biggest issue is giving apps permissions at installation instead of through configuration Nov 25 22:10:14 cyanogenmod has that Nov 25 22:10:30 appops is something similar as well Nov 25 22:10:47 Isnt permissions through configuration something iOS offers? Nov 25 22:10:59 so? Nov 25 22:11:06 So nothing? Nov 25 22:11:08 bankai_au i managed to run lollipop on my unsupported laptop. guess what? app runs perfect but when you push the home button after onStop is called the error occurs. Android try to write the bundle who knows for what Nov 25 22:11:08 It was a simple question Nov 25 22:11:12 I do not use iOS devices. Nov 25 22:11:29 cliffreich: w00t!! well done Nov 25 22:11:29 Anthaas, just don't see how it's relevant to the android conversation lol Nov 25 22:11:32 Why do so many programmers assume a question always has a hidden agenda or is trying to make a point. Nov 25 22:11:51 Well, you said that is something you don't like, and I was just trying to clarify for myself if this is something iOS offers. Nov 25 22:11:53 Jeez. Nov 25 22:11:53 tries+* Nov 25 22:11:56 Get off your high horse. Nov 25 22:11:57 pfn, i've used xprivacy but it's a hack.... it needs to be backed into the OS Nov 25 22:12:19 the result --> pop-ups constantly for apps stealing your data Nov 25 22:12:35 baked* into the OS Nov 25 22:13:15 Anthaas, yes, if that helps you at all... Nov 25 22:13:23 i just can't imagine how it helps.... Nov 25 22:13:41 cliffreich: just out of curiousity, how big is the bundle? perhaps it's a memory saving technique Nov 25 22:13:42 It was just a question. Nov 25 22:13:47 Flippin' heck. Nov 25 22:14:09 I don't use iOS, and seem to remember someone mentioning that before, and was just clarifying in my own head. Nov 25 22:14:58 how do you call that half-cicrle bottom drawer in android? Nov 25 22:16:01 O.o Nov 25 22:16:22 bankai_au I'm checking. yes looks like Android is trying to save to disk the Bundle to recover later. i wonder if its documented Nov 25 22:16:53 cliffreich: that's fairly normal - do you have something not serializable in there? Nov 25 22:17:48 Groxx nope, the objects or the objects inside are parcelable. I checked everything Nov 25 22:19:32 I'm having trouble setting a custom drawable for a FragmentList divider. I load this resource: http://pastebin.com/YBLL0Cb1 with getListView().setDivider() but it doesn't render a divider. Nov 25 22:22:03 cliffreich: have a stack trace? I might have missed it earlier Nov 25 22:26:18 pfn, appops seems pretty limited Nov 25 22:29:37 Norrin what are you after? Nov 25 22:29:42 came in late Nov 25 22:29:50 bitkiller my pleasure lol Nov 25 22:30:18 Groxx here is http://stackoverflow.com/questions/27096641/only-1-phone-shows-parcelable-encountered-ioexception-writing-serializable-objec Nov 25 22:30:50 all identifiers disabled, no auto-startup, no location, no notifictions, no internet, to name a few Nov 25 22:31:58 wait, you lost me. you want to disable location/notifications/internet in the rom? Nov 25 22:32:12 no, for apps Nov 25 22:32:12 cliffreich: I'm guessing it's both serializable and parcelable? Nov 25 22:32:38 oh, you want to block certain apps from having access to those mechanisms? Nov 25 22:32:46 Groxx parcelable only. it does not call a writeSerializable in my code Nov 25 22:33:00 none of my customs objects Nov 25 22:33:48 cliffreich: yeah, but is com.myapp.models.custominnerobject both serializable and parcelable? Nov 25 22:34:00 Groxx parcelable only Nov 25 22:34:10 sarbs, right Nov 25 22:35:39 cliffreich: or nvm, that looks like it's a few layers deep. Nov 25 22:36:14 Groxx I'm posting it as an Android bug to see if they say anything Nov 25 22:36:27 because it's perfect with any <5.0 Nov 25 22:37:25 cliffreich: do you have a serializable value in the bundle? or maybe in a top-level hash? (not sure what bundle stacktraces typically look like for that kind of data) Nov 25 22:38:33 Norrin that's perfectly possible, but i'm not aware of any production-level roms that sandbox so tightly Nov 25 22:39:16 cliffreich: that, and what's com.myapp.models.customobject ? (note it's not the inner one). is that serializable? Nov 25 22:41:19 sarbs, xprivacy does it, but it's really noisey Nov 25 22:41:20 Groxx everything is parcelable, i checked Nov 25 22:41:29 Now I'm debugging a little Nov 25 22:41:52 plus avoiding to save big object in onSaveInstanceState to see what happens Nov 25 22:42:37 cliffreich: fwiw the source for Parcel looks like you'd expect. serializable is the last in a long list. and I know I'm beating a dead horse, but: did you definitely check com.myapp.models.customobject? Nov 25 22:42:53 and its superclasses Nov 25 22:44:25 Groxx i checked twice, all my Model objects are parcelable, none serializable. I even checked the source code for a writeSerializable as maybe i forgot one in a Parcelable object and there is none Nov 25 22:44:49 also the same object is passed to another activity using Bundle and it works Nov 25 22:45:09 it only fails with Android 5.0 implementation after onStop is called and app goes to the background Nov 25 22:45:14 Parcels and bundles aren't written to disk unless they have to be. you won't hit those errors unless it's being written. Nov 25 22:45:41 Groxx it doesn't happen in my code. Its called after onStop Nov 25 22:45:53 which would make sense, because serialization isn't something you directly control Nov 25 22:46:23 so right now I have a list with some items on it. if I tap a position it toasts: "You selected + position;" so I know it detects which position I select. How do I get it to open an activity based on position? right now it opens the same activity regardless of position Nov 25 22:46:41 cliffreich: are you using a database-model-generator tool by any chance? Nov 25 22:47:05 http://pastebin.com/LWAYLyir is the source Nov 25 22:47:31 wait Groxx cliffreich i haven't been paying attention but something caught my eye - parcels/bundles shouldn't ever be written to disk Nov 25 22:47:39 Groxx nope Nov 25 22:47:43 so rather than all positions opening DataPage.class, I'd like them to open DataPage1, DataPage2, etc based on posotion. how do I do this? Nov 25 22:47:48 sarbs I'm not writing it, its Android Nov 25 22:47:53 sarbs: that's true only for writing it to disk yourself. Nov 25 22:48:04 ah ok, see, thats what i was missing Nov 25 22:49:01 Rob_TheRetroGuy: it's opening DataPage.class because you put that as the second argument. if it's only a couple, you could just do `if (position == 1) { intent = new Intent(context, DataPage2.class); } else if (position == 2) { etc ` Nov 25 22:49:33 each list has different numbers of positions though Nov 25 22:49:47 I figured some sort of switch clause would work in this instance? Nov 25 22:51:02 Rob_TheRetroGuy: you can make a class[] array, and do `intent = new Intent(context, data[position])`. a bit cleaner / easier to code than a bunch of switches. Nov 25 22:51:23 something like http://pastebin.com/HCHsQPb1 Nov 25 22:51:34 hmm Nov 25 22:52:43 Rob_TheRetroGuy: typically you'd also make the listview's adapter based on the data (an ArrayAdapter or something). that way you could change the contents of the array, without changing other code. Nov 25 22:53:30 I don't mind using a few switches just not sure how to implement that Nov 25 22:55:55 Rob_TheRetroGuy: probably right in on onListItemClick, like this: http://pastebin.com/jSCz9BdB Nov 25 22:56:21 I'll give it a shot thanks Groxx Nov 25 22:57:26 anyone know of cyanogenmod will look into creating some equivalent APIs to google play services? Nov 25 22:57:31 the local stiff at least Nov 25 22:57:36 know if* Nov 25 23:02:42 Norrin: no clue how far along it is / if it's even still going, but: https://github.com/microg Nov 25 23:03:11 is that what you're thinking? Nov 25 23:04:19 Groxx, hmm similar. the APIs too Nov 25 23:05:40 Does anyone know how to achieve floating keyboard effect? I am making a custom keyboard, but whenever the width is smaller than the max width, the remaining space is painted white (even though I'll expliclty set the background color to transparent of my custom keyboard view class) Nov 25 23:05:46 if you're not thinking direct replacements, there are a fair number of alternatives to specific features. Amazon has a decent-looking push notification system, OpenStreetMaps has a rich map api, plenty of analytics options, etc. Nov 25 23:06:15 Is there a way to create a sort of note file in the project so I can keep track of specific notes to myself as I develop this? Just create a random .class and comment everything out? Nov 25 23:07:01 lasserix: dunno, but I suspect your window isn't transparent. maybe there's a style somewhere? Nov 25 23:07:44 Rob_TheRetroGuy just add a .txt file? Nov 25 23:07:44 never mind I can simply create a new file and save it as text ;) Nov 25 23:08:53 any way to check if a receiver is registered before unregistering it or should I just try/catch the execption? Nov 25 23:09:40 tru/catch it is Nov 25 23:10:09 oh interesting, Google declined and closed the appcompatv7 issue with Samsung and 4.2.2 https://code.google.com/p/android/issues/detail?id=78377 Nov 25 23:10:37 yeah. and I suspect their closing suggestion isn't a full solution(-ish) either. Nov 25 23:11:01 I kinda assumed they'd just decline it. they did for the older Gson issue too. Nov 25 23:11:44 crap like this makes me really want to bundle everything as source, so renames / etc are essentially trivial and known to be correct. Nov 25 23:13:32 any of you use Picasso for loading images? Nov 25 23:13:36 I do Nov 25 23:14:05 it's much faster than loading images with the way that Google says in the documentation of Taking Photos Simply, but in a view pager I also do get some lag when it's all full images Nov 25 23:14:32 in a listview for example, where the images span the whole width and only some of the height (the row height), it's lightening fast and it's the best thing I've ever seen Nov 25 23:14:33 the lag is the network downloading the image and BitmapFactory decoding the massive images Nov 25 23:14:47 downloading referring to decoding? cause my case they are local Nov 25 23:14:52 man alex has got to feel really salty for his first reply here https://code.google.com/p/android/issues/detail?id=78377 Nov 25 23:15:02 it might also be GC causing problems Nov 25 23:15:11 I tend to see more lag from GC, actually Nov 25 23:15:14 so burn "Please use a forum like StackOverflow for development help." Nov 25 23:15:19 it is GC complaining Nov 25 23:15:26 ah, that means this is a separate issue? .. Nov 25 23:15:31 well how do I solve that one? Nov 25 23:15:42 well, it's complicated Nov 25 23:15:45 gotta interview, back later Nov 25 23:15:54 Odaym: https://developer.android.com/training/displaying-bitmaps/manage-memory.html Nov 25 23:16:02 ok Nov 25 23:16:12 Odaym: sadly very complicated to do a good job. easiest semi-fix is probably to pause loading while scrolling. Nov 25 23:16:24 it's a view pager Nov 25 23:16:31 Picasso has cancelling Nov 25 23:16:41 and/or preload and cache things in ram so you don't cause GC while animating Nov 25 23:17:45 that's complicated Nov 25 23:18:05 yup. Nov 25 23:19:19 what if I just scale the image, Picasso allows easy scaling. Will that mean that whatever library I use will be loading the scaled version and not the full version? Nov 25 23:19:26 it might be the hardest part of coding that's fundamental to small, mobile devices. iOS gets around it for the most part simply by throwing a LOT of compute power and RAM at it. Nov 25 23:19:30 I mean will it load the whole image and THEN scale for me? Nov 25 23:20:13 I see a lot of apps doing this easily. Like Whatsapp, you open one image and you get a pager there where you see all the images Nov 25 23:20:17 well, it looks easy Nov 25 23:20:17 lol Nov 25 23:20:36 Odaym: depends. if it's at least 1/2 the size or smaller (on each side), and Picasso is clever, it might not load all the data at the same time. Nov 25 23:20:45 let's see, then Nov 25 23:21:23 Odaym: tbh they're probably just preloading, if it's reliably smooth. if you load the surrounding pages when the view isn't moving (so after it comes to a rest), you can "lag" with no visible effect. Nov 25 23:21:55 the loading is being done in onCreateView from a fragment, Nov 25 23:22:39 so I do Picasso.with(context).load(new File(images.get(position).getPath()) and then another line with position + 1? Nov 25 23:22:42 :P Nov 25 23:23:32 3... Nov 25 23:23:33 2... Nov 25 23:23:34 1... Nov 25 23:23:35 that might actually work Nov 25 23:23:41 my program only starts one asynctask at a time, for some reason. Do I have to set the max amount manuaally somewhere? Nov 25 23:23:54 Probably the longest time JakeWharton has ever taken to respond to a Picasso post... :P Nov 25 23:23:54 day, you need to set the executor Nov 25 23:23:56 i only found something about android 1.6 and thread amount being 1. Nov 25 23:24:16 day, AsyncTask documentation, executeOnExecutor Nov 25 23:24:17 day: if you mean "runs in the background", that's normal for most Androids. Nov 25 23:24:19 yes only found out yesterday that he contributed to it Nov 25 23:24:29 day, it's all written in the AsyncTask class javadoc. Nov 25 23:24:34 I had an Android exam last Friday and struggled with images; discovered Picasso the next day Nov 25 23:24:37 shame Nov 25 23:24:39 Do learn to consult that first, it'll make your developer life way easier :D ) Nov 25 23:24:50 Anthaas: I said i'm interviewing above. Stop mentioning me! Nov 25 23:24:52 I wonder what % he wrote, and whether or not he "contributed" or just flat out wrote the lib. Nov 25 23:24:53 Odaym: Lol, you should still know how picasso works :) Nov 25 23:24:55 Oh sorry! Nov 25 23:24:58 Mavrik: i check it Nov 25 23:25:02 :) Nov 25 23:25:19 I was looking away for a while! Good luck with the interviews! Nov 25 23:25:26 Just ask the interviewee to solve his problem on IRC Nov 25 23:25:32 Best metrics ever. :P Nov 25 23:25:33 I did figure out how to do it manually from developer docs but it was slow and I didn't have time to do it properly, did the loading with an asynctask Nov 25 23:26:10 JakeWharton, poor interviewee, or is that easier for them... Nov 25 23:26:16 Stop mentioning him! Nov 25 23:26:17 :O Nov 25 23:26:58 I had to do this, https://dl.dropboxusercontent.com/u/19390574/MobileDevApplicantTest.pdf Nov 25 23:29:19 :O, open source makes that test... Nov 25 23:29:20 2 hours? Nov 25 23:29:30 yea Nov 25 23:29:32 nailed that shit Nov 25 23:30:06 Hrmf Nov 25 23:30:08 lol @ the Watch out for Nov 25 23:30:12 I just noticed it Nov 25 23:30:17 2 hours is not enough to make that epic :) Nov 25 23:30:23 it wasnt epic Nov 25 23:30:26 the image loading was bad Nov 25 23:30:45 2 hours would be rough unless you've been building apps from scratch lately :\ Nov 25 23:30:59 nah man Nov 25 23:31:01 look at it Nov 25 23:31:13 Yeah Nov 25 23:31:22 To be fair 2hrs on that is rough. Nov 25 23:31:26 toughest part is the db plus the class Nov 25 23:31:35 Mavrik: ty. its working :>. that makes me wonder why .execute even exists. It seems to me that its just a flawed version of exedcuteOnExecutor Nov 25 23:31:35 its pure rigor; after that it's fun Nov 25 23:32:06 day, see the API level. Nov 25 23:32:20 Also, it defaults to "safe" option Nov 25 23:32:24 day: tbh I think AsyncTask is just fundamentally flawed anyway. older versions also had threading problems, so canceling wouldn't reliably cancel. (new ones seem safe) Nov 25 23:32:54 Canceling stuff is not reliable anywhere really Nov 25 23:33:53 wait till you meet CONTINUING Nov 25 23:33:54 lel Nov 25 23:34:29 with Picasso resize(), yes you can get the images to not load in their entirety Nov 25 23:34:32 this is just excellent Nov 25 23:34:53 doesnt lag anymore Nov 25 23:35:22 Mavrik: yeah, but you shouldn't be able to cancel on the main thread, and then receive a main thread callback. Nov 25 23:39:29 when I want to cancel a thread I don't assume that there should be a callback that would guarantee the cancel really did happen, I add preventive code in the places where I want to do something in case of cancel Nov 25 23:40:03 so if it's a thread with a long process, it will have many if (isInterrupted()) Nov 25 23:40:06 cooperative multi threading pains ftw Nov 25 23:40:22 Groxx: apparently the trick is to return your custom keyboard in canidates view, not createInputView Nov 25 23:40:44 could someone tell my why this url download code is slow? And with slow i mean almost 1min for a few text lines :P The speed varies greatly with the line size. http://dpaste.com/0QC28PV Nov 25 23:40:55 createInputView always pushes the UI up, so even if the custom keyboard is smaller than the max width, it'll still have space: instead you use canidatesView as your keyboard, which floats above as it pans Nov 25 23:40:56 i must be doing something fundamentally wrong there Nov 25 23:42:22 I'm quite aware of the problems with canceling async work, no worries. But any sane system guarantees that, on a single thread, "cancel" is not followed by "finished successfully". it's fixed in ~4.0, but there are bugs like that all through Android's source (almost all caused by posting messages to a handler, but not clearing them when they should. like FlingRunnable crashing after the view is detached.) Nov 25 23:42:23 line 27! Nov 25 23:42:47 day: first thing I notice is that you shouldn't be appending to a string Nov 25 23:42:59 JesusFreke: is it THAT slow? Nov 25 23:43:16 It shouldn't be slow for small amounts of data Nov 25 23:43:33 day: it'll make lots of intermediate objects. if it's a big file with lots of lines, it could be making a hell of a lot of garbage + collection. Nov 25 23:43:49 a minute is legitimately surprising though Nov 25 23:44:00 well its 40seconds. Nov 25 23:44:06 for how many lines? Nov 25 23:44:23 Does readLine() on a BufferedReader from network stream do what you expect? Nov 25 23:44:28 an anime with 20episodes takes like 5seconds. 390episodes 40seconds Nov 25 23:44:36 day: do you see a bunch of GC logs in logcat? Nov 25 23:44:57 Groxx: lets say...i dont even have to look for them :D Nov 25 23:45:04 hey Groxx got a sec? Nov 25 23:45:05 haha Nov 25 23:45:13 Rob_TheRetroGuy: probably Nov 25 23:45:39 day, what is the payload size? Nov 25 23:45:47 how many lines? Nov 25 23:45:49 so that example you gave me works, sorta. It opens the 1st class based on position 0. but when I tap position 1 it crashes. Its setup the same way as position 0 so I dont get it Nov 25 23:45:50 day: yeah, I would say fix that issue first, and see if it improves Nov 25 23:46:48 the second thing I would suggest is not to use a Reader, just read from the input stream directly Nov 25 23:47:04 I'm trying to nudge an imageview a certain number of dp in my RelativeLayout Nov 25 23:47:19 but I can't think of anything in particular about using the InputStreamReader or BufferedReader that would make it that slow Nov 25 23:47:22 nudging it up -20dp seems to result in different amounts on different screens Nov 25 23:47:41 Rob_TheRetroGuy: have the exact code and crash somewhere? Nov 25 23:47:58 what is nudging? Nov 25 23:48:01 http://pastebin.com/6UzSFAMR Nov 25 23:48:13 Using the InputStreamReader *without* a BufferedReader could conceivably be slow, but as long as you have the buffer there, it shouldn't be an issue. It's just that you don't really need all the extra logic to deal with lines. Nov 25 23:48:20 it didnt give me any error in logcat Nov 25 23:48:54 Rob_TheRetroGuy: you might have to switch to "all messages", some errors don't appear under the app's filter Nov 25 23:48:55 Odaym: I want an image to be cropped a bit Nov 25 23:49:08 Odaym: so I'm setting a -30dp or so to bump it up out of the view Nov 25 23:49:21 but that seems to have different effects on different devices Nov 25 23:49:32 then put that number in dimens file Nov 25 23:49:39 and reference it from the code/xml Nov 25 23:49:52 why would that make a difference? Nov 25 23:49:57 where do I turn all messages on? I didn't know it had the ability to turn it off Nov 25 23:50:02 It has this effect even in the editor Nov 25 23:50:08 I don't know why it behaves the way it does Nov 25 23:50:19 but that's what I do Nov 25 23:50:45 dimens/strings/layouts.xml all are universal values Nov 25 23:50:52 seems to be the way Nov 25 23:51:15 sure Nov 25 23:51:23 and also dp on your device is not 1.5 pixel on another device it might be more or less Nov 25 23:51:38 hmm Nov 25 23:51:42 yeah I'm not sure how to solve this Nov 25 23:52:06 actually... yeah I might ahve to do this in code after layout Nov 25 23:52:15 try to do what I suggested Nov 25 23:52:20 it's going to work Nov 25 23:52:28 no it won't, I figured out what my issue is though Nov 25 23:52:37 Rob_TheRetroGuy: Eclipse or Android Studio? Nov 25 23:52:38 what is it? Nov 25 23:52:53 AS Nov 25 23:53:04 Odaym: too much effort to type it here, gonna fix it though Nov 25 23:53:07 thanks for your suggestion though Nov 25 23:53:09 ok :) Nov 25 23:53:43 got it Nov 25 23:53:46 it's because of the image scaling Nov 25 23:54:05 dp translation vs how many pixels in the image being displayed Nov 25 23:54:16 ah wow, noobie mistake. didnt declare it in my manifest.. been a long day haha Nov 25 23:54:38 Rob_TheRetroGuy: hah, np :) it always waits for the worst time to strike Nov 25 23:54:45 ok, try it on different device Nov 25 23:54:55 testing it now Nov 25 23:55:17 fixed it ^_^ Nov 25 23:56:17 Mavrik: "Does readLine() on a BufferedReader from network stream do what you expect?" Well isnt that what i am doing in the code? Nov 25 23:56:49 how'd you get a hold of that nickname is what I'm wondering Nov 25 23:57:01 i.have.no.idea :D Nov 25 23:57:18 i probably used up the luck of my lifetime Nov 25 23:57:31 I guess people on this network are too intelligent to chase nicknames Nov 25 23:57:47 sadly "night" isnt available anymore :( Nov 25 23:58:51 but i do see it correctly that the only way to receive the data stream is line by line? Nov 25 23:59:23 day: maybe this is jumping the gun, but is it XML? Nov 25 23:59:34 day: no, just read from the InputStream directly Nov 26 00:00:05 JesusFreke: oh. i look into that Nov 26 00:00:37 Groxx, so since I have to initialize Class c = null; can I make it so it just sends a toast instead of null? that would make it not crash if I havent added that position's .class yet Nov 26 00:00:37 day: did you get rid of your string appending? Nov 26 00:00:44 that would be the first thing to try Nov 26 00:00:46 or do I have to set it to null; ? Nov 26 00:00:56 JesusFreke: well im trying. BUt if i receive things line by line its hard to do Nov 26 00:01:05 day: use a StringBuilder Nov 26 00:01:17 i just found stringwriter :X Nov 26 00:01:33 No :) Nov 26 00:01:36 use a StringBuilder Nov 26 00:02:02 Rob_TheRetroGuy: easiest is probably to just check if (c == null) { toast } else { create intent and start activity }. Nov 26 00:02:58 hmm Nov 26 00:04:24 Rob_TheRetroGuy: though that's kinda an ugly solution, at some point you have two branches, you have to code both. Nov 26 00:04:56 Rob_TheRetroGuy: if you just dislike the initialization, you'll have to guarantee assignment. you can make the variable final, and add a "default:" case that sets it to null. Nov 26 00:08:10 I suppose Nov 26 00:08:36 once I have all the classes created, I wont need it, as it wont crash anymore. I just wanted a temp fix until I add them all Nov 26 00:11:12 ugh, i've got to add a 93-line long class to my project to get fucking dividers for my recyclerview ? Nov 26 00:19:14 there should be predefined h / v dividers that are useful 99% time Nov 26 00:20:02 Hail open source devs Nov 26 00:20:24 JesusFreke: lel. now it finishs in 1second :P Nov 26 00:21:10 day: by just changing the string append thing? Nov 26 00:21:37 JesusFreke: yea. i switched string += string; -> stringbuilder.append(line); Nov 26 00:21:44 compile 'org.hwrd.recycleextensions:dividers:1.0.+' Nov 26 00:21:54 compile 'org.hwrd.recycleextensions:headers:1.0.+' Nov 26 00:21:59 strong += line; * Nov 26 00:22:00 compile 'org.hwrd.recycleextensions:footers:1.0.+' Nov 26 00:22:29 (sorry compile) Nov 26 00:22:31 day: wow. I'm actually a bit surprised that was the whole problem Nov 26 00:23:09 JesusFreke: i have maybe 5 GC_FOR_ALLOC now. before a few hundred Nov 26 00:23:10 or rather, I'm surprised that that was causing it to be that slow Nov 26 00:23:14 GC remains undefeated in "omg laggg" causes, IMO Nov 26 00:23:31 i thought string += compiled down to stringbuilder already Nov 26 00:23:43 alas no. java isn't quite that fancy. Nov 26 00:23:44 sarbs: only if you're using string literals, afaik Nov 26 00:23:55 hmm. Nov 26 00:24:01 ^ ooh. that would be neat. I wonder if it does... Nov 26 00:24:19 e.g. s = s + "blah"; Nov 26 00:24:25 ah.. according to SO at least, += compiles down to StringBuilder as long as you're not +'ing in a loop Nov 26 00:24:30 ah Nov 26 00:24:32 https://stackoverflow.com/questions/1532461/stringbuilder-vs-string-concatenation-in-tostring-in-java Nov 26 00:24:43 that may apply to later compilers than 1.6 tho i haven't actually looked in detail Nov 26 00:24:47 interesting Nov 26 00:24:49 that makes a bit more sense Nov 26 00:25:07 yeah, that makes more sense than my initial theory :) Nov 26 00:25:43 I wish I new how to make a database, and then load info from that DB based on the position you tap from the list. so I dont have to make like 200 activities/classes. I can just use 1 and it loads the respective data.. :/ Nov 26 00:25:55 * sarbs whips up a test app and jebs it because now he's curious Nov 26 00:26:07 That applies only to expressions (e.g., a + b + c). Nov 26 00:26:22 Not stuff like this: String a = "one"; a += "two"; a += "three"; Nov 26 00:26:29 Why would it need to? Nov 26 00:27:00 200 activities? Nov 26 00:27:13 Wow. Nov 26 00:27:23 Rob_TheRetroGuy: http://developer.android.com/guide/topics/data/data-storage.html#db ? Nov 26 00:27:24 Wonder if it applies to final String a = "a"; Nov 26 00:27:46 Rob Nov 26 00:27:51 hwrdprkns: That wouldn't use a StringBuilder. Nov 26 00:27:56 Rob_TheRetroGuy: Nov 26 00:27:57 can that data be pulled and put on the activity based on the position? Nov 26 00:28:05 Google this: "Android Database Vogella" Nov 26 00:28:14 Some great tutorials there Nov 26 00:28:22 so rather than load datapage1, datapage 2. it just puts the data assigned to 1 on the activity, or 2 etc Nov 26 00:28:40 IIRC, the compiler creates bytecode for "String foo = new StringBuilder(first).append(second).append(third).toString();" when you say "String foo = first + second + third;". Nov 26 00:29:15 It may do, but I wouldnt have thought it was the obvious thing it would have done. Nov 26 00:29:24 That's why we can say stuff like [String foo = "Item number " + 1 + " is ready.";]. Nov 26 00:29:30 I guess my question is whether: final String a = "a"; String b = "You are" + a + " good person" turns into string concatenation Nov 26 00:29:36 No need to cast the 1 because StringBuilder.append(int) is called under the hood. Nov 26 00:29:49 I would have thought it would have just gotten the values and did foo foo "valueOfA" + "valueOfB" etc. Nov 26 00:29:54 final String a = "a" should behave the same as a literal, no? Nov 26 00:30:07 I know StringBuilder is efficient inside of a loop, and not really much more outside if at all Nov 26 00:30:20 thanks Ill look into it Nov 26 00:30:27 this would save me SO much time if it works Nov 26 00:30:38 Rob_TheRetroGuy: Spoiler alert, databases do work Nov 26 00:31:04 I stnad corrected. Nov 26 00:31:31 I know they work. but do I still have to make an activity for each one to output to, or can I use 1 and have specific data output based on a listItem selected? Nov 26 00:31:38 hwrdprkns: since literal strings tend to be inlined, I would guess it either does, or converts the whole thing into a compile-time constant. Nov 26 00:31:39 hwrdprkns: Yeah, that just treats the whole thing as a literal. Nov 26 00:31:48 hwrdprkns: Without the 'final', though, it uses StringBuilder.append. Nov 26 00:32:11 ldc Nov 26 00:32:23 Though you also get this: ldc Nov 26 00:32:38 Two literals. Nov 26 00:32:54 http://www.precisejava.com/javaperf/j2se/StringAndStringBuffer.htm Nov 26 00:33:14 Dunno how accurate that is, but its interesting Nov 26 00:33:37 There was someone somewhere benchmarking String+String vs StringBuilder in a load of different situations Nov 26 00:33:51 Why is it talking about StringBuffer? Nov 26 00:34:31 i found that straight up + was acutally faster than .append Nov 26 00:34:43 Lasserix, including if you are appending in a loop? Nov 26 00:34:44 lasserix: That doesn't make sense. Nov 26 00:34:49 Yeah i know Nov 26 00:34:55 so I was iterating through contacts Nov 26 00:34:55 If it's an expression, it'll be the same speed. If not, it'll be slower. Nov 26 00:35:03 grabbing all the mime data and appending into a string Nov 26 00:35:25 ie name -> next iteration number -> next iteraton nickname -> etc etc Nov 26 00:35:31 not sure if this is possible but Ill give it a shot Nov 26 00:35:42 and originally had used + then switched to .append and it slowed down Nov 26 00:36:47 theoretically should be the same since the compiler swaps + with an sb but who knows? Nov 26 00:37:16 Trying to append strings (in other words, creating whole new instances of strings over and over) is extremely slow. Nov 26 00:37:23 Even 10,000 iterations will cause visible lag. Nov 26 00:37:28 ? Nov 26 00:37:33 you dont have a choice with cursor Nov 26 00:37:38 Yeah Nov 26 00:37:45 + would do what tactical said Nov 26 00:37:58 SB wouldn't until you call .toString or build or whatever. Nov 26 00:38:00 but like i said doing + turned out to be faster than sb.append Nov 26 00:38:07 [a + b + c] just calls StringBuilder.append under the hood, but doing it in separate statements doesn't and is very, very slow. Nov 26 00:38:34 You can test with just a few thousand iterations. Nov 26 00:40:48 100,000 iterations of += take 30 seconds on here. The same code with StringBuilder.append takes 0.016 seconds. Nov 26 00:42:02 That's on the JVM, though. Not sure about Android. Nov 26 00:42:09 Presumably very similar results. Nov 26 00:42:16 don't presume ;p Nov 26 00:42:28 Probably not wrong though Nov 26 00:42:28 yeah, was just going to say :) Nov 26 00:42:56 C# was very similar here, too. Nov 26 00:43:21 Trying to mutate Strings just doesn't perform well. Nov 26 00:43:30 * Anthaas collects the high horses for C++ people for convenience. Nov 26 00:43:52 TacticalJoke you are correct, i just compiled + jeb'ed Nov 26 00:44:01 separate instantiations of StringBuilder for each += Nov 26 00:44:18 regardless if they're right after each other - test += test; test += test; Nov 26 00:51:44 is there a good read about getContext() somewhere? I cant find any proper explanation. Only stuff like 'this is how you can define it statically for the whole project' which kinda doesnt make sense in my eyes :/. I can write to textviews without a getContext(); But picasso suddenly needs getContext() for imageViews...what is going on? Nov 26 00:52:05 it needs to be able to load resources, access the cache dir, etc. Nov 26 00:52:16 create content resolvers Nov 26 00:52:22 other things for which a Context is needed Nov 26 00:52:26 http://developer.android.com/reference/android/content/Context.html Nov 26 00:53:11 but if its a global thing. why cant i use getContext() wherever i want? Nov 26 00:53:15 day: http://www.doubleencore.com/2013/06/context/ Nov 26 00:53:26 its the highlest level state wrapper Nov 26 00:53:38 you can put a singelton in your application class Nov 26 00:53:44 look at that link Nov 26 00:53:47 it's not global Nov 26 00:53:53 context isn't global Nov 26 00:54:09 Context depends on where you are Nov 26 00:54:14 hence the name context Nov 26 00:55:36 that means i can just create a new context in every class and use that? Nov 26 00:55:42 no Nov 26 00:55:45 not at all Nov 26 00:55:48 day: http://www.doubleencore.com/2013/06/context/ Nov 26 00:56:58 lasserix: ty. that link looks promising Nov 26 00:57:20 very good explanation with singelton implementation you can use to be able to access it from all your classes Nov 26 00:59:10 gn8 everyone Nov 26 00:59:13 ...but you should never need that Nov 26 00:59:19 almost never Nov 26 01:01:46 Good neight. :) Nov 26 01:02:28 a globally accessible application context is handy Nov 26 01:03:57 the cow says: doctorate denied! Nov 26 01:04:05 night tactical Nov 26 01:06:22 I'm not going yet. Was just saying night to day. Or 'n8'. Nov 26 01:06:41 It's annoying how Java doesn't let us create arrays of generic types. Nov 26 01:07:08 That might tempt one simply to use List as a fixed-size list. Nov 26 01:07:45 I guess ArrayList and so on can be subclassed into FixedSizeList. Nov 26 01:08:13 List? Nov 26 01:09:57 I guess you could say "Object[] array = new Object[N];", but you'll be casting all over the place. Nov 26 01:10:25 (E[]) new Object[12] Nov 26 01:10:26 problem solved Nov 26 01:11:54 ...which will be an interesting case in Java 10 when they add generics over primitives. I guess that's where specialization comes in to rewrite bytecode from Object to int or whatever. Nov 26 01:12:31 @SuppressWarnings("unchecked") :( Nov 26 01:12:45 Oh, didn't know about that. Interesting. Nov 26 01:13:48 To be fair, though, I guess it's only one suppressed warning. Nov 26 01:14:13 (In the example above.) Nov 26 01:15:56 I want to get a ListPreference to display two types of rows. So I've extended ListPreference so it would use adapter instead of entryValues. And I've extended ListAdapter to display my rows. The problem is I can't get a default layout for select dialog row. Source code of AlertDialog shows it uses some magic with com.android.internal.R.styleable.AlertDialog_singleChoiceItemLayout. So is there a way I can Nov 26 01:15:59 use a default layout of an item of single choice select alert dialog of the phone in my custom adapter? Nov 26 01:16:34 whoah so I guess the launcher redraws/memory problems aren't just me Nov 26 01:16:50 last night I couldn't start audible until I removed apps from my overview (recent apps) screen Nov 26 01:17:10 hey JacobTabak did you fix the issue with styles and Toolbar? Nov 26 01:17:10 it was so bizarre, i was like, there's no way closing apps is going to make this work, but voila Nov 26 01:17:27 JacobTabak: is this in lollipop? Nov 26 01:17:29 i'm doing it programmatically cliffreich, didn't want to goof around with it Nov 26 01:17:31 Groxx yes Nov 26 01:17:39 ahh Nov 26 01:18:02 http://www.androidpolice.com/2014/11/25/lollipop-bug-users-reporting-apps-frequently-restart-and-performance-suffers-the-longer-you-go-without-a-restart/ Nov 26 01:18:07 Hmm. If I say "@SuppressWarnings("unchecked")" right above the statement "array = (T[]) new Object[5];", I get a compile error. The error goes away with "this.array" instead of "array". Nov 26 01:18:31 👠Nov 26 01:19:16 a problem with no context and solution which forces our assumptions all in one sentence Nov 26 01:20:08 Oh, SuppressWarnings can't annotate arbitrary lines of code. Just declarations and stuff. Nov 26 01:21:50 JacobTabak: huh. I'll keep an eye out for that. Nov 26 01:21:58 i noticed the launcher redraws first Nov 26 01:22:30 just through normal use, i'd tap the home button from a browser or something and there'd be no icons on the homescreen Nov 26 01:22:41 i was considering re-flashing and wiping my user partition but if it's a known issue maybe i won't Nov 26 01:22:58 TacticalJoke: I don't know if @SuppressWarnings works on individual lines. it might only work on the level of a method. Nov 26 01:23:07 Yeah, or declarations, it seems. Nov 26 01:23:37 TacticalJoke: technically you can do that with Java, but I don't know if Android's tools handle it. or maybe it's something else. Nov 26 01:23:46 i guess most people complaining are n5 users Nov 26 01:23:49 "Annotations can be applied to declarations: declarations of classes, fields, methods, and other program elements." Nov 26 01:24:36 Groxx: Android's tools are Java's tools: javac. Nov 26 01:25:01 As of Java 8, though, declarations can be applied to uses of types. Nov 26 01:25:29 Not that Java 8 means much to Android people. Nov 26 01:25:44 I wonder whether we'll get "Java 8 support" anytime soon. Nov 26 01:27:20 JakeWharton: yeah, a bit old though. and javac isn't the only source of errors, as you can write with-resources code that won't run pre-KitKat Nov 26 01:28:08 TacticalJoke took until api 19 for them to support 1.7.. at that pace we're looking at 1.8 right around api 38 ;) Nov 26 01:28:17 sarbs: that's not true at all Nov 26 01:28:36 java 6 adoption was slower than 7 Nov 26 01:28:39 so if anything, it's speeding up Nov 26 01:28:48 also, remember that java 8 has been out for a total of 9 months Nov 26 01:28:48 \o/ Nov 26 01:28:51 Lambdas would be so cool. Nov 26 01:29:06 Groxx: it's not old. you can and should be using the latest version of the JDK Nov 26 01:29:08 It looks like local_variable annotations should work with a 1.7 target? does anyone know if those work? I've never seen them in android code Nov 26 01:29:16 I like the sound of partial classes in an upcoming Java version. Nov 26 01:29:17 JakeWharton: well, not 8 Nov 26 01:29:23 sure Nov 26 01:29:27 That could solve so many issues with regard to stuff such as "findViewById". Nov 26 01:29:36 i've been using JDK 8 for over a year with all my Android stuff Nov 26 01:29:47 i accidentally used Java 9 EA the other week accidentally Nov 26 01:29:51 JakeWharton: including stuff like type annotations? Nov 26 01:29:57 no, those are language features Nov 26 01:30:07 aaah. my bad, mixing up the distinction. Nov 26 01:30:14 JakeWharton but i assume not compiling 8 code, just using the 8 tools right Nov 26 01:30:27 sarbs: yes. you have to get all shady for language features :( Nov 26 01:30:36 <3 retrolambda Nov 26 01:30:39 haha Nov 26 01:30:51 Hmm. I've been sticking with the JDK 7. Would there be any benefit in my using JDK 8? Nov 26 01:30:57 TacticalJoke: no Nov 26 01:31:04 no permgen in the compiler is nice Nov 26 01:32:00 you can't use java 8 for android in any case Nov 26 01:32:17 when have you hit a limit in permgen Nov 26 01:32:22 it's so rare Nov 26 01:32:34 not true at all Nov 26 01:32:41 JakeWharton: I've been checking out Java bytecode lately. Learning a lot about "under the hood" Java. :) Nov 26 01:32:56 i could configure a build tool to destroy its JVM in which javac is running because of permgen Nov 26 01:33:59 we've had it happen many times on our server build infrastructure. i've definitely had it happen with Gradle a few times a long time ago. Nov 26 01:34:14 I hit it from time to time Nov 26 01:34:39 but it's quite rare, especially when I set permgen to 500mb or higher Nov 26 01:35:08 it's a nice optimization that it's gone, but a limitation that isn't often hit Nov 26 01:35:55 not having to reserve a shitton of memory for stuff that can't be gc is the way things should be Nov 26 01:35:57 and since no one should be using old JDKs, hopefully never hit again Nov 26 01:36:57 soon we'll be using jack & jill :) Nov 26 01:37:04 not soon Nov 26 01:37:20 what's jack + jill Nov 26 01:37:26 probably 1yr+ Nov 26 01:37:41 sarbs https://www.saikoa.com/blog/the_upcoming_jack_and_jill_compilers_in_android Nov 26 01:38:14 interesting Nov 26 01:38:21 not something I'm looking forward to Nov 26 01:38:50 looks way to complicated to make things easier Nov 26 01:38:53 *too Nov 26 01:39:09 complicated? jeez do you know how it works now? Nov 26 01:39:25 complicated graphs Nov 26 01:39:35 = complicated output? Nov 26 01:39:41 android build is practically the definition of complicated Nov 26 01:40:18 (specifically figure 4) Nov 26 01:40:43 that isn't a complicated build path at all Nov 26 01:41:49 nice; i was unaware of j&j Nov 26 01:44:30 JakeWharton: Will Jack & Jill mean we can't do JVM unit testing anymore? Nov 26 01:44:55 depends on your meaning of JVM unit testing Nov 26 01:46:15 next up: processor that uses art bytecode as nativa ISA Nov 26 01:46:30 g00s: those have come and gone Nov 26 01:46:35 g00s: well, java bytecode processors Nov 26 01:46:41 Will Robolectric still work with J&J? Nov 26 01:46:57 I'm not sure how to define 'work' here. :D Nov 26 01:47:00 I suspect J&J is so early in development right now that what will work and what won't is fairly unclear Nov 26 01:47:03 Or 'with'. Nov 26 01:47:13 True. Nov 26 01:49:15 "Some atoms have gone 13.8 billions years only to learn that their purpose in this universe is to be manufactured into a dildo and shoved up someone's asshole" Nov 26 01:49:16 i imagine that it would be simplest, and still faster, to just do two java compiles - one with javac and one with jack Nov 26 01:49:25 Not relevant, but by god that made me chuckle today! Nov 26 01:49:32 Figured Id share. Nov 26 01:49:44 made me rofl too so cheers. Nov 26 01:49:50 Good thing those atoms aren't sentient. Nov 26 01:50:18 TacticalJoke how do you know :) Nov 26 01:51:13 Yeah, you are sentient, aren't you? Nov 26 01:51:16 You are made of atoms... Nov 26 01:51:22 :P Nov 26 01:51:33 Yeah, but I'm not bright pink and gross. Nov 26 01:51:50 you probably do vibrate a bit though Nov 26 01:52:07 And I'd imagine you've tried to find your way...nah, Im not going to finish that... Nov 26 01:55:06 I'm too innocent to imagine the rest. Nov 26 02:05:27 http://www.gironsec.com/blog/2014/11/what-the-hell-uber-uncool-bro/ Nov 26 02:06:14 oh yeah, thats why we need better permission system on android :) Nov 26 02:10:23 g00s: too much time on ya hands there.. Nov 26 02:11:31 g00s: no kidding. is there actually any evidence that they're doing anything dubious with the permissions? there are reasonable explanation for pretty much every one. Nov 26 02:11:50 Pfft Nov 26 02:12:02 Facebook: "We need your location to post where you are on your statuses" Nov 26 02:12:10 ^^ Right Nov 26 02:12:25 Not Facebook: "We track which shops you go to to better build up a directed advertising campaign" Nov 26 02:12:44 Its easy to say what you ARE doing with the data. Nov 26 02:12:44 Did you see that swype keyboard polls gps like 2 times a minute? Nov 26 02:12:54 But not what you are not not doing with it. Nov 26 02:12:55 I thought the shops thing was done via the wifi access points, not your phone? Nov 26 02:13:04 Oh I just made that up as an example. Nov 26 02:13:11 haha Nov 26 02:13:30 well, FB does have "free" wifi in coffee shops around me. just log in…! Nov 26 02:13:34 Fine or coarse determines gps, or wifi Nov 26 02:13:36 at least there's a mostly-hidden "skip" link Nov 26 02:13:46 Groxx: NO!!! Nov 26 02:14:13 why would this app need to send uber your sms and phone call logs ? Nov 26 02:14:52 What does Uber do? Nov 26 02:14:52 I used to work for a company which slipped tracking code past Apple. The developer forgot it was even in there, until when looking through the database of coordinates posted he could track another developer over the weekend. Nov 26 02:15:07 Gets you taxis Nov 26 02:15:13 Where you can listen to your own music. Nov 26 02:15:40 g00s: that's what I mean though - is there evidence that it's actually sent? and I don't see call log permission in there, just read_phone_state (literally insane that "getDeviceId()" is under that permission, but whatever) Nov 26 02:16:29 read_phone_state is usually just to have a call.ui for the app itself if I can remember that one right Nov 26 02:17:14 read_phone_state lets you receive the incoming call broadcast, seeing who's calling you, _and_ getDeviceId() which everything ever uses as a device ID for install-tracking because they essentially should Nov 26 02:17:38 nearly every use is just getDeviceId() / similar. but they're under the same permission, which is ludicrous Nov 26 02:18:05 Might be a silly question, but has anyone worked on rooting/roms for the Fire HD6? Nov 26 02:18:16 DamN! WallyWorld has some good deals on black friday! Nov 26 02:20:23 $29 RCA 7" Google Play WiFi Tab!! 1.4g quad core and almost HD Nov 26 02:21:04 antisaint, reading the reviews, alot of them have died quickly, perma death. Nov 26 02:21:25 tablets at that price really make me wish I had more electrical knowledge. crazy-cheap displays and touch screens. Nov 26 02:21:37 Poor quality is my thought there. I remember when RCA was one of the good ones.. Nov 26 02:22:08 Yeah, they were good back in the old days, but I don't think they kept up with the market good enough. Nov 26 02:22:30 Na, they had the sterio market in the 90's for sure tho. Nov 26 02:23:12 LG is taking over Samsung for devices... until Google releases Project Aura Nov 26 02:23:20 Anyone working on root/roms for the Fire HD6? its pretty good hardware for the price. Nov 26 02:23:46 Its the only 6 inch tablet I could find for a good price that had good hardware. Nov 26 02:23:56 a 7 inch is to big for what I'm trying to do Nov 26 02:24:12 Syndrome: if it's old enough, maybe Towelroot will work? or is the issue that e.g. SuperSU doesn't have an amazon build? Nov 26 02:26:47 Anybody have a way to unfreeze appz for RomToolBox via am intent method? Nov 26 02:31:14 Anybody up to help me with a startup script? Looking to take this out of group chat as it deals with network connectivity. PM ME! Nov 26 02:33:41 Groxx, its actually a new tablet, realest in October 2014. Nov 26 02:34:04 antisaint: startup script? i think you're in the wrong channel Nov 26 02:34:05 http://www.amazon.com/Fire-HD-Display-Wi-Fi-GB/dp/B00KC6I06S/ref=sr_1_1?ie=UTF8&qid=1416969235&sr=8-1&keywords=fire+hd+6&pebp=1416969236115 Nov 26 02:34:20 0.o Nov 26 02:34:31 How is that? Nov 26 02:35:18 you guys need one of these http://www.gizmag.com/kids-tablet-buying-guide-2014/34820/ Nov 26 02:36:17 The 20-inch Nabi Big Tab costs $450, while the 24-inch version will set you back $550. Nov 26 02:36:22 hehe it'd be kinda fun developing for those kinds of devices Nov 26 02:36:29 Exactly how much I want to spend so the kids can break it. ;) Nov 26 02:37:24 bankai_au: I doubt with you stating that I posted in the wrong channel about a startup script that you are a developer :/ Nov 26 02:37:55 this is app dev, not system internals, roms or hacking Nov 26 02:38:55 And a script to init network programs does not fit into that category? Your a fucking strickt lil panty sniffer Nov 26 02:58:48 Hello. Any idea or references on how to implement Check-in Places feature using Google Maps & Places API? I'm new to Google Maps API. I also searched across the web but can't see any implementation of Check-in places. Thank you. Nov 26 02:59:36 Anyone know how to handle the IME action when writing a custom ime? **** ENDING LOGGING AT Wed Nov 26 02:59:58 2014