**** BEGIN LOGGING AT Wed Feb 15 03:00:02 2017 Feb 15 03:32:07 Holy crap. I didn't expect my GUI to look so assy with default settings Feb 15 03:32:28 First time making anything on Android Feb 15 03:32:38 gs6 don't use Theme.Ass Feb 15 03:32:45 lol Feb 15 03:32:51 I'm using the default theme Feb 15 03:32:57 Whatever that is Feb 15 03:33:12 But it's more to do with the padding and arrangement of things Feb 15 03:33:31 Hope this isn't going to be as bad as HTML Feb 15 03:34:47 Like, I just made a vertical Linear layout with two EditTexts and a Button, and it looks like complete ass Feb 15 03:35:30 I should have put "crash app" for the button text 'cause that's what it does Feb 15 04:02:07 huh, junit 5 ... Feb 15 04:21:44 https://goo.gl/photos/C3sZCEtf4JUegUgu5 can someone explain how I can have an illegal argument exception like that? And maybe what's going wrong with that foreigncollection? Feb 15 04:57:34 Ologn https://github.com/zhouchaoyuan/excelPanel Feb 15 04:58:39 ron_frown there? Feb 15 04:58:50 yeah Feb 15 04:58:51 sup Feb 15 04:59:02 https://techspecs.blog/blog/2017/2/14/googles-not-so-secret-new-os Feb 15 05:00:14 meh Feb 15 05:00:40 I'm still trying to do whatever I can to get my hardware away from android Feb 15 05:00:54 honestly I've been writing a gob of code for windows iot Feb 15 05:01:02 I actually like it Feb 15 05:01:41 you didn't read it :) Feb 15 05:02:13 the part about them swapping out the guts Feb 15 05:02:36 my wifes cousin works for google on the drive products Feb 15 05:02:48 "Mojo in Fuchsia features intriguingly extensive language support. C/C++, Dart, Go, Java, Python, and Rust are all first-class citizens of the platform." Feb 15 05:03:05 and he was explaining high level architecture that drive is composed of Feb 15 05:03:16 and my immediate thoughts were... wow thats a gob of shit hobbled together Feb 15 05:03:25 and secondly it works surprisingly well Feb 15 05:03:29 ANNNNYWAY Feb 15 05:03:45 its easy to think that without having the full context of their decisions. Feb 15 05:03:50 thats what google is Feb 15 05:03:52 hobblers Feb 15 05:04:20 so they start to allow a lot more options for languages Feb 15 05:04:27 bandaids on cancer my man Feb 15 05:05:31 you didn't read it :) Feb 15 05:05:43 I dont know what you think I am missing Feb 15 05:05:45 I read it Feb 15 05:05:56 how is starting all over bandaids on cancer Feb 15 05:05:59 I've just been fooled by them before Feb 15 05:06:20 i'm betting they are starting all over like microsoft started all over on edge browser Feb 15 05:07:07 remember google bought android from danger Feb 15 05:07:19 yup Feb 15 05:07:20 so much of the design decisions were already made Feb 15 05:07:45 they just evolved it ... whether they did a good job or not; i don't think they could have done much with the java framework as is Feb 15 05:08:00 with so much of the OS in the java level Feb 15 05:08:03 i dont even think they did a bad job evolving it Feb 15 05:08:38 I just saw zero addressing the problems Feb 15 05:08:53 and thats what happen when a platform is a content delivery platform Feb 15 05:10:22 ron_frown have you looked at rust / go ? Feb 15 05:10:31 yeah Feb 15 05:10:33 any thoughts ? go looked kinda lame Feb 15 05:10:52 i'm aware they aren't interchangeable / used for the same things, even though they originally said go was systems programming Feb 15 05:11:01 rus seemed like an evolution of c++ Feb 15 05:11:06 didnt do a ton with that one Feb 15 05:11:20 go was cool Feb 15 05:11:48 what did you like most about it ? Feb 15 05:11:49 especially in how it handled threading/network stuff Feb 15 05:12:58 wow oklahoma almost hit 100'F this weekend Feb 15 05:13:37 we get that kinda funky ass weather Feb 15 07:56:39 hmm is facebook login done automatically after the first time the user has done so? Feb 15 07:59:33 isn't it? Feb 15 07:59:56 am not sure, with google login i usually do a pendingintent Feb 15 08:00:03 on the onStart Feb 15 08:00:11 raoul11: when you use the facebook SDK Feb 15 08:00:19 logging in just gives you a long-use token Feb 15 08:00:38 so that token is valid until a user disconnect from fb? Feb 15 08:00:47 it's valid for a period of time Feb 15 08:00:50 I think 60 days Feb 15 08:00:59 if you don't use the facebook SDK in that time Feb 15 08:01:04 it will expire and they will need to log in again Feb 15 08:01:12 hmm, so i need to check if its still valid Feb 15 08:01:16 yeah Feb 15 08:01:30 coz google tokenid changes pretty much every hour Feb 15 08:02:04 https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension Feb 15 08:02:11 "Native mobile apps using Facebook's SDKs will get long-lived access tokens, good for about 60 days. These tokens will be refreshed once per day when the person using your app makes a request to Facebook's servers." Feb 15 08:02:31 I believe if you are using the official SDK Feb 15 08:02:42 the login state will go back to what it was if they were not logged in (initial) Feb 15 08:03:22 but how do i check if its a valid token Feb 15 08:03:43 how do you check if they are validly logged in? Feb 15 08:03:47 AccessToken.getCurrentAccessToken() Feb 15 08:04:05 yeah Feb 15 08:04:06 would that yield some other results than the current scopes? Feb 15 08:04:07 or better yet Feb 15 08:04:08 Profile profile = Profile.getCurrentProfile() Feb 15 08:04:14 see if that is null Feb 15 08:04:28 the current access token might not be valid, you see :P Feb 15 08:04:34 but if you can make that request everything is well Feb 15 08:04:46 k, that sounds good Feb 15 08:05:07 isnt there a listener i can use Feb 15 08:05:19 or it all happens "REALLY REALLY QUIETLY" Feb 15 08:05:41 tried the usual callbacks, but its not being called on this supposed silent login Feb 15 08:06:43 silent login doesn't sound too good :P Feb 15 08:06:49 I don't think that's even possible lol Feb 15 08:06:58 either you use the webview fragment (builtin to the SDK) Feb 15 08:07:00 or the app Feb 15 08:38:09 is there a way to get a hand tool to pan in the text editor window? Feb 15 09:03:06 * raoul11 thepooshes thepoosh Feb 15 09:04:12 oh hi there raoul11 Feb 15 09:04:18 did you go in the end last night? Feb 15 09:05:18 yep Feb 15 09:05:20 was great Feb 15 09:05:25 finally a proper meetup Feb 15 09:05:31 that chick britt is awesome Feb 15 09:05:46 -chick Feb 15 09:05:53 thats misogenistic. Feb 15 09:07:03 she's graet Feb 15 09:07:10 also, did you see Yossie? Feb 15 09:07:14 Elkarif? Feb 15 09:08:08 the fatguy? Feb 15 09:08:17 bigbone* Feb 15 09:09:08 raoul11 just insulting everybody today... Feb 15 09:09:27 am kinda sad, barca got ruined yday Feb 15 09:09:46 but the meetup was solid, finally learned a few new things Feb 15 09:10:25 what toos is good for making android app? Feb 15 09:10:37 big toes Feb 15 09:10:48 big toes? Feb 15 09:11:05 yes Feb 15 09:11:20 http://www.healthline.com/health/osteoarthritis/big-toe#Overview1 Feb 15 09:11:23 hard to type with the smaller ones Feb 15 09:11:23 strange Feb 15 09:12:22 does anyones android studio constantly crash Feb 15 09:12:29 or freeze? Feb 15 09:12:54 j4ckcom: that was a pretty vague question, assuming you meant "tools" Feb 15 09:13:17 programming **** BEGIN LOGGING AT Wed Feb 15 09:16:10 2017 Feb 15 09:17:26 were you expecting some other answer? Feb 15 09:18:20 can i use eclipse instead of android studio? Feb 15 09:18:54 you can use notepad++ but that would just make life more difficult Feb 15 09:19:11 notepad++ lol Feb 15 09:19:36 no, you should not use eclipse instead of AS in 2017 Feb 15 09:19:50 you could use vim, of course... Feb 15 09:19:50 why? Feb 15 09:20:04 why i can’t use eclipse? Feb 15 09:20:16 because eclipse is AOLed as the standard Android development platform Feb 15 09:20:20 also, because I say so Feb 15 09:20:24 he said you shouldnt, not that you couldnt Feb 15 09:20:42 if you are starting now, you *really* shouldn't Feb 15 09:27:26 raoul11: yeah, the chubster Feb 15 09:27:37 I used to work with him, he's a cool guy Feb 15 09:27:44 yeah, was sitting next to me Feb 15 09:27:49 from the Beer Sheva GDE Feb 15 09:27:53 played with his macbook all throughout Feb 15 09:28:13 who spoke? Britt? Feb 15 09:28:19 yeah Feb 15 09:28:25 if you want to replace android studio, replace it with netbeans Feb 15 09:28:31 tbh it was the only proper talk in the series thepoosh Feb 15 09:28:36 if you want to use eclipse, do not use it Feb 15 09:28:52 what was it about? Feb 15 09:33:09 raoul11: https://docs.google.com/presentation/d/1gJc_Guvb0aLQVSlALzjLdJLK36grhc1EeEIhhRiG4lg/edit#slide=id.gff90d31c0_0_552 Feb 15 09:33:15 a lot about animations, some nice libs she uses Feb 15 09:33:21 cool tricks etc Feb 15 09:33:29 why would anyone work with eclispe for android?! Feb 15 09:33:47 or anything' Feb 15 09:33:48 yeah, that was it thepoosh Feb 15 09:33:53 thanks for the link Feb 15 09:34:01 syre thing Feb 15 09:36:15 Hi, I want my app to do text-to-speech in Hebrew. Is it possible without installing 3rd party app? Feb 15 09:36:47 why for goddsake is this stupid idea/misc.xml still on my git even though its on gitignore Feb 15 09:38:40 you put it there before ignoring it? Feb 15 09:38:52 I just gitignore .idea/ altogether Feb 15 09:39:46 its always the same stupid change jdk change Feb 15 09:39:50 though non happened Feb 15 09:40:29 .idea isn't vcs compatible :p Feb 15 09:52:54 raoul11, you need to delete it from git Feb 15 09:58:06 hell yeah, this notebook cut my build times in half. Feb 15 10:00:25 so i am running pouchdb on my android device and wondering how i can get into a cli where i can trigger the pouchdb running on android in realtime, instead of compiling code Feb 15 10:00:25 is there a way to get into cli on the andorid to trigger db commands on pouchdb? Feb 15 10:01:34 How do I center elements in my FrameLayout element vertically? Feb 15 10:02:16 cli? like through adb? Feb 15 10:02:17 I have an ImageView and I just want to have it centered vertically in the FrameLayout. I tried `android:layout_gravity="center_vertical"` but to no avail, still aligns to the top. Feb 15 10:02:49 in FrameLAyout try android:gravity="center_vertical" Feb 15 10:03:00 also does the ImageView has match_parent properties Feb 15 10:17:29 pagios, you can connect to the devices cli via adb shell. I'm not sure if you can do what you want though, and if you can then it's probably not that easy. Feb 15 10:18:36 why? Feb 15 10:42:27 Hi. I'm trying to diagnose a problem with Google Play videos not playing. GP guys tell me to talk to Youtube guys. Youtube guys misunderstand and say its a Play issue. Is anyone else seeing a lot of problem in the last week? Feb 15 10:45:58 Ashiren, I've already tried doing center_vertical. Also no, the width and height are manually specified to 32dp x 32dp Feb 15 10:46:37 pagios, because android is not linux. you probably need to execute the db calls within the context of an app, otherwise the OS won't let you. although you might be able to get app permissions and execute the commands as if you're that app. Feb 15 10:47:12 I think it's something along the lines of "execute as com.foo.bar" Feb 15 10:48:31 Fizzarina, can you pastebin your layout? Feb 15 10:49:39 Syzygy_, http://pastebin.com/0xCimi4f Feb 15 10:50:42 Fizzarina, add layout_gravity to that linear layout you want centered Feb 15 10:51:06 Syzygy_, didn't work Feb 15 10:51:18 Everything is still top-aligned inside the FrameLayout Feb 15 10:51:54 layout_gravity applies gravity to the view that has that property in it's parent. gravity applies gravity to all of the child elements of the view with that property. Feb 15 10:52:32 Wait what the heck...for some reason layout_gravity was not set in the editable properties window in android studio Feb 15 10:52:36 yet....I had it set in the code Feb 15 10:52:49 when I set the value manually and clicked on 'center_vertical' in the properties window, it worked. Feb 15 10:52:55 But the code looks exactly the same? Feb 15 10:54:14 Dunno, I just code the xml. Never really used the editor. Feb 15 10:54:45 Is it okay to have multiple of those FrameLayouts though? Feb 15 10:55:12 Like say I had...20 of those, would that be overkill with the amount of XML tags that would be? Or should I just go with the approach, if it works then just do it Feb 15 10:55:13 ? Feb 15 10:55:38 generally you want to keep a flat view hierarchy... but you can still nest layouts without to much problems. Feb 15 10:57:31 Syzygy_, okay. Also, how do I get my LinearLayouts height to match the total height of its children? Feb 15 10:57:43 in XML? Feb 15 10:58:07 layout_height="wrap_content" Feb 15 10:58:29 Thank you! Feb 15 10:58:37 no problem Feb 15 10:58:42 If gradle says I need to "recpmiple with -Xlint:deprecation", where do I put that? Feb 15 10:58:49 *recompile Feb 15 11:00:06 CyberJacob, try to execute the code via the command line, gradle (or gradlew) assembleYourProjectFlavorAndBuildType -Xlint:deprecation Feb 15 11:01:40 also, quick google search leads to this: http://stackoverflow.com/questions/18689365/how-to-add-xlintunchecked-to-my-android-gradle-based-project Feb 15 11:02:48 wow... an AVD with Android Studios default settings can't be started because the name contains illegal characters -_- Feb 15 11:05:34 I've got a bg that's 2223x1389px and I'm drawing it as the background on my app in an ImageView. It shows up in Android Studio but not my device. I've placed it in drawable/bg.jpg Feb 15 11:07:49 try smaller pictures and see if those work. increase size until it doesn't. there might be issues with large images sometimes. try different resolutions of that image in drawable-ldpi, mdpi, hdpi, xhdpi and whatever Feb 15 11:08:20 or even drawable-nodpi Feb 15 11:09:18 What's hdpi? Feb 15 11:10:15 that's related to screen density. I'm not an expert on this topic, please look it up yourself. Feb 15 11:10:29 Ah well it's just those folders don't even show up in Android Studio. Feb 15 11:10:40 They're in the actual folder structure when I view it on my operating system though. Feb 15 11:10:56 you can create them yourself in the res folder, right next to drawable Feb 15 11:11:25 Nah I tried, says the directory already exists. Feb 15 11:11:35 But it doesn't show up in the project file manager in Android Studio. Feb 15 11:12:54 Nevermind, I have to change it to Project mode for some reason. I was in Android mode. Not even sure what the difference is. Feb 15 11:13:14 well, either way, your problem could be due to the high resolution file being in the wrong drawable foldre for your phone (and yes, that means that this might have to be in different folders for different phones) Feb 15 11:13:38 That's fine it's just...how do I code it in xml? Feb 15 11:14:01 or...do I just use @drawable and you're saying it automatically chooses which folder to use? Feb 15 11:14:05 you don't, put it in the different drawable folders and the OS chooses on its own Feb 15 11:16:28 I'm running the AVD system image for Android 4.2 with google APIs, but still, the emulator tells me that play services aren't installed and won't let me install them. Feb 15 11:22:32 ah great, seems like that's only possible since 4.2.2 (which is the same API level), but for some reason that's not available to download in my VD config. Guess I'll try api level 18 -_- Feb 15 11:26:11 Syzygy_, if you need Play Services, Genymotion works significantly better for testing. Feb 15 11:27:28 it's fine. Feb 15 11:40:22 So one phone gets an OOM exception when trying to load my intro view pager with one large background. however and LDPI version is available, on my disk that has 20kb and a resolution of 562 x 425. Feb 15 11:40:43 Crash occurs on a 4" 480x800 pixel phone. Feb 15 11:41:01 how are you loading the image Feb 15 11:41:17 bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.skyline_vienna); Feb 15 11:42:14 crap, that might actually count as hdpi... Feb 15 11:43:40 you can use third argument on that to load only its size and then set inSampleSize to downsize it when loading Feb 15 11:44:35 https://developer.android.com/topic/performance/graphics/load-bitmap.html Feb 15 11:45:10 weird Feb 15 11:45:19 they actually recommend using Glide there Feb 15 11:45:29 Shouldn't matter for resources. Feb 15 11:45:34 Glide will just hide the actual issue. Feb 15 11:45:50 Syzygy_, do I understand that correctly, you're loading a "ldpi" image on a hdpi device? Feb 15 11:45:54 Mavrik, sure, I'm just surprised as they don't really recommend any other libraries on that site Feb 15 11:46:39 Mavrik, I thought it would take ldpi, but it's loading whatever it's supposed to load with Bitmap.decodeResource Feb 15 11:47:15 The thing to watch there is that if Android is loading images from a different bucket, it'll try to be "helpful" and resample them. Feb 15 11:47:16 E.g. Feb 15 11:47:16 it loads whatever the device matches Feb 15 11:47:33 if you load a mdpi image on a xhdpi device, it'll resize it x2 before giving it to you Feb 15 11:47:39 which can easily lead to OOM :) Feb 15 11:47:46 yeah Feb 15 11:47:56 that's kinda annoying sometimes Feb 15 11:48:29 So if I get an OOM from the regular bucket, I can forget trying to load from a lower bucket? Feb 15 11:49:43 you should always fit your images to the device Feb 15 11:50:11 sure, but that leads to an OOM Feb 15 11:50:22 Ahh. So many of my elements when I view them on a Nexus 4 look fine. But when I switch to Nexus 6P for example, they look extremely small. How do I make it so all the sizes scale to fit? Feb 15 11:50:23 on this one crappy device. Feb 15 11:50:54 Fizzarina, are you using DP? Feb 15 11:51:02 Yeah Feb 15 11:51:06 I'm using DP for most of my sizes Feb 15 11:51:11 is it a hdpi device? Feb 15 11:51:18 Syzygy_, lower the size of your image, lower heap memory usage or disable the device. Feb 15 11:51:23 or ldpi (haven't seen those since like 2013) Feb 15 11:51:44 apparently it's hdpi at 4" and 480x800 pixels. Feb 15 11:51:46 Fizzarina, that's usually the result of you not using dp properly and trying to have the same sized UI on all devices which isn't practical. Feb 15 11:52:07 and what's your hdpi resource size? Feb 15 11:52:22 Mavrik, what's the best way to go about it then so my elements scale properly? Feb 15 11:52:51 Use dp sizes for views, properly size images and understand that you'll need to have a flexible UI that can show more info on larger screens. Feb 15 11:52:57 I have a problem with the destination of some files on LG devices using a SD card. It seem like "context.getExternalFilesDirs" returns something unexpected. However, in my AVD using an SD card it works just fine Feb 15 11:53:12 Mavrik, for example I have a FrameLayout element that's 300dp in width and it looks great on my Nexus 4, but when I switch to Nexus 6P it looks extremely small. Feb 15 11:53:19 Mavrik, what would be a solution for that? Feb 15 11:53:22 Is there anyway to aquire a virtual LG device - since I do not have a real LG phone Feb 15 11:53:31 Fizzarina, it shouldn't look extremely small. Feb 15 11:53:37 Since they both have about the same dp size. Feb 15 11:53:45 It's possible your size isn't taken into account. Feb 15 11:53:47 or some other way to debug my problem Feb 15 11:53:54 Mavrik, it looks very small on a tablet though Feb 15 11:54:12 what is "very small"? Feb 15 11:54:15 provide screenshots. Feb 15 11:54:37 Syzygy_, you can also try to load it as RGB_565 Feb 15 11:55:20 Syzygy_, http://stackoverflow.com/a/17094885/857853 Feb 15 11:56:05 That was just an example. But I'm saying something like that fits the majority of the screen horizontally on a Nexus 4. But on say a Nexus 6 or a Nexus 7, there's a lot of space to the left and right of the element which hence, makes it look small Feb 15 11:56:25 I was thinking using percentages so it's all the same but I'm not sure if android even does that Feb 15 11:56:47 Using PagerSnapHelper with recyclerview, is there a way to detect when user swipes to next item? Feb 15 11:57:05 I mean without onScrollListener Feb 15 12:00:01 Why does ADB randomly start listening on port 8000? Feb 15 12:00:28 Zharf, sorry, had to leave for a bit because we had some visitors and I guess I'm the only one that speaks german in the office... Feb 15 12:01:15 hdpi resolution is 1687x1275 at 52kb Feb 15 12:01:33 the compressed size is meaningless Feb 15 12:01:41 it will be uncompressed by decodeResource Feb 15 12:01:48 and it will take 4 byte per pixel Feb 15 12:01:55 alright. Feb 15 12:02:10 and that's a pretty large hdpi image Feb 15 12:02:50 you should use glide or picasso or just do the scaling by hand as described by the document I linked Feb 15 12:02:59 and/or use a smaller hdpi image Feb 15 12:05:12 (that image takes 8.2MB uncompressed) Feb 15 12:06:37 full screen image on that device would be 1.5MB Feb 15 12:14:41 I am not an Android dev, so I don't know what I am talking about, but is it possible to include the chromium engine in an apk to use a "webView" with chromium (instead of default webview engine) in Android devices older than 4.4? Feb 15 12:18:12 Meowmers, there was a project for that Feb 15 12:18:24 But it bloated your app by at least 30MB and I'm not sure if its still maintained. Feb 15 12:18:43 Mavrik: Do you remember the name of the project? Feb 15 12:40:39 "FrameLayout bus = (FrameLayout) findViewById(R.id.bus);" - It says it can't find the symbol FrameLayout Feb 15 12:40:42 WTF stackoverflow?! Feb 15 12:40:43 How do I get access to FrameLayout? Feb 15 12:40:47 what's with the new UI?! Feb 15 12:41:03 Fizzarina: did you setContentLayout? Feb 15 12:41:36 ? Feb 15 12:41:51 I did setContentView(R.layout.activity_main); Feb 15 12:42:02 Well that was done automatically Feb 15 12:42:09 before or after findViewById? Feb 15 12:42:21 MainActivity.java: http://pastebin.com/5uZudMiG Feb 15 12:42:38 "Cannot resolve symbol: 'FrameLayout'" Feb 15 12:42:39 and activity_main.xml? Feb 15 12:42:43 oh Feb 15 12:42:50 Fizzarina: import it Feb 15 12:44:21 Ah okay it's under widget Feb 15 12:52:21 I'm trying to copy my FrameLayout object into another but it's not working Feb 15 12:52:21 http://pastebin.com/971A0miX Feb 15 12:52:39 "FrameLayout cannot be applied" - first line of the for loop Feb 15 12:59:16 * raoul11 thepooshes thepoosh Feb 15 13:07:15 is all pooshed out Feb 15 13:07:32 Fizzarina: what do you mean by this?! Feb 15 13:07:39 please attach actual code and logcat Feb 15 13:07:59 I pasted the link to the pastebin Feb 15 13:08:16 FrameLayout constructor takes in Context/Activity , you are giving it FrameLayout Fizzarina Feb 15 13:08:38 I'm basically trying to copy that FrameLayout object Feb 15 13:08:44 Fizzarina: https://developer.android.com/reference/android/widget/FrameLayout.html Feb 15 13:09:03 As in, I want to copy it and append its copy to the view its attached to Feb 15 13:09:03 there is no framelayout constructor that gets a framelayout as an argument Feb 15 13:09:09 how do I copy it then? Feb 15 13:09:12 Fizzarina: why not do that in the xml?! Feb 15 13:09:23 Because its going to be dynamic in the future Feb 15 13:09:31 doing it in XML would be manual Feb 15 13:09:31 so why not do it in a list?! Feb 15 13:09:37 recyclerview Feb 15 13:09:39 or pager Feb 15 13:09:41 I'm confused Feb 15 13:09:44 does anyone not use the XML editor? Feb 15 13:09:49 I just want to copy the element Feb 15 13:09:52 so are we Feb 15 13:10:01 that's already in the xml code Feb 15 13:10:06 :S Feb 15 13:10:10 Okay lets make it simpler Feb 15 13:10:17 Lets forget its a FrameLayout and say its a button Feb 15 13:10:26 the button, is inside a ScrollView Feb 15 13:10:37 How do I duplicate this button via code? Feb 15 13:10:53 the concept of "duplication" doesn't apply Feb 15 13:11:06 because there are things that will get messed up such as layoutparams Feb 15 13:11:08 etx Feb 15 13:11:10 etc. Feb 15 13:11:11 Ah alright Feb 15 13:11:36 how are layout params messed up? Feb 15 13:11:47 these things don't "duplicate" Feb 15 13:12:36 if you want to put multiples of a layout into another layout, put it in it's own layout file and inflate it multiple times Feb 15 13:16:01 please weigh in on this topic which is better in android field variables or Feb 15 13:16:02 https://gist.github.com/h4mme7/324f7eda7d5dfd77bfe4e0c1f7ca5a02 Feb 15 13:16:22 using a method call ? Feb 15 13:16:45 the topic is upon us today and want some outside ideas Feb 15 13:16:50 dar10s: it doesn't matter since proguard will make all private getters inline Feb 15 13:17:14 ha... I remember reading that somewhere. Feb 15 13:17:38 also, in the concepts of better programming (immutable code) the method is better Feb 15 13:18:01 why would you store the state of the returned value? Feb 15 13:19:00 because it will be used here only and assumed destroyed by garbage collector ? Feb 15 13:19:29 there is no real reason to keep a variable if you don't really need it Feb 15 13:19:44 if it gets accessed multiple times and the getter is expensive it makes sense Feb 15 13:20:12 six times for an user login page and then never again. Feb 15 13:20:23 yeah the method seems better here Feb 15 13:24:31 Hey, I'm debugging on a genymotion device (API24) when I debug into an Android API.. it refers to API 25 sources instead of 24.... I have both sources installed.. any idea how to fix that? Feb 15 13:34:52 well Feb 15 13:34:58 is your target SDK 25? Feb 15 13:35:08 changed it to 24 Feb 15 13:35:24 do a build clean Feb 15 13:35:27 build -> clean Feb 15 13:35:46 and completely uninstall and reinstall the app on the device Feb 15 13:35:58 trying Feb 15 13:39:55 not working Feb 15 13:49:07 heyo Feb 15 13:51:19 HI Feb 15 13:51:21 hi Feb 15 13:51:36 I have to layout a toolbar for my rich text editor Feb 15 13:51:45 hey Melatonina how are you Feb 15 13:52:01 I'm ok. You? Feb 15 13:52:59 I'd like to have the undo and redo buttons. Then I'd like to have a button that changes the content of the rest of the toolbar (character formatting, paragraph formatting, special objects insertion) Feb 15 13:53:13 What kind of button and what icon could I use? Feb 15 13:57:39 Melatonina, have a headache Feb 15 13:57:47 going to swallow something for it Feb 15 13:59:43 check for digestion problems Feb 15 14:02:19 not digestion at all Feb 15 14:02:25 was hungry for sure. Feb 15 14:02:38 but i think now sleep is catching up to me i tend to suffer from migraines when i dont get enough sleep Feb 15 14:05:01 just sleep then Feb 15 14:05:16 im at work right now Feb 15 14:05:22 will have an early night though for sure :) Feb 15 14:18:02 Melatonina, will need your help a bit later after i get off work Feb 15 14:18:14 with the side project ive started which is related to android dev Feb 15 14:20:00 Can ADB wait for a broadcast before continuing? Feb 15 14:41:59 Hi, I am trying to set a Toolbar as the AppBar following this tutorial https://developer.android.com/training/appbar/setting-up.html but the Toolbar doesn't show, and I don't get any error Feb 15 14:44:55 Lastent: pretty vague for anyone to help. I would suggest creating one of the template apps from AS that comes with a Toolbar. Then look at the differences in your code Feb 15 14:46:27 Ok let me try Feb 15 14:51:50 Lastent: This guide may be better than the docs as well :) https://guides.codepath.com/android/Using-the-App-Toolbar Feb 15 14:53:39 hi.. building NDK app. the Hello from C++ works fine. but when i include one more file with on C function in it, compile fails with cmake warnings about libssl and libcrypto Feb 15 14:54:12 why does it need those libs to compile one more file when it didn't need them before? Feb 15 14:57:46 bytefire: some function in a new file need it Feb 15 14:58:53 garit: no. but looking closer at the error, it's complaining that reference to the function which is defined in my new file is undefined Feb 15 14:59:15 garit: so it looks like it didn't compile that file Feb 15 14:59:38 how do i make it pick up the new file? i have added it to CMakeLists.txt Feb 15 14:59:45 Check order of inclusion in a makefile, it is important Feb 15 14:59:59 riiight Feb 15 15:00:11 So that if somebody is included first or last may affect the outcome Feb 15 15:01:24 garit: found it. i wasn't linking it inside CMakeLists.txt Feb 15 15:01:33 all working now Feb 15 15:35:33 How can I upload an obfuscation mapping file to firebase before a crash occured? Feb 15 15:37:02 leave yourself a note to go back in time Feb 15 15:37:51 I don't see the option to upload that file, unless a crash already occured. Feb 15 15:56:21 Im the best! Feb 15 16:58:35 question for someone familiar with USB Accessories, having issues making a connection after restart without replugging Feb 15 17:04:13 Hey folks, BlurMaskFilter() anyone know how to use it? I want to blur half of a the surface of a custom view... so I though drawing a rectangle with a paint that has that mask.... I get a solid rect... any idea why? Feb 15 17:57:37 <_ayden> Hello Feb 15 17:59:10 https://events.withgoogle.com/tensorflow-dev-summit/watch-the-videos/#content Feb 15 18:08:52 argh... I think android keeps killing my service off. There does not appear to be any errors or obvious things in logcat to tell me this. This service is intentionally hammering the phone, which I realise is not the usual usecase. Feb 15 18:09:15 I've set the service to foreground, and some other little things I've read online, but any additional tips? Feb 15 18:14:39 Hi I have made a viewholder for nearbyusers, and I am trying to show online / offline icon, but it dont work as intented, can some one help me with this: http://pastebin.com/R2G2WSsf ? Feb 15 18:16:00 and the info it get from the api is Int 0 or 1 Feb 15 18:17:49 have you verified the data coming back from the service? Feb 15 18:18:06 yes :) Feb 15 18:18:22 the profile image works and the other vars Feb 15 18:18:35 also, why the fuck are you using String.ValueOf for something that should be sent as a number in the first place? Feb 15 18:19:08 have you verified that the online flag is properly sent? Feb 15 18:19:11 because it dosent work before so I try to see if this works Feb 15 18:19:27 change it Feb 15 18:19:40 but i don’t think that’s the cause of your problem Feb 15 18:20:20 if you’re going to compare strings, you should use .equals, not == Feb 15 18:20:36 when you step through, you see that you’re getting the proper result for that flag? Feb 15 18:21:01 and, I should have asked this before, but what do you mean by “don’t work as intended”? Feb 15 18:21:39 Okay I will try that Feb 15 18:25:07 leeming some versions of android have that bugged, but it should work Feb 15 18:25:21 also, make sure you understand doze mode / etc Feb 15 18:25:56 doze mode? that is a new one for me Feb 15 18:25:58 * leeming writes it down Feb 15 18:26:13 this should only be running for api24/25 Feb 15 18:27:41 "For Doze to kick in, your phone needs to be sitting still with the screen off, and not connected to a charger. " - if that is true, then it isn't Doze Feb 15 18:28:09 doze light is a thing in v24+ Feb 15 18:28:20 hmm right Feb 15 18:28:32 I have some reading to do i guess Feb 15 18:30:01 and services that are not foreground always have a chance to be killed Feb 15 18:30:20 yes, that is why i made the service foreground Feb 15 18:30:21 even foreground services have a chance to be killed, but less likely Feb 15 18:30:24 hmm Feb 15 18:30:33 doze mode does not kill services Feb 15 18:30:39 when they are killed, does their onDestroy() get called? Feb 15 18:30:44 no Feb 15 18:30:49 it's usually due to memory pressure Feb 15 18:30:54 do any on* get calleD? Feb 15 18:31:01 onLowMemory will often be called Feb 15 18:31:05 and onTrimMemory or whatever it is Feb 15 18:31:14 hmm interesting Feb 15 18:31:22 tensorflow 1.0 \o/ Feb 15 18:31:54 leeming, but if memory pressure is extreme, it can still be killed outright Feb 15 18:32:04 A started service can use the startForeground(int, Notification) API to put the service in a foreground state, where the system considers it to be something the user is actively aware of and thus not a candidate for killing when low on memory. (It is still theoretically possible for the service to be killed under extreme memory pressure from the current foreground application, but in practice this should Feb 15 18:32:10 not be a concern.) Feb 15 18:32:24 it still happens on occasion Feb 15 18:32:32 even without extreme memory pressure, IME, but it's rather rare Feb 15 18:32:32 drat.... I was wondering if it was a slight memory leak (that only showed over a few hours of running), thus a simple soft watchdog to recreate the service Feb 15 18:32:51 I have foreground services that run for days Feb 15 18:33:04 but it occasionally gets wiped overnight for some unknown reason Feb 15 18:33:05 * pfn shrugs Feb 15 18:33:21 this is constantly stressing the hardware tho. ~70% cpu and ~60mb ram Feb 15 18:33:39 may even be temperature related. Parts get to about 55C (120F?) Feb 15 18:33:50 constant heat Feb 15 18:33:55 * pfn shrugs Feb 15 18:34:05 hard to know without constant logging Feb 15 18:34:18 but runaway processes typically don't get killed Feb 15 18:34:19 I have a log atm Feb 15 18:34:41 I do see a few thermal log messages, but not obvious to what is happening Feb 15 18:35:03 does android system kill processes based on thermal response? Feb 15 18:35:15 well i guess that is more kernel related? Feb 15 18:35:47 we have control over the kernel too, if we need to fiddle Feb 15 18:35:58 but i think it is something more obvious Feb 15 18:36:15 should have a kill message... Feb 15 18:36:43 Will have to go through this log properly first :) Feb 15 18:36:51 but end of day :( Feb 15 18:37:02 not sure if my brain can take it much longer Feb 15 18:37:04 what kind of data do I gather from google analytics? How is it different from, for example, having my app email me usage statistics? Feb 15 18:37:34 having proper page navigation and actuation information statistics Feb 15 18:37:40 rather than emailing you garbage Feb 15 18:37:48 * leeming assumes you get the bonus of google spyware. ~ location + header info Feb 15 18:38:18 okay, you have a point lol Feb 15 18:38:21 sorry, i mean cloud services =) Feb 15 18:38:42 analytics doesn't give you user location data Feb 15 18:38:50 unless you mean general geography, like country Feb 15 18:38:52 country level doesn tit? Feb 15 18:38:56 yes Feb 15 18:39:08 if you call that "spyware" ... Feb 15 18:39:12 hehe Feb 15 18:39:30 well there are some nice cloud based anaytics that can be done with more data Feb 15 18:39:37 compared to doing it only from the client side Feb 15 18:39:44 but can you use it to send custom data too? Feb 15 18:41:43 should be able to do some Feb 15 18:41:53 not arbitrary freetext, though Feb 15 18:42:19 I wanted to know the average time users spend on activity X, will I get this information readily or do I have to gather it myself? Feb 15 18:42:21 you don't want that in analytics, though Feb 15 18:42:30 that's what analytics is all about... Feb 15 18:42:30 ok Feb 15 18:42:37 and you get it for free with play-services Feb 15 18:43:00 thanks :) Feb 15 19:10:23 my n7 has been so flakey lately wrt push notifications; seems all day it hardly ever gets pushes. then something happens, like wifi connection drops / restarts ... or, (weirdly) i go on desktop gmail which suddenly provokes android gmail to update all the things it hasn't gotten Feb 15 19:11:13 and when those things happens, lol all of a sudden 10 apps need to be updated, because thats hasn't been working all week either Feb 15 19:14:37 oh does it update in batches of 10? i've just seen in the phone and in the tablet notification of 10 updated apps Feb 15 19:16:57 bitkiller yeah something like that ... Feb 15 19:17:12 it used to be one here, one there ... Feb 15 20:46:35 hello! i’m noobish in android development, and i’m trying to add a menu with @Override public boolean onOptionsItemSelected Feb 15 20:47:04 however, there’s case R.id.item1: in there, but item1 cannot be resolved Feb 15 20:47:24 but i have it res/menu/main.xml Feb 15 20:47:28 *in Feb 15 20:47:48 probably some pebkac, but i can’t find it…. Feb 15 20:50:34 hmm Feb 15 20:50:38 maybe R.menu.item1 Feb 15 20:53:29 ok fixed it… i’ve let android studio create the xml file and then pasted everything in… no idea... Feb 15 21:05:17 wrt: "delayed notifications" g00s, I noticed serious network lag after I drove straight to Texas... like my mail to one recipient would trigger delivery of a previous response they owed me Feb 15 21:05:32 messenger also got weird iir Feb 15 21:28:23 niekniek: You may have already figured this out on your own, but Android Studio creates the R. tables based on the contents of your files, but it doesn't always notice right away when you _change_ those values Feb 15 21:29:19 niekniek: Usually just going to Build->Rebuild Project makes it check and fix any stale R.* tables and things begin behaving properly again Feb 15 21:29:40 It's _much_ worse about not noticing changes when it comes to messing with layouts Feb 15 21:29:55 I've been knocking that about all morning actually Feb 15 21:31:40 Dagmar: thanks for that Feb 15 21:32:04 No worries Feb 15 21:32:30 AS isn't perfect but it's awesome enough once you've gotten used to its occasional quirks Feb 15 21:32:45 next issue…: Environment.getExternalStorageState() Feb 15 21:33:02 Error: external storage is unavailable Feb 15 21:33:44 Probably gotta request the permission first Feb 15 21:33:55 That stuff is dwarf fortress style fun Feb 15 21:35:55 tried again, now it works! Feb 15 21:45:56 Hey, does adding a new permission to the app (In-App Billing) will disable auto update for users? What's the protocol there? Feb 15 21:46:38 the user will be prompted to accept the new permissions Feb 15 21:46:54 haven’t you had this happen to you with apps you use? Feb 15 21:47:06 I never update :) Feb 15 21:47:20 Unlikely. Depending on their settings it may wait for them to approve the permissions change before downloading the update from the Play store, or it might get the update and simply ask for permissions at runtime Feb 15 21:47:23 that doesn’t make any sense Feb 15 21:48:04 anyone checked the effect on update rates in that scenario? Feb 15 21:49:51 Is it going to come as a shock to anyone? Feb 15 21:50:55 I had planned to put AdMob banners into PDART, but it's been a _very_ low-priority feature. I wound up leaving the thing flagged in the Play Store as having ads, although at this point it was just there to see how it works with the layouts. Feb 15 21:51:19 I've clipped that code out entirely right now, but none of my beta testers are going to be surprised if/when it goes back in Feb 15 21:52:00 _Surprising_ your users unpleasantly is what you should worry about Feb 15 21:52:34 well, users are quite insane as i've come to notice Feb 15 21:52:39 If you've made it clear that IAP is a thing you're doing and it's not going to take any functionality away from them, they're not going to get upset about the dialog appearing, if they even see it Feb 15 21:52:55 IAP as a flag is mainly of interest to parents with minors Feb 15 21:53:07 In that scenario, it would matter Feb 15 21:53:16 Well, _could_ matter. Feb 15 21:54:04 the iap is for removing ads, so users are not going to be losing functionality, but they don't kno wthat until they update Feb 15 21:54:06 viran: Have you set up a beta and alpha channel yet? Feb 15 21:54:22 how did you get users into beta? Feb 15 21:54:50 Just told them the link for signing on, and the G+ group to go to for release announcements and to submit bug reports Feb 15 21:55:25 It's just flagged as "early access" (i.e., non-closed beta) right now so they don't have the usual delay between clicking the "I want into the beta" link and actually seeing it in the PLay Store Feb 15 21:55:36 that's nice, I dont really have direct contact channel with my users... Feb 15 21:55:52 But if you create a beta or alpha channel, you can push an APK into that and then have your phone or test device download _that_ and see _exactly_ what your users are going to see Feb 15 21:57:24 yeah, I will have to test that Feb 15 22:00:47 Hello! Any tips on getting a navigation drawer to display under the toolbar/appbar? Feb 15 22:01:09 I want to keep the whole toolbar visible while the drawer is open, but still obscure the content Feb 15 22:11:34 you’d have to build your own Feb 15 22:24:58 just put the toolbar above the drawerlayout Feb 15 22:25:01 in z-order Feb 15 22:25:40 e.g. content Feb 15 23:52:54 Hi guys - long time no see - is it still possible to download Android Studio with all the code samples? Feb 15 23:53:03 I can't seem to find them anywhere outside of Github. Feb 15 23:54:13 Is it possible to run an android activity (or app) inside of another android app? Feb 15 23:57:14 Prof_Birch: The closest you can come is to use an intent to switch over to the other app/activity Feb 15 23:59:35 Thats crap - looks like they removed the choice to download the samples to your machine. Feb 16 00:00:27 I’m 99% sure Github has a way to download them Feb 16 00:01:22 Not in one go like you used to be able to. Feb 16 00:01:26 They are split over numerous repos now Feb 16 00:07:26 Prof_Birch, no Feb 16 00:07:36 you can't embed an app within another app's screen Feb 16 00:07:47 you can interact with independent activities (separate screen) at best Feb 16 00:07:55 multi-window helps a little in this regard Feb 16 00:08:05 too bad there's no way to programmatically initiate multi-window Feb 16 00:08:41 Prof_Birch you want JOLE2 ! Feb 16 00:09:09 or would that be JActiveX Feb 16 00:11:25 Holy shit you two are still in this channel! Feb 16 00:11:33 Hey! Feb 16 00:11:56 hi Anthaas Feb 16 00:12:02 Hows it going? Feb 16 00:12:30 I've come up with a very useful app idea - can't find anything that does it which is surprising seeing as it is SO simple. Rather annoyingly, though, my home internet has died :( Feb 16 00:12:40 Im tethering currently! Feb 16 00:13:06 Do you know if there is a way to download all the sdk code samples? They used to come prepacked with AS/Eclipse IIRC Feb 16 00:15:35 huh, where did they go, i guess not in sdk manager any more Feb 16 00:15:46 Nope :( Feb 16 00:16:00 Github has them hosted, but I was wondering if they kept somewhere to have all the source of your local machine somehow Feb 16 00:16:05 I really had hoped they would have. Feb 16 00:16:06 maybe they haven't gotten far enough with the examples rewritten in dart :D Feb 16 00:16:21 Since flicking between files in some editor > flicking between pages on github. Feb 16 00:16:34 yeah i remember that, kinda sucks Feb 16 00:16:46 File -> New -> Import Sample... Feb 16 00:17:06 dsardari, You used to be able to have all the samples on your file system, not import them from github into an AS project. Feb 16 00:18:06 used to be in the android-sdk folder Feb 16 00:18:09 Clone their repo then? Feb 16 00:18:17 Its not 1 repo. Feb 16 00:18:21 Each project is its own repo. Feb 16 00:18:38 Anyone had much luck with fragment and media player? Feb 16 00:20:51 Anthaas, You could just write a script that lists each repo then pull it if you want it all. Feb 16 00:21:11 Craigory never used mediaplayer. maybe exoplayer is better Feb 16 00:21:29 dsardari something like the 'repo' tool, hmmm Feb 16 00:21:32 Holy crap I found it Feb 16 00:21:40 The answer is the most retarded thing ever though Feb 16 00:21:45 Lol. What is it? Feb 16 00:22:01 g00s: I've read about exoplayer. Seems media player is extremely slow? Feb 16 00:22:04 They are not in the Android Studio SDK Manager, but they ARE in the Android Standalone SDK Manager... Feb 16 00:22:23 Anthaas huh, i use that and didn't see them ,,, Feb 16 00:22:41 g00s, "Sources for Android SDK" Feb 16 00:22:56 oh they put it in there now ? Feb 16 00:23:05 Wait, Im assuming its that...? Feb 16 00:23:14 no its sources for the platform Feb 16 00:23:17 No, thats source, not sample... Feb 16 00:23:21 so you can trace through things Feb 16 00:23:27 >.< Feb 16 00:23:37 god damn it Anthaas you gut us all excited Feb 16 00:23:57 Hahaha, well according to https://developer.android.com/samples/new/index.html they should be in there... Feb 16 00:26:22 g00s, To me that link seems recent enough that it should be accurate...but it just doesn't seem to be. Feb 16 00:27:23 There is even a "Google Developers Samples" plug in... Feb 16 00:30:49 what's a reversible way to append UUIDs? Can I separate them via , or ; and then split(",") the string? Feb 16 00:30:50 i dunno, there used to be a legacy ApiDemos that was pretty useful Feb 16 00:31:21 Syzygy that sounds insane Feb 16 00:32:01 each UUID is 2 longs, just put them in a long[] or something Feb 16 00:32:22 or some other data structure like List Feb 16 00:32:55 Unforntunately I'll have to store them as a single string. Feb 16 00:32:58 ^ But if you are hell bent, and know the length of each, then the answer is sort of obvious Feb 16 00:33:17 If n = the length of 1 uuid, then the first/last n characters are a UUID Feb 16 00:33:38 I guess substrings would work. thanks. Feb 16 00:34:08 "I have to store them as a single string"? Feb 16 00:36:59 Anthaas, using string.substring to restore them. Feb 16 00:37:12 But why must you store them as a String Feb 16 00:37:43 i would also advise against storing them as a String Feb 16 00:37:56 keep them as a UUID type as long as you can, and then convert at the last second Feb 16 00:39:32 You could easily create someObject: public class BigUUID { public BigUUID(long first, long second) { //assign to member fields here } public long first() { return firstUUID; } } etc Feb 16 00:39:57 and you could also return a String which is a concatenation of the both if you absolutely must Feb 16 01:30:26 hey there, anyone done much with cardboard? or is there a better channel for cardboard dev? i'm trying to do a basic AR app and it's kind of a pain and i'm not sure what the best way to overlay the camera would be Feb 16 02:22:47 this is crazy I'm watching All About Android and they say 60% of apps on play store have never been installed Feb 16 02:27:54 did you think anybody would care about your app? Feb 16 02:28:26 I'd say it's pretty obvious Feb 16 02:28:26 Melatonina: I haven't even posted my app to the play store :P Feb 16 02:29:21 when you lower the entry barrier for publishing something (publishing an app on the Play Store is trivial), you'll going to discover that most of the people have nothing to say Feb 16 02:30:07 coming up with good ideas is costly and developing appropriately is hard too Feb 16 02:31:05 there was a great stat here a while ago, that the HK government had published something like 50-100 apps on various subjects, and that something like 90% of them had less than 100 users Feb 16 02:39:50 older story: http://www.scmp.com/news/hong-kong/article/1463336/costly-government-apps-lag-popularity-game and newer story: http://www.scmp.com/news/hong-kong/economy/article/1937350/download-127-government-apps-costing-hk38-million-get-audited Feb 16 02:40:16 by far the most successful government app is the one which competes directly with me... Feb 16 02:41:30 shmoooz thats why i think google could start again from scratch and it wouldn't matter much Feb 16 02:43:40 g00s: yes so maybe they'll dump android and replace it with that new Essential phone/OS with Andy Rubin Feb 16 02:44:19 isn't andy just reusing android? or is he coming up with something else ? Feb 16 02:45:08 I thought it was a new OS Feb 16 02:45:20 hm, i didn't get that impression Feb 16 02:45:33 well anyhow, this is all you need http://newatlas.com/nokia-3310-smartphone/47936/ Feb 16 02:47:02 I think the rumours/narrative coming from him have been that it's something entirely new, and everyone else just assumes it'll be based on Android because it's the best short-cut to a functioning mobile platform Feb 16 02:53:05 the only problem I can see with android is it's not quite real time, so taking pictures and playing music instruments are laggy Feb 16 02:54:32 andy was a talented guy, surrounded by smart people, working hard at the right place and right time. we'll see if he can recreate his success ... Feb 16 02:55:22 i hope the "ambitious" part of the phone isn't the bezel lol Feb 16 02:57:08 NO BEZEL Feb 16 02:58:01 Leeds it would be ambitious if the proprietary port was really like a bacon dispenser Feb 16 02:58:43 NO BAC... Feb 16 02:59:00 I'm pretty down on the idea of launching a new mobile platform - hardware or software - in 2017 **** ENDING LOGGING AT Thu Feb 16 03:00:01 2017