**** BEGIN LOGGING AT Tue Feb 28 03:00:01 2017 Feb 28 03:07:12 hola Feb 28 03:48:46 oh, til "wallpaper motion effect" Feb 28 03:49:40 was like "wtf" visual layering observed where never expected šŸ˜Š Feb 28 03:51:29 capella, most of the times you seem to write random or almost random sentences in channel Feb 28 03:51:51 don't forget the square box Feb 28 03:52:15 Yah, but I try to start mobile Android software related Feb 28 03:52:31 er, stay related Feb 28 03:55:12 In android 7.1 --> Privacy --> Privacy Guard --> nearly all apps require "Wi-Fi Scan" and "Modify settings". What are these two permissions? I tried google. I can not find anything. thanks. Feb 28 03:55:22 yeah, sorry. I actually meant "random or almost random Android-related sentences" Feb 28 03:56:05 heh that's more like it Feb 28 03:57:15 I could simply lurk in silence like the others melatonina Feb 28 03:57:51 no, don't do that Feb 28 03:57:58 sometimes quick comments stir interesting chatter... if we all lurk nothing happens Feb 28 03:58:06 feel free to express yourself Feb 28 03:58:21 boogers Feb 28 03:58:35 s f Feb 28 03:59:01 heh, now that's on my permanent record :) Feb 28 03:59:53 we could talk about Japan negative interest rate trends Feb 28 04:00:42 and how to study then with a custom android app we're writing Feb 28 04:02:14 why using Android for that? Feb 28 04:02:47 unless it's just visualization Feb 28 04:02:59 excuse to talk money in the wrong channel? šŸ™‚ yah, just playing with you Feb 28 04:03:46 ah ok Feb 28 04:08:49 I'm easily played with Feb 28 04:12:14 lol what is that square box capella (good thing its not a round box) Feb 28 04:13:02 capella forget about japan's negative interest rates, make an app that will find Trumps tax returns. that will bring you more fame Feb 28 04:13:26 which one? |channel? yah,| Feb 28 04:14:01 yeah Feb 28 04:14:03 trumps returns are wrapped inside Obama's us birth certificate Feb 28 04:14:20 trollololol Feb 28 04:14:37 heh, we'll never see either Feb 28 04:15:43 How do I close the keyboard programatically? I don't want to permanently hide it just close it Feb 28 04:18:16 capella Obama showed it to him at the 2011 WHCD; he was so humiliated - thats probably why he ran, for revenge, so sad Feb 28 04:20:24 i'll never forget obama's joke that night about trump firing gary busey, holy shit that was a roast Feb 28 04:20:33 revenge is a dish best served cold, like the tears on Joe Biden face when I lick their salty goodness Feb 28 04:21:10 i'm sure Joe is having fun driving his trans am now Feb 28 04:21:25 Where does CMake look for the Android NDK? I fixed up my paths to point to my newest version, but every time I build it seems to look for the older one I had installed before manually. Feb 28 04:21:25 Comedy Central been replaying the roast of DT, it's pretty funny Feb 28 04:23:50 so .. that google tardigrade thing for your phone, how do you feed it ? Feb 28 04:24:30 the water bears need to be fed right, man thats like a real life Tamagotchi Feb 28 04:26:32 "A strain of tardigrades he was testing, a carnivorous strain, had turned to cannibalism inside a prototype biome" oh man Feb 28 04:28:11 these guys are crazy http://venturebeat.com/2017/02/24/complicated-weird-beautiful-the-secret-google-project-to-put-an-aquarium-full-of-tiny-wiggly-water-bears-inside-your-phone/ Feb 28 04:33:01 capella new rpi zero coming out tomorrow. i wonder which variants Android Things supports Feb 28 04:35:11 tardigrads? I raise you "disco fish shoes" https://usercontent1.hubstatic.com/8484716_f520.jpg Feb 28 04:35:42 oh man those poor fish lol Feb 28 04:36:44 http://1u88jj3r4db2x4txp44yqfj1.wpengine.netdna-cdn.com/wp-content/uploads/2017/02/giphy-3.gif Feb 28 04:37:06 tardigrads - - - ^ Feb 28 04:39:52 melatonina... how about a dashboard app for microcontrol of disco tardigrads? Can you handle the customer billing service portion of the app? I don't want to interface with Google Feb 28 04:55:20 fragile: should be wherever Studio thinks your NDK is, but I suppose it could be finding one in your PATH? Feb 28 05:05:31 guys : How do you layout and design an UI this designer is making me crazy Feb 28 05:05:54 edit the XML Feb 28 05:18:50 bankai_: I am trying to an image button is a specic location but its not gettign there whats am I doing wrong .... Feb 28 05:21:53 "tests of 5g @ at&t producing results 10 to 100 times faster than 4g"... woot! gimme Feb 28 05:24:41 whats the best way to show what I have in my layout and ask for help on how to fix it please. it's f****kin not right :) Feb 28 05:27:35 paste the XML Feb 28 05:27:49 screen print 2 pastebin? Feb 28 05:28:00 both? Feb 28 05:28:13 por que no los dos? Feb 28 05:30:03 en efecto Feb 28 05:37:49 hmm - got it by a total FLUKE :) does that count Feb 28 05:45:00 yes! Feb 28 05:47:33 danalber1: I figured it out. It was set in the local.properties file of the project I downloaded for some reason. Feb 28 06:18:19 proof mobile apps are evil http://blogs.wsj.com/moneybeat/2017/02/24/epic-game-of-noodles-heats-up-in-eastern-china/?mod=google_news_blog Feb 28 06:19:06 * capella think I saw Leeds in the background throwing something :/ Feb 28 06:19:26 To Read the Full Story, Subscribe or Sign In Feb 28 06:19:47 crap forget Feb 28 06:20:25 just tell what you find relevant Feb 28 06:24:05 Everytime I try to create a new keystore in android studio: "Error, Picked up _JAVA_OPTIONS: -Xmx512M" What do I do? Feb 28 06:24:13 meh, was thinking of Uber vs US taxis in areas like NY Feb 28 06:24:52 Sometimes tech is about more than the software Feb 28 06:29:04 capella] "tests of 5g @ at&t producing results 10 to 100 times faster than 4g"... woot! gimme <-- problem is Feb 28 06:29:11 Medium is faster, but you still gotta pay $10/g Feb 28 06:29:15 Total horseshit Feb 28 06:32:41 nu-uh, that's why I said gimme! Feb 28 06:33:47 and there's no 5g pricing availability yet I'd guess as the product isn't rolled out / standardized, etc Feb 28 06:34:33 but, awesome transfer rates to mobile devices shoves wired cable close to death Feb 28 06:35:16 I'd be pretty content with even 4g xfer rates Feb 28 06:35:24 if not for the bw billing hell that it usually comes with Feb 28 06:55:32 man I dont know why I havent used Gson til today.. Feb 28 06:58:59 anyone can explain firebase ā€˜addedā€™ and ā€˜valueā€™ with ā€˜persistentā€™ setting set Feb 28 06:59:24 I'm seeing it doesn't return all rows from query Feb 28 07:00:19 why not sql http://ci.memecdn.com/2392289.jpg Feb 28 07:02:29 Everytime I try to create a new keystore in android studio: "Error, Picked up _JAVA_OPTIONS: -Xmx512M" What do I do? Feb 28 07:03:47 ClydeSlims: look in gradle.properties Feb 28 07:04:12 org.gradle.jvmargs=-Xmx1536m Feb 28 07:04:15 not sure what that means Feb 28 07:04:29 max memory use Feb 28 07:04:41 how do I fix it Feb 28 07:04:46 idk Feb 28 07:05:06 well I can still build unsigned apk's Feb 28 07:05:13 which is fine its just...it keeps building it in debug for some reason Feb 28 07:05:17 I want to build in release Feb 28 07:05:32 debug isnt set in the manifest.. Feb 28 07:05:58 create new empty android studio project and look there Feb 28 07:06:20 if config is broken Feb 28 07:10:43 What would I be looking for? Feb 28 07:11:44 build.gradle, release Feb 28 07:14:59 squ: My build.gradle, http://pastebin.com/wUwDmfs0 Feb 28 07:15:25 where exactly does it output the apk? Because I checked in app/build/outputs/apk and the name of the .apk is app-debug.apk Feb 28 07:15:41 look in project settings Feb 28 07:15:56 When I built: Gradle tasks [:app:assembleDebug] Feb 28 07:19:07 ughh still generating apk-debug :( Feb 28 07:22:50 Got it. Just had to change the build varient to release Feb 28 07:22:57 If only I knew how to fixed this keystore error though... Feb 28 07:23:40 You can tell it where to output the apk Feb 28 09:00:42 raoul11: how was last night? Feb 28 09:00:50 are you registering to the hackathon? Feb 28 09:01:17 hi buddy Feb 28 09:01:22 was ok Feb 28 09:01:23 a bit long Feb 28 09:01:32 well, there was a lot to cover Feb 28 09:01:37 yonathan talked mainly about mvp Feb 28 09:01:52 brit bout firebase Feb 28 09:02:05 i dont haz time for hackhathon Feb 28 09:02:09 yarkony spoke? Feb 28 09:02:14 nop Feb 28 09:02:36 hmmm Feb 28 09:02:53 I am planning on popping over to the hackthon, maybe we should meet up and go root for the teams Feb 28 09:03:13 sure Feb 28 09:03:32 hey thepoosh how are you? Feb 28 09:03:38 if ill manage to cover the 20000000 bugs my colleage has opened Feb 28 09:03:39 squ: tired AF Feb 28 09:03:43 but ok I guess Feb 28 09:03:48 how everything ended in hospital? Feb 28 09:03:51 raoul11: bring them over, we can work them together Feb 28 09:04:03 with my daughter or with my wife? Feb 28 09:04:04 another leak i found now in supportmapfragment Feb 28 09:04:10 switched it with a mapview Feb 28 09:04:17 thepoosh: with them Feb 28 09:04:32 my wife had a son (she's out and ok) Feb 28 09:04:41 cool Feb 28 09:04:50 my daughter smashed her face, they patched her up Feb 28 09:04:56 all is good now Feb 28 09:04:59 thing i dont get bout mvp is how much more boiletpart u gotta write for every view Feb 28 09:05:00 everyone is tired AF Feb 28 09:05:22 raoul11: the boilerplate allows differentiating between display and logic Feb 28 09:05:38 and allows customizing view without touching logic Feb 28 09:05:45 in theory Feb 28 09:05:49 i get that, but its so much work Feb 28 09:06:00 and then u got all those activity related operations Feb 28 09:06:19 maybe at first, maintaining 4 year old code can be a real bitch without these separations Feb 28 09:06:33 watch some uncle bob videos about SOLID Feb 28 09:08:11 i will, once i find out wtf does FacebookActivity leaks af Feb 28 09:08:18 I just found a bug, my funciton doesn't return february 28 Feb 28 09:08:29 but 27 Feb 28 09:08:54 lol Feb 28 09:08:54 what the actual fuck?! Feb 28 09:08:59 how did that happen?! Feb 28 09:09:09 shana meuberet Feb 28 09:09:13 raoul11: try LeakCanary with it and see what leaked Feb 28 09:09:15 hehe Feb 28 09:09:16 donno how you say it in english Feb 28 09:09:19 leap year Feb 28 09:09:46 thepoosh: its on my colleague device, nd im waiting for him. trying to reproduce it on two devices and not gettin any Feb 28 09:09:53 today doesn't exist, my function thinks so Feb 28 09:11:11 thepoosh: they're having a performance meetups in june Feb 28 09:11:17 which should be good Feb 28 09:12:11 found a crime companion, another function, returns 27 as end of month Feb 28 09:13:43 1488232800 Feb 28 09:13:51 when is that Feb 28 09:14:23 raoul11: yeah, I will try to mentor and be there Feb 28 09:14:39 squ: http://timestampconvert.net/1488232810-timestamp/ Feb 28 09:14:56 looks like 27 to me Feb 28 09:15:02 yep Feb 28 09:34:58 Hello i am trying to parse a Uri like this. Uri path = Uri.parse("android.resource://" + appContext.getPackageName() + "/" + R.raw.samplevideo1280x7201mb); Feb 28 09:34:58 . But i get an java.lang.IllegalArgumentException: The storage Uri could not be parsed. down the line. Does my Uri look okay ? android.resource://com.asq.bac.bac/2131099648 ? Feb 28 09:49:13 is it possible to have multiple assets folder for different variants? Feb 28 09:54:34 Entvex, have you seen this - http://stackoverflow.com/questions/8833772/convert-a-string-to-a-resource-uri-for-mp3-playback ? Feb 28 09:55:32 i have no idea what is your problem, but i found answer in there really comprehensive Feb 28 10:34:12 hi Feb 28 10:35:56 i have created one app which creates tags on google maps when user clicks on any location on maps, but the problem is the tag is not appearing on lollipop version 5.1 devices while it is working on marshmallow and kitkat devices ,please if anybody can help? Feb 28 10:36:58 ?? Feb 28 10:37:28 No we can't help with so little information. Feb 28 10:38:40 what else you need? Feb 28 10:38:44 tell me Feb 28 10:40:39 ?? Feb 28 10:45:29 ?? Feb 28 10:45:44 Anything about what you're actually doing to create a "tag" whatever it is? Feb 28 10:46:08 a listener Feb 28 10:46:13 How unique is an Android video Id? Will it be reuse in a short time if I delete a video? Feb 28 10:47:03 What should I store on the server side to check if a video was already "uploaded to the cloud"? Feb 28 10:47:34 mavrik MarkerOptions marker = new MarkerOptions().position(new LatLng(markerlat, markerlog)).title("abc"); .................marker.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)); Feb 28 10:48:06 this code i am using to create it Feb 28 10:53:07 ? Feb 28 10:56:47 ?? Feb 28 11:00:48 anyone else pls? Feb 28 12:09:19 hello guys, i want to develop an app which can insert an additional option into the existing phone dialer. Is this possible for both stock android phones like Moto series and custom ROMs like MI phones ? Feb 28 12:09:33 Would like to know the feasibility of it Feb 28 12:10:06 Or am i nuts to think that i can insert an option using my app into a custom ROM dialer ? Feb 28 12:10:45 yes Feb 28 12:10:48 youre nuts Feb 28 12:10:56 you can make your own dialer app Feb 28 12:11:18 but its impossible to put option into existing one Feb 28 12:11:41 via app Feb 28 12:14:22 Ashiren: is it possible to pop an option after the call ends everytime and prompt the user with a question irrespective of type of ROM used ? and based on their response take an action ? Feb 28 12:14:28 Ashiren: and thanks for replying Feb 28 12:16:53 personally i havent played with this myself much Feb 28 12:17:26 but they keywords to look for are BroadcastReceiver and PHONE_STATE action Feb 28 12:17:44 for listening for end calls, but i dont know if its reliable Feb 28 12:17:56 another keyword TelephonyManager Feb 28 12:18:15 thank you Ashiren Feb 28 12:21:57 Is there a gradle task to install all dev flavors on device? Feb 28 12:22:42 installDebug doesn't work, and I don't want to make a task to run all hardcoded install{Flavou}rDebug commands Feb 28 12:25:52 *if that is even possible Feb 28 12:39:20 Hi all, if you have an app signed with the platform key (system signature), is it possible to disable unistalling your app? Feb 28 12:39:40 o.O Feb 28 12:41:53 There is assembleDebug but no installDebug :( Feb 28 12:44:47 Is there a gradle task to install all dev flavors on device? < nope Feb 28 12:45:23 you should have install[variant]Debug Feb 28 12:46:39 funny they provide uninstallAll it seems, but no installAll ;) Feb 28 12:49:28 adq: Yeah I noticed, funny thing, there is assembleDebug which makes all flavors in debug variant Feb 28 12:58:57 crazy seeing how Debug is in the assemble Feb 28 12:59:31 woot Feb 28 12:59:49 Well I just wrote a shell script to do all that: remove all apks, run uninstallAll, assembleDebug and then install all apks using adb Feb 28 13:00:06 A little slower probably but, oh well Feb 28 13:00:31 share it with community Feb 28 13:01:18 Here you go http://dpaste.com/213181N Feb 28 13:05:05 cool Feb 28 13:25:43 Does somebody have experience with the WRITE_SECURE_SETTINGS permission? Feb 28 13:28:07 It's signature only system permission. Feb 28 13:28:11 You can't get it as a standard app. Feb 28 13:36:15 Mavrik, I need to figure out what features an app which is signed with the platform key has. But can't find much info about this Feb 28 13:36:48 You'll probably have to dig into the source of Android to find the list of permissions and their types. Feb 28 13:37:06 I found this book to be pretty good (although a bit old) for this: http://shop.oreilly.com/product/0636920021094.do Feb 28 13:37:11 Thanks, I'll try to check it out Feb 28 13:44:36 FrancescoV: https://android.googlesource.com/platform/frameworks/base/+/master/core/res/AndroidManifest.xml Feb 28 13:44:39 I believe that's what you're after Feb 28 13:45:08 lists the protection level for any given permission Feb 28 13:45:34 Roughy: thanks! Feb 28 14:00:39 Hi! I have some problems in android studio, I get some red errors on different things like "Cannot resolve". When I rebuild it is not there anything but if I run the program, it comes back, then it's not there again and then it comes back etc.. Feb 28 14:08:11 Should I send the mainactivity code? Feb 28 14:25:07 Can UIAutomator find a view that is hidden by another view? it throws exception when I try. Feb 28 14:25:47 hi Feb 28 14:27:15 brb Feb 28 14:33:58 I get the error "Class is a not a View com.google.android.gms.maps.MapFragment", do anyone understand this error? I have no idea Feb 28 14:35:25 The error would suggest you are trying to treat a MapFragment as a view, or passing it to something that only supports views Feb 28 14:37:25 Roughy: I got this code: http://pastebin.com/cAB30ndB Feb 28 14:37:46 I just try to add a MapFragment and have followed a guide just to add the google maps to my application Feb 28 14:38:03 Just so I can see the map first Feb 28 14:39:07 and at what line is that error popping up? Feb 28 14:41:09 Roughy: Line 17 here http://pastebin.com/ckxmKhK1 Feb 28 14:41:40 I believe fragments aren't declared in xml layouts like that Feb 28 14:41:46 It's not a view so it can't add the fragment I think, but not sure how to fix it Feb 28 14:41:55 https://developers.google.com/android/reference/com/google/android/gms/maps/MapFragment Feb 28 14:43:01 Yeah I have like that, as you see on the first pastebin link Feb 28 14:43:09 no you do not Feb 28 14:43:19 You have it added as if it's a view class Feb 28 14:43:31 while you need to declare it like Feb 28 14:43:31 class="com.google.android.gms.maps.MapFragment" Feb 28 14:43:45 followed by the usual view layout params Feb 28 14:44:55 alright that should be in activity_main.xml or in activity_maps.xml? Feb 28 14:46:49 I think I fixed that now Roughy, but if you look at my MainActivity class Feb 28 14:47:05 I get the error: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference Feb 28 14:48:09 Is it "this" which is null on line 35? Feb 28 14:48:24 nope, it's the map fragment Feb 28 14:48:54 hmm ok how can that be null? that it doesn't exist? Feb 28 14:49:52 I don't usually spawn fragments with layouts but uhh... Feb 28 14:50:01 is the fragment declared in activity_main ? Feb 28 14:51:06 is there a possiblity to close location services when the app closed ? Feb 28 14:51:30 rocktop: yes see here http://pastebin.com/qE6K8jX2 Feb 28 14:51:39 opps Roughy i mean* Feb 28 14:53:08 Zajt, oh I submitted the link hhhhhh Feb 28 14:53:51 Zajt, you must give me the correct answer to correct the mistakes hehe Feb 28 14:55:03 anyidea ? Feb 28 14:55:41 Can I use Google Cloud Platform from EU as a private (as opposed to a company)? Feb 28 14:57:02 Zajt: I believe you need to use SupportMapFragment if you are using the support fragment manager Feb 28 14:57:11 Melatonina: Not as far as I know. (I was looking at those instructions as well.) Feb 28 14:57:27 standard MapFragment is, as you'd expect, extended from Fragment, not SupportFragment Feb 28 14:57:48 https://developers.google.com/android/reference/com/google/android/gms/maps/SupportMapFragment Feb 28 14:59:08 you mean putting SupportMapFragment in the XML-file Roughy ? Feb 28 14:59:17 yes Feb 28 14:59:53 support-anything only works with other support-anything Feb 28 15:00:18 in this case you are mixing a non-support fragment (MapFragment) with the support FragmentManager Feb 28 15:00:29 alright Feb 28 15:00:54 fizzie: thanks Feb 28 15:12:43 I think it solved the problem Roughy ! thanks! Feb 28 15:13:33 ćƒ¾(ā€ā•¹ā—”ā•¹)ļ¾‰ļ¾žā€ Feb 28 15:17:29 Can a system application scan network responses of other applications? Feb 28 15:25:33 Is there any specific code that I can use to turn off the location services in my phone from my app? Feb 28 15:28:01 rocktop, you can't turn it off directly but you can show the user the location settings intent Feb 28 15:28:02 Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS); Feb 28 15:28:02 startActivity(intent); Feb 28 15:53:24 Hi I am making an app that synchronazes with a spreadsheet in drive. I have the settings where I set the synchronization on of off. But I am not sure where should I put the synchronozation task, it is suppouse to run in the backgroud. Should it be in the MainActivity? thanks Feb 28 16:02:32 a background task probably should be something like an intentservice Feb 28 16:02:42 (which will give you a ton of reading up to do) Feb 28 16:04:12 and/or sync adapter Feb 28 16:04:32 hm, I'm not familiar w/ those, yeah, look at those too Feb 28 16:24:13 thanks guys Feb 28 16:52:22 Is it possible to change the keyboard dictionary on the fly? Feb 28 16:53:29 if it's your keyboard, yes Feb 28 16:53:39 but not the default keyboard? Feb 28 17:03:00 anybody going to Google IO? Feb 28 17:05:09 I feel burned and salty from last year, so no Feb 28 17:12:12 pfn, lol physically or personally? Feb 28 17:12:24 emotionally Feb 28 17:12:33 overpriced, overcrowded, underdelivered Feb 28 17:12:48 It's not like you go there to listen to talks :) Feb 28 17:13:20 I mostly go there for the swag Feb 28 17:13:22 of which there was none Feb 28 17:13:33 being able to talk to googlers directly is a plus Feb 28 17:15:33 Yeah they should stop giving out swag Feb 28 17:15:45 anyway, without the swag, it's not worth the price of admission Feb 28 17:16:00 even worse, charlie xcx wore some G-rated outfit for her performance... Feb 28 17:16:03 disappointing as .... Feb 28 17:16:56 and I hate kygo Feb 28 17:17:53 Is it possible that there is no keyboard device in /dev/input/ ?? Feb 28 17:18:00 yep Feb 28 17:18:15 hmmm... funny Feb 28 17:18:26 I did see a couple of comments last year that although it's understandable they want to get away from the swagfest, it does have special value for non-USian devs who might find it hard to get hold of up-to-date kit elsewhere Feb 28 17:18:31 how am I supposed to trigger stuff with sendevent now? Feb 28 17:18:53 The point is kinda you meet people who'll buy your software and apps :) Feb 28 17:19:07 Mavrik: that yep was for me Feb 28 17:19:10 ? Feb 28 17:19:53 dokma, /dev isn't part of Android CTS or even Android spec Feb 28 17:20:00 so the hardware vendor can do whatever to it Feb 28 17:20:25 Mavrik: not cool Feb 28 17:20:31 as long as it'll pass CTS (which includes writing a touchscreen/button driver in whatever way as long as it ends up having a conformant HAL) Feb 28 17:20:56 remember, Android was built to be independent of the underlying kernel Feb 28 17:21:21 So I'm stuck to using input keyevent ? Feb 28 17:21:36 no idea what you're trying to do Feb 28 17:21:56 Script my banking app for automatic payments Feb 28 17:22:21 Already done most of it but now figure input text doesn't eat UTF8 Feb 28 17:23:55 Write an app that sends accessibility events Feb 28 17:24:12 UiAutomator does the same afaik Feb 28 17:24:20 what bank doesnā€™t already offer automated payments? Feb 28 17:24:26 mine Feb 28 17:24:41 but they have an app? Feb 28 17:24:44 And I get invoices that I need to parse first... Feb 28 17:24:46 sounds backwards as fuck Feb 28 17:24:53 app that doesn't automate anything... Feb 28 17:27:58 If you were writing a Java based Android app, how would you feel about a library using Kotlin? Feb 28 17:28:14 probably not jazzed Feb 28 17:28:28 pfn, they weren't handing out pixels last year? Feb 28 17:28:39 thebishop, nada, a google cardboard Feb 28 17:28:45 i thought that was 2 years ago Feb 28 17:28:52 which is underwhelming, i agree Feb 28 17:28:57 s73v3r: :( Feb 28 17:30:44 pfn, looks like there were free smart watches the same year as the cardboard Feb 28 17:31:15 and nexus 9 in 2015 Feb 28 17:31:16 thebishop, that was the first year of cardboard Feb 28 17:31:35 yiati, depends on API and what size of library it is Feb 28 17:31:49 getting a hit of a full Kotlin runtime just to use a small utility might be much Feb 28 17:32:17 pfn, bleh yeah... $500 in Google Cloud credit hahahahaha Feb 28 17:32:24 #2016 Feb 28 17:32:27 worst year on record Feb 28 17:32:37 google cloud credit, which expires, and there's no point in using it Feb 28 17:32:41 haha Feb 28 17:32:43 other than to obligate yourself to continuing to use it Feb 28 17:32:57 i'd rather have a year of Google Fi Feb 28 17:33:00 worse years ahead of us... Feb 28 17:33:28 that's too bad, Google Home would've been a smaller prize, but still cool Feb 28 17:35:24 Why not just buy it instead of paying 1100$ for it? Feb 28 17:35:59 Having people hog up tickets just to get random crap is a problem which should be solved. Feb 28 17:37:19 ^ Feb 28 17:41:14 yeah, I canā€™t really have any sympathy for those that complain about not getting awesome swag at IO Feb 28 17:43:41 but the swag never equals the price of admission Feb 28 17:43:45 how many people are actually doing this? Feb 28 17:43:58 thebishop, it has exceeded the price of admission in the past Feb 28 17:44:00 even a brand new smart phone is like half the price of admission Feb 28 17:44:03 hmm ok Feb 28 17:44:28 anyway, I'm not gonna try to go because the conf generally sucks Feb 28 17:44:35 overcrowded and underdelivers Feb 28 17:44:47 can't get into interesting sessions, etc. Feb 28 17:50:32 and it's not particularly developer focused Feb 28 17:55:42 very simple for me - if it was in my home town, I'd go, but there's no way it's worth the cost, time and effort of getting there and staying nearby Feb 28 17:58:25 WWDC and I/O pay of very well for us as a company. Feb 28 17:58:42 Paying as an individual is not worth it and going to any conference for the talks is a waste of money and time :) Feb 28 18:00:21 it's obviously worth it for google who benefits of a massive free exposure in the tech media Feb 28 18:00:37 like free ads Feb 28 18:02:50 well, the keynote gets most of the press, and they've completely turned it around from the madness of a few years ago Feb 28 18:03:07 It's still like 3 hours tho :/ Feb 28 18:03:25 And IIRC they still don't have separate tickets. Feb 28 18:06:44 separate tickets? Feb 28 18:06:53 you mean for press? Of course they do Feb 28 18:07:31 for the keynote Feb 28 18:08:42 anyone having troubles building/ Feb 28 18:08:45 iā€™m pretty sure for everything Feb 28 18:09:00 I am stuck Configuring > 2/2 projects > Resolving dependencies Feb 28 18:09:03 AWS is down Feb 28 18:09:10 or at least having issues Feb 28 18:12:25 which region Feb 28 18:12:40 East at least Feb 28 18:14:13 US I assume Feb 28 18:16:17 yes Feb 28 18:20:25 Good thing clouds offer redundancy against failures. Feb 28 18:23:26 So this is why I can't play agar.io >=( Feb 28 18:36:17 who is here? Feb 28 18:36:21 hi all. Feb 28 18:36:42 i need to help..! who can help me. Feb 28 18:38:06 great.. Feb 28 18:38:22 I have some dependency that is not resolving. Is there a way to do a verbose build? Feb 28 18:38:32 Cufaf what u need Feb 28 18:39:04 ohhh yes Feb 28 18:39:42 i build to omnirom. i can post you msgg what s wrong Feb 28 18:40:20 idk omnirom Feb 28 18:40:50 anyone know of a way to download all the dependencies, keep them locally, and not ask for them on a clean/build Feb 28 18:41:02 Cufaf: this is app dev, not rom dev. Try #android-root or XDA Feb 28 18:41:32 Tricknology: Generally thatā€™s whatā€™s supposed to happen. Itā€™s not supposed to refresh every time Feb 28 18:41:33 okay. sorry bro Feb 28 18:41:50 I can't build anything right now :( Feb 28 18:41:55 no problem. Just trying to point you somewhere that you can get help with your problem. Feb 28 18:42:47 I'm thinking that part of it might be that I did a clean rebuild. Some dependency is not reachable? Gradle is hanging at Resolve dependencies.. so if they're local I'd assume they'd be found Feb 28 18:43:10 I'm thinking I should create a local maven repo with the cached dependencies there Feb 28 18:43:14 and point my build to that Feb 28 18:46:46 that might be it Feb 28 18:51:05 I can build a small personal project with light dependencies.. just not my work project :P Feb 28 18:51:20 Has that happened to anyone in here? Feb 28 18:52:12 Build with --info or --stacktrace to get an error Feb 28 18:52:17 If none is shown by default Feb 28 18:55:59 SimonVT: where will that be shown? I'm not seeing anything Feb 28 18:56:30 Where you typed your build command Feb 28 18:57:44 just stuck on "> Configuring > 2/2 projects > Resolving dependencies ':app:_us_productionDebugApk' Feb 28 18:57:44 " Feb 28 19:00:37 Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.14.1-all.zip'. Feb 28 19:00:40 D: Feb 28 19:09:40 it's sad how few developers can figure out how to build from the commandline Feb 28 19:10:41 I could say the same thing about coding in assembly Feb 28 19:10:58 In both cases, it's simply something very few people actually need Feb 28 19:11:49 actually, people need to be able to build from commandline regularly Feb 28 19:11:59 alright.. pfn i did it doesnt show anything Feb 28 19:12:13 had to go to the ide log Feb 28 19:12:14 I've yet to need it Feb 28 19:12:16 Connect to fabric-artifacts.s3.amazonaws.com:443 [fabric-artifacts.s3.amazonaws.com/54.231.82.34] failed: Operation timed out Feb 28 19:12:22 that's the culprit Feb 28 19:12:35 bummer Feb 28 19:12:40 so something you didnā€™t need to go to the command line to find out Feb 28 19:12:44 but it shows if you ran gradlew from the commandline Feb 28 19:12:53 iill try again Feb 28 19:13:00 donā€™t bother Feb 28 19:13:03 check aws Feb 28 19:13:10 someone mentioned aws is down earlier Feb 28 19:13:43 Dagmar, how do you do CI? Feb 28 19:14:01 And debug custom gradle tasks? Feb 28 19:14:39 ooh pfn there you go Feb 28 19:14:55 yeha you did i just wanted to see how I could tell instead of wandering about in teh future Feb 28 19:15:17 Mavrik: Rather obviously, I *don't* because I don't need to. Feb 28 19:15:22 for everyone's reference ./gradlew --info --stacktrace --debug Feb 28 19:15:35 Dagmar, mm Feb 28 19:15:36 digging around for ide logs isn't exactly easy Feb 28 19:15:41 Dagmar, you don't do CI_ Feb 28 19:15:45 more useless than learning how to do something from the commandline Feb 28 19:15:56 Relevant to this scenario tho is that I was already aware S3 is having issues today Feb 28 19:16:23 Tricknology, you only need --debug probably Feb 28 19:16:45 debug overrides --info (more detailed logging), and --stacktrace is only relevant to plugin developers Feb 28 19:16:55 pwn it is if you go to help -> show logs in finder Feb 28 19:16:59 pfn Feb 28 19:17:07 or if you're writing a custom task, I suppose Feb 28 19:17:14 Mavrik: Why the hell would I Feb 28 19:17:24 wonderful facebook, proper leak 5.4kb Feb 28 19:17:32 what bugs me about people not being able to build from the command line is that they seem to forget to run the lint Feb 28 19:17:53 so I get pull requests full of linter errors and warnings Feb 28 19:18:02 raatmarien, yeah, we have CI setup to reject PRs with lint errors because of that Feb 28 19:18:41 Hmm, that seems like a nice solution :) Feb 28 19:19:10 mhm, static analysis actually helps a lot Feb 28 19:19:33 clubbing people on the head helps with making them write good code eventually :P Feb 28 19:20:03 Making them eat their own dog food does a better job of that Feb 28 19:20:16 travis-ci is free for open source projects, it'll display a nice little "build failed" error on github PRs Feb 28 19:21:56 hard to dogfood if you work on a product you would never use Feb 28 19:23:23 Dagmar, nop, it doesn't. Feb 28 19:23:36 It helps, but it's nowhere near enough. Feb 28 19:24:37 You haven't seen the thick-skulled people I have Feb 28 19:24:56 Clubbing them over the head with their mistakes is something they'll refer to as "job security" Feb 28 19:28:15 so far fabric and digits are down Feb 28 19:28:43 Would you say that this app is not as decoupled as it should be? Feb 28 19:29:02 there are no "modules" per say, it's all or nothing Feb 28 19:29:39 it only needs to be as modularized as necessary to make it easy to work on by a team of people Feb 28 19:29:57 so I've had to disable fabric and digits to get anywhere, still not there.. but shouldn't I be able to work on a module which doesn't depend on any of this? Feb 28 19:30:01 i mean ideally.. Feb 28 19:30:15 I suppose.. team is small here so we work on the entire app Feb 28 19:30:21 now everyone's down haha Feb 28 19:30:40 dependencies doesn't affect your modularity Feb 28 19:31:34 shouldn't or doesn't? Feb 28 19:31:50 it's irrelevant and orthogonal to modularity Feb 28 19:32:17 the problem you have with not being able to work due to dependencies being unresolvable is not having a local mirro Feb 28 19:32:20 r Feb 28 19:32:32 bingo Feb 28 19:32:45 Bah, Github is having hiccups as well, webhooks not triggering. Feb 28 19:33:18 Tricknology, this is why we have a proxy maven repository for our apps Feb 28 19:33:29 So you can continue mostly working through these things. Feb 28 19:33:45 Yeah.. I tihnk I'm going to have to set one up Feb 28 19:33:50 doing the googling Feb 28 19:34:06 We use Sonatype Nexus, but other solutions are also out there. Feb 28 19:34:06 get your own instance of nexus or artifactory Feb 28 19:34:30 on local machine or elsewhere? Feb 28 19:34:42 On our infra hosted servers now Feb 28 19:34:42 you would have it in your office, or datacenter Feb 28 19:34:50 Previous company we had a small machine in the office Feb 28 19:34:52 lol datacenter Feb 28 19:35:06 dunno how big your org is Feb 28 19:35:07 yeah it looks like it's gonna be a dell inspiron Feb 28 19:35:09 but presumably small Feb 28 19:35:37 yeah last one was much larger, woulda had the devops guy hook one up real quick Feb 28 19:40:29 we also use maven-sdk-deployer to copy google support repos to it Feb 28 19:40:43 so we don't have to constantly update CI machines and other peoples computers to get those Feb 28 19:40:49 since Google doesn't publish that stuff to jcenter Feb 28 19:41:47 stupid question, but how do I adjust a Recyclerview so that itā€™s content appears below an ActionBar? Feb 28 19:48:41 whatā€™s the usual way to have an image above a listview which scroll along with the rest? Feb 28 19:49:08 s73v3r, it does by default Feb 28 19:49:13 or do you mean scroll under Feb 28 19:49:27 no, i mean has a padding or what have you for the actionbar Feb 28 19:49:48 unfortunately, ours isnā€™t doing it by default. but we have a weird setup Feb 28 19:50:16 it doesn't have any padding by default Feb 28 19:50:26 make the imageview part of the listview an show it in the first entry and hide it in the other cells? Feb 28 19:51:21 If you just want it below the Toolbar, put both in a LinearLayout or something Feb 28 19:53:41 Is anyone lese having trouble getting the fabric library atm? Feb 28 19:53:47 AWS is down Feb 28 19:54:01 Ankhwatcher: I just came to say that Feb 28 19:54:06 addheaderview maybe Feb 28 19:54:56 Can anyone link me to some infor on sending texts from an app? I keep finding deprecated stuff. Feb 28 19:55:03 androi 6.0 Feb 28 19:55:04 AWS is down, and fabric apparently relies on it for their maven repo. Looks like no work for me today Feb 28 19:55:07 android* 6.0 Feb 28 19:55:20 airking: you should be able to just send an intent Feb 28 19:55:34 konk3r: sorry to be the bring of bad news but: offline mode Feb 28 19:55:58 Donā€™t you have to already have it cached for offline mode? Feb 28 19:56:07 you don't? Feb 28 19:56:13 I did once it was turned on Feb 28 19:56:20 s73v3r: Doesn't that pull up your default app to send the msg? Feb 28 19:56:27 yeah Feb 28 19:56:28 konk3r me too Feb 28 19:56:36 s73v3r: I need the app itself to send it Feb 28 19:56:48 then you want to look into Twillio Feb 28 19:56:56 twillion? Feb 28 19:56:59 twillio? Feb 28 19:57:05 I'm REALLY new to android programming Feb 28 19:57:12 yup. they provide a service where you can send messages Feb 28 19:57:24 what kind of app are you writing? Feb 28 19:57:34 Twillio is a 3rd party service Feb 28 19:57:59 s73v3r: I'm writing a command line app in C on my PC to interface with an app on my phone so I can view/send texts from my terminal. Feb 28 19:58:16 ala iMessage, but on linux Feb 28 19:58:19 and in the command line Feb 28 19:59:15 Twilio isnā€™t going to help, then Feb 28 19:59:28 So the android app sort of acts like a server, doesn't really need a UI save for a few settings, and it will pass the conversation manifest and new texts to my PC, and then listen for my response back to send off a text Feb 28 19:59:35 s73v3r: I figured Feb 28 20:00:00 so whatā€™s the problem with the solutions you found already? Feb 28 20:00:05 https://status.aws.amazon.com/ Feb 28 20:00:11 Haven't found any/also this is kind of a fun project Feb 28 20:00:25 you complained about outdated info Feb 28 20:00:36 Oh, you meant for the android stuff Feb 28 20:00:39 I though you meant overa ll Feb 28 20:00:40 yes Feb 28 20:00:41 overall* Feb 28 20:00:46 let me link something Feb 28 20:00:47 use google's search feature to filter by date Feb 28 20:00:48 Ankhwatcher: You just saved my ass. Thanks Feb 28 20:00:50 do like.. last year Feb 28 20:01:01 Tricknology: try offline mode, worked for me Feb 28 20:01:14 problem is I've cleared my caches Feb 28 20:01:14 s73v3r: mostly SmsManager stuff Feb 28 20:01:19 thought ti was something else Feb 28 20:01:26 When I tried writing that in android studio, it struck through it and said it was deprecated Feb 28 20:02:52 if you click through to the definition, or look in the documentation, theyā€™ll tell you what to use instead Feb 28 20:03:02 ctrl+click Feb 28 20:03:05 or cmd+click Feb 28 20:03:17 No cached version of io.fabric.tools:gradle:1.21.6 available for offline mode. Feb 28 20:03:19 oh Feb 28 20:03:25 someone wanna send me their cached version plox? Feb 28 20:03:40 konk3r: glad to help Feb 28 20:04:11 Tricknology: how did you clear your caches? Feb 28 20:04:24 I already selected clear caches and restart and it still worked when I turned on offline mode Feb 28 20:04:34 airking: https://developer.android.com/reference/android/telephony/SmsManager.html Feb 28 20:04:36 Give it a try and see if it still has it somewhere Feb 28 20:07:20 I imght have deleted the whole .gradle file Feb 28 20:07:21 lol Feb 28 20:07:32 Tricknology, https://drive.google.com/open?id=0B6r9cZpRn5qOWUtzazBsZEQyZVE it's the zip of my ramdisk/.gradle/caches/modules-2/files-2.1/io.fabric.sdk.android Feb 28 20:07:39 sweeeet Feb 28 20:07:39 thanks Feb 28 20:07:48 (i will delete it in few days), it contains an aar and a pom file only i think Feb 28 20:08:21 and it's v 1.3.15 it seems Feb 28 20:08:38 if you need something else, you need to point me out where i can retrieve it and before i go afk ;) Feb 28 20:10:55 I think i still have my old gradle Feb 28 20:10:57 ok thanks Feb 28 20:13:20 PHEW Feb 28 20:13:28 i had a gradle.old that contains the cahce Feb 28 20:13:31 life saved Feb 28 20:13:31 s73v3r: I'm a little confused by the text under sendTextMessage about "Beginning with Android 4.4". Does that mean this will only work if my app is the default SMS app? Feb 28 20:14:02 It means that, for Android 4.4 and above, you follow that link Feb 28 20:15:10 How in the holy fuck do I get the content of a RecyclerView to shift down a little bit so it does not start underneath the actionbar? Feb 28 20:15:22 s73v3r: so no, I cannot send an SMS unless I am the default app Feb 28 20:15:32 i guess not Feb 28 20:16:00 s73v3r: using a coordinatorlayout? Feb 28 20:16:02 well shit Feb 28 20:16:15 Melatonina: no. Just an actionbar and a recyclerview Feb 28 20:16:25 the action bar does not change size at all. It just sits there Feb 28 20:16:46 I had that problems in my first layouts Feb 28 20:16:46 st3 Feb 28 20:17:00 anyone using facebook sdk - login (and possibly with leakcanary installed as well)? Feb 28 20:17:03 s73v3r: you add marginTop to your view container Feb 28 20:17:11 same side as your arrt actionbar Feb 28 20:17:13 having a crappy memory leak i cant seem to bypass Feb 28 20:17:15 attr: Feb 28 20:17:27 I had to add a margin to the content of the layout at the top with the height of the actionbar Feb 28 20:17:28 raoul have used both but not together Feb 28 20:17:31 the view that contains the recycler, or the recycler itself Feb 28 20:17:33 which is a known constan Feb 28 20:17:52 i have the constant. i just canā€™t get it to stop drawing underneath the actionbar Feb 28 20:18:31 ?android:attr/actionBarSize Feb 28 20:18:38 not sure how to circumvent this leak Feb 28 20:18:38 yes, i have that Feb 28 20:18:44 the number is not the problem Feb 28 20:18:46 it all happens inside their sdk Feb 28 20:18:56 well you have a layout which has a container and an actionbar? Feb 28 20:19:11 specifically: when the device doesnt have a native facebook app and it opens login in a webview Feb 28 20:19:14 i have a layout which has a container. the actionbar is added through the system Feb 28 20:19:14 then the container which contains the recycler view Feb 28 20:19:24 could also do it with the recyclerview i gues.. if that's the only element Feb 28 20:19:58 oh bow AWS S3, Heroku, and Docker Hub all down at once Feb 28 20:20:37 Mainly it's that AWS is fried and everything's dependent on it Feb 28 20:20:47 so the actionbar is added to the container? Feb 28 20:20:49 s73v3r do you want https://medium.com/google-developers/why-would-i-want-to-fitssystemwindows-4e26d9ce1eec#.j71tmc8ms ? Feb 28 20:20:58 no Feb 28 20:21:00 or are you using ActionBarActivity? Feb 28 20:21:03 ok sorry, just came by Feb 28 20:21:03 or Toolbar? Feb 28 20:21:12 actionbaractivity Feb 28 20:21:12 hate how they made so many changes so quickly Feb 28 20:21:31 I am using AppCompatActivity with Toolbar Feb 28 20:21:36 me too Feb 28 20:21:45 * raoul11 g00ses g00s Feb 28 20:21:47 never had that problem anymore Feb 28 20:21:50 in my content layouts i have android:layout_below="@id/lay_toolbar" Feb 28 20:21:57 no, itā€™s AppCompatActivity, but itā€™s not using Toolbar Feb 28 20:21:58 hey raoul11 Feb 28 20:21:58 at root element Feb 28 20:22:08 no, it is Toolbar Feb 28 20:22:14 but Toolbar is not part of the layout Feb 28 20:22:48 -_- Feb 28 20:22:55 I include the toolbar in my main contentHolder Feb 28 20:23:02 i'm so glad that i have cached locally everything, even gradle wrapper zip itself :') Feb 28 20:25:32 s73v3r: http://pastebin.com/r1qqsJ5L Feb 28 20:25:51 adq i just turned on offline mode and restored my backup .gradle file.. back to work Feb 28 20:26:02 how are you caching everything locally though? Feb 28 20:26:30 for example, with the gradle wrapper config: distributionUrl=file\:/// Feb 28 20:26:55 so it takes it "locally", and not gonna try to retrieve it from services.gradle.org/distributions/ which is down atm Feb 28 20:27:13 etc Feb 28 20:27:44 s73v3r adq either of you play with Go? any thoughts ? Feb 28 20:27:53 yes, but i just played a little with it Feb 28 20:27:59 and it was golisp... lol Feb 28 20:28:25 Tricknology: Weā€™re adding the toolbar programatically, or maybe in another layout Feb 28 20:28:27 i have no thought tbh, not played enough with it, the setup was obnoxious Feb 28 20:29:03 adq lol never heard of golisp Feb 28 20:29:09 just put a framelayout in the top of your views Feb 28 20:29:20 another one below it for your content Feb 28 20:29:22 adq have you heard of racket ? Feb 28 20:29:25 it's for my #@! kbd g00s Feb 28 20:29:28 wrape in a relativelayout and make content below toolbar Feb 28 20:29:34 then inflate from there with layoutInflater Feb 28 20:29:54 framelayout of ViewStub Feb 28 20:29:59 i'd use ViewStub for the content panel Feb 28 20:30:00 g00s, https://www.youtube.com/watch?v=DFRhrw5FtCI Feb 28 20:30:08 (when a android dev build fails) Feb 28 20:30:14 jsut liek the XML i showed you, the relativelayout with a toolbar and contentHolder Feb 28 20:30:18 g00s, i heard of it Feb 28 20:30:20 oh snap, i thought we were getting a cool sqlite browser for AS .. but its the paid product thats been out Feb 28 20:30:22 i inflate the content into contentHolder Feb 28 20:30:33 can change out the toolbar programmatically Feb 28 20:30:40 Is anyone here using Fabric? I'm having connection issues during gradle build. Feb 28 20:30:54 adq haha thats cool Feb 28 20:31:03 it goes green if it's ok Feb 28 20:31:31 it's pretty useful tbh, because i don't even have to remotely look the kbd, i get the feedback on the corner of my eye Feb 28 20:31:48 i improved the script a little, it's not a bit more fancy but not that much Feb 28 20:31:53 it's now* Feb 28 20:32:21 the painful & annoying part was the gradle part... Feb 28 20:32:30 i hope they get rid of it ASAP Feb 28 20:32:41 (doubt it will happen before few years :x) Feb 28 20:32:47 kamiox: yes we all are Feb 28 20:32:54 s3 on AWS is down Feb 28 20:33:01 do this.. Feb 28 20:33:37 AS -> Preferences -> gradle -> tick offline work Feb 28 20:33:48 Some folks are calling this "Dependency Awareness Day" Feb 28 20:33:53 lol Feb 28 20:34:12 adq next you can get some tp-link smartplugs, and blink all the lights in the house when build fails Feb 28 20:34:17 everybody should know Feb 28 20:34:24 don't worry AS can still hang while building because of adb not responding/stuck on an emulator Feb 28 20:34:37 g00s, ahah Feb 28 20:34:50 that's already more than enough Feb 28 20:35:14 tinting the screen temporarily would work too Feb 28 20:35:22 i suppose if they get rid of gradle it would be replaced with bazel, no idea if thats any better Feb 28 20:35:35 it's just about getting feedback without looking explicitly at the line telling you it succeeded or failed Feb 28 20:35:47 g00s, cannot be worse Feb 28 20:35:53 adb is still a little shit on my mbw with usb, hangs all of AS when machinewakes up from sleep sometimes Feb 28 20:36:01 *mbp Feb 28 20:36:15 wifi seems to work better there Feb 28 20:36:23 adb push is now officially the bottleneck when i do minor code edit and build/run Feb 28 20:36:33 just after is the dex on the device itself Feb 28 20:36:40 adq oh didn't sdk tools RC get an improced adb ? Feb 28 20:37:04 not sure, i think they improved the pipeline between emulator and adb only Feb 28 20:37:08 but i haven't tried it Feb 28 20:37:21 the stable stuff is so unstable that recently i stopped using canary Feb 28 20:37:36 before i was often running on canary without much trouble Feb 28 20:37:43 but now even stable is not really stable...... Feb 28 20:40:04 i dunno what they are doing over there Feb 28 20:40:24 in general things seem to be slowing down with tooling progress Feb 28 20:44:46 What are some good ways to get out of being made to design a UI? Feb 28 20:45:08 my UI turns out like shit evey time I try to design it, so I hire someone to do mine Feb 28 20:45:19 (at least sketch it up in illustrator) Feb 28 20:45:29 lol, its not about getting out of it, get better at it Feb 28 20:45:39 read some ui / ux books Feb 28 20:46:25 Tricknology, https://material.io/guidelines/ read it often/everytime you design a screen or something Feb 28 20:46:47 do you use mockup tools? Feb 28 20:47:00 because I hate presenting like 3 functioning designs and having them rejected Feb 28 20:47:00 at some point you will be fluent, will recognize what to keep from what they recommand and where to say fuck off those aren't rules but guidelines Feb 28 20:47:12 i never use mockup tool but i'm no designer Feb 28 20:47:21 Tricknology are you using Sketch ? Feb 28 20:47:26 I could be doing something else while others decide what they want it to look like Feb 28 20:47:27 is there any ways to export the design from sketch or other ui design applications? Feb 28 20:47:29 g00s no Feb 28 20:47:30 sketch is macosx only no? Feb 28 20:47:34 i have osx Feb 28 20:47:42 Ai is too fiddly for mockups Feb 28 20:47:50 adq: yes thas only for mac Feb 28 20:47:54 see, a designer tool restricted to a platform is crazy to me Feb 28 20:48:39 Affinity Designer is mac / windows but more like Ai so doesn't solve the mockup problem Feb 28 20:48:46 i use Affinity to do my icons Feb 28 20:49:09 i think i've been waiting like 7 years for inkscape to get its shit together on mac, i just gave up Feb 28 20:50:15 Tricknology also this is good http://shop.oreilly.com/product/0636920037422.do Feb 28 20:50:20 but more about communications Feb 28 20:50:32 you still have to develop a good "taste" Feb 28 20:51:15 then, you can also argue, a big part of UI is animation ... i don't know how well sketch does this. people used to use Pixate for that, but again fiddly for mockups Feb 28 20:51:25 i think Fb has a newish tool Feb 28 20:51:36 marvelapp is pretty nice for mobile mockups https://marvelapp.com/ Feb 28 20:51:50 http://origami.design/ Feb 28 20:52:15 Tricknology 3rd arguement, you can do live mockups with flutter or some shit Feb 28 20:53:16 thebishop: can it also make the animations? Feb 28 20:53:16 g00s, Origami looks nice, but no Linux studio client, lol Feb 28 20:53:17 Cool, just ordered the book g00s Feb 28 20:53:33 and downloading oragami Feb 28 20:53:38 ty Feb 28 20:53:40 lunch time Feb 28 20:53:46 enjoy you rAS caches Feb 28 20:53:49 np, going for run Feb 28 20:54:25 thebishop: souds like it can: Our simple editor allows you to link all your designs together in a jiffy, then add gestures and transitions to make your prototype feel just like a real app or website. Feb 28 20:54:26 mib8, some basic transitions, i don't think theres any more advanced animation tools. but if you're doing animation, aren't you getting away from mockup territory? Feb 28 20:55:59 actually i don't think designing the animations are necessary Feb 28 20:56:22 I like the default animations better Feb 28 20:59:45 but sometimes you have to make custom animations Feb 28 20:59:53 like movement of FAB Feb 28 21:01:41 if this app can design those animations too, i'd probably use it Feb 28 21:20:24 Does anyone else feel like they can put out a cleanly architected app pretty quickly, but still struggle for hours with what should be basic view alignment? Feb 28 21:20:51 thatā€™s what Iā€™m doing right now Feb 28 21:22:34 Haha alright, so Iā€™m not the only one. Are there people who are the opposite? Iā€™ve never met someone that can just clear through android front end work Feb 28 21:36:05 ok, now Iā€™m trying to add a c++ library directory to my projectā€¦ i already have a folder cpp (i created the project as a ndk project), but canā€™t find any suitable options Feb 28 21:36:15 just copy from finder and then paste wouldnā€™t work either Feb 28 21:37:12 it will copy it but the source folder will not be visible... Feb 28 21:50:19 so itā€™s looking like my problem with the recyclerview and actionbar is deeper than I thought Feb 28 21:50:37 if I scroll to the top of the recyclerview, the top is below the toolbar, like i want Feb 28 21:51:00 but on screen load, for some reason itā€™s scrolled so the top of the first cell is at the top of the screen Feb 28 22:11:00 so it appears that the View which is the ā€œheaderā€ (item in the 0th position) had a hardcoded marginTop on it. Feb 28 22:11:56 love that Feb 28 22:12:12 use hierarchy viewer to discover these kind of things Feb 28 22:12:36 i had forgotten it was there Feb 28 22:12:54 i turned on show layout bounds in dev options, and then realized I could do that with the viewer Feb 28 22:13:00 but that should be obvious when you scroll and see that subsequent items are immediately adjacent to the toolbar Feb 28 22:16:40 however, Iā€™m still seeing the issue where, on screen load, the recyclerview appears to scroll up enough so that the 0th item is at the top of the screen, underneath the toolbar Feb 28 22:54:53 Okay, Iā€™m struggling hard on this and I feel like it should be easy. I have a basic view that I want to add an image to. Feb 28 22:55:16 https://imgur.com/a/8158M Feb 28 22:56:14 The image needs to be square and aligned to the right side of the screen, with the top aligning with the top of text2 and the bottom aligning with text4. If the text lines increase, the image should scale up with them Feb 28 22:56:47 Whatā€™s the best way to accomplish that? Iā€™ve tried using constraint layout, relative layout, and stacked linear layouts but none of them are giving me the results I want Feb 28 22:59:31 with relativelayout, it's trivial i believe Feb 28 22:59:51 you make your image alignTop on text2 and alignBottom on text4 Feb 28 22:59:55 Thatā€™s what I thought Feb 28 23:00:00 and few attributes to put it on the right or somewhere Feb 28 23:00:26 the best way, however i don't know Feb 28 23:00:42 i'm waiting to invest into constraint-layout so i could not talk about it Feb 28 23:00:52 a customview/customviewgroup might work too Feb 28 23:01:13 but relativelayout should be easy Feb 28 23:01:33 So hereā€™s another issue: we donā€™t have control over the source image, so it may not come in as square Feb 28 23:01:48 you never said it must be 1:1 ration Feb 28 23:01:52 ratio* Feb 28 23:02:01 ā€œThe image needs to be square and aligned to the right side of the screenā€ Feb 28 23:02:03 so what rule will you crop it by if it's not square... Feb 28 23:02:22 Thatā€™s the tricky part. I guess I could use glide to enforce dimensions on it Feb 28 23:02:24 oops Feb 28 23:02:25 and yes alignTop and alignBottom would do this Feb 28 23:02:37 and it's not really tricky Feb 28 23:02:39 pfn: essentially a center crop Feb 28 23:02:51 the imageview must be square, or the image must be square, or the image must preserve its ratio? Feb 28 23:02:57 in all case, anything is possible anyway Feb 28 23:02:59 the imageview has to be square Feb 28 23:03:02 the imageview must be square while maintaining aspect ratio Feb 28 23:03:11 you would write a custom imageview that enforced this rule Feb 28 23:03:18 I have a custom squareImageView that has worked everywhere else but itā€™s completely failing here Feb 28 23:03:18 and clip the part of the image you don't want Feb 28 23:03:21 then you'd need a custom imageview which forces it square Feb 28 23:04:20 why is it failing? this should be relatively easy, like taking the Math.min(w,h) or Math.max(w,h) Feb 28 23:04:32 for its size(sĆ  depending on how you constraint the square Feb 28 23:04:46 https://gist.github.com/konk3r/55d84eb3a029fdbab190cf77bfa51a33 Feb 28 23:05:06 Iā€™m not sure, it should be super easy. My guess is that itā€™s not sizing itself properly inside the relative layout parent Feb 28 23:05:40 ah could be because of the parent too indeed Feb 28 23:05:58 if you try in a linearlayout, you might not have this issue lol (because 2 passes) Feb 28 23:06:19 there are ways to fix that i don't recall nor i'm in front sorry Feb 28 23:06:41 I think for now Iā€™ll just try cropping the image with glide and using a normal image view Feb 28 23:06:59 well, you're not that far anyway, if it's just a matter of having a custom SquareImageView class, and this gist fails just compare to other libs implementing similar stuff Feb 28 23:07:05 That works, if we run into problems we can deal with this later. Like I said, this sounds extremely simple but itā€™s been a huge headache for me today Feb 28 23:07:28 a n d r o i d d e v Feb 28 23:07:34 Hahaha Feb 28 23:07:41 I feel like I have too much experience to struggle this hard with a view Feb 28 23:12:08 you'll need to handle onLayout or whatever it is as well Feb 28 23:12:43 relativelayout can ignore your measurements Feb 28 23:13:03 Oh really? Okay thanks, Iā€™ll look into that Feb 28 23:13:11 also, you're just throwing in specType without modifying it Feb 28 23:13:21 or at least inspecting it Feb 28 23:13:28 you want to make sure you set EXACTLY Feb 28 23:14:16 Okay, sounds good Feb 28 23:14:29 I wasnā€™t 100% on that so I went with the default to start with Feb 28 23:17:06 Itā€™s really annoying, the view is looking almost perfect in the preview window but then it doesnā€™t even show up on the phone Feb 28 23:19:27 setting EXACTLY should do it, though Feb 28 23:19:31 no need to override layout() Feb 28 23:27:38 Wait, debugging here it looks like the issue came from the custom parameter not being picked up in code. It was trying to resize it to the smallest dimension which was apparently 0dp Feb 28 23:28:57 I feel stupid. Also, Iā€™m pretty sure not setting the specType to EXACTLY was setting me up for random failures too Feb 28 23:29:03 Thanks pfn and adq Feb 28 23:42:14 Ugh, got it. You can see in that class that for obtainStyledAttributes I was using R.styleable.SquareRelativeView instead of R.styleable.SquareImageView Feb 28 23:56:40 when your boss asks "If you rename the APK, does it stop working?" Mar 01 00:11:21 travis will not go to space Mar 01 00:14:07 g00s: How's it going? :D Mar 01 00:14:22 hey TacticalJoke long time no see Mar 01 00:14:30 just got back from my run Mar 01 00:14:33 Yeah, chess has taken over my mind. Mar 01 00:14:45 I've still been working on my app, though. Mar 01 00:15:09 Running is good. More endorphins, fewer problems. Mar 01 00:16:29 TacticalJoke next up ... run on tradmil and play virtual chess :) Mar 01 00:18:22 "Major browsers can begin shipping WebAssembly on-by-default" wow, are we there already ? Mar 01 00:18:43 asm.js? Mar 01 00:19:27 thats lame-o capella :) Mar 01 00:19:38 wasm should be much faster Mar 01 00:20:02 or more like rpc calls that jit to native in the remote? Mar 01 00:20:05 Are you still working on your app, g00s? Mar 01 00:20:11 not really Mar 01 00:20:33 * capella googles how out of date he is... Mar 01 00:20:59 capella asm.js / nacl all that stuff is obsolete Mar 01 00:21:57 mmm, so now we pass low - level obj code? binary blobs? Mar 01 00:23:09 https://hacks.mozilla.org/2017/02/where-is-webassembly-now-and-whats-next/ Mar 01 00:23:54 i don't think you can access the dom directly yet, and it doesn't support languages whos runtimes have GC Mar 01 00:24:01 so right now its C , c++, and rust Mar 01 00:24:25 mmm, compressed code w minimal debugging info for reversing debug support based on std low level jit runtime Mar 01 00:25:06 capella does the android FF have those same features as the desktop one generally ? Mar 01 00:25:29 yes, core is same, ui changes Mar 01 00:25:53 i wonder how this works with dart, i think they transpile to JS ... so theoretically they could (sometime) go wasm route too Mar 01 00:29:00 ah: "For earlier versions of browsers, developers can send down an asm.js version of the code. Because asm.js is a subset of JavaScript, any JS engine can run it. With Emscripten, you can compile the same app to both WebAssembly and asm.js." Mar 01 00:33:29 yah no direct access to dom... the xpcom glue was interesting Mar 01 00:34:02 difficult to pass hard refs to the js thread iir Mar 01 00:34:42 that's the cool parts :) "glue" Mar 01 00:38:56 g00s: Are you gonna update to AS 2.3 once it's released? Mar 01 00:42:12 g00s: Cool link, I never met Lin Clark but she writes really well Mar 01 00:45:50 TacticalJoke sure. looking forward to the new build cache Mar 01 00:46:19 but thats in plugin 2.3. i guess constraintlayout stuff will be better Mar 01 00:49:51 Does that relate to Jack or the normal stuff? Mar 01 00:50:23 i have no idea whats going on with Jack ... its been quiet in that department Mar 01 00:50:53 AGP 2.3 caching should be independent though Mar 01 00:51:51 Ahh, this: http://tools.android.com/tech-docs/build-cache Mar 01 00:53:43 capella https://news.ycombinator.com/item?id=13758403 Mar 01 00:54:03 Can someone explain the difference between calling MeasureSpec.getSize(widthMeasureSpec) and getMeasuredWidth(); in onMeasure of a custom view? Mar 01 00:54:04 "interesting thought in comment "wasm has so much better perf than JITed JS and the possibility of going isomorphic is a reality" Mar 01 00:54:39 so whereas node.js would let the JS guys use JS on server, now we have isomorphism going the other way, the client stuff goint to the client JS engine ... nice Mar 01 00:55:09 node.js was kinda cool for what it enabled the JS guys to do but this seems a bit more robust, hopefully Mar 01 00:56:17 nodem.js let me avoid python locally :) Mar 01 00:56:35 hehe, i'd still use it for electron Mar 01 00:56:36 konk3r: The first gives you the size component of a spec; the second gives you the width "returned" (via `setMeasuredDimension`) from `onMeasure`. Mar 01 00:56:51 capella but for command line stuff, i'd prefer go over python Mar 01 00:56:55 but yah, we're pushing raw code downstream towards the hardware Mar 01 00:56:58 (if you don't need a special library) Mar 01 00:57:00 konk3r: You'll generally use the MeasureSpec.getSize when setting the "measured width" property. Mar 01 00:57:14 -the Mar 01 00:57:24 Okay, interesting Mar 01 00:57:25 g00s, ah, another language I haven't used yet Mar 01 00:57:35 Basically, View.onMeasure sets the "measured height" and "measured width". Mar 01 00:57:40 So if I wanted to use getMeasuredWidth() Iā€™d need to call super.onMeasure(); first? Mar 01 00:57:46 may tinker with Servo ipc threads later Mar 01 00:58:03 hi guys Mar 01 00:58:15 konk3r: Yes, because the parent will call View.setMeasuredDimension. Mar 01 00:58:30 Gotcha, and the entire point of onMeasure is to call that. Mar 01 00:58:33 Well, assuming the parent is or acts like View. Mar 01 00:58:37 Yeah. Mar 01 00:58:48 MeasureSpec.getSize() returns a pixel count then? Mar 01 00:58:56 Actually I can figure that out from docs Mar 01 00:59:06 Well, actually, it's also to make children measure themselves in some cases. Mar 01 00:59:39 can u guide me? I am building an app for android. and when it detects internet on, it should update remote sql database. Should I use a service for that? And I don't need to update UI, so which method is best? Future Task? AsyncTask? Thread? (for httpurlconnection) ? Mar 01 00:59:58 Oh gotcha. Differences between views and viewgroups Mar 01 01:00:57 Is there any reason a view wouldnā€™t respect the values passed into it? Mar 01 01:03:40 I have a custom square imageView inside a relative layout and itā€™s definitely not following the dimensions Iā€™m passing in. Iā€™m guessing the difference is caused by the relative layout but Iā€™m not 100% Mar 01 01:05:28 konk3r: There are times when our view gets to determine its own size (or at least one dimension). In these cases, we can ignore one of both of the onMeasure parameters. Mar 01 01:05:57 Think of a wrap_content dimension. Mar 01 01:06:45 ā€¦hold that thought Mar 01 01:06:52 Then again, though, we might get AT_MOST there (rather than UNSPECIFIED). I can't remember. Mar 01 01:07:37 I wonder if setting the width to wrap content is ruining my custom view Mar 01 01:08:04 any ideas guys?? Mar 01 01:08:48 deadevilboy: https://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html Mar 01 01:09:21 it depends on what you want to do with it Mar 01 01:09:54 If you need it to happen when the app is in the background than you could use a service for it, but really try to avoid running background services if your users donā€™t expect your app to be running in the background Mar 01 01:11:27 well Mar 01 01:11:35 should I use a thread with a timer? Mar 01 01:11:59 TacticalJoke: where do the values from OnMeasure come from? Is that the parent view telling it what it thinks its size should be? Mar 01 01:12:21 imagine weather app for example.. when u connect to the web.. it updates automatically the weather temperature, etc Mar 01 01:12:45 is that a service? and it must have a thread with a timer, right? Mar 01 01:12:51 konk3r: Yeah. Mar 01 01:13:09 I am asking this because that is what I would do.. but I don't know if it is the professional way Mar 01 01:13:19 konk3r: View.onMeasure is called when the parent calls View.measure on a child. Mar 01 01:13:22 * capella still has the attention span of a crack squirrel... heh, "omnitasking" Mar 01 01:16:57 Hey all - I'm baaaaaccckkkkk.... :) Mar 01 01:19:26 konk3r: what is your opinion? Mar 01 01:19:26 https://i.redd.it/j8wr3rdk5miy.jpg Mar 01 01:19:33 i have a UI with a - (minus) button on it - it is an image - the client needs the "hit area" to be bigger Mar 01 01:20:28 how can I do that ? Mar 01 01:20:48 fels: Depends on the details of the button. Mar 01 01:21:16 deadevilboy: If you have homescreen widgets or are displaying a notification for it then a service is appropriate Mar 01 01:21:34 what would cause a RecyclerView to scroll up all of a sudden? Mar 01 01:21:47 If youā€™ll only show them inside the app you probably shouldnā€™t be doing network calls in the background, just make a call when the user opens the app Mar 01 01:21:48 TacticalJoke: what details do you need ? how can I share it ? Mar 01 01:22:01 Just make the button bigger Mar 01 01:22:09 increase padding maybe Mar 01 01:22:12 I'm not sure how one would manage to bind a click to _just_ the image Mar 01 01:22:16 s73v3r: is anything changing in your adapter? Mar 01 01:22:18 er, what he said Mar 01 01:22:36 yes Mar 01 01:22:57 when I load the stuff from the network, I set the data on the adapter, and that calls notifyDataSetChanged Mar 01 01:23:45 I think thatā€™s standard for replacing the content and calling it. It shoots to the top of the list, irght? Mar 01 01:23:46 right* Mar 01 01:24:02 the problem is that itā€™s going to the top of the list, and then scrolling a bit Mar 01 01:24:11 Dagmar: I can't = they are saying the button width/height is correct but the tap area around it needs to be bigger Mar 01 01:24:16 the top of the first item should be below the Toolbar Mar 01 01:24:17 Oh weird, I have no idea what would cause the scrolling Mar 01 01:24:25 Are you fine with the list resetting? Mar 01 01:24:28 but it seems like the top of the first item is at the top of the screen Mar 01 01:24:33 this is when it first loads Mar 01 01:25:00 fels: Then you need to make the button bigger. The onClick doesn't bind to just the pixels with the '-' in it. It binds to the entire imageView Mar 01 01:25:27 So you have your recyclerview behind the toolbar in your layout? Are you using a coordinator layout for it? Mar 01 01:25:41 no Mar 01 01:25:42 Or is it set below the toolbar, itā€™s just scrolled down? Mar 01 01:25:43 RecyclerView.Adapter.notifyDataSetChanged shoots to the top of the list? That's not what I remember. Mar 01 01:25:51 The ListView one certainly doesn't. Mar 01 01:26:02 i donā€™t think it is Mar 01 01:26:05 it does Mar 01 01:26:16 Dagmar: So if I addaed another image that's transparent OVER that and made that the clickanle? Mar 01 01:26:27 fels: You'd be completely wasting your time Mar 01 01:26:28 The data changing doesn't mean we should scroll up. Pretty sure that's wrong. Mar 01 01:26:39 fels: the onClick doesn't care whether there's any image there or not Mar 01 01:27:17 Yeah, itā€™s annoying. I donā€™t use notify datasetchanged anymore though, I have an adapter manually call adding, moving and removing items by comparing the data sets. Mar 01 01:27:36 TacticalJoke: Iā€™m not sure if thatā€™s the default behavior or if itā€™s something else that was happening in the app, but Iā€™ve definitely seen the behavior before Mar 01 01:27:41 Dagmar: I maean change the onclick from my MINUS button to the new TRANSPARENT image Mar 01 01:27:44 so the issue Iā€™m having is that, when the adapter first loads up, it is scrolling the list up a bit Mar 01 01:27:47 fels: WHen in doubt, just make the background/src attribute for the button-thing an eye-roasting pink. Everything that's pink is the entire area the onClick is watching Mar 01 01:28:31 fels: Are you using ImageView or Button? Mar 01 01:28:39 It's much easier if you give us details. Mar 01 01:28:43 Yep Mar 01 01:29:04 ImageButton* Mar 01 01:29:23 TacticalJoke: imageButton Mar 01 01:29:25 Under normal circumstances it would actually be hard to have some button that is only a couple of dp high and a few dp wide like is being described Mar 01 01:29:50 Is there a way to share an image with you guys here TacticalJoke and Dagmar Mar 01 01:30:00 imgur, pastebin, lots of ways Mar 01 01:31:15 can pastebin do images ? Mar 01 01:31:19 I get the feeling that maybe you set the thing to wrap_content in both directions and have only given it a teeny tiny dash to display Mar 01 01:31:23 This may end up being the answer you want: http://stackoverflow.com/a/8177773 Mar 01 01:31:54 Yeah, that would be the original sin Mar 01 01:32:14 Make the image square, with the relevant amount of space around the dash Mar 01 01:32:19 Though maybe ImageButton supports what you want, though. Mar 01 01:32:23 -though Mar 01 01:32:39 ...or at least specify a height and width Mar 01 01:33:42 I've not noticed imageviews being picky about not clicking on transparent bits Mar 01 01:35:08 fels: ...and I keep using imageView and imageButton and etc interchangeably because there's not a lot of difference between them Mar 01 01:36:13 Dagmar: I can't seem to get it woking - I changed it from Background to src pointing to the image Mar 01 01:36:19 fels: Mostly it seems like imagebUtton just gets you a fugly button wrapping around the image Mar 01 01:36:29 konk3r: thanks... Mar 01 01:36:39 fels: yes, but what SIZE is the thing Mar 01 01:37:22 fels: If you're using wrap_content for both width and height, it'll let you, but it can lead to some really unhelpful situations Mar 01 01:37:34 Dagmar: Not figured out how to use the image upload but here's the xml > http://pastebin.com/f3XCWRHy Mar 01 01:37:43 Like, it WILL give you a clickable area that's only 2px by 8px that way Mar 01 01:38:20 15dp x 60dp is certainly large enough to be clickable Mar 01 01:38:34 It's a little scrawny across the horizontal tho Mar 01 01:39:02 What were you trying to do with the 20dp padding? Mar 01 01:39:40 That's the first thing there that indicates to me that this has gone off the rails for you Mar 01 01:39:58 Attempted padding being _larger_ than the actual height of the thing Mar 01 01:40:27 Dagmar: Oh. ok .. why ? I can remove it - what's the bad thing about it ? Mar 01 01:40:55 fels: Well, the layout_height and layout_width are the do-all, be-all, and end-all of the widgets actual size Mar 01 01:41:17 fels: When you say layout_height=15dp, that widget is only ever going to be 15dp high, period. Mar 01 01:42:17 fels: ...and then there's this padding instruction demanding _20dp_ of padding, which means 20 from the bottom, 20 from the top... That's unpossible with only 15dp to mess with Mar 01 01:42:48 fels: You want to set layout_height and layout_width to be the size of the area you want to be clickable Mar 01 01:42:54 ok - so if you where doing it how would you set it ? Mar 01 01:43:11 fels: My intuition sez that's gonna be 60dp in both directions for the behaviour you want Mar 01 01:43:24 Dagmar: Can I just enter it in there ? Mar 01 01:43:37 fels: Hence why I said just make the background pink so it'll be brutally obvious how large the imageButton actually is Mar 01 01:43:39 Yeah Mar 01 01:43:55 ...and you should probably dump the padding setting entirely for right now Mar 01 01:44:42 playing with canvas: http://imgur.com/a/3JpLw :') Mar 01 01:44:58 fels: the minus_control_button drawable... What type of drawable is that? Mar 01 01:45:38 Do relativeLayouts have an issue with child views that set themselves to match_parent when they are set to wrap_content? Mar 01 01:45:46 Dagmar: here an image : ? http://pasteboard.co/DZtbnibrF.png Mar 01 01:46:11 can anyone suggest a good REST api that provides data about stellar bodies? Mar 01 01:46:12 perhaps something like this: like this one: http://hacktheuniverse.github.io/star-api/ Mar 01 01:46:42 fels: Yeah I'm asking about the drawable because it actually matters Mar 01 01:46:59 fels: There's lots of ways to define them, some of which will be subject to rescaling, some of which won't Mar 01 01:48:14 fels: I see now tho that I guessed right about you needing the clickable area to be 60dp by 60dp Mar 01 01:49:16 fels: Do you yet know the image density multipliers? Mar 01 01:49:57 Dagmar: how do I answer the drawable question - I can't seem to find it in drawables folder its id/[imagename] - sorry I've inheritaed this :) NO don't know about hte mutiploers Mar 01 01:50:26 fels: Ah okay. No worries. Android is unusually helpful in this regard. Mar 01 01:51:35 fels: You might have noticed there being more than one drawable/ directory with -??dpi designators following the directory name. Android uses these based on the devices display resolution, but it will pick nearest/best fits when appropriate Mar 01 01:51:51 Dagmar: Ok Found it - I was looking in the wrong place - its in the drawable - sorry Mar 01 01:51:59 fels: ...and in this case if someone was dim and made a minus sign image that is NOT square, you have to change that Mar 01 01:52:57 fels: The simplest route to fixing it for now would be to change that baby so that it's 60 pixels by 60 pixels (with the appropriate transparent regions) and stick it in drawable-mdpi/ Mar 01 01:52:59 yes the image is ------- <-- the image is NOT square or rectablge with the minus in hte middle Mar 01 01:53:06 konk3r: If a `wrap_content` view chooses, in View.onMeasure, to be as big as its parents, there should be no issue. Mar 01 01:53:12 parent* Mar 01 01:53:55 fels: the mdpi directory is for somewhat ancient devices that have a 1:1 pixel to dp ratio, but it makes for a great baseline becase Android can easily upscale that _for you_ for the other display resolutions Mar 01 01:54:25 fels: The image is rectangle? If so, you could easily use a 60dp-by-60dp clickable ImageView here. Mar 01 01:54:31 fels: So.. if your clickable area is 60dp by 60dp and the image you're putting into it is 60px by 60px it won't stretch your minus sign into a box Mar 01 01:55:32 Dagmar: so add 2 imaagebuttons - one with the minus image and another without ? then make the the without the clickable one ? Mar 01 01:55:40 Nope Mar 01 01:56:06 You only need the one ImageButton, man, and you don't technically even need to make it an ImageButton Mar 01 01:56:18 Android doesn't care if it's just an imageView with an onClick bound to it Mar 01 01:56:35 It really doesn't care Mar 01 01:57:01 Heck, you could make it a Textview with a hard-coded "-" in it Mar 01 01:57:10 ...except there would be a lot of carping about that Mar 01 01:57:32 Dagmar: ok .. - they provided the image and now I HAVE to use it :) Mar 01 01:57:50 Joy. Mar 01 01:59:43 fels: Gimme a sec to poke at this in AS because using a rectangular image is basically doing it the hard way Mar 01 02:00:01 I'd never do it that way because it _does_ make things hard Mar 01 02:00:15 Oh god, I think itā€™s over Mar 01 02:00:32 Dagmar: thnx = i can do a screen share if that will help Mar 01 02:01:28 How do I forward packet from another host to a emulator in my machine? Mar 01 02:01:32 using adb. Mar 01 02:06:20 fels: Okay... I needed to be sure it wasn't going to do anything weird because the widget's shape doesn't match the image it's showing. Looks like by default it doesn't care Mar 01 02:07:48 fels: I _will_ say that things get _weird_ when you set up attributes that are redundant or impossible. Mar 01 02:08:41 fels: In your posted image, there's two grey squares showing.... One is your dash, and the other is the annoying reason not to use ImageButton if you don't want a visible button added Mar 01 02:09:18 fels: Use an ImageView instead of an ImageButton and it'll behave the same way it always has, WITHOUT the superfluous freakin' button picture Mar 01 02:11:23 fels: Without being told to do so, it shouldn't attempt to warp or stretch the supplied drawable, either, assuming it's a pixmap and not a more abstract form of XML-based drawable Mar 01 02:12:36 ok - let me see I seemed to have messed up something it's now crashing ;( let me try to get it back to the ugly state without crashing shit Mar 01 02:13:17 There's no shame in switching over to the text view to unscamble layouts. Heh Mar 01 02:13:38 It's still annoyingly easy to change the wrong property and crash the layout renderer Mar 01 02:23:48 wtf : android.view.InflateException: Binary XML file line #31: Binary XML file line #139: Binary XML file line #139: Error infl -- Dagmar Mar 01 02:25:27 Instant ruin Mar 01 02:25:55 ...or at least, that's why people laughingly refer to it as 'instant ruin' instead of 'instant run' Mar 01 02:26:42 fels: Completely stop the app, and then click Run again and it should stop messing around with deltas and just push a whole new APK Mar 01 02:27:21 The feature is great when it works, a total kick in the nuts when it doesn't Mar 01 02:29:20 damn seems like if I run it then close and run again it always crashes ... dragorn Mar 01 02:31:19 Mainly you should just click the Run button and it'll restart the app when it needs to Mar 01 02:31:49 it's crashing : http://pastebin.com/8cGTxAB5 Mar 01 02:32:10 https://techcrunch.com/2017/02/28/google-play-now-considers-user-engagement-not-just-downloads-in-ranking-games/ Mar 01 02:32:19 wonder if they will start doing that with apps in general Mar 01 02:33:19 fels: You're not pushing obfuscated builds as the default or something are you? Mar 01 02:33:19 Dagmar: but if i delete the app from my device then run it again - it works again Mar 01 02:33:42 fels: Proguard is not something you want involved at this particular stage Mar 01 02:34:07 Dagmar: what the heck is that ? whats proguard ? Mar 01 02:34:10 ...and the string "uk.co.akwltd" makes me think that's what you're doing Mar 01 02:36:32 fels: Proguard is the obfuscator that's used to keep idjits from easily unwrapping and stealing people's apps Mar 01 02:36:48 i don't think I'm using that Mar 01 02:37:44 fels: Under build.gradle (Module: app)... Mar 01 02:38:15 fels: There'll be a buildTypes stanza... the debug{} stanza should have no mention of progaurd. Mar 01 02:38:52 fels: Or is uk.co.akwltd actually part of your namespace? Mar 01 02:40:00 thats part of the namespace - there' proguardFiles in release Mar 01 02:40:16 THat's fine. Instant Run should only push the debug target afaik Mar 01 02:40:26 ...but clearly it's a bit buggy **** ENDING LOGGING AT Wed Mar 01 03:00:02 2017