**** BEGIN LOGGING AT Fri Feb 27 02:59:58 2015 Feb 27 03:00:15 how about extending edittext for this capability, and use it across the app. Feb 27 03:01:15 so, I'm reasonably certain it's _possible_ to patch things to make it work. Or add other in-code modifications. but rich text pasting seems likely to break LOTS of things, it seems like there's probably something simpler that I'm missing. Feb 27 03:57:30 Hi! How do people usually use emojis in popular Android apps? Do they actually type the whole thing ie. `:smile:`? Feb 27 03:57:43 Or does some sort of helper appear (like on GitHub) once you start typing `:`? Feb 27 03:58:22 Currently working on http://jsfiddle.net/frank_o/d75tmtod/2/ but not sure how to make it usable for my mobile users. Feb 27 04:13:49 What risks do I run if I subscribe to my Otto event bus in my activity's onCreate and onDestroy instead of onPause and onResume? Feb 27 04:14:09 Right now, my activity subscribes to 1 event, which when published creates a fragment transaction Feb 27 04:14:34 typically things should be subscribed / unsubscribed in onStart / onStop, whether broadcast receiver, ContentObservers, etc Feb 27 04:15:07 service binding also in onStart/onStop Feb 27 04:18:37 ok that will work for me Feb 27 04:29:41 frank_o: usually I see emoji keyboards (4.4+ has one built in), or sometimes apps that make it easy to copy emoji (and things like (╯°□°)╯︵ ┻━┻ ) Feb 27 04:30:28 groxx: nice! emoji keyboards, really? what like part of android or part of the app? Feb 27 04:31:07 frank_o: if you search for "emoji" on the play store, there's like a million of them: https://play.google.com/store/search?q=emoji Feb 27 04:31:29 also, the stock google keyboard on 4.4 and newer has an emoji mode Feb 27 04:31:48 whether or not they have the google keyboard depends on the device / carrier though Feb 27 04:32:21 ah yeah sorry i see you mentioned that Feb 27 04:32:26 hmm Feb 27 04:32:34 very interesting.. Feb 27 04:32:42 thanks a lot for sharing groxx :P Feb 27 04:33:21 why the hell is miley cyrus popping up under emojis :S Feb 27 04:33:26 ol Feb 27 04:33:28 lol Feb 27 04:33:58 I try not to ask questions like that. I don't really want to know the answer D: Feb 27 04:34:39 hahah Feb 27 04:35:39 frank_o: fwiw iOS 8 now has a whole keyboard plugin system thing like Android's, so newer iOS users will also be able to type them natively Feb 27 04:36:00 hi Feb 27 04:36:12 anyone up who can give me advice Feb 27 04:36:33 ¯\_(ツ)_/¯ Feb 27 04:37:38 ( ͡° ͜ʖ ͡°) Feb 27 04:38:11 groxx: nice. i guess this means trouble for me though, if im gonna do something like http://jsfiddle.net/frank_o/d75tmtod/3/ i'd probably have to put in checks to see whether they already have one of these emoji keyboards.. Feb 27 04:38:57 I am starting android programming my main goal is to learn cardboard sdk. my dream is to make a side by side launcher that is dividing the view of the home screen into two equal halves Feb 27 04:39:11 will this be possible or is it a pipe dream Feb 27 04:42:42 frank_o: personally, I wouldn't try to detect it. you probably can't, in all cases. just add a "show emoji keyboard" button or something, and keep it hidden by default. Feb 27 04:43:22 hmmm Feb 27 04:43:25 that can be done yeah Feb 27 04:43:33 linuxuz3r: hmmmm. to do it at all: probably doable. to do it really smoothly: dunno. possible pipe-dream, for a beginning thing. how much programming have you done before? Feb 27 04:43:40 "show emoji dropdown" for desktop and "show emoji keyboard" for mobile -- excellent idea Feb 27 04:43:54 yep, because desktop tends to have crappy emoji inputs :) Feb 27 04:44:20 i know c c++ java and linux but i dont know anything about android Feb 27 04:44:54 frank_o: personally, if yours allows searching, I might use it in all cases. sometimes faster than any keyboard, if I don't know exactly where the character is. so it's not something I'd actually _hide_ anyway. Feb 27 04:45:32 linuxuz3r: a bunch of c/c++/java, or just a little? though that's encouraging :) Feb 27 04:45:48 i would say intermediate Feb 27 04:45:58 to advance Feb 27 04:46:24 I just spent woo Feb 27 04:46:26 oops Feb 27 04:46:29 woo, I mean Feb 27 04:46:32 linuxuz3r: I don't know exactly how launchers build their list of app icons, but you can read the source for some. I think http://androidxref.com/5.0.0_r2/xref/packages/apps/Launcher2/ is the current one on stock android? Feb 27 04:46:43 I just spent $40, and a rom flash later I have a galaxy s2, the fastest gingerbread device in ze world Feb 27 04:47:28 linuxuz3r: beyond that, read the high-level introductory stuff on developer.android.com because it's pretty much all important and it's what lots of newbies get stuck on because they don't read it. Feb 27 04:47:59 groxx: good call there.. definitely gotta include searching Feb 27 04:48:33 rul llamas run! http://digg.com/video/llama-chase-video-arizona-llamapalooza Feb 27 04:48:47 does anyone knows how to show utf-8 characters in gcm notification Feb 27 04:48:51 frank_o: I just hate hunting for e.g. the camera emoji, when I could filter it with "cam" and find it already. figuring out useful words for them instead of the official UTF descriptions can be a challenge though :) Feb 27 04:49:15 groxx: oh man Feb 27 04:49:15 ServerCrash: GCM notifications don't "show" anything, but I assume you mean notifications on the device? it'll only work on 4.2+. Feb 27 04:49:19 lots of great ideas up in the air right now !! Feb 27 04:49:29 groxx: i think https://github.com/brianreavis/sifter.js would be perfect for that.. Feb 27 04:49:52 but yeah sounds extremely usable.. Feb 27 04:50:06 groxx ya i mean when we recieve a data and show notification to user Feb 27 04:50:21 well GCM push works for 4.0+ atleast for me Feb 27 04:50:51 ServerCrash: yeah, but below 4.2 there's no built-in emoji capabilities, so you might just get "[x]" characters Feb 27 04:51:31 but issue is that if i try to show a utf-8 encoded data in the notification, it shows up as some numberic values followed by &; Feb 27 04:51:43 like 2323&; blah blah blah Feb 27 04:52:42 to me it looks like some sort of encoding and decoding issues, i can see that notification data perfectly in webview containter inside my app Feb 27 04:53:18 ServerCrash: hmm. I'm under the impression that Java can decode (valid) UTF-8 from the GCM message, but I don't know if I've actually tried. Feb 27 04:54:02 groxx, yups that was my impression too..until someone came up with chinese characters and Hindi characters Feb 27 04:54:22 ServerCrash: is there a database involved? Feb 27 04:55:11 yes Feb 27 04:55:27 i store the data into db and then show it up in a webview Feb 27 04:55:34 *sqlite db Feb 27 04:55:47 hey Feb 27 04:56:02 how to generate waveform of audio file in real time Feb 27 04:56:09 not entirely sure what sqlite does, but with mysql at least you need to explicitly enable 4-byte UTF-8 support, or it truncates at 3, which breaks a lot of characters: http://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html Feb 27 04:56:42 well i show notification before storing into DB Feb 27 04:57:07 and also i am not facing issue in showing the data from DB into WebView Feb 27 04:57:15 ah, right Feb 27 04:57:19 hm Feb 27 04:57:52 so probably the Notification Compat builder needs some sort of encoding done Feb 27 04:58:50 my guess is actually that the webview is detecting the encoding, instead of showing whatever it's encoded as in java Feb 27 04:58:59 not certain about that though :) googling. Feb 27 05:00:14 i tried to do utf-8 decoding too, but didnt work :( Feb 27 05:00:29 how to generate waveform of audio file in real time Feb 27 05:00:32 anyone ? Feb 27 05:02:09 ServerCrash: hm :( not finding anything conclusive, though I suppose at worst you could base-64 encode the text, send via gcm, and decode it on the receiving side. Java is at least _capable_ of handling those characters (I just dove down this rabbit hole recently. they become CESU-8 surrogate pairs, if you feel like reading encoding specs.) Feb 27 05:03:02 ServerCrash: but, just to double-check, you're on 4.2 or newer? Feb 27 05:03:21 groxx: Thanks, but i thought this was basic, and UTF-8 handling must have been part of it. Feb 27 05:03:40 groxx: yes i tested from 4.0 to 5.0 :D Feb 27 05:03:43 all have same issue Feb 27 05:04:27 either the data that i am sending is not properly encoded to show in android native , but shows up perfectly on webview Feb 27 05:06:03 fwiw webviews are pretty permissive. might be worth double-checking the data, e.g. by dumping the bytes of the message and comparing to e.g. http://www.fileformat.info/info/unicode/char/1F4F7/index.htm Feb 27 05:06:23 i guess gcm has fixed it https://github.com/kurthuwig/gcm/commit/d37f4d1c37ed8deaf1a161ca7b881c1d843f80df Feb 27 05:06:32 have to check my encoding and decoding Feb 27 05:08:12 ServerCrash: fwiw that commit covers the sending side, not the receiving, as far as I can tell Feb 27 05:08:38 so if you're sending messages from android to other androids, that might apply, but it might not if the message is coming from your server / something. Feb 27 05:09:28 groxx : ya i thought if someone has done for sending, then there must have been a fix on receiving side too :D..but yes need to check it from WebServer to Andorid scenario Feb 27 05:09:48 ☺😊😀😁😂😃😄😅 Feb 27 05:09:54 🔰💄👞👟👑👒🎩🎓 Feb 27 05:10:04 works fine Feb 27 05:19:36 Microsoft's new web rendering engine: http://www.reddit.com/r/programming/comments/2x9bh1/a_break_from_the_past_the_birth_of_microsofts_new/ Feb 27 05:20:36 * groxx still hopes Servo will end up awesome Feb 27 05:21:19 TacticalJoke my main man Feb 27 05:21:30 have you used rxJava lately? Feb 27 05:21:42 public static void tacticalJob(String[] args) Feb 27 05:21:48 joke* Feb 27 05:22:02 CedricBeust, tacticleJob makes more sense in this case Feb 27 05:22:03 :p Feb 27 05:22:15 i expect valid answers, not funnies. Feb 27 05:22:27 kevel: Unfortunately ,I know nothing about rxJava. Feb 27 05:22:29 , * Feb 27 05:22:37 ish. Feb 27 05:22:52 kevel: but programming is fun! Feb 27 05:23:01 groxx servo might be here in firefox 78, 79 ? Feb 27 05:23:02 Ask your RxJava questions, happy to answer to the best of my meager abilities Feb 27 05:23:12 groxx: Is that related to their rewriting of Firefox in Rust? Feb 27 05:23:16 groxx: yes its a pipe dream Feb 27 05:23:35 g00s: probably. would be interesting to see it on mobile devices though, since their single-threaded performance tends to suck Feb 27 05:23:49 i dont wanna create a custom rom to have a different look and feel of cardboard ui Feb 27 05:24:06 TacticalJoke: a parallel rendering engine more than rewriting firefox. the goal isn't to _replace_ the existing rendering, it's to see if a parallel engine is even feasible. Feb 27 05:24:09 JakeWharton: Still from yesterday, I'm still trying to create a mechanism which that I can register observers. When API calls are done, the observers receive the success/failure of the call. The subscriptions should never end. One request per API can be done at a time. Feb 27 05:24:09 maybe firefox 70 if yahoo helps more Feb 27 05:24:19 Ah, okay. Interesting. Feb 27 05:24:20 JakeWharton: What ive done thus far https://gist.github.com/kevelbreh/1cff6d4057f360affcee Feb 27 05:24:38 kevel: Use Subjects instead of Observers, they are basically RxJava's version of an event bus Feb 27 05:24:46 Problem #1, the publisher completes/errors and no longer emits data Feb 27 05:24:55 CedricBeust, i am Feb 27 05:25:01 except problem #1 Feb 27 05:25:05 is wrecking me right now Feb 27 05:25:43 kevel you dont need Feb 27 05:25:44 .observeOn(AndroidSchedulers.mainThread()) Feb 27 05:25:45 .subscribeOn(AndroidSchedulers.mainThread()) Feb 27 05:25:50 in times where you would set layout_width or layout_height to 0dp, for example when layout_weight is set in a LinearLayout, or both layout_above and layout_below are set in a RelativeLayout, wouldn't it be more logical to allow the attribute to not exist? but layout_width and layout_height are always required Feb 27 05:26:00 ye i know, i was derping around (learning rxJava) Feb 27 05:26:05 its like day #3 Feb 27 05:26:46 hm, EndlessObserver - looks kinda weird Feb 27 05:26:58 duncannz: I would kinda think that, but alas 'tis not reality Feb 27 05:26:58 duncannz: Yeah. Feb 27 05:27:20 ok at least I'm not missing something :) Feb 27 05:27:27 g00s, was trying different things out which didn't really work as intended Feb 27 05:27:29 In the universe in which that is the case, I also own a Ferrari. Feb 27 05:27:35 g00s, any ideas? Feb 27 05:27:47 Okay, a few Ferraris. I try not to boast about it. Feb 27 05:27:50 TacticalJoke: in the same universe, I think I'm on a Big Wheel. Feb 27 05:28:27 A tricycle? Feb 27 05:29:24 <_genuser_> I need to store bytes in a dynamic list. So trying to use ArrayList, however that doesn't allow primities. any suggestions? Feb 27 05:29:36 _genuser_ look at okio Feb 27 05:30:10 TacticalJoke: no mere trike. one with a honkin-big front wheel. Feb 27 05:30:25 http://images.gizmag.com/gallery_lrg/big_wheel_drift_trike-4.jpg Feb 27 05:30:26 obv I'd be the coolest kid on the block Feb 27 05:30:26 <_genuser_> also is using ArrayList any better than just dynamically creating a new one yourself and copy over the data? Feb 27 05:30:57 _genuser_: BTW, you know about Byte, right? Feb 27 05:31:02 Just wondering. Feb 27 05:31:16 <_genuser_> TacticalJoke: nope, didn't. So Byte is objectified byte, eh? Feb 27 05:31:40 Yeah, basically: http://developer.android.com/reference/java/lang/Byte.html Feb 27 05:32:07 This summary is actually nicer: http://docs.oracle.com/javase/7/docs/api/java/lang/Byte.html Feb 27 05:32:10 that seems slightly awful Feb 27 05:32:26 <_genuser_> g00s: is that lawn mower powered trike? Feb 27 05:32:37 something like that :) Feb 27 05:32:49 I don't know whether that is a good idea, yeah. It seems like it could be hugely wasteful. Feb 27 05:32:58 hugely Feb 27 05:33:05 <_genuser_> TacticalJoke: what would? Byte? Or the trike thing? Feb 27 05:33:08 TacticalJoke: too late, it all went down the pooper with ArrayList Feb 27 05:33:12 Having a large list of Bytes. Feb 27 05:33:31 <_genuser_> TacticalJoke: yeah, that's what I was going ot say next, what's the penalty in using this. Feb 27 05:33:42 Byte in the ass Feb 27 05:33:54 <_genuser_> basically, I have a List. In the end, I need to combime the entire thing into a single byte[]. Feb 27 05:33:59 <_genuser_> array concat basically. Feb 27 05:34:18 <_genuser_> so I thought why don't I just do List..... and that's where my thought is right now. Feb 27 05:34:33 _genuser_ did you look at okio? seems to do that Feb 27 05:34:48 <_genuser_> g00s: reading the github main page right now. Feb 27 05:34:53 or NIO ByteBuffer Feb 27 05:34:58 Buffer and ByteString are your friend Feb 27 05:35:10 _genuser_: I'm guessing it'll be several bytes of overhead for each instance. Feb 27 05:35:14 <_genuser_> g00s: I'm still curious if it copies all the crap around in teh backgroudn everytime it resizes the array. 'coz that would end up wasting all the space anyway. Feb 27 05:35:26 Which is kinda unexpected when the class is called "Byte". Feb 27 05:35:28 Buffer is very efficient in Okio Feb 27 05:35:29 JakeWharton, could you please help me out? Feb 27 05:35:51 With what? Feb 27 05:36:06 Mobile, drinking. Feb 27 05:36:35 JakeWharton: https://gist.github.com/kevelbreh/1cff6d4057f360affcee Feb 27 05:36:43 <_genuser_> JakeWharton: so Buffer in okio: is this going to essentially help me creating an dyanmically array of bytes in an efficient manner. instead of me implementing all the dynamic array crap in the code? Feb 27 05:36:45 subscriptions close on error/completion. I donnt want this. Feb 27 05:36:59 subscriptions should _never_ close Feb 27 05:37:11 <_genuser_> *gasp* drinking! I didn't think JakeWharton left this computer desk. Feb 27 05:37:14 According to something I'm reading, an empty Object on Dalvik takes 16 bytes. Is that right? Feb 27 05:37:17 That's pretty big. Feb 27 05:37:19 so either i have fault on the publisher, or my observers Feb 27 05:37:25 TacticalJoke: se Feb 27 05:37:30 Same o. Hotspot Feb 27 05:38:01 Where do you think things like length is stored? Feb 27 05:38:34 <_genuser_> JakeWharton: so according to docs, Buffer is Feb 27 05:38:41 <_genuser_> just a FIFO queue? Feb 27 05:39:18 <_genuser_> is says there's no obligation to manager positions, limits. However, can I access specific positions, such as bytes 18-200 ? Feb 27 05:39:19 For bytes Feb 27 05:39:27 Sure Feb 27 05:39:53 <_genuser_> ok, so then I suppose my codebase will be 30% square code, and lipstick on top that I wrote. :D Feb 27 05:40:11 he's calling square a pig! Feb 27 05:40:16 kevel i'd read this carefully http://stackoverflow.com/questions/27147179/rxjava-why-same-transformations-are-recomputed-for-each-observables-branch Feb 27 05:40:21 <_genuser_> who knows by the end of this project it might be 50% Feb 27 05:40:28 shmooz: pigs make bacon Feb 27 05:40:43 <_genuser_> eh, not a pig. just that the "wrapping" is mine. the work is done by square (or JakeWharton as we all know it). Feb 27 05:41:16 <_genuser_> mmmm bacon Feb 27 05:42:17 JakeWharton: you might as well write your own mobile OS Feb 27 05:42:27 JWOS Feb 27 05:42:37 He could fork Android and fix all the issues. Then we could all stop complaining. Feb 27 05:42:45 Though we'd have to complain about low adoption rates and stuff. Feb 27 05:42:47 <_genuser_> he's the coreutils to google's kernel Feb 27 05:43:13 i dont think even JakeWharton can fix android, sorry :) Feb 27 05:43:16 Then again, I guess we'd get adopters fairly quickly. Feb 27 05:43:41 <_genuser_> well, google would buy him out. will 1billion dollars. then they'd hand it over to lazy programmers. Feb 27 05:43:44 g00s, thanks. I'll give it a read now. Feb 27 05:43:55 <_genuser_> who would google how to do something on stackoverflow and put it in the new os. it would go to crap again. Feb 27 05:44:55 i wonder if this new ads in Play Store is because Google is having hard time monitizing android Feb 27 05:45:07 I really dislike the sound of this whole thing. Feb 27 05:45:17 google forgot to buy loop pay Feb 27 05:45:24 Too many apps are ruined by ads already; it's just gonna encourage it. Feb 27 05:45:30 and apple is dominating in the payments now Feb 27 05:45:48 Nobody cares about loop pay Feb 27 05:46:32 <_genuser_> JakeWharton: based on most of your stuff, I think memory management is main main forte. sounds like your writing mem mgmt code. Feb 27 05:47:05 Okio is very focused on that Feb 27 05:47:15 Reusing buffers Feb 27 05:47:27 Liked list propertied Feb 27 05:48:04 <_genuser_> nice. Feb 27 05:48:44 a hard time monetizing android? lel Feb 27 05:49:05 <_genuser_> laughing extremely loud? Feb 27 05:49:08 well they are getting licensing fees for Play Feb 27 05:49:42 wasn't it that MS makes more money from android than google :) Feb 27 05:50:01 yes because of linux licences they own Feb 27 05:50:30 pfn, is this is correct, android oems ahave to be hurting http://blogs.strategyanalytics.com/WSS/post/2015/02/26/Android-Captures-Tiny-11-Share-of-Global-Smartphone-Profit-in-Q4-2014.aspx Feb 27 05:50:48 and if oems are hurting , then less $$$ for licensing, they go elsewhere, etc Feb 27 05:51:37 You know we live in a strange world when Microsoft makes money from a Google product thanks to Linux Feb 27 05:53:00 the challenge google is facing is that revenue from organic search web ads are declining, for a while Feb 27 05:53:08 people are going straight to apps Feb 27 05:53:18 they also can't monotize youtube either Feb 27 05:53:45 yeah they made just enough to keep the servers running Feb 27 05:55:29 "posted revenue of about $4 billion in 2014" , "didn’t contribute to earnings. After paying for content, and the equipment to deliver speedy videos, YouTube’s bottom line is “roughly break-even,” Feb 27 05:56:17 It's a bitch of a market to be in Feb 27 05:56:43 competition is good for evolution, screw making money Feb 27 05:57:10 now they have to lose money to win Feb 27 05:57:21 to win users Feb 27 05:57:34 Google has been doing that for more than a decade Feb 27 05:57:39 They're good at it Feb 27 05:57:56 And their moonshot projects makes them infinitely more likely to multiply their earnings than Apple IMO Feb 27 05:58:30 yeah ... apple ... whats after the watch :| oh cars in 10 years Feb 27 05:58:50 apple knows how to profit Feb 27 05:58:58 Apple is going to become even more filthy rich than they are today by selling boring phones and tables for the next decade Feb 27 05:59:02 they don't care about being the biggest Feb 27 05:59:17 Oh they care a lot about being the biggest, they just realized they won't be Feb 27 05:59:44 they got the upper class yuppie crowd Feb 27 05:59:45 And I'm kinda proud to have been a part of what stopped them :) Feb 27 06:00:13 interesting that apple captures such a huge profit share but such a tiny market share Feb 27 06:00:18 their tablet sales are declining i think Feb 27 06:00:19 for market share the figures are about opposite Feb 27 06:01:36 for areas requiring real innovation, their highly integrated approach works well Feb 27 06:01:37 <_genuser_> errr, interesting http://www.okio.se/ Feb 27 06:05:47 The first image I saw looked like something pornographic. Feb 27 06:06:11 I think it's a hand. Feb 27 06:06:37 but it could also be ... Feb 27 06:06:37 that's a horse Feb 27 06:07:02 <_genuser_> yeah, I was like wth is that? Feb 27 06:07:18 Okay, yeah, a horse. Feb 27 06:07:26 Cannot unsee now. Feb 27 06:07:34 use the horse luke! Feb 27 06:07:40 <_genuser_> ugh, I gotta build my own okio? isn't there a built jar. Feb 27 06:07:46 * _genuser_ throw a tantrum Feb 27 06:07:59 _genuser_ its not in maven central ? Feb 27 06:08:03 There is a jar. Feb 27 06:08:06 https://github.com/square/okio Feb 27 06:08:26 <_genuser_> g00s: maven, I avoid it like the plague. I do things 1995 style. download and link the lib. Feb 27 06:08:35 .. Feb 27 06:08:43 so pull the jar from maven Feb 27 06:08:52 There is a link to the jar on that page. Feb 27 06:09:04 Jarjarjarkar Feb 27 06:09:08 "Jar" is such a weird word. Makes me feel like a reggae person saying it. Feb 27 06:09:10 <_genuser_> groxx: I don't know what maven is or how it works, honestly. my best understanding it it's somekinda of repo. Feb 27 06:09:15 http://search.maven.org/#artifactdetails|com.squareup.okio|okio|1.2.0|jar Feb 27 06:09:25 craziest-ass URL I've seen in a while D: Feb 27 06:09:29 <_genuser_> TacticalJoke: thanks, I just saw it. :) Feb 27 06:09:54 TacticalJoke: I assume you've seen https://code.google.com/p/jarjar/ ? Feb 27 06:10:06 when one jar just isn't binksy enough Feb 27 06:10:37 <_genuser_> so I should read up on maven, I see. I didnt' think it had so many fans. Feb 27 06:10:42 Ah, hadn't seen that. Feb 27 06:10:49 _genuser_: You should use Gradle. Feb 27 06:11:06 yeah, gradle > maven, easily Feb 27 06:11:10 _genuser_: JakeWharton obviously <3s maven to the max: https://github.com/square/picasso/commit/6d74a4ecc55757c8de0046c0a5566a04fa8653ee Feb 27 06:11:18 but the maven central repo is king :) Feb 27 06:11:23 _genuser_, use gradle, be done Feb 27 06:11:42 <_genuser_> haven't moved to AS yet. my current project is in eclipse. Feb 27 06:11:56 <_genuser_> but I do have a functioning AS installation. Feb 27 06:12:14 i gotta say, on old/slow hardware eclipse works a lot better than AS Feb 27 06:12:14 dang, what's it like in the dark ages? Feb 27 06:12:19 where are the images for buttons, edit texts, ect stored? Feb 27 06:12:36 my laptop can't deploy anything with gradle in less than 20 seconds Feb 27 06:12:43 <_genuser_> groxx: it's fast in the dark ages. I can run more than just eclipse on a measely 8GB of ram. :p Feb 27 06:12:46 myke yeah, i remember all those complaints of eclipse being bloated ... Feb 27 06:13:05 Eclipse Luna is pretty fast. Feb 27 06:13:20 _genuser_: sounds nice. in the future you need 512gb to run dosbox Feb 27 06:13:21 In general. Build times are just nothing. Feb 27 06:13:26 Though that's without Gradle. Feb 27 06:13:27 the continuous compilation and dex merging are a big deal on slow dev systems Feb 27 06:13:44 <_genuser_> groxx: honestly, my projects was working, it was setup in eclipse, so I didn't bother. for new projects I setup AS. Feb 27 06:14:09 <_genuser_> I'll probably move my current project to AS one day, get used to the 100 new project layouts (none of which match eclipse's layout) and be done. Feb 27 06:14:17 <_genuser_> with the whole eclipse vs. AS thing. Feb 27 06:14:28 _genuser_: yeah, a solid plan :) AS was a definite improvement for work, as a) it got us away from those crazy eclipse profile files, and b) manifest merging -> product flavors is SO MUCH BETTER Feb 27 06:14:40 I moved my Eclipse project to Android Studio manually, and it was so easy. Feb 27 06:14:45 The manual work only took about 10 minutes. Feb 27 06:14:57 (I mean that I created a new Android Studio project and copied everything over.) Feb 27 06:14:58 a few hours here ;_; Feb 27 06:15:14 100 new project layouts? Feb 27 06:15:14 plus more to verify everything worked Feb 27 06:15:20 there's just one layout.. Feb 27 06:15:22 Yeah, I spent hours verifying. :D Feb 27 06:15:22 <_genuser_> I ran AS and I think the only hangup was the project layout. I just couldn't get used to it. just like I couldn't get to the eclipse one at first. Feb 27 06:15:35 What layout? Feb 27 06:15:41 I think AS's is way simpler than Eclipse's. Feb 27 06:15:43 <_genuser_> so once I use it enough, it will be fine. Feb 27 06:15:51 Eclipse's workspace concept is nauseating. Feb 27 06:16:19 <_genuser_> yeah, it's all in the mind. how your minds parse the visual information. You have selective blindness to things you don't need. just like "ad blindness" Feb 27 06:16:20 TacticalJoke its nice when you go back and forth between a bunch of projects ... Feb 27 06:16:21 yeah, I never could get used to the eclipse model Feb 27 06:16:26 yeah having the workspace reference files outside the workspace directory isn't the most obvious thing Feb 27 06:16:37 Eclipse is like "Here's everything you've ever worked on. You're welcome". Feb 27 06:16:41 working on multiple projects in intellij is way worse :| Feb 27 06:16:44 <_genuser_> TacticalJoke: lol Feb 27 06:16:54 i usually just use one workspace per project Feb 27 06:17:20 <_genuser_> the most annoying thing is c:\users\\ folder. it doesn't just have your data, every idiotic vendor puts their crap in there too. Feb 27 06:17:20 being able to shuttle your entire eclipse layout around with a project is nice, too bad it's not also cross platform Feb 27 06:17:28 <_genuser_> my entire project planning goes to crap beginning with the users folder. Feb 27 06:18:28 what is the nfc tag for in google cardboard Feb 27 06:18:34 One thing I loved about Visual Studio was its simplicity. Feb 27 06:18:42 Almost everything is obvious. Feb 27 06:19:10 It was about as difficult to use as Notepad for basic, everyday stuff. Feb 27 06:20:07 TacticalJoke: I think you meant, Eclipse is like "Here's everything you've ever worked on. You're welcome. What? No, you can't name two things the same, in different folders. Why would you even?" Feb 27 06:20:07 Refactoring support was terrible without Resharper, though. (I don't know whether that applies nowadays; I guess so.) Feb 27 06:20:16 pfn: they all suck Feb 27 06:20:19 lol groxx Feb 27 06:20:45 Use gradle is like saying trade the sword for the stake Feb 27 06:20:57 <_genuser_> alright, okio linked in and now to write the code and hammer it to see if it stands up to the challenge. Feb 27 06:21:06 That restriction drove me mad. I used to have a Mercurial workflow in which I'd occasionally clone repositories for a particular reason, and Eclipse forced me to stop doing that. Feb 27 06:21:20 oh oh , is JakeWharton coming up with a new build system ? Feb 27 06:21:21 I hate that part of eclipse with a passion. horrible to deal with duplicate projects for e.g. holding two branches open at once. Feb 27 06:21:21 <_genuser_> Virusal Studio ++ for sure. Feb 27 06:21:54 g00s: no Feb 27 06:21:57 does android studio support ndk? Feb 27 06:22:21 goes google support ndk :P Feb 27 06:22:22 Let's create one called cradle. Feb 27 06:22:38 <_genuser_> g00s: you've planted the seed. now just sit back and wait for .... javen. Feb 27 06:22:44 "Did you say gradle?"... "no, I said cradle". "Yeah, gradle" "no, *c*radle" Feb 27 06:23:09 "Gradle" is such a strange word. Feb 27 06:23:20 I call dibs on "marglar" Feb 27 06:23:24 gravy ladle! Feb 27 06:23:28 lol Feb 27 06:23:31 <_genuser_> no mroe than ladle Feb 27 06:23:35 "The name came from Hans Docter (Gradle founder) who thought it sounded cool." Feb 27 06:23:43 "Hans Docter" also sounds weird. Feb 27 06:23:53 sounds like he works with dr evil Feb 27 06:23:59 "The name comes from Steve Smith, who thought 'Hans Docter' sounded awesome." Feb 27 06:24:04 <_genuser_> eh, I need a break from coding. brb Feb 27 06:24:04 He's who you see when your Hans are inflammed. Feb 27 06:24:09 :D Feb 27 06:24:23 I imagined that scientist from Human Centipede. Feb 27 06:24:44 "Hallo, my name iz Hans Docter and I'll be conducting your surgery today." Feb 27 06:25:12 Hanz, can i haz cheeseburger first? Feb 27 06:25:27 JakeWharton, I don't get your point? Feb 27 06:25:47 at least gradle finally solves my complaint with all project setup systems: clean separation of local and shared configuration (because you can create it however makes sense) Feb 27 06:26:10 yeah, gradle is one of the.. least worst build systems I've used. Feb 27 06:26:15 i know, jake is going to write kradle in kotlin Feb 27 06:26:21 lol Feb 27 06:27:32 hey android studio sets up my project with a gradlew script in the directory Feb 27 06:27:36 if i run it it looks like it installs gradle Feb 27 06:27:42 can I install a sytemwide gradle so I don't need to use that one? Feb 27 06:27:56 You don't need that one if you're using Android Studio. Feb 27 06:28:11 That's just a stand-alone thing for basically anyone, I think. Feb 27 06:28:18 oh okay Feb 27 06:28:21 It avoids people having to use a particular IDE. Feb 27 06:28:26 I'm trying to set up some kind of automated building Feb 27 06:28:33 oh that's awesome Feb 27 06:28:40 I had a feeling Feb 27 06:28:44 pfn: switching is a stupid answer. Feb 27 06:29:02 does anyone have any references I can check about setting up automated builds? Feb 27 06:29:19 Different problems, but same problems. Feb 27 06:29:21 grekkos: This is the documentation for gradlew: https://gradle.org/docs/current/userguide/gradle_wrapper.html Feb 27 06:29:34 Not sure about your automated-builds question. Feb 27 06:29:45 ok thanks i'll do some exploring on my own Feb 27 06:30:02 AndroidStudio comes bundled with a system-wide gradle, doesn't it? I should be able to just add it to my path and go Feb 27 06:30:04 I'm no Gradle expert; someone else might know. :) Feb 27 06:30:16 JakeWharton, not particularly when the alternative is building via ide Feb 27 06:30:24 TacticalJoke: no problem I appreciate the contribution Feb 27 06:30:37 I think Android Studio uses its own Gradle installation by default. Feb 27 06:31:09 oh it comes in the app bundle Feb 27 06:31:13 If you open Settings > Gradle you'll see the details. Feb 27 06:31:19 it uses gradle wrapper Feb 27 06:31:33 which downloads gradle from the internet if it's not installed Feb 27 06:31:36 gordon_: Mine doesn't (with default settings). Feb 27 06:31:40 ah i see Feb 27 06:31:55 Mine uses C:\Program Files\Android\Android Studio\gradle\gradle-2.2.1. Feb 27 06:32:05 i just grabbed it from homebrew Feb 27 06:32:15 grekkos: yeah, probably closer to "it comes with a local gradle via ./gradlew" Feb 27 06:32:37 TacticalJoke: hmm, you know what.. mine two ! :) Feb 27 06:32:44 *too Feb 27 06:32:53 horribel mistype Feb 27 06:33:08 again Feb 27 06:33:09 well, it's better than a decibel mistype Feb 27 06:33:30 I think the new Studio release added a gradle in the app package? previously ./gradlew did download for me. Feb 27 06:33:38 they should implement code completion in weechat so I wont mistype things Feb 27 06:33:45 gordon_: thanks, I grabbed one from homebrew it seems to be working... have you ever done automated builds/CI? Feb 27 06:33:56 we use circle ci Feb 27 06:34:17 My tip-of-the-day thing reset. :/ Feb 27 06:34:26 "Welcome to Android Studio!" Feb 27 06:34:42 it's not bad Feb 27 06:34:51 "horribel" sounds vaguely Lovecraftian Feb 27 06:34:58 :D Feb 27 06:36:10 groxx: yeah there's noe one in the app bundle on osx Feb 27 06:36:52 actually we ran into a weird issue today which is why I wanted to set it up in the first place... seems like our app starts up with a blank screen after it starts the second time... fresh install or wiping app data makes it work again Feb 27 06:37:18 "as the eldritch horror approached from all 7 dimensions, the horrimeter registered 3.2 horribels, a level never before heard of by any being which yet walks this earth" Feb 27 06:37:20 and it looks like there were no code changes, only xml and iml file changes... do you guys put iml files in vcs? Feb 27 06:37:44 groxx++ Feb 27 06:38:25 grekkos: I may be crazy, but I only put gradle files in VCS. very happy with my decision. Feb 27 06:39:23 The JLS is quite easy to read. Feb 27 06:39:30 Some specs are so horrible and messy. Feb 27 06:39:51 groxx: what do you mean? Feb 27 06:40:41 I only put Gradle files in, too. Seems to work well. Feb 27 06:41:05 oh Feb 27 06:41:06 instead of iml Feb 27 06:41:11 Yeah. Feb 27 06:41:16 i removed iml files and people said the project was breaking Feb 27 06:41:17 grekkos: officially, intellij recommends two conflicting approaches. I advocate gradle-only. that way all the semi-device-specific files that intellij generates for projects don't get shared to coworkers. Feb 27 06:41:30 Removed from the repository? Feb 27 06:41:35 yeah Feb 27 06:41:50 plus it's pretty easy to add specific (or generic) hooks for local overrides Feb 27 06:41:52 maybe that wasn't the proper approach but i added them to git ignore beforehand Feb 27 06:42:17 They should be able to import from Gradle each time they need a new project copy. Feb 27 06:42:33 how do they do that? Feb 27 06:42:38 oh Feb 27 06:42:42 yup. which has worked perfectly for my job, unlike everything else I've tried Feb 27 06:42:42 like the project import option? Feb 27 06:42:47 File > Import Project. Feb 27 06:42:50 ok Feb 27 06:42:51 yeah Feb 27 06:42:52 hmm Feb 27 06:42:56 they were complaining about conflicts Feb 27 06:42:58 so I removed the files Feb 27 06:43:06 then they were all like "it's broken! it's broken! put it back" Feb 27 06:43:16 and of course I'm the only one on the team who even looks into these sort of things Feb 27 06:43:48 but that's interesting... do you add .idea/? Feb 27 06:44:13 .idea/ is in my .hgignore. :) Feb 27 06:44:16 Maybe I'm crazy though. Feb 27 06:44:31 also *.iml, but same here Feb 27 06:44:40 Yeah, *.iml too. Feb 27 06:45:03 Mine is basically .gradle/, .idea/, build/, local.properties, and *.iml. Feb 27 06:45:08 i pulled suggestions from gitignore.io Feb 27 06:45:10 That's not rooted. Feb 27 06:47:23 * groxx must zzz for the night, or my wife threatens to nom my brains. I think she means it, so \o Feb 27 06:47:40 woosh ..still no luch with gcm utf8 encoding issues Feb 27 06:47:50 i guess there it must be fonts related too Feb 27 06:48:12 She sounds like a zombie. Remember: headshots. Feb 27 06:48:18 * groxx ┬─┬ ︵ /(.□. \) Feb 27 06:48:36 verified that server is sending utf8 data required by android Feb 27 06:48:37 (With a shotgun.) Feb 27 06:49:01 alas she is armed, and I am not Feb 27 06:49:28 such Nerf. I'm out-gunned. Feb 27 06:50:52 * groxx ǝɯ/ Feb 27 06:51:41 groxx and his upside-down text. :D Feb 27 07:07:07 i wonder if git will ever run on windows w/o cygwin/msys Feb 27 07:07:19 groxx finally solved the encoding issue of GCM :D Feb 27 07:07:58 groxx now i use Html.fromHtml(message).toString() and it takes care of the encoding related problem for now atleast :D Feb 27 07:08:30 I wish the world used Mercurial. The UI is so much nicer and it's cross-platform. :D Feb 27 07:08:49 It's a stand-alone thing (e.g., "hg status" takes all kinds of arguments and doesn't require grep). Feb 27 07:09:55 But such is life. Feb 27 07:10:08 I guess in an ideal world JavaScript wouldn't be a targeted VM. Feb 27 07:10:21 TacticalJoke remember, who won: OS/2 or Windows ? Feb 27 07:11:11 Hi all Feb 27 07:11:13 And C++ got popular. ;o Feb 27 07:11:16 And PHP. Feb 27 07:11:24 And Oprah. Feb 27 07:13:36 I want to make "up button" like this http://cs624827.vk.me/v624827547/2870e/p5s2zYaZUrw.jpg , All tutorials tell me to make code like this (this code is inside Fragment subclass) http://pastebin.com/dx2knMRd But it makes http://rghost.ru/8vjQdHfBT/image.png Feb 27 07:13:47 what i suppose to do? Feb 27 07:15:07 Mem0: It's because you're using the latest version (21) of AppCompat. Feb 27 07:15:12 It uses a material look. Feb 27 07:15:19 20 and below use Holo, I think. Feb 27 07:15:53 TacticalJoke: and i cant do anything with 21? Feb 27 07:15:56 danm google Feb 27 07:16:09 You can have a material look with 21. Feb 27 07:16:21 The "up" icon should still work as always. Feb 27 07:16:47 Mem0: What is your minSdkVersion? Feb 27 07:16:47 On a side note. Feb 27 07:17:31 TacticalJoke: http://pastebin.com/dx2knMRd Feb 27 07:18:54 Hmm, actually, I don't see why "if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)" is needed there. Feb 27 07:19:38 TacticalJoke: You mean big aroow? But I want icon+small arrow... Don't know how to change 21, gradle crushes when i try to use lower version Feb 27 07:19:47 http://pastebin.com/fna4azNe Feb 27 07:19:54 TacticalJoke: Here my build.gradle, what should i change to use non-21 look? Feb 27 07:20:06 minSdkVersion 8 Feb 27 07:20:07 That's super-low. Feb 27 07:21:17 TacticalJoke: Does it influence somehow in this case? Feb 27 07:21:28 Nah. That's a side topic. :) Feb 27 07:21:43 Mem0: If you open the build.gradle for your project, you should be able to change from v21 to v20 of AppCompat. Feb 27 07:21:57 s/project/module/ Feb 27 07:24:15 Mem0: Note that the 21 icon is the new thing everyone's using now. Feb 27 07:24:19 It's "material design". Feb 27 07:24:29 Or kinda part of that. Feb 27 07:26:22 TacticalJoke: http://pastebin.com/j4fif7hK here? Feb 27 07:26:53 Yeah. Feb 27 07:35:17 TacticalJoke: $ echo 1 > /proc/sys/net/ipv4/ip_forward Feb 27 07:35:27 TacticalJoke: damn, wrong line0 Feb 27 07:35:28 ))) Feb 27 07:35:38 TacticalJoke: Yeah, i read about it. I don't like it personally :) Feb 27 07:36:18 An alternative is to set minSdkVersion to 11 (I think) and forget AppCompat. Feb 27 07:37:15 In any case, you should probably increase that value. 8 is way too low for alomst anything. Feb 27 07:37:25 almost* Feb 27 07:38:34 TacticalJoke: thn for help, i will try that Feb 27 07:38:37 *thx Feb 27 08:06:52 hi, is there no default "check arrow" drawable in android sdk? i mean accessible without copying a custom one Feb 27 08:23:36 hi, morning all why i am getting this error ? ive been stuck to this for 2 days. android.system.ErrnoException: chmod failed: EPERM (Operation not permitted) Feb 27 08:24:34 this error appears while reading & writing from/to database which is located in Environment.getExternalStorageDirectory Feb 27 08:56:14 <_genuser_> JakeWharton: okio Buffer.write(byte[] source, int offset, int byteCount); does it write byteCount bytes at offset as insert or as overwrite? Feb 27 09:09:07 <_genuser_> JakeWharton: ok, ran some test code against it. write(byte[] source) will append so it will increment the size of buffer. write(byte[] source, int offset, int byteCount) will not increment the size and rather try to overwrite the existing array, which fails if source is bigger than remaining space. Feb 27 09:09:25 <_genuser_> what I'm looking for is an insert into data at specific location. Feb 27 09:39:17 Morning All Feb 27 10:08:32 anyone tried annotative processing? Feb 27 10:08:44 im writing a processor for models to interact with sqlbrite Feb 27 10:09:06 having some issues with writing messages and stacktraces when shit breaks Feb 27 10:09:18 theres like 0 ways to see these messages in android studio Feb 27 10:09:20 :( Feb 27 10:46:38 Hi Feb 27 10:46:59 I have a problem to check the connection state: Feb 27 10:47:00 http://pastebin.com/4T8ZnCZm Feb 27 10:47:36 on line 26. I check if there is a connection to the internet Feb 27 10:48:09 but isNetError is allways false; Feb 27 10:48:19 how can I fix it? Feb 27 10:57:48 dot8, firstly, heard of okhttp? Feb 27 10:58:17 also, retrofit Feb 27 10:58:32 http://github.com/square/retrofit Feb 27 10:59:48 Also ConnectivityManager Feb 27 11:05:36 kevel: ok, i check it Feb 27 11:23:56 hi, morning all why i am getting this error ? ive been stuck to this for 2 days. android.system.ErrnoException: chmod failed: EPERM (Operation not permitted) Feb 27 11:24:01 this error appears while reading & writing from/to database which is located in Environment.getExternalStorageDirectory Feb 27 11:28:31 sci-fi: http://stackoverflow.com/questions/24823861/chmod-failed-eperm-operation-not-permitted-in-android Feb 27 11:28:48 sci-fi: http://stackoverflow.com/questions/20440327/failed-to-chmod-warning-in-kitkat-when-trying-to-openorcreatedatabase Feb 27 11:29:03 sci-fi: https://code.google.com/p/android/issues/detail?id=64345 Feb 27 11:29:05 just google Feb 27 11:29:12 kevel:i did see that but i didnt get the solution Feb 27 11:34:06 Hi, does anyone actually still use Hungarian notation in there android app? the mPrefix seems like an outdated concept now Feb 27 11:35:28 as in sStaticVariable, mMemberVariable etc? Feb 27 11:35:34 indeed Feb 27 11:35:44 I do, in my personal projects and at work. Feb 27 11:36:15 I don't really know why.. I guess it helps me know the scope? of my variables, maybe? Feb 27 11:36:27 anyone knows that how i can chown my created database directory on the sdCard ? Feb 27 11:36:30 I couldn't argue the fors and againsts at all - I do it because it's conention. Feb 27 11:36:33 convention* Feb 27 11:36:46 yea, that was the reasoning for it but with IDE support now I just dont want to do it Feb 27 11:36:56 but I guess its personal preference Feb 27 11:37:05 <_genuser_> dang, AS takes 5 minues to load a project eclipse can load in 1 second. and it's a simple listview on an activity, nothing more. Feb 27 11:37:09 What do you mean 'with IDE support'? Feb 27 11:37:33 As in, the IDE autocomplete etc. makes things easy, so it's not necessary? Feb 27 11:38:53 _genuser_: not really Feb 27 11:39:06 eclipse was horribe Feb 27 11:39:08 *horrible Feb 27 11:49:39 <_genuser_> gordon_: what do you mean not really. It actually is taking 5 minutes to load a simple project whereas eclipse just starts up on my computer. Feb 27 11:50:31 takes 3 seconds on my pc Feb 27 11:50:46 while eclipse takes more Feb 27 11:51:20 <_genuser_> I see. I'm not sure why it's taking so much longer on mine. however, the entire IDE is super bloated (or feels so on this PC) and takes much much longer than eclipse. Feb 27 11:51:45 it might get longer for the first time Feb 27 11:51:46 <_genuser_> however, since eclipse is no longer supported, I think I should get used to AS and learn the IDE and the gradle build system too. Feb 27 11:51:54 since intellij uses a lot of caching Feb 27 11:52:05 <_genuser_> well, I've run it quite a few times already. Feb 27 11:52:07 while eclipse builds workspace everytime... Feb 27 11:52:24 that was big issue in my previous company with java ee project Feb 27 11:52:44 <_genuser_> don't get me wrong, eclipse has it's problems. I think I just need to get used to the new one. Feb 27 11:52:55 <_genuser_> its* Feb 27 11:55:59 <_genuser_> I think I should do a simple how-to on starting in AS. :) Feb 27 11:58:39 _genuser_: you really don't need to Feb 27 11:58:46 there is a full on wizard to creating a new app in AS Feb 27 11:58:48 <_genuser_> gordon_: on the left side, do you see the "project explorer". it shows some profiles on top in drop down. Do you typically just use the "Android" one from the list. Feb 27 11:59:02 if literally have to be mind numbingly stupid to not be able to make a project in AS Feb 27 11:59:07 you * Feb 27 11:59:27 <_genuser_> kevel: I said that specifically due to the wizard. I ran thru the wizard, created a new widget. And in the generated xml, it's giving me errors. Feb 27 12:00:42 <_genuser_> crap such as I dont know what widgetCategory is or what initialKeyguardLayout is. Feb 27 12:03:57 <_genuser_> kevel: let me start a completely new project instead of building an imported project. let's see how it goes. Feb 27 12:05:21 <_genuser_> dang, building a new project is taking over 20 seconds and bringin my system to it's knees. Feb 27 12:05:40 <_genuser_> time to buy more ram =) Feb 27 12:06:22 how much ram do you have? Feb 27 12:07:04 <_genuser_> 8GB Feb 27 12:10:15 <_genuser_> I know it's a quite a bit already, but I suppose more memory is not gonna slow things down. Feb 27 12:10:38 how are u running out of memory so quickly Feb 27 12:10:46 wtf are u building onto? Feb 27 12:10:53 my builds take like 6 seconds Feb 27 12:11:33 maybe he's running a single core :p Feb 27 12:11:39 <_genuser_> amd 6core, 3.6GHz, 8GB of RAM, Win7, AS. Feb 27 12:11:53 Nice Feb 27 12:12:47 <_genuser_> gradle reports, total time: 25.563 secs. default shell project based on new proj wizard. Feb 27 12:15:36 <_genuser_> so the ApplicationTest is a default text harness that AS generates? Feb 27 12:36:09 <_cypha> probably a bit irrelevant question but does anyone know if SELinux on android by default denies third party apps from creating/using unix sockets? Feb 27 12:36:09 <_cypha> I have a native app in c that uses 2-3 processes internally and those use unix sockets for IPC. So before building I was just wondering if selinux might be a possible problem in this later on. Feb 27 13:01:43 <_genuser_> nice have a new working and debugging proj going in AS Feb 27 13:16:07 hi, i followed this guide http://developer.android.com/training/sharing/receive.html but when i try to share a link from firefox, my app isn't listed Feb 27 13:16:32 any idea what could be wrong? i put the exact code from the site in my app Feb 27 13:18:42 hi Feb 27 13:24:37 timusus: when I say ide support I mean you can jump to variable definations very easily and highlighint to show occurances Feb 27 13:27:37 Does adb come with android studioand how do i find it on mac? Feb 27 13:30:27 I talking about use the adb for the command line:) Feb 27 13:31:12 in that case use "find / -name adb" on the command line Feb 27 13:39:58 thanks i try that Feb 27 13:51:20 <_genuser_> how important is it to put build/intermediates/* folders/files into repos? Feb 27 13:52:35 how o intsall apk without user interaction? Feb 27 14:11:44 hwllo can we provide system priveledges to our app Feb 27 14:11:45 ? Feb 27 14:16:28 Hi, how would I load images that are stored in a user’s google+ photos? Feb 27 14:22:09 how to install apk without user prompt Feb 27 14:22:10 ? Feb 27 14:24:37 min2, adb install Feb 27 14:24:56 huhh Feb 27 14:25:15 I want install .apk without user prompt silently Feb 27 14:25:30 my device is not rooted Feb 27 14:25:40 i want achieve this in unroot device Feb 27 14:25:57 this sounds really shaddy Feb 27 14:26:00 you cannot. Feb 27 14:26:18 any reason Feb 27 14:26:18 ? Feb 27 14:26:41 the design prevents these shaddy things to happen Feb 27 14:26:49 can i provide system priveledges to my app Feb 27 14:26:54 who would like to have things installed without their consent... Feb 27 14:27:07 my client wants Feb 27 14:27:10 Hello Feb 27 14:27:17 Tell your client that that is not feasible Feb 27 14:27:22 i read lots of blog Feb 27 14:27:31 there are shell commands Feb 27 14:27:31 How have I to change the manifest if I use libsuperuser calls in java code? Feb 27 14:27:31 i read a lot too :) Feb 27 14:27:33 hi Feb 27 14:27:36 Installing apps without consent is not something anyone should do. Anything that does it, is malware. Feb 27 14:27:38 which work very well in rotted device Feb 27 14:27:43 Any ideas? Feb 27 14:27:50 its possible in 4.1 Feb 27 14:28:01 guyz Feb 27 14:28:06 maybe with device administrator and some policy, i don't know mroe Feb 27 14:28:38 where should i implement onLowMemory? is there a difference whether i implement it on Activity A or Activity B or my Application-subclass? Feb 27 14:29:01 The only one who gets to install apps without your permission is google :) "Oh, you don't want I'm feeling lucky? Too bad, it's part of the play services, and can't be uninstalled!" Feb 27 14:30:09 is it possible to provide app system priveeldges Feb 27 14:30:21 programamtically Feb 27 14:30:47 cause there are lot of apps in market which are doing this Feb 27 14:30:57 and they are system app Feb 27 14:31:57 I launched the android emulator and there is a devices running, how do I connect to it using adb? adb devices doesn't show it Feb 27 14:39:45 I've got a memory leak when I rotate my device while an asynctask is ongoing, is there a proper way to handle this without using setRetainInstance(true) ?? Feb 27 14:40:35 window leak*, this is caused by the dialog loader Feb 27 14:41:17 proper? no Feb 27 14:41:22 but there are various ways around it Feb 27 14:41:51 which one would you recommend then ? Feb 27 14:41:59 setRetainInstance :P Feb 27 14:42:39 Chainfire, hello, I've followed your tutorial 'how-to-su' Feb 27 14:42:42 well I'm handling the backstack myself, therefore I can't use it Feb 27 14:42:52 How have I to change the manifest if I use libsuperuser calls in java code? Feb 27 14:43:01 actually what I tend to do is add an empty fragment (visibility=gone) to my activities that I call StateFragment, with setRetainInstance(true), and use it to store objects and such that need to survive things like activity recreation Feb 27 14:43:30 that's the solution that I came up with too but it's so dirty Feb 27 14:43:45 this is an always present fragment directly in my main layout, so it doesn't take part in any of the fragment switching from navigation etc Feb 27 14:43:51 dude, this is Android Feb 27 14:43:58 there are no elegant solutions to these sort of problems Feb 27 14:44:09 its a design problem Feb 27 14:44:14 ok I'm new to this stuff Feb 27 14:44:24 I didn't know, unfortunately :p Feb 27 14:44:30 thanks for getting me on the right track Feb 27 14:44:48 either you serialize everything (not always possible) in onSaveInstanceState and reload it in onCreate and friends, or you store objects using a fragment that retains instance Feb 27 14:45:59 I'm not saying it's the best possible solution, but it works, and it's been discussed in this channel a number of times with the outcome that it was agreeable enough. Dirty as you say, but try to come up with something better :P Feb 27 14:46:24 cristian_c you don't need to add anything to manifest Feb 27 14:46:32 ok Feb 27 14:46:50 it used to be recommended that you add the ACCESS_SUPERUSER permission, but it's not forced, and it has been dropped with Lollipop altogether Feb 27 14:47:26 ok, is it needed for Jelly Bean? Feb 27 14:47:34 no, it is never needed Feb 27 14:47:37 ok Feb 27 14:47:41 thanks Feb 27 14:47:51 thank you very much for the answer Feb 27 14:47:54 :) Feb 27 14:48:16 now, I'm going to compile :) Feb 27 15:02:32 Hello ! I have a problem with this code usin appcompat v7 (I've got a NPE) : http://pastebin.com/N0RePTfc in two apps, but only when I use proguard. Is there something I'm doing wrong ? Feb 27 15:48:44 what line is getting the NPE Feb 27 15:48:51 null peen exception right? Feb 27 15:57:30 hey all, using android-studio here. My manifest is using API-18 for both min and target, SDK manager says I have API-18 through 21 installed, I have all of the buildtools,... yet gradle still does [INSTALL_FAILED_OLDER_SDK] Feb 27 15:57:34 it's driving me crazy Feb 27 15:58:50 Gradle is also set to use 18 for min and target SDK. My compileSdk is 21 Feb 27 15:58:56 (which I have installed) Feb 27 16:00:38 What does your manifest look like? Feb 27 16:00:58 wha are you installing to? Feb 27 16:01:03 thats an installaiton target issue Feb 27 16:01:13 installing to a 4.2.2 device (physical) Feb 27 16:01:44 quinnjn: as far as the uses-sdk fields are concerned... "18" on both target and min Feb 27 16:02:01 oh haha Feb 27 16:02:05 4.2.2 is 17 Feb 27 16:02:10 *facepalm* Feb 27 16:02:40 ac_slater, you should set your sdks in gradle, not the manifest... Feb 27 16:02:48 gradle will override your manifest Feb 27 16:03:01 MikeWallaceDev: agreed, they are in both, this project was imported via the old SDK tools Feb 27 16:03:08 I guess I just never removed it Feb 27 16:03:21 both just makes it confusing... Feb 27 16:03:25 you're saying I can take the 'uses-sdk' field out of the manifest? Feb 27 16:03:38 I'm saying that you should take it out :) Feb 27 16:04:10 ;) awesome. Thanks guys Feb 27 16:04:25 for example, if you would just change your manifest to 17, your app still wouldn't work Feb 27 16:04:38 (because you mentioned that gradle has it at 18) Feb 27 16:04:47 and gradle will override Feb 27 16:05:06 right, I get that. I tried to support both IDEs for a bit Feb 27 16:05:15 that shit has long sailed though. I appreciate the advice Feb 27 16:05:19 ship * Feb 27 16:05:58 * shit Feb 27 16:06:06 I'm not an Eclipse fan :D Feb 27 16:06:19 others like it, I'm not one of them... Feb 27 16:08:43 I does the job. I took a while to understand the gradle buildsystem. It's a little all over the place. ie - JNI was weird, multiple gradle files, the command line stuff, dependencies, etc Feb 27 16:08:48 but that's the name of the game Feb 27 16:11:14 ac_slater, why set compile sdk to 21 if you use target sdk 18 Feb 27 16:11:16 that makes no sense Feb 27 16:11:32 pfn: honestly, I havent made it that far. Feb 27 16:11:44 I have no idea what that actually does Feb 27 16:12:22 MikeWallaceDev, I don't like setting versions in gradle, unless you have build flavors changing it Feb 27 16:15:50 o_0 Feb 27 16:26:36 I'm looking for a way to check my local SQLlite database. Supposedly there's a viewer for eclipse, but i'm using android studio Feb 27 16:27:29 How can I tell my Toolbar to theme to the same style as my actionbar? what ?attr/ should I set to what? Feb 27 16:27:29 only way I've ever been able to inspect an android sqlite database is using the command line client and adb shell Feb 27 16:28:20 MooGoo, on an unrooted phone? alternatively on the emulator? Feb 27 16:28:24 try the new facebook lib Stethos Feb 27 16:28:51 Syzygy: if the unrooted phone has the sqlite3 binary in the shell it should work Feb 27 16:28:53 Stetho* Feb 27 16:29:27 but maybe you cant even access the db without root Feb 27 16:32:01 pfn, the problem comes when it is overridden by Gradle. One keeps staring at the manifest, wondering why it's not working. Feb 27 16:32:36 I put as little as I can in the manifest now. It was just confusing for nothing. Feb 27 16:33:31 hi is it possible to make a app which will let users chat over hotspot or wifi network without there number and personal details Feb 27 16:34:38 anybody ? Feb 27 16:34:43 why not? Feb 27 16:34:55 isn't the manifest version deprecated now anyways once it was introduced to gradle? Feb 27 16:35:11 i need guidance on it how to achieve this but without internet Feb 27 16:36:16 MikeWallacedev: i looked for one solution wifi direct but i need a way on wifi hotspot without internet Feb 27 16:36:18 is it possible to switch to in kernel drm/kms for aosp? Feb 27 16:37:12 MikeWallaceDev: is it possible to do this with wifi hotspot not wifi direct ? Feb 27 16:37:56 hiteshtr, how do I know? That's a networking question, not an Android question Feb 27 16:38:54 MikeWallaceDev: can you tell me how would u do this ? i will try to implement it Feb 27 16:39:21 that's not your first question at all. I have no idea how to do this. Feb 27 16:39:53 without personal details, and without the internet is a whole different question Feb 27 16:40:30 anybofy? Feb 27 16:43:00 how to Get Android system permissions by putting app in /system/app? Feb 27 16:43:06 is it possible to do so Feb 27 16:43:08 anybody have any idea for question Feb 27 16:43:15 yo Feb 27 16:43:22 without root Feb 27 16:43:23 anyone want to take a small project? Feb 27 16:44:07 is it possible to make a chat app with no internet and personal registration using wifi hotspot ? Feb 27 16:44:16 hiteshtr, so basically a walkytalky app? Feb 27 16:44:21 yes Feb 27 16:44:28 no idea Feb 27 16:44:30 * DelphiWorld pm hiteshtr Feb 27 16:45:10 I have an apk which i want to install it silently on user device, ande device is not rooted Feb 27 16:45:15 does aosp allow for in kernel drm/kms? anyone? Feb 27 16:45:25 hiteshtr: see private msg Feb 27 16:45:38 min2: nope Feb 27 16:45:57 i want achieve this only in 4.1 Feb 27 16:46:26 min2, that sounds like something fishy. Feb 27 16:46:30 As I came to know that there is security vulnerability Feb 27 16:46:34 in 4.1 Feb 27 16:49:54 this can be possible in two ways Feb 27 16:50:24 either build the app system ap which can downlaod other apk remotely and install it without user interaction Feb 27 16:50:46 so without root can we send the aok in system/app Feb 27 16:55:34 tfw try to start something with a button and don't set a listener for it Feb 27 17:01:12 I want to make a chat application which allows users who are connected to same wifi network to chat and without registration or adding there number also the app makes possible for user to chat without internet if they are connected to same wifi network or hotspot Feb 27 17:06:12 good for you Feb 27 17:13:57 hiteshtr: is there a question in there? Feb 27 17:14:39 is this is a whole question i need help on this Feb 27 17:15:03 <_genuser_> finally got a little more done with AS last nite. learnt at bit about gradle etc etc. Feb 27 17:15:32 <_genuser_> anybody know if I can safely ignore build/ folders and not add them to source control repos? Feb 27 17:16:24 hiteshtr: but which part of it? "how do I install android studio", "fragments are confusing", "I don't understand why p2p WiFi isn't working as advertised"? Feb 27 17:17:12 _genuser_: you can, yes Feb 27 17:17:35 <_genuser_> groxx: and I assume it will rebuilt the R file etc if I get a fresh clone off a repo. Feb 27 17:18:08 _genuser_: yep Feb 27 17:18:47 <_genuser_> groxx: nice, thanks. got AS to work with my device without problems. so might be moving my projects to AS now. Feb 27 17:19:02 _genuser_: I've had it complain about missing build folders, but if you give it a moment to think about it and just got build again, it'll make progress Feb 27 17:19:04 <_genuser_> spending some times on it, made the UI look more normal to my eyes. Feb 27 17:19:12 groxx: how can i make possible to make chat application without internet using wifi ? Feb 27 17:19:34 hiteshtr: there was someone in #android asking the same question Feb 27 17:19:36 you should work together Feb 27 17:19:52 mikedg: it was me only :) Feb 27 17:20:18 I have this array of drawables in strings.xml, and i'm having trouble assgning it to a ImageView in my adapter, here are some snippets from my code: Feb 27 17:20:21 http://pastie.org/9987780 Feb 27 17:20:50 can I not store drawables in an integer array? Feb 27 17:21:09 <_genuser_> hiteshtr: send udp broadcasts over local lan with your IP. listen for such broadcast and consider them other clients. also send little chat message in such broadcasts. if you see a message, show it as from that IP. Feb 27 17:22:07 <_genuser_> ultimately build a little protocol whereby you send hello,identify,say,etc and have each client understand those commands and respond. Feb 27 17:27:23 _genuser_: can u provide some link where i can do some R&D Feb 27 17:27:31 Hello. I have my image cache in global application instance, and I want to access it from image loader, which is async task. What is the most common way of going about it? Should I access cache from somewhere else or add some callbacks? Feb 27 17:27:56 If I have a static method declared in a fragment, how can I get a context from that? Feb 27 17:27:59 I'm using ormlite. I'm trying to save an object to a table, via myClassDAOObject.create(myObject). however when I access the float value from the database, it drops decimal places. Feb 27 17:28:10 e.g. 0.5 = 0.0, 1.5 = 1.0 etc Feb 27 17:28:16 any idea what could cause that? Feb 27 17:33:19 is an emulator considered rooted? Feb 27 17:33:47 Good question. I don't believe they are by default. Feb 27 17:33:55 native kms drm aosp anyone? Feb 27 17:37:18 hiteshtr: http://developer.android.com/guide/topics/connectivity/wifip2p.html is probably the most direct source for what you're looking for Feb 27 17:37:49 hiteshtr: other than that, I think Bluetooth can do p2p, though others may correct me there. Feb 27 17:38:37 groxx: ok i will go to wifip2p as its have higher range Feb 27 17:38:58 hiteshtr: also, learn the basics of android dev, like through the training section of developer.android.com because it's important and you'll definitely have problems if you don't :) Feb 27 17:40:47 hiteshtr: and as far as I'm aware, p2p on android is difficult. lots of disconnects, etc. some things have achieved it though, so I assume it's possible at least :) Feb 27 17:56:00 How do I store an array of drawables? Feb 27 17:56:07 I'm doing like this atm http://pastie.org/9987780 Feb 27 17:56:17 but it's not working Feb 27 17:56:56 Glitches: http://developer.android.com/reference/android/widget/ArrayAdapter.html Feb 27 17:58:22 yiati: how do I get my drawables into that in the first place? Feb 27 17:58:48 http://developer.android.com/reference/android/widget/ArrayAdapter.html#createFromResource(android.content.Context, int, int) Feb 27 17:59:48 any idea how I could view the contents of an sqlite file? generated by android, but I downloaded it and have it here on my PC Feb 27 18:00:12 Syzygy: you just want to see the contents? Feb 27 18:00:23 Glitches, exactly Feb 27 18:00:32 download sqlite and open the database up Feb 27 18:01:40 yiati: would I pass getResources().getIntArray(R.array.images) into that? Feb 27 18:01:50 since that is my array of drawables Feb 27 18:02:08 they're suppose to be in a int array right? Feb 27 18:02:32 btw, I already have a custom adapter which I passed my object to Feb 27 18:02:57 Just the images don't seem to want to display Feb 27 18:05:26 why are you putting an int array in strings? Feb 27 18:05:27 do people generally create a controller class to move around with their card layouts to handle the logic? Feb 27 18:05:54 whatitis: what do you mean? Feb 27 18:06:04 oh... i see what you mean Feb 27 18:19:01 Hello everyone! Feb 27 18:22:07 Hi Dr. Nick! Feb 27 19:02:50 here is my app_tracker.xml, global_tracker.xml, Analytics.java, part of MainActivity.java and part of the manifest: http://pastebin.com/a50wFYWn . Anyone able to see why onStop doesn't send a hit to Google Analytics? Feb 27 19:03:01 onStart does :S Feb 27 19:06:49 Quacked: what do you mean by "send a hit"? Feb 27 19:07:35 GAV4 says: 02-27 19:52:51.039: V/GAV4(32341): Thread[GAThread,5,main]: Sending hit to store PATH: https:.... Feb 27 19:07:57 ...when launching app. But nothing at onStop Feb 27 19:17:51 I am building a camera app and have noticed that no matter what, the google camera is always a way higher quality than my camera. Is this perhaps because it uses the camera2 api instead of the old camera api? Feb 27 19:18:50 I wanted to support Pinning in my app, but it's a big pile of crap. Reverted. Feb 27 19:19:18 It's really bad... I don't know how they could release this. Feb 27 19:20:04 I still can't figure out why the SwipeRefreshLayout won't allow me to manually refresh it. Anyone familiar with this issue? Feb 27 19:23:00 in_deep_thought: it depends on parameters Feb 27 19:24:58 Ashiren: you mean quality depends on parameters? Feb 27 19:25:43 rephrased q: is there any reason a camera app using the camera 2 api would have higher quality preview than camera app using camera 1 api on the same hardware? Feb 27 19:26:20 Yes Feb 27 19:26:29 shouldnt google analytics report the GoogleAnalytics.getInstance(this).reportActivityStop(this); ? Feb 27 19:26:57 Quacked, put a log in your onStop to make sure it's even called... Feb 27 19:28:25 Any ideas why onItemSelected isn't using correct data from an object I set earlier in the activity? Feb 27 19:28:29 MikeWallaceDev, I have and it is Feb 27 19:28:47 Where do the fake android-runtime mountpoints come from? So, on my system /storages/emulated/0 is the external storage, but that path doesn't actually exist (via adb shell). Is there some piece of Android java runtime code that handles these fake paths? Feb 27 19:30:13 So I have a RecyclerView on a layout, and then I'm inflating that layout and passing it to a MaterialDialog as a custom view. The dialog displays but either the RecyclerView is not being loaded onto it, the MaterialDialog is not showing it for some reason, or the RecyclerView is empty (which I know it isn't). Is there a good way to go about debugging this? Is there a way for me to tell if the REcyclerView actually exists on that layout? Feb 27 19:30:51 Quacked, what version of Play Services are you using? Feb 27 19:31:12 Ah, nvm. Just got it working by setting a minimum height on it... Interesting. Feb 27 19:31:41 Quacked, do you have in your manifest? Feb 27 19:33:29 MikeWallaceDev, thanks for helping. I have that in manifest, yes, with a different xml name. I've combined my code here: http://pastebin.com/a50wFYWn Feb 27 19:34:06 hey, all I'm doing is Googling and reading the docs :D Feb 27 19:34:26 the guide seems pretty decent : https://developers.google.com/analytics/devguides/collection/android/v4/ Feb 27 19:35:30 MikeWallaceDev, I have a couple devices, and have rolled back google services on one of them to be force quicker dispatches for testing. On that one I get "Google Play services out of date. Requires 5089000 but found 4033530" Feb 27 19:37:10 on the other one with updated play services I get no error like that but still nothing from analytics onStop Feb 27 19:37:38 why can't my onItemSelected for my spinners access global variables? Feb 27 19:38:02 Quacked: I wouldn't expect it to. more likely it just logs the duration of the activity, and uploads it later. after onStop it's not guaranteed to be able to send the info anyway. Feb 27 19:38:14 MikeWallaceDev, Ive followed that guide and some others. Dont understand why google shows how to use global_tracker instead of app_tracker when app_tracker is for single apps (if Ive understood correctly) Feb 27 19:38:46 the tracker stuff is weirdly complicated, yeah :\ I just do it in code. Feb 27 19:38:59 might make more sense for Enterprise™ stuff Feb 27 19:39:28 yeah, itll be a nightmare in my app with one viewpager activity with 3 fragments Feb 27 20:00:40 How can I know if t.enableAdvertisingIdCollection(true) really works? Feb 27 20:01:04 I've seen code using it in the analytics class and in the mainactivity oncreate Feb 27 20:26:17 https://github.com/rengwuxian/MaterialEditText/wiki/Layout-and-Code-Example Feb 27 20:26:21 wow such contribution Feb 27 20:27:46 Moter8: You know https://github.com/hzsweers? Feb 27 20:28:24 yiati, nope, never heard of him Feb 27 20:29:06 yiati, why are you asking? ^^ Feb 27 20:29:08 He contributed to that project you just posted Feb 27 20:29:15 And I went to school with him Feb 27 20:31:01 Oh that's cool Feb 27 20:31:10 I just thought the documentation was a bit lacking Feb 27 20:31:28 I've never heard of that project Feb 27 20:34:41 yiati, seems very nice to me, using it for 2h now, haha Feb 27 20:34:50 Anybody know some good material-buttons lib? Feb 27 20:35:12 API <21 ones look crappy imo Feb 27 20:41:38 anyone using the material design icons Google posted? Feb 27 20:49:19 I generated an android dev hash for use with a Facebook connect plugin, am I supposed to put it in my manifest somewhere? Feb 27 21:10:47 hot can i tell which version of the android-gradle plugin AS is using? seems the CLI & AS have different caches Feb 27 21:11:24 If you go to Settings > Gradle it should tell you. Feb 27 21:11:27 I think. Feb 27 21:11:44 is that the one in the root build.gradle file? Feb 27 21:11:53 Mine is in the gradle-2.2.1 directory. Feb 27 21:12:04 i mean the plugin Feb 27 21:12:11 now at 1.1.2 for example Feb 27 21:12:38 Oic. Feb 27 21:12:46 if i go to project structure, it says 1.1.+ which is what i have in gradle. i'd like to know what its really using though Feb 27 21:13:06 ah. yeah, that annoys me too Feb 27 21:13:22 alt-enter on it -> replace with specific version Feb 27 21:20:06 g00s: didja try that? Feb 27 21:20:29 groxx no i didn't quite understand. i want to leave it 1.1.+ Feb 27 21:21:02 it'll replace the text with the version that's currently being used. just hit undo to leave it at 1.1.+ Feb 27 21:21:30 ok so project structure -> project -> android plugin version ... alt - enter ? Feb 27 21:22:23 doesn't seem to do anything for me on mac Feb 27 21:24:01 this project structure thing is lame anyhow - at most they could tell me my dependencies, and maybe a method count to my total 65k. don't know why they couldnt just leave everything to the gradle DSL Feb 27 21:24:28 project_root/build.gradle -> `buildscript { dependencies { classpath 'com.android.tools.build:gradle:1.1.+' } }` the classpath string should be yellow because it's using a "+". alt-enter when your text-cursor is in the string. Feb 27 21:24:50 oh so i open up the gradle file, one sec Feb 27 21:25:13 I would we could say "case null:" for any reference type in a switch statement. Feb 27 21:25:33 otherwise, I can see my caches inside ~/.gradle/caches/modules-2/files-2.1/ and I have like a dozen different gradle plugin versions inside com.android.tools.build/ Feb 27 21:25:52 groxx i think AS stores its caches somewhere else Feb 27 21:26:06 that's where both AS and gradlew store theirs with me Feb 27 21:26:12 hm Feb 27 21:27:06 afaik I've never modified anything related to that Feb 27 21:27:27 groxx ah k, replace with version worked thanks Feb 27 21:27:45 g00s: it's a super-weird thing to do, but it's the only thing I've found :| Feb 27 21:28:00 yeah its super weird Feb 27 21:28:17 I've tried searching for a "hey gradle, tell me all the versions of everything you're using!" command, but never had any luck Feb 27 21:29:31 Isn't it better not to use ranges anyway? Feb 27 21:30:10 I guess it's more work, but there can be no surprises. :) Feb 27 21:30:21 yeah. I'd say always use the specific version anyway. Feb 27 21:30:31 it does do a crappy job of notifying you that there's a new version though :( Feb 27 21:30:58 you almost never modify the root build.gradle, so you never see the 'out of date' warning, so you never update.... Feb 27 21:34:47 I use an 80-column limit for commit summaries (not 72 or 50; #yolo) but it's so freaking limited. Feb 27 21:35:01 I'm not sure why I even bother. Feb 27 21:35:11 BitBucket has no issue with 120-column summaries, I think. Feb 27 21:35:22 Same with my terminal. Feb 27 21:35:25 if your computer can't handle > 80 characters wide without exploding, I really don't care if you can't browse my commit history Feb 27 21:35:31 Yeah. Feb 27 21:35:40 It's like we're limiting ourselves to 80s technology. Feb 27 21:35:42 from the command line gradle dependencies should show you the versions of everything Feb 27 21:36:48 g00s: /me tries. gets nothing in output. /me is the sadness Feb 27 21:37:07 groxx not from your root, go into a project Feb 27 21:37:15 or sub-project Feb 27 21:37:17 groxx: Do you use any limit for commit-message summaries? Just curious. Feb 27 21:38:28 g00s: cool. though it doesn't include the plugins D: Feb 27 21:38:58 TacticalJoke: vim will warn me with font color when I exceed like 72, I think, so I try to stop "soon" Feb 27 21:39:19 but I _massively_ prefer "single line is descriptive" over "single line is within 72 characters" Feb 27 21:39:42 Yeah. Sticking with 72 limits us to very few words. It's kinda crazy. Feb 27 21:39:46 if I break 100 I probably need to reword things, but if that's what it takes, that's what it takes. Feb 27 21:41:25 <_genuser_> alright you AS loving nerds... Feb 27 21:41:32 I find ~120 to be a nicer reading width anyway. roughly book-sized blocks of text. Feb 27 21:41:56 When I look at my commit history, it looks like I've been charged $15 per word. Feb 27 21:42:01 * jaana is a reluctant kind-of-AS-liking nerd Feb 27 21:42:02 _genuser_: bring it, you Eclipser! Feb 27 21:42:18 my emoji is ready ᕙ(⇀‸↼‶)ᕗ Feb 27 21:42:32 <_genuser_> groxx: no, nothing like that. :) just ran AS for a while last nite, started a new project in it. tried to get used to it. Feb 27 21:42:47 Android Studio: 99 problems but Eclipse ain't one. Feb 27 21:42:49 <_genuser_> groxx: it started looking pretty normal after a while and you know how it goes. once the eyes are used to stuff, it's looks fine. Feb 27 21:43:10 I can't remember whether someone said that in here or I made it up. Feb 27 21:43:12 oh, I see. running away, eh? couldn't handle the emoji. s(`ヘ´;)ゞ Feb 27 21:43:29 <_genuser_> wth is that emoji, lol. Feb 27 21:43:42 The fat cat is angry. Feb 27 21:43:51 ヽ(#`Д´)ノ Feb 27 21:44:07 lol, ok, that needs to be a freenode IRC room, since it linkified. Feb 27 21:46:54 Kinda weird problem. So I have a ViewPager that has buttons that let the user navigate off to different fragments. When I click the back button after going to one of those fragments (from the viewpager), I get this error: Unable to resolve superclass of Landroid/support/v4/app/FragmentTransitionCompat Feb 27 21:46:56 <_genuser_> you know when you click on res/layout and it makes an icon into a sub-item and you can expand it and it will show it 4 times with the resolution name in parenthesis....? Feb 27 21:47:03 And nothing will show in my viewpager fragments... any ideas? Feb 27 21:47:21 <_genuser_> I kinda find that annoying. I figure they thought it would be cool to consolidate them. but I like the idea of access to individual folders. Feb 27 21:47:36 <_genuser_> I know it does that in project view or something, but would have been nice in Android view also. Feb 27 21:48:30 _genuser_: you may prefer the project view then :) I like the combined set, but it does have problems in some cases (e.g. you have to switch to each flavor to see its files. personally I'd like them all the time, but strike-through'd or something, though that wouldn't work for some projects) Feb 27 21:48:53 ah, you're aware of it Feb 27 21:50:01 t0astt: don't suppose you have any anonymous (or private) fragment classes? or transition classes? Feb 27 21:50:24 groxx: Nope, all my fragments are public Feb 27 21:50:51 hi i am unable to add multiple device in sample app provided for p2pwifi direct how can i do this ? Feb 27 21:50:56 dunno then. clean & rebuild? I've never used fragment transitions. Feb 27 21:51:15 Well it happens in the app, not when launching it or anything Feb 27 21:51:21 But yeah I'll try clean & rebuild anyway Feb 27 21:52:09 t0astt: yeah, I kinda suspect something's not publicly accessible for some reason. maybe missing a constructor or something. but I really don't know :| Feb 27 21:52:27 is it possible to change method scopes from gradle? Feb 27 21:53:14 <_genuser_> groxx: I like that about eclipse. whatever is in the project folder, show it all. don't hide and show selective stuff. Or at least have a View All profile. Feb 27 21:53:39 does 'project' view not do that? Feb 27 21:53:44 <_genuser_> groxx: over time, I'll probably be ok with flipping profiles when needed. for now, I'm just looking at the gradle and all that kind of stuff. Feb 27 21:53:46 I understand that new users are moderated on the Android Developer forum, but I posted a message or two on the forum a week ago and it still has not shown up. How long should the delay be? Feb 27 21:54:04 What forum? Feb 27 21:54:11 <_genuser_> groxx: I think the proj view does that. A few of them seem to show all files, yet the order changes, so kinda makes me wonder what's going on. Feb 27 21:54:13 fbrier ;it should have been answered, resend email perhaps.. Feb 27 21:54:23 http://groups.google.com/group/android-developers Feb 27 21:55:00 _genuser_: mine's folders, then alphabetical, and it even shows .files that are normally hidden. maybe there's a setting somewhere I've been grandfathered into? Feb 27 21:55:46 groxx: nope that's the default for Project Feb 27 21:55:59 <_genuser_> groxx: hmm, I did kinda think that the project view was showing them all. but I thought I'd be more sure once I see it in explorer and know what goes in the folder. Feb 27 21:56:22 <_genuser_> groxx: I'd run it again but it will bring my computer to its knees and right now I'm working on my existing proj in eclipse. Feb 27 21:56:38 good reason :) Feb 27 21:57:08 <_genuser_> groxx: 100 tabs of chrome, eclipse, two RDP sessions, putty, and 8GB or ram seems like nothing. Feb 27 21:57:12 http://i.imgur.com/YhX8Wcp.png Oh god Feb 27 21:57:17 Why android, WHY? Feb 27 21:57:27 hey groxx, check this link: http://developer.android.com/training/implementing-navigation/temporal.html. Would my issue be caused by the "you should not add transactions to the back stack when the transaction is for horizontal navigation ... " ? Feb 27 21:57:47 (the | pipe between the buttons) Feb 27 21:59:39 t0astt: I suspect that's a UX thing, because you probably don't want to capture 'back' when swiping is so lightweight, not a framework limitation. Feb 27 22:00:03 t0astt: that said, it's possible viewpager doesn't play nicely with fragment transitions. viewpager doesn't play nicely with lots of things, in my experience. Feb 27 22:00:09 :'( Feb 27 22:04:08 Moter8: What are you doing to those buttons (to make them flat)? Feb 27 22:04:23 I'm slapping them. Feb 27 22:04:40 with style="?android:attr/buttonBarButtonStyle" Feb 27 22:04:46 AS recommended it Feb 27 22:05:05 I will try and post the question again on the forum, but if I may, it is regarding understanding how 3rd party libraries that make reference to R.class references such as a constant within R$layout.class can be bundled as .aar(s), which don't allow R.class reference, even function. It seems logical that I would get a NoClassDefFoundError, yet lots of people are using these libraries. Feb 27 22:05:27 Looks great on Lollipop, but I had to set android:showDividers="none" in parent to hide the divider thing in <21 Feb 27 22:06:49 What about ?attr/buttonBarButtonStyle (in AppCompat)? Feb 27 22:06:52 I haven't tried it yet though. Feb 27 22:07:02 anybody using the material icons that Google released? Feb 27 22:07:03 <_genuser_> so you really hate those dividers.... Feb 27 22:08:24 <_genuser_> groxx: AS does have a nice integration of VCS's. it's got decent enough mercurial support. I had to rig up a sample .hgignore myself. and it automatically puts .gitignore everywhere. Feb 27 22:08:31 I get no dividers with ?android:attr/buttonBarButtonStyle and ?attr/buttonBarButtonStyle. Hmm. Feb 27 22:08:34 <_genuser_> retrieving older version of file to compare against seems decent. Feb 27 22:09:48 TacticalJoke, not sure, eh Feb 27 22:09:55 Note that android:textAllCaps="true" can be a good idea if you're going for a material button look. Feb 27 22:10:40 https://gist.github.com/Moter8/6c569daeb78993929815 Feb 27 22:10:46 Oh, good idea Feb 27 22:11:01 BUT YEAH -- id just really like a material-button lib so I dont have to fiddle with that Feb 27 22:11:33 <_genuser_> oh don't say that. Feb 27 22:11:50 <_genuser_> you'll have people jumping down your throat with "implement it yourself" if you keep saying that.... Feb 27 22:12:36 What is buttonBarStyle? Feb 27 22:12:42 got a question, I use a "TextSwitcher" to have a "fancy" countdown, with a timer and a In and Out animation on it. It's kind of working fine, but sometime (and it seems really random), I got "blank" textview for something like a second, any idea why ? or any idea how to force the textview to "redraw" ? Feb 27 22:12:45 You applied that to the parent. Feb 27 22:17:13 TacticalJoke, yeah, AS recommended both things Feb 27 22:17:26 that may have been it Feb 27 22:18:10 blusky: .invalidate() will force it to be redrawn, but not sure what the blankness is coming from. Feb 27 22:19:06 I'd remove "android:", personally. You could be picking up a system theme (e.g., a Samsung one). Feb 27 22:19:14 AppCompat has its own version. Feb 27 22:19:28 groxx: it seems really random, gonna make a video to show it Feb 27 22:21:55 why is `Build.VERSION.SDK` deprecated? That's the only way tot get the OS name (i.e. Lollipop/Kitkat) of the device as far as I can see Feb 27 22:22:26 there's prob. an api int call? Feb 27 22:23:27 here is a video of the bug/glitch : http://www.blusky.fr/countdown.mp4 Feb 27 22:23:31 it's on the countdown Feb 27 22:23:38 ther is `Build.VERSION.SDK_INT` indeed, but that’s not really what I want, I simply need the OS name as a string. Just unsure whether `Build.VERSION.SDK` is still reliable or not Feb 27 22:23:45 sometime, it's smooth, and randomly, it is not Feb 27 22:23:53 and half switch aren't done Feb 27 22:23:55 any idea ? Feb 27 22:25:01 (it's a simple TextSwitcher, with a in and out animation) Feb 27 22:28:13 f2prateek: do you exactly / only want e.g. "KitKat", or do you want to match what the device claims the OS version is? I suspect there's a way to query the OS separately, while those strings are probably Google-specific releases. Feb 27 22:29:10 No I don’t need to any matching. Just need the OS version (KitKat or Lollipop). Feb 27 22:30:12 Build.VERSION_CODES should do Feb 27 22:30:15 if it's only that Feb 27 22:30:33 Test on a few devices, maybe you can trust it in most cases Feb 27 22:30:39 What do you need it for tho? Feb 27 22:30:42 f2prateek: what I meant to point out is that "google's android OS names" isn't going to cover all scenarios, since you have OEM variants, forks, etc. so I'd guess that the Build.VERSION.SDK's "reliability" depends on why you want to use it. Feb 27 22:31:34 in fact f2prateek, your question could be: Build.VERSION.SDK is deprecated, instead i used Build.VERSION.SDK_INT (doc even says: This field was deprecated in API level 4. Use SDK_INT to easily get this as an integer.) but i want a string Feb 27 22:32:04 just build a matching array/hashmap/whatever string name vs int version Feb 27 22:32:05 adq: you could grivially put your own int to string enum in yr code Feb 27 22:32:10 yeah or enum Feb 27 22:33:20 maybe in the android source code, there are already many usages of Build.VERSION.SDK_INT resolution into str Feb 27 22:33:58 So my SDK that collects information about the device, and the field is agnostic to the platform. So for instance, on Windows the same field is simply "Windows 10”, while on OS X it may be “Mountain Lion”. On Android I want it to be “KitKat” or similar. Feb 27 22:34:39 You just want it to be future proof? Feb 27 22:35:14 i was at the point to add, you have 0% chances previous version name / int version couples cannot change Feb 27 22:35:27 You could always just try to manually map the api version to a string, and fall back to .SDK Feb 27 22:35:30 can* Feb 27 22:35:49 Well, more like how reliably is it implemented? I don’t have many devices to test on (and they’re all Nexus ones anyway). Wondering there are know cases of manufacturers messing this one up Feb 27 22:36:01 Yeah maybe I should write my own function that maps `Build.VERSION.SDK_INT` to a string Feb 27 22:36:31 http://developer.android.com/reference/android/os/Build.VERSION_CODES.html Feb 27 22:36:32 it's there Feb 27 22:36:54 they’re not strings, they’re integers Feb 27 22:37:01 written in the previous doc: The user-visible SDK version of the framework; its possible values are defined in Build.VERSION_CODES. Feb 27 22:37:21 yes but this is the list you need Feb 27 22:37:35 It's ints, and it's only current versions Feb 27 22:39:44 Could also just drop the "kitkat" requirement, and just log "Android 20", "Android, 21", ... Feb 27 22:40:05 Or fall back to that Feb 27 22:42:12 Hmm, am I missing something? On my Sony Xperia M, Build.VERSION.SDK is returning "16" (and not "Jelly Bean" or whatever). Feb 27 22:42:59 Also, if you look at the source, it's querying the same value in both cases: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/Build.java#143 Feb 27 22:43:24 Hah Feb 27 22:43:28 yeah I thought of that, but that’s not very helpful to our end services (and we do collect the sdk int seperately though). e.g we forward it to Mixpanel who’ll then display the event as coming from a KitKat device. It’s not an engineer who’s looking as the data (most likely someone from the data anlytics team) - and they’ll likely have no idea Feb 27 22:43:28 what Android 20 is Feb 27 22:43:46 TacticalJoke: uh, well that’s awkward Feb 27 22:43:59 hey guys Feb 27 22:44:07 f2prateek: Have you been getting descriptive strings on many devices? Just curious. Feb 27 22:44:40 im building an app that uses a JNI library provided by a 3rd party, one of the methods needed to initialize the library requires a path to a specific file that needs to be loaded upon startup Feb 27 22:45:28 i've placed the file in res/raw but I've quickly learned that thats probably not gonna work, does anybody have any suggestions on where I can place a file that my app can actually get a full path to ? Feb 27 22:45:37 TacticalJoke: it’s just on this emulator I was trying out, haven’t gotten to testing it on real devices Feb 27 22:45:45 looks like I’ll jsut write my own method Feb 27 22:45:49 so do yr own int to string enum, with strings that make sense to your users Feb 27 22:49:59 FWIW, Build.VERSION.RELEASE gives us a string such as "4.1.2". Though maybe that's not enough. Feb 27 22:50:17 (Seems to be the same as in Settings > About.) Feb 27 22:53:36 https://github.com/pfn/android-sdk-plugin/blob/1.4.x/src/dependencies.scala#L140 Feb 27 22:53:44 now my plugin supports "build flavors" too Feb 27 22:54:50 \o/ Feb 27 23:00:33 pfn: that source file is downright scary :) Feb 27 23:01:05 not particularly, but ok Feb 27 23:01:27 it’s the parent syndrome: your kids are never ugly to you :) Feb 27 23:01:41 it's dense, it's not scary Feb 27 23:04:31 90% of the file is implementing interfaces in com.android.builder.* Feb 27 23:05:18 jaana, but if you call it ugly, I guess you call all scala ugly Feb 27 23:06:14 Some days I create changeset after changeset like crazy. Other days I can't make a single change for hours because I deliberate over tiny details. It's bizarre. Feb 27 23:14:08 TacticalJoke I know how that is, I try to focus on some difficult details in the morning when my brain is fresh and work on easier code changes at night when I don't feel like thinking a lot Feb 27 23:14:49 I'm still drilling at this complicated algorithm right now though and it's driving me crazy haha Feb 27 23:15:38 Are you guys making a reddit app? I see a few names from here in #reddit-dev. :D Or maybe you're sworn to secrecy. Feb 27 23:15:52 yeah I noticed you're in there too ;) Feb 27 23:16:01 I am indeed, not working with anyone though Feb 27 23:16:22 uh oh. 2 competing reddit clients. Fight! Feb 27 23:16:27 Ah, nice. I assumed you were a reddit employee. I think they're making an official client (though I could be wrong). Feb 27 23:16:34 I thought getActivity() was available so that it would always get the latest created activity instance :/ Feb 27 23:16:36 is it not? Feb 27 23:17:12 damien5314: I'm making one because I hate all the existing ones. :D Feb 27 23:17:50 I'm not much competition, just kinda felt like making one but I'm not that great at android dev yet. trying to perfect my data structure for comments and getting them to expand/collapse properly Feb 27 23:17:51 Afzal: After onAttach and before onDetach (inclusively), I think. Feb 27 23:18:07 Oh, it's cool. Competition is good anyway. :) Feb 27 23:18:42 TacticalJoke, I see, so between those calls, it's null Feb 27 23:18:43 I figure working with APIs and related frameworks is an applicable skill to a lot of jobs anyway Feb 27 23:18:46 makes sense now. Thanks! Feb 27 23:18:52 Afzal: Outside of those, yeah. Feb 27 23:19:48 damien5314: I still have to switch over to OAuth 2. ;| Feb 27 23:20:36 We have till August 3rd. Feb 27 23:20:47 I haven't gotten any sort of authentication at all yet haha Feb 27 23:21:34 This is the big announcement: http://www.reddit.com/r/redditdev/comments/2ujhkr/important_api_licensing_terms_clarified/ Feb 27 23:21:39 I think it applies to non-logged-in users too. Feb 27 23:21:47 yeah Feb 27 23:21:47 But we have several months. Feb 27 23:22:02 I'll make sure I hit all of those points before I publish Feb 27 23:22:28 For the first point, I notice that reddit sync changed its name to "Sync for reddit". Feb 27 23:22:38 Though several still use the bad naming: Reddit News, Reddit Now, etc. Feb 27 23:22:40 I'm curious what reddit is fun is going to do Feb 27 23:22:46 Fun for Reddit? haha Feb 27 23:22:50 lol Feb 27 23:23:06 In Soviet Russia, is fun reddit. Feb 27 23:23:49 "Fun for reddit" sounds like a gonewild post or something. Feb 27 23:27:25 kinda hard to dev when I start testing some code and end up browsing for 15 minutes instead Feb 27 23:27:35 that happens way too much XD Feb 27 23:28:07 Do android apps run inside containers or on top of any kind of fused or overlaid filesystem? Feb 27 23:28:21 okay seems like I'm having this weird problem with rotation >_< Feb 27 23:29:00 When I read /proc/mounts from my app, it contains extra entries at the end that are not in "adb shell cat /proc/mounts" Feb 27 23:29:02 I have a toast I wanna show but on rotate screen, I lose the getActivity reference in my fragment. I tried keeping a boolean and checking it at onAttach but it's false at onAttach Feb 27 23:30:48 wait, fragments also get destroyed on rotate? Feb 27 23:30:57 unless you retain them Feb 27 23:31:05 well... damn Feb 27 23:31:09 okay thanks! Feb 27 23:32:23 this is a sample app so I shoudn't even waste my time on fixing this :/ Feb 27 23:32:26 well they are subclassed from activity... Feb 27 23:32:47 myke, fragments are subclassed from Activity? o.O Feb 27 23:33:04 no they aren't Feb 27 23:33:13 can't you just getActivity() for the context of your toast? or is that what you're doing Feb 27 23:33:42 damien5314, that's what I'm doing but getActivity() returns null between onDetach (when rotated) and onAttach (when rotation finishes) Feb 27 23:33:54 makes sense Feb 27 23:35:43 So I've just installed Phonegap 3 with the command line interface. I would like to add the SocialSharing plugin to my app. The plugin can be found here: Feb 27 23:35:44 https://build.phonegap.com/plugins/1197 Feb 27 23:35:54 How do I go about adding that plugin? Feb 27 23:35:58 hmm, setRetainInstance seems to work just fine in this case Feb 27 23:40:30 I have one of those rickomagic android sticks with a wireless usb keyboard (mele) and i’m trying to override the buttons on the remote to do things within my app Feb 27 23:41:03 well for some reason on the new remote, two of the buttons labeled as “STB” and “TV” are not giving me events when pressed Feb 27 23:41:41 how is it possible that a some buttons come in as a KeyEvent but other’s don’t? Feb 27 23:43:02 I won’t a quick app to dump all of the keycode/keyevent data onto the screen using onKeyDown/onKeyUp and there is no data generated for only two buttons Feb 27 23:43:08 wrote* a quick app Feb 28 00:00:50 Hey all! Feb 28 00:02:14 I want Tabs that function as a filter for a list: "All", "Following", and "From Me" When a particular tab is updated, the listview simply shows the appropriately filtered results. All I'm seeing with Tabs (API 21) is the SlidingTabLayout that requires a ViewPager and thus, 3 distinct fragments, but I'd rather have 1 fragment that just gets updated. Feb 28 00:02:49 Is my desire to have that list updated instead of a new Fragment outlandish? and, if not, what should I be looking at as a widget to provide this filtering functionality? Feb 28 00:15:30 I figured it out, a phantom ViewPager Feb 28 00:17:12 explodes, I was actually trying to do that about a week ago but didn't figure it out, can you link whatever you found? Feb 28 00:48:43 damien5314: yea, i got it working but im using a package available on gradle now instead of the android tutorial thing, i have to clean some stuff up Feb 28 00:48:48 damien5314: 5 minutes, hopefully Feb 28 00:49:06 5 android minutes = 30 minutes irl Feb 28 00:49:14 haha Feb 28 00:49:32 sounds good Feb 28 00:51:19 JakeWharton, as long as Picasso.setSingletonInstance(...) has been called, will any call to Picasso use that instance? or do you have to get it somehow? Feb 28 00:51:44 that instance backs Picasso.with(..) Feb 28 00:51:53 perfect, that's what I thought Feb 28 00:52:23 and if you haven't set a singleton, you have to reconfigure it each time? Feb 28 00:54:09 setting cache, etc Feb 28 00:54:44 and does that singleton exist for other activities? Feb 28 00:59:38 any idea why a notification with setAutoCancel(true) does not leave when I click on it? I don't want to start an activity, so there's no pendingIntents, or anything Feb 28 01:21:18 set a bullshit intent Feb 28 01:27:28 Can onCreate() of a single Activity get called twice? Feb 28 01:27:36 or I should say... more than once? Feb 28 01:28:14 And I mean the same activity as in... the same instance of that Activitys class? Feb 28 01:31:05 I can't imagine onCreate being called twice without onDestroy being called in between. Have you checked for onDestroy being called? Feb 28 01:36:19 TacticalJoke: Nope. Not really checking for onDestroy right now. I'm kinda more trying to see if the same Activity object will be reused ya know? Feb 28 01:40:31 Hi, I want to use AOSP to build an external library and a corresponding test executable for that library. Is there anyway to avoid building the entire AOSP, for example by linking against dependent libraries on my test device? Feb 28 01:40:56 unraised, not that I'm aware of offhand Feb 28 01:43:02 eghdk, they do not get reused Feb 28 01:55:16 TacticalJoke: and pfn when I rotate my device, Activity onCreate gets called another time... so is that the same Activity object... or is the original object put up for GC (if nothing is keeping it around of course.) and then a new Activity object is created? Feb 28 01:56:52 It's a new object. Feb 28 02:02:31 TacticalJoke: Is there any way to connect those two activities? Like I'm trying to figure out when an activity is "recreated". Does that make sense? Feb 28 02:03:00 Like.... okay. This is a new object.... but its meant to be the "same" Activity. like a replacement activity. Feb 28 02:04:06 eghdk, you are asking about lifecycle, there are docs on it Feb 28 02:06:20 I guess you could "link" the two activities via onSaveInstanceState's bundle and onCreate's bundle. Feb 28 02:06:30 Write foo; check whether foo has been written. Feb 28 02:06:53 But it's easy enough to know what's going on: as whatitis says, it's documented. Feb 28 02:07:24 You guys know what would be the best way to "send" news from the website to the app and displaying it inside a fragment ? Feb 28 02:07:30 RSS ? Feb 28 02:09:16 eghdk: Also note that using Log.i in lifecycle methods (e.g., onCreate, onDestroy) is a great way of getting comfortable with all of this. Feb 28 02:13:53 Nightwalkerkg: Depends on the website. Feb 28 02:14:24 Some have non-RSS APIs, for example. Feb 28 02:14:37 whatitis: and TacticalJoke I understand that theres docs. But again, it's a different object. Is there any connection between those two separate objects? Feb 28 02:14:51 TacticalJoke, what if it dosen't have an RSS API ? Feb 28 02:15:02 ActivityManager is managed by the system, so thats why I'm thinking there might be something that relates them. Feb 28 02:15:49 Like... why is a Bundle passed in for me for my onCreate method? Feb 28 02:15:59 Also, how do news apps update content inside without updating the app itself ? Sync Adapter ? Feb 28 02:16:04 Nightwalkerkg: What website is it? Feb 28 02:18:25 TacticalJoke, HexChat crashed. It's a website for my school : http://vts.edu.rs/ Feb 28 02:19:21 Ah. I'm guessing they have no API at all. Feb 28 02:19:33 hooray for scraping! Feb 28 02:19:56 TacticalJoke, yeah. xD Feb 28 02:20:03 eghdk: I'm confused by your questions. You get the same bundled data in onCreate as you wrote in onSaveInstanceState because the system is designed in that way. Feb 28 02:20:24 It's a way to persist state despite the old object being destroyed. Feb 28 02:20:40 Yeah, but can I do anything to pass data into that onCreate? Feb 28 02:20:52 Yes, by writing to the bundle in onSaveInstanceState. Feb 28 02:21:16 So that actually travels across objects? Feb 28 02:22:04 TacticalJoke: I think thats what was confusing me. I thought if onCreate gets called again it was the same object, because of the bundle that I get. Feb 28 02:22:14 eghdk: and between processes. if your app dies in the background, that's how you can recreate it when they come back. Feb 28 02:22:44 Because I thought to myself... how the hell do I get a bundle object from my activity even my old activity was killed. Feb 28 02:23:56 Hi everyone. Feb 28 02:24:07 It's possible that the bundle is written to disk, but I'm not sure whether that happens or not. Feb 28 02:24:20 The reason I think it might be written to disk is that it, as groxx says, survives process kills. Feb 28 02:24:51 TacticalJoke: Wait really? between processes too? Hot damn. Will the system ever not keep the bundle for my activity? Or does the system try to hold onto it as long as it possibly can? Feb 28 02:26:34 hi everybody, i'm looking for help using baseactivity abstract class, i've looking on google but i've problems Feb 28 02:26:45 I doubt it gets written to disk, it's probably just saved in memory by activity manager Feb 28 02:26:59 on 5.0 at least it does get written to disk - it survives reboots Feb 28 02:27:07 First time on the channel... Can anyone suggest where I can find sample code /tutorials related to audio matching? I'm attempting to build an app that matches snippets against recordings, (eg: search a speech recording for the word 'economy', by speaking the word into the app) Feb 28 02:27:09 oh, good point Feb 28 02:27:11 and there's no reason to _not_ write it to disk, saves memory Feb 28 02:27:21 yeah, 5.0 definitely redid a lot of that sort of thing Feb 28 02:27:41 android-dev431: Best to just ask your direct question. :) Feb 28 02:27:55 before 5.0, I don't think the activity states were persisted across reboots at all Feb 28 02:28:37 eghdk: Note that it doesn't keep the bundle if they click Back. Feb 28 02:29:08 It's only for restarts (rotations, restarting after process kills, etc.). Feb 28 02:29:26 ekz: that sounds like some pretty advanced audio processing Feb 28 02:29:43 The user clicking Back is very much "Okay, I'm done with this activity now". Feb 28 02:29:48 TacticalJoke: OHKAY. thanks. thats helpful. appreciate it Feb 28 02:29:49 JesusFreke : yeah i was afraid of that :-) Feb 28 02:29:59 "acoustic fingerprinting" Feb 28 02:30:19 audio magic. hence 'shazam'. ha. Feb 28 02:30:56 just found this though... we shall see https://github.com/gvsumasl/EchoprintForAndroid Feb 28 02:31:03 but yeah, no clue :) Feb 28 02:31:03 yeah. if you know how to do acoustic fingerprinting, you could probably figure out a way to do it in android. if you don't, it may be hard Feb 28 02:31:26 My goal is to use an header in each activity of my app.To do that I've an activity_header.xml which is include in each acitivy.xml who needs it. The comportement of this activity_header is settled by my BaseActivity which is extended by SubsActivities. But it doesn't work Feb 28 02:31:54 ekz: btw "fingerprinting" like shazam uses tends to be only for _precise_ matches, not fuzzy. so it'll catch precise beat / relative-pitch changes, but not someone mimicking it. Feb 28 02:32:05 fuzzy audio matching is entirely different, in most cases Feb 28 02:32:50 groxx: makes sense.. this might be fuzzy... more of a challenge for sure. Feb 28 02:32:55 android-dev431: What are the symptoms of the malfunction? Feb 28 02:33:20 TacticalJoke: it doesn't work! duh :) Feb 28 02:33:30 :D Feb 28 02:33:40 the word 'economy' could be vocalized in many different ways... but with songs, the words do have specific pitch and tone Feb 28 02:34:01 more of a challenge than I thought, it seems... Feb 28 02:34:05 ekz: what are you actually trying to do? Feb 28 02:34:12 like, what is the end goal? Feb 28 02:34:27 what doesn't work is that BaseActivity get Button from activity_header to setOnClickListener (when I click I send a log.v to be sure all is ok). But it doesn't work. Of course if I get Buttons directly from SubActivity it works .. Feb 28 02:34:30 JesusFreke: well... it really is just that... Feb 28 02:34:42 an app that can reference a recording Feb 28 02:34:54 and search for certain spoken keyphrases Feb 28 02:35:00 ah Feb 28 02:35:18 sounds almost like hotword detection Feb 28 02:35:32 ekz: I forget if there are offline speech-to-text APIs on android... if there is, you could run it through the entire video (or use subtitles, if it has them), and then just do a normal text search. obviously it'll get a lot wrong though Feb 28 02:35:38 ooh. now that soudns like a good name for the app.. "hotword" Feb 28 02:35:39 :-) Feb 28 02:35:58 groxx: yes.. offline speech to text could definitely work Feb 28 02:36:08 not video, just audio, even.. Feb 28 02:36:17 i could def start with speech to text apis Feb 28 02:37:10 android-dev431: I'd rather you asked in the channel. Plus then other people can help too. Feb 28 02:37:33 android-dev431: I have a few hypotheses. One of them will (I hope) be pinned down if you post the code. :) Feb 28 02:38:33 ekz: hm. glancing through it looks like it might only be for microphone purposes, not via a recorded file :\ Feb 28 02:38:46 How do you suggest I post the code? Is there a balise to make it clear? Or should I provide a link with the code ? Feb 28 02:39:08 http://pastebin.com/ is the usual way. Feb 28 02:39:39 :TacticalJoke thank u :) Feb 28 02:43:17 here it is http://pastebin.com/vGa7DARD Feb 28 02:44:25 You're calling setContentView twice in the subclass. Is that allowed? Feb 28 02:46:29 In any case, I suspect that that'll malfunction at some level. Feb 28 02:46:33 e.g., creating a whole new button. Feb 28 02:46:50 I'd try removing the setContextView call in MenuDeliActivity. Feb 28 02:46:53 Content* Feb 28 02:46:59 :TacticalJoke where do you see that I'm colling it twice? Feb 28 02:47:24 MenuDeliActivity.onCreate calls BaseActivity.onCreate which calls it (#1), and then MenuDeliActivity.onCreate calls it (#2). Feb 28 02:47:35 Yes, i've seen it from https://stackoverflow.com/questions/8821240/android-how-to-create-my-own-activity-and-extend-it Feb 28 02:48:08 Note that they *don't* make this mistake. Feb 28 02:48:21 There's no setContentView in the child class in the accepted answer. Feb 28 02:48:46 oh yes indeed ! Feb 28 02:50:12 Okay it is solved ! I'm so ashamed ! Feb 28 02:50:39 It's often easier for a fresh pair of eyes to see a mistake. Feb 28 02:50:58 yeah. try an eye transplant, those can help Feb 28 02:51:04 Yes but's a very basic mystake ! Base of Object heritage .. Feb 28 02:51:05 :) Feb 28 02:51:18 Lol thank u in any case ! Feb 28 02:52:25 I guess it's one of those "repetition" mistakes: we almost always call setContentView in onCreate. When I saw the SO answer it felt wrong (even though I knew it was right) for this reason. Feb 28 02:54:58 can a kind soul plase explain why this code doesn't work. It is the overridden getView method from extending ArrayAddapter http://pastebin.com/wsdcUNN7 Feb 28 02:55:30 DadFoundMy: what's not working? Feb 28 02:56:00 'findViewById' should be 'convertView.findViewById'. Feb 28 02:56:20 Thank u again and good night ! :) May be see you soon. Now i've discovered this irc I'll probably come back, but I'll try to be more concentrate before asking something next time ! Feb 28 02:56:38 groxx: when I call setAdapter i get an error occuring from the lines that setText Feb 28 02:56:48 TacticalJoke: i had that, but still got an error Feb 28 02:56:51 i will try again though Feb 28 02:57:25 findViewById is calling YourActivity.findViewById, right? (I'm assuming this adapter is an inner class of the activity.) Feb 28 02:57:36 TacticalJoke: it is Feb 28 02:58:22 So right now I presume you're getting a NullPointerException. Feb 28 02:59:02 TacticalJoke: im not actually get a descriptive error in logcat. i am trying that now though **** ENDING LOGGING AT Sat Feb 28 02:59:59 2015