**** BEGIN LOGGING AT Wed Aug 31 02:59:58 2016 Aug 31 03:00:07 I don't understand why someone would want to make 100$/mo when they could make millions. Aug 31 03:04:00 do you make millions? Aug 31 03:06:37 aren't we all here making or going to make millions? I mean that's why I joined the channel in first place. Aug 31 03:07:22 id love to, sure Aug 31 03:07:49 but none of us probably will, and $100/mo is more than im making, and more than most of us seem to be making Aug 31 03:08:11 so it doesnt sound like a bad place to start Aug 31 03:09:02 I hope that some people here is making much more than $100/mo from Android development Aug 31 03:09:19 Just not by selling some little app on Google Play Aug 31 03:10:04 Most little apps have only sense in the context of a larger business Aug 31 03:14:35 drinfernoo: I hope you find a way to become a millionaire soon Aug 31 03:15:05 me too man lol Aug 31 03:41:59 So, if it is an appropriate question here, I use genymotion for whatsapp and want to use kdeconnect to send its notification to my pc. Is there a way to do that? Aug 31 03:47:01 Kurowa: sounds more a question about the usage of kdeconnect. Did you try #android? Aug 31 03:52:20 hello Aug 31 03:52:26 hello Aug 31 03:52:39 hello Aug 31 03:53:02 i guess i still can download old NDK(r11) i want to see a difference in directories from r12b Aug 31 03:53:33 still trying to fix CMake toolchain file to make it work with 12b he-he Aug 31 03:58:51 ah seems like 10=>11 changed structure but 11=>12 was not that big change Aug 31 04:00:46 how to close the app not only the actua Activity with finish() ? Aug 31 04:01:03 you don't Aug 31 04:01:22 or need close each one? Aug 31 04:04:24 finishAffinity(); Aug 31 04:05:17 how do you guys implement an MVC on android, is it possible? Aug 31 04:06:43 of course it's possible Aug 31 04:37:30 I can't believe Google's services can be this bug-ridden Aug 31 04:38:07 My Game panel tells me that the Games Service is disabled, I push the button to turn it back on, I refresh the page and it still says that it's disabled Aug 31 04:38:26 I go to the Google API console, check the API list, everything's enabled Aug 31 04:44:04 VerbalKint: aren't you repeating yesterdays self Aug 31 04:44:30 we are not google services support here, okey Aug 31 04:45:00 http://www.theverge.com/circuitbreaker/2016/8/29/12691850/samsung-galaxy-flip-folder-2-release ahh i want one! Aug 31 04:45:01 squ: but #android-dev handles with Google services everyday Aug 31 04:45:05 no Aug 31 04:45:13 squ: and arguably, it's part of android development Aug 31 04:46:13 how sad my irc client doesn't have ignore function Aug 31 04:47:10 bankai_: is this dumbphone? Aug 31 04:47:14 squ: how sad that you find me annoying X_X Aug 31 04:47:14 no Aug 31 04:47:36 then I don't get it Aug 31 04:48:00 what is the idea Aug 31 04:48:28 it should be dumbphone Aug 31 04:48:37 i like flip phones Aug 31 04:49:13 you can always buy flip case Aug 31 04:59:07 bankai_ looks like a moro razr kinda thing Aug 31 04:59:17 rip moto Aug 31 05:01:15 I am using retrofit to consume Foursqaure API in which there is lot of unk data which I want to avoid, in order to consume items of explore API I have created 5 class entities why so this much pain Aug 31 05:18:51 Android toolchain have same behaviour as Linux one has right? Aug 31 05:19:56 i mean exporting all symbols unless used -fvisibility=hidden Aug 31 05:21:24 then only visible symbols are one having something like __attribute__((__visibility__("default"))) Aug 31 05:27:43 anyone able to help me with a quick question about using retrofit / rest? Aug 31 05:35:01 hello world Aug 31 05:35:46 good morning Sir Aug 31 05:35:58 hows it going Aug 31 05:36:29 I'm new to this world of android development and needing to be pointed in the right direction Aug 31 05:36:30 upset that Firebase is much much worse than Parse Aug 31 05:36:50 Parse kicks Firebase in every aspect Aug 31 05:37:04 that makes you upset?? Aug 31 05:37:08 yes Aug 31 05:37:12 it does Aug 31 05:37:21 what are those Aug 31 05:37:33 Firebase is free database solution by Google Aug 31 05:37:54 which is not an SQL database, as anyone would expect Aug 31 05:38:18 but parse is? Aug 31 05:38:33 yes Aug 31 05:39:33 if you need filter database rows by specific column, for example ‘name’ and ‘ID’, you can do that with SQL Aug 31 05:39:43 can't with firebase Aug 31 05:40:02 with firebase the only option is to fetch the full table into device Aug 31 05:40:14 and iterate it manually Aug 31 05:40:27 and hide colums and you don't want? Aug 31 05:40:47 yes, SQL is a tool to structure and query data Aug 31 05:41:01 but somehow Firebase was not aware of that Aug 31 05:41:04 yes im familiar with sql Aug 31 05:41:06 it makes me sad Aug 31 05:41:16 use to use mysql for web shit Aug 31 05:41:25 ye Aug 31 05:41:44 firebase is just json indexed by ‘pushId’ Aug 31 05:41:50 so in a since youd download more data with firebase then with parse Aug 31 05:43:08 do you have any advice for me starting out? Aug 31 05:43:19 don't start with Android Aug 31 05:43:22 I just want to learn learn and learn Aug 31 05:43:23 haha Aug 31 05:43:26 oh yeah Aug 31 05:43:28 yes Aug 31 05:43:48 do a little more spending that is $75 more, and go for ios Aug 31 05:44:05 don't mess with google and/or android Aug 31 05:44:09 why is that Aug 31 05:44:15 because it is shit Aug 31 05:44:18 they do shit software Aug 31 05:45:03 java is shit too Aug 31 05:45:08 squ not sure what to tell folks the days, wanting to get into mobile ... Aug 31 05:45:23 its like , advice on windows desktop shareware or something :D Aug 31 05:45:38 g00s: I think learning C language together with Objective-C for ios is a good start Aug 31 05:46:18 I mean it is also obligatory course if you go to school Aug 31 05:46:31 and don't forget the 2M developers Google is training on android Aug 31 05:46:37 i have some ex with c# and c++ Aug 31 05:46:40 2M? really? Aug 31 05:46:51 iprime yup, in india ... Aug 31 05:46:58 oh ) Aug 31 05:47:03 :) Aug 31 05:47:07 i mean is this some official program or something? Aug 31 05:47:10 never heard of that Aug 31 05:47:37 http://www.bloomberg.com/news/articles/2016-07-11/google-to-train-2-million-indian-developers-on-android-platform Aug 31 05:48:04 microsoft did similar thing to attract developers to their platform Aug 31 05:48:05 the more people that develop for android, the stickier the platform is Aug 31 05:48:50 that's interesting Aug 31 05:49:01 i wonder how many android devs there are in the US Aug 31 05:49:26 > We noticed that you're using an ad blocker, which may adversely affect the performance and content on Bloomberg.com. For the best experience, please whitelist the site. Aug 31 05:49:28 i bet that # is in the vision mobile report Aug 31 05:49:45 ah i think i have it in my email, let's see Aug 31 05:49:47 no thank you bloomberg Aug 31 05:49:49 :) Aug 31 05:50:06 you gotta get the anti ad blocker blocker Aug 31 05:50:54 haha Aug 31 05:51:09 squ i have blocker too, site still works ... Aug 31 05:51:17 its just a reminder Aug 31 05:51:52 they want that ad money Aug 31 05:52:12 you're taking food out of their kids mouths haha Aug 31 05:52:18 they have to pay the bills somehow, kinda sucks how the internet relies so much on ad Aug 31 05:52:23 who do we blame for that :) Aug 31 05:53:38 al gore Aug 31 05:53:58 lol Aug 31 05:54:13 you gotta fund the global warming fight some how Aug 31 05:56:27 i don't think there will be much fight, we're screwed Aug 31 05:56:43 no numbers in the report g00s Aug 31 05:56:49 just percentages Aug 31 05:56:54 hm Aug 31 05:57:21 weird, i did see that # (total devs) somewhere Aug 31 05:57:49 in the title Aug 31 05:59:13 India is expected to have the largest developer population with 4 million people by 2018, overtaking the U.S., but only a quarter are building for mobile Aug 31 06:00:13 the rest are making scam sites? Aug 31 06:04:44 WeAreOneMind: don't ask to ask. Ask to ask to ask. Or ask to ask to ask to ask. But never ever ask to ask. Aug 31 06:05:03 ^ Aug 31 06:05:15 lol Aug 31 06:11:19 i found properly working toolchain script for CMake :) Aug 31 06:11:32 when i am making a rest call with retrofit, do i have to include all of the things that the server returns? or if the server returns "a": { x:..., y:..., z:... } can i just make java classes for x and y? or will i get some error for not having java class members for all of the json objects Aug 31 06:11:39 it works with r12 and clang Aug 31 06:12:29 * g00s needs to read up on SparQL Aug 31 06:13:40 WeAreOneMind, I was facing the same issue while fetching FourSquare Api but I resolved it by customizing the json within retrofit Aug 31 06:14:20 min2: ? Aug 31 06:14:22 retrofit provides good method with the anme of .addConverterFactory(GsonConverterFactory.create(gson)) Aug 31 06:14:36 did that Aug 31 06:14:40 in which you can create your custom class to do pass the data Aug 31 06:15:16 but in the custom class can i leave out elements that are in the json model? like the api returns an object with like 20 elements, i only need about 4 Aug 31 06:15:44 yes Aug 31 06:16:07 awesome thank you Aug 31 06:17:11 android studio download 0 B/s - 1.1 GB of 1.2 GB Aug 31 06:17:18 son of a bitch Aug 31 06:17:45 haha, then you have to d/l sdks ... Aug 31 06:18:09 i hope google puts all the support libs in maven repos soon ... and build tools, etc Aug 31 06:18:11 im working on that as well and they're running at Aug 31 06:18:19 paqratst1: I told you don't start with android Aug 31 06:18:25 98kib/s Aug 31 06:18:28 heh Aug 31 06:18:48 paqratst1 what machine do you have ? Aug 31 06:18:50 i did a speed test and im good on my side Aug 31 06:19:02 just this hp Aug 31 06:19:06 laptop Aug 31 06:19:29 can't do ios :( Aug 31 06:19:39 I didn't have an issue when i downloaded the older version Aug 31 06:20:04 do you have to have a mac to do ios Aug 31 06:21:50 yes Aug 31 06:22:27 restarted the download now at 3mb/s Aug 31 06:22:46 and climbing haha Aug 31 06:24:00 well im calling it a night Aug 31 06:24:18 why does android regex Pattern Matcher only match one occurance? i dont see a GLOBAL flag anywhere... Aug 31 06:24:37 paste your regex Aug 31 06:24:58 "([A-Za-z]+)([1-4])" // doesn't match "foo1 bar2" Aug 31 06:25:12 matches "foo1" or "bar2" Aug 31 06:25:15 what do you want to be matched Aug 31 06:25:24 i want to match "foo1" and "bar2" separately Aug 31 06:25:53 you need a loop Aug 31 06:26:27 no regex +g flag in android? Aug 31 06:26:49 even if it were, how do you expect it to work Aug 31 06:26:57 give you an array of matches? Aug 31 06:27:08 the same way it works in every other language i'm familiar with Aug 31 06:27:17 like what? Aug 31 06:27:25 javascript, python, perl... they all have a +g flag for "all matches in string" Aug 31 06:27:35 I am not aware of that Aug 31 06:28:14 example: https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions Aug 31 06:28:21 see section "Advanced searching with flags" and "global" flag Aug 31 06:29:01 can't find your case there Aug 31 06:29:04 matcher has find() you can use to iterate through matches Aug 31 06:31:12 hmm that looks closer.. they both return boolean though, find() and find(int i) Aug 31 06:31:45 as a loop condition would do Aug 31 06:32:05 aha i see Aug 31 06:32:15 so you need to loop while match.find() is true Aug 31 06:32:45 I guess you may loop with just ‘/g’ Aug 31 06:33:11 it shifts the position marker after each match Aug 31 06:34:09 that is what it does Aug 31 06:35:29 ok i see, so for java i need to do a loop with find() / int lastMatchEnd = matcher.end(); and then the next find should be find(lastMatchEnd + 1) Aug 31 06:36:23 I've googled a bit, regarding your statement Aug 31 06:36:31 > javascript, python, perl... they all have a +g flag for "all matches in string" Aug 31 06:36:34 this is not true Aug 31 06:36:57 at mozilla.org they call it: Aug 31 06:36:59 > g Global search. Aug 31 06:37:16 perldoc: Aug 31 06:37:18 > g - globally match the pattern repeatedly in the string Aug 31 06:39:04 i'm not sure what you mean by "its not true", it is true, the /g flag will match all occurences of the pattern in the string Aug 31 06:39:11 call it what you want, that's what it does Aug 31 06:39:39 it matches one occurrence at a time Aug 31 06:40:14 ... i'm not seeing the difference Aug 31 06:40:23 it matches all of them, one at a time Aug 31 06:40:41 which is essentially what Matcher.find() repeatedly does, now that i know Aug 31 06:41:21 upon invocation it matches one occurrence Aug 31 06:41:30 hi Aug 31 06:41:52 ohai Aug 31 06:42:35 anyone know the pros and cons of using flash to make apps and games for android instead of say, eclipse or using a dedicated android IDE if a stable one exists now Aug 31 06:43:15 im pretty good with actionscript, this is just a matter of being able to make something right now Aug 31 06:48:10 isn't flash builder based on eclipse? ;) Aug 31 06:48:37 just teasing you, i know this isn't really about IDEs Aug 31 06:54:16 i kep reading about Android Studio and teh "care" - but cant find what the meaning is...is that the box that pops up at various times/places with feedback? Aug 31 06:54:23 sorry caret Aug 31 07:00:41 winegoddess: toast, snackbar Aug 31 07:01:18 hi squ! sorry i dont follow you. i mean within android studio oftentimes they say to use teh caret Aug 31 07:01:32 huh Aug 31 07:01:49 Ashiren: do you understand what she is talking about? Aug 31 07:02:24 caret is that blinking line in editor? Aug 31 07:02:45 winegoddess: caret = cursor in text editors Aug 31 07:03:28 thansk arancio - is that a british thing? i had not heard it before Aug 31 07:03:46 cursor? Aug 31 07:03:54 british thing? Aug 31 07:05:16 where are you from Aug 31 07:05:27 :) Aug 31 07:05:36 winegoddess: I guess it's just an old term. This is the caret: ^ Aug 31 07:05:53 yes thats what i think of when i hear caret Aug 31 07:06:21 winegoddess: I think that in the first terminals it was used to mark the cursor position using a character under then line that was currently edited Aug 31 07:06:34 the people i knew who used intellij previously were european...i dunno, figured maybe it was a brit thing Aug 31 07:06:36 one two tree Aug 31 07:06:39 ^ Aug 31 07:06:45 like that Aug 31 07:07:08 totaly got that. so here it is the actual cursor | type ? Aug 31 07:07:16 and the word is still used even if it's obsolete Aug 31 07:07:20 sorry to ask such a base question but its been bothering me Aug 31 07:07:26 yes Aug 31 07:07:44 nowadays it's displayed like a vertical bar Aug 31 07:08:16 the typical cursor for entering/editing text that you find everywhere Aug 31 07:08:29 a.k.a. caret Aug 31 07:22:56 hi, does anyone have good proguard cofing for butterknife >= 8.2 ? Aug 31 07:24:20 oh no, my android ndk installation is hanging. Aug 31 07:24:35 my gradle is hanging Aug 31 07:24:41 but I'm somehow not suprised Aug 31 07:25:23 For faster builds, increase the maximum heap size for the Gradle daemon to more than 7168 MB. Aug 31 07:25:27 thank you my friend Aug 31 07:29:37 That's a lot of MBs. Aug 31 07:30:18 haha Aug 31 07:30:38 for faster builds, buy a faster computer. or do your builds in the cloud. google offers cheap plans. Aug 31 07:31:01 (just joking) Aug 31 07:31:22 Sometimes I feel I really need a supercomputer Aug 31 07:32:00 gordon_: ha, the max allocated RAM to Android Studio is 386MB and gradle has 2 processes with 600MB each on my computer and it's working fine :P Aug 31 07:32:19 gordon_: get like ~4 minutes release build time Aug 31 07:32:31 I sped up builds in classic Mac OS by using a natively running cross-preprocessor. :-) Aug 31 07:33:42 The RAM producers-Gradle developers complex won't make me buy another 4GB of RAM! Aug 31 07:37:38 Actually, I just redid the build time and it's 2 minutes Aug 31 07:37:56 that's why I put 32Gb on this computer Aug 31 07:38:34 I don't want to get near full RAM in the next year Aug 31 07:38:53 after which I'll add more 32Gb of RAM Aug 31 07:39:16 arancio: are you running Linux? If you do and happen to set the swappiness sysctl attribute, how much is it? Aug 31 07:39:33 No, Windows Aug 31 07:39:51 sometimes I wonder whether my studio is running with java 8 at all Aug 31 07:46:13 tilerendering: one of life's mysteries we will never solve Aug 31 07:48:17 The JRE is displayed in the About screen of android studio Aug 31 07:48:50 tilerendering: I have 16gb, I can give it 8 gb Aug 31 07:51:39 gordon_: yeah, start saying that when you have a java backend on a java application server + another java ide running too Aug 31 07:52:15 pduin: omg what ? why is it running with 1.6 Aug 31 07:52:36 pduin: any idea where I can change that ? Aug 31 07:52:50 when I type java -version in the shell of my workstation I get 1.8 Aug 31 07:53:10 tilerendering: AS has a built in JRE Aug 31 07:53:12 on OSX at least Aug 31 07:53:29 The font rendering is completely messed up on 1.7 and above Aug 31 07:53:52 oh ok… Aug 31 07:54:04 I have gotten it to work on 1.8 by setting some environment variable and launching AS from the terminal Aug 31 07:54:20 and youre using it on osx ? Aug 31 07:54:27 Yep Aug 31 07:55:01 But I'm running it on v6 because the font rendering is unbearable otherwise Aug 31 07:55:05 and fonts are messed up and stuff and the IDE behaves strangely ? Aug 31 07:55:08 ok Aug 31 07:56:38 It runs a bit more smoothly under 8 Aug 31 07:56:45 Check out http://tools.android.com/tech-docs/configuration/osx-jdk Aug 31 07:57:11 anyhow, maybe you know how to help me or where I can look further: I m using an xml serialization/deserialization library. it worked great so far, but not on android. it is however reported to work on android. at some point, I construct the serializer (instantiate it) - then an exception occurs. It took me a while to get that there IS in fact an exception thrown, but not caught, because I catch all exceptions there. with the debugger I found Aug 31 07:57:12 out it then jumps to asynctask.java —> where I can inspect parts of the original exception. I see there is a verifyerror on one of the serializers classes. any idea how to proceed ? Aug 31 07:58:10 i really have no clue anymore but I want to - if possible - use the same serializer that I already use on the backend Aug 31 07:58:17 because it enables me to do easy code reuse Aug 31 07:58:54 and I know youre gonna ask about a stacktrace, but the stacktrace properties of all exceptions I see there are null unfortunately. Aug 31 07:59:41 how do i suppress "field can be converted to local" lint? Aug 31 08:00:01 tilerendering: I dont have this problem now ;) Aug 31 08:00:01 Sorry, but I have no idea what's going wrong there. Maybe run it on the main thread will hell debugging? Aug 31 08:00:26 but I'd rather do server development Aug 31 08:01:11 exception cause attribute: “java.lang.VerifyError: com/thoughtworks/xstream/io/json/JettisonMappedXmlDriver” Aug 31 08:04:26 or better yet - is there a list of all the supresslint and suppresswarning options? Aug 31 08:05:18 greves: dont know but if it can be... do it :P Aug 31 08:06:02 alt+enter can quick fix most Aug 31 08:09:08 I found the reason: the library is compiled with another java sdk than I am currently running. hooray. Aug 31 08:10:01 gordon: frontend dev is fun, at least with javascript and angular I guess. Aug 31 08:11:42 Hello, is there a way to get all intent extras (bundle) sent to an app which is not the own app? we need to extend an existing app but we dont get the code in time, so we deobfuscated it but some parts are not readable (deeplinking) so we need to fetch the intent extras :-) dumpsys activity didnt show the intent extras. Aug 31 08:11:54 pduin: any probs with jdk 1.7 though ? Aug 31 08:13:04 I'm using 1.8 for building, no problems whatsoever Aug 31 08:18:06 misterli, where does the intent come from? Aug 31 08:19:24 if its another app you can intercept it Aug 31 08:25:38 danijoo, for example Push Aug 31 08:25:50 Or Intent sent fromt he own app to a "FragmentHelper" which handles the route Aug 31 08:54:37 hello, may i ask something about weird performance problem of a webapp after upgrading to android6? Aug 31 08:54:44 Hello, I've had my project on Android Studio synced to GitHub, but I would always manually delete the uploaded version of the build.gradle since it contained the passwords for the build keys, the problem is that I accedentally approved a merge of the local code with the remote, and subsequently lost the app-level build.gradle file, I've tried to restore it from the project history to no avail, Aug 31 08:54:51 also using search engines didn't give any useful solution/s, any thoughts on how to rectify this issue? Aug 31 08:55:24 hi im back again Aug 31 08:57:07 so, anyone know the limitations of using adobe flash (not flash builder) to export android apps, i think through adobe air? im not entirely sure how it works, all i know is that you code with actionscript and actionscript is something im really good at Aug 31 08:57:38 as opposed to, now i know, android studio, or in otherwords a proper platform for making android games/apps Aug 31 08:59:32 anyone knows why css3 transitions in browser (and cordova app) slowed to death after upgrade from android 5 to 6? Aug 31 09:00:51 Urghm Cordova :) Aug 31 09:00:56 is there a way to have multiple logcat windows? i'm making a multiplayer game and for every emulator i'd like its own logcat Aug 31 09:01:01 maybe in terminal? Aug 31 09:01:07 If you want to "code" hybrid-apps, better use ionic 2 Aug 31 09:01:20 xoegate, adb -s ip:port Aug 31 09:01:59 adb devices to see all devices/ips and then adb -s deviceIdentifier/IP logcat Aug 31 09:03:15 ok but also transitions in webpage slowed down, my app is a simple html/js/css so i can test it also in browser and in android5 works great. after upgrate do 6 transition seems to lag badly Aug 31 09:04:25 did you install crosswalk plugin? Aug 31 09:05:45 no, as i said i can just visit the page in my lan with a browser, not a cordova issue, seems android 6 performance really badly for css Aug 31 09:08:45 what would the regexp be for an SQLite match of whole words, there can be spaces or puncutation or start/end of line around the word Aug 31 09:09:52 given a search text, that is Aug 31 09:10:20 so if i search for "car" i want "this is a car", but not "the cart is green" Aug 31 09:11:16 maybe http://stackoverflow.com/questions/656951/search-for-whole-word-match-in-mysql Aug 31 09:11:26 Sabbadon, as i said. Did you install the Crosswalk Plugin (cordova)? Aug 31 09:11:44 not installed Aug 31 09:12:18 try it. It will give a heavy performance boost. But it may be because of the new android runtime ART Aug 31 09:12:59 i try on the app then, but issue seems also browsing webpages not also in app Aug 31 09:13:18 Default Browser or chrome? Aug 31 09:13:26 http://codepen.io/waynedunkley/pen/YPJWaz/ this link for example, on android 5 looks good, on 6 lags as hell Aug 31 09:13:33 both seems Aug 31 09:13:37 sorry Aug 31 09:13:42 default and firefox Aug 31 09:14:01 yeah. this may be the issue. Use chrome and revalidate thebenchmark Aug 31 09:14:24 possible to use chrome inside the app? Aug 31 09:14:36 in case with chrome will work? Aug 31 09:14:48 You should not use WebViews anyway. Aug 31 09:14:54 Should I set a delay in my Application class when loading stuff so that they don't start all at the same time? Aug 31 09:15:38 VerbalKint, Threads, Splashscreen. Aug 31 09:15:57 misterli: so delay with Threads? Aug 31 09:16:34 Why should you want to use an delay? Use a Laoder when the Data are needed. If the Activity starts for example and let a loading indicator do the job while fetching and processing Aug 31 09:18:21 ok that was 12 hours of trying to eliminate a java.lang.verifyError - involving recompiling 3rd party libraries with a version of the jdk suspected to work. without success. Aug 31 09:18:58 sometimes I wonder whether android development is about development or about getting your project set up at all. Aug 31 09:19:12 hmm Aug 31 09:19:26 i guess gradle can build almost anything? Aug 31 09:20:00 :( Aug 31 09:24:05 Ashiren, can't seem to get that working Aug 31 09:24:13 also http://stackoverflow.com/questions/28228612/how-to-achieve-word-boundary-in-sqlite-android Aug 31 09:24:17 but that doesn't seem to work either... Aug 31 09:30:46 misterli, its its between apps there are interceptor apps that can do this in the playstore. if its internal i dont think theres a way Aug 31 09:30:55 greves: I guess the word that you are searching for isn't always in teh middle of a string? I Was thinking you could do something like "LIKE '% word %'" Aug 31 09:32:21 if you have 'word not in the middle' you would not get that Aug 31 09:32:29 misterli: ah ok i will check.. (didnt see yet because of typo in my name:) Aug 31 09:34:49 hrm. i dont know why android sqlite doesnt have the \b special character... that would make this a lot easier Aug 31 09:35:43 because \b is from regex Aug 31 09:36:17 in C \b means backspace so you can write character over other character Aug 31 09:38:07 misterli: cool! now only to color it Aug 31 09:43:19 heh Aug 31 09:43:37 Android terminal seems to be capable to display text colors Aug 31 09:44:39 echo '\033[1;31mRed like Radish\033[1;m' worked like in Linux terminal(prints red text then reset color) Aug 31 09:45:21 ok i got it, need to use .*\Wword\W.* OR .*\Wword OR word\W.* OR word to cover all cases Aug 31 09:53:11 ok different question - when i create a fragment i am checking this search in the SQLite database, if there are no results i want to destroy the fragment / go back to the previous activity - any way to do that? Aug 31 09:56:01 would `getActivity().onBackPressed()` be a typical way to do that? Aug 31 10:01:47 activity finish Aug 31 10:31:46 hello I was trying to get nested JSON object with GSON using retrofit.. but i followed the way http://pastebin.com/MngJpYa2 is it fine to do this way using TypeAdapterFactory Aug 31 10:40:45 Seems like a lot of hassle just to save a few classes Aug 31 10:44:02 yeah, cant it possible to fetch directly items array Aug 31 10:45:09 or any better way to do that! Aug 31 10:47:21 Just define the enclosing classes and use getters.. you don't really save anything by doing that Aug 31 10:47:31 heyo Aug 31 10:48:19 anyone know if theres any reason i shouldnt make an adobe air android app, opposed to learning how to do it in eclipse/android studio or however people normally maake aps and games Aug 31 10:49:41 hi Aug 31 10:49:41 what does; error: cannot find symbol variable da4cac91f1be88f0d61f86a5fe5cca27 mean and what am I supposed to do about it? Aug 31 10:50:17 I'm using Theme.Appcompat.Light.NoActionbar but for any reason my notificationbar is also gone, someone an idea why? Aug 31 10:50:22 it seems to occur in the middle of a comment? Aug 31 10:51:22 nobody? Aug 31 10:51:42 nope, removed the comment, it appears to be a fixed location in the file regardless of content Aug 31 10:53:55 i am working on a simple translate app, give text, hit button get translation. it works in portrait. when i look in design and roate it looks good. when i go to the emulator, and rotate its missing my textview. im about to test on acual device, but any ideas? Aug 31 10:59:47 Hello, I am making https connections to self hosted servers and this worked fine in android 5-6. It stopped working in android 7, turns out - according to the ClientHello - that android 7 only offers 1 curve instead of the 25 it does with android 5 and it's not secp384r1 but 256. Any idea how I can enable android 7 to add curves ? Aug 31 11:05:47 i had everything wrapped in a scrollview....when i removed it now the emulator works. tis is the second thing i have seen not work in relation to scrollview, the first being the Design view of the layout in Android Studio. Is this particularly buggy? Im using the stable version of Android Studio. Aug 31 11:14:40 winegoddess: I havent been to today´s android development for too long now, but everything I had to deal with since 2 weeks looks like a mess which wont stop Aug 31 11:16:54 oh noooooooo Aug 31 11:17:05 this sucks Aug 31 11:17:20 booo, I finished updates to the Android app, that means I now have to do the iOS app :( Aug 31 11:17:29 im supposed to put together a demo Aug 31 11:17:59 sdousley: hows android development compared to ios development to you ? I d like to have your impression. Aug 31 11:18:22 tilerendering: I much prefer Android to iOS dev. Aug 31 11:18:34 the Swift language is a little erm, how can I put it ... odd at times Aug 31 11:18:51 plus, you have to use MAC to iOS dev Aug 31 11:19:04 ok Aug 31 11:19:23 which evrsion of swift u are using? Aug 31 11:19:34 min2: the latest one in xcode Aug 31 11:20:07 I am also planning to start Aug 31 11:20:45 sdousley: how is swift odd btw ? Aug 31 11:36:34 tilerendering: the main thing I find odd is "unwrapping optionals" I don't really understand it. Like the app interfaces with an API on our server, and I found some wrong values being passed. Aug 31 11:36:44 They would be passed as 'Optional("")' Aug 31 11:36:46 rather than the value Aug 31 11:37:20 so to get round that you have to unwrap it Aug 31 11:37:20 let accountId:NSString = self.prefs.stringForKey("accountId")! Aug 31 11:37:26 the ! at the end of that line does the unwrapping Aug 31 11:37:56 Maybe it's just my lack of knowledge of Swift and there's a better way to do that. Aug 31 11:38:07 but this was how tutorials seemed to suggest how to do it Aug 31 11:47:32 hello Aug 31 11:47:58 is this the correct channel to ask about installing the sdk? Aug 31 11:49:03 i have a very limited bandwidth, and installing via AS is not an option for me Aug 31 11:49:34 what i want to know is, is there any way to download the sdk and install it offline? Aug 31 11:53:52 i have even developed a couple tools to rip urls from repository-*.xml and addons_list-*.xml files, and furthermore, ones to rename and copy them under .android/cache on my machine, but i'm not sure if the whole sdk is contained in those files Aug 31 11:57:18 does it matter if my string class is huge ? I just dream of making this more efficient since I use the word 'please' a few hundred times should i replace that with a variable in xml . are there variables in xml Aug 31 11:57:22 pard: as far as I know, you need to use the SDK manager to download the SDK Aug 31 11:57:39 Slow internet connection isn't a problem, it will just take time to download (but a manual install would also require the download). Aug 31 11:57:46 ohh I didn't know where zi was going with that thought Aug 31 11:58:42 sdousley hm thanks Aug 31 11:58:45 pard: I would also add that the SDK is made up of a few smaller packages, so if one fails, just retry it. Aug 31 11:59:12 tilerendering: np. I would also add to that the additional cost of having things on the app store for iOS. (£99/year compared to £25 one off on Play Store) Aug 31 11:59:37 ok Aug 31 11:59:59 also, deployment to the store takes a LOT longer because apple review every app Aug 31 12:00:07 even every new release of existing apps they will review. Aug 31 12:00:24 it is painful Aug 31 12:00:35 finding out you got a bug and gotta wait a week for approval Aug 31 12:00:35 I usually perform updates to the iOS app, and get that into review, then do the matching Android updates. Aug 31 12:01:08 Even with the iOS app being successfully reviewed first time, I can almost always get the Android app live on the play store before Apple have reviewed the app Aug 31 12:01:29 raoul11: yeah, I had that when first releasing, I think it took me about 6-8 weeks from initial submission to review approval Aug 31 12:01:33 sdousley, thanks Aug 31 12:01:48 i think we had the same with each one of our games Aug 31 12:02:01 entire process to get the first build deployed was about a month + Aug 31 12:02:03 I must admit though, it does mean that the apple store is not full of crap apps because of the review phase, and additional cost. Aug 31 12:02:18 sdousley, so it is impossible to install things by oneself, even if all the packages are on my disk Aug 31 12:02:19 :\ Aug 31 12:02:24 do they still have two sites sdousley for deployment process Aug 31 12:02:37 pard: I wouldn't think it'd be impossible, just a LOT more difficult to the point it's not worth the hassle. Aug 31 12:02:38 one where u generate a key, another where u deploy Aug 31 12:02:50 raoul11: not sure, only did the key gen once (we only have 1 app). Aug 31 12:03:00 sdousley, thanks a lot! Aug 31 12:03:11 I think you're right tho, cos I don't recall seeing anywhere to generate keys when I deploy Aug 31 12:03:32 i remmeber there were two sites Aug 31 12:03:44 and you had to wait for them to synconize each other Aug 31 12:03:49 yeah, there's the dev center, and then itunes connect Aug 31 12:04:47 we had to wait like 48 hours for a package name to update on the other site Aug 31 12:04:51 was sillyasf Aug 31 12:05:29 heh Aug 31 12:05:46 i havnt done any deployment there in years Aug 31 12:08:03 hi guys, im trying to load an image file in regions so I am using BitmapRegionDecoder. Can anyone explain me why the decodeRegion method does not allow the rect to have coordinates equal to the edges of the image? Aug 31 12:08:22 What if I do want to get the region right until the edge? Aug 31 12:32:46 So now after I solve the issue above, the decodeRegion is returning null.. any idea why? Aug 31 12:39:55 SUP Aug 31 13:17:40 hmm, if I want to setup a machine to only build AS projects with gradle configs, do I need to install all off AS? Can I just install Gradle? Aug 31 13:24:45 Anyone know how to upload all flavors of the library to mavenLocal? Aug 31 13:24:45 I have gone through a lot of examples but still not able to figure out Aug 31 13:28:58 what are the possible reasons that VideoView video would stop aprox. 1 min after starting? Aug 31 13:32:31 I've been trying to figure out why this is happening. All I'm doing is playing a video through rtsp, can share code if needed Aug 31 13:32:42 happens with media player too Aug 31 13:36:24 Kamihan: "with media player" you mean on your PC? Aug 31 13:36:29 so completely separate of the Android App Aug 31 13:36:37 if so, it'll be server side, rather than Android Aug 31 13:36:51 sdousley: I mean MediaPlayer class Aug 31 13:36:55 ah ok Aug 31 13:37:06 I presume it does work fine if you do it on your PC though? Aug 31 13:37:09 just to rule out server side Aug 31 13:37:38 Yes, the stream comes from VLC player on my PC, and I can access it just fine using VLC player both on PC and android. Aug 31 13:37:58 On my app though, 1 min after the stream starts, it just stops Aug 31 13:38:00 OK, I've never done anything within Android, but thought I would just confirm that was the case. Aug 31 13:38:11 is it 1 min after start regardless of what you are watching? Aug 31 13:38:43 I currently have only one stream that I can watch from my app Aug 31 13:39:04 Is it possible to do another? Just to see if it's 1 min regardless of stream? Aug 31 13:39:09 Don't know what you would need to do to adjust that Aug 31 13:39:18 Although... before, I tried a 10 minute long pre recorded video, it worked just fine Aug 31 13:40:07 I was able to watch the full 10 minutes of it. I changed the URI to my VLC live stream, and now it stops 1 min after starting Aug 31 13:40:55 hmmm, not sure about that then. :( Aug 31 13:41:04 The worst part, after the video stops, no error is shown or anything... so I'm not sure how to even track it down :/ Aug 31 13:44:16 not even any error on the console on your PC? Aug 31 13:44:23 or have you installed the app, and running without USB conn? Aug 31 13:45:54 NumberFormat, very nice class Aug 31 13:48:33 sdousley: sorry for late repsonse, didn't see Aug 31 13:48:44 I have my android device connected to the computer when running the app Aug 31 13:49:13 it updates everything it's doing as it's setting up, when the stream stops though, it doesn't show anything Aug 31 13:53:53 Anyone know how to upload all flavors of the library to mavenLocal? I have gone through a lot of examples but still not able to figure out Aug 31 13:54:43 Kamihan: hehe np, i'm not sure in that case :( Aug 31 13:55:09 whats the new target version stuff now? its not just a number like 23 anymore right if you want all the play services Aug 31 13:55:28 bfrog: in the gradle file? Aug 31 13:55:32 yeah Aug 31 13:55:47 I have compileSdkVersion 24 Aug 31 13:55:52 buildToolsVersion "24.0.1" Aug 31 13:56:18 then in the defaultConfig I have targetSdkVersion 24 Aug 31 13:57:09 hmmm Aug 31 13:57:18 Hello to all, in this tutorial, the author create a rounded image extended the ImageView class. Aug 31 13:57:25 this is the tutorial http://www.androidhub4you.com/2014/10/android-custom-shape-imageview-rounded.html Aug 31 13:58:23 Why the author copy the original bitmap with Bitmap bitmap = b.copy(Bitmap.Config.ARGB_8888, true); Aug 31 13:58:37 and use the new copy of bitmap for create the canvas object? Aug 31 13:59:11 why he not use the original bitmap? Aug 31 13:59:23 I presume so it doesn't modify the original bitmap? Aug 31 13:59:52 But the original bitmap is not modified i think when he created the canvas Aug 31 14:01:16 That's the only reason I can think, because he is re-using the bitmap to generate the 4 images (round, oval, triangle, hexagon) Aug 31 14:01:29 he copies the bitmap, then modifies the copy Aug 31 14:01:30 for the latest google play services to work I had to use compileSdkVersion 'Google Inc.:Google APIs:23' Aug 31 14:01:50 bfrog: latest google play services? that for like in-app purhcases? Aug 31 14:01:55 purchases* Aug 31 14:02:02 just using play services 9.4 for ads Aug 31 14:02:54 ah, I haven't used that at all, so not sure about that one. Aug 31 14:02:59 I don't see why you should have to do that though. Aug 31 14:19:15 hmm, if I want to setup a machine to only build AS projects with gradle configs, do I need to install all of AS? Can I just install Gradle? Aug 31 14:21:06 Hi guys, I'm writing a custom OkHttpClient Interceptor. I use it in a singleton of a Retrofit which is being injected with dagger2. I want it to redirect to SignInActivity upon 401. However I have no idea how to get the current activity context inside of the interceptor so I could call startActivty and finish() on it. Any ideas? Aug 31 14:21:06 https://www.reddit.com/r/androiddev/comments/50gl54/a_kotlin_library_allowing_writing_asynchronous/ Aug 31 14:24:25 andrewgk: according to SO, make the Context an argument of the constructor and use that to store it for later ref Aug 31 14:25:48 hello? Aug 31 14:26:33 anyone on? Aug 31 14:26:59 no we're all afk :) Aug 31 14:27:37 azv4, well gradle and all dependecies for your project, but as you can build projects without opening AS, just from console with gradle, yes Aug 31 14:28:13 i have a question. how to generate random android device id. i figured out an app was fetching imei and then substring(8,24) on java and then base64 encoded it Aug 31 14:28:33 is that the right way? Aug 31 14:28:35 darken, from what I can see with their old setup, they dont have Eclipse or AS installed on this builder, just ANT and some other dependency related stuff Aug 31 14:28:39 why not using ANDROID_ID ? Aug 31 14:28:57 Android-SDK folder exists Aug 31 14:29:26 i don't want to fetch android id Aug 31 14:29:32 i want to generate random id's Aug 31 14:29:37 vb0x3f, UUID.random() and save it into a file? Aug 31 14:31:33 ok, i'll try that one Aug 31 14:31:37 imei.substring(8,24) is not random so that probably doesn't suit you Aug 31 14:32:20 yeah, it's not random. i was just trying to figure out how that app was getting my phone's id Aug 31 14:33:24 So does anyone know why VideoView would stop the video stream 1 min after starting? Aug 31 14:33:34 probably through android.telephony.TelephonyManager.getDeviceId() Aug 31 14:50:52 Kamihan: did the logcat show anything? Aug 31 14:51:03 bluk: nothing at all :/ Aug 31 14:51:42 in that case maybe, every second, log the view state and try to find what changes when the video stops Aug 31 14:53:32 Kamihan: did you implement a MediaPLayer.OrErrorListener? Aug 31 14:54:07 bluk: No Aug 31 14:54:24 better start with that rather than log Aug 31 14:54:40 Is it possible that it's because I haven't declared the MediaPlayer as static? Aug 31 14:54:42 why Android give so strange CPU description in /proc/cpuinfo? Aug 31 14:55:01 I'm reading that it can get garbage cleaned Aug 31 14:55:12 Kamihan: shouldn't be a problem unless you initialized it multiple times and lost the prevous refs Aug 31 14:56:02 morfin: at this level it's more linux than android but how strange? Aug 31 14:56:26 bluk: My activity implements MediaPlayer.OnPreparedListener and SurfaceHolder.Callback, and I only initialized the mediaplayer inside surfaceCreated() Aug 31 14:57:05 sounds good, for now I'd just check if error listener gives more info Aug 31 14:57:16 well it does not even give concrete information about CPU Aug 31 14:57:18 hmm Aug 31 14:57:45 Kamihan: also onInfoListener to get a full picture Aug 31 14:58:13 morfin: chinese hardware? :p can you paste it? i'm curious Aug 31 14:58:26 not sure how :) Aug 31 14:58:37 bluk: I need to leave now. I will check out your suggestions though :P Ty Aug 31 14:58:45 np, good luck Aug 31 14:58:49 ah i can redirect output into file he-her Aug 31 14:59:04 just select it from console :> Aug 31 15:00:48 then either PM to me or use pastebin Aug 31 15:00:51 http://paste.ubuntu.com/23116340/ Aug 31 15:00:56 thx Aug 31 15:01:12 well that seems fine Aug 31 15:01:22 comparing to Linux that information is just superficial Aug 31 15:01:22 armv7 cpu is normal, anything shocks you? Aug 31 15:02:19 no concrete model name etc Aug 31 15:02:39 only the serial is weird Aug 31 15:02:50 :) Aug 31 15:02:57 yep that too Aug 31 15:03:04 at least i have this: k3v2oem1 Aug 31 15:03:16 the rest is detailed enough I'd say Aug 31 15:03:31 you got the architecture, variant and base model Aug 31 15:03:39 should be enough to gather more info about this arm cpu Aug 31 15:08:09 i tried to run some native code on that phone not long time ago - seems to be working fine but i got only 2 cores and my code allocated 2 threads(i think i should try override that behaviour with config) - but i am not sure about next thing: should i link stuff statically? Aug 31 15:08:53 what's common practice for native code on Android? Aug 31 15:08:58 Someone left this 5 star review: 逼格略高啊!!! Aug 31 15:09:15 Apparently it translates to: Georgia forced slightly ah! ! ! Aug 31 15:09:17 I usually use static bins Aug 31 15:09:19 wtf does that mean Aug 31 15:09:32 because keeping track of which libs are installed on devices is a pain Aug 31 15:09:49 orbyt_, better than the same review with 1* :p Aug 31 15:09:53 well, it's not my pain if you try to run that code on Android :) Aug 31 15:10:07 darken: heh Aug 31 15:10:25 morfin: depends if you need your binary to run on multiple devices or just a specific one I guess Aug 31 15:10:31 basically it's opensource thing which is not supposed to be executed on Android except you like a pain :) Aug 31 15:10:40 Wonder if Leeds knows chinese Aug 31 15:12:42 you can build it but if you decided to use shared libraries..well Aug 31 15:12:53 Has anyone heard of google discontinuing the Nexus line Aug 31 15:13:26 morfin: you gotta make sure the target system has the same libs versions.. that's why I use static :> I'm lazy Aug 31 15:16:42 Android support is just for fun :) Aug 31 15:32:19 should I use a content provider to provide data for my listview? The android API Guide suggest to use a contentprovider only if other apps need to access data, but nearly every blog says that you should create a contentprovider no matter what. Aug 31 15:32:26 is it ok to use a cardview without an recyclerview? Aug 31 15:39:37 ChampS_: Don't know of any dependencies between cardview and recyclerview, so sure. But, why would you not want to use a recyclerview? Aug 31 15:40:26 raatiniemi: because I have only two Cardviews in my fragment and both have different content. Recyclerview is just good for cardviews with the same format Aug 31 15:41:35 hello Aug 31 15:41:52 quick (and probably stupid) question - if i get a moto g4 can i use it for development? Aug 31 15:42:19 all android devices can be used for dev Aug 31 15:42:33 as long as you enable usb debugging in dev options Aug 31 15:43:50 a question you might explore is: does the devices have the abilities you're interested in Aug 31 15:44:19 ie if I wanted to dev, say, a compass application, I'd make sure the device I get have an oritentation sensor (not all devices do) Aug 31 15:46:03 I thought you had to explicitly mark multi window as enabled in your manifest Aug 31 15:46:12 is this true because I think I just accidentally did it Aug 31 15:54:32 missingno: i think it's the opposite actually. you have to explicitly disabled it. Aug 31 15:58:05 k, so I've come to the conclusion that I have to make an attractive/good app in order for people to use it. Chose a niche maybe and do it good. Aug 31 15:58:15 But what is there to do on the app-market related to computer science? Aug 31 16:01:38 that's a really vague question Aug 31 16:02:54 and something useful probably is more important than something attractive Aug 31 16:03:28 cool thanks dsardari Aug 31 16:03:29 yes it is, but gimmicks have been a gold mine. Fart-soundboards with millions of downloads Aug 31 16:05:43 pffffffft: good. make a fart soundboard for computer scientists Aug 31 16:07:34 pffffffft: NP-fart Aug 31 16:08:03 shit shit shit.. I'll have to get a PhD to work with interesting problems. Fuck this, back to school. But I need the moneyz to finance my studies Aug 31 16:08:04 pffffffft, NP-complete-fart-soundboard? Aug 31 16:09:20 thanks bluk Aug 31 16:09:21 pffffffft: "Swearing, threatening, name-calling, etc. will not be tolerated" Aug 31 16:49:22 what is the proper way to get a dialog showing a couple of preferences? i see DialogFragment, DialogPreference, and PreferenceDialogFragmentCompat Aug 31 16:50:14 hi all. is there any good german tutorial on how to code for android? :) Aug 31 16:51:20 freakyy, basically if you want to be good at coding, you should just use english resources :P vogella has some tutorials but it's not always up2date Aug 31 16:51:42 if you are going for android development and can't read english resources, you're gonna have a bad time... Aug 31 16:53:01 watch thenewboston tutorials on youtube Aug 31 16:53:08 its english, but its easy to follow Aug 31 16:54:55 ok so still, what is a good text tutorial? Aug 31 16:54:59 maybe with graphics? Aug 31 16:55:01 i dont like vidoes Aug 31 16:55:31 freakyy: Have you looked through the samples in the SDK? Aug 31 16:56:00 no i want a real good tutorial Aug 31 16:56:16 freakyy, there are tons of crappy tutorials. it's mostly figuring stuff out yourself unfortunately Aug 31 16:56:35 isnt there a good one? Aug 31 16:57:49 mostly just reading all the API docs... Aug 31 16:57:51 Correct me if i'm wrong -- I have written Arduino Code that does certain controls to move a motor. I am moving away from hardware and moving to control the motor through an application I am creating on Android Studio. The code for the movement of the motor is already written in Arduino, is there a way to implement that code that does those certain tasks into my android studio (java), allowing it to behave the same way but now Aug 31 16:58:26 freakyy: you might be able to find a german translation of the Big Nerd Ranch book Aug 31 16:58:45 freakyy, the problem is that (A) android basically expects you to already know java pretty well, and (B) it's far too complicated and there are far too many different scenarios to really make a good tutorial of "android" - you can sometimes find tutorials for doing a very specific thing, but android in general is too big Aug 31 16:59:07 Also, should I have posted that in #arduino or here. Wasn't sure. Aug 31 16:59:59 leTones: probably #arduino. But you could get a bluetooth shield for the arduino and have your app connect over bluetooth to it and send the movement values Aug 31 17:00:05 leTones: the correct way would be to export your functions so you can import them in java code; an ugly way could be just run shell commands to control it Aug 31 17:00:39 learning by tutorials does not work for me: Try stuff --> google what you want to do --> write code --> figure out why its not running --> google more --> read the API Guide and so on... Aug 31 17:01:12 leTones: Your previous message ended after "the same way but now".. I assume there's more Aug 31 17:01:49 Right, I agree. I do actually have a bluetooth shield, which is working. My bluetooth connection already works on my app. Basically, I just wanted to transfer ALL the code that is written on arduino to android studio without any complications. Aug 31 17:02:18 Because right now, I move the motor manually from a controller I made using Arduino Code, I wanted to just move this onto an app. Aug 31 17:02:32 Where it can be controlled through phone. Aug 31 17:04:08 I would still be using the hardware device though, but the only new thing added to would be the bluetooth module. Aug 31 17:04:36 when using a custom component can I alias the namespace so that I do not have to fully qualify it the whole time? Aug 31 17:05:11 ok thank you all Aug 31 17:06:19 chilversc: if you mean a class, just import the package Aug 31 17:07:48 bluk: but how? I tried xmlns:app="http://schemas.android.com/apk/com.example.app.widgets" but no luck Aug 31 17:12:15 chilversc: probably helpful: http://stackoverflow.com/questions/17477981/using-custom-views-in-xml-without-using-fully-qualified-class-name Aug 31 17:12:29 raoul11: oh hi there Aug 31 17:12:42 thepoosh Aug 31 17:12:46 wtf have u been Aug 31 17:12:54 family vacation Aug 31 17:12:58 sup? Aug 31 17:13:57 not bad Aug 31 17:14:04 finishin another activity Aug 31 17:14:07 https://search.googleblog.com/2016/08/a-new-way-to-search-for-content-in-your.html#gpluscomments Aug 31 17:14:09 got like 200 already Aug 31 17:14:34 seent it thepoosh Aug 31 17:14:41 they call it in-apps or something? Aug 31 17:14:51 raoul11: look closer at the gif Aug 31 17:15:09 next to Kepp Aug 31 17:15:13 *Keep Aug 31 17:16:16 evernote? Aug 31 17:16:22 glide Aug 31 17:17:08 oh the other gif Aug 31 17:17:11 naiiice Aug 31 17:17:17 who did u bribe to get there Aug 31 17:17:44 i worked my ass off for a few months Aug 31 17:18:42 where di u go vacation thepoosh Aug 31 17:19:31 near the kineret Aug 31 17:19:59 i need some time off Aug 31 17:20:13 think ill dwelve to sinai after i deploy this game Aug 31 17:21:09 bluk: that does look like what I want, though it seems it will break IDE support Aug 31 17:21:26 raoul11: sinai is where ISIS lives Aug 31 17:21:34 sure you want to got there? Aug 31 17:21:44 i'm sure you can find weed elsewhere Aug 31 17:21:46 my hipster beard will assimilate me perfectly amognst them Aug 31 17:21:57 i havnt smoked weed in over a year nao thepoosh Aug 31 17:22:22 hi Aug 31 17:22:29 i am using TextInputEditText how i can chnge the line color? Aug 31 17:22:45 still gotta do all the firebase integration, plus try a new mBaaS for leaderboards, plus inapps Aug 31 17:22:58 t0th_-_: styles Aug 31 17:23:07 i put: colorControlActivated android:backgroundTint colorControlNormal Aug 31 17:23:10 but is not change Aug 31 17:23:29 raoul11: I've been messing around with firebase since late april Aug 31 17:23:31 AMA Aug 31 17:23:37 i will Aug 31 17:23:40 next week Aug 31 17:23:43 np Aug 31 17:24:12 the invite function only works with SMS || emails? Aug 31 17:24:31 don't use that Aug 31 17:24:37 it sucks balls Aug 31 17:24:41 hi i change style="@style/editText" to android:theme="@style/editText" work Aug 31 17:24:42 why? Aug 31 17:24:44 but but, i must Aug 31 17:24:52 so you're screwed Aug 31 17:24:57 coz am gonna reward users for inviting people Aug 31 17:25:02 we hate their system for AppInvite Aug 31 17:25:08 why? Aug 31 17:25:20 not enough tweaking possible Aug 31 17:25:26 and too much google branding Aug 31 17:26:01 also, our internal system is superior Aug 31 17:26:12 for app invites? Aug 31 17:26:16 and the only issue with it is the SMS_SEND permission Aug 31 17:26:19 yeah Aug 31 17:26:21 who’s system? Aug 31 17:26:38 Glide Aug 31 17:27:09 as long as its returning an onactivityresult am fine with it Aug 31 17:27:21 dont have the resources to make something custom Aug 31 17:27:25 oh, it is not a lib Aug 31 17:27:27 sowwie Aug 31 17:27:39 no, firebase Aug 31 17:27:57 what else should i use from it thepoosh ? Aug 31 17:28:12 FCM Aug 31 17:28:16 Analytics Aug 31 17:28:28 and probably now that it's exposed also AppIndexing Aug 31 17:28:50 do you do push notifications based on analytics? Aug 31 17:29:08 yes but not via FCM for now Aug 31 17:29:20 we use for now appboy Aug 31 17:29:26 do you use another mBaaS? Aug 31 17:29:42 mBaaS? Aug 31 17:29:48 what is the m for? Aug 31 17:29:55 mobile Aug 31 17:31:03 oh, we are a messaging app, everything is this Aug 31 17:31:06 I can't see how you can check the xmlns though during onCreateView Aug 31 17:31:49 chilversc: wut Aug 31 17:31:53 xlms? Aug 31 17:32:37 ill bug you about it next week thepoosh, once i start wrapping it all Aug 31 17:32:48 sure Aug 31 17:33:19 chilversc: you're not supposed to check that, if you xmlns is weird the xml won't compile Aug 31 17:34:39 thepoosh: I was looking at layoutinflator, wanted to support shorter names for custom components Aug 31 17:34:49 hey guys, it's a good ideia for security reason disallow backup flag in AndroidManifest file? Aug 31 17:35:03 chilversc: code? Aug 31 17:35:20 not wrote yet, was looking at how it worked Aug 31 17:35:58 I was thinking of; xmlns:foo="...", foo:CustomComponent, but then I can't check the xmlns in the inflator Aug 31 17:37:29 chilversc: nowhere in the LayoutInflater does it check that Aug 31 17:37:32 also I can't see any way to make android studio aware of this so that it contines to work nicely Aug 31 17:38:15 meaning, xmlsn only takes care of a clear and normal hierarchy for the xml file and each view is in charge of using it's own fields Aug 31 17:42:04 I could use a prefix, e.g. "app.CustomComponent" and check for "app." in onCreateView but that just seems a bit like a hack (xmlns was specifically designed for this problem) Aug 31 17:43:19 what exactly are you trying to do and not succeeding? Aug 31 17:45:40 I wanted to avoid using "com.example.app.widgets.Foo" which it seems can be achived using a custom layout factory Aug 31 17:45:52 that seems like a waste of time Aug 31 17:46:18 +1 Aug 31 17:46:35 but i do seem to recall something about how the support libraries do use custom layout factories to put support versions of widgets instead of system versions Aug 31 17:46:58 is good for security reasons, disallow backup flag in AndroidManifest.xml Aug 31 17:46:58 you’d start looking at the sources for AppCompatActivity, I believe Aug 31 17:47:03 rlope: no Aug 31 17:47:04 I thought it would be simple since it seemed like something that should be standard, like wpf's xmlns:foo="clr-namespace:com.example.app.widgets" Aug 31 17:47:25 rlope: why do you want to inconvenience your users like that Aug 31 17:47:51 not that I’ve seen Aug 31 17:48:23 chilversc: have you seen this: http://blog.bradcampbell.nz/layoutinflater-factories/ Aug 31 17:49:06 s73v3r: do u have some security papers about harden androidmanifest.xml? Aug 31 17:49:14 no, i don't Aug 31 17:49:48 i’m pretty sure you can’t “harden” the manifest, as the system has to read that to know how the app… apps Aug 31 17:50:41 s73v3r: i'm agree but , aways have good pratics .. Aug 31 17:51:05 that’s not one of them Aug 31 17:51:08 rlope: android security is not done in the manifest Aug 31 17:51:17 but in the code itself and the data storage Aug 31 17:52:16 if you want to harden an android app, you're almost doomed to move everything on the server side and use the app as a front-end Aug 31 17:52:37 everything has been defeated, including dexguard Aug 31 17:54:48 s73v3r: interesting, it just seems like more work than it should be though, and stops IDE support Aug 31 17:55:15 I want to use a large icon in an ImageButton. If I use the sugggested sizes for (xx|x|h|m)dpi the icon looks too small for my usecase. what is the way to go here? simply double the normal sizes? I think this will not be correct regarding image size ratios Aug 31 17:55:54 saedelaere: you can define the size IIRC Aug 31 17:56:06 chilversc: yes, it is far more work because its incredibly pointless Aug 31 17:56:07 and if not, just create a wrapper layout Aug 31 17:56:29 s73v3r: it's not pointless if you're using a lot of custom components, saves a lot of typing Aug 31 17:56:40 thepoosh: thats a good idea Aug 31 17:56:44 thanks! Aug 31 17:56:45 no, it’s still pointless Aug 31 17:57:04 I just expected it to be something that's there by default (probably handled at compile time) Aug 31 17:57:11 nope Aug 31 17:58:03 I also assume then there's no way to avoid the constant repetition of layout_width/height and factor out those as well? Aug 31 18:00:07 styles Aug 31 18:00:16 although those are usually pretty important Aug 31 18:02:13 yeah, I just find it tends to always be the same within a container, eg for linear they're all width match_parent, height wrap_content Aug 31 18:02:37 i wouldn’t try to abstract that away Aug 31 18:04:09 was hoping I could set that at the parent level (I think wpf does that) Aug 31 18:07:05 chilversc: do you use MVVM on Android? Aug 31 18:08:12 arancio: not yet, just getting started Aug 31 18:25:09 someone an idea which design element I could use to present a data tree? Aug 31 18:25:50 recyclerview or listview Aug 31 18:26:16 expandable recycler/listview Aug 31 18:28:03 odd, in my constructor for DateSpinner I have, super(context, R.style.Widget_DateSpinner and it fails to apply the style, yet it's fine with style="@style/Widget.DateSpinner" Aug 31 18:28:09 s73v3r thepoosh mhh but I think it's hard to show a tree with undefined dept within a expandable listview Aug 31 18:28:26 it takes some work, but it’s not super difficult Aug 31 18:28:32 ChampS_: just use tabs Aug 31 18:28:35 or colors Aug 31 18:28:45 check the different reddit apps Aug 31 18:28:49 they do it well Aug 31 18:28:53 i like baconreader Aug 31 18:28:54 I’m fairly certain they have dynamic, expandable listviews on github Aug 31 18:29:09 yeah, i’m sure one or two of the reddit apps is open source Aug 31 18:30:17 scroll down, load more data, update adapter, rinse, repeat Aug 31 18:32:49 ah, you have to create an attribute for the style, supprised that didn't generate an error Aug 31 18:35:18 theres an app ive been trying to find where you could verbally converse with others 1 by 1 on certain topics Aug 31 18:35:22 anyone know the name? Aug 31 18:36:49 facebook messenger? Aug 31 18:37:07 no Aug 31 18:37:20 you can voice chat in messenger? Aug 31 18:37:58 yeah, i believe so Aug 31 18:38:53 It was like, theres a debate topic like ("renewable energy vs fossil fuels") and someone would talk into the app and give their ideas. Then other users can listen to their idea, and respond with their ideas Aug 31 18:38:57 was basically a debate app Aug 31 18:39:44 the idea sounds like arguman.org Aug 31 18:39:54 orbyt_ crap, i think i saw that website on HN a few weeks ago - Aug 31 18:40:01 the structured reasoning thing Aug 31 18:40:17 I first came across it like 6+ months ago and havent been able to find it since Aug 31 18:40:31 is a good one set a protection flag in my boadcast receiver? Aug 31 18:46:10 what has your research told you? Aug 31 18:47:23 no necessarily need protect flag .. Aug 31 18:47:53 ok then Aug 31 18:48:27 what is your app doing? Aug 31 18:49:06 acess a database across APN .. Aug 31 18:49:15 what’s the purpose? Aug 31 18:49:30 what does the database hold? Aug 31 18:49:41 sensitive dada Aug 31 18:50:10 how sensitive? Aug 31 18:50:27 account users Aug 31 18:50:34 and info about they Aug 31 18:50:36 what kind of account? Aug 31 18:50:49 accounts to acess de APP Aug 31 18:50:53 the* Aug 31 18:51:11 does it hold financial data, or medical records? Aug 31 18:51:19 no bro Aug 31 18:51:31 then what kind of sensitive data does it hold? Aug 31 18:51:41 is a very simple app dude Aug 31 18:52:04 i just want to harden allis code Aug 31 18:52:06 then you’re probably not going to need to worry about much of this Aug 31 18:52:16 if someone resolv reverse enginer him.. Aug 31 18:52:36 so what? Aug 31 18:54:15 also, I’m not sure what you mean by “broadcast receiver protect flag" Aug 31 18:54:57 protectionLevel Aug 31 18:59:25 jonp: hi, jonp Aug 31 19:16:52 hello Aug 31 19:17:01 anyone online? Aug 31 19:17:48 any developer with knowledege of Root accessing via app? Aug 31 19:18:06 try #android-root Aug 31 19:18:25 Thanks man Aug 31 19:18:54 but i'm developing an app, and i need to access files from root Aug 31 19:19:27 we’re not root people here, though Aug 31 19:20:01 oh ok Aug 31 19:20:17 im groot Aug 31 19:20:50 i really need to find this app -.- Aug 31 19:21:18 which app? Aug 31 19:23:04 hey g00s Aug 31 19:26:47 He left ='( Aug 31 19:27:24 which app orbyt_ Aug 31 19:29:02 Was a sort of conversational debate app. There would be a topic (like "solar vs nuclear energy") and you would record a short clip of your ideas. Then someone else would record there ideas after yours, and it starts a debate. Aug 31 19:29:09 @ Napalm Aug 31 19:29:29 by record i mean voice record Aug 31 19:29:44 android vs ios Aug 31 19:30:08 I'm not sure Aug 31 19:30:13 Its been awhile Aug 31 19:31:44 Ashiren: Blackberry Aug 31 19:50:26 could someone help me with httpOK, if i use client.newCall(request).enqueue then it will make the call asynchronously, right? Aug 31 19:51:22 krippykripkrip: yes Aug 31 19:51:56 orbyt_: never heard of an app like that, but i like the concept Aug 31 19:59:00 Hello Aug 31 19:59:33 Can you tell me why context.getFilesDir() (context is a Context object) returns a null object reference ? Aug 31 20:00:09 : java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference at the line File file = new File(context.getFilesDir().getAbsolutePath() + "/" + fileName); Aug 31 20:01:43 where is context = ... Aug 31 20:01:53 sorry i got disconnected, did anyone answer my last question? Aug 31 20:02:29 krippykripkrip: yes Aug 31 20:02:44 Context is the main Context of the application Aug 31 20:02:48 napalm:sorry what did you reply? Aug 31 20:02:59 Gaulois94 you have to set context to a context Aug 31 20:03:08 krippykripkrip: ask your question again Aug 31 20:03:11 Nevermind, the problem was that the call of this function was done on the onCreate function before the call to super.onCreate Aug 31 20:03:24 ok, and then when i get my response i need to run the runOnUiThread(new Runnable() thread to update my UI? Aug 31 20:03:33 no Aug 31 20:03:47 Sorry for the issue ^^" Aug 31 20:03:49 krippykripkrip: the response is called on the callers thread. Aug 31 20:04:35 wait i lie Aug 31 20:04:36 :D Aug 31 20:04:44 i was thinking of retrofit Aug 31 20:04:49 lol Aug 31 20:06:42 so if i am wanting to upload large images, videos etc then OKHTTP is more suited than retrofit? Aug 31 20:08:28 it doesnt make a difference Aug 31 20:08:59 ok so can retrofit also upload videos? Aug 31 20:11:08 krippykripkrip: yes, with Multipart and Part annotations https://square.github.io/retrofit/2.x/retrofit/ Aug 31 20:11:40 hi all Aug 31 20:11:51 ok awesome Aug 31 20:12:02 ok need to find some good tutorials on this Aug 31 20:12:34 krippykripkrip: do you want to monitor the upload progress? Aug 31 20:12:47 I'm fetching a List<> via Retrofit and have managed to update a view with Eventbus & Picasso, however, I now need to access this same object across further activites as I transition across them. Aug 31 20:13:08 What's the best way to cache this object? Aug 31 20:13:57 Parcelable https://guides.codepath.com/android/using-parcelable Aug 31 20:14:00 michael_mbp: ^ Aug 31 20:14:11 thanks mate Aug 31 20:14:20 michael_mbp: no problem geezer Aug 31 20:14:53 krippykripkrip: if you want to monitor uploads and do other such things.. your probably better off with OkHttp, but also see this https://gist.github.com/slightfoot/00a26683ea68856ceb50e26c7d8a47d0 Aug 31 20:16:11 i don’t need to monitor upload, i’m basically looking for a library that i can send a large image or video along with a json object, so retrofit should suit? Aug 31 20:16:57 krippykripkrip: yes, just make sure you are monitoring for failure and handling multiple failures nicely Aug 31 20:17:31 ok cheers Napalm, you don’t have any gd tutorials that could point me in the right direction? Aug 31 20:17:33 krippykripkrip: you are going to fail Aug 31 20:17:41 why? Aug 31 20:18:38 krippykripkrip: I don't know but basically that's what Napalm said: handle multiple failures nicely because evidently you are going to fail many times Aug 31 20:19:05 hey Napalm so once a parcel is wrapped and unwrapped, if I need to pass it along, I need to repeat the process before jumping to the next intent yeah? Aug 31 20:19:23 krippykripkrip: I would make a foreground service that shows a notification that shows its attempting upload. Then it can proceed in the background even if the user leaves your app. Then if it fails, use the alarm manager service to delay using a exponential back-off and keep a ref of retry count. When it reaches 3 times or the delay reaches something stupid, show a notification notifying Aug 31 20:19:23 them that the upload failed and they can press a action on the notication to retry Aug 31 20:19:31 krippykripkrip: http://stackoverflow.com/questions/33710504/upload-video-using-retrofit-2 Aug 31 20:20:27 i’m doing everything in the background, so the user takes a photo and clicks upload. it will then get the location of the file, add some metadata to it and then upload in the background while the user continues using other parts of the app Aug 31 20:20:35 caching would be OTT considering I only need this info to stick around across at most 2-3 intent jumps Aug 31 20:20:54 krippykripkrip: and what happens when the user leaves your activity and the upload gets killed Aug 31 20:21:10 Napalm: same question ,but what happens if the back button is hit :) Aug 31 20:21:16 with regards to the parcels. Aug 31 20:21:32 but will that get killed if i am running on a background thread? Aug 31 20:22:00 krippykripkrip: there's a fantastic Google talk Aug 31 20:22:11 that talks a lot about backend API syncing Aug 31 20:22:20 michael_mbp: you can simply store your arraylist of your parcelable class in the extra's passed in the intent to the new activity and on your previous activity can use onSaveInstanceState to save your list into the state bundle which is given back to you in onCreate of your activity Aug 31 20:22:35 krippykripkrip: yes Aug 31 20:23:01 ah Aug 31 20:23:16 ah ok, so what would be the best approach then? Aug 31 20:23:22 krippykripkrip: your app is built from Components, your app must have at least one Component active to be kept alive, and even then, your process might be terminated if the system requires the resources. Aug 31 20:24:09 krippykripkrip: the OOM process killer does this based on its own measurement of how much your app is needed by the user. Foreground components are killed last. but even then can still be killed if required. Aug 31 20:24:22 https://www.youtube.com/watch?v=BlkJzgjzL0c Aug 31 20:24:37 Napalm: what's the best ORM for Android in yuour opinion Aug 31 20:24:39 krippykripkrip: you need to handle these types of failure conditions or you'll just get pissed off users, and I gave you the best solution above Aug 31 20:24:53 OrmLite seems decent Aug 31 20:25:19 michael_mbp: I dont have a preference, they are all a pain in the ass Aug 31 20:25:43 bah that's what I said, but the team insists on using one Aug 31 20:27:54 ok i’ll look into it, one last question, is it possible to create an app that will run automatcially when the device is restarted? Aug 31 20:28:19 would it be possible in rx to say, fire an event to all observables and only commit the change if they all pass some test? Aug 31 20:28:48 krippykripkrip: yes, but why would you want to do that? explain your scenario? Aug 31 20:30:47 so i have service that runs every 10 minutes and sends gps to my server, i want it that either when this app/service is deployed on device it automatically starts or if this is not possible then when the device is restarted? Aug 31 20:31:11 krippykripkrip: i hope you are using the AlarmManager service for that Aug 31 20:31:22 yup course Aug 31 20:31:44 krippykripkrip: so you setup a reciever in your manifest with an intent-filter for action https://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED Aug 31 20:32:33 ok awesome, so when the device is rebooted this will automatically start, sweet Aug 31 20:32:51 krippykripkrip: in your on BroadcastReceiver's onReceive method, verify the action is Intent.ACTION_BOOT_COMPLETED and then reschedule your timeout in AlarmManager Aug 31 20:34:10 awesome, thx, so would it be a good idea then in this service to also check for example my pictures folder, if there is a picture then automatically upload to server so then this would all be running in the background so there would be no need to user interaction? Aug 31 20:35:25 if you don't mind your picture being uploaded only after 10 minutes, it's ok Aug 31 20:35:30 krippykripkrip: remember onReceive()'s docs state "When it runs on the main thread you should never perform long-running operations in it (there is a timeout of 10 seconds that the system allows before considering the receiver to be blocked and a candidate to be killed)" Aug 31 20:36:14 ok you’ve given me alot to think about, very confused, but very grateful, thx Aug 31 20:37:01 you're welcome, creepycreepcreep Aug 31 20:37:08 lol Aug 31 20:37:17 i know i really should change my name on this Aug 31 20:37:40 krippykripkrip: thats really up to you and your app design Aug 31 20:40:29 krippykripkrip: if you do however decide to do that, then you'll want to probably create a ContentObserver and register it against the MediaStore. That way your not limited to specific path, or otherwise to monitor a path you could either filter the results of your ContentObserver or use a FileObserver Aug 31 20:42:35 oh he left :( Aug 31 20:42:47 Napalm, my turn now? :) Aug 31 20:43:09 :| Aug 31 20:43:17 whats up Aug 31 20:46:48 I'm trying to split up business logic that might affect the same model. If something wants to set a Models state but it fails one of these logic modules, i'd like it to fail and not set it Aug 31 20:47:18 oh RX stuff Aug 31 20:47:24 not for me thanks :) Aug 31 20:47:31 is it RX? Aug 31 20:47:44 would it be possible in rx to say, fire an event to all observables and only commit the change if they all pass some test? Aug 31 20:48:04 I was "ass"uming there that i might need rx Aug 31 20:49:54 you could wrap the model in decorators, which implement the tests Aug 31 20:52:50 s73v3r: i'll look into that. I'm trying to avoid "fat" controllers that have to know about all the models and decide whether certain model's state can be changed depending on current domain state Aug 31 20:53:55 it's like, if I can have an "request" event fire on the system, and if it passes a list of validation modules, then commit the change to the model Aug 31 20:54:36 that sounds kinda dangerous, though, as you might fire off the event assuming that the change happened Aug 31 20:55:12 i think you would be better off having your controller do the tests, because then it can react if one fails Aug 31 20:55:58 That's how I have it now, but it's unruly long logic that is dependent on many models Aug 31 20:57:32 Maybe i could split it into it's own validation layer, that way if it gets to the controller i'll already know its domain safe Aug 31 21:08:51 would you use a contentprovider just inside your app? Aug 31 21:27:03 Hello! Is there a way to remove blank space that TextView leaves to the right when it's wrapping the lines? Aug 31 21:31:50 you mean you want full justified text? Aug 31 21:34:01 pfn: not necessarily justified, I just want TextView to take exactly as much space as it needs Aug 31 21:34:15 it does already Aug 31 21:35:15 pfn: no, when a line of text is wrapped, textview takes up as much as it can Aug 31 21:35:41 pfn: leaving a huge blank space to the right of wrapped text Aug 31 21:36:01 pfn: maybe i'm doing something completely wrong? Aug 31 21:36:09 I haven't seen that, are you sure Aug 31 21:36:47 pfn: let me take a screenshot Aug 31 21:39:39 pfn: https://www.dropbox.com/s/mcf0vu1refsu7b9/photo_2016-09-01_00-34-21.jpg?dl=0 Aug 31 21:40:36 pfn: between the text and timestamp, I want to remove that space Aug 31 21:43:04 is that one textview? Aug 31 21:43:10 pfn: https://www.dropbox.com/s/vnjpg6dkdd652v5/device-2016-09-01-003802.png?dl=0 there, I enabled view bounds Aug 31 21:43:22 s73v3r: yes Aug 31 21:43:32 that’s two textviews Aug 31 21:43:41 testing is one, 0:36 is a second Aug 31 21:44:09 s73v3r: yes, but timestamp is not important right now Aug 31 21:44:10 do you have right padding/margin on the “testing testing” textview Aug 31 21:44:22 post your layout xml Aug 31 21:46:01 s73v3r: http://pastebin.com/4daLNdcy Aug 31 21:46:26 s73v3r: 4dp Aug 31 21:47:02 loredan13, you gave your view a weight Aug 31 21:47:07 yup Aug 31 21:47:09 of course you fucked up Aug 31 21:48:06 loredan13: You can replace all of the nested layouts in that view with one RelativeLayout Aug 31 21:49:29 I am pretty sure that is not the case, but fine, I'll try Aug 31 21:50:23 And how am I supposed to give a background to two textviews without nesting? Aug 31 21:51:19 you give a background to the parent view Aug 31 21:51:54 although really, all you ahve to do is adjust or remove the weights on the inner linearlayout Aug 31 21:52:09 nope Aug 31 21:52:45 but that’s what’s causing your problem Aug 31 21:53:04 https://www.dropbox.com/s/d2gyskpnzyarsaw/device-2016-09-01-004807.png?dl=0 Aug 31 21:53:28 I removed weights and even set time's visibility to gone Aug 31 21:53:49 and wrapping still leaves blank space Aug 31 21:53:54 you still have that right 4dp padding, which is that extra spot on the right Aug 31 21:54:50 I am talking about the space between the rightmost symbol and the edge of TextView, margin doesn't have to do anything with it Aug 31 21:58:58 for a bit more clarity https://www.dropbox.com/s/ztjmroob3p4qn2k/device-2016-09-01-005430.png?dl=0 Aug 31 21:59:02 same layout Aug 31 22:01:39 what I got from TextView's onMeasure, it first counts the desired width which is the width of a longest line as delimited by '\n' symbols, then checks maximum available width and only then lays out text, doing wrapping and everything else Aug 31 22:10:12 guys? Aug 31 22:12:59 you may have to override textview Aug 31 22:19:14 "A group of tween girls use a competition to launch Hello Navi, an app designed to help their blind classmate" Aug 31 22:19:38 What are you doing to change the world with Android? Aug 31 22:19:53 making it easier to accuse others of farting Aug 31 22:21:16 -.- Aug 31 22:33:15 can I show a dialog from a button directly? I wanted to create a button class that shows a date picker when pressed so I subclassed Button, but I can't access the fragment manager from that Aug 31 22:37:14 I'm feeling evil so here: ((Activity) button.getContext()).getFragmentManager() Aug 31 22:37:23 I'll leave it up to others to talk you into not doing that Aug 31 22:37:51 chilversc: I guess you should find this Q interesting: http://stackoverflow.com/questions/10689997/fragmentmanager-from-context Aug 31 22:38:34 chilversc: it includes the suggestion by missingno and the tip to now doing that Aug 31 22:38:38 I wanted to avoid casting context like that, that just feels wrong Aug 31 22:38:42 fun fact: this totally breaks when you try to use a ContextWrapper Aug 31 22:38:47 don't ask how I know Aug 31 22:39:04 chilversc: it's supposed to feel wrong Aug 31 22:39:48 chilversc: "Thought I recommend refactoring so a View is really just meant for showing stuff and shouldn't actually modify the state of your app, but that's my opinion." Aug 31 22:39:59 I just wanted a button that when clicked shows a dialog, but have that built in to the button's behaviour so I don't have to wire it up everytime Aug 31 22:40:30 don’t do that in button Aug 31 22:40:41 instead, write a reusable click handler Aug 31 22:40:44 do it there Aug 31 22:41:02 and use a normal button Aug 31 22:41:06 ie, a date picker widget that shows as a button (with the selected date), tap and up comes a date picker, when the date changes an event is raised Aug 31 22:41:45 the advantage to doing it in the click handler is that the click handler doesn’t care what kind of button you use Aug 31 22:41:59 I use quite a few date pickers, so wanted to avoid repeating this logic and have a simple item Aug 31 22:42:00 so if you want to do it to an ImageButton, you don’t have to change stuff Aug 31 22:42:27 that’s why I’m saying to package the logic of showing the date picker in the click handler, and reusing that Aug 31 22:43:43 seems a bit redundent though? as then I'll need to add a listener to the date picker handler? Aug 31 22:44:26 as I'd get some sort of, new DatePickerHandler(this, button, new OnDateSelectedListener() { ... }) ? Aug 31 22:44:27 it’s a lot better than making the button handle it’s own action Aug 31 22:45:09 also, that’s not how I meant Aug 31 22:45:19 EditText handles it's own action though? Aug 31 22:45:26 not really Aug 31 22:45:33 so you have button.setOnClickListener Aug 31 22:45:57 what you would do is extend View.OnClickListener to handle showing your date picker Aug 31 22:46:16 and then you’d instantiate one and pass it into button.setOnClickListener() Aug 31 22:47:00 right, I have this same widget though in multiple places, I don't really want to repeat the logic for showing the picker, collecting the selected date and updating the button Aug 31 22:47:37 you wouldn’t, because you’d have your DatePickerOnClickListener that’s doing it Aug 31 22:47:47 I just want to treat the button like an EditText or DatePicker and get an event when the date changes with the new value Aug 31 22:48:44 then override button, but don’t use a fragment Aug 31 22:54:01 this approach, however, does sound like you could have a bunch of problems with contexts and activities going offscreen Aug 31 22:55:13 so something like this? https://gist.github.com/chilversc/5968192b0c8bd5c30b357ac74a78429f Aug 31 22:56:35 well, I don’t think you need the fragment manager, but yeah, kinda like that Aug 31 22:57:43 the date picker dialog needs it, using https://github.com/wdullaer/MaterialDateTimePicker Aug 31 22:57:58 that’s cause it’s a dialogfragment Aug 31 22:58:11 i wouldn’t do anything with fragments outside of an Activity class Aug 31 22:58:56 that's a lot of effort though to wire up common behaviour for every date picker Aug 31 22:59:15 honestly, how often are you going to be doing that? how many of these date pickers are you going to have? Aug 31 23:00:18 at least 2 date and 3 time fields on 1 screen, and a duration field that needs similar behaviour Aug 31 23:00:21 but the issue is, doing stuff with fragments outside of activities is hugely error prone Aug 31 23:01:04 so how does something like the Spinner control work that shows a dialog like overlay, I don't have to wire up any complex stuff for that, I just use Aug 31 23:01:20 i don’t think spinner is a fragment Aug 31 23:01:54 no, it is not Aug 31 23:03:14 you can use the built in datepickerdialog, which is not a fragment Aug 31 23:03:53 AS says that the API level is too low Aug 31 23:03:59 chilversc it uses PopupWindow i think Aug 31 23:04:13 or ListPopupWindow or something like that Aug 31 23:07:12 https://github.com/pfn/iota/blob/master/Extensions.md Aug 31 23:07:13 mmm, magic Aug 31 23:07:51 extensions are fun Aug 31 23:14:42 using a DialogFragment from a Fragment instead of an Activity should be fine though? Aug 31 23:15:13 depends on what version of android, and whether you’re using the support fragments or not Aug 31 23:15:22 nested fragments are still plagued with bugs Aug 31 23:16:46 This person Wrote code Arduino code and made an app on Android Studio, allowing the arduino board to communicate with his phone. What I don't understand is, how does this code make sense? How is that code in Android Studio he wrote relate to the arduino code, i'm not clearly seeing this. Both code's are shown on here (Make motor move left example): http://pastebin.com/PnAamype Aug 31 23:17:40 leTones: what is mmOutputStream Aug 31 23:17:47 yup, using the support fragments Aug 31 23:17:58 No clue, that is what I'm trying to figure out s73v3r. Aug 31 23:18:17 well that’s going to be your answer Aug 31 23:18:33 se effectivly I shouldn't use fragments and only activities for every view that uses a picker? Aug 31 23:18:43 or don’t use dialogfragments Aug 31 23:19:03 so use Dialog instead? Aug 31 23:19:04 leTones: I’m going to guess that it’s connected to some kind of bluetooth serial connection Aug 31 23:19:14 yeah, it is. Aug 31 23:19:19 forgot to mention that. Aug 31 23:19:39 then they’re using the serial connection to send commands to the arduino Aug 31 23:20:15 yes, I just want to make sense of his code on Android Studio. The code on Arduino makes sense to me s73v3r . Aug 31 23:20:32 that’s literally all they’re doing Aug 31 23:20:43 on button click, they’re sending a value to the bluetooth serial stream Aug 31 23:20:44 Like, if he is wants to create a button 'left', what does " mmOutputStream.write('3');" Aug 31 23:20:56 it’s sending that over the bluetooth serial stream Aug 31 23:21:08 and what does Aug 31 23:21:10 '3' represent? Aug 31 23:21:15 no idea Aug 31 23:21:24 that’s something that the arduino code would answer Aug 31 23:21:42 cause that’s what would be receiving the value Aug 31 23:21:52 mhm, is there any guides or refrences you know on coding between android to arduino, serial connection. Aug 31 23:21:55 so I can make more sense out of it Aug 31 23:22:14 no, but all this is doing is sending the character ‘3’ over the bluetooth serial Aug 31 23:22:19 nothing special Aug 31 23:22:40 yeah but by doing this, somehow he is actually rotating the motor left. Aug 31 23:22:44 so that must represent something Aug 31 23:22:52 it represents left Aug 31 23:22:58 look at the arduino code Aug 31 23:23:02 ok Aug 31 23:23:14 they get the character from the serial Aug 31 23:23:41 they cast it to an int Aug 31 23:24:11 alright, i get that so far. what about below. could you break that part down as well. Aug 31 23:24:20 value 51? Aug 31 23:24:23 go find an ascii table Aug 31 23:24:30 k. Aug 31 23:24:43 and look for the value 51 Aug 31 23:24:57 oh i see, represents 3. Aug 31 23:25:08 admittedly, kind of a silly way to check Aug 31 23:25:11 so it reads in 3, the character from the serial Aug 31 23:25:23 yup Aug 31 23:25:56 right.write(180); left.write(90); i'm assuming that represents something in arduino, "180" and "90", rotation wise Aug 31 23:26:27 sending out PWM signals Aug 31 23:26:31 ah Aug 31 23:26:32 to control the servos Aug 31 23:26:38 makes sense now. Aug 31 23:27:59 also one last question, in the java code: catch (IOException e). what does that exactly do Aug 31 23:28:25 catches IOExceptions, which might be thrown Aug 31 23:29:08 so it doesn't run into complications while reading/writing Aug 31 23:51:55 o/ Sep 01 00:09:48 how's everyone doing today? Sep 01 00:12:35 terrible Sep 01 00:18:21 :( Sep 01 00:22:47 what happened g00s? Sep 01 00:23:51 he spilled his jar of peanuts Sep 01 00:25:48 drinfernoo tomorrow , my trusty companion of 14 years will be put to sleep http://imgur.com/a/r5hrm Sep 01 00:26:14 not much Android development here. I'm fighting against Bootstrap Sep 01 00:26:23 drinfernoo old age, stopped eating Sep 01 00:26:25 :( Sep 01 00:26:51 i'd clone him if i could, amazing dog Sep 01 00:27:15 why is he scheduled for "sleep"? Sep 01 00:27:45 arancio ^^ Sep 01 00:28:10 that's rough man Sep 01 00:28:11 although, for some reason he's still eating broccoli, apples, and pizza crust :P Sep 01 00:29:00 g00s: sorry I missed that line Sep 01 00:29:34 I think he would deserve a real pizza margherita Sep 01 00:29:41 not only the crust Sep 01 00:30:23 https://s-media-cache-ak0.pinimg.com/564x/70/ec/31/70ec314f6f2232ce557694c962a36572.jpg Sep 01 00:38:49 if I'm building a library, is it a bad idea to use other libraries? kept at a minimum, i would think it's not as big of a deal? Sep 01 00:39:06 leftpad Sep 01 00:40:29 except central is supposed to be immutable Sep 01 00:40:37 basically, try to avoid as much in the way of other libraries as you can Sep 01 00:44:53 that's what i figured Sep 01 00:45:16 what's leftpad? lol Sep 01 00:46:32 http://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/ Sep 01 01:37:09 Titanium? Sep 01 01:37:33 oh never mind Sep 01 02:20:54 guys android create project command does not create the same folder structure as Android Studio does , how do we make android create project command to do the same as AS does , is it with gradle ? Sep 01 02:29:47 what's "android create project command"? Sep 01 02:31:08 pitiye yeah, i dont think that was updated. i think there are a few yeoman projects to do it Sep 01 02:31:33 but its just a few mkdirs :P Sep 01 02:31:47 g00s: but i hate to do it manually Sep 01 02:31:52 can gradle do it for me ? Sep 01 02:32:26 hmm i dont think there is anything like mvn archetype Sep 01 02:32:49 but, i could be wrong Sep 01 02:34:25 arancio: in cli u can hit android create project to setup a project , but totally different to the structure to android studio created project Sep 01 02:34:51 pitiye thats from the olde days :) Sep 01 02:35:03 probably the same as it was in 2010 Sep 01 02:35:14 ya, but its much faster than AS Sep 01 02:35:33 cucumber sorter is cool https://cloud.google.com/blog/big-data/2016/08/how-a-japanese-cucumber-farmer-is-using-deep-learning-and-tensorflow Sep 01 02:35:39 and if u love vim , u hate AS Sep 01 02:35:40 :D Sep 01 02:36:12 i think there are people that like both ;) Sep 01 02:36:18 you can use the vim bindings Sep 01 02:37:00 u mean ideavim ? Sep 01 02:37:07 its not powerful as vim Sep 01 02:48:54 pitiye then use vim, nobody stopping you Sep 01 02:50:03 g00s: that is what i always want to do :D Sep 01 02:50:15 do it Sep 01 02:58:12 pitiye: cli, vim, ... do you use only horse to move around town? Do you know we have cars today? I mean, electric cars with co-pilot? Sep 01 02:58:57 arancio: actually vim is a Tesla in full auto pilot mode :D Sep 01 02:59:49 pitiye: the one that makes you crash against other vehicles? Sep 01 02:59:53 arancio: Tesla cannot go where a Stealth Bomber ( an electric bike, not the jet) can do **** ENDING LOGGING AT Thu Sep 01 02:59:58 2016