**** BEGIN LOGGING AT Mon Mar 28 02:59:58 2016 Mar 28 03:01:30 refactorial: where would I specify that? Mar 28 03:12:25 baash05: you specify that for the linker flags Mar 28 03:17:51 sorry.. I'm a noob for c++ in droid.. where are those... cppFlags.add? Mar 28 03:20:44 there is also ldFlags Mar 28 03:21:01 anything with "ld" is usually linker flags Mar 28 03:21:26 Any idea how to close a webview in a dialog once a I get a response? Mar 28 03:30:03 hi. I'm having trouble with imports in Android Studio. coming from Eclipse, I'm used to doing an "organize imports", and it would figure things out, or ask me if there is a conflict, but it doesn't seem to do anything in AS. for example, I tried to use "sqrt", and it has no idea what that is Mar 28 03:30:31 is there any way to have AS figure that out? Mar 28 03:30:57 calamari: Ctrl-shift-a, type "organize imports" Mar 28 03:31:05 However I think you have a deeper problem than this Mar 28 03:31:47 what problem? Mar 28 03:32:06 flat earth problem Mar 28 03:32:23 calamari: Are you new to Java Mar 28 03:32:25 ? Mar 28 03:32:33 oh dear Mar 28 03:32:39 did I say something dumb? Mar 28 03:32:53 Not at all, just honestly trying to assess your level Mar 28 03:33:06 I've never used AS before Mar 28 03:33:15 I only did my coding in Eclipse Mar 28 03:33:28 srtq is a static on the Math class, so you'd want Math.sqrt(). AS should offer to import it once you get that right Mar 28 03:33:34 sqrt* Mar 28 03:34:11 heh, you're right Mar 28 03:34:32 Once in a while Mar 28 03:34:36 I copied and pasted code from the android web page.. I just assumed it was right. my bad Mar 28 03:35:16 I was finally able to figure out how to mock out the rest servers for test cases Mar 28 03:35:21 It's possible to make sqrt() work in a Java source, but that's why I enquired about your familiarith with Java and whether you'd understand what a static import is (if you don't know what it is, don't worry about it right now) Mar 28 03:35:26 might be cool to use while developing the app Mar 28 03:35:59 how do I organize the project so that some features are only available for development? Mar 28 03:36:23 so in a release build I can easily disable them. Maybe not even compile them into the app Mar 28 03:36:28 it's honestly been a while.. Mar 28 03:36:34 I last did java about 5 years ago Mar 28 03:36:41 I'll look that up Mar 28 03:37:00 Static imports appeared around 2005 but yes, look them up later, just use Math.sqrt() Mar 28 03:38:13 thanks Mar 28 03:40:26 I had to switch from AlertDialog to Dialog because of an issue with AlertDialog + webview + keyboard showing. The stack overflow solution was to use a Dialog. That's totally fine, but AlertDialog had a good width, but Dialog width is less, any idea how to get Dialog size to behave like AlertDialog? Mar 28 03:48:45 " If you use the CoordinatorLayout, to move other View objects around, such as with a CollapsingToolbarLayout, then the height of your bottom sheet changes. This can cause an undesirable jumping effect." Mar 28 03:48:57 * g00s sighs Mar 28 03:53:53 g00s: you should work for google ;) Mar 28 03:54:15 google shmoogle Mar 28 05:19:50 Hi, I want to purchase an Android tablet, but I'd like to use it to develop phone apps. Is it fairly easy to make a tablet's screen emulate that of a phone? Mar 28 05:20:28 For example... have a roughly five inch diagonal section in the bottom centre to display things, and have the rest of the screen be black? Mar 28 05:20:43 why not just use an emulator then Mar 28 05:20:46 Perhaps I should just get a Nexus 4 or some other cheap phone for development purposes... Mar 28 05:20:56 I like testing on physical hardware Mar 28 05:21:09 But I think I also just answered my own question Mar 28 05:31:06 Sorry all I passed out Mar 28 05:31:26 Anyone there. I'm still confused about Calendar and why it's static. Mar 28 05:31:41 Is this like.... THe actual date on the android? Mar 28 05:38:10 is there a quick way of finding out which view is consuming the touch events on my screen? Mar 28 05:38:15 g00s: sup Mar 28 05:41:57 hey thepoosh Mar 28 05:42:41 what's news? Mar 28 05:49:50 oh just reading this with amusement http://zserge.com/blog/android-mvp-mvvm-redux-history.html Mar 28 05:49:59 fucking hipsters Mar 28 05:51:03 thepoosh i found some good tidbits in this week androidweekly ... what about you ? Mar 28 05:53:03 g00s: such as? Mar 28 05:53:09 didn't notice anything Mar 28 05:53:20 g00s: that article was total bulshit Mar 28 05:53:23 thepoosh ian's blog about botton bar confirmed my suspicions Mar 28 05:53:30 bottom navigation Mar 28 05:53:34 didn't read Mar 28 05:53:53 thepoosh lol yeah it was Mar 28 05:54:26 are you talking about this? Mar 28 05:54:26 http://code.tutsplus.com/articles/how-to-use-bottom-sheets-with-the-design-support-library--cms-26031 Mar 28 05:55:03 no this one http://blog.iangclifton.com/2016/03/19/bottom-tabs-on-android/ Mar 28 05:55:57 I remember you hated toolbars Mar 28 05:57:43 hehe Mar 28 05:58:05 well, i think ian has a point with information hierarchy , the problem with toolbars on tablets Mar 28 05:58:16 and also the weird motion of it translating in the opposite direction of scrolling Mar 28 05:58:31 nobody uses tablets Mar 28 05:58:38 ian and I had the same thoughts i guess Mar 28 05:59:39 thepoosh looking into any cool new libraries ? Mar 28 06:00:44 not really, more getting familiarised with appcompat Mar 28 06:00:55 oh fun Mar 28 06:01:24 yeah Mar 28 06:01:27 ... Mar 28 06:01:34 you mean, getting familiar with code that was supposed to hide complexity but also brings in its own bugs :D Mar 28 06:01:42 lolz Mar 28 06:01:56 no, more like getting familiar with code that I don't have to write myself Mar 28 06:02:15 yesterday removed ugly code that was replaced by 2 theme attributes Mar 28 06:02:25 that was fun(ish) Mar 28 06:02:36 yeah i simplified my night / day theme too Mar 28 06:02:45 but AppCompat night mode is still kinda busted Mar 28 06:03:06 not there yet Mar 28 06:04:00 g00s: are you a private contractor? Mar 28 06:05:25 no Mar 28 06:05:41 ok 2am, time to walk the doggie ! Mar 28 06:05:54 gnight thepoosh Mar 28 06:05:57 night Mar 28 06:31:52 can anyone help me out toselectgood wireframing tool for android mobile app? Mar 28 06:32:04 free Mar 28 06:32:07 :) Mar 28 06:35:17 toselectgood wireframing?!?!?! Mar 28 06:35:31 to-select-good? Mar 28 06:37:18 thanks for correcting it Mar 28 06:39:44 actually over the net there are lot of tools available and now i am bit confused.. which one to go.. I am not a designer I am a developer sometime I also do freelancing Mar 28 06:54:58 When I run glCreateProgram(); I get a segfault.. anyone else run into this? Mar 28 07:04:19 LOGI("CREATING GL PROGRAM"); Mar 28 07:04:19 GLuint program = glCreateProgram(); Mar 28 07:04:19 LOGI("GETTING HERE"); //this never gets reached Mar 28 07:05:41 Oh man this is going to feel so good when I figure it out. :) Mar 28 07:10:10 baash05: what happens when you debug this? Mar 28 07:50:28 I'm not able to step the code.. native Mar 28 07:50:44 or rather NDK.. Mar 28 07:51:14 do you know if there's supposed to be something in OpenGL that preceeds this call Mar 28 08:24:44 Anyone using scripting in their android application? Any suggestion on which engine I can use - performance is most important Mar 28 08:27:28 phasip: if performance is the most important thing for you think CPP Mar 28 08:28:32 thepoosh: I mean I want to load and run scripts at runtime in my android application Mar 28 08:30:37 what types of scripts? Mar 28 08:31:46 I mean you can run ruby scripts with ruby motion. And though I don't know how meta it is, ruby's a script. Mar 28 08:31:54 Or you could run javascript. Mar 28 08:33:23 I suppose if you want you can even run shell scripts (I've heard it can be done). None of these are specifically performant though. I suppose it depends on how you define performance. Mar 28 08:34:02 baash05: Currently I can use any language - the scripts are trivial, simple math functions and if statements Mar 28 08:36:55 The scripts won't change often, maybe once a week, but will run multiple times per second Mar 28 08:40:15 wahay, bye-bye battery! Mar 28 08:41:47 Leeds: I mean multiple times per second while the app is running - but yes Mar 28 08:51:14 but yes? Mar 28 08:52:14 Ha ha.. btw.. simple math functions and if statements.. Sort of describes most of our jobs :) Mar 28 08:53:16 Question on the scripts.. why do they need to run on the hand held? Mar 28 08:53:23 ^_^ but yes, it will drain battery while running. Mar 28 08:54:39 when I said "but yes?" I was sort of asking why that's was said with such little concern. Mar 28 08:54:53 Is this a business app? Mar 28 08:55:18 No whakas. Mar 28 08:55:42 What do the scripts do.. it will help me suggest the lang and tool.. Mar 28 08:55:48 Does it have to store things? Mar 28 08:56:05 Is it for figuring out gps? Mar 28 08:56:19 or x,y,z of the device? Mar 28 08:57:22 No, its more like a user can play with parameters to see different outcomes, think modifying game logics or specifying ai heuristics Mar 28 08:58:50 First I want to see if the scripting thing can work, then I'll see if the battery drain is worth it Mar 28 08:59:23 hi, can someone share his experiences :) I have viewPager and about 7 page in it. Almost all pages has list of data. Data i get from sqlite db. It seemed a good idea use content provider and loadManager for updating data after sql data was changed. So it even works but i replaced ListView to RecycleView because it seems more flexible but it doesn't have default cursor provider. I found one in github but now i doubt - i need content provider Mar 28 08:59:23 for works with my data. Is it good idea? Mar 28 09:00:03 I'd say javascript would be your friend. Mar 28 09:00:50 A simple web edit page and a web view should do you.. Mar 28 09:00:57 OOps.. Mar 28 09:01:09 a simple edit page and a web view, should do you. Mar 28 09:03:17 The power could be that it's one of the most used langs in the world, so most people could edit it. The script would run on your desktop as well as the HH, and the script could be stored as a string, and sent down to the HH as you like Mar 28 09:13:50 So you would say this stuff does not belong on my adapter? https://gist.github.com/autrilla/9c3dd2dad7974db271e6#file-temperatureprobeadapter-kt-L77-L124 Mar 28 09:48:01 autrilla: absolutely not Mar 28 09:52:41 how about my question above? Mar 28 09:57:37 thepoosh: where would you put it? Mar 28 10:07:28 autrilla: you should not have a reference to your Activity Mar 28 10:07:32 in the adapter Mar 28 10:07:43 I would use an interface or some sort of eventbus Mar 28 10:08:07 I mean, save can be in the adapter Mar 28 10:08:12 but not the notifyers Mar 28 10:21:26 thepoosh: why not? The interface I make is going to have to expose methods that make it mandatory for the implementing class to be an activity, so... Mar 28 10:25:16 you need to use SOLID principles when building systems Mar 28 10:25:42 one of those means loosely coupling of the adapter and Activity Mar 28 10:28:37 yes using an interface that only exposes those methods is less coupling in theory but exactly the same in practice Mar 28 10:29:25 autrilla, easier to test though for example. Mar 28 10:29:31 Also easier to read the code later. Mar 28 10:29:44 Since your interface will say exactly which calls that adapter requires on the activity. Mar 28 10:30:04 that's true Mar 28 10:30:33 But now I have to find a name for that interface :( Mar 28 10:42:04 autrilla: OnSaveData Mar 28 11:04:11 man, SAF is such a crappy API. Mar 28 11:06:12 SAF? Mar 28 11:06:39 Mavrik: did you actually mean AWS? Mar 28 11:06:48 nop. Mar 28 11:06:58 https://developer.android.com/guide/topics/providers/document-provider.html :) Mar 28 11:07:04 storage access framework. Mar 28 11:07:10 oh Mar 28 12:21:58 anyone using Buck? Mar 28 12:28:39 does it have IDEA integration of some sort? Mar 28 12:30:02 It's capable of generating an IDEA project. Mar 28 13:02:26 Hey.. Just wondering.. is this file https://android.googlesource.com/platform/frameworks/base/+/d51ecafa6875e182346a825ce098e7c5e0b09038/opengl/libs/EGL/Loader.cpp accessible in the NDK? Mar 28 13:02:49 I mean is there some way to include it without copy/paste? Mar 28 13:08:40 baash05, if it's not documented in NDK docs, no. Mar 28 13:09:00 Even if you could link to it, it would randomly fail on some devices and completely fail in Android N Mar 28 13:10:41 Of course.. Mar 28 13:10:48 :) Mar 28 13:13:27 I ask this every few hours, so why not now :) Anyone have a simple fully native app that makes use of open gl to draw a triangle? Mar 28 13:13:44 I keep getting hung up on small things.. Mar 28 13:15:06 so many blog posts, and none touch shaders... Mar 28 13:19:37 you ddon't really need shaders to draw a gl triangle.. Mar 28 13:20:52 true.. but you need them to just about everything else.. Mar 28 13:21:43 glCreateProgram is NULL for me right now. Mar 28 13:22:30 It's not returning null.. the function pointer is NULL,, and I struggle to find an elegant way to fix that.. Mar 28 13:23:51 Thing is.. HelloTriangle (the sample) uses shaders, but it's not fully NDK.. Mar 28 13:24:03 Zharf, yes you do :P Mar 28 13:24:10 Unless you're writing obsolete code. Mar 28 13:25:17 baash05, this one doesn't work: https://github.com/googlesamples/android-ndk/tree/master/hello-gl2 ? Mar 28 13:25:35 Mavrik, you can still do it though :P Mar 28 13:25:55 I prefer not to teach people wrong code :) Mar 28 13:26:00 it does.. it works.. Mar 28 13:26:04 But.. Mar 28 13:26:20 it's not "true". Mar 28 13:26:46 It loads the gl in Java. Mar 28 13:27:17 I've played with it some, but then I run to the end of it.. Mar 28 13:27:36 and I'm not native anymore :( Mar 28 13:28:50 Zharf.. It won't get me out of my hole to GLBegin. Mar 28 13:28:58 (oops bad case) Mar 28 13:29:48 Mavrik: since that code isn't native.. Any thoughts on how to load the libs it dumps out on java? Mar 28 13:31:46 The SanAngeles code calls dlopen, but I'm wondering if that's the right snippet. Mar 28 13:37:36 baash05, what do you mean libs? Mar 28 13:37:40 Dumps out? Mar 28 13:38:48 Sorry.. the NDK sample app hello_gl2 does not stay in ndk.. It does some work in Java. Mar 28 13:39:47 which is fine, but hiding the work in java-land doesn't really help me figure out how to include what ever I need to include to get the glCreateProgram to work. Mar 28 13:40:26 When I hit that line of code I get a segfault, because the function pointer is null. Mar 28 13:41:23 There's something missing in that source code.. and what I've found is that somewhere along the line the methods are not being defined. Mar 28 13:41:52 I just don't know what I'm missing. Mar 28 13:45:28 PS thank you for helping.. I suspect I'd have abandonded the quest weeks ago were it not for this and a few other channels. Mar 28 13:47:04 hmm Mar 28 13:51:33 It's just a bit of a dogs breakfast working through all the samples.. (I say with a determined smile on my face) Mar 28 13:51:56 Yeah, NDK sadly is a bit of a cesspool :/ Mar 28 13:52:53 It puzzles me though.. NDK seems like the obvious choice for coders today.. Mar 28 13:53:51 I mean it would make working on android and ios a one team job. Mar 28 13:54:07 Note I said "team". Mar 28 13:58:43 We still need two :) Mar 28 14:00:02 Yeah.. co I work for has java and obj-c.. but c++ could do both.. Mar 28 14:00:50 Oh well.. 1 am.. time for bed.. I'll figure it out, and post my project on git for all to see. Mar 28 14:00:56 github. Mar 28 14:02:04 Then I hope my hard points won't be the set up issues. I miss codewarrior. :( Mar 28 14:03:55 Recyclerview of radio buttons, any proper way to make it so radio buttons animate properly during check/uncheck Mar 28 15:24:07 anyone running android x86 on desktop? Mar 28 15:24:43 yes Mar 28 15:28:47 astroduck, add it to a radio group as you bind Mar 28 15:34:13 hmm, I wonder if there's any way to re-trigger a layout animation Mar 28 15:39:15 sound advice http://akazlou.com/posts/2015-11-09-every-project-should-have-decisions.html Mar 28 15:39:58 does an android user have to actively activate NFC to read an NFC tag? Mar 28 15:40:14 "Never change anythig, but append only! Do not try to change the past, if you have to change the decision you made before, just make a new decision and document it, keeping the old there as well, so the progress, and thinking process will stay visible." Mar 28 15:40:26 does this guy/gal not use a version control system Mar 28 15:43:56 oh, requestLayoutAnimation does that Mar 28 15:44:08 MartialLaw, no Mar 28 15:55:24 ugh, I remember lollipop or marshmallow added something to detect overridePendingTransition completed, but I can't find the api... Mar 28 15:58:59 and of course, I remembered seeing it in a udacity video... videos ftl Mar 28 16:01:52 Amadiro: I am thinking of playing wot bliz on android x86. Will the experience be horrible? Mar 28 16:03:23 horny-sama, I don't know what that is Mar 28 16:03:34 Amadiro: a game Mar 28 16:03:54 horny-sama, but assuming it's a game, and you enable kvm and GPU acceleration and other relevant acceleration mechanisms, and the game actually works on x86 android (probably not), it might be quite good. Mar 28 16:04:00 coz I am curious to know what's the experience of android without touch Mar 28 16:04:46 (and your GPU/driver might also need to support the relevant GPU acceleration mechanisms; I don't remember exactly, but GL_ARB_ES2_compatibility/GL_ARB_ES3_compatibility/... and maybe ARB_robustness might be needed? Mar 28 16:04:59 or maybe not Mar 28 16:05:35 I know I've tried GPU acceleration on intel/linux and nvidia/linux and it worked fine, at any rate. Mar 28 16:06:27 Amadiro: fyi, I am using r9 280x Mar 28 16:07:48 no idea, just try it out, I guess Mar 28 16:08:31 I think x86 android is pretty niche though, so I'd be surprised if the game includes an x86-compatible build Mar 28 16:08:55 I personally always compile all my native code for all the different architectures (yes, even MIPS) but I think a lot of people probably skip that Mar 28 16:09:25 Amadiro: true dat Mar 28 16:09:40 My nexus 5 (not the new one) is lagging Mar 28 16:09:43 OTOH the NDK by default makes you compile and include it for all the different architectures, if I remember correctly Mar 28 16:09:44 when I play games Mar 28 16:10:49 if the game is more GPU-bound than CPU-bound, running it with ARM emulation might also be fine, just try it and see Mar 28 16:11:17 (but emulating ARM on x86 is a *lot* slower, of course) Mar 28 16:22:18 Amadiro: what do you use for x86 emulation on android-x86? qemu or something else? Mar 28 16:22:54 duboisj, qemu (the thing that comes with android-studio by default) Mar 28 16:23:14 + I think I manually added a switch to make it exploit kvm acceleration + a checkbox for GPU acceleration Mar 28 16:23:34 at least I think it's qemu, I haven't used it in a while now Mar 28 16:24:19 you’re using it to run android arm binaries on an android x86 device / machine, or running an emulator on a development box running linux/windows/osx? Mar 28 16:24:31 (an x86 dev box) Mar 28 16:24:57 I use it to test my apps on an x86 dev box that itself runs linux Mar 28 16:43:04 !s batman superman Mar 28 16:51:28 Can anyone help me with Calendar class? Is this class static Mar 28 16:51:36 no Mar 28 16:52:39 http://pastebin.com/7ZTHwhS4 Mar 28 16:52:56 Wait not that pastebin Mar 28 16:53:53 http://pastebin.com/3n3HTyu7 Mar 28 16:54:07 Look at list 255 Mar 28 16:54:17 And then I add to calednar at 257... Mar 28 16:54:52 But the date submitted to 255 changes AFTER it's submit on 255 Mar 28 16:54:58 I don't understand how this can be Mar 28 16:55:08 Yesterday they told me to convert to Date.... Mar 28 16:55:20 But Date doesn't have all the functionality of Calendar.... Mar 28 16:57:39 Ok... simply can i haave multiple Calendars that save different dates? Mar 28 16:59:05 What are you trying to do? Mar 28 17:10:17 Where has TacticalJoke been? Mar 28 17:14:58 HI all, just to be sure. Is abstract class and void, the right way against multiple redundant code in different class? Mar 28 17:15:53 Kinda sounds like youre on the right track Mar 28 17:16:01 void? Mar 28 17:16:27 and void? Mar 28 17:16:38 What does he mean by and void Mar 28 17:17:11 Anyone ever use Binary Trees? Mar 28 17:19:04 what are binary trees Mar 28 17:19:17 Kind of like linked lists.. learning about in CS class Mar 28 17:19:45 what are linked lists? Mar 28 17:19:51 Really? Mar 28 17:19:53 Anyone installed fresco- the image library? I removed glide and added fresco to my gradle but I get a build error that looks like a dex limit error Mar 28 17:20:00 what is really? Mar 28 17:20:04 Or are you being sarcasting pfn Mar 28 17:20:08 sarcastic* Mar 28 17:20:10 ok then.. Mar 28 17:21:58 Ashiren, yes a public abstract void in an abstract class to save stats on file for example Mar 28 17:22:18 Why does the method have to be abstract Mar 28 17:22:43 Sorry, the method is indeed public static void Mar 28 17:22:50 Why static? Mar 28 17:22:52 only the class is abstract Mar 28 17:23:07 Ok but why is the method static? Mar 28 17:25:59 Because if the method is not set to static i got an error referenced to static context Mar 28 17:26:14 learn2java Mar 28 17:27:07 I know but i just trying to maintain an abandonned project without good dev help Mar 28 17:38:33 tikismoke: did you manage the dateformat? Mar 28 17:41:02 Yes ;) Mar 28 17:41:38 Thank's i do remove the last part of the string (after last space) Mar 28 17:42:00 and remove the 'z' from simpledateformatter and it works Mar 28 17:42:51 It means that "CET" or "CEST" is not understand by the 'z' option as i thought it was Mar 28 17:43:47 I now have date translated in user language like here: http://snag.gy/LZGtt.jpg Mar 28 17:49:05 Hi. I have a fragment in which I want to display an advertisement. Is it better practice to keep the ad reference inside the fragment or keep it inside the activity and call a public function of the activity to dipslay it? Mar 28 17:51:11 inside the fragment Mar 28 17:53:24 what library to you guys use for cryptography? I have to use md5 Mar 28 17:53:37 md5 doesn't really count as crypto anymore Mar 28 17:53:38 s73v3r, Okay, but here is the case: The user will be able to switch fragments (of the same type), so when he/she switches to a different fragment I'll have to reload the ad. If I keep it inside the activity it will be loaded and ready to be shown. Mar 28 17:53:56 the ad library is likely to cache the ad Mar 28 17:54:07 but, casadogg, check out https://stackoverflow.com/questions/4846484/md5-hashing-in-android Mar 28 17:54:11 you want your fragments to be as self contained as possible Mar 28 17:54:47 NoirAvlaa, you there? Mar 28 17:54:51 c Mar 28 17:54:55 NoirAvlaa, were you talking to me? Mar 28 17:54:56 s73v3r, I see. Thank you! Mar 28 17:54:59 c Mar 28 17:55:01 i know md5 is outdated but that's what they are using over here Mar 28 17:55:19 I'm just trying to store multiple dates that I can manipulate Mar 28 17:55:25 mostly add minutes to Mar 28 17:55:31 Store them as longs Mar 28 17:55:34 Manipulate them Mar 28 17:55:46 wait, why wouldn’t you store them as Date objects? Mar 28 17:55:56 well Date was depreciated Mar 28 17:56:05 when? Mar 28 17:56:07 I find it easier to store as longs and just manipulate that Mar 28 17:56:35 s73v3r, IDK http://developer.android.com/reference/java/util/Date.html Mar 28 17:56:45 most of that says to use Calendar... that's why I was using it. Mar 28 17:56:55 BUt theres just sometihng I'm not getting. Mar 28 17:57:02 you use Calendar with a data Mar 28 17:57:03 date Mar 28 17:57:15 to manipulate date you use calendar Mar 28 17:57:16 There's also joda time Mar 28 17:57:20 After I submit date to the method .... then change date.. Mar 28 17:57:23 but to store/display you use date Mar 28 17:57:25 or jodatime Mar 28 17:57:29 You use Calendar to manipulate a date, such as adding hours or days or what have you Mar 28 17:57:37 because adding time is not straightforward Mar 28 17:57:43 Is it bad practice using a long? Or am I missing something? Mar 28 17:57:44 Right.... Mar 28 17:57:50 Can i add time to date? Mar 28 17:58:00 using Calendar Mar 28 17:58:04 you can convert date to calendar Mar 28 17:58:08 Because seriously, manipulating a long and just displaying it as a date using SimpleDateFormat is easy as hell Mar 28 17:58:21 NoirAvlaa: how do you add minutes or substract Mar 28 17:58:27 NoirAvlaa: It’s also extremely fucking buggy Mar 28 17:58:30 or months Mar 28 17:58:34 Really? Mar 28 17:58:36 NoirAvlaa, but why? Mar 28 17:58:37 Use jodatime. Take some time to learn it (about an hour) and make your life easier. Mar 28 17:58:41 1000 * 60 = 1 minute Mar 28 17:58:48 how do you know you’re adding to a leap day, or leap second? Mar 28 17:58:57 Ok lemme look at jodatime... Mar 28 17:59:03 s73v3r, fair Mar 28 17:59:07 NoirAvlaa but 1000 * 60 * 60 * 24 != 1 day Mar 28 17:59:07 TinFury threetenabp Mar 28 17:59:13 NoirAvlaa: you dont take into account daylight savings, different timezones, leap years, leap seconds etc Mar 28 17:59:17 Yeah fair enough Mar 28 17:59:21 best library for using sockets in android? Mar 28 17:59:22 lol Mar 28 17:59:22 Will it store year, month, day, hour, min? Mar 28 17:59:25 autobahn? Mar 28 17:59:43 g00s, ?? wut? Mar 28 17:59:51 Most times I've found that get manipulated haven't needed that level of accuracy so far Mar 28 17:59:57 longs are simple for simple stuff. but dates arent simple stuff Mar 28 17:59:58 Suppose it's based on what you're using them for Mar 28 18:00:27 and can be are pain in the ass in java Mar 28 18:00:39 Fair Mar 28 18:00:53 yeah, no. Date and Calendar are built in; there’s no excuse not to use them Mar 28 18:01:06 s73v3r, Calendar works for me Mar 28 18:01:21 But I don't understand why the calendar is changing Mar 28 18:01:32 even after submitted to another class Mar 28 18:02:00 Let me try and explain what I"m trying to do. Mar 28 18:02:13 I'm sending a date to a class. Mar 28 18:02:27 the class makes a bunch of entries to a database Mar 28 18:02:39 Then I add 8 hours to the date.... and submit it to the class again Mar 28 18:02:41 are you using the database time type? Mar 28 18:02:50 s73v3r, yes Mar 28 18:02:59 use a date/time library. Mar 28 18:03:07 you’re going to get royally fucked on daylight savings time Mar 28 18:04:11 http://pastebin.com/VztKnRE0 Mar 28 18:04:46 How can line 257 affect line 255? Mar 28 18:04:51 I just don't understand. Mar 28 18:05:16 you’re going to have to be more specific Mar 28 18:05:48 On 255 the Calendar object is send to generatePlannedBatches Mar 28 18:05:53 also, firstBatchTime should be a date, not a calendar Mar 28 18:06:03 s73v3r, Ok but why? Mar 28 18:06:11 because you want a date, not a calendar Mar 28 18:06:22 you want a specific point in time, which is what a date is Mar 28 18:06:35 ok.. and what is calednar? Mar 28 18:06:41 something else Mar 28 18:07:02 it’s a collection of rules like when daylight savings time is, how long the year is, what the first day of the week is, etc Mar 28 18:07:15 you use a Calendar to manipulate dates Mar 28 18:07:18 In the class generatePlannedBatches the date is going to be added to a database. 30 minutes are added and another entry so on about 30 times Mar 28 18:07:33 can I manipulate the actual date in generatePlannedBatches Mar 28 18:07:41 you can Mar 28 18:07:42 I mean I do manipulate it in generatePlannedBatches Mar 28 18:07:47 with a Calendar instance Mar 28 18:07:59 Calendar is also a singleton Mar 28 18:08:03 oh Mar 28 18:08:15 That would explain it. Mar 28 18:08:43 So date... can I manipulate Date? Mar 28 18:08:48 Calendar is not a singleton Mar 28 18:08:50 with a Calendar instance Mar 28 18:09:00 you’re right, that’s a factory method Mar 28 18:09:03 I misspoke Mar 28 18:10:03 Ok.... Mar 28 18:10:10 So I send Date insted of Calendar Mar 28 18:10:13 yes Mar 28 18:10:25 Then I need to convert Date to Calendar to manipulate the time? Mar 28 18:10:34 no, you use a Calendar to manipulate Dates Mar 28 18:11:01 that's the most important distinction there ^^^ Mar 28 18:11:17 Ok... Mar 28 18:11:31 I understand what your saying. I don't understand how this is done... Mar 28 18:11:44 TinFury, a "Calendar" object doesn't describe information about any one particular date. instead, it encapsulates info about the *calendar*.... aka a Gregorian calendar (like we use), a Julian calendar (like old timey Rome), a Chinese calendar, etc Mar 28 18:11:54 each of those different calendars has different rules for how dates change with time Mar 28 18:12:26 the Date object describes one specific instant in time, but it has no idea about what the addition of 1000 seconds means to that time Mar 28 18:12:31 dude, read the docs on Calendar and Date Mar 28 18:12:32 Ok... I see.... what is the date that I've been storing in it then? Mar 28 18:12:38 Current time? Mar 28 18:13:00 s73v3r, I've been readying them since yesterday. Mar 28 18:13:11 The Date page tells me to mostly use calendar. Mar 28 18:13:12 the answers to your questions are in there Mar 28 18:13:20 yes, that’s what I told you too Mar 28 18:13:32 you use Calendar to manipulate the date Mar 28 18:13:52 Calendar to select a point in time and store it in date? Mar 28 18:13:58 yes Mar 28 18:14:01 Ahhhhh Mar 28 18:14:07 because there are many calendars Mar 28 18:14:24 I see Mar 28 18:14:34 there’s the Gregorian calendar that you’re most familiar with, but there’s also the Hebrew calendar, the Chinese calendar, the Muslim calendar, etc Mar 28 18:15:01 exactly Mar 28 18:15:13 even in Gregorian, DST fucks stuff up Mar 28 18:15:29 especially because DST is different from year to year Mar 28 18:15:36 if you have a Date object representing Nov 6 2016, 1:59:59 AM Mar 28 18:15:40 and you add one second to it Mar 28 18:15:46 your Date object should go *backward* one hour Mar 28 18:16:34 (depending on locale) Mar 28 18:16:46 don't you just love it lol Mar 28 18:16:47 Ok let me trythis then... Mar 28 18:16:48 Or time-zone? Mar 28 18:17:05 Maybe both Mar 28 18:17:57 So lets say I have a Date object of today 1:30pm Mar 28 18:18:22 and I want to add 30min to it Mar 28 18:18:32 I would have to send the time to calendar.... add 30 min Mar 28 18:18:37 then store it back to Date? Mar 28 18:18:40 umm... stupid question, I know, but why not do everything in UTC, then only display in local? Mar 28 18:18:48 yes. look at the docs for Calendar, it will tell you how Mar 28 18:19:14 Yeah, that's why milliseconds is better.. And just convert once it needs to be displayed Mar 28 18:19:17 Hello Mar 28 18:19:37 FUCKING ASS. Why does the Developer.Android.com site constantly give me the chinese version? Mar 28 18:19:43 When creating your android apps, Do you often contact a web developer to build your API's? Mar 28 18:20:16 -.- Mar 28 18:20:23 how do i change it back? Mar 28 18:20:25 lol Mar 28 18:20:39 Bottom right Mar 28 18:21:02 s73v3r it changes for me too, no idea why ... Mar 28 18:21:08 thanks! Mar 28 18:22:09 p_l: The Date object should be storing it in UTC, and be able to switch based on locale, which would include time zone Mar 28 18:22:19 has anyone ever tried to make an intent filter so that when you use a custom scheme url (my-app://some_content), it opens up in your app? I did mine following http://stackoverflow.com/questions/2958701/launch-custom-android-application-from-android-browser and it doesn't seem to pickup on the new scheme Mar 28 18:22:29 is there something that needs to be done to force the registration with the system Mar 28 18:22:38 (install through app store, or something) Mar 28 18:26:52 nah, DrBenway most likely your intent filter isn't matching the correct flags or uri patterns Mar 28 18:27:10 I noticed that javadoc displayed in android studio doesn't display code samples. It appears there are "@sample" references that are not resolved. Is this a reasonable place to ask about this? Mar 28 18:27:18 it looks kinda hard to screw up but ok Mar 28 18:27:20 the "data" and "mimetype" pieces of the intent filter is quite particular in my experience Mar 28 18:27:36 davidmichaelkarr: ask how? Mar 28 18:28:49 s73v3r: Well, like stating the problem and implying the question of why this happens, like I just did. Mar 28 18:29:08 probably not, then. there’s no one from Google in this room Mar 28 18:29:56 Bugs can be reported on b.android.com Mar 28 18:44:41 weird.. I am trying to use the .createNewFile() method from a File object and it says no such file.. sure - one of the sub-folders does not exist, but why is it not forcefully created? I am accessing the data/data/myproject/boards/someimage.png folder Mar 28 18:48:32 ahh.. if I have intermediate directories, that might not exist, I have to create them (I use "getParentFile" and the mkdirs on it). Then createNewFile works as expected. Good to know. Mar 28 18:49:47 hi people, is it possible in a TextView to align one line at Right and other Left Mar 28 18:54:21 you’re talking about separate TextViews, right? If so, yes Mar 28 18:55:19 one textview with two lines one left the other right, just curiosity i can fix it with two textviews of course Mar 28 18:55:45 oh, I’m pretty sure not Mar 28 18:56:11 ok, thanx :) Mar 28 18:56:22 you might be able to do it with tinkering with the internals of TextView, or playing with Spannables, but unless you absolutely need it to be one, just make two Mar 28 18:57:41 sounds like a nightmare :p better two textviews Mar 28 18:59:33 weird.. I am creating a new custom ListAdapter and assigning it to the ListView, but for some reason getView() of that adapter is called twice even though there is only one item in it - is that normal? Mar 28 19:02:58 what’s being returned for the number of items calls? Mar 28 19:03:10 and do you call notifyDataSetChanged anywhere? Mar 28 19:05:25 Hi guys.. I have an issue with an login register app.. Seems It is now stuck at HttpParam section, belive this is depreciated and I was wondering what I can use instead of that? Mar 28 19:05:45 Josh-Spartan, the answer to your question is yes, use an alignment span Mar 28 19:06:43 and spans aren't a nightmare to work with Mar 28 19:07:50 ss = new SpannableString("line1\nline2"); idx = ss.indexof("\n"); ss.setSpan(new AlignmentSpan...; 0, idx, ...); ss.setSpan(new AlignmentSpan; idx, ss.length(), ...); Mar 28 19:07:51 done Mar 28 19:08:14 it’s not a nightmare, but if it’s dynamic text, it’s probably more trouble than it’s worth Mar 28 19:08:45 not really hard for dynamic text, either Mar 28 19:09:32 like i said, more trouble than it’s worth Mar 28 19:09:36 its the same textview, im just adding lines with append("text") when user demans Mar 28 19:09:50 *demands Mar 28 19:10:33 so you have one static line that is left aligned, and then N lines that are right aligned below that? Mar 28 19:11:23 one left one right one left one right, thats the order Mar 28 19:11:37 two textviews fix it Mar 28 19:11:48 Is there a Google employee here? What's the best way to report a malicious app in the Google Play store? I've tried using the takedown form here a week ago: https://support.google.com/googleplay/android-developer/contact/takedown ... but no action was taken. The malicious app is currently growing at the rate of 200k installs/day Mar 28 19:11:54 i was just being curious Mar 28 19:11:59 Google employees don’t frequent this channel Mar 28 19:12:16 only thing you can do is flag the app Mar 28 19:19:38 Hey, has anyone here got experience with Native Android Media Server Development? (sort of) Mar 28 19:20:36 So is the difference between GcmNetworkManager and SyncAdapter that SyncAdapter is meant for when you have a ContentProvider only? Both handle efficient handling of networks calls that don’t drain the battery? Mar 28 19:22:53 Hi all - has anyone else had trouble building release builds for armv7 on API level 20 or lower? Mar 28 19:23:11 Bionic for lower api levels seems not to include stpcpy Mar 28 19:23:21 boost::filesystem does not like this Mar 28 19:24:01 I'm trying to think of a good solution to that short of editing the ndk stdlib source, implementing stpcpy, and rebuilding the toolchain for that api level/architecture Mar 28 19:27:19 ShinyObjects: implement stpcpy in your application Code? Mar 28 19:27:54 Are there ways to generate/extract SVG or another vector format from https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html ? Mar 28 19:32:38 anyone having issues receiving multicast packets on marshmallow? Mar 28 19:33:08 no Mar 28 19:38:54 hmm. okay. seems i'm only having an issue with M though. Mar 28 19:52:31 pretty much all the gapps have 'provide feedback' and that has 'include screenshot and logs' - whats the easiest way to accomplish that? Mar 28 19:56:26 g00s: be Google? Mar 28 19:56:57 realistically, there are actually many apps that do so, and I think Google even had announced releasing that stuff someday. Mar 28 19:57:12 I think the same time when Firebase was at IO Mar 28 20:14:14 when pasting classes into a project how do I tell Android Studio to not overwrite the copyright header? Mar 28 20:18:34 ...paste it below the copywrite header? Mar 28 20:20:31 truckcrash, I'm pasting packages with many classes. Mar 28 20:23:16 It is altering an already existing header, or you want to add a header to some classes? Mar 28 20:32:39 200k installs a day sounds more like someone is salty Mar 28 20:34:24 truckcrash, it's altering the existing header Mar 28 20:35:06 pfn, what app? Mar 28 20:35:16 no idea Mar 28 20:35:21 just someone saying they want to report Mar 28 20:35:24 ^^ Mar 28 20:35:42 are you framing somone amiarno? link the app so we can see Mar 28 20:36:38 ah Mar 28 20:37:27 i'd rather not share the app with anyone who's not a Google employee because it's using some techniques that shouldn't be shared. i will mention though that it was been removed several times in the past. for some reason, Google hasn't acted on it yet though Mar 28 20:37:43 surf2b1, it's somewhere in the settings Mar 28 20:38:49 amiarno, this is a developer channel, it's not like the techniques (???) you refer are 0day. Thus, link | fake Mar 28 20:45:03 fake |= (link == null || link.isEmpty()) Mar 28 21:06:43 Hi. Mar 28 21:07:01 Anyone =)? http://stackoverflow.com/questions/36271199/distortion-when-processing-samples-from-audiotrack Mar 28 21:10:42 let me see Zta77 Mar 28 21:11:16 I have a feeling the error is pretty straight-forward. I just can't see it. Mar 28 21:13:22 Zta77, you can directly convert your short into float or double with float f = yourshort / 32768f; Mar 28 21:13:27 or 32768.0 if you want double Mar 28 21:14:43 oops i meant 32767f or 32767.0 Mar 28 21:15:15 then you should apply your linear fadein/fadeout on the float or double value, and convert it back to short Mar 28 21:15:23 Are you saying this will work? double d = myShort / myDouble? Mar 28 21:15:25 so you don't have to deal with 2bytes making a short Mar 28 21:15:29 yes Zta77 Mar 28 21:16:16 it's much more easier and convinient, since you have a short array Mar 28 21:16:52 even if technically a short is two bytes (careful with endianess), for dsp you can directly do the op i told you from short to float Mar 28 21:17:15 in fact the signal is represented between -1 and +1, which is with signed short between -32768 to +32767 Mar 28 21:18:25 in you code with your byte conversion, you probably have an issue with missing the sign Mar 28 21:18:46 it's often << 8 & 0xFF and adding +128 to mitigate the sign issue iirc Mar 28 21:18:54 adq: You're right about the division getting cast properly. This has bitten me before, that's why I'm so explicit about casting. Mar 28 21:18:59 but just convert your short to float, your code will be simpler, more efficient too Mar 28 21:19:34 it did not look how you fadein/fadeout, but usually Mar 28 21:20:12 you will do that on your sample: out = sample * amplification Mar 28 21:20:15 You shoud look =) I have a byte[] so I have to convert to a short first. Mar 28 21:20:22 and you linearly decrease your amplification factor from 1f to 0f Mar 28 21:20:56 Like you mentioned, I think endianess is the problem. Mar 28 21:21:11 and that sign.. Mar 28 21:21:13 let me check some code, for short to two bytes to float conversion i have Mar 28 21:21:23 but seriously just convert your short in float, profit Mar 28 21:22:10 I am. Mar 28 21:22:57 adq: This is the amplification method: http://pastebin.com/M0rsUvnX Mar 28 21:23:30 looks correct for double filtered16bitDouble = amplification * sample16bit; Mar 28 21:23:31 Mar 28 21:23:43 if amplification is between 0 and 1 Mar 28 21:24:22 if you go bigger than 1, depending on the value of sample16bit, you can clip which will creates artifact & distortion Mar 28 21:26:59 It should be [0;1]. Mar 28 21:32:31 If whenever an Activity opens, I have open a new thread(runnable) and start that, that will not effect UI at all correct? Mar 28 21:32:36 Since its on another thread Mar 28 21:33:01 no Mar 28 21:33:08 as in it won't and you are correct Mar 28 21:33:20 Ok thank you Mar 28 21:36:01 Zta77, well for short to byte[2] i used something like: block_byte[index] = (uint8_t) ( sL & 0x00ff); block_byte[index+1] = (uint8_t) ((sL & 0xff00) >> 8); Mar 28 21:36:14 it's in C, but the same apply in java, just cast it with byte Mar 28 21:36:31 in 16bit pcm, first byte is the low order byte Mar 28 21:39:59 what determines which thread my contentreceiver is run on? Mar 28 21:40:05 so maybe you should byte filteredUpper8Bit = (byte)((filtered16bit & 0xff00) >> 8); Mar 28 21:40:18 and also don't add +0.5 to your short just above Mar 28 21:40:20 sorry, typo. broadcastreceiver Mar 28 21:40:21 prior to your conversion Mar 28 21:40:56 that like adding some DC offset to your signal Mar 28 21:41:38 i did not look how you convert from byte[2] to short, it might be wrong too Mar 28 21:41:49 just directly work with short and float, avoid byte if you can Mar 28 21:45:34 Zta77, also this.filterDurationInSamples = (int)((float)filterDuration / 1000 * audioSampleRate + 0.5f); << not sure it make sense Mar 28 21:47:30 if you want the number of samples for 1000ms, you know for example you are at 44100Hz which is 1000ms of sample (44100samples), it's n = samplerate * 1000 / numberofms Mar 28 21:47:59 oops n = ms * samplerate / 1000 Mar 28 21:48:50 i don't get where your +0.5f comes from Mar 28 21:48:53 the 0.5f is int-to-double rounding Mar 28 21:48:59 ohh ok Mar 28 21:49:40 I want the number of samples for 1000 ms. I think my calculation is correct. Mar 28 21:49:54 well, plus or minus one sample is not a big deal for fadingin audio ;) Mar 28 21:50:24 true =) Mar 28 21:51:12 no wait, my filter duration is wrong. Weird.. Mar 28 21:51:23 well idk how they apply operator priority Mar 28 21:51:33 i read it like filterDuration / (1000 * audioSampleRate) Mar 28 21:51:37 this is why i said it's wrong Mar 28 21:51:48 n = ms * samplerate / 1000 < in this case there is no ambiguity Mar 28 21:51:56 the pid of my android app is the pid of the jvm linux process (dalvik/art) on the device and threads start with id 1 (gui) and go up monotonically, correct? Mar 28 21:52:49 each app has its own uid and thus its own jvm, correct? threads have the usual kernel limits? Mar 28 21:53:57 ... depends. Mar 28 21:54:01 ^ Mar 28 21:54:04 Mostly I guess. Maybe. Mar 28 21:54:25 why do you need to know that for developing your app maroloccio? Mar 28 21:55:07 i need to debug some service/receiver/app interaction and i need to "understand" how it should work normally so i dont swim against the current Mar 28 21:56:11 i can just use intentservice, start it with startService, post intents to it and it works the queue fifo. no prob with that. when it needs to post back, it just local broadcasts. (i am not using this basic model) Mar 28 21:56:14 you could dump in logcat the different threads number you have in your app, so when you monitor you can easily identify who is who Mar 28 21:56:36 i did Thread.currentThread.getId() like there was no tomorrow Mar 28 21:57:23 adq: in its simplest form, how should receivers work w/ threads? Mar 28 21:57:33 i have no clue :D Mar 28 21:57:38 adq: awesome Mar 28 21:58:21 to me the api guide is a little apaque re: thread specifics when i cross the boundary -> receiver Mar 28 21:59:08 how do I add older sdks to the AS 2.0 "Alternative source available" bar Mar 28 22:05:04 maroloccio, in short, don't do threaded stuff in receivers. Mar 28 22:05:12 It's also clearly written in the doc :) Mar 28 22:09:12 Mavrik: thanks for answering. was reading this: http://developer.android.com/guide/components/processes-and-threads.html (is this the "doc" you mention? what should i use to understand more about receivers in relationship to threading?) Mar 28 22:09:44 maroloccio, I'm referring to BroadcastReceiver doc :) Mar 28 22:09:54 This has important repercussions to what you can do in an onReceive(Context, Intent) implementation: anything that requires asynchronous operation is not available, because you will need to return from the function to handle the asynchronous operation, but at that point the BroadcastReceiver is no longer active and thus the system is free to kill its process before the asynchronous operation completes. Mar 28 22:12:11 it depends on what you are doing maroloccio Mar 28 22:12:34 if you receiver is in an activity, you do the same thing you do for anything you want to move off the main thread in an activity Mar 28 22:12:50 O.o Mar 28 22:13:23 if you are receiving an alarm or other external event while your app is in the background, you start a service Mar 28 22:14:30 since that signals the OS that you are actively doing something even though you don't have any foreground activities Mar 28 22:17:13 missingno: thanks for answering. you make me wonder though.. when one often reads "starts a process" or "between processes", this is all separate linux pids right? separate jvms, even? and when the opposite is the case.. how do threads share a process? e.g. the framework has its own thread start sequence that run()s that particular piece to time share on that pid? Mar 28 22:17:56 they are separate jvms Mar 28 22:18:01 but threads live in the same jvm Mar 28 22:18:18 (unless, as the manifest attributes go, one forces two entities to coexist in the same "process", or even two applications signed by the same cert, which co-inhabit that process) Mar 28 22:18:54 you can return from the onReceive() and do something asynchronously if you also acquire a wakelock from the powermanager, AFAIr Mar 28 22:18:57 when the framework triggers a broadcast event to you, it eventually ends up on your main thread in your pid Mar 28 22:19:11 missingno: so, suddently durint the execution of my thread, something (the framework) pre-empts it and creates a new thread object, and starts it to become what it should become.. Mar 28 22:19:13 "the framework" is kind of vague Mar 28 22:19:47 Amadiro: i acquire locks when woken up by alarms, but this is a different case.. thanks though Mar 28 22:20:05 you seem to be missing some sort of fundamental understanding of threads Mar 28 22:20:06 missingno: make it less vague :) the process scheduler? the thread manager? Mar 28 22:20:09 there is only one main thread Mar 28 22:20:15 and it is launched when your process is launched Mar 28 22:20:27 and your other threads live in that same process Mar 28 22:20:41 missingno: well so far so good Mar 28 22:21:00 missingno: but normally you spawn a new thread with code from your own main thread, right? Mar 28 22:21:21 Thread t = new Thread(); t.start(); -> and that runs your run() Mar 28 22:21:36 Except you should never use Thread, use Executors instead Mar 28 22:21:45 in this case, it is not "our" code that spawns it, right? it's something outside Mar 28 22:21:46 broadcast events get run on that single main thread Mar 28 22:21:49 that is already running Mar 28 22:21:56 jaana: agreed. it was a simplistic example but thanks for the corretion Mar 28 22:22:17 missingno: the broadcasting or the receiving? Mar 28 22:22:34 the receiving Mar 28 22:22:39 right. i thought so Mar 28 22:23:46 how can a receiver i register survive a onPause()d activity, technically Mar 28 22:24:28 well i suppose onPause() is "elegible for killing" not "killed" quite yet. assume it is not visible, it is paused and was killed. Mar 28 22:24:36 what "starts" my receiver then Mar 28 22:24:49 and how, if you know that, that's a plus Mar 28 22:25:20 The BroadcastReceiver object is created when the event occurs and goes away after it returns from its onReceive(), if that's what you mean Mar 28 22:27:26 missingno: then why do you say i am lacking basic understanding of threads? Mar 28 22:29:28 your receiver is not a standalone thread Mar 28 22:29:31 it is the one main thread Mar 28 22:29:50 an event is posted to the main thread's looper which causes it to eventually execute your receiver code Mar 28 22:30:10 so the only "starting" that is happening is if you process was not running Mar 28 22:30:22 in which case the OS automatically starts your process to handle the event Mar 28 22:36:40 missingno: look, i have my app pid hosting nothing but a stopped activity. not visible, may be killed. i get a broadcast for which i have a receiver. a new thread is created in my pid for it (right? wrong? same thread as the one that pause the activity last?) and as long as my receiver lives in the same pid, that whole process isnt going to be reaped because during the rec's onReceive the whole pid is Mar 28 22:36:42 elevated to "do not kill", even if just for the short duration of the receive operation? Mar 28 22:37:40 I got the "elevated" idea from this: A process that is currently executing a BroadcastReceiver (that is, currently running the code in its onReceive(Context, Intent) method) is considered to be a foreground process and will be kept running by the system except under cases of extreme memory pressure Mar 28 22:38:38 maroloccio, no new thread is created for it Mar 28 22:38:50 Amadiro: doesn't the receiver get its own thread to process its onReceive? ok... main thread? Mar 28 22:38:56 yes, main thread Mar 28 22:39:13 how come I can't get to R.id.pnlTest inside of a clicklistener?> Mar 28 22:39:25 pnlTopup2 = (LinearLayout) findViewById(R.id.pnlTopup); Mar 28 22:39:40 inside of lvwPhones.setOnItemClickListener(new AdapterView.OnItemClickListener() { Mar 28 22:40:16 Amadiro: my confusion with this probably means i am going to learn something new Mar 28 22:40:44 Amadiro: how does my main thread get pre-empted for this? it cant be an event loop right? Mar 28 22:41:40 maroloccio, no worries, I've done like 10 years of programming with pthreads, opencl, openmp and other heterogenous APIs before looking at android, and I still don't understand half of androids parallelism and event-handling model :) It's all very different Mar 28 22:41:58 i used pthreads too. Mar 28 22:42:39 Amadiro: let us be scientific with this. let us make a falsifiable statement about this and write code that proves or disproves it Mar 28 22:43:30 guideX: post ur code Mar 28 22:43:31 Amadiro: how would you go about confirming that what you just said is true? you can't, i guess, just output the thread id.. might be the same id, different process, right? Mar 28 22:43:34 adq: I'm still in trouble. I think it's when I convert a negative two-byte value into a short. I've hit a break-point now where sampleLower8Bit = -1; sampleUpper8Bit = -13. Mar 28 22:43:49 guideX: as in pastebin it Mar 28 22:43:56 maroloccio, yes, I've done that, and in the onReceive() it will output the same thread ID as in your main activity Mar 28 22:44:21 Amadiro: well.. same id isn't guaranteed to be the exact same thread, is it? Mar 28 22:44:34 if you check the thread id Mar 28 22:44:37 rather than the process id Mar 28 22:44:59 Amadiro: java code? Mar 28 22:45:35 maroloccio, I don't have it in front of me right now, but I think I did something like... android.os.Process.myTid() Mar 28 22:45:37 Zta77, then stackoverflow, it should not take too long to get a short[] to byte[] and byte[] to short[] function Mar 28 22:45:56 adq: okay =) Mar 28 22:45:59 http://developer.android.com/reference/android/os/Process.html#myTid() Mar 28 22:46:07 just try a simple example to be sure it works, and the apply it to your stuff Mar 28 22:47:59 maroloccio, also, other stuff that shares your main thread (like your Activities) are all callback-driven, and shouldn't generally do much work on the main-thread, so I'm fairly sure that the onReceive() is executed the next time the main thread is spinning idle Mar 28 22:48:23 but my understanding of the model may be incomplete Mar 28 22:48:32 Amadiro: you are attributing this to an event loop, what i said before and was unsure about.. Mar 28 22:49:06 maroloccio, well, the event-loop is not directly visible to you, but it is there, since your activity only performs work whenever it gets a callback (whether from the UI, a callback like onPause from the system, ...) Mar 28 22:49:30 Amadiro: sure, it is external to my code though. Mar 28 22:49:34 aye Mar 28 22:52:15 nevermind I figured it out :D Mar 28 22:52:20 Amadiro: i think you have given me the right suggestion to prove/disprove that presupposition, namely myTid/myPid on Process:: Mar 28 22:52:22 just put at the top Mar 28 22:53:19 Is there any decent android or java lib implementing Rsync protocol? Mar 28 22:53:27 Amadiro: curiously, myPid/myTid seem to output the same number on my emulator.. you too? Mar 28 22:53:53 maroloccio, I think it makes sense either way; I have yet to see any part of the android API auto-spawning a new thread to do something for you unless it is explicitly stated that it does it or unless you do it yourself. Otherwise it would be really dangerous to accidentally have unsafe code Mar 28 22:54:12 maroloccio, what do you mean? Mar 28 22:54:28 you mean PID=TID? Mar 28 22:54:35 do you see different numbers if you query Process.myPid() and Process.myTid() Mar 28 22:54:48 I don't think I've ever checked myPid(), sorry. Mar 28 22:55:48 I have a very strange problem.. I am trying to update my app in the store but when I do upload the APK it says 0 devices are supported. Last version had support for 6025 devices. Mar 28 22:55:55 targetSDK version is 23, minsdk is 12 Mar 28 22:56:11 Amadiro: since they give the same number to me, i doubt they are really PID and TID. :( strange huh? Mar 28 22:56:44 Amadiro: i am expecting myPid() to be something like 26110, whilst myTid() might as well be "1"? Mar 28 22:57:00 maroloccio, well, on linux, internally threads and processes are really the same thing. So it may just be that. Mar 28 22:57:28 actually myTid() should probably coincide with Thread.currentThread().getId() no? Mar 28 22:57:45 http://stackoverflow.com/questions/4517301/difference-between-pid-and-tid check out the first response Mar 28 22:58:12 "when a process has only one thread (the initial situation and in the good old times the only one) the pid and the tid are always the same." Mar 28 22:58:53 Amadiro: good point, and good investigation. i appreciate it Mar 28 22:59:32 I would also expect it to coincide with Thread.currentThread().getId(), but I've also never checked that. Mar 28 22:59:46 Is it different for you? Mar 28 22:59:51 Anyone ever come across thi sbefore? Mar 28 23:00:29 Supported Android devices 0 devices (6025 removed) Mar 28 23:00:36 wtf happened? Mar 28 23:01:47 you added something to your manifest excluding all devices maybe, tricknology? Mar 28 23:01:57 Man, I hope now.. Mar 28 23:01:59 not* Mar 28 23:02:13 uses-feature on camera Mar 28 23:02:15 maroloccio: just set a breakpoint. not only will it list all active threads (and label the receiver one as MAIN), you can even view the stack trace Mar 28 23:02:21 and work back to where the event loop is Mar 28 23:02:33 missingno: that is a very good point! Mar 28 23:06:01 Amadiro: i suppose on a pure linux box i'd just look at /proc. probably /proc/$pid/task and see there both the pid and all the thread tids, right? Mar 28 23:06:14 missingno: i'll do just what you suggested Mar 28 23:06:38 maroloccio, that is a thing you could do, but do you really need that info? Mar 28 23:06:40 you will not see thread ids via /proc on a linux box Mar 28 23:06:47 desktop jvm threads are userland Mar 28 23:07:06 maroloccio, it's probably easier to look at the documentation for intents and such Mar 28 23:07:57 missingno, hmm? I'm pretty sure both OpenJDK and oracles JRE spawn proper OS-threads when you create a new thread in java Mar 28 23:09:06 at least since like java 1.2 Mar 28 23:13:47 java threads haven't been green since like 1.1 Mar 28 23:13:49 or 1.0 even Mar 28 23:16:05 ya'll are probably right Mar 28 23:33:17 omg things went from bad to worse.. my app uses a library ive constructed.. usually the whole APK is about 15 MB, bow it’s 5.. Mar 28 23:33:20 no* Mar 28 23:33:24 now** Mar 28 23:33:33 huh Mar 28 23:34:30 my lib is marked as such :( Mar 28 23:38:42 and play store just froze on me Mar 28 23:38:42 lol Mar 28 23:39:55 who's hiring near the chicagoland area? Mar 28 23:40:50 lol this job... Trying to put our dependencies in nexus instead of pasting libraries into the proper libs/ folder like idiots Mar 28 23:41:13 in nexus? Mar 28 23:41:17 to do so I have to do a mountain of paperwork. For many of these, I don't know which version the jar is Mar 28 23:41:32 s73v3r: its like maven, but internal. Packages in maven can't be trusted apparantly Mar 28 23:41:42 actually, that’s not a bad practice Mar 28 23:42:02 you keep control over your dependencies in house, so something like left-pad can’t really happen Mar 28 23:42:21 anyway, the security people want answers that I don't have Mar 28 23:42:31 you absolutely should have those answers Mar 28 23:42:36 we have one jar called classes.jar. No version in the manifest Mar 28 23:42:52 and where did you get it from? Mar 28 23:43:00 if you can’t answer that, maybe you shouldn’t be using it Mar 28 23:43:07 they emailed me a zip file with our dependencies on the first day :/ Mar 28 23:44:02 lol Mar 28 23:44:04 then bug them Mar 28 23:44:25 If you wanna relocate to LosAng.. Mar 28 23:45:11 But for real, you’d quit over that, Rusty? Mar 28 23:45:42 tip of the iceberg my friend Mar 28 23:45:53 it just illustrates how disorganized everything is Mar 28 23:46:25 but this is an effort at getting organized Mar 28 23:46:57 and I'm the only one trying Mar 28 23:47:10 is what it feels like Mar 28 23:47:46 Rusty: i vote keep checking your deps. it's not a bad idea.. Mar 28 23:55:27 do you have a CI build set up at work? Mar 28 23:55:51 creating the daily build manually gets pretty old Mar 28 23:56:25 yes, we do Mar 28 23:57:52 thats the eventual goal if I can stand this place for long enough Mar 28 23:58:06 I use CI, too. Mar 28 23:58:21 but its pointless if people keep putting broken code into source control Mar 28 23:58:30 What do you guys use for your builds/testing? Mar 28 23:58:43 hah testing? Mar 28 23:58:44 Btw, as we're talking about that: because I was so annoyed by the quality of available crash analyzers, I am now working on my own: https://imgur.com/a/YL2wA Mar 28 23:59:05 we use Jenkins Mar 28 23:59:12 (Automated crash analysis of submitted Bug Reports, obviously) Mar 28 23:59:35 justJanne: I miss old TestFlight Mar 29 00:00:12 Ever used TestFairy? Mar 29 00:00:16 (not for builds but testing) Mar 29 00:00:17 no Mar 29 00:00:32 We use that when QA is manually checking our apps Mar 29 00:00:34 i’ve used Hockey and Fabric Mar 29 00:00:42 automatic lots of stuff Mar 29 00:00:59 What is the best practice nowadays to allow the user to select an image from an intent Mar 29 00:01:29 i don’t think it ever changed Mar 29 00:01:32 I need to cover API 23's "runtime permission request" model, as well as have a in the manifest for old devices Mar 29 00:01:49 s73v3r: API 23 seems to be changing things Mar 29 00:02:05 heh runtime permissions Mar 29 00:02:09 i don’t think this changed anything. You’re not requesting permission, you’re launching an image picker app Mar 29 00:02:34 well.. that depends on where his images are being read from Mar 29 00:02:36 s73v3r: You need the external storage permission if the user selects a photo from their SD card Mar 29 00:02:48 So you wanna know when to ask for it? Mar 29 00:03:01 tricknology: I just want the simplest way to allow my users to select any image Mar 29 00:03:18 API 23 throws a PermissionException with the old code Mar 29 00:03:20 use target version 22 lol Mar 29 00:03:24 shouldn’t the photos app be the one to request that permission? Mar 29 00:03:28 teasiers way ;) Mar 29 00:03:31 easiers* Mar 29 00:03:50 tricknology: true, no need to update code Mar 29 00:03:58 other way is to do it when you choose the image Mar 29 00:04:22 or sometiem between starting your activity and needing the permission Mar 29 00:04:32 tricknology: like on onActivityResult? or before doing startActivityForResult? Mar 29 00:04:39 Or I think you can still request them all on app start Mar 29 00:04:54 yeah, but that’s not the way you want to do it Mar 29 00:04:58 depends on how your app flows. IIRC you can save the response to the permission Mar 29 00:05:11 no s73v3r you’re right Mar 29 00:05:35 If I am going to be using a Retofit instance several times throughout an Activity, is it OK to store it as an instance variable and instantiate in onCreate of the Activity? Mar 29 00:05:52 should be fine Mar 29 00:05:56 Assuming baseUrl and converterFactory are same for all calls Mar 29 00:06:15 Also, I am doing the same for the API (retrofit.create(...) Mar 29 00:06:26 I suppose that should be fine also? Mar 29 00:06:28 i would advise against calling Retrofit directly in the Activity, but caching the retrofit instance is fine Mar 29 00:06:37 MarkyC: consider the performance of your app, if you’re switchign activituies and it asks you for a permission it might sem kinda janky, lkewise, if you load your activity with some stock image ( ? ) and then ask for permission it gets the point across of why you’re requesting it Mar 29 00:06:45 then refresh your view with the loaded rewources Mar 29 00:06:45 How come s73v3r Mar 29 00:06:53 but im thinking of like a grid of images here.. Mar 29 00:06:58 .enqueue is async so I dont think there is an issue Mar 29 00:07:07 cause now you’ve coupled your activity to your network Mar 29 00:07:16 you don’t want to do that Mar 29 00:07:22 The activity relies on the network though Mar 29 00:07:34 And if onFailure is called, or the request is not successful, that is handled Mar 29 00:07:47 the activity does not rely on the network; it relies on the data fetched Mar 29 00:07:52 tricknology: s73v3r: fair enough, I'll give some more detail: The app I'm building allows users to submit photos for touching up. When they click the camera icon here, I want to let them select a photo: http://i.imgur.com/QjtHwFx.png Mar 29 00:07:54 it should not care where that data comes Mar 29 00:07:57 from Mar 29 00:08:11 How would you set it up s73v3r Mar 29 00:08:36 Onclick should be ok then Mar 29 00:08:42 have a separate repository object which is responsible for fetching the data. the activity would ask this for the items Mar 29 00:09:09 if you go to the 9s and make a proper interface and such, then you theoretically could switch out retrofit with something else should the need arise Mar 29 00:09:20 like a test object for use in automated testing Mar 29 00:09:29 "Own the seams" ^ Mar 29 00:10:00 So would the repository object have static methods to fetch data, or maybe be a singleton s73v3r ? Mar 29 00:10:23 doesn’t have to be either Mar 29 00:10:28 s73v3r: my issue is that I want to self host that stuff. Mar 29 00:10:38 How would you have it s73v3r Mar 29 00:10:38 in fact, I’d be against either Mar 29 00:10:40 See waht you can do to save that response though, IIRC it will ask every time if you don’t, I’m not sure the docs address that/ Mar 29 00:10:40 And fabric is not ideal either. Mar 29 00:10:44 Due to that. Mar 29 00:11:16 drose379: Just a regular object. Why would it have to be anything else? Mar 29 00:11:17 So, having used acralyzer before, I am now working on my own, based only on memories of acralyzer and 2 screenshots of fabric. Mar 29 00:11:40 Idk every time you want to use it youd have to do new Repo..., unless you store it as an instance I guess Mar 29 00:11:45 so? Mar 29 00:11:53 True Mar 29 00:12:05 if you want, you could do dependency injection Mar 29 00:12:19 But the Repo methods would have to be run asynchronously Mar 29 00:12:35 So if the repo method calls ...enqueue()..., which is on a background thread Mar 29 00:12:43 Hi, i made a level based game. Each level is coded via a string. Whats the best practice to store ~100 levels in the app ? Mar 29 00:12:48 And from the UI, I do Repo.getThis()... would that be async?? Mar 29 00:13:14 any way to animate faster than 1mS? Mar 29 00:13:21 drose379: yes Mar 29 00:13:34 setDuration uses longs…1 ms is the fastest theoretically…anyone have any other options? Mar 29 00:13:49 s73v3r: sounds nice actually, I think im losing my mind though... Ive changed my design at least 3 times in the past weeks Mar 29 00:14:15 this isn’t changing design that much; just extracting one responsibility off to it’s own object Mar 29 00:14:42 is it possible to have predefined stuff in sharedPreferences ? Mar 29 00:14:50 True, I've implemented retrofit into two actiivties so far, contemplating whether to strip it out again and go with the centralized object Mar 29 00:14:54 Seems way cleaner TBH Mar 29 00:14:56 sponge-tmp: just put it there on launch Mar 29 00:15:22 s73v3r: mhh good point Mar 29 00:15:39 s73v3r: I have tons of different API Calls my app can make, would you say I should put all those methods in one Repository object? Mar 29 00:15:53 depends on how many you have Mar 29 00:15:58 Prob 15 Mar 29 00:16:02 hey pawansolanki have you tried scaleCurrentDuration Mar 29 00:16:11 scaleCurrentDuration(float) Mar 29 00:16:19 if you have a lot, and not every screen needs them, and they neatly divide into separate areas, split them into separate Repos Mar 29 00:16:40 Ok, one more thing, since this is async how would I go about passing the data back to the activity which called the method Mar 29 00:16:44 oh snap.. nevermind.. it only does this Mar 29 00:16:45 EventBus? Mar 29 00:16:45 mDuration = (long) (mDuration * scale); Mar 29 00:16:47 still a long Mar 29 00:17:11 just pass in a callback Mar 29 00:17:23 Ill look into that method, thanks. Mar 29 00:17:27 like create a callback interface? Mar 29 00:17:59 pawansolanki: I think it’s not gonna help.. it gets casted to long Mar 29 00:18:07 yeah Mar 29 00:18:13 Ok, thanks s73v3r im gonna try this out Mar 29 00:18:36 tricknology: ahh yeh :-/ “mDuration = (long) (mDuration * scale);” Mar 29 00:18:47 Retrofit + Gson is gr8 by the way Mar 29 00:18:51 I don’t think there is one Mar 29 00:18:55 lookin at the source.. Mar 29 00:19:29 ms is pretty fast though.. Mar 29 00:20:03 hahaha tricknology yea; im making an app that uses shutter speeds purposefully tho; Mar 29 00:20:14 oh man Mar 29 00:20:31 would be nice if there was a way; but if its limited, its no biggie. It is pretty fast anyways Mar 29 00:20:34 but as an animation? Mar 29 00:20:52 I know you can control a lof of fine camera features > 5.0, but an animated shutter is not one of them Mar 29 00:21:15 Turns out my implementation is a little wonky right now too. I’m trying to an an linear alpha gradient in, then out. Mar 29 00:21:39 reverse! Mar 29 00:21:56 Image is INIVISIBLE at start. I use a listener method on the start of the animation to set the image to visible…then when it’s done, it hides the image. Mar 29 00:22:10 tricknology: yep, i set it to reverse, repeat of 1. Mar 29 00:22:34 do you see a flash and no alpha? Mar 29 00:22:47 problem is even if there is a 0 ms speed fed in, the system will still temporariliy show the image.. Mar 29 00:22:55 because of the way ive’ implemented it…yep Mar 29 00:23:06 look at all the overrides of objecanimator Mar 29 00:23:10 or animator, whichever one you’re using Mar 29 00:23:14 i prefer pbjectanimator Mar 29 00:23:28 you could be missing one Mar 29 00:24:26 Hey so when you guys do nightly builds, who/what tests them? Mar 29 00:25:24 QA staff Mar 29 00:34:30 manually? no automation Mar 29 00:34:37 nno little robots pressing buttons? Mar 29 00:35:17 yup Mar 29 00:35:47 i’d like to have some automated tests, but even if we had those, we’d still be doing manual testing as well Mar 29 00:36:54 i you dont mind me asking, how many Android devs to QA? Mar 29 00:37:06 and is QA only for mobile or web as well? Mar 29 00:37:10 (if you have a web dept) Mar 29 00:37:43 Trying to get an idea of how other companies are organized. I feel liek we’re lacking like 2 QA’s and an Android dev. Mar 29 00:39:28 we have web qa as well, but the people here are dedicated to mobile Mar 29 00:39:57 we’ve got 4 qa people, and about 7 or so Android devs and another 5 or so iOS devs Mar 29 00:42:08 heh, we have 1.5 Android devs, 2 QA’s and 1.5 iOS devs, 6 web devs, and 2 or 3 backend. WA WA’s it all Mar 29 00:42:11 I do Android only for side projects ($dayJob is running a Canadian eCommerce site), but I really try to lean on automated testing (both instrumented and unit tests), especially since sometime I don't look at the codebase for over a year. TestObject is also pretty neat Mar 29 00:42:47 WA= QA Mar 29 00:43:25 we used to only have 2, who QA’ed across all Mar 29 00:43:42 but then the project for big client ramped up, and we hired contractors Mar 29 00:45:16 well it’s nice your company can adapt like that. Mar 29 00:53:29 any decent company should be able to do the same Mar 29 00:59:51 I have an imageview that I’m rotating; when i do it gets clipped. is there a way to prevent this? i’m using the setRotation(float rotation) method from ImageView class Mar 29 01:14:21 i have a few columns of linear layouts setup on a page, when i put a text view into one of the linear layouts it stretches out the width of the linear layout... is there any way i can force the text view to wrap the text so it doesn't alter the width of the linear layout that it is contained in Mar 29 01:15:38 pawansolanki: try `android:clipChildren="false"` on the parent view Mar 29 01:16:02 was that for me? Mar 29 01:22:20 I have a notification for audio playing in the background, and when the user clicks it, it leads back to the activity. I can’t figure out how to send “realtime” data (the position of the media player) in the intent to the activity when it’s clicked, though, since notifications don’t really have an onclicklistener I can use to grab data. Mar 29 01:22:39 Any advice? How do apps do this? Mar 29 01:22:57 I’m just trying to resume the audio in the activity at hte same spot Mar 29 01:29:24 when I have a device, how do I add it to android studio so I can use it and debug and stuff Mar 29 01:32:54 guideX: if you plug it in, it should show up in AS as long as you have debugging enabled Mar 29 01:32:57 guideX: You probably just need to make sure you have USB debugging enabled on the device and plug it in Mar 29 01:34:12 ah ok Mar 29 01:34:13 guideX: Settings > all the way down to “About phone” > all the way down to “Build number” > tap that line a bunch of times in a row Mar 29 01:34:48 ah ok Mar 29 01:34:56 i found a secret lol Mar 29 01:35:05 Related, tap your Android version to play an impossible flappy bird clone Mar 29 01:37:01 windows is installing adb drivers for the phone Mar 29 01:37:43 Can’t help ya there, I’m not a Windows guy Mar 29 01:38:10 windows helped me with that :D Mar 29 01:41:27 hey guys Mar 29 01:41:47 quick question regarding android dev for 1.6 Mar 29 01:44:58 "Oracle is seeking as much as US $9.3 billion in damages in a long-running copyright lawsuit against Google over its use of Java in Android, court filings show" Mar 29 01:45:02 lol oracle Mar 29 01:45:49 wow this has been going on for 6 years ... Mar 29 01:45:55 Is anything gonna happn? Mar 29 01:46:28 "They're headed back to a federal district court in San Francisco for a new trial due to begin May 9" Mar 29 01:46:43 hurry up flutter dudes ! Mar 29 01:46:57 night folks Mar 29 01:47:00 oh ffs, instead of taking people to court for useless shit, why don't they spend time/money fixing their current shit Mar 29 01:47:21 Whats flutter all about Mar 29 01:48:02 Is it JS? Mar 29 01:50:49 drose379 flutter is dart Mar 29 01:51:04 Might anything actually happen from this lawsuit g00s Mar 29 01:51:17 hey Mar 29 01:51:25 i am using google places api Mar 29 01:51:30 Hey, is there any fully commandline way to build android projects? Mar 29 01:51:34 and keep getting a null pointer error Mar 29 01:51:39 No IDE involved Mar 29 01:51:48 i doubt it. oracle says $9 billion in damages, google laughs and says maybe 9 million in damages, and judge decides some price between :D Mar 29 01:52:02 at the section https://dpaste.de/iOmQ#L114 Mar 29 01:52:16 anyclue on what I could be doing wrong? Mar 29 01:52:20 rgb-one gradle is command line O.o Mar 29 01:52:26 So Android will continue using Java no matter what g00s Mar 29 01:52:38 drose379 nobody knows , probably though Mar 29 01:52:48 Shit Mar 29 01:53:24 i'm still waiting for the day google says "ok guys, android dev is now web dev!" Mar 29 01:53:32 cause web is our platform Mar 29 01:53:48 What do you mean web is our platform Mar 29 01:54:19 if google has a platform, its the internet + internet standards Mar 29 01:54:25 Oh I see Mar 29 01:54:35 How would android dev be web dev though Mar 29 01:54:44 Hybrid apps exist now, no good Mar 29 01:54:51 i was just reading JS is getting bluetooth API Mar 29 01:54:59 it'd run an embedded version of node ;) Mar 29 01:55:33 g00s, interesting, so it can connect to devices BLE radios? Mar 29 01:56:09 Do you guys know JS as well as you know java? Mar 29 01:58:06 drose379: there's #javascript Mar 29 01:58:37 No im not looking to ask a question Mar 29 01:59:11 Im JW cause we were talking about the lawsuit between oracle and Google, now im affraid all my time learning java will go to waste :0 Mar 29 01:59:26 drose379 https://webbluetoothcg.github.io/web-bluetooth/ Mar 29 01:59:52 drose379: Java is the most used programming language in the world. You're not wasting your time learning it Mar 29 01:59:52 drose379 java is good to know anyhow Mar 29 02:00:03 I'm trying to build a project in Windows 10 from the command line (Android Studio has struggled to the point where I can't really use it anymore since the recent windows update) and am getting the following error: http://pastebin.com/gmqW4Kxv This might be simple, but I haven't found a solution yet. Any help much appreciated! Mar 29 02:00:15 Yeah but I like android Mar 29 02:00:51 http://stackoverflow.com/research/developer-survey-2015 Mar 29 02:01:01 drose379: Android is actually moving to Java proper (currently Android isn't technically/legally Java). It's safe to say Java is here to stay on Android Mar 29 02:01:11 Sweet Mar 29 02:01:22 java may be losing to javascript these days in the "most used in the world" argument Mar 29 02:02:26 Later guys Mar 29 02:02:49 br4ve-trave1er: depends where you look I guess (TIOBE vs StackOverflow vs Github). Maybe I should have said "one-of" Mar 29 02:03:56 It does depend where you look. Just goes to show they're both insanely popular languages Mar 29 02:16:39 I'm reading this from google Mar 29 02:16:41 'You will give your end users proper notice about the implementations and features of Google Analytics you use (e.g. notice about what data you will collect via Google Analytics, and whether this data can be connected to other data you have about the end user). You will either get consent from your end users, or provide them with the opportunity to opt-out from the implementations and features you use.' Mar 29 02:16:53 When they say must give consent, does it have to be explicit like giving a button Mar 29 02:16:56 or can I merely just say Mar 29 02:17:15 'By using this application you give consent for google analytics to be used' Mar 29 02:17:17 or something like that Mar 29 02:21:01 i have a preference to enable / disable analytics Mar 29 02:21:38 g00s: but would that cover it? Mar 29 02:21:43 Can you consider that as consent? Mar 29 02:22:35 i guess in my case its opt-out Mar 29 02:23:59 br4ve-trave1er, javascript will slowly fade as other languages that work on the browser become viable Mar 29 02:25:57 well, not so much fade, but other things will just be viable to replace it and work instead of javascript Mar 29 02:40:57 Assuming I have purchased an IntelliJ Ultimate Edition license for other purposes, should I use IntelliJ or Android Studio. What if everyone else uses Android Studio? Mar 29 02:41:26 You can still do android dev with IntelliJ Mar 29 02:41:38 just get the standalone android sdk Mar 29 02:41:45 Yeah that's why I'm asking. Mar 29 02:42:05 Like for instance one thing I seemed to notice is that IntelliJ may lag behind Android Studio in terms of features. Mar 29 02:42:19 Are you missing any features? Mar 29 02:42:25 thats all that really matters Mar 29 02:43:05 No it's more hypothetical at this point. Mar 29 02:43:16 Well work with what you got Mar 29 02:43:31 if you run into roadblocks then you know your alternative Mar 29 02:43:33 I'm a backend dev, and I'm starting to work more and more with the mobile devs, and I'm wondering if I should just set everything up with Android Studio or if IntelliJ will work. Mar 29 02:43:49 fair enough Mar 29 02:45:06 In android studio if I have a 1 project that depends on 1 library project, is it possible to just build the AAR of the library project? Mar 29 02:45:15 without building the app project? Mar 29 02:46:13 when I try to build the AAR it doesn't finish, but says everything was succesfull but if I build the app project which depends on the library project. It builds the AAR of the library project. **** ENDING LOGGING AT Tue Mar 29 02:59:58 2016