**** BEGIN LOGGING AT Tue Feb 07 03:00:02 2017 Feb 07 03:22:51 hello Leeds Feb 07 03:23:10 Leeds: Looks like a nice 14° in HK now. Feb 07 03:28:26 awesome network tech, (love this guy's writing)... Android / secure delivery related : http://blog.streamingmedia.com/2017/01/using-multi-cdn-strategy.html Feb 07 03:49:07 "yes, Instagram is still single-dex!" Feb 07 05:19:03 so I'm trying to get a global broadcast receiver. I declared this in com.mypackage.receiver and "receiver" class in package. But when I terminate the main activity and get a notification receive callback, it sends a broadcast from this async call of main activity and the broadcast receiver doesnt receive anything ? any help ? Feb 07 05:19:35 *in manifest as com.mypackage.receiver Feb 07 05:21:50 it does work with a localbroadcastreceiver and without terminating app though Feb 07 06:28:06 raoul11 have you used Go ? Feb 07 06:29:12 no go Feb 07 06:35:08 whats the purpose of SocketChannel in a client? Feb 07 06:39:48 for several servers. that interesting Feb 07 06:41:30 apparently I can't access the app context which is null object from gcm intent services Feb 07 06:42:06 and not one single wise man on the internet asked a stackoverflow question about this, they're all local context broadcast receiver questions Feb 07 06:42:13 are we all handicapped in here Feb 07 06:43:09 raoul11: so, how's Israel around Shavuot time? Feb 07 06:43:45 bestest time Feb 07 06:44:01 weather is nice, not too hot, greenish up north Feb 07 06:44:12 is it easy to get jewish citizenship marrying your women Feb 07 06:44:32 good, because that's when we're going to be there :D Feb 07 06:44:39 when we marry your women ? Feb 07 06:45:41 your population is at stake, no import tax on semen intake Feb 07 06:46:03 meanwhile jewish men are expanding their territories Feb 07 06:46:11 what Feb 07 06:46:15 building houses on lands of the countries around them Feb 07 06:46:22 is that supposed to be altruistic ? Feb 07 06:46:25 LMAO Feb 07 06:46:34 see what u did Leeds Feb 07 06:46:54 ok back to the qeustions now boys Feb 07 06:47:17 raoul11: I'll see you for beer... Feb 07 06:47:29 lets do it Feb 07 06:47:36 can we stop the jewish discussion this is for helping desperate android developers Feb 07 06:49:17 sure sdfgsdfg Feb 07 06:49:42 so if the context is null when context is stopped and is in the background.... how do I pass the context from a library's IntentService from background, to my BroadcastReceiver in the background Feb 07 06:50:00 latter 2 being isolated processes Feb 07 06:50:03 services* Feb 07 06:50:18 or how do I start the app Feb 07 06:50:27 preferably just bring to front Feb 07 06:50:42 note that I dont have any access to context from this intentservice Feb 07 06:50:56 and I bet getpackagemanager is also null because it's not in the same application cycle Feb 07 06:54:31 sdfgsdfg yer service should take care of that Feb 07 06:54:44 the IntentService right ? Feb 07 06:55:03 it's the gcm library though I didn't want to get into the whole package to find out where it's saving the context Feb 07 06:55:10 but yeah I guess I'll do that Feb 07 06:55:18 when you say gcm, you mean firebase, right? Feb 07 06:55:27 yes yes s Feb 07 06:55:29 u extend it sdfgsdfg Feb 07 06:55:32 so fcm? Feb 07 06:55:38 firebase Feb 07 06:56:53 fcm - firebase cloud.. gcm - google cloud... Feb 07 06:56:55 onesignal push notifications with intentservices. It seems to be wrapping firebase Feb 07 06:57:46 each has a diff approach setting up a listener service Feb 07 06:58:56 ok... thanks a lot :) I'll try to find where the firebase wrappers are saving the ctx Feb 07 06:59:16 messy for noobs like me Feb 07 06:59:25 use native firebase approach Feb 07 06:59:28 its just two files Feb 07 06:59:51 FirebaseInstanceIdService FirebaseMessagingService Feb 07 07:00:17 no ctx is involved Feb 07 07:00:40 what do i do with it after extending Feb 07 07:00:57 to bring app to foreground ? Feb 07 07:00:59 raoul11: ! Feb 07 07:01:04 that was a cool gi Feb 07 07:01:06 gif Feb 07 07:01:16 the service launch it anyways Feb 07 07:01:22 thepoosh hi buddy Feb 07 07:01:28 hi hi hi Feb 07 07:01:36 even if its dead long time sdfgsdfg Feb 07 07:02:07 whats on todays agenda thepoosh ? Feb 07 07:02:15 ok. Thanks! Feb 07 07:02:54 fixing bugs and finalizing the next version Feb 07 07:03:03 while following existing version's health Feb 07 07:03:39 thepoosh: Leeds is coming to il soon Feb 07 07:03:49 good evening, anyone have some guidance on best practices around constructor state saving (i.e. should the constructor store an mActivity or is simpler to have methods call getActvity()? Feb 07 07:03:51 we gonna have a sitdown and skim up a way to make billions Feb 07 07:04:05 Leeds: you're coming over? Feb 07 07:08:11 just for a few days Feb 07 07:14:00 Leeds: where are gonna be? Feb 07 07:16:58 not sure yet Feb 07 07:26:51 * g00s can't focus on anything Feb 07 07:28:57 thepoosh what process do you guys use at glide ? scrum, kanban, etc Feb 07 07:29:48 g00s: an abomination of kanban Feb 07 07:30:02 we use JIRA in order to arrange the sprints Feb 07 07:31:42 hm. thepoosh now that atlassian has trello ... Feb 07 07:32:06 yeah, we used the boards to plan Feb 07 07:32:25 and then convert to JIRA with the timeline iterated verbally and in emails Feb 07 07:37:29 altassian is buyin everythin Feb 07 08:41:37 raoul11: you'll never believe it Feb 07 08:41:44 we might integrate RxAndroid Feb 07 08:42:56 instead of what? Feb 07 08:45:16 of our custom observers Feb 07 08:45:23 and as part of a library for NTP Feb 07 08:45:27 TrueTime Feb 07 09:11:59 thats a bold move thepoosh Feb 07 09:52:44 Hey lads Feb 07 09:52:50 is there any way to use the screenshot tool Feb 07 09:52:56 in AS, without actually taking a screenshot Feb 07 09:53:08 I just want to use the framer and flare features etc. Feb 07 10:31:55 Is there a way to get the map bounds from google maps without setting a listener? Feb 07 10:32:23 I just want something like getCurrentBounds(), not do it everytime it changes. Feb 07 10:37:07 is there any attribute which can set certain value to edittext when it is empty? Feb 07 10:37:50 Syzygy mGoogleMap.getProjection().getVisibleRegion().latLngBounds; Feb 07 10:38:18 abhi__, are you talking about hint? Feb 07 10:38:24 raoul11, thanks Feb 07 10:38:27 no default value Feb 07 10:39:24 pretty sure thats a hint? Feb 07 10:40:03 abhi__, you can set a default text with android:text or setText. but I assume what you want is android:hint or setHint. Feb 07 10:47:31 I take it Chromecast receivers still need the encryption certs from Google, so I can't implement one? Feb 07 12:30:34 i'm having a hard time to understand Lint errors: why do they arise and which ones should i care about? i'm getting an InvalidPackage error on a reference by a library that's "not included in Android" Feb 07 12:38:24 depends on what you're using and how Feb 07 12:45:52 how do you use the keyboard to switch between design and text mode of editors? Feb 07 12:47:22 i'm using an apache commons math3 library Feb 07 12:50:00 i'm only using one class called SimpleRegression, but i keep getting build errors about references to some 2d geometry classes that (i think) i don't need Feb 07 12:51:12 what classes Feb 07 12:51:48 java.awt.geom.AffineTransform Feb 07 13:04:28 you can probably just add lintOptions { disable 'InvalidPackage' } to your build.gradle Feb 07 13:04:38 but you'll need to test it properly Feb 07 13:05:36 i want to know 1) do i actually need the class and 2) how do i include it Feb 07 13:05:51 Warning: org.apache.commons.math3.geometry.euclidean.twod.Line: can't find referenced class java.awt.geom.AffineTransform Feb 07 13:06:38 so some part of the library references to an unknown class, i get that Feb 07 13:07:16 but i can't find any stacktrace that would tell me why that class is even called Feb 07 13:07:55 because my implementation only uses org.apache.commons.math3.stat.regression.SimpleRegression Feb 07 13:08:33 is there anything in the build log that would help me figure this out? Feb 07 13:08:45 It is just referenced by the Line class and isn't available on Android - it doesn't mean you are using it necessarily Feb 07 13:09:05 alright Feb 07 13:09:26 i thought so too Feb 07 13:10:01 so that was the original build error Feb 07 13:10:42 but after i added '-dontwarn java.awt.geom.AffineTransform' in proguard rules the build process got noticeably further but ended up in lint errors Feb 07 13:13:35 You can add a lint rule to not report that issue, as Zharf noted - just make sure you test to make sure everything works properly Feb 07 13:15:16 * raoul11 thepooshes thepoosh Feb 07 13:15:52 ok Feb 07 13:17:03 as i'm not familiar with proguard, my assumption is that it can be used to minimize the source code by excluding unused resources Feb 07 13:18:11 but for some reasons (perhaps to reduce build times) this feature is not enabled on all build variants Feb 07 13:18:51 so does this mean that every single reference the library has is included in the non-optimized build variant? Feb 07 13:23:08 Android is initially developed by google or by Rich miner,Andry rubin? Feb 07 13:23:57 JuliusN, yes Feb 07 13:24:19 gotcha Feb 07 13:24:27 it's not really a problem unless you hit the dex method limit Feb 07 13:24:45 what's that? Feb 07 13:24:49 64k Feb 07 13:24:51 oh Feb 07 13:25:12 ?? Feb 07 13:25:14 including stuff like guava can very easily get you there Feb 07 13:25:42 sub_zero, google bought Android Inc Feb 07 13:26:14 so who is the initial developer of the two? Feb 07 13:27:07 None of them. Feb 07 13:27:12 It's not a single person project. Feb 07 13:28:04 not person Feb 07 13:28:22 wikipedia says Android Inc started development in 2003 Feb 07 13:28:23 am asking between google and Android Inc Feb 07 13:28:34 first alpha was ready in 2007 though Feb 07 13:28:47 google bought android inc in 2005 Feb 07 13:28:54 correct Feb 07 13:29:41 i was solving the mock tests in that i clicked on Android Inc as initial developer but they say google is the right answer Feb 07 13:30:01 mock tests? Feb 07 13:31:00 quiz* Feb 07 13:31:17 why would you bother with such quizes :p Feb 07 13:32:19 can revise the concepts easily rather than reading the whole stuff Feb 07 13:34:24 what quiz /: Feb 07 13:36:09 lol Feb 07 13:36:15 interesting, settin layout params on a dialogfragment during onViewCreated has no effect, but onResume does Feb 07 13:38:43 dialogs are a bit weird Feb 07 13:39:05 window.requestFeature does work Feb 07 13:39:17 thought the window has already settled Feb 07 13:39:20 Zharf, isn't everything? Feb 07 13:39:51 Syzygy, if everything's weird, it becomes the norm, dialogs are still weird out of that Feb 07 13:40:42 I can live with double weird. Feb 07 13:41:39 as if theres a choice Syzygy Feb 07 13:42:29 :( Feb 07 13:43:38 Anyone know how to use that screenshot tool in AS Feb 07 13:43:42 without uh.. Feb 07 13:43:47 actually taking a screenshot? Feb 07 13:44:20 I guess I could open the screenshots i took up Feb 07 13:44:23 on a phone.. :P Feb 07 13:44:26 raoul11: HAY! Feb 07 13:45:38 hi buddy Feb 07 13:45:52 look thepoosh, there's rare^ Feb 07 13:46:13 tx: like having sex without actually having sex? Feb 07 13:46:20 ;) Feb 07 13:46:37 what are you trying to do tx? Feb 07 13:46:50 the framing Feb 07 13:46:56 and glare effects Feb 07 13:46:59 in that post-shot editor Feb 07 13:51:43 so you want an empty screen sized picture with glare? Feb 07 13:52:13 ? Feb 07 13:52:14 no Feb 07 13:52:20 I want to use that post-shot editor Feb 07 13:52:26 with a screenshot I have already taken. Feb 07 13:54:27 tx, what you can do is take the frame resources/png in AS and use them in your favorite pic editor Feb 07 13:54:40 (this is what i do sometimes, for store listing mainly) Feb 07 13:54:46 Yeah I know I know Feb 07 13:54:51 I could just edit them myself Feb 07 13:54:53 :P Feb 07 13:54:53 since it's not a very often task, i find it acceptable to do it manually Feb 07 13:55:12 Has anyone managed to get debug working over wifi on android studio? Seems like it doesn't support it out of the box, but plugins available that supposed to fix this. Tried two and they both fail to detect the device, even though I've done a `adb connect ` and `adb devices` lists the device as connected Feb 07 13:55:18 there are few online tools now too Feb 07 13:55:23 (but i avoid them) Feb 07 13:55:25 I was not aware of that feature, thanks for bringing it to my attention Feb 07 13:55:44 leeming: on devices that don't let you turn on ADB over Network in Developers Feb 07 13:55:48 you need to connect via USB Feb 07 13:55:51 put adb in tcpip mode Feb 07 13:55:56 leeming, you need to first connect it via usb once, to have adb over wifi working Feb 07 13:55:57 and then connect to it Feb 07 13:56:00 check the documentation, leeming Feb 07 13:56:02 (then you can disconnect) Feb 07 13:56:03 yeah Feb 07 13:56:41 I have connected via usb and called tcpip, thus why I can already connect and see it on the terminal? Feb 07 13:56:59 wifi debug works.. just not in AS Feb 07 13:57:12 weird then Feb 07 13:57:18 it's AS... lot of bugs Feb 07 13:57:22 does it come up in the small device selection list Feb 07 13:57:25 top left of log output? Feb 07 13:57:26 maybe uncheck/check adb integration Feb 07 13:57:38 or kill all your adb daemons and restart it Feb 07 13:57:39 thats woodoo adq Feb 07 13:57:40 adq, done that already, but can try again Feb 07 13:57:44 also turn off filtering to ensure we're not just getting no output lol Feb 07 13:57:54 lol ra Feb 07 13:57:56 oops Feb 07 13:58:31 when we use points to give dimensions? Feb 07 13:58:52 points? Feb 07 13:58:54 as in? Feb 07 13:58:58 pt? Feb 07 13:59:01 yes Feb 07 13:59:03 tx, "small device selection list" ? on the Android monitor tab? or on the main menu bar? Feb 07 13:59:05 Don't Feb 07 13:59:07 use sp instead Feb 07 13:59:19 ok ty Feb 07 13:59:23 and it's for __text__ Feb 07 13:59:32 ohh Feb 07 13:59:39 leeming: the tab Feb 07 13:59:45 leeming, "works for me" Feb 07 14:00:15 I even tried this plugin https://github.com/pedrovgs/AndroidWiFiADB Feb 07 14:00:54 my life has changed with double shift adq Feb 07 14:01:20 yeah, it's a very useful command Feb 07 14:01:46 double shift? Feb 07 14:01:52 I keep forgetting it and using ctrl + n lol Feb 07 14:02:13 debugging over wifi is annoyingly slow though, takes a few hundred milliseconds to move to the next line Feb 07 14:02:16 I'll just stick to USB Feb 07 14:03:02 Zharf, unfortunately my app drains the battery faster than a USB charge from my laptop can provide :P Feb 07 14:03:31 there is a reason for that :) it isn't a general purpose app btw Feb 07 14:03:32 -.- Feb 07 14:04:02 lol Feb 07 14:04:07 inb4 Feb 07 14:04:12 he's making a stress test app Feb 07 14:04:12 some of our tablets drain battery faster than it can charge over usb but only while playing video Feb 07 14:04:45 yeah, big screens tend to do that Feb 07 14:04:56 yeah Feb 07 14:06:12 screen is off if i remember for this one Feb 07 14:06:22 but yes. stress testing.. / making sure it doesn't explode/die Feb 07 14:06:42 tx, try it Feb 07 14:07:17 leeming, what device? because the adb over wifi worked fine for me without even trying too hard Feb 07 14:07:27 Pixel Feb 07 14:08:33 I did notice that android monitor had my device twice in it Feb 07 14:08:40 one for usb connection and one for the wifi Feb 07 14:11:40 :') i've seen worse than that Feb 07 14:12:01 they still don't allow us to have multiple logcat open at same time in AS Feb 07 14:12:08 ima temp ragequit Feb 07 14:12:49 \: Feb 07 14:12:56 classic adq Feb 07 14:16:31 lol, you can have multiple as instances on other hand Feb 07 14:16:43 "solution" Feb 07 14:22:41 humm odd.. so it works if it is plugged in with usb.... but as soon as I unplug, it doesn't see either... -_- Feb 07 14:49:21 Hello! I have a problem with multidex, my Application class somehow ends up in a secondary dex file, and I can't put it back in the main Feb 07 15:06:26 loredan13: https://developer.android.com/studio/build/multidex.html#keep Feb 07 15:06:56 dsardari: right. it doesn't work Feb 07 15:07:45 are you extending MultiDexApplication or using the .install? Feb 07 15:08:01 dsardari: I am using .install Feb 07 15:08:26 Somehow I think that SimpleSpinner is anything but simple. Feb 07 15:08:27 have you tried extending? Feb 07 15:09:03 dsardari: No Feb 07 15:10:16 dsardari: It doesn't do anything though if you look in the code Feb 07 15:11:11 dsardari: just calls MultiDex.install(this) Feb 07 15:11:54 True. I was thinking they might be specifically looking for that class when compiling. Feb 07 15:27:43 is there an adb command to clear app data Feb 07 15:27:55 it drives me nuts that every vendor buries the setting in some menu Feb 07 15:28:37 missingno, with `pm' Feb 07 15:28:54 but it's painful manually, install ADB Idea instead Feb 07 15:29:02 I figured it was painful Feb 07 15:29:37 the hell is ADB Duang Feb 07 15:29:48 silly alphabetical search results Feb 07 15:30:11 thank you adq Feb 07 15:30:41 np, if you want faster access, put an icon shortcut in the toolbar of AS Feb 07 15:30:47 now if only I can find an old version of Vysor that isn't laggy Feb 07 15:30:54 still a bit slow to go tools>android>etc Feb 07 15:50:07 Using Android on a desktop to learn development. Is there a package manager for Android ? I want to install htop. Feb 07 15:50:56 is there a compelling reason to use retrolambda instead of jack? Feb 07 15:52:56 mikedg: the reason is usually jack failing to work at all Feb 07 15:53:02 if jack works for you, use it Feb 07 15:56:53 what do you think about RxJava on Android ? Feb 07 15:57:55 CuSn, usually you would use the android sdk manager plus gradle for library management. Feb 07 15:58:40 ah. Thanks Feb 07 15:58:56 no idea how you want to use htop though. Feb 07 15:59:36 sometimes I feel I use rxjava too much Feb 07 15:59:56 or what exactly that does. it's a process viewer according to google, so I can't tell how that fits your question. Feb 07 16:00:11 Syzygy: It just makes it easy to look at what processes are running. Feb 07 16:00:21 htop... on Android? Feb 07 16:00:28 That sounds like you're doing something very wrong. Feb 07 16:00:49 Syzygy: it makes viewable-scrolling windows on the terminal screen Feb 07 16:01:24 android studio has some process viewer like tools for profiling, alternatively the play store is technically a package manager and might have some sort of process viewer :P Feb 07 16:01:38 Mavrik, Well i started using top on BSd in 1983. :-) I'd just feel naked without it or htop. :-) Feb 07 16:02:00 Yes, but Android isn't a standard linux distribution with binutils and that stuff. Feb 07 16:02:10 Mavrik: understood. Feb 07 16:02:14 It's... just the wrong approach which will hurt you on every step :/' Feb 07 16:02:25 I guess you can install busybox. Feb 07 16:02:39 Mavrik: have you suggestion for a way to become famiiar with the right way? Feb 07 16:02:48 *familiar Feb 07 16:02:48 Hrmf. Feb 07 16:03:29 What do you want to do with it? Feb 07 16:03:39 Its a sincere question. I've used Unix Since 1978 and I am, naturally, rather used to the the classic approach. Feb 07 16:03:57 What do i want to do? Well, everything? Feb 07 16:04:14 I mean, it's not a very good desktop PC OS. Feb 07 16:04:28 CuSn, https://developer.android.com/training/index.html is always a good start imho. Feb 07 16:04:29 It's meant for phones (and perhaps tablets) and it shows. Feb 07 16:05:14 I've found this book to be a rather nice explanation on how it differs internally from a standard Linux distro: http://shop.oreilly.com/product/0636920021094.do Feb 07 16:06:22 Mavrik: That makes sense. I started out coding real-time assembler for telecomm equipment. i've done CAd/CAm software, Medical Device ROM, ASICS design systems, SUNOS. I'm hopeful i can learn this too. Feb 07 16:06:54 Syzygy: thank you. sorry for slow response. Feb 07 16:09:31 Mavrik: I'm used to *NIX boxes that have had X-Windows dumped for custom displays. I'm sort of assuming Android is similar to that kind of thing. Feb 07 16:09:57 No XWindows, no standard OS layout, pretty much no /dev interfaces. Feb 07 16:10:05 A lot of custom kernel interfaces you talk to via Java API. Feb 07 16:10:14 You won't even find a standard init. Feb 07 16:10:39 So more different than typical. Good to know Feb 07 16:10:56 Even the processes themselves aren't really a useful way of looking at things, even though they exist. Feb 07 16:13:01 I'm running a live image on a USB stick, Using only about 4 Gb out of the whole 32GB. Is there a direction I should look into to making the rest of the usb-drive part of the available storage? Feb 07 16:15:17 Why not start writing regular apps for the phone or an emulator? Just to get started. Feb 07 16:16:01 No storage. :-) Feb 07 16:16:37 You can probably get an emulator running using that USB stick. Feb 07 16:17:09 Syzygy: run Androind in VM? Feb 07 16:17:59 using your regular trusty old OS to run an AVD Feb 07 16:18:25 (adnroid virtual device, part of the tools provided by android) Feb 07 16:18:38 *by the android sdk Feb 07 16:18:56 hey, any clue if it is possible to do multitouch in android emulator? well it is an issue like I am blind, and I cannot use the emulator as I need talkback to be enabled, talkback needs multitouch, etc Feb 07 16:19:21 does the SDK get installed on Android or on 'regular' Linux? Feb 07 16:19:36 regular linux/windows/whatever Feb 07 16:19:39 CuSn, on your regular OS Feb 07 16:19:44 gracis. :-) Feb 07 16:19:56 * CuSn looks for his missinga key... Feb 07 16:21:27 webczat, you can have multitouch on your emulator by having an actual device attached... which kind of seems to defeat the purpose... ( http://tools.android.com/tips/hardware-emulation ) Feb 07 16:22:10 also, are you actually a blend software developer or are you trying to implement talkback? Feb 07 16:22:18 maybe it does not defeat the purpose if the second android phone is used as a kind of... input device Feb 07 16:22:29 webczat, there's some talk about multi-touch on some of the doc pages Feb 07 16:22:30 Syzygy: I am actually blind Feb 07 16:22:39 buuut, you need an actual device to be the input sensor :/ Feb 07 16:23:32 interesting, yes, the attached phone would act as your input device, I say it would defeat the purpose because at that point you can just run your software on the phone rather than the emulator (yes, I know there are some edge cases where that makes sense) Feb 07 16:24:22 Syzygy: what about emulating a large screen like a tablet? Feb 07 16:24:41 you see your app like on the tablet. the phone could maybe need scrolling but Feb 07 16:25:55 Mavrik: do you think I do not have an actual device? lol Feb 07 16:26:37 I don't know, I assume the phone displays a scaled version of the emulated app. I've never used it myself. This link contains all the info I have on the topic http://tools.android.com/tips/hardware-emulation Feb 07 16:27:51 what do you think about rxjava on android ? Feb 07 16:28:08 ech0s7, seems interesting, never tried it. Feb 07 16:29:01 well i be dang. Android has a native version of top, and it scrolls, like htop. :-) Found it 2 seconds after i began to understand I should be using the dev-device-emulator approach. :-) Feb 07 16:32:17 CuSn, if you plan to develop android applications on an android platform, you will lose all your sanity Feb 07 16:32:40 adq: no great loss there. :-) Feb 07 16:32:54 well, time is very important Feb 07 16:33:01 Syzygy: i'm curious to know which app on the market are using it, i mean which app... if they exists Feb 07 16:33:12 It'll distract me from the current events. :-) Feb 07 16:33:14 expect to fail miserably, even if you have a strong background of UNIX Feb 07 16:33:57 but if you enjoy trying, go for it, you've been warned :) Feb 07 16:34:03 adq: or maybe even because of my *NIX background. Looks like Google wants android devs encapsulated in their new/different environment. Feb 07 16:34:11 also keep in mind this channel is for application development Feb 07 16:34:18 gatcha. Feb 07 16:34:28 ah, there's the missing a! Feb 07 16:34:41 no one will be able to help you to setup an android dev environment on android, i barely heard of AIDE and i would not recommend it Feb 07 16:35:31 adq: I'll follow th recommended path, which i now understand is to use Googles dev tooling running on a PC. to emulate an android device. , correct-ish? Feb 07 16:35:57 yep, basically you can setup your android dev env on windows linux or macosx Feb 07 16:36:19 CuSn, ish, you don't need to emulate the android device, you can run it on an android device directly using adb. Feb 07 16:36:22 all those 3 supports android device emulation, and there are alternatives too and also you have physical devices Feb 07 16:36:43 i think it's a need to emulate android device Feb 07 16:37:01 because it's not like you will have so many devices with so many resoltuions and so many different API, + it would be a pain on your desk Feb 07 16:37:13 and it's also usually slower versus a powerful host Feb 07 16:37:25 Gonna feel weird not doing development on the target device. Takes me back to 1986 and using Hardware-in-circuit-emulators of new cpu's. Feb 07 16:37:53 well, keep in mind probably more than 80% of the physicalk devices are under ARM Feb 07 16:38:01 Syzygy: ah. OK. Feb 07 16:38:05 and your hosts is probably an x86 (32 bits or 64bits) anyway Feb 07 16:38:23 so it's not like it's already a complete different world ;) Feb 07 16:38:51 yup Feb 07 16:38:54 you need lot of ram Feb 07 16:38:58 if you no one told you Feb 07 16:39:06 8GB is the bare minimum to be confortable Feb 07 16:39:07 lots is...? Feb 07 16:39:13 oh, OK. Feb 07 16:39:18 i have 32 and i can almost fill it Feb 07 16:39:23 No problem there Feb 07 16:39:42 then you're all set up, have fun! Feb 07 16:39:59 "fun"... heh. Feb 07 16:40:41 if you're used to vim or emacs, and never tried android studio, you will have fun lol Feb 07 16:40:44 believe me ^^ Feb 07 16:41:17 just seeing your IDE taking so much resources, being so slow, but got many interesting features at least, is mind blowing Feb 07 16:43:03 * webczat used eclipse, now is using android studio on windows, on a vm having 4gb, and it works pretty well and not so slow. :) the problem is that java swing app accessibility on linux is borked Feb 07 16:43:21 and I am a linux only user Feb 07 16:45:58 and you need accessibility? Feb 07 16:46:18 don't need to use an IDE to do android dev, though Feb 07 16:46:23 just need a build tool with fast feedback cycles Feb 07 16:51:05 pfn: do you really want me to for example type imports manually? Feb 07 16:51:11 ad break formatting every 0.5 millis Feb 07 16:51:22 typing imports manually is easy Feb 07 16:51:40 but error prone and frustrating Feb 07 16:51:40 formatting is easily handled by vim/emacs as well Feb 07 16:51:53 * webczat is not a vim nor emacs user Feb 07 16:52:04 * webczat is an eclipse user in general Feb 07 16:52:08 and it's not error prone to handle imports manually Feb 07 16:52:26 if you don't know the library/framework, sure Feb 07 16:52:40 you'll learn fast when it's constantly being reinforced by doing it manually, though Feb 07 16:52:50 ides are too nice and I am not going to stop using them. Feb 07 16:53:14 pfn: I can learn the same while browsing documentation for the library lol Feb 07 16:53:29 * pfn shrugs Feb 07 16:53:36 * pfn develops effectively regardless of having an IDE or not Feb 07 16:54:04 pfn: sure, I was myself such a command line user, but now I am not :) Feb 07 16:54:15 I use an IDE for android dev; I use vim + makefiles for everything else Feb 07 16:54:43 if clion didn't mandate cmake I might switch, to be honest. vim + YCM is a beast on resources too. Feb 07 16:55:11 hi - which activity callback to use to save some values at sharedPreferences before user closes the app? onDestroy() is ok for that ? Feb 07 16:55:12 I use android studio for android but I have to spawn windows vm on a server just to do it lol, eclipse for other java dev, and not sure what I will use for non java dev. maybe with eclipse, but probably cmake as build system Feb 07 16:55:27 gottaGO, onPause Feb 07 16:55:29 or onStop Feb 07 16:55:34 webczat, why a windows vm? Feb 07 16:55:48 since android 7.0 (?), onStop is guaranteed Feb 07 16:55:54 dragorn, he said he needs accessibility and linux is borked Feb 07 16:55:56 or something Feb 07 16:55:58 ah Feb 07 16:56:17 Well I certainly can't argue that accessibility is borked all over and linux is particularly borky Feb 07 16:56:59 dragorn: in general, not really. linux is in general well accessible, but java to swing accessibility bridge is borked Feb 07 16:57:36 dragorn: so it is the bridge thing. I should probably go and either make a bridge or fix te existing one Feb 07 16:58:12 because android studio with a windows bridge works almost as good as eclipse does. Feb 07 16:58:49 still not same level but issues are minor. I did not actually expect it can work so well Feb 07 17:00:28 good for you Feb 07 17:01:18 Ashiren: no, because now to make android apps I have to run windows on a vm, and because my laptop does not have many resources I have to run it on my remote server, I ean windows vm sits on a server where I am ircing from. :D so it is not so good Feb 07 17:01:26 still better than nothing Feb 07 17:01:49 gottaGO: onDestroy is not 100% reliable if activity gets killed i.e. because of low memory. onPause() is guaranteed to execute, but it happens more than once so you should check there is activity is finishing Feb 07 17:02:11 webczat: but android studio is also for linux :? Feb 07 17:02:34 Ashiren, how can I check if activity is finishing in onPause() ? Feb 07 17:02:59 Ashiren: accessibility requires a bridge that is broken on linux. very broken Feb 07 17:03:08 isFinishing() Feb 07 17:03:20 oh cool! thx Feb 07 17:03:25 so you cant access the accessibility, how ironic Feb 07 17:03:31 Ashiren: I believe that if I would have the bridge working properly then as would be as accessible on linux as on windows Feb 07 17:04:14 maybe I am wrong but I really doupt so Feb 07 17:13:20 anyone know how I can debug this issue further? http://stackoverflow.com/questions/42079427/classnotfoundexception-android-net-zerobalancehelper Feb 07 17:21:19 rubenwardy: hm, ZeroBalanceHelper does not exist in the official Android source code. Feb 07 17:21:28 rubenwardy: Have you installed some custom ROM? Feb 07 17:21:38 No :/ Feb 07 17:21:55 I'm using a Sony M4 Aqua device Feb 07 17:22:33 Here's someone else that had that problem: Feb 07 17:22:34 http://stackoverflow.com/questions/38173027/what-is-android-net-zerobalancehelper-in-android-studio-and-why-it-cause-errors Feb 07 17:27:57 turns out I'm an idiot Feb 07 17:28:03 heh Feb 07 17:28:26 basically, the code is surrounded by try { } catch (e) { } Feb 07 17:28:37 when it didn't work, I looked in the log and saw that message Feb 07 17:29:06 turns out that message must have been printed by a try catch in okhttp, not my try catch Feb 07 17:29:39 and I made a typo in the name of the end point so I didn't think it was working Feb 07 17:42:08 ZeroBalanceHelper must come from a custom rom... Feb 07 17:44:26 when android studio creates a new project, how does it determine what package name to put into the lib project? Feb 07 17:44:32 is it just packagename.lib? Feb 07 18:54:37 huh, is it dead in here? Feb 07 18:54:55 hmm, why does my TextView's center alignment get nullified when the text get ellipsized... Feb 07 18:55:31 s/alignment/gravity Feb 07 19:01:27 pfn, because it's poorly handled, i had a bug with ellipsize and special char like \ in a long string, cutting much the text much before the ellipsize Feb 07 19:05:23 err /, basically a string like that "sha256/123456789qfmvrLZ/123456789mn728BnB123456789=" with ellipsize did not render well, iirc i had to add the old deprecated singleLine at true or something to fix it -_- Feb 07 19:06:09 or maybe it was wrap_content, cannot recall Feb 07 19:08:27 yeah, it's pretty weird Feb 07 19:09:08 I guess I'll just switch back to using deprcated singleLine Feb 07 19:10:26 What’s the best way to create and subscribe to an observable and ensure that down the line other classes can subscribe to it after it finishes and get the results too? Feb 07 19:10:39 Should I wrap it in a behavior subject? Feb 07 19:11:05 i read that earlier: http://konmik.com/post/when_to_not_use_rxjava/ Feb 07 19:11:16 bah, just always use rxjava Feb 07 19:11:22 or jdeferred Feb 07 19:11:23 :)) Feb 07 19:12:28 Hahaha Feb 07 19:13:00 well, anything that is asynchronous should be wrapped in an observable, single, future or promise Feb 07 19:13:19 if it's not asynchronous, or unchanging (in the case of rx) it should not be Feb 07 19:13:50 The old system we had was creating an observable with fromCallable then sending an event to an event bus from within the subscription Feb 07 19:14:06 I’d rather find a way to just return an observable directly to be subscribed to instead of passing info via event bus Feb 07 19:15:36 Am I correct in assuming that Observable.fromCallable().share() won’t emit previous results so it would be creating a race condition where only subscriptions which happen before the background operation completes will recieve the result? Feb 07 19:17:05 * pfn doesn't use rx Feb 07 19:17:06 * pfn shrugs Feb 07 19:24:53 I guess I should ask this instead, if I subscribe to an observable with a Subject, is that essentially wrapping the event in the Subject? Feb 07 19:27:30 to the hell auto-value! why it does not generate anything?! Feb 07 19:28:11 it working in one project and not working in project next to it. what the black magic is it Feb 07 19:30:35 it's not generating Autovalue_* classes. with annotationProcessor and apt Feb 07 19:30:45 should I bootstrap it somehow? Feb 07 19:32:38 adq, yeah, setSingleLine does more shit than setMaxLines(1) Feb 07 19:33:14 also try with wrap_content, i'm not sure why but i think it computes the limit where it should ellipsize differently than with match_parent Feb 07 19:33:26 probably order of layout pass or something, again Feb 07 19:34:03 i wish they should separate textview into 2 new components, one not doing much with everything working properly (and if possible justified text because come on it's 2017) Feb 07 19:34:16 and another with everything to not break old apps using regular textview Feb 07 19:34:38 i remember when i looked the source of TextView, it's a gigantic class Feb 07 19:34:58 didn’t they do that? Feb 07 19:35:07 they have the AppCompatTextView now Feb 07 19:35:08 adq, have to set inputType to single line Feb 07 19:35:13 and stuff Feb 07 19:35:45 it's so stupid... singleLine being deprecated and maxLines doing not the same thing... Feb 07 19:37:25 yep, and not only for this issue Feb 07 19:37:28 remember the old "marquee" Feb 07 19:37:36 it's part of ellipsize too, it won't work without singleLine lol Feb 07 19:39:55 anyone reached device's flash memory end-of-life? looks my development device has got it Feb 07 19:46:38 yes, on a few test devices bitkiller Feb 07 19:46:44 from like 2011 Feb 07 19:46:56 also recently some ppl in here chatted about their N9 or N7 failing hard for similar reasons Feb 07 19:47:19 bitkiller oh noes :( Feb 07 19:47:39 it's a gtab 2 running CM Feb 07 19:47:43 it's kinda the lottery anyway Feb 07 19:47:44 hopefully those cheap Android One phones will be available in the US soon Feb 07 19:48:02 i got few cheap devices/tablet, prices was like 50$ Feb 07 19:48:07 they're still not failing lol Feb 07 19:48:22 except in software Feb 07 19:48:23 :)) Feb 07 19:48:29 file system gets read-only out of nothing Feb 07 20:54:29 why is there support v13 of fragmentpageradapter Feb 07 20:54:35 alongside the v4 one Feb 07 20:54:48 I wish they'd document what each of these backports Feb 07 21:00:01 http://imgur.com/a/p4x2c it keeps stacking *.* Feb 07 21:33:03 missingno, because v13 is for framework fragments and v4 is for support fragments Feb 07 21:33:06 duh Feb 07 22:55:27 I'd like to start using an issue tracker. Which one could I use? Is there one that I host on my Windows 10 desktop? Feb 07 22:59:33 Anyone know how to define a custom ASCIIZ also known as BOOT_NAME_SIZE in BoardConfig.mk? Feb 07 23:01:41 notanoob: It smells like rooting: #android-root Feb 07 23:02:24 :P I just figured it out anyways Feb 07 23:35:36 Hi there, when publishing a new app, should I check "exclude from promotion my app except on google play, serach (and all google things)"??? I dont get it... where other sites it gets promoted? does it have cost? Feb 07 23:43:54 "Do not promote my application except in Google Play and in any Google-owned online or mobile properties. I understand that any changes to this preference may take sixty days to take effect." Feb 07 23:46:13 it has no cost for you Feb 07 23:46:34 but I dnt get what it means Feb 07 23:46:54 it will be promoted in other sites that are not google? Feb 07 23:47:06 if I not check it Feb 07 23:47:47 I guess third party alliances that google may have? Feb 07 23:49:30 obviously yes Feb 08 00:21:43 hey android-dev. I need to make a camera app for a school project. Instead of reinventing the wheel, is there a good base camera app/library we could start from? Feb 08 00:22:22 like, is it an assignment? if so, use the base Camera/Camera2 api Feb 08 00:22:35 they likely want you to learn to use the basics Feb 08 00:22:41 not directly Feb 08 00:23:18 its an open-ended senior human/technology interface course Feb 08 00:23:27 we just chose to make an app involving the camera Feb 08 00:24:07 so having the most usable interface is the goal Feb 08 00:24:43 i see Feb 08 00:24:55 thats why we figure, just improving upon an existing project would make more sense Feb 08 00:25:38 i mean, the camera api isn’t that difficult. Unless you’re going crazy with the options and filters and stuff, you could probably have it taking pictures in a couple hours Feb 08 00:25:45 One of the official Android samples is a (very minimal) Camera2 demo app, in case that helps: https://developer.android.com/samples/Camera2Basic/index.html Feb 08 00:25:59 (That one doesn't really have an interface to speak of, but it does the camera bits.) Feb 08 00:26:08 while im here Feb 08 00:26:11 that’s probably a pretty good start, if you’re using a device which supports Camera2 Feb 08 00:26:16 we chose to use 6.0 Feb 08 00:26:31 because we saw it had camera improvements Feb 08 00:26:48 is this actually a good choice or should we stick to 4.0 Feb 08 00:26:54 stick to 6.0 Feb 08 00:27:08 even if it didn’t have camera improvements, I’d suggest going as high as you could Feb 08 00:27:13 4.0 is ancient Feb 08 00:27:17 right Feb 08 00:27:23 but dont most phones still use it? Feb 08 00:27:30 i picked up a nexus 5x Feb 08 00:27:37 so ive had good android Feb 08 00:27:40 i wouldn’t bother yourself with that, yet Feb 08 00:28:04 you’re probably looking at making a Proof of Concept, not having something out in the wild Feb 08 00:28:11 yeah exactly Feb 08 00:28:26 go with what you have, in that case Feb 08 00:28:41 It's also not quite "most" any more, because 63.7% are >= 5.0. Feb 08 00:29:15 isnt android already at 7.0? Feb 08 00:29:21 7.1 Feb 08 00:29:38 i know its all that proprietary stuff but lol Feb 08 00:30:21 so camera2 is probably the library of choice here? Feb 08 00:30:32 if you’ve got a device that can support it Feb 08 00:30:37 i was thinking about trying to merge libgdx with android studio Feb 08 00:30:38 what all does it need to do? Feb 08 00:30:51 developing an app for the colorblind Feb 08 00:31:05 so looking at something, and determining what color it is? Feb 08 00:31:13 so we want to give understandable information about the color Feb 08 00:31:19 and understandable is the main goal Feb 08 00:31:30 that will be more on you Feb 08 00:31:36 yeah pretty much Feb 08 00:31:41 you are the one that has to interpret the data Feb 08 00:31:47 but the interface has to be clean Feb 08 00:31:51 or, rather, come up with the algorithms to interpret it Feb 08 00:31:59 and the more we can spend on doing the algorithms Feb 08 00:32:03 exactly Feb 08 00:33:41 i think i can read somewhere i can just have the default camera app do all that for us Feb 08 00:33:43 is this true? Feb 08 00:33:50 actually, yeah Feb 08 00:35:04 now my question is, can i integrate that into our new interface so the user has a consistent experience? i wouldn't want to be switching in between apps. the app should technically handle it Feb 08 00:35:24 you can either get the camera feed on your screen, being a live preview, or get the built in camera app to take the picture and load it up Feb 08 00:35:39 if you don’t want to switch apps, you’ll have to do it yourself Feb 08 00:36:44 then again, you could argue that a user would rather use an interface that they are more comfortable with to take pictures. then use our app to get information about it Feb 08 00:37:27 i would imagine, instead of taking an actual picture, you’d want to have the camera feed on the screen, and analyze the pixels in real time Feb 08 00:37:45 so I don’t have to take a picture, load it up, and then tell what it is. Feb 08 00:37:54 and have a bunch of pictures cluttering up my phone Feb 08 00:37:59 thats what i originally wanted Feb 08 00:38:19 but i feel like, having to hold the camera and interact with the phone would be cumbersome Feb 08 00:39:10 and when youre colorblind, everything blends together. so it might take some time to go through the picture Feb 08 00:39:42 not everything, but they have a specific range depending on the colorblindness Feb 08 00:40:52 but thats a good point Feb 08 00:40:55 don’t go through everything. have like a small targeting reticule on screen and analyze that Feb 08 00:41:09 yeah we want to draw a circle around the finger Feb 08 00:41:18 and analyze that Feb 08 00:41:40 could do that. start by just having a static circle in the middle of the screen Feb 08 00:41:46 get that down, before you start moving it Feb 08 00:42:43 is asking other apps for information straight forward? Feb 08 00:42:56 yes and no Feb 08 00:43:04 you’d use the Intent system. Feb 08 00:43:16 but not a lot of apps have the Intents they respond to published Feb 08 00:43:40 so if im stock android Feb 08 00:43:52 the system intents are all documented Feb 08 00:43:54 i asked camera app to send me a picture, itll probably work with the default way we coded it Feb 08 00:44:07 but if i asked app_great_color_++++++ Feb 08 00:44:13 it might not give us the same response Feb 08 00:44:26 correct Feb 08 00:45:07 thats a good point Feb 08 00:45:57 can we store images into data temporarily? Feb 08 00:46:07 i think so Feb 08 00:46:09 i dont want a user to save a bunch of meaningless photos Feb 08 00:46:18 and we can do that with camera2? Feb 08 00:47:02 i believe so Feb 08 00:47:43 ok cool, thank you for help Feb 08 00:50:06 ive never worked with android. This is a good insight into what we have to do Feb 08 01:22:59 lol "Is Adobe Air/AS3 truly dead?" Feb 08 01:30:57 it’s not dead yet Feb 08 01:50:59 so it's setContentView that takes a layout and creates a Context from an Activity? Does this make sense Feb 08 01:51:02 ? Feb 08 01:51:43 is there a nice graphic that shows perhaps an inheretance heirarchy of some these basic android UI classes? Feb 08 02:19:49 devvvv, any class in the official documentation shows from which it inherits, also AS with javadoc popup Feb 08 02:32:16 i guess this is something i have to just visualize Feb 08 02:45:01 whoa golang channel has like 1100 people **** ENDING LOGGING AT Wed Feb 08 03:00:02 2017