**** BEGIN LOGGING AT Wed Oct 19 02:59:58 2016 Oct 19 03:03:30 TacticalJoke AS doesn't support worktrees yet Oct 19 03:03:40 or intellij underneath Oct 19 03:03:55 Do you use AS's VCS stuff? Oct 19 03:04:49 no Oct 19 03:04:56 beside the color coding lol Oct 19 03:05:15 but the ide would get very confused, worktrees are physical directories Oct 19 03:05:29 Man, I wish GitHub would support Mercurial. Oct 19 03:05:32 it would be like changing the root of the project constantly Oct 19 03:05:39 It's a tragedy that it doesn't. Oct 19 03:05:45 Yeah. Oct 19 03:07:08 g00s: "A number of their developers working on open source projects on GitHub (which are essentially mirrors of subdirectories from their monorepo) now prefer working out of a Mercurial clone instead." Oct 19 03:07:55 They must be using hg-git or something. Oct 19 03:08:39 i'm not generally a fan of dynamically typed languages; and become suspicious of important & complex software that is Oct 19 03:09:01 (is implemented in dynamically types language) Oct 19 03:09:14 i automatically assume the sausage has cockroaches in it Oct 19 03:09:31 Same here, but Python has big wins here: easy plugin system, good Windows/Mac/*nix support. Oct 19 03:09:58 Git kinda sucks on Windows. It's so slow. Oct 19 03:10:21 yeah, i do some rebases on my mac and its slow ... Oct 19 03:10:34 like, wow didn't know anything could be this slow on this machine :) Oct 19 03:10:47 On my Windows laptops, Mercurial seems way faster than Git for stuff like rebases, stashing, etc. Oct 19 03:11:52 g00s: Their automated-test suite seems comprehensive. And they design and test for all major platforms. Oct 19 03:12:07 nice Oct 19 03:12:27 yeah linus doesn't care about windows. if it works it works Oct 19 03:13:44 Though I did write a Mercurial plugin once, and I really didn't like Python. Oct 19 03:14:16 Not just the lack of static typing, but the development tools felt like they belonged in some museum. Oct 19 03:18:08 I hope they hurry up and release Evolve. IMO, that's one of the best VCS changes we'll see in a while. Oct 19 03:23:24 Without Evolve, if you amend a changeset, say, you're deleting the old version and keeping something new. With evolve, the old changeset isn't deleted -- it's just hidden from view. Even more, the system knows that the new changeset is linked to the old one (and this means that you can even safely change *published* history). Oct 19 03:24:09 Anyone affect by you changing published history just has to say `hg evolve` to get your updates. Oct 19 03:24:45 It's still possible to cause them pain (e.g., merge conflicts), but the system knows what's what, and there should be minimal pain. Oct 19 03:25:25 Of course, it's all entirely optional. Having a "we don't rewrite published history" rule is still feasible. Oct 19 03:25:47 Or "we only rewrite when ". Oct 19 03:27:23 A better example might be rebasing. With Evolve, the system remembers what the old base was, and it also keeps the old changesets. Oct 19 03:27:55 Note that the kept, hidden changesets can be removed at any time. Oct 19 03:28:15 And they're not pushed to other repositories. Oct 19 03:33:05 That's all for today's sermon. We shall now pass the collection plate. Remember: Jesus is watching. Oct 19 03:40:13 TacticalJoke, LMAO Oct 19 04:38:55 https://www.youtube.com/watch?v=mrrh8vYejrw Oct 19 04:44:59 squ: is porn allowed in this channel, now? Oct 19 04:56:12 watcha got? 😜 Oct 19 05:42:29 Where can I find the stock ROM for overwriting the gentoo binaries which crippled some apps. Oct 19 05:45:15 eaglebot: see where the channel topic says "get your stock ROMs for fixing the phone you broke"? Oct 19 05:46:54 there wasn't enough space for finishing the gentoo install is there some way to resize Oct 19 05:47:29 so it unrolled some of gentoo Oct 19 05:48:28 eaglebot: let me try again... this channel is for app development, not fixing devices you broke trying to install gentoo Oct 19 05:48:43 Leeds and no too your question about topic Oct 19 05:49:23 /TOPIC Oct 19 05:49:40 to view topic which points to #android-root Oct 19 05:50:11 queue the complaint that #android-root are unhelpful and "no one ever responds" Oct 19 05:50:36 ok Oct 19 05:50:49 Leeds found any worthwhile apps? Oct 19 05:51:19 uh... what? Oct 19 05:51:26 There's the standalone US constitution. Oct 19 05:51:40 ok, and moving on... Oct 19 05:51:43 Leeds apps Oct 19 05:52:03 daap works well on a lan Oct 19 05:52:52 the screen dimmer is interesting Oct 19 05:53:01 lux Oct 19 05:53:09 or urbanlux Oct 19 05:56:58 eaglebot: Found any worthwhile nachos? Oct 19 06:08:53 yiati no Oct 19 06:09:17 I've prepared some. Oct 19 06:11:08 hi Oct 19 06:11:47 i compiled a debug version of my app extracted the apk and sent it to my frnd for testing and he can't see some buttons in the toolbar and it also crashes sometimes Oct 19 06:12:02 am i supposed to send a signed apk for the app to work correctly? Oct 19 06:13:10 debug apk is signed with debug key Oct 19 06:13:24 so then it should work on his mobile? Oct 19 06:13:25 he/she should send you the logcat, it could be anything Oct 19 06:13:56 I extracted the apk using ES File Explorer on my device.. would that cause any problem? Oct 19 06:14:57 why wouldn't you just send the output from the build process? Oct 19 06:15:15 eeyup Oct 19 06:16:10 wasn't using my pc when i sent it Oct 19 06:16:11 normally it should be in app/build/outputs/...-debug.apk Oct 19 06:16:18 oh Oct 19 06:16:38 well could be many things and without stacktrace we cant tell you Oct 19 06:16:54 aha Oct 19 06:50:02 Where can I find "BOARD_BOOTIMAGE_PARTITION_SIZE " in Lollipop? /proc/mtd seems to be empty Oct 19 07:17:04 hi again Oct 19 07:17:22 can anyone tell me how to deal with transactiontoolong exceptions? Oct 19 07:17:25 Here's the case: Oct 19 07:17:41 I have a fragment that uses the camera to take a picture and transfer it to another activity via an intent Oct 19 07:18:19 now, if the camera of the phone is really good the quality of the picture is high and it exceeds the limited size while transfering it to another activity as a bitmap Oct 19 07:18:28 and throws a transacktoolong exception Oct 19 07:18:49 what's the best way to fix this? Oct 19 07:22:27 create and pass a reference to some other local storage container Oct 19 07:26:20 hey Oct 19 07:26:34 is there any way getting adb to work? Oct 19 07:26:54 no way at all, sorry Oct 19 07:27:08 thought so Oct 19 07:27:52 once a day i have to look for 8h why fucking adb wont work anymore Oct 19 07:28:04 you spend 8 hours every day trying to fix adb? Oct 19 07:28:07 did they ever try it before releasing? ope Oct 19 07:28:14 have you considered maybe becoming a lumberjack instead? Oct 19 07:28:37 they sleep all night and they work all day Oct 19 07:29:08 well, fuck you Oct 19 07:29:08 iyashi: if you want help fixing it, you should provide some context... if you just want to moan, have fun Oct 19 07:29:27 lovely chap Oct 19 07:30:21 no long term potential Oct 19 07:32:13 lol Oct 19 07:32:38 what was that 0.o Oct 19 07:35:29 so here's a question... I just noticed that although there are now 4 weather alerts out in HK - red rain, flooding, landslides and lightning - I'm only seeing one on my phone unless I expand it... looks like the 4 notifications are being consolidated Oct 19 07:37:44 notifications... stacking... unique id's... swear I chatted with someone days ago asking in that regard Oct 19 07:38:26 not sure if I should try to force them to separate, or rank the warnings so the most 'important' one shows Oct 19 07:38:53 sounds fair Oct 19 07:38:58 (the most important right now being red rain - flooding, landslides and thunderstorms are all pretty normal) Oct 19 07:43:30 should I be using this way to send bitmaps through intents? - http://www.jayrambhia.com/blog/pass-activity-bitmap Oct 19 07:43:44 My app's a qr code scanner (ish) one Oct 19 07:43:54 I'd expect Hong Kong to be an interesting experience... iirc you've been there for some time now Oct 19 07:44:25 capella-5x: 11.5 years or so Oct 19 07:45:01 oh, quite some time! I thought like 1yr contract Oct 19 07:45:39 nah, I pretty much came out here on a whim - got a job offer out of nowhere from some distant family - and I'm now fairly settled Oct 19 07:46:24 nice ☺️ Oct 19 07:56:46 what happened to arancio? Have we been "working different shifts" lately? Oct 19 07:57:06 heh, he was interesting Oct 19 08:00:09 capella-5x: He was banned a while ago Oct 19 08:00:25 get out! Oct 19 08:01:04 For trolling I think Oct 19 08:01:31 ah well, "interesting" to the finish :p Oct 19 08:28:53 I need to send a password to my webserver and I'm trying to find the best way to do this securely Oct 19 08:29:08 If I use SSL, does that mean I can send the password in plain text/ Oct 19 08:44:05 everyone's asleep? Oct 19 09:09:14 anyone alive? Oct 19 09:10:33 many zombies Oct 19 09:11:22 Can ya help me with my issue? Oct 19 09:11:30 for what it's worth, I suspect the official answer would be to use a content provider and send a URL Oct 19 09:12:19 But I'll have to take care of deleting the files as well then.. no? Oct 19 09:15:48 what files? (scrolls back...) Oct 19 09:17:53 i think using a content provider I'd be caching the bitmap image.. idk I'm new to android programminb Oct 19 09:17:56 g* Oct 19 09:19:09 ah, the local storage solution Oct 19 09:19:51 i just need to know is this http://www.jayrambhia.com/blog/pass-activity-bitmap will avoid the transitiontoolongexception Oct 19 09:21:03 would using that method be sufficient to avoid any problems? Oct 19 10:05:22 should't popBackStack trigger the os to call onResume on previous fragment? Oct 19 10:11:54 Anyone able to help with a android.content.res.Resources$NotFoundException error in my app? Oct 19 10:33:41 Told you this would come, it happened! Oct 19 10:33:42 https://www.reddit.com/r/Android/comments/587ss9/psa_android_safetynet_now_tripped_by_unlocking/ Oct 19 10:33:56 > PSA Android SafetyNet Now Tripped By Unlocking Bootloader Oct 19 10:47:19 justJanne: can you explain what this is about Oct 19 10:47:37 squ: SafetyNet will refuse to validate your device if you have an unlocked bootloader. Oct 19 10:48:08 Which means AndroidPay (+ Pokemon Go, Snapchat, banking apps) will not work anymore when you have unlocked the bootloader Oct 19 10:49:13 I see Oct 19 10:49:14 First they came for the power users modifying their apps, then for the ROM users, and now you they’re going after every developer left Oct 19 10:49:29 By the way, this is far more restrictive than iOS Oct 19 10:49:45 iOS allows even running Apple Pay on jailbreaked systems, no matter how much you change Oct 19 10:50:01 interesting Oct 19 10:50:25 another wrong move, probably Oct 19 10:50:30 on ios applications are signed with certificate Oct 19 10:50:40 on android they’re as well Oct 19 10:50:53 on android it seems it signs the bootloader and checks it? Oct 19 10:51:02 on android now: Oct 19 10:51:35 the primary bootloader is signed and verified, the secondary bootloader is signed and verified, every OS file is signed and verified, every app is signed and verified Oct 19 10:51:41 and you have no way to opt out of that Oct 19 10:51:55 sdousley: I can help you, look for ID in that not found exception and search that ID in the list of build/R.java it will refer to resource name Oct 19 10:52:04 We truly have reached the point RMS warned of again and again where we have un-debuggable devices Oct 19 10:52:58 I don't see how this is important really Oct 19 10:53:41 you are upset you can't use android device for custom needs? Oct 19 10:53:45 squ: Woudl that be the bit: Resource ID #0x0 Oct 19 10:54:13 sdousley: 0? really ? :) then I don't know Oct 19 10:55:08 squ: I am upset I can’t debug and intercept other applications, or disassemble them to understand them Oct 19 10:55:14 squ: yeah, that full line is: android.content.res.Resources$NotFoundException: Resource ID #0x0 Oct 19 10:55:53 justJanne: why not? Oct 19 10:55:53 despite the national and supranational laws applying to me giving me the explicit and irrevocable right to decompile, disassemble, debug, and modify any software of which I have a license to use Oct 19 10:56:27 squ: because the device itself is now using a technology to prevent me, the owner, from modifying every part of it Oct 19 10:56:57 despite there being laws that say specifically that you can’t actively prohibit the user from doing so, especially not via an update post-purchase Oct 19 10:57:04 but the article said you can't make purchases with rooted device Oct 19 10:57:22 that’s also an issue Oct 19 10:57:32 I absolutely have the right to do exactly that Oct 19 10:57:43 you think so Oct 19 10:57:46 and I will find one, and if I have to modify the actual hardware Oct 19 10:57:52 no, not I think so, the ECJ ruled so. Oct 19 10:58:41 sdousley where are you seeing that error, in the IDE or while running your app? gotta fix your xml Oct 19 10:59:20 whatitis: it's in the Android Monitor in the IDE Oct 19 10:59:21 justJanne: you are allowed to run apps from playstore, don't you Oct 19 10:59:42 article is just about making online purchases Oct 19 10:59:51 how large is your project? can you narrow it down to a specific layout? Oct 19 11:00:18 have you added any resources outside of the ide and maybe a clean project would help? Oct 19 11:00:31 whatitis: yeah, it is a specific layout, it seems more like it's java code though, when it builds an AlertDialog Oct 19 11:00:46 then pastebin the related code Oct 19 11:01:03 whatitis: https://gist.github.com/sdousley/c18e68f74982369f1d347a6c21c4ff7a that's the exception Oct 19 11:01:24 which lines of Options.java do you want? 172? Oct 19 11:01:45 what are you doing in an asynctask Oct 19 11:02:41 It's scanning bluetooth for bluetooth printers that are paired, so that I can select (and store) the relevent printer to print to Oct 19 11:02:49 i mean post the code Oct 19 11:02:52 https://gist.github.com/sdousley/0fc76a09e2e572c30ca4fbf75a63f7af <- that's lines 134-172 of Options.java Oct 19 11:03:46 if it's easier, I can /msg a gist of the whole file Oct 19 11:04:00 just do it to the channel Oct 19 11:04:15 https://gist.github.com/sdousley/c6fdbc65bc1917a94c313cb4183fdb60 Oct 19 11:04:15 asynctask.finish is being called and failing, where is that Oct 19 11:04:52 i have an onPostExecute on the asynctask, but not a finish method Oct 19 11:07:08 there are only 5 R. calls, gotta narrow it down Oct 19 11:08:34 i think it's because your context in "new AlertDialog.Builder(this)" is Oct 19 11:08:43 wrong, it's a classic issue with async and postexecute Oct 19 11:09:00 the #@! is running while your activity has shutdown or something Oct 19 11:09:49 try to move the block out of postexecute like on a dummy click listener of a button to verify your alertdialog will show properly out of async, or not Oct 19 11:10:16 maybe this helps: https://youtu.be/tBHPmQQNiS8?t=1m53s Oct 19 11:25:07 adq: ok Oct 19 11:34:28 Hi, I've got a problem with an app. In my onCreate() I check for internet connection and if it's not detected, I start another activity and I finish main. The problem is when I'm trying to close this activity (with back button), I have to tap 3 times "back button"... why? Oct 19 11:36:44 maybe you opened it 3 times Oct 19 11:39:18 sumiau, https://developer.android.com/guide/components/tasks-and-back-stack.html Oct 19 11:41:40 I think it's imposible to open it 3 times because I always open that activity from one method and this method last code line is "finish()" Oct 19 11:42:40 thanks adq, I'm going to check that Oct 19 11:53:41 is it posible that execution flow continues after finish() ???? Oct 19 11:54:26 Is it possible to execute some function before opening an activity when a notification is tapped? Oct 19 11:54:56 I can place an intermediate activity in between but It'll be kind of a hack Oct 19 11:58:40 sumiau: it continues down to ‘return’ statement Oct 19 12:05:00 I'm using Analytics and Facebook's "Like" button in my application. I'm supposed to put a privacy notice, but I don't have that website page yet. Can I put the notice in the app in the meantime? Oct 19 12:06:42 play store needs privacy url Oct 19 12:07:06 and the user needs a yes/no option too Oct 19 12:08:25 > You will give your end users proper notice about the implementations and features of Google Analytics you use (e.g. notice about what data you will collect via Google Analytics, and whether this data can be connected to other data you have about the end user). You will either get consent from your end users, or provide them with the opportunity to opt-out from the implementations and features you use. Oct 19 12:09:37 squ: yeeeeah, I don't think that I've seen an app that uses analytics that asks me that Oct 19 12:09:53 I think everyone ignores that Oct 19 12:09:58 websites too Oct 19 12:11:43 I'm being silly about this. No-one in their right mind would bother suing me out of the hundreds of thousands of developers that ignore the privacy notice. Oct 19 12:12:42 it depends on who you are Oct 19 12:12:58 oracle would sue google for java Oct 19 12:13:46 they might also develop an automated suing machine Oct 19 12:14:47 like speed-limit traffic cameras Oct 19 12:15:13 why not? Oct 19 12:15:14 :) Oct 19 12:15:18 iirc, a lot of people that pirated a piece of software received emails that if they didn't pay for it, they would get sued for it and they actually got sued Oct 19 12:15:58 impossible, there are not much jails for that Oct 19 12:16:13 https://en.wikipedia.org/wiki/Earth_2160#Anti-piracy_actions Oct 19 12:16:51 i remember lodsys when they tried to intimidate very little poor android developers Oct 19 12:17:14 anyway, PetyrBaelish do things because it's right to do them, not because you won't get caught (which sounds less right) Oct 19 12:17:14 adq: I'm a very little poor android developer :( Oct 19 12:18:15 hithere - I am about to write/read String data to file. Which way is more appropriate to use? http://pastebin.com/4qUp58e4 Oct 19 12:18:20 adq: I'm an android developer, not Batman Oct 19 12:18:51 write from FileOUtputStream or writeObject from ObjectOutputStream? Oct 19 12:20:04 bolovanos: if you're only saving one off strings shared preferences is much easier Oct 19 12:20:37 PetyrBaelish: I've only sued one company this week, I'd be up to sue you over that privacy policy violation if you want Oct 19 12:20:56 yiati, saving data object turned to json (gson, jackson) data Oct 19 12:21:02 justJanne: good thing you don't know who I am :P Oct 19 12:21:47 bolovanos: https://guides.codepath.com/android/Persisting-Data-to-the-Device Oct 19 12:21:52 Filing complaints, sending C&D orders, or suing is often the fastest and cheapest way to actually get your right, so yeah Oct 19 12:22:13 PetyrBaelish: just disable the analytics module until the user has accepted the ToS? Oct 19 12:22:54 justJanne: the principles that would make me want to do that are currently too expensive for me Oct 19 12:23:55 justJanne: it's a losing battle against the datamining that Google and Facebook do, you know Oct 19 12:24:43 justJanne: so you debug apps to search for privacy violations? Oct 19 12:26:11 You'd probably have a success rate of 75% if you were to sue random android developers that don't have a privacy notice for their apps Oct 19 12:26:44 yiati, I know I need local storage, but know you have added BufferedWriter/Read - which one of those three is best choice is still the question? :) Oct 19 12:27:10 sec know == now Oct 19 12:27:18 is there any good android tutorials? Oct 19 12:27:38 *for not having a privacy notice Oct 19 12:28:41 PetyrBaelish: http://vpaste.net/oN3HN Oct 19 12:29:21 squ: yeah, too much of a bother Oct 19 12:29:26 And risk for undefined behaviour Oct 19 12:29:30 wrote it for you Oct 19 12:29:54 justJanne: is that a proper notice? Oct 19 12:30:01 squ: thanks, but I didn't ask for it :D Oct 19 12:30:44 squ: think that you have to disclose waaaaay more information than that Oct 19 12:30:47 is there any good android tutorials? Oct 19 12:31:02 PetyrBaelish: you sure? Oct 19 12:31:09 most apps show just that Oct 19 12:31:39 squ: I've yet to find an app that asks for my permission to datamine me Oct 19 12:32:34 :) Oct 19 12:33:26 squ: think that I'm supposed to read the 3 pages of legalese on their privacy policy link Oct 19 12:33:41 gicks: tutorials for what? Getting started with Android? Or something specific to do in android? Oct 19 12:34:08 getting started Oct 19 12:37:40 squ: there's actually a market for buying custom privacy notices Oct 19 12:38:11 really? Oct 19 12:38:14 squ: I'm using the free version from this website for my website https://www.iubenda.com/en Oct 19 12:38:43 how much in time is that Oct 19 12:38:49 squ: privacy notices is serious business, bro Oct 19 12:39:06 gonna check it later maybe someday Oct 19 12:39:10 next summer Oct 19 12:40:20 squ: the free version? Completely free as long as you link back to them Oct 19 12:40:29 bolovanos: you can never go wrong with buffered but just pick one that works and use it Oct 19 12:40:46 Shared preferences still might be better Oct 19 12:42:13 squ: and speaking of privacy notices, this is Twitter's official link on the Play Store https://twitter.com/privacy Oct 19 12:43:06 bolovanos: each of these output streams has documentation that is well written. Post here if you don't understand something in the docs Oct 19 12:56:18 sdousley you there mate? Oct 19 12:56:43 gicks: wut Oct 19 12:57:03 is there any good android tutorials for begineer Oct 19 12:57:27 yes Oct 19 12:57:31 d.android.com/training Oct 19 12:57:36 or vogella.com Oct 19 12:57:47 or search google for android tutorial Oct 19 12:57:54 or tutorialspoint.com Oct 19 13:01:08 ok thansk Oct 19 13:01:30 np Oct 19 13:01:39 in general, google is your best friend Oct 19 13:03:23 unless youre doing android, then youre on your own Oct 19 13:04:21 Ashiren: you meant to say, unless you're using gms Oct 19 13:06:59 hey guys: does anybody know whether Google considers the age of the ratings an App has (ratings for old versions) for sorting and showing apps or does it just matter how many ratings the app has? Oct 19 13:07:18 (in the Play Store) Oct 19 13:08:24 hello everyone, i want to create a splash-screen with background video or animatino Oct 19 13:09:22 hello everyone, i want to create a splash-screen with background video or animation like the freelancer app has. Oct 19 13:09:23 hello everyone, i want to create a splash-screen with background video or animatino Oct 19 13:10:08 shahid_rb: do you have link Oct 19 13:10:27 shahid_rb: there are many tutorials for that Oct 19 13:11:37 thepoosh, can you share any link or tutorial? Oct 19 13:12:02 https://www.youtube.com/watch?v=YPDfBwPrauI Oct 19 13:13:22 I don't think you can have a "splash screen" the way Android does it with an animation Oct 19 13:13:42 Dagmar: why not? Oct 19 13:14:06 thepoosh, yes this is simple splash-screen. what i need is this., if you can install this app, https://play.google.com/store/apps/details?id=com.freelancer.android.messenger Oct 19 13:14:18 shahid_rb: no thanks Oct 19 13:15:22 I've not noticed a way to get full-motion video into a drawable Oct 19 13:16:02 A flipbook-style animation, sure, but not video Oct 19 13:16:50 Waiting for the entire app to initialize and then showing a "splash screen" is precisely the anti-pattern that had Android coming out against them for awhile Oct 19 13:16:57 Dagmar: check animated vectors Oct 19 13:17:09 Not touching those Oct 19 13:17:13 what is the thing called ? its a selector that pops up in place of the keyboard that has a list of things. In example states in the USA, and it would list all 50 states for the user to selector Oct 19 13:17:19 Vector use is still dodgy as heck Oct 19 13:17:22 Dagmar: so no animations for you Oct 19 13:17:35 thepoosh: That's fine because I don't want them Oct 19 13:17:39 you can have an animated drawable without vectors too Oct 19 13:17:56 btw, agree with you about vectors and their shitty padding Oct 19 13:18:21 Padding? Heck, they don't even draw reliably yet unless the latest versions of Android are involved Oct 19 13:18:36 thepoosh, ok np, i shared the link so that you can get the idea but thanx anyway :) Oct 19 13:19:14 dar10s: It's called a "spinner", strangely enough Oct 19 13:19:57 is there anyone who can help me to create a login screen like the freelancer.com (android application) has ? thank you :) Oct 19 13:20:22 shahid_rb: This isn't a place to get people to code things for you. You're going to need to show what you've done so far Oct 19 13:22:52 Dagmar, i am working on an android application where i need the login screen with soundless video playing in the background. Oct 19 13:23:20 shahid_rb: so play a gif with Glide Oct 19 13:23:27 or a video with android native UI Oct 19 13:23:31 shahid_rb: That's nice. Oct 19 13:23:42 spinner ahhh... such a simple word that I could't remember... thanks Oct 19 13:24:49 Being that it doesn't really "spin", it's not a surprise Oct 19 13:25:43 Dagmar: ProgressDialog Oct 19 13:25:49 *ProgressBar Oct 19 13:26:11 Why do I care about progress bars? Oct 19 13:26:34 Spinner is also a ProgressBar that circles around Oct 19 13:26:48 How does that bear on the question asked? Oct 19 13:26:55 spinner is a dropdown list Oct 19 13:27:10 I think I'm condused Oct 19 13:27:12 nvm Oct 19 13:27:19 so much condused Oct 19 13:27:19 No worries. It's still early as heck Oct 19 13:27:19 * thepoosh goes to the corner to sob Oct 19 13:27:27 lol Oct 19 13:27:29 thepoosh, thank you, looking into this Oct 19 13:27:30 Dagmar: in Israel it's 16:27 Oct 19 13:27:36 shahid_rb: no Oct 19 13:27:41 you should be looking into it Oct 19 13:28:04 thepoosh: here it's 15:27! Exactly one hour earlier! What a combination! Oct 19 13:28:27 lol Oct 19 13:28:33 you should ask thepoosh what's gonna happen an hour from where you are Oct 19 13:29:04 yeah, like we could become friends and make lots of money at the stock exchange Oct 19 13:31:02 Melatonina: OMGOMGOMGOMG Oct 19 13:31:10 :) Oct 19 13:31:16 anyone going to the firebase event in 3 weeks? Oct 19 13:31:18 in berlin? Oct 19 13:32:04 I attempted to use the firebase real-time database but it was not good for my purposes. So I guess I won't go to the firebase event Oct 19 13:32:24 Melatonina: where are you from? Oct 19 13:32:34 Italy Oct 19 13:32:42 it's like a train ride for you Oct 19 13:32:48 food by google Oct 19 13:34:05 google events are the best for food and swag Oct 19 13:34:29 dar10s: are you going? Oct 19 13:35:14 a 16 hours train raid Oct 19 13:35:19 ride Oct 19 13:35:32 sounds amazing Oct 19 13:35:35 16 hours? that sounds too long Oct 19 13:35:37 I need to take a flight Oct 19 13:35:58 TheSchaf: take the shuteye Oct 19 13:36:04 and go to sleep like a king Oct 19 13:40:06 Melatonina: I'm going Oct 19 13:41:24 thepoosh: it would be cool to meet my IRC friend from Israel but I don't plan to use Firebase and it's a lot of time and money for me. I'm sorry. Oct 19 13:41:42 thepoosh: do you travel a lot? Oct 19 13:41:57 first time on business Oct 19 13:42:02 going with my boss Oct 19 13:44:35 not going this time, Just started on my Android team about 2months ago and our project uses Fbase, but our main app does not. Oct 19 13:44:56 ha , like my cheap company would send me overseas even if i was up to par to go Oct 19 13:45:18 cool Oct 19 14:11:24 ISO: steps I need to take to find out what .xml I'm looking at on any given layout Oct 19 14:23:49 whatitis: I found the issue (with the help of the printer manufacturer). Oct 19 14:31:31 the app is not loading on my AVD manager Oct 19 14:32:35 there are no errors but its still not showing anything Oct 19 14:40:38 anyone here? Oct 19 14:41:21 baba_: Yep Oct 19 14:42:15 hey friends, i have a question about the SearchView in my Toolbar. When i enter a search term in there i would love to only show the matching results from my custom ArrayAdapter in my ListFragment. in the documentation i says that i have to specify a new search activity. is it possible to use the same activity and simply update a listfragment instead? Oct 19 14:42:43 yiati i asked something above,please see if you can sort it out Oct 19 14:42:53 baba_: lol sort it out? Oct 19 14:43:24 Hey. If I let Gradle package my .so file, using jniLibs.srcDirs, where is the file located relative to System.loadLibrary() ? Oct 19 14:44:04 yiati sort have many meanings Oct 19 14:44:10 just fyi "please see if you can sort it out" is a pretty demanding phrase Oct 19 14:44:24 asking people to do your bidding Oct 19 14:44:49 so do i have to beg? Oct 19 14:45:01 i used please word also Oct 19 14:48:11 baba_: English is difficult, but "see if you can sort it out" is a command rather than a question, so please doesn't help. But in regards to your question there simply isn't enough info to answer it. Oct 19 14:48:37 Christ, just help him if you can Oct 19 14:50:06 PetyrBaelish: I did :) Oct 19 14:51:53 baba_: Are you trying to load from Android Studio or terminal? Oct 19 14:52:23 try out "./gradlew clean installDebug" or whatever build variant you want from terminal to make sure it's not just an AS issue Oct 19 14:53:12 i made an app and started AVD manager ,the virtual device is not showing the app but earlier it was working well Oct 19 14:53:18 ok let me try Oct 19 15:01:32 Hello Oct 19 15:03:21 yiati thank you :) it worked Oct 19 15:03:48 I'm trying to customize the Auth0 Lock activity using a theme. I have an example application that does the same thing but if I copy the appropriate snipped of style.xml I only manage to customize one color while the other attributes are not affected. Oct 19 15:03:54 This is my code: https://gist.github.com/anonymous/1134c625fb4f4f69354942a4e8945c77 Oct 19 15:04:12 This is the code of the sample application: https://gist.github.com/anonymous/87c8779066646805366ace6a0a9bc164 Oct 19 15:04:36 The only attribute that is affected is Oct 19 15:04:36 @android:color/holo_orange_light Oct 19 15:05:02 HeaderTitle and HeaderLogo are not affected at all Oct 19 15:05:49 yiati but here is one more problem coming after running the app "java.util.concurrent.TimeoutException: Preview timed out while rendering " Oct 19 15:05:55 their are affected in the sample application Oct 19 15:06:18 Do you have any idea of why? Oct 19 15:07:41 gradle is giving me error : NDK is not configured Oct 19 15:08:50 codfection: you should configure NDK Oct 19 15:09:00 Melatonina, sorry but how? Oct 19 15:09:22 codfection: I only know trivial things, unfortunately Oct 19 15:09:22 I have found solutions for windows but I am using linux Oct 19 15:10:15 nvm I will look into that. thanks anyway Melatonina Oct 19 15:10:50 codfection I think you have to set ANDROID_NDK in your env vars Oct 19 15:10:52 codfection: https://www.learn2crack.com/2013/07/learn-to-use-android-ndk-linux.html Oct 19 15:11:11 Is there any wasy way to mask all except the last 4 characters of a string? Oct 19 15:11:13 codfection: see that link for how to set ANDROID_NDK Oct 19 15:11:18 Thanks :) Oct 19 15:11:42 sdousley: what do you mean? Oct 19 15:11:49 sdousley: Lop off hte last four, replace the rest with asterisks, stick them back together Oct 19 15:11:58 ...or just write a regexp. Oct 19 15:12:30 Dagmar: yeah, I have a (generally fixed, but not always fixed length) string that I want to keep the last 4 characters of, replacing the remaining chars with * Oct 19 15:12:42 though thiking about it, length probably doesn't matter, I can just make it ****XXXX Oct 19 15:13:20 so could I do: Stirng masked = "****" + unmasked.substring(-4); Oct 19 15:20:20 sdousley: https://gist.github.com/anonymous/330b59535c688b3fb7df89643712502d Oct 19 15:20:53 sdousley: not debugged Oct 19 15:22:19 sdousley: https://gist.github.com/anonymous/fd432dbb8d36485546eafeaf938367fc Oct 19 15:24:05 Melatonina: That's a bit more in depth solution than mine, which is cool. Oct 19 15:27:54 sdousley: this should work too: https://gist.github.com/anonymous/fc93332e55bc8b1ff6002cbbccb4362c Oct 19 15:28:35 Melatonina: yeah, I actually sorted it with String masked = "****" + unmasked.substring(-4); Oct 19 15:28:54 ah ok Oct 19 15:29:00 I *know* that unmasked is going to be at least 4 chars, and I'm not bothered about length of masking Oct 19 15:30:38 Melatonina: oh, I now realise my method isn't working lol Oct 19 15:30:52 so maybe I'll implement one of your methods :D Oct 19 15:36:14 hey guys Oct 19 15:36:33 sdousley: this is tested: https://gist.github.com/anonymous/11a88314806007cd4ed1ad21c3d3c4fd Oct 19 15:36:34 is there a way i can make a limited time discounts for my apps inapp products on google play? Oct 19 15:37:09 Melatonina: yeah, I just did that one, and it works fine :) Oct 19 15:38:30 So, now, I have to print 2 things, I need to wait for the first one to finish, and then do the second - what's the best way to do that? Oct 19 15:38:55 I guess some sort of queue? Is that possible Oct 19 15:46:50 use something like jdeferred Oct 19 15:47:18 or a queue works ok if you don't care about receiving the result Oct 19 15:50:07 pfn: hi! Am I still in your ignore list, today? Oct 19 15:51:41 pfn: I wanted to let you know that I don't hate you. I consider you as a dear friend with an anger management problem. I hope you remove me from your ignore list soon. Have a nice day! Oct 19 15:51:41 lol wat Oct 19 15:52:33 lol Oct 19 15:52:34 Melatonina, you have to separate things from private to public, it's just a developer channel, you seem to expect rainbows, bonding and friendship (which can happen too) Oct 19 15:52:45 irc won't change for you Oct 19 15:52:50 Ok Oct 19 15:54:00 Anyway I managed to customize Auth0 Lock. But in order to successfully do so, I had to include the sources in my project. Simply adding the dependency from the repository didn't work. I don't know why Oct 19 15:55:27 There must be some differences between resource management and theming between linking a precompiled library and compiling a library in your project Oct 19 15:58:00 Today was the "Google Innovation Day" in Italy Oct 19 16:06:40 * pfn ponders crafting more hero rings Oct 19 16:18:18 hm https://www.reddit.com/r/Android/comments/587ss9/psa_android_safetynet_now_tripped_by_unlocking/ Oct 19 16:20:49 eh, most developers have a 2nd device for bootloader unlocking Oct 19 16:20:56 simple answer: relock device after flashing Oct 19 16:21:43 Hi, a user is about to enter something in a Editable widget. If he pressed the "enter" button in the keyboard, I would like that "," is written instead. How can I achieve this? Oct 19 16:21:55 add an editoractionlistener Oct 19 16:23:52 g00s, old Oct 19 16:24:53 Interesting.. seems simple, thank I'll try Oct 19 16:26:21 adq how old? seems it happened a few hours ago, and now its fixed again :) Oct 19 16:26:39 What is the abbrevation of IME btw? Oct 19 16:26:45 it's old starting from the point that someone else (justjanne) already posted it on the same channel Oct 19 16:26:49 that's the _rule_ Oct 19 16:26:59 input method editor.. damn I have to use google Oct 19 16:27:07 sorry justJanne ! Oct 19 16:27:09 hah Oct 19 16:27:23 :) Oct 19 16:27:35 i haven't done this lately, but i think mine is unlocked ... Oct 19 16:27:48 I did it on all my personal phones Oct 19 16:27:59 relocking it would be another step and i'm too lazy for that Oct 19 16:28:12 ah, never bothered relocking though Oct 19 16:28:41 they should just rent us the damn devices due to the ridiculous lifespan Oct 19 16:28:48 and how they lock it like hell Oct 19 16:29:40 lol the example here is awesome http://www.androidpolice.com/2016/10/19/google-updates-play-store-developer-policy-examples-text-images-videos-will-get-app-taken/ Oct 19 16:29:54 you can see dogs ... white dogs, black dogs, purple dogs, ... Oct 19 16:31:09 ime is input method equipment iirc Oct 19 16:31:20 that's a good move from goog Oct 19 16:31:24 if they really meant it ;) Oct 19 16:31:40 vs imm of course Oct 19 16:33:27 An input method editor (IME) Oct 19 16:33:38 it's written plain in the first sentence of the corresponding page of the doc Oct 19 16:34:00 doc, meh ☺️ Oct 19 16:34:26 there is a serious issue since now many years about not ppl reading docs, it's like it will never been fixed Oct 19 16:35:29 code is pretty self documenting, when I yell at them I say to read that stuff, straight to developer comments and all Oct 19 16:36:58 but yah, basic analysis seems superficial in many cases Oct 19 16:37:24 damnit, the nexus 5 doesn't have this Oct 19 16:37:45 wait it does Oct 19 16:37:55 it doesn't disable selinux Oct 19 16:38:03 so annoying to turn it off again and again after every reboot >_< Oct 19 16:38:20 why would you do that? Oct 19 16:38:42 http://isandroidsecureyet.com/ old joke Oct 19 16:38:59 adq Lol, xposed and a module that does some very weird shit with allo :p Oct 19 16:39:45 damn, they broke the site above, it should have spin and then tail you, of course with selinux Oct 19 16:39:50 actually the module doesn't do the weird shit, it calls the app that does the weird shit with allo Oct 19 16:39:51 tell* Oct 19 16:40:30 someone last night was saying that the file based encryption keys in Android N are never purged from userland memory Oct 19 16:40:31 Afzal, :p all those stacktraces with exposed in bug reports == insta-ignore + wontfix Oct 19 16:41:18 hahaha adq I know :D Oct 19 16:41:27 idk what that means exactly s73v3r, usually encryption keys stays in the keystore and if available/supported, there is even a specific container (could even be physical) Oct 19 16:41:30 g00s: I've been thinking about just completely emulating SafetyNet and publishing it Oct 19 16:41:33 need a new test phone in the office Oct 19 16:41:34 https://twitter.com/thegrugq/status/788467139741003777 Oct 19 16:41:38 nexus 5s are sucking now Oct 19 16:41:42 Just to ensure that it's completely and conclusively broken Oct 19 16:41:47 thx s73v3r Oct 19 16:43:12 i'm more following what the copperheados guy said, and more inclined to believe (not to say trust) him Oct 19 16:49:20 pfn: I've added onEditorAction on the editable. But the method isn't even executing, if I press on the keyboard button enter Oct 19 16:49:28 Just debugged it Oct 19 16:49:57 so OnEditorAction is not catching the "pressed keyboard enter" event Oct 19 16:51:13 but okay, it is not a simple editable.. it is multiline... maybe because of that Oct 19 16:52:02 what's your complaint afzal? mines cool Oct 19 16:52:19 oh, the 5? sorry Oct 19 16:52:29 yeah, 5x is fine Oct 19 16:52:34 5 has some bluetooth issues Oct 19 16:52:48 Kalleos, i would search on stackoverflow if I were you, then i would sniff the keypresss inside oneditoraction and in last ressort i would ask here Oct 19 16:53:24 I did Oct 19 16:53:28 or you could monitor elsewhere, like with addTextChangedListener Oct 19 16:53:36 ok Oct 19 16:53:57 but this can be very inefficient if you just want a check "at the end" and not at every change of the edittext content (though you can maybe find a clever condition) Oct 19 16:54:29 how do you guys add custom fonts to your apps? i found a few different ways but i'm not sure what to go with Oct 19 16:54:31 textWatcher doesn't provide a solution? (not near dev box) Oct 19 16:54:37 it seems like kind of a nightmare Oct 19 16:55:07 capella-5x, it should, it's just another way, maybe not the most suitable (addTextChangedListener wants a textwatcher) Oct 19 16:55:48 tarwater, i gave up on that years ago and keep the regular font, except on very specific case (thus not for all the text in the app but just a fancy title for example) using the old leaky typeface Oct 19 16:55:50 oic, thanks! I used to tinker in that area Oct 19 16:56:23 damn that sucks Oct 19 16:56:39 yes and no, somehow i'm glad because most apps are consistent Oct 19 16:56:49 and display more or less same font, i don't want ms sans comic Oct 19 16:57:06 i really don't. Oct 19 16:57:29 text events in a pre-emptive pipeline Oct 19 16:57:48 fonts are UI stuff ;) Oct 19 16:57:54 i don't see why i shouldnt be able to drop the .ttf along side the default fonts Oct 19 16:58:01 this is way too complicated Oct 19 17:02:26 because you aren't allowed to write to the system fonts Oct 19 17:02:35 loading up custom fonts into custom views isn't difficult Oct 19 17:02:45 common practice and done across so many apps, it's a standard practice Oct 19 17:03:41 i'm kind of new at this Oct 19 17:03:49 tarwater make sure you have the correct license for the font :p Oct 19 17:04:21 it seems like the way to do it is just to create a new font from assets in java and then change each element's font individually Oct 19 17:04:28 Afzal: it's a Google font :p Oct 19 17:05:44 it’s kinda crappy, but generally you subclass the textview and stuff and in there you set the font Oct 19 17:06:05 well, you could programmatically override the textpaint Oct 19 17:06:21 but yeah, you really don't want to do that, though Oct 19 17:06:27 here’s Nick Butcher’s take: https://github.com/nickbutcher/plaid/blob/master/app/src/main/java/io/plaidapp/ui/widget/FontTextView.java Oct 19 17:10:46 'Android Concurrency" deal of the day - heard its pretty good http://www.informit.com/deals/ Oct 19 17:18:17 am i strange, i find concurrency topics in that book not that hard - but this confuses the hell out of me every time https://medium.com/azimolabs/activities-subcomponents-multibinding-in-dagger-2-85d6053d6a95 Oct 19 17:18:24 * g00s needs a book on dagger Oct 19 17:18:36 and i've done DI since 2007 Oct 19 17:25:25 bolovanos: My log doesn't extend far enough back to see if you got any more responses yesterday, but I do store objects, just not serialized as JSON or binary. I've got SQLite database tables for each type of object that I need to store. Not that I would necessarily recommend doing that, because it has created a lot of work in maintenance. Oct 19 17:26:35 g00s: yeah that does seem unnecessarily complicated Oct 19 17:27:09 Thorbear, no did not, but thank you - right now I am testing speed and backward comp of gson - will see how it goes Oct 19 17:32:40 Thorbear, but what I can see - storing json takes 10 times longer than recreating it - probably memory speed Oct 19 17:33:18 that's interesting, should take roughly the same amount of time, perhaps even less for writing, imo Oct 19 17:33:28 writing is easy, and uses relatively few operations Oct 19 17:33:56 What kind of test are you using to measure this? Beware of microtesting =) Oct 19 17:40:40 http://pastebin.com/dJtXR9tE Oct 19 17:42:52 where Items is http://pastebin.com/ag13zh59 Oct 19 17:43:15 rbb Oct 19 17:43:23 unbelievable... onKey and OnKeyDown are not called any time.. despite of how many times I press something.. Oct 19 17:45:25 bolovanos have you disentangled storing (encoding + write to disk?) because writing to disk does take much longer Oct 19 17:53:41 g00s, hi, not sure what you mean, but here is the code http://pastebin.com/dJtXR9tE Oct 19 17:55:05 should be clear, writing to fFileOutputStream is slower than reading from FileInputStream Oct 19 17:59:12 oh my god... I had to use onTextChanged and not onKeyDown Oct 19 17:59:15 DONG Oct 19 18:01:05 i heard it Oct 19 18:06:22 Thoughts on opening dialogs from a bottom sheet? Oct 19 18:06:33 yuck Oct 19 18:06:55 noted Oct 19 18:07:19 as long as the sheet goes away, it’s not terrible Oct 19 18:08:08 Im trying to think of a nifty way to display several configuration options that are used to configure a ble device Oct 19 18:08:22 Perhaps just another activity will be better Oct 19 18:11:01 yeah, that’d be better Oct 19 18:11:35 just do it all on the bottomsheet Oct 19 18:13:38 pfn: Im not sure how that would work out, there are ~6-7 options, none of which are "toggle" type options Oct 19 18:14:22 Eg, the user will need to enter data in a few of them, others the user will select from a few available presets..stuff like that Oct 19 18:17:29 Question: I have a TextView in an activity that provides status information, currently from a shared preference that is updated in another service/reciever. What is the accepted way to have the activity watch for this value to change and update what it is displaying? Oct 19 18:18:00 broadcast a message saying it has been updated Oct 19 18:18:11 broadcast message, although you could just put the new value in there, too Oct 19 18:18:20 HAI Oct 19 18:18:34 o/ Oct 19 18:18:38 Ok, so load the value from the shared preference when the activity opens, then maintain its updates with a broadcast receiver Oct 19 18:19:02 Why not just use a shared preference change listener? Oct 19 18:19:21 Because I did not know about them.... (Im pretty new) Oct 19 18:19:48 Ill take a look into these preference listeners Oct 19 18:20:23 http://www.androidpolice.com/2016/10/19/samsung-now-faces-class-action-lawsuits-us-south-korea-note7-debacle/ -- really, they recalled everything, what else do people want... Oct 19 18:20:31 They're pretty much the easiest way to keep up with changes to shared preferences Oct 19 18:20:39 not in korea Oct 19 18:20:51 Dagmar, thanks. I will check them out. Sounds like it will be what I need Oct 19 18:20:59 it’s not nearly as strict there as it is here Oct 19 18:21:41 And is using a sharedpreference a good/correct way to store the status information for the activity/fragment to use? As the status will be updated if the activity is open or not Oct 19 18:22:02 it’s ok Oct 19 18:24:22 g00s: Do you have that Android Concurrency book? Oct 19 18:24:54 http://prntscr.com/cwd186 I see this design pattern used alot, where you have a layout on top of a color change as shown in the image. Is there a standard way to achieve this or should I just throw in a few layouts manually? Oct 19 18:25:29 My only idea would be something with a CoordLayout and anchors, but im not sure Oct 19 18:25:39 pretty much everything like that is meant to be done yourself Oct 19 18:25:52 rgr Oct 19 18:26:20 Baulde: What? How is the status supposed to be updated without the activity? Oct 19 18:27:04 The status is saved/updated within the app. There are some events that require background work. The activity is only to display the current status to the user. Oct 19 18:27:16 Oh okay Oct 19 18:27:18 And needs to be updated in that activity if the user has it open Oct 19 18:27:29 Yeah you can kinda use it as ghetto IPC Oct 19 18:27:32 Otherwise just keep the value available in case it does get open Oct 19 18:28:03 hmm, pixel backglass isn't hardened? suckass Oct 19 18:28:05 What is the correct way to do that communication then? Oct 19 18:28:21 If that is ghetto but works, I would like to learn what is best practice Oct 19 18:28:38 look up “Service to Activity communication” Oct 19 18:29:05 basically, there are several ways you can do it, but really, if what you’ve got works, and your data is still simple, then you’re probably fine Oct 19 18:29:33 Baulde: At least relative to SharedPrefs fields updating sounds like you are looking for https://developer.android.com/reference/android/content/SharedPreferences.OnSharedPreferenceChangeListener.html Oct 19 18:29:39 What if its just a broadcast receiver. I did not use a service to start because I want it to process the broadcast if the service is running or not Oct 19 18:29:47 Considering he's talking about storing the state of some external condition, seems like this is a simple caching model Oct 19 18:30:06 yeah Oct 19 18:30:39 Data is just a short string right now Oct 19 18:30:50 Or an ID reference Oct 19 18:31:11 thanks for the link yiati ill look into that Oct 19 18:34:43 HI ANDROID STUDIO, THANKS FOR COMPLETELY IGNORING $TMPDIR Oct 19 18:34:46 :P Oct 19 18:38:34 Thorbear, pfn, g00s: I have some results for (500 items)- http://pastebin.com/tdas6RXT . Where loadJson(74ms) vs readObjectData(256ms) and saveJson(974ms) vs writeObjectDatawriteObjectData(256ms) Oct 19 18:40:07 writing that json that way - takes almost 3 times longer than writing same object with writeObjectData Oct 19 18:40:40 your test methodology seems really suspicious based on the snippet Oct 19 18:41:02 but more importantly, do you need performance there, are you planning to do it very often? Oct 19 18:41:19 think more about moving those kind of operations outside of the ui thread Oct 19 18:41:48 most ppl don't, even strict-mode would warn you about if enabled and run on ui Oct 19 18:42:13 adq, ad suspiciousness - what would you change? Oct 19 18:42:33 ad performance - yes therefore I am testing it... Oct 19 18:42:47 bolovanos, would remove all the logs, would be sure to not test allocation & new, would make a for loop with same thing hundred of times to avoid cold vs hot load Oct 19 18:42:48 etc Oct 19 18:42:54 if you're testing for performance, don't do extraneous things like pretty printing Oct 19 18:44:23 and for that matter, do everything in memory Oct 19 18:44:28 I have two places where Iam using write/readObject - one of them is in thread because it takes more than 50 ms to process - second one is belo 50ms with write/readObject - but I am about to change it so I need to know how fast/slow that is Oct 19 18:44:57 and there isn't really concept of a cold/hot load on android Oct 19 18:45:49 pfn, what do you mean by that cold/hot? Oct 19 18:46:24 Dagmar, yiati thianks. SharedPreference listener has worked, the field updates correctly as the state is changing. Although its a bit cludgey. Im pretty sure the SharedPreferenceChangeListener is firing when the activity is not open. (A test toast was popping up when the activity was not being used) Is that ok? Or should I look at removing the listener when the activity is paused/close and rebuilding it on resume? Oct 19 18:47:15 bolovanos: Whether or not the JVM has been "warmed up" to a point where it has had time to optimize for perfomance (JIT). Oct 19 18:47:23 it’s generally a good idea to remove listeners when that happens Oct 19 18:47:24 Baulde: In general you should always remove listeners in your onDestroy Oct 19 18:47:46 there are cases where the first calls will do more stuff than subsequent ones Oct 19 18:47:48 ...and probably in your onPause or whatevs as wel Oct 19 18:47:57 probably due to memory alloc and jit & all the things i could not explain Oct 19 18:48:20 jit, and memory doesn't matter Oct 19 18:48:31 only thing is if the dex containing the code had to be loaded, which it doesn't Oct 19 18:48:33 Dagmar, thanks I will look into that Oct 19 18:48:46 even a singleton, first time != next times Oct 19 18:48:55 adq, ad logs - which one of them do you mean ? My untrained eye do not see any Oct 19 18:49:07 i said remove all the logs Oct 19 18:49:29 this is one of the worst thing ever when you test for perf Oct 19 18:49:53 gson does reflection on first runs as well Oct 19 18:50:15 adq, ok how will I know how long does it take to process each write/read unless profiling but even that it has its pro/cons... Oct 19 18:50:32 bolovanos, you use a profiler like the one in android monitor Oct 19 18:50:37 so you can trace everything Oct 19 18:50:46 logging execution time is ok Oct 19 18:50:47 or you just log before and after and output the delta Oct 19 18:50:50 not inside Oct 19 18:51:19 sry - I do not need difference in microsecond even 10s of ms precision would be fine Oct 19 18:51:35 this is why you have to run the same operations hundred if not thousands if not more Oct 19 18:51:41 logging in a tight loop sucks, though Oct 19 18:52:11 bolovanos: In general, performance testing is hard. put your code into a realistic scenario, the way you will be using it, test both methods separately a couple of times, pick one. And as someone else mentioned, are you sure this will even matter, assuming it is happening off the UI thread? Oct 19 18:54:00 Thorbear, yes speed is mandatory even if running in separate thread - use will be waiting for those data compare 1000ms vs 250ms (both with +- 10%) Oct 19 18:54:09 user == user Oct 19 18:56:01 Then I would do as described above, put both methods into realistic scenarios, test them, pick one. If you're worried you've messed something up with one of the methods to make it slower, ask/search for performance improvements and test again. Oct 19 18:58:08 You should probably use gsons streaming api if you're that concerned about performance Oct 19 19:00:32 Thorbear, Seems to me that everyone will disagree with me on this, but I thing that this is realistic scenario - I know that right now saving data is not a problem according to time, problem is with way I am saving/serialize (trying to get rid of it). Therefore I was looking for different way (json with gson). Taken exact object as I am using right now, filled it with data and saved it with both methods. Result - bad for new method. Which brought Oct 19 19:00:32 me to question why - which is something you suggested me to do I guess :) Oct 19 19:00:48 SimonVT, where can I learn more about it Oct 19 19:00:52 Or use something like protobufs or whatever else there is Oct 19 19:00:55 if you please Oct 19 19:01:16 I think you know the answer to that already :) Oct 19 19:01:40 yes I know but... who does not ask... Oct 19 19:01:55 btw I have "started" here https://developer.android.com/reference/java/io/Serializable.html Oct 19 19:02:00 when it comes to gson Oct 19 19:03:06 Anyone have an idea what may be causing this: http://prnt.sc/cwdfqb Oct 19 19:03:13 houpefully there is nothing better on this topic https://sites.google.com/site/gson/streaming Oct 19 19:03:41 Either way, assuming you keep it in memory, read time is a one-time hit.. Just do whatever is easiest Oct 19 19:04:27 orbyt_, what's the issue there? Oct 19 19:04:39 The title area of the toolbar is white Oct 19 19:04:44 or do you ask how to do it? (putting a card below toolbar but above a view) Oct 19 19:04:58 I blame communism. Oct 19 19:05:00 oh ok, no idea lol Oct 19 19:05:07 i thought you obfuscated the title on purpose ;) Oct 19 19:05:10 Without seeing the code it's meaningless Oct 19 19:05:18 adq: Oh haha nope Oct 19 19:05:58 I assumed it was a theme issue, but i've tried a bunch and it still persists Oct 19 19:06:01 and I cant just set the background like a regular textview Oct 19 19:06:39 Dagmar: What code? Its a standard toolbar being set as an action bar via setSupportActionBar() Oct 19 19:07:21 Regardless, heres the TB: http://pastebin.com/h8jAmWBf Oct 19 19:07:31 SimonVT, tell you one thing - why do I need performance when saving. In order to have robust protection against losing user data. I am saving those data on each change not only on orientation change, or when exiting app. maybe there would be better aproach to that Oct 19 19:07:56 The better approach is saving when it changes Oct 19 19:08:31 orbyt_: So, if it stops sucking when you remove your app:theme setting, you have your answer Oct 19 19:08:42 so that is what I am doing right now Oct 19 19:09:19 Dagmar: No, removing app:theme does nothing Oct 19 19:10:56 orbyt_: Do you have android:background in your theme? Oct 19 19:11:38 SimonVT: Yes, it's set in my /styles for this activity Oct 19 19:11:46 There's your problem Oct 19 19:14:11 SimonVT: Why would that set the background of a toolbars title though? Oct 19 19:15:21 If you have android:background in your activity theme it sets the background of everything Oct 19 19:16:23 Right, I guess its just odd as you're unable to change the toolbar title background regularly. Thanks though, that seems to of worked. Oct 19 19:18:12 The title is a view. Other stuff, like AppBarLayout, may add views to the toolbar as well. You don't have direct access to these views Oct 19 19:18:20 I don't see any problem with changing it Oct 19 19:18:27 But you're never meant to set a background color directly in the theme, so it doesn't matter Oct 19 19:20:53 So I guess that "@RequiresPermission(Manifest.permission.ACCESS_FINE_LOCATION)" only provides a warning, and that's why AS is screaming at me to explicitly add an if check? Oct 19 19:21:31 Yeah you can't that permission by only casually mentioning it in the Manifest Oct 19 19:29:35 Hi, I have a odd question Oct 19 19:29:42 Is there an overhead to calling functions? Oct 19 19:30:03 Yes, but extremely tiny. Oct 19 19:30:04 Vs directly doing some code in the method I'm already in? Oct 19 19:30:08 Oh ok Oct 19 19:30:16 so I shouldn't need to consider it at all right? Oct 19 19:30:42 In 99.99999% cases no. Oct 19 19:30:47 If you're still worried, make your class final. Oct 19 19:33:27 yeah don't consider it, except if your calling it like thousands (or more) per sec Oct 19 19:33:53 or simply profile and measure, to know if you should consider it or not ;) Oct 19 19:34:03 eh, make all classes final until you need otherwise Oct 19 19:34:10 :P Oct 19 19:35:59 welp, i can't update android studio, ever, because all JDKs have hardcoded get_temp_directory to /tmp and android studio places downloaded files in get_temp_directory. Oct 19 19:36:29 java -Djava.io.tmpdir=$TMPDIR Oct 19 19:36:31 problem solved Oct 19 19:36:57 pfn: that doesn't control get_temp_directory on oracle java 8 jdk or openjdk 8 Oct 19 19:37:11 pfn: nice job believing the incorrect internet, though! Oct 19 19:37:23 huh, java has no "get_temp_directory" Oct 19 19:37:51 sqldelight 0.5 Oct 19 19:37:55 i don't know where it eventually ends up, but that's the C function used, and it's literally return "/tmp"; Oct 19 19:38:12 so? nothing uses it Oct 19 19:38:15 there is absolutely no provision for changing it /AT ALL/, period. Oct 19 19:38:20 pfn: Android Studio does. Oct 19 19:38:23 no it doesn't Oct 19 19:38:27 it uses java.io.tmpdir Oct 19 19:38:29 no, it doesn't. Oct 19 19:38:37 i'm setting java.io.tmpdir and TMPDIR Oct 19 19:38:41 it's still writing to /tmp/ Oct 19 19:38:51 TMPDIR is irrelevant Oct 19 19:38:58 i don't care, i'm setting it anyway, asshole Oct 19 19:39:19 then you're not setting java.io.tmpdir correctly Oct 19 19:39:28 do it wrong all you want Oct 19 19:39:33 no hair off my back Oct 19 19:39:45 lol Oct 19 19:40:35 pfn: http://paste.debian.net/884039/ Oct 19 19:40:41 pfn: i'm not asking, i'm telling. Oct 19 19:41:36 the get_temp_directory is only used for stuff like hs_err, pid files, etc. Oct 19 19:42:13 then explain why it's creating /tmp/PackageOperation*/ and filling it with downloaded files for updates Oct 19 19:42:40 probably because intellij forks the packaging commands off into a separate process, and your properties aren't carried along Oct 19 19:43:05 seems rather stupid to ignore the vmoptions files for updates Oct 19 19:43:14 or passed command-line arguments Oct 19 19:43:33 in any case, the result is the same - i require massive hacks to work around idiocy Oct 19 19:43:45 Did you report the bug to upstream yet? Oct 19 19:43:51 They usually fix these rather quickly. Oct 19 19:43:57 which upstream? Oct 19 19:44:03 (IntelliJ, not Google) Oct 19 19:44:08 Oracle and OpenJDK won't do a god damn thing about it Oct 19 19:44:14 google owns the android integration Oct 19 19:44:16 Even though, AS team fixed most of my complaints as well. Oct 19 19:44:19 intellij folks know nothing about it Oct 19 19:44:30 they just merge in patches from google Oct 19 19:44:31 IntelliJ ships their own forked JDK Oct 19 19:44:45 and AS now ships IntelliJs VM as well. Oct 19 19:44:49 more along the lines of android studio not doing it Oct 19 19:44:52 Which is the one that's messing with your tmp files. Oct 19 19:45:05 So reporting to IntelliJ makes sense. Oct 19 19:45:21 Also more likely to fix the bug than bitching here :) Oct 19 19:45:56 it's more likely to get fixed by me hacking around it Oct 19 19:46:11 eh, find the command AS forks and fix it Oct 19 19:46:14 Stop whining. Write a bug report. Oct 19 19:46:35 orbyt_: no signal from the Schiaparelli lander... Oct 19 19:47:31 pfn: it doesn't fork Oct 19 19:47:55 pfn: or if it does, the forked process is somehow magically not listed in 'ps' as root Oct 19 19:48:42 Melatonina: Did they have contact with it before entry? Oct 19 19:49:23 orbyt_: they had contact up to 1 minute before the landing Oct 19 19:49:28 If /tmp doesn't have enough room for the operations, you have failed as a system architect Oct 19 19:49:36 zinx, doesn't matter, whatever is being done results in java.io.tmpdir being ignored Oct 19 19:49:46 forking, etc Oct 19 19:49:47 Dagmar: if you expect /tmp to have 2+GB of space free, you have failed at *nix Oct 19 19:49:51 and it's rather easy to fork and hide process names Oct 19 19:50:05 Actually, I'm pretty sure I've had root on a hell of a lot more machines than you Oct 19 19:50:06 assuming that is what has been done Oct 19 19:50:08 Dagmar: especially when you expect it to unconditionally have that much free, and offer no alternative. Oct 19 19:50:25 pfn: i'm listing every process, not by process name. Oct 19 19:50:34 Dagmar, of course you mount /tmp to tmpfs on your 256MB RAM docker container! ;) Oct 19 19:50:45 Actually, I generally expect /tmp to have at _least_ 8Gb free. Oct 19 19:50:48 pfn: and i can account for all of them. Oct 19 19:51:11 Dagmar: it's not uncommon for /tmp to be on a tmpfs these days Oct 19 19:51:15 Melatonina: That sucks, perhaps Curiosity can speed over there and check up on its robot buddy =^) Oct 19 19:51:18 Mavrik: Docker is for people who want to play pretend Oct 19 19:51:29 zinx: I am aware Oct 19 19:51:35 ;) Oct 19 19:51:42 Dagmar: mine is just a small partition that has other programs vying for space, however. Oct 19 19:52:01 https://android.googlesource.com/platform/tools/base/+/gradle_2.2.0/repository/src/main/java/com/android/repository/io/FileOpUtils.java#238 && https://android.googlesource.com/platform/tools/base/+/gradle_2.2.0/repository/src/main/java/com/android/repository/impl/installer/AbstractPackageOperation.java#289 Oct 19 19:52:10 Guys I'm used to dealing with 100+ host deployments on ESX with 10Gb fiberchannel SAN storage Oct 19 19:52:10 fyi, it reads java.io.tmpdir, no hardcoding anything Oct 19 19:52:15 Dagmar: ideally, everything would just pay attention to $TMPDIR which is user-specific on my system, but at the very least it would let me change it by /some/ means. Oct 19 19:52:44 orbyt_: the orbiter should perform another passage over the landing site in 40 minutes Oct 19 19:52:48 so yeah, why would you even think this native, internal get_temp_directory is even used Oct 19 19:52:52 pfn: i don't know, it's failing somehow Oct 19 19:53:24 * pfn shrugs Oct 19 19:53:31 intellij internals, probably rewrites java.io.tmpdir somewhere Oct 19 19:53:35 or android studio Oct 19 19:53:52 that'd be stupid, but not entirely unsurprising, sadly Oct 19 19:54:06 They're probably just setting it as '/tmp' somewhere without gaf Oct 19 19:54:28 Dagmar: presumably that code is exactly the one allocating the paths that are showing up in /tmp/ Oct 19 19:55:04 Dagmar: seems unlikely that something else would be generating as /tmp/PackageOperation*/ Oct 19 19:55:28 https://github.com/JetBrains/intellij-community/search?utf8=%E2%9C%93&q=%22java.io.tmpdir%22&type=Code -- nope, no muckery there, nor in android studio Oct 19 19:58:08 Seriously tho... Are you guys allocating 512Mb VMs or something? Oct 19 19:59:26 my bet is still on the updater being forked Oct 19 19:59:37 tmpfs being basically half RAM and half swap and a basic rule of thumb for swap being 2x RAM... not having 8Gb in /tmp would be provisioning fairly miserly Oct 19 20:01:05 swap? whaddat, I don't give my vms swap anymore :P Oct 19 20:03:55 Good luck with that plan then Oct 19 20:04:38 I prefer to not have an anomaly snowball into the OOM killer tearing down a production environment because someone couldn't be bothered to thin provision a disk Oct 19 20:11:59 https://design.google.com/articles/material-design-awards-2016/ Oct 19 20:16:08 eheh Oct 19 20:17:27 So this month mercurial is more trendy than git? Oct 19 20:17:36 Should I switch? Oct 19 20:18:55 Melatonina from what i've read, Fb and google are internally working on hg to make it work better for themselves ... Oct 19 20:19:10 over the past 1-2 years a lot of work has been going on behind the scenes Oct 19 20:19:22 i think google still uses perforce Oct 19 20:19:46 mercurial is the bomb Oct 19 20:19:51 (with special license agreement that gives them access to the source code) Oct 19 20:20:03 hello. im thinking about using static build of ffmpeg for android via https://johnvansickle.com/ffmpeg/ Oct 19 20:20:13 but im not sure whether to choose (armhf or armel) Oct 19 20:23:34 hm this is cool http://bedrockdb.com/ Oct 19 20:33:30 Say you have an application running a timer, and another application watching said timer. Is it acceptable to send a broadcast that the timer value has changed every second? Or would you use another technique to relay this information "correctly"? Or is it ok to send broadcasts that often? Is there a guideline for how often is too often for a Broadcast? Oct 19 20:36:15 Hi guys, I have a really basic question, so I'm trying to create unit tests for the app, and I was following this youtube video, https://www.youtube.com/watch?v=z47B1nhC3K0 and the guy instructs to create a new folder in the app folder and then create a folder named java in that testing folder and android studio would recognize it as a code folder Oct 19 20:36:35 but that's not tru in my case, it doesn't recognize it as a code folder and doesn't let me create a package in that folder Oct 19 20:37:13 Baulde sending a broadcast every second is in somewhat in 'meh' (yuck) territory Oct 19 20:38:53 g00s, yea I was thinking that it would be. What would a solution be to avoiding that? Oct 19 20:39:41 Could you send one every 5 seconds and rely on the receiving app to do a short interval count down on its own and update/sync every 5 seconds? Or another idea? Oct 19 20:39:56 Baulde its kinda chatty IPC, but maybe a better way would just be to sync the events instead (start / stop) and have each clock synced Oct 19 20:40:22 2 applications? Oct 19 20:40:23 why? Oct 19 20:40:37 and you can send targeted broadcasts, so it's not completely yuck Oct 19 20:43:07 hey i have a navigation drawer layout, and on the top there is a green background with username and email textview. how can i change these texts from within a fragment? Oct 19 20:45:55 hm so N comes with sqlite 3.9.0 Oct 19 20:46:44 fudge, indexes on expressions is 3.9.0 + Oct 19 20:46:48 pila: Im assuming the drawerlayout and navigationview are in your activity, and you want to access them from a fragment correct? Oct 19 20:47:00 yes Oct 19 20:48:16 You could do something like getActivity().findViewById() and then interact with the views as normal Oct 19 20:48:32 i made a profile fragment, and when the user updates his profile, i want to update the username and email in the navigation drawer Oct 19 20:49:05 Perhaps store the profile info in SharedPreferences and then use a shared prefs listener Oct 19 20:51:24 use a synchronized clock Oct 19 20:51:41 resync every x seconds Oct 19 20:52:06 ok i got it working, thanks orbyt_ Oct 19 20:52:29 youjelly: nah , timed resync would be waste of resources, the profile info nearly changes never :D Oct 19 20:53:28 oh I was answering Baulde Oct 19 20:56:25 pfn, 2 application. One is watching for movement over a time period via accelorometer other is just keeping track of what it is doing to display warnings etc... Oct 19 20:56:35 why would you have 2 applications to do this Oct 19 20:56:44 One is a third party service Oct 19 20:57:08 Just going over what if's Oct 19 20:57:36 Baulde data centric stuff involving sensors, time series - kinda not so great splitting this across processes Oct 19 20:58:07 now, if its your app, i could see putting all the bg stuff into a separate service process Oct 19 20:58:46 have your app spit it intoa round robin database and the other one can poll the database? Oct 19 20:59:14 Baulde also see https://en.wikipedia.org/wiki/Lamport_timestamps Oct 19 20:59:47 can anyone hlep me with setting up unit testing in android studio please? Oct 19 21:00:14 youjelly maybe nobody here tests :D Oct 19 21:00:15 https://developer.android.com/reference/android/view/View.html#setForeground(android.graphics.drawable.Drawable) Oct 19 21:00:18 wtf, I'm so confused Oct 19 21:00:22 I created a test folder and a java folder within the test folder, but it doesn't let me create a new package in that java folder Oct 19 21:00:27 apidoc says it's @since api1 Oct 19 21:00:35 pfn its a typo Oct 19 21:00:36 *but*, ide says it's in v23+ Oct 19 21:00:43 g00s: seriously Oct 19 21:00:45 ... Oct 19 21:01:00 docs lie Oct 19 21:01:11 pfn i think there has been a bug tracker for that, like years ago never fixed haha Oct 19 21:01:20 https://code.google.com/p/android/issues/detail?id=189041 Oct 19 21:01:25 only view with setForeground is FrameLayout i think pre 21 Oct 19 21:02:14 weird, so they basically copy/pasted shit from framelayout... Oct 19 21:04:23 https://code.google.com/p/android/issues/detail?id=186273 Oct 19 21:05:56 oh there's an api 25 now Oct 19 21:06:50 g00s, thanks for the link Oct 19 21:06:57 and yeah, just got bit by that... Oct 19 21:08:32 pfn if you look at Plaid app, for example, you'll see nick B created a bunch of "ForegroundLinearLayout' type things, easy to reuse Oct 19 21:09:47 I really wish github would allow logging in with multiple different accounts Oct 19 21:09:52 so annoying to open up an incog window Oct 19 21:11:00 especially since I have 2fa setup for github Oct 19 21:12:45 ctrl-shift-n. Oct 19 21:13:27 the annoying part is getting logged out and having to log back in whenever the window closes Oct 19 21:13:37 Yeah there is that Oct 19 21:13:59 I'm getting this error at build time: http://pastebin.com/iGXaYg4n Oct 19 21:14:07 I was re-structuring the project Oct 19 21:14:15 I have no idea what could have caused that Oct 19 21:14:58 hm who was doing app with heart rate Oct 19 21:15:04 maybe it was alex_pp Oct 19 21:16:31 oh look, a whole bunch of new goodies Oct 19 21:19:10 support lib 25 Oct 19 21:19:46 Even "Clean Project" fails with the same error Oct 19 21:19:59 I would like to stop updating now Oct 19 21:20:01 heh Oct 19 21:20:22 Practically every other time I try to use my laptop I can't because... updates Oct 19 21:21:27 It might be Samsung doing it. I just prefer to blame Sprint because they're much more often the cause of problems Oct 19 21:21:28 #@$@ Oct 19 21:27:37 as 2.2.2 , new platform-tools 25, build tools 25 Oct 19 21:28:59 no sources for 25? not that shit again ... Oct 19 21:32:36 indeed g00s https://sites.google.com/a/android.com/tools/recent/androidstudio222isnowavailable Oct 19 21:36:34 android.support.design.widget.BottomNavigationView Oct 19 21:36:43 haha, my laziness paid off again Oct 19 21:37:02 oh lol, finally android.v7.widget.RecyclerView.DividerItemDecoration Oct 19 21:37:15 it's xmas Oct 19 21:40:07 https://developer.android.com/reference/android/support/design/widget/BottomNavigationView.html Oct 19 21:40:32 also http://android-developers.blogspot.fr/2016/10/android71-dev-preview-available.html earlier today Oct 19 21:40:40 they mentionned api diff link but still 404 Oct 19 21:41:51 gradle plugin 2.2.2 i guess also Oct 19 21:41:57 still not in maven central Oct 19 21:42:44 2.2.2 on bintray Oct 19 21:42:55 yeah Oct 19 21:43:05 also one of your fav thing g00s, update repository Oct 19 21:43:13 probably for 4 bytes Oct 19 21:43:42 android support repository revision 39.0.0 Oct 19 21:43:46 omg "independence day 2" was awful Oct 19 21:43:55 why was the queen going after the bus? wtf ? Oct 19 21:46:35 why did you watch "independence day (2)"? Oct 19 21:48:19 do you hate yourself? Oct 19 21:50:00 lol the melatonin wasn't working ... Oct 19 21:52:05 :) Oct 19 22:15:43 lol BottomNavigationView docs are so ... mediocre Oct 19 22:15:57 so i guess no CL behavior or badges ... Oct 19 22:16:24 i wonder if we need to put something in their water so they aspire to great documentation Oct 19 22:28:41 http://repo1.maven.org/maven2/com/android/tools/external/com-intellij/uast/ Oct 19 22:28:44 holy shit, it's finally there Oct 19 22:29:01 the gradle plugin 2.2.0 hasn't been updated to central yet, though Oct 19 22:30:09 uh, they published 145.597.4 ... meanwhile, 2.2.0 uses 145.597.3... Oct 19 22:30:14 * pfn grumbles Oct 19 22:30:28 oh well, that's an easy workaround, just use 145.597.4 locally Oct 19 23:02:36 Guys, there is another Trump vs Clinton debate tonight! Oct 19 23:02:48 * Melatonina prepares pop-corns Oct 19 23:18:40 maybe ill watch that if i can get my dev environment set up in eclipse. this is pretty sweet imho Oct 19 23:18:53 ew Oct 19 23:19:06 and again , Oct 19 23:19:09 ew Oct 19 23:19:42 capellasBrain: are you the usual capella(-5x)? Oct 19 23:20:03 best place to go for advice? I've been using stackoverflow since the course material is from 2012 and is telling me to use android 2.3.3 Oct 19 23:20:29 it's me, I like Halloween ☺️ Oct 19 23:21:02 halloween event in ffbe starts in a couple days, yay Oct 19 23:21:03 heh Oct 19 23:21:07 stupid game, so addicted Oct 19 23:21:42 man, wtf is ttystudio so slow... Oct 19 23:22:31 meh, written in javascript and singlethreaded... Oct 19 23:22:32 2.2.2 is arrived! Oct 19 23:22:36 mittendeep: Even a fortune cookie would have better advice than to focus on a version of Android that old Oct 19 23:22:56 yeah i know Oct 19 23:23:06 i did it one time back in 2014 though Oct 19 23:23:21 i dont think these directions work anymore though Oct 19 23:23:32 mittendeep: Download Android Studio, use it. Ignore the talk of ancient versions of Android. It's not very hard to figure out Oct 19 23:23:49 AS's IDE is _very_ aggressive about telling you when you're doing something outdated Oct 19 23:24:01 ...and it'll generally tell you what you _should_ be doing instead Oct 19 23:24:22 mink required sdk:8, target sdk:21, compile with:4.4, theme: holo light Oct 19 23:24:43 they dont want us to use android studio for some reason, it is infuriating Oct 19 23:25:08 what the hell class are you taking? Oct 19 23:25:24 mobile application development from rasmussen college Oct 19 23:25:37 drop it. if they don’t want you using AS, then they are worthless Oct 19 23:25:51 im ending up with 3 or 4 extra directories under the resources tree Oct 19 23:25:55 hm, every time i bump my compileSdk, I ask myself 'should i bump minSdk=19 also' Oct 19 23:26:19 minSdk-21 would be soo ... groovy Oct 19 23:26:24 real developers only use command line tools Oct 19 23:26:51 what are they having you use if they want you to use 2.3.3 and not AS? Oct 19 23:27:12 eclipse and the adt plugin Oct 19 23:27:17 terrible course Oct 19 23:27:19 drop that class immediately Oct 19 23:27:35 and tell them you are dropping it specifically because they are using outdated and worthless materials Oct 19 23:27:40 i already completed it, i am trying to go through it again lol Oct 19 23:27:50 then don't waste our time Oct 19 23:27:57 if you’re not actually taking it, then use the updated tools Oct 19 23:28:13 maybe they think that Android 2.3.3 is the purest for of Android and everything else is corrupt Oct 19 23:28:36 mittendeep did you already get credit for the course then ? Oct 19 23:28:43 * g00s confused Oct 19 23:29:08 maybe it's a course he took in 2007 Oct 19 23:29:09 g00s: I'm thinking of bumping minSdkVersion from 21 to 23. Oct 19 23:29:12 yes, im pretty sure you helped me a long time ago. thanks g00s. I'll just try to figure out their shit course materials Oct 19 23:29:21 yeah why would you take it again, makes no sense. if you forgot it before, you'll forget it again Oct 19 23:29:44 mittendeep: Instead of using that stuff, take one of the updated courses on udacity Oct 19 23:30:17 TacticalJoke lol from 21 to 23 ? 22 to 23 gives you a few users :D Oct 19 23:30:20 g00s: Definitely do `minSdkVersion 21` if you can. Oct 19 23:30:26 It's so much easier. Oct 19 23:30:30 mittendeep: it's time you understand the reality of things: you wasted your time with that course 1 time already. Don't waste it again Oct 19 23:30:31 I don't even use AppCompat now. Oct 19 23:30:51 hm Oct 19 23:31:01 won’t you need to use AppCompat once android 25 comes out? Oct 19 23:31:27 android 25 doesn't change anything about the themes Oct 19 23:31:27 I'm not sure. Is 25 bringing something I need to worry about? Oct 19 23:31:42 or 26 or 27 Oct 19 23:32:06 cross that bridge when you get there Oct 19 23:32:08 s73v3r: To be honest, I'm happy to keep raising my minSdkVersion. Oct 19 23:32:30 still a bunch of people on kitkat tho Oct 19 23:32:35 People who can't afford the latest device can go burn in hell. Oct 19 23:32:41 lol Oct 19 23:32:42 Just kidding; I'm just lazy. Oct 19 23:32:47 latest devices don’t get updates either Oct 19 23:32:52 I don't really want them to burn. Oct 19 23:33:47 I'm hoping I won't ever need AppCompat. I think AppCompat has actually given me a form of PTSD. Oct 19 23:34:00 Reading through all those style files. Oct 19 23:34:59 To be fair, though, the framework is bad enough (and AppCompat simply copies it, mostly). Oct 19 23:35:13 they need something like less / sass for Android, and it creates all that crap :D Oct 19 23:42:56 https://play.google.com/store/apps/details?id=me.calebjones.spacelaunchnow Oct 19 23:43:04 Do those stats look wrong to anyone else Oct 19 23:43:21 863 reviews and climbing with only 5-10k dls? Oct 19 23:44:59 orbyt_: I don't know. How are your stats? Oct 19 23:45:14 orbyt_: do you want me to write a bad review? Oct 19 23:45:26 No of course not Oct 19 23:45:35 “The author of this app called me a poopy face on IRC. 1 star." Oct 19 23:45:59 "Would give it five stars but I don't want to stunt growth and give the developmental team big heads." ;o Oct 19 23:46:41 It looks like he got buzz in some forum for rocket launch fanatics Oct 19 23:47:14 Perhaps, but that is an incredible ratio of amount of reviews/downloads Oct 19 23:47:17 I don't get a sense that these reviewers are bot or paid shills Oct 19 23:47:29 If he paid for these reviews he paid a LOT Oct 19 23:47:48 It was under 800 reviews not even a week ago Oct 19 23:48:02 he has a lot of friends Oct 19 23:48:46 maybe he's promiscuous Oct 19 23:48:56 and bisex Oct 19 23:49:06 Out of 863 reviews, only 6 arent a 5 star? Oct 19 23:49:17 That cant be right Oct 19 23:49:30 well, his app his perfect and well designed Oct 19 23:49:36 For what it is, there's a pretty low minimum complexity required Oct 19 23:49:37 Its not though Oct 19 23:49:42 at least that's what I read in the reviews Oct 19 23:50:15 I prefer your app anyway Oct 19 23:50:28 My app is quite different Oct 19 23:50:41 This is just a launch schedule...thats it Oct 19 23:50:41 http://imgur.com/a/1OaMM -- finally put together a quick demo Oct 19 23:50:56 orbyt_: I see 81 four-star reviews. Oct 19 23:51:02 776 five-star reviews. Oct 19 23:51:30 TacticalJoke: Ah right, my mistake Oct 19 23:51:34 pfn: you invented mkdir?!? Oct 19 23:51:42 Maybe it got the attention of someone at LBL or something Oct 19 23:52:06 The app even has a subreddit, with no activity in a month Oct 19 23:52:29 I ought to just ask him directly tbh.. Oct 19 23:53:23 Yeah, talk to him directly. "Your app and its reviews are causing problems for Tony and the boys. Better fix the situation, or they'll be paying you a visit." Oct 19 23:53:50 orbyt_: that's why I mentioned that Rocket Sellers. If she's interested maybe she could talk about it to other people. At least you could try Oct 19 23:54:46 Maybe some print magazine mentioned it Oct 19 23:54:52 There's still a few people writing for those Oct 19 23:55:06 The reviers are almost alarmingly literate Oct 19 23:55:15 :D Oct 19 23:55:32 The proportion of 5-star reviews isn't that hard to accomplish tho Oct 19 23:55:53 One just has to beat the hell out of the app before a release to kill off the bugs, and be doing something simple (like a timeline of events) Oct 19 23:56:10 The first <4 star review I got was someone who was irked because the wrong theme selection happened. Oct 19 23:56:15 It was _April 1st_. Oct 19 23:56:47 Like, dude... do you not know what day it is. "App is working as intended. Check your calendar." Oct 19 23:57:06 I even mentioned adding April 1st support in the previous Changelog Oct 19 23:57:27 Dagmar: do you really think that people read changelogs? Oct 19 23:57:35 Melatonina: My app isnt fully released, so I'm holding off on partnering up with people and such Oct 19 23:57:56 Actually yeah, when you put them up as a blurb when the new version starts Oct 19 23:57:58 orbyt_: wise choice Oct 19 23:59:23 Dagmar: do you use graphics too? Oct 19 23:59:38 Melatonina: It could be said that I freebase them Oct 20 00:00:02 I had to avoid letting the phone rescale stuff so it would always be pixel-perfect and wound up with over 1,000 fiddly little images Oct 20 00:00:14 Also, rescaling costs power Oct 20 00:04:24 Dagmar: may I ask you what is your application about? Oct 20 00:04:45 Mainly it's a countdown timer for Ingress. ...since when you do something rather matters. Oct 20 00:05:02 Android kinda screwed me with 5.0 because of the change to AlarmManager Oct 20 00:05:32 THE nightmare scenario was basically, ART/Dalvik can and will kill your @!#$@ randomly, leaving you with a clock that doesn't change Oct 20 00:05:39 Android screwes everyone Oct 20 00:05:51 The only solution to that is to use AlarmManager's repeating interval function Oct 20 00:07:07 google needs to start from scratch with a new mobile OS, they should start by buying QNX from BB Oct 20 00:07:12 So, to make it work reliably again on 5.0 and above I'm going to have to keep using AlarmManager, but only on a 60 second interval (and Sony Xperia users can suck it) to keep a runnable loop posting back to itself when the thing is in per-second mode Oct 20 00:07:41 Having to have two tiers of timers is unnecessarily fiddly Oct 20 00:08:05 then use a foreground service Oct 20 00:08:41 pfn: I'm going to put that in as an option for people. A foreground service for a _widget_ is a bit annoying tho Oct 20 00:08:53 low priority = no status bar icon Oct 20 00:08:54 it's ok Oct 20 00:09:03 Plus, the _other_ part of the app that doesi the same thing as a non-widget _was_ a service with an overlay window Oct 20 00:09:24 It'll have to be refactored as well because there wans't much sense in even bothering with more than one broadcast intent Oct 20 00:09:41 use a service for lifecycle management Oct 20 00:09:42 that's all Oct 20 00:09:48 It _is_ a service Oct 20 00:10:36 https://github.com/pfn/qicr/blob/master/src/main/scala/com/hanhuy/android/irc/LifecycleService.scala -- that's like the only point of my services Oct 20 00:10:52 post a notification and act as a lifecycle container for the rest of the code Oct 20 00:12:51 fewer lines if the memory call backs weren't in there (just experimenting so long ago) Oct 20 00:13:55 Dude I basically built a graphical clock that updates significantly more often than the stock digital clock, and weighs in at the same _or less_ power consumption. I think I got it. Oct 20 00:14:14 alright then Oct 20 00:14:32 Ingress is already murder on the battery. I wasn't going to win any friends by having the thing use a noticeable amount of juice Oct 20 00:15:52 Can anybody help me with this build error? http://pastebin.com/HT0jTX5D Oct 20 00:16:24 I can't understand what's wrong with that file. It's not even mine Oct 20 00:16:31 The code always compiled Oct 20 00:17:08 Then I made some changes to the structure of the project, completely unrelated to that file. Now I can't manage to build anymore Oct 20 00:18:06 If I compile the module that is mentioned in that error (auth0lock) by itself, it compiles just fine Oct 20 00:18:39 I cleaned everything (by hand, the "clean" target fails too) Oct 20 00:18:45 I restarted everything Oct 20 00:18:57 I even updated Android Studio and Gradle Oct 20 00:19:13 So dig around in G:\Development\android\Tests\ and rip auth0-android-sample-03-session-handling out by the roots Oct 20 00:19:23 I disable "crunching" whatever it means Oct 20 00:19:26 disabled Oct 20 00:19:31 and I re-enabled it Oct 20 00:19:41 No way to build again Oct 20 00:20:05 Dagmar: what do you mean? Oct 20 00:20:31 You're getting an error due to something lurking around in the intermediate build files Oct 20 00:20:40 I removed that folder Oct 20 00:21:01 I.e., the files that we can reasonably assume that you didn't write because something's generating them Oct 20 00:21:16 yeah Oct 20 00:21:43 Melatonina: maybe you messed around with the drawables Oct 20 00:21:56 So the only things you really need are the project files you wrote. Oct 20 00:22:04 you see that it mentions the "auth0lock" folder? That module is a library by Auth0. I can compile it in a stand-alone project and it builds just fine Oct 20 00:22:31 shmooz: those are PNG files from an Auth0 library. Never touched them Oct 20 00:24:43 Have you looked at them Oct 20 00:24:48 Are you _sure_ they're PNG files? Oct 20 00:25:00 ...and not say, some binary crap leftover or zero-byte files Oct 20 00:25:20 windows mandatory exclusive locking OP Oct 20 00:25:46 Oh!@ Oct 20 00:25:48 I'm going to check them now. But the project compiled until few hours ago. I even run it Oct 20 00:25:49 * Dagmar slaps forehead Oct 20 00:28:04 Dagmar: Windows says it's a 16x16 PNG file Oct 20 00:28:38 Melatonina: That's a really long filepath ya got there Oct 20 00:28:40 * pfn wonders when the chevy bolt will be available Oct 20 00:29:41 Melatonina: Whatcha wan bet if you reduce the size of the project's name to something short the problem goes away Oct 20 00:30:54 Ranaming it Oct 20 00:31:26 * pfn bets it can't be renamed Oct 20 00:32:21 It's either filesystem corruption or length limits is my guess Oct 20 00:32:34 ...if the thing compiles _elsewhere_ in the filesystem, that's pretty telling Oct 20 00:32:41 nope Oct 20 00:32:52 I wouldn't trust Windows properties dialog for a damn thing tho Oct 20 00:34:12 Gradle build finished without errors... Oct 20 00:34:56 Gotta love Windows Oct 20 00:35:00 It's in the EULA. Oct 20 00:37:07 if it was a file name length issue, just about all Unix filesystems have a similar 255 char limit Oct 20 00:37:57 Yes, I fixed a problem in the code and the project did build and run without any problem Oct 20 00:38:13 Dagmar: thank you very much. I lost half a day of work on this issue Oct 20 00:38:44 windows filenames support 255 characters per segment Oct 20 00:44:54 Hello, is enough for use "RecyclerView" add android.support.v7.widget.RecyclerView into build.gradle ?? Oct 20 00:45:20 I mean: compile 'com.android.support:recyclerview-v7:24.2.1' inside "dependencies" section Oct 20 00:49:06 yes Oct 20 00:50:09 I'm hating every moment of this programming business. If it weren't for you guys I would be lost. Good night! Oct 20 00:57:51 Hey guys, I cannot get the first card to show its picture Oct 20 00:57:51 http://stackoverflow.com/questions/40052193/swipeable-stackable-cards-does-not-show-image-of-first-card Oct 20 00:58:37 I am swiping cards with this library and using picasso to load them but for some reason the first card always fails to load the image - the placeholder is not there so I am assuming Picasso is not loading in time or something I tried using a callback as well Oct 20 01:37:46 are there any legitament ways to do keyword research on the store? Oct 20 01:37:56 legitimate* Oct 20 02:28:43 Hi - I'm new to Android Dev and am having a hard time importing an external library. I'm using Android Studio 2.2 and most every post on google/SO I've seen talk about a libs directory which I don't have. Can I get some help from someone? Thanks! Oct 20 02:31:38 weareawful: Best to just ask the question. Oct 20 02:34:42 In my build.gradle I have the line compile('libs/com.amazonaws:aws-android-sdk-core:2.3.3'). Within app/libs I have aws-android-sdk-core-2.3.3 and I am getting "Failed to resolve 'libs/com.amazon:aws-android-sdk-core:2.3.3'" Oct 20 02:36:10 I believe this is the normal way: http://stackoverflow.com/a/23897638 Oct 20 02:37:02 Though this is better: http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/setup.html#option-1-using-gradle-with-android-studio Oct 20 02:37:43 But don't use `+`. That is a really bad practice. Oct 20 02:37:49 Use the specific version always. Oct 20 02:40:11 Thanks TacticalJoke - looks like that worked. Appreciate the help Oct 20 02:40:31 To be clear, I'd definitely recommend the second way. Oct 20 02:40:45 Using `jar` files is not great. Oct 20 02:41:12 Yep, that's what I did. "compile 'com.amazonaws:aws-android-sdk-core:2.3.3'" Do I not need to have the .jar in the libs directory? Oct 20 02:41:26 You don't need the `jar` file anymore. Oct 20 02:42:07 Okay. Does Android Studio download/install the dependency or what then? Oct 20 02:42:12 Yeah, it does. Oct 20 02:42:24 Okay, that makes sense. Oct 20 02:42:25 It does it all for you. Oct 20 02:53:15 Thank you for contacting customer services. Please rate our service based on how satisfied you feel that your query was resolved, on a scale of "1" (not satisfied at all) to "10" (completely satisfied). **** ENDING LOGGING AT Thu Oct 20 02:59:59 2016