**** BEGIN LOGGING AT Fri Dec 18 02:59:59 2015 Dec 18 03:02:11 No need to say "hi" to 417 people Dec 18 03:02:41 CedricBeust: what if everyone answered ? Dec 18 03:02:48 Exactly. Dec 18 03:06:14 hi drinfernoo Dec 18 03:06:24 Ologn sup Dec 18 03:06:46 my app installs are up Dec 18 03:06:55 that's what's up Dec 18 03:07:58 Which app? Dec 18 03:08:39 drose379, https://www.jwz.org/xscreensaver/download.html Dec 18 03:09:07 Nice Dec 18 03:09:11 version 5.35 will be an Android barn-burner Dec 18 03:25:04 Ologn sweet lol Dec 18 03:33:39 inclusion of org.apache.http.legacy.jar into a legacy project. Can I add to libs of project and if so which .gradle should I add it to if there was not a app.gradle file Dec 18 03:36:28 Ologn: screenshots ? Dec 18 03:36:45 is ascii aquarium included ? Dec 18 03:37:50 gordon_, https://www.youtube.com/watch?v=_cZA51FXm-4 Dec 18 03:37:57 You can compile what's there now Dec 18 03:38:05 Although the next version will be bigger Dec 18 03:38:54 Ologn: MacOS 10.7 Intel or newer is required. Dec 18 03:38:58 I wanted it for mac Dec 18 03:40:59 There's a DMG for MacOS 10.7+ Intel. Also the code is there if you want to port it to other MacOS versions and architectures Dec 18 03:41:16 The default Android compile does arm, mips, x86 etc. Dec 18 03:41:48 ok Dec 18 03:42:00 hmm, so... qicr does a lot of the full-screen views without status bar and stuff and it needs a lot of custom padding and stuff, I wonder how much of a pain in the ass it would have been if I did all the layouts in xml Dec 18 03:43:36 I guess I would have defined a shitton of dimens constants in a bunch of files Dec 18 03:43:40 maybe it would have been reasonable Dec 18 03:46:34 then again, navbar width/height and statusbar height aren't public resources are they Dec 18 03:46:39 nor are their presence Dec 18 04:24:24 so here's the setup. There is a common package, and two packages which depend on that common package Dec 18 04:25:06 I'm working in the common package, and I want to access a class in packageA Dec 18 04:25:27 right now they're using a facade pattern, and attaching the implementation at runtime. I think this setup sucks Dec 18 04:26:07 common package shouldn't access package A Dec 18 04:26:28 circular dependencies between packages is a code smell Dec 18 04:27:32 dude it sucks. It keeps me up at night Dec 18 04:27:49 is it me or did the navigate symbol functionality in Android 2.0 preview does not include looking up method names Dec 18 04:28:00 RustyShackleford maybe read this https://en.wikipedia.org/wiki/Dependency_inversion_principle Dec 18 04:28:05 that stuff was extrememly useful Dec 18 04:28:09 D is 'dependency inversion' in SOLID Dec 18 04:28:24 I'm trying to find a slick way to implement this fix. I'm going to have to press on with the retarded setup they have already Dec 18 04:28:42 they've got it backwards: common should depend on packageA and packageB Dec 18 04:29:02 but i'm sure that would break something too Dec 18 04:33:15 the Facade pattern seems like such a hack Dec 18 04:33:28 and whoever architected this loves that pattern Dec 18 04:34:52 wow, this is really interesting http://www.bloomberg.com/news/articles/2015-12-18/humans-are-slamming-into-driverless-cars-and-exposing-a-key-flaw Dec 18 04:35:17 "They obey the law all the time, as in, without exception. This may sound like the right way to program a robot to drive a car, but good luck trying to merge onto a chaotic, jam-packed highway with traffic flying along well above the speed limit. It tends not to work out well." Dec 18 04:35:33 "Should they teach the cars how to commit infractions from time to time to stay out of trouble?" Dec 18 04:35:56 this is the first time i've read about the ethics or programming something autonomous to break the law Dec 18 04:36:01 thats an interesting question Dec 18 04:36:37 is it wrong to break the law if it's for safety? Dec 18 04:37:43 but yeah. I probably hit 80 in a 55 zone on the way to work every day Dec 18 04:37:58 and I don't drive like a dick... most of the time. Thats just the flow of traffic Dec 18 04:39:09 like what they mentioned in the article, sometimes you have to assume others will make way when trying to cut over lanes, etc Dec 18 04:39:41 i think in the real world there are too many open ended situations Dec 18 04:40:05 maybe I should actually read the article Dec 18 04:40:17 completely unforeseeable Dec 18 04:40:49 "“Driving is a social game.”" Dec 18 04:42:28 can you imagine getting stuck behind a driverless car doing the speed limit Dec 18 04:42:40 who do you cuss out? Dec 18 04:46:23 DAMN YOU SERGEI! Dec 18 04:46:42 er, SERGEY!! Dec 18 04:46:59 Leeds: no shouting or the nerds will maul off ur face Dec 18 04:47:09 b4b: I can take them Dec 18 04:51:04 RustyShackleford the better solution imho is just ban cars, make everyone walk or ride bicycles :D Dec 18 04:51:35 22 miles is a pretty long bicycle ride Dec 18 04:51:42 nah, 1 hour Dec 18 04:51:48 if its open road :D Dec 18 04:52:20 i'll take a nice warm car Dec 18 04:52:26 it's december, have you noticed? Dec 18 04:52:29 I'll take public transport Dec 18 04:52:33 no, its 55 here :D Dec 18 04:52:48 Leeds: eh... not really an option for me Dec 18 04:52:53 i just saw a few dandelions pop up in the fields, i swear Dec 18 04:52:59 public transit is great when its convenient Dec 18 04:53:15 we're in the middle of a (official!) cold spell... down to 16 today Dec 18 04:53:24 at this rate I'll have to put clothes on soon Dec 18 04:53:26 i'd struggle with public transportation being a germ-a-phobe. Dec 18 04:53:32 I looked into it. It would be cheaper, but it's 2 buses and a train Dec 18 05:04:05 ladies Dec 18 05:05:23 hey ron_frown Dec 18 05:07:11 22 miles is not a good bike commute Dec 18 05:07:20 unless you're part of the 400W club Dec 18 05:07:45 heh, i used to ride 20 miles every morning before work :D Dec 18 05:07:46 35 km Dec 18 05:07:53 hmm Dec 18 05:08:06 I bike 25mi to work Dec 18 05:08:23 what Dec 18 05:08:37 how much does it take ? Dec 18 05:08:45 ? Dec 18 05:08:52 https://www.ducatiseattle.com/sites/default/files/SF-848_2011_Studio_Dark_C-02-NC_1920x1280.mediagallery_output_image_%5B1920x1080%5D.png Dec 18 05:08:55 hahaa Dec 18 05:09:30 yeah thats what i thought :D Dec 18 05:11:04 according to some random website which overlays circles on gmaps... if I travel 25 miles in any direction from my current location - home - I'd have to take my passport and/or I'd need to take a boat Dec 18 05:11:53 if I went north, I'd have to get a visa... Dec 18 05:12:05 Leeds was just reading about how strict China is about maps Dec 18 05:12:10 but that's because you live in HK Dec 18 05:12:56 g00s: I remember when the Simpsons did their China episode, and they got the map wrong... they went to the Chinese embassy for a visa, and there was a map on the wall which showed Taiwan in a different colour to (the rest of) China Dec 18 05:13:16 yeah, that kinda thing :D Dec 18 05:13:41 ha-ha Dec 18 05:16:30 Leeds: you live in HK? Dec 18 05:16:43 * Leeds checks outside window Dec 18 05:17:01 tall buildings, vague post-colonial atmosphere, many Chinese people... yup Dec 18 05:17:17 Leeds: Are you a US citizen by chance? Dec 18 05:17:26 * Leeds checks passport Dec 18 05:17:28 nope. Dec 18 05:17:45 I should really know where I live and what passport I hold without checking :) Dec 18 05:18:02 ah ok. I've been interested in moving to HK for quite awhile but I know the process for US citizens is daunting Dec 18 05:18:43 apart from the issue of the US taxing citizens on global income, I don't think there's any significant difference between US citizens and other foreigners, at least from the HK end Dec 18 05:19:46 well thats what I meant, just foreign in general. Dec 18 05:19:57 in gradle build how to add another 'androidTest' dir? Dec 18 05:20:04 that's pretty easy, as long as you can get a job... Dec 18 05:20:56 Yea I know its simplified if your part of an established company. What I was looking into was just moving there being self-employed Dec 18 05:21:48 yeah, that's hard - although it's technically what I'm doing... happy to chat about it, but it's pretty off-topic, and I should go out and get lunch, do errands, etc. Dec 18 05:22:36 Yea I was just curious, it seems like a cool city. Dec 18 05:22:49 it is cool, yes Dec 18 05:23:17 Leeds air quality OK there ? Dec 18 05:25:51 g00s: not too bad - nothing like as bad as Beijing, for example Dec 18 05:26:06 there are days when it's not great Dec 18 05:26:10 beijing looks toxic as hell Dec 18 05:27:15 i was shocked to read the other day, at least 10 cities have worse air than Beijing - many meing in India Dec 18 05:28:42 one of the big issues is that there are different types and measures of pollution, some longer-term than others, some more naked-eye-visible, etc. Dec 18 05:29:47 oh yeah, like that methane plume of the coast of California, you can't see it unless you use IR camera Dec 18 05:30:06 those people were all getting sick and needed to be moved Dec 18 05:30:16 what a shitshow, will be months before a fix Dec 18 05:30:20 it can also depend on whose figures you use - at one point, the US embassy in Beijing was publishing its own figures, using a sensor in the embassy, because they didn't trust the government figures Dec 18 05:30:43 Leeds you have to get yourself an air quality egg :D Dec 18 05:31:05 I trust the HK government figures :) Dec 18 05:31:21 http://airqualityegg.com Dec 18 05:32:07 also, there can be big differences between the figures from roadside sensors and those on the top of buildings, for example... Dec 18 05:32:20 you start to learn about this stuff when you're here for long enough :) anyway, lunch Dec 18 05:32:34 cya Dec 18 05:56:17 is the ActionBarDrawerToggle class no longer needed? i see in most apps the drawer opens up over the ActionBar, so there isn't anything you can see regarding animations, etc Dec 18 06:10:53 I thought the smog was mostly nonexistent in HK Dec 18 06:11:18 g00s, and you still see the animation in the toggle up until the point that the icon gets occluded Dec 18 06:11:32 it's not much, but it's there Dec 18 06:11:43 and it's visible in all apps, needed? no, still nice? a little Dec 18 06:12:22 pfn actually i dont, at least on gdrive, calendar, google+ , etc Dec 18 06:12:53 I guess that's changed recently Dec 18 06:12:54 not in keep either. i guess only play books Dec 18 06:13:01 it was still animating a tiny amount in the past Dec 18 06:15:25 hmm, new drawers in qicr are rad, heh Dec 18 06:17:01 Leeds you'll like this https://www.windyty.com/?22.379,114.394,10 Dec 18 06:18:14 is there a retro gaming emulation irc channel? Dec 18 06:19:49 https://youtu.be/PyTL_Mq6HpI Dec 18 06:19:49 fancy Dec 18 06:22:40 pfn that is cool, but maybe not enough opacity Dec 18 06:22:45 looked like text on text Dec 18 06:23:22 the background is intentionally translucent Dec 18 06:23:26 now the question is, how will people discover it Dec 18 06:23:37 that was shown already, in the first few seconds Dec 18 06:23:43 there's a button in the lower left when there's a new notification Dec 18 06:24:11 ah Dec 18 06:24:13 once it slides open once, and gets closed, the intuition is to swipe the toolbar down to open it Dec 18 06:24:29 that's why the input drawer has a visual cue, the up arrow Dec 18 06:24:49 maybe put a down arrow somewhere in ab Dec 18 06:26:09 luckily tons of material vectordrawables :D Dec 18 06:26:36 oh yeah, and you have to rotate it so it points up when its pulled down :D Dec 18 06:26:54 Best on android The last few updates further improved this already amazing app. It does so many things that no other IRC client does, not even any of the desktop ones. I wish there was a donate version available, so that I could support the developer. Dec 18 06:26:57 heh, updated user review Dec 18 06:27:45 i think one of the coolest desktop ircs i used was hydrairc, i really liked their merged channel vue Dec 18 06:27:56 seems abandoned long ago Dec 18 06:28:10 merged channel view sounds like how ircII used to operate Dec 18 06:28:15 all traffic, 1 window Dec 18 07:06:15 <_genuser_> how much do you guy worry about DI and all that in your code. Dec 18 07:06:29 <_genuser_> I'm starting to see DI and a bit of violation of encapsulation. Dec 18 07:06:41 <_genuser_> s/and/as/ Dec 18 07:14:42 I'd say DI improves encapsulation Dec 18 08:06:46 hey i got a dumb question Dec 18 08:07:03 under settings, location, it lists my app and says its using location... when i click it the app crashes Dec 18 08:07:14 or settings crashes, what is supposed to happen when that is clicekd Dec 18 08:18:43 people Dec 18 08:19:02 how to make entie textView area clickable? Dec 18 08:19:25 i mean not only text but empty space around it.... .. Dec 18 08:19:56 just set an onClickListener on it Dec 18 08:20:06 i did Dec 18 08:20:28 that's how it's done. so if it isn't workin then... Dec 18 08:20:35 show errors/code etc Dec 18 08:21:16 there is no errors, but it reacts only on text clicking Dec 18 08:21:31 edittext or textview? Dec 18 08:21:38 textview Dec 18 08:29:24 anyone know what is supposed to happen when the user clicks on my app from the settings/location menu? Dec 18 09:25:07 Hello, there is some way to turn on notify led manually? Dec 18 09:29:01 Hello. Anyone used ORM for android SQL databases? Are they good or the android lib is still the best Dec 18 09:35:57 so is there a way to pass a DialogFragment a bundle for onCreate Dec 18 09:37:41 no, you can customize your fragment for receive a bundle when an istance is created Dec 18 09:38:43 like this: class X extends DialogFragment{ public X(Bundle y){...} ... } Dec 18 09:38:53 ok so i can create a static method to create the DialogFragment is there any way to get that to pass into onCreateDialog through the argument or do i have to use my own custom property Dec 18 09:40:01 but do you use a class that extends Bundle? Dec 18 09:40:01 i guess not Dec 18 09:40:16 for yout's bundle Dec 18 09:40:20 your's* Dec 18 09:40:30 of course not Dec 18 09:40:42 ah setArguments is that the same bundle that gets passed to the oncreate Dec 18 09:41:02 either way, cool Dec 18 09:42:00 what would be the purpose of overriding the bundle? i guess to accept custom objects/values, considering there are no categories, seems a bit messy to me Dec 18 09:46:55 gordon_: you said a few days ago something about ExoPlayer, have you found a solution? Dec 18 09:48:30 [javac] error: Source option 1.5 is no longer supported. Use 1.6 or later. keep getting this error Dec 18 09:49:29 is there a way to search aosp code without downloading the whole thing? Dec 18 09:49:36 eg online site Dec 18 09:54:12 aha it was javac 1.9 causing the issues Dec 18 09:54:29 Tecan: just change sourceCompatibility in your build.gradle to 1.6 Dec 18 09:54:37 Or 1.8 and use retrolambda Dec 18 09:58:45 Hello, there is some way to turn on notify led manually? Dec 18 09:59:02 justJanne: to what ? Dec 18 09:59:06 mhhh found the source Dec 18 09:59:12 github has a copy Dec 18 09:59:21 i might have found it, but not sure what the problem was Dec 18 10:00:27 gordon_: because I'm trying to get ExoPlayer to work, too, and am having some trouble. It's a very different concept compared to what VideoView exposes. Dec 18 10:01:29 justJanne: depends on your format Dec 18 10:01:44 the easiest way to get it work, is to check example app on github Dec 18 10:01:52 and simply compy classes like DemoPlayer Dec 18 10:01:57 look at player activity Dec 18 10:02:05 and then you will be goot Dec 18 10:02:06 Well, it's not as simple as "put a view there, do @Bind, do .setParh, then mplay()" Dec 18 10:02:07 *good Dec 18 10:02:15 no, it's not Dec 18 10:02:28 you need to create videoRenderer and audioRenderer Dec 18 10:02:32 Yeah :/ Dec 18 10:02:38 depends on your format / stream Dec 18 10:03:01 the most tricky part is when app goes to background Dec 18 10:03:09 Yup. Dec 18 10:03:11 in my case movie starts from start Dec 18 10:03:16 but it plays Dec 18 10:03:22 Is there a simple way to let at least audio run in background? Dec 18 10:03:28 maybe if I got local file, not mp4 from internet it would work Dec 18 10:03:38 hmm Dec 18 10:03:44 havent done that, but.... Dec 18 10:03:47 I'm doing all mp4 from web, too. Even partially via DASH Dec 18 10:04:26 http://www.programcreek.com/java-api-examples/index.php?api=com.google.android.exoplayer.ExoPlayer Dec 18 10:04:30 that might be helpful too Dec 18 10:05:04 http://stackoverflow.com/questions/29623030/can-not-play-video-playlist-in-background-mode-using-exoplayer Dec 18 10:05:09 have you seen that ? Dec 18 10:05:42 personally what I would do is to create service which would play music only Dec 18 10:06:55 Hm. Well, that so issue won't happen with me, as the playlist is server-side, and live-generates. Dec 18 10:06:57 *d Dec 18 10:07:10 So I never know what I'm going to play next until I get the message to do ao Dec 18 10:07:13 *so Dec 18 10:09:44 no one know how to turn on/off notify led manually? Dec 18 10:11:31 justJanne: I'm not sure how to do it without some research. But... if you find solution, ping me please. I'm interested Dec 18 10:12:38 gordon_: I was about to say the same ... Dec 18 10:14:34 haha Dec 18 10:26:22 Hello. Anyone used greenDAO Dec 18 10:29:47 nope Dec 18 10:29:55 vedu: ask question, it will be quicker Dec 18 10:31:58 How to start using greenDAO to manage my SQL database. I can only find code generating tutorials. Is that the way to go? Dec 18 10:35:16 there are better solutions that greenDAO Dec 18 10:35:18 (dbflow) Dec 18 10:35:33 but... Dec 18 10:35:35 http://greendao-orm.com/documentation/ Dec 18 10:36:46 (ormlite) Dec 18 10:39:22 Huh, Rx support in Realm. Dec 18 10:39:23 Nice. Dec 18 10:40:17 you must be kidding me Dec 18 10:40:22 :O Dec 18 10:40:27 finally Dec 18 10:42:59 Mavrik: thanks for news Dec 18 10:45:28 hi, can i chek if the user shared a content in facebook using my app? Dec 18 10:47:20 facebook sdk maybe Dec 18 10:48:02 t0th_-_: facebook admin panel Dec 18 10:50:08 thanks Dec 18 11:14:23 dev.twitter app/api has analytics like facebook ? Dec 18 11:14:50 t0th_-_, you mean fabric? Dec 18 11:15:16 i will put a share button in my application, i need see the statistics Dec 18 11:15:38 you can do that with the fabric api yes Dec 18 11:16:00 we use fabric, it is easy to integrate? Dec 18 11:16:03 thanks, danijoo Dec 18 11:16:20 I dont use their statistics sorry Dec 18 11:16:24 i only know its possible Dec 18 11:16:28 But I only use crashlytics Dec 18 11:17:04 you think crashlytics is better than bugsense? Dec 18 11:17:13 never tried bugsense Dec 18 11:17:19 im happy with crashlytics though Dec 18 11:18:47 yes Dec 18 11:19:14 Even though crashlytics is now part of the bloated fabric suite. Dec 18 11:19:41 Mavrik, yup. and their As plugin is horrible Dec 18 11:19:45 AS* Dec 18 11:19:58 Answers analytics is pretty nice though Dec 18 11:23:03 t0th_-_: the share count was just removed from twitters api Dec 18 11:23:11 So, no, you won't have luck, afaik Dec 18 11:23:59 :( Dec 18 11:46:32 android studio 2.0 Preview 4 is out Dec 18 11:46:45 includes an update to intellij 15.0.2 Dec 18 11:46:55 nice Dec 18 11:48:17 hope it addresses some instant run stuff Dec 18 11:48:55 cant test the update right now. Im in a work flow :p Dec 18 11:52:47 I'm still angry they tripled compile times just to get instant run working. Dec 18 11:53:16 they did? Dec 18 11:53:23 it didnt triple for me.. Dec 18 11:53:33 do you have instant run enabled? Dec 18 11:53:39 Yup. You can't use incremental compilation or multicore compilation anymore. Dec 18 11:53:43 It now uses javac, Dec 18 11:53:56 While before you could use alternative compilers, Dec 18 11:54:00 Like the eclipse compiler. Dec 18 11:54:21 recycler view is awesome Dec 18 11:54:30 (Which also has the awesome feature of even compiling when the code has syntax errors — neat when trying to test one class while another isn't yet done) Dec 18 11:55:18 justJanne: when I want to test something.. I just write unit test ;) Dec 18 11:55:20 Going from multicore incremental compilation to single-core non-incremental increases compile times a lot. Dec 18 11:55:47 gordon_: yes, but what if you have a class to test with two methods: one which works, one which isn't even fully written. Dec 18 11:56:03 I can compile and test the first one while the second one still have syntax errors. Dec 18 11:56:11 Used to support that, was pretty awesome. Dec 18 11:56:19 hmm Dec 18 11:56:21 sounds fishy Dec 18 11:56:53 Well, it's just replace the body with a "throw new RuntimeException..." Dec 18 11:57:01 During compilation. Dec 18 11:57:07 Super awesome stuff Dec 18 11:57:24 I just press strg+/ :p Dec 18 11:58:06 Yes, obviously, but I'm more annoyed about the compile time than the rest. Dec 18 11:58:28 i didnt experienced a big increase in compilation time Dec 18 11:58:29 Especially as I'll now need to keep two instances of IDEA around, one with instant run, one with fast compilation. Dec 18 11:58:47 danijoo: did you enable incremental multi core compilation in the old one even? Dec 18 11:58:47 But im using kotlin+multidex so my compilation time is huge anyways :p Dec 18 11:58:53 Per default most don't. Dec 18 11:59:12 +proguard for releas Dec 18 12:00:07 proguard is eeeviiill Dec 18 12:00:13 At least when you use it for obfuscation. Dec 18 12:01:09 yeah. But theres no get arround because I dont want the whole kotlin stdlib sitting in my apk Dec 18 12:04:30 That's why I said "for obfuscation" ;P Dec 18 12:05:02 its even super slow wityout ;) Dec 18 12:05:08 compared to no proguard at all Dec 18 12:16:35 my compile time went down a bit Dec 18 12:27:00 If I have an app installed on my phone that was build in release mode can I pull the database? Dec 18 12:29:46 eghdk, if your phone is rooted, yes Dec 18 12:30:51 not rooted Dec 18 12:31:04 then no Dec 18 12:37:09 danijoo: not even via adb backup? Dec 18 12:37:28 try it Dec 18 12:37:46 I am, but I"m getting a file not found for when I set which file to save to on my desktop Dec 18 12:38:14 not sure if I can just do adb backup ... or it has to be adb shell backup or something Dec 18 12:39:24 Oooh. I think it worked! Dec 18 12:39:32 That is scary. Dec 18 12:39:51 I just removed the -f and the file name Dec 18 12:40:03 And the android device popped up a backup dialog Dec 18 12:41:42 eghdk, u should just root your phone for development :) Dec 18 12:41:47 makes this way easier Dec 18 12:42:42 danijoo: my dev phone is rooted, but I'm having an issue with one particular device, and I want to peek into its db to see if there's some obvious logical error. Dec 18 12:43:07 So now I have an android backup file, and I just need to figure out how to open it up. Dec 18 12:48:06 maybe updating to preview 4 was a mistake. Anyone know where the issue tracker is for android studio? Dec 18 12:48:38 storkme, just the general android issue tracker Dec 18 12:55:52 Aka /dev/null Dec 18 12:56:38 just wanted to check if anyone had run into the same issue and maybe if i'm lucky provided a workaround... turns out i'm not lucky, so back to android studio 1.5 i go~ Dec 18 12:57:52 storkme, whats the issue? Dec 18 12:58:50 compiling project failed because multiple dex files define.. , think it was R.anim or something Dec 18 12:59:37 did you do the usual stuff (cleaning, invalidating ...) Dec 18 13:00:04 yep yep Dec 18 13:00:55 I had similar issues yesterday, somehow, the 4th try worked, with no changes. Dec 18 13:01:03 Schrödinger's compiler Dec 18 13:01:12 You never know if it's gonna work or not. Dec 18 13:06:17 hi, suppose I have one hundred pojos that I need to convert in strings Dec 18 13:06:37 do I have to use a unique new Gson().toJson() for each one Dec 18 13:06:45 or can I reuse the same Gson instance? Dec 18 13:07:16 yes Dec 18 13:12:16 thank you another question Dec 18 13:12:50 never mind, will test myself Dec 18 13:13:58 can I pass data to toJSon that I dont specify which class it is Dec 18 13:14:09 like supose my func takes obj as a param Dec 18 13:14:26 the obj is a pojo but the function doenst know which one Dec 18 13:14:38 can I still gson.toJson() it? Dec 18 13:14:59 Not really. Dec 18 13:15:05 if you do that it will delete the system Dec 18 13:15:06 Oh, wait. Dec 18 13:15:12 toJson always works. Dec 18 13:15:18 the reason I want to do that is because I have 5 or 6 pojos Dec 18 13:15:20 Just fromJson requires the class Dec 18 13:15:28 and I dont want to write one function to it class type Dec 18 13:15:57 gson.toJson(someObjectNotKnownToTheFun) Dec 18 13:16:01 toJson will just read the objects fields Dec 18 13:16:02 Just write a function that takes Serializable and then .toJson's it Dec 18 13:16:08 it doesnt care what object it is Dec 18 13:16:51 ah so if I use Object as the type the compiler will give me an error Dec 18 13:17:02 but if I use serializable it will accept it? Dec 18 13:17:20 try it out Dec 18 13:18:00 I have a Dialog fragment that contains a TimePicker as well as a DatePicker.. whenever the Dialog Fragment gets launched via DTD.show(getFragmentManager(),"DateTimeDialog_dialog"); it just shows a small grey block right in the middle of the screen ? Dec 18 13:18:11 but my object is a pojo, i supose it does not extend serializable?? Dec 18 13:18:21 JFlash, learn java Dec 18 13:18:25 still, I have been using toJSon with my pojos and it works fine Dec 18 13:18:55 danijoo, cheap irc bullying will not help my case. answering the question will Dec 18 13:19:24 I prefer the first :) Dec 18 13:19:37 well that is obvious Dec 18 13:22:21 https://www.reddit.com/r/iphone/comments/3x9fqf/facebook_app_now_over_100mb/ holy... Dec 18 13:26:44 Yoah, Google Chrome is similar, too. Dec 18 13:26:52 Total waste of storage. Dec 18 13:27:05 You can now install 20 large apps on cheap phonws Dec 18 13:30:43 danijoo: Well I sometimes have trouble keeping my app below 100Meg when running Dec 18 13:31:31 cart_man: what are you doing in your pp? Dec 18 13:31:34 On rotation of my activity (so onCreate()), I'm always creating a new fragment and adding it. This seems... unnecessary. Potentially leaking the old fragment? Does anyone have any input on this? Dec 18 13:31:34 *app Dec 18 13:40:04 guys the compiler is not happy with this: Dec 18 13:40:06 toDebugInfo(LogHelper.getSavedTraffic(getContext())); Dec 18 13:40:31 getSavedTraffic returns a typed list and toDebugInfo expects a list of type Object Dec 18 13:40:38 like this List Dec 18 13:45:40 changing to List made the compiler smile, not sure if it will not explode Dec 18 13:47:13 Is there any reason why I wouldn't getIntentExtra after rotating my activity? I have an extra, but I grab it every time in onCreate, deciding whether it should be placed in the bundle on restored from there Dec 18 13:58:16 hi, I have slidingTabsLayout bar on top, then a scrollView and at the bottom an input field. Using adjustPan, scrollView and tabsLayout bar are pushed up. How can restrict the "pushing up" only for ScrollView? Dec 18 14:15:18 Hello guys, I have an app in landscape mode with on the left side the master list and right side the detail content, each of them is a Fragment. The problem is, how to handle the back button. After tapping several times on the master, the back button pops the fragment from the backstack. But it doesn't make sense from UI point of view, the activity should destroy in case of back button. Hot accomplish this? Dec 18 14:15:54 s/Hot/How Dec 18 14:16:06 Hi! Dec 18 14:16:16 Hi :) Dec 18 14:16:20 How do I check if an View contains text or not? Dec 18 14:18:05 textView.gettext().toString().isEmpty()? Dec 18 14:19:02 Number5: I'll try that, thanks! Dec 18 14:19:15 it's a view though, not a textview Dec 18 14:19:36 Zajt: what do you mean with "contains text" then? Dec 18 14:19:52 Would an imageview with a photo of text count as "text" for your porpose, to? Dec 18 14:19:57 Zajt, weel it's a weird question than. Don't you know what view you have in runtime? Dec 18 14:20:08 It's a view but in the constructor I create an edittext and set the view to be that edittext Dec 18 14:20:26 then just cast to EditText again Dec 18 14:20:33 if you’re sure it’s instanceof EditText Dec 18 14:20:51 justJanne, yeah Dec 18 14:20:58 ((EditText) view).getText().toString() if you know it’s already an edit text. Dec 18 14:21:18 you can check if a view is a textview or edittext or similar with Dec 18 14:21:18 alright Dec 18 14:21:22 view instanceof TextView Dec 18 14:21:35 or you can compare the view whether it's an instance of all the widgets that can contain text :) Dec 18 14:22:20 if you're lucky they all have the same parent class for text. Dec 18 14:22:33 yes, the parent class is TextView Dec 18 14:22:49 than you just compare the view whether it's an instance of that parent class Dec 18 14:22:50 EditText also inherits from TextView Dec 18 14:23:04 justJanne, aah ok. well there you go :) Dec 18 14:23:41 but I guess you have to cast that view to TextView first? Dec 18 14:23:53 Well, yeah Dec 18 14:24:12 a simple way would be Dec 18 14:24:12 public static boolean viewContainsActualText(View v) { Dec 18 14:24:37 yes, that looks good Dec 18 14:24:39 return (v instanceof TextView) && !((TextView) v).getText().toString().isEmpty() Dec 18 14:24:41 } Dec 18 14:24:55 hi, i'm rather noob and will be thankful for pointers for further study. i'm trying to use an svg as a background. i suppose i'm either using resources wrong, or the VectorDrawable, or something else: https://pastee.org/x4r27 Dec 18 14:24:59 it seems to be a noop Dec 18 14:25:44 Is there any easy way I can make a popup-dialog in android? Dec 18 14:26:21 Zajt: look into AlertDialogs Dec 18 14:26:29 alright thanks! Dec 18 14:26:42 or, for better look, afollestad’s MaterialDialogs Dec 18 14:26:57 here are examples for both libraries: https://github.com/afollestad/material-dialogs#migration-from-alertdialogs Dec 18 14:27:11 Hey guys. In My project I'm using a lot of different flavours that specify some buildConfigField fields that I use to communicate with the Web Service. But sometimes I build project A and the server receives the buildConfigField value from Project B flavour. Anyone ever faced this issue? Dec 18 14:27:13 (AlertDialog is included in Android, but style varies with OS version) Dec 18 14:28:40 Is there any way for when I go from Activity A to B to C, and from C I start Activity A, that Activity A will clear the entire stack by just using a launch mode? Dec 18 14:34:44 Hello. I have two different versions of apk. How better to compare what a differen between binares files? Dec 18 14:35:39 diff :) Dec 18 14:35:48 kidding :) Dec 18 14:38:09 Anatoli_k: throw "apktool d " at it, then use kdiff3? Dec 18 14:38:09 anyone knows how to make the last row in a grid center aligned? Dec 18 14:38:13 Is there any way to make sure someone on my team doesn't use an api. bit me again because no one caught it during code review. Dec 18 14:38:34 because I have found several solutions but no one works Dec 18 14:38:42 eghdk: what do you mean with "an api"? I’m pretty sure they use some API Dec 18 14:38:54 http://stackoverflow.com/questions/19156385/how-to-cenralize-last-uneven-row-in-gridview-in-android Dec 18 14:40:31 justJanne: Using a certain api. Let's say. I want to make sure no one uses a Log, but instead uses our wrapper. Dec 18 14:41:37 eghdk: add a rule to your checkstyle config? That should be possible, if I remember correctly Dec 18 14:43:02 hey Dec 18 14:43:29 Well, it's not really a style right? It's more of a rule. idk. I'm not saying I don't agree, I'm just trying to gather some info on this. Dec 18 14:43:32 justJanne: thx. But i decompile the apk and compare with total commander. And it show me too much difference. I think should be much less. Just some strings. So need working method. Dec 18 14:43:47 https://youtrack.jetbrains.com/issue/IDEA-148936#tab=History Dec 18 14:43:56 is there a file browser in the android emulator? like on a real device i god an icon 'my files' to browse... don't see it in emz Dec 18 14:43:57 \o/ Dec 18 14:43:59 emu Dec 18 14:44:10 no Dec 18 14:44:13 Bombo: i guess you need to install one Dec 18 14:44:23 where do i get one? Dec 18 14:45:07 Anatoli_k: maybe you updated some libraries in the meantime? or used something like ProGuard for obfuscation? Dec 18 14:45:11 which one is the default file browser e.g. for samsung? do they ship their own filebrowser? Dec 18 14:49:13 Oh, and I figured out an easy way to integrate protify into intellij and android studio Dec 18 14:49:45 just create a new run configuration, uncheck deploy to device, run main activity and open tool window Dec 18 14:50:02 presto, reliable instant run Dec 18 14:50:09 justJanne: maby ProGuard Dec 18 14:51:02 Anatoli_k: well, then you won’t really have any chance at meaningful diffs. Dec 18 14:51:15 ProGuard makes those pretty much impossible without manual action Dec 18 14:51:47 justJanne: also use .dll binaries library Dec 18 14:51:58 wat. Dec 18 14:52:19 I’m sorry, but I can’t help you, maybe someone else can. Dec 18 14:52:36 Anyway thx Dec 18 14:54:17 justJanne: but which manual action for ProGuard i should do? Dec 18 15:00:03 ok, it seems the VectorDrawable class has nothing to do with loading SVGs :) Dec 18 15:00:11 why are there no errors thrown? oh well.. Dec 18 15:00:23 silent failures are the bees' knees Dec 18 15:01:25 errors are thrown, but non fatal Dec 18 15:01:43 svg can be converted to VectorDrawable Dec 18 15:05:48 pfn: i must have failed to find the relevant docs then.. Dec 18 15:05:49 use svg2android Dec 18 15:05:57 3rd party Dec 18 15:05:59 pfn: an external library Dec 18 15:06:00 ? Dec 18 15:06:00 ok Dec 18 15:07:48 external tool Dec 18 15:09:02 pfn: ok, that'll do i suppose :) thanks a lot for the pointer.. i caught all required exceptions btw and logged them, but failed to see them in the log.. Dec 18 15:11:26 it's logged by image view and it's not an exception Dec 18 15:12:05 well, it is an exception, but image view is the one that catches and logs Dec 18 15:17:57 pfn: ok.. Dec 18 15:18:05 pfn: thanks again Dec 18 15:29:55 hi Dec 18 15:30:06 i have this: http://pastebin.com/UqYBYsQe but always back to MainActivity Dec 18 15:30:20 it is go to DetailActivity and back do MainActivity Dec 18 15:52:35 https://github.com/pfn/protify#full-intellij-idea--android-studio-integration Dec 18 15:52:36 weee Dec 18 15:55:30 pfn: looks neat, but, how do you handle live changes of more complicated things? Dec 18 15:55:37 magic Dec 18 15:55:46 what if code is running, say, a network connection – does it update that somehow, too? Dec 18 15:56:05 depends on what you're changing, network connections will be dropped Dec 18 15:57:03 so not much better than InstantRun in that regard Dec 18 15:57:48 resources changed will not restart network connections Dec 18 15:57:51 code changes will Dec 18 15:58:11 instant run doesn't support anything Dec 18 15:58:13 mmmh Dec 18 15:58:24 no retrolambda, no kotlin, no code changes of any meaningful kind Dec 18 15:58:25 etc. Dec 18 15:58:33 resource changes are barely supported as well Dec 18 15:58:35 oh, it does support retrolambda. Dec 18 15:58:45 has that changed recently Dec 18 15:58:47 but it kills the network connection every time I’ve been running in bg Dec 18 15:58:52 dunno. Dec 18 15:59:05 I use a 4 week old version of it Dec 18 15:59:24 gradle-retrolambda doesn't support the transform api Dec 18 15:59:31 so it won't do instant change Dec 18 15:59:41 not properly at least Dec 18 16:00:10 and the "wee" part is in reference to updating docs to enable full IDE integration Dec 18 16:01:06 well, I bet the transform API doesn’t like compile time macros like lombok either Dec 18 16:03:26 https://github.com/pfn/protify#limitations Dec 18 16:06:49 I guess I should change singleton state to say object instance state Dec 18 16:10:35 Is there a realistic limit for how inexact repeating an alarm can be? Documentation states that it could be "almost" full interval. Now I don't mind if it's a few hours off, but my interval is 7 days Dec 18 16:11:21 Syzygy: then just set an interval every 8 hours and count yourself until you have reached 21? Dec 18 16:11:30 (joke) Dec 18 16:11:50 realistically, even in doze mode, alarms would be usually 15min off at maximum Dec 18 16:13:27 Hmm, or maybe I fire it once a week with a window or with set, but just restart it every time... Dec 18 16:13:57 that way I don't have to consider that... Dec 18 16:18:06 Anyone know what would cause android studio to not allow automatic upgrades? http://i.imgur.com/HjsS3Yg.png Dec 18 16:18:13 it is like this nearly every release for me Dec 18 16:20:29 justJanne, I'm contemplating doing some magic indirection for code, but yuck, probably not Dec 18 16:21:30 justJanne, doing non-process restart of code changes is just asking for trouble, especially when you change global state as part of code changes Dec 18 16:22:19 pfn: yeah, definitely. unless one ses multiple processes and IPC, it’d be very hard to keep stuff running Dec 18 16:22:59 multiprocess doesn't really work to enable this either, because then you need to get invasive into your code/instant-runner to specify what should and shouldn't be re-loaded Dec 18 16:23:09 i.e. why shouldn't process x get updated code Dec 18 16:23:23 and what if you have a fix you want to test on process x Dec 18 16:23:34 having to treat it differently sucks Dec 18 16:23:46 I contemplated doing that to keep my network connections running as well Dec 18 16:23:47 well, that’s why you’d only update the processes with changed code Dec 18 16:23:59 that's the problem, that's actually very very difficult to determine Dec 18 16:24:15 given code change X, how do you know which lifecycle component is affected Dec 18 16:24:27 you need to generate a dependency tree of code reachability for each process Dec 18 16:24:35 and that is expensive Dec 18 16:24:36 not really? You can look at a process, build a directed graph of dependencies, and then check if any of them was changed. Dec 18 16:24:50 eh, you have that tree at compile time anyway, Dec 18 16:24:53 you don't Dec 18 16:24:54 just ask the compiler Dec 18 16:25:02 "just ask the compiler" -- that doesn't work Dec 18 16:25:03 the compiler builds a full dependency tree Dec 18 16:25:15 no compiler provides that information Dec 18 16:25:22 javac does /kinda/ Dec 18 16:26:07 javac has its tree api which is available to annotation processors Dec 18 16:26:09 how do i get http://developer.android.com/reference/android/os/Environment.html#DIRECTORY_PICTURES in ndk? i got 'cls = (*env)->FindClass(env, "android/os/Environment");' and then 'mid = (*env)->GetStaticMethodID(env, cls, "getDataDirectory", "()Ljava/io/File;");' for the methods, that worked, but how do i get that field? Dec 18 16:26:09 but that's all Dec 18 16:26:28 pfn: well, annotation processors can get access (via a trick) to the full internals of the compiler Dec 18 16:26:37 that’s what lombok does to rewrite the AST at compile time Dec 18 16:26:40 yes, I know, I wrote that initial trick back in like 2000 Dec 18 16:26:45 you get full syntax, and full dependencies Dec 18 16:26:54 at least I think you did Dec 18 16:27:02 We'd like to thank: Dec 18 16:27:03 Perry Nguyen (pfn on ##java on freenode) for creating the inspiration for project lombok. Dec 18 16:27:06 https://projectlombok.org/credits.html Dec 18 16:27:08 first line Dec 18 16:27:31 I only read about it while reading a thesis from the 2000s from a student from a university in Bern I think? Dec 18 16:28:07 actually, not quite that long ago, 2007 after sun introduced the tree api Dec 18 16:28:13 http://hanhuy.com/pfn/java_property_annotation Dec 18 16:28:18 they did some pretty awesome stuff with that. Dec 18 16:28:19 hm Dec 18 16:28:41 it’d definitely be awesome if someone would just write lisp-style macros for the AST Dec 18 16:28:55 effectively, a way to describe a transformation of an AST in a simple way Dec 18 16:29:14 * pfn somewhat happily uses scala macros Dec 18 16:31:15 btw, have you considered redoing the icons of your apps in a more... material-ly style? generally, your apps? Dec 18 16:31:29 because I see awesome code from you, but less on the design side Dec 18 16:31:46 dont say the M word here :v Dec 18 16:31:54 you mean launcher icons, or the iconography within the app Dec 18 16:31:59 both. Dec 18 16:32:11 for example, in keepshare the icon of the scope of a password Dec 18 16:32:26 those icons are all from the material palette Dec 18 16:32:33 https://lh3.googleusercontent.com/jCmzfxX23etgWk37QuNpoAbc5SCm_H-b_gVrGd1wuRaMFcdovULawiuEni1zMhIsnQ=h900 Dec 18 16:32:41 I don’t think so? Dec 18 16:32:45 oh, the left icons? Dec 18 16:32:50 those are all nuvola icons Dec 18 16:32:54 same as used within keepshare itself Dec 18 16:32:58 those are used for consistency Dec 18 16:33:00 er Dec 18 16:33:03 same as within keepass Dec 18 16:33:10 :/ Dec 18 16:33:33 (also, that screen might be better as a two-line list on portrait mode) Dec 18 16:33:44 maybe, haven't touched keepshare in a while Dec 18 16:33:57 too many projects on the side, and too many jobs Dec 18 16:34:21 I understand that issue :/ Dec 18 16:38:30 I really need to find someone to take over maintenance of my keepass browser extensions Dec 18 16:38:43 several hundred thousand users just languishing... Dec 18 16:39:09 130k weekly users on chrome Dec 18 16:39:12 a little less on firefox Dec 18 16:39:20 that’s quite a lot Dec 18 16:39:32 I haven't touched those extensions in over a year probably Dec 18 16:40:06 Updated: December 22, 2014 Dec 18 16:40:07 heh Dec 18 16:40:07 my app always waits for the debugger to connect... wtf Dec 18 16:40:16 Syzygy, you set that flag in developer options Dec 18 16:40:24 on-device Dec 18 16:40:32 that, or you launched it requesting wait for debugger from IDE Dec 18 16:40:37 ah... weird, guess I accidentially clicked on it. thanks Dec 18 16:42:19 Hey I would just like some clarification on static variables in java if you do not mind. If a static member is declared and set to 5... that means that in every instance NEW and EXISTING that Variable will be 5? Dec 18 16:43:30 static is static, it is unrelated to instance Dec 18 16:43:35 so "new and existing" means nothing Dec 18 16:44:51 https://github.com/pfn/android-sdk-plugin/issues/241 Dec 18 16:44:55 heh, apparently, not a follower of mine Dec 18 16:45:56 cart_man: static variable means the variable exists only a single time per app. Dec 18 16:46:06 if you change it from one point, it changes everywhere else, too Dec 18 16:46:20 in all new and existing places where you can access it Dec 18 16:46:50 Ok thanks guys. Yea just needed some clarification for Java. Appreciated ! Dec 18 16:50:58 i'm doing this: 'cls = (*env)->FindClass(env, "android/os/Environment"); fieldID = (*env)->GetFieldID( env, cls, "DIRECTORY_PICTURES", "Ljava/lang/String;");' and get 'java.lang.NoSuchFieldError: no field with name='DIRECTORY_PICTURES' signature='Ljava/lang/String;' in class Landroid/os/Environment;' Dec 18 16:51:58 question is: why ;) Dec 18 16:52:46 (i want to get http://developer.android.com/reference/android/os/Environment.html#DIRECTORY_PICTURES with ndk) Dec 18 16:54:22 Bombo, GetStaticFieldID Dec 18 16:55:22 ^ Dec 18 16:58:47 pfn: ok and how do i get a string now? i googled 'jstring picdir = (*env)->GetObjectField(env, thisObj, fieldID);' but that didn't work Dec 18 16:58:57 'JNI ERROR: field operation on invalid reference (0x0)' Dec 18 16:59:32 GetStaticObjectField Dec 18 16:59:39 GetStaticFieldID should have been a hint already Dec 18 17:00:38 oh Dec 18 17:01:08 i made this http://pastebin.com/UqYBYsQe but the second activity only render block de cellphone and unblock, so details appears Dec 18 17:06:56 got it! thx for the hint pfn ;) Dec 18 17:07:42 but DIRECTORY_PICTURES is just 'Pictures' i need the full path to save a picture there Dec 18 17:08:31 Bombo, you have to use it in conjunction with the root storage directory of your choice Dec 18 17:08:39 e.g. getExternalStorageDirectory() Dec 18 17:08:55 or getExternalStoragePublicDirectory Dec 18 17:09:09 http://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory(java.lang.String) Dec 18 17:12:38 i see hmm doesn't seem to be one for InternalStorage Dec 18 17:14:05 there's no such thing Dec 18 17:14:21 all public storage is called external storage Dec 18 17:14:28 ^ Dec 18 17:14:33 "Internal" means /data/ Dec 18 17:14:47 "External" means /storage/, which can be internal SD or external SD or USB Dec 18 17:15:25 ok but when there isn't an sdcard plugged in? Dec 18 17:15:40 then it’s "internal SD", aka /storage/emulated/0/ Dec 18 17:15:55 which still counts as external storage for android Dec 18 17:16:24 and i would get that with getExternalStoragePublicDirectory() Dec 18 17:16:40 ok thx i'll try Dec 18 17:16:42 you’d get /storage/emulated/0/Pictures, or /sdcard/Pictures, yes Dec 18 17:17:05 and then of course there's adopted storage, where it all gets mixed up together in a big bowl Dec 18 17:17:19 *in 6.0+ or with link2SD Dec 18 17:17:46 in 6.0+ indeed :) Dec 18 17:21:31 is there a way to convert an int into a inetAddress ? Dec 18 17:22:14 yes Dec 18 17:22:19 I440r: an int? what does it represent? Dec 18 17:22:20 how? Dec 18 17:22:25 a ressource? an IP? Dec 18 17:22:31 it is an inet address Dec 18 17:22:40 but it is returned to me as an int via jni Dec 18 17:22:41 that should be covered many times over on stackoverflow Dec 18 17:22:50 ooooh, okay. Dec 18 17:24:34 stakoverflow is the last place i go to for answers usually (last resource). its mostly TLDR threads with too many wrong answers and buried somewhere in the thread is the right answer... . Dec 18 17:25:08 convert to byte[] Dec 18 17:25:11 done Dec 18 17:25:29 so it’s simply an IP as bytes? Dec 18 17:26:08 its basically sockaddr_in.sin_addr.s_addr Dec 18 17:26:34 but pfn's answer is good :) Dec 18 17:27:34 Inet4Address should accept Int for construction, but they're dumb Dec 18 17:27:46 lol ya Dec 18 17:28:02 Probably because they think people don't know how to deal with signed conversion Dec 18 17:28:05 if they accepted int then things would be less obfuscated... thats why they dont do it Dec 18 17:28:08 it is a little painful Dec 18 17:28:27 well java still has no UNSIGNED that im aware of Dec 18 17:28:31 then again byte[] has similar issues Dec 18 17:28:40 which is a major STUPID on the part of sun Dec 18 17:29:32 more dumbing down of the language to make it accessible Dec 18 17:29:39 doesn't really matter Dec 18 17:30:11 yes it does. now i have to have a 64 bit variable just to have a 32 bit positive number Dec 18 17:31:04 i object to wasting 4 bytes just to have an unsigned int :/ Dec 18 17:31:09 nope Dec 18 17:31:26 ? Dec 18 17:31:28 you can still represent in a signed int Dec 18 17:31:39 signed YES. not unsigned Dec 18 17:32:06 try adding a 32 bit unsigned value to another 32 bit unsigned value. you will add 31 bit values each with their own sign bit Dec 18 17:32:09 you don't need to do anything, it overflows into 2s complement Dec 18 17:32:56 signed Int | 0xff000000 Dec 18 17:33:08 gives you the correct value when it comes time to render Dec 18 17:33:53 yes but your not adding that unsigned value to anything, you are just setting the alpha level for the color Dec 18 17:34:08 i.e. your not doing any UNSIGNED operations with the value Dec 18 17:34:34 like i said try adding 0x81238765 to 0x84744534 and get the right (truncated) result Dec 18 17:34:35 you wont Dec 18 17:35:20 it will add the 31 bit signed values together and then account for the sign of each and apply that to the 31 bit result Dec 18 17:38:13 well this is just getting more and more complificated anyway. do you think it would be ok to set up a localhost connection from my java to my native lib so im not using JNI all the time? Dec 18 17:38:23 or would JNI actually be faster than the socket? Dec 18 17:38:39 sockets mean throwing errors etc Dec 18 17:38:54 and i dont think i should take ownership of localhost like that Dec 18 17:39:28 when will new emulator for 2.0 be avaible? Dec 18 17:39:52 er, oops, meant 0l | signedIny Dec 18 17:39:59 signedInt Dec 18 17:40:09 exactly LONG Dec 18 17:40:14 or is long still 32 bits ? Dec 18 17:40:21 right, it doesn't matter Dec 18 17:40:28 it DOES matter lol Dec 18 17:40:47 signed is just a matter of rendering when it comes to addition Dec 18 17:40:48 like i said. i object to having to waste 4 bytes per unsigned 32 bit value Dec 18 17:40:54 you don't have to Dec 18 17:41:09 My Calendar Seems to be off by 1 month ? It says its the 11th month ? Dec 18 17:41:12 0xff000000 | 0L -> -16777216 Dec 18 17:41:24 show me that adding the two 32 bit unsigned values above results in the truncated 32 bit unsigned result Dec 18 17:41:30 i.e Dec 18 17:42:04 cart_man: are you sure the months aren't 0-indexed? Dec 18 17:42:07 OMG...offset is 0 Dec 18 17:42:11 int foo = (int)0x81238765 + (int) 0x84744534; Dec 18 17:42:13 Yes they are ...sighhhhh Dec 18 17:42:15 it doesn't truncate Dec 18 17:42:23 it's just signed 2s complement Dec 18 17:42:25 Why ? and also why none of the other values Dec 18 17:42:51 show me that they will return the same value as a long foo = (long)0x81238765 + (long) 0x84744534; Dec 18 17:42:52 the binary representation remains the same regardless of sign Dec 18 17:42:52 Fucking hell I sat here the entire day debugging this shit ... anyway Dec 18 17:42:53 it wont Dec 18 17:43:08 it will, convert to byte and see Dec 18 17:43:27 i already know they WONT return the same value Dec 18 17:44:00 i.e. the int foo result will NOT give the same 32 bits of result as the long foo value truncated to 32 bits Dec 18 17:44:23 0xff000000 | 0L -> -16777216, but 0xff | 0 -> 255 Dec 18 17:44:28 that's not confusing at all Dec 18 17:44:47 yes your doing an OR operation NOT an ADD of two 32 bit values that YOU think are unsigned Dec 18 17:45:17 and he is doing a LONG ored with a LONG operaion, not an int PLUS an int operation Dec 18 17:45:40 isn't 0xff000000 an int? Dec 18 17:46:09 it is Dec 18 17:46:22 | != + Dec 18 17:47:28 http://pastie.org/10640357 Dec 18 17:47:49 int a = 0x9876543; int b = 0xabcd1234; int q = a + b; long A = 0x987654332; long B = 0xabcd1234; long Q = A + B; Dec 18 17:48:00 the lower 32 bits of Q will not the the same as q Dec 18 17:48:24 erm thats 8765432 for a and A sorry Dec 18 17:48:29 and 0x of course Dec 18 17:48:35 it does add up to the same binary value Dec 18 17:49:57 i wont be able to use this new fangled emulator. i dont use android stupidio. i use intellij idea Dec 18 17:50:13 and 0x80000000 + 0x80000000 overflows. 32 bits Dec 18 17:50:32 yes Dec 18 17:50:33 I440r: don’t be childish. Dec 18 17:51:02 http://pastie.org/10640364 Dec 18 17:51:42 well i already know they are not back porting android studio fixes into idea very quickly if at all Dec 18 17:51:58 and the lower 32 bits are the same after overflow Dec 18 17:52:11 the current emulator you can start up without Studio. why can’t you with the new one? Dec 18 17:52:57 because i already have a dozen operations i have to do in order every time i launch a deub session currently. adding more "do this first" is not helpful Dec 18 17:53:08 s73v3r: Insatlled preview 4 today, the new emulator is not ther yet? Dec 18 17:53:16 any recommendation for a java based matrix library? Dec 18 17:53:29 i haven’t installed the preview yet Dec 18 17:53:31 debug even Dec 18 17:53:39 something that works well with opengl (if thats relevant) Dec 18 17:53:59 I440r: You launch it once, and let it sit. Or you add it to the debug script in IntelliJ Dec 18 17:54:33 s73v3r, i dont have a debug script i have a sequence of operations i "do once" Dec 18 17:54:46 and that’s not automated? shame Dec 18 17:54:47 i dont want a script. i dont really want the sequence either (its temp) Dec 18 17:55:15 its simply because of the early stage of development of the "system" Dec 18 17:55:16 hello guys, here http://www.learnopengles.com/how-to-use-opengl-es-2-in-an-android-live-wallpaper/ two options are presented here on how to make an OpenGL LWP. From your experience which options would work better in terms on performance? Dec 18 17:55:35 getting a sockets connection to my NDK library would MAYBE simplify things Dec 18 17:55:38 try both and measure Dec 18 17:55:43 can anyone explain the first result in that pastie I linked? Dec 18 17:55:57 but i dont know if i should use localhost or something else when setting up the server side Dec 18 17:56:13 So, myself I'm an Java dev, with a few years of experience, however as it comes to Java dev, shit just blows my mind. How does Sockets/Packet sends work in Android? I'm trying to port a game to run under full java rather than just android, however only things missing would be packets, that I cannot find. Tips? Dec 18 17:56:25 and would a sockets connection be faster than a JNI connection or not? Dec 18 17:56:54 i mean making JNI calls has a bunch of overhead but a socket connection can fail to TX, fail to RX... tho thats less likely on localhost Dec 18 17:57:00 it can still happen if theres a bug Dec 18 17:57:23 i would find it shocking that sockets were faster Dec 18 17:57:26 is a socket connection to a NDK library preferable to a JNI connection? Dec 18 17:57:35 otherwise every single NDK tutorial would be jumping on that Dec 18 17:57:50 s73v3r: I will, but there could be a few nuances like black wallpaper and memory leaks which can be tricky to proof-test Dec 18 17:58:16 s73v3r, no. the sockets method is more complex and you have to account for throws etc Dec 18 17:58:18 sockets are far slower than jni Dec 18 17:58:27 icedp: I doubt either approach is going to make much of a difference, performance wise Dec 18 17:58:27 most tutorials try to find the SIMPLEST way to do something Dec 18 17:58:33 jni only has memory copy overhead Dec 18 17:58:42 sockets has that in multiples Dec 18 17:58:54 but if sockets were faster, you’d have a bunch of the “macho” programmers advocating it Dec 18 17:59:03 it's not faster Dec 18 17:59:24 good to know Dec 18 17:59:33 it’s not faster, but it makes it easier to move the other half of the code onto a different device Dec 18 17:59:39 pretty sure it's not faster Dec 18 17:59:48 stork Dec 18 17:59:50 http://stackoverflow.com/questions/13973035/what-is-the-quantitative-overhead-of-making-a-jni-call Dec 18 18:00:11 i mean, feel free to try it out, do some profiling, and publish some numbers. Dec 18 18:01:22 storkme: Same stork that was a part of Reinet? Dec 18 18:01:41 probably Dec 18 18:03:08 Never figured I'd see your name again, interesting. Dec 18 18:03:18 small world :) Dec 18 18:03:34 <- Stonerage by the way, as nicknames go Dec 18 18:04:05 name rings a bell, but my memory is garbage these days Dec 18 18:05:03 Hanged with Zym, Ben, Chris(Icy) mostly on 3rxnet. Old times Dec 18 18:05:15 good times Dec 18 18:06:30 Anyway, I got this app decomped, deobbed to almost full source, now, Android vs java programming well. I'm coding this app to use parts of that .apk (Mostly just after the packets and connections) Yet, cant find any in any of the 200.class files it generated. That many classes normal for a standard 50mb game/app ? Dec 18 18:08:43 Just facebook connections got about 50 individual classes, that serves little to no point actually imo. Now would an ip be handled in something else like an resource extension or an .obb file? Keep in mind, Android programming <24 hours Dec 18 18:11:33 Packet scanning picks up about everything being sent unencrypt, return results are encrypted, and I've pretty much found the decryption algothrim within the classes. Yet cannot seem to find where the connection is made, or what triggers what to be sent over it. Feels like I'm missing something obvious Dec 18 18:17:46 is it OK for JNI_OnLoad to perform operations that take a bit of time (not doing i/o tho) Dec 18 18:18:57 Um, okay so I have set my ImageView to have width of match_parent and height of wrap_content, but it seems like it's binding the width of the image to the width of the parent, scaling the ImageView's height as needed, how can I force-lock the aspect ratio? Dec 18 18:20:09 I mean I want to height to scale as approperiate with the width, so the image just fits in the screen Dec 18 18:20:13 OverCoder, you cant unless you have one copy of the image already scaled for the size of the display of what ever your running on or whatever anyone else is running on Dec 18 18:20:42 in whatever orientation.. . . Dec 18 18:20:46 it gets complificated :) Dec 18 18:21:18 create a view of the exact size or exact aspect ratio of the source image Dec 18 18:21:34 it will not draw the same on every device however Dec 18 18:21:35 Pfft, I am just trying to invent some way so that I can get my server to send an image to my Android app, in the least bandwidth possible and in a nice and cool way, why does it have to be so damn hard Dec 18 18:22:09 OverCoder, its not hard really, its just there are things you need to be aware of Dec 18 18:22:20 OverCoder: https://developer.android.com/reference/android/widget/ImageView.ScaleType.html ? Dec 18 18:22:24 getting it to look right on YOUR phone wont mean it will look right on mine Dec 18 18:23:05 isn't CENTER_CROP what you're looking for? Dec 18 18:23:20 oh wait, CENTER_INSIDE Dec 18 18:24:11 storkme, hm, let me try it out Dec 18 18:25:17 I440r, It is, I'd have to install some shitty PHP library as well as few extensions, configure them and make them work, and then change my android application to send the needed dimensions, and then creating PHP code to do that, oh boy Dec 18 18:28:20 Hey guys Dec 18 18:29:04 I'm developing a bluetooth app using the Bluetooth serial port profile like this https://github.com/akexorcist/Android-BluetoothSPPLibrary Dec 18 18:29:15 any recommendations on debugging this kind of app? Dec 18 18:29:38 I have mainly been using wireshark and logcat although this is my first app and first week using android studio so I'm a little lost Dec 18 18:38:58 i don't get it: 'cls = (*env)->FindClass(env, "android/os/Environment"); mid = (*env)->GetStaticMethodID(env, cls, "getExternalStorageDirectory", "()Ljava/io/File;");' works, but not with getExternalStoragePublicDirectory Dec 18 18:39:51 'java.lang.NoSuchMethodError: no static method with name='getExternalStoragePublicDirectory' signature='()Ljava/io/File;' in class Landroid/os/Environment' Dec 18 18:40:31 Bombo, wrong signature. Dec 18 18:40:41 That call takes string as a parameter. Dec 18 18:46:56 Mavrik: like "Ljava/lang/String;" ? (didn't work) Dec 18 18:47:25 no. Dec 18 18:47:49 When resolving a method you need to pass the name AND the signature so JNI can figure out the right overload. Dec 18 18:48:06 The signatures in Java have a special format, go google how a method signature for JNI has to look like. Dec 18 18:56:57 i'm googling for hours, 277 tabs open ;) Dec 18 18:57:03 i guess its "(Ljava/lang/String;)Ljava/io/File;" Dec 18 18:57:12 but now i don't know where to pass the arg Dec 18 18:58:33 maybe CallStaticObjectMethod: fileObject = (*env)->CallStaticObjectMethod(env, cls, mid, "Environment.DIRECTORY_PICTURES"); Dec 18 18:59:36 nope 'JNI ERROR (app bug): accessed stale weak global reference 0x4bea7bfb (index 40702 in a table of size 0)' Dec 18 19:07:50 Let's say I have a CardView, can I by some way calculate how many pixels are there in it's match_parent? Dec 18 19:08:33 * g00s removing all his CardViews Dec 18 19:13:31 Bombo, quit using jni, you're in over your head Dec 18 19:14:39 is there any way to use getChildFragmentManager(...) before API 17? Dec 18 19:16:44 Um, just as an answer for my question up there, setting android:adjustViewBounds true, and keeping width to match_parent, and height to wrap_content does the trick Dec 18 19:17:07 The image fits nicely in the card Dec 18 19:25:14 is the databinding stuff only 1 way? Dec 18 19:40:47 the docs dont seem to mention anything about being 1 way or 2 way Dec 18 19:45:05 Interesting: https://discuss.kotlinlang.org/t/public-review-of-the-standard-library-apis/1362 Dec 18 19:45:15 storkme: Alright if I PM you? Dec 18 19:45:45 sure Dec 18 19:46:26 Wow, this online client doesnt even seem to be able to handle it Dec 18 19:47:25 anyone know if the databinding library is one way only? Dec 18 19:58:18 hi Dec 18 19:58:31 if a person want to publish app to playstore Dec 18 19:58:38 should i need a special package naming? Dec 18 19:58:42 like org.person.something? Dec 18 20:05:04 yes Dec 18 20:05:21 should be org or com Dec 18 20:05:35 depends on what your domain name is Dec 18 20:05:46 should i have a domain? Dec 18 20:06:04 it’s generally a good idea, so you can put up a website about your app Dec 18 20:06:21 otherwise it’s pretty difficult to get people to learn about your app Dec 18 20:06:32 anyone notice how org.apache is now legacy :/ Dec 18 20:07:23 It doesn't have to be a domain name. It could be anything. Dec 18 20:08:02 true. com.delphiworld.theapp is a perfectly cromulent package name Dec 18 20:08:27 thx Dec 18 20:12:03 impliednude yeah since 6.0 Dec 18 20:12:45 you can be sure noone other has taken delphi package name Dec 18 20:15:16 if someone starts using your domain in their package names, is there any recourse against that with google? Dec 18 20:15:21 (just cuirous) Dec 18 20:15:29 (on the play store of course) Dec 18 20:16:08 Nop. Dec 18 20:16:47 what if I put up an app: com.google.phishinggoldmine ? Dec 18 20:18:29 Then you'll see if they move away from their policy. Dec 18 20:19:34 google hasn't enforced any package naming convention Dec 18 20:19:49 you can request a takedown if someone uses your domain though Dec 18 20:20:03 and google may remove it based on the deceptive content policy Dec 18 20:20:14 makes sense. Dec 18 20:20:25 thats about what i figured the answer would be Dec 18 20:20:35 but there are many apps published with com.android as the top part of their package name Dec 18 20:20:42 google has not removed them Dec 18 20:20:58 keepassdroid comes to mind as an obvious violator here Dec 18 20:36:47 well, com.android.quicksearchbox is limited, though. Dec 18 20:37:15 Even though that package is the only one allowed to display the quick search box on homescreen and recents screen. Dec 18 20:37:59 with no way to manually select a different one Dec 18 20:42:45 hi everyone one i have a big problem and i have spend long time for that and i have searched whole websites on the net Dec 18 20:44:34 How come log messages during my Asynctask.doinbackground do not show up in logcat? Dec 18 20:46:24 how do they look like Dec 18 20:46:26 there is a website protected by username and password i have to login that it in background and then get source code of that but i didnt do that Dec 18 20:51:06 so does anyone know of say... a backend service, or open source library, or anything that could help track users locations efficiently... its for an enterprise customer who wants to track their employees... I can write it myself but any assistance would be awesome Dec 18 20:51:55 Would dark theme be great for an activity full of rich content (images and some captions) Dec 18 20:53:31 yacyes: in which country are you going to operate? Because that’s not legal in most countries. Dec 18 20:53:57 usa, how can that be illegal anywhere? these are employees Dec 18 20:54:02 eu is insane Dec 18 20:54:09 Because they are people, not slaves. Dec 18 20:54:13 lol Dec 18 20:54:16 Otherwise you might want to register a service that sets an alarm every 5 minutes and reports the location to a backend server Dec 18 20:54:24 so if you location track your employees they become slaves Dec 18 20:54:26 how naive Dec 18 20:54:40 No, but they have rights. And location tracking any person is illegal. Dec 18 20:54:55 well yeah, but its more complicated than that, i would only want to store it if it changes significantly, etc Dec 18 20:55:00 oh bullshit Dec 18 20:55:09 its part of an agreement for employment Dec 18 20:55:12 Well, do that on the backend. Dec 18 20:55:13 employers have no right to know where there employees spend their time outside of work Dec 18 20:55:26 LOL!!! who said anything about outside of work Dec 18 20:55:29 Anyway, store that data on the server, handle the location diff on the backend. Dec 18 20:55:34 this is an ENTERPRISE app for ENTERPRISE use Dec 18 20:55:39 just leave me alone with this bullshit Dec 18 20:55:47 if a device doesn’t report for more than X minutes while the employee is supposed to work, Dec 18 20:55:55 sorry i didn't even read the scrollback lol Dec 18 20:56:00 the server can even set a warning that something bad is happening. Dec 18 20:58:48 Hi all when you make an alertdialog, is there a way to make the positive button do nothing until conditions are met Dec 18 20:58:57 yes Dec 18 20:59:16 its a little tricky Dec 18 20:59:23 I want to make a dialog alert popup where the user has to enter a string, and if they just leave it blank and dont enter anything i have it making a toast message popup Dec 18 20:59:38 why not just disable the button until its valid Dec 18 20:59:45 but im pretty sure the dialog would just disappear regardless after the toast whether the edittext had been 0 or not Dec 18 20:59:54 is possible to get html source code from WebView ? Dec 18 20:59:56 that would be perfect! Dec 18 21:00:42 hold on im trying to find it Dec 18 21:00:56 basically if you do it in the right order you can grab the button and control it yourself Dec 18 21:01:08 My keyboard got wet and now my D key is acting like it's being held down. :/ Dec 18 21:02:02 you use an AlertDialog.Builder Dec 18 21:02:18 that is what i am using Dec 18 21:03:06 but where would the code be placed within that to have the positivebutton disabled until the string is longer than 0 length Dec 18 21:04:21 ok you create the dialog, then add an setOnShowListener and inside onShow you call getButton and do with it as thou wilt Dec 18 21:04:23 in a text watcher Dec 18 21:04:40 after i grab the edittext view and before the alertbuilder.setCancelable(...).setPositiveButton(...).setNegativeButton(...)? would it work with just a simple while loop to check the length of the edittext and enable the button if it's length is greater than 0/ Dec 18 21:04:49 no Dec 18 21:05:15 sorry i am unfamiliar with textwatchers Dec 18 21:05:20 this actually allows you to override the buttons onClickListener to NOT close the dialog.... but you have access to the button Dec 18 21:05:30 yes inside the textwatcher you enable or disable the button Dec 18 21:05:31 pretty easy Dec 18 21:06:17 using a loop to wait for something is never the right approach Dec 18 21:08:11 never ever Dec 18 21:09:57 hmm Dec 18 21:11:17 does this hide the button completely or just grey it out? Dec 18 21:14:53 pm clear PACKAGE, Clear Data or Clear Cache? Dec 18 21:15:22 The help page doesn't describe Dec 18 21:20:52 is there a way to get source code of website from WebView ? Dec 18 21:27:21 for the textwatcher. if i understand it correctly, the beforeTextChanged executes basically when the dialog opens, the afterTextChanged executes after the very first character is typed. and then onTextChanged executes for every character typed. since i want the accept/apply/positve button to be greyed out only if they have a blank box and then have it ungrey and be available to click i assume i would have the code to make the positive Dec 18 21:27:21 button unavailable inside the beforeTextChanged and the enable code inside afterTextChanged. but what if the user enters something and then backspaces and makes the dialog blank again. if the user has 1 character entered and backspaces, does the watcher execute the beforeTextChanged code and make the button unavailable again automatically? that would be perfect Dec 18 21:28:10 or is beforeTextChanged executed only once. and after the user enters anything the first time, even if the user backspaces everything it doesnt get called again? Dec 18 21:29:33 whats the best bottom sheet thing these days? flipboard ? Dec 18 21:29:48 Akayllin, you're not understanding Dec 18 21:30:04 Akayllin, before is there for you to cancel text changes Dec 18 21:30:13 after is to save changes Dec 18 21:30:41 you typically only need onTextChanged Dec 18 21:31:51 true but that seems like a waste of calculations to do a check for the length of entered text after every single one when they only time the length matters is when it changes from 0 to 1 or from 1 back to 0 Dec 18 21:31:56 anybody has a workaround for marshmallow on nexus 6 always showing RSA popups when you connect it over usb? Dec 18 21:32:18 ashish_d, check the remember box Dec 18 21:32:32 marshmallow only ever shows me once Dec 18 21:32:33 pfn: doesn't work Dec 18 21:34:14 so tempted to buy a 6p it's so nice Dec 18 21:34:31 but a 5x is better for me, haven't handled one yet though Dec 18 21:43:13 plaid app has BottomSheet :) Dec 18 21:55:37 everything has it now Dec 18 21:55:54 my entire app is a BottomSheet Dec 18 22:00:01 hi all Dec 18 22:00:24 So I have the source code for an app Dec 18 22:00:29 that was written using Eclipse ADT? Dec 18 22:00:36 (I'm pretty sure the acronym was ADT) Dec 18 22:00:47 can I open this easily using Android Studio? Dec 18 22:01:30 there’s an import Dec 18 22:02:43 ok Dec 18 22:02:56 "import module" ? Dec 18 22:04:15 s73v3r? Dec 18 22:04:45 I think it’s File->New->Import Project Dec 18 22:05:59 pfn oh i meant the source code Dec 18 22:06:38 s73v3r you like big bottoms don't you :D Dec 18 22:06:52 ? Dec 18 22:06:59 lol nm Dec 18 22:07:18 s73v3r "entire app is a BottomSheet" Dec 18 22:07:25 ahh Dec 18 22:07:30 project.properties: Dec 18 22:07:31 Library reference ../AndroidVolley could not be found Dec 18 22:08:34 unless you guys customized Volley, I wouldn’t worry Dec 18 22:08:37 I guess this is the line in project.properties Dec 18 22:08:38 android.library.reference.1=..\\AndroidVolley Dec 18 22:09:00 well apparently android studio believes this is an unrecoverable error Dec 18 22:09:23 it’s looking for Volley in that directory, cause eclipse said it was there Dec 18 22:09:39 g00s, I assume it's a euphemism for toilet paper Dec 18 22:09:40 i guess download Volley and put it there? Dec 18 22:10:14 What is Volley? Dec 18 22:10:54 There is a file called androidvolley-f34a0932cda51c49fed1ac6d05faf7db.jar in /bin/dexedLibs/ Dec 18 22:11:14 volley is a networking library Dec 18 22:11:58 anyone good with android bluetooth? Dec 18 22:12:57 Well this is a weird setup Dec 18 22:13:29 because project.properties says that Volley should be just outside of the root folder of the project Dec 18 22:13:32 meaning my desktop -.- Dec 18 22:13:40 sounds about what it was like back in the day Dec 18 22:13:54 so if currently Android Studio reports this as the only unrecoverable error that I can see Dec 18 22:13:57 project.properties generally isn’t supposed to be in source control Dec 18 22:13:59 if I put volley there, will it come up with another error possibly? Dec 18 22:14:17 s73v3r, it absolutely is supposed to be in source control Dec 18 22:14:40 s73v3r, local.properties is the file that's supposed to be ignored Dec 18 22:15:13 Tam_Vu: it might be a different error, but you’ll probably be a step closer to getting it imported Dec 18 22:15:19 -.- Dec 18 22:15:20 all project structure that is defined by project.properties should be in source control Dec 18 22:15:24 where do I download Volley Dec 18 22:15:36 you download it out of aosp Dec 18 22:15:40 it’s a google project Dec 18 22:15:58 well I have all of these Dec 18 22:16:13 volley is a bastard library Dec 18 22:16:24 android.library.reference.1=..\\AndroidVolley Dec 18 22:16:24 android.library.reference.2=..\\zxing-android Dec 18 22:16:26 android.library.reference.3=..\\google-play-services_lib Dec 18 22:16:27 android.library.reference.4=..\\android_support_v7_gridlayout Dec 18 22:16:28 android.library.reference.5=../Commons-imaging-v1 Dec 18 22:16:31 you’re gonna need all of those Dec 18 22:16:55 would it be easy to ask the project provider Dec 18 22:16:55 for these libraries? Dec 18 22:16:59 lol at the poor sucker who didn't want to use gradle Dec 18 22:16:59 yes Dec 18 22:17:11 or is it really easy to just download these libraries Dec 18 22:17:20 they said it was an Eclipse project, so I’m guessing they didn’t have gradle Dec 18 22:17:26 it should be easy to download Dec 18 22:17:30 ok Dec 18 22:17:57 yeah, but it would have been much easier to migrate to android studio before adding all those libraries that work as aar Dec 18 22:18:01 you’re really only going to need them for the initial import. Then Studio is going to say, “We can turn these into Gradle references”, and then Gradle can handle managing the dependencies Dec 18 22:20:35 so those library references Dec 18 22:20:38 yo Dec 18 22:20:38 are they like folders? Dec 18 22:20:44 is it pocible to test gcm without device? Dec 18 22:20:46 for example Dec 18 22:20:54 is this the second reference? https://github.com/zxing/zxing Dec 18 22:21:05 do I just download the thing as a zip, unzip it, then rename it zxing-android? Dec 18 22:21:08 i believe so Dec 18 22:21:17 rename the folder that is Dec 18 22:21:28 s73v3r: have any clue? Dec 18 22:21:30 yeah, make sure they have the same name as the file says Dec 18 22:21:42 so, but how do I know this is the correct reference Dec 18 22:21:44 DelphiWorld: Sending or receiving? Dec 18 22:21:55 because this folder is simply called zxing Dec 18 22:22:04 s73v3r: sending push notification Dec 18 22:22:12 you’d have to ask the original developer Dec 18 22:22:36 lol? Dec 18 22:22:56 DelphiWorld: if you want to test that the server makes the request, you can do that without a device. If you want to test that the device receives it, you need a device Dec 18 22:23:06 Tam_Vu: ask the original devloper Dec 18 22:23:29 s73v3r: 7i want to make sure i am sending the request correctly to the server Dec 18 22:23:44 well I might as well ask him for all the library references right? Dec 18 22:23:51 Tam_Vu: yeah Dec 18 22:23:59 otherwise, you might as well guess Dec 18 22:24:10 DelphiWorld:You still need a device token Dec 18 22:24:28 s73v3r: so? i need a device right? Dec 18 22:24:40 i guess. don’t you have one? Dec 18 22:24:54 i do Dec 18 22:24:57 but i'm just making sure Dec 18 22:25:01 cause someone is doing my push part Dec 18 22:25:23 but why not just do it, then? why spend time here? Dec 18 22:25:41 s73v3r: to make sure, i'm beginer bro Dec 18 22:36:36 does a dialogfragment seem like a reasonable candidate for a loading overlay? Dec 18 22:36:47 pfn no Dec 18 22:36:50 oops Dec 18 22:37:12 storkme no Dec 18 22:37:28 dialogs for loading displays are so Froyo Dec 18 22:37:48 this is for processing a payment, so Dec 18 22:38:30 i know it's bad practice but not a whole lot of choice for a payment. Google use dialogs for this in the play store Dec 18 22:39:00 we dont know why. maybe its some activity thats popping up with dialog theme Dec 18 22:39:55 android:clickable="true" doesn't work on TextView Dec 18 22:40:05 are dialog fragments no good? Dec 18 22:40:08 I really want to set onClick in XML Dec 18 22:41:08 never Dec 18 22:42:01 maybe there's a nice activity theme/transition for this Dec 18 22:44:30 little confused; View@setForeground is API1, but chris banes writes https://plus.google.com/+AndroidDevelopers/posts/aHPVDtr6mcp Dec 18 22:46:59 in the plaid project, there is ForegroundLinearLayour, ForegroundRelativeLayout, etc ... Dec 18 23:09:07 So what are some things that can cause an SQLiteCantOpenDatabaseException? Dec 18 23:10:34 I’ve heard db corruption, the db not being there Dec 18 23:11:15 I think I saw that trying to do multiple connections, or trying to do subsequent access too quickly might do it? Dec 18 23:22:14 android development bogs down my work laptop so bad... Dec 18 23:22:45 I need more RAM Dec 18 23:23:04 that’s why I use an iMac with 24GB of RAM Dec 18 23:23:35 I use probably 95% of 8GB Dec 18 23:23:53 and proactively close things I don't need anymore Dec 18 23:24:15 RustyShackleford 8G and still? wow, i have 4G Dec 18 23:24:27 RustyShackleford, how do you fill it up? Dec 18 23:24:31 75 minutes to compile are project :/ Dec 18 23:24:42 but after AS 0.8 or so, it got bloated enough i couldn't run the emu any more Dec 18 23:25:03 web browser, email client, im client, AS, emulator Dec 18 23:25:15 that fills 8GB? Dec 18 23:25:35 apparantly it does. Add a text editor and a terminal window to that list Dec 18 23:26:12 RustyShackleford thats kinda crazy Dec 18 23:26:39 whats crazy? That those apps use that much ram? Dec 18 23:26:56 i have AS, Safari with 10 tabs, Textual, terminal, Atom, the gradle daemon in 4G Dec 18 23:27:19 Atom is a hog still but its good Dec 18 23:27:35 yea something seems wrong, that would never fill up 8GB Dec 18 23:27:57 RustyShackleford AS grows each time i build though Dec 18 23:28:13 maybe it only uses all 8 GB during compilation Dec 18 23:28:24 I use parallel compilation and the daemon Dec 18 23:29:10 oh, that may do it Dec 18 23:29:54 do I want to turn off the parallel option? Dec 18 23:30:08 parallel compilation? Dec 18 23:30:12 does it do a lot of difference? Dec 18 23:30:40 i figured more cores being used = faster compile Dec 18 23:31:16 RustyShackleford, how long does your compile take? Dec 18 23:31:28 75 minutes Dec 18 23:31:46 oh god Dec 18 23:31:48 >.> Dec 18 23:31:51 first run Dec 18 23:31:57 what are you compiling? Dec 18 23:32:00 RustyShackleford wth ... Dec 18 23:32:01 ~5 minutes if I make a small change Dec 18 23:32:20 75minutes? Dec 18 23:32:21 lol Dec 18 23:32:22 how old is the laptop? and how big is the code base? Dec 18 23:32:23 RustyShackleford ok, now you must tell us, what the heck you're doing Dec 18 23:32:28 Bubo: work project. Its big Dec 18 23:32:38 RustyShackleford, android app? Dec 18 23:32:41 big or bloated ? Dec 18 23:32:50 both. Its awful Dec 18 23:32:56 fhow big does it need to be to have it compile 75min? how big is the apk? Dec 18 23:33:03 i work on so many big projects, none take more than like 10 minutes to build at worst Dec 18 23:33:22 well we're using AS 1.1.0 and gradle 2.2.1 Dec 18 23:33:23 actually, the worst is something like 5 minutes for incremental builds Dec 18 23:33:33 and full builds a little bit longer Dec 18 23:33:39 apparantly newer versions are signficinly faster Dec 18 23:33:40 RustyShackleford: what os u suing Dec 18 23:33:44 using* Dec 18 23:33:44 windows 7 Dec 18 23:33:47 (when building with gradle) Dec 18 23:33:49 mmk nvm Dec 18 23:33:57 why are you still using such old versions? Dec 18 23:34:10 because they have to approve all of our software first Dec 18 23:34:19 spinning disk is the first thing to. upgrade off of Dec 18 23:34:31 that makes no sense Dec 18 23:34:33 I also don't have usb access on my computer yet, so I'm stuck with an emulator for another month or so Dec 18 23:34:37 #1 speed improvement Dec 18 23:34:45 yeah, SSD for the win Dec 18 23:35:06 pfn: we do have SSD's. I think their filesystem encryption might be why it doesn't feel as responsive as an SSD Dec 18 23:35:07 i've got a 5400 rpm hitachi :D Dec 18 23:35:26 I want a new job... their tools really suck Dec 18 23:35:44 crypto wouldn't affect disk bandwidth much at all Dec 18 23:35:51 that's all cpu bound on ssd Dec 18 23:35:54 yeah, if they’re not letting developers pick their own tools, then it’s not a good place to be Dec 18 23:36:27 I've only been there two months and this is my first dev job. Might have to stick it out Dec 18 23:36:46 not unless they’re paying lots of money Dec 18 23:37:04 RustyShackleford just curious, whats your method count ? Dec 18 23:37:21 lots of dependencies, somethinkg like 70k Dec 18 23:37:50 I think multidex makes the compile take much longer Dec 18 23:38:02 it does Dec 18 23:38:46 I spent a whole two days just trying to get their app to build and run Dec 18 23:39:03 are you the only android dev? Dec 18 23:39:24 no there are others. They also agree that the project is retarded Dec 18 23:39:35 so why can’t you guys make change? Dec 18 23:39:50 they're mostly contractors. Maybe they just don't care? Dec 18 23:40:04 g00s why such an awesome HDD? Dec 18 23:40:18 i can definitely see that. someone who’s been there for a while and has had the soul sucked out of them Dec 18 23:40:20 came with my 2009 MBP Dec 18 23:40:35 why don’t you make it uncome with it :D Dec 18 23:41:02 g00s: I replaced mine with an SSD, took out the DVD drive and put the HDD in there Dec 18 23:41:02 heh machine is so old. not sure its worth updating anything on it Dec 18 23:41:28 time for a new machine soon Dec 18 23:41:52 i can’t wait for the new MBPs with the next gen Intel Dec 18 23:42:22 * g00s loves magsafe connector Dec 18 23:42:26 Ugh. Dec 18 23:42:27 No. Dec 18 23:42:37 Well, magsafe was fine, magsafe2 is awful. Dec 18 23:42:43 magsafe is awesome. The fraying cables are less so Dec 18 23:43:37 I wonder if i'm in a position to find a new job. I haven't been here long enough to earn a good review Dec 18 23:43:47 go for it anyway Dec 18 23:43:50 how's magsafe2 not awesome? Dec 18 23:43:52 ditching a project after two months looks bad for me Dec 18 23:44:00 why do they have to know Dec 18 23:44:00 maybe I can explain that this place is retarded Dec 18 23:44:07 I have no idea how it's different, I have both and they seem the same Dec 18 23:44:11 just say it wasn’t a good fit Dec 18 23:44:14 except for changing for no reason Dec 18 23:44:26 well, it’s thinner Dec 18 23:44:26 pfn, doesn't hold as well and tends to fall out if laptop isn't totally even Dec 18 23:44:42 pfn, also had problems with quite a bit of connectors in the office Dec 18 23:44:44 I guess I've noticed that Dec 18 23:45:03 I thought the larger size meant it would hold. better Dec 18 23:45:12 It's annoying throwing the laptop on a bed/couch and finding it empty because the connector moved a slight bit up. Dec 18 23:45:27 Didn't happen on old one and on the Dell non-fancy non-magnetic connector :/ Dec 18 23:45:52 of course, with those old ones, if you tripped over the cable, as I did, your laptop could be toast Dec 18 23:45:52 hmm, is there any way to apply an. animation to only part of a view... Dec 18 23:46:00 s73v3r, nop. Dec 18 23:46:09 They were built to unplug as well. Dec 18 23:46:22 (Funny enough, I ended up breaking the ethernet cable due to that. Does aren't magnet.) Dec 18 23:46:28 *ethernet connector Dec 18 23:47:00 gah I need a nap Dec 18 23:47:27 can somebody tell me why this is needed when View#setForeground() is api1 - does it not do something right ? Dec 18 23:47:29 http://antoine-merle.com/blog/2013/07/17/adding-a-foreground-selector-to-a-view/ Dec 18 23:47:58 g00s, afaik setForeground never worked before API16? 18? or something. Dec 18 23:48:04 Unless applied to FrameLayout. Dec 18 23:48:18 lol was it a nop or something Dec 18 23:48:50 apparently it IS needed, nick butcher has minSdk=21 and does this too Dec 18 23:49:45 but he didn't embed in FrameLayout, he made ForegroundLinearLayout, ForegroundRelativeLayout, etc Dec 18 23:49:59 so i guess i would need ForegroundPercentRelativeLayout :P Dec 18 23:49:59 I think we already talked about it here... it's possible it's not even API1 and it's a wrong label. Dec 18 23:50:09 oh Dec 18 23:59:21 Oh well, I used an x property animator and it looks great Dec 19 00:20:12 Hey All:) Dec 19 00:24:17 hey guys, is there a better alternative for countdowntimer? I want to do a simple countdown from 3 to 0 and seems like countdowntimer has too mayn delays, it has a delay after it counts down to 1, and theres also a delay for the execution of onFinish Dec 19 00:51:45 yo yall watching the news Dec 19 00:52:01 the story about capturing the lochness sea creature Dec 19 00:52:23 thought it was fake when they were talking about it at work but now its all over the nightly news Dec 19 00:56:22 what Dec 19 01:06:59 build.gradle -> Warning:Unable to find optional library: org.apache.http.legacy. I included org.apache.http.legacy.jar into libs on the project folder. What else do I need to do :/ Dec 19 01:13:15 if it's a jar and not a library project, if i recall all you do is throw it in your libraries & rebuild the project, don't think you need anything in gradle specifically (other than the 'include all files in libs/' stanza) Dec 19 01:13:19 (which is standard) Dec 19 01:13:44 but i'm exhausted & it's been a while, so possibly I've completely forgotten Dec 19 01:18:06 impliednude, if it's a JAR file, put it into libs folder and in gradle: compile 'libs/jar-name.jar' Dec 19 01:18:52 Otherwise in Android Studio up there Build -> (Something about configuring libs I can't remember at the moment) Dec 19 01:19:09 typically taken care of by default with the compile fileTree(dir: 'libs', include: ['*.jar']) stanza Dec 19 01:19:12 There you can add a project dependency as well as library files (jar) too Dec 19 01:20:00 Well, I thought it works like that, but a lib fails to integrate when not specifically compiled Dec 19 01:20:03 idk why Dec 19 01:34:02 Guys um, is there anything special in a CardView other than having a shadow and stuff like that? Dec 19 01:34:47 Because I see super fancy cards in the design tutorial but I can't find good way to make like them Dec 19 01:35:24 I find myself adding every bit, margin padding and stuff, am I missing something? Dec 19 01:36:51 OverCoder: they discovered the lochness sea creature today and youre concerned with padding and margins? Dec 19 01:37:16 What do you mean? Dec 19 01:37:24 havent u been following the news? Dec 19 01:37:33 Nope Dec 19 01:37:41 I hate news Dec 19 01:38:28 but really, am I missing something? or its just a simple card and in the end you do it all? Dec 19 01:40:46 none of those things are working. Still getting reported missing. Even though I have tried all Dec 19 01:56:26 slow night Dec 19 01:57:51 what y’all android nerds think bout android tv? Dec 19 01:58:14 Anyone ever used cordova? Dec 19 02:13:22 what's the best way to draw some arrays of yuv420 pixels to the screen? Dec 19 02:13:49 Bitmap? Dec 19 02:16:41 is it? Dec 19 02:17:18 could go with lockcanvas, draw the bitmap, unlock and post the canvas using textureview Dec 19 02:17:27 afaik pixel arrays are just bitmaps Dec 19 02:17:36 could go with MediaCodec which can apparently draw raw video to the surface Dec 19 02:17:59 could go with opengl, put the pixels in a texture and do the yuv to rgb conversion in shaders Dec 19 02:18:24 so many options and I don't know which is the fastest Dec 19 02:18:39 woosh, I'm not good with all those, but what's your problem then Dec 19 02:18:46 ah, the fastest Dec 19 02:19:14 i have a feeling that the last one is the fastest, but not sure though **** ENDING LOGGING AT Sat Dec 19 02:59:58 2015