**** BEGIN LOGGING AT Wed Jan 11 03:00:02 2017 Jan 11 03:34:49 Evening. Jan 11 03:35:15 Ologn https://www.cnet.com/news/apple-said-to-be-working-on-ar-glasses-with-carl-zeiss-augmented-reality/ Jan 11 03:35:30 Cool. Jan 11 03:38:39 g00s, cool Jan 11 03:40:08 I just implemented some Xlib functionality for XFillPolygon into OpenGL - which XScreenSaver Android then translates into OpenGLES Jan 11 03:43:57 I'm working on a project that involves two different android apps, on two different devices, communicating via UDP. They both use a JAR file of a third set of utilities, etc. I have the source for that jar file, how do I make it so that when I do "go to implementation" of one of the library methods, it opens up the source? Jan 11 06:40:10 hi all Jan 11 07:12:05 How do you guys track notification clicks, ie, whether a user clicked on a notification or not? Where do you fire the event? Jan 11 07:52:03 * thepoosh taps raoul11 Jan 11 07:53:09 g00s: evening Jan 11 07:54:38 hey thepoosh Jan 11 07:55:49 what's news? Jan 11 07:56:51 the channel was below 300 for the first time, i can remember anyhow Jan 11 07:57:42 why do you count the participants?! Jan 11 07:59:09 thepoosh we used to have 600-700 at one time Jan 11 07:59:47 well, it's winter Jan 11 07:59:50 people are cold Jan 11 07:59:54 and you are sick of tech Jan 11 07:59:59 it drove everyone out Jan 11 08:01:06 thepoosh lol did you see this nice app, made in israel ? http://newatlas.com/sleep-apnea-app/47330/ Jan 11 08:01:12 there are still some good things to do Jan 11 08:01:37 cool Jan 11 08:01:52 there are a lot of things happening here in startup nation Jan 11 08:01:56 come join us! Jan 11 08:06:31 listening to obama's farewell; i'll miss an adult in the whitehouse Jan 11 08:09:23 * raoul11 thepooshes thepoosh Jan 11 08:10:38 idk, in the israeli point of view he became quite childish on the way out Jan 11 08:10:41 raoul11: HAI Jan 11 08:11:07 hi buddy Jan 11 08:11:11 hows was ta last nite Jan 11 08:11:40 raoul11: the title was "stretching out of your comfort zone" Jan 11 08:11:51 I was the only male in a 50-60 women crowd Jan 11 08:11:58 mission accomplised! Jan 11 08:12:10 what Jan 11 08:12:14 also, wrote this: https://www.facebook.com/photo.php?fbid=10154073207111960&set=a.10150241070976960.322491.653801959&type=3&theater Jan 11 08:12:38 g00s: the low count might be a split, there are many of those lately Jan 11 08:12:38 oh Jan 11 08:13:05 nice stuff Jan 11 08:13:12 totes Jan 11 08:14:43 thepoosh dunno, netanyahu seems like the one who is out of line Jan 11 08:14:55 time for bed, toodles ! Jan 11 08:41:32 the question is, genuinely, if developers aren't here, where are they? Jan 11 08:43:11 ios devs are there Jan 11 08:43:29 Tenerife, drinking coctails? Jan 11 08:43:58 I wouldn't join irc if I was android developer, to receive critics in my face Jan 11 08:44:26 :) Jan 11 08:44:47 it's warmer here than in Tenerife Jan 11 08:45:07 But you're far away. Jan 11 08:45:45 nope, I'm right here Jan 11 08:58:37 Hi all, I'm looking to use material animations in my app but I'm wondering what you guys use: an animation lib or using the default animations (support)? Jan 11 09:00:18 is there any reason to extend fragmentactivity over appcompatactivity? Jan 11 09:07:46 raoul11: none that I can currently see ;-P Jan 11 09:08:03 oki Jan 11 09:11:46 Hey. What's the best resource for learning Android development if you already are experienced with C and C++? Jan 11 09:15:05 official resource does not teach c or c++ Jan 11 09:15:20 What? Jan 11 09:15:23 nothing Jan 11 09:15:44 look at topic dumbfuck Jan 11 09:16:24 I'm not sure if you are mentally challenged but you obviously didn't even understand the question. Jan 11 09:17:16 Also, by your writing style, I'm assuming you are in the range of 11-13 years old. Jan 11 09:17:41 Rikya: d.android.com Jan 11 09:18:39 if you don't want to do java, you still have to do some java, and you can do ndk c/c++ Jan 11 09:18:59 first, learn some java... Jan 11 09:19:10 I'm fine doing Java if it's a much better alternative and I'm familiar with Java too. Jan 11 09:19:16 But my professional work is in C and C++. Jan 11 09:19:26 also, learn not to respond to idiots with more idiocy Jan 11 09:19:44 Also, is Android studio preferred or could Eclipse with the plugins do as well? Jan 11 09:19:59 android studio is absolutely preferred, Eclipse is EOLed Jan 11 09:21:41 Oh okey great :) Jan 11 09:21:53 First familiarize yourself with Java, then move over and get acquainted with the Android SDK Jan 11 09:22:25 And learn how it handles the app lifecycle and resources Jan 11 09:24:35 I guess I will be fine with Java, just ordered the "Android Programming" book and I will see how it goes. Jan 11 09:24:59 whatever book that is, it's probably out of date Jan 11 09:25:06 Or if you have other recommended books, let me know. Jan 11 09:25:38 I'd suggest looking at the Busy Coder's Guide, simply because it's an ebook with fairly major updates a couple of times a year Jan 11 09:28:27 That book is older than the one I got. Jan 11 09:28:39 https://www.amazon.com/Android-Programming-Nerd-Ranch-Guide/dp/0134171454/ref=sr_1_1?ie=UTF8&qid=1484126914&sr=8-1&keywords=android+programming Jan 11 09:30:12 erm... the last release of the Busy Coder's Guide was on Monday Jan 11 09:31:41 Is this the site you are using? https://commonsware.com/Android/ Jan 11 09:31:49 yes Jan 11 09:32:25 Oh okey thanks. Jan 11 09:40:46 how do you guys handle automatic testing in android devices? We have dedicated mobile phones in datacenter, but those are charging 24/7 and that is problem the batteries does not last many months. We are trying to find way to control USB power in our servers, but not any luck yet.. it seems pretty difficult problem which is not solved or? Jan 11 09:41:14 Can support libraries have AppControllers? Jan 11 09:41:31 in rasperry pi3 we can control usb power, but the problem is that rasperry pi does not charge that fast Jan 11 09:43:58 zetab: you can switch usb power on/off Jan 11 09:44:31 squ: but i need root my phones? Jan 11 09:44:43 no, on machine Jan 11 09:44:50 I mean server Jan 11 09:45:03 yep that is what i have tried to find, but google just says "some motherboards support that" but where i can find models which supports that Jan 11 09:45:12 i have tried to servers now and in those i cannot control usbs Jan 11 09:45:16 two* Jan 11 09:45:49 well I did turned usb power on/off on my laptop with freebsd Jan 11 09:46:24 yep but i think we need better than laptop :) we have quita many phones Jan 11 09:46:41 just trying to tell you its possible Jan 11 09:47:00 yep i have heard that its possible that i am interested about motherboard models if someone knows Jan 11 09:47:09 https://www.freebsd.org/cgi/man.cgi?query=usbconfig&sektion=8 Jan 11 09:47:24 usbconfig -u 1 -a 2 power_off Jan 11 09:47:25 usbconfig -u 1 -a 2 power_on Jan 11 09:48:01 the problem what in those two servers i had, was that the usb power was still on even the machine was totally shutdowned Jan 11 09:48:21 and in bios there is no option to choose any other method Jan 11 09:48:55 definitely not the android channel to ask, I'd try one of freebsd mailing lists which looks more relevant Jan 11 09:49:33 something hardware related Jan 11 09:49:39 yep Jan 11 09:50:48 zetab: and it may look like its giving power, but its not Jan 11 09:51:07 i took my phone out of wire and back again Jan 11 09:51:29 maybe use some precise measurements to be sure Jan 11 09:53:42 all laptop motherboards in my opinion should be able to control usb power, by design, to save battery power Jan 11 10:02:10 is it possible to bundle a LatLngBounds object and pass it via intents? Jan 11 10:02:12 I'm using this as the basis for a timelapse app: https://github.com/googlesamples/android-Camera2Basic , and I try to change the exposure settings because dark scenes are barely exposed at all, while the default camera app of this phone exposes them quite well. Jan 11 10:03:10 raoul11, try it. from what I know it should work. Jan 11 10:03:21 (it implements parcelable) Jan 11 10:03:23 it does work Jan 11 10:03:26 (: Jan 11 10:03:31 yes it does Jan 11 10:10:23 Hello Jan 11 10:10:52 what is the best way to make a widget update itself within a period of time? Jan 11 10:16:50 defining the update time in XML? Jan 11 10:19:50 Can I calculate a meaningful difference percentage of two images by their bytestream alone? Jan 11 10:20:08 Or do I have to do it per pixel with renderscript? Jan 11 10:21:32 Has anyone used firebase remote config? Doesn't it fetch new values automatically without me calling fetch()? Jan 11 10:23:39 Syzygy, compressed bytestream? Jan 11 10:24:08 woot woot Jan 11 10:24:21 astroduck: I use remote config Jan 11 10:24:31 and you must call fetch and activateFetched as well Jan 11 10:25:26 tsousa: sounds like a JobScheduler thing Jan 11 10:25:59 Mavrik, Image.getPlanes()[0].getBuffer() as aquired by ImageReader.aquireNextImage() Jan 11 10:26:01 Mavrik, the updates are a value that i store in the database Jan 11 10:26:30 thepoosh, never used it. will google it Jan 11 10:27:19 Syzygy, well, that's decompressed pixels Jan 11 10:27:35 if you do comparison in Java or Renderscript it doesn't make much difference does it? :) Jan 11 10:27:49 you can always subtract the arrays and sum them together to get (very rough) error Jan 11 10:27:57 that would be fine. thanks Jan 11 10:28:19 Hi, I have a problem wirth scrollview: ScrollView->Linelayout->ImageView... I change ImageView height programmatically and scrollview does't scroll... I put android:fillViewport="true" but nada, don't scroll Jan 11 10:30:08 This is layout http://pastebin.com/6FeZGggD Jan 11 10:34:57 Mavrik, any idea how I should deal with the difference in length of the byte arrays? Jan 11 10:39:51 If your pictures are of the same size, the byte arrays are the same size. Jan 11 10:40:00 If they're not, your images aren't the same anyway. Jan 11 10:42:36 I save them in google drive via: https://gist.github.com/Syzygy2048/299e37d6a858942546ce484754a18baa Jan 11 10:43:12 wait what. Jan 11 10:43:18 sorry, left a part out, but updated it now. Jan 11 10:43:23 Why are you saving images in RAW form without compressing? O.i Jan 11 10:43:54 mostly because I can. but apparently I can't because they have different sizes in drive. Jan 11 10:44:12 so either the process of saving it in drive adds compression or they're returned in a compressed format. Jan 11 10:44:43 that will make a single picture about 10-50x the size. Jan 11 10:44:50 and you'll make clients upload that? Jan 11 10:45:20 it's over wifi anyways. but somewhere compression is added Jan 11 10:46:16 Wifi or not. Jan 11 10:46:19 It's utterly dumb. Jan 11 10:46:26 Not to mention it'll take a long time to even save to flash. Jan 11 10:46:32 You never work with raw video or images. Jan 11 10:46:36 At least compress them PNG or something. Jan 11 10:47:20 Right now they're compressed anyway. I planned to add compression later, but if I want to compare them via their byte arrays I need them uncompressed. Jan 11 10:49:16 The code is a slight modification of https://github.com/googlesamples/android-Camera2Basic . Any idea where I can request raw images instead? Jan 11 10:55:06 I guess I'll just convert to bitmap and compare the pixels with renderscript then... Jan 11 11:53:35 If you want to have an animation like the 'Rectangular transformation' in https://material.io/guidelines/motion/transforming-material.html# What would you guys use? Is this something with Transitions & Scenes? Jan 11 13:03:37 pfn: do you know if there's any way to make the "Calling new methods on older versions" lint work for scala code? Jan 11 13:07:38 I'm trying to do bitmap.getPixels(pixelArrayWithWidthXHeight, 0, width, 0, 0, width, height); and it returns a pixel array that's just 0. any idea what could be wrong there? Jan 11 13:09:32 Syzygy, maybe your height is 0 Jan 11 13:09:47 otherwise we could not guess without more info Jan 11 13:12:31 width is 1280, height is 720. here's all the relevant code https://gist.github.com/Syzygy2048/9449e145bec58383d2c5df8193c21b06 Jan 11 13:16:03 here is what bmp looks like: https://drive.google.com/file/d/0B0U5A1Pu65Bgd292YnQwSUE0aEU/view?usp=sharing most of it is black, so 0 would almost be valid, but there are some highlights that should have some value Jan 11 13:16:14 hi, could anyone help me with cm13 gaining root access in terminal? Jan 11 13:16:35 TwistedParticle, #android-root ? Jan 11 13:17:59 adq, can I provide more info? Jan 11 13:18:44 im already on that channel but no one is replying Jan 11 13:19:01 #android-root neither Jan 11 13:19:18 o im sry Jan 11 13:19:20 so: i got Activity A - contains a viewpager with two fragments init (RV, MAP). when a user clicks an RV item, another dynamic fragment should be added and take up the entire screen Jan 11 13:19:22 got confused Jan 11 13:19:35 TwistedParticle, have you tried typing su? Jan 11 13:20:12 should i create the 3rd fragment inb4, and just add it dynamically to the viewpager and destroy it when im done with it? Jan 11 13:20:12 raoul11, would a dialog fragment make sense? Jan 11 13:20:19 full screen Jan 11 13:20:46 Syzygy, so what you said in fact is you have an array but it contains 0x00000000 for every cells Jan 11 13:20:47 I think dialog fragments can be fullscreen. Jan 11 13:20:54 because i understood you had a zero array lenght...... Jan 11 13:20:55 hmm Jan 11 13:20:56 adq, yes, it seems that way. Jan 11 13:20:57 length* Jan 11 13:21:06 well, first advice is next time explain better your problem Jan 11 13:21:06 How can I add elevation to a view and increase it on focus, like it happens on a button? Jan 11 13:21:09 Syzygy, yes that's what im trying Jan 11 13:21:21 this is actually a good idea if they do Jan 11 13:23:07 Syzygy, well you could put a breakpoint near your bitmap and inspect in the debugger its content, because if everything is transparent (0 is 0x00000000 which is transparent black since alpha is 0, not really solid black) Jan 11 13:23:24 what about the SmartFragmentStatePagerAdapter Syzygy ? Jan 11 13:23:32 you're probably not reading the bitmap you expect to read if there all cells are transparent Jan 11 13:24:05 adq, pretty much the next thing i do is send it to dropbox where it arrives the way I expect it. Jan 11 13:24:41 raoul11, no idea, but why not. you could also just try doing it via an activity. Jan 11 13:24:58 wait Jan 11 13:25:08 Syzygy, the .copyTo is for renderscript, right? Jan 11 13:25:33 yes. and that part of the code is working (also, i meant i send it to google drive, not dropbox) Jan 11 13:25:58 hmmm Jan 11 13:26:41 it shouldn't be transparent either since it isn't on drive (i showed you one of the bmps in my drive earlier) Jan 11 13:27:10 yup i saw the pic Jan 11 13:27:53 oldAlloc is an allocation as part of renderscript. Jan 11 13:28:05 yeah i know well enough RS Jan 11 13:28:15 and copyTo would force the sync, so it's not an async issue there Jan 11 13:30:19 (oops, i meant blocking/non blocking instead of sync/async) Jan 11 13:31:09 i assume copyTo is blocking then? seems to be in any case. Jan 11 13:32:24 you coul try rs.finish() after copyTo to be sure your kernel has finished computing Jan 11 13:32:32 in case for unknown reason, copyTo here is not blocking Jan 11 13:32:58 other than that, i have no idea, try on another device (some devices ship bad RS driver, or has known platform issue) Jan 11 13:34:30 also you should do your differenceSum in RS instead of java, but that's unrelated to your issue Jan 11 13:34:36 but it seems like renderscript is working fine, the bitmap.getPixels(...) method is the one that's not working. Jan 11 13:35:17 might as well try calculating the difference sum via renderscript then. Do you know if there's any ScriptIntrinsic I could use for that or would I have to write my own? Jan 11 13:36:09 here you have a few list of intrinsics: https://developer.android.com/reference/android/renderscript/ScriptIntrinsic.html Jan 11 13:37:08 it's close to the blend one i think, but in case you better roll your own, you will also learn how a kernel works Jan 11 13:37:13 it's very interesting and powerful Jan 11 13:37:23 (it's similar to opencl if you know it a bit) Jan 11 13:37:47 I've a background in computergraphics, so I know a thing or two about kernels. Jan 11 13:38:06 nice Jan 11 13:38:20 be sure to use renderscript support too, instead of the platform one Jan 11 13:38:36 many bugs are fixed in the rs support lib Jan 11 13:38:56 good luck because i don't know how i could help you more about your issue Jan 11 13:39:44 I don't see how ScriptIntrinsicBlend would give me a sum. So I guess I'm stuck with ScriptC. Jan 11 13:39:48 Thanks for your help so far. Jan 11 13:46:23 What simple example can use to demonstrate async task without networking? Jan 11 13:48:20 SystemClock.sleep() Jan 11 13:48:22 any short background operations Jan 11 13:51:44 Ashiren: what does it do? Jan 11 13:52:24 is it okay to put main thread in sleep? Jan 11 13:52:42 it does nothing for provided milliseconds Jan 11 13:52:54 i meant to put it inside asynctask Jan 11 13:53:06 it would block main thread Jan 11 13:53:47 it would stop the time from updating? Jan 11 13:54:13 its like if you provided some long-time running function Jan 11 13:54:25 or java way - Thread.sleep(ms) Jan 11 13:55:30 if i put it in asyntask then it will block main thread? Jan 11 13:56:34 no -.- Jan 11 13:59:31 i want to see an effect of asynctask that can't be achieved by just using main thread. Jan 11 13:59:38 with a simple example Jan 11 14:00:47 anything thats in asynctask can be achieved in mainthread, even network if you change the thread policy (not recommended) Jan 11 14:01:03 but it will block ui thread Jan 11 14:01:12 point of asynctask is not to block ui thread Jan 11 14:01:14 i see i thought it wasn't allowed Jan 11 14:02:13 can i run multiple async tasks as well? Jan 11 14:03:57 im thinking of a background task that will block main thread (not networking) Jan 11 14:04:08 thats.... Jan 11 14:04:09 hm maybe i can use a progress bar Jan 11 14:28:38 adq, any chance you can help me with writing the ScriptC? I'm a bit stumped on how to handle input and output on a reduction kernel. Jan 11 14:29:44 https://gist.github.com/Syzygy2048/65a71d13307204600df1ee324716456d this is what I got so far. Jan 11 14:31:45 looks extremely wrong to me, you'd better start studying simple examples first Jan 11 14:33:03 and when you can, be explicit with type, like use uint32_t or uint8_t or something else depending on the size of your int Jan 11 14:33:56 I've studied all the reduction kernel examples I could find ... to be fair that are only those from this page https://developer.android.com/guide/topics/renderscript/compute.html Jan 11 14:33:59 the prama is also surprising to me, i usually only have the package_name Jan 11 14:34:15 but non of the examples show how the values are bound, and it seems to be different from regular kernels. Jan 11 14:34:44 might have found something. Jan 11 14:36:26 try first with a very minimalist example, like provide a 1D array containing 0x0, and make a kernel to fill this array with another value Jan 11 14:36:44 and little by little, expand your code Jan 11 14:37:03 because if at first, you're not able to give an array to RS engine, do something on each cell, and get back this array Jan 11 14:37:15 you should not focus yet on computing stuff inside your array Jan 11 14:38:00 you have also to deal with alloc and bind on the java side too, providing correct parameters Jan 11 14:38:14 (with Allocation.createSized) Jan 11 14:38:51 it will not be straight-forward if you did it for the first time, so expect to struggle for 1 day or 2 max Jan 11 14:39:12 and then after some progress, come back and ask if you still have issues Jan 11 14:41:13 i think the single source example in the link you pasted is basically doing what i asked you to do Jan 11 14:41:29 except they invert colors in it Jan 11 14:43:12 hi Jan 11 14:43:43 where can i download background image for android app develop Jan 11 14:48:41 adq, but reduction kernels seems to work a bit differently than regular kernels. Jan 11 14:48:58 i haven't played yet with reduction kernel so idk for that part Jan 11 14:49:02 https://developer.android.com/guide/topics/renderscript/compute.html#example-addint this should pretty much do exactly what I want. but I don't know how to bind the values or get them out. Jan 11 14:49:37 I assume I have to do script.bindAllocation(alloc, 0) to bind it, but no idea as for output. Jan 11 14:49:46 homa_: what is "background image for android app develop"? Jan 11 14:50:10 Melatonina, i want download wallpaper for layout Jan 11 14:50:47 if you read, there is no output allocations Jan 11 14:50:54 it directly modify the input alloc Jan 11 14:51:15 "A reduction kernel has one or more input Allocations but no output Allocations. Jan 11 14:51:15 " Jan 11 14:51:18 homa_: why don't you set the background of the root layout? Jan 11 14:51:46 Melatonina, where ? Jan 11 14:52:54 ah, so, I was a bit confused because I wanted different types. Images are uchar4 if I understood correctly? Jan 11 14:53:29 I wanted to do something like *intAcum = val.r + val.g + val.b Jan 11 14:53:32 Melatonina, i want nice image for background of root layout Jan 11 14:54:01 use a nice image for background of root layout Jan 11 14:54:24 google "wallpaper big boobs" for nice background images Jan 11 14:54:44 Images are uchar4 if I understood correctly? < no, uchar4 is a single cell of 4 bytes (for example for ARGB) Jan 11 14:56:10 that's what i meant. but if i look at the inverse example, a single pixel would be treated as an uchar4 in renderscript Jan 11 14:56:18 and because it's a struct, you can have .r .g .b or .x .y .z etc Jan 11 14:56:41 it's just a convenient way to access it Jan 11 14:56:53 that's what i meant. but if i look at the inverse example, a single pixel would be treated as an uchar4 in renderscript < yes Jan 11 14:57:14 Syzygy, you need to read more of the documentation https://developer.android.com/guide/topics/renderscript/reference/overview.html Jan 11 14:57:27 homa_: http://srudut.com/wp-content/uploads/2014/03/2013-Kate-Upton-HD-Wallpapers-e1360405079523.jpeg Jan 11 14:57:41 homa_: is that good enough for "development"? Jan 11 15:00:39 Melatonina, Jan 11 15:01:42 yes? Jan 11 15:02:39 i want background image for any device in any size Jan 11 15:03:15 subliun, it works in sbt-android Jan 11 15:04:04 you can specify different images for different orientation and resolution configurations Jan 11 15:04:50 just provide images of boobs of different sizes in the correct folders and they will be loaded automatically Jan 11 15:05:32 Melatonina, i know , how can i change correct resize Jan 11 15:06:28 how can I understand your malformed English sentences? Jan 11 15:06:42 I'm not joking Jan 11 15:07:05 I can't understand "how can i change correct resize" Jan 11 15:07:37 Sorry Jan 11 15:07:56 just fill with a solid color ;D Jan 11 15:08:19 Melatonina, how can i change size of image correctly ? Jan 11 15:08:38 * raoul11 thepooshes thepoosh Jan 11 15:08:41 o/ mela Jan 11 15:08:52 what is "correctly"? Jan 11 15:09:06 raoul11: ! Jan 11 15:09:08 Melatonina, how can i change size of image ? Jan 11 15:09:19 use Photoshop Jan 11 15:09:33 whats the score thepoosh ? Jan 11 15:09:47 about tree fiddy Jan 11 15:09:51 kek Jan 11 15:10:01 homa_: if you don't care about explaining yourself, I don't care helping you. I have my programming problems too. Sorry Jan 11 15:10:05 u knows thats my "company" name right thepoosh ? Jan 11 15:10:41 oh right Jan 11 15:10:46 just opened your app Jan 11 15:12:14 raoul11: did I tell you cracker 'bout the time I saw the loch ness monsta? Jan 11 15:12:24 Melatonina, thanks Jan 11 15:12:26 i luv u thepoosh Jan 11 15:12:29 i really do Jan 11 15:12:33 <3 Jan 11 15:12:44 if only you wernt an illegal as declared by the UN Jan 11 15:12:54 hehehehe Jan 11 15:29:12 raoul11 and thepoosh are our Romeo and Juliet of Android Jan 11 15:30:10 thats not very kosher Jan 11 15:37:16 :) Jan 11 15:40:04 http://dpaste.com/357ZT80 Jan 11 15:40:10 i have this dialog Jan 11 15:40:32 how can i check if the edittext is not null before closing it? and if it is dont close it all together? Jan 11 15:43:17 I know it but I won't tell you because last time you didn't even say "thanks" Jan 11 15:44:03 i did, but that's fine. Jan 11 15:46:52 I'll check the log Jan 11 15:49:26 input.getText().length() > 0 Jan 11 15:49:50 Melatonina, jesus men. Thanks. Jan 11 15:50:28 Ashiren, yeh i know how to check it, but when i click in the ok it closes everytime. i want to check first and then close if it has something in it Jan 11 15:51:07 oh Jan 11 15:51:24 how about enable button only if theres text in input Jan 11 15:51:28 tsousa: dialog.setCancelable(false); Jan 11 15:51:36 tsousa: dialog.setCanceledOnTouchOutside(false); Jan 11 15:52:04 tsousa: then disable the cancel button if the condition you desire is not met Jan 11 15:57:22 tsousa: did that make sense? Jan 11 15:57:58 Melatonina, yes thanks . i am googling a way to catch when the edittext is edited Jan 11 15:58:20 Can I use a R.mipmap.* resource where a R.drawable.* resource is expected? Jan 11 15:58:36 tsousa: there is a listener to be added for that Jan 11 15:58:57 tsousa: anyway, the line you mentioned is not present in my log Jan 11 15:59:31 tsousa: I'll take it as if it wasn't transmitted by your client for some reason Jan 11 16:01:03 Melatonina, https://imgur.com/a/W7TDV Jan 11 16:01:39 zap, yes if you have populate the mimap folder(s) Jan 11 16:01:45 like for your ic_launcher icon Jan 11 16:02:01 adq: yep, I want to use my launcher icon in a Notification Jan 11 16:02:01 but you should not use that instead of drawable inside your apps, iirc Jan 11 16:02:06 then it's totally ok Jan 11 16:02:10 thank you Jan 11 16:02:46 tsousa: it's ok Jan 11 16:04:47 I'm trying to expand this project https://github.com/googlesamples/android-Camera2Basic . However on a test phone, the uleFone u007 Pro, auto exposure does not seem to work. does not seem to work (it's working on my nexus 6). captureResult.get(CONTROL_AE_STATE) is null and so are some other things related to camera (pretty much anything that can be null). Any idea what I can do to expose my images properlyß Jan 11 16:06:17 Melatonina, it was just to show you i as not lying Jan 11 16:12:07 hi guys Jan 11 16:12:10 I have a question about ServiceManager... Since a service is register by this and is not register by SystemServiceRegistry, is it possible to access the ServiceManager services that was not register by the System? Jan 11 16:14:14 tsousa: did you fix your problem? Jan 11 16:18:16 Melatonina, no. the alert.setCancelable(false); is still able to close Jan 11 16:18:43 So it seems that cheap testing phone does not suppot Camera2 api... Jan 11 16:18:45 tsousa: that should prevent cancelling with back button Jan 11 16:19:17 tsousa: the other prevents (I tested it in past) the dialog from being cancelled tapping outside of it Jan 11 16:19:31 the other doesnt exists Jan 11 16:19:55 setCanceledOnTouchOutside() ? Jan 11 16:20:06 i just want a way for me to test if the user inputed something in the edittext when it click in the ok button Jan 11 16:20:08 yes Jan 11 16:20:52 https://developer.android.com/reference/android/app/Dialog.html#setCanceledOnTouchOutside(boolean) Jan 11 16:21:23 tsousa: did you add the listened to the EditTest? Jan 11 16:21:28 listener Jan 11 16:21:45 yes input.addTextChangedListener(new TextWatcher() {... Jan 11 16:22:42 then I don't understand where is your problem Jan 11 16:23:28 http://dpaste.com/3QDXMAX my code Jan 11 16:24:36 why text changed listeners inside dialog Jan 11 16:24:43 :) Jan 11 16:25:26 squ, i need to check if the edittext is not empty when i close the dialog, if it is empty dont close it Jan 11 16:25:58 how can you not close a dialog Jan 11 16:26:19 enable/disable your postive button in the textchanged callback Jan 11 16:27:23 https://developer.android.com/reference/android/app/AlertDialog.html#getButton(int) Jan 11 16:54:28 Thanks solved it Jan 11 17:05:27 tsousa: I told you you had to disable buttons in the listener depending on your conditions Jan 11 17:10:04 Is there a google sample for the old camera api? like for the new one Jan 11 17:10:45 Syzygy: a sample for the old camera api for the new camera api? ¯\_(ツ)_/¯ Jan 11 17:12:04 Application app = new Application(); <-- how does this result in a NULL ptr, and how do I get an Application instantised? Jan 11 17:12:58 you don't. Jan 11 17:13:04 what are you trying to do? Jan 11 17:13:06 Lvl4Sword, there's quite a good sample for the Camera2 API by google. But at the moment I can not find a complete sample for the deprecated pre API Level 21 Camera API Jan 11 17:14:46 Syzygy: So you want a deprecated API? ¯\_(ツ)_/¯ Jan 11 17:14:57 I want an API that works. Jan 11 17:15:17 cwac-camera is a decent lib for that Jan 11 17:15:28 since doing camera1 manually is... nuts Jan 11 17:15:39 Camera2 is not supported by all devices. The only alternative is to use a deprecated API. Jan 11 17:15:52 Mavrik, thanks. I'll check it out Jan 11 17:23:39 hi, fastboot is not listing my device but adb is Jan 11 17:23:52 does anyone have an idea how to solve this? Jan 11 17:35:25 TwistedParticle: 1. ask in #android-root not here Jan 11 17:35:38 2. fastboot will list your device only if in recovery mode Jan 11 17:36:26 i want to hide the listview on button click and want to show gridview in place of it,how to do that? Jan 11 17:36:44 @android-root is not replying and i forgot to add that fastboot is not listing my device in download mode Jan 11 17:44:54 TwistedParticle: It's off topic for this channel. If #android and #android-root can't help you, try xda-developers or something Jan 11 18:00:16 does the android widget can make some work Jan 11 18:00:31 i want to create a widget that has 1 textview and 4 buttons Jan 11 18:00:37 a question ans four answers Jan 11 18:00:56 and i want to validate them in the widget witout having to go back and forth with broadcast Jan 11 18:00:58 is it possible? Jan 11 18:01:47 <_raw_> Can I use ALARMMANAGER to exucate onClick? Jan 11 18:02:57 <_raw_> I want to run a part of code, to be exucated at certain(Fixed) time Jan 11 18:03:02 <_raw_> is that possible? Jan 11 18:05:03 yes _raw_ just don't call it onClick that sounds weird Jan 11 18:05:26 Hi I am having problem with cucumber-jvm on android. I am getting "Undefined step: mystep" error . on "Android Studio 2.3 Beta 2" I got the same problem with the example project on github. can anyone confirm if it is currently working or not? Jan 11 18:05:32 because an alarm would trigger an onReceive Jan 11 18:07:02 <_raw_> missingno: how? Jan 11 18:09:58 Is AntiPope / RedHate in here atm with another nick by chance? Jan 11 18:36:28 Mavrik: I'm trying to add a restricted profile from a command-line tool (executed via app_process) Jan 11 18:37:10 (although tbh, I just want to add a restricted profile and I really don't care how.) Jan 11 18:41:31 Can widgets to work? i need a widget with some buttons and a textview and i need to validate the click in the widget... is that possible? Jan 11 18:43:25 tsousa: it should work. why it shouldn't? Jan 11 18:44:09 I dont see how i am going to do a listener in there is the remote thingy Jan 11 18:51:43 it is mostly like an activity Jan 11 19:04:48 how can I prevent android studio from compiling my native code for mips64, mips, arm64 and x86-64? Jan 11 19:05:05 im using the latest version and cmake to build my jni Jan 11 19:05:09 edit your makefile(?) Jan 11 19:08:07 cutesykitties: APP_ABI is your best friend Jan 11 19:08:07 https://developer.android.com/ndk/guides/application_mk.html#var Jan 11 19:13:10 is there a @Required anotation with gson? Jan 11 19:13:49 i figured out how to do it using cmake Jan 11 19:14:02 just do return() if its the wrong build type Jan 11 19:15:34 that sounds like the wrong way to do it Jan 11 19:16:05 raoul11: http://stackoverflow.com/a/21634867/1056359 Jan 11 19:16:15 https://github.com/google/gson/issues/61 Jan 11 19:17:00 fuk /: Jan 11 19:17:02 lazy google Jan 11 19:17:17 does jackson got support for required? Jan 11 19:18:48 @NotNull does nothin Jan 11 19:19:03 http://stackoverflow.com/a/18324899/1056359 Jan 11 19:20:09 https://github.com/FasterXML/jackson-annotations/wiki/Jackson-Annotations Jan 11 19:22:10 meh Jan 11 19:22:22 this sux thepoosh Jan 11 19:22:35 gonna go to yigalalon and blow ampa building Jan 11 19:22:58 gl, i only go back on the 17th Jan 11 19:23:44 was there an hour ago Jan 11 19:24:03 wasnt aware it was so useless Jan 11 19:25:52 ? Jan 11 19:26:41 ill play with jackson tommorow Jan 11 19:26:52 ok Jan 11 19:28:25 Hey all! I am new to Android development and trying to figure out what the preferred method would be to do the following: I want to create and expand an array of strings over time and have it backed up through google play. I am using an xml resource file as of now bu I can't figure out how to add Strings from user input Jan 11 19:28:59 how about firebase Jan 11 19:29:01 Thanks for any pointers in the right direction on how to best do this! Jan 11 19:29:24 that pointer → is pointing at firebase Jan 11 19:29:34 xml resources should only be for static values Jan 11 19:30:04 oh ok, that seems cool! Will def check it out, thanks! Jan 11 19:30:47 ok, so when I use an xml it should only be used for things like menu entries and so on? Jan 11 19:32:06 Happy Wednesday Jan 11 19:35:26 thepoosh it works and im not complaining :) Jan 11 19:36:09 a broadcast receiver only receives the broadcast in the intent filter right? Jan 11 19:38:01 tsousa: yessir Jan 11 19:53:19 which would be the android tutorial/book you would recommend to get started? Jan 11 19:56:36 eze: d.android.com/training Jan 11 19:58:23 http://dpaste.com/1HC5PSJ why is this code not updating? Jan 11 19:59:12 i never get the log.d in the onUpdate function Jan 11 19:59:17 http://dpaste.com/1SS6R9X new dpaste Jan 11 20:14:22 `gradlew app:dependencies` only displays the maven dependency chart, right? It won’t show jar dependencies? Jan 11 20:33:13 thanks thepoosh :) Jan 11 20:36:46 anyone know a good kotlin mvp boiler project? Jan 11 20:37:06 gah boiler plate project i mean Jan 11 21:01:17 Is there anyways to open https deeplink internally and have it know that it is the right app instead of asking other apps that accept https? Trying to reuse the deeplink url's for push notification instead of having app specific scheme Jan 11 21:39:57 Anyone ever had a problem where "repo init" says nothing after it gets a bundle from gerrit, and just creates an empty .repo? Jan 11 21:40:11 it completes, and gives no error messages Jan 11 21:59:56 tasslehoff, you need to repo sync to actually get anything Jan 11 22:00:53 tasslehoff, try reading the directions :P Jan 11 22:01:31 pfn: I know that, but the .repo folder should contain something. Jan 11 22:01:42 should it? does repo sync fail? Jan 11 22:01:45 but, it seems the guy with the problem had a corrupt repo command Jan 11 22:01:56 .repo is populated on repo init Jan 11 22:02:15 we both had 1.23, but different size and md5 Jan 11 22:02:19 * pfn shrugs Jan 11 22:23:35 So I'm working on an app and I need one user to send another user an access string (not important). I've never attacked a problem like this before. Should I have all users occasionally checking a database that gets updated if they get a notification. Just trying to find a starting point for stuff to look into Jan 11 22:33:14 keur: you could use a real-time database like Firebase database. Doing something like that it's a kids' game with Firebase. Jan 11 22:33:17 keur: Well, there's multiple questions. How is your program currently set up? Jan 11 22:33:56 keur: the Firebase database will notify your application, you don't need to poll Jan 11 22:35:38 Melatonina, hmm. interesting. the thing is i've already set up a regular database that holds the user data. i'd be fine with polling if it means keeping everything centralized. so is polling something i should look into? Jan 11 22:36:38 keur: well, yes. Jan 11 22:36:59 keur: what database management system are you using? Jan 11 22:38:08 keur: I use Microsoft SQL Server and do something similar letting SQL Server notifying my application server and my application server notifying the mobile application, without polling, using SignalR. Jan 11 22:38:53 Melatonina, MySQL and php. Jan 11 22:39:52 keur: I don't know if MySQL can notify your php server. Php can use websockets to talk with your mobile app Jan 11 22:40:05 keur: so you can implement it in different ways. Jan 11 22:40:20 keur: the simplest is just polling from your mobile application Jan 11 22:41:30 Melatonina, perfect. thank you :D Jan 11 22:41:54 you're welcome Jan 11 22:44:34 keur: if you can tolerate a 1/M second delay, you have N users and you can handle N*M polls per second, polling is a perfectly good solution Jan 11 22:47:26 I have a broadcast receiver that keeps track of some external events and acts upon them as required. And I also have a fragment in my application that shows a status summary of what the last event/status is/was. Now I am currently using a shared preference to save this status in the reciever and then a onSharedPreferenceChange Listener to update the fragment if it is currently being viewed. I am in a debate with myself if I should be d Jan 11 22:47:26 oing it this way? Or register a broadcast receiver with the fragment when it starts instead of using a shared preference? Is there a *recommended* or correct way to approach this? Jan 11 22:48:19 Problem with registering the reciever in the fragement is it won't have a status update untill the next intent Jan 11 22:57:59 Melatonina, yeah. so right now my process is i'll have the user make a post to a unique table that is created for each user. every user will run a background task that polls this database and checks if new information is committed to it. if so it'll grab the data, do some conversions (not important), then notify the user Jan 11 22:58:47 and to be clear, the first user sends the info, and the second user retrieves it. but all users are still running the poll because any user can receive and access string Jan 11 22:59:30 keur: I don't understand why you need a unique table for each user. That's not how tables are used normally. But nothing prevents you from doing it Jan 11 23:00:28 keur: people normally would use a unique table, add a "targetUserId" column and activate indexing on that column to make polling query faster Jan 11 23:00:56 Melatonina, yeah. indexing is a good solution. then i can do one table. Jan 11 23:13:56 sigh.... Jan 11 23:13:57 https://code.google.com/p/android/issues/detail?id=55053 Jan 11 23:14:22 This simple documentation error was reported 3 1/2 years ago Jan 11 23:17:37 Ologn: you're not alone Jan 11 23:17:42 the MTP library isn't even finished yet Jan 11 23:46:41 lol now they are trying to ditch the activities too? https://www.reddit.com/r/androiddev/comments/5ncu53/modern_android_ditching_activities_and_fragments/ Jan 12 00:25:15 hey there Jan 12 00:25:19 I have a bizarre issue.. Jan 12 00:25:38 I branched off the working branch and now, after making changes, my project won't build Jan 12 00:25:50 or launch Jan 12 00:26:38 I did make changes to the XML Jan 12 00:26:44 and it seems that when I revert it works.. Jan 12 00:26:50 but LINT doesn't catch anything wrong with it Jan 12 00:27:07 and there's nothing in any of the consoles that would tell me what it is! Jan 12 00:27:33 Hi, I'm trying to stream image data from the camera to a surface texture, and I've noticed that the supported preview sizes and significantly smaller than the supported picture sizes. Any idea of how to work around this? I'm currently using the old camera API, but could use the new one as well Jan 12 00:27:42 Tricknology: did you try a clean rebuild? Jan 12 00:28:28 Melatonina: like build>>clean ? Jan 12 00:28:31 yes Jan 12 00:29:24 Basically I had a layout that has 2 PercentRelativeLayouts.. im splitting the layouts into fragments Jan 12 00:29:35 if I comment out the 2nd layout i can build Jan 12 00:31:28 Don't be greedy, then. Just live with one layout Jan 12 00:32:04 No the guy before me put 2 layouts in there.. It's my job to split it into fragments Jan 12 00:32:10 when I do I can't build Jan 12 00:32:23 I'm reusing the layotu in the fragments, which should work Jan 12 00:32:44 its the most F'ing bizzare thing I've ever seen with AS Jan 12 00:32:59 im changing only one layout and 2 classes Jan 12 00:34:31 heh at this point I'm just removing stuff and playing "Can it build" Jan 12 00:34:44 build using gradle on the command line Jan 12 00:34:46 post log Jan 12 00:34:50 problem. solved Jan 12 00:34:58 hokay, thanks pfn Jan 12 00:35:53 hmm it loads when I remove the 2nd layout and remove any references to that layout (except for inflating it) Jan 12 00:36:14 developers shouldn't be completely dependent on using an IDE Jan 12 00:36:50 developers shouldn't be completely dependent on using compiled or interpreted languages Jan 12 00:37:05 O.o Jan 12 00:37:15 that statement makes no sense Jan 12 00:37:42 developers should be able to program in hex code Jan 12 00:38:14 it could always be useful, if their compiler fails Jan 12 00:38:29 I should go back to Eclipse haha Jan 12 00:38:44 it's. binary, not hex code Jan 12 00:38:48 developer should provide meaningful information (like error or stacktrace) if they seek help instead of a novel Jan 12 00:38:54 I'm wondering if Android Studio's build>>>clean actually works? Jan 12 00:39:12 Tricknology: it usually works. Jan 12 00:39:13 At this point I think I might have the damn reference registered in R but it's not there because I changed it Jan 12 00:39:16 the error is obvious if you would go and build using gradle Jan 12 00:39:18 .... Jan 12 00:39:24 ok I will, just looking up on how Jan 12 00:39:30 Tricknology: sometimes Android Studio itself says "You should do a clean build" :D Jan 12 00:39:41 Tricknology: it always make me laugh Jan 12 00:39:43 ./gradlew assembleDebug Jan 12 00:39:45 clean rarely resolve anything anymore with AS Jan 12 00:40:03 the build staging is so weird Jan 12 00:40:31 adq: in the last week two times AS stopped with error, told be to do a clean build, I did it and it fixed the problem Jan 12 00:40:37 told me Jan 12 00:40:58 AS asks you to clean??? Jan 12 00:41:02 yes Jan 12 00:41:05 jesus Jan 12 00:41:11 it's funny but it does Jan 12 00:41:16 adq: in the layout viewer if it can't resolve the layout it will ask you to clean Jan 12 00:41:26 layout editor is highly unreliable Jan 12 00:41:29 pfn I'm on Windows :( Jan 12 00:41:40 adq: it says something like "Error XYZ. A clean build may resolve this problem" Jan 12 00:41:42 Tricknology, it works the same on windows Jan 12 00:41:46 it's bullshit Jan 12 00:41:49 open up a command prompt in your project Jan 12 00:41:51 from which parent dir? Jan 12 00:42:04 My AS froze.. Jan 12 00:42:06 and type gradlew assembleDebug Jan 12 00:42:19 adq: I'm not joking. It happens and a clean build always fixed the problem. I'm serious Jan 12 00:43:33 adq: most of the times it happens when I'm refactoring my project and move classes and resources across modules. Which I did a lot for a couple of days last week Jan 12 00:43:45 you don't have to convince me Jan 12 00:44:26 Tricknology, the same directory you open in AS Jan 12 00:44:35 maybe app:assembleDebug Jan 12 00:45:04 its built, but because I took some things out haha Jan 12 00:45:10 I'll go back adn try it on the other branch in a sec Jan 12 00:45:17 let me commit.. haha Jan 12 00:45:30 #1 tip to be a better android developer, learn to build your app from the command line Jan 12 00:45:54 yeah gradlew is a must Jan 12 00:46:00 and it's also building slightly faster Jan 12 00:46:13 my whole day: Gradle is building O Jan 12 00:46:18 I dunno about faster Jan 12 00:46:33 but the ide hides many important details when things break Jan 12 00:46:35 you on 3.3? Jan 12 00:46:42 I don't gradle Jan 12 00:46:46 pfn^ I'm learning this.. Jan 12 00:46:50 what do you do? Jan 12 00:46:52 ant? Jan 12 00:46:55 sbt Jan 12 00:47:04 hmm.. Jan 12 00:47:07 Do you use AS? Jan 12 00:47:12 intellij Jan 12 00:47:16 beter? Jan 12 00:47:25 for scala it is better Jan 12 00:47:52 Aah, knew there was a caveat there somewhere Jan 12 00:47:53 and I don't need any android studio features Jan 12 00:48:02 I wish I could say the same Jan 12 00:48:06 Tricknology: Even if you're disinclined to use the command line (although you shouldn't be), you might get info from View > Tool Windows > Gradle Console. Jan 12 00:48:10 there are no killer features... well test recording is about it Jan 12 00:48:15 but I'm walking into a dependency minefield Jan 12 00:48:28 Oh yeah I know where it is TacticalJoke, just havent used it much if at all Jan 12 00:48:37 little green play button has always worked.. until this gig Jan 12 00:48:51 you can also track dependencies with gradlew Jan 12 00:49:01 not sure why AS still does not offer this feature Jan 12 00:49:09 Tricknology: You gotta get comfortable with this stuff. :S Jan 12 00:49:22 We can't be l337 hax0rs otherwise. Jan 12 00:49:24 very useful for debugging mismatching library version (especially with multiple deps and support libs not being promoted) Jan 12 00:51:43 I really think 50% of my problems are from using a Windows machine Jan 12 00:51:44 lol Jan 12 00:52:00 * Tricknology thinks voodoo is at work here Jan 12 00:52:34 Windows is fine. Jan 12 00:53:40 ugh.. now when I run the app, it can't find a textview.. well it seems to findViewById.. but the view object is null Jan 12 00:53:43 clean/build? Jan 12 00:54:42 Yay for xml layouts... Jan 12 00:54:57 I knew this problem existed in Eclipse Jan 12 00:55:03 but a clean/build would definitely solve the problem Jan 12 00:55:22 if I rename those Resource ID's AS doesn't complain but it doesnt build Jan 12 00:55:28 databinding generated viewholders should be the default Jan 12 00:56:52 Tricknology: I work on Windows 10 and I'm happy Jan 12 00:57:13 I am too when I've started the project from scratch lol Jan 12 00:57:20 home computer is Windows 10 Jan 12 00:57:30 one of them Jan 12 00:58:04 So what's the problem? Moving a project from Windows to Linux? Jan 12 00:58:24 No problem there, everything is source controlled Jan 12 00:59:39 the problem I think is that when I change an XML, the resulting change isn't applied to the magic spot (I'm gussing R) So when I build the build fails but I get no LINT errors or anything telling me what failed (If I click the run button). I'm going to try the consle next.. Jan 12 00:59:43 but for now, it's building fine Jan 12 00:59:56 Except that NPE on the resource that is definitely there. Jan 12 01:01:58 try without instant-ruin, in case you have it enabled, and be sure to have gradle, android gradle plugin, buildToolsVersion & co up to date Jan 12 01:03:09 haha instant-ruin Jan 12 01:03:16 gradle is at 3.3 Jan 12 01:03:38 android gradle plugin stops at 2.1.14? or something? Jan 12 01:04:30 i'm using classpath 'com.android.tools.build:gradle:2.3.0-beta2' Jan 12 01:04:30 but latest stable is 2.2.3 Jan 12 01:04:52 Feels like almost every thread on /r/androiddev is Zhuinden talking about Flowless these days. Jan 12 01:05:04 flowless? Jan 12 01:05:23 i'm looking almost daily r/androiddev but just for few minutes so i did not catch this one Jan 12 01:05:40 it's sad that most upvoted things (not necessarily good) ends up in android weekly now Jan 12 01:05:46 e.g., https://redd.it/5ncu53 Jan 12 01:05:55 and android weekly has been less and less interesting since few weeks Jan 12 01:05:59 thx TacticalJoke Jan 12 01:06:16 man, such a family you make with those nicks :3 Tricknology, TacticalJoke, etc Jan 12 01:06:40 Heh Jan 12 01:07:02 I was here first but TacticalJoke has more hours logged, I think. Jan 12 01:07:36 TacticalJoke: Whaddaya say, registered domestic-partnership soon? Jan 12 01:09:13 I feel like things are progressing a little quickly. :S Jan 12 01:09:50 You're right, I'm sorry. Got a little ahead of myself Jan 12 01:09:58 plus you have to be liek 62 in my state to start that process Jan 12 01:19:41 pfn: really? Jan 12 01:19:48 yes Jan 12 01:20:09 i've been meaning to switch away from gradle but it's going to be a pain Jan 12 01:20:20 why would it work with sbt android? Jan 12 01:20:24 did you rewrite it? Jan 12 01:20:31 because it was written to work Jan 12 01:20:55 it does bytecode api analysis Jan 12 01:23:02 and migration from gradle is semi easy using sbt-android-gradle Jan 12 01:27:08 will instant run work Jan 12 01:28:28 no, protify Jan 12 01:29:11 ooo look at you go Jan 12 01:29:21 alright I'll try to migrate Jan 12 01:29:43 if this all works as well as it claims google should really get around to hiring you and sacking whoever they've got currently Jan 12 01:30:05 thanks pfn Jan 12 01:32:31 if your project had minimal build configuration, the default sbt-android generated build should just work Jan 12 01:34:34 just do `sbt gen-android-sbt` in your app project Jan 12 01:38:53 I guess I'll fix it to work from the root of a multiproject gradle ad we'll Jan 12 01:58:43 heh it works Jan 12 01:58:45 its aliiiive Jan 12 01:59:02 accidentally deleted the funky branch so I can't go back and gradlew it :( Jan 12 02:00:25 I can concur about Instant Run. It's sometimes a time-saver, but I think the times were it just plain screws up blows all that time away Jan 12 02:01:30 I had a build crash on me yammering about casting a linearlayout to a textlayout inappropriately. I went to the code cited puzzled because I hadn't touched it in days. Jan 12 02:02:07 Sure enough, the code is still 100% correct. The damn delta screwed up somehow. Jan 12 02:03:18 Between that and builds being slow as hell now and the new layout mismanager, I'm starting to miss the 1.x tree Jan 12 02:03:52 I'm not seeing slower builds in 2.x. Jan 12 02:04:24 The first project I put together hasn't had a significant code change in about a year Jan 12 02:04:43 It used to build in about thirty seconds and some change. Jan 12 02:05:04 After pulling it it up to get it building again, it's closer to three minutes Jan 12 02:06:22 Yeah but it's built with more care Jan 12 02:06:37 I was happy with the results before, tho'. Jan 12 02:07:03 :) Jan 12 02:07:14 I mean, I am *not* writing stuff to control rockets or predict weather. The most complex mathmatical function I'm invoking involves simple multiplication and division with floats that would fit on a cocktail napkin. Jan 12 02:07:52 It doesn't even approach the sort of thing unit tests would be needed for. If the code isn't obviously correct from being looked at, I've probably suffered a stroke Jan 12 02:09:03 If it was throwing stuff together "haphazardly" before because it didn't carefully look for unit tests and possible circular build dependencies or whatever, maybe it needs a mode for "incredibly simple projects" Jan 12 02:11:27 Dagmar what i've been doing is taking a vacation, and every month come back to see if things get better (they don't) so i go back on vacation :D Jan 12 02:11:51 i figure, if i wait ^ procrastinate long enough eventually the stuff will work out Jan 12 02:12:12 * g00s goes back to reading his stats book Jan 12 02:13:26 lol Jan 12 02:13:53 I honestly would do that except I'm trying to finish up a Pokemon Go theorycrafting app before the players burn down Niantic HQ Jan 12 02:14:51 I dunno what app to write next Jan 12 02:15:13 The first thing I did was solve a personal problem. Jan 12 02:15:14 need to get back into writing code Jan 12 02:15:25 haven't written anything in a few months since I went on vacation Jan 12 02:15:29 I got tired of having to convert the bloody cooking times for my 700W microwave Jan 12 02:15:48 Now I just scan the barcode on the package and the right stuff comes up if I've cooked that beofre Jan 12 02:15:55 it seems we all took giant vacation :D Jan 12 02:17:33 very gigantic, I went to hk > jp > kr > th Jan 12 02:17:53 and then came back and went to LA and the Xmas and new years rolled around Jan 12 02:18:00 haven't written anything in months Jan 12 02:18:25 Amazing. It's like you took a tour of countries I blacklist at the firewall. Jan 12 02:18:26 :) Jan 12 02:18:46 I trust you were in Russia at least for a flight layover Jan 12 02:18:53 no Jan 12 02:19:10 but I cruised through Russia 2 years ago... Jan 12 02:19:57 it's weird how cruise ships are forced to sail internationally Jan 12 02:20:09 they are not allowed to go domestic > domestic Jan 12 02:20:21 not without stopping at an international destination first Jan 12 02:21:00 pfn if you forgot a bit of android may as well write off as loss and go iOS Jan 12 02:21:24 then again apple may be stagnating Jan 12 02:21:52 Steve Ballmer^H^H^HTim Cook is messing things up Jan 12 02:22:36 Well, they did at least pay him slightly less than the promized gazillion dollars because of missed sales targets. Jan 12 02:22:41 g00s: Chess can be more rewarding than programming, from what I've seen. Jan 12 02:22:41 if swift ever gets hkt Jan 12 02:22:55 It's not that hard to get good at chess. Jan 12 02:24:22 I guess there are a million things. Jan 12 02:25:15 TacticalJoke i've been learning 4D chess from trump Jan 12 02:26:38 so updated sdk-tools today, wonder if that fixes android -list Jan 12 02:26:43 * g00s checks Jan 12 02:28:27 /sdkmanager --list still busted lol Jan 12 02:29:36 g00s, https://plus.google.com/114484370672347218917/posts/Pyckb6Mmbn2?sfc=true Jan 12 02:29:51 I also hit it after upgrading to latest canary earlier today lol Jan 12 02:30:15 and if you look at b.android.com the front-end also had issue (nothing new though) Jan 12 02:30:47 now you add all of them, cannot submit bug report of a bug to a buggy bug repo Jan 12 02:30:54 the snake is eating its tail Jan 12 02:33:31 adq have you used tensorflow yet ? Jan 12 02:33:44 unfortunately not (yet) Jan 12 02:34:04 qualcomm is announcing support for it on their 835 soc Jan 12 02:34:35 so - i wonder how this is going to work out, moving forward, with all these different soc designs, and how it gets abstracted Jan 12 02:34:38 not sure it makes sense to feed an AI on a mobile arch lol Jan 12 02:34:45 topology matters i know but come on Jan 12 02:35:04 i think we'll keep seeing ml pusing down to smaller things Jan 12 02:35:49 i played (and studied a bit years ago at school) with neural network and it's really a combinatory explosion Jan 12 02:35:58 it would be cool if google said all android phones had to have TPUs Jan 12 02:36:02 the resources available on a little mobile and the processing power is ridiculous Jan 12 02:38:09 Doing some market research....im building a desktop app that is essentially a mashup of irc and stackoverflow and is for developers. Should I let users post and answer questions from my applications own database, or should I hook into the StackOverflow api? Jan 12 02:38:54 Maybe I could do both.... Jan 12 02:39:27 using SO api would be much easier, and you won't have to deal with storage architecture and cost, legal matters, etc Jan 12 02:39:45 stackoverflow has some sort of chat functionality Jan 12 02:39:51 but at same time, rolling your own thing would make you learn a lot Jan 12 02:40:12 adq That is the thought I had today. The original plan was to have Q/A internal to only my app, but the amount of questions and answers already on SO is staggering Jan 12 02:40:32 pfn Your not wrong, but it isnt very good is it Jan 12 02:40:54 Full disclosure i've rarely used SO's chat feature Jan 12 02:40:58 i saw many projects and (big) companies directly asking their users/customers to use SO with a keyword specific to their product Jan 12 02:41:19 so they don't deal with all the things, and benefits of SO (which has matured now) Jan 12 02:42:31 Mhm Jan 12 02:43:22 I hate stackoverflow, it doesn't let you subscribe to tags Jan 12 02:43:45 pfn I have a lot of issues with SO as well, it can be frustrating to use at times Jan 12 02:43:58 at least not the mobile app Jan 12 02:44:09 it's possible on desktop Jan 12 02:44:24 i did it for renderscript and few other things like that Jan 12 02:44:31 it should send push notifications when new tagged questions and answers are posted Jan 12 02:44:39 i just receive a mail though Jan 12 02:45:06 That would really only be feasible for low populate tags though...eg new android questions are posted every few seconds Jan 12 02:45:13 populated* Jan 12 02:45:22 yeah no way i would subscribe on [android] Jan 12 02:45:50 email is bad, but push isn't terrible, and you can't save searches Jan 12 02:46:22 I can't just open up stackoverflow and go to my saved tags I'm interested in Jan 12 02:46:56 also it has become a bit too noisy on tag like [android] Jan 12 02:47:01 it's not anymore as useful Jan 12 02:47:34 and those crazy post of 234234 km with update 1.. update 2.. update n.. update n+1 update 2017 january lol Jan 12 02:47:35 wtf Jan 12 02:47:57 and more and more accepted answer deprecated due to how fast the platform evolves Jan 12 02:48:07 or sometimes plain wrong Jan 12 02:48:14 adq Thats one of the issues im trying to solve Jan 12 02:48:26 i think it's great because it shows the limit of these kind of voting system Jan 12 02:48:37 they almost solved the fake rating/voting, almost Jan 12 02:48:41 and now they reached another limit Jan 12 02:51:18 maybe they should add a decay factor, but it's problematic when the answer is correct and valid for a long time due to being immune to deprecation or something Jan 12 02:54:00 adq You could probably track frequency of upvotes...relevant answers will continue to be upvoted, those that arent could decay. Jan 12 02:54:43 yup, i bet they work on it Jan 12 02:55:40 it's probably more complicated than we think **** ENDING LOGGING AT Thu Jan 12 03:00:01 2017