**** BEGIN LOGGING AT Sun Jan 04 02:59:58 2015 Jan 04 03:32:51 hot diggity, pulled in spongycastle successfully to my android phone. Jan 04 03:34:15 dang, a 1.5MB apk! that's kinda huge. Jan 04 03:37:00 when using startActivityForResult my resultCode in onActivityResult is ALWAYS 0 why is this? Jan 04 03:38:14 here's the code Jan 04 03:38:14 http://pastebin.com/5XrgnA4r Jan 04 03:56:08 lasserix_: 0, isn't it cancelled? are you by any chance backing out somehow instead of runign thru the setResult() route? Jan 04 03:56:32 does anyone know if i can use oauth to consume a purchase? Jan 04 03:58:06 i fixed it not sure what was wrong Jan 04 03:58:50 lasserix_: heh, that's the worst bug when it just fixes itself. Jan 04 04:01:28 lasserix_: making pretty slow work on my app. been in vacation mode. Jan 04 04:09:50 ladies! Jan 04 04:10:04 hey ron_frown Jan 04 04:10:47 g00s do you know anything about zigbee smart energy shit Jan 04 04:10:55 nope Jan 04 04:11:15 looked pretty cool but , licensing ugh Jan 04 04:11:16 shit Jan 04 04:11:23 what do you have to license Jan 04 04:11:24 hardware? Jan 04 04:11:43 can't remember now. and maybe its changed Jan 04 04:13:35 W00T Jan 04 04:13:37 I GOT A 0 Jan 04 04:14:11 apparently my emeter allows me to connect up zigbee SEP device Jan 04 04:14:19 I want something I can query and write software around Jan 04 04:14:20 openssl_verify sent me a 1... which somehow turned into a 0, but never minnd Jan 04 04:14:46 IT LIVES Jan 04 04:15:00 now, how the hell do i generate a nonce? Do I really need to? Jan 04 04:15:19 ron_frown http://www.cs.cmu.edu/~dst/E-Meter/ ?? :D Jan 04 04:15:27 no Jan 04 04:15:29 no no Jan 04 04:15:41 sorry smart meter Jan 04 04:18:47 heh Jan 04 04:20:08 * g00s copies lollipop ble code into his project to fix bugs pre lollipop Jan 04 04:20:46 did I ever tell you what I did with android 2.2 and android 4? Jan 04 04:20:55 oh god no Jan 04 04:21:04 I ported android's tablet ui, with back buttons etc Jan 04 04:21:07 back to 2.2 Jan 04 04:21:23 it was a royal bitch Jan 04 04:21:32 but we didnt want hardware buttons Jan 04 04:21:46 and 2.2 really had no support for that yet Jan 04 04:22:30 you crazy Jan 04 04:24:28 ron_frown why not port it back to android 1.0 ? Jan 04 04:24:36 we never had hardware for that Jan 04 04:24:41 jk :) Jan 04 04:24:54 it was basically me fighting my boss whos apparently constantly trying to toss me under the bus Jan 04 04:25:07 he was trying to say after all that work of porting android to our hardware Jan 04 04:25:19 oh these buttons will add so many hundreds of thousands of dollars Jan 04 04:25:23 sorry we can do that project anymroe Jan 04 04:25:27 fuck that mess Jan 04 04:27:15 ooo The two "cans" in the photo are joined together by a plastic insulator insert, allowing both to be held in one hand for solo auditing. This type of auditing is practiced only on the most advanced (and most expensive) Scientology levels, Jan 04 04:27:31 that would have been a fun project to do in electronics class Jan 04 04:28:49 i dont understand how anyone falls for that crap Jan 04 04:29:55 instead of emeters, they should use a pizza compass http://www.androidpolice.com/2015/01/03/pizza-compass-is-the-one-android-and-android-wear-app-that-every-college-student-needs/ Jan 04 04:31:02 hey guys I am working on old app from couple of months ago, and I am wondering how can I send data to connected user? I know there is outputstream, but how would I do that from a listview? Jan 04 04:31:44 anyone know of any good wear apps? Jan 04 04:31:55 dumb netflix. Jan 04 04:32:12 starting star trek and it's playing from last saved location: end of credits. Jan 04 04:35:32 dumb netflix not even available in this country -- count yourself lucky :P Jan 04 04:35:54 B0BBY the 2009 one with chris pine ? Jan 04 04:36:01 i just watched that, wow pretty good Jan 04 04:36:19 g00s: heh, how did you even guess it! Jan 04 04:36:19 do any pop out scrollbar libraries exist? Jan 04 04:36:20 too bad zachary quinto is only doing one more, seems bored with spock Jan 04 04:37:02 g00s: oh wait, the one on netflix is the 2013 one. Jan 04 04:37:13 that might be into darkness Jan 04 04:37:25 g00s: I kinda wish they had not entangled uhura and spock in a super obvious love drama. Jan 04 04:37:40 spock probably doesn't mind :) Jan 04 04:38:00 oh yeah thats the one with cumberbunch Jan 04 04:38:03 heh Jan 04 04:38:31 I like the actress. but spock's established persona normally doesn't fall for emotion. And uhura's character can stand on it's own without needing a love story. Jan 04 04:38:38 i wasn't really into start trek, but the 2009 one did a good job of introducing how everybody got their trademark quirks Jan 04 04:38:42 I kinda think it weakens uhura character. Jan 04 04:40:13 its all about introducing it to younger generations Jan 04 04:40:24 g00s: so you've never watched the older star trek stuff? Jan 04 04:40:31 nah Jan 04 04:40:43 i saw a few TNG Jan 04 04:40:57 some of the full movies Jan 04 04:41:12 lasserix_: yeah, to an extent I undrestand it needs an overhaul. but I kinda figured the very core group and their dynamic should have stayed the same. Jan 04 04:41:40 g00s: wow, I think with exception of ds9, I've watched all other series. and some of the older movies. Jan 04 04:41:56 i think i've seen all the older movies Jan 04 04:44:58 hmm, they were mostly before I started college and then for some, I couldn't find anyone to go with and never saw. Jan 04 04:45:01 until now on netflix. Jan 04 05:17:47 seems like i'm accumulating quite a collection of mishmash files , samples, hlpers from google+ posts, even internal android code in my project. not sure it merits a sub-project or not. how do you guys organize that stuff? just throw the sources in some external-utils/ package? Jan 04 05:19:42 Put it in the porn folder Jan 04 05:20:23 Darklust if i ever peruse sources and find a porn folder, i'll know its yours :) Jan 04 05:20:32 of some project Jan 04 05:22:03 There's always a porn folder ;) Jan 04 05:30:36 Darklust: is it marked "Taxes"? Jan 04 05:31:07 g00s: you're just adding samples, helpers all to your actual project? Jan 04 05:31:57 yeah. like SlidingTabStrip . that stupid divider from recyclerview samples, etc Jan 04 05:32:44 hmm, I only has a notes file in my projects. I'll put in URLs there and some code snippets. Jan 04 05:32:48 *have Jan 04 05:33:21 I tend to just start a new project for proof of concept type of crap. once it works, I clean it up and pull the files needed into main project. Jan 04 05:36:21 B0BBY: Thought about that, but seeing as it's almost that time of year, I'm certain my wife would divorce me Jan 04 05:37:24 Darklust: lol. also, you could just store sensitive data on a loop file encrypted, etc. etc. Jan 04 05:37:50 or vhd (or whatever they're called) on windows. Jan 04 05:38:01 anyone know how to reset genymotion emu to factory? Jan 04 05:51:11 bah, java.util.Objects api 19 lamesauce Jan 04 06:03:30 lol, the woman tells kirk to turn around so she can change. Jan 04 06:03:40 and half way thru he turns back. Jan 04 06:04:38 classic kirk. Jan 04 06:20:04 ParcelUUID, UUID, what a mess Jan 04 06:26:20 Hey guys If I do long press on a online user in my app, from there how can I start output stream with that specific user, and send commands. Jan 04 06:26:32 online user in listview** Jan 04 06:27:32 long poll* Jan 04 06:28:45 oh man d.android.com is giving me a 500 Jan 04 06:31:29 "When Samsung attacks!" Jan 04 06:31:44 wow, AES 256, is .... horribly slow on an actual android device. Jan 04 06:33:07 B0BBY an NSA coprocessor speeds that up a lot Jan 04 06:34:10 g00s: well, if the NSA wants to decrypt our little app data, don't think anyone can stop them. Jan 04 06:35:07 I may drop it to 192, or 128 even. after trying a few things. you now run batches of data thru the code, time it. Jan 04 06:35:19 lol, I might just xor it in the end. Jan 04 06:36:41 capella read any good books lately ? Jan 04 06:37:27 B0BBY: why use aes? try blowfish. Jan 04 06:38:00 i tend to have better luck with blowfish on "lesser" systems. Jan 04 06:38:45 lewellyn: as in most cases, one starts out in fantasy land. Wanting the best. Jan 04 06:38:56 blowfish is arguably the best. ;) Jan 04 06:39:05 I suppose when you realize the infrastructure can't handle the top speed, you scale down. Jan 04 06:39:25 so tell me, is blowfish more secure or same as AES-256? Jan 04 06:39:44 g00s: Nah, been doing some major enhancements to SelectionHandler for moz ... buncha tests, fixing RTL text logic bugs Jan 04 06:39:45 I just did a week's reading and settled on AES-128. then bumped it to 256. Jan 04 06:39:51 aes has had flaws. none have been exhibited in blowfish. Jan 04 06:40:26 well, there are attacks if your key is weak. but that's somewhat unavoidable. Jan 04 06:40:37 * capella puttin my reviewers to work :p Jan 04 06:40:53 (twofish is better, but probably way overkill for your stated needs.) Jan 04 06:41:32 lewellyn: in the end, I'll be encrypting work documents to store on my personal device. highest security will convince my boss to let me do so. Jan 04 06:41:58 lewellyn: I do have a work device also. But sometimes, you don't want to carry two phones on a vacation. Jan 04 06:42:16 erm. so use something off-the-shelf which has already been proven secure. Jan 04 06:42:33 fips validation isn't something companies do just for giggles. Jan 04 06:43:03 lewellyn: sure, but I won't learn anything in the process. :) Jan 04 06:43:23 i'd leave that to the experts :| Jan 04 06:43:30 from the line of questioning, you're biting off way more than you should try to chew considering what's at stake. Jan 04 06:43:46 lewellyn: I think a more direct question would be: what's the highest security encryption algorithm to employ. Jan 04 06:43:57 crypto is not easy math. in many cases, it's *simple* math, but that doesn't make it easy. Jan 04 06:44:11 B0BBY: there is no such thing. Jan 04 06:44:12 lewellyn: overall, I agree with that you're saying. I'm really just trying to cook up a scenario that requires me to encrypt something. lol. Jan 04 06:44:27 there are two flavors of crypto: that which has been broken and that which will be broken. Jan 04 06:45:20 lewellyn: if I don't code something into a complete finished app, I don't learn as much. coding one off features just isn't fun enough. Jan 04 06:45:41 for example, this was created by some of the best minds in the field. read the final sentence of the introduction... http://en.wikipedia.org/wiki/MacGuffin_(cipher) Jan 04 06:45:49 for a reality check, I understand all encryption can be broken given enough resources. so if you don't want it out there.... don't put it out there. Jan 04 06:47:16 tbqh, 3des is more than sufficient for most tasks. Jan 04 06:47:34 3des is used by most banking still. Jan 04 06:47:56 I see. I also saw a document encryptor in the Play Store. so there's that option too. Jan 04 06:48:15 was it made by someone who has a trusted name in security? if not, be wary. Jan 04 06:48:25 just figured trying something like this would be fun. since I had to pull in outside library like spongycastle to enable 256-bit keys. Jan 04 06:48:26 it's WAY too easy to screw up crypto. Jan 04 06:48:33 see heartbleed and poodle for recent notable examples. Jan 04 06:48:52 you won't need spongycastle for 3des. Jan 04 06:48:55 the way too easy part: I see that on stackoverflow all teh time. people are butchering code to pieces with flaws. Jan 04 06:49:58 spongycastle was cool because I liked learning how to package extra jars and deploy them to your device. Jan 04 06:58:11 lol, 4 seconds to encrypt a simple little sentence. I think I'll research other algorithms like you mentioned. Jan 04 06:58:41 yo Jan 04 06:59:11 can i trust that onResume is called everytime an activity is started? i mean right after onStart? Jan 04 07:01:16 B0BBY: learning is good. but proper learning means knowing when to backtrack when you're chasing a wild goose. ;) Jan 04 07:03:10 * g00s is wild Jan 04 07:03:35 Nick yeah for the most part Jan 04 07:03:58 lewellyn: right, that's why I'm going to reserach alternatives. Jan 04 07:04:06 everything on the device is susceptible Jan 04 07:04:19 lewellyn: and it's not like I'm marketing this as a "document securing app" to other schmoes. Jan 04 07:04:22 B0BBY: tbh, research why 3DES wouldn't suffice. Jan 04 07:04:36 Nick-S after? yes. right after? no Jan 04 07:04:38 it's good enough for .gov, banks, and many other big things. Jan 04 07:04:48 g00s: y not Jan 04 07:04:50 and it doesn't require adding a third party library. Jan 04 07:04:57 Nick-S because O.o Jan 04 07:05:05 lewellyn: 3des is what is used by gov banks and other big sites? Jan 04 07:05:21 g00s: but it'lll happen at SOME point. right? Jan 04 07:05:24 Nick-S this is good https://github.com/xxv/android-lifecycle Jan 04 07:05:29 yeah, some point Jan 04 07:05:40 Nick-S: what are you using it for? Jan 04 07:05:51 B0BBY: why the encryption? Jan 04 07:06:17 g00s: there is a service i want to bind, and i don't want to leak the connection... Jan 04 07:06:28 Nick-S bind in onStart Jan 04 07:06:29 use start stop Jan 04 07:06:31 g00s: where do i ubind? and where do i re-bind, Jan 04 07:06:42 lasserix_: if you remember, I just create an app need and try to code it. helps me learn. :) Jan 04 07:06:47 B0BBY: 3DES is pretty much the defacto standard for "we don't have a reason to choose anything else" Jan 04 07:07:06 lewellyn: ah, that's the gov't motto for most stuff, lol. Jan 04 07:07:08 so where do i need to re-bind? Jan 04 07:07:28 lewellyn: I will go read up on algorithm choices more now. Jan 04 07:07:30 NIST says the current usage of 3DES is good until about 2030. and then it's just using more bits. Jan 04 07:08:09 112/128-bit (depending on how you count them) 3DES is probably quite fine for what you're stating, if you insist on rolling your own solution. Jan 04 07:08:57 lewellyn: mine is just for learning purposes. by profession I do .NET dev. Jan 04 07:09:13 lewellyn: I mainly saw this and went for AES: http://en.wikipedia.org/wiki/Advanced_Encryption_Standard Jan 04 07:09:14 Can I access an array in an activity from a view class? Jan 04 07:09:19 Without passing it? Jan 04 07:09:25 Is that possible? Jan 04 07:09:32 from where? Jan 04 07:09:41 err when? Jan 04 07:09:47 you can do Jan 04 07:09:49 getContext Jan 04 07:09:53 then cast it to your activity Jan 04 07:10:00 it says the NIST standardized AES256 in FIPS PUB 197 as their standard. so I figured hey I"ll do something that encrypts the data using that. Jan 04 07:10:10 B0BBY: from that page: Although NIST publication 197 ("FIPS 197") is the unique document that covers the AES algorithm, vendors typically approach the CMVP under FIPS 140 and ask to have several algorithms (such as Triple DES or SHA1) validated at the same time. Jan 04 07:10:17 but you may want to wrap it in a NPE try catch in case you use the view in some other activity Jan 04 07:10:50 lewellyn: I see. this seemed newer. again, I'm still learngin about this, so I really apprecaite your point of view. Jan 04 07:10:51 lasserix_: I'm trying that right now Jan 04 07:11:33 B0BBY: newer is not always better. in fact, with crypto, older is usually better since if it's been around a while and has managed to remain unbroken, it's probably going to stay that way for the foreseeable future. Jan 04 07:12:12 lewellyn: true, very valid point. Jan 04 07:12:26 i'm usually hesitant to suggest latest-and-greatest to people for important crypto tasks, since there just hasn't been enough time to have lots of people trying to break it. Jan 04 07:13:52 AES isn't in that category, but as you saw, there isn't always a gain to be had from it. Jan 04 07:14:07 lewellyn: for my work, some of our projects were security tested to verify them for FIPS. But we didn't write any crypto code. just used components like SSL certs, blah blah. Jan 04 07:14:25 they were more verifying the solution overall, not just our code since we code was just on top of IIS, blah blah. Jan 04 07:14:58 yeah. you don't recertify already-certified things. Jan 04 07:15:50 lewellyn: an in a way I've successfully moved spongycastle to the device, done AES256. I could just move on to the next projects considering this to be a much bigger scope of a project. Jan 04 07:16:41 yeah. the next step with this is "do some jni and learn the pain of debugging it" if you are just trying to fit as much learning into a single project as possible. ;) Jan 04 07:17:04 jni? java to c/c++ stuff? Jan 04 07:17:16 yeah. Jan 04 07:17:34 protip, you don't want to go down that rabbit hole if you can helpit. Jan 04 07:17:57 I remember in college my professor used to be "jini jini jini jini". I think it was JNI. Jan 04 07:18:05 without android in the mix, jni is suck... adding in android makes it enough to turn you into a raging alcoholic. the alcohol reduces the rage a bit. Jan 04 07:18:24 some french guy who was really hard to understand who had some AI project he wanted help on for a 3 credit hour grade in return. Jan 04 07:19:04 I just avoided him. heck I avoided java like bad sushi until I figured I'd like do some android projects. Jan 04 07:19:25 but you do .net... ;) Jan 04 07:19:45 C# and Java should feel not entirely dissimilar to you. Jan 04 07:19:46 for all its idiosyncracies it stays in the microsoft family. Jan 04 07:20:15 it was a vb6 to .NET move. the Visual Studio IDE is (in my opinion) far superior to any java IDE. And much faster. Jan 04 07:20:39 * lewellyn avoids both pitfalls on that line. Jan 04 07:20:43 * lewellyn goes to do dishes. :) Jan 04 07:21:09 but, once I learned eclipse, I'm really fine with it. I think we just have to use the tool for what they can do for us. Jan 04 07:22:00 eclipse has a lot going for it, yes. Jan 04 07:22:29 Hmm, I wonder how I can go about creating a input field with checkboxes like what Google Keep usese Jan 04 07:22:36 I hated it in the begining. but don't we hate anythign new? now that I've used it, I was kinda hating Android Studio. Jan 04 07:22:45 once, I use that enough, I'll be fine with that too. Jan 04 07:22:47 Idk if I should even update this app. It only has a couple hundred downlaods. Jan 04 07:22:57 Its going to take me two days to fix it. Jan 04 07:23:15 AndreYonadam: if you can do it, do it. it's good for your resume to have a published app with users. Jan 04 07:23:22 I guess Jan 04 07:24:19 I have a published app with 50 downloads. I think of keeping it up to date, but it's been crawling along so far. Jan 04 07:24:28 B0BBY: The problem is. I'm on Winter break right now. And I have apps that I haven't update for a year. I'm going to be real I haven't even touched Android development in a year. Idk its kind of frustrating I forgot a lot and its taking me a while to even read the code that I did lol. Jan 04 07:24:32 The thing about me was Jan 04 07:24:36 I was making stuff and just abandoning Jan 04 07:24:50 like I have an app that I made freshman year of hs and it has over 20k downloads but its crap Jan 04 07:24:57 I wish I still kept that keystore! Jan 04 07:24:57 lol Jan 04 07:25:01 I would have updated it Jan 04 07:25:19 20k downloads means someone finds it useful. Jan 04 07:25:29 look at snapchat UI, it's total crap. Jan 04 07:25:31 AndreYonadam: whats the app? Jan 04 07:25:38 crap that's worth billions! Jan 04 07:25:48 So the thing was that I wend back to EVERYTHING I did including wordpress plugins because I decided to finish almost everything. By the time I finished those plugins Which I just released on wordpress's offical SVN I forgot android! Jan 04 07:26:29 lasserix_ B0BBY lol Its not that good. I made it four years ago in Highschool when I was a freshman. https://play.google.com/store/apps/details?id=com.techdigy.DNAReplication Jan 04 07:26:47 I'm mad that I lost the keystore. Only if I can find it to update it. Jan 04 07:27:08 No offsense but how the ? 10k downloads? Jan 04 07:27:09 I have a better one lasserix_ and B0BBY . That One is also science but its really advanced and racked up like 200 downlaods the first week but I pulled it. Jan 04 07:27:13 lasserix_ : so there is one definite good place for bind/unbind service? Jan 04 07:27:15 lasserix_: Idk 4 years I guess Jan 04 07:27:23 AndreYonadam: yeah i guess but still Jan 04 07:27:34 That one was really complicated it took me 1 year to make. Solved projectile motion questions step by step Jan 04 07:27:36 But I pulled it Jan 04 07:27:38 off the market Jan 04 07:28:25 I'm going to put all these on the market. But I'm going through all the projects I made. But its a lot of stress lol. Too much stuff to work on. Jan 04 07:28:33 I'm trying to get it all done before winter break is over Jan 04 07:28:55 lol Jan 04 07:29:48 Android Studio is way better than Eclipse though Jan 04 07:29:50 lol Jan 04 07:30:02 I love JetBrains stuff Jan 04 07:30:22 Is there anyway to recover a keystore? Jan 04 07:30:22 Lol Jan 04 07:30:35 Contact Google for a change or something? Jan 04 07:31:03 Woo ^_^ I'm Back Jan 04 07:31:37 AndreYonadam: no Jan 04 07:31:41 lasserix_: I actually saw a huge increase in downloads when finals are close. Probably relates to school. Jan 04 07:32:39 lasserix_: See I don't know what I should do. Should I leave the app as is. Maybe make a new one. I once saw that there was a google notification system for developers to send messages to people who installed your app. But I don't know if that had to be precoded in the app. Jan 04 07:34:37 I mean I can edit the description Jan 04 07:37:23 Id think the projectile motion one would be more useful Jan 04 07:37:29 plus you could put an ad before the final answer Jan 04 07:37:31 or something Jan 04 07:37:41 can i know if a specific context is a service? Jan 04 07:37:44 like nag screen every 3rd step Jan 04 07:48:19 lasserix_: nag screen is the best convincer for me to uninstall. Jan 04 07:48:33 nag screen? Jan 04 07:48:42 B0BBY: trust me, we have worse things Jan 04 07:49:26 well if android owners werent such cheapskates and android developers had some balls we wouldn't have to deal with the nightmare of ads destroying the app ecosystem Jan 04 07:49:32 sure there's world hunger. but that doedsn't make a nag screen enjoyable. Jan 04 07:49:54 i dont know why google doesn't do an advertising campaign to brainwash the masses into being comfortable dropping a dollar on an app now and then Jan 04 07:50:05 i mean, seriousily we'll buy a snickers bar for a dollar and shit it out 12 hours later Jan 04 07:50:12 yet people are afraid to spend that on an app? Jan 04 07:50:23 problem is android is built on linux/opensource mindset. it attract that kind of crowd too. Jan 04 07:50:23 that's what advertising was invented for, and honed to do. Jan 04 07:50:38 asking them to shell out a buck is going to meet some resistance. Jan 04 07:51:08 regardless, there's no reason google couldn't spend a couple of million on a nationwide advertising campaign and imrpove the health of the app ecosystem by getting people used to spending a dollar on an app Jan 04 07:51:11 no Jan 04 07:51:16 that's what advertising is for Jan 04 07:51:21 it is finelyhoned Jan 04 07:51:21 get your hand out of my pocket! Jan 04 07:51:25 lol Jan 04 07:51:45 you guys really have no idea of, say, cigarette advertising? war propoganda? coca cola ads? Jan 04 07:51:57 I find the whole google wallet idea a little off putting. it's like google now wants your payment info too. Jan 04 07:52:12 sure apple might too. but those consumers don't mind paying loads of money anyway. Jan 04 07:52:13 they could literally figure out exactly how long a capaign would take before app sales would be increased by so much Jan 04 07:52:38 again, a dollar is the cost of a snickers bar or the cost of a soda. Jan 04 07:52:47 I think you can link your paypal now to google wallet. so that's a bit nicer. Jan 04 07:52:48 people will easily spend twice that on a coffee, every day Jan 04 07:53:09 but the coffee machine/vending machien won't store your credit card and tempt your over and over. Jan 04 07:53:24 besides, google being the "big brother" now, most people are wary of giving them too much info. Jan 04 07:53:32 there's no reason a well concieved advertising campaign would revolutionize the app market Jan 04 07:53:33 B0BBY: soon Jan 04 07:53:38 its not about giving info Jan 04 07:53:41 vending machine tech is about to get crazy! Jan 04 07:53:46 you are missing the point of how advertising works Jan 04 07:54:03 you just persuade people spending a dollar on an app is no different than buying the occasional snickers bar Jan 04 07:54:24 maybe. I think you're approaching it from what marketing should be able to do point of view. vs. approaching it from a what will people actually do point of view. Jan 04 07:54:24 then we can dump advertising as the main revenue stream and the quality of apps on the market can rise Jan 04 07:54:38 some things people just get used to. Jan 04 07:54:38 hehe bobby you should read the history of advertising Jan 04 07:54:46 that's what advertising is for Jan 04 07:54:49 microsoft has always made better tablets but they have never took off. Jan 04 07:54:51 google is trying to do that anyway, look at all the new ads on times square and the Nexus 6 is a very high end phone Jan 04 07:55:00 turns out people don't want a productivity machine. they want a machine they can waste their life on. Jan 04 07:55:01 how do you turn a pacisifiest nation into a war frenzied nation in less than a year? advertising Jan 04 07:55:16 advertising totally has the ability to do this Jan 04 07:55:29 google just needs to put the money into putting out a campaign Jan 04 07:55:31 B0BBY: and, ironically, i got an nvidia shield as a laptop replacement. the fact it can play games is simply a novelty. Jan 04 07:55:50 "Buy an app for a friend / relative / stranger / coworker / roomate / father / mother / brother / sister / doctor / teacher " Jan 04 07:55:50 etc Jan 04 07:56:06 I played with the Nexus 6 today it really does kick the new iPhone's ass Jan 04 07:56:14 lewellyn: I bought a sufrace pro 3, and never been happier. :) but my use is very different than average user's. Jan 04 07:56:42 everything kicks iphone's ass. apple hardware is always the bare minimum needed to average quality job. Jan 04 07:57:01 B0BBY: I mean just looks wise Jan 04 07:57:02 Apple products are good Jan 04 07:57:30 lol Jan 04 07:57:41 I mean they do what they do great. Jan 04 07:57:54 B0BBY: yeah. i needed something which met certain criteria. after evaluating my options, the shield tablet was by far the best bang for the buck with the holiday promo that included the controller (which makes a great makeshift mouse). Jan 04 07:58:20 I mean of course my android phone can go above and beyond, but at least I can answer a call without any problems on my iPhone. Jan 04 07:58:23 lewellyn: it was probably much cheaper than the surface pro 3, too!! Jan 04 07:58:43 lewellyn: I like surface pro3 mainly for digital illustration. otherwise, I probably would have gone with a 100 android tablet. Jan 04 07:58:47 B0BBY: about $400, yes. Jan 04 07:58:54 I've had some problems with Android phones when I needed it urgently like placing calls. Jan 04 07:59:09 lewellyn: that's really nice. $400 buys you a pretty fancy android gizmo. Jan 04 07:59:16 Of course I've had my share of frustrating problems with Apple too. A lot. Jan 04 07:59:58 i like that the preloaded att app on it takes into account that the thing can do text messaging in spite of nvidia not including a dialer or messaging app. (it does notifications for incoming sms and that's that. no reply/send functionality.) Jan 04 08:00:17 and it's probably the first time i've ever seen a manufacturer *improve* on aosp overall. Jan 04 08:00:48 nice Jan 04 08:01:22 so, overall pleased with it. not pleased that i can't find a good text editor with print and syntax highlighting support and that the office suite situation on android is still anemic. but que sera sera. Jan 04 08:02:31 some strange issues still in 5.0.1, too. but that's par for the course. :P Jan 04 08:02:38 at least it's less wonky than 5.0 was. Jan 04 08:03:11 microsoft was hanging out microsoft office for android freely a while ago. Jan 04 08:03:16 did you happen to get a copy? Jan 04 08:03:26 no. :P Jan 04 08:03:44 no that on a tablet an entire office suite is going to be much help, but.... Jan 04 08:04:08 if the screen is big enough, and you have a mouse and a keyboard it just might work out. Jan 04 08:04:10 i've been using wps office since it doesn't fall over on complex stuff in excel and word documents. Jan 04 08:04:16 but its printing support is wtfy. Jan 04 08:04:28 wps? Jan 04 08:04:40 kingsoft Jan 04 08:04:52 oh I remember seeing it on one of my devices. Jan 04 08:05:21 It's funny how you mentioned MS office was inadequate. but this kingsoft stuff works fine for you. Jan 04 08:05:26 I had the opposite experience. Jan 04 08:05:27 irritatingly, though, microsoft still hasn't allowed tablets to install office. Jan 04 08:05:45 I have been using microsoft products at work for years. and I think we just get used to our chosen platforms. Jan 04 08:06:14 i've heard that word on android still lacks advanced formatting, but i can't use it so i don't know. Jan 04 08:06:47 they do have some neat android apps though. msn weather is pretty sweet, for instance. Jan 04 08:08:25 oh this search for spock movie is finally getting interesting. Jan 04 08:08:57 he was a boojum, you see. Jan 04 08:10:24 now now no spoilers... Jan 04 08:10:52 it just sucks the kirstie alley didn't return as saavik. Jan 04 08:13:07 i was quoting the hunting of the snark. it seemed appropriate. :) Jan 04 08:13:50 lewellyn: very interesting. I'll add this to the reading list. Jan 04 08:14:31 if you like that, read Sylvie and Bruno, too. Jan 04 08:14:41 altho, after reading some of the older poems, I'm getting a little tired of over description. Jan 04 08:14:42 both volumes, of course. :) Jan 04 08:14:53 sylvie and bruno, noted. Jan 04 08:47:14 There's like, tons of blood and there shouldn't be all I did was setup gradle help Jan 04 08:59:29 When you click on a lockscreen widget and it highlights the pattern unlock, what method is that? Jan 04 09:00:20 don't think you control that part Jan 04 09:00:44 Quacked: are you trying to hack? Jan 04 09:00:51 hehe Jan 04 09:01:17 I have a shortcut to my app on my widget but I only want it to open directly if theres no lock Jan 04 09:02:55 I can't figure out how to do it. FLAG_SHOW_WHEN_LOCKED prevents the keyguard from enabling again if the Activity is active and disableKeyguard removes the keyguard completely Jan 04 09:04:24 if I don't use anything and open the Activity with startActivity and FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_NEW_TASK, it will open the Activity in the background without notifying that it needs an unlock Jan 04 09:12:39 all i wanted to know is if i should call bind again onResume Jan 04 09:12:57 cuz i have this leaked connection thing Jan 04 09:13:00 Nick-S bind in onStart, unbind in onStop Jan 04 09:13:03 and i really wanna know when user leaves the activity Jan 04 09:13:22 there is a bug in android where it leaks a binder Jan 04 09:13:24 g00s: but user leaves activity(presses home screen) Jan 04 09:13:45 g00s: but it throws an exception if you re-bind without unbinding if i am not wrong Jan 04 09:13:53 thats a real show-stopper Jan 04 09:21:40 http://stackoverflow.com/q/18299472/1056359 Jan 04 09:21:41 ? Jan 04 09:27:37 I got a bug report saying that my widget is not shown in the list of widgets on a 2.3.5 device. MinSdkVersion is set to 10. Any ideas what could cause that? Jan 04 09:28:16 api 10 is 2.3.7 Jan 04 09:28:18 no 2.3.5 Jan 04 09:28:21 I think Jan 04 09:28:25 *not Jan 04 09:28:34 2.3.3 Jan 04 09:28:39 Says 2.3.3-2.3.7 on https://developer.android.com/about/dashboards/index.html Jan 04 09:28:40 or 2.3.x Jan 04 09:28:59 Also, the app works, its just not showing the widget in the widget list Jan 04 09:30:53 hmmm Jan 04 09:30:57 i stand corrected Jan 04 10:37:07 Any ideas why the Button on line 109 does not expand in height to include all of the String? http://pastebin.com/NLTKC9aU Jan 04 10:38:05 if I add a lot of random text to the String it will show more of the text and expand to more lines Jan 04 10:39:21 but it looks like the 10 last characters won't show Jan 04 11:26:33 A friend of mine had some questions about the NDK i couldn't answer, perhaps someone is able to help him? https://www.reddit.com/r/androiddev/comments/2rajtj/how_would_i_go_about_adding_openssl_to_an/ Jan 04 11:54:43 In what file on Android Studio do you define which layout is your 'Main Activity' Jan 04 11:56:35 the manifest file Jan 04 12:05:06 Let's do some android dev! Jan 04 12:10:57 no, fuck that Jan 04 12:10:59 I hate android dev Jan 04 12:16:40 I'm doing a sliding tab project. Here is my code http://paste.md-5.net/xilamowupa.java on line 141, I'm getting an error... it says cannot resolve something...I been trying this for 2 hours now. It's just a simple list view that I'm trying to put into a view and return the view but it wont work .. Jan 04 12:21:01 I have image and I need to "pin" smaller images to it and those smaller image sizes needs to change depending on the zoom level - can this be done with imageview (maybe using some image manipulation library) or do I need to use open gl? Jan 04 12:23:56 A friend of mine had some questions about the NDK i couldn't answer, perhaps someone is able to help him? https://www.reddit.com/r/androiddev/comments/2rajtj/how_would_i_go_about_adding_openssl_to_an/ Jan 04 12:26:48 ggVGc: Why is that? Jan 04 12:27:34 I have image and I need to "pin" smaller images to it and those smaller image sizes needs to change depending on the zoom level - can this be done with imageview (maybe using some image manipulation library) or do I need to use open gl? Jan 04 12:33:03 hello everyone Jan 04 12:33:07 :D Jan 04 12:33:13 what's up? Jan 04 12:34:35 hey abara Jan 04 12:35:35 Good day abara Jan 04 12:36:46 marrrk: good day :) Jan 04 12:36:58 I have created a monster. Jan 04 12:37:12 marrrk: hey man, do you know the generic type parameters on classes? Jan 04 12:37:21 Yes, I do Jan 04 12:38:50 abara: Are you proud of me? Jan 04 12:41:14 Why, in IMAP in 4.4.2 after STARTTLS, is client version 0x0301 (TLSv1.0) being sent in the handshake rather than 0x0303 (TLSv1.2)? Jan 04 12:45:31 marrrk: kinda, i would like to know if there is a way Set an Specific type, not a generic Jan 04 12:45:42 marrrk: MyClass Jan 04 12:45:54 abara: What's the point of that? Jan 04 12:46:27 i just think it will be cool pass a layout reference like this Jan 04 12:46:30 :'/ Jan 04 12:46:59 A layout reference? You will have to explain this a bit more thoroughly. Jan 04 12:50:58 hey Jan 04 12:50:59 http://pastie.org/9812231 Jan 04 12:51:06 this doesn't seem to work. Jan 04 12:51:25 marrrk: I was extending an ArrayAdapter, and the purpose is to build a Spinner with a label on left side. The "problem" is that i need to rewrite the "getView" method and one of the steps is provide the layout to inflate. I know i can just pass the code over the constructor, but i would like to not mess up them. Just pass the R.layout.id over a generic type. Jan 04 12:51:25 I know there's bundle Jan 04 12:51:40 but how do I pass an object Jan 04 12:51:57 object to bundle? Jan 04 12:52:09 ludkiller, it has to be parcelable. Jan 04 12:52:19 or serializable :? Jan 04 12:52:23 anything Jan 04 12:52:29 but is there a workaround Jan 04 12:52:36 other than using bundles in fragments Jan 04 12:52:42 no. Jan 04 12:52:55 oh fuck, again this bundle stuff? Jan 04 12:53:00 an ugly workaround would be using statics and referencing there Jan 04 12:53:09 no Jan 04 12:53:17 I tried that and things turned out ugle Jan 04 12:53:19 ludkiller, the crap you're trying to pull in your code will fall apart on orientation change, state restoration and any other way the app configuration can change. Jan 04 12:53:21 ugly* Jan 04 12:53:25 ludkiller: you wanna finnish you project this year or it can wait? Jan 04 12:53:29 ludkiller, so put your arguments in the bundle and that's that. Jan 04 12:53:43 abara: maybe paste what you have to do now and some (non compiling) code that you wuold like it to look like Jan 04 12:53:46 abara, it's a hobby project but I would love to finish it this year Jan 04 12:53:56 Mavrik, aye Jan 04 12:53:58 thanks Jan 04 12:54:08 ludkiller, for objects, they have to be parcelable Jan 04 12:54:16 and of course their fields as well Jan 04 12:54:22 :/ Jan 04 12:54:46 only way to pass data to fragments ? Jan 04 12:54:49 ludkiller: forget about this shennanigans bundles, parcelables. Just make a class called "global" and put some public static attributes there to hold exchange Jan 04 12:55:02 ludkiller: the most straightforward way Jan 04 12:55:06 abara, okie Jan 04 12:55:14 i keep getting this error: Unable to instantiate receiver com.example.android.bitlbeesms.IncomingSms: java.lang.ClassNotFoundException: Didn't find class "com.example.android.bitlbeesms.IncomingSms" on path: /data/app/com.example.android.bitlbeesms-2.apk Jan 04 12:55:52 ludkiller: and if you get crazy about memory or something, remember that dalvik dont work on miracles. their garbage collector suchs as much as the original. Jan 04 12:55:59 i have IncomingSms.java in com/example/android/bitlbeesms though Jan 04 12:56:05 how do i tell it it's there? Jan 04 12:56:05 :> Jan 04 12:56:28 I wil be sure to clean it off as I started with C and has a habit of cleaning up things Jan 04 12:56:29 :3 Jan 04 12:56:33 here's my android manifest: http://sprunge.us/LaRI Jan 04 12:56:45 ludkiller: yeah xD Jan 04 13:00:08 marrrk: ok man, will try to post Jan 04 13:00:50 thanks Mavrik , aab Jan 04 13:00:53 abara, Jan 04 13:01:13 jkjkjkjkjkjk Jan 04 13:01:19 ups, wrong window... Jan 04 13:02:16 fucking android Jan 04 13:02:18 piece of shit Jan 04 13:02:29 better than ios or wp Jan 04 13:02:33 lol Jan 04 13:02:52 java's fucking garbage Jan 04 13:02:59 that is true Jan 04 13:03:05 can't agree more on that one Jan 04 13:03:13 vompatti: hey, dont say about iOS Jan 04 13:03:34 ludkiller: you're welcome xD Jan 04 13:03:35 I wait the day I can write android apps with Go (without opengl) Jan 04 13:03:44 obama's an asshole, but bush was a mongoloid Jan 04 13:04:24 impulse: Why are you using Java then? Jan 04 13:04:26 if you don't use eclipse you may as well fuck yourself Jan 04 13:04:38 impulse: Please watch your language Jan 04 13:04:50 impulse: you can use vim with eclim (which I do) Jan 04 13:05:01 marrrk: http://lpaste.net/117734 Jan 04 13:05:03 what's eclim? Jan 04 13:05:07 i'm using vim Jan 04 13:05:13 impulse: https://github.com/pfn/android-sdk-plugin Jan 04 13:05:14 it's eclipse's autocomplete thingy Jan 04 13:05:30 vompatti: lol Jan 04 13:05:37 And this: http://agile.dzone.com/articles/just-use-ide Jan 04 13:05:41 remember to set g:EclimTempFilesEnable = 1 Jan 04 13:05:54 is that fairly new? Jan 04 13:06:00 its pita to install and I had to create the android project from eclipse but it works Jan 04 13:06:11 yea i don't wanna be forced to do that Jan 04 13:06:12 eclim has a real introspection autocomplete? Jan 04 13:06:17 why would someone use ide when you have unix shell in front of you Jan 04 13:06:30 tell that to google Jan 04 13:07:05 okay, you might use IDE if you dont know about unix shell and its power Jan 04 13:07:09 what do i have to do to tell android where my class is? Jan 04 13:07:32 i keep getting this: Didn't find class "com.example.android.bitlbeesms.IncomingSms Jan 04 13:07:38 impulse: try rebuild your project Jan 04 13:07:41 src/com/company/appname/java_file_which_matches_the_public_class_name Jan 04 13:07:41 i did Jan 04 13:07:43 several times Jan 04 13:07:47 cleaning/rebuilding Jan 04 13:07:56 i have that Jan 04 13:08:02 impulse: are you using windows? Jan 04 13:08:12 src/com/example/android/bitlbeesms/IncomingSms.java Jan 04 13:08:16 abara: nope Jan 04 13:09:38 impulse: hummm did you tried to turn off and on? close and open the AS? Jan 04 13:09:44 AS? Jan 04 13:09:45 how to get google's voice search feature offline for use with other gadgets? Jan 04 13:09:51 Android Studio Jan 04 13:09:57 i don't know what that is Jan 04 13:10:04 ovrflw0x: you cant afaik Jan 04 13:10:11 i'm building with ant from the command line Jan 04 13:10:13 impulse: using eclipse? Jan 04 13:10:16 fuck no Jan 04 13:10:23 and i never will Jan 04 13:10:29 even if i never get a working android app Jan 04 13:10:33 abara, then what's the solution? i need voice recognition offline for use with some other gadget Jan 04 13:10:40 impulse: What about IntelliJ? Jan 04 13:11:04 ovrflw0x: presume you have searched about before comming here? Jan 04 13:11:11 no Jan 04 13:11:16 vompatti, why shpukd I use shell for developing instead of ide in 2015? Jan 04 13:11:28 abara: I am looking now. Jan 04 13:11:30 impulse: ok boy,you're using ant? Jan 04 13:11:40 marrrk: ok man :) thanks Jan 04 13:11:58 impulse: ant = builder Jan 04 13:12:09 gdrc: because ide is in your way Jan 04 13:12:15 impulse: because you will need this, or gradle. Jan 04 13:12:36 what Jan 04 13:12:41 gdrc: shell is much more powerfull tool when you discover its powers, but if you dont have time to play around with it stay with ide Jan 04 13:12:46 i'll try running that android binary or whatever Jan 04 13:12:50 it takes time to get used to it Jan 04 13:13:14 vompatti, like what? Jan 04 13:13:22 what like what Jan 04 13:13:31 impulse: you need to use ant or gradle to build an app. if you can provide us the command line you are using, that would be great Jan 04 13:13:52 impulse: just go to the projects root and run ant debug Jan 04 13:13:54 ant debug Jan 04 13:13:57 yea Jan 04 13:13:58 what are the benefits of using shell? Jan 04 13:14:00 impulse: i'm thinking about you're missing to declare the java classpath correctly Jan 04 13:14:01 that's what i've been doing Jan 04 13:14:02 and then use adb to install it Jan 04 13:14:11 java classpath? Jan 04 13:14:27 gdrc: it would be easier if you tell me what are benefits using ide or what you cant do in shell Jan 04 13:14:56 abara: Why do you have 20 constructors in the first place? Jan 04 13:15:08 vompatti, tabs. debug. intellisense. Jan 04 13:15:16 and so more Jan 04 13:15:26 marrrk: to make sure i've options B) Jan 04 13:15:56 marrrk: the AS was annoying me to overwrite this constructors Jan 04 13:16:26 first of all, vim has everything covered on text editing (or emacs if you prefer it, or nano or what ever texteditor you like), there are tools for debuggin too, intellisense is texteditor's this whichi vim, emcas, textmate, sublime, notepad++ covers Jan 04 13:16:44 I can use eclipse's intellisense in vim (and in other editors too) Jan 04 13:16:58 abara: The Android framework likes doing things wrong. Jan 04 13:17:26 only thing shell can give you (atleast not without hacking) is pretty GUI and easy to use point-n-click stuff Jan 04 13:17:31 marrrk: i suspect that Jan 04 13:17:51 why is android studio so slow Jan 04 13:17:59 ludkiller: java Jan 04 13:18:01 vompatti: yeah right, who are all these idiots wanting things that are easy to use Jan 04 13:18:03 ^ Jan 04 13:18:07 ludkiller: because you didnt setup it correctly Jan 04 13:18:13 abara, :o Jan 04 13:18:16 teach me master Jan 04 13:18:27 call at pvt Jan 04 13:18:31 abara: Okay, so I would try to call the most general constructor from the more specific ones. Jan 04 13:18:47 pvt ? Jan 04 13:19:30 marrrk: its easy to move your mouse over to "build and run" icon but when you want to build it differently (say for another architecture) it becomes hard and takes time to find the right option to uncheck Jan 04 13:19:48 abara, my client doesn't support ctcp Jan 04 13:19:54 and moving your mouse is slow... Jan 04 13:19:58 DCC* Jan 04 13:20:05 ludkiller: wow Jan 04 13:20:05 ok Jan 04 13:20:10 not CTCP Jan 04 13:20:32 does calling unbindService also maker the connection call onServiceDisconnected? Jan 04 13:20:43 ludkiller: i will paste the instructions ok? to be more easy to do Jan 04 13:20:49 wait a bit Jan 04 13:20:51 abara, /query me :D Jan 04 13:21:12 vompatti: No it doesn't. I can build just fine with the terminal if I prefer, from within my IDE. Jan 04 13:21:15 ok found my answer in the docs sorry Jan 04 13:22:37 sure, do what you like - use what tools you know and suit you Jan 04 13:29:14 marrrk: ok man! thanks :) Jan 04 13:29:40 abara: I'm not a 100% sure on that. I would recommend recyclerView anyway ? Jan 04 13:29:43 no ? Jan 04 13:30:18 marrrk: i will search that too! :) Jan 04 13:30:23 still getting "didn't find class" Jan 04 13:30:34 created a blank project this time Jan 04 13:31:04 and i'm just sitting here, get my job done on a IDE Jan 04 13:31:18 * ludkiller is waiting Jan 04 13:31:19 https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSB9bJCmOD4zDtEcC5TXiIzxZw4oELc-Os3bIkSUBaCmX0ukB2Z Jan 04 13:31:23 impulse: are you using ant, gradle or sbt to build? Jan 04 13:31:31 ant Jan 04 13:31:42 Why? Jan 04 13:31:58 ludkiller: send a query to you Jan 04 13:32:03 ludkiller: check out Jan 04 13:32:15 nope Jan 04 13:32:17 nothing Jan 04 13:33:35 abara, pastie.org it Jan 04 13:33:39 or gist or pastebin Jan 04 13:34:06 ludkiller: doing now, give a minute Jan 04 13:38:46 abara, :3 Jan 04 13:40:20 * ludkiller has to restart studio after 30 mins Jan 04 13:40:24 or even less Jan 04 13:40:33 google can suck my dick Jan 04 13:41:07 impulse, lol Jan 04 13:41:22 seriously Jan 04 13:41:28 fucking "didn't find class" Jan 04 13:41:38 find my fucking dick and suck it Jan 04 13:41:56 reverse image search Jan 04 13:42:03 you will probably find it on the internets Jan 04 13:42:04 xD Jan 04 13:42:09 ludkiller: http://lpaste.net/117735 Jan 04 13:42:43 ludkiller: this can help to performance, there is another final tune, but i dont remember now what is Jan 04 13:43:19 abara, thanks Jan 04 13:47:39 Hey guys, how would I display the time until I reach a particular time (in ms). I'm displaying timeToReach - currentTime on a timer Jan 04 13:47:50 but it seems to be adding my timezone into the equation, adding 10 hours to this value Jan 04 13:52:19 what a question man .-. Jan 04 13:52:30 use unix time Jan 04 13:52:46 I am, then I'm chucking it through a simpledateformatter Jan 04 13:52:50 to get it into hh:mm:ss form Jan 04 13:52:51 System.currentTimeMillis() / 1000 Jan 04 13:52:56 ah Jan 04 13:53:09 setting the timezone of the formatter too Jan 04 13:53:53 the actual value that it's using is fine, it just adds my GMT offset when displaying it (formatting). Jan 04 13:54:05 Which it .. shouldn't be doing. :\ Jan 04 14:02:28 tx: Why don't you calculate the time to reach with the same timezone as yours? Jan 04 14:03:44 abara, thanks Jan 04 14:03:50 it's pretty fast now :3 Jan 04 14:04:03 Never mind, it was being dumb. Jan 04 14:05:23 it? Jan 04 14:06:15 marrrk, Android studio :D Jan 04 14:06:41 I still don't get what's the point of Android Studio. Jan 04 14:07:50 I am using it as I am new and developer.android.com stated AS should be used Jan 04 14:07:53 + all the example Jan 04 14:07:56 examples Jan 04 14:08:25 Actually, thinking about it, I do understand it Jan 04 14:09:27 where is TackticalJoke? Jan 04 14:09:30 https://plus.google.com/u/0/105051985738280261832/posts/YDykw2hstUu Jan 04 14:10:09 I told him to finish his reddit app, he didn't comply Jan 04 14:10:17 There's just blood now :) Jan 04 14:10:18 how do you make a simple view that you put fragments in later? Jan 04 14:11:13 Darklust: LOL Jan 04 14:12:15 marrrk: Jan 04 14:12:21 Thanks Jan 04 14:12:24 man, that was easy Jan 04 14:13:09 was it though? Jan 04 14:13:32 Darklust: 19:40 TacticalJoke: Pretty well. Had family around last night. My resolution is to implement features as quickly as possible (deferring performance worrying and stuff). :) Jan 04 14:13:37 I was going against that Jan 04 14:14:04 Microsoft said that once Jan 04 14:14:23 Then we had Vista Jan 04 14:14:31 I still think it is the right approach and Dianne Hackborn is wrong. Jan 04 14:14:52 marrrk: explain Jan 04 14:15:12 marrrk: EXPLAAAAAIN Jan 04 14:15:15 Darklust: and then we had remote code execution on all IE cersions Jan 04 14:16:41 Well I just don't buy it. Obviously you won't make things inefficient on purpose but trying to guess that something is going to be performance critical requires a lot of confidence. Jan 04 14:17:09 no, but coding for a while tells you what's good and what's bad Jan 04 14:17:22 and writing bad code for a fast release is retarded Jan 04 14:17:26 and happens all the time Jan 04 14:17:31 That of course is true. Jan 04 14:17:53 But if it is a hobby project it can also increase your motivation to have something working. Jan 04 14:20:39 My colleagues forced me to write this before every log message if (MyDebug.DEBUG_ALL && MyDebug.DEBUG_D) because obviously making the check in your own logger is far too slow. Jan 04 14:20:45 hi Jan 04 14:20:59 So I guess you can understand that this is a very emotional subject for me. Jan 04 14:21:17 android development is very emotional for you ;) Jan 04 14:21:18 ? Jan 04 14:22:02 at times i can't see debug log on android studio Jan 04 14:22:06 Premature performance optimisation Jan 04 14:22:23 well you should make code inefficient Jan 04 14:22:33 should not sorry Jan 04 14:22:34 Eh, not on purpose. Jan 04 14:22:36 er Jan 04 14:22:38 I was being dumb.* Jan 04 14:22:39 ;) Jan 04 14:23:00 So you have to call add for the first fragment and from then on you have to use replace? Jan 04 14:23:04 Beautiful. Jan 04 14:23:22 ludkiller: take a look the bottom right of your AS, it's show the heap memory now. if you click there the garbage collector will be forced to seek and destroy unused memory :) Jan 04 14:24:03 What's the preferred casing for xml file names and IDs? Jan 04 14:24:16 How do I add more items to my listview at run time? Jan 04 14:24:52 DragonPunch, atach a ListAdapter Jan 04 14:25:04 will array adapter do the trick? Jan 04 14:25:07 marrk: I think the best solution is to make the code as simple as possible to begin with Jan 04 14:25:08 yea Jan 04 14:25:29 then if you need to make it more complex for optimisation then do so but generally simple code is the most efficient Jan 04 14:25:52 DragonPunch: add them to the dataset in the adapter and call adapter.notifyDatasetChanged Jan 04 14:25:54 ChrisUK, you don't get the point :P Jan 04 14:25:59 you missed his earlier statement Jan 04 14:26:02 No idea what the standard is but I use camel case in java and underscores in xml. Jan 04 14:26:06 My colleagues forced me to write this before every log message if (MyDebug.DEBUG_ALL && MyDebug.DEBUG_D) because obviously making the check in your own logger is far too slow. Jan 04 14:26:10 tx, me too Jan 04 14:26:27 >generates xml Jan 04 14:26:35 >finds camel cases and underscores Jan 04 14:26:39 so :3 Jan 04 14:26:41 you monster. Jan 04 14:26:45 D: Jan 04 14:26:54 ChrisUK: make code simple? with java? kidding right? Jan 04 14:26:59 anyone else use ant to build? Jan 04 14:27:00 abara, ^ Jan 04 14:27:06 impulse, use it Jan 04 14:27:11 used to* Jan 04 14:27:16 so I applied some shadows to a textview and I'm getting segfaults Jan 04 14:27:21 what do you do when you add a new file to your tree? Jan 04 14:27:25 impulse: the palading of ant build Jan 04 14:27:29 paladin* Jan 04 14:27:40 who? Jan 04 14:27:44 me? Jan 04 14:27:44 impulse, Java Class files ? Jan 04 14:27:48 yep Jan 04 14:27:50 .java Jan 04 14:27:50 I do nothing Jan 04 14:27:53 impulse: dude go to docs of ant build Jan 04 14:28:01 doesn't say shit there Jan 04 14:28:03 as gradle Jan 04 14:28:05 kek Jan 04 14:28:20 impulse: get yourself on earth. dont try to drag us to your personal hell. Jan 04 14:28:25 iirc you don't need to do anything Jan 04 14:28:43 do i have to use gradle? Jan 04 14:28:47 Oh, whilst I'm here. I only started using Android Studio in the past week or so (from Eclipse). My only gripe is that finding errors is now more difficult. Jan 04 14:28:48 right click > add new Java Class File > easy Jan 04 14:28:59 tx, is it ? Jan 04 14:29:04 fuck you i'm not clicking anything Jan 04 14:29:12 impulse, :/ Jan 04 14:29:15 In eclipse there's a great big X icon on the left hand side where the line is. Jan 04 14:29:33 you refused to try any solution yet you complain Jan 04 14:29:36 In Android studio that exists, but it's not within your immediate field of view if you have a giant screen. Jan 04 14:29:49 (it's on the right side) Jan 04 14:29:51 MUHAHAHAHAHAHAHAHAHA Jan 04 14:30:06 there is no rule for "fuck you, fuck that" here? Jan 04 14:30:15 maybe Jan 04 14:30:17 seriously, this man is a dickhead .-. Jan 04 14:30:20 i meant no offense though Jan 04 14:30:24 I can't find it in topic Jan 04 14:30:30 sorry ludkiller Jan 04 14:30:48 impulse: seriously how do you plan build your layout by the way? Jan 04 14:30:51 I'm against censorship. Jan 04 14:31:03 i don't need a layout Jan 04 14:31:07 lol Jan 04 14:31:07 what Jan 04 14:31:16 actually, you can start an activity without a layout Jan 04 14:31:16 an without UI Jan 04 14:31:21 that must be it Jan 04 14:31:24 If we start censoring, we will have to apply it to half the code linked to frmo here. Jan 04 14:31:43 i don't need a UI Jan 04 14:31:59 what are you making? Jan 04 14:32:01 i'm just trying to grab SMS messages and send them over IP Jan 04 14:32:08 oh Jan 04 14:32:16 so i can see them in bitlbee Jan 04 14:32:17 Don't you want a UI for a start/stop button or something? Jan 04 14:32:20 nah Jan 04 14:32:21 ludkiller: so what would i do adapter.add("asdf"); Jan 04 14:32:23 or to show you your IP Jan 04 14:32:26 etc Jan 04 14:32:28 because it did not work Jan 04 14:32:30 nah Jan 04 14:32:39 impulse: Do it anyway, it's easier to just have a blank activity imo. Jan 04 14:32:39 those are luxuries tx Jan 04 14:32:59 yea i have an almost blank activity Jan 04 14:33:07 impulse, I feel offended by your recent actions please visit : http://stop-irc-bullying.eu/stop/ Jan 04 14:33:11 i just don't need to edit it Jan 04 14:33:13 hauhauahauhauha Jan 04 14:33:20 ^^ Jan 04 14:33:37 still sitting here get my job done with an IDE Jan 04 14:33:44 That's some scary laugh. Jan 04 14:33:45 HUAHUA Jan 04 14:33:47 DragonPunch: The adapter is bound to some List, I think. So it should sync it if you add something to that list. Jan 04 14:33:48 DragonPunch, get ListView l = findViewById(view id here); Jan 04 14:33:59 l.setAdapter(adapter) Jan 04 14:34:08 always forgot american read laugh Jan 04 14:34:12 hahahaha* Jan 04 14:34:25 I would also except huehuehue and mmyessMMMHHYESSS Jan 04 14:34:32 http://paste.md-5.net/yiludeguta.java no im not using a list Jan 04 14:34:33 xoxoxoxo Jan 04 14:34:34 marrrk: not at all Jan 04 14:34:37 russian bru :3 Jan 04 14:34:38 <3<3 Jan 04 14:34:47 haha, the russian laugh? Jan 04 14:34:48 marrrk: he still need to call notifyDataSetChange Jan 04 14:34:49 xoxoxoxox ily Jan 04 14:34:50 i am using only an arrayadapter with a string of array Jan 04 14:34:55 lol Jan 04 14:34:59 rsrsrsrsrs Jan 04 14:35:06 i tried adapter.add('asdf'); did not work Jan 04 14:35:11 abara: Good. So another thing that's shit. Jan 04 14:35:19 You're Putin my sides in agony. Jan 04 14:35:21 DragonPunch: try the ListAdapter as ludkiller said Jan 04 14:35:27 Probably for "performance" reasons. Jan 04 14:35:31 DragonPunch, google it Jan 04 14:35:33 marrrk: this API is a mess Jan 04 14:35:36 there are plenty of examples Jan 04 14:35:54 \ (^_^) / dragon punch pow pow Jan 04 14:35:58 abara, how come I don't have notifyDataSetChanged :/ Jan 04 14:36:22 Woah, that's some serious font size going on at http://stop-irc-bullying.eu/wp-content/uploads/2014/04/2.jpg Jan 04 14:36:24 marrrk: and the most horrible thing is that you try to call this method inside a BaseAdapter it broken the shit. Jan 04 14:36:28 oh wait Jan 04 14:36:35 marrrk: Adapter can't refresh them selfes Jan 04 14:36:36 wait it's there Jan 04 14:36:37 wew Jan 04 14:36:46 abara: Really try RecyclerView Jan 04 14:36:48 onScrollRefresh Jan 04 14:36:59 ya'll need to notify the adapter that the data set changed Jan 04 14:37:16 \ (^_^) / dragon punch pow pow Jan 04 14:37:23 is that a tagline or what Jan 04 14:37:37 Is it in your Tag constants? Jan 04 14:37:38 i'm thinking now about the IRC clients on android. Jan 04 14:37:46 AndChat is fine. Jan 04 14:37:49 how many times they call this method every hour? Jan 04 14:37:52 abara, andChat Jan 04 14:38:03 Well I am for censorship actually. It would not hurt to ban "epic" and "ya'll" Jan 04 14:38:07 qicr is better Jan 04 14:38:14 only when data is added Jan 04 14:38:14 ? Jan 04 14:38:16 or so Jan 04 14:38:25 calling it in a while is waste of battery Jan 04 14:38:36 is it good style to explicitly name calls to an outer class from an inner class, so: OuterClass.this.Method(); ? Jan 04 14:38:38 Pfn made one, so it obviously has to be superior. Ah and that one is qicr. Jan 04 14:38:42 ludkiller: yeah, but like this session now. it's almost 5-10 times a sec? Jan 04 14:38:55 probably Jan 04 14:38:57 ChrisUK, not really. Jan 04 14:38:59 5-10 ain't much Jan 04 14:39:06 ChrisUK: not gonna work Jan 04 14:39:15 abara, of course it will :) Jan 04 14:39:27 ChrisUK, usually avoiding such calls is also a good idea Jan 04 14:39:31 Mavrik: seriously? Jan 04 14:39:40 Mavrik: never worked with me :( Jan 04 14:39:47 abara, might wanna brush up on your java then. Jan 04 14:40:01 inb4 abara has created an IRC client that Thread.sleep()'s and checks for new data in the buffer Jan 04 14:40:07 Mavrik: ok, i will :) Jan 04 14:40:45 ok, is there a quick and easy way to make a notification more than one line Jan 04 14:40:48 inb4 inb4 Jan 04 14:40:50 or do I need to create a view for it Jan 04 14:41:10 tx, use BigText or what's it? Jan 04 14:41:18 tx: DialogFragment? Jan 04 14:41:27 Needs API 10 support. Jan 04 14:41:38 :'( Jan 04 14:41:40 tx: kill your self Jan 04 14:41:44 tx: kidding Jan 04 14:42:00 tx, and? Jan 04 14:42:05 tx: the support app dont make fragments available on lower api? Jan 04 14:42:09 abra: what do you mean it isnt going to work Jan 04 14:42:12 my didn't find class errors were at runtime Jan 04 14:42:14 this is an inner class Jan 04 14:42:20 it has pointer to outer class Jan 04 14:42:22 Let's have a look. Jan 04 14:42:39 ChrisUK: every time i call something like you show it's just raises exceptions of null pointer Jan 04 14:42:56 that is perfectly valid, I do it all the time Jan 04 14:43:08 try it Jan 04 14:43:11 tx: make sure to use Fragment class from support.app not from android.widget Jan 04 14:43:13 on an inner class Jan 04 14:43:28 (non static inner class) Jan 04 14:43:31 tx, there's NotificationCompat Jan 04 14:43:36 you'll get multiline notification on 4.x+ Jan 04 14:43:42 and single line on old APIs Jan 04 14:43:45 ChrisUK: i will try later, but for now will be on the Mavrik answer and avoid this pattern Jan 04 14:43:46 ooh Jan 04 14:43:51 Don't waste time supporiting API10 stuff. Jan 04 14:44:11 tx: ^ Jan 04 14:44:18 Mavrik: haha, yeah... it's more of a "just make it work on it, it doesn't have to look nice, just do its basic stuff" Jan 04 14:44:19 on API 10 Jan 04 14:44:25 yep, that's it :) Jan 04 14:44:34 I will now introduce a non final variable. Jan 04 14:44:38 notification builder works on 11 and up Jan 04 14:44:43 tx: you can make a toast "API 10? kill yourself" Jan 04 14:44:45 so I'll use BigTextStyle. Jan 04 14:44:55 tx, http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html Jan 04 14:45:00 tx, API 4 and up :) Jan 04 14:45:03 haha Jan 04 14:45:08 I'm doing something... worse Jan 04 14:45:15 I'm checking the build version sdk_int Jan 04 14:45:25 then running the deprecated stuff depending on the version Jan 04 14:45:26 * tx hides. Jan 04 14:45:42 Well, that's what *Compat stuff does anyway :) Jan 04 14:45:50 Just someone checked all the combos for you :P Jan 04 14:45:57 Yes, but this doesn't make me want to kill myself. Jan 04 14:46:00 So danke. Jan 04 14:46:08 Huge feature of the library yes. :D Jan 04 14:46:11 Bitte Jan 04 14:46:17 How can I recycle views on my ListView Jan 04 14:46:19 hahahahahaha Jan 04 14:48:38 do you want some old code I have to do that? Jan 04 14:48:44 actually, it's all over the internet Jan 04 14:48:48 lmgtfy Jan 04 14:49:16 yay, it works! Jan 04 14:51:03 Mavrik: for your information: http://stackoverflow.com/questions/1721608/access-outer-class-this-instance Jan 04 14:51:14 I wonder if uninstalling an app deletes its alarmmanager intents... Jan 04 14:51:23 ChrisUK, ? Jan 04 14:51:31 so my java class file is getting put into bin/classes/ instead of bin/classes/com/test/bitlbee. how can i fix that? Jan 04 14:51:45 impulse, add package directive? :P Jan 04 14:51:54 tx, yes, yes, it does. Jan 04 14:51:58 what's that? Jan 04 14:51:59 Mavrik: about the access of the outer class syntax Jan 04 14:52:01 thank god Jan 04 14:52:12 with java command you mean? Jan 04 14:52:16 ChrisUK, uh... yeah? Did you mistake me with someone else? :) Jan 04 14:52:25 ChrisUK: probably for me right? Jan 04 14:52:33 :P Jan 04 14:53:18 ChrisUK: i will try later, but for now will be on the Mavrik answer and avoid this pattern Jan 04 14:53:36 anyhow I am not concentrating 100% on this conversation so I will stfu and stop confusing everyone lol Jan 04 14:53:46 ChrisUK: yes :) i will read the links Jan 04 14:53:47 ChrisUK, yes, having to do that is usually a horrible code smell :) Jan 04 14:53:59 well it strikes me as clearer Jan 04 14:54:03 it is useful at times... but mostly it just tells that you're code is not separated clearly Jan 04 14:54:21 since you explicitly are stating this member or method comes from the outer class which might not be obvious otherwise Jan 04 14:54:51 anyhow tyvm for your input Jan 04 15:01:02 Hi there! Jan 04 15:01:17 is there a way to put and use resources in app/foo/bar/ ? Jan 04 15:01:39 I've checked and if I put a res dir in app/foo it works, but once I put it inside app/foo/bar it doesn't work anymore it seems Jan 04 15:01:42 any idea? Jan 04 15:01:45 goddamn fuck Jan 04 15:02:11 (where "works" means, the resource is found trough R.drawable.myicon for example Jan 04 15:02:12 ) Jan 04 15:03:30 I also meant app/src/foo/bar/ above, not app/foo/bar Jan 04 15:06:54 "setBackground requires API 16" Jan 04 15:06:57 y u do dis Jan 04 15:06:58 y Jan 04 15:08:01 What is a reliable way to catch any new intents delivered to my Activity, whether or not it is currently running, or is the foreground activity? Should I look to see if the Intent has changed in onResume? Jan 04 15:08:35 onNewIntent is another option, but isn't called when an intent causes an Activity to start, I don't think. Jan 04 15:08:38 finally figured it out Jan 04 15:08:54 I feel a bit confused as to what minimum sdk to support in my app. Eclipse has it set to 8 automatically. Is there any reason why one should support minimum sdk 8? I guess one has to draw the line somewhere... Jan 04 15:09:26 do you care about the economy? or do you want everyone to be poor? Jan 04 15:10:10 in android studio there's a chart showing % market coverage per API Jan 04 15:16:15 Hey! Jan 04 15:16:48 I'm having trouble to vertical center items in my listview Jan 04 15:17:17 I'll post an image and some code Jan 04 15:19:14 http://imgur.com/RvUxTc1 Jan 04 15:19:42 Bruce Cockburn Jan 04 15:19:47 I want the logo to the left and the circle with a number to the right always be center aligned vertically Jan 04 15:20:12 is that possible to do? I've tried different googlesolutions with no luck Jan 04 15:20:27 didnt post your code Jan 04 15:20:37 your layout Jan 04 15:21:36 sorry, hold on! Jan 04 15:22:54 http://pastebin.com/r9c0u7un Jan 04 15:26:25 did you try adding layout_centerVertical? Jan 04 15:28:38 I think I did, but I'll try it again! Jan 04 15:28:49 can probably remove margins too, as they may scrunch your images if center is on. and remove align bottom to txt view Jan 04 15:29:41 and why -17 left margin, moves your image off screen left and cuts it Jan 04 15:30:43 Perfect, trying it out right now Jan 04 15:42:28 Hey Jan 04 15:43:00 I've just installed android studio and following the first app tutorial but having problems running the the app on either my device (asus memopad 7 me170, device is unauthorized/offline) or via the emulator (do not have HAX installed, and upon trying to install that it fails saying the system isnt supported) Jan 04 15:43:26 the device is being picked up by windows as a media device Jan 04 15:43:53 its using the drivers found by windows, and i cannot for the life of me find any official drivers for the tablet Jan 04 15:43:58 whatitis- layout_centerVertical did the trick with the centering part! Now I've got some marginissues. Can you take a look at a new pic? Jan 04 15:44:14 for authorized, look at device it should have a prompt that you have to accept to allow pc to connect to device over adb Jan 04 15:44:42 whatitis-, this prompt is never displayed Jan 04 15:44:46 aceus2, just post it, if I cant, someone else might Jan 04 15:45:18 http://imgur.com/Euky1CD Jan 04 15:45:37 usb debugging is enabled, and ive reconnected the device and cleared the permissions but i still never get this prompt Jan 04 15:45:42 fraz, usb debugging is enabled? if so just unplug replug and check screen on device for popup Jan 04 15:45:44 That's why I used the margins... Is there any better approach than using margins? Jan 04 15:45:55 ^ Jan 04 15:46:07 done that a few times, also restarted the device and pc Jan 04 15:46:15 fraz, then google your device model with error Jan 04 15:46:26 i did, i cant find anything:( Jan 04 15:46:29 im sure someone else has had issue Jan 04 15:46:39 you using windows? Jan 04 15:47:20 yeah, 8.1 Jan 04 15:47:21 aceus2, put your txtviews rightOf imageview Jan 04 15:48:10 fraz, from command prompt on windows, what does 'adb devices' show? Jan 04 15:48:17 Using android:layout_toRightOf= ? Jan 04 15:48:28 yea Jan 04 15:48:44 you want them right of left image correct? Jan 04 15:48:48 cool, i'll try it Jan 04 15:48:50 yep! Jan 04 15:49:03 whatitis-, yes, it shows as EAOKBC445755 unauthorized Jan 04 15:49:31 fraz, that seems you have to get the prompt Jan 04 15:50:33 it never shows:( Jan 04 15:50:46 http://stackoverflow.com/questions/18011685/cant-connect-nexus-4-to-adb-unauthorized Jan 04 15:50:56 few things to try there Jan 04 15:51:18 like autoplay, kill restart adb etc Jan 04 15:51:40 you just need to find what is messing with getting the prompt on device Jan 04 15:52:58 layout_toRightOf did not work =/ Jan 04 15:53:48 post xml with changes Jan 04 15:54:12 make sure left image isnt set to left of anything Jan 04 15:58:07 Hm Jan 04 15:58:14 still not working. Here's my new code: http://pastebin.com/iy0RN8Jr Jan 04 16:01:39 subtitle you have leftof and rightof for starters Jan 04 16:01:59 alignleft* Jan 04 16:02:10 you just want rightof Jan 04 16:03:20 and for dynamic score, you can just apply centerVertical like your imageview, and not have to align top of it Jan 04 16:03:28 okey Jan 04 16:04:00 whatitis-, i did all that too Jan 04 16:04:17 found that post earlier Jan 04 16:07:42 fraz, then guess you are SOL :) did you try camera mode, updating adb tools, etc? Jan 04 16:07:58 why does edward snowden wear bent glasses? Jan 04 16:09:17 fraz, also have you tried simply, disable usb debugging then reenable&restart adb server? Jan 04 16:10:59 Any idea of how to fix this last issue with the dynamic score? http://imgur.com/pfzC4QR Jan 04 16:11:14 So it's aligned to the right of the textviews without disappearing... Jan 04 16:11:33 aceus2, set leftOf dynamic score for txtviews Jan 04 16:11:41 right Jan 04 16:12:28 you have alignParentRight on dynamic score, just have your txtviews, rightof imageview and leftof dynamic score Jan 04 16:13:00 whatitis-, yes i think i tried that, ill try it ahain Jan 04 16:13:03 again* Jan 04 16:13:30 btw, i just disabled mtp on the device but now its not being picked up by adb at all Jan 04 16:13:39 fraz, if no worky, do you have another pc to test with to see if you get prompt Jan 04 16:13:49 yeh Jan 04 16:14:30 try adb kill-server, then start adb to see if picks back up after toggle mtp Jan 04 16:14:59 That did the trick! Jan 04 16:15:10 of course :) Jan 04 16:15:47 You guys are awesome! Jan 04 16:15:59 thanks Jan 04 16:16:02 nope, still doesnt pick it up Jan 04 16:16:10 How do you've got all these knowledge!? Jan 04 16:16:41 aceus2, pretty much everything is possible, and someone before you has had same issues and posted somewhere. just brush up on your googlefu if you get stumped Jan 04 16:17:54 Yep := Jan 04 16:17:55 :) Jan 04 16:18:03 I'm impressed though Jan 04 16:19:04 why the eff cant i find drivers for this tablet! Jan 04 16:19:33 plus with layouts theres only a couple youll use all the time, so you learn the advantages/quirks/use case, and youll get pretty intimate with them Jan 04 16:21:04 fraz, I remember awhile ago koush or someone released a giant bundle of almost every device driver. can try to find that, if device website doesnt male it easy Jan 04 16:22:22 damn asus site lets me search for my tablet and only shows knowlegdebase results Jan 04 16:22:24 makes no sense Jan 04 16:22:31 after clicking driver & tools Jan 04 16:23:54 http://support.asus.com/Download.aspx?SLanguage=en&m=ASUS+MeMO+Pad+HD+7 Jan 04 16:24:05 shows drivers when select android Jan 04 16:24:44 how do I make my app crash? Jan 04 16:24:49 assert false? Jan 04 16:25:04 just do something to something null Jan 04 16:25:20 I will not write null Jan 04 16:25:48 wierd how the hell did you get there:o Jan 04 16:26:05 TextView txtView; txtView.setText ("blah"); Jan 04 16:26:13 magic :) Jan 04 16:29:18 cant install either of those drivers Jan 04 16:29:20 bahhh Jan 04 16:29:48 why Jan 04 16:30:31 did it pick up your device drivers before, or did it install generics? Jan 04 16:30:43 oh its the wrong model btw, thats the memo pad 7 hd Jan 04 16:31:13 mine isnt, model number for mine is me170c Jan 04 16:31:28 ic Jan 04 16:31:53 http://support.asus.com/Download.aspx?SLanguage=en&m=ASUS+MeMO+Pad+7+%28ME170C%29&p=28&s=6 Jan 04 16:31:55 and no driver Jan 04 16:31:57 wtf Jan 04 16:32:04 just firmware, sourcecode and manuals Jan 04 16:32:20 this is where i ended up before Jan 04 16:34:40 marrrk throw new RuntimeException("this is a crash"); Jan 04 16:34:52 danijoo: Thanks, that looks good Jan 04 16:35:56 Hey, anyone has an idea how to speed up the loading of soundfiles in a Soundpool? I have 48 files, 30-50 kb each and it takes 5-10 seconds to load the soundpool :( Jan 04 16:39:35 hey guys! EditText dont render padding attribute? Jan 04 16:43:20 abara: the background drawable for the EditText has padding built-in so that's probably what you're seeing Jan 04 16:43:34 g00s: I don't read books as much as industry newsletters etc: http://blog.appannie.com/ http://blog.streamingmedia.com/... Jan 04 16:44:39 hey can you link to some of the newsletters you read? Jan 04 16:44:43 or mailing lists you follow? Jan 04 16:45:14 funkbox: oh, so it means that i really cant use padding? or it will show up correctly on the deploy? Jan 04 16:47:58 wow, look at this http://stackexchange.com/performance# Jan 04 16:48:04 stackexchange system architecture Jan 04 16:49:05 * capella-s3 is shocked to find g00s not actually online Jan 04 16:49:51 he ain't on all the time.. Jan 04 16:50:12 Odaym only 23.9/7 :p Jan 04 16:50:17 reply to a question 4 hours later you think he'd be waiting ;) Jan 04 16:50:31 maybe with a shell you mean Jan 04 16:50:35 but not actively online all the time Jan 04 16:51:02 Using AS, I right click my "menu" resource folder and select New - > Menu File. I type in a file name, and then I get an error: java.lang.AssertionError: Unexpected content storage modification Any thoughts? I Jan 04 16:52:27 Where is TacticalJoke too? Jan 04 16:52:57 qkzoo1978: can you reproduce it while getting prints from screen? Jan 04 16:53:16 qkzoo1978: we are good but not CSI yeat Jan 04 16:53:23 yet* Jan 04 16:53:25 Yes Jan 04 16:53:38 qkzoo1978: thanks :) Jan 04 16:53:41 qkzoo1978, have you tried clearing AS cache and stuff like that? Jan 04 16:53:51 or... turn it off and on again? Jan 04 16:53:55 No I haven't. Jan 04 16:53:56 A friend of mine had some questions about the NDK i couldn't answer, perhaps someone is able to help him? https://www.reddit.com/r/androiddev/comments/2rajtj/how_would_i_go_about_adding_openssl_to_an/ Jan 04 16:54:12 danijoo: yeah try Build > Clean Project Jan 04 16:54:22 "friend of his" Jan 04 16:54:28 ;) Jan 04 16:54:36 and invalidate cache maybe Jan 04 16:54:42 or delete AS cache folder by hand Jan 04 16:54:56 check folder permissions Jan 04 16:55:01 http://picpaste.com/2015-01-04-115417_1366x768_scrot-PpVVrM7Z.png Jan 04 16:55:06 those are some thoughts :p Jan 04 16:55:07 ++ perms Jan 04 16:55:56 also there is an android studio log file which should tell you more about that error (it shows the whole stacktrace) Jan 04 16:57:02 Where does it spit out the log? Jan 04 16:57:25 dunno. depends on your system Jan 04 16:57:27 look it up Jan 04 17:00:59 Ok, working now. I did a File | Invalidate Caches / Restart Jan 04 17:01:04 Thanks :) Jan 04 17:01:08 np Jan 04 17:03:30 Ive had intelliJ for 1.5 yrs and only once had an issue reqd cache invalidate to fix :/ Jan 04 17:06:09 I think my issue is build and develop on my pc and on my phone occasionally using Aide. So I guess some of the files could get out of sync with Dropbox. Jan 04 17:06:54 ouch dropbox Jan 04 17:07:08 capella-s3: it's not my account :) Jan 04 17:07:24 ouch dropbox ? Jan 04 17:08:39 resc0 : was laughing... I see a lot of people ask for help for their friends but I've never met one of those friends :D Jan 04 17:09:57 qkzoo1978, i just think its not a good idea to sync source files via dropbox because a lot of files are generated while building and change frequently Jan 04 17:10:05 sync issues Jan 04 17:10:31 I think they're like me and hate having to admit they're stuck on something :) Jan 04 17:10:40 Ya, that was the only problem I've had so far. Jan 04 17:10:59 qkzoo1978, i'd use git or some other vcs Jan 04 17:11:38 I've used Git before, I'll check it out, I'd have to set up my own private Git repo though. Jan 04 17:12:15 bitbucket.org allows private repos for free Jan 04 17:12:15 what's up with onPostExecute in async task Jan 04 17:12:18 it never runs Jan 04 17:12:30 ludkiller, bug in your code Jan 04 17:12:48 Ooo, I'll check out bitbuck then, thanks for the tip! Jan 04 17:12:54 yw Jan 04 17:13:13 danijoo, http://pastie.org/9812565 Jan 04 17:13:17 check it out Jan 04 17:13:59 there is no doInBackground :p Jan 04 17:14:13 heh Jan 04 17:14:39 danijoo, there is Jan 04 17:14:41 where the bug most likely lies. maybe its never returning or ssth Jan 04 17:14:47 i mean in the pastie Jan 04 17:14:57 http://pastie.org/9812570 Jan 04 17:15:05 Can I please have a page curl animation for fragments? Jan 04 17:15:11 ah I see Jan 04 17:15:14 Long and Integer Jan 04 17:15:28 thanks danijoo Jan 04 17:16:11 i dont think thats the problem. should be casted automagically Jan 04 17:16:19 danijoo, http://pastie.org/9812571 Jan 04 17:16:23 yea Jan 04 17:16:26 the whole class Jan 04 17:16:29 are you sure your HttpURLConnection is finished? Jan 04 17:16:56 do I need to close it Jan 04 17:16:58 I think it is Jan 04 17:17:18 as it executes parsing function after downloading stream Jan 04 17:17:35 onPostExecute takes a long or an integer? Jan 04 17:17:51 long I think Jan 04 17:18:10 it takes a long, but int->long will be caste automatically Jan 04 17:18:24 ? Jan 04 17:18:42 not that it matters Jan 04 17:19:23 oh Jan 04 17:19:29 it actually ran this time Jan 04 17:19:41 01-04 22:45:42.322 30103-30103/com.rawcoders.hackaday W/onPostExecute﹕ onPostExecute Ran Jan 04 17:19:48 ty Jan 04 17:20:20 who? what fixed it Jan 04 17:21:32 capella-s3, I have no clue Jan 04 17:21:40 probably the Integer long thing Jan 04 17:21:46 :) sweet Jan 04 17:21:49 or maybe not Jan 04 17:21:54 it's still integer Jan 04 17:22:02 it's just ran Jan 04 17:22:05 it* Jan 04 17:22:23 i dont think method signatures automatically convert Jan 04 17:22:41 capella-s3, but return values do Jan 04 17:23:01 When I click an item on my ListView, I want a square white box to pop up and let me do stuff with it? Any ideas what to implement to make this happen? Jan 04 17:23:04 if method is set to return a long, and you do return int, it makes a long out of it Jan 04 17:23:23 that sounds wrong Jan 04 17:23:57 but maybe you know magic :) Jan 04 17:23:57 its the default type casting all over java. double->int wouldnt work, but for int->long you dont loose any accurancy so it does the casting automatically Jan 04 17:24:46 ill setup a test and get back to you Jan 04 17:24:54 it is pretty easy. it does the casting for you as long as you dont loose accuracy Jan 04 17:25:14 capella-s3: i don't use the NDK :P i use the SDK Jan 04 17:25:33 I'm trying to create a certificate for an android app through the command line. it's working ok but I couldn't find a way to pass the name, organization, etc. so keytool asks for these values interactively. is there a way to put the params altogether in the command line? Jan 04 17:26:20 Mattx, dont think so Jan 04 17:26:26 why not? Jan 04 17:26:39 nobody put them in Jan 04 17:26:39 I can specify the key alias and key password Jan 04 17:26:41 but not the name? Jan 04 17:26:49 and it's optional actually, it can be blank :| Jan 04 17:27:00 because you would end with 10 lines of commandline arguments Jan 04 17:27:11 nobody wants to see something like that in his terminal :p Jan 04 17:27:15 I want them to be blank Jan 04 17:27:25 then hit enter and be happy Jan 04 17:27:30 I don't believe you can feed a returned Integer result of an one method to another method that takes a Long without doing your own casting ... this would be a TIL thing for me :) Jan 04 17:28:43 aye Jan 04 17:29:03 capella, somewhere in the source of AsyncTask there will be the place where doInBackground is run Jan 04 17:29:08 danijoo, no way, I'm automatizing the process of creating certs and managing them Jan 04 17:29:13 that's the problem Jan 04 17:29:14 the return value is stored in a variable Jan 04 17:29:24 and then onPostExecute is called with that value Jan 04 17:29:34 Yep and it'll call a method the the compiler tied to it Jan 04 17:29:39 if the values dont match, java will try to cast it as usual Jan 04 17:29:54 and for int->long, this casting can be done without needing to specify it Jan 04 17:29:54 "as usual" is what I don't believe Jan 04 17:29:57 thats why it works Jan 04 17:30:11 but maybe a fine point I;vemissed in there somewhere Jan 04 17:30:25 its the same as passing an int to a method that takes a long. Jan 04 17:30:37 Int not == Integer Jan 04 17:30:38 Why do you have to specify activities in the manifest? Jan 04 17:30:40 if you have public void doSomeStuff(long var), you can put an int in it Jan 04 17:30:43 and it will still work Jan 04 17:30:51 mmm Jan 04 17:31:08 and you dont have to write doSomeStuff( (int) 100 ); you can just write doSomeStuff(100) Jan 04 17:31:15 its not working the other way around though Jan 04 17:32:43 guys Jan 04 17:32:47 capella, http://www.pickatutorial.com/tutorial/javaprogramming/java_type_conversion.htm Jan 04 17:32:54 http://pastebin.com/0DAfubLT Jan 04 17:32:55 this explains it better than i can do it :0 Jan 04 17:33:03 public List ITEMS = new ArrayList(); Jan 04 17:33:15 I am populating Items with List Element data Jan 04 17:33:50 right, implicit for primitives Jan 04 17:34:07 Was wondering re: Integer->long Jan 04 17:34:09 and then mListView = (AbsListView) view.findViewById(android.R.id.list); Jan 04 17:34:09 mListView.setAdapter(Global.mAdapter); Jan 04 17:34:27 then I do notifyDataSetChanged() Jan 04 17:34:34 but still can't see my list Jan 04 17:34:40 Since Integer can be null Jan 04 17:35:03 danijoo: --^ Jan 04 17:35:37 anyone? Jan 04 17:36:50 capella, good point. hmm Jan 04 17:37:34 :) Jan 04 17:37:41 capella, maybe autoboxing handles this Jan 04 17:38:01 compiler will make an Integer->int->long->Long out of it I guess Jan 04 17:38:46 "Autoboxing is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper classes. For example, converting an int to an Integer, a double to a Double, and so on." Jan 04 17:39:07 I think his method returning Integer never called his method requiring Long Jan 04 17:39:09 thats the reason why you can add ints to a List Jan 04 17:39:13 you cite the wrong direction Jan 04 17:39:30 yeah but it works in both directions Jan 04 17:39:36 can't Jan 04 17:39:58 Heh - gimme sec -- toss a test Jan 04 17:40:22 if this would be the reason, his app would have at least thrown a ClassCastException or any log message Jan 04 17:40:42 no he just overrode nothing Jan 04 17:40:43 The android framework wouldnt just choke that error Jan 04 17:40:53 the base method got called with Object or something Jan 04 17:40:59 and did nothing Jan 04 17:40:59 anyone here from australia? Jan 04 17:41:11 guys Jan 04 17:41:13 anyone ? Jan 04 17:41:21 yes he overrides. its generics. Jan 04 17:41:51 OHH Jan 04 17:42:04 now I see what you mean. its AsyncTask in his case.. Jan 04 17:42:13 he didnt set the first arg to Long Jan 04 17:42:20 \o/ Jan 04 17:42:29 i did miss that. Jan 04 17:42:30 second Jan 04 17:42:41 wait, third Jan 04 17:42:46 :/ Jan 04 17:42:54 confusing myself now :p Jan 04 17:43:21 or are right. i think the problem is since he didnt use @Override annotation he might havent overridden the method at all Jan 04 17:43:28 and this might be the case its not run. Jan 04 17:43:38 yah ... suspects also Jan 04 17:43:40 instead it ran the empty method of the superclass Jan 04 17:43:42 but I am still not overriding it Jan 04 17:43:46 yah Jan 04 17:43:47 and it's running Jan 04 17:44:03 ludkiller, because now you fixed your return type ;0 Jan 04 17:44:10 :O Jan 04 17:44:21 post the thing that works ludkiller Jan 04 17:44:21 what sorcery is this D: Jan 04 17:44:26 C is pretty simple Jan 04 17:44:29 @Override isnt neccessary, its just a good thing to do to find those errors Jan 04 17:44:34 so danijoo and I come together Jan 04 17:44:40 yep :) Jan 04 17:44:47 @Override isnt reqd, true Jan 04 17:44:49 http://pastie.org/9812617 Jan 04 17:44:55 but is smart Jan 04 17:45:09 yea I though it was weird Jan 04 17:45:09 changed the onPostEceute Jan 04 17:45:12 thought Jan 04 17:45:19 I win the internet :D Jan 04 17:45:24 yea Jan 04 17:45:25 :D Jan 04 17:45:30 from long to Integer Jan 04 17:45:41 ludkiller, you really should use @Override Jan 04 17:45:45 ++ Jan 04 17:45:52 I thought so Jan 04 17:46:02 I hardly know Java I am a C programmer Jan 04 17:46:02 this will make your ide/compiler complain and youll find those errors faster Jan 04 17:46:06 newbie to java Jan 04 17:46:19 well @Override just makes sure that your method is actually overriding something Jan 04 17:46:19 best part my IDE doesn't say shit Jan 04 17:46:32 if you put it before a method and it isnt defines in superclass, youll get an error Jan 04 17:46:45 and then you know that theres something wrong Jan 04 17:46:48 ah Jan 04 17:46:50 yea Jan 04 17:46:59 I am new to java sorry about that Jan 04 17:47:01 Java* Jan 04 17:47:04 no problem :) Jan 04 17:47:21 we all were, once Jan 04 17:47:30 but the problem is my ListView isn't working :3 Jan 04 17:47:39 doesn't display anything Jan 04 17:48:08 ludkiller: Sample code? Jan 04 17:48:29 ludkiller: Got it. http://pastie.org/9812617 Jan 04 17:48:49 theres a lot strange things in that list view.. :p Jan 04 17:48:52 what is ITEMS Jan 04 17:49:30 in listview, you should inflate with false as third argument Jan 04 17:49:33 http://pastie.org/9812623 Jan 04 17:49:35 there you go Jan 04 17:50:01 http://pastie.org/9812625 Jan 04 17:50:05 okay... first things first Jan 04 17:50:15 you must override getCount() Jan 04 17:50:18 these 2 files should be it Jan 04 17:50:21 this method returns the size of your list Jan 04 17:50:36 for every Item in your list, getView is called Jan 04 17:50:56 yea Jan 04 17:50:56 if you dont override getCount, the adapter thinks it has 0 items and does not call getView Jan 04 17:51:04 ok Jan 04 17:51:05 I see Jan 04 17:51:28 and thats also the reason why dont need to check for ITEMS.size() in getView() Jan 04 17:51:42 I see Jan 04 17:51:43 done Jan 04 17:52:12 and now. i have to go. good luck tough ;) Jan 04 17:52:35 aye Jan 04 17:52:40 ty for your help Jan 04 17:52:42 bye Jan 04 17:52:43 ludkiller: If you are successfully getting the items. What danijoo suggested should work. Jan 04 17:53:07 If it does not work. PING! Jan 04 17:54:25 it works Jan 04 17:54:30 it works thanks :D Jan 04 17:54:43 ty mipreamble , danijoo Jan 04 17:54:54 ludkiller: Cool. No problem. Jan 04 17:55:07 now just neeed paging Jan 04 17:55:27 pagination and some other features, I am writing an app to browse hackaday Jan 04 17:55:32 as there aren't any Jan 04 17:55:39 open source , no ads Jan 04 17:55:58 although this is my first app so poor coding practices :P Jan 04 17:56:09 Anyone having problems with soundpool loading very slow on lollipop? It worked fine on Kitkat 4.4.4 but on Lollipop 5.0.2 it takes 5-6 seconds to load the sounds Jan 04 17:56:23 is there way of seeing who left a review on the play store even if they dont leave a comment? Jan 04 17:57:01 ludkiller: Good luck. Share the link once u do push the source. Jan 04 17:58:34 ok, almost done! Jan 04 17:58:57 is it important to put a name, organization and the like in the cert of an app? Jan 04 17:59:26 I believe I can't change it later. not sure Jan 04 18:03:28 if I wanted to open a socket from listview press even how would I do that? Jan 04 18:03:44 event* Jan 04 18:04:07 how do I get the image's offset from imageview when the scaletype is matrix Jan 04 18:04:09 ?* Jan 04 18:08:14 'lo Jan 04 18:09:24 I want to get an int array from arrays.xml Jan 04 18:09:29 and store it as an ArrayList Jan 04 18:09:37 (it's an integer-array type in xml) Jan 04 18:11:03 Arrays.asList( getIntArray(R.array.my_int_array ) Jan 04 18:13:05 ArrayList aList= new ArrayList(Arrays.asList(getResources().getIntArray(R.array.foo); ? Jan 04 18:14:11 look at return of asList Jan 04 18:14:29 hmmm Jan 04 18:22:10 whats the native api to write to internal storage? Jan 04 18:22:32 DrBenway: are you talking about SharedPreferences? Jan 04 18:22:40 or the actual cache directory Jan 04 18:23:10 dunno, i want to write my game states to disk Jan 04 18:23:15 and then load them back in Jan 04 18:23:25 i have something to load my assets and that works fine using the asset manager Jan 04 18:23:36 but that doesn't support writing to disk Jan 04 18:24:04 SharedPreferences is your best friend Jan 04 18:24:13 ok Jan 04 18:24:56 DrBenway: https://developer.android.com/guide/topics/data/data-storage.html Jan 04 18:25:12 oh yeah, that! Jan 04 18:25:28 internal storage looks more like what i need than shared preferences Jan 04 18:25:54 although out of all that... we seem to missing the "native" part Jan 04 18:26:35 if all you're doing is save the current state, I don't see why you should deal with something other SP Jan 04 18:27:07 because i have my own binary save format Jan 04 18:27:14 and it's more than just bit flags Jan 04 18:27:19 i dump all my actors and what not Jan 04 18:27:30 but im not looking for a recommendation on what storage to use Jan 04 18:27:37 im looking for the api to write to internal storage Jan 04 18:28:08 DrBenway: Did you see SimonVT's link? Pretty sure that answers your question. Jan 04 18:28:14 yes Jan 04 18:28:42 TacticalJoke: https://plus.google.com/u/0/105051985738280261832/posts/YDykw2hstUu Jan 04 18:28:42 what part of it was talking about native api? Jan 04 18:28:53 about your new years resolution Jan 04 18:30:03 Yeah, I agree with considering performance all the time. Jan 04 18:30:15 My resolution was not to obsess about performance at the cost of everything else. :) Jan 04 18:30:27 I'll read it; it looks good. Jan 04 18:33:42 DrBenway: How are you defining "native"? I'd say that those options are all native. Jan 04 18:33:49 native activity Jan 04 18:33:56 in C/C++ Jan 04 18:33:59 no java involved Jan 04 18:35:04 I see. Why don't you want to use Java? Jan 04 18:35:32 because my whole codebase is in C/C++ Jan 04 18:38:39 A friend of mine had some questions about the NDK i couldn't answer, perhaps someone is able to help him? https://www.reddit.com/r/androiddev/comments/2rajtj/how_would_i_go_about_adding_openssl_to_an/ Jan 04 18:48:28 is it ok to use wakelocks? Jan 04 18:48:59 NO Jan 04 18:50:05 ChrisUK: https://developer.android.com/training/scheduling/wakelock.html Jan 04 18:51:15 You should be careful when using WakeLock and make sure you take into account battery life considerations Jan 04 18:54:01 ChrisUK: https://i.imgflip.com/g0bsr.jpg Jan 04 18:54:33 Is using Volley the best way to make a simple HTTP request? Jan 04 18:54:46 I would recommend Retrofit Jan 04 18:54:46 that's opinion based Jan 04 18:54:49 yeah Jan 04 18:54:56 Volley is nice, so is retrofit Jan 04 18:55:03 so is HttpUrlConnection Jan 04 18:55:20 everything is nice Jan 04 18:55:23 yup Jan 04 18:55:28 also Socket Jan 04 18:55:36 and DefaultHttpClient Jan 04 18:55:37 Lots of options Jan 04 18:55:40 if you're into that Jan 04 18:55:51 also LoopJ Jan 04 18:55:56 and some more Jan 04 18:56:24 drose379: to sum it up, Http is probably the area with the largest amount of libraries Jan 04 18:56:33 Strongest one? Jan 04 18:56:39 look at some samples and choose what look best for you Jan 04 18:56:43 and suits your needs Jan 04 18:56:53 Got it, thanks Jan 04 18:56:54 define "Strong" Jan 04 18:56:59 Hmm Jan 04 18:57:13 indeed Jan 04 18:57:14 I guess I dont know what I meant by strong Jan 04 18:57:41 sound about right Jan 04 18:57:41 Here is a nice answer from SO about this Jan 04 18:57:42 http://stackoverflow.com/a/18863395/2029566 Jan 04 18:57:47 what are you trying to do? Jan 04 18:58:12 Make a simple http request to the server (php script) to add something to a mysql DB Jan 04 18:58:25 take CommonsWare's answer Jan 04 18:58:31 hmmmm Jan 04 18:58:31 regardless of what you see on the page Jan 04 18:58:59 retrofit? Jan 04 18:59:12 Odaym: not necessarily Jan 04 18:59:18 HERESY! Jan 04 18:59:22 :D Jan 04 18:59:23 XD Jan 04 18:59:33 because I was *very* amused Jan 04 18:59:48 I like liking that guy Jan 04 18:59:59 I like him too most of the time Jan 04 19:00:15 and kinda learned my android from him and Lars Vogel Jan 04 19:00:37 obsidion: ??? Jan 04 19:00:41 cmd Q right next to cmd W... Jan 04 19:00:48 yep Jan 04 19:00:51 sounds familiar Jan 04 19:00:58 I like him too most of the time Jan 04 19:01:00 and kinda learned my android from him and Lars Vogel Jan 04 19:01:09 Yeah, he has great answers Jan 04 19:01:19 Lars Vogel seems like he is always struggling to be "the best" Jan 04 19:01:25 he has an air of perseverance around him :P Jan 04 19:01:28 LOL Jan 04 19:01:32 the other guy makes it looks so much easy Jan 04 19:01:41 Oreilly also Jan 04 19:01:57 Have you guys read the "Busy Coder's Guide"? Jan 04 19:02:03 and I am quite ashamed to say but the first learning XP I had in Android was Bucky Jan 04 19:02:15 I went through it for Android 2.3 I think Jan 04 19:02:19 I have that book still Jan 04 19:02:25 Bucky and The New Boston for me Jan 04 19:02:29 the new boston! Jan 04 19:02:32 haha that's so old Jan 04 19:02:40 Is he still going? Jan 04 19:02:41 Doesn't HttpURLConnection have no way of stopping the download/upload? Jan 04 19:02:42 https://www.youtube.com/playlist?list=PLB7975D442E347FDE Jan 04 19:02:46 nunno Jan 04 19:02:47 OkHttp seems to have a much nicer interface. Jan 04 19:02:48 dunno Jan 04 19:03:28 a co-worker looked into replacing Volley with OkHttp and he said there is too much fine tuning Jan 04 19:03:41 I never looked into switching because of too much technical debt Jan 04 19:03:44 Im watching a new boston vid right now Jan 04 19:03:56 drose379: isn't that OLD stuff? Jan 04 19:04:11 2011.. is it still valid? https://www.youtube.com/watch?v=qLSjn6pzTr0 Jan 04 19:04:39 Volley with OkHttp Jan 04 19:04:40 https://gist.github.com/JakeWharton/5616899 Jan 04 19:04:41 nope Jan 04 19:04:43 nope Jan 04 19:04:47 emmano: saw that Jan 04 19:04:48 why? Jan 04 19:05:06 2011 was three years ago (even 4) Jan 04 19:05:15 do you know what changed since then? Jan 04 19:05:21 Everything? Jan 04 19:05:24 yep Jan 04 19:05:27 ^ Jan 04 19:05:30 haha, alright Jan 04 19:05:31 except the word Activity Jan 04 19:05:49 back in the day Jan 04 19:05:58 ActionBarSherlock was nothing but a dream Jan 04 19:06:16 and Fragments were just Views that had nice animations Jan 04 19:06:21 LOL Jan 04 19:06:34 Corey84: are you 31 years old? Jan 04 19:07:13 thepoosh hows this look? Jan 04 19:07:15 not til july why ? Jan 04 19:07:17 http://stackoverflow.com/questions/5410823/how-to-use-defaulthttpclient-in-android Jan 04 19:07:47 drose379: I would suggest moving away from DeafultHttpClient to OkHttp or Volley Jan 04 19:08:04 they are both quite simple and will be a good broad spectrum solution to your acks Jan 04 19:08:24 OK, sounds golod Jan 04 19:08:30 I think using what Android gives you to make HTTP requests is a good exercise for learning, but in reality there are better options out there than implementing your own Jan 04 19:08:40 yep Jan 04 19:08:53 except if you are Jake Wharton Jan 04 19:08:56 plus, if you're implementing it on your own HttpUrlConnection is better Jan 04 19:09:28 thepoosh: Better than what? OkHttp? Jan 04 19:09:45 21:08 emmano: I think using what Android gives you to make HTTP requests is a good exercise for learning, but in reality there are better options out there than implementing your own Jan 04 19:09:57 TacticalJoke: you gotta read man! Jan 04 19:10:12 just give him Context Jan 04 19:10:13 LEL Jan 04 19:10:40 NO! Jan 04 19:10:45 yea, no Jan 04 19:10:45 Sorry, refactoring something annoying at the same time as reading. Jan 04 19:10:46 IT'S ALL OR NOTHING!!! Jan 04 19:10:49 I hate complexity. Jan 04 19:11:10 Complexity is why we can't (and can) have nice things. Jan 04 19:11:23 hmmmm Jan 04 19:11:24 yes and no Jan 04 19:12:08 ListView is very nice an Romain Guy claims to not understand it Jan 04 19:12:18 and he wrote the frikin' thing Jan 04 19:12:46 did he write it? i thought he just worked on it Jan 04 19:12:48 well, SO is down Jan 04 19:12:52 time to change careers Jan 04 19:13:10 g00s: well, yes Jan 04 19:13:23 but I assume he was high up enough to code review anything that made it in Jan 04 19:13:33 so code review >= writing Jan 04 19:14:10 at least according to my boss Jan 04 19:14:13 He also says the same thing about the Activity lifecycle Jan 04 19:14:42 just wait until he talks about Fragment lifecycle Jan 04 19:14:57 where things might or might not happen in changing orders Jan 04 19:15:38 I think that is one of the reasons why Square were advocating agains Fragments Jan 04 19:15:59 and came up with these two libraries that nobody understands how to use Jan 04 19:16:05 LOLLLL Jan 04 19:16:11 sounds similar to Fragments Jan 04 19:16:16 right Jan 04 19:16:22 Mortar and Flow Jan 04 19:16:45 https://github.com/square/mortar Jan 04 19:16:50 note the description Jan 04 19:17:00 "A simple library that makes it easy to pair thin views with dedicated controllers, isolated from most of the vagaries of the Activity life cycle." Jan 04 19:17:27 @_@ Jan 04 19:17:48 JakeWharton: here to explain a bit on this? Jan 04 19:18:43 does he usually stop by? Jan 04 19:18:52 yep Jan 04 19:19:48 he never stops by the Android chat in SO Jan 04 19:20:02 chat on SO....meh Jan 04 19:20:05 people come here Jan 04 19:20:31 I think there is more Activity there than here Jan 04 19:20:32 Odaym: tried once, 5/10 would not do again Jan 04 19:20:54 enough internet for me Jan 04 19:22:40 do you guys discuss new libs and stuff like that here as well? Jan 04 19:22:50 or libs that you have created? Jan 04 19:23:51 please redefine this question Jan 04 19:24:04 this is a chat, not a blog Jan 04 19:24:53 I understand, but what I mean is, if there is a cool you lib that came out, or you created a lib, do you guys share them here? Jan 04 19:25:00 or is it agains the rules? Jan 04 19:25:04 against* Jan 04 19:25:16 see topic? Jan 04 19:26:34 hi Jan 04 19:26:44 so it is part of the no advertising policy, I see Jan 04 19:26:47 can someone explain to me what Context is in SQLiteOpenHelper ? Jan 04 19:27:27 http://www.doubleencore.com/2013/06/context/?utm_source=Android%20Weekly&utm_campaign=78ad4cb95e-Android_Weekly_64&utm_medium=email&utm_term=0_4eb677ad19-78ad4cb95e-328260729 Jan 04 19:27:40 ^ one of the best explanations of Context I have read Jan 04 19:29:45 that doesn't say anything about databases Jan 04 19:30:46 It explains what Context is, and the different types of Context Jan 04 19:31:10 WAT Jan 04 19:32:05 https://plus.google.com/communities/116342551728637785407 Jan 04 19:32:09 this looks interesting Jan 04 19:33:27 it does indeed Jan 04 19:34:56 Guys, maybe stupid questions, i want to see sources of Peoples application in (for example) Android 4.4, i read some manuals about it, installed repo utility, and dont know what to do on next step Jan 04 19:34:56 >repo init -u url -b branch Jan 04 19:34:56 Because don't know which manifest file do i need and which branch Jan 04 19:35:39 By "Peoples" i mean standard application, with contacts and groups Jan 04 19:35:59 grepcode ftw! Jan 04 19:41:31 Hi guys...I'm on Android 4.4.2 and there are some apps on play store that states the version isn't compatible with my device. I have checked the same app using another phone on the same version and they are ok. So what is wrong with my device? Jan 04 19:41:35 Ah, looks understood Jan 04 19:42:11 ReGiStRaS: either the device is in the blacklist or the api version is not compatible Jan 04 19:42:12 Is it a tablet? Jan 04 19:42:30 nope...is a phone Jan 04 19:42:48 is a Dupad Story M720-E2 - Android 4.4.2 phone Jan 04 19:42:49 it is one or the other, like thepoosh said Jan 04 19:42:53 maybe it doesn't have a required hardware feature? maybe the carrier isn't allowed? Jan 04 19:43:20 Ihave tested the same app on play store on another device and it is ok to download Jan 04 19:43:34 it is what it is Jan 04 19:43:50 I am sad. Didn't find class "scala.concurrent.stm.ccstm.CCSTM" Jan 04 19:43:54 in the playstore you can only blcaklist according to api, country and device Jan 04 19:44:14 Hello, android-21 does not support SVG images ? instead it defines its own vector image format ? Jan 04 19:47:06 AnAnt look at this http://stackoverflow.com/questions/18356098/having-issue-on-real-device-using-vector-image-in-android-svg-android Jan 04 19:47:29 and this - https://blog.stylingandroid.com/vectordrawables-part-1/?utm_source=Android+Weekly&utm_campaign=b2d35dae00-Android_Weekly_134&utm_medium=email&utm_term=0_4eb677ad19-b2d35dae00-337295881 Jan 04 19:47:39 sorry for the cookies Jan 04 19:56:15 if you have a list of users in a RecyclerView and you want them to each have a gravatar, where is the best place to go out and fetch all the gravatars for each user? Jan 04 19:57:09 I was thinking about using Picasso and doing it from the RecyclerView.Adapter but Picasso needs a reference to the context and I don't see a way to get one from inside the Adapter Jan 04 19:57:30 I'm using Retrofit to get the user data, so maybe in the Callback for that? Jan 04 20:01:24 tnzr: you can get context from here: https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder.html#itemView Jan 04 20:02:18 which is better, sdk/adt, or android studio? not sure which to use. I'm more familiar with how the sdk is laid out but I'm sure it wouldn't be too much to figure studio out either Jan 04 20:02:44 I think you can also get the Context from `onBindViewHolder()` Jan 04 20:02:55 impulse: yo man Jan 04 20:02:58 thepoosh: awesome, thanks! Jan 04 20:03:01 You get passed in the `ViewHolder`` Jan 04 20:03:02 laspahr: Android Studio is the recommended development environment. Jan 04 20:03:07 abara: what Jan 04 20:03:10 impulse: how's job? Jan 04 20:03:16 what job? Jan 04 20:03:23 impulse: ant job Jan 04 20:03:25 ooh Jan 04 20:03:38 impulse: did you the class issue? Jan 04 20:03:41 i was missing a "package ..." line at the top of the class i added Jan 04 20:03:42 solve* Jan 04 20:03:49 impulse: :/ Jan 04 20:03:50 yea Jan 04 20:03:50 TacticalJoke, alright, I'll go with that then :) wasn't sure if there was a "preferred" or "recommended" environment, and that answered my question! Jan 04 20:03:53 that was dumb Jan 04 20:04:04 impulse: xD Jan 04 20:04:20 TacticalJoke: hello man! whats up :) Jan 04 20:05:01 perfect, thanks guys Jan 04 20:05:23 Hai Jan 04 20:05:23 . Jan 04 20:05:59 Just adding features as quickly as possible (while not creating awful code). Jan 04 20:06:33 laspahr: The first sentence here backs it up, in case you wanted official sources: http://developer.android.com/tools/studio/index.html :) Jan 04 20:11:07 cool :) looks like I haven't put java on this computer yet, oops heh. I've used studio a little, but not enough to be really comfortable. Is there an option in the setup to add adb, fastboot, etc. to the PATH? Jan 04 20:12:29 Not sure. I'm still on Eclipse (and I had to add adb to PATH manually). Jan 04 20:12:53 still on Eclipse and I'm fine with it Jan 04 20:13:41 I would've done that, but why not jump on the new stuff when it's new? :) Jan 04 20:14:27 because bugs Jan 04 20:14:32 because ease of use Jan 04 20:14:42 because coast of porting Jan 04 20:14:45 Only reason I'm still on Eclipse is that AS doesn't support JVM unit testing yet. Jan 04 20:14:58 because devs don;t like change Jan 04 20:15:00 Officially, anyway. Jan 04 20:15:33 Yeah, there are plugins for Robolectic Jan 04 20:15:39 Robolectric* Jan 04 20:15:41 Devs who don't embrace change don't stay good devs for long, IMO. Jan 04 20:15:58 I hope they add support soon Jan 04 20:15:58 thepoosh is anyone else on your team using AS ? Jan 04 20:16:06 the Google guy Jan 04 20:16:13 we have some gradle issues with porting Jan 04 20:16:14 thepoosh what build system are you using ? Jan 04 20:16:18 ah Jan 04 20:16:25 TacticalJoke, I agree, though I'm not an official "dev" so I guess I can't speak much Jan 04 20:16:28 so we are prevented from porting until we fix that Jan 04 20:16:33 thepoosh ndk stuff ? Jan 04 20:16:40 no, they are just fine Jan 04 20:16:55 the issue is with non-standard build.gradle Jan 04 20:17:11 not AS compatible or some shit Jan 04 20:17:18 hi Jan 04 20:17:18 well.. what do I do, it says my JDK isn't valid, even though I just downloaded 7u71 or whatever it's called Jan 04 20:17:33 there is this repo of testing samples from google Jan 04 20:17:44 but I think it is for Instrumentation tests only Jan 04 20:17:45 https://github.com/googlesamples/android-testing Jan 04 20:17:47 It's also the case in my experience that Eclipse is enormously faster than Android Studio, in general and when it comes to builds. So there are definitely some advantages to Eclipse in some cases. Jan 04 20:17:55 Having said this, I'll jump ship to Android Studio once they implement what I need. Jan 04 20:18:26 JVM Unit Testing... I know what that is but could you refresh my memory? Jan 04 20:18:44 laspahr: It's running unit tests on the JVM (on your computer) rather than on a device or on the emulator. Jan 04 20:18:46 It's way faster. Jan 04 20:18:51 And very convenient. Jan 04 20:19:06 https://developer.android.com/tools/testing/testing_android.html Jan 04 20:19:15 ? Jan 04 20:19:24 Oh! That seems like a nice feature Jan 04 20:19:57 It's basically not support in Android Studio. It's very easy to do in Eclipse, though (just create a normal Java project and point it to your Android project). Jan 04 20:20:00 supported* Jan 04 20:20:09 They're working on it in Android Studio. It should be doable soon. Jan 04 20:21:06 I'd like to try that out once it gets implemented, you know.. if I do end up actually succeeding in building an app Jan 04 20:21:07 lol Jan 04 20:21:38 It should be very easy to build using AS/Eclipse. Jan 04 20:23:06 the issue is writing it, I'm not fluent in whatever language android uses heh.. once I figure that out I would hope I wouldn't have a problem Jan 04 20:23:25 java installation path.. would that be to the .exe installer or to where java was installed? Jan 04 20:23:41 I think that would be the path to the JDK. Jan 04 20:24:30 would it be under "JDK" or "JRE", or is there a difference..? I'm sure there's a difference, and I'm gonna say this a stupid question haha Jan 04 20:25:44 It's been a while since I've installed Android Studio. :) What exactly is asking you for a Java installation path? Jan 04 20:26:39 I'm setting the JAVA_HOME environment variable..? I think haha Jan 04 20:26:45 to get AS to recognize it Jan 04 20:29:23 I guess it took it, not asking me for a JDK path anymore Jan 04 20:29:59 I set mine to "C:\Program Files\Java\jdk1.7.0_64" at some time in the past. Jan 04 20:30:57 would it be alright to change the installer location..? like to an "Android" directory in C:\, or will it cause issues? Jan 04 20:31:26 sorry I feel like this is a game of like 200 questions lol Jan 04 20:31:28 I think so. Jan 04 20:32:50 3GB of emulator RAM is plenty, right? Jan 04 20:32:57 You're close to the limit on free newb questions Jan 04 20:33:29 lmgtfy :p Jan 04 20:34:22 sorry, figure here may be more reliable than google Jan 04 20:34:25 :) Jan 04 20:34:46 * capella-s3 is gonna need bout tree fiddy Jan 04 20:35:03 Hey guys, how is everyone? Jan 04 20:35:24 sighs Jan 04 20:35:24 laspahr: Do you have an Android device, BTW? It's way nicer testing with a real device than on the emulator. Jan 04 20:35:36 Yeah, SGN4 :) Jan 04 20:35:46 Cool. Jan 04 20:36:30 I've just pushed the apps I've attempted to make onto the phone, seems to work well Jan 04 20:36:34 better than the laggy emu Jan 04 20:37:04 x86 is not laggy Jan 04 20:37:13 If you have an Intel processor, you might be able to use the HAXM thing, which is much faster. Otherwise, you might be able to use Genymotion, which a lot of people prefer. Jan 04 20:37:42 gdrc: It's slow here. Huge start-up times. But a lot less slow than the emulator when things get going. Jan 04 20:38:04 yeah, i7 Jan 04 20:38:24 TacticalJoke: I think your setup has some issue Jan 04 20:39:01 I doubt it. The emulator is a million times slower. Jan 04 20:39:08 is it just me, or does the emu always look like stock ICS/Jelly Bean? Jan 04 20:39:09 It's just that it's still not crazily fast. Jan 04 20:39:33 Yeah, the icons and wallpaper seem to be old. Jan 04 20:39:51 then again, I'm almost expecting Nexus experience, but it's just AOSP Jan 04 20:40:03 so there's a little big of slack you have to give I suppose Jan 04 20:41:04 laspahr: I recently discovered wireless adb. Really convenient and easy. Jan 04 20:41:21 So I'm using a device a lot. Jan 04 20:42:37 Yeah, I mean all you have to do is plug it in for a few seconds (enough time to type the code) then you're wireless :) I typically have a cable ready, so I use it since it's more reliable IMO and faster (although not by much) Jan 04 20:43:55 what files do I really need in the SDK Manager, and which can I just ignore? Jan 04 20:46:17 lame, Handler.hasMessages() but no Handler.hasRunnable() Jan 04 20:49:46 laspahr: It should auto select the ones you need when you open it. Jan 04 20:50:15 hasCallbacks(Runnable r) ? Jan 04 20:50:47 meh - not the same Jan 04 20:58:43 Hello guys! I made an admob account. And now I want to use it to embed ads in my android application. Do I need a seller/merchant account to use ads in my android app? Jan 04 21:04:13 g00s: any interest in imsi catcher catchers? https://github.com/SecUpwN/Android-IMSI-Catcher-Detector Jan 04 21:06:00 Has anyone here used elliptic curve crypto on Android via SpongyCastle (or BC)? I'm calling "AlgorithmParameters ap = AlgorithmParameters.getInstance("EC");" and getting NoSuchAlgorithmException, even with SpongyCastle properly loaded. Jan 04 21:09:13 capella-s3: yea Jan 04 21:10:35 capella-s3: Ooh, very interesting. Jan 04 21:11:42 capella-s3: Keep everything encrypted. Jan 04 21:11:56 easier said than done Jan 04 21:12:10 phones won't even tell you when they drop encryption Jan 04 21:14:22 tbh, everyone who seriously considered confidentiality knew phone calls to be plaintext Jan 04 21:16:24 it's not just conversation confidentiality that's the problem Jan 04 21:16:41 what's the easiest way for me to see what versions of android are supported by my app without submitting it? Jan 04 21:17:44 some library component has resulted in a max version of 4.3, and I'm not sure how to figure out if I've fixed it properly or not without actually uploading the app to google play Jan 04 21:18:15 impulse: yeah, but if you're worried about being tracked, just don't bring a device that requires tracking for operation, or use burner phones Jan 04 21:24:20 yeah, borrow your friends' phone Jan 04 21:25:16 rfid pocket protector Jan 04 21:28:02 wabz: aapt dump xmltree file.apk AndroidManifest.xml | less Jan 04 21:28:04 ta Jan 04 21:41:10 Anyone here familiar with using socket.io with phonegap? Jan 04 21:41:23 My chat app disconnects when the phone goes to sleep Jan 04 21:41:33 Is there a workaround for this issue? Jan 04 21:41:48 solution is probably don't use phonegap Jan 04 21:45:40 automatically reconnect when it wake sup? Jan 04 21:47:04 lasserix_: I was thinking about that as well. How would I go about doing that? Jan 04 21:49:18 never have used phonegap sorry Jan 04 22:21:13 is there an easy way to dismiss a progressDialog whenever it is hidden by another dialog/activity? Jan 04 22:29:53 soemthing's wrong with my crashlytics Jan 04 22:45:40 Has the play store license verification process been reverse engineered by anyone, that has cared to post their findings? Jan 04 22:45:46 Or is it fairly transparent? Jan 04 22:47:27 Trying to get a simple get request to execute, anyone see anything that would make this code compile fine and not crash, but not make a request: http://pastie.org/9813087 Jan 04 22:49:15 Its giving me "Fail" Jan 04 22:49:34 Don't ever "catch (Exception e)". Jan 04 22:49:42 Just remove that and figure out what the actual exception is. Jan 04 22:50:17 By saying "catch (Exception e) { // do nothing special }" you're effectively saying "Don't give me any information whatsoever when an exception is thrown". Jan 04 22:50:23 (Such as now.) Jan 04 22:50:30 I should get the stack trace? Jan 04 22:50:33 Yeah. Jan 04 22:50:49 ok so e.printStackTrace Jan 04 22:51:05 Remove "catch (Exception e)" completely. That's terrible code. Jan 04 22:51:20 Either catch something specific or catch nothing. Jan 04 22:51:21 What type of exception should I be catching? Jan 04 22:51:27 drose379: they're lying Jan 04 22:51:48 drose379: Remove it all. Let the exception bubble up and you'll see it in LogCat. Jan 04 22:51:50 what the funk? Jan 04 22:52:12 it wont compile without a catch Jan 04 22:52:57 Oh, fair point. I guess you'll have to catch IOException or something. Jan 04 22:53:02 drose379: is makeRequest called from an AsyncTask.doInBackground ? Jan 04 22:53:17 Its called from a button being clicked Jan 04 22:53:20 i'd just catch all exceptions there. Jan 04 22:53:34 in onClick? Jan 04 22:53:38 funkbox: What makes you say "they're lying" in response to my saying that "catch (Exception e)" is bad code? Jan 04 22:54:15 drose379: with that setup the makeRequest method will block until the HTTP request completes. you want to do it on a different thread Jan 04 22:54:26 TacticalJoke: Because it depends. Jan 04 22:54:57 funkbox: It's almost always a terrible idea. drose379 is new to programming and he's clearly making a mistake by catching *every* Exception. Jan 04 22:55:12 So don't confuse things with "they're lying". You're not helping by doing that. Jan 04 22:55:40 s/programming/Android programming/ Jan 04 22:55:47 is there anyway to set eclipse to not open the gui xml by default? Jan 04 22:55:52 Brb, dinner Jan 04 22:56:03 drose379 don't eat too many exceptions Jan 04 22:56:08 and does anyone actually use the xml gui for anything other than preview layouts? Jan 04 22:56:17 if he's new why not leave the discussion of exception handling to later :) Jan 04 22:57:18 Since he's swallowing exceptions, he can't tell why his code isn't working. So he needs to stop swallowing exceptions. Jan 04 22:57:32 he is handling them Jan 04 22:57:35 I created a new Navigation Drawer Activity in Android Studio. Is the GUI designer supposed to show the activity and the fragment as completely blank? The designer doesn't even show a navigation drawer or anything, just a blank gray rectangle. Jan 04 22:57:40 fair enough Jan 04 22:57:45 Yeah, because setting a TextView's text to "Fail" is clearly handling them... Jan 04 22:57:57 it's more than what I usually do :) Jan 04 22:58:06 g00s: finally got round to watching that rx talk you posted almost a month ago -- buffer() and debounce() -- how cool is that?!?! Jan 04 22:58:26 TacticalJoke reddit has been so flaky, keep getting that page 'too long to load' .. i hope your api client is pretty bombproof :) Jan 04 22:58:35 bankai_au \o/ Jan 04 22:58:46 bankai_au: https://github.com/ReactiveX/RxAndroid Jan 04 22:58:47 Yeah, I've been getting a few of those lately. Jan 04 22:58:59 that's got a nice of really cool thigns. 0.24 just released has this LifecycleSubscription thing Jan 04 22:59:36 i still haven't used anything from rxandroid except the scheduler Jan 04 22:59:44 g00s: I think I'm gonna display a crouton-like thing at the top of the screen for that. Jan 04 22:59:55 "reddit is under heavy load. Please try again in a moment." or something. Jan 04 23:00:04 And it'll possibly be clickable for "reload" functionality. Jan 04 23:00:07 snack right? bottom right ? Jan 04 23:00:32 I was thinking of having it under the ActionBar/Toolbar, but I'm not sure. Jan 04 23:00:40 g00s: check out stuff aroudn https://github.com/ReactiveX/RxAndroid/blob/0.x/rxandroid/src/main/java/rx/android/lifecycle/LifecycleObservable.java .. it basically is automatically binding the lifecycle of your observables to your activity/fragment Jan 04 23:01:18 Where can I get an animation from -> to X ? Jan 04 23:01:30 I have a notification that opens my Activity and sends some data in the intent extras. How can I make it such that only my app can send such an intent? Jan 04 23:01:33 funkbox i remain unconvinced of its value Jan 04 23:01:55 maybe because i haven't rx'd all the things. i have rx is discrete places in my app Jan 04 23:02:05 g00s: it's been pretty darn awesome. we've rx'd a lot Jan 04 23:02:25 i hope we get lambdas soon, my rx looks terrible :) Jan 04 23:05:04 my rx use is pretty specific. i just made observable for bluetooth classic / ble scanning Jan 04 23:05:44 looking at how i can rx more of the ble code without causing too much garbage Jan 04 23:06:53 ActionBarDrawerToggle? Jan 04 23:07:37 TacticalJoke: in java most people don't bother with anything other than using the catch all Exception e all over the place Jan 04 23:08:01 so no need to overreact about that Jan 04 23:08:36 but yes it is better to know the specific exceptions and catch those Jan 04 23:08:44 It's a very common beginner mistake. Jan 04 23:08:57 I've seen pro's do it too Jan 04 23:09:01 Especially in Java because of checked exceptions. Jan 04 23:09:36 TacticalJoke were you suggesting I just do catch (Exception e) and then e.priintStackTrace earlier? Jan 04 23:10:01 lets say you are making a library. imageine most apis need minSdk=16, but a few need minSdk=18. in the library's manifest, which minSdk would you put ? 16 or 18 Jan 04 23:10:15 drose379: I'm guessing you'll have to catch at last IOException. Jan 04 23:10:29 Yeah, theres others too Jan 04 23:10:29 In any case, you could try e.printStackTrace for the moment. Jan 04 23:10:52 Ok, someone said something about putting it in another thread, is that necessary for the request to run? Jan 04 23:11:36 Ooh, if you're using the UI thread then the exception will be NetworkOnMainThreadException. But I'd try printing it in LogCat anyway. Jan 04 23:12:00 UI thread being mainActivity? Jan 04 23:12:06 Or letting it bubble up. Whatever is relevant. Jan 04 23:12:17 Yeah, the one in which activities do their stuff. Jan 04 23:12:33 drose379: Why aren't you using OkHttp? Jan 04 23:12:49 Looks complicated and I just want to get something working Jan 04 23:12:59 Felt like I wasent making any progress Jan 04 23:12:59 Where can you find drawables like the back arrow, check, etc? Jan 04 23:13:03 I think it's probably simpler, personally. Jan 04 23:13:15 Where can I find an example of a simple get? Jan 04 23:13:26 For OkHttp: https://github.com/square/okhttp/wiki/Recipes Jan 04 23:14:15 Check out the asynchronous one. That'll also solve your issue of using the wrong thread for network stuff. Jan 04 23:14:18 I can see the icons on http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7OFZFR1ZOUmFWTEE/style_icons_system_intro.png but not under the android-21\data\res folder Jan 04 23:15:50 Thanks TacticalJoke ill chech that out now Jan 04 23:21:37 TacticalJoke I dont really need a response from the Server yet, just need to send a request to make the script run (just for pracrice) is OkHttp still ok for that? Jan 04 23:26:26 drose379: yes, okhttp is the way to go Jan 04 23:27:04 funkbox do I need to put it in a seperate class? or just a method? Jan 04 23:28:02 drose379: it doesn't matter Jan 04 23:28:16 drose379: either way it's just code -- it doesn't matter where it is, just how it's executed Jan 04 23:28:32 Looks like I cant just import it, do I need to download it? Jan 04 23:29:19 drose379: are you using gradle? Jan 04 23:29:28 Yes Jan 04 23:29:36 add this to your dependencies compile 'com.squareup.okhttp:okhttp:2.2.0' Jan 04 23:29:47 dont know how Jan 04 23:29:52 Im in Android Studio Jan 04 23:30:06 open your build.gradle... Jan 04 23:30:12 Ill figure it out, one sec Jan 04 23:32:35 OK where is build.gradle Jan 04 23:32:43 found Jan 04 23:35:40 Hey Jan 04 23:35:42 funkbox I added it Jan 04 23:35:48 damn, this is driving me mad..... Jan 04 23:36:10 i cant find a usb driver for this asus memopad 7 (me170c) Jan 04 23:42:05 Anyone here work on android games? Jan 04 23:55:45 hey Jan 04 23:59:07 TacticalJoke the e.printStackTrace should print to the logcat right? Jan 05 00:00:18 Im just getting a ton of tprequester W/System.err Jan 05 00:05:45 drose379: Try "Log.e("drose379", e); Jan 05 00:05:51 Then you can filter by "drose379" or whatever. Jan 05 00:06:38 Or you could rethrow: throw new Exception(e); Jan 05 00:06:56 Then it'd halt everything and appear in LogCat. Jan 05 00:07:25 throw new RuntimeException(e); // rather Jan 05 00:08:25 Hello Mobile Developers :) I have a Question Jan 05 00:08:42 Where should I throw the runtime exception? Jan 05 00:08:51 What is the best technology available for a asynchronous connection from a mobile to a server ? Is it websockets ? Jan 05 00:09:04 Because I just know my phone can go to ssh with the client and the 3g connection Jan 05 00:09:11 In the catch block. Jan 05 00:09:13 so that means my operator don't block protocols and ports Jan 05 00:09:24 but I don't know about other operators, and stuff Jan 05 00:09:39 I want to rely on a socket technology that will work with most operators and phones Jan 05 00:10:02 TacticalJoke what will this do? Jan 05 00:10:16 Can someone give me a recmmendation for developing a game? Jan 05 00:10:21 Re-throw the exception, making the stack trace appear in LogCat. Jan 05 00:10:42 catch (Exception e) {RuntimeException(e)} Jan 05 00:11:03 It might be easier to simply say [Log.e("drose379", e);]. Jan 05 00:11:20 i really need some help with this Jan 05 00:11:26 In the catch? Jan 05 00:11:31 It'd be "throw new RuntimeException(e);", if you wanted to re-throw. Jan 05 00:11:33 Yeah. Jan 05 00:11:42 i cant authorize my device for adb, i never get the popup to authorize it Jan 05 00:11:49 why is it in the array block? Jan 05 00:12:00 Oh, ignore that: Log.e("drose379", e); Jan 05 00:12:13 there are no drivers available online for this tablet so ive force installed the google udb drivers Jan 05 00:12:22 And this will log anything that starts with drose379 thats thrown? Jan 05 00:12:26 adb picks up the device but says unauthorized Jan 05 00:12:45 It'll log the exception under the tag "drose379". Jan 05 00:13:15 Do the logs show up in the logcat? Jan 05 00:13:54 Yeah. Jan 05 00:15:11 Ok thats giving me a syntax Jan 05 00:15:40 e string cannot be applied in log? Jan 05 00:16:51 Hmm. Seems you have to use Log.w. Jan 05 00:16:59 what's going on here, why are you throwing new exceptions in catch clauses? are you trying to debug something? Jan 05 00:17:05 The difference? Jan 05 00:17:40 Ok, log.w works, ill build Jan 05 00:17:56 Log.e needs a message argument too. Jan 05 00:18:07 Wouldnt the message be the e? Jan 05 00:18:07 Not sure why Log.w is the only one (other than Log.wtf) that doesn't. Jan 05 00:18:45 Otherwise, you could just use Throwable.toString, I guess. Jan 05 00:19:00 Or maybe not. I've never tried. Jan 05 00:19:14 I think this is giving me a hassle cause im doing networking on the main thread Jan 05 00:19:28 bankai_au: He's trying to figure out what exception is being thrown. I already said he shouldn't catch all Exceptions. :) Jan 05 00:19:38 Probably, drose379. Jan 05 00:19:41 breakpoint and debug Jan 05 00:19:59 Hmm, that's kinda tedious, though. Jan 05 00:20:06 two clicks is too tedious? Jan 05 00:20:21 its literally 3 lines of code TacticalJoke Jan 05 00:20:38 Dont know why its giving me such a hassle ;) Jan 05 00:20:53 but you just said you were doing networking on the main thread, so .... Jan 05 00:21:06 ? Jan 05 00:21:14 drose379: After logging (or whatever-ing) this exception message, just use OkHttp's async API. Jan 05 00:21:20 Problem solved. Jan 05 00:21:25 I am using tbhat Jan 05 00:21:28 that* Jan 05 00:21:29 right now Jan 05 00:24:05 drose379: What's wrong with Log.w("whatever", e)? Jan 05 00:24:26 dont know yet, still building Jan 05 00:24:31 * capella prefers Log.wtf() :) Jan 05 00:24:45 just finished.. lets see Jan 05 00:25:05 Log.wtf would actually be useful here. :) Jan 05 00:25:24 Use it ... that's what it's there for Jan 05 00:26:04 Ok so my logcat only has one line Jan 05 00:26:48 Now it has a ton Jan 05 00:27:26 TacticalJoke none of them have the drose379 tag Jan 05 00:28:13 If it makes it easier to find, you could try Log.e("drose379", "EXCEPTION -------->" e); Jan 05 00:28:28 Log.e("drose379", "EXCEPTION -------->", e); Jan 05 00:28:37 Whats that do? Jan 05 00:28:42 Same but in red and so on. Jan 05 00:28:53 Should there be something in the logcat that starts with drose379: Jan 05 00:29:04 You should create a filter with "drose379". Jan 05 00:29:14 That's the tag itself. Jan 05 00:29:34 Yeah I see what you mean Jan 05 00:29:48 Without doing that how can I pick out whats important? Jan 05 00:30:06 I would add the log.e but my computer is so un-responsive when running AS it would be like a 20 min thing Jan 05 00:30:20 You could use Log.e and set the level to "error". Jan 05 00:30:36 When I search drose379 in the log cat nothing comes up Jan 05 00:30:38 Is typing really laggy? Jan 05 00:30:41 Does that mean the error wasent thrown Jan 05 00:30:44 Yes, it is Jan 05 00:31:26 Have you tried enabling Power Save Mode (or whatever it's called)? Jan 05 00:31:52 Project > Power Save Mode. Jan 05 00:32:10 Yeah, helps a bit but it turns off syntax highlighting and stuff Jan 05 00:32:27 But yeah this logcat is basically useless right now Jan 05 00:33:10 Wanna see the code? its like nothing Jan 05 00:33:13 Sure. Jan 05 00:33:40 A quick hack would be to set that TextView's text to "e.toString()", but I don't think that'll give the full stack-trace. Jan 05 00:34:36 http://pastie.org/9813221 Jan 05 00:35:52 Okay. You're not actually doing a GET request yet. Jan 05 00:36:17 And probably no exception is being thrown. Jan 05 00:36:25 lol, shit Jan 05 00:36:35 I thought build() was doing the execution Jan 05 00:36:44 See the second example on https://github.com/square/okhttp/wiki/Recipes again. Jan 05 00:36:57 The key part is "client.newCall(request).enqueue[...]". Jan 05 00:37:09 I dont need the response part right? Jan 05 00:37:36 The response is the HTTP response from the server. If you're doing an HTTP GET, you probably want to look at the response. Jan 05 00:38:11 Maybe tomorrow, but im literally just sending a request to a page that inserts something to a DB, just to get it working Jan 05 00:38:22 I dont really need a response for it Jan 05 00:39:19 I see. Jan 05 00:39:38 It sounds like a POST thing rather than a GET thing, really. But who knows. Jan 05 00:39:47 Could I just do this: client.newCall(request) Jan 05 00:40:49 I don't think so. I think that simply creates a Call object. Jan 05 00:40:57 The key point is Call.enqueue. Jan 05 00:41:49 what about (request).enqueue() Jan 05 00:42:38 im capturing some data, some properties need to be unique. the data set can be quite big so im thinking i want to do this in the database engine rather than do anything in memory in java land. is it better to have a unique contraint on the columns and capture the sqlexception or do a lookup call before attempting the write? Jan 05 00:43:49 "client.newCall(request)" creates a Call object based on 'request'. "enqueue()" actually sends the request. Jan 05 00:43:57 It sends it asynchronously. Jan 05 00:44:28 does enqueue require a responseCallback passed to it? Jan 05 00:44:40 I think so. Jan 05 00:44:48 Me too Jan 05 00:45:48 God, that was confusing as heck. I couldn't figure out how Arrays.asList was saying "return new ArrayList(array);", because ArrayList doesn't have that constructor. Then I realised that it's referring to its own (private) type that happens to be called ArrayList. Jan 05 00:46:53 Yeah, I find java alot more confusing then php alot of the time Jan 05 00:47:37 You've upgraded in languages. :) Java is way, way better than PHP. Jan 05 00:48:11 a lot = two words... and 'than', not 'then' -- different words Jan 05 00:49:59 bankai_au really dude? Jan 05 00:51:04 yep, but don't feel bad, common mistakes for some reason Jan 05 00:51:32 w/e Jan 05 00:53:09 TacticalJoke thanks for the help Jan 05 00:53:16 Im gonna grab some ice cream Jan 05 00:53:20 :) Jan 05 00:54:58 is it bad to put a RelativeLayout inside a CardView? Jan 05 01:01:37 no Jan 05 01:12:30 http://www.theguardian.com/technology/2014/dec/17/time-will-tell-only-1-of-britons-own-a-smartwatch Jan 05 01:12:58 glad i didn't spend time doing a wearable component ;) Jan 05 01:17:27 hi all, silly question. I'm using Android Studio, and trying my damndest to import example projects into it. specifically, https://android.googlesource.com/platform/packages/apps/DeskClock so I can run it on my emulator, but nothing ever seems able to build. This is my first rodeo. Jan 05 01:18:09 what's the error Jan 05 01:19:52 hi bankai_au. there are so many. i'm not even sure if it's possible to import these projects into Android Studio Jan 05 01:20:50 i ran: git clone -b lollipop-release https://android.googlesource.com/platform/packages/apps/DeskClock Jan 05 01:21:10 i'd say you just need to add the gradle stuff Jan 05 01:21:10 tried to "Import a non-Android Studio Project" into AS, using that dir Jan 05 01:21:24 i'm not sure how to do that. any pages i can reference? Jan 05 01:21:58 stuff like Error:(22, 31) error: package android.support.v4.view does not exist Jan 05 01:22:27 https://developer.android.com/tools/building/configuring-gradle.html take a look at that Jan 05 01:23:23 alright. Jan 05 01:24:56 do you think i have dependencies that aren't explicitly listed in my project build.gradle? Jan 05 01:26:22 you'll need to get gradle to pull in v4 support libs for you Jan 05 01:26:29 i see. Jan 05 01:29:05 bankai_au a la https://developer.android.com/tools/support-library/setup.html? Jan 05 01:31:24 yep Jan 05 01:32:04 strange. it's saying dependencies { ... compile "com.android.support:support-v4:18.0.+"} Jan 05 01:32:27 but gradle says Error:(8, 0) Gradle DSL method not found: 'compile()' Jan 05 01:34:08 nvm, stackoverflow Jan 05 01:34:10 http://stackoverflow.com/questions/24730117/unsupported-gradle-dsl-method-found-compile Jan 05 01:34:23 literally the greatest invention known to man Jan 05 01:35:09 what about fire? electricity? modern medicine? pizza rolls? Jan 05 01:36:16 nope. stackoverflow Jan 05 01:36:49 * bankai_au looks up "pizza roll" Jan 05 01:37:37 they look so unhealthy they have to be good Jan 05 01:38:23 bankai_au it depends what manufacturer made them. Jan 05 01:38:27 are you in Australia? Jan 05 01:38:31 ya Jan 05 01:38:37 nice, was just in melbourne in march Jan 05 01:38:49 you poor thing :( Jan 05 01:38:55 quite the opposite :) Jan 05 01:39:28 If I have a large item (of text) in my ActionBar spinner, the dropdown is huge (but only the dropdown is huge). Jan 05 01:39:38 I can't seem to figure out how to avoid this. I'd like the dropdown to be only as large as the ActionBar spinner. Jan 05 01:41:08 I'm gonna move to Toolbar when I can, so this is just a temporary issue. Jan 05 01:41:13 But it still bugs me. :) Jan 05 01:41:18 Well, I *hope* it's a temporary issue. Jan 05 01:41:40 (I'm talking about width, not height, BTW.) Jan 05 01:43:49 I have a 5x5 logo that I want to use as my one and only ic_launcher.png Jan 05 01:44:59 TacticalJoke: there's a getDropDownView() in where you can adjust stuff for the drop down view Jan 05 01:45:01 I would like larger sizes to be generated on-the-fly using Nearest-Neighbor interpolation. Jan 05 01:45:30 Yeah. I guess I'd have to calculate the size of the spinner at run-time. Hmm. Jan 05 01:45:57 I guess my question boils down to this: How can I make an ActionBar spinner's dropdown width the same as the ActionBar spinner width no matter what. Jan 05 01:46:06 (No bigger, no smaller.) Jan 05 01:47:24 It seems that the spinner tries to be helpful in showing a wider dropdown when items are too big. But this is annoying for my app. Jan 05 01:48:07 bankai_au you still around? i've hit another dead end Jan 05 01:48:35 g00s do you think there exists no 'killer app' function for wearables? Jan 05 01:48:53 i've added support-v4 as a dependency to the project, but it's bitching that the "import android.support.v4.widget.PopupMenuCompat;" cannot find symbol class PopupMenuCompat Jan 05 01:49:06 i can see it's not listed in the tree...but why is it not? Jan 05 01:50:04 Someone should invent a "Go Go Gadget" function. Jan 05 01:50:30 lasserix_ watches are fashion. there is no killer app for fashion except semiotics Jan 05 01:50:43 just my opinion ;) Jan 05 01:51:10 maybe in a few years when battery tech has gone much further Jan 05 01:52:52 except semiotics? Jan 05 01:54:12 a fashion statement is about identity and appearance, and what you mean to communicate to someone else about that Jan 05 01:54:46 so strike a pose and vogue! Jan 05 01:55:04 haha, don't forget to flash your watch heh Jan 05 01:55:49 Perhaps the ultimate app would make your watch look like a Rolex. Jan 05 01:56:34 we have a million of those you can buy off the street for $10 Jan 05 01:57:47 a 3d screen that disguises the watch is a cool idea Jan 05 02:00:22 g00s: you should write a 'Hot or Not' app Jan 05 02:01:26 people's cameras capture faces automatically and upload them to get judged by others using the same app Jan 05 02:02:22 Does it let them spend two hours in Photoshop first? :D Jan 05 02:02:35 Perhaps it could open an image editor for them. Jan 05 02:04:37 at first I was joking, but now that I think of it, hey maybe it could catch on Jan 05 02:05:01 It might. lol Jan 05 02:05:02 people love to play hot or not, I know that Jan 05 02:06:28 ya i dont use godaddy, ridiculous fees and my pages load slow. I use these guys, lots of free bonuses and I never once had any issues for the past 3 yrs. My host is http://www.arvixe.com/9429.html Jan 05 02:07:44 oops, it already exists https://play.google.com/store/apps/details?id=com.hotornot.app&hl=en Jan 05 02:07:50 i was reading that the watch makers are ussing takedowns for faces that look like their products Jan 05 02:07:57 *issuing Jan 05 02:08:59 can't think of nothin new around here I tell ya! Jan 05 02:09:40 "Omega, Fossil, Armani, Michael Kors, Tissot, Swatch and Mondaine among others sent cease and desist notices to sites and developers offering faces thought to infringe on their copyright without permission in November." Jan 05 02:09:59 another way to get kicked from Play :D Jan 05 02:10:35 I'll make an app eventually that steals other watches faces by taking a picture of them Jan 05 02:11:45 YJLTG: did you sync gradle when you added that entry to the build.gradle ? Jan 05 02:11:55 yeah. chekc this out bankai_au Jan 05 02:11:59 https://code.google.com/p/android/issues/detail?id=56178 Jan 05 02:30:46 Aww, man. Seems that I can't set click listeners myself if I'm using a spinner in an ActionBar. Gotta use the setListNavigationCallbacks thing. :/ Jan 05 02:30:57 That makes my code way less clean. Jan 05 02:31:26 My adapter is the expert on what position means what. Now that knowledge is gonna have to extend to the Activity itself. Jan 05 02:33:59 TacticalJoke: do like me and use just a LinearLayout instead of a action bar or tool bar Jan 05 02:34:40 I'd consider that but then I'd lose the menu functionality. Jan 05 02:36:03 you can custom stick the menu in there still Jan 05 02:36:52 How would that work? With a button and some kind of dropdown? Jan 05 02:37:09 yeah Jan 05 02:37:15 I just had a crazy idea -- I can define my ActionBar.OnNavigationListener in my adapter itself. Jan 05 02:37:27 shmooz: Is it hard to position the dropdown? Jan 05 02:37:43 you can even make it a spinner and show the 3 dots when it's closed and show the dropdown populated with options Jan 05 02:38:05 TacticalJoke: no it should be easy to position Jan 05 02:38:33 TacticalJoke whats the matter with spinner in Toolbar ? Jan 05 02:38:49 TacticalJoke: you can adjust it in style.xml and in code with things like setDropDownWidth(... Jan 05 02:39:07 g00s: Yeah, I'm planning to move to Toolbar. Jan 05 02:39:51 shmooz: So it'd be implemented with a Spinner? Jan 05 02:40:33 TacticalJoke: yes you'd have to implement different views for the getView and getDropDownView in it's adapter Jan 05 02:40:55 so that getView only shows the 3 dots Jan 05 02:41:23 Right. Interesting. Jan 05 02:41:26 and getDropDownView shows the options Jan 05 02:41:28 Does that look as good as a real menu? Jan 05 02:41:43 TacticalJoke: I implemented it in the app sent you Jan 05 02:42:11 the very left top corner where it shows video or audio icon that you can switch Jan 05 02:42:22 Ah, true. Looks legit. Jan 05 02:42:52 the getView is showing icons only and getDropDownView is showing the text as well as the icons Jan 05 02:46:24 g00s: Just wondering -- would I be able to set click-listeners for the individual views if I used a Toolbar and a Spinner? Jan 05 02:46:26 newb question: what is the official android ui language called? why can I find tons of swing videos on youtube for tuts but barely any android ui tuts Jan 05 02:46:36 Or would I still have to use the item-selected thing. Jan 05 02:47:30 kuyo: I don't think the UI framework has a name. Jan 05 02:47:34 sorry, I just d/c'd a second if anyone answered me before I joined back >< Jan 05 02:47:55 kuyo there is no name but is leveraged in xml Jan 05 02:47:55 Though there are (searchable) component names such as "activity", "fragment", etc. Jan 05 02:48:00 tacticaljoke: what should I search for tuts then? just use java swing? what sdk should I use for an ide? say eclipse? Jan 05 02:48:01 and there are lots of videos Jan 05 02:48:19 Android's UI framework is totally different from Swing. Jan 05 02:48:33 kuyo "android layouts / custom view / listview / gridview / imageview / linearlayout / relative layout/ etc" Jan 05 02:48:44 You should probably use Android Studio. Jan 05 02:48:50 I'm more familiar with AWT Jan 05 02:48:54 And JDK 7 or 8. Jan 05 02:49:25 AWT was more backward compatible and ran a little bit smoother, back in the 90 Jan 05 02:49:30 90's Jan 05 02:51:54 android is pretty much J2SE with AWT and Swing replaced with the android Views Jan 05 02:52:32 and a few other things I guess Jan 05 02:57:10 how could I program android with eclipse rather than android studio Jan 05 02:57:59 kuyo: find the getting started page for that question Jan 05 02:58:11 and follow the instructions step by step Jan 05 02:59:08 What method should I use to return a directory that I can write text files to that is visible to the user if they use es file explorer or something? Jan 05 02:59:26 kuyo don't Jan 05 02:59:52 okay thank you **** ENDING LOGGING AT Mon Jan 05 02:59:58 2015