**** BEGIN LOGGING AT Wed Oct 26 03:00:00 2016 Oct 26 03:08:00 this is a beautiful graph https://content.linkedin.com/content/dam/engineering/site-assets/images/blog/posts/2016/10/InstantMessaging4_.jpg Oct 26 03:08:07 jvm GC runs Oct 26 04:37:38 clever ! https://github.com/julian-klode/dns66 Oct 26 04:38:29 what this graph shows? Oct 26 04:43:08 squ_ was from here https://engineering.linkedin.com/blog/2016/10/instant-messaging-at-linkedin--scaling-to-hundreds-of-thousands- Oct 26 04:46:33 Hundreds of Thousands of Persistent Connections on One Machine Oct 26 04:47:01 they use their own home made server? Oct 26 04:51:43 ive just finished making my app.. when i register to become a developer on google play will my name be the author or can i choose a creator name for the app? (im not a business so no business name) Oct 26 05:00:48 its the name of the account Oct 26 05:01:47 or rather, the developer name that you choose Oct 26 05:06:24 lol, would be great renaming my account to 'bad hombre' :D Oct 26 05:14:12 "Exception raised during rendering: Unable to locate mode 0 " Oct 26 05:14:27 mhm. does the previewer ever work for you guys? its nonstop bullshit for me Oct 26 05:17:50 not using it Oct 26 05:18:01 son of a gun https://code.google.com/p/android/issues/detail?id=225753 Oct 26 05:18:25 java.lang.UnsupportedOperationException: Unsupported Service: captioning Oct 26 05:19:21 yeah, android as is Oct 26 05:19:53 can confirm, my recyclerview crashes too Oct 26 05:22:11 released 25 api and forgot to test recyclerview in preview Oct 26 05:23:00 facepalm Oct 26 05:23:00 :) Oct 26 05:31:24 My service onCreate() is being called twice when i close the calling activity even though it is START_STICKY , it is supposed to run infinite time , why does it restarts when i close the calling activity ? Oct 26 05:31:39 Relatively good morning :) Oct 26 05:31:46 Googled a lot but no soloution but this problem is common Oct 26 05:31:58 lot of people are having this problem Oct 26 05:39:06 hi all, any advice on good approaches for dealing with SQlite tables/data in Android; ideally we'd like to avoid using ORMs if possible. Oct 26 05:39:28 If anyone has any utility helper classes to ease creating tables etc, that would be fantastic. Oct 26 05:40:18 so, orbyt_ i can choose anything for that? Oct 26 05:41:29 yes Oct 26 05:42:55 so if it says first name + last name i can choose my_awesome apps Oct 26 05:42:56 ahaha Oct 26 05:42:59 instead of jon doe Oct 26 06:27:18 Does anyone have any ideas for android projects? Oct 26 06:49:48 hi all, i stumbled upon a shortcut to add in log messages in Androi dstudio that lets you tab between tag and message...and now i can only find the template that has a private reference to fragment activity...any ideas hwo to get teh first back? i cant find it... Oct 26 06:52:35 or maybe i imagined it. ill just add TAG since i wouldnt want a string in there anyway Oct 26 07:07:35 Majora320, many but not now i'll tell in due time Oct 26 07:26:28 raoul11: morning Oct 26 07:33:54 Is there a way to get the selected RadioButton from a RadioGroup without its ID? The issue is that I have radio buttons generated in code, so I cannot set an ID for them. Oct 26 07:49:16 what does this red box mean? http://i.imgur.com/NMVsLUm.png Oct 26 07:50:28 did you ctrl+f "after setContentView" ? Oct 26 07:55:34 hi Jesperhead no. i did use logd with tab to use the template Oct 26 07:55:45 once i put in my text i dont get why that remains Oct 26 07:56:01 unless it is indicating the recommended place to modify ? Oct 26 08:09:23 most people ignore studio benefits Oct 26 08:09:42 trying to mess with it as less as possible Oct 26 08:14:29 Hi, I'm reading about binder and I'm not sure I understand, specially when it comes to remote processes, are there two binders? one for the service and one for the client that exchange data together? Oct 26 08:25:18 I am having problems with Google Play setting too many devices as incompatible. I am able to deploy to these devices without problems from Android Studio or if they install the apk directly. How could I find what the problem is? Oct 26 08:34:01 mihalybak: mailing google support Oct 26 08:34:09 they will reply what the problem is Oct 26 08:34:32 But where? I have not been able to find a good support adress Oct 26 08:35:07 squ_: The contact link in the play console just takes you to an faq Oct 26 08:39:17 any one? Oct 26 08:41:14 yes Oct 26 08:44:57 From what I understand a binder is a service's interface and when a client connects to the service a handle to the binder is passed to the client and now the client is able to perform transactions with the binder? Oct 26 08:45:34 you already spent 30 minutes on irc Oct 26 08:45:46 how about a tutorial, they are about 40 minutes usually Oct 26 08:46:06 I mean video tutorials by android developers youtube channel Oct 26 08:47:02 squ_: ok, I'll search on youtube, I read the android documentation but I wasn't able to make sense of it, thanks Oct 26 08:57:57 i am pretty sure i had android studio set to automatically import classes, but now it isnt doing that anymore. how do i do it automatically? Oct 26 08:59:07 settings/editor/general/autoimport Oct 26 09:03:33 alright, so i have an activity that's really just a webview. The app has a saved webpage template, grabs data on activity launch, and plugs the data into the template. When I'm grabbing data, sometimes urls to images are included (requiring an additional asynctask to be called). What context should I send to this asynctask for my pDialog? Oct 26 09:04:00 sorry, the additional asynctask downloads the image. Oct 26 09:15:33 hi Oct 26 09:17:05 when programming fragments for android wear, I heard that a wipe in one direction leads to come to the activity view, but instead my app disappears. Oct 26 09:19:01 So I thought maybe the reason is that I need to put the fragment to the back stack of the activity, Idk. The example from google for that didn't worked for the back stack, so I changed a bit and it compiled, but no change in behavior of may app. Oct 26 09:19:21 Is the back stack responsible for that what I want? Oct 26 09:28:24 is it possible that a run build to a device running 4.3 encounter 64k dex issue while a buildn to en emulator running 23 doesnt? Oct 26 09:45:39 so i create a method, and choose it form the drop down in AS2.2 - and get an error when i launch. is this a bug with android studio that it added in (MainActivity) after the method name? Oct 26 10:05:34 aye, is it ok if i include a URL to my project's github repo in my app's description on playstore? Oct 26 10:10:29 maybe my mistake, I will see, was that I replaced the activity with the fragment instead of adding the fragment to the activity Oct 26 10:17:36 no maybe this was not the reason Oct 26 10:41:12 okay. i figured out my contexting problem... still working on my image downloader asynctask. I appear to be pulling data correctly, but the image data stream is not decoding as expected. My log shows "D/skia: --- SkImageDecoder::Factory returned null". My doInBackground can be found here: http://pastebin.com/tdeFag4Y This doInBackground is based on some code I found a few years ago. I don't... Oct 26 10:41:14 ...think anything is deprecated, and similar code is still in use (and working) for a different portion of the app downloading images. Any help is appreciated. Oct 26 11:28:22 hi my friends Oct 26 11:28:45 homa_: hi hi Oct 26 11:28:52 hi thepoosh Oct 26 11:29:12 what's news? Oct 26 11:29:35 nothing Oct 26 11:29:56 mmmkay Oct 26 11:30:24 thepoosh, how can i fill out html form automatically Oct 26 11:30:40 script that shit Oct 26 11:34:02 thepoosh, explain Oct 26 11:39:58 please explain your question in a way that the answer for it is not scripting Oct 26 11:48:37 I want after coming to the whole view of the fragment back to the activity view, but after hours I fail with that Oct 26 11:49:08 I swipe back and then leave the whole app Oct 26 11:49:31 but it was told to me, that I would come by swiping back to the activity Oct 26 11:51:22 thepoosh, i use javascript and how can i submit that ? Oct 26 11:53:59 uggg this is killing me Oct 26 12:04:31 homa_: again, what is the issue and how is it connected to android Oct 26 12:05:10 sorry, disconnected Oct 26 12:05:25 thepoosh, that solved with javascript Oct 26 12:05:34 wut Oct 26 12:07:54 homa_: ones again, please rephrase the question in a way that's remotely close to android programming Oct 26 12:08:49 yes Oct 26 12:09:14 was that a question? Oct 26 12:09:39 solved Oct 26 12:09:54 eh kind of wednesday i guess Oct 26 12:10:15 how can i connect to my host loop back in android Oct 26 12:10:42 Hi, android uses Binder which originally was Open Binder, was Open Binder designed specifically for RPC? Oct 26 12:10:45 homa_: defuq are you talking about?! please use question marks and words Oct 26 12:11:04 how can i connect to my host loop back in android ? Oct 26 12:12:07 by opening a local port and connecting to it? Oct 26 12:13:47 Does anyone have a class for notifications that simplifies using notifications? Oct 26 12:14:05 working on my image downloader asynctask. I appear to be pulling data correctly, but the image data stream is not decoding as expected. My log shows "D/skia: --- SkImageDecoder::Factory returned null". My doInBackground can be found here: http://pastebin.com/tdeFag4Y This doInBackground is based on some code I found a few years ago. I don't think anything is deprecated, and similar code is... Oct 26 12:14:07 ...still in use (and working) for a different portion of the app downloading images. Any help is appreciated. Oct 26 12:14:58 am I on the right track in thinking I can put the whole notification builder, setting the properties, and issue the notification in a class so all I have to do is call a function in the class and pass it the message and title and it fires? Oct 26 12:15:39 azv4 as long as you give it the parameters it wants, you can do it anywhere Oct 26 12:16:53 whatitis, I tried to throw the builder, properties, then issue in a function and got errors about getSystemService(NOTIFICATION_SERVICE); not being available Oct 26 12:17:28 azv4: notifications are pretty easy to use as is Oct 26 12:17:30 @Jesperhead why aren't you just using a liv for that task? Like Picasso? Oct 26 12:17:37 *lib Oct 26 12:17:44 I can make them work in example projects Oct 26 12:17:45 and the "new file" for notifications from AS might be a good start Oct 26 12:17:52 azv4, get Context class Oct 26 12:17:53 azv4, need a context for that Oct 26 12:18:06 oizo: because I already had a working implementation of an image downloader :-p Oct 26 12:18:13 * azv4 reads more on Context Oct 26 12:18:27 I tried some google results that pointed me towards context but it just kept getting deeper into errors Oct 26 12:18:39 Can pass one to your method for the builder Oct 26 12:18:42 azv4, use activity reference " this " Oct 26 12:18:49 Jesperhead: than change your code to a good library like Picasso, Fresco or Glide Oct 26 12:18:56 I tried app. and this. I couldn't seem to sort it out Oct 26 12:19:21 homa_ he is wanting to use a separate class method outside scope of activity Oct 26 12:19:44 thepoosh: but why? i guess im stubborn. The code works elsewhere so unless there's a good reason... (Not that i dont appreciate the input) Oct 26 12:19:47 azv4 you just pass your context as a parameter to your method Oct 26 12:20:03 whatitis, create method that get parameter Context Oct 26 12:20:03 Jesperhead: the first rule of programming is use libraries Oct 26 12:20:13 or "DON'T INVENT THE WHEEL" Oct 26 12:20:17 hey thepoosh Oct 26 12:20:18 azv4, , create method that get parameter Context Oct 26 12:20:22 I tried this.getSystemService() and still get "cannot resolve...' Oct 26 12:20:30 g00s: sup sup sup Oct 26 12:20:32 https://techcrunch.com/2016/10/26/googles-dart-programming-language-returns-to-the-spotlight/ Oct 26 12:20:42 seriously?! Oct 26 12:20:50 why would this happen?! Oct 26 12:21:09 especially now that Kotlin is out Oct 26 12:21:28 "If you tune into the Dart summit tomorrow (or follow up on news) we'll be showcasing our new native Dart compiled to iOS and Android (no web view, no JavaScript)." Oct 26 12:21:36 https://www.reddit.com/r/programming/comments/59gp89/googles_dart_programming_language_returns_to_the/ Oct 26 12:21:49 bwahaha Oct 26 12:22:04 azv4: pastebin your code then. 'this' references the scope of the class its in Oct 26 12:22:24 I just dont understand 'context' still Oct 26 12:22:34 i've been saying over the past 5 years thepoosh ... google is web company, the idea of native java apps is against their dna - we'll see - i'll get the popcorn ! Oct 26 12:22:44 Read bout that more first then Oct 26 12:22:48 hehe Oct 26 12:24:03 azv4, Context manage your resource Oct 26 12:24:09 azv4: you don't know what context is in Android? Oct 26 12:24:18 g00s: my thought about dart succeeding is basically this: http://i.imgur.com/RVP5bg5.gifv Oct 26 12:24:19 azv4, Context manage your Activity Oct 26 12:24:25 soulisson, were you born with that information? Oct 26 12:25:02 thepoosh i dont think it matters, android has enough developer mindshare now - if google says jump, you will jump Oct 26 12:25:09 azv4: no, just wanted to make sure it was your question, I wasn't trying to be mean or anything Oct 26 12:25:11 His parents passed it along in the genetics process Oct 26 12:25:29 I think my parents forgot to invoke an intent that carried the information Oct 26 12:25:51 * azv4 is still a bit hazy on intents too Oct 26 12:26:01 his parents just forgot to putData() Oct 26 12:26:04 g00s: probably true, but not sure anything will happen Oct 26 12:26:06 azv4: I wasn't following the discussion, just wanted to make sure it was your actual question Oct 26 12:26:26 azv4: https://possiblemobile.com/2013/06/context/ Oct 26 12:26:37 considered to be the best article about context Oct 26 12:26:58 I greatly appreciate the link thepoosh Oct 26 12:27:25 azv4: for me, a context object provides a bunch of methods that returns information about your application and allows your to perform some tasks Oct 26 12:27:39 soulisson, that is helpful Oct 26 12:28:01 so Context is an interface to retrieve state information from the OS? Among other things? Oct 26 12:28:08 state information from the app Oct 26 12:28:12 and the OS? Oct 26 12:28:36 Close enough. Oct 26 12:28:55 azv4: you get many information about your application, like where your files are stored or where your databases are stored, ... Oct 26 12:29:39 evaluateState(); Oct 26 12:30:05 azv4: keep reading that link. And understand it. No way you read it all in 2mins Oct 26 12:30:38 azv4: an intent is an object that stores information about an action that must be performed, you've implicit intents and explicit intents Oct 26 12:32:28 ohi thepoosh Oct 26 12:32:34 hi hi Oct 26 12:33:34 thepoosh, any idea why a debug build going to the emulator doesnt exceed that 64k dex limit, while a debug build going to a 4.3 real device does encounter that? Oct 26 12:35:34 Dagmar: Do you know if the Binder layer in the kernel was designed specifically for Remote Procedure Calls? Oct 26 12:36:50 is there a easy way to remove the horrible shadow on the buttons on android >= 5 Oct 26 12:37:34 soulisson: No idea. Oct 26 12:38:11 soulisson: I've never even heard people referring to anything in the kernel as a binder layer until right now Oct 26 12:38:16 Might be purely an Android abstraction Oct 26 12:39:04 Dagmar: ok, from what I understand for bound services Android uses the Binder Kernel Module for RPC Oct 26 12:39:44 From looking, that's something Android adds to the kernel, which they got from Be/Palm Oct 26 12:41:24 raoul11: probably methods wrapped in if(BuildConfig.DEBUG) Oct 26 12:41:28 or libraries Oct 26 12:42:13 iv addeed that multidex true thingie, plus extended MultiDexApplication and that seemed to solve it Oct 26 12:42:20 not sure whats the trade off Oct 26 12:42:57 there is some load time Oct 26 12:43:47 hithere Oct 26 12:44:09 gdrc lol elevation, thats part of material Oct 26 12:44:22 ?android:attr/borderlessButtonStyle Oct 26 12:44:24 worked Oct 26 12:45:07 just uploaded update to play and was waiting for Pre-Launch report, and one error occurred to me - while this note is being displayed "PRE-LAUNCH REPORT RESULTS ARE CURRENTLY DELAYED Oct 26 12:45:07 Pre-launch tests are currently experiencing issues. Test results may take longer than normal to be available or not be correctly generated. We expect to resolve the issue shortly." Oct 26 12:45:44 They're probably incorporating tests for the dirtycow exploit Oct 26 12:45:46 on vide, there can be seen that gmail has been stopped - and that error seems to be not related to my app Oct 26 12:46:20 error is "Issue: android.database.sqlite.SQLiteException: no such table: attachments (code 1): , while compiling: SELECT attachments._id, messages_conversation, messages_messageId, messages_partId, desiredRendition, originExtras, downloadedRendition, downloadId, status, filename, saveToSd, mimeType, automatic, size FROM attachments WHERE status = ?" Oct 26 12:46:39 but I do not use SQLite - guess it may be related to that note Oct 26 12:46:43 or am I wrong Oct 26 12:48:55 lol dirty cow Oct 26 12:49:18 drammer too .. Oct 26 12:51:05 Both will be resolved before the month is out Oct 26 12:51:24 Then we get to play the game of waiting to see how goddamn long vendors sit with their thumbs up their asses about pushing out a new kernel Oct 26 12:52:00 What does it make to make a new java library inside android studio? Oct 26 12:52:16 g00s: why are you awake so early?! Oct 26 12:52:16 drammer is going to be a bit of a pain since we can't exactly say "Everyone upgrade to ECC/parity/registered RAM" Oct 26 12:52:29 Will this Java library be executed on an actual JVM? Oct 26 12:52:34 thepoosh dog woke up, now i'm up too Oct 26 12:52:48 how's that old dog doing? Oct 26 12:53:00 crised: nothing Android runs on JVM Oct 26 12:53:14 thepoosh: so what's a Java library then/ Oct 26 12:53:28 it runs on Dalvik or ART Oct 26 12:53:46 thepoosh well ok for ~14 years, few months ago stopped eating but thats been resolved. lots of work, like being a caregiver Oct 26 12:54:21 yeah... Oct 26 12:55:30 How to save a file from an Android Java library? Oct 26 12:55:44 hello Oct 26 12:55:45 what are you trying to do? Oct 26 12:55:48 noyadx: hi Oct 26 12:56:07 ill give somebody 10 euros via paypal if they can guide me from being stuck in recovery mode to custom rom on gt i9100, please :P? Oct 26 12:56:11 can i ask for stuff like this here? Oct 26 12:56:35 noyadx: try #android or #android-root Oct 26 12:56:42 and XDA developers Oct 26 12:56:47 thank you Oct 26 12:56:56 Nonsense. XDA developers already has explicit instructions Oct 26 12:57:04 where can I expect the money to come in from? Oct 26 12:57:11 thepoosh: I have an android app, but there is some functionality, that's not really part of the app, so I want to separate it. That's why I thought about a Java Library Oct 26 12:57:14 not sure what libs have caused my apk to grow by 4mb Oct 26 12:57:27 1. I want to understand what is a Java library inside Android? Oct 26 12:57:34 crised: not a problem, you can create an android library project Oct 26 12:57:37 and use it Oct 26 12:57:38 y i no version control thepoosh /: Oct 26 12:57:41 The same as a library in any other environment Oct 26 12:57:50 thepoosh: I just created a Java library inside Andriod studio Oct 26 12:57:56 raoul11: you sux Oct 26 12:57:57 It's a collection of common code functions written so that other applications can make use of the logic Oct 26 12:58:02 paypal Oct 26 12:58:11 noyadx: it was a joke, go to XDA Oct 26 12:58:14 thepoosh: How do I log something to the console from java library? Oct 26 12:58:28 * raoul11 flicks thepoosh's yamaka off Oct 26 12:58:37 crised: if you want to write to the android logcat you need to use Log class Oct 26 12:58:43 yarmulke, oddly. Oct 26 12:58:57 raoul11: you'll be in charge of me being in hell because of you Oct 26 12:59:05 my power button doesnt work in recovery mode and no answers from anywhere yet :D Oct 26 12:59:06 thepoosh: so this library will still run inside the app, right? Oct 26 12:59:18 noyadx: still the wrong channel Oct 26 12:59:25 being an android dev is already hell by itself brother Oct 26 12:59:35 crised: all code running under an Android app is under android Oct 26 13:03:29 app devs can conceptualize to the OS metal! that stuff runs under *nix ofc Oct 26 13:04:25 Bell Labs is safely asleep and Android only runs on Linux. You can stop saying "*nix" now. Oct 26 13:04:43 oh touche! Oct 26 13:05:01 heh Oct 26 13:05:49 Someone might get the idea that SCO is still relevant if you keep saying "*nix" Oct 26 13:06:28 Does WebChromeClient somehow uses the google chrome browser installed on the device? Oct 26 13:08:53 sco is about the point where I took a detour through Win* 😆 Oct 26 13:09:25 does anybody know if i can run regular junit tests and Cucumber tests (using the Cucumber runner for junit) simultaneously? it doesn’t seem like ./gradlew test runs them both Oct 26 13:09:33 I walked away from Windows when they released WfWg 3.11 Oct 26 13:10:40 I saw win 3.1 boxed, it was magical ;) Oct 26 13:11:02 Not being able to sustain an IP network connection was far from magical Oct 26 13:11:41 hey, it did token ring Oct 26 13:11:53 I don't exactly view that as a benefit Oct 26 13:12:01 heh Oct 26 13:13:53 Hi, what is a local small database (in memory) for an android app? Preferable nosql Oct 26 13:14:50 Jagged/sparse arrays. Oct 26 13:15:14 Hey, in the land of shared media, tokenring was *awesome*. Once switching gets involved, eh, not so much Oct 26 13:15:37 Then again I worked on a 5000-drop tokenring network until 2002 or so, so... Oct 26 13:15:54 Token Ring was only awesome so long as everyone played by the rules religiously and zero devices on the loop were malfunctioning Oct 26 13:16:32 Dagmar, depends how good your network hw was. Use unmanaged MAUs, sure it could be a total crapshow. Managed CAU/LAM units did a really good job controlling the ring, up until you put an unmanaged loop on it :P Oct 26 13:16:44 Or until I was allowed to attach to it Oct 26 13:17:22 Dagmar, and to be honest, the contemporary networks were a crapshow too - 10b2 sure didn't handle someone dicking w/ the phy layer very well. But I suspect we're getting very very far astray of the channel topic :) Oct 26 13:19:30 * capellaGoesBOO eating it up Oct 26 13:21:19 does scrollview hates relativelayout? Oct 26 13:21:38 gotta nest the relativelayout inside a linear one Oct 26 13:21:51 No, unless you try to put the relativelayout inside the scrolllayout Oct 26 13:22:05 ...then things can become unpleasant Oct 26 13:22:40 i tried hosting the relativelayout inside the scrollview, it works ok on api 23 emulator, chops the bottom part on 4.3 Oct 26 13:23:09 Hi guys - I have a gradle issue - why is this not working: http://pastebin.com/WCBUzLrh Oct 26 13:23:20 You'll probably have to give it a fixed height Oct 26 13:23:22 I appreciate this isn't strictly Android, but I figure there'd be enough gradle knowledge in here... Oct 26 13:27:19 How should be the git ignore in an android app? Oct 26 13:27:25 just use the default from git init? Oct 26 13:27:42 crised: If you have any IDE specific files, add them too Oct 26 13:27:51 Dagmar: wrappin it seems to do the trick Oct 26 13:28:00 Anthaas_: using android studio Oct 26 13:28:05 now gotta go over my 10 billion activities and see which one has that same fuckup Oct 26 13:28:06 just created the new app Oct 26 13:28:30 crised: Is there an .idea folder? I don't remember Oct 26 13:28:42 Anthaasyes Oct 26 13:28:54 Anthaas_: I'll just use git init defautls Oct 26 13:38:10 Do webviewClient instances have any other purposes than handling the callbacks? Oct 26 14:12:31 Hello, does somebody know anything about the rooms in google play services? https://developers.google.com/games/services/web/api/rooms#methods Oct 26 14:12:41 I cant find any documentation about it other than that Oct 26 14:13:33 45 Oct 26 14:13:38 eh, wrong chat :D Oct 26 14:13:42 sorry Oct 26 14:14:36 TheSchaf, was that the answer for an a/s/l/w question? Oct 26 14:15:01 Anyone familiar with downloading files with input/output streams? Oct 26 14:15:26 trying to download a jpg and keep writing 0 bytes. The file gets created though Oct 26 14:16:42 no :P Oct 26 14:16:50 @ raoul11 Oct 26 14:21:09 ficolas, you're looking documentation targetting "web".. Oct 26 14:21:16 https://developers.google.com/android/reference/com/google/android/gms/games/multiplayer/realtime/package-summary Oct 26 14:22:52 ohhh Oct 26 14:23:06 thanks Oct 26 14:42:35 bump ^ does anybody know if i can run regular junit tests and Cucumber tests (using the Cucumber runner for junit) simultaneously? it doesn’t seem like ./gradlew test runs them both Oct 26 14:43:27 i'm back Oct 26 14:45:55 as a developer what's your favourite phone? Oct 26 14:46:10 I am considering buying one this year switching from 9years of iphone Oct 26 14:48:34 as a dev, genymotion Oct 26 14:49:44 as a dev, fuck iphones Oct 26 14:50:11 sorry that was kinda rude Oct 26 14:51:52 any android phone is ok.. Oct 26 14:51:56 no, its okay :p Oct 26 14:52:11 as long as its fairly recent Oct 26 14:55:27 leo2007: expect a bit of bias on this channel Oct 26 14:55:45 same goes for asking the same question in #iphonedev Oct 26 14:57:44 "PSA: android gradle plugin 2.2.0+ ignores aaptOptions" lol Oct 26 14:58:08 ?? Oct 26 14:58:13 adq its pandemonium ! Oct 26 14:58:59 i expected a link like https://www.reddit.com/r/androiddev/comments/59htj4/psa_android_gradle_plugin_220_ignores_aaptoptions/ from you Oct 26 14:59:05 not pandemonium! Oct 26 15:00:18 lol, and all previews with recyclerview are broken Oct 26 15:22:36 what happens if you use DownloadManager without setting the write_external_permission and without setting a destination directory? the image still appears to download, trying to find out *where* Oct 26 15:23:10 Depends on whether or not someone caught the error caused by writing to a nonexistant filehandle Oct 26 15:24:16 g00s, you're not watching MS live event? Oct 26 15:25:22 Mr_X: Driving in something like hail or driving rain (where one might need wipers) without a windshield kinda takes care of itself without authorities needing to intervene Oct 26 15:44:54 adq no, anything interesting ? Oct 26 15:45:09 i'm watching 'doggy live' Oct 26 15:45:42 TMI Oct 26 15:49:09 Khaytsus: Yeah, but I thought you were referring me to sammobile because they had an untampered-with-by-Sprint version of the firmware, lacking Sprint's crapware Oct 26 15:50:14 Dagmar i have a dog :P Oct 26 15:50:31 pervert ! Oct 26 15:50:38 aww, verizon travelpass doesn't work in japan Oct 26 15:50:41 The internet ruins everything, man. ;) Oct 26 15:50:41 stupid conformity bullshit Oct 26 15:51:19 $10/day is reasonable for roaming... Oct 26 15:52:07 I need to mak sure I drop by the vzw store to get my sim replaced so it actually works... Oct 26 16:03:40 hello, whatever i do, my app logo does not change. I replaced mipmap/ic_launcher, i made a new mipmap drawable named ic_launcher2 and pointed the manifest to it, i uninstalled the app multiple times and restarted my phone, but nothing seems to work. Any help? Oct 26 16:04:29 m712: Make sure you don't have other versions of the same filename in the _other_ image asset directories... Oct 26 16:04:37 Dagmar: let me see Oct 26 16:04:44 find src/main/res -name 'ic_launcher*' Oct 26 16:05:07 i am sure i do not Oct 26 16:05:16 then do a clean build Oct 26 16:05:18 and manifest points to @mipmap/ic_launcher2 Oct 26 16:05:22 pfn: how to? Oct 26 16:05:28 ./gradlew clean assembleDebug Oct 26 16:05:32 oh ok Oct 26 16:05:39 can i do it from the android studio? Oct 26 16:05:48 android studio has a clean button somewhere Oct 26 16:05:58 Yep Oct 26 16:06:00 instant run also interferes Oct 26 16:06:06 * pfn has no idea how to use android studio Oct 26 16:06:07 * pfn shrugs Oct 26 16:06:12 command line > ide Oct 26 16:06:17 pfn: ok i did it from the terminal Oct 26 16:06:32 Its right there under Build, where one would expect it to be Oct 26 16:06:43 with a language like java you have to use an ide because your project's complexity grows exponentially Oct 26 16:06:46 :( Oct 26 16:07:04 * pfn doesn't use java... Oct 26 16:07:37 I do use an IDE though, but only as an editor Oct 26 16:07:46 me too Oct 26 16:07:51 just for debugging Oct 26 16:07:57 i'm normally a vim user Oct 26 16:08:28 pfn this is interesting https://news.ycombinator.com/item?id=12793939 Oct 26 16:08:48 nope, still doesn't work Oct 26 16:08:57 maybe it just doesn't wanna tonight Oct 26 16:09:01 damn it android Oct 26 16:09:03 g00s, indeed, I'm planning on scala.jayce Oct 26 16:09:14 and let jack assemble jayce output into dex Oct 26 16:10:12 once tasty gets to a stable point, can start writing a transformation from that to jayce as well Oct 26 16:11:17 swift will be something I'd consider using once they implement higher kinded types Oct 26 16:13:31 g00s: I'm more interested in rust than swift ;) Oct 26 16:14:01 gordon_ knows where i read that comment from :P Oct 26 16:15:17 good bye my friends Oct 26 16:15:31 jack scares me. sounds like its slow as shit Oct 26 16:16:17 I programmed Android Wear Fragment, but when switch to Fragment view using my app, and swiping right, the app disappears instead of the fragment disappears and the activity is displayed Oct 26 16:16:43 gordon_ tomorrow the dart team is previewing some native dart to android / ios tool Oct 26 16:16:54 honigkuchen, how do you link fragments Oct 26 16:16:54 g00s: you mean flatter ? Oct 26 16:17:08 *flutter Oct 26 16:17:28 gordon_ no , i don't think so .. https://www.reddit.com/r/programming/comments/59gp89/googles_dart_programming_language_returns_to_the/d98bfz4/ Oct 26 16:17:30 https://flutter.io/ Oct 26 16:17:32 do you created layout for fragment ? honigkuchen Oct 26 16:17:53 I did it as described in the google manual Oct 26 16:17:59 link? Oct 26 16:17:59 "With Flutter, Google is also launching a new project into preview that allows developers to write both iOS and Android apps from a single Dart codebase. " Oct 26 16:18:04 layout yes Oct 26 16:18:05 yeah, flutter Oct 26 16:18:30 gordon_ flutter has been around for a while Oct 26 16:18:41 overrided onCreateView , honigkuchen Oct 26 16:18:47 ok so i guess its a new aspect of flutter Oct 26 16:19:05 things getting interesting :) Oct 26 16:19:06 g00s, jack is slow as a compiler, should work ok as a dx replacement Oct 26 16:19:19 yes overwrited, as described in google manual Oct 26 16:19:51 g00s: I have no idea why they did it that way Oct 26 16:19:53 what is meant with linking of fragments Oct 26 16:20:10 like they couldnt just make native framework for android Oct 26 16:20:21 so you could use all languages you want Oct 26 16:20:26 is it because of the backstack? no..... Oct 26 16:20:34 hmm, installing to another phone it seems to show the logo, but not on my phone! Oct 26 16:20:40 honigkuchen, how was inflater method Oct 26 16:20:50 i wiped the launcher's cache, it still shows it incorrectly Oct 26 16:21:01 this is very dumb Oct 26 16:21:09 is it because I neednt doing this setContentView(R.layout.fragment2); Oct 26 16:21:14 g00s: also, power of scala is in it's libraries Oct 26 16:21:33 inflater in the overwrited method? Oct 26 16:21:56 honigkuchen, no , give me your code in fragment Oct 26 16:22:08 return inflater.inflate(R.layout.fragment2, container, false); Oct 26 16:22:20 pastebin? Oct 26 16:22:51 honigkuchen, every site Oct 26 16:23:45 pfn: you plan to compile scala to jayce ?! Oct 26 16:24:01 gordon_, yes, it's something I've been thinking about for a while Oct 26 16:24:41 honigkuchen, do you set in xml or with FragmentManager Oct 26 16:24:53 when I get around to doing this though... Oct 26 16:24:55 * pfn shrugs Oct 26 16:24:59 maybe toward the end of 2017 Oct 26 16:25:46 http://pastebin.com/dc1Xmrdw Oct 26 16:25:56 no Oct 26 16:26:06 pfn: haha, good luck Oct 26 16:26:10 tell me if you need some help Oct 26 16:27:05 honigkuchen, give me activity that you use fragment there Oct 26 16:27:31 its not in the link? Oct 26 16:27:35 u mean xml? Oct 26 16:27:54 it is the one from the sample Oct 26 16:27:58 from android studio Oct 26 16:28:02 ok Oct 26 16:28:09 in xml or with FragmentManager class , honigkuchen Oct 26 16:29:28 http://pastebin.com/t2NSbxUF Oct 26 16:29:50 4.8G./.gradle :( Oct 26 16:30:43 in onMenuItemClick is my code Oct 26 16:30:57 to start the fragment Oct 26 16:31:30 no u should set code in onCreate method Oct 26 16:32:11 that means onCreate for starting fragment and elsewhere for showing? Oct 26 16:32:35 give me activity code Oct 26 16:32:49 in both links Oct 26 16:33:00 first the java second the xml Oct 26 16:33:54 honigkuchen, in activity type this Oct 26 16:34:19 FragmentManager fragmentmanager = getFragmentManager(); Oct 26 16:34:57 FragmentTransaction transaction = getFragmentManager().beginTransaction() Oct 26 16:35:06 Fragment fragment = new yournameofFragment(); Oct 26 16:35:06 this is in my links Oct 26 16:35:50 .add(R.id.frame_layout, new FirstFragment()); Oct 26 16:36:00 in first pastebin link Oct 26 16:36:48 in xml create fragment tag , honigkuchen and get id to first add method Oct 26 16:37:57 which xml of both Oct 26 16:38:06 xml of activity Oct 26 16:38:15 id of that xml fragment in the add method? Oct 26 16:38:39 yes Oct 26 16:38:51 where to be placed in that xml when it shall display as full screen Oct 26 16:39:34 change it's size like other wiedgat Oct 26 16:40:42 under which tag Oct 26 16:41:28 under your layout Oct 26 16:41:38 RelativeLayout or others Oct 26 16:42:00 g00s, yes and no, it depends, you will read about it in the news i guess Oct 26 16:43:12 hithere Oct 26 16:43:45 I have this strange error without knowing on what row it appeared "java.lang.IndexOutOfBoundsException" - http://pastebin.com/f0CL3q1d Oct 26 16:43:57 gordon_, we'll see how it goes when I get there... Oct 26 16:44:28 this is happening on 4.1.1 Genymotion, but on 4.1.2 physical device - app is normally running Oct 26 16:44:44 No view found error Oct 26 16:45:02 do I need to place a view into that new fragment tag? Oct 26 16:45:16 no Oct 26 16:45:43 pfn, can you please look at that stack? Oct 26 16:46:01 not much to say about it, other than it crashes in framework, bolovanos Oct 26 16:46:08 if it doesn't happen on a device, ignore it Oct 26 16:46:40 I didnt put yet any code under case R.id.menu_planet_name: into onCreate Oct 26 16:46:58 but what is (maybe) the reason for that error Oct 26 16:47:11 pfn, ok, thank you ... it was not there with previous app version (but it was quite a while whne I tested my app on this virtual device) Oct 26 16:47:29 the error appears when fragment shall be displayed clicking the menu item Oct 26 16:47:48 if I need to render a video in the canvas of a View, should I use OpenGL and a Texture? Oct 26 16:50:39 homa_ Oct 26 16:50:50 what Oct 26 16:51:04 homa_ I could send you Bitcoins for your help Oct 26 16:51:25 i have a problem Oct 26 16:51:32 with my computer Oct 26 16:52:07 Paypal? Oct 26 16:53:28 nice, no new surface pro this year, I didn't buy something obsolete already Oct 26 16:54:11 pfn - got it it had a problem with 480x800x213dpi - it works on 240dpi - guess that it might be problem genymotion is warning in case user changes dpi which was not default for that virtual device Oct 26 16:54:14 Hello everyone, I am having issue with deeplinking using Branch.io . The first time I click a branch link from my email, it doesn't treat it as a branch.io link but when I click it the second time, it treats it as such. Has anyone faced this issue before? Oct 26 17:16:58 Hey, I have a couple of GCM questions Oct 26 17:19:25 Does instanceId.getToken(…) always return the same token for the same values? And if so, does it store it locally after the first run? Oct 26 17:27:59 i am trying to a calling feature in my app but its asking for some uses permission Oct 26 17:28:12 error still persists even after adding this: Oct 26 17:28:13 add a* Oct 26 17:28:52 v23+ requires runtime permission checking Oct 26 17:29:19 so what should i add in this? Oct 26 17:32:04 anyone? Oct 26 17:32:11 here: Oct 26 17:32:12 https://developer.android.com/training/permissions/requesting.html Oct 26 17:32:21 Naam_hai_sidhu: ^ Oct 26 17:32:27 pfn yeah surprised there is no surface pro, although there is that big one Oct 26 17:53:53 am using nox emulator to run my apps, but its not running voice apps,how to fix that? Oct 26 18:01:38 anyone? Oct 26 18:01:49 ask the nox developers Oct 26 18:02:01 where :D Oct 26 18:02:33 They just left here, headed east. Oct 26 18:02:41 If you hurry, you just might catch them. Oct 26 18:02:52 have you tried the regular emulator? Oct 26 18:03:17 s73v3r ya the AVD but its very slow Oct 26 18:03:28 try a device Oct 26 18:03:38 sometimes it crashes the whole app Oct 26 18:04:38 ok sir Oct 26 18:14:45 https://www.amazon.ca/dp/B009GUPW58 Oct 26 18:14:51 @#$@ damn mouse Oct 26 18:20:17 * pfn ponders what to put in the small notification for an irc client... Oct 26 18:22:49 Pick something appropriate to the network they're connected to Oct 26 18:26:05 Trying to use getSystemService(NOTIFICATION_SERVICE); says "cant resolve" Oct 26 18:26:26 Do I just need an import? Oct 26 18:26:56 Dagmar, a user can be connected to multiple networks, so that's not very useful Oct 26 18:27:18 I've listed a connected server count for years, but it's so uninformative... Oct 26 18:27:24 the big notification is awesome, though... Oct 26 18:28:50 http://imgur.com/a/pmyf3 Oct 26 18:32:16 pfn: nice :) I've sorta wondered how close the UX of android irc clients get, compared to.. well, semi-comparable things like slack/whatsapp etc Oct 26 18:33:45 kbs, since irc is pretty much an 8bit medium, not quite as nice Oct 26 18:34:09 but it's fairly reasonable, I have notification and input history trays as well Oct 26 18:34:22 anything interesting in ircv3 that you plan to work with? *as I poke around in your github repo* Oct 26 18:34:43 nope, not even considering staying up to date besides what I normally connect to Oct 26 18:34:51 haha :-) fair enough. Oct 26 18:44:33 awww, don't have any old imgur where I show the input and notification trays Oct 26 18:48:52 hmm Oct 26 18:54:22 how can I have a progress dialog stay on the screen for 2 seconds before it disappears? Oct 26 18:56:09 meh Oct 26 18:58:46 post a runnable to a handler to dismiss in 2 seconds Oct 26 18:59:18 I just threw Thread.sleep(2000); in before the .dismiss() Oct 26 18:59:45 thread.sleep is always wrong Oct 26 18:59:47 http://imgur.com/a/B1Les Oct 26 18:59:53 there we go Oct 26 19:01:02 pfn: very nice :) Oct 26 19:02:30 feature-wise, yeah, it wins :) Oct 26 19:02:52 but in terms of overall solution, current-gen products are nicer (multimedia, etc) Oct 26 19:16:55 Hello Oct 26 19:17:12 good evening Oct 26 19:17:22 is there a way to change the background color for TabLayout tabs programatically? Oct 26 19:18:05 tried tabLayout.getChildAt(i).setBackgroundColor(Color.parseColor("#FFFFFF")); but crashes the app Oct 26 19:20:28 and what does the crash say Oct 26 19:21:30 one moment.. trying another solution Oct 26 19:21:38 I think I need to use getTabAt Oct 26 19:22:24 doesnt work either .. Oct 26 19:22:30 it throws this : java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setBackgroundColor(int)' on a null object reference Oct 26 19:25:34 thing is I need to change the background color dynamically for selected / unselected tabs Oct 26 19:28:10 your error is telling you that .getChildAt(i) is null Oct 26 19:28:27 you're doing it wrong, but i'm sure there is a way to programmatically change the tablayout bg color Oct 26 19:31:06 getTabAt() returns a Tab object .. can't change the background on that one Oct 26 19:32:22 doesnt look to be a null object, getChildAt(i) is android.support.design.widget.TabLayout$SlidingTabStrip Oct 26 19:36:12 I wonder if lollipop multidex has a limitation of around 100 files Oct 26 19:36:41 someone is having a class would an issue once they go over 100 file Oct 26 19:37:02 class loading Oct 26 19:42:26 What wrong here? I'm calling dog.getLocationInWindow(..) and I get an x coordinate of about 1600 but by screen is only 1080 wide. Dog is simply centered horizontally in a FrameLayout it I was expecting an x ~ 540 minus its width. Oct 26 19:44:14 I'm trying to place one view (Overlay) on top of another view (Anchor). Anchor and Overlay are not in the same ViewGroup, though; Overlay is placed in MyOverlayFrameLayout which is placed above top of the parent of Anchor. Oct 26 19:47:22 I was hoping not to take parent view locations into account when using getLocationInWindow() Oct 26 19:51:39 lol Oct 26 19:54:12 pifon? Oct 26 19:57:43 pfn, you don't have to know of a link demonstrating your above suggestion on delaying a ProgressForm.Dismiss()? Oct 26 19:58:02 "post a runnable to a handler to dismiss in 2 seconds" Oct 26 19:58:13 Anyone here have any experience with JNI? Oct 26 19:58:39 :O Oct 26 19:59:12 ask the specific question Oct 26 19:59:39 https://code.google.com/p/android/issues/detail?id=200668 Oct 26 19:59:40 oh Oct 26 19:59:51 azv4: new Handler().postDelayed( new Runnable(){ void run(){ ProgressForm.dismiss(); }}, 2000); or something in that neighbourhood. Oct 26 20:00:47 interestingly, it's flagged for tools-gradle Oct 26 20:00:51 not platform/framework Oct 26 20:00:54 lol Oct 26 20:00:56 declined Oct 26 20:01:13 makes sense, because it's labeled as a tools-gradle bug Oct 26 20:01:16 I would decline it, too Oct 26 20:01:21 because it's not for the android plugin tof ix Oct 26 20:01:28 but the platform (but allegedly, it was fixed in 6.0) Oct 26 20:01:52 some morons probably wrote the dex loading as classes??.dex only (for classes2.dex through classes99.dex) Oct 26 20:02:32 the same will happen when android Z will come. it will be the end of android Oct 26 20:02:40 no more letters after Z Oct 26 20:02:56 Zta, it appears the ProgressForm.dismiss() never gets called with your example... ANy ideas why? Oct 26 20:05:18 azv4: Only one: Those lines of code get executed. Either because they're unreachable, or because you start them somewhere and then finish() the Activity before the 2000 ms time out. Oct 26 20:05:31 I wish I ordered the blue pixel, that thing is so nice... Oct 26 20:05:55 * adq shrugs Oct 26 20:06:03 :)) Oct 26 20:06:32 Hello, please someone guide me in this: https://developer.android.com/training/material/lists-cards.html in the "MyAdapter" class code, inside there is a "MyAdapter.ViewHolder onCreateViewHolder" method that have as a first (or seconde) line this: View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.my_text_view, parent, false);.......... where is "R.layout.my_text_view" ?? Oct 26 20:06:38 silver/white is so generic Oct 26 20:07:31 You'll stuff it into a sleeve anyway Oct 26 20:07:41 Right? ;) Oct 26 20:07:41 pmercado, do you have a file in layout folder named my_text_view? Oct 26 20:07:46 pmercado, somewhere in your res/layout/ folder Oct 26 20:07:56 Mavrik, a clear pixel case, yeah; I never put my 6p into a case... Oct 26 20:08:19 then again, it's so dinged up, I want to get rid of it already... Oct 26 20:08:43 azv4: adq: ..... ok.... need a external file, that file only have a TextView ? Oct 26 20:08:57 (nicks all over the metal casing, and the plastic trim 'tween screen and casing is all chipped up and making the screen come out...) Oct 26 20:09:18 pmercado, it is looking for a layout .xml file Oct 26 20:09:42 pmercado, I think a read into what components reside in a layout .xml file will help you pmercado Oct 26 20:11:23 azv4: thanks :) Oct 26 20:15:04 Gaah... my Anchor view is really inside a hortizontal ViewPager and residing on the 2nd Fragment. Maybe this is why I get a location that's wider than my screen. Still, I'd think this is a bug since I'm specifically requesting anchor.getLocationOnScreen(); that should really give a location ON SCREEN. Oct 26 20:15:52 Android dashboard hasn't been updated in nearly 2 months :( Oct 26 20:16:09 Waiting for peoples Pixel phones to ship I guess Oct 26 20:19:01 @adq: I found a solution for the tabs eventually Oct 26 20:19:37 you are forced to use a custom view for tabs and then getTabAt().getCustomView() Oct 26 20:22:06 I have leaks detected in my app through LeakCanary but when I open the LeakCanary app it shows an empty screen. I am using this guide to setup LeakCanary https://github.com/square/leakcanary/wiki/FAQ Oct 26 20:29:28 can anyone see why this doesn't ever fire pf.dismiss()? new Handler().postDelayed( new Runnable(){ public void run(){ pf.dismiss(); }}, 2000); Oct 26 20:33:46 it does fire Oct 26 20:33:58 then why doesn't the pf ever dismiss? Oct 26 20:34:03 it stays there forever... Oct 26 20:34:06 that's for you to figure out Oct 26 20:34:11 brilliant Oct 26 20:34:14 anyone else? Oct 26 20:34:21 you're asking the irrelevant question Oct 26 20:34:35 the problem isn't the handler posting a dismiss call Oct 26 20:34:35 you're giving irrelevant suggestions! Oct 26 20:34:43 no, for once he’s not Oct 26 20:34:52 the handler appears to never post the dismiss Oct 26 20:34:56 the dismiss never happens... Oct 26 20:35:03 that's because you're blocking the main thread Oct 26 20:35:05 have you verified that the handler never runs? Oct 26 20:35:21 s73v3r, only in that the dialog never dismisses... Oct 26 20:35:44 stupid golbez rng... killed my party... Oct 26 20:36:09 oh well, tomorrow is another day, not sure what I should be reading up on to try to understand why the dialog isn't dismissing though... Oct 26 20:37:14 check that you’re not blocking the main thread Oct 26 20:37:34 is there some code in the following that blocks the main thread: new Handler().postDelayed( new Runnable(){ public void run(){ pf.dismiss(); }}, 2000); Oct 26 20:38:11 because that is the only code I used to replace the line: pf.dismiss(); in an effort to delay the pf.dismiss(); for 2 seconds.... Oct 26 20:38:24 the rest of your code is wrong Oct 26 20:38:34 that isn't helpful Oct 26 20:38:35 the problem isn't the handler line Oct 26 20:38:43 it is helpful -- it means show the rest of your code! Oct 26 20:39:21 http://pastebin.com/ExQvqJhb Oct 26 20:39:43 because you never catch an exception Oct 26 20:39:59 of course I do Oct 26 20:40:05 so you claim Oct 26 20:40:07 else the notification would never be issued Oct 26 20:40:21 the handler is on the wrong thread then Oct 26 20:40:31 you're making us read your mind, and it is frustrating Oct 26 20:40:40 I have no idea what you want to know Oct 26 20:40:49 the context of what you are doing Oct 26 20:41:05 I run an async task that checks for jobs on a server Oct 26 20:41:13 if there are some, a sync happsn Oct 26 20:41:18 try reading something like esr's smart questions guide Oct 26 20:41:25 wrong thread Oct 26 20:41:34 this catch statement is if the server is unavailable Oct 26 20:42:03 azv4: try explicitly running the handler on the main thread Oct 26 20:42:13 so instead of New Runnable(), I need to determine which existing thread Im on? Oct 26 20:42:20 yeah Oct 26 20:42:21 no, not new runnable, new handler Oct 26 20:42:24 wrong thread Oct 26 20:42:44 so a new thread is created when I say: new Handler() Oct 26 20:42:45 yeah. i didn’t read your whole thing Oct 26 20:42:59 but I dont have an existing handler I dont think Oct 26 20:43:02 if you have a view reference handy, viewObject.getHandler().postDelayed(...) Oct 26 20:43:17 getMainLooper works too Oct 26 20:43:20 otherwise new Handler(Looper.getMainLooper()) Oct 26 20:43:50 I'm just too green to completely understand what you are suggesting Oct 26 20:44:04 perhaps a read into esr's smart answering guide ;) Oct 26 20:44:21 really though, I gotta run, I appreciate your suggestions, I hope I can make some sense in the morning Oct 26 20:45:01 dude, we said explicitly what to do Oct 26 20:45:13 I just said I dont understand what you explicitly said to do Oct 26 20:45:22 I understand that isn't your problem, believe me Oct 26 20:45:31 I dont know anything about handlers or main loopers Oct 26 20:45:40 Ill read more in the morning Oct 26 20:45:50 my boss is giving me dirty looks for being 15 min over on clock already Oct 26 20:46:47 must be nice Oct 26 20:47:35 azv4: Here's some inspiration. Most of it has already been said here, so I think you must be doing something else wrong. http://stackoverflow.com/a/9166354/2412477 Oct 26 20:51:08 Hello, guys! Oct 26 21:03:57 I have a question regarding dynamic fragments Oct 26 21:04:00 http://pastebin.com/0cifvKsK Oct 26 21:04:29 how can I insert two fragments match_parent into the "fragments" linear layout container Oct 26 21:04:40 defined as it follows Oct 26 21:04:49 hi, duga Oct 26 21:04:52 which have equal weighs Oct 26 21:05:01 and they split horizontally window Oct 26 21:05:02 Melatonina: hi Oct 26 21:06:01 your question is not clear to me Oct 26 21:06:09 what's your problem, exactly? Oct 26 21:06:57 I want to have two fragments defined dynamically splitting on the window on the halves (horizontally) Oct 26 21:07:08 and I'd like to do this programmatically Oct 26 21:07:37 and after that f.e. three fragments splitting horizontally window Oct 26 21:08:02 and potentially could increase the number of fragments Oct 26 21:08:14 but "all" fragments should have the same width Oct 26 21:08:15 what's wrong with using width="0dp" and weight="1" for all fragments Oct 26 21:08:20 ? Oct 26 21:08:31 you don't need to compute anything Oct 26 21:08:32 Melatonina: it's done in the static layout xml file? Oct 26 21:08:41 what? Oct 26 21:08:56 Melatonina: could show me? Oct 26 21:09:17 because I want to have a possiblity switching from one whole page fragment Oct 26 21:09:26 to two fragment (eqaul width) Oct 26 21:09:31 f.e. when I click on the list Oct 26 21:09:40 on the right side show's up the details fragment Oct 26 21:09:56 these are different layouts Oct 26 21:10:14 you’d probably be better served by making them views, not fragments Oct 26 21:10:23 if they have to reside in the same activity Oct 26 21:26:40 Is there a 'lighter' way to do dialogs than using a DialogFragment? I need to build a couple different dialogs with varying layouts, and dont want to use a new Fragment for each one unless needed. Oct 26 21:32:05 orbyt_: I hardly know anything about android programming, and I didn't read this page carefully, but I didn't see anything about fragments: https://developer.android.com/guide/topics/ui/dialogs.html Oct 26 21:34:38 orbyt_: Fragments are a pretty lightweight way to do them. DialogFragments, especially so. Oct 26 21:37:19 Seems I was a bit too hasty when scrolling through that page. :) Oct 26 21:39:27 I'm looking for the Alt-F4 on an android phone to close the APP I am looking at Oct 26 21:39:36 press back Oct 26 21:40:13 I like the material design except for the tabs. Would it be possible to style the tabs to look more like straditional tabs? https://developer.android.com/guide/topics/ui/dialogs.html Oct 26 21:40:41 Wrong link.. https://dl.dropboxusercontent.com/u/22188416/tabs.png Oct 26 21:48:35 I want to close/unload the APP I am looking at from android phone like I did in Windows by clicking the X Oct 26 21:49:09 Lucidor, style using theming resources as much as it supports, read TabLayout sources to see how it works Oct 26 21:50:03 pfn: Ok, I'll check it out. Thanks! Oct 26 21:50:31 but at the very least, you can use a custom view for the tab view to provide the look you desire if styling isn't possible Oct 26 21:53:31 I'll read up on custom views too. Thanks for the tip :) Oct 26 21:55:50 there are not simple adapters for RecyclerViews like there were for Listviews, are there? Oct 26 21:56:34 nope Oct 26 22:24:16 http://prntscr.com/czdyn2 Given this layout for a dialog, I would expect the total height to be 300dp Oct 26 22:24:33 But its not, it remains as match parent. Oct 26 22:24:55 If I then change the code to this: http://prntscr.com/czdyzz Oct 26 22:25:13 and make the first child also have an explicit height of 300dp, then it works Oct 26 22:25:19 why would this be? Oct 26 22:27:22 It seems like the root viewgroup in the layout is always trying to use wrap_content for its height even if you explicitly declare otherwise Oct 26 22:27:52 More like it's probably collapsing the redundant RelativeLayout Oct 26 22:28:11 'cuz there's almost no point in the second one being there Oct 26 22:28:55 If you use a FrameLayout for the outermost view, the problem probably won't even manifest. Oct 26 22:29:52 Under normal circumstances the nested RelativeLayout would be redundant, but without it, the height of the root viewgroup isnt whaat its suppose to be Oct 26 22:30:59 Don't unnecessarily complicate layouts. Oct 26 22:30:59 Eg, even if I give it a height of 300dp, if I remove the nested RL, the dialog appears to only be ~20dp in height Oct 26 22:32:12 Dagmar: Its is necessary, as without the nesting the height isnt correct, as stated above Oct 26 22:32:30 Actually, in this case it is. Oct 26 22:32:41 You've got _one_ item that matters inside the whole thing Oct 26 22:32:46 This is not what RelativeLayouts are meant for Oct 26 22:33:21 You can merrily use a single LinearLayout for that Oct 26 22:33:36 RelativeLayouts are lots more complex than the rest Oct 26 22:34:13 orbyt_, because dialogfragment is stupid and it overrides the root container to be wrap_content Oct 26 22:34:20 http://android-dev-examples.blogspot.fi/2016/02/android-custom-dialogfragment.html Oct 26 22:34:31 If you've got two items inside the container which need to have their locations defined relative to each other or the view itself, THEN you should use RelativeLayout Oct 26 22:34:39 Dagmar, not the issue here Oct 26 22:35:02 Dagmar: for a centered single item layout, RelativeLayout work perfectly fine, and as Zharf stated, this is completely irrelevant Oct 26 22:35:34 Zharf: Is there a paticular reason for that? Oct 26 22:35:52 A screwdriver can crack a block of ice, but that doesn't make it the right tool for the job Oct 26 22:35:58 orbyt_, no clue Oct 26 22:37:38 http://stackoverflow.com/questions/12478520/how-to-set-dialogfragments-width-and-height there's plenty of this kind of questions around Oct 26 22:39:32 Not to burst a bubble but... from https://developer.android.com/reference/android/app/DialogFragment.html ... "A fragment that displays a dialog window, floating on top of its activity's window." Oct 26 22:40:31 you're confusing, how's that a thing in this conversation again? Oct 26 22:40:46 Thats _why_ it goes to wrap_content Oct 26 22:40:57 ...no matter what you set for the root element. Oct 26 22:41:14 It's not meant to fit in a spot inside your activity's layout Oct 26 22:41:56 why are you assuming it's being used like that? also it can be used like that, it's just a fragment, if you don't use DialogFragment.show(), it's just another fragment Oct 26 22:42:18 Then you've wasted your time summoning up a DialogFragment instead of just using a regular fragment Oct 26 22:42:23 s73v3r there is 3rd party stuff, this one is well known https://github.com/mikepenz/FastAdapter Oct 26 22:42:27 if it's not wrapped in a Dialog then it works just like a regular fragment Oct 26 22:42:36 * g00s hates dialogs Oct 26 22:42:50 Regular fragments won't give a damn about the state of anything inside them during a change of orientation, last I checked Oct 26 22:43:02 Dagmar, so you don't believe in using the same component as a dialog or as something part of the activity depending on the size of the device for example? Oct 26 22:43:27 because we do that on the regular tablet vs. phone Oct 26 22:43:41 You don't have to really bother with savedInstanceStates with DialogFragment, and it'll carp at you under certain circumstances if you even try (three crashes this weekend because I forgot to remove a useless override) Oct 26 22:43:56 I give up, you're just spouting nonsense Oct 26 22:44:33 I believe in using the android Views in the manner they were _designed_ to be used, instead of trying to use more complex Views and force them to do something I'd have been better served extending their parent class for Oct 26 22:44:36 g00s, yeah, dialogs are icky Oct 26 22:45:18 interesting http://news.dartlang.org/2016/10/dart-in-2017-and-beyond.html Oct 26 22:45:27 seems at google, they are going nuts with dart Oct 26 22:45:55 aren't they doing that with every new thing they come up with? Oct 26 22:46:51 they have some real hipsters on board Oct 26 22:47:08 "Google has bet its biggest business on Dart — the web apps built on Dart bring over $70B per year." Oct 26 22:47:26 but will google bet android on dart beahaha Oct 26 22:51:05 Dagmar, you realise that dialogfragment extends fragment, right? Oct 26 22:51:27 Yes, I do. Oct 26 22:51:36 so why can't you use it for both things? Oct 26 22:51:49 For the same reason you "can't" use a screwdriver as an ice pick Oct 26 22:52:01 like, if you literally have the same thing as a dialog and a fullscreen activity? for example Oct 26 22:52:10 but, you can use a dialogfragment like a fragment Oct 26 22:52:45 You're perfectly welcome to embed a dialogfragment into part of the layout of an activity. It'll behave just fine like that. What doesnt' make sense is trying to make it cover the entire display on it's own Oct 26 22:53:17 i like using Dialogs as floating activities ;) Oct 26 22:53:59 why not? it's literally in the docs https://developer.android.com/guide/topics/ui/dialogs.html#FullscreenDialog Oct 26 22:55:11 If you find a time when it's useful to a UI to do that, more power to you Oct 26 22:55:51 oh i mean, i always use activity as dialog, either floating or full screen Oct 26 22:56:02 beside the eventual yes / no AlertDialog Oct 26 22:56:39 we have some purchase dialogs that are used full screen on phones and as dialogs on tablets Oct 26 22:56:40 You can also use RelativeLayouts in place of pretty much every other type of Layout. Your UI will just be slow. Oct 26 22:57:59 oh back to that eh... don't bother trying to educate people about possible problems they didn't ask about, at least before you've dealt with the actual issue at hand Oct 26 22:58:39 OKay then. Less politely... Oct 26 22:58:58 " orbyt_, because dialogfragment is stupid and it overrides the root container to be wrap_content" Oct 26 22:59:12 No, it's not "stupid". It was _designed_ to do that. Ignoring such is stupid. Oct 26 22:59:37 hi my friends Oct 26 22:59:46 I don't see a reason for it to do that, to be honest Oct 26 23:00:15 and it's a common question to actually get the dialogs to be the size that the developer wants them to be Oct 26 23:00:33 It's cuz maybe we just want a small dialog box without a lot of stuff in it, and we'd spend extra time telling fragments to do that if we didn't have dialogfragment Oct 26 23:00:39 and because it's not actually documented anywhere, everyone assumes that just setting the size on the layout should work Oct 26 23:01:00 Just like we have a Button class instead of everyone having to create one out of imageviews or linearlayouts every time Oct 26 23:01:35 It's right there in the first line of the description of what a DialogFragment does. Oct 26 23:01:50 no, it's not Oct 26 23:02:07 also what the fuck are you on about again, why do you keep escalating things into totally unrelated things Oct 26 23:02:23 "A fragment that displays a dialog window, floating on top of its activity's window." Oct 26 23:02:50 a n d r o i d development driving developers crazy Oct 26 23:03:01 lol Oct 26 23:03:15 adq: Hell we've not even gotten into the fun stuff where paddings are randomly abandoned Oct 26 23:03:18 Dagmar, it doesn't say anything about the size of the window Oct 26 23:03:36 Well, submit a bug report on the docs saying they left out the word "smaller than" Oct 26 23:03:51 For most folks the two pictures express it plenty well Oct 26 23:04:26 that wouldn't cover it, the whole idea that it overrides the size defined in the layout is just against the whole concept of the layout files Oct 26 23:05:11 at least without thoroughly documenting it in the class Oct 26 23:06:04 It's probably in there somewhere... and it wasn't doing it for me last week when I put them into an actual spot inside my layouts Oct 26 23:06:27 Tell it where to go, doesn't seem to override anything. Don't tell it where to go and it does exactly what's printed on the tin Oct 26 23:07:40 did you actually put the size in the layout's root element or not? because if not then that statement is again totally irrelevant to the issue Oct 26 23:08:29 I left them at the defaults Oct 26 23:08:59 I have burned my fingers enough times by being overly-specific Oct 26 23:09:45 I have grown bloody tired of chasing down bizarre UI bugs where padding disappears after revivifying an app from being completely dead, but only on Tuesdays Oct 26 23:10:30 Now I just go for the least amount of descriptiveness I can get away with, and only change what doesn't display like I want it to from the outset Oct 26 23:10:50 only time I've seen something like that ... ish... was when fitsSystemWindows was in play Oct 26 23:10:54 Otherwise, I just get weird bug reports from the one guy still using Android 4.1 Oct 26 23:11:57 * Zharf 's zzz time Oct 26 23:12:51 The way I see it, the less I specify, the fewer Android UI rendering bugs I'm going to run face first into Oct 26 23:13:06 I ain't even joking about the disappearing padding thing Oct 26 23:14:42 I've a layout here being generated entirely in Java, simply because between APIs 19-24 the behaviours are wildly variant for when padding survives a change to something's background Oct 26 23:15:20 For some insane reason tho, if the app is purged, when the view is quietly reinstantated... padding settings are gone on the linearlayouts Oct 26 23:16:36 No screen rotation is involved. Nothing. I was under the impression that once you hand a fully populated View off, Android would reliably rebuild it precisely as before if nothing changed Oct 26 23:17:53 So I'm trying to setup our apps git repo with jenkins CI to build the project on push. I seem to be completely incapable of getting the android SDK to recognize that i've imported the agreed license file. https://developer.android.com/studio/intro/update.html#download-with-gradle Oct 26 23:19:08 https://gist.github.com/chamunks/987cc23716d2bbb56a35bad5e11acf2e Oct 26 23:19:15 my XL came today, waiting on the pixel tomorrow, wish I could gotten them in blue... it's so pimp Oct 26 23:19:20 its our first app so I'm probably missing something obvious. Oct 26 23:24:27 This is basically the entire Jenkins as its setup. https://hub.docker.com/r/chamunks/jenkins-android-test/ and finally a screenshot of the build step. http://i.imgur.com/UBVNlXY.png Oct 26 23:24:40 I have no idea what I'm missing here I'm following the documentation and still getting nowhere. Oct 26 23:30:12 Geez, why is Unity3D such an awful experience on PCs compared to Android? Oct 26 23:56:28 Rated 4 out of 5 by Sheree Grier. The vast majority of UIs I see these days are the obvious result of someone jumping on the newest design bandwagon without understanding the reasons for the design elements to exist. Thank you, from the bottom of my heart, for not being those people. I've used it for a whole five minutes since the redesign, and I haven't had an "OMG WTF" reaction once, which is like a record for me. That notification thing is effin' ge Oct 26 23:56:31 oops Oct 26 23:56:43 thought it would paste a link :( Oct 26 23:56:51 Thats pretty funny though. Oct 26 23:59:49 My problem seems to be pretty frustrating because I've copied over the license as per instructed and it seems to have no idea that i've done it. Oct 27 00:01:38 * pfn shrugs, doesn't use gradle Oct 27 00:01:51 and my tool just automatically assumes you accept the license Oct 27 00:03:01 good bye my friends Oct 27 00:03:24 goodbye homa_ Oct 27 00:07:38 pfn whats your tool? Oct 27 00:11:40 sbt-android Oct 27 00:16:31 hello, which is the correct way to load async data from database inside RecyclerView ? Oct 27 00:17:49 query data asynchronously, hand the cursor or mapped data to the adapter upon completion Oct 27 00:18:03 alternatively, return and set the adapter upon completion Oct 27 00:18:24 can I use cursorloader ? Oct 27 00:19:28 I mean.... use RecyclerView.Adapter class implementing LoaderManager ? Oct 27 00:19:52 you could, but yuck Oct 27 00:20:12 loaders are a tremendously shitty api Oct 27 00:21:11 uhm Oct 27 00:23:42 it's better to learn reusable concurrency abstractions such as rxjava Oct 27 00:30:10 but you say that I have to query the data async before set Adapter in the RecyclerView, right? Oct 27 00:30:30 you can do any number of approaches Oct 27 00:30:49 you can add data to your adapter as a result of the query Oct 27 00:30:59 or you can return an adapter as the result of Oct 27 00:31:13 * pfn prefers the former approach Oct 27 00:33:16 when adding data to the adapter need to register an observer and notify changes, right ? Oct 27 00:34:54 no observer to register, but you do need to notify Oct 27 00:35:47 uhm, understand Oct 27 00:38:29 if you want to observe your database for changes that's something you can just handle on your own, register an observer and fire off the async job to query and hand data to. the adapter again Oct 27 00:38:37 use diffutil as necessary Oct 27 00:43:37 Google aims to solve Pixel retail support conundrum with uBreakiFix repair partnership http://www.androidcentral.com/google-aims-solve-pixel-person-support-conundrum-ubreakifix-partnership Oct 27 00:43:58 that's nice, uBreakiFix is pretty great, I've been very happy with their. service Oct 27 00:47:43 pmercado sqlbrite does the listener thing Oct 27 00:48:01 i think everything is keyed around a string Oct 27 00:48:12 so its still kinda stringly typed :D Oct 27 00:49:10 pmercado also there is AsyncListUtil, if thats your thing. more new, kinda weird Oct 27 01:00:31 thank you :) Oct 27 01:00:57 pmercado there is also RxLoader Oct 27 01:01:09 and i'm sure a few more, i forgot them though Oct 27 01:01:15 well Oct 27 01:01:29 I'm very newbie in Android Oct 27 01:02:05 so trying to do things only with android apis, to understand the scope of libraries Oct 27 01:02:27 pmercado ok. i think udacity course has a data storage / content provider class Oct 27 01:02:38 class == lesson , not object LD Oct 27 01:10:51 ok thank you :) Oct 27 01:10:58 Hey guys I have a pretty low level question about surface textures. I'm trying to use MediaPlayer and send the surface texture to Unity to render. I can't control when Unity decides to run its gl draw and it seems to be causing timing issues. I'm calling SurfaceTexture.updateTexImage() from Unity's GL context and I see 12 ms hangs. Oct 27 01:11:51 Looks like (to my very fresh eyes) that GLConsumer is doing some VSync, which might work great for when Android does a draw but this is halting my Unity rendering. Is this a right assumption and is there a way to disable VSYNC for surfaceTexture/GLConsumer? Oct 27 01:53:44 I've found a bug in either the emulator or Android N. Would anyone mind trying the following reproducible steps? Oct 27 01:53:48 1. Open the emulator, or grab a physical device, running Android N. Oct 27 01:53:50 2. Run this code: new AlertDialog.Builder(this).setSingleChoiceItems(new String[] { "one", "two" }, 0, null).show(); Oct 27 01:53:53 3. Click "two". Oct 27 01:53:56 My emulator crashes, with nothing in LogCat. This happens with various images running N, but M is fine. I don't have a physical device running N to test on. Oct 27 01:55:24 TacticalJoke sounds normal ;) Oct 27 01:56:51 Yeah, it crashes more than a blind F1 driver. Oct 27 01:58:30 Hope this isn't an N bug. That'd be pretty bad. Oct 27 02:02:20 doesn't crash Oct 27 02:02:48 emulator Nexus 5x API 24 Oct 27 02:03:21 Melatonina: Ahh, weird. Which OS? Windows 7 here. Oct 27 02:03:34 Windows 10 Oct 27 02:04:06 Thanks for testing. Oct 27 02:04:10 np Oct 27 02:05:29 TacticalJoke: http://s22.postimg.org/z27wjuj29/Screenshot_1477533864.png Oct 27 02:06:40 That pixel density. ;o Oct 27 02:21:13 Ologn get your hd working ? Oct 27 02:33:30 TacticalJoke looks neat, lucas rocha https://code.facebook.com/posts/531104390396423 Oct 27 02:33:35 didn't know he worked for fb Oct 27 02:55:10 g00s, yes I did Oct 27 02:55:15 I'm on my new HD now Oct 27 02:55:42 \o/ Oct 27 02:55:47 ext4lazyinit is running in the background **** ENDING LOGGING AT Thu Oct 27 02:59:59 2016