**** BEGIN LOGGING AT Wed May 04 02:59:58 2016 May 04 04:04:36 http://developer.android.com/about/dashboards/index.html May 04 04:05:26 How is anyone using froyo lol May 04 04:16:08 Gradle build system is insane. May 04 04:16:11 Insane, I tell you. May 04 04:16:18 it's a step back in time about 20 years. May 04 04:17:49 mrandroid: Some people are working on an alternative May 04 04:18:05 do you have a link to the project? May 04 04:18:47 all the time I'm wasting figuring out undocumented "features" of the Android Gradle Plugin would be better spent there. May 04 04:18:48 I actually do! http://beust.com/kobalt May 04 04:19:08 reading ... May 04 04:19:35 so, just out of curiosity: what happened to the concept that the build system just needs to execute command line operations? May 04 04:19:55 #rhetorical May 04 04:19:57 mrandroid lol, that died with ant May 04 04:20:06 non portable builds anyone ? May 04 04:20:57 g00s: that would be o.k. except the Android tool chain is just a set of commands that can run on the command line. Gradle just executes those and sets up parameters. May 04 04:21:24 and it's not handling library dependencies at all. May 04 04:21:32 'make' does a better job at that. May 04 04:21:39 * mrandroid is going to stop ranting now. May 04 04:22:00 gradle handles dependencies, not sure what you are talking about :) May 04 04:22:30 lol. May 04 04:22:47 :projectAppTemplate:dexDebugUnknown source file : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/ccc/lib/BuildConfig; May 04 04:22:49 Unknown source file : 1 error; aborting May 04 04:23:39 you mean like that, g00s? :-) May 04 04:24:12 :D May 04 04:27:29 the idea that the build system knows a file is already added, and decides to see that as an error... May 04 04:31:05 <[ADAM]> Is the thing not linked? May 04 04:31:22 [ADAM]: What thing? May 04 04:31:38 <[ADAM]> nick [LGL34C May 04 04:31:47 [ADAM] you are back spewing nonsense May 04 04:32:00 Oh ffs May 04 04:32:16 [ADAM]: You are that guy in the other channel too. Can you please stop being an idior May 04 04:32:19 *idiot May 04 04:33:11 mrandroid its probably something simple May 04 04:33:36 agreed g00s, but it's obscure. May 04 04:34:00 make is no good for building android May 04 04:34:13 my favorite are those xml inflation errors from android: Error inflating line #12 of XML file :D :D May 04 04:34:35 I'll make you a bet, pfn ... I can use make to build and Android app with far less issues than Gradle. May 04 04:34:49 mrandroid nobody is holding you back May 04 04:34:53 do it ! May 04 04:34:58 do eeet ! May 04 04:35:14 fine . it's on. May 04 04:35:19 mrandroid I will totally take that bet May 04 04:35:51 so what should the success criteria of the setup be? May 04 04:36:03 mrandroid you can't call into gradle :D May 04 04:36:48 very good g00s. check. May 04 04:36:51 lmfao May 04 04:36:53 next? May 04 04:37:23 i'll add this: only calling Android toolkit commands is allowed. May 04 04:37:38 java, aapt, jarsigner, etc ... May 04 04:37:40 yes? May 04 04:37:52 oh, and we can include NDK. May 04 04:38:06 How about variants? May 04 04:38:18 not a problem. Must handle variants. May 04 04:38:24 chcck May 04 04:38:26 check May 04 04:38:40 Transform API May 04 04:38:49 mrandroid ask Leeds if he already did something like this haha May 04 04:39:22 custom class manipulations are for whimps May 04 04:39:26 CedricBeust is gradle experimental a complete rewrite ? May 04 04:39:33 No idea May 04 04:39:39 <[ADAM]> LunarEclipse120 where do I check the versions my phone has so I can download the same version of android in my dev kit? May 04 04:39:51 same with runtime injection. May 04 04:39:58 Guavac ... phooey May 04 04:40:03 <[ADAM]> Starting with [LGL34C] May 04 04:40:21 [ADAM]: About device -_- May 04 04:40:57 [ADAM]: Also, I know [LGL34C] Is you. You do not need a nick of your device May 04 04:41:14 <[ADAM]> It claims Android 4.4 I don't see a 4.4 in the list. May 04 04:41:39 [ADAM]: KitKat May 04 04:41:40 <[ADAM]> API 19 and 20 May 04 04:41:40 no offense CedricBeust, but chances are the Transform API is just a wrapper around another tool set ... just guesing. May 04 04:41:57 [ADAM]: 4.4 is API Level 19 May 04 04:42:15 [ADAM]: But you can lower it to support older Android users May 04 04:42:24 [ADAM]: They are backwards compatible May 04 04:42:55 <[ADAM]> Another has 4.4.2 May 04 04:43:14 [ADAM]: Same level May 04 04:43:25 <[ADAM]> Another also claims 4.4.2 May 04 04:43:37 [ADAM]: API 19 May 04 04:43:51 <[ADAM]> What about 4.4 May 04 04:44:01 [ADAM]: Same thing May 04 04:44:05 <[ADAM]> It had claimed 4.4.1 May 04 04:44:26 <[ADAM]> Or 4.1 May 04 04:44:42 [ADAM]: Anything 4.4.x is API Level 19 May 04 04:44:47 <[ADAM]> Whatever [LGL34C] has it isn't listed. May 04 04:44:55 [ADAM]: You are the same person May 04 04:47:56 <[ADAM]> No that is my "phone" May 04 04:48:35 [ADAM]: And you don't need to register it as a nick either. May 04 04:48:35 ffs May 04 04:48:48 [ADAM]: If you own a device you can type it. You do not need it to be a user May 04 04:49:01 <[ADAM]> It is being worked on? May 04 04:49:24 [ADAM]: Is what? No one here understands what you have been talking about May 04 04:49:39 [ADAM]: You are obviously not smart enough to use IRC yet develop an app May 04 04:50:22 <[ADAM]> I was looking for the source code of Wes Cherry's solitaire. May 04 04:50:33 [ADAM]: And? May 04 04:50:38 <[ADAM]> Really all I need to do is replace the card images. May 04 04:50:42 [ADAM]: We don't make it. May 04 04:50:57 [ADAM]: Then import it into Android Studio, replace them. Then build the APK May 04 04:51:01 <[ADAM]> It was purchased by microsoft I take it and never released. May 04 04:51:55 <[ADAM]> bang bang LunarEclipse120 May 04 04:52:14 [ADAM]: Stop it please. You have no idea what you are talking about May 04 04:55:19 <[ADAM]> Can you find the code LunarEclipse120? May 04 04:55:43 [ADAM]: No May 04 04:55:52 [ADAM]: You said you have the source code May 04 04:56:59 [ADAM]: Just replace the images in the res folder May 04 05:19:04 Reto Meier replied to my tweet May 04 05:19:05 :) May 04 05:20:21 squ what did he say ?! May 04 05:20:33 he ignored question May 04 05:20:39 lol May 04 05:20:51 and said something promotional May 04 05:21:04 standard reply, you know May 04 05:24:19 squ ask him why they took th ebox away May 04 05:24:36 (in the last video) May 04 05:26:01 CedricBeust i had to laugh, somebody called ceylon "the project redhat forgot to cancel" May 04 05:26:08 actually maybe sad :( May 04 05:26:20 nay :) https://twitter.com/retomeier/ May 04 05:26:49 romainguy is in twitter too May 04 05:26:58 I think they ran away from us, angry customers May 04 05:27:29 heh May 04 06:34:36 I have a rectangular image and I am adding it to toolbar and also populating it in an image view. I see that the image is not displayed properly and is very small relatively. Can someone let me know how to fix this. May 04 06:36:51 Hello, I use IAP in my app. This IAP is intended for removing ads and unlocking a menu. In the purchasing process I use user email address as dev payload. Is using email address as payload a good idea? May 04 06:57:39 I've tried multiple ways of drag and dropping now, and .setOnTouchListener shown first here: http://pastebin.com/ELyGXM9r is the one that has got me closest but has brought some unwanted behaviour, the second method in that paste is giving me a much better response/behaviour but isn't working as the image simply isn't positioned where I drop it. May 04 08:01:10 hey May 04 08:01:22 in my staged rollout, how can I see how many ACTUALLY installed? May 04 08:01:41 it says "staged rollout — 50 %". Okay cool, now how many users ACTUALLY installed? May 04 08:01:48 / updated May 04 08:02:09 because that's the only thing that matters in regard of crash reports etc, new reviews etc May 04 08:22:00 Hi.. if i create a socket in one app, and another app opens up in the foreground. Will the socket communicate with my app? until forcibly closed or when system needs memory? May 04 08:22:52 if i create a service, how do i debug the state of my service May 04 08:33:15 Hi.. is it a good practice to communicate using socket on localhost between two separate apps? May 04 08:33:45 what are the disadvantage and alternatives? May 04 08:42:23 trap24: are you writing both apps or just one of them? May 04 08:43:44 unsigned_long: a very small analytic that reports what version is being run does wonders for being able to detect rollout. May 04 08:45:43 mrandroid: i am the writer of both apps May 04 08:46:16 i was thinking to combine, or make one as a service.. but that will take more time May 04 08:46:45 thus, i think this idea would be shortcut ? May 04 08:47:03 the second socket will only open if it's running in the background. May 04 08:47:11 yup May 04 08:47:12 you usually only have one app running at a time. May 04 08:47:29 i will first open the app which listens on a socket May 04 08:47:35 and then the one that will connect to it May 04 08:47:47 when you open the second app, the first will close. May 04 08:47:51 (or pause) May 04 08:47:56 it will run in the background May 04 08:48:21 as long as the service stays alive, there's no reason you can't achieve what you're doing. May 04 08:48:29 but why not use AIDL? May 04 08:48:50 if you do, when your first app wants to communicate to the other app's service, the OS will start the second service for you. May 04 08:49:11 (and it's much faster than a network socket). May 04 08:49:16 (i think) May 04 08:49:53 Yeah, AIDL is the way to go. May 04 08:49:56 (but I haven't benchmarked that and it's late and i'm tired so i may be somewhat wrong) May 04 08:50:21 Thank you May 04 08:50:39 extra points if you know what other cross process communicaton protocol AIDL is similar to? May 04 08:51:37 pass, googling May 04 08:51:56 RMI? May 04 08:55:32 please tell me May 04 09:16:12 Hello May 04 09:16:36 Any way you know of that can recover photos after a factory reset? May 04 09:16:40 hello from YUV May 04 09:17:43 i took the SD-Card out and kept into my PC. Then google for some free recovery tool, and used it. Gave me most of the photos. May 04 09:18:20 Ah May 04 09:18:36 trap24: do you remember which tool you used? May 04 09:19:00 The phone uses Adroid 4.4.2 May 04 09:19:22 rgb-one: no, it was some console based. i think it was in Linux. (but windows version of the same tool was available) May 04 09:19:45 the version does not matter May 04 09:19:48 filesystem does May 04 09:20:05 Ok so does it require that I "root" the phone? May 04 09:20:33 do you want to recover data from SD card? May 04 09:20:52 no, from phone May 04 09:20:54 i have no idea about recovering from phone's memory May 04 09:20:59 Oh May 04 09:21:10 Alright, cool May 04 09:21:14 maybe login to adb shell and use some similar tool May 04 09:21:27 anyway, sorry May 04 09:21:38 Thanks for the help May 04 09:21:56 recover them from your backup May 04 09:22:06 backup? May 04 09:23:07 yes, that's where you save important information in more than one place, so if you delete one copy you have access to another May 04 09:23:43 So after a factory reset, a backup folder is stored somewhere with all the data? May 04 09:24:40 it is if you made a backup May 04 09:25:00 not sure if I did May 04 09:25:08 oh, well, there's your problem then May 04 09:25:16 how can I find this backup folder? May 04 09:25:31 It should be on googles servers no? May 04 09:25:55 if you told Google Photos to backup your photos, yes May 04 09:26:43 The photos I am looking for aren't in my google photos May 04 09:26:56 oops May 04 09:28:12 Ah well May 04 09:32:46 hello. i have a question about the latest AS which i just installed. I'm getting a dialog box when trying to sync gradle files at startup that tells me to add my proxy settings to gradle.properties. unfortunately i can't as my proxy settings include my username/password, which my colleagues would see when editing the project. May 04 09:33:19 is there an alternative way to simply feed my system variable %JAVA_OPTS% which already has those variables set in it? May 04 09:44:51 mchlsndrn, cant you just set the proxy system wide and ignore it for AS? May 04 09:47:07 hi. i'm trying to make my toolbar collapse. Here my layout: http://pastebin.com/FuwmrfvH When i scroll nothing happens. Is it because i'm using com.android.support:design:22.2.1 and not the 23 version? May 04 09:53:51 kwto: i dont understand. it's already set system wide (for example unity and java normally use it). May 04 09:54:04 typo. ktwo May 04 10:01:05 someone could help me? May 04 10:02:57 LucaS05, it isnt recommended to use old support libraries May 04 10:03:10 so this is defininetly something you should change May 04 10:04:20 which version should i use? I want to support api level 19 and above (here my gradle file: http://pastebin.com/0GxeaLTp ) May 04 10:05:16 you have AS 2.1? May 04 10:06:02 Support lib version (latest) is 23.3.0 and buildtoolsVersion 23.0.3 May 04 10:06:23 i've 1.5.1 May 04 10:06:32 maybe i need to update it first May 04 10:07:07 it should work without update too, but if youre not forced to use 1.5.1 for any reason i recommend to update May 04 10:08:01 do i need to change something in my gradle if i use the 23 version of the design support library? May 04 10:09:07 not that i know of May 04 10:09:19 but if you update to 2.1 it will also update the gradle plugin May 04 10:10:42 mchlsndrn, did you try the "auto detect proxy setting" in AS? May 04 10:11:00 ktwo: can the new version of the design support library resolve my problem? (collapsing the toolbar) May 04 10:11:01 make sure the proxy settings are set in IE (if you'Re using windows) May 04 10:11:36 LucaS05, Well, a lot of bugs were fixed but i dont know if that will solve your issue May 04 10:11:48 ok May 04 10:12:05 But then you can at least exclude a bug May 04 10:12:48 And make a backup of your project first (obviously :) May 04 10:13:44 ktwo: yes, they never work with this proxy apparently May 04 10:14:46 ktwo: it's really driving me nuts and i don't understand why other tools, for example unity 3d, simply just work and with AS it's so messy when it comes to proxy configurations May 04 10:15:32 and this happens after a clean installation of the latest Android Studio 2.1 May 04 10:17:53 after creating a new project with everything set to default. i even tried now to add the proxy settings to gradle.properties (done automatically by the IDE for both http and https) and i'm still getting another error: failed to resolve: junit:junit:4.12 May 04 10:18:42 is it possible to force gradle to use http instead of https somehow? May 04 10:28:35 Is it possible to register my app for some intent or otherwise have my app notified when ADB is enabled? Specifically ADB over WiFi May 04 10:36:16 what kind of an intent did you have in mind May 04 10:36:33 I don't think there's anything for adb signalling as such May 04 10:36:45 I don't really have anything in mind. May 04 10:37:00 I just know I want to make an app that needs to do something when ADB over WiFi is enabled. May 04 10:37:35 Only option I can really think of is to have my app be the one that does the enabling of ADB over WiFi May 04 10:37:44 is it ok if you have to manually send a broadcast (or even an explicit intent) from command line with adb? May 04 10:38:06 Not sure what you mean May 04 10:38:23 The whole point of the app is automation. The only manual thing that should be done is turning ADB over WiFi on/off May 04 10:39:07 automate it on the adb side then, but you can send intents with adb from your computer May 04 10:39:31 What do you mean by on the adb side? May 04 10:39:35 The computer or mobile side May 04 10:39:39 computer May 04 10:39:45 Not really an option May 04 10:39:51 then you're out of options May 04 10:40:05 I'm basically trying to automate the process of enabling adb over wifi and connecting May 04 10:40:23 how? May 04 10:40:26 Having to connect with a command is annoying and tedious. May 04 10:40:46 yeah but... I'm confused, how would you do that May 04 10:41:12 Well I haven't looked into whether a connection can be initiated from the phone yet or not. If so then that's the best option. If not I have to make a piece of software for the PC too that the phone connects to and sends messages to, to initiate the connection. May 04 10:41:30 The standard process is enable adb over wifi on phone, then run adb connect host:port on computer May 04 10:41:45 I'm trying to eliminate the adb connect host:port part, and automate it May 04 10:43:24 when I tried adb over wifi, it wanted me to do adb tcpip port with usb cable connected May 04 10:43:29 do you have an app that does that then? May 04 10:43:33 No May 04 10:43:41 You don't have to do that if you have a rooted device. May 04 10:43:46 My app is targeting rooted devices only May 04 10:44:51 regardless, I'm not sure if you can actually initiate the connection from the phone side, afaik it needs to be done from the computer May 04 10:45:07 so you'll need to send some signal over the network to the computer that would do the adb connect May 04 10:45:28 And I have a plan if it needs to be done from the computer side. Getting users to install a program on their computer that the mobile app can use to initiate the connection isn't that tough. May 04 10:45:40 Especially when we're talking about users who were smart enough to root their phone. May 04 10:45:48 And smart enough to use ADB May 04 10:55:42 Hello! I have a very strange bug with Android Studio, gui appears to be stretched vertically May 04 10:55:54 Screenshot: https://www.dropbox.com/s/krpus94fr5kytfb/2016-05-04-13-37-46.png?dl=0 May 04 10:56:21 anybody knows what it is? May 04 10:56:37 Well, try resetting windows. May 04 10:56:50 But I'd guess it has something to do with your desktop windows manager and perhaps OpenJDK? May 04 10:56:51 I have Archlinux May 04 10:57:24 No idea, two days ago it was working fine May 04 10:57:45 And I use Oracle JDK May 04 10:59:05 what windowmanager are you using May 04 10:59:14 awesome WM May 04 10:59:20 did you update AS May 04 10:59:32 https://awesomewm.org/ May 04 10:59:45 (I know what awesome is, I use wmii which is superior ;) May 04 10:59:59 what's with the line testCompile 'junit:junit:4.12' in gradle.build? behind proxy it throws errors no matter what i do, but everything it's fine if i remove it. since it's there by default, i wonder if i need it for some reason? May 04 11:00:35 it's 2.1.0.9, probably not latest version May 04 11:01:21 loredan13, so you didn't update anything and it just broke? May 04 11:02:07 Zharf: I did install a bunch of 32-bit libraries yesterday May 04 11:02:28 is your jvm 32 bit? May 04 11:03:18 Zharf: it shouldn't be May 04 11:03:30 then that shouldn't affect things May 04 11:04:39 Zharf: you don't happen to know a way too look up most recently installed packages in archlinux? May 04 11:05:06 now I'm not sure what directory AS puts stuff into, but try renaming that directory so that AS will start off fresh (with IDEA it's ~/.IdeaIC2016.1 or somesuch) May 04 11:05:25 to see if it's something broken in your configuration May 04 11:05:45 if problem persists then I would try tweaking stuff in the properties file in as/bin May 04 11:06:20 Zharf: I tried, it just gave me blank window with two radiobuttons far apart from each other May 04 11:06:21 someone actually said this: "bcz i have this project the developer looks like joe here it s sth like social wifi he make a vpn connection for the user to auth the hotspot and get internet access via fb so if users connect to a server in the us they get the fb identify yourself page so i m implementing on it from the mikrotik router meanwhile m trying to get a cheap server" May 04 11:06:29 Zharf: let me try again May 04 11:11:33 Zharf: nope, nothing changed May 04 11:13:05 I am trying to use https://github.com/mikepenz/AboutLibraries/blob/develop/README.md in PreferenceFragment as a fragment, but AS says "Cannot resolve method 'fragment()' May 04 11:13:17 bolovanos, no problem May 04 11:14:31 bolovanos, did you typo? pastebin some code May 04 11:14:48 loredan13, check the properties file in bin directory to see if any of them help May 04 11:15:01 Zharf, mnt - I will make create some May 04 11:16:19 Zharf, http://pastebin.com/iri0huwL May 04 11:17:45 Zharf, right now I am not fully familiar with AboutLibraries, just getting into it... May 04 11:18:59 Zharf, I would love to add preference about page with information about app and link to open source libraries list (listed by AboutLibraries) May 04 11:20:39 looking at the aboutlibs code you'll probably want to use supportFragment() instead of fragment() May 04 11:20:59 https://github.com/mikepenz/AboutLibraries/blob/develop/library/src/main/java/com/mikepenz/aboutlibraries/LibsBuilder.java#L544 May 04 11:24:22 Zharf, I was about to say "I have tried that before and it did not work", because of incompatible types, but clicking on the AS red bulb helper did the thing - thank you for now :) May 04 11:25:08 Zharf: I have no idea what I can tweak in idea.properties May 04 11:26:34 loredan13, me neither, I had some issues with my wm and idea a couple of years ago and doing something in idea.properties helped May 04 11:26:43 but I don't have access to that computer right now May 04 11:32:41 Zharf: I'll try to remove those libraries May 04 11:45:23 Hello everyone, any idea on how I can create something like navigation drawer in android. I want to create the navigation drawer because i intend to pass rss feeds to it . May 04 11:45:52 I want the rss feed to show when the user taps the hamburger icon May 04 11:47:40 since navigation drawer was built to display menu, I want to mimmick the design of navigation drawer May 04 11:47:56 Zharf: nope, didn't help either May 04 11:47:59 :( May 04 11:51:51 Zharf: damn, IntelliJ IDEA is also broken May 04 11:52:28 Zharf: which at least tells me that the problem is not in studio itself May 04 11:55:09 loredan13, yeah, WM and/or JVM or combination of them is causing it May 04 11:56:33 Zharf: switching to OpenJDK solved the problem May 04 11:56:49 cool May 04 11:56:51 Zharf: weird fonts though May 04 11:57:08 Zharf: but I can live with that May 04 11:57:19 fonts might be fixed with "-Dawt.useSystemAAFontSettings=lcd" in studio64.vmoptions May 04 12:01:47 Zharf: I set my own fonts. Thanks for the help! May 04 12:05:26 Hi May 04 12:06:44 I am trying to get the latest version of the installed apps using "https://play.google.com/store/apps/details?id=" +getPackageName() + "&hl=it" and parsing the version number. May 04 12:07:14 But in some apps like youtube, I get a response like "varies with device" in place of the version. May 04 12:07:35 Is there some other way to get the latest version of the installed apps on a device? May 04 12:08:39 Good morning :) May 04 12:08:47 not really, unfortunately google doesn't provide that as a service May 04 12:09:24 That's bad :( May 04 12:09:42 Don't we have `~` shortcuts as in some others channels ? May 04 12:10:14 wviana, factoid bots? no May 04 12:10:42 There's no good way of determining "latest version" from outside anyway. May 04 12:10:49 Afterall, you can have multiple APKs published. May 04 12:11:03 yeah May 04 12:11:39 still it'd be nice if google provided some sort of service for apps to check if there's a new version available... only way to do it now is to make your own server May 04 12:11:51 Well they do. May 04 12:11:56 It's called the Play Store app. May 04 12:11:59 It even updates them for you. May 04 12:12:11 Hello guys, where can I ask Android Studio related questions? I want to simply add an existing sourcefolder, but I really don't have a damn idea how to do that in Android Studio. May 04 12:12:25 Number5, this is the place. May 04 12:12:28 Mavrik, still many people don't update their apps May 04 12:12:44 we have quite a large number of our userbase not updating their apps May 04 12:12:44 Zharf, that's their decision. May 04 12:13:09 sometimes you just need to force the issue May 04 12:13:18 Number5, code is build by the gradle build system, so you need to specify any additional source sets in build.gradle May 04 12:13:40 Zharf, I find "forcing the issue" something that would be worth banning ;) May 04 12:14:14 Mavrik, meh, server changes and such are important, supporting old clients isn't mandated by anyone May 04 12:14:42 True. And thus I'd prefer updating to newer clients shouldn't be mandated by anyone either. May 04 12:14:46 Mavrik, Ok thnx. I have a folder with some Java files (*.java) How can I add these to my project? I assume you can mouse click on some menu items to add it and update the gradle build file. May 04 12:15:08 Number5, I strongly suggest you resist "clicking on some menu items" and learn how build.gradle files work. May 04 12:15:17 You'll have less problems in the long run. May 04 12:15:22 if they don't update, then it's fine if the app just refuses to open, imo May 04 12:15:36 Zharf, I disagree. May 04 12:15:44 I can't help you with that :p May 04 12:15:48 Unless you of course want to also take up on the liability for still supporting users on slower devices. May 04 12:15:51 Not removing features. May 04 12:16:02 Mavrik, ok, I managed to add libraries and stuff using gradle file but adding a source folder I've never done it. May 04 12:16:07 Zharf, and luckly Google doesn't help you with banning people ;) May 04 12:16:09 Can someone provide me a link? May 04 12:16:29 google: gradle android add source directory. May 04 12:16:43 Mavrik, thnx May 04 12:16:55 Mavrik, writing a simple server to do it is trivial, but it's common enough request that I don't see why there's no such service from google... apple does though May 04 12:17:03 Usually if it's about changing how things are built, "gradle android gives good results. May 04 12:17:19 also I don't understand your point about "still supporting users on slower devices" May 04 12:17:20 Zharf, well I just told you May 04 12:17:48 Because they don't want to make their 2 year devices useless like Apple devices are :P May 04 12:18:10 seriously, I don't understand your point about "still supporting users on slower devices" May 04 12:18:15 what does that mean May 04 12:20:20 * Zharf puzzled May 04 12:22:48 I'm a damn genius May 04 12:23:25 Local bus service doesn't have an app to view the schedule etc. Found my next app idea :D May 04 12:23:42 I've been doing that sort of stuff as well May 04 12:24:49 https://www.youtube.com/watch?v=Ay6nNmhWU2g prototyping about a year ago, still not progressed much further than that :p May 04 12:25:03 lol May 04 12:25:27 My last app took a week from start to release. And that was just me working on it. May 04 12:25:48 I tend not to release my apps as I just write them for my own use May 04 12:26:00 This one probably won't take much longer than a week, if not a few days, to get an initial release. May 04 12:26:04 but I might release this some day... there's a server component I've been working on for the last 7 months or so May 04 12:26:39 And that's a terrible idea. If you find it useful, odds are someone else will too unless it's highly specialized. It takes like 30 minutes to make the graphics for Google Play. May 04 12:27:07 the project involves tracking busses and use the past travel data to make better estimations and show smoother animations and such May 04 12:27:15 May as well make money off your work if you can. Even if you don't make money, you're creating a portfolio for yourself that you can use for prospective employers and freelancing. May 04 12:27:21 I don't care about users May 04 12:27:23 Zharf: is the points moving ? May 04 12:27:26 I have all kinds of ideas for this app. May 04 12:27:33 and I most certainly won't be monetizing my apps May 04 12:27:39 I write apps to get rid of ads May 04 12:27:47 Down to the point I'm going to convince the bus drivers to install another app on their phone that will enable my app to display the bus' current location. May 04 12:28:14 wviana, yeah, they're tracking busses live May 04 12:28:30 Zharf, how are they tracking the bus'? May 04 12:28:37 TellYouHwat, the city has an api May 04 12:28:41 Ahh May 04 12:28:45 my city is too small for that so May 04 12:29:16 Zharf: Cool. May 04 12:29:23 http://data.itsfactory.fi/journeys/api/1/vehicle-activity May 04 12:30:56 I use that app to time my bus changes on my commute so that I don't have to wait for the next bus May 04 12:31:23 and I can check if the bus I'm on is behind the bus I want to be so that I don't get off on a stop where I'd have to wait a long time for the next bus May 04 12:32:38 there's similar apps on the market but I wrote this one because I hated the ads May 04 12:32:58 (and I have more ideas to implement on the subject, maybe... someday) May 04 12:34:31 Actually May 04 12:34:38 I don't even need to get drivers to install the app really May 04 12:35:27 I can just do it through the main app. Some trickery with gps tracking speed and stops to determine if the user is currently on one of the routes and if they're making stops that align with the bus' route to determine whether or not they're on the bus May 04 12:36:00 yeah, I have similar plans to increase the accuracy and timing data May 04 12:36:17 there's also an app that tracks traffic jams that way May 04 12:36:33 no clue what it was called, but a friend showed it to me a couple of years ago May 04 12:39:03 google maps does it, also Waze May 04 12:39:55 waze == google May 04 12:40:08 or more like Google < Waze May 04 12:42:18 google maps traffic indicators have been sufficient for me, there's no real traffic jams in this city May 04 12:42:26 and I don't drive a car, so I don't care May 04 12:46:32 Does Java 8 in android is supporting Streams ? May 04 12:46:32 module level gradle is the project one or the app one ? May 04 12:49:46 wviana, android n with jack supposedly does May 04 12:51:29 Hi guys, I have rather an architecture question. I have a table in the database and a RecyclerView I fill with data from that table. When the data in the DB is changed I fire an event using EventBus upon which I reload the Cursor and call changeCursor() on recyclerview's adapter. Another approach I see is to use CursorLoader to manage all the data updates automatically but it requires me to implement ContentProvider which in May 04 12:51:29 my opinion is an overkill if I'm not about to share my app's data with "outer world". So, my question is how do you guys manage data changes and reflection of that in list/recycler-views? Ho do you do that in your apps? Do you implement Content Providers even if you don't share the data with another apps/services/etc? May 04 12:53:02 i hate gradle and proxies. i'm trying to gradle sync a new project based on the gcm example and i'm getting only errors again. 'Unknown host jcenter.bintray.com' May 04 12:53:12 so frustrating May 04 12:57:26 wviana, there's streams backport though May 04 12:58:21 https://sourceforge.net/projects/streamsupport/ I'm really sad that it's on sourceforget though May 04 12:58:53 I'm getting a `Jack requires Build Tools 24.0.0 or later` : May 04 12:59:02 mchlsndrn, don't you have inhouse Maven mirror? May 04 12:59:16 That would solve a lot of your issues (plus if you're a company you really should have that) May 04 13:04:32 does google still support the eclipse ide? May 04 13:05:19 no May 04 13:05:53 hello, can I make live wallpapers with Sencha? May 04 13:06:06 Mavrik: no i dont have it. i'm the only person working on apps. May 04 13:07:08 it's probably a problem with the http / https proxy being blocked. the company's it hotline says they don't offer support for android studio, period. so i'm lost at the moment May 04 13:07:47 find a new company May 04 13:07:57 so far (i've lost track of how) i can build apps without gcm. the google-services example does not build May 04 13:09:10 right :D well i have to say i'm not really experienced with android studio but even then it's hard to understand why the toolchain is so messy in general May 04 13:10:36 yea just find someone else May 04 13:10:49 after replacing jcenter() in the main build.gradle with jcenter() { http://bla bla bla } it's spitting out an error saying that it cannot get the pom file for google services because of error 500 May 04 13:11:11 insert this line into your life, company.leave(); May 04 13:11:23 :D May 04 13:12:12 yea well. the company is good but this is not really my bread and butter to be honest. i do development with unity3d normally. it's another world. things just ... work. is there some alternative to android studio? May 04 13:12:27 i really hate it so far May 04 13:12:58 the problem is gradle and there's not many options there, you'll likely run into similar problems with all real options May 04 13:13:16 what's the actual problem though? can't connect to jcenter? May 04 13:13:16 why google insists on using gradle if everyone hates it? May 04 13:13:33 feelings have no place here May 04 13:13:55 there's what is good and what is better by specific measurements and official processes May 04 13:13:56 dependency management before was a mess May 04 13:14:00 THIS IS SERIOUS BUSINESS May 04 13:14:21 from my home computer everything works fine, that's the thing. so it has to be proxy issue. even after configuring everything, still getting errors and i'm not able to connect to jcenter May 04 13:14:42 well at least not when trying to build the google-services example for GCM May 04 13:15:05 you have some sort of proxy configuration then? May 04 13:15:12 i do May 04 13:15:40 https://docs.gradle.org/current/userguide/build_environment.html and I suppose you read this? May 04 13:16:05 I've never had to use proxies in my life though so I'm not very good at helping you with them -.- May 04 13:16:09 Hi guys May 04 13:16:17 everything's just open in companies in this country May 04 13:16:19 configured in AS already. btw i clicked "dont display this box" when AS asked me to add proxy config to gradle.properties for the 100th time, is there a way to re-enable the popup dialog? May 04 13:16:20 Something very trivial for you guys May 04 13:16:36 How do I push a file via adb on a read-only file system? May 04 13:16:43 yep seen that link too May 04 13:16:53 you should probably ignore AS for now and just work on gradle from the command line May 04 13:17:01 as well as another 100 on stackoverflow with people banging heads against a wall May 04 13:17:09 Can I set permissions on adb or set up permissions independently May 04 13:17:36 read only filesystem is just that, read only May 04 13:17:54 So no can do? May 04 13:17:55 i still don't understand how i got it to work in the first place with non-gcm apps, but now it seems to work ... is gradle caching stuff somewhere? downloading a copy locally somewhere? May 04 13:18:13 mchlsndrn, yes, there's a local cache May 04 13:18:27 do you know where is it located? May 04 13:18:27 Zharf, it's the platform.xml file that I've edited so I can backup via Titanium to an external drive May 04 13:18:35 ~/.gradle May 04 13:18:51 it would be fine if i could download the google-services stuff locally and decompress it too ... May 04 13:19:10 so if i delete ~/.gradle, it would be re-downloaded in theory? May 04 13:19:45 Zharf, are you saying it's not possible? May 04 13:20:42 Queenslayer, without remounting the filesystem to be read-write, no May 04 13:20:57 and this goes beyond android development May 04 13:21:01 It's the main rom May 04 13:22:01 hey all May 04 13:22:03 I am looking for a way to play a random notification for the same app each time. Say I have a folder of sounds, I would like it to choose one and play it, and then a different one next time. Possible? May 04 13:22:30 Queenslayer, #android-root might be more able to help May 04 13:22:38 Thanks Zharf May 04 13:30:14 Zharf, one more thing that is probably in your domain May 04 13:30:37 If I edit the file from the ROM and then flash the ROM back into the device, could that work? May 04 13:34:30 Queenslayer, sure, likely May 04 13:34:54 Sounds likely, doesn't it? May 04 13:35:03 I hope I only have to do it once May 04 13:37:27 is there a way to tell gradle to use only an http proxy instead of https? May 04 13:57:13 negris, nice and subtle is that May 04 13:57:56 Queenslayer: ? May 04 13:58:16 Queenslayer: the fuck are you on about May 04 13:58:34 nick change May 04 13:58:51 Queenslayer: ? nick changes are public you stupid fuck May 04 13:59:05 ther'es nothing subtle about nic changkes, it's in the RFC of IRC May 04 13:59:19 Please keep it civil May 04 13:59:28 And Queenslayer, this channel is for app dev. Try #android-root May 04 13:59:33 Queenslayer: explain yourself. May 04 13:59:46 Queenslayer: you know that negris is a name, right? May 04 14:00:16 I didn't even mean it that way.... May 04 14:00:17 Queenslayer: I don't know what negris means in your language but in my country (italy) it's a common surname May 04 14:00:22 I just thought it was cool May 04 14:00:33 Queenslayer: what's subtle about it? May 04 14:00:35 Yeah SimonVT I'm on there right now May 04 14:00:42 negris, nm May 04 14:01:25 Queenslayer: it's pretty obvious that you're some kind of nigger lover who automatically accuse everything that remotely resembles "nigger" for being racist May 04 14:01:36 lol May 04 14:01:39 What! May 04 14:01:55 Queenslayer: that's exactly what a communist would say! May 04 14:01:59 heil hitler! May 04 14:02:06 I just thought negris and nergis is quite cool May 04 14:02:09 MAY THE FOURTH RICHE RAISE! May 04 14:03:54 first ban here in years May 04 14:03:56 congrats May 04 14:04:29 I don't know what the heck that was all about May 04 14:04:47 just an idiot May 04 14:04:52 I just commented on the nick change, because it is quite subtle May 04 14:06:16 Odaym: I have seen a few May 04 14:06:25 laters guys May 04 14:06:27 not many but every once in a while SimonVT gets mad May 04 14:06:40 :D May 04 14:06:45 later here too, it's quittin time May 04 14:10:06 Eh, it's mostly quite uneventful.. The people who get banned usually haven't been here for very long.. And it's either spam, rudeness or just offtopic talk May 04 14:14:12 ktwo: hey, i've solved by updating android studio and the 23.3.0 support libraries May 04 14:26:53 feels good to know that it's google's fault, doesn't it? May 04 14:48:18 Anyone written an iMessage client for android? May 04 14:54:02 so I recently took over a project and i need to make it look good on tablets... I'm going file by file extracting dimension resources and this is taking forever May 04 14:54:15 is there a better way to do this? May 04 14:54:27 this is so tedious May 04 14:58:29 trudev: the way to do it is in advance May 04 14:58:33 unfortunately May 04 14:58:45 thepoosh i know :( May 04 14:58:53 it's not my code... i just took over May 04 14:59:04 sooo many filesss May 04 14:59:09 that sux May 04 14:59:31 Yeah that's rough May 04 14:59:54 would it be reasonable to just use a size class system? May 04 15:00:09 like all 12sp would become size_12 May 04 15:00:21 and just replace all? May 04 15:00:52 i'm kinda new to android dev so i'm not sure what the convention is May 04 15:01:20 the convention is to use @dimens May 04 15:02:06 right but alot of the values are the same May 04 15:02:19 is it convention to reuse? May 04 15:02:55 yes, you have a dimens file for each size and screen May 04 15:03:14 and then you use the same dimension resource with multiple screen-sizes May 04 15:03:30 http://developer.android.com/guide/practices/screens_support.html May 04 15:06:44 i get that but would it be ok if i just use names like text_size_1, text_size_2, text_size3.... and just change the values for each size? May 04 15:07:03 i mean in each dimension file May 04 15:11:24 don't ever size 12 May 04 15:11:46 take lessons learned from using css in html May 04 15:12:10 there are lots of best practices they are that also apply on Android May 04 15:12:18 pfn 12sp looks ok on phones May 04 15:12:29 particularly around class naming May 04 15:12:36 i bump that up to 17sp on tablets May 04 15:12:45 I need size underscore 12 May 04 15:12:54 I mean May 04 15:15:24 so you mean just use names like text_size_12? May 04 15:15:43 never May 04 15:15:50 why? May 04 15:15:56 I just explained why May 04 15:16:12 look at CSS class names best practices May 04 15:17:58 pfn can you link me? can't seem to find anything May 04 15:20:43 Google is easy May 04 15:20:53 google.com May 04 15:20:58 there's your link May 04 15:21:57 trudev: fwiw - I've found it most productive to have a semantic meaning for the text dimensions (i.e., bodytext, headlinetext, etc - depending on what is meaningful for the product) - then attach actual dimensions based on device proportions May 04 15:22:37 kbs thank you. that makes perfect sense May 04 15:22:41 http://www.zdnet.com/article/no-one-wants-yearly-android-releases/ May 04 15:22:57 pfn why you so mean :( i just wanted help May 04 15:28:18 hey friends, i have a strange problem. when i deploy and app via "debuggin" on to my phone it works fine, but when i build the release apk and install it the app crashed .. on the same device May 04 15:28:19 any ideas? May 04 15:29:43 leo-unglaub: there is no 'crashed' - there is only stacktrace May 04 15:29:47 if you're a bit obsessive, and have the luxury of styling stuff for a new app :-) I've found some joy in defining dimensions in terms of a base "module" unit useful for various spacing. part 2 of http://www.vignelli.com/canon.pdf is quite a handy reference... May 04 15:30:31 leo-unglaub things that come to mind, maybe you use proguard and it fucked something up May 04 15:30:33 Leeds: how do i get a stacktrace when an app is in release mode and not launchd over android studio? May 04 15:33:06 Leeds: nevermind that last question. found a stacktrace May 04 15:33:24 it complains about onClick beeing drom android.support.v7.widget May 04 15:33:55 is android.support.v7 only included in debug builds and not in the release build? May 04 15:39:02 hi all, i'm going to write an api implementation of some RESTful API. i want to develop the api implementation as FOSS but the app i'm developing that uses it will be proprietary. i was wondering how best to organise my android studio project to accomodate this? should i implement the api in a java library, or make a new project with no activities and delete the res directory? or something else? May 04 15:40:31 esta bien May 04 15:42:43 trudev: Probably worth spending some time writing a script to extract all these dimensions (bash, python, perl, ruby, whatever floats your boat) May 04 15:43:58 deed02392: dunno about android studio; but if you're able to abstract away any android specific code in the library, it sounds potentially useful as an independent java library. [e.g. could be used in appengine.] May 04 15:44:28 jaana yeah thats what i was thinking. but i think a simple replace all can do it. i just need to run it like 20 times for different sizes May 04 15:45:14 leo-unglaub sounds like maybe proguard stripped it out because thought it was unused ? don't use onClick anyhow May 04 15:45:34 leo-unglaub if you mean android:onClick in XML May 04 15:46:05 g00s: yes, in mean android:onClick in my xml May 04 15:46:12 dont use that May 04 15:46:21 is it bad practice? May 04 15:46:25 usually May 04 15:47:00 ah, okay. i thought it was cleaner than registering the onClick by code, but if it is concidered bad practice then okay May 04 15:47:03 i am going to change it May 04 15:47:11 kbs, it will have a single dependency on android volley to implement the restful bit May 04 15:47:35 then it will just expose it's own api related methods, e.g. "getLiveTimetable(string stopName)" May 04 15:50:47 deed02392: Makes sense. While I'm not a huge fan of "make everything injectable", should abstracting volley make sense alongside your FOSS goals [i.e., using library outside android] that could be an option, but also recognize there's a tradeoff. (No other 0.02 from the peanut gallery from me :) May 04 15:52:51 i think my java knowledge isn't good enough to understand this point you're making kbs, what do you mean by injectable? i guess because volley is supposed to be run on android, my abstracted impl that depends on it shouldn't try to be generalised May 04 15:53:24 deed02392: May 04 15:53:30 deed02392: whats ur question May 04 15:53:55 may i pm it to you orbyt_ , it is long and i only recently posted before you joined May 04 15:54:05 if u want May 04 15:54:34 I see the question now, I would make it a separate java library May 04 15:54:56 But, if this is being developed for someone paying you, you'll want to get their permission before trying to make this FOSS May 04 15:55:12 In most places, it would be considered a work product and they would own it May 04 15:55:21 deed02392: create an android library project and use it as a dependecy May 04 15:55:23 done and done May 04 15:56:46 deed02392: Oh, I just mean rather than using com.android.volley.* directly - you define an interface in your library that gets passed in when your library is initialized, and which your library uses instead of volley. One implementation of this interface could use com.android.volley - others could initialize your library with other network libraries that make sense for them. [you can do this in less or more elaborate ways, but this is May 04 15:56:46 the uncomplicated way.] May 04 15:56:48 this is a hobby project May 04 15:57:14 ^^ (or, what orbyt_ said :) May 04 15:57:23 btw why are you using volley for communicating with an api May 04 15:58:16 orbyt_, put simply, i googled "android restful api implementation" and that came up referenced in a tutorial that recommended it for exercising rest apis... May 04 15:58:27 plz no May 04 15:58:30 use retrofit May 04 15:59:00 Retrofit seems very good from my brief usage May 04 16:00:21 this isn't my API though, it's a third parties May 04 16:00:58 irrelavant May 04 16:01:10 ^ May 04 16:01:11 oh i see, this isn't for creating an API endpoint it is a client May 04 16:01:18 Indeed May 04 16:02:48 this looks good. so basically what i want to providy freely is a java api client for this thirdparty because no one has published that yet May 04 16:02:59 whats the api May 04 16:03:06 transport for london unified api May 04 16:03:24 https://api.tfl.gov.uk May 04 16:14:34 g00s: morning May 04 16:14:39 it's final May 04 16:14:43 I'm not going to IO May 04 16:14:48 heya thepoosh May 04 16:15:13 thepoosh thats OK, you can watch I/O 2014 because its relevant now :) May 04 16:15:24 lolz May 04 16:15:49 last year seemed the dev summit had much more, but i haven't looked at the schedule May 04 16:15:51 actually watching https://www.youtube.com/watch?v=Gd8v7D_9t-M May 04 16:15:59 do they have a android fireside this year ? those are the best May 04 16:16:33 what's fireside? May 04 16:16:44 'Android Team Roast" May 04 16:17:07 hahaha May 04 16:17:43 a corespondants dinner? May 04 16:18:23 the attendees can ask questions to the teams May 04 16:18:35 https://youtu.be/LMyfEtElLQQ like that May 04 16:21:11 azgul: just listening to the people introducing themselves makes me cringe by the roasts in my mind May 04 16:22:04 haha May 04 16:27:16 thepoosh obama was hilarious at the last dinner ... :D May 04 16:27:25 thought willmore had a tough act to follow May 04 16:27:59 lary willmore spoke? May 04 16:28:33 yeah May 04 16:28:36 every once in a while when compiling on Android studio suddenly I get 120% cpu usage May 04 16:28:40 this is super annoying May 04 16:28:44 fish and steak folks, those are the choices :D May 04 16:28:47 I should watch May 04 16:29:06 azgul: they are very good at deflecting roasts May 04 16:29:10 thepoosh he makes a lot of references to whats going on in US politics, might be hard to follow May 04 16:29:22 I follow US politics May 04 16:29:33 for example fisk and steak were trump and cruz, i think May 04 16:29:38 I can vote there May 04 16:30:00 What are the XML-elements called? Just elements? May 04 16:30:24 thepoosh: yep :D May 04 16:30:31 p0ff3: yes May 04 16:31:40 Hello, is it possible to pass a result from an Activity A when it is finished to an Activity B even though Activity A was not launched from Activity B? May 04 16:32:05 steran: not as a result May 04 16:32:14 but you can send a broadcast May 04 16:32:41 or use an eventbus or RX May 04 16:32:56 Why would someone make a language without the capability to simply comment out one line? It makes me a little sad May 04 16:33:10 thepoosh, I see , thanks May 04 16:33:22 p0ff3? May 04 16:33:50 Like Javas "//", it's just so comfortable when playing around May 04 16:34:05 What language? May 04 16:34:09 xml May 04 16:34:14 Ooh May 04 16:34:31 I usually just cut lines out if I'm playing May 04 16:34:33 Cant you ? May 04 16:34:37 I dont xml much May 04 16:34:41 not inside an element, nope May 04 16:35:01 Well thats annoying May 04 16:35:14 Wait what so I cant comment out inside an element at all? May 04 16:36:31 no May 04 16:36:55 you'll get 'start tag not closed' lint May 04 16:37:02 hi. is it possible to change the text size of a CollapsingToolbarLayout ? May 04 16:37:45 How nice. As you can tell I'm not that used to XML. Do elemnts inherit from other elements? If so, how do I see this info? May 04 16:37:47 it's because a comment is also an element May 04 16:38:01 azgul: That's meta as fuck May 04 16:38:12 (..I think) May 04 16:38:40 mac twitter client 4.1.0, maybe this is better May 04 16:38:54 I blame it all on tblee being british May 04 16:38:57 p0ff3 no, every element has its own attributes May 04 16:39:26 so you should use styles if you want to apply the same treats to multiple elements, such as text, buttons etc May 04 16:39:43 thepoosh in the last AS video, they showed the box again - what do you think is in there ? :D May 04 16:39:54 actually it was taken away from reto haha May 04 16:40:17 hard to imagine any US computer person thinking sgml was a terrific idea for markup... May 04 16:40:37 sgml, haven't heard that one in a while :D May 04 16:40:53 kbs tim bray used to hang here once in a while May 04 16:41:00 Then why is the text in a TextView to the left and in the middle in a Button? That's just something I'll accept? I'm used to Java, where most things have origins May 04 16:41:07 g00s better be something good given how much they hyped that box lol May 04 16:41:20 g00s: cool :) May 04 16:41:34 azgul actually i'd be fine if they took stuff OUT of AS and put it BACK IN the box May 04 16:41:34 p0ff3 properties of the default style applied to them May 04 16:41:53 The default style of the elements? May 04 16:41:59 yea May 04 16:42:18 the ones defined in your theme May 04 16:42:19 like the GUI layout editor May 04 16:42:31 never used that :D! May 04 16:42:36 the person behind that needs to be fired May 04 16:42:38 only using preview and manually editing the xml May 04 16:42:44 s73v3r lol May 04 16:42:52 azgul: Thanks for the help! May 04 16:42:59 p0ff3: np May 04 16:43:06 what they need to do is migrate monitor shit May 04 16:43:11 i hate that damn thing May 04 16:43:31 hierarchy viewer, etc May 04 16:44:36 g00s: the worst thing is traceview May 04 16:44:48 that only works if you jump 3 times and do 1.5 spinds May 04 16:44:50 *spins May 04 16:44:58 or as romain would call it, traceVooo May 04 16:45:20 romain is not on the android team no more! May 04 16:45:35 i dunno, maybe not but seems he can't stay away totally May 04 16:45:51 still gives talks and stuff May 04 16:45:53 isn't he on the robotics team? May 04 16:45:59 no idea May 04 16:46:04 lol do they still have robotics team May 04 16:46:16 i guess boston dynamics was probably just a piece May 04 16:46:51 g00s: why did I read the name "Veridian Dynamics"? May 04 16:50:25 p_l fascinating http://www.posteriorscience.net/?p=206 May 04 16:50:57 it certainly feels this way : android programming by poking and SO May 04 16:51:23 i guess its not just android though. and if they are right, i won't find happiness anywhere else either :( May 04 16:52:08 * g00s pokes thepoosh May 04 16:53:17 man, i wish apps crashed faster on Android - there is like 4-5 second pause May 04 16:53:35 my app is obviously crashing :D May 04 16:57:11 lol May 04 16:59:40 hi all. i am using a viewpager and a pageradapter to switch between 6 layout files. switching/swiping works, but how can i also instantiate the activity associated with those layouts/xml? May 04 17:03:51 Raoul11: pagers can only have fragments in them May 04 17:04:05 but you can use the context in the views to start activities May 04 17:04:38 i am fairly new to java. inside the xml files? May 04 17:04:56 and this viewpager example works without fragments May 04 17:05:14 what is the pageradapter doing in getItem May 04 17:05:50 Hello, is there a reason for an app having multiple AndroidManifest-file in final APK-package? May 04 17:06:02 And where I can read about this :) May 04 17:06:20 instantiateItem and returns the assosiated layout May 04 17:07:24 so the layout does load, but the activity associated with the layout doesnt May 04 17:07:43 and i need that coz i need to do some code inside each layout May 04 17:08:43 Miika-- AndroidManifests in modules/libraries/flavors gets merged at compile time May 04 17:09:55 thepoosh do you guys use anything for wire-framing, like sketch / etc ? May 04 17:10:40 azgul: so there should be only one manifest file in the APK-package? May 04 17:10:47 yea May 04 17:11:08 but if I have multiple? May 04 17:11:17 never heard of that May 04 17:20:26 question: i have this interface that was accepting List so i could pass a list of anything through the callback, but how can I make it where I can pass anything even is its not a list? screenie: http://prntscr.com/b08jhc May 04 17:22:36 Seems like you already did it May 04 17:23:07 Well I can pass any object but now I cant pass any Lists May 04 17:23:29 Ahh May 04 17:23:39 Whats it say if you try to pass a list May 04 17:24:06 I might just make two seperate methods, one for T and one for List May 04 17:25:20 orbyt_: Just make it accept List. If you don’t have multiples, just send a list of one May 04 17:25:46 Seems hackish, no? May 04 17:25:50 s73v3r: thats exactly what I was doing, but having to grab the single item out of the list each time seemed like a nono May 04 17:26:02 drose379: thats what i was thinking May 04 17:26:12 it’s hackish, but so is what they want to do May 04 17:26:28 What about two seperate mehtods May 04 17:26:46 it’s less hacky, but now you’ve got two methods that do essentially the same thing May 04 17:27:23 Depends what youre doing with the List / Single? May 04 17:27:52 but now your interface has to implement both, even if you only plan on dealing with one May 04 17:28:22 Abstract class then May 04 17:28:32 Override the one you need May 04 17:28:45 pick one. Either take lists, or don’t. Don’t try to do both May 04 17:28:52 Conclusion ^ May 04 17:28:57 abstract class has the same problem May 04 17:29:20 how would you prevent a user from calling the method you don’t override? May 04 17:29:33 Hm yeah May 04 17:29:42 But I was thinking you dont have to override the one you dont wanna deal w May 04 17:29:58 but that doesn’t solve anythign May 04 17:30:11 the user of the object can still call that method. What happens then? May 04 17:30:47 You could throw an exception in the abstract class May 04 17:30:55 Only time it doesnt throw is if you override it May 04 17:31:09 which is a worse idea than just deciding to either take lists or single objects May 04 17:31:27 especially because that could change with every implementer of the interface May 04 17:32:01 True May 04 17:32:17 Well once you override it, it wont throw, so you cant call it unless its overriden May 04 17:32:37 how do I know that when I’m writing it? May 04 17:33:01 further, if I get a refernce by interface, and not concrete class (which is what you’re supposed to be doing), which one do I know to call? May 04 17:33:11 Good point May 04 17:33:19 Ok so yes that is flawed May 04 17:33:57 the least hacky solution is to make the decision up front whether you need to accept multiple of the object at once or not. If you do, then you make the interface accept a Collection. If you don’t, then it accepts only one May 04 17:34:46 Orr, you could always accept List, and also accept boolean May 04 17:34:55 boolean says if its a single item list or not May 04 17:35:17 that’s just adding extra complexity for no gain May 04 17:35:26 soo May 04 17:35:30 got it working May 04 17:35:37 Whatd you pick? May 04 17:35:53 i was right the first time, just accepting onResponse(T data) May 04 17:36:17 That accepts List? May 04 17:36:30 it was throwing errors saying it was expecting a list because my internal method had the callback declared as the wrong type May 04 17:36:34 how does the implementing class know whether it’s a list or not? May 04 17:36:35 yes Lists are an object May 04 17:36:44 can't you just instantiate List without specifying what type it contains? pretty sure that java7+ it can infer the type you add to the list May 04 17:36:53 so the compiler might allow you to pass that object as T May 04 17:36:59 further, how does the user know they can pass a list to the method? May 04 17:37:00 (read: should) May 04 17:37:01 So what can you put inside the list orbyt? can it be any May 04 17:37:08 Yes it can be anything May 04 17:37:19 So I can pass single objects or lists of objects May 04 17:37:24 cuz everything is an object May 04 17:37:34 and how does the user know they can pass a list? May 04 17:37:43 and how does the implementer know that a list has been passed in? May 04 17:37:58 so I have a method that declares the type in its parameters May 04 17:38:08 guys, anyone know about good NSD tutorials for android ?? May 04 17:38:18 nsd? May 04 17:39:18 Network Service Discovery May 04 17:39:24 Yeah how do you tell if its a list or not orbyt_ May 04 17:39:28 I guess you could use instanceof May 04 17:39:36 ewwwww May 04 17:39:46 iosched 2016 app is out May 04 17:40:01 azgul: any idea where to look for this? couldn't find from google either May 04 17:41:18 no I don't see how it would be possible. doubt the OS looks for anything else than AndroidManifest.xml May 04 17:41:34 why do you want to have multiple manifests? May 04 17:42:10 hi. what is your average time for the emulator to start? May 04 17:42:24 i'm on osx May 04 17:42:29 Its been quicker with android studio 2.0+ May 04 17:42:58 i've AS 2.0 but it's taking too long (this is the first time i start it) May 04 17:42:59 I still havent even tried the emulator on 2.x. It was so god awful before that I've just used a physical device ever since May 04 17:43:37 Its better ResidentBiscuit May 04 17:54:39 hi May 04 17:55:33 good evening May 04 17:56:11 It'd be cool if AS had the feature to frame screen recordings like it does with screenshots May 04 17:58:05 hey all May 04 17:58:12 hi May 04 17:58:30 Wow android studio 2.1 rocks. May 04 17:58:39 :) May 04 17:58:41 its quite a step up yeah May 04 17:58:50 Whats better? May 04 17:58:58 android studio. May 04 17:59:02 I know but what about it May 04 17:59:12 well not much changed from 2.0 May 04 17:59:23 besides N support and some instant run fixes May 04 17:59:26 i start to like the the github tool. May 04 17:59:50 azgul,I think you can use jdk 8 now. May 04 17:59:57 orbyt_: fwiw - the path of least resistance would be to leave it as List in the method, and just use Collections.singletonList(T) in the callers where needed. May 04 18:00:04 perlsyntax only if you use Jack May 04 18:00:09 and then you give up instant run May 04 18:00:20 retrolambda ftw May 04 18:00:28 i just install java8 May 04 18:00:40 kbs: Whats wrong with using just data May 04 18:00:49 azgul,I not do anything with java 8 yet. May 04 18:01:18 retrolambda perlsyntax ? May 04 18:01:19 orbyt_: If you do just , how does the method know a list was passed in? And how does the caller know they can pass in a list? May 04 18:02:58 i see May 04 18:03:00 s73v3r: i have a method like getMixList(int id, String owner, new RockerCallback>) May 04 18:03:25 that doesn’t really answer the question May 04 18:03:46 Than I dont understand what your askin May 04 18:03:49 drose379,i just have fun learn the android prgramming.I think i reinstall use java 7 May 04 18:04:12 brb latter May 04 18:04:16 In my method signature i have the type specified May 04 18:04:31 g00s: yeah, the reasons for dropping 6.001 make me sad May 04 18:04:40 orbyt_: nothing wrong - but if the basic question is how to pass in either T or List - there isn't really a great way to do this. So, the pragmatic solution tends to be either (a) declare two methods, and just iterate on the (T data) method from the (List listdata) implementation, or just settle for the List alone May 04 18:04:46 If I didn't fail entry, I'd be in the first year of current 6.01 May 04 18:06:33 orbyt_: I am faced with your method onRockerResponse(T data). There is nothing about that method which tells me that I can pass in a List, or that the method can handle a list May 04 18:07:19 s73v3r: thats the point, your can pass anything May 04 18:07:29 no, you don’t understand May 04 18:07:34 apparently not May 04 18:07:40 retrofit works the same way May 04 18:07:42 dealing with a List of T is much, much, much different than dealing with just one T May 04 18:08:01 if I’m implementing that interface, how do I know I need to be able to accept a List of T? May 04 18:08:29 s73v3r: let me pm you some screenies of the code, gimme a min May 04 18:08:47 * kbs wonders at this new trend of pasting screenshots rather than text May 04 18:08:55 that’s not really going to answer the question May 04 18:09:10 then dont look at them idc May 04 18:09:20 what, in that interface declaration, says that an implementer has to accept a List of T, rather than just a single T? May 04 18:11:12 What happens if the caller passes in a List, but the implementor didn’t plan to accept a List? May 04 18:13:08 or what happens if the caller passes in a single T, but the implementor only planned to accept List? May 04 18:25:20 Hey. How do I send an Intent "in six minutes" using alarm manager? This code doesn't work for some reason: alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, time.getTimeInMillis() + duration, eggDonePendingIntent); May 04 18:25:31 duration is in ms as well. May 04 18:26:17 So, what I mean is: It starts but doesn't fire when I want it to. May 04 18:28:28 whats time.getTimeInMillis() May 04 18:28:38 time since epoch May 04 18:29:02 for AlarmManager.ELAPSED_REALTIME_WAKEUP you should use SystemClock.elapsedRealTime() May 04 18:52:20 Hey all. I am having a problem with disabling Crashlytics in debug builds. I am getting "This app relies on Crashlytics" crash even though I'm on debug -- anyone know if Fabric/Crashlytics was updated recently but the docs weren't? May 04 18:52:24 I'm just following the steps on https://docs.fabric.io/android/crashlytics/build-tools.html#disabling-crashlytics-for-debug-builds May 04 18:53:00 I have another app where it's disabled in debug build and works fine but these steps aren't working for new app/latest Crashlytics May 04 18:56:04 tried doing if (!BuildConfig.DEBUG) { initialize fabric }? May 04 18:57:42 thats how I have it, works fine May 04 18:57:54 Same issue May 04 18:58:01 Let me recheck May 04 18:58:15 what crashlytics version? May 04 18:59:16 Latest May 04 18:59:22 In the docs it says "You can disable the kit at runtime for debug builds only with the following code:" May 04 18:59:44 They must have changed something in latest version because my other app on an older version works fine with the same code May 04 19:00:07 com.crashlytics.sdk.android:crashlytics:2.5.5@aar? May 04 19:00:24 just wanna see if I can recreate May 04 19:00:49 Yeah May 04 19:00:53 and then debug { May 04 19:00:53 debuggable true May 04 19:00:53 ext.enableCrashlytics = false May 04 19:00:53 } May 04 19:01:21 the code I have in Application class onCreate is just copy and pasted straight from the docs May 04 19:01:51 I don't have that part in build.gradle May 04 19:02:50 If I just do if(false) to disable it it works fine. I wonder if my device thinks I'm not running debug variant somehow? But I am, so I dunno May 04 19:04:34 make a clean build? May 04 19:04:47 i read that the BuildConfig is not always properly regenerates May 04 19:04:59 maybe check the generated Config in AS and with a debug statement? May 04 19:08:36 clear May 04 19:09:41 Same thing after a clean build May 04 19:09:56 @azgul What package are you importing BuildConfig.DEBUG from ? May 04 19:10:07 I wonder if that would make a difference May 04 19:10:38 same package as my Application May 04 19:11:00 what does it say if you decompile it? May 04 19:11:02 did you try with a debug statement?(just a log of the state of the variable) May 04 19:11:16 decompile BuildConfig that is May 04 19:11:30 Ah, that fixed the problem May 04 19:11:37 ^^ May 04 19:11:40 I realized I was importing BuildConfig from the Crashlytics.core package May 04 19:11:42 and not my app May 04 19:11:43 -.- May 04 19:11:45 haha May 04 19:11:54 Thanks for the help May 04 19:12:04 oops May 04 19:12:07 nps May 04 19:12:09 I should have paid more attention when importing, haha May 04 19:12:29 you would've noticed if you had stepped into BuildConfig cuz it says the package name at the top of the decompiled class May 04 19:14:30 Oh well, there is always next time :D May 04 19:14:37 ^^^ May 04 19:19:23 :) May 04 19:35:04 In my android app how to make sure that user sends a live pic May 04 19:35:22 How are current apps dealing with this solution? May 04 19:35:23 Check for corpse pics? May 04 19:36:00 On a more serious note, I don't know. Someone should know though May 04 19:36:06 Not sure theres a good way to do it jackhum May 04 19:36:34 Well, what do you mean by live pic? May 04 19:37:06 i guess they mean one just taken, as opposed to one from the camera roll? May 04 19:37:23 Just keep a flag of what the user chooses May 04 19:37:30 Pick from gallery, or pick from camera May 04 19:37:44 I think they want to disallow pick from gallery May 04 19:37:46 The only time i wondered this was when i was using Kik app May 04 19:37:56 I suggest linking to a "Learn to be an Android developer"- link. That should include, "How does Android work anyway? from a linux-user point of view." -- Thank you. May 04 19:38:15 Yeah. Better just make the camera button camera. Instead of intent May 04 19:39:06 Or just link it for me and I will pass it on to the LA Women who Code group that is going to set up a group for Android dev, beginners start. May 04 19:39:17 LA Women? May 04 19:39:21 Woman* May 04 19:39:21 There's no way to make an intent not letting the user access the gallery? May 04 19:39:25 The Doors tripelb May 04 19:39:47 If the link eventually makes it into the /topic then so much the better. May 04 19:40:06 Kik does it May 04 19:40:53 I guess they configure some system settings? https://kikinteractive.zendesk.com/hc/en-us/articles/217680928-How-do-I-give-Kik-access-to-my-photos- May 04 19:41:08 The Doors not the music, lol. drose379 I will try. May 04 19:41:25 .goo3 Android the doors May 04 19:41:46 Copied for another bot May 04 19:41:54 Im a bit confused about what youre talking about tripelb May 04 19:43:44 I am looking for a beginning Android dev link. I supposed that folks in here would know what might be a good one. I wanted it to start with understanding Android OS structure. Assuming some facility with Linux. May 04 19:43:59 Use google May 04 19:44:49 Therebis a group in LA called "Women who Code" that has put out a call for interest in beginning Android dev. May 04 19:47:59 So what tripelb May 04 19:48:18 U "Use Google" aka either: We don't know of such a site or We won't help you. (Reminds me of the old timey unhelpful tech irc channels - before ubuntu) May 04 19:48:38 drose379: so I am asking for a link. May 04 19:48:52 But NeverMind. I get your drift. May 04 19:48:55 Google will know better then us May 04 19:49:15 me at least May 04 19:49:41 Heres someting tripelb May 04 19:49:45 https://play.google.com/store/books/details?id=CrzONuZ0YAIC&source=productsearch&utm_source=HA_Desktop_US&utm_medium=SEM&utm_campaign=PLA&pcampaignid=MKTAD0930BO1&gl=US&gclid=CIDWg7GYwcwCFQHd6QodAGICHQ&gclsrc=ds May 04 19:50:42 tripelb there are a few books on building android from scratch, one from oreilly another from pierson May 04 19:50:57 i'm not aware of anything thats like 'windows internals' though May 04 19:51:42 So Android studio won't let me delete an activity and all of its references? May 04 19:51:45 tripelb http://www.amazon.com/Embedded-Programming-Android-Bringing-Scratch/dp/0134030001 May 04 19:51:49 In a simple way May 04 19:52:06 Excellent. TY May 04 19:52:11 tripelb maybe getting hands dirty in that way will be enlightening May 04 19:52:30 the oreilly one is getting updated, so i wouldn't get that (1e is out of date) May 04 19:52:52 Umm, hoping for no paywall. May 04 19:52:55 cual es la pregunta? May 04 19:52:56 Ashiren: Thanks, I'll try that. Sorry I am 1.5 hours late. May 04 19:53:01 tripelb paywall ? May 04 19:53:02 I forgot about my question. May 04 19:53:18 g00s: costs $33 May 04 19:53:23 uh, yeah its a book May 04 19:53:26 lol May 04 19:53:43 tripelb oh, you may as well understand this right now : google doesn't document much May 04 19:53:52 tripelb check out https://www.udacity.com/courses/android May 04 19:54:01 so either (1) you go through the sources and figure it out yourself or (2) find a book maybe May 04 19:54:13 g00s: what dont they document May 04 19:54:18 Ashiren: alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime() + duration, eggDonePendingIntent); should work right? Where duration = "6 * 60 * 1000"? May 04 19:54:23 I will keep looking g00s and when I find one will come back and share it. May 04 19:54:33 Tobbi: eeyup May 04 19:54:50 Thanks azgul May 04 19:54:57 OKay, will try, thanks. May 04 19:55:13 drose379 system internals May 04 19:55:49 Ah ok May 04 19:58:18 hey g00s:) May 04 19:59:53 Okay, timer started. We'll see whether it opens up again in 6 minutes. May 04 20:00:02 Thanks all. I am going to start with udacity. May 04 20:00:16 there some free one on there. May 04 20:00:46 :) May 04 20:00:55 Tobbi: for testing you could decrease the time to i.e. half a minute ~ May 04 20:01:06 Maybe even 10 seconds May 04 20:01:14 Ashiren: Oh, yes, I could do that. May 04 20:01:27 But, let's see. For now I will let the 6 minutes elapase. May 04 20:01:27 I was thinking the same thing, but didnt know if you were doing something in particular that had to do w 6 mins May 04 20:01:29 *elapse May 04 20:01:35 Makes the whole thing more thrilling :P May 04 20:01:44 Haha May 04 20:01:47 What is this for Tobbi May 04 20:02:10 drose379: I got the task to program a simple services example. So I am starting an egg timer service. and it reopens the GUI. May 04 20:02:12 After 6 minutes. May 04 20:02:31 Cool May 04 20:02:37 drose379: No, not cool. May 04 20:02:42 What May 04 20:02:45 I am tired of programming for Android... May 04 20:02:49 Why tired of it May 04 20:02:49 Just a task I have to do. May 04 20:03:02 drose379: I am tired of programming in general currently. I am in my masters... May 04 20:03:08 Masters for what May 04 20:03:10 and have programmed so much and for so long. May 04 20:03:18 drose379: Masters for Applied Computer Science. May 04 20:03:25 I thought you dont like programming May 04 20:03:53 drose379: I don't like programming because I have done it so excessively. May 04 20:04:07 Gotta love the process May 04 20:04:09 I need to get my mind off the logical restrained thinking that programming involves May 04 20:04:46 Well no ones forcing you to get a masters :) May 04 20:05:04 that true. May 04 20:05:05 drose379: I force myself to get a masters, that is a problem. I am too ambitious. May 04 20:05:30 Look being ambitious is good if you are working towards some end goal, seems like you dont want the end goal to happen May 04 20:05:34 (Being a great developer) May 04 20:05:44 drose379: I am already a great developer :P May 04 20:05:54 Ok, becoming a better developer May 04 20:06:00 "great" May 04 20:06:03 That is hardly possible :P May 04 20:06:07 Ok May 04 20:06:16 ResidentBiscuit: I did my internship at Mozilla back in the days. May 04 20:06:22 I am not a complete noob :P May 04 20:06:33 Ok "effectively final" in java 8 is awesome May 04 20:06:39 Everybody is a noob May 04 20:06:51 You got to start some where. May 04 20:06:55 *sigh* May 04 20:07:05 Half the fun is learning new stuff and using it May 04 20:07:14 Like 85% of the fun May 04 20:07:21 Once you think of yourself as an amazing developer, you're done May 04 20:07:45 Tobbi: are you in the USA May 04 20:07:49 drose379: I am not. May 04 20:07:53 Oh ok May 04 20:07:58 I am from Germany. May 04 20:08:01 JW May 04 20:08:09 It's fine. May 04 20:08:24 Good luck May 04 20:09:17 drose379: With what? My program? My studies? My future? May 04 20:09:25 Everything :) May 04 20:10:31 Oh, thanks :) May 04 20:12:08 orbyt_: what did you end up doing earlier? With that method that accepted a generic May 04 20:12:48 utilizado una T data May 04 20:13:17 funciona bien May 04 20:13:29 yo creo May 04 20:13:33 Will you stop it May 04 20:13:41 que? May 04 20:14:04 Whatever May 04 20:14:11 no hablamo espanol May 04 20:14:24 Ah! mi amigo ResidentBiscuit May 04 20:14:34 no es su amigo May 04 20:14:42 this channel is getting stupid as hell May 04 20:14:42 por que?! May 04 20:14:47 porque May 04 20:14:58 my fucking IQ drops every time i read the conversation May 04 20:15:16 g00s: chill the fuck out May 04 20:15:19 Is that possible for it to drop anymore? May 04 20:15:30 Poor guy May 04 20:15:40 So dumb his client crashed May 04 20:17:34 Honestly im starting to like Toasts more then Snackbars May 04 20:17:39 If there is no action needed May 04 20:17:45 There completely different lol May 04 20:17:53 Same thing if you dont need an action May 04 20:18:07 um no May 04 20:18:09 Yes May 04 20:18:18 you can manipulate snackbars in a coor layout May 04 20:18:21 cant do shit with toasts May 04 20:18:25 coord* May 04 20:18:32 You dont _need_ to do that with toats, they are on top May 04 20:18:44 what May 04 20:19:05 Toasts are on top of the other views, you dont need to adjust them in a coordinator layout May 04 20:19:25 pretty sure snackbars appear over all views as well, not sure how thats relevant May 04 20:19:46 Ok they are used for the same task though May 04 20:20:02 no May 04 20:20:11 ? May 04 20:20:25 no, or as we say in spanish-no May 04 20:20:38 They are just blurbs of quick text May 04 20:21:00 right but a snackbar can have actions attached as well as, like i already said, coordinate with the rest of the layout May 04 20:21:05 there not the same May 04 20:21:17 Ok like I said earlier, they are the same _if you dont need an action_ May 04 20:21:37 no, read the second part of my last response May 04 20:21:44 Im so over this May 04 20:21:48 Semantic arguments are always fun May 04 20:21:55 Ya really May 04 20:44:17 they're the best May 04 20:44:24 only kind worth having May 04 20:46:04 What is the best? May 04 20:46:14 The west is the best - Jim Morrison May 04 20:46:25 To crush your enemies, see them driven before you, and hear the lamentations of their women May 04 20:46:49 Did I miss something? May 04 20:47:03 i was asked what is best May 04 20:47:17 Anyone fans of The Doors? May 04 20:47:58 I like doors. Especially when you can close them to have some privacy. May 04 20:48:04 :P May 04 20:48:08 No no tobbi May 04 20:48:14 It was a pun. May 04 20:48:15 The doors of perception May 04 20:48:17 A bad one at that. May 04 20:48:21 Horrid :P May 04 21:07:45 Would this be a good use for a custom view class: May 04 21:08:06 no. May 04 21:08:11 In a listview, I keep having to do list.getChildAt( i ).findViewById(...).doSomething May 04 21:08:27 no. May 04 21:08:30 Wish I could just do list.getChilldAt().doSomething May 04 21:08:40 Seems like a good use May 04 21:09:08 use rv? May 04 21:09:19 Whats tv May 04 21:09:21 rv* May 04 21:09:29 recycler? May 04 21:09:35 recyclerview. laos listview has getChildAt so... May 04 21:09:37 also* May 04 21:09:58 Yeah but I keep having to do list.getChildAt().findViewById().doSomething May 04 21:10:11 that seems odd that you’re doing that, though. May 04 21:10:13 I wish I could just get the child and do... hideThis(), showThat(), fadeThis() May 04 21:10:36 Im showing / hiding items in a list view cell May 04 21:11:00 how many? beyond 2, I’d say just make separate cells May 04 21:11:10 Just one thing May 04 21:11:13 but it does seem to be a good candidate for a custom view May 04 21:11:34 Thats kind what I thought, not sure why the people above said no May 04 21:11:53 you hadn’t actually asked your question before they said no May 04 21:12:05 True but they never changed their answer May 04 21:12:16 however, how do you know which row to reload? May 04 21:12:25 I have an index May 04 21:12:35 and where does that come from? May 04 21:12:52 Not sure it matters May 04 21:13:16 I’m saying you might not need to do that at all. just put the part that decides to show/hide in the custom view class May 04 21:13:32 Well its dynamic, it may change May 04 21:13:41 Depending on what the user does May 04 21:13:43 like, if it’s in response to a button touch, then there’s no reason for that logic to be outside the view class May 04 21:14:11 provided the button is in the cell May 04 21:14:25 Hm, I see what you mean May 04 21:14:36 I've never set up a custom view class, gotta look into that May 04 21:16:28 Doesnt seem like too much though s73v3r May 04 21:17:01 no. depending on how complex your view is, you may look into extending a ViewGroup like RelativeLayout or LinearLayout May 04 21:17:17 Just 2 textviews and an imageview May 04 21:17:31 either way is fine May 04 21:18:52 Thanks s73v3r May 04 21:24:37 Every time I set up androidTest... Every time. May 04 21:25:29 http://pastebin.com/gwGHzf1i May 04 21:25:37 Something always goes wrong. This time is no different May 04 21:27:14 keep repeating, don't give up May 04 21:27:46 shmooz: whats up May 04 21:27:51 don't give up, skeleton May 04 21:28:46 drose379!!! what's happenin dude May 04 21:28:53 How you been? May 04 21:28:59 PM Me May 04 21:29:04 Dont wanna blow up channel May 04 21:29:10 BOOM! May 04 21:29:16 lol May 04 21:30:17 hello, i want to send my android studio project to a friend. he doesn't have internet connection but my project is using dependencies for 'com.android.support:appcompat-v7:23.0.1' ...is there anyway to zip or inlude in the project folder appcompat7 ? May 04 21:32:49 You can send him your local dependency repository May 04 21:33:41 ResidentBiscuit, how will i do that? May 04 21:35:12 I believe gradle uses the same repo as maven, so your $HOME/.m2/ May 04 21:35:47 doing notifyDataSetChanged doesnt call getView on the adapter, is there a trick to get this done? May 04 21:41:02 ResidentBiscuit, i'm on Windows. so i guess the folder will be myproject\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.1 ...right? May 04 21:41:25 No it should be C:\Users\You\.m2 May 04 21:41:46 hi, this is more about debugging an app i have. was hoping maybe someone here could help May 04 21:41:57 Just ask the question May 04 21:42:22 DarkDaemon: Don't ask to ask. Just ask. Someone will help if they can May 04 21:42:44 I never understand why people ask to ask May 04 21:43:01 sorry, got distracted in the other channel May 04 21:43:33 so basically i used helium backup to take a backup of my sms/call log. now when i go to restore, im getting an error. logcat spits out >> Package com.koushikdutta.backup does not belong to 1001 May 04 21:44:26 one sec i'll pastebin more info May 04 21:45:55 http://pastebin.com/T5kR9ZbS May 04 21:45:58 that is the meat of it. May 04 21:47:08 1001 looks like a user ID May 04 21:47:12 yep May 04 21:47:15 its the telephony UID May 04 21:47:30 i'm trying to restore sms so maybe it has something to do with permissions May 04 21:47:32 hrmf :/ May 04 21:47:50 i have root so i'm wondering if i can force a uid May 04 21:47:51 Backing up SMS and Call log should really be done via XML and Android APIs :/ May 04 21:48:03 If you have root I guess you could just push the sqlite DBs back? May 04 21:48:08 If the firmware version is the same. May 04 21:48:13 don't have those :( May 04 21:48:26 i have the bloody helium backup which came with a .ab file BUT NOT A REAL .ab file May 04 21:48:38 apparently some bit is missing/changed so it can't be restored with adb May 04 21:49:02 But that helium backup contains the databases. May 04 21:49:08 It's just a dump of /data/data stuff May 04 21:49:12 nope May 04 21:49:13 sec May 04 21:49:22 Which includes the sqlite DB of your calls and smses. May 04 21:49:30 actually maybe but not as a db file May 04 21:49:49 .ab are just tar files that contain apks and /data/data dump May 04 21:49:49 2016-05-04 01:10 AM 0 .nomedia 2016-05-04 01:10 AM 12,028 ._com.android.providers.telephony.png 2016-05-04 01:10 AM 1,611,027 com.android.providers.telephony.ab 2016-05-04 01:10 AM 225 com.android.providers.telephony.json May 04 21:49:55 ugh. May 04 21:49:59 sorry terrible paste May 04 21:50:13 http://pastebin.com/jEFRwAye May 04 21:50:22 Detar the .ab: https://android.stackexchange.com/questions/28481/how-do-you-extract-an-apps-data-from-a-full-backup-made-through-adb-backup May 04 21:50:27 And restore it that way? May 04 21:51:07 k let me try. the issue is it's not a usual .ab. let me try this link though May 04 21:51:27 It has to be *something* May 04 21:52:06 yep gimma min. May 04 21:53:20 http://techcrunch.com/2014/07/15/google-offers-up-a-free-crash-course-in-android-development/ May 04 21:53:29 "Warning about Helium (Carbon): helium backups are just android adb backups that are not compressed with Java Deflater. It means they were created with the option static final boolean COMPRESS_FULL_BACKUPS = false." May 04 21:53:32 according to the internet May 04 22:14:36 Can I pretty please see someones proguard configuration, one that involved mockito, powermock, junit? May 04 22:14:48 I'm getting warnings that are not being resolved by my proguard rules May 04 22:14:49 check out the proguard samples May 04 22:15:27 android-proguard-snippets? I dont see any May 04 22:15:45 actually yea i didnt see any for those either May 04 22:16:08 wait why do you need progaurd for test stuff May 04 22:16:23 you shouldnt be shipping tests May 04 22:17:40 we're not, google libs take up 45K methods and the other deps fill the rest of the gap. May 04 22:17:44 It's been a nightmare May 04 22:17:51 We're not *shipping tests May 04 22:17:53 are you including play services? May 04 22:17:58 yea May 04 22:18:21 make sure you only declare the ones your actually using, not the entire package May 04 22:18:42 Yes. Thank you May 04 22:19:01 Apparently "proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'proguard-debug.pro'" doesn't cut it May 04 22:19:17 You must explicitly specify "testProguardFile 'proguard-debug.pro'" to hold your special rules May 04 22:22:15 Not sure why the two settings would be mutally exclusive ._> May 04 22:52:08 If i am declaring an interface inside a class. Ex: public class X {interface Y {..}} May 04 22:52:23 Is there a difference between "interface ..." and "public interface..." May 04 22:53:23 yea May 04 22:53:36 Ok whats the dif? May 04 22:53:44 "interface" will have default visibility, "public interface" will be public May 04 22:53:59 What are the properties of default visibility? May 04 22:54:02 Package local? May 04 22:54:05 yep May 04 22:54:08 Sweet, thanks May 04 22:54:09 exactly May 04 22:54:13 Thank you May 04 22:54:23 Basically, only items in its package will know about it? May 04 22:54:28 (Just making sure) May 04 22:56:55 Tea May 04 22:56:58 Yes* May 04 22:57:01 Got it, thanks again May 04 22:57:28 Why the hell isn't my androidTest @Component getting a DaggerMyTestComponent builder factory generated for it??? May 04 22:57:31 (Dagger 2) May 04 23:21:25 f'ing hell May 04 23:21:43 i'm still trying to get android backup extractor built May 04 23:21:52 it shouldn't be this hard May 04 23:21:54 lol May 04 23:21:58 it really shouldn't May 04 23:22:01 it's an app? May 04 23:22:17 DarkDaemon: are these ADB backups? May 04 23:22:41 spudowiar: no they are helium backups May 04 23:22:45 oh May 04 23:22:47 idk May 04 23:22:49 lol May 04 23:22:50 np May 04 23:23:22 Execution failed for task ':compileJava'. > Could not find tools.jar May 04 23:23:34 keep getting that shit using gradle. even though i added JAVA_HOME to my path May 04 23:23:50 have you set sdk.dir? May 04 23:26:38 nope May 04 23:26:48 i'm just using the existing gradlew.bat script that comes with ABE May 04 23:29:19 spudowiar: do you know what are the requirements for running gradle? May 04 23:29:45 DarkDaemon: Android SDK May 04 23:29:52 yep got that May 04 23:29:56 have you said ANDROID_HOME? May 04 23:29:59 *set May 04 23:30:03 maybe i'm missing an update or something May 04 23:30:33 C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Fi May 04 23:30:45 bah too long May 04 23:30:46 sec May 04 23:31:16 http://pastebin.com/KcvUbWQL May 04 23:32:31 C:\Program Files (x86)\Java\jdk1.7.0_55 << that is my JAVA_HOME May 04 23:39:25 DarkDaemon: ANDROID_HOME? May 04 23:40:06 i don't know what android_home has to do with this, tools.jar only exists in my jdk dir May 04 23:53:30 hmm how should i model this: http://prntscr.com/b0dmox May 05 00:17:15 Im having trouble getting a layout to position in the center vert, http://i.imgur.com/DnvwicL.png (gray buttons) http://pastebin.com/2f0NYgLB , context ExpandableListView Group item view May 05 00:18:30 I've tried getting a LinearLayout to go into the center via gravity="center_vertical", but it doesnt move it at all May 05 00:20:06 The layout will move down with top margin, but the text on the left can be multi-lined, and Id like it to always be in the center May 05 00:22:30 It was working until I changed several things, ie weight and width/height, to get those layouts to not take up so much of the item view (they were talking the bulk of the space0 May 05 00:25:28 ugh, feel like a fool now, moved gravity="center_vertical" to the topmost parent, and now it appears correctly May 05 00:27:53 got it working finally and it still can't work with helium .ab files. the tar it spits out doesnt extract >_> May 05 00:52:24 Hi all. What's the best practice way to maintain backstack state after an Activity is destroyed? I have an app that is one activity with a few fragments, but when the Activity is recreated (i.e. user leaves the app and comes back) the backstack navigation gets screwy May 05 00:55:11 Mavrik: still around? May 05 00:58:16 what are the legal restrictions on automating installation of the sdk and ndk? I'd like to automate everything except clicking the license agreements. Is that allowed? Can anyone point me to authoritative info on this? May 05 00:58:22 (I did try google first) May 05 00:58:41 this automation wouldn't be for just me but for my end users May 05 00:58:54 brson: Why can't people just use the SDK Manager? May 05 00:59:08 brson: It really isn May 05 00:59:12 't difficult May 05 01:00:29 LunarEclipse120: they can if they want, but a lot of my users are not android devs and don't know how to do it. no work for them is better than some work May 05 01:00:41 and it's the ndk too May 05 01:00:48 which is less convenient to deal with May 05 01:01:01 brson: Uhh so you want them to develop but they aren't developers? May 05 01:01:25 LunarEclipse120: they are Rust developers, not Android/Java developers May 05 01:01:37 brson: Why would they need Android APIs then? May 05 01:02:30 LunarEclipse120: do you know where i can find information on the legalities of automating the sdk/ndk installation? May 05 01:02:41 brson: they’re developers, though. they shoudl be able to do it May 05 01:02:51 understood May 05 01:03:32 brson: Why do they need the APIs anyway? May 05 01:03:56 they’re working on getting Rust to work on Android? May 05 01:05:54 LunarEclipse120: even though they would mostly be writing in rust, one still needs the sdk to to create apks and test, even if they don't write any java May 05 01:06:23 brson: Why? What does this have to do with Android? Rust is a game is it not? May 05 01:06:46 brson: Oh the programming language? If they can program, they can use the SDK Manager. May 05 01:06:58 brson: Just let them do May 05 01:07:01 *it' May 05 01:11:59 looks like homebrew does it https://wiki.appcelerator.org/display/community/Managing+the+Android+SDK+and+NDK+on+OSX+using+Homebrew May 05 01:12:18 they even automate the license agreement https://github.com/Homebrew/legacy-homebrew/blob/master/Library/Formula/android-ndk.rb#L35 May 05 01:12:42 brson: Well, I don't see the need for you to do it May 05 01:12:55 Unless your devs are lazy, which never goes well May 05 01:21:17 LunarEclipse120: thanks for your time May 05 01:21:34 Brewster: No problem May 05 01:33:11 any tips what i can do about this >> http://pastebin.com/T5kR9ZbS May 05 01:33:27 basically keep getting this >> java.lang.SecurityException: Package com.koushikdutta.backup does not belong to 1001 May 05 01:39:23 can i change ownership of a package? May 05 01:39:36 i think it has more to do with permissions than anything else May 05 01:39:47 but i dont know enough android to test out solutions May 05 01:40:24 DarkDaemon, probably a question for #android-root or the xda forums. There's no way to change it w/in the standard android API since each app is its own user and can't directly change to other users for (probably) obvious security reasons May 05 01:40:42 dragorn: kk cool. thanks May 05 01:44:15 https://github.com/scala-android/sbt-android/blob/master/CHANGES.md#new-features-in-16x May 05 01:44:17 woot May 05 01:50:51 pfn why isn't it 1,7.0 May 05 01:54:28 sup g00s May 05 01:54:48 hello drose379 May 05 01:54:58 Hows it goin May 05 01:55:39 weird - i read some preferences in my Application.onCreate() and do stuff - but they don't take effect when using instant run sometimes May 05 01:55:53 IR must be hijacking something there May 05 01:57:08 Yeah sometimes my changes dont take effect when using instant run May 05 01:57:10 Annoying May 05 01:58:16 prince: Too soon man, too soon May 05 02:02:28 g00s, because I hate running version numbers up quickly May 05 02:03:13 Storing a context in presenter is so refreshing May 05 02:07:28 but yeah, best android build tool May 05 02:12:17 How come the retrofit Response#onResponse method gives us a Retrofit instance? May 05 02:12:27 When we basically used one to make the call May 05 02:16:11 for chaining May 05 02:16:41 I wish we could pass extra params to method references May 05 02:35:21 Whats chaining pfn May 05 02:36:27 method chaining May 05 02:41:46 So I have a custom Gson deserializer, I've added it to my retrofit instance, how does Retrofit know when to use it? May 05 02:56:12 when the type matches **** ENDING LOGGING AT Thu May 05 02:59:58 2016