**** BEGIN LOGGING AT Tue May 10 02:59:59 2016 May 10 03:01:16 Are there any advantages to listview over recyclerview, or is recyclerview overall superior? Is listview more lightweight? May 10 03:01:56 na use rv May 10 03:02:31 smaller app when using list view May 10 03:02:42 otherwise, no advantage May 10 03:03:14 evening all May 10 03:03:25 mornin May 10 03:03:26 So If i have a small list that will never scroll and have a max of 5 items, is it worht the overhead of more code for RV? May 10 03:03:39 same amount of code May 10 03:03:50 but no, it's not worth May 10 03:04:12 ok. Thanks. May 10 03:05:46 hoping someone could maybe give me a hand with some theming issues. I have a toolbar with white title text and a white overflow menu button (3 dots). The issue I'm having is that when clicking the 3-dot menu icon, the dots turn black from the click event. I'm trying to keep them white, but not having much luck. Anyone have a good idea of where to start? I'm just sort of blinding tweaking themes in my styles.xml at this point and May 10 03:22:49 So, if I want to share a class instance with a fragment, or update the fragment's instance. For example, perhaps I want to load a List, and when it gets refreshed, have the fragment update. What is the proper way of doing that? May 10 03:25:46 http://funnyasduck.net/wp-content/uploads/2013/08/funny-smart-phones-think-so-great-animated-comic-pics.gif May 10 03:27:22 diordndA, In someways, I'd still like to have a flip phone, which is a smart phone. It's certainly a great way of protecting the screen. Smart phones are so clunky to use for talking, and easily dropped. :P May 10 03:29:08 http://android.stackexchange.com/questions/44677/how-to-change-my-device-location-on-the-play-store May 10 03:29:12 ^ doesn't work for me May 10 03:29:27 for instance check this app: https://play.google.com/store/apps/details?id=com.nbondarchuk.android.keepscn May 10 03:29:36 "Sorry! This content is not available in your country yet." May 10 03:29:41 Any other idea to avoid this? May 10 03:45:58 mornin' May 10 03:46:04 night May 10 03:48:21 hey alex_PP May 10 03:48:29 how's life g00s? May 10 03:49:25 hmm, i made like 4 live prototypes of my app and don't like any of them :( May 10 03:50:04 OT, also pissed that my dog's food from canada is now being made in kentucky May 10 03:50:27 alex_PP any new photos ? May 10 03:50:59 nothing special May 10 03:51:38 I/O is around the corner, that will be fun May 10 03:51:47 Poutine flavor? May 10 03:51:56 *flavour May 10 03:52:04 yeah, IO will be interesting May 10 03:52:12 not watched for a year or two May 10 03:52:15 been out of the loop May 10 03:52:20 alex_PP lol no poutine dog food haha May 10 03:53:20 my system ui keeps crashing.... and I can't even log into my phone May 10 03:53:26 I'm ready to throw the thing at a wall May 10 03:55:51 g00s its not what u like its what the consumer likes May 10 03:56:12 you* May 10 03:56:20 no, its what i like ;) May 10 03:56:34 is there an ADB command to supress all crash notifications? May 10 03:56:38 prolly why you still broke May 10 03:57:12 O.o May 10 04:01:26 pwnt May 10 04:03:36 pfn not pwnt, like you or lsass have any idea what i'm up to May 10 04:06:39 yeah this is good http://www.androidpolice.com/2016/05/09/google-this-should-be-the-gold-standard-of-changelogs-please-do-it-more/ May 10 04:07:05 the new google analytics app is pretty suite May 10 04:07:08 *sweet lol May 10 04:07:59 it's embarrassing how bad Google's app changelogs are May 10 04:08:19 if they can't be bothered, it's pretty hard to see why anyone else should May 10 04:08:20 pretty much everybody does 'Small bug fixes and user experience improvements' May 10 04:08:53 Leeds but i have to admit, having updated vim like hundreds of times, no idea what they are changing either :P May 10 04:09:01 the mac vim has auto update May 10 04:09:12 always looks the same to me , probably always will :D May 10 04:09:40 vim generally has always had a steady stream of small patches - you can easily look up the log for each patch May 10 04:09:59 prolly uploading your vim logs every update May 10 04:10:10 tehe May 10 04:10:29 lsass is a cool nick, like windows lsass.exe ? May 10 04:10:52 no like the linux one May 10 04:10:56 lol May 10 04:11:17 how do I stop the system.ui? May 10 04:11:32 BustyLoliChan: you don't May 10 04:11:59 everytime I get the stupid "System.UI" has stopped notification everything in the background of my phone looks fine. May 10 04:12:17 just picking on g00s May 10 04:12:20 you* May 10 04:12:24 It isn't until I hit ok to release that notification that my phone flips out, the screen goes black and the process starts over May 10 04:12:36 lsass ;) May 10 04:12:38 saves my wife the pain & agony May 10 04:12:51 I seriously think all I have to do is unlock the locked landscape orientation on my notification menu May 10 04:13:01 lsass didn't understand that ... May 10 04:13:08 to prevent it from crashing, but I can't get the thing to shut the fuck up about crashing long enough to do that May 10 04:13:11 sounds like your wife needs to smack you :D May 10 04:13:17 :) May 10 04:16:36 http://pastebin.com/Q2Trd5F5 May 10 04:16:40 I'm going to throw this thing May 10 04:18:32 it's been working fine and then suddenly this just happened May 10 04:19:02 the system ui wont stop flipping the fuck out and the screen just keeps going black and rebooting because of it May 10 04:19:51 Anyone know of a website where I can download more ram? I only have 6gb and that is not cutting it. My compilation keeps breaking because of OOM errors :/ May 10 04:19:56 ^joking about the first part May 10 04:20:35 you can download more ram at newegg.com May 10 04:20:39 I disabled the lock screen and forced the orientation to portrait and it seems to be fixed May 10 04:20:46 alex_PP sweet ! May 10 04:21:09 but dear god is there a way to disable the shitty popup notifications that do nothing but get in the way of actually ever fixing any of the fucking problems with anyone's device May 10 04:21:52 Like the god damn material design specification basically says never use them because they interrupt and make for an experience that is a complete piece of shit May 10 04:22:07 so why the hell doesn't google conform to their own advice/standards May 10 04:23:13 BustyLoliChan because they are top developer ! May 10 04:23:27 and apps get featured whether they follow guidelines or not ;) May 10 04:24:58 BustyLoliChan here's a little secret. i decompiled almost all the gapps to study how they were designed. if you think things are inconsistent in terms of their visual appearance ... you haven't seen anything yet. its as if each was developed by a different company May 10 04:25:25 i think i had the most wtfs on google keep though. like seriously, w t f May 10 04:25:43 it just pisses me off May 10 04:26:06 its kinda like studying war history, each of these teams did battle with the platform May 10 04:26:18 seems like they all lost in some way lol May 10 04:26:23 like I'm trying to figure out why the system UI keeps crashing and google shitty built in dialog spamming me non stop serves no purpose other than to COMPLETELY INHIBIT ME from fixing the problem May 10 04:26:44 BustyLoliChan maybe #android-root can help May 10 04:28:16 I think I finally fixed it by disabling the systemui service with ADB disabling my lock screen , restarting, booting with no UI and then finally starting the system up May 10 04:28:18 *ui May 10 04:35:19 alex_PP have you gone through the i/o schedule yet ? May 10 04:35:41 anything interesting? i saw one course on advanced fragments which should be interesting May 10 04:36:08 BustyLoliChan: this isn't really the right place to complain that your phone is crashy May 10 04:36:38 I honestly thought this was android root May 10 04:36:41 so that's my bad May 10 04:36:56 and sorry for being so profane as well May 10 04:37:06 It was just seriously frustrating. May 10 04:37:59 @g00s May 10 04:38:01 not yet May 10 04:38:13 whoops, this isn't stack overflow chat May 10 04:49:18 there's a dev tools talk May 10 04:49:32 and some tango stuff that might be interesting May 10 04:50:49 and one on art May 10 04:51:36 oh, and romain guy's back in what's new in android May 10 04:51:38 yay May 10 04:52:34 i'll skip that one, maybe watch it 2 years from now May 10 04:55:41 "law & disorder" http://arstechnica.com/tech-policy/2016/05/jury-is-picked-for-9-billion-oracle-v-google-showdown/ May 10 04:57:13 "Only one potential juror had direct experience with computers" omg how does this happen May 10 05:00:06 "The last part of this article almost reads like a how-to on how to get out of jury duty." bwahaha, priceless May 10 05:19:09 "He was the only juror familiar with the term "fair use," which had come up in a university-wide e-mail." May 10 05:19:13 who are these people? May 10 05:19:40 I know I am replying late, but that is a frustrating read May 10 05:36:39 hello May 10 06:02:28 does anyone know what happens if i do handler postdelayed on an intentservice May 10 06:17:18 why not May 10 06:22:33 Hi! I'm using the EventBus(greenrobot) and I have a background task which posts the result using the bus. I register to the bus in onStart and unregister in onStop. Is the next scenario possible? May 10 06:22:33 Start background task in an activity. Rotate screen. Activity is recreated. Is that possible, that the result will be posted between the old activity's onStop and the new one's onStart? In other words may the result of background task be lost? May 10 06:27:16 Nick-S: the thread of the IntentService stays alive until all the messages on it's queues are handled May 10 06:27:56 but will the next intent be handled before the delayed is fired? May 10 06:28:18 i need to choose between alarm manager and handler post May 10 06:28:24 i want to delay for a minute May 10 06:39:42 Hey guys May 10 06:40:09 One question, how would you guys manage Inventory of item in android application, if same item is used on more devices. May 10 06:40:21 Using GCM to report every time item is gone to each other phone? May 10 06:40:25 Hey so in my oncreate data is being loaded, however it flashes in, meaning it takes a bit of time to load, how do I avoid that - I noticed instagram does something like show a blank screen with a loader - is there a simple way to do that or what is the proper way? May 10 06:41:55 Lonesoldier728: https://www.bignerdranch.com/blog/splash-screens-the-right-way/ May 10 06:43:00 guliash: not familiar with greenrobot but IntentService would needed or the onStop would terminate the task (async for example) May 10 06:46:37 Lsass - that is all nice and what not, but that is when the activity is being loaded? How do I implement this when a page is loaded May 10 06:47:14 meaning - I have activity A being loaded from activity B - I want during activity B's loading period to have the loading screen May 10 06:49:31 lsass: I've just managed to reproduce this scenario. post was missed. but it was like 1 from 20 tries=) May 10 07:03:30 if I have a sliding tab layout, why should i use a fragment rather to just creating my own java class with a layout May 10 07:04:35 anyone? May 10 07:06:48 its morning May 10 07:07:11 not everywhere aha May 10 07:07:42 could u provide me a quick explanation ? May 10 07:08:25 I did notice , that when i went to tools.context=""; that only activities without my self made layout May 10 07:09:45 but i do connect the layout at the end of the day when i call the onCreateview() method in the respecting java class (implements Fragment) May 10 07:09:57 *** extends May 10 07:10:38 tools is for designer only May 10 07:11:21 Ashiren , tools? May 10 07:12:47 Im loading data from my backend into each of these tabs , I created a java class extending Fragment and a layout , i was wondering why i would create a fragment May 10 07:13:18 dunno never used tablayout May 10 07:13:25 but fragments are love, fragments are life May 10 07:15:11 haha so why would i use a fragment rather then my own java class extending Fragment ? May 10 07:15:19 forget about the tab layout May 10 07:15:47 nvm , it makes so scene unless it's a tab layout May 10 07:16:14 another q May 10 07:22:00 hmm? but you always use your own class that extends Fragment May 10 07:24:44 hi. i added compile 'com.google.code.ksoap2-android:ksoap2-android:3.6.0' to the dependencies section of build.gradle, it builds fine but i can't import any library class in my code yet, any idea why? May 10 07:29:58 Hi all. I have an issue with a GridLayoutManager and wrap_content of views in my RecyclerView. Does somebody have an idea what I am doing wrong? basic: http://pastebin.com/rMSfLmdS May 10 07:31:07 the first column width == other columns, not 80dp (like view_item_small.xml) May 10 07:53:37 so yesterday this drove me nuts and i'm quite proud i managed to nail down the problem: Error inflating navigation view (under Android 4.2) May 10 07:54:28 apparently the icons created by the wizard seem to cause the crash. after recreating them from Android Studio's resources, the app finally does not crash. weird though May 10 08:36:06 hey guys! who knows how to deobfuscate Google Analytics crash reports? May 10 08:36:16 They are of strange format May 10 08:36:37 the approach to google dev console deobfuscation with mapping.txt doesnt work ... May 10 08:36:45 i've made a question on SO http://stackoverflow.com/questions/36977707/google-analytics-crash-exception-deobfuscating May 10 08:38:19 ive added 50 bounty to it May 10 08:43:10 is this a place where can i ask some questions on dealing with tab bar styles programmatically (java api)? i have a problem with the setting indicator color of a tab and the size of icons in landscape. May 10 08:45:17 genkgo: (I think) the tab bars are coloured from themes May 10 08:45:45 the_fog: yes, but i want to change them programmatically, i do not want themes. May 10 08:45:50 https://github.com/frederikbosch/ace/blob/android-tint/src/android/framework/TabBar.java#L143 May 10 08:47:01 it involves a plugin that i am helping to enhance for cordova, the color comes from javascript. i am invoking native code, but i cannot find out how to change the color of underline in the tab bar. May 10 08:47:29 i did manage to change the background, change the tint color of the images May 10 08:48:09 unfortunately, some things that can be done in themes just aren't easily done in code May 10 08:48:21 Ah right, I am not too sure so, I think when using themes the underline comes from the accent, if you can hook into that somehow then May 10 08:48:35 but that is the question is suppose :) May 10 08:48:37 Chainfire: that is what i find out now :) May 10 08:48:46 the_fog: hehe, yes. May 10 08:49:25 all my google results are about themes and the xml api. May 10 08:49:54 create the XML in code with themes and inflate it? :D May 10 08:50:08 its a long standing grievance with Android May 10 08:50:13 in the end most people just give up and use the theme May 10 08:51:35 Chainfire: i will not give up May 10 08:54:22 i also read on AppCompat May 10 08:54:26 what is that? May 10 08:55:45 Google compatibility library May 10 08:55:52 bringing new Android APIs to old Android devices May 10 08:55:58 it sometimes works a little May 10 08:56:13 but never for the things you really want to work May 10 08:56:43 and then you need to find some other library to port those things May 10 09:01:43 hehe, ok, i'll skip those results then, thanks May 10 09:23:54 man I hate it when people write adapters that do their own data fetching and updating May 10 09:26:33 hi guys, any idea how to compile C++ 14 with NDK May 10 09:27:31 http://stackoverflow.com/questions/31403014/how-to-compile-c14-code-for-android May 10 09:27:35 very first result in Google May 10 09:27:38 various suggestions May 10 09:28:11 yeah I was there, and they are mentioning CrystaX May 10 09:28:15 in first answer you sent May 10 09:28:21 wow, the Android Wear native emulator is *really* bad May 10 09:28:24 is that mandatory really to build with 14 May 10 09:28:32 like, I'm embarrassed for them May 10 09:28:57 the first few posts do not mention CrystaX May 10 09:29:03 honestly, you're just going to have to try this out May 10 09:29:53 ok I am asking for best way, I googled, and I need this for production, so I am not sure if i should use CrystaX May 10 09:30:34 if you can make it work with Google's version of the NDK that is better in my book May 10 09:30:41 but if you can't... May 10 09:32:26 noob question about fragments: so i'm creating a fragment as member property of MainActivity. May 10 09:32:36 at some point I use it, calling ft.replace(R.id.mainFrame, fragment); May 10 09:33:49 then i call fragment.update(), which is supposed to update some text in the fragment and i get a NullPointerException on a progressbar, trying to call its method May 10 09:34:56 but that progressbar is a member variable of the fragment, which has been assigned using container.findViewById, inside the fragment's onCreateView. May 10 09:40:15 and now you feel that you are not getting a sufficient amount of attention from your partner and things are drawing apart further especially now with the kids May 10 09:40:18 am I right? May 10 09:41:50 sort of? May 10 09:42:37 anyways i guess the fragment keeps getting recreated each time ft.replace is called May 10 09:42:43 you can't access the progressbar which is in the fragment's view, from the host activity May 10 09:42:51 not directly anyways May 10 09:42:59 yes I think so too May 10 09:43:15 so there's no way to manage the life of a fragment? May 10 09:43:30 accessing the progress bar from the activity is not managing the life of a fragment May 10 09:43:37 like reusing it once it's been created i mean May 10 09:44:04 Odaym, does someone actually use android wear? May 10 09:44:14 not sure really May 10 09:44:31 mchlsndrn, May 10 09:44:32 http://stackoverflow.com/questions/19614300/how-to-save-and-reuse-same-instance-of-fragments May 10 09:44:34 I've never seen any of the "smart" wearables outside of the office May 10 09:44:40 no i'm accessing the fragment's progressbar from the fragment, by calling a fragment's method from the activity. well you're right probably the same thing May 10 09:44:41 see if that helps May 10 09:44:50 Hey all:) May 10 09:47:15 Odaym: now i get it, but still, if a fragment is re-created everytime ft.replace() is called ... what's the proper thing to do, if I want something in this fragment to reflect the state of the application? basically call an update method each time the fragment is added? May 10 09:47:37 first find out if the first assumption is true May 10 09:48:33 onCreateView() keeps getting fired, so the assumption seems true May 10 09:49:15 yea it does May 10 09:50:20 So i have a string, str and I want to split by ~. Will this work? str.split("~");? May 10 09:50:22 reflect the state of the application how? you can't do that if the fragment isn't aware of what's going on around it anymore when it gets recreated everytime, that's what you mean? May 10 09:50:48 save the "state" in sharedprefs? :P May 10 09:51:17 exactly May 10 09:58:36 Hi, have doubt with regards to "setWebChromeClient" the chrome handler, does it actually refer to the default Chrome browser ? May 10 11:13:47 hmm, i had stl ="gnustl_static" and cppFlag -std=c++11, now i need to use 14, i couldn't get std::mutex on gnustl_static, and changed to c++_shared, and now I can see std::mutex but I can't compile, 29 messages that i cannot overload get() on tuple_leaf, i can give whole error if needed, any ideas? May 10 11:18:28 hey, I have a directory in the android source tree under frameworks/... etc. It's got its own Android.mk of course defining a module. If I do 'make ', it seems like it ignores the root buildspec.mk. Is this always the case? Is there a way to make it include it? May 10 11:19:09 Basically I'm worried that I'm building the system image with a different set of defines than the one I'm building my module with. May 10 11:20:56 Odaym: just want to thank you for the tips of yesterday May 10 11:21:09 I was here yesterday? May 10 11:21:26 Yes, maybe the day before May 10 11:21:35 cool did it work? May 10 11:21:40 about the onkeyevent May 10 11:21:42 yes May 10 11:21:48 ah the return true May 10 11:21:56 yes... tha one May 10 11:22:22 so noob but i started learning android and java a couple of months ago, havve a lot to learn May 10 11:22:56 that one isn't a noob question, to know it you have to know how the layout calculation is done, the press event passes to all the layout elements to see who will receive it May 10 11:22:57 BTW, any idea on how can i turn off the screen without starting the screen_off intent? May 10 11:23:18 or something May 10 11:24:16 Odaym: do you know if is possible to turn off the screen programatically without starting the screen off intent? May 10 11:25:06 http://stackoverflow.com/questions/9561320/android-how-to-turn-screen-on-and-off-programmatically May 10 11:25:15 just google "android turn screen off programatically" May 10 11:25:32 yes but in that way the screen is set to the lowest brightness May 10 11:25:38 not turned off May 10 11:26:01 i read about a setscreenstate hidden api May 10 11:26:10 don't know how i can call it May 10 11:26:32 googleable May 10 11:29:41 i can0t find a solution May 10 11:33:27 hey, i'm trying to figure out what exactly my car steering buttons send my phone to make it redial when i hit the call button... any help with how to do that? May 10 11:40:55 toadpole, its done using the bluetooth handfree profile protocol May 10 11:49:31 hi, how i can solve this http://pastebin.com/W1BGhNCE ? May 10 11:49:38 i upgrade my gradle May 10 12:06:22 it worked so perfectly :'( May 10 12:16:10 Hi need help with services. Gcmlistener is registered only in manifest file ? May 10 12:16:40 When it is called ? May 10 12:21:02 I have a view in a system overlay window, i don't want that the touches are passed to the overlayed activity, how i have to set it? May 10 12:44:18 I have a weird question May 10 12:44:53 I'm adding an ImageView to a CheckableLayout (a class I have which extends Checkable and FrameLayout May 10 12:44:54 ContactsSyncAdapter: ResourceUnavailableException: com.google.wireless.gdata2.client.ResourceUnavailableException May 10 12:44:59 how the shit am i to deal with that May 10 12:45:11 google returns exactly 1 result in someone else's log May 10 12:45:15 i can't sync contacts May 10 12:45:48 nvm actualy May 10 12:49:07 LazyBanshee: what are you trying to do? paste the stacktrace? May 10 13:12:05 anyone knows why "adb install" over wifi takes much longer than uploading the apk over the same wifi network and installing it locally? May 10 13:13:39 maybe adb install actually uncompresses the apk locally and only then sends it over the network... that could explain it May 10 13:14:30 but that is just a wild guess May 10 13:14:41 No it doesn't. May 10 13:15:37 Mavrik so, why does it takes longer to adb install than copying the file and installing it? May 10 13:16:04 if all data goes through the same link May 10 13:29:36 MZ|Alex, would have to look at ADB protocol to see why. May 10 13:29:45 I guess use Wireshark and check? May 10 13:30:12 I was hoping to avoid sniffers :) May 10 13:31:05 I'm profiling the times.. and I might have incorrectly measured them before. May 10 13:31:15 Why? May 10 13:31:25 I mean, "sniffers" are the software that can answer your question :P May 10 13:33:20 Mavrik just being practical, if someone knew what could be, I wouldn't be testing it myself. May 10 13:33:35 because adb is slow May 10 13:33:36 but I'll just install wireshark and compare May 10 13:34:10 I currently use fields in a ContentProvider to hold data used by different activities. Now I have the problem that the ContentProvider is sometimes killed by Android due to low memory. What would be a better solution to hold the data than using fields in a ContentProvider? Holding it in the Application instead? May 10 13:34:36 How would that help? May 10 13:34:43 If your content provider gets killed, your app is dead as well. May 10 13:34:46 Load it from storage. May 10 13:37:41 Why does the app get killed automatically if the ContentProvider is killed? I haven't observed that behavior. May 10 13:38:42 because when Android starts killing off processes, it'll kill the whole process. May 10 13:39:33 you need to be ready for that usecase. Always. May 10 13:39:42 (Isn't that like one of the beginners lessions? O.o ) May 10 13:39:56 So you're saying store everything in a db May 10 13:40:22 I'm saying store everything in a way that killing your process won't interrupt what you wanna to. May 10 13:40:33 I don't know anything about your project so "DB" may or may not be the best way. May 10 13:42:06 Hello, What is the best way to implement game timers? I tried using countdownTimers but it skips counts sometimes and I have not been able to pause and resume the timer when needed May 10 13:47:24 just compared the times... adb install uploads at 1044kb/s while manually copying goes at ~2700kb/s May 10 13:47:47 adb is like 2.5 times slower May 10 13:48:09 what do you mean by manually copying May 10 13:48:16 not over adb you mean May 10 13:48:23 and yes, adb is slow May 10 13:48:28 pfn yes, I've used airdroid (using the same wifi connection) to copy files May 10 13:48:39 pfn why is that? adb being slow May 10 13:48:53 because it's a shitty protocol May 10 13:49:12 is there a workaround, other than not using it to copy files? May 10 13:49:24 don't use adb May 10 13:50:02 pfn what would be the fastest method for copying files to android over wifi from command line? May 10 13:50:19 there isn't one May 10 13:51:07 pfn so, I have to build an android app to do that? May 10 14:04:54 hi. I've two questions. 1. i'm using ksoap for reading data from a webservice. How can read a Map from a SoapObject? Is is useful for this the Gson library? 2. There's a way to change the color of the status bar programmatically? May 10 14:09:17 for ans 2 -> yes, u can make ur custom status bar May 10 14:09:44 check out slidenerd's tutorials for that, LucaS05 May 10 14:10:04 paradox_: thanks! May 10 14:10:35 np May 10 14:49:43 how do you update a fragment view right after it's been created via FragmentTransaction ? May 10 14:53:01 * Zharf sighs at proguard May 10 14:53:06 such piece of crap and pile of shit May 10 14:57:57 none of the rules actually work May 10 14:58:04 Hey, so I'm just starting some android dev and keep running into road blocks due to lack of fundamental knowledge... I'm primarily a web dev, so I don't work with Java much, and it seems like there's a ton of android-specific jargon that I need to understand to try and troubleshoot an issue I'm having May 10 14:58:08 it's just removing everything May 10 14:58:57 hi May 10 14:59:18 aqisnotliquid: same here, used to unity 3d and html5. now i'm learning what fragments are and why they're so convoluted, at least compared to what i am used to May 10 14:59:31 I'm trying to write an app for a Symbol MC32N0 barcode scanner that will take the code scanned, pass it to a REST API endpoint, then display the results on-screen. May 10 15:00:11 aqisnotliquid: Learn Java first, then move on to Android May 10 15:00:19 But I'm not sure I really understand what an "Intent", "Activity", or "Fragment" are, so when I try to piece together tutorials, it doesn't work quite right May 10 15:00:35 pduin: I wish that were an option :) May 10 15:01:32 Then you are biting off a big chunk at once. Not necessarily more then you can chew, but be prepared to chew for a while :) May 10 15:02:11 I've done some stuff in Java for an IVR program and was able to do REST calls with it, so that part isn't really an issue. It's just the android specific stuff I don't know what it means, I guess May 10 15:02:22 even after learning some basics of java, the learning curve of android development is still quite steep May 10 15:02:34 And this project is one of those "welp, I know you don't know Android, but you know the most java of the team, so have fun learning" May 10 15:04:24 aqisnotliquid: If you have got the basics of Java down, you can start to look at some simple example applications. May 10 15:04:31 I was just wondering if there was some sort of "Android Dev for Dummies" web resource out there that would help me learn the basics. I've spent lots of time on developer.android.com, but it seems too technical May 10 15:04:44 If you Google a bit you can find just about everything, from Hello World apps to more advanced stuff. May 10 15:06:00 Can't help you much more now, gotta go May 10 15:06:01 Sry May 10 15:06:06 well i just finished putting together a small app that receives gcm notifications. nothing crazy, but adapting the android sample with fragments and have the fragments updated properly in relation to the broadcast receiver turned out to be a nightmare. but it's working now. i still don't get why fragments work the way they do though ... why for example i can't just update their view at any moment May 10 15:07:11 Hello everyone May 10 15:07:18 aqisnotliquid: there's no android for dummies. try to piece it together using the project wizard in android studio, and get ready to a lot of googling May 10 15:07:44 mchlsndrn: Alright, well then I'll keep plugging away at it lol May 10 15:08:01 Can anybody help me here with this: http://i.imgur.com/UMz4ZsF.png May 10 15:08:12 that's how i did it. same story, no java expert, but they said "do it" so here i am May 10 15:08:15 I'm trying to sync OmniROM source code May 10 15:08:59 And that last message in that image gives me the chills May 10 15:09:10 whatup whatup May 10 15:09:20 Fetch is 99% May 10 15:09:23 hi orbyt_ :) May 10 15:09:30 hi mchlsndrn May 10 15:09:30 And now that last damn line May 10 15:11:22 Can somebody help? May 10 15:11:40 with May 10 15:11:57 http://i.imgur.com/UMz4ZsF.png May 10 15:12:10 Syncing OmniROM source May 10 15:12:27 See the last line in that image May 10 15:12:42 tanujboy: Should try #android-root tbh May 10 15:12:51 this is for application development mostly May 10 15:12:58 OK May 10 15:13:10 Thanks, bye mate :) May 10 15:21:53 I need some practice-apps that I can make. Does anybody have a good resource for that? May 10 15:23:26 weather app May 10 15:23:28 when I shouldn't use uft-8? May 10 15:23:43 utf-8 :( May 10 15:24:30 always use utf-8 unless you need otherwise May 10 15:29:56 good, good May 10 16:10:45 Hi, what do you guys usually use for a naming convention of your main activity? May 10 16:13:11 MainActivity May 10 16:13:12 :P May 10 16:13:22 eeyup May 10 16:13:28 at my work it would be ActivityMain May 10 16:13:29 me too, haha May 10 16:13:31 at my work it would be ActivityWTF etc May 10 16:13:40 they start Activity, Fragment first :s May 10 16:13:53 wut May 10 16:14:04 that's understandable May 10 16:14:09 Ok cool. Just wanted to see what other people use haha May 10 16:14:09 but weird May 10 16:14:23 also they use entered { } May 10 16:18:21 I'm working on an app that can make voip calls. I need to have a fullscreen ringer activity that can be shown outside of the lock screen (similarly to how you can answer a phone call without your pin). Ideas? May 10 16:19:02 Hey guys, I'm trying to add a navigation drawer to my app, which I've done successfully, but it seems I can't reuse it, now all my code for the activities that was working before, are throwing null pointer exceptions on for example, setting a layoutmanager (so it seems it now can't find the id's that once were in activity_*.xml and now they're in content_*.xml) May 10 16:19:50 well, silly question, but did you switch the activity to inflate content_*.xml? May 10 16:21:56 s73v3r, fuck you may be on to something, it fixed the problem but now it thinks the DrawerLayout is null May 10 16:22:44 you’re gonna have to post your layouts May 10 16:22:53 s73v3r, which makes sense, since it's in the activity_* xml, and not in content, how do i add both to the view? May 10 16:23:02 include layouts May 10 16:25:07 although navigation drawers were meant to be used with fragments. they’re doable with switching activities, but it’s more work May 10 16:25:44 I have a grid layout (which has 2 collumns and 2 rows) I have put 4 relativelayouts inside the grid layout May 10 16:25:52 how do i make them equally fill the grid May 10 16:25:58 s73v3r, thanks fam, I was being an idiot, works fine :) May 10 16:27:24 Nvm solved it :) May 10 16:27:35 set weight to both 1 and used wrap_content May 10 16:32:25 however how do i make my grid layout fit to the screen? its inside a relative one May 10 16:32:46 match_parent May 10 16:33:18 I tried that it did nothing May 10 16:33:28 why is it inside a relative layout? May 10 16:33:44 What else can it go inside May 10 16:34:16 well, a linear layout, but I don’t think you need to put it inside anythying May 10 16:34:34 I am trying to get a TextView to be completely centered on the screen, both Hori/Vert. So far Iv had not much luck http://pastebin.com/FZdLmcDn May 10 16:36:03 Well I cant put it in "Device Screen" s73v3r so it has to go in something May 10 16:36:21 http://pastebin.com/U3gUWM1L The view is loaded in by ViewStub via setEmptyView, wondering if maybe the parent is the issue May 10 16:36:49 thornekey: it’s a viewgroup. it can be the root of the layout May 10 16:37:29 jawatio: Your first layout is just going to be centered inside of the viewStub in this second one May 10 16:38:21 Just tried to put the GridLayout instead of the first Relative layout and nothing showed May 10 16:38:47 did you size it properly? and put stuff in the cells? May 10 16:39:19 Crap, I kept overlooking viewstub was wrap_content .. :| May 10 16:39:34 Yes i set the width, height to match_parent and my cells are 4x2. it works how it is originally just its not going to the edge of the screen May 10 16:39:58 I’m guessing you had some kind of margin or padding? May 10 16:40:13 you might have to post your layout May 10 16:40:53 http://hastebin.com/bovaluxogo.xml May 10 16:41:50 that padding on the parent RelativeLayout would do it May 10 16:42:04 try removing that and see if you get edge to edge May 10 16:42:10 Ok ill try now May 10 16:42:25 Ah, thanks buddy :) May 10 16:42:58 also, you should be using paddingStart and paddingEnd, instead of paddingLeft and paddingRight May 10 16:43:18 Ok :D May 10 16:45:24 May need to use both if you support devices (and you most likely should be) before v17 May 10 16:46:07 true, you can include both, and it won’t hurt anything May 10 16:46:44 I keep support for v16 because there still is 7% out there, until it drops around 3% I keep them in mind May 10 16:47:03 meh. May 10 16:48:41 With OKHttpClient, I can setSslSocketFactory, can I do this with retrofit? May 10 16:48:43 Thats a large enough percent to matter, esp when the bulk of changes are below 18 (excpet for a good amount of layout settings) which makes it almost 18% of users to think about May 10 16:48:56 Nvm May 10 16:49:18 jawatio: depends on your users May 10 16:51:01 not so much on actual users, but more on what you want to target. but all in all it comes down to personal choice really May 10 16:52:00 your users are the ones that matter to this decision, though. not general android users May 10 16:52:27 it comes down to, does the revenue generated by this group outweigh the support costs of supporting them? May 10 16:52:44 to me, who I want to become a user is what counts, because actual users are already handled May 10 16:53:26 and how much growth are you seeing in that segment? cause for most apps, growth isn’t coming from users of android that old May 10 16:54:31 well like you pointed out, thats different each app for sure May 10 16:54:55 yes, like I said, you need to look at your own numbers May 10 16:55:20 ie games I dont go below v19 May 10 16:56:41 but general apps, I havent ran into any pain to keep v16-18 within support range, just extra layout props and some if checks. nothing too big of a deal May 10 16:57:29 it can come into problems when you try to support new things, while backporting to the old stuff May 10 16:57:55 Like a lot of the material elements, like ripples, are a pain to backport May 10 16:58:37 Iv had great luck with that, but for the most part its the libs I use that did the hard work May 10 17:05:08 what would you say is good dimensions for a button image May 10 17:05:25 24dp probably May 10 17:06:03 okay :D May 10 17:21:08 mfw my app is 10x faster when i buffer my streams... May 10 17:25:53 hi, i'm trying to show messages from a different Thread in a TextView inside Fragments that are spawned programmatically, how should I avoid data races? usually the text is sent before the Fragment is ready May 10 17:29:12 store the messages in a queue? May 10 17:34:17 Hey is there anything i can do about this: https://code.google.com/p/android/issues/detail?id=75718 having this issue as well, pretty annoying, and setting process priority manually each time sucks May 10 17:35:23 s73v3r: I'll look into it May 10 17:39:25 ktwo what platform are you using? my old mbp builds slow but audio / video is fine - unless its from web browser plugin or flash May 10 17:39:54 windows 10 x64 May 10 17:40:48 hw is core i5 4570, 16GB ram May 10 17:41:04 i have core 2 duo, 4g ram May 10 17:41:05 i have a china phone and my developer options are missing is there any way to make that options show up? i tapped 5times to enabled them but meniu wont bring them up - only usb debugging? May 10 17:41:10 Hi all. Do any of you have experience working with Realm databases? I am having a problem importing JSON into Realm May 10 17:41:18 @devop which device? May 10 17:41:31 you tap 7 times, devop May 10 17:41:32 gino gw something its rebranded May 10 17:41:51 basically lowering the process priority would help, but it seems gradle runs in a different process than AS May 10 17:41:53 yes i did 7 times says dev options enabled but only usb debugging shows up May 10 17:41:54 and it’s entirely possible they removed those options May 10 17:42:03 devop you have to keep tapping until android is convinced you are ready for the power ... May 10 17:42:13 If it's a Xiaomi device developer options are still there May 10 17:42:18 in MIUI May 10 17:42:25 its an mtk device with aosp rom i think May 10 17:42:40 Oh May 10 17:42:49 mtk 6572 May 10 17:43:21 contact mtk , see what they say May 10 17:43:38 hi May 10 17:43:45 i'm not sure what android system i should pick up gentlemen, in that menu https://i.imgur.com/z2ZFAJq.png , i was following these instructions http://developer.android.com/training/basics/firstapp/running-app.html exactly in the Run on the Emulator section http://developer.android.com/training/basics/firstapp/running-app.html May 10 17:44:11 so many devices out there, butchered in their own unique ways ;) May 10 17:44:15 6.0.1 for devving if you are targetting API 23 May 10 17:44:21 since you will need to work with runtime permission May 10 17:44:49 You should consider using Genymotion though, it's a lot better than stock emulator (although google's emulator is getting better) May 10 17:47:59 liuwenhao: i'm using API 8 May 10 17:48:05 liuwenhao: the one advised in the tutorial May 10 17:48:16 liuwenhao: they were speaking of compatibility thing May 10 17:48:25 the tutoral must be quite old no? May 10 17:48:26 You don't need to target API 8 anymore, unless you are Facebook or Google May 10 17:48:41 but thats the mininimum SDK, not the target SDK May 10 17:48:54 I wouldn't go below 15 May 10 17:48:56 set your min SDK to 14 or 15 and target 23 (or 22 if you don't want to deal with runtime permissions while learning) May 10 17:49:14 liuwenhao: ah yeah the minimum SDK version was something like android 8 when i created the project May 10 17:49:27 Actually targetting 22 while learning is probably a better idea, permissions can be a huge pain to deal with and there are other things you need to learn first May 10 17:49:29 hassoon: What tutorial are you using? It can’t really be good if it’s that old May 10 17:50:26 s73v3r: there http://developer.android.com/training/basics/firstapp/creating-project.html , i was told to choose the minimum SDK with API 8 (android 2.2 foryo) May 10 17:50:29 hassoon to learn android, i would set minSdl=23 and targetSdk=23 May 10 17:50:47 @hassoon in the build.gradle Module:app you can change it May 10 17:50:47 all the compat shit is just confusing and distraction May 10 17:50:53 ala defaultConfig { May 10 17:50:53 minSdkVersion 15 May 10 17:50:53 targetSdkVersion 23 May 10 17:51:43 umm May 10 17:52:01 just follow the tutorial for now May 10 17:52:08 you’ll come up to those things later May 10 17:52:29 although you might want to take the Android Udacity course from google May 10 17:52:30 s73v3r: as of now, shouldn't i choose the system image of the most recent android version ? May 10 17:52:34 @hassoon Btw Emulator version doesn't matter, your app will run on all of them (as long as you meet the minimum SDK) May 10 17:52:39 But yeah, recent is best May 10 17:52:44 liuwenhao: ah okey May 10 17:52:45 for emulator yes May 10 17:52:45 6.0.1 (api 23) May 10 17:52:59 5.0 or 5.1 are fine for testing too (api 21 and 22) May 10 17:53:12 that means marshmallow May 10 17:53:13 :) May 10 17:53:56 thanks, imma go out for a walk May 10 17:54:00 later gentelemen May 10 17:54:05 *gentlemen May 10 17:54:10 Have fun with Android :) and don't get too frustrated, it's a pain to learn May 10 17:54:22 have aspirin nearby May 10 17:54:28 and booze May 10 17:54:56 maybe LSD would help me design cleaner code May 10 17:55:15 'the fragments are dancing around the adapters!" May 10 17:55:31 its framelayouts and bundles all the way down May 10 17:56:06 and strings May 10 17:56:54 and dont forget to recycle things May 10 17:56:57 and arrays May 10 17:57:02 thepoosh ! May 10 17:57:06 not sure what we're talking about May 10 17:57:10 sup May 10 17:57:40 thepoosh if you put an android app in a blender, it would break apart - all would be left are framelayouts, bundles, and strings May 10 17:58:10 g00s: marijuana is part of the reason it took Hurd a decade to boot at all May 10 17:58:17 lol May 10 17:58:31 well yeah, i didn't say pot :D May 10 17:59:05 (one dev was pothead, the other was an arsehole, and DMS was PM) May 10 17:59:08 maybe some Oxycontin would help May 10 17:59:11 *RMS May 10 17:59:38 g00s: have i told you how much i hate google documentation May 10 17:59:42 the Oxycontin would help with the pain and depression May 10 18:00:04 thepoosh lol i just assume everybody hates google docs, only a few disagree ;) May 10 18:00:23 android docs are fine May 10 18:00:33 but google docs are shit May 10 18:01:32 thepoosh do the new / better emus all have latest play services ? May 10 18:01:51 g00s: are you referring to last week tonight? May 10 18:02:06 emus? May 10 18:02:34 lol john oliver? he's pretty funny but i haven't watched that lately May 10 18:02:48 thepoosh yeah you know, those bird like things May 10 18:03:26 WAT May 10 18:03:46 g00s: the last one was about crappy take aways from scientific research May 10 18:04:02 Hello. I am writing an java android app. I have a toolbar that i have set as my action bar in multiple activities. When I click on one of the buttons, the action get executed twice. I am using the setOnClickListener in all of my activities. Can anyone tell me why this is? May 10 18:04:18 Or should I be using Fragments instead of activities? May 10 18:04:20 The shit science one was great May 10 18:05:19 thepoosh http://i.imgur.com/q8HUOnu.gifv May 10 18:05:53 g00s: now explain what's the connection to gms May 10 18:06:06 i meant emulator thepoosh emulators = emus :) May 10 18:06:13 oh my May 10 18:06:19 don't use emus May 10 18:06:23 hate them May 10 18:07:15 I have a question on widgets May 10 18:07:55 konk3r: ? May 10 18:08:38 Will there be a running application between onEnabled and onDisabled? May 10 18:08:52 xrandr: why not base activity class that everyone extends? May 10 18:09:31 how can I change the network so that I get a smoother transition from wifi to mobile and back May 10 18:09:49 I have a background service I need to pass information to the widget from, I've never dealt with widgets so I was planning on just having the widget subscribe/unsubscribe from a bus kept by the application in onEnabled/onDisabled respectively May 10 18:10:23 thepoosh: forgive my newbness, but what do you mean by that? May 10 18:10:47 xrandr: how do you create an activity? May 10 18:10:54 literally how? May 10 18:11:11 Oh wait, widgets are completely disconnected =/ this is annoying May 10 18:11:31 thepoosh: In android studio, I right click on the java package, click new, click empty activity May 10 18:11:43 though, that's probably not the answer you're looking for May 10 18:12:45 xrandr: and what is the output of that procedure? May 10 18:13:25 I'll pastebin it May 10 18:13:59 xrandr: i know what the output is May 10 18:14:01 you don't May 10 18:14:07 that is why i'm asking May 10 18:14:21 http://pastebin.com/aywvXGQH May 10 18:14:37 huh May 10 18:14:50 do you understand line #6? May 10 18:14:57 xrandr: ^ May 10 18:15:21 xrandr: He’s talking about base classes. if you’re not sure about that, then you should go brush up on your basic Java. It will help you immensely May 10 18:15:33 yeah, my class is extending AppCompatActivity. So you're saying create one activity that every other activity is extending? May 10 18:16:09 that’s what he’s saying. Although I’m never a fan of that approach, as that base class ends up being the dumping ground for every little thing May 10 18:16:52 How come parcelable automatically gets cast to the type you want: X myX = bundle.getParcelable("xKey") May 10 18:16:57 But Serializeable doesnt? May 10 18:17:11 different implementations May 10 18:17:18 Hows it work? May 10 18:17:25 s73v3r: Why is that a bad thing? May 10 18:17:47 i already said: the base class ends up being a dumping ground for every little thing May 10 18:19:10 it becomes a huge god class that touches everything, and what’s actually happening becomes quite difficult to reason from any individual activity May 10 18:19:24 use fragments [solved] May 10 18:20:19 thepoosh: Then in that main activity class would I just keep changing the content view ? May 10 18:20:48 i could use some guidance debugging an issue with my app. on my 4.4.2 device, it looks like the OS is killing processes on task swipe which i have tagged "stopWithTask: false". I have logging in onDestroy which is not being reached. My app is organized so that background services are in a separate process. it seems that whole process is killed on swipe. May 10 18:21:16 er the *services* are tagged, not the process May 10 18:23:13 Ashiren: solved as long as nothing causes crashes or worse May 10 18:23:35 g00s: I'll soon be dealing a bit with long polling May 10 18:23:39 any advice? May 10 18:27:16 thepoosh no, sorry. have you looked at JobScheduler ? May 10 18:27:37 i haven't used it yet, minsdk=21 May 10 18:28:26 i have minsdk 16 May 10 18:29:44 set to 21 [solved] May 10 18:30:06 thepoosh did you see top comment here https://www.reddit.com/r/androiddev/comments/4i4cyc/syncadapter_is_it_worth_it/ May 10 18:30:19 "To do periodic syncing properly, use JobScheduler APIs (or their backported version bafflingly called GcmNetworkManager)." May 10 18:30:30 ok, so fragments it is :P May 10 18:35:44 thepoosh and there is that evernote library - never heard of it until now May 10 18:36:02 https://github.com/evernote/android-job May 10 18:36:17 thepoosh you guys suck for not having any open source libs May 10 18:37:23 Can retrofit parse xml May 10 18:37:31 Well, can it work with a xml parser? May 10 18:37:47 yes May 10 18:38:17 Sweet May 10 18:40:07 g00s: yeah May 10 18:40:10 well... May 10 18:40:15 there is that much I can do May 10 18:40:30 although our Android UI guy wrote his own open source animation lib May 10 18:41:31 did I notice correctly and Android is using okHttp now instead of ApacheHttpClient? May 10 18:41:37 yes May 10 18:42:28 cool May 10 18:42:46 HttpUrlConnection stayed the same? May 10 18:42:49 or is the underline impl also okhttp? May 10 18:42:54 How great would it be to call a function that returns an observable that flat maps to an observable returned by that function May 10 18:43:27 ?! May 10 18:44:07 thepoosh why not just use okhttp directly ? May 10 18:44:12 get the latest one May 10 18:44:22 g00s: I mentioned that to our tech lead May 10 18:44:29 he said that we should but we won't May 10 18:44:34 lol May 10 18:44:47 because Volley was our choice and changing stuff causes time to be spent May 10 18:45:14 yup May 10 18:45:31 but i think it's stupid not to use it May 10 18:45:36 haven't used volley May 10 18:45:45 wtf is fickus doing these days May 10 18:45:47 you can use volley with okhttp May 10 18:45:57 JakeWharton even had a post about it once May 10 18:46:02 about 5 line of code May 10 18:47:11 Coolest observables ever: http://pastebin.com/zLDAwVHX May 10 18:48:07 explodes: that looks like recursion May 10 18:48:14 which is the least cool thing in the world May 10 18:48:23 i would even go as far as calling it lame May 10 18:48:34 ouch dude May 10 18:49:04 recursion is only cool if you're doing tree searches May 10 18:49:08 Pretty sure it would return an Observable that emits 0 - which is pretty useful sometimes May 10 18:49:09 and even then meh May 10 18:49:52 explodes congrats, thepoosh has bestowed a meh upon you ! May 10 18:50:13 he has been mehed May 10 18:50:25 your job is done here thepoosh May 10 18:50:33 [solved] May 10 18:52:47 oh oh system update, i always tremble with fear when android 'optimizes' all the apps on the device May 10 18:53:17 not lang ago it just got stuck on one forever, had to reflash the device May 10 18:54:58 g00s: what are you running? May 10 18:55:19 latest 6.0.x on n7 (2013) May 10 18:56:19 n7? May 10 18:56:22 nexus? May 10 18:56:48 Seems retrofit is cutting off the last part of my URL May 10 18:56:55 nexus 7, of yore May 10 18:58:42 this 'optimizing app x of 57' is terrible UX May 10 18:58:48 having to go through this shit on each update May 10 18:59:03 Its cutting off index.php May 10 18:59:04 can't even imagine what a low spec Android One device does May 10 18:59:06 Why? May 10 19:00:28 drose379 what is your base url? May 10 19:00:44 Just got the update too. bug fixes I suppose? May 10 19:01:06 may security patch I guess? May 10 19:02:18 Does anyone know if theres a way to listen for the footer view of my listview being drawn on screen? Essentially I need a listener that tells me the user hit the bottom of my list so I can load more. May 10 19:02:40 looks like it: https://source.android.com/security/bulletin/2016-05-01.html May 10 19:05:34 eghdk: couldn't you check the view type on the getView callback? May 10 19:14:57 Does getView get called for a footer view? I didn't think it did because I set the footer view programatically. May 10 19:15:05 Any tips about uploading photos ? Should I compress it ? Right now I'm sending it as it is. Today I got report from user that received an Unsuccessful message. I suspect he got a time out :( May 10 19:23:01 eghdk: I believe it does. I haven't used ListView in a while though. May 10 19:25:44 wviana: What do your user's expect? High-res photos or don't care? You should probably handle timeouts by retrying regardless. Also, might want to send a thumbnail with your photo as well to show in your lists. May 10 19:26:17 Error:trouble processing "javax/xml/XMLConstants.class": May 10 19:26:27 I get this when trying to add retrofit simpleXMl dependency May 10 19:27:04 Anyone seen this? May 10 19:50:55 hey, i'm getting a bunch of errors and i think they belong to dagger May 10 19:51:39 because they end with .access$super May 10 19:51:44 Anyone know why retrofit 2 callback gives you back the call in onResponse May 10 19:53:25 drose379 isn't that stuff documented ? May 10 19:53:37 Reading through something now.. May 10 19:53:44 Was wondering if anyone could throw a quick answer at me though May 10 19:55:15 I have this retrofit service [http://dpaste.com/3NTJSKN] and when I use it like movieService.popular(1), I get IllegalArgumentException: Unable to create call adapter [http://dpaste.com/2ES1YVP] Any idea why? May 10 19:55:32 Prob using 2 diff versions of retrofit astroduck May 10 19:56:41 g00s: anywhere you can point me to that explains why this is? May 10 19:57:02 E/dalvikvm: Could not find class 'android.... sounds familiar? May 10 19:57:28 astroduck: make sure you've added the rx converter thingy in ur dependecies May 10 19:57:33 drose379 no, just seemed like such a basic Q it should be in the docs May 10 19:57:41 http://arstechnica.com/gadgets/2016/05/google-io-2016-preview-a-chromeandroid-merger-project-tango-vr/ May 10 19:57:54 g00s: I cant really find it anywhere, could you tell me? May 10 19:57:57 The answer May 10 19:58:09 i haven't used retrofit yet May 10 19:58:11 Does anyone know if it's possible to flip a listView? Essentially so that the 0 index isn't on top, but its actually on bottom? May 10 19:59:16 orbyt_: You mean com.squareup.retrofit:adapter-rxjava? May 10 19:59:26 Yeah I didn't have that May 10 19:59:35 then yea May 10 20:05:28 eghdk, you could easily do that by just creating an adapter that flips it for you May 10 20:06:19 class FlippedAdapter(base: ListAdapter) extends BaseAdapter { getView(position) = base.getView(getCount - position) } May 10 20:06:20 roughly speaking May 10 20:06:47 think he means physically flip the listview around May 10 20:06:57 you can stack from bottom May 10 20:07:16 wouldnt it make more sense with a layout manager May 10 20:07:30 if you're using a recyclerview, yes May 10 20:10:24 thanks. Will look at custom adapter May 10 20:10:30 anyone knows how to determine the method count ? May 10 20:10:46 few plugins for it May 10 20:12:39 ? May 10 20:12:48 ? May 10 20:14:55 and without a plugin? May 10 20:15:08 start counting i guess May 10 20:18:50 is there a better way to communicate between a service and activity using ipc besides android Messages May 10 20:19:33 or Messengers* rather May 10 20:20:30 cat build/dex/debug/classes.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' says 30k, is this accurate enough? May 10 20:23:42 * xrandr runs around to burn off some steam May 10 20:25:54 Getting: org.xmlpull.v1.XmlPullParserException: unterminated entity ref May 10 20:26:03 Even though the xml is all correct May 10 20:26:05 orbyt_: Added com.squareup.retrofit2:adapter-rxjava:2.0.0 and .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) but I'm still getting the same error May 10 20:26:52 make sure its the same versions May 10 20:27:57 drose379: if it's not an element that's not being closed properly, make sure it's not an unescaped characted that's getting through May 10 20:28:30 try do something like ref.replaceAll("&", "&"); May 10 20:28:40 Where do I do that though May 10 20:28:56 The XML gets passed right to SimpleXML and I dont see it until it fails May 10 20:28:58 in the code where you're setting the ref variable May 10 20:29:32 Maybe before you pass it you could turn it into a string and try what I mention it, it's the only scenario I can see... If it's not that, maybe someone else can help you out May 10 20:29:50 There are ampersands into the XML response so I bet thats the issue May 10 20:29:56 Ah, see? May 10 20:29:56 I just dont know what you mean by ref variable May 10 20:30:19 XmlPullParserException: unterminated entity ref(erence)? maybe, i thought that was your variable name May 10 20:30:33 Oh no its not May 10 20:31:06 orbyt_: Yes they are all same version 2.0.1 May 10 20:31:47 drose379: how are you loading the XML? you should just be able to run .replaceAll on whatever you're using to load it May 10 20:31:54 as xml really is just a string anyways May 10 20:32:13 Well im using retrofit so I dont really get access to the response data May 10 20:32:16 Until its parsed May 10 20:33:06 Has anyone had to deal with this before with retrofit? May 10 20:34:41 drose379: but can't you replace it before you pass it into retrofit? (Never used it before so I have no idea how it works, maybe you could post a snippet of your code) May 10 20:35:11 I dont think you can intercept it between May 10 20:35:16 Unless I make a custom parser May 10 20:35:26 orbyt_: You ever had to do this? May 10 20:35:40 hi guys I'm updating an app that used to write to the sdcard directly, and now I want to store its data into the app private data directory (so its files won't be deleted by various Cleaner apps). Now, how should I go about updates? (Now that the storage directory changed, it is empty...) May 10 20:36:07 Or would I be better off sticking a "check-if-old-dir-exists-and-move-all-files-to-new-directory" in the onCreate of the main app? May 10 20:37:26 I would think the app's onCreate is run at least once after updating the app from Google Store? Even if the existing app is currently running? May 10 20:37:48 arnotixe: by updating, you mean you're remaking it with a different package name and all? because if the package name is the same it should still be there? May 10 20:38:32 I think he just wants to know an efficient way to move the app data directory from /sdcard to /data/data May 10 20:38:46 On an already excisting thing of app data May 10 20:39:40 LunarEclipse120: You use retrofit? May 10 20:39:52 drose379: Why? May 10 20:39:57 Having an issue reading xml May 10 20:40:06 Wondering if you've had experience w it May 10 20:40:07 drose379: Don't be one of those people please May 10 20:40:15 Which one May 10 20:40:21 That ask random people "Why does this do this" May 10 20:40:28 arnotixe: Oh right. when you update the app is killed anyways, so yes, the oncreate would run when you opened it, so yes, I believe the best way would be what you described May 10 20:40:34 RubenADSR: yes well the app code is aged and when it was written, it used Environment data dir: https://github.com/arnotixe/androidbible/blob/develop/Alkitab/src/main/java/yuku/alkitab/base/util/AddonManager.java#L11 May 10 20:40:38 Uhh, I think I have a legit question LunarEclipse120 May 10 20:40:40 drose379: Just ask, someone will help if they can May 10 20:40:52 Ive already asked and no one has seemed to look May 10 20:40:59 drose379: post code please May 10 20:41:14 RubenADSR: you said you've never used retrofit May 10 20:41:15 drose379: Well then no one knows or you aren't giving enough information. Don't go pinging random people May 10 20:41:18 I successfully rewrote it to use Context's getExternalFilesDir(null), returning the app's private data dir. May 10 20:41:30 drose379: That doesn't mean I can't understand what's going on in the code May 10 20:41:44 I just can't give you an answer without seeing whats going on behind the scenes May 10 20:41:53 * LunarEclipse120 needs an app idea May 10 20:41:57 RubenADSR: ok I'll put some code in the app's onCreate checking for the existance of that old data directory and if exists, move it to the internal. "Should" be fine :D May 10 20:42:01 I want to get back into it; I need a good idea. May 10 20:43:29 LunarEclipse120: For me, that always seems like the hardest part, not the actual coding itself May 10 20:43:39 Can I use SimpleXmlConverter without retrofit? May 10 20:44:32 RubenADSR: Well I am not professional, so when I code I just use my basic java knowledge, then Google for the rest May 10 20:44:58 I am self teaching until I go to college; I want something that this time is good enough for the play store May 10 20:47:16 Is there any damn way to tell retrofit / okhttp to escape the response data it receives? May 10 20:48:31 This is way to cringey May 10 20:48:40 meh, hate travis May 10 20:48:43 http://www.preapps.com/app-ideas/topic/524/mobile-operating-system-in-air http://www.preapps.com/app-ideas/topic/10/battery-swap May 10 20:48:52 it keeps killing dex because it wants >1gb May 10 20:52:41 Thnking this could be something? org.simpleframework.xml.core.Replace May 10 20:53:21 Nope May 10 21:07:46 So does anyone know if there is a way I can get access to a requests respone data before it is parsed? May 10 21:07:49 drose379: where is the xml coming fmor? May 10 21:07:56 from May 10 21:08:01 An API May 10 21:11:39 So I've been wondering... When I edit my build.gradle file in Android studio I do not get autocomplete suggestions or anything and parts are marked as "unused" even though they totally are. Is this just how things are or do I have some sort of misconfiguration? May 10 21:12:10 also side question: Is it possible to define a build config field for the abi split value? May 10 21:12:18 I suspect not since it seems like the splitting occurs after compilation May 10 21:17:08 anyone have experience with analytics? May 10 21:17:21 as far as trying to build something to use multiple analytics tools? May 10 21:18:36 drose379, what do you mean with parsed? May 10 21:19:32 something generic, so the code in the fragment/activity doesn’t have to know about the particular analytics tool used, but the decision can be made saying this event goes to this tool, but not this tool, or send it to all tools? May 10 21:19:57 can someone tell me what is wrong with this code: http://pastebin.com/kzmh97Rz May 10 21:20:20 xrandr: don’t ask that. say what problem you’re actually having May 10 21:20:32 im getting a null pointer exception May 10 21:20:40 im using a fragment inside an activity May 10 21:20:51 the fragment gets inserted into a linearlayout May 10 21:21:10 when i try to access the visual elements from the fragment, i get a null pointer exception May 10 21:21:12 http://imgur.com/jacoj May 10 21:21:44 Globals eh? May 10 21:21:51 are you trying to access those elements from your activity? May 10 21:21:57 s73v3r: yes May 10 21:22:01 don’t do that May 10 21:22:11 you have a fragment. do it in there May 10 21:22:56 Pyuruku yeah thats normal May 10 21:23:18 s73v3r: Not quite sure how to do that. I have the fragment class, but if I try and do it there, it can't do the findViewById to get the visual elements May 10 21:23:30 yes, you can May 10 21:23:31 x_x May 10 21:23:37 you need to go read up on fragments May 10 21:24:24 this is my fragment class: http://pastebin.com/f8kysBF1 May 10 21:24:29 g00s: what about putting the split abi into BuildConfig? May 10 21:24:38 xrandr: go read up on how to use fragments May 10 21:25:46 hi, how can i make a custom request method, like GET but with body ? May 10 21:25:56 basically, much of the stuff you’re doing with the spinner, you’re gonna want to do in your fragment May 10 21:26:01 lads, I'm using retrofit 2, downloading 1300 items in json, but message gets cut off at ~975 May 10 21:26:06 any idea whats up ? May 10 21:26:39 what is 'items'? May 10 21:26:40 s73v3r: I am looking for documentation online on how to do that May 10 21:26:49 hello May 10 21:26:53 it’s in the basic fragment documentation May 10 21:27:38 danijoo: json item in array, it's simple json {id, lat:, lng:, description:} May 10 21:27:39 Anyone else having problem with OpenCamera not applying video resolution on S5 properly, i have it set to 120FPS with appropriate Res and Bitrate and still only 30FPS May 10 21:28:21 Hessesian, have you made sure its retrofit which does the cutoff and not your server? May 10 21:28:57 also showing your code would help May 10 21:30:16 danijoo: when trying through browser, it returns full json May 10 21:30:45 danijoo: when I'm downloading through phone, okhttp doesn't even log that response has ended May 10 21:30:58 maybe it times out? May 10 21:33:22 danijoo: http://pastebin.com/r0P8YALy May 10 21:33:27 some snippets May 10 21:35:23 maybe its some kind of butter/timeout issue. May 10 21:35:30 1k items sounds huge to me May 10 21:37:06 danijoo: well it's 282kB May 10 21:37:17 hradly humongous json May 10 21:37:25 although 1300 is rather large May 10 21:43:35 * xrandr bangs head repeatedly May 10 21:43:50 Thinking ill ask my question again inscase anyone missed earlier May 10 21:44:22 I am trying to handle an XML response from an API with retrofit and SimpleXmlConverterFactory May 10 21:44:34 But it keeps failing because the respone contains characters that need to be escaped May 10 21:44:41 Anything I can do about it? May 10 21:47:24 i hate my life May 10 21:48:21 s73v3r: I'm still having trouble with this. Now it's just showing a blank spinner May 10 21:48:48 http://pastebin.com/mnnA6Dxw May 10 21:49:50 /join #retrofit May 10 21:49:54 :( May 10 21:51:16 when you click the spinner, does it show your options? May 10 21:51:26 no May 10 21:55:59 s73v3r: any idea why? May 10 22:19:42 why is Resources.getDrawable nullable May 10 22:22:30 missingno: is it? hmm May 10 22:24:04 yeah I am going thru it and I can't figure out how it would return null without throwing a NotFoundException first May 10 22:35:51 lads, okhttp cuts off my stream after 100ms May 10 22:35:53 what do May 10 23:18:30 Guys, how would I attatch something to the bottom of a NavigationView? (for example, there is a app:headerLayout for the header, but I want to have a footer too, how would I go about that? May 10 23:28:43 throw a layout in there with bottom gravity? May 10 23:29:45 you could even nest another NavigationView in there if you wanted May 10 23:43:39 singleinstance or singletask launchmode for a launcher? May 10 23:43:55 And why May 10 23:44:11 (▀̿Ĺ̯▀̿ ̿) May 10 23:46:14 anyone know the name of that app where someone records themselves talknig about and idea or something for like 30 secs and then it gets pass to a bunch of people in a timeline? May 10 23:46:40 its like a debate app? I guess May 10 23:52:35 orbyt_, sharecare? May 10 23:53:01 what? no May 10 23:53:17 its like snapchat May 10 23:53:22 but instead of pictures May 10 23:53:30 its snippets of verbal chat May 10 23:53:41 cant remember its name May 10 23:58:05 Debate! May 10 23:58:06 ? May 10 23:58:20 nvm May 10 23:58:26 so many useless fucking debate apps lol May 10 23:58:32 I was scared because Snapchat didn't record video in CyanogenMod May 10 23:58:38 Fixed in a nightly though May 10 23:59:28 Seriously google May 10 23:59:38 You're the king of search. Fix Google Play's fucking search. May 10 23:59:40 Shit sucks May 11 00:43:02 Has anyone here ever delt with XML with Retrofit? May 11 00:57:09 now whatsapp has a desktop version May 11 00:57:28 based on electron. so weird desktop apps are being written in JS but mobile ones are java :P May 11 01:01:42 i have a bad feeling about this http://arstechnica.com/tech-policy/2016/05/oracle-tells-jury-dont-buy-googles-fair-use-excuse/ May 11 01:03:03 Google fucked up, and thought they could hand wave stuff away. Should’ve used OpenJDK from the start May 11 01:03:18 thought they were too big to fail, so to speak May 11 01:04:04 Well it shouldn't be that hard to change it? May 11 01:04:10 Isn't it kind of the same code May 11 01:04:16 They just have to switch the libraries May 11 01:04:33 if this goes the wrong way it could fuck up the whole industry May 11 01:04:59 Same with that one company suing all the phone makers May 11 01:05:07 no, because it’s already been done May 11 01:05:19 you don’t just say, “My bad” and then switch it out May 11 01:05:51 oh i mean the legal precedent with APIs / fair use / copyright May 11 01:06:29 also disappointed MS is on oracle's side May 11 01:06:52 i was responding to the argument that you just have to switch the libraries May 11 01:07:17 ;) May 11 01:09:07 wow noam chomsky wrote a new book May 11 01:09:46 hey, what’s a good site that lists android libraries? May 11 01:09:57 like, libraries available for android projects? May 11 01:10:02 there is the android arsenal one May 11 01:10:10 anything else? May 11 01:10:23 I’m looking for inspiration for an analytics library. May 11 01:10:33 well, an interface for multiple ones May 11 01:10:34 s73v3r to write your own ? May 11 01:10:48 oh kinda like slf4j May 11 01:10:52 i guess May 11 01:11:23 we’ve got a couple analytics libraries in our project, and I’d like to have one interface, and not have to have the rest of the app know which ones are being used May 11 01:11:27 cause they always seem to change May 11 01:13:07 yeah so some facade; analytics is one of those cross-cutting concerns that spreads everywhere May 11 01:13:28 yeah. but we’re also not sending the same events to every provider May 11 01:14:16 I’d prefer to have the decision on what to go to what tool to be behind the facade May 11 01:18:09 What if the event was an anonymous class? May 11 01:18:18 nah May 11 01:42:00 I have a new Linux box, and when I run aidl I see something I've never seen before: "-bash: android-sdk-linux/build-tools/23.0.0/aidl: No such file or directory" May 11 01:42:09 has anyone seen that? aidl is definitely there. May 11 01:42:35 the aidl found in 24.0.0-preview looks just fine. May 11 01:42:42 (this just started happening today) May 11 01:43:29 kroot - ideas? May 11 01:44:22 mrandroid: kroot isn't here May 11 01:44:43 lol . my bad. May 11 01:44:49 krooot just set the topic. May 11 01:45:45 mrandroid: check the bit-ness of the binary May 11 01:46:00 Hi Leeds! May 11 01:46:07 It runs find on other Linux boxes. May 11 01:46:28 do those other Linux boxes have a) a 32-bit OS installed or b) multilib support? May 11 01:46:47 good point ... checking bitness May 11 01:47:14 this box is O.K.: Linux buildslave01 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux May 11 01:47:32 THis box can't run aidl: Linux buildslave06 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux May 11 01:47:39 and the binary? May 11 01:48:31 perhaps i don't understand the question ... May 11 01:48:35 the binary is the same file on both machine. May 11 01:48:52 (copied over via rsync) May 11 01:48:55 run 'file' on the binary May 11 01:49:01 and/or ldd May 11 01:50:03 gotcha. just a sec. May 11 01:50:39 on the bad machine: aidl: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=d66ce096c05ba85a4bc628f223a73ce7fa590107, not stripped May 11 01:50:51 on the good machine: aidl: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=d66ce096c05ba85a4bc628f223a73ce7fa590107, not stripped May 11 01:51:46 right, so in both cases it's a 32-bit binary on a 64-bit kernel... May 11 01:51:58 yep. May 11 01:52:03 try ldd May 11 01:52:09 (thanks for reminding me about file command). May 11 01:52:15 someone else ran into this: http://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit May 11 01:52:50 whoa ... May 11 01:53:08 on the bad machine: `ldd aidl` -> not a dynamic executable May 11 01:53:35 on the good one : linux-gate.so.1 => (0xf76f2000) .... and many other lines with more ouptut May 11 01:53:56 so what's missing on the machine that can't run aidl? ideas? May 11 01:54:21 I'll try this: sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 May 11 01:54:31 before you do that May 11 01:54:43 pastebin the result of ldd if you like - or just look for something missing May 11 01:55:26 also, I'm not sure how file says aidl is a dynamic binary on the bad machine, but ldd says it isn't May 11 01:55:47 meh, just install the libraries :) I wish Google would sort out installing a native-bitness SDK May 11 01:56:11 http://pastebin.com/DqdDbBuR May 11 01:56:28 it's like someone over there quit and they're short on people to write docs. May 11 01:56:36 :-/ May 11 01:57:01 that's confusing, seems you have a libc++ in the SDK folder May 11 01:57:58 anyway, that's the problem, that's probably the solution, blame Google... I've got to go out May 11 01:58:54 thank's for your help Leeds. I'm good. May 11 01:59:12 you're welcome - good luck May 11 02:01:41 Leeds : for when you're back. May 11 02:01:46 http://tools.android.com/tech-docs/linux-32-bit-libraries May 11 02:14:53 bitkeeper now open source / apache May 11 02:15:00 thought that name sounded familiar May 11 02:15:38 hey g00s. Leeds never said if he was working on a make build system for Android apps . May 11 02:16:35 mrandroid i think leeds uses ant May 11 02:16:45 k May 11 02:16:55 well, i got the thing started. May 11 02:17:07 starting is the easy part haha May 11 02:17:12 lol May 11 02:17:40 i'm working off of a sample Hello World android app just to get the main use case down. will work up from there. May 11 02:21:51 hey, I'm wondering if this is normal: onBindViewHolder is being called for *every* position (0 to count-1) in the adapter May 11 02:22:09 it's causing a lot of slowdown and I don't see why this has to happen for elements that are obviously off-screen May 11 02:22:50 matt_j don't think its normal May 11 02:23:02 is your adapter messed up , saying each position is a different type or something ... May 11 02:23:13 yeah I'll continue to look into it :\ May 11 02:23:47 listview may onBindViewHolder call for an item off screen (if memory serves) May 11 02:24:05 well one adjacent, yeah ... May 11 02:24:09 but not everything May 11 02:24:27 ugh. May 11 02:24:46 yep ... he's prolly got the adapter serving up a different type, or perhaps not reusing an instance that's passed in.... May 11 02:25:14 nah May 11 02:25:18 there's only one type May 11 02:25:23 very, very simple adapter May 11 02:26:52 docs say that onBindViewHolder is called if the data item is invalidated. Are you invalidating your views programmatically? May 11 02:27:31 I don't think so... May 11 02:30:02 make sure you use getAdapterPosition() if you need to fetch a view by position .... May 11 02:30:11 i gotta head out. May 11 02:30:13 night folks. May 11 02:37:34 Can anyone help me with this issue regarding Retrofit, Gson, and custom deserialization? May 11 02:37:35 https://gist.github.com/scalessec/55ed34d0c1d4171cbaad2f702b317070 May 11 02:41:42 cv-ess: You are trying to be too clever. May 11 02:42:10 Build the Retrofit API to match the REST API. If you want more cleverness around it, then build separate code for that. May 11 02:42:30 Unfortunately that’s not possible May 11 02:42:57 I’ve simplfied this question, but the API and the pojos aren’t even close to matching May 11 02:43:13 mostly because the API delivers the entire response flat May 11 02:43:17 is it just me or is instant run not very reliable May 11 02:43:34 cv-ess: Then you write code that calls the REST stuff and constructs separate objects to match your API's. May 11 02:43:51 grekkos: It's not just you. Do what the rest of us do, and turn off instant run. May 11 02:43:59 haha May 11 02:44:01 loke: that’s what I’m doing May 11 02:44:12 grekkos pretty buggy May 11 02:44:13 loke: do you have any recommendations for speeding up build times? May 11 02:44:25 g00s: yeah seems like sometimes the changes aren't actually made May 11 02:44:45 what i see most often is my Application.onCreate() is not called May 11 02:44:45 grekkos: The amount of time wasted in figuring out if your chage actually is reflected in the code you run is orders of magnitude more than what you'll save using IR May 11 02:45:13 loke: hah okay that explains it, I spent quite a bit of time trying to figure out why this text view wasn't updating May 11 02:46:04 seems like the tools guys are perpetually spread too thin May 11 02:46:10 grekkos: Well, the best way to speed up build times is to not use Gradle, and use IntelliJ IDEA directly. However, it's also a huge assle since pretty much every library uses gradle and usually don't even document where to dins the JAR files. May 11 02:46:28 g00s: They are simply trying to bite more than they can chew. May 11 02:46:36 loke i agree May 11 02:47:07 I wonder if Volley is better suited for this May 11 02:47:07 which is why i also worry about jack/jill ... used to be they could just punt to oracle for javac May 11 02:47:13 g00s: But, it seems as though they are not aware of it. I recommend you listen to the Android Developers Backstage episode about the Studio tools where they interview the developer lead on the project. May 11 02:47:51 g00s: Yeah, I use Kotlin, which adds another layer of uncertainty there. May 11 02:48:22 grekkos: But yes, Instant Run is garbage, and I have seen exactly zero people saying they use/like it. May 11 02:48:37 I liked it at first when I thought it was working May 11 02:48:46 but I'm pretty sure I spent a few hours trying to debug code that wasn't even there May 11 02:48:48 loke they probably should have purchased jrebel May 11 02:48:56 grekkos: I suppose the one category of people why can really take advantage of it are UI designers who spend most of their time modifying the resource files. May 11 02:49:03 but i think the whole build system is fucking catastrophe May 11 02:49:13 any tips for speeding up slow builds? May 11 02:49:16 g00s: Yes. Gradle is utter shite. May 11 02:49:22 grekkos moar ram ! May 11 02:49:27 grekkos: Less gradle. May 11 02:49:32 i have 4G of ram and i still gave gradle 2G :( May 11 02:49:43 g00s: I have 16 GB and gradle is still slow as fuck. May 11 02:49:45 yeah I have 8G ram and I thought my system was spread thin May 11 02:50:02 loke: did you replace gradle entirely? May 11 02:50:22 I'm not sure if I have the time for that right now since our build server is also using it May 11 02:50:37 OK, a quick poll: How many here actually understands Gradle to the point where they are not simply copy&pasting stuff from the documentation and hope for the best? May 11 02:50:41 update: I only seem to be having this problem on KitKat, not android 6 May 11 02:50:45 :( May 11 02:50:48 loke lol May 11 02:51:13 so funny too, i think a few polls said groovy was getting popular ... you know why May 11 02:51:14 I don't really know how gradle works tbh May 11 02:51:46 grekkos: You and the rest of the community. And that's bloody sad. May 11 02:51:55 think the problem is twofold: gradle is complicated but also groovy always leaves me wondering wtf is valid or not May 11 02:52:45 hahah May 11 02:52:48 yeah May 11 02:52:55 g00s: But gradle is worse. It's actually impossible to "know" gradle, since it doesn't actually have a syntax. It's just a bunch of plugins that to magic. May 11 02:52:59 s/to/do/ May 11 02:53:31 yeah, never thought i would say this but actually like maven better May 11 02:53:53 but a lot of its plugins were shit too May 11 02:54:20 i never really used maven either May 11 02:54:24 Glad to hear I'm not alone in my Gradle frustration. Hopefully I can help in that area May 11 02:54:25 and the XML was very XML-y May 11 02:54:51 g00s: I had to use Maven at some occasions, and I really thought that was the worst build system I've ever had the misfortune to use (and I've been a developer since the 80's) May 11 02:55:02 loke: My experience with Gradle is that the only way to get by is by SOP: Stackoverflow Oriented Programming. May 11 02:55:04 But. that was before I came across Gradle. May 11 02:55:18 CedricBeust: Excellent point! May 11 02:55:20 its all copy pasta for our build.gradle files May 11 02:55:33 CedricBeust: sounds like a Standard Operating Procedure May 11 02:55:39 And then, after one too many Stackoverflow copy/paste, I decided to stop fixing the symptoms and attacking the cause, so I created Kobalt. May 11 02:55:49 kobalt lol May 11 02:55:59 Don't you laugh at my baby May 11 02:56:07 CedricBeust: What is Kobalt? May 11 02:56:09 I just think the name sounds a like like COBOL May 11 02:56:17 http://beust.com/kobalt/home/index.html May 11 02:56:18 like/a lot May 11 02:56:22 grekkos: COBOL is a step up after Gradle :_) May 11 02:56:53 hehe May 11 02:57:04 CedricBeust: That looks pretty neat. May 11 02:57:28 CedricBeust: I think I will try this. May 11 02:57:38 loke: Would love your feedback if you get a chance to play with it. Also, I'm happy to write a Kobalt build file for anyone interesting in building their project with it May 11 02:57:38 the tools on android are arguably better than on iOS, minus the build system May 11 02:57:46 interested* May 11 02:58:27 CedricBeust: This is the gradle file I'd be migrating. Do you fresee any issues? May 11 02:58:28 https://github.com/lokedhs/PotatoAndroidTest/blob/master/app/build.gradle May 11 02:59:07 Sounds like a pretty standard Android build, although I haven't implemented Proguard/minification yet. May 11 02:59:28 CedricBeust: I'm not using proguard. May 11 02:59:33 CedricBeust: i can give it a shot on my personal projects May 11 02:59:37 Will have to look into the com.google.gms.google-services plug-in though, what does that do? May 11 02:59:39 CedricBeust: It's there because of C&POP May 11 02:59:56 (copy&paste oriented programming) May 11 02:59:58 CedricBeust: i'm locked out of almost all 3rd party things for my full time position **** ENDING LOGGING AT Wed May 11 02:59:58 2016