**** BEGIN LOGGING AT Tue Nov 08 03:00:01 2016 Nov 08 03:01:28 How slow? You are loading 60 images so.. Nov 08 03:02:23 The question begs, what size are the images? :) Nov 08 03:26:03 hi guys - Any ideas or tips you can offer to understand why my fragments onCreateView is firing 4 times before it shows the screen? Nov 08 03:33:53 when you move from one screen to another how can i keep it's state ? eg: lets assume we have a checkbox on hte screen - when you get there you set it ON and then navigate away then back to that screen - I want to show hte checkbox still on Nov 08 03:36:17 fels: put it into the saved instance state Nov 08 03:36:30 see: Activity#onSaveInstanceState and Activity#onResume Nov 08 03:37:48 rager: what do i put in there ? sorry Nov 08 03:41:54 fels, try this tut: https://inthecheesefactory.com/blog/fragment-state-saving-best-practices/en Nov 08 03:42:02 it looks right enough Nov 08 03:42:28 thanks rager Nov 08 03:42:55 essentially: #onSaveInstanceState is called when it's time to remeber what's going on Nov 08 03:43:07 and you get it back in #onCreate in the "Bundle savedInstanceState" var Nov 08 03:48:10 so rager if I have a toolbar that takes me away from this screen how can i save that ? Nov 08 03:48:40 no idea] Nov 08 03:48:48 what's that? Nov 08 03:49:00 and what does it do when it "takes you away from this screen"? Nov 08 03:50:53 the toolbar loads another screen Nov 08 03:53:18 fels: so are you saying that you start a different Activity when you click the thing on the toolbar? Nov 08 03:53:32 also, what state are you losing track of? Nov 08 03:56:44 rager: yes - so I have a screen that has an LCD display - you can increase numbers on the LCD from 00 to 99 . As an example when I clik the toolbar (lets say a settings buttoN) it loads the settings activity and when I go back to my lcd it resets the screen so the value of the LCD is 00 and not what we had set it to Nov 08 04:59:40 I'm trying to incorporate a native c++ library into an android app. I've got the library compiling and linking into my android app, but it wants to open some static files (gl shader programs) to operate. With android studio how do I go about getting those files into the apk, and what would the path be like? Nov 08 05:06:02 jniLibs Nov 08 05:06:31 ? Nov 08 05:08:23 this isn't about libraries to link. it's about some static text files the library wants to open as files **** BEGIN LOGGING AT Tue Nov 08 05:18:41 2016 Nov 08 05:59:43 hey Nov 08 06:32:06 Is there a faster way to check if a directory is empty without listing the directory? For example, Java 7 has Files.newDirectoryStream(Path) http://stackoverflow.com/a/5937917 Nov 08 08:27:19 sup Nov 08 08:28:12 nothin Nov 08 08:28:48 are u the real Nov 08 08:28:49 napster Nov 08 08:28:56 without a doubt. Nov 08 08:29:06 so ur sean parker Nov 08 08:29:19 I said, I'm napster without a doubt. Nov 08 08:29:42 proof Nov 08 08:29:57 my nickname Nov 08 08:30:19 (I'm afraid we both might get kicked for being off-topic) Nov 08 08:31:55 get ready for todays live firebase presentation Nov 08 08:32:27 there are no mods here Nov 08 08:32:29 chill\\ Nov 08 08:32:49 where are those old fellas? g00s, thepoosh where are you guys? Nov 08 08:37:47 https://www.meetup.com/TLV-Android-Academy/events/234739128/ Nov 08 08:37:48 this Nov 08 08:37:57 https://www.meetup.com/TLV-Android-Academy/events/234739099/ Nov 08 08:37:58 no Nov 08 08:38:02 this ono Nov 08 08:38:21 Android Fundamentals #1 : Your First Android Project! Nov 08 08:39:00 where is link to live feed Nov 08 08:39:57 https://events.withgoogle.com/firebase-dev-summit/ Nov 08 08:49:30 napster: they're still here :0 Nov 08 08:50:21 xorgate: do you know where I can find link to that live presentation Nov 08 08:50:47 youtube /firebase Nov 08 08:51:25 thanks Nov 08 08:51:25 or what do you mean Nov 08 08:51:25 https://www.youtube.com/user/Firebase/videos Nov 08 08:52:12 I guess that is it Nov 08 08:52:48 want to see Alice Zimmermann in action Nov 08 09:14:34 Hi, is there a way to show app install dialog directly in my app, like it shows in google cast app? Nov 08 09:19:42 Hello guys, I have 4 activities, Step1, Step2, Step3, Step4. To go from one step to another I using startActivity, on Step4 I using finish() after saving the changes but I also want to finish Step1, Step2 and Step3. What is the best way to do that? Nov 08 09:21:27 Almis90: if you want to finish other activities only on some status, you can start a new task and clear this task. Or if you want to just go back screens: either make them not stay in backstack or use startactivity for result in each case and finish on RESULT_OK Nov 08 09:21:42 Or skip all this weird things and use viewpager+fragments Nov 08 09:23:19 astroduck thank you I will try viewpager+fragmetns Nov 08 09:34:08 or after you do .startActivity() you can do .finish() Nov 08 09:34:17 it depends on what the fallback mechanism should be Nov 08 09:34:41 xorgate I want to allow the user go back Nov 08 09:35:21 i think this task idea is interesting, never used it myself though Nov 08 09:39:16 astroduck: i'm reading https://developer.android.com/guide/components/tasks-and-back-stack.html but don't really see how one would clear a stack (say when the user has finished its work), versus keeping the taskstack alive to allow backbutton Nov 08 09:50:27 xorgate: Use intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK) to start next activity on a new task and remove this whole "TASK" not activity from back stack Nov 08 09:53:17 astroduck: ok i get the flags, but how to clear the task? Nov 08 09:53:34 i mean when i'm done in activity D Nov 08 09:56:18 start activity A again with CLEAR_TASK it seems Nov 08 10:01:46 Got an issue with espresso, for some reason it doesn't swipe up fully. It feels stupid to add several swipeUp functions just to be safe :/ Nov 08 10:22:21 TextView support html tags ... right? Nov 08 10:30:19 Hi all. If you have a touchEvent (down) and do a swipe (move) and enters a childView. How can you make the childview receives the touch event (maybe start with a DOWN & continue with a move)? Nov 08 10:44:05 discovered: TextView.setText(Html.fromHtml("")) Nov 08 10:44:57 Is there a way to render a view hierarchy in background thread, for saving its UI as bitmap Nov 08 10:45:25 I need to save a modified version of a screen as image, but i don't want to do UI changes to do it Nov 08 10:59:26 raoul11: just learned a much better more awesome buzz word from google Nov 08 11:09:09 thepoosh: where is live cast of Alice Zimmermann Nov 08 11:10:31 discovered: yes but you might consider Spannable Nov 08 11:10:54 searching Nov 08 11:11:11 thepoosh heyya Nov 08 11:34:40 G'day fellow android sufferers. Nov 08 11:45:30 Hi, is there a way to show app install dialog directly in my app, like it shows in google cast app? Nov 08 11:45:42 wait ignore that, stupid up arrow history Nov 08 11:54:48 napster: hi hi Nov 08 11:54:54 squ: I can try and find something Nov 08 11:55:27 thepoosh: https://www.youtube.com/user/Firebase/videos Nov 08 11:55:43 it will appear in that list? Nov 08 11:56:09 squ: they edited her out Nov 08 11:56:18 noooo Nov 08 11:56:18 and cut the talk to 3 individual ones Nov 08 11:56:22 sowwie Nov 08 11:56:43 https://www.youtube.com/user/Firebase/videos Nov 08 11:56:50 oops Nov 08 11:56:54 thepoosh: https://www.youtube.com/watch?v=BfoR8SbFhy8 Nov 08 11:56:55 :) Nov 08 11:57:30 was waiting to see that lesbian in action Nov 08 11:58:36 https://www.meetup.com/TLV-Android-Academy/events/234739099/ Nov 08 11:58:48 that is the event? Nov 08 11:59:24 can't find anything Nov 08 12:02:40 if it doesn't appear on youtube/firebase tomorrow then I'll ask you again Nov 08 12:12:46 What's the easiest way to slow down the ProgressBar animation? I thought indeterminateDuration should do that, but I don't see any difference, no matter what value I give it. Nov 08 13:34:41 hey ech0s7 Nov 08 13:39:30 hmm, anyone using new QEmu2 emulators for CI yet? Nov 08 13:41:57 just learned yesterday about the ability to generate Espresso tests from Android Studio Nov 08 13:42:02 that looks amazing! Nov 08 13:45:43 ohi thepoosh Nov 08 13:45:51 ohi there Nov 08 13:45:55 wha's news? Nov 08 13:45:59 still berlining? Nov 08 13:46:07 yeah, almost finished Nov 08 13:46:11 last few minutes Nov 08 13:46:33 howwasit? Nov 08 14:00:37 hi Nov 08 14:12:58 working with notifications and fcm today and wow do I not understand notifications true power!!! [evil laugh] Nov 08 14:13:58 aww Nov 08 14:15:12 i have made custom styles but only one of them is working Nov 08 14:15:30 there are zero errors Nov 08 14:19:22 hm? Nov 08 14:20:48 the other styles are not working Nov 08 14:21:34 do you use them anywhere Nov 08 14:22:03 i have made 3 styles in one, res=>values=>myStyle.xml Nov 08 14:22:22 yes in main activity am using them Nov 08 14:27:08 diljale: Don't resource file names have to be in lower case? Nov 08 14:27:43 really? then why one style is working? Nov 08 14:30:43 diljale: I can't remember. In any case, it's not easy to solve the problem when the only description is "it doesn't work". Nov 08 14:31:11 so the past two things I made at work have such odd differences in how they work on samsung vs other devices. this sucks, my great code always needs workarounds ... this feels like webDev and supporting IE browsers Nov 08 14:31:58 ok ok my outrageously great code Nov 08 14:33:53 your untouchable, godlike code Nov 08 14:34:59 Does anyone find the docs for proguard confusing? http://proguard.sourceforge.net/manual/usage.html#keepoptions Nov 08 14:35:17 If so do you have a reference that is easier to understand and learn from Nov 08 14:35:40 hmm guess I could run with the proguard jar Nov 08 14:36:05 I have toolbar and framelayout in relativelayout but for some reason framelayout begins from top http://pastebin.com/VeUjmrsr Nov 08 14:36:17 So part of framelayout is under toolbar Nov 08 14:36:33 Im trying to get espresso swipe/scroll to the bottom of a scrollview. Using the swipeUp command, unfortunately it sometimes clicks on an item when it tries to scroll/swipe. Not sure how I should work around and fix that Nov 08 14:36:42 Yes, by default all views are layout at the top in RelativeLayout, until you tell it otherwise Nov 08 14:36:48 ^ Nov 08 14:36:51 If you want to position view linearly, maybe LinearLayout is for you Nov 08 14:40:14 SimonVT the problem is when I using the LinearLayout Part of framelayout is disappears at the bottom Nov 08 14:44:27 has anyone used spoon-espresso in jenkins? the index.html looks awesome, but the tv.html doesnt have any screenshots. Nov 08 14:45:56 Well, it looks like LinearLayout is a better choice for this Nov 08 14:46:03 So maybe figure out how it works Nov 08 14:46:07 And look into weight Nov 08 14:47:20 You could even use one FrameLayout for the whole thing. The list could have `android:layout_marginTop="?attr/actionBarSize"`. Nov 08 14:47:32 The FAB would have bottom and right margins. Nov 08 14:48:48 I was forced to use a coordinator layout for a FAB, it brought up issues with a Linear Nov 08 15:41:29 Are there any trust-worthy third party APK websites? Stuff where I can grab APK files without having a device? Nov 08 15:45:43 http://www.apkmirror.com/ Nov 08 15:48:32 Site looks like it would def pack malware in there, but at this point I'm tired of looking :3 Nov 08 15:48:42 patarr: reverse engineering for the win! Nov 08 15:49:02 Melatonina: wish I had the time! :) Nov 08 15:52:02 https://developer.android.com/about/dashboards/index.html Nov 08 15:52:16 Woo updated Nov 08 15:52:29 Wat? How is froyo still at 0.1% Nov 08 15:53:00 froyo, gingerbread, and ics didn't budge at all Nov 08 15:53:59 http://arstechnica.com/gadgets/2016/11/android-extensions-could-be-googles-plan-to-make-android-updates-suck-less/ Nov 08 15:54:24 patarr: I thought you wanted some APKs to reverse engineer them Nov 08 15:54:25 `minSdkVersion 21` Crew represent. Nov 08 15:56:11 TacticalJoke i may as well - by the time i'm done it ill be minsdk=N lol Nov 08 16:09:02 I'm using an implicit intent to select a video. When I query the content resolver to get the actual path, I get a cursor that has one row but the DATA field is null. Do you know the reason? Nov 08 16:09:50 This is the relevant code: https://gist.github.com/anonymous/2c00f338d0cd6ac4d944389ca318e695 Nov 08 16:31:09 Why 21 TacticalJoke? Nov 08 16:32:49 Melatonina: nope, I just wanted busybox on this baby :) Nov 08 16:33:41 I'm a beginner android dev: i see that most examples on how to edit a TextView involve looking up the view by resource identifier, and then casting it to the appropriate type. Being a software dev for years, i've learned to dislike casting and love all things typesafe. Are there any ways for me to do this without casts? Nov 08 16:38:21 ludocode: Old Android versions are so last century. Nov 08 16:38:39 patarr: No. You're parsing XML; there is no type safety. Nov 08 16:38:52 Anyone could change that view from TextView to something else. Nov 08 16:39:22 patarr: If you want type safety, do it in Java: `TextView textView = new TextView(context);`. Nov 08 16:39:59 patarr: use this method under the influence of alcohol: public T findViewAndPretentItsTypesafe(int id) { return (T)findViewById(id); } Nov 08 16:42:02 any recommendations for an android emu under windows? Nov 08 16:42:11 preferrably allowing multiple instances Nov 08 16:42:24 anotheryou: What's wrong with the official one? Nov 08 16:43:22 TacticalJoke, ah maybe that's alright too, will have to see how to start it standalone :) Nov 08 16:48:42 patarr: If you want another lib to do the typecasting for you, you could look into Butterknife or Data Binding Nov 08 16:57:23 Ok. I managed to convert the URI to an actual path Nov 08 16:57:53 Is there an intent to "Pick a video or record it and return the URI"? Nov 08 16:59:09 programming is not lego Nov 08 17:00:03 what do you mean? Nov 08 17:00:12 Melatonina: https://developer.android.com/training/camera/videobasics.html Nov 08 17:01:04 is it sometimes a good idea to use String for a serializable numerical value in an Android project's object model? is there a good source of common scenarios when dealing with persistent numbers? Nov 08 17:01:08 yiati: that's for recording and the one I'm using now is for picking one Nov 08 17:01:49 yiati: if there is no intent for doing one of the two I have to create a way to choice in my app. I just want to know Nov 08 17:01:55 to choose Nov 08 17:02:33 Melatonina: It does show to to "record it and return the URI" Nov 08 17:02:34 Is the answer "no"? Nov 08 17:02:48 yiati: I asked another question. I knew that page Nov 08 17:03:12 Okay idk, I was just answering "record it and return the URI" Nov 08 17:03:39 Ok. I know that. I just want to know if I have to allow the user to make the choice in my app or not Nov 08 17:04:50 JuliusN, favor parcelable on android when you can instead of serializable Nov 08 17:05:21 adq: and programming is often like Lego. OOP and Android Intents are two examples. There are thousands of other examples of Lego in computer programming. Nov 08 17:05:27 and sometimes it's good to use a string to store your structure, sometimes it's not suitable, it's up to you Nov 08 17:05:41 Melatonina, it's a trap Nov 08 17:06:08 adq: i'm not actually implementing Serializable directly since i'm using Realm Nov 08 17:06:12 you're trapped then Nov 08 17:06:31 Melatonina, this was not intended to you but you took it personally anyway Nov 08 17:06:39 ah ok Nov 08 17:06:48 I misunderstood. Sorry Nov 08 17:06:55 no worry Nov 08 17:07:05 how is realm? Nov 08 17:07:26 bourbon: just getting started, too early to judge Nov 08 17:10:27 adq: i'm using decimal values with BigDecimal at this point. i know that pros and cons exist for every datatype, just trying to inquire if there is any good documentation for common use cases Nov 08 17:12:11 ah if you want to avoid floating point error Nov 08 17:12:15 my application doesn't really require precision that basic primitives can't offer, just trying to keep things "clean" and avoid floating point rounding errors Nov 08 17:12:23 you better store your decimal values as string to keep integrity Nov 08 17:12:34 if you pass back and forth this value across the "seas" Nov 08 17:13:23 Gotta love android. I hook up a usb cam, make a preview surface and it works! Deploy the app again, doesnt work ever again :( Nov 08 17:13:26 No code changed or anything Nov 08 17:13:35 heisenbug Nov 08 17:13:38 i read something about converting them to byte arrays, but coudlnt' really figure it out. strings are fine too i guess Nov 08 17:13:54 there are so many ways to represent a decimal number Nov 08 17:15:17 i'll go with strings for now, thanks Nov 08 17:49:28 Can anyone tell me why I keep placing my camera in a bad state when I terminate my app from Android Studio? I have a camera.release() inside my surfaceDestroyed, so I would think that would get called when the application is terminated. Now I have to reboot my device every time I want to test my app! Nov 08 18:00:19 patarr, because it is killing your app instead of gracefully destroying it Nov 08 18:00:27 so camera.release() is never called Nov 08 18:01:18 you would expect the OS to deal with that sort of scenario (especially that it is the one killing apps when in needs (like reclaiming some ram)), but nope.jpeg Nov 08 18:03:00 how can google release a YouTube player demo for android where not even ONE demo works? Nov 08 18:03:30 ? Nov 08 18:03:41 same reason when they provide guidelines they don't apply themselves Nov 08 18:04:01 link? Nov 08 18:04:13 looks like it's deprecated Nov 08 18:04:57 https://developers.google.com/youtube/youtube_player_demo that's the only link i can find, it's deprecated in RED Nov 08 18:05:00 TheSchaf: https://developers.google.com/youtube/android/player/downloads/ Nov 08 18:07:55 mhh Nov 08 18:08:14 oops my bad then Nov 08 18:09:41 are you sure it does not work? looks like it is pretty up to date Nov 08 18:10:17 did you do the things explained at https://developers.google.com/youtube/android/player/register ? Nov 08 18:11:28 I think I need to set the developer key Nov 08 18:11:47 :) Nov 08 18:12:07 "Pretty up to date" - Has instructions for Eclipse and Intellij, uses ant Nov 08 18:12:49 it says last updated at some point 2015 xD Nov 08 18:12:59 and it uses the v3 youtube api Nov 08 18:13:22 which should (still) work? Nov 08 18:13:49 Might still work, but the instructions are not at all up to date at least Nov 08 18:14:53 if it's like playgames, many devs have issue with understanding and creating the required credentials (sha1 of the cert used to sign the apk usually + packagename) Nov 08 18:15:19 and also dealing with default debug key and release one (because it's possible to have both of them registered even) Nov 08 18:16:08 and there is a separate dev console which originally was not tied with the play store developer console where everything can be done there too: https://console.developers.google.com/iam-admin/projects?pli=1 Nov 08 18:16:11 adq: what?! That's insane! So if an app crashes while it has a hold on the camera, all my other camera apps would break?! Nov 08 18:16:17 yup Nov 08 18:16:23 Fantastic. Nov 08 18:16:26 same as if you don't release the microphone, only one instance is allowed Nov 08 18:16:46 adq: is it possible to gracefully quit my app with android studio? Nov 08 18:16:46 though when it crashes, it is usually released (on the contrary of a camera but it might depends on your rom/device for that) Nov 08 18:17:27 adq: I'd like to not have to reboot my device every time I try a new build :( Nov 08 18:17:30 patarr, not that i'm aware of Nov 08 18:17:35 * patarr sobs Nov 08 18:17:47 pressing run insta-kill the app i think Nov 08 18:18:15 i looked adb idea, but they don't have this feature too it seems Nov 08 18:20:07 patarr, https://github.com/pbreault/adb-idea maybe you could submit a PR or more there Nov 08 18:20:41 not sure it's possible easily, but i cannot believe it's impossible to force a call to finish() on the running activity or something to gracefully shutdown Nov 08 18:21:03 adq: Trying to work with the camera android APIs is painful unlike anything I've ever done. Nov 08 18:21:42 well, if only it was the only painful place... Nov 08 18:22:10 to be fair, aren’t you also trying to use a separate camera, instead of the built in one? Nov 08 18:22:41 patarr yeah they have always had bad rep Nov 08 18:22:56 or the flash draining too much energy making the whole OS reboot :') Nov 08 18:23:04 s73v3r: yup. But it seems as though it's a UVC camera that works quite well. Literally the first time I ran the app, I got a preview working correctly and skipped around the office in joy. Only on the second time, I get a black screen, mediaserver E 100 errors, getParameters() throwing exceptions, just a cluster futz. Nov 08 18:23:10 patarr i hope you have the resources to test on lots of devices Nov 08 18:23:48 AS is still failing at undo/redo quite often Nov 08 18:24:12 see, i'm far from worrying about camera when the recommended IDE has these kind of issues.. (of course no one is forcing me to use it, almost..) Nov 08 18:25:09 exciting https://www.reddit.com/r/programming/comments/5bt2mu/webassembly_has_reached_the_browser_preview/ Nov 08 18:25:47 is it possible to disable/alpha an item of a listview inside a drawerlayout (based on internet connection) Nov 08 18:25:53 ? Nov 08 18:26:14 pre-clicking that is Nov 08 18:28:00 of course raoul11 Nov 08 18:29:52 like you can reach it via MenuItemCompat.getActionView(mNavigationView.getMenu().findItem(R.id.nav_.... setEnable Nov 08 18:31:16 once gradle will decide its gonna build, gonna test listView.getChildAt(0).setEnabled(false) Nov 08 18:34:54 amazing, npe Nov 08 18:35:30 And now my device is showing 0 cameras available, when /dev/video0 is still there. I can't even... you guys develop full time on this platform!? Nov 08 18:44:27 kotlin 1.0.5 Nov 08 18:59:32 Using dagger2, should i add all dependencies in the same module / when should i create differet modules? Nov 08 19:07:56 patarr lol Nov 08 19:08:04 with lots of medication :D Nov 08 19:12:53 patarr: yes but only because my sole alternative would be suicide Nov 08 19:16:07 I'm trying to query the YouTube API with https://googleapis.com/youtube/v3/search?part=snippet&q=moon&type=video&videoCaption=closedCaption&key=MYKEY but I'm getting a 404. I copied the query from the query example page. What's wrong with it? Nov 08 19:16:43 "/youtube/v3/search was not found on this server." Nov 08 19:17:48 patarr: we develop full time. We don’t try to add non-standard cameras to it Nov 08 19:18:23 https://www.googleapis.com/youtube/v3/search?part=snippet&q=moon&type=video&videoCaption=closedCaption&key=MYKEY worked Nov 08 19:18:45 oh, it's the www part that was missing Nov 08 19:19:17 winegoddess: hi Nov 08 19:20:18 hi Melatonina - didnt realize this was on. finishing up other job this week, shall be seeing you more next week! :) Nov 08 19:22:41 Any help, guys? Nov 08 19:22:50 is it possible to open the widgets list from my app? or is that just restricted to the users launcher? Nov 08 19:23:39 I’m guessing there’s an intent somewhere. You might look at some of the open source launchers out there to see how they do it Nov 08 19:44:37 Why is there nothing in the proguard rules for Picasso referring to the Picasso class itself. Not saying it's wrong, just trying to learn proguard Nov 08 19:45:11 I would imagine there would at least be a "-keep class com.squareup.picasso.Picasso" Nov 08 19:45:58 That is not needed Nov 08 19:46:12 ProGuard rules are only needed for things accessed reflectively Nov 08 19:46:20 Anything else is wrong Nov 08 19:47:52 Hmm okay thanks JakeWharton Nov 08 19:50:00 The why is because by using the Picasso class you are implicitly marking it as needed and this it's kept automatically Nov 08 19:59:47 Hello, I made a custom View that extends RelativeLayout but forces it to be squared/quadratic. The children of this View are ignoring the borders of the parent layout even when their layout width/height is set to "match_parent". Why does this happen? Nov 08 20:03:40 Are you passing square measurespecs to RelativeLayouts onMeasure? Nov 08 20:06:08 yes Nov 08 20:06:26 Also, child views don't ignore anything. It's RelativeLayout that tells them where to layout Nov 08 20:07:17 i am doing this in onMeasure: int size = width < height ? width : height; setMeasuredDimension(size, size); Nov 08 20:07:43 The measurespecs you pass to super.onMeasure must be square as well Nov 08 20:08:19 oh ok i'll try that Nov 08 20:11:52 JakeWharton butterknife is on the thoughtworks tech radar (again?) Nov 08 20:12:14 nov '16. maybe it was retrofit that was on there last time Nov 08 20:13:52 @SimonVT I tried passing square measurespecs to the onMeasure super method, but the Layout became bigger and is not squared anymore Nov 08 20:14:43 Passing square measurespecs is no different than specifying an exact size in your layout. Check your code again Nov 08 20:15:34 g00s: just goes to show you how behind the times they are Nov 08 20:16:07 and/or untrustworthy Nov 08 20:17:53 can I post a link to an image in here? Nov 08 20:18:04 i just read it to get a feeling how many technologies i'm totally clueless about, usually 90% of the stuff on there Nov 08 20:18:20 Sure Nov 08 20:20:10 "We recommend using Cassandra carefully." heh Nov 08 20:20:38 This is what I have: http://i.imgur.com/PTnBZlY.png Nov 08 20:21:55 You could've just used pastebin Nov 08 20:22:28 One of those is probably the equivalent of wrap_content Nov 08 20:22:47 Create them using MeasureSpec.EXACTLY and a size Nov 08 20:23:25 Oh man my brain is not working right.. should have used pastebin^^ Nov 08 20:23:42 Ok I'll try that Nov 08 20:30:49 Also, once you pass the correct measurespecs to super, you no longer need setMeasuredDimension. RelativeLayout does that Nov 08 20:33:03 ok thank you i solved it :) I'll post a pastebin Nov 08 20:34:00 http://pastebin.com/M3dpL9VR Nov 08 20:36:44 heoy: `int size = Math.min(width, height);` is nicer. Nov 08 20:48:13 TacticalJoke is that function call inlined ? Nov 08 20:48:50 TacticalJoke: is it faster? Nov 08 20:48:51 g00s: Not sure, but from what I've seen of the ART code I would expect it to be. Nov 08 20:49:10 heoy: Nah, was suggesting it only for readability. Nov 08 20:49:28 TacticalJoke: ok, makes sense Nov 08 20:52:21 heoy: https://android.googlesource.com/platform/libcore/+/master/ojluni/src/main/java/java/lang/Math.java#1312 Nov 08 20:57:01 Terrible naming: `static String dfltEncName = null;`: https://android.googlesource.com/platform/libcore/+/master/ojluni/src/main/java/java/net/URLEncoder.java#85 Nov 08 20:57:29 TacticalJoke it was too much effort to use a few more characters :D Nov 08 21:00:56 g00s: Have you voted? :D Nov 08 21:01:04 Hello, i want know how i can stuck android system on samsung device..? Nov 08 21:01:20 That i can recovert ir by emergency mode..? Nov 08 21:01:30 no idea what that means, but odds are you’re gonna want #android-root or #android Nov 08 21:04:24 lol thats funny. i read as 'how can i stick android on samsung' and 'how can i unstuck android on samsung" Nov 08 21:04:48 Village you can try poking a hole in the battery Nov 08 21:05:01 TacticalJoke not yet :D Nov 08 21:06:11 g00s, i try remove bartery when it's restarting factory settings, but it's not happend Nov 08 21:06:16 so i don't know Nov 08 21:06:18 maybe Nov 08 21:06:22 boot menu..? Nov 08 21:06:31 Village android-root Nov 08 21:06:48 ok, Nov 08 21:11:16 so confused . why is there no permission for notifications when using FireBase FCM ? I dont ask the user, nor does it prompt them to accept. I just can flood them with notifications. Nov 08 21:12:05 TacticalJoke interesting comments https://news.ycombinator.com/item?id=12903032 Nov 08 21:12:22 so ... wonder what the challenge is with kotlin + proguard Nov 08 21:12:25 man i hate proguard Nov 08 21:13:32 Ooh, a new Kotin. Nov 08 21:13:35 Kotlin* Nov 08 21:17:02 That "Let’s Kotlin!" thing just sounds wrong. ;| Nov 08 21:17:41 "Let's get Kotlin" would sound better. Nov 08 21:17:55 Or "Keep on Kotlin" (although that's awful). Nov 08 21:18:40 They see me Kotlin'. They hatin'. Nov 08 21:24:59 g00s: Hmm, yeah, I wonder what ProGuard issues they had. Nov 08 21:27:09 g00s: Maybe I'm weird, but I kinda like ProGuard. Though I'm still new to it. Nov 08 21:27:33 I'm obsessed with performance, and of course ProGuard helps there (even just by slimming things down). Nov 08 21:28:58 i haven't used it in a bout 2 years, but i found the recipes to be fussy. sometimes getting library to work is a pita. hopefully the lib owner gives it to you Nov 08 21:29:16 Hi all Nov 08 21:29:32 doing for release is one thing, but needing it for dev builds was unacceptably slow. so i guess multidex there Nov 08 21:29:45 g00s: Oh, I have a bad case of NIH syndrome, so no issues here yet. Nov 08 21:29:46 if you ever get too big Nov 08 21:30:09 mx8manger: Hi, individual. Nov 08 21:30:24 I'm doing a small library app which downloads stuff and index then play them Nov 08 21:31:23 It just looks ugly with plain list view Nov 08 21:32:17 mx8manger: ListView is but a blank canvas. Beauty can be painted thereon. Nov 08 21:33:51 mx8manager: you may try to find a designer to work with Nov 08 21:37:30 Is it possible to embed images in list view with text Nov 08 21:39:12 mx8manger: Yes. Nov 08 21:39:39 mx8manger: put ImageView and a TextView into a ViewGroup, and make the row that ViewGroup Nov 08 21:41:50 My app focuses on the index to process stuff can I do that with view groups as well Nov 08 21:42:47 mx8manger: Whatever your app does, you can show an image in a ListView. Nov 08 21:43:08 You could even subclass View and manually draw the image and manually draw the text (probably via BoringLayout or StaticLayout). Nov 08 21:45:12 can you name books Nov 08 21:45:34 The Big Nerd Ranch book? Nov 08 21:45:44 mx8manger: Dunno about books. Probably easier to just use Glide or Picasso. Nov 08 21:47:21 Ok thx,another question can I increase the size of text view in rows of table layout Nov 08 21:47:48 cause its generated dynamicly Nov 08 21:48:10 you can make it wrap lines Nov 08 21:48:44 Can't assign IDs for 200 text view Nov 08 21:48:57 huh? Nov 08 21:49:00 Wrap lines? Nov 08 21:49:21 mx8manger: You can call TextView.setTextSize. Nov 08 21:49:21 where it’ll make the text take up two or more lines if needed Nov 08 21:49:35 I have a custom ImageView that is working fine in the app, but is not displaying a image in the preview. Can I force AndroidStudio to render it? Nov 08 21:49:47 i would avoid setting the text size, because then that prevents the user from changing the text size themselves if they are hard of seeing Nov 08 21:50:14 s73v3r: You can still use `sp` units in Java code. Nov 08 21:50:43 i would still avoid it, as changing size from item to item is going to look terrible Nov 08 21:51:22 heoy: there’s a call in your view you can use to check if your view is being rendered in the preview window. you can check that, and do something Nov 08 21:54:39 s73v3r: I don't see him mentioning using different sizes for different items. Nov 08 21:55:10 thats the implication I got for wanting to change the size of text view, and then using setTextSize Nov 08 21:55:43 When you program Android against the YouTube API, do you use Retrofit? Or only the SDK? Nov 08 21:55:44 Ahh, okay. I read it as "increase the **text** size of text view", but I could be wrong. Nov 08 21:56:03 Melatonina: Probably just the SDK Nov 08 21:56:06 Hello. Nov 08 21:56:22 s73v3r: ok. Thanks Nov 08 21:58:27 I could use some help with a layout XML. It's supposed to be simple enough, but obviously I don't get it. This is my XML: http://pastebin.com/JMaqfCVP and this is how it's rendered: http://imgur.com/a/6yX6d I was expecting the most right text view to be rendered to the right of red box that wraps "Lorem" and <3. But as you can see it overlaps. Nov 08 21:58:40 s73v3r: yes, here are examples for Java: https://developers.google.com/youtube/v3/code_samples/java Nov 08 22:07:39 Can anyone here help me understand why making an external uvc webcam with v4l drivers appear as /dev/video0 fooled the Android camera API for a little bit, but stopped working soon after? How did Android know how to read any frames at all? Nov 08 22:08:40 Hm, making the outer RelativeLayout match_parent in width works... But it's a hack; wrap_content should work too, I think. Nov 08 22:11:24 Zta: why do you need the FrameLayout? Nov 08 22:12:01 I want Lorem and <3 centered at all times. The "123" is a badge that should dangle to the right of everything. Nov 08 22:12:28 Drop the ImageView and use drawableLeft on the lorem text view Nov 08 22:12:44 ("Lorem" and <3 are of course dynamic; either a text or an icon is displayed, but for now they're drawn on top of each other) Nov 08 22:12:54 then you’ve just got two textViews that are next to each other Nov 08 22:13:20 so you have text OR an icon? are these list cells? Nov 08 22:13:50 Well.. I've experimented and it seems it doesn't matter what's inside the FrameLayout; the badge still keeps overlapping. Nov 08 22:14:03 I was suggesting to drop the FrameLayout Nov 08 22:14:42 but if these are list cells, then i think you’d be better served by making two separate layouts Nov 08 22:15:22 Text OR icon, correct. These are not list cells but custom tabs in a custom tab bar. I know you meant to drop the FrameLayout; my point is that if a simple FrameLayout can't get centered and have a TextView rendered to its right, I don't think a TextView will either.. Nov 08 22:15:41 it’s one less thing to break Nov 08 22:15:50 and i’d still suggest separate layouts Nov 08 22:15:51 It a tab with either text or icon -- and always a badge. Nov 08 22:16:17 there’s pretty much nothing you gain by trying to sandwich the two concepts together Nov 08 22:18:09 I don't understand: in order to use the Google YouTube API do I just need to add compile 'com.google.api-client:google-api-client:1.22.0' or do I have to had that boatload of jars in the lib folder? Nov 08 22:18:18 I think it's a rather simple layout. I don't think splitting it up into separate xml files (if that's what you mean) will improve readability or anything else. Nov 08 22:19:18 I don’t see how squashing together two different concepts is going to do anything but add complexity Nov 08 22:19:24 Why there is a maven package for google API but the YouTube player is only available as JAR file? Nov 08 22:20:37 Because they don’t like us? Nov 08 22:20:49 It's not two different concepts. But like I said: Even if the FrameLayout only contains the ImageView, the the badge TextView will still overlap. Yes, the FrameLayout can be removed, but I'm trying to understand why it doesn't render properly -- did I misunderstand something in RelativeLayout or what? Nov 08 22:22:46 have you tried having the tag be layout right? Nov 08 22:22:59 there’s a RelativeLayout attribute you can use that says that it’s aligned right Nov 08 22:23:05 i forget what it is right now Nov 08 22:23:45 It has android:layout_toRightOf="@+id/that_framelayout" Nov 08 22:25:49 no, i mean saying that it’s aligned at the right of the RelativeLayout Nov 08 22:26:05 not to the right of another element inside Nov 08 22:26:24 alightParentRight, I think Nov 08 22:27:03 android:layout_alignParentRight="true" will just make matters worse; it will stretch the view to what appears to be "match_parent" and overlap even more. Nov 08 22:27:38 No wait.. hm... Nov 08 22:28:07 ah, still a mess Nov 08 22:28:10 Is the YouTube API included in Google Play Services? Nov 08 22:29:20 "f you are developing for Android, and the Google API you want to use is included in the Google Play Services library, use the Google Play Services library for the best performance and experience." Nov 08 22:31:14 I included the maven package but the "com.google.api.services" package is still not available Nov 08 22:31:46 Are the JARs alternative to the maven package or complementary? Nov 08 22:32:07 i wouldn’t use the maven packages Nov 08 22:32:20 Google Play Services isn’t on maven, I don’t believe Nov 08 22:33:32 I won't use the maven package if you say so Nov 08 22:33:50 but for curiosity's sake, why wouldn't you use the maven packages' Nov 08 22:33:51 i don’t know why you started using the maven package Nov 08 22:34:09 because the google documentation says I can Nov 08 22:34:10 because I’d use the Google Repository Nov 08 22:34:19 the one you do when using Gradle Nov 08 22:34:30 that's not mentioned in the website Nov 08 22:34:41 where am I supposed to learn about that? Nov 08 22:34:55 you just said it was part of Google Play Services, didn’t you? Nov 08 22:35:46 No. That document says that IF the API I want to use is included in the Services, I should use them. I can't find what is and what isn't included in the Services Nov 08 22:36:20 I'm just following the docs Nov 08 22:36:38 they mention Maven, not Google Repository Nov 08 22:36:44 I'm confused Nov 08 22:36:46 then just go with whatever is on the youtube docs Nov 08 22:38:29 * g00s hears sirens in background ... Nov 08 22:38:41 wonders if trumpeters are blowing up polling station Nov 08 22:39:26 maybe. apparently many of them didn’t know that you had to register to vote Nov 08 22:40:31 In my country, TV is talks about your presidential elections Nov 08 22:40:54 i would believe it. it’s pretty big news for most of the world Nov 08 22:41:25 bah here too, can't wait for it to be over so we can stop hearing about it!! Nov 08 22:41:34 s73v3r haha, funny other day voter fraud was trump people (i voted twice to make sure!) Nov 08 22:41:53 apparently he even instructed something along those lines Nov 08 22:49:40 It has been a fun time following it, from outside the USA. :) Nov 08 22:53:39 I found a tutorial that only uses the jar files for everything (YouTube player and Data API client) Nov 08 22:54:10 then follow that if you really want Nov 08 22:57:14 Yeah last I remember using the YouTube Android API they only have a jar Nov 08 22:57:20 or aar Nov 08 22:57:24 that you have to manually add Nov 08 22:58:54 yiati: thanks for sharing your experience Nov 08 23:00:17 ha, this looks cool (ecommerce) http://shop.oreilly.com/product/9781680501995.do Nov 08 23:00:23 too bad its in ruby, yuck Nov 08 23:01:06 ruby’s great. Rails can be a pain, but Ruby is fun Nov 08 23:45:06 Does anyone have any experience with RxAndroidBle? Im trying to get a characteristic changed notification observable setup. Nov 08 23:49:09 They killed sombody while voting Nov 08 23:49:32 yeah. We sacrifice one unblemished virgin to the deity of democracy Nov 09 00:58:06 black91: hi. How are you today? Nov 09 02:21:55 I can't manage to compile this YouTube Data API example in any way. Not with maven. Not with jars Nov 09 02:23:59 Do you know any example that just compiles so that I can copy from it? Nov 09 02:26:13 is there anybody to talk with here? Nov 09 02:26:45 nup, all the americans are watching the election Nov 09 02:27:24 bankai_ lol, watching this ... http://www.nytimes.com/elections/forecast/president?1 Nov 09 02:27:26 scary ! Nov 09 02:27:39 i don't need to hear 'more' about your election, thanks :P Nov 09 02:28:53 DPRK is going to get a massive influx in migrations, i reckon Nov 09 02:30:29 "Facebook Threatens LinkedIn With Job Opening Features" scum vs scum Nov 09 02:30:50 bankai_ i'd move to australia :D Nov 09 02:31:20 i mean, you guys have all those koalas right ? Nov 09 02:31:22 oh, i wouldn't .... Nov 09 02:33:25 how bad could it be :D Nov 09 02:34:01 do they make good pets ? Nov 09 02:35:29 aww guess not Nov 09 02:36:46 yes, they make good pets Nov 09 02:36:56 They stay still and you can hit them easily Nov 09 02:37:22 bankai_ cool i can adopt a koala :) https://www.savethekoala.com/adopt-a-koala Nov 09 02:37:49 i'll adopt a bankai_ while i'm at it Nov 09 02:38:17 why isn't that a .au domain? bit strange ... Nov 09 02:38:22 * g00s reports Melatonina to pre-crime Nov 09 02:38:49 where does the import com.google.api.client.json.JsonFactory; come from? Nov 09 02:39:05 the class, I mean Nov 09 02:42:04 um Nov 09 02:44:04 The stork? Nov 09 02:48:40 I managed to compile this stuff Nov 09 02:49:00 googling each failed import Nov 09 02:49:10 and finding a StackOverflow entry Nov 09 02:49:16 This is not programming **** ENDING LOGGING AT Wed Nov 09 03:00:00 2016