**** BEGIN LOGGING AT Sun Jun 14 02:59:58 2015 Jun 14 03:01:57 what's the best root library to use at the moment? Jun 14 03:03:21 also how is 3,762 / 12,213 (30.8%) for a current/total install count? Jun 14 04:00:16 just fine duncannz Jun 14 04:16:08 g00s: Nah, never used. Jun 14 05:02:32 Anybody online? Jun 14 05:03:18 we all are. Jun 14 05:09:36 amit2912, i like to think i am Jun 14 05:10:08 * TacticalJoke slowly places down anvil. Glares at amit2912. Jun 14 05:10:42 What Jun 14 05:12:44 damn it, i hate when finally there is a mild evening to open the windows, but some asshole stinks up the whole neighborhood burning wood Jun 14 05:12:53 It's a high-tech horror movie. Jun 14 05:14:09 amit2912: Have you ever seen those movies in which the humans are like monsters. Jun 14 05:14:13 And someone takes a wrong turn into the woods. Jun 14 05:14:31 Yeah Jun 14 05:14:37 Why u say so Jun 14 05:15:04 amit2912 you took a wrong turn Jun 14 05:15:23 welcome to the jungle ! Jun 14 05:15:24 No way Jun 14 05:15:51 I m very old player of this jungle Jun 14 05:16:00 Be aware of me Jun 14 05:16:31 Can you defeat five monsters with axes, though? Jun 14 05:17:24 Haha Jun 14 05:17:30 Might be Jun 14 05:18:27 g00s: still better than opening the windows and gets blue screen ;) Jun 14 05:18:32 guys , is the moto G a good buy for a development device ? Jun 14 05:18:45 alexi5: Probably. Jun 14 05:18:53 is the g 2015 out yet ? Jun 14 05:19:13 Is it Android 5 ? Jun 14 05:19:14 thats what i would get. funny its JBQs driver phone Jun 14 05:19:19 Anyone have any fixes for the NavigationView not allowing checked items in submenus? Really cramping my style Jun 14 05:19:34 desmin88 file a bug Jun 14 05:19:41 or feature request Jun 14 05:19:50 I ask because I am looking for a device thats not expensive but I can use to test my apps Jun 14 05:19:56 not on the weekends though, i notice those don't get triaged as often :) Jun 14 05:20:17 alexi5 yeah moto e or g is probably fine Jun 14 05:27:17 yeah alexi5, I use the moto g as a dev device. Jun 14 05:32:33 interesting graphic http://i.imgur.com/lMgMeoU.png Jun 14 05:38:11 guys please suggest me a easy to use drag and drop list view library Jun 14 05:38:43 meadhikari recylerview got some new dnd stuff Jun 14 05:38:53 its pretty new, so you'll have to figure it out Jun 14 05:44:01 g00s: Jun 14 05:44:08 hey thepoosh Jun 14 05:44:38 thepoosh another day in paradise ? Jun 14 05:44:40 meadhikari: https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html Jun 14 05:44:45 you know babe Jun 14 05:45:13 Question about best practices. I have a TextView with a string that will never change. Is it better to set the text in XML or should it always be set programatically? Jun 14 05:45:28 liuwenhao: xml Jun 14 05:45:33 but use strings.xml Jun 14 05:46:09 when you set it in xml you save the loading of resources and re-draw of the screen after invalidating the view Jun 14 05:46:47 meadhikari http://developer.android.com/reference/android/support/v7/widget/helper/ItemTouchHelper.html Jun 14 05:47:45 g00s: have a chance to play with the new support lib? Jun 14 05:48:11 nah, these days i wait a while before trying any new google stuff Jun 14 05:48:19 hmmmf Jun 14 05:48:27 otherwise, all i do is find bugs and get mad Jun 14 05:48:27 it looks cool Jun 14 05:48:33 i like the design lib Jun 14 05:48:40 it is trash Jun 14 05:48:41 in the concept Jun 14 05:48:48 oh crap Jun 14 05:48:53 desmin88: what went wrong? Jun 14 05:48:57 "All a FAB is is a circle with a shadow" ~ said at keynote Jun 14 05:49:05 but they still fuck it up after mocking other devs Jun 14 05:49:27 yeah i mentioned that the other day and told i complain too much Jun 14 05:49:32 hehe Jun 14 05:50:00 well, do you? Jun 14 05:50:13 http://i.imgur.com/9t9ZzRt.png Jun 14 05:50:37 Thank you thepoosh. Was just curious about the best way to do it, as I've been usually doing it programatically Jun 14 05:50:45 thepoosh probably "express dissatisfaction or annoyance about a state of affairs or an event." Jun 14 05:50:56 liuwenhao: np Jun 14 05:51:26 but desmin88 is right, "its just a view they said, its so easy they said" Jun 14 05:51:42 well then i guess if they can't do it , they suck Jun 14 05:52:01 how ironic of them to mock other devs then turn around and they cant do it themselves Jun 14 05:52:27 well, we implemented FAB ourselves and it's awesome Jun 14 05:52:30 so fuck them Jun 14 05:52:38 i hate fab anyhow, so i don't care Jun 14 05:52:50 https://www.youtube.com/watch?v=ndBdf1_oOGA&feature=youtu.be&t=1020 Jun 14 05:52:53 the fab itself is a stupid distraction Jun 14 05:52:55 fucking chet haase Jun 14 05:53:17 hmmm Jun 14 05:53:43 this is a good read https://medium.com/tech-in-asia/material-design-why-the-floating-action-button-is-bad-ux-design-acd5b32c5ef Jun 14 05:53:55 desmin88: we made it open a menu like in Inbox, and the play store people told us it's against the material guidelines Jun 14 05:54:11 google is inconsistent Jun 14 05:54:46 when we said that inbox behaves like that they said "well, inbox is not featured and never will be" Jun 14 05:54:51 that pissed me off Jun 14 05:54:56 lol Jun 14 05:55:24 for example, youtube is the only google app with the share arrow rather than three dots Jun 14 05:55:24 thepoosh but why would you use fab to open a menu ? Jun 14 05:55:45 quick actions Jun 14 05:55:59 it seemed like a good UI/UX pattern Jun 14 05:56:11 what about a swipe up menu Jun 14 05:56:14 that would be neat Jun 14 05:56:22 there was one the other day Jun 14 05:56:32 that darkens the ui, like a nav drawer but upwards from the bottom Jun 14 05:56:35 what is android support repository used for? Jun 14 05:56:59 rrr: for reading documentation Jun 14 05:57:02 well mayb not swipe up https://github.com/Flipboard/bottomsheet Jun 14 05:57:10 not sure how they want you to activate it Jun 14 05:57:15 it was our designers thing, not mine Jun 14 05:57:28 I am but a simple programmer Jun 14 05:57:36 with bad understanding of how users think Jun 14 05:57:40 i do what I'm tokd Jun 14 05:57:43 *told Jun 14 05:57:55 thepoosh: ah doc and samples, etc? Jun 14 05:57:58 CedricBeust you got featured on androidweekly.net #157 Jun 14 05:58:16 rrr: read it and learn Jun 14 06:00:43 g00s: cool Jun 14 06:00:49 thepoosh: where to read? Jun 14 06:01:13 rrr: you're asking a question that can easily be answered by reading the intro in the docs Jun 14 06:01:22 CedricBeust: what do you do? Jun 14 06:01:56 thepoosh: ok Jun 14 06:02:02 CedricBeust has gone before us to pave the way of using rx and kotlin on android :D Jun 14 06:02:18 what is web driver for? Jun 14 06:02:19 and blog about it, and live to tell the tale Jun 14 06:02:56 * CedricBeust drinks to that Jun 14 06:06:04 this is nice https://plus.google.com/+JoshBrown42/posts/FzNghPbKk2s Jun 14 06:07:45 ah, so new tip: if your gradle build crashes multi-dexing increase the heap Jun 14 06:17:51 Whats the best way to figure out how close you are to the method limit? Jun 14 06:20:18 liuwenhao i filed an enhancement with tools team to add a report in AS, i think they said 1.4 Jun 14 06:20:39 otherwise there are some scripts you can use Jun 14 06:21:02 Nice. I'll probably wait until then because I don't think I'm close to the limit yet. Great to see it's getting added officially though Jun 14 06:21:19 liuwenhao you can also try https://github.com/KeepSafe/dexcount-gradle-plugin Jun 14 06:29:54 Perfect, thank you Jun 14 06:36:56 hello Jun 14 06:37:39 hello. Jun 14 06:56:46 hi Jun 14 06:57:25 hi thepoosh Jun 14 06:57:30 :P Jun 14 07:15:54 Is there a way to reset in-app purchases in Google Play? I’m trying to find a bug but now it keeps giving it to me for free as I’ve bought it once Jun 14 07:16:06 The bug happens when I purchase the item - it shows a ‘failed’ popup then a ‘success’ one, I’m trying to see if I’ve fixed this Jun 14 07:16:43 I wanna try creating a 2d game on android , i came up with this cocos2d is the best out there ? Jun 14 07:18:42 there are other engines, for example libgdx or unity. Jun 14 07:33:03 what are some good prototyping tools that can be used to prototype android designs ? Jun 14 08:06:29 I use Ninjamock for quick mockups before I actually start creating a screen in xml Jun 14 08:06:51 Depends on how deep you want to go with it though. There are some very advanced tools or stuff like ninjamock that is quick and easy to use on the fly Jun 14 08:14:28 Hi Jun 14 08:14:35 Anyone Jun 14 08:33:35 Hi! :D Jun 14 09:25:24 Hi! :D Jun 14 09:41:31 hello Jun 14 09:41:38 HunterD: Jun 14 09:41:54 hi bepolite Jun 14 09:42:58 is it possible to create android live wallpaper with only c/c++ (ndk) code? Jun 14 09:43:32 HunterD: I don't know mate Jun 14 09:43:41 I'm a newbie still trying to learn Jun 14 09:44:04 what are you trying to learn? Jun 14 09:45:20 Android Development Jun 14 09:45:32 How to create Mobile Apps with Java Jun 14 09:46:58 HunterD,how are you toing to get android to run your c/c++? Jun 14 09:47:57 I want to try to make a live wallpaper with as little java code as possible, none should be the best. more as an exercise in hacking android apps :D Jun 14 09:48:24 HunterD, so you want to make it an app Jun 14 09:48:30 yes Jun 14 09:48:55 and I want to develop in C on destkop Jun 14 09:49:05 I already have somehting similar for native activity Jun 14 09:49:38 I can do opengl code that will run on both desktop (using opengl es emulator library) and android Jun 14 09:49:47 as an app, you'll still have to use the java vm interfaces to get to a wallpaper intent Jun 14 09:50:08 I see Jun 14 09:50:35 this is because there is not yes something similar to android native activity for the wallpaper service/engine ? Jun 14 09:50:44 yet * Jun 14 09:51:18 more so, the c/c++ ndk isn't going to let you out of the app vm Jun 14 09:51:46 so any app no matter how is made, will still run inside a vm? Jun 14 09:52:30 HunterD, yes, otherwise you'd have to have root permissions to change things Jun 14 09:53:00 I see. thank you redengin Jun 14 09:53:23 are you really developing an app or malware :) Jun 14 09:54:28 anyway, not sure what c/c++ is going to buy you on 3d, when its going to be graphics card dependent Jun 14 09:55:34 err, not card anymore, gpu :) Jun 14 09:55:36 I try to learn how to do a small engine that will render using opengl es on both desktop and andorid devices. live wallpaper integration would be cool to have Jun 14 09:56:09 and the engine to be written in c/c++ Jun 14 09:57:15 I wouldn't expect android to have opengl libraries Jun 14 09:57:44 *opengl es Jun 14 09:57:49 err, native open gl libraries Jun 14 10:00:44 HunterD, you swear you aren't doing malware? Jun 14 10:00:46 Hey folks! I have an in-house app which I am about to ship to different customers who require slightly different configurations (hosts, some resources such as logos).. Are there any best-practices around? Jun 14 10:01:25 why is malware stuff similar to my questions? Jun 14 10:01:51 pehlert, use flavours Jun 14 10:01:57 I do swear I do no malware! Jun 14 10:06:21 danijoo: Thanks, will have a look :) Jun 14 10:07:59 HunterD, ok, I checked my phone, there are libGLES native libraries Jun 14 10:08:18 HunterD, can't be sure whether ndk allows you to dynamically link to them Jun 14 10:13:29 I'm using an autocompletetextview with an arrayadapter, however the first time I use it, it completes correctly, then new words aren't added to the adapter, any idea? Jun 14 10:13:48 it seems it keeps using the "old" set of items Jun 14 10:15:21 code? Jun 14 10:34:45 ah, solved, I wasn't using adapter's add but list's add method Jun 14 11:23:02 If I have a ResourceCursorTreeAdapter that contains the data for an ExpandableListFragment, how can I add entries to the Adapter without modifying the data? I.e. add a certain entry by default without changing the data? Jun 14 11:28:52 Where would be the best place to add the default entry? If I am using a Loader, then in onLoadFinished()? Jun 14 11:34:48 I have a question. I want to update to AS 1.3 latest preview. I have downloaded the files for it. Is it just to replace old files with new files? Jun 14 11:35:44 Rorro: You can update with the update feature straight from your previous version of AS. Jun 14 11:36:00 Rorro: Just set the download channel appropriately. Jun 14 11:36:10 I only get a "download" button without any install button. So I am only able to download the files Jun 14 11:37:28 Anyone here used the new Visual Studio Emulator for Android? Jun 14 11:37:49 Anyone heard of it? Jun 14 11:38:22 Not heard of it. I have been using Genymotion for a long time now Jun 14 11:38:46 Rorro: I can do Update and Restart straight from AS. Jun 14 11:38:56 Rashad: Yes. Jun 14 11:39:08 barq: heard but not used? Jun 14 11:39:16 Rashad: Yes. Jun 14 11:39:21 My current version is very outdated I believe barq. I am currently on 0.8.0 Jun 14 11:39:34 Actually the new emulator is quite impressive compared to the standard one, but I am experiencing a bug that makes my internet keep disconnecting. Jun 14 11:39:43 Rorro: Then maybe that version doesn't support that way of updating yet. Jun 14 11:40:09 Yeh, that's what I figured. Need to make it work another way. I'll try other things Jun 14 11:41:25 Rorro: You can install from your download. Jun 14 11:43:34 How can I add a manual entry with a ResourceCursorTreeAdapter? What method is best to override? Jun 14 11:45:12 hi, is there any default shortcut to cycle among opened tool panes in AS? Jun 14 11:45:14 hmm. barq, I got all the files when downloaded the new AS so I only had to run the .exe file to run it. All came in a zip file Jun 14 11:45:25 so no installation. That's kinda annoying Jun 14 11:47:35 this is where I downloaded from http://tools.android.com/download/studio/canary/latest Jun 14 11:55:29 barq, if you add the entry to the database the cursor is pointing to, it wil automagically update Jun 14 11:56:59 danijoo: I only want to add this entry though, if the cursor contains an entry in the first place. So I think I would need to modify the cursor after getting the query result. Jun 14 11:57:33 i dont get it Jun 14 11:58:02 a cursoradapter only shows entry of the table the cursor is pointing too Jun 14 11:58:14 you cant temporlly add items to it Jun 14 11:59:26 danijoo: I have an empty list, and can add items to it. Once at least one item is added I want a second entry to be added, but only in the case that I have at least one item in the first place. Otherwise, don't show it. Jun 14 12:00:20 check if theres one entry in the table, and if yes, add another one Jun 14 12:03:32 danijoo: So I would not modify the entries at the database level but at the ExpandableListFragment level? Jun 14 12:06:27 I'm confused at which point to add this bit? Or whether to do it in the Loader.onCreateLoader Jun 14 12:06:44 no. you must edit the database if you are using cursors Jun 14 12:07:22 or you couild use a matrix cursor Jun 14 12:07:27 never done that tough Jun 14 12:10:55 if I set background process limit to No Processes in dev options on the device, everything seems to be still working, is there something that won't work ? Jun 14 12:11:39 I think that will save me a lot of battery Jun 14 12:12:42 danijoo: Does something like this not work? http://pastie.org/private/bxep0fva3uwz4rns4eo3q Jun 14 12:23:41 shmoooz, i dont think this really affects battery life Jun 14 12:24:10 Yep, just makes your phone run slower Jun 14 12:24:34 (Like most of dumb "optimizations" people do on XDA/Reddit) Jun 14 12:24:36 i think its even bad battery wise because it has to recrreate the stuff every time you open an app Jun 14 12:24:51 which means more cpu usage while phone is used Jun 14 12:31:35 hey Jun 14 12:34:23 ho Jun 14 12:40:36 danijoo: So I would need to query, check if the result contains more than one item, if so, add my other item manually to the database and then requery? Jun 14 12:41:42 you dont need requery Jun 14 12:41:51 cursors adjust themselves Jun 14 12:42:25 I add the item from one Activity and use a CursorLoader in the second Activity. What would be the best point to check and add the new entry? Jun 14 12:43:26 i dont know Jun 14 12:43:34 i think the whole design sounds a bit ugly Jun 14 12:44:07 What would be better? Jun 14 12:44:21 dont know Jun 14 12:46:03 why downloading android-sdk for linux is hanging forever? Jun 14 12:46:15 I guess in onResume of the Activity hosting the List. Jun 14 12:49:20 rrr, must be your linux/network Jun 14 12:50:50 danijoo: it actually downloaded upto 32.4M of 295M then hang there forever Jun 14 12:50:59 danijoo: tried twice Jun 14 12:51:19 fix your net ;) Jun 14 12:53:50 danijoo: how to debug? Jun 14 12:54:21 danijoo: what is the possible reason? Jun 14 12:54:28 i cant help you debug your network Jun 14 13:01:12 rrr, ISP ? Jun 14 13:01:24 keepalived running ? many things Jun 14 13:03:09 Corey84: ? Jun 14 13:03:12 rrr, how /where grbbing it ? Jun 14 13:04:05 could be the ISP throttling could be a crappy slow connect and keepalive is failing could just be a lack of space locally in download_dir many issues come to mind Jun 14 13:04:34 on linux it could also be permissions. Jun 14 13:04:57 Corey84: enough space in download dir Jun 14 13:04:58 would not expect to get 32m down tho on a perm issue Jun 14 13:05:11 if it were 32kb maybe Jun 14 13:05:21 Corey84, if its file by file one file could not be allowed to be wriotten Jun 14 13:05:28 rrr, what distro by chance Jun 14 13:05:36 I can't seem to understand the new android studio. I need to download android sdk's but it only opens settings and I can't seem to get a list like before where I could select packages to install Jun 14 13:05:46 ubuntu 14.4 Jun 14 13:05:51 the sdk as a whole tho has always been one huge file for me Jun 14 13:06:21 Rorro, in marletplace iirc don't have it open atm Jun 14 13:07:29 how to debug keepalive is failing or not? Jun 14 13:07:59 its going slow on my end this am but still downloading rrr just started a re-download to rule out a server side issue Jun 14 13:08:21 waht browser ? Jun 14 13:08:51 there is always wget -C or curl --CONTINUE Jun 14 13:09:47 rrr, to confirm you're grabbing android-studio-ide-141.1980579-linux.zip correct? Jun 14 13:10:02 or jsut the sdk Jun 14 13:10:34 well it is passed 32.4m when downloading on windows. it is http://dl.google.com/android/android-sdk_r24.3.2-linux.tgz Jun 14 13:11:03 so jsut the sdk Jun 14 13:11:06 Hey guys, how can I get a inflated object from my recyclerview ? Jun 14 13:11:21 you have eclipse or studio previously downloaded then? Jun 14 13:11:21 Corey84: yes just sdk no AS Jun 14 13:11:27 mrfreemanblack, why would you want that Jun 14 13:11:35 ^^ Jun 14 13:11:36 theres literally no reason to do that Jun 14 13:11:57 because I need to have this object in my fragment for methodes onPause and onResume Jun 14 13:11:59 trying to make the recyclerview and thinpool ? Jun 14 13:12:01 i don't need those on linux at this time Jun 14 13:12:20 please dont >.< Jun 14 13:12:27 then just extend it why inflate it Jun 14 13:12:41 what you mean with extend ? Jun 14 13:12:44 i am trying using buck which is only available on linux and mac Jun 14 13:13:15 use a damn listener or something else as danijoo said inflating is pointless and bad bad idea Jun 14 13:13:25 buck? Jun 14 13:13:44 wait, the normal recyclerview adapter is inflating every kind of object Jun 14 13:13:58 why is it a bad idea ? Jun 14 13:14:19 can get super ugly fast for on Jun 14 13:14:35 and cross over leakage too Jun 14 13:14:51 you will introducte quadrillion odd bugs and unknown behaviour Jun 14 13:14:52 can quickly go tits up Jun 14 13:15:16 I thought everyone is using a normal adapter which is inflating your views for your recyclerview Jun 14 13:15:16 adapters should never ever expose their views to outside Jun 14 13:15:21 starship entreprise gone missing kinda unknown Jun 14 13:15:29 that is a normal way of doing things with the recyclerview isn't it ? Jun 14 13:15:35 yes Jun 14 13:15:45 alright Jun 14 13:15:46 but you dont edit that views from outside the recyclerview Jun 14 13:16:14 should be a one way door NOT both ways mrfreemanblack Jun 14 13:16:15 so should i take out this kind of view, and add it normal to my view ? Jun 14 13:16:36 depends on what you are trying to do Jun 14 13:16:41 mom Jun 14 13:16:51 Hi, I have got a problem: In my I have embedded the camera and a button. In portrait format everything is displayed correct, but when I rote my phone to landscape format the camera is rotated 90 to the right: https://dl.dropboxusercontent.com/u/4351552/rotation.png. How can I fix it? I would like the camera not to be rotated. Jun 14 13:18:17 @ Corey84 and @danijoo Jun 14 13:18:18 https://www.dropbox.com/s/md2muogjoj3fpmr/Screenshot%202015-06-14%2015.17.50.png?dl=0 Jun 14 13:18:49 the item with "Arbeit beginnen" and the button Jun 14 13:19:02 this is a custom View of mine Jun 14 13:19:22 cant see why you would need to access this outside of your adapter Jun 14 13:19:38 because this custom view has a Service Jun 14 13:19:51 a view cant have a service Jun 14 13:20:16 dex2goat: Tried that. Didn't work :\ Jun 14 13:20:20 a service is independent or bound to an activity Jun 14 13:20:29 but not to a view Jun 14 13:20:45 thats true,sorry Jun 14 13:21:11 I meant I need the object to save the Sharedpreferences Jun 14 13:21:20 why? Jun 14 13:21:32 i dont get it Jun 14 13:22:18 because for example onResume, I need to know the State of my Stopwatch(my customView) Jun 14 13:22:57 dont store the stopwatch state in the adapter Jun 14 13:23:04 store it in the activity and let the adapter use itr Jun 14 13:23:07 -r Jun 14 13:23:37 thank you very much danijoo, especially for your time :* Jun 14 13:24:54 keep things segmented as much as possible makes things safer and MUCH easier to debug Jun 14 13:25:34 thanks Corey84, I will think about it Jun 14 13:26:01 same goes for your local box (pc/laptop) Jun 14 13:26:31 my box has pentest / dev / teaching crap on it and 18 partitions on a single install Jun 14 13:26:54 use of jails on my box is common Jun 14 13:27:06 i have on folder "stuff" where i throw everything in every time i clean my desktop Jun 14 13:27:22 ^^; Jun 14 13:31:25 never cleaned the stuff folder ? :D Jun 14 13:32:24 backup folder ^ Jun 14 13:32:40 backup that folder and you never lose shit Jun 14 13:35:22 does someone use google drive over the 15gb free storage ? Jun 14 13:37:51 I'm trying to improve location accuracy by turning scanisalwaysavailable on Jun 14 13:37:57 new Intent(WifiManager.ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE); Jun 14 13:38:13 but the dialog says "null wants to turn on network scanning" Jun 14 13:38:38 appearantly, null comes from the framework getting null when calling getCallingPackage() Jun 14 13:38:47 why is getCallingPackage returning null? Jun 14 13:44:42 What is the best practice to trace the time spent on your function calls? Is it using Debug.startMethodTracing() with traceview(which says it is deprecated.) Jun 14 13:54:53 found TimingLogger, trying that now. Jun 14 14:31:49 good enough for my case. Jun 14 14:34:32 caint theres also traceview Jun 14 14:34:42 http://developer.android.com/tools/debugging/debugging-tracing.html Jun 14 14:40:16 Bonjorus tout le monde Y'a-t-il un développeur Android qui pourrait m'aider ? Jun 14 14:40:31 Double-Ramzi, english. Jun 14 14:40:52 Hello word, any developper Android can help me ? Jun 14 14:41:27 Hey all:) Jun 14 14:41:32 just ask your question and if someone can help, he will Jun 14 14:45:15 I want to did a bottom bar navigation like http://hpics.li/10dca67 but i dont know wath she use ... Jun 14 14:50:14 that looks like an ordinary linaerrlayout with some imagebuttons in it Jun 14 14:50:35 jetzt Jun 14 14:50:37 fc Jun 14 14:51:02 But, when i start the tab activity all refresh Jun 14 15:06:12 I'm just reading something from Yonatan Zunger, who is "Chief Architect, Google+": "code, data analysis, and so on -- happens entirely from a terminal (its parameters carefully set) and in vim." Jun 14 15:07:01 so the senior engineer on the G+ team does all his technical work in terminal and vim :D Jun 14 15:09:33 Do services and activities reside in the same process by default? can they be made same-process? Jun 14 15:10:28 they do Jun 14 15:10:47 also they can be made different processes Jun 14 15:24:24 I need android:configChanges="rotation|screenSize" but it is not available , just android:configChanges="orientation|screenSize" :( Jun 14 15:24:50 How can I use configChanges and rotation? Jun 14 15:36:40 chili4sale: what do you mean exactly? do you need to know if device is in landscape 90 mode or landscape 270? Jun 14 15:40:23 I need to know if landscape left turns to landscape right or landscape right turns to landscape left Jun 14 15:47:49 chili4sale: one known way to me is to subscribe to OrientationEventListener, then you will get a orientation in range 0..359. a sudden change in value may indicate it's time to call Display.getOrientation Jun 14 15:48:25 it seems there is no way to get config change when landscape left to landscape right occurs Jun 14 16:17:54 icedp: Okay, thank you very much. Jun 14 16:30:58 wow this Android Studio book has only been out for a relatively short time and already it is obsolete Jun 14 16:31:18 I guess Android Studio changes fast :) Jun 14 16:31:56 what is a "book"? x) Jun 14 16:32:54 ktwo: I like books :) Jun 14 16:45:12 oh well sod that book then - even the project structure has changed Jun 14 17:40:48 hey guys Jun 14 17:41:07 is this bad performance? http://lpst.tk/?NHde Jun 14 17:43:01 to give a link without a clue what it is ?, yes that is bad performance Jun 14 17:43:12 I won't click on it Jun 14 17:43:34 shmoooz: it's a function from my listviewadapter Jun 14 17:43:38 can remove dot tk Jun 14 17:43:44 http://htmldp.com/p/?NHde Jun 14 17:44:18 shmoooz: will you click on it now? =D Jun 14 17:44:35 hmmm, I'm paranoid Jun 14 17:44:38 shmoooz: it's just a pastebin Jun 14 17:44:48 let someone else get PWNED first Jun 14 17:44:52 =d Jun 14 17:45:35 shmoooz: here's a scrnshot lol http://img.htmldp.com/19-45-24.png Jun 14 17:46:25 :| Jun 14 17:46:35 any opinions? Jun 14 17:46:36 clues? Jun 14 17:46:38 or something? Jun 14 17:48:01 no idea Jun 14 17:48:33 hTmlDP: why don't you just stress test to find out Jun 14 17:48:48 shmoooz: it's kinda funny Jun 14 17:49:04 shmoooz: i tested it on a 5yr old htc wildfire (374 mb ram, 500MHz) Jun 14 17:49:07 and it lags a bit Jun 14 17:49:08 =d Jun 14 17:49:10 a bit Jun 14 17:49:11 just a bit Jun 14 17:49:33 so then it's good to go Jun 14 17:51:59 hTmlDP: it's hard to read. probably you shouldn't call notifyDataSetChanged a lot times. one time would be enough Jun 14 17:52:14 icedp: okay Jun 14 17:52:21 hTmlDP: also, why do you call .clone()? Jun 14 17:52:38 icedp: the problem is its a dynamically updated listview Jun 14 17:52:54 icedp: it's a serverbrowser that makes you able to scroll the listview while updating Jun 14 17:53:12 icedp: i need to avoid concurrentmodificationexception Jun 14 17:59:30 hmmm Jun 14 17:59:30 hTmlDP: maybe you should look at ConcurrentHashMap Jun 14 17:59:40 hTmlDP: or maybe not. are you saving to database? Jun 14 17:59:42 icedp: i will, thanks Jun 14 17:59:45 no im not. Jun 14 18:00:00 it's a serverbrowser for a q2 based game Jun 14 18:00:54 and concurrentmodificationexception happens only on that htc Jun 14 18:00:59 when i scroll so fast Jun 14 18:01:07 in random moments Jun 14 18:02:57 TacticalJoke: hey man you're smart Jun 14 18:03:16 do you know how to avoid concurrentmodificationexception here http://htmldp.com/p/?NHde? Jun 14 18:03:23 http://htmldp.com/p/?NHde * Jun 14 18:03:38 it's a part of my listviewadapter Jun 14 18:04:03 the exception occurs only on a 5 yr old htc wildfire running FroYo Jun 14 18:06:09 Why do you need to set `isDisabled`? Who else is checking that flag? Jun 14 18:07:08 TacticalJoke: getView() Jun 14 18:07:48 i've found a temporary solution Jun 14 18:08:02 i surrounded changedataset with a try block Jun 14 18:08:29 =d Jun 14 18:12:57 Can you post the Adapter.getView implementation too? Jun 14 18:12:57 TacticalJoke hell is other people's code :D Jun 14 18:13:24 oh this crashes, lets just put a try block around it ugh Jun 14 18:13:26 When I request a feature from user using an intent Jun 14 18:13:38 is it possbile to specify my own message Jun 14 18:13:59 when I do startActivity(new Intent(WifiManager.ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE)), I get "null wants to turn on network scanning" Jun 14 18:14:19 I don't get why it says null Jun 14 18:14:24 iSiamaster: it was temporary =p Jun 14 18:14:28 sry Jun 14 18:14:33 g00s: * Jun 14 18:14:52 now i use concurrenthashmap + i removed the isdisabled thing Jun 14 18:15:02 I loved that `catch (NullPointerException e) { /* do nothing */ }` thing the other day. :D Jun 14 18:15:04 now it works very well :] Jun 14 18:15:08 haha Jun 14 18:15:10 hTmlDP you have to make sure that you are not iterating over the data structure and mutating it at the same time Jun 14 18:15:26 so swap one thing in for another completely Jun 14 18:15:29 g00s: i've done it :] Jun 14 18:15:35 Is `getView` mutating it? Jun 14 18:15:38 g00s: it doesn't crash on the worst phone ever Jun 14 18:15:39 no Jun 14 18:15:41 That's weird design if so. Jun 14 18:15:42 Okay. Jun 14 18:15:43 it's retrieving Jun 14 18:15:52 What's mutating? Something must be. Jun 14 18:16:05 =] Jun 14 18:16:18 it works on one of the worst phones so its fine. Jun 14 18:16:32 Yeah, but it's a good idea to understand what went wrong regardless. Jun 14 18:16:40 TacticalJoke: i do understand :] Jun 14 18:16:41 If it's a bug in that phone, fair enough, but who knows. Jun 14 18:16:42 hTmlDP: the cause is relatively clear from the exception alone. you're modifying something while you're iterating over it. either you have multiple threads accessing that block, or you are doing something to cause that in that block or elsewhere. most likely: be more careful with threads. Jun 14 18:17:07 groxx: as i said, concurrenthashmap fixed it. Jun 14 18:17:14 (Though I doubt this would be a bug. The code behind this exception is pretty simple.) Jun 14 18:17:19 it didn't "fix" it, it hid it. Jun 14 18:17:21 groxx: there is no better solution Jun 14 18:17:25 i think. Jun 14 18:17:29 hTmlDP: So what is mutating the collection? Jun 14 18:17:33 the list is dinamically updated. Jun 14 18:17:39 If you don't figure that out, who knows whether it's fixed. Jun 14 18:17:55 if you don't know what it's coming from, you've "fixed" it by using something that doesn't throw the exception. the problem still exists, you're just ignoring it. Jun 14 18:18:36 changeDataSet() was the only function that iterated that thing Jun 14 18:19:18 then it's probably threading related Jun 14 18:20:38 it's 99.999% more likely that you have a flaw in your code than that the exception is being thrown incorrectly. _possible_, but exceedingly unlikely. it's far more likely that it's just that the froyo device is slow enough that it happens more often, or it optimizes differently, or its threading is different. (all of which is 100% fine) Jun 14 18:21:51 why is arg0 whatever it is is modified anywhay? hTmlDP Jun 14 18:22:25 I'd be interested in seeing the code just for fun. :D Jun 14 18:23:05 Interested to see what kinda weird edge-case this is. Jun 14 18:24:08 why is arg0 whatever it is is modified anywhay? hTmlDP Jun 14 18:24:10 receive new data, add it to adapter's dataset Jun 14 18:26:52 On a side note, `arg0`, `arg1`, and `arg2` are the worst parameter names ever. :D Jun 14 18:27:01 It looks kinda like decompiled code. Jun 14 18:28:20 TacticalJoke: still so cute <3 Jun 14 18:33:41 Ah, I found the solution to my problem Jun 14 18:33:44 weird Jun 14 18:34:24 since I used startActivity instead of startActivityForResult, getCallingPackage returned null in the framework Jun 14 18:34:58 I would call this a bug, wouldn't you? Jun 14 18:35:47 Hi! Does someone know why SettingsActivity goes back to MainActivity (SettingsActivity is opened from another activity) when pressed SettingsActivity's up navigation button and not to the previous activity. I created the SettingsActivity with with a subclass of PreferenceFragment. Jun 14 18:35:56 "Note: if the calling activity is not expecting a result (that is it did not use the startActivityForResult(Intent, int) form that includes a request code), then the calling package will be null." Jun 14 18:36:01 perhaps gettingCallingPackage should return null, but the framework should definitely not display "null wants to turn on network scanning" Jun 14 18:36:05 The hardware back button works as expected Jun 14 18:37:48 Putti: What's causing an Up press to go to the main activity? parentActivityName? Jun 14 18:38:41 TacticalJoke, I am trying to look for that but I cannot find it. Could it be defined in xml? Jun 14 18:38:51 Look in AndroidManifest.xml. Jun 14 18:40:35 TacticalJoke, oh, thanks! Found parentActivityName="....MainActivity". How can I apply the parent activity to be the activity where settingsActivity was started? Jun 14 18:41:11 Remove the parentActivityName thing and handle the Up press with `finish();`. Jun 14 18:41:25 Then it does the same as a Back press. Jun 14 18:42:41 hey guys, i'm having trouble adding an icon to my actionbar, am i wrong to try to define this within the menu xml? Jun 14 18:45:13 TacticalJoke, after what I call finish()? Jun 14 18:45:27 startActivity() of..? Jun 14 18:49:38 TacticalJoke, found StackOverflow answer for that! But thanks for helping me :) Jun 14 18:49:53 so i'm defining android:icon="@drawable/some_icon" but my actionbar isn't using the icon Jun 14 18:50:10 this is in the section of the manifest Jun 14 18:51:14 how does one dial something like *#06#? I can't seem to Uri.parse # Jun 14 18:51:17 arussellsaw: You want an icon on the left? Jun 14 18:51:24 yeah Jun 14 18:51:44 If you're using AppCompat 21+ they won't show by default, I think. Jun 14 18:51:46 If I remember right the new versions of android don't show it by default? Jun 14 18:51:53 It's not recommended to show an app icon anymore. Jun 14 18:51:59 oh right Jun 14 18:52:00 okay Jun 14 18:52:14 well i'm using a slide out menu, and i'd like to indicate there's something there Jun 14 18:52:42 is the hamburger icon still recommended Jun 14 18:53:17 Yes. Jun 14 18:53:23 is the ah Jun 14 18:53:32 hamburger icon defined differently? Jun 14 19:07:10 meh, I can now get the # symbol on my dialer, but it's not the same as the one from the dialer... Jun 14 19:16:10 arussellsaw: I haven't used it yet, but I think the new NavigationView is probably the best solution: http://android-developers.blogspot.co.uk/2015/05/android-design-support-library.html Jun 14 19:20:15 What's the diff between new Intent(Intent.ACTION_DIAL, Uri.fromParts("tel", "*#06#", "#")); and dialing *#06? I don't see the IMEI code like this :( Jun 14 19:21:53 gavit: I don't think you can catch *#06#, because it's not really dialing Jun 14 19:50:07 The API I am using is returning 200 status even for errors, and puts the error message in the JSON instead. Now I am using retrofit, but whenever I write a custom Client to catch these errors, I end up with a 0byte body... Jun 14 19:50:49 I am wondering if running GSON beforehand destructs the body. But I copied the originalResponse, and still the same thing. Jun 14 19:52:40 Hi guys. I need to start new Activity in AsyncTask.onPostExecute(). But when I start it there entire UI becomes hanging. Can somebody explain me the right of how do I start activity from onPostExecute? Jun 14 19:55:15 AlexBerdnikov, it probably hangs due to an exception Jun 14 19:55:17 read the logca Jun 14 19:55:17 t Jun 14 19:56:31 Mavrik, no logcat doesn't show anyting unusual Jun 14 19:56:36 No exceptions Jun 14 19:56:50 Then AsyncTask probably eats the exception Jun 14 19:58:57 Mavrik, when I change startActivity(...) code with a simple Toast showing everuthing is just fine Jun 14 19:59:11 AlexBerdnikov: show us a part of your code Jun 14 20:05:14 hTmlDP, http://pastebin.com/bJ7VFump Jun 14 20:06:41 hTmlDP, fixed version http://pastebin.com/0wbGGbiq :) Jun 14 20:06:51 AlexBerdnikov: nice :] Jun 14 20:07:47 AlexBerdnikov: haha wrong context =d Jun 14 20:08:28 Yes, I edited the code a bit, removed plenty of irrelevant to this problem code... Jun 14 20:08:39 :] Jun 14 20:12:49 hTmlDP, forget, I found the bug... the Activity I call is fully transparent. How stupid I feel now... Jun 14 20:12:59 haha Jun 14 20:13:10 anyone else having lots of 'Aw, Snaps' with desktop Chrome? i even get it for new blank pages ! Jun 14 20:13:19 this started with chrome 43 Jun 14 20:13:42 ANd to find it I had to spend a half of an hour and eventually ask such a stupid question on IRC Jun 14 20:13:45 can't wait for next FF with e10 Jun 14 20:13:53 lol i was fighting with a concurrent modification exception in my listview adapter today Jun 14 20:14:05 just made the update thread wait for the adapter to post the changes. Jun 14 20:15:11 hTmlDP: Why are you using multiple threads for this? At first hearing, that sounds dodgy. Jun 14 20:15:34 TacticalJoke: why? it downloads the content from multiple servers Jun 14 20:15:58 TacticalJoke: tell me a better solution Jun 14 20:16:01 That... sounds terrible. Jun 14 20:16:25 ? Jun 14 20:16:47 i would put them on some queue Jun 14 20:17:02 well, it does its job pretty well Jun 14 20:17:56 i runonuithread ofc Jun 14 20:18:00 use * Jun 14 20:19:00 TacticalJoke: tell me what's wrong in threading when it's safe Jun 14 20:19:38 This fact alone should send alarm bells ringing: One thread was mutating a collection while another was iterating it. Jun 14 20:20:07 And your fix, you said, was to make one thread wait for a ListAdapter to update. That also sounds like trouble. Jun 14 20:20:11 TacticalJoke: now it waits for the listview to update on ui thread Jun 14 20:20:15 hTmlDP: Can you post all the code? Jun 14 20:20:48 maybe not all because it's not that small Jun 14 20:20:49 You have a thread responsible for downloading stuff waiting for a ListView to do stuff? That's not good. :D Jun 14 20:21:23 It sounds like you have a bunch of different things overlapping when they should be completely separate. Jun 14 20:23:04 hey hi Jun 14 20:30:30 Hello guys! Jun 14 20:31:02 Could someone help me figure how to add event handlers to catch mouseClicks on this Fragment please : https://gist.github.com/anonymous/f17b037481a30275cabc Jun 14 20:31:42 This is currently showing this error message : “Content view not yet Created” Jun 14 20:32:15 I already tried to move the eventHandlers to inside a onCreateView method but nothing changed. Jun 14 20:33:00 aight Jun 14 20:33:08 here's my listviewadapter http://lpst.tk/?oGNV Jun 14 20:33:24 ircfox_: Don't you have to do that in onCreateView or something? Jun 14 20:33:31 The problem is probably relating to `getListView`. Jun 14 20:33:39 and here's the updating thread http://lpst.tk/?DcUn Jun 14 20:33:41 And you can verify that by looking at the exception stack trace. Jun 14 20:33:49 TacticalJoke: here you are =d Jun 14 20:34:07 TacticalJoke: I did it but.. well le tme try again then. Jun 14 20:34:15 hTmlDP: How about ListViewUpdater? Jun 14 20:34:44 http://lpst.tk/?rORq Jun 14 20:34:49 ^code on GPL Jun 14 20:35:12 ListViewUpdater is crappy, don't even ask me why Jun 14 20:35:20 im gonna optimize everything tomorrow Jun 14 20:35:29 atm, it works well on htc wildfire Jun 14 20:36:47 This code gave me cancer. Jun 14 20:37:09 hTmlDP: So `changeDataSet` runs on a background thread? Jun 14 20:37:10 Mavrik: u mean listviewupdater? Jun 14 20:37:25 TacticalJoke: changedataset is called from listviewupdater Jun 14 20:37:33 TacticalJoke: so it is called on UI thread. Jun 14 20:37:45 hTmlDP: you're modifying the collection after you pass it to something being runOnUiThread. aka ConcurrentModificationException in a nutshell. Jun 14 20:37:47 Mavrik: it is crappy, i will optimize it tomorrow Jun 14 20:38:07 It's not about optimization, it's about overall naming and code quality -_- Jun 14 20:38:16 Is there a simple way to create a SocketAddress that represents a machine that is debugging the current application? Jun 14 20:38:21 Might wanna invest in Code Complete or one of similar books. Jun 14 20:38:35 Mavrik: im 16 and know java/android for 1 month =p Jun 14 20:40:09 this reminds me. does anyone know of any good "how to grok threads" things out there? I'm not sure how to get people over that hurdle aside from e.g. bashing it into them repeatedly by coding things until something clicks. Jun 14 20:41:34 groxx, there's the legendary "Java Concurrency in Practice" book Jun 14 20:41:46 which should be applied with a hitting force upon a newbie Java programmer until it sticks. Jun 14 20:41:57 haha Jun 14 20:42:09 hTmlDP, https://source.android.com/source/code-style.html Jun 14 20:42:10 I still haven't leafed through that one :) maybe I'll hunt it down finally. Jun 14 20:42:45 JCIP is really is more about concurrency than low level java threading. but some might argue even it is too low lebel , hence rxjavs :D Jun 14 20:42:50 Yeah, I mean it's kinda basic if you worked with it a long time, but still explains quite few gotchas and ways how to do concurrency Jun 14 20:42:56 hTmlDP: Your background thread should be giving a *new* collection to the foreground thread, not giving a collection which it later mutates. That's a recipe for failure. Jun 14 20:43:03 And, yeah, the whole design is problematic. Jun 14 20:43:09 TacticalJoke: I moved the eventHandlers to inside a onCreateView method as : https://gist.github.com/anonymous/df1d360285050ad4e1db Jun 14 20:43:23 TacticalJoke: but none has changed. Jun 14 20:43:24 Mavrik: yeah, I'm mostly interested in finding something I can recommend. I don't want to write it myself :| Jun 14 20:43:26 TacticalJoke: i will =] Jun 14 20:43:28 g00s, using RxJava doesn't protect you from doing silly non-thread safe things sadly :/ Jun 14 20:43:38 groxx, yeah, that's the go-to book Jun 14 20:43:45 together with Code Complete and a few of them Jun 14 20:43:52 ircfox_: What does the exception stack trace say? Jun 14 20:44:03 i guess it would be nice if they updated JCIP though, its getting kinda old Jun 14 20:44:20 My favourites were Code Complete 2 and Clean Code, I think. Jun 14 20:44:22 hTmlDP, yeah, rule of thumb when dealing with concurrency is - don't mutate stuff your thread doesn't own... pass a new ArrayList instead Jun 14 20:44:34 Mavrik: i get it =] Jun 14 20:44:59 Mavrik: what's wrong in the naming? Jun 14 20:45:03 code complete reads, to me, like "hey, managers who don't program, here's a massive checklist you can use to control your minions" :| definitely some useful stuff, but omfg is it Enterprise™ and pointlessly huge Jun 14 20:45:04 Also I'd rather not pass the views itself to background workers - let them deliver the result and then update the views in the Activity/Fragment the view belongs to (via callback, rxjava, event, whatever) Jun 14 20:45:29 hTmlDP, there's a Java naming standard that's used pretty much by anyone that keeps code neat and consistent (see my link :) ) Jun 14 20:45:48 Mavrik: which link? =D Jun 14 20:45:51 Yeah, I have never read Code Complete in its entirety. Lol. I've read it several times, but I always stop about 5/6 of the way through. Jun 14 20:45:54 ah nvm Jun 14 20:45:55 groxx, it's basically full of advice you get taught by a mentor on the first job if he's worth a damn Jun 14 20:45:58 It's enormous. Jun 14 20:46:14 TacticalJoke: https://gist.github.com/anonymous/6dd53e67867f27ccb337 Jun 14 20:46:21 I read either v1 or v2, completely. I was bored :| Jun 14 20:46:23 groxx, but in the latest worship of self-taught programmers, it can commonly happen people aren't hit with good practices commonly enough ;) Jun 14 20:46:32 Mavrik: that's a pretty good summary of how it feels, yeah :) Jun 14 20:46:36 It's still `getListView`. Jun 14 20:46:37 is my code very bad as for a guy who knows java for about 1 month? Jun 14 20:46:39 and yes, if you had a good mentor / team to work with you know most of it Jun 14 20:46:53 hTmlDP, nah Jun 14 20:46:54 which is _useful_, to be clear. it just seems like it's presented in the wrong format. Jun 14 20:47:09 Yeah, it's meant for LargeCorp(tm) developers Jun 14 20:49:04 Hmm, I guess you have to use onActivityCreated? Jun 14 20:49:28 Do you really need ListFragment? It doesn't really give you much. I see it and ListActivity as really weird classes. Jun 14 20:49:31 Let me test, just a sec please. Jun 14 20:49:45 Guys, I'm using flavors to ship to different versions of my app. Now I'd like them to have different app icons, so I have src/main/res/drawable-nodpi/icon.png and src/flavor1/res/drawable-nodpi/icon.png.. However, it always seems to use the former for all flavors. Did I get anything wrong? Jun 14 20:52:00 TacticalJoke: yes, tha was it. I never understand very well those Fragment/Activity methods anyway. Guess I should read a book for that. Jun 14 20:52:58 TacticalJoke: thank you very much! Jun 14 20:54:28 pehlert: hm. that's what I'd expect would work... when I make a new drawable resource for a flavor, that's where Android Studio puts it (well, with "alpha" instead of "flavor1", but I assume you're using the right name). try gradle sync / rebuild? Jun 14 20:54:54 since when are icons nodpi? Jun 14 20:55:15 there is that. maybe it's using a different image file? Jun 14 21:01:11 is there a way to setup on "android.support.v7.widget.SearchView" on "android.support.v7.app.ActionBarActivity" to not occupy whole action bar? I have some other buttons there and when searchView expand, other buttons dissapear (on smaller devices). Jun 14 21:01:29 If I am overriding View newChildView and want to return an invisible view, what is the best way to do this? Jun 14 21:01:29 groxx: Many thanks for the answer. It turned out that it wasn't deployed to the emulator properly due to some weird issue. I just restarted the emulator and it worked :) Jun 14 21:01:41 magic fix FTW Jun 14 21:02:03 Different question now: My app opens in the emulator, immediately closes again and there is nothing in the logcat logs.. Is there anything I can do? :-/ Jun 14 21:02:25 kill-emacs Jun 14 21:02:44 I can create a view and setVisibility to gone, but is there a way to just return a blank View more easily? Jun 14 21:02:56 dunno. try turning off the filter in logcat (by default it's set to the "current" app, which can sometimes get lost if it doesn't run long enough, and some errors are reported by the system, not your app) Jun 14 21:04:14 barq: What are you referring to? CursorAdapter.newChildView? Jun 14 21:08:10 TacticalJoke: ResourceCursorTreeAdapter Jun 14 21:08:35 bolovanos: if it didnt expand to take up the whole actionbar on smaller devices it would be unusable almost Jun 14 21:10:55 desmin88, it is ok - without suggest, that i do not use Jun 14 21:11:51 groxx: Nope, that didn't help unfortunately :-/ Jun 14 21:11:58 once I had it expanded with button on smaller display, but it was probably due to relative design, and setIconifiedByDefault(true) which i need set to false Jun 14 21:14:16 pehlert: dunno. make sure you're not suppressing exceptions (either rethrow or log, don't just ignore), and/or check that your `finish()` calls make sense, since you might be accidentally closing things "correctly" Jun 14 21:16:15 desmin88, you know "magic" switch to convince action bar not to populate whole action bar and behave in this manner |[searchView][btn]| ? Jun 14 21:16:34 instead of |[searchView]| Jun 14 21:16:39 nope Jun 14 21:19:37 How can I change the color of the status bar on v21+ when using the appcompat theme? Right now I just get a white color Jun 14 21:21:07 desmin88, have u seen this? http://stackoverflow.com/questions/26702000/change-status-bar-color-with-appcompat-actionbaractivity Jun 14 21:21:20 yes Jun 14 21:28:27 On my activity with a nav drawer, my status bar is correctly colored to my primary dark. On activitys w/o the nav drawer ,its just a white colr Jun 14 21:29:03 get this Jun 14 21:29:46 I was at an interview on Saturday, they want someone to delegate apps to, iOS and Android, as part time, 4 hours on weekdays, 16 hours on weekends Jun 14 21:30:02 1 guy so that they can reduce the friction of having to deal with 2 people or more, just 1 guy everything Jun 14 21:30:06 budget $1,500 Jun 14 21:31:08 can you fucking imagine Jun 14 21:32:37 its like begging Jun 14 21:34:23 'unpaid intership, masters required, phd is a plus, 10+ yrs experience in android development, Work with a great team! Jun 14 21:35:04 Odaym, 4hrs each weak day? Jun 14 21:35:22 yes Jun 14 21:35:32 that's 36 hours total, I work 40 hours per week and its called full time Jun 14 21:35:41 and i get paid more than that, for JUST android Jun 14 21:35:45 the guy's insane Jun 14 21:35:50 what a cheapass fucker Jun 14 21:35:56 what country? Jun 14 21:36:03 i mean sure we are in Lebanon, but my guy pays me fair! Jun 14 21:36:09 oh Jun 14 21:36:39 I told him i will take it because all those who I asked refused the amount, so I will take both but for no less than $2,300 Jun 14 21:36:43 because I dont know much iOS Jun 14 21:37:54 I really want to refuse him, my boss at work told me i will double your salary if you take this upcoming app at home Jun 14 21:38:01 that is a fucking fair person Jun 14 21:38:06 piece of shit guy can suck my dick, man Jun 14 21:38:16 I just wanna insult him haha Jun 14 21:38:43 telling me that he wont be getting the same quality of code if its after hours Jun 14 21:38:52 what the fuck do you know about fucking hackers, noob fuck! Jun 14 21:39:01 quality of code my ass Jun 14 21:44:41 a little more and I will pay them to hire me Jun 14 21:45:12 here's the app, and here's the money for you as gratitude for using me to help you, almighty person with company Jun 14 21:47:32 Hey guys, I'm setting up a PreferenceFragment right now but having some issues Jun 14 21:48:09 Is there a way to get a Prefence to automatically load the corresponding SharedPref value into it's summary upon creation? Jun 14 21:48:16 Preference* Jun 14 21:48:33 find it in oncreate and put it in it Jun 14 21:48:37 "android:id/search_plate" what is he talking about http://www.techrepublic.com/blog/software-engineer/pro-tip-customize-the-android-search-view-widget/ Jun 14 21:49:50 Is there no attribute I can use in the XML to auto populate the preference? Jun 14 21:50:08 Sinusoidal there is android:default Jun 14 21:50:17 or something like that Jun 14 21:51:22 but how you gonna get that to be set to a sharedpref value Jun 14 21:51:31 ^ Jun 14 21:51:33 needs to be grabbed explicitly Jun 14 21:51:35 .... Jun 14 21:51:39 not even a question to be asked Jun 14 21:52:01 on creation has a method for you, onCreateView Jun 14 21:52:09 which is what you asked "upon creation" Jun 14 21:52:13 you would think they would implement it to auto fetch the corresponding value, considering I give it the SharedPref key Jun 14 21:52:30 what... Jun 14 21:52:42 just no Jun 14 21:53:46 my onCreate method uses: addPreferencesFromResource(R.xml.preferences); Jun 14 21:54:23 which is fine, it loads the preferences. I was just wondering why it doesn't auto fetch the value because the preference key is already hardcoded into the xml file Jun 14 21:54:43 ohhhh Jun 14 21:54:50 you are asking something way more stupid than I thought Jun 14 21:54:55 yea g00s is right Jun 14 21:55:20 Sinusoidal you forgot PreferenceManager.setDefaultValues(this, R.xml.preferences, false); Jun 14 21:55:31 read the docs on that, and where to put it Jun 14 22:01:04 g00s: I'm assuming I have to manually set each preferences summary upon creation? Jun 14 22:01:27 if I want the summary to be the string that is stored within the preference, I mean. Jun 14 22:02:23 what a freak use case :P Jun 14 22:02:26 what're you trying to do Jun 14 22:03:18 Trying to store a string in a preference, then load the string into the preference summary when the fragment is created Jun 14 22:04:01 apparently I have to write a method to do this, I was wondering if there was an attribute instead. Jun 14 22:08:48 my friend just complain about how normies are having fun while we keep rocking with irc and reading Jun 14 22:08:50 :< Jun 14 22:09:06 I'm trying to implement GCM in my app (upgrading from an old C2DM implementation) and find conflicting information in the guide and the example application. The guide tells you to implement an InstanceIDListenerService, but the sample app (https://github.com/google/gcm/blob/master/gcm-demo-app/src/main/AndroidManifest.xml) doesn't have it. Is it really required? Jun 14 22:10:07 horny-sama: Programming isn't having fun?! Jun 14 22:10:32 TacticalJoke: but ppl judge Jun 14 22:10:53 girls be like u no cool Jun 14 22:10:54 :< Jun 14 22:10:59 those herpes bitch Jun 14 22:11:19 someday when we create lovebot, we will show them Jun 14 22:12:03 Why do my non-navigationdrawer activities on v21+ not have the status bar correctly tinted? Can't seem to figure it out. Jun 14 22:12:06 This is my styles-v21 Jun 14 22:12:08 http://pastie.org/10240414 Jun 14 22:15:48 IME, lots of women like nerds. Jun 14 22:16:12 As long as you're the sociable (as in able-to-hold-a-conversation) kind of nerd. Jun 14 22:16:38 TacticalJoke: they only like nerds coz nerds are loaded Jun 14 22:16:47 and easy to control emotionally Jun 14 22:23:10 hate those affirmative action, they have quotas for female Jun 14 22:23:11 :< Jun 14 22:34:34 TacticalJoke don't understand this opposition to anti-patterns :D Jun 14 22:35:00 the name comes after GoF patterns, which were "best practices"; anti-patterns are just code smells Jun 14 22:35:11 call it do's and don'ts whatever Jun 14 22:36:15 actually, indead of anti-pattern i'd call it "Bad Idea (Jeans)" haha Jun 14 22:37:21 https://screen.yahoo.com/bad-idea-jeans-000000942.html Jun 14 22:51:09 Yeah, I don't agree with that top comment. Even if someone disagrees that event buses are an anti-pattern, the author was saying way more than just "I dislike event buses" -- he was claiming they're a bad idea entirely (from my reading, anyway). Jun 14 22:52:02 And I've just seen that he's changed the title from "Event bus is an anti-pattern" to "Why you should avoid using an event bus". Jun 14 22:54:53 is using a propertyValuesHolder is any more efficient than using multiple objectAnimators? Jun 14 22:59:36 yo trying to grab a cookie off a response in retrofit before the 302 Jun 14 23:00:19 i turned off follow redirect, but the rxjava subscription is never called, i'm guessing because the network call never finishes up Jun 14 23:00:37 any resource on how to handle a situation like this? Jun 14 23:27:08 im having some trouble getting my app to work with an obb expansion file. i have run the jobb too to output my obb file, it conforms to the name conventions of main...obb and have copied it to /sdcard/Android/obb/ but no joy from my application Jun 14 23:28:06 APKExpansionSupport.getAPKExpansionZipFile returns null, anything i have missed here? Jun 14 23:30:00 teasp00n, it's .../obb// Jun 14 23:30:18 Any idea why my app terminates immediately without anything in the log? :-/ I'm really stuck right now Jun 14 23:30:50 Mavrik: thanks for pointing that out, hopefully that's all i need... :) Jun 14 23:32:51 pehlert: Use `Log.d` to see what does and doesn't run (e.g., Activity life-cycle stuff). Jun 14 23:33:31 (or disable AS filters :) ) Jun 14 23:33:52 TacticalJoke: It doesn't even seem to call the onCreate() method in my main activity Jun 14 23:34:03 So you disabled all filters and see nothing, right? Jun 14 23:34:27 I'd probably try ApplicationSubclass.onCreate. Jun 14 23:34:34 TacticalJoke: Exactly Jun 14 23:34:56 Are you sure it's running and terminating (as opposed to never running)? Jun 14 23:35:47 pehlert: try just running `adb logcat` in a terminal, see if you get anything that way. Jun 14 23:36:27 groxx: Tried that too.. Nothing Jun 14 23:36:46 post your activity on pastebin or something? Jun 14 23:36:52 TacticalJoke: Okay, the ApplicationSubclass.onCreate() is called.. I'll try to use a debugger from there Jun 14 23:39:15 I guess the debugger won't take you anywhere special (since that's just an arbitrary callback). Jun 14 23:45:01 groxx, TacticalJoke: So according to the debugger, the app is still running, but the activity is not visible. This is the thread dump.. Any ideas? http://pastie.org/10240491 Jun 14 23:47:24 Hmm, not sure. Maybe post AndroidManifest.xml? Jun 14 23:50:42 TacticalJoke: http://pastie.org/private/jdhksswyf2snezxzw1vmtq Jun 14 23:51:04 Sorry, it's a bit messy. This is an app from 2011 which I'm slowly trying to upgrade Jun 14 23:51:48 does it hit ui.MainActivity.onCreate? Jun 14 23:53:35 groxx: Yup, it does Jun 14 23:53:45 what's in there? Jun 14 23:54:15 I forget if it enforces a setContentView call or not :| also, is it possible it's just invisible or transparent or something? Jun 14 23:54:30 Oh. Thought it didn't hit any Activity.onCreate. ;o Jun 14 23:56:32 TacticalJoke: Sorry, that's what I thought at first. But it just resumed the app because it was still running, despite not showing any activity Jun 14 23:57:21 It think I was able to debug it further Jun 14 23:57:29 I'm doing "AccountManager.get(this).addAccount" Jun 14 23:58:44 That used to display a dialog to add an account.. Maybe the behaviour was changed? Jun 15 00:02:05 I think I figured it out. It returns an AccountManagerFuture which must not be used on the main thread, according to the docs. Calling future.getResult() never seems to return Jun 15 00:02:20 That always worked, so I'm surprised Jun 15 00:02:38 Maybe they change sth internally Jun 15 00:06:19 Oh no, that's what AccountManagerCallback is for.. Weird. Jun 15 00:48:31 How do I access a MainActivity layout from inside a FragmentList? Jun 15 00:53:08 what are you trying todo Jun 15 00:53:22 trying/hoping todo Jun 15 00:56:54 Why are you using ListFragment? Jun 15 01:00:35 canvs2321: "To do" is two words. :D Jun 15 01:01:59 TacticalJoke lol that comment got gilded Jun 15 01:02:26 Yeah, I saw that. lol Jun 15 01:02:30 People are passionate about this stuff! Jun 15 01:02:34 i enjot standing on the outside and watching what goes on between people in commmunities; i should have been a social psychologist Jun 15 01:02:50 I feel the same way. :D Jun 15 01:03:06 Psychology is really interesting. Jun 15 01:04:09 i haven't gotten any psych books lately ... except this one http://www.amazon.com/Me-Myself-Us-Personality-Well-Being/dp/1586489674 Jun 15 01:04:15 ./r/SubredditDrama is quite good for that stuff. (Though unfortunately they are an insanely strong hivemind.) Jun 15 01:05:05 Yeah, I used to read psychology books a lot. Then neuroscience. It's been years, though. Jun 15 01:06:06 The cool thing is that neuroscience potentially holds the answers to *everything* that could ever matter (i.e., everything relating to suffering and joy). Jun 15 01:06:42 The MainActivity has two areas where in one of them has a ListFragment. When one of this List itens are clicked I want to load a certain content in the second area from MainActivity layout. I already have all set with the eventHandlers and I just need to load a fragment inside the second area. Jun 15 01:06:43 Yet it's bad for self entitled people to read that stuff, just boosts their madness Jun 15 01:06:47 Hey guys, I'm experiencing really weird behaviour trying to write a checkable ImageView. Setting padding on my ImageView causes it to cycle through {true, true, false...} when tapped, rather than the normal {true, false...}. If I show selection some other way, like setting a tint on my image, the checking functionality works as expected. Jun 15 01:07:43 ircfox_: does this help? https://developer.android.com/training/basics/fragments/fragment-ui.html#Replace Jun 15 01:07:57 TacticalJoke did you see http://spectrum.ieee.org/biomedical/devices/the-vagus-nerve-a-back-door-for-brain-hacking Jun 15 01:09:01 Aerobit: yes! this is exactly what I was looking for. Thank you! Jun 15 01:09:30 :) Jun 15 01:09:32 Ah, that's interesting. Jun 15 01:11:09 adq this looks like fun http://www.eetimes.com/document.asp?doc_id=1326403& Jun 15 01:16:17 i was at a art show last night and there was a programming event - a game that you controlled with a seat. I tryed to make conversation with the proffessor that made it. I said "so did you use any libraries to make it"? and he just looked at me and laughed for 6 seconds. Why is this funny?? Jun 15 01:17:14 did he laugh for 'exactly' 6 seconds? Jun 15 01:17:27 Maybe he was a robot. Jun 15 01:17:33 lol Jun 15 01:17:57 maybe he was thinking "of course i did, you idiot" Jun 15 01:18:08 or too proud and thinking "err no, i only use my own code" Jun 15 01:18:40 so it wasnt really a dumb question? Jun 15 01:20:16 perhaps the humour was in the delivery and wording? *shrugs* Jun 15 01:21:23 NateRiver: It was the perfect opportunity for him to tell you all about it. Jun 15 01:21:53 oh well, it was 5 AM maybe he was drunk Jun 15 01:22:00 He decided, instead, to laugh for six seconds. Jun 15 01:22:23 A decision which will cost him... Jun 15 01:23:27 it was a cool event, went from 9PM to 5AM and took up most of MPLS. Sooo many hot girls. You couldnt swing a dead cat and not hit a hot girl. Just boom boom boom Jun 15 01:24:23 Attractive female humans at a programming event? Wat. Jun 15 01:24:30 that's the problem with late night events, your judgement is severely impacted Jun 15 01:24:57 No no, it was an art event, and one of the art things was a programmed game Jun 15 01:25:04 Oh, art. Yeah, expect women. Jun 15 01:25:10 more like an art festival Jun 15 01:28:10 Buut, i never got a girl sadly. I ended up making friends with a guy who followed me around, but he turned out to be gay for me, and i had to run for my life Jun 15 01:28:54 a night to tell the grandchildren about Jun 15 01:29:08 He wasn't even gay before the event. NateRiver is just *that* attractive. Jun 15 01:34:11 hot girls are distracting Jun 15 01:34:16 I'd prefer to learn something Jun 15 01:36:24 So you can become more interesting and get an even hotter girl right? Jun 15 01:39:40 sucks that java dosent have negative indecies Jun 15 01:40:15 When would you use negative array indices? Jun 15 01:41:16 like when you want to grab the last word of a string Jun 15 01:41:58 without counting it out. and im reading strings and indecies from a file so i cant just do size-1 Jun 15 01:42:07 Java is salty Jun 15 01:43:21 If you can't say `size - 1`, how else can you do it? Jun 15 01:44:08 that's a common conversion among many languages, like [-1] for last element, [-2] for second to last Jun 15 01:46:39 which is especially handy in languages that have ranges, so you can say [-5..-1] to grab the last 5 characters. Jun 15 01:47:13 or everything except the first and last: [1..-2] Jun 15 01:54:23 i guess i could do if index<0{size-index} Jun 15 02:04:26 Hey all. Just wanted to share a link -- this weeks Android Weekly is fantastic, a lot of great articles this time http://androidweekly.net/ Jun 15 02:04:45 hopefully someone else finds it as useful as I did Jun 15 02:09:55 liuwenhao i liked mastering recycler view Jun 15 02:10:07 dave smith knows, there be monsters ! Jun 15 02:10:23 Yeah I bookmarked that talk. Gonna check it out when I have a better internet connection Jun 15 02:10:24 "could i do this without going insane" Jun 15 02:10:29 can you guys hold back from saying something to someone who has a big Nexus 5 logo in the center of their Nexus 5 screen because they don't remove the sticker it came with thinking it will protect the screen ? Jun 15 02:10:57 shmooz: I've seen some dumb stuff but that is absurd Jun 15 02:11:04 the guy is using his phone like this for months and I'm supposed to act normal when he shows me stuff on it Jun 15 02:11:09 I would probably rip it off in front of them Jun 15 02:11:23 buy him a real screen protector Jun 15 02:11:32 shmooz he just has the auto-redaction feature enabled Jun 15 02:12:02 shmooz maybe buy him a screen protector that lets him use the full screen :D Jun 15 02:12:47 yeah I'm pulling my hair here, cause his family and friends live with it Jun 15 02:13:16 I'm trying not to strangle him Jun 15 02:13:25 i understand wanting to protect the screen. but real screen protectors are only a dollar or two Jun 15 02:24:32 some people there's no cure Jun 15 02:25:32 he would probably put the screen protector on top of the Nexus 5 logo sticker Jun 15 02:27:07 even better Jun 15 02:27:14 a condom over a condom Jun 15 02:54:41 shmooz: i had a friend who did this over the summer. eventually i badgered him enough to take it off. that day he dropped it and cracked the screen reallllly bad Jun 15 02:55:01 liuwenhao: it happened in hong kong now that i think of it **** ENDING LOGGING AT Mon Jun 15 02:59:58 2015