**** BEGIN LOGGING AT Fri Jun 10 02:59:59 2016 Jun 10 03:07:42 anyone notice, seemingly randomly, that AS builds not once but twice ? Jun 10 03:08:14 its like once the build completes, it kicks off another one Jun 10 03:10:51 i think i may have seen that before Jun 10 03:10:58 just shrugged it off i guess Jun 10 03:27:33 shmoooz, of course it's in android Jun 10 03:27:44 Hello everybody, any of you have worked with dagger 2? is really that good? Jun 10 03:29:53 is there a standard attribute for disabled color, like colorControlDisabled Jun 10 03:56:36 any rxjava guru's around? Jun 10 04:03:39 oh, disabledAlpha Jun 10 04:19:50 r Jun 10 05:31:50 Greetings. for android ndk is it safe to mix shared libraries using different stls? AKA i have a shared lib using 'gnustl_shared' and another using 'stlport_shared'? Jun 10 06:03:56 people, when i press 'minimize all apps', my activity get minimized, and then i can restore it in the same state Jun 10 06:04:20 oh Jun 10 06:04:23 yet another os Jun 10 06:04:24 https://sailfishos.org Jun 10 06:04:37 but if i press 'back', my activity get minimized, but not restored then - it's started as new one Jun 10 06:04:46 > Sailfish OS offers a true independent alternative to the existing US-based mobile operating systems. Jun 10 06:04:52 oh my Jun 10 06:04:57 why this can be people? why? Jun 10 06:05:11 don't tell me it uses US-based utilities, like C compiler or Java-compiler Jun 10 06:06:27 https://sailfishos.org/about/ Jun 10 06:06:28 yay Jun 10 06:06:29 android Jun 10 06:06:30 :) Jun 10 06:06:44 https://sailfishos.org/wp-content/uploads/2016/02/Sailfish_Architecture.jpg Jun 10 06:08:15 > Qt is a powerful cross-platform application library which is ideal for connected devices. In the SailfishOS system it serves as the main graphical UI and provides consistent APIs into most other commonly used device functions. Jun 10 06:08:41 Oh, we're pretty familiar with Qt, most likely. ;) Jun 10 06:08:51 that's nice choice Jun 10 06:08:54 gtk or qt Jun 10 06:09:09 better than android-only xml files Jun 10 06:10:30 > Sailfish OS is a modern GNU/Linux operating system which uses glibc and utilises libhybris to leverage board support packages provided by OEMs for Android. This allows Sailfish OS to be ported to (almost) any device which currently runs Android. Jun 10 06:12:45 > Sailfish OS applications are written in a combination of C++ and QML/QtQuick. Jun 10 06:12:58 damn, they should better stick to C Jun 10 06:13:40 > Android compatibility is enabled by the Android Emulation Framework Jun 10 06:15:34 moveToBackStackNShit do the trick Jun 10 06:20:37 sounds like european android Jun 10 06:20:58 squ: what are you doing? Jun 10 06:21:22 new mobile os announced Jun 10 06:21:30 sailfish is far from new Jun 10 06:21:35 well Jun 10 06:21:49 I just discovered it minutes ago Jun 10 06:22:18 I also thought Jolla had pretty much stopped development while they try to find some money Jun 10 06:22:29 interesting Jun 10 06:22:37 it is european company? Jun 10 06:22:46 Finnish Jun 10 06:22:51 qt is finnish Jun 10 06:22:59 sort of a Nokia spin-off Jun 10 06:23:08 nokia used Qt, right? Jun 10 06:23:46 trolltech, sounds a technology for me Jun 10 06:23:52 Nokia *owned* Qt at one point Jun 10 06:24:58 what do you think about it ? Jun 10 06:25:11 sailfish is not competitor for android? Jun 10 06:25:28 it's dead in the water, just like firefoxos and ubuntutututmobiletouch Jun 10 06:26:12 also, BB10 and windows 7 phone 10 series mobile CE Jun 10 06:26:44 okey Jun 10 06:27:11 Android or iOS - all else is futile Jun 10 06:27:53 android is much worse than ios Jun 10 06:28:02 it should be replaced by something, possibly qt Jun 10 06:28:24 unfortunately google giant supports it Jun 10 06:28:37 er, no Jun 10 06:29:13 ah yes Jun 10 06:29:35 all you need is a MAC (or a machine running OSX) to develop applications Jun 10 06:29:36 qt is used for desktop apps, learning single API will give large benefit Jun 10 06:29:55 uh-huh... I'm going to go talk to the sane people now, instead Jun 10 06:30:05 similar to what microsoft tried, to make their apps run on desktop/mobile Jun 10 06:30:22 microsoft failed. badly. repeatedly. Jun 10 06:30:38 still do Jun 10 06:30:41 we'll see Jun 10 06:30:49 well, no Jun 10 06:30:52 they've given up Jun 10 06:31:04 heh Jun 10 06:31:21 people don't really like UWP Jun 10 06:33:42 paresh: or linux Jun 10 06:33:58 wyoung? Jun 10 06:34:11 paresh: all you need a MAC or linux to develop applications Jun 10 06:34:27 wyoung, how will you test the applications? Jun 10 06:34:53 buy an iPhone? use emulator? Jun 10 06:35:01 last I checked emulator only worked on MAC Jun 10 06:35:07 but that was a while ago Jun 10 06:35:14 paresh: oh iOS development, ok I re-read your statment Jun 10 06:35:24 wyoung, yes Jun 10 06:36:38 I do actually have an iPhone 5C here for testing Jun 10 06:36:58 project due to ramp up imminently - new work! - is to 'port' an iOS app to Android Jun 10 06:39:54 Development on a OSX VM works as well Jun 10 06:40:04 pduin: I have never been able to get that to work Jun 10 06:40:14 pduin: what's the trick? Jun 10 06:40:16 Involves some patching on the VM software Jun 10 06:40:23 link me Jun 10 06:40:37 Just do a search on your favourite torrent site Jun 10 06:40:44 I don't torrent Jun 10 06:41:00 Then you will have to go to google and figure all the stuffs out yourself I guess Jun 10 06:41:06 Torrent's are for 12 year old girls looking for Justin beaiber albums Jun 10 06:41:25 Or 29 year old who don't want to spend money on shitty Mac hardware Jun 10 06:41:33 pduin: there isn't a guide to do it? Or am I guessing this is breaking end user agreement? Jun 10 06:41:44 It's not allowed legally indeed Jun 10 06:41:46 or for people downloading the latest debian build for their new raspberry pi Jun 10 06:42:03 There are guide of it I'm sure Jun 10 06:42:30 You can even run OSX natively on non-macs Jun 10 06:42:52 Running it in a VM is easiest though Jun 10 06:44:56 pduin, running natively requires support hardware Jun 10 06:45:05 sadly my wi-fi didn't work Jun 10 06:45:09 last I tried Jun 10 06:45:37 Ah yeah, hardware support is quite fiddly Jun 10 07:02:20 Hi eveyrone. I would like to know if this is a Android problem or Cordova problem -> http://stackoverflow.com/questions/37733593/cordova-fails-with-installing-org-apache-cordova-xapkreader-for-android Jun 10 07:19:56 I want to wait once before setting my runnable off. What's a nice way to do this? Runnable has postDelay() but no preDelay() Jun 10 07:26:47 huh Jun 10 08:14:18 What is a good way to persist data to survive the Application being killed. The original idea was to hold the data in the application, persist in the database on every write and only read from the database if the Application is killed, i.e. onCreate is called. The problem now is that persisting on every write causes performance problems, since objects can be Jun 10 08:14:19 very large. It would be a good idea to persist in onDestroy, but the Application does not have this callback. Would using a Service be a better option, since it has both onCreate and onDestroy callbacks? Jun 10 08:15:28 onDestroy isnt guaranteed to be called Jun 10 08:15:42 actually when app is being killed nothing is guaranteed o.O Jun 10 08:16:29 how big is very large? Jun 10 08:16:37 1-2MB maybe Jun 10 08:21:29 What options are there, if onDestroy is not one of them? Jun 10 08:23:59 barq: override finalize()? Jun 10 08:27:44 Override finalize where? Jun 10 08:32:45 Or save to file instead of saving to db Jun 10 08:36:08 does anyone know a good tutorial to create stockquote app? Jun 10 08:38:07 no Jun 10 09:09:38 is there some neat library/tool that would log my every before and after synchronized blocks? Jun 10 09:12:02 morning all Jun 10 09:17:13 hi Jun 10 09:17:53 Making pancakes, making bacon pancakes!!, Take some bacon and you stick it in a pancake!, Bacon pancakes! that's what it's gunna make!OC Jun 10 09:18:23 have decaf with them Jun 10 09:19:58 NO BACON Jun 10 09:20:29 BACON PANCAKES!!!!!!1 Jun 10 09:35:48 PANCAKES! NO BACON! Jun 10 09:39:26 wyoung: that sounds like it could be nice Jun 10 09:39:54 well that was fun, connect to znc on my phone, and irssi on my linux laptop proceeds to print a who is list for every channel I'm in. Jun 10 09:51:57 OxOO: hey Jun 10 09:52:09 https://developer.android.com/studio/command-line/shell.html Jun 10 09:52:14 hi there Jun 10 09:52:23 thanks Jun 10 09:52:33 > The Android Debug Bridge (adb) provides a Unix shell that you can use to run a variety of commands on connected device. Jun 10 09:53:16 if you haven't done android dev before you'll need to deploy tutorial app Jun 10 09:54:11 https://developer.android.com/training/index.html Jun 10 09:54:24 nice new design :) Jun 10 09:54:44 > Creating an Android Project Jun 10 09:54:45 > Running Your Application Jun 10 09:54:45 > Building a Simple User Interface Jun 10 09:55:02 I'll check that out :-). Actually I have played around with that a little before so I know some of the basics of using eclipse and running your custom app on the phone Jun 10 09:55:06 skim these 3 and come back Jun 10 09:55:17 no more eclipse Jun 10 09:55:21 forget that nightmare Jun 10 09:56:17 squ: what's the alternative? (or is it in the links you posted) Jun 10 09:56:35 yes, links I posted Jun 10 09:57:03 ok. thanks a lot squ. I have to do some stuff now, so afk Jun 10 09:57:06 to implement your idea, visit last link, training, and go thru 3 beginner sections Jun 10 09:57:47 after that use ‘adb’ command to interact with device Jun 10 09:58:16 learn to launch an activity and pass message you want Jun 10 09:58:41 <_kw> huh.. I'm building my app and running on my phone, but it doesn't seem to be installed anywhere Jun 10 09:59:11 _kw: try to turn of instant run Jun 10 09:59:38 and there were options to not launch anything if there were no changed made Jun 10 09:59:41 <_kw> I actually had that turned off, just turned it on again figuring it might be caused by the fact I turned it off Jun 10 10:00:04 idea behind instant run is to deploy only changes, or not deploy at all Jun 10 10:00:17 <_kw> ah :) Jun 10 10:00:26 that is why it is instant Jun 10 10:00:29 :) Jun 10 10:00:39 <_kw> but with instant run turned off, shouldn't it have deployed the whole thing? Jun 10 10:00:50 yes Jun 10 10:00:53 <_kw> because I unchecked all boxes in instant run just now when it happened Jun 10 10:01:04 <_kw> (I had them all unchecked that is) Jun 10 10:02:59 <_kw> let me just try a full rebuild and run, see what that does Jun 10 10:03:14 try clean too Jun 10 10:04:59 <_kw> ok I've now unchecked all under instant run, doing a clean Jun 10 10:07:50 <_kw> running now :P Jun 10 10:08:08 so it was a feature, not bug, right Jun 10 10:08:17 I mean instant run Jun 10 10:08:19 <_kw> well, I meant I hit "run" now Jun 10 10:08:35 <_kw> I'm building on a macbook air, give it 5 mins before it reaches my phone XD Jun 10 10:08:43 yes Jun 10 10:08:49 that's android Jun 10 10:08:55 indeed... Jun 10 10:09:30 <_kw> also a slow laptop, this thing wasn't built for power ;) Jun 10 10:09:48 <_kw> hm dammit, it's still now showing up in my apps Jun 10 10:09:49 <_kw> wtf Jun 10 10:10:03 <_kw> it runs, but earlier it would actually be installed as an app Jun 10 10:10:23 <_kw> it should be, right? Jun 10 10:11:51 yes Jun 10 10:12:15 <_kw> *scratches head* any more ideas what could be going wrong? Jun 10 10:13:30 hi all Jun 10 10:13:33 <_kw> grasping at straws atm.. restarting phone, restarting android studio Jun 10 10:14:03 lel, I was thinking "have you tried turning it off and on again?" without even knowing what the issue is :D Jun 10 10:14:48 _kw: ‘adb shell’ to it Jun 10 10:16:22 <_kw> ok, I'm in Jun 10 10:17:27 pm list packages Jun 10 10:17:48 <_kw> huh, it's listed there Jun 10 10:18:21 but it is not installed you said? Jun 10 10:18:32 <_kw> I don't see it in my phone's app drawer Jun 10 10:18:55 <_kw> or whatever people call that ;P Jun 10 10:19:19 <_kw> hm, when I go to settings->apps on my phone, it's listed there Jun 10 10:19:24 <_kw> that's weird Jun 10 10:19:27 http://adbshell.com/commands/adb-uninstall Jun 10 10:20:07 hi Jun 10 10:20:18 <_kw> uninstalled, reinstalling now Jun 10 10:20:30 adb shell pm uninstall com.example.MyApp Jun 10 10:21:09 <_kw> done Jun 10 10:22:22 <_kw> it cleans it up and restarts it at least, but for some reason it's not showing the icon in my app drawer Jun 10 10:23:01 <_kw> maybe there's something wrong with my manifest that it doesn't think it's an app you'd start manually.. lack of a proper main activity or something Jun 10 10:23:25 does anyone have knowledge about fragmentpageradapter and clicklisteners inside created fragments? Somehow some of the listeners are fckd up and are triggering wrong views. Jun 10 10:26:58 <_kw> wish this thing would build faster so I could quickly test theories like that ;) Jun 10 10:27:52 that's not your fault it is bad design of android platform Jun 10 10:28:09 you shouldn't figure out why it bugs Jun 10 10:29:40 <_kw> to be fair, I might've just messed something up in the androidmanifest, causing it to have no valid main activity, which would probably result in it not showing in the app drawer, right? Since starting an app without a main activity doesn't make sense Jun 10 10:29:56 <_kw> YESSS it's showing up again! :P Jun 10 10:30:04 yes, and you should receive compile-time warning or error Jun 10 10:30:11 <_kw> fair point :) Jun 10 10:30:23 of course Jun 10 10:30:26 <_kw> "you sure you want to run this, there's no valid main activity" Jun 10 10:30:37 xcode won't run ios app without proper launcher activity setup Jun 10 10:30:40 <_kw> something like that would've been nice Jun 10 10:30:53 I mean when it is set to blank or non-existent, it won't run Jun 10 10:30:57 and point that Jun 10 10:31:05 <_kw> yeah, I simplified my inten-filter for my mainactivity now, and it's showing up again, so must've been something there Jun 10 10:43:50 no fragment gurus here? Jun 10 10:48:40 hey Jun 10 10:49:58 Loigor: well Jun 10 10:51:17 Loigor: what do you need help with.. ask your question Jun 10 10:58:37 Created a new android studio project, and added ./app/libs/achartengine/achargentinge (git submodule) then added compile │ AiShield Jun 10 10:58:39 | project("libs:achartengine") in gradle app dependencies, and include ':libs:achartengine' in settings, but I get Error: Configuration with │ akaizen Jun 10 10:58:41 | name 'default' not found. Jun 10 10:59:09 sorry, weechat copy.. -.- Jun 10 11:00:58 My question is: Created a new android studio project, and added ./app/libs/achartengine/achargentinge (git submodule) then added compile project("libs:achartengine") in gradle app dependencies, and include ':libs:achartengine' in settings, but I get Error: name 'default' not found. Jun 10 11:05:00 @xpoqp Is the library folder in your root of your project? If not, try to put it there and copy the library files to there and then sync. That worked for me a while ago Jun 10 11:06:30 Thanks for response, your approach did not work, I get the same error. Jun 10 11:07:56 Hey all, has anyone got a recommendation for a HTTP request library? Trying to do a POST request on a website and can't get it working Jun 10 11:11:51 OKHttp? Jun 10 11:15:31 I tried OKHttp and it wasn't hitting the breakpoints on Visual Studio for the .NET back end Jun 10 11:24:42 ?! Jun 10 11:31:16 Hey guys! So what are some alternatives to firebase? Just exploring my options. I need authentication, database and messaging Jun 10 11:43:00 Hi guys Jun 10 11:46:29 ohai Jun 10 11:55:09 @p0ff3 funny, I was checking the same thing yesterday. You can always self host Parse or use one of the startups offering Parse solutions. Take a quick glance at http://alternativeto.net/software/firebase/?platform=android too for some inspiration. AWS Mobile Hub, back{4}app, cloudboost Jun 10 11:57:22 Cloudboost seems to be a pretty sweet option. Haven't tried it though, but the feature set looks promising Jun 10 12:05:38 i'm working on an app that's getting pretty huge.. at least multidex. i can run it on a htc one (5.0.2) but when i try on a nexus 5x (6.0.1) it crashes with "java.lang.UnsatisfiedLinkError", maybe in some instant run part.. could it maybe be cpu architecture related? not sure where to start approaching this problem Jun 10 12:06:23 Instant Run in Android Studio prior to version 2.2 is incompatible with Firebase Analytics and prevents certain events from being collected. We recommend either disabling instant run or upgrading to the Android Studio 2.2 preview. Jun 10 12:07:30 xorgate: pastebin your http://imgur.com/jacoj Jun 10 12:09:34 yiss Jun 10 12:11:06 well lemme just remove the sensitive info :0 Jun 10 12:11:44 https://gist.github.com/anonymous/41c8ffdd446375f230aa506a4a56aa15 Jun 10 12:12:42 where (if) did you put MultiDex.install(this); Jun 10 12:12:56 I have a fragment which creates a new fragmentpageradapter for viewpager. Then i populate the adapter with new fragments (created dynamically). In those child fragments I have few onClickListeners on related items. Problem is, the onClickListener is bugging hard depending on which page is selected. Jun 10 12:13:15 xorgate: looks like a instant-run failure Jun 10 12:13:25 xorgate: did you try press stop and doing a clean build? Jun 10 12:13:35 yeh it does that when i plug in the device Jun 10 12:13:44 i'd also recommend uninstalling the app just to make sure Jun 10 12:13:55 yeah you're probably right Jun 10 12:13:56 xorgate: D/Error: ERR: TOTAL BYTES WRITTEN: 81052 Jun 10 12:14:20 xorgate: that looks like it could be a disk space issue? Jun 10 12:14:29 perhaps it failed to write everything? Jun 10 12:14:34 xorgate: it does what? Jun 10 12:14:37 could be.. it's a new device! Jun 10 12:15:09 when you plugin a different device it doesnt do a clean build Jun 10 12:15:29 it just rebuild enough for that destination debvice but thats just aapt nothing to do with code Jun 10 12:15:45 it think the real test is without all the instant run mumbo jumbo Jun 10 12:15:52 ok Jun 10 12:16:04 full rebuild is 3 minutes though >.< Jun 10 12:16:26 so do it and see if it helps Jun 10 12:21:45 Warning:rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef: can't find referenced class sun.misc.Unsafe Jun 10 12:23:41 \o/ Jun 10 12:25:07 this thing is killing me :D Jun 10 12:53:18 <_kw> I'm using firebaseInstanceIdService, but I would like for my mainActivity to ask for the token from my service.. I just can't find any way to get that working :-/ Jun 10 12:55:08 <_kw> I've tried storing the last seen token locally (as gotten in onTokenRefresh), and registering a broadcastreceiver in my server listening for "GET_TOKEN".. Then responding to those messages by sending the stored token over a local broadcast as well.. But that doesn't work Jun 10 12:56:59 <_kw> i.e. http://pastebin.com/b3912Suj Jun 10 12:57:26 <_kw> (only 30 lines of code or so) Jun 10 13:13:08 hi, how i can install gapps in Android Studio emulator ? Jun 10 13:14:34 t0th_-_: run one build from the GoogleAPIs image Jun 10 13:14:51 t0th_-_: build a VM from the GoogleAPIs image of the Android version you want Jun 10 13:15:15 t0th_-_: if your using genymotion then.. http://opengapps.org/ choose x86 and your android version and then nano.. drag and drop the zip on to the emulator and once installed restart it Jun 10 13:15:29 i am using AS emulator Jun 10 13:15:38 t0th_-_: then use the first option i said Jun 10 13:16:40 thanks Jun 10 13:22:53 Wich plataform do I needed installed. Just the one in compileSdkVersion ? or Do I have to have the minSdkVersion or tagetSdkVersion too ? Jun 10 13:23:54 Should I use compileSdkVerion always the last available. I using 22 in my project. Jun 10 13:32:12 you need only newest sdk Jun 10 13:32:39 target and compile against the newest sdk, you dont need minsdk Jun 10 13:32:49 to download min sdk* Jun 10 13:51:29 well people. I have webView inside activity which is android:coinfigChanges="orientation|n|shit" Jun 10 13:51:57 so on rotate, webView do not match_parent as it does on first start Jun 10 13:52:12 how to deal with it? Jun 10 14:01:10 i have a fullscreen view, and i want to animate it to the edge and have it be smaller. Can i do this with .animate() ? Or how can I do this Jun 10 14:22:11 I'm trying to delete the unnecessary sdk I did uninstall some that I thought was not needed and updated compileSdkVersion and BuildeToolsVersion, now I'm getting Gradle project sync. you can check the log and the gradle file in here. https://gist.github.com/wviana/160da07dba8d874da52806d59a70cec6 Jun 10 14:24:17 Ashiren: I'm getting some error as I told above, could you help me on it ? Jun 10 14:25:01 Does the targetSdkVersion need to be the same of compileSdkVersion Jun 10 14:25:45 Getting a Accessing invalid virtual file: jar:///Users/wviana/Library/Android/sdk/platforms/android-21/android.jar!/ Jun 10 14:28:32 Found it, a dependency project was compiling on 23 Jun 10 14:28:33 Can you change the text/cell background color for single days in a datepicker in order to mark the presence/frequency of events? Jun 10 14:30:16 Hey guys, how do I give a button round edges and change the background color without removing the styles of the onClick and other effects? Jun 10 14:30:47 I set up a drawable to change the edges of the button so they're now round and changed the background, however when I click on it there's no onClick effects Jun 10 14:34:29 I have this one service that connects to MQTT for push notifications. Problem comes in when the service is temporary taken to sleep when the device’s screen is turned off. The connection to MQTT is lost until when the device’s screen is turned on. What’s the best way of solving this. The service holds a partial wake lock Jun 10 14:38:11 markyosullivan: add @color/your_button_color to your theme Jun 10 14:38:26 markyosullivan: assuming your using AppCompat Jun 10 14:53:59 I am adding a Heads Up notification as an incoming call in my app, I set it to use the default Ringtone, my issue is that I cannot control how many seconds it could stay ringing, the notification just rings twice (like 5 seconds only) then it stops, How can i control it ? Jun 10 14:54:42 probably have to write your own audio handling Jun 10 14:55:29 morning all Jun 10 14:56:55 @Zarf: What do you mean with audio handling ? Jun 10 14:57:21 @Zharf: What do you mean with audio handling ? Jun 10 14:57:51 @Zharf: I think it is something related to Notification Manager API to control the duration the notification should stay active Jun 10 14:57:52 create an audiotrack and write data to it Jun 10 14:59:24 Napalm: though that doesn't let you have buttons which have round edges, any suggestions on how to get that? Jun 10 14:59:31 Thanks for the advice btw Jun 10 15:01:02 Napalm, also just noticed that colorButtonNormal is only available for API 21 and above :( Jun 10 15:01:06 I'm on 18 atm Jun 10 15:06:34 markyosullivan: i said "colorButtonNormal" not "android:colorButtonNormal" Jun 10 15:06:44 markyosullivan: its provided as part of the appcompat library Jun 10 15:06:53 markyosullivan: it does have slightly rounded corners Jun 10 15:11:25 markyosullivan: if you want to have i different shape alltogether then you can create your own selector Jun 10 15:11:33 anyone use words as actionbar items instead of icons Jun 10 15:11:35 ios-style Jun 10 15:11:48 it makes sense but seems un-androidy Jun 10 15:12:00 heh Jun 10 15:12:14 google seems to be all about those obscure icons Jun 10 15:12:54 missingno classic UI mistake, like the triangle, square, circle in the nav bar Jun 10 15:13:05 which mean nothing at all :D Jun 10 15:13:20 missingno: there not obscure to android users, and you can hold your finger down "long press" on a action button to reveal its action name Jun 10 15:13:24 so you know what it does Jun 10 15:13:44 But it's different than iOS! Jun 10 15:13:50 How can it be good?!?!?! Jun 10 15:13:59 Napalm, I just came here to say I just realised that :p Jun 10 15:14:01 thanks anywya Jun 10 15:14:04 *anyway Jun 10 15:14:11 I'm pretty sure alot of people on android do not know about that long press Jun 10 15:14:25 I'm not sure if I do Jun 10 15:14:26 I'd bet 90% of my userbase doesn't know Jun 10 15:15:03 well then they learn about the icons by using them or knowing what an icon generally does.. that is the nature of icons. Jun 10 15:15:05 So you're telling me if I hold my finger for long enough, it'll tell me the action name? Jun 10 15:15:11 mind = blown Jun 10 15:15:11 missingno: if you want text with your icons.. use a bottom nav Jun 10 15:15:17 yes there is an attribute to populate that text Jun 10 15:15:29 What app can you do this own? Jun 10 15:15:34 heh I have bottom nav too Jun 10 15:15:41 markyosullivan: all of them Jun 10 15:15:46 g00s, I haven't seen anyone be confused by that tbh Jun 10 15:15:47 with icons and not text lol Jun 10 15:15:49 *this on Jun 10 15:15:50 markyosullivan: its what the android:title="@string/blah" does in menu files Jun 10 15:15:54 ahhh Jun 10 15:15:55 g00s, which is funny :) Jun 10 15:15:57 Makes sense Jun 10 15:16:10 Also provides accessibility strings. Jun 10 15:16:16 For screen readers and other tools like that. Jun 10 15:16:44 missingno: https://material.google.com/components/bottom-navigation.html Jun 10 15:17:10 * Napalm nods to Mavrik, true dat Jun 10 15:17:17 I can't believe I never knew that Jun 10 15:17:25 Guess you learn something new every day :) Jun 10 15:18:12 Napalm: Tried the style option and now the onCick ripple effect doesn't appear again :( Jun 10 15:18:46 markyosullivan: what option? are you trying to make us all try and read your mind? pastebin what you are doing Jun 10 15:19:19 Napalm: Is there an option to style the ripple color? Just realised that the ripple color is white which you can't see on a white button :) Jun 10 15:19:35 markyosullivan: yes Jun 10 15:21:16 Jun 10 15:21:25 colorControlHighlight Jun 10 15:22:17 markyosullivan: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/drawable/btn_colored_material.xml Jun 10 15:22:45 markyosullivan: thats how google defines the default button background Jun 10 15:23:53 that'll only work on v21+ so it needs to go in res/drawable-v21 in your app.. but you can do a version without the ripple effect and instead use a tag for pre-v21 if you wanted to override everything yourself and not just the colors Jun 10 15:24:10 markyosullivan: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/color/btn_colored_material.xml Jun 10 15:24:19 btw, thats the color used on the button Jun 10 15:24:35 https://github.com/android/platform_frameworks_base/blob/master/core/res/res/color/btn_colored_text_material.xml Jun 10 15:24:37 and text Jun 10 15:24:42 is there an attribute dimen size for a button, if i use style=?borderLessBackground / wrap content its too small. Jun 10 15:25:05 g00s: thats what padding was invented for :) Jun 10 15:25:08 s/size/height Jun 10 15:25:21 g00s: i normall do paddingLeft="24dp" and paddingRight="24dp" Jun 10 15:25:36 and perhaps a 4dp top and bottom Jun 10 15:25:47 with minHeight set to 38dp Jun 10 15:26:03 Napalm: Could you not override the colors and just select your own? Jun 10 15:26:08 ok Napalm thx Jun 10 15:26:21 I would have thought you'd be able to add an item to do this in styles.xml Jun 10 15:26:34 markyosullivan: yes.. your already doing that.. .... thats why i said "if you wanted to override everything yourself" Jun 10 15:26:46 markyosullivan: Did you not see my mention colorControlHighlight? Jun 10 15:27:05 Sorry, missed that Jun 10 15:27:11 markyosullivan: just override colorControlNormal and colorControlHighlight without the android: prefix in your theme Jun 10 15:27:21 Wil do! Jun 10 15:27:23 Thanks :) Jun 10 15:27:46 * Napalm wasted time trying to explain Jun 10 15:27:55 so Mavrik mate, whatcha up to Jun 10 15:28:01 :D Jun 10 15:28:14 Polishing my talk for DroidconDE ;) Jun 10 15:28:27 your doing a talk? Jun 10 15:28:29 congrats Jun 10 15:28:31 Sorry Napalm Jun 10 15:28:34 Flip Jun 10 15:28:37 that's cool Jun 10 15:28:41 when is it Mavrik? Jun 10 15:29:11 Next week. Jun 10 15:30:40 What you presenting on? Jun 10 15:30:58 How to have fun with NDK ;) Jun 10 15:31:17 Never used NDK myself! Jun 10 15:31:57 Mavrik include some mention of swift in there and have most popular session evar :D Jun 10 15:33:04 oh wwdc is next week Jun 10 15:34:48 guessing swift 3 will be discussed Jun 10 15:37:56 Mavrik: DE = Denver? Jun 10 15:38:19 i.e. http://360andev.com/ ? Jun 10 15:39:54 or DE = Deutschland? Jun 10 15:39:56 Mavrik: say hello to Dave Smith from me. He'll be attending/speakinog since he lives in Denver Jun 10 15:40:03 assuming you mean that one Jun 10 15:40:37 guys Jun 10 15:40:44 does exoplayer have tempo manip? Jun 10 15:41:08 http://droidcon.de/en/berlin/16/about Jun 10 15:42:32 Can confirm DE = Deutschland Jun 10 15:52:09 anyone knows of a good way to load a cropped image from file? Jun 10 15:52:31 it's for a gallery style list Jun 10 15:57:39 Eplebit: http://square.github.io/picasso/2.x/picasso/ Jun 10 15:57:54 public RequestCreator load(File file) Jun 10 15:59:05 yiati: oh, thanks! Jun 10 16:00:57 pfn: whats the name of your IRC client for Android? Jun 10 16:01:34 qicr Jun 10 16:03:07 if I have a parcelable class with a property annotated with a custom @StringDef class, readString shows an error when assigning to said property. Is there a way around that? Jun 10 16:04:51 What kind of error? Jun 10 16:05:10 yiati, Napalm, DE means Germany actually, so sorry :/ :) Jun 10 16:05:20 yea, thought it might be Jun 10 16:05:35 says "Must be one of: " and lists the possible values of the @StringDef Jun 10 16:05:38 https://de.droidcon.com/ Jun 10 16:05:55 I guess the property itself probably shouldn't be annotated, only the getter/setter... Jun 10 16:05:56 joshkovach, well, I guess linter can't know where that data is coming from Jun 10 16:06:05 joshkovach, so if you're sure that the code is correct, add an exception Jun 10 16:08:17 oh thats nice, TIL about distraction free mode + ALT + ALT Jun 10 16:21:14 g00s: + ALT + ALT? Jun 10 16:21:31 on my mac is cmd + cmd (hold) Jun 10 16:22:31 Ah yeah, love Distraction free and cmd+cmd Jun 10 16:22:52 wish every editor had a distraction free mode :( Jun 10 16:24:04 I was desperately looking for a way to center my code without uselessly having the project panel open for the longest time, then distraction free mode came out, and all is well in life now Jun 10 16:24:23 :D Jun 10 16:24:59 https://github.com/wokalski/Distraction-Free-Xcode-plugin comes kind of close for XCode, but requires full screen Jun 10 16:25:19 trying to mod it now to support windowed mode Jun 10 16:25:22 Are you using Jack and Java 8 ? Jun 10 16:25:26 hi adb is running as root and i can do adb remount ; however adb shell gives me shell id and su is not installed Jun 10 16:25:32 any idea what i can dop ? Jun 10 16:25:44 How is it working ? Does it may break compatibility with my proguard rules ? Jun 10 16:29:42 Hi guys, anyone here has experience with handling "fatal signal 11" related errors? Jun 10 16:30:41 BarCore: thats a SIGSEGV issue. you should have got a tombstone file dumped. Jun 10 16:30:45 man experienced it for sure, but you have to ask more about seg fault Jun 10 16:30:47 BarCore: its basically a crash in native code. Jun 10 16:30:50 s/ask/provide/ Jun 10 16:31:45 last time I got a sigsegv it was an operating system bug Jun 10 16:31:55 annoyingly opaque Jun 10 16:33:02 Yeah, I read some of the related issues on stackoverflow, sounds really complicated. Jun 10 16:33:30 I started getting it while loading an array of bitmaps to a recyclerview Jun 10 16:33:34 BarCore: theres more chance its a native library in your app though Jun 10 16:33:50 BarCore: pastebin your exception Jun 10 16:33:52 perhaps we can help then Jun 10 16:34:10 it's possible to change the push notification content before it's displayed on system tray ? Jun 10 16:34:50 ech0s7: yea.. thats the default action Jun 10 16:35:03 Napalm: using firebase when the app is killed Jun 10 16:35:08 seems not possible Jun 10 16:35:32 ech0s7: app is killed? whats that to do with push Jun 10 16:35:45 ech0s7: did you implement a reciever? Jun 10 16:35:56 receiver. Jun 10 16:36:03 with firebase you have to implements two services Jun 10 16:36:06 no receiver Jun 10 16:36:30 same diff Jun 10 16:36:52 what ? Jun 10 16:37:00 firebase has not changed how cloud pushes work Jun 10 16:37:50 ech0s7: you still have those two services to implement with standard google cloud messaging Jun 10 16:38:00 ech0s7: the receiver is implemented for you aswell. Jun 10 16:38:40 ech0s7: https://firebase.google.com/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService Jun 10 16:38:46 Napalm: sure, but can i change the receiver behaviour ? Jun 10 16:38:53 ech0s7: did you not implement the onMessageReceived(RemoteMessage message) Jun 10 16:39:02 yes i did Jun 10 16:39:47 i can receive the notification in this function Jun 10 16:39:55 and then i create a local notification Jun 10 16:40:07 but when the app is not running (no services running) Jun 10 16:41:00 if i receive a push notification, the service is not started, onMessageReceived is not called, and the notification is displayed by "someone else" in the systray Jun 10 16:43:45 Napalm: there is no way to catch the notification when the app is not running Jun 10 16:44:57 ech0s7: the notification is always displayed by the app Jun 10 16:45:29 If an Exception is thrown when no app is running does it make a crash? Jun 10 16:45:34 With GCM I believe it depended on the type of message being sent Jun 10 16:45:45 /s Jun 10 16:45:46 Napalm: no Jun 10 16:45:51 im looking at the source :P Jun 10 16:46:12 yiati, how can something be thrown out from an app not running? Jun 10 16:46:18 I joke Jun 10 16:46:23 i agree with SimonVT Jun 10 16:46:25 If a tree falls in a forest Jun 10 16:46:38 with Firebase there are two different "kind" on push notification Jun 10 16:46:39 ech0s7: so do i Jun 10 16:46:48 ech0s7: yes, custom or standard basically Jun 10 16:46:55 "notification" and "message" Jun 10 16:47:02 ech0s7: its how its always been.. but its your service that displays the notification Jun 10 16:47:19 if you send a "message", you will not receive the notification if the app is not running Jun 10 16:47:28 ech0s7: if its a Standard type then it shows the notification before it reaches your onMessageReceived() Jun 10 16:47:55 Napalm: ok, i give you a testcase Jun 10 16:47:57 ech0s7: your app has a entry point to wake it up Jun 10 16:48:07 ech0s7: thats always been the case Jun 10 16:48:16 SimonVT: wanna take this? Jun 10 16:48:25 https://github.com/firebase/quickstart-android/tree/master/messaging Jun 10 16:48:51 there is no receiver Jun 10 16:49:10 how can you catch the push notification from the service if the service is not running ? Jun 10 16:49:30 I don't know a lot about how GCM/FCM works, but I thought the point of the notification type messages were that the app wouldn't have to be started (because that uses battery and whatnot) Jun 10 16:49:34 ech0s7: there doesnt need to be Jun 10 16:49:38 a receiver that is Jun 10 16:49:59 SimonVT: it doesnt have to remain open to receive. thats the point Jun 10 16:50:09 And the other type was always delivered because it wasn't necessarily a notification Jun 10 16:50:20 Napalm: so how can you catch the message before that it is diplayed ? Jun 10 16:50:25 where ? Jun 10 16:50:39 SimonVT: when a push message is received for your app. your service is started.. originally by a broadcast receiver that recevies an intent from the google play app Jun 10 16:51:00 Napalm: not true, the service is not started Jun 10 16:51:03 SimonVT: where as now, they do away with the reciever and start your service direct with an "action" Jun 10 16:51:37 ha https://github.com/FuckBoilerplate Jun 10 16:51:53 I'm with ech0s7 on this.. But I think the answer is that if you need all messages to be handled by your app, don't use notification messages Jun 10 16:53:05 https://firebase.google.com/docs/notifications/android/console-audience#receive_and_handle_notifications Jun 10 16:53:19 Working as intended Jun 10 16:54:15 yes, SimonVT Jun 10 16:54:41 as i tryed there is noway to catch the content before it is displayed if the app is not running Jun 10 16:54:58 i remember with c2dm was different Jun 10 16:55:18 c2dm was like 5 years ago :p Jun 10 16:55:22 yes :D Jun 10 16:55:55 but also with GCM Jun 10 16:55:56 im looking at the source of the library, and the parent class to FirebaseMessagingService does some checks on the message on the bundle keys and generates a Notification and sends it to the NotificationManager Jun 10 16:55:58 For stuff like this, don't try and fight the system Jun 10 16:56:03 you can implement a receiver Jun 10 16:56:19 with FCM is changed Jun 10 16:56:23 SimonVT: is right here Jun 10 16:57:23 Napalm: could you share FirebaseMessagingService source code, please ? Jun 10 16:57:25 http://hastebin.com/ucuzeqoluq.xml Jun 10 16:57:27 look Jun 10 16:57:34 its exactly the same as c2dm Jun 10 16:57:39 it works exactly the same Jun 10 16:57:43 its backwards compatible Jun 10 16:58:09 ech0s7: you have the AAR libs. just open them up. Jun 10 16:58:11 yes Napalm, but you cannot handle that in your app Jun 10 16:58:18 that is your app Jun 10 16:58:21 its included in it Jun 10 16:58:22 Stupid question here. to access the tombstone logs do you need root priviledges? Jun 10 16:58:25 omg Jun 10 16:58:35 BarCore: adb pull Jun 10 17:05:49 Napalm: sorry, i cannot find the sources Jun 10 17:06:23 ech0s7: it seems to me and SimonVT you are fighting the system Jun 10 17:06:33 ech0s7: what are you actually trying to do? Jun 10 17:06:38 Hey all - Hi Napalm Jun 10 17:06:41 hey fels Jun 10 17:07:12 Napalm: catch the notification content before it is displayed on the screen, when the app is not running on android Jun 10 17:07:36 ech0s7: no.. why are you trying to do that? Jun 10 17:08:14 why now are you sayng no ? :) Jun 10 17:08:26 Napalm: on my home view I want to make 3 images switch (rotate) so I'm using a imageView in home fragment and firing a timer every 5 secs - on sim and from 1 device I am getting out of memory issue Jun 10 17:08:27 ech0s7: the point is you can just send a custom push notification you receive it in onMessageReceived and then you can do whatever you want in the background or foreground and then display a notification if you like.. or not Jun 10 17:08:54 so your point before was wrong Jun 10 17:09:14 what point? Jun 10 17:09:21 and you agree with me Jun 10 17:09:24 that is not possible Jun 10 17:09:27 ? Jun 10 17:10:01 its pefectly possible.. theres plenty of ways of achieving it.. but to what end? why hack around the system Jun 10 17:10:15 onMessageReceived is not called if your app is not running Jun 10 17:10:37 You could register your own receivers instead of those registered by firebase.. But that's fighting the system Jun 10 17:11:00 Now you have to support that Jun 10 17:11:00 sure, is not what i would do Jun 10 17:12:20 hello! I'm trying to understand bluetooth avrcp and a2dp. Plenty of howtos out there but they're all about connecting devices, anything beyond that is hard to find imho. Jun 10 17:12:30 is there a way to be notified when the soft keyboard is shown/hide? Jun 10 17:14:43 i connected my phone with bluetooth to my car and the phone to my laptop with android studio Jun 10 17:14:45 alexfu: http://stackoverflow.com/questions/4745988/how-do-i-detect-if-software-keyboard-is-visible-on-android-device Jun 10 17:14:54 plenty of callbacks and stuff Jun 10 17:15:11 but all the things i enter into google will only get me the source Jun 10 17:15:26 Napalm: on my home view I want to make 3 images switch (rotate) so I'm using a imageView in home fragment and firing a timer every 5 secs - on sim and from 1 device I am getting out of memory issue Jun 10 17:15:28 SimonVT: anyway you cannot override the FirebaseInstanceIdReceiver simply Jun 10 17:15:48 fels: picasso? Jun 10 17:15:57 you need to go into with reflection/etc... Jun 10 17:16:15 ech0s7: no you dont.. simply have 2 receives.. and forward the intents after modification Jun 10 17:16:20 receivers Jun 10 17:16:39 Looks like you'd just tell gradle not to merge that manifest entry from firebase, then add your own receiver Jun 10 17:17:04 i read stuff about media controllers and a2dp but i can’t see the path to the solution as of yet Jun 10 17:17:12 ech0s7: yours has the implict declaration of the action.. the other that extends the Firebase classes you call with an explict intent Jun 10 17:17:13 anyone got any experience with this stuff? Jun 10 17:17:46 ech0s7: you probably dont need to override the receiver.. the service should be good enough Jun 10 17:17:57 Napalm: thanks will look into it Jun 10 17:18:11 fels: i was asking.. are you using picasso? Jun 10 17:18:17 i found this: http://stackoverflow.com/questions/15527614/send-track-informations-via-a2dp-avrcp Jun 10 17:19:02 that says: fepending on your playback status: pause/playing/metadata changed. Jun 10 17:19:10 but how would i know the status?? Jun 10 17:19:36 Napalm: oh.. sorrry - NO just loading it using crappy code :) > http://pastebin.com/4G8vAPW7 Jun 10 17:20:07 niekniek: i wonder if its handled though the MediaRouter https://developer.android.com/guide/topics/media/mediarouter.html to get audio out and from a BT headset Jun 10 17:21:14 fels: I hope you cancel that Timer Jun 10 17:21:32 fels: also.. mipmap? Jun 10 17:21:34 in destroy Yes Napalm - I do Jun 10 17:21:45 fels: its probably half your problem. Jun 10 17:21:57 fels: you probably want those images in res/drawable-nodpi Jun 10 17:22:43 Napalm: do you mean just copy to that res folder ? or is there more to it ? Is there a reason why ? Jun 10 17:23:27 fels: you have 3 images. just put them in res/drawable-nodpi and remove them from res/mipmap Jun 10 17:24:06 fels: also your remove your call to imageRotator.setImageDrawable(null); before you call setImageResource and instead put it in the default section .. if anything at all Jun 10 17:38:39 Napalm: well my audio is originating from chrome currently. Should be a webview later in an app. The car knows that audio is playing, don’t know if it detects that or if android/chrome is doing something Jun 10 17:38:57 but events start to come in Jun 10 17:39:36 niekniek: what exactly was your question? Jun 10 17:39:46 With MediaMetadata I’ve been able to sometimes set the avrcp data Jun 10 17:40:28 Napalm: it boils down to this: what’s the correct approach to give avrcp data along with the audi = Jun 10 17:40:40 *audio starting to play Jun 10 17:41:58 well it used to be https://developer.android.com/reference/android/media/RemoteControlClient.html Jun 10 17:42:35 https://developer.android.com/reference/android/media/session/MediaSession.html#setMetadata(android.media.MediaMetadata) Jun 10 17:42:40 looks like that now exists also Jun 10 17:43:09 niekniek: but this is all mute. whats this got to do with chrome and audio playback? Jun 10 17:43:26 niekniek: your trying to alter the meta data send by chrome to the BT device? Jun 10 17:43:37 Napalm: moot Jun 10 17:43:46 s73v3r: ? Jun 10 17:43:51 oh Jun 10 17:43:54 mute moot Jun 10 17:43:55 meh Jun 10 17:44:14 niekniek: i would suggest your app handle the playback of the media and not involve chrome. Jun 10 17:44:27 well that’s just it Jun 10 17:44:29 niekniek: then you can handle whatever you want in regards to meta-data Jun 10 17:44:29 let me explain Jun 10 17:44:38 i’ve created a website, that plays the audio Jun 10 17:44:45 ugh Jun 10 17:44:53 go on Jun 10 17:44:55 don’t judge to quickly. ;) Jun 10 17:45:17 niekniek: which web-api you using? Jun 10 17:45:51 it’s a javascript port of a c library that plays msx (z80 ancient computer) chip tunes Jun 10 17:45:58 through webaudio Jun 10 17:46:20 i want to embed it as a webview Jun 10 17:46:22 in my app Jun 10 17:46:33 nice. I liked my old zx spectrum. but I prefer newer mod's Jun 10 17:46:34 and then control what happens on the diaplay in my car Jun 10 17:47:01 niekniek: i kinda feel your going backwards about this. Jun 10 17:47:02 MSX has several cartridges with better sound chips, those are the ones emulated Jun 10 17:47:09 if it’s a C library, you could just use that directly Jun 10 17:47:26 niekniek: why not use the library in your android app with audioTrack Jun 10 17:47:47 loose the overhead of webview/chrome and Javascript.. and save peoples batteries Jun 10 17:47:52 s73v3r; I’ve been thinking about that too (NDK), but i’ve created a whole lot of player experience, I just want to add bluetooth to the website kinda Jun 10 17:48:08 the website is platform independent Jun 10 17:48:48 niekniek: sounds to me to be a perfect application for a android app. i wouldnt have used a webview. Jun 10 17:48:56 forget about the website, it’s just an app playing audio Jun 10 17:49:03 niekniek: also, since its a C library you can use that with Swift on iOS Jun 10 17:49:13 niekniek: but its not.. Jun 10 17:49:26 niekniek: chrome has control over everything Jun 10 17:49:28 check first, msxmusic.royalwebhosting.net Jun 10 17:49:28 a webview isn't an app playing audio Jun 10 17:49:58 pfn; no, a webview is part of an app Jun 10 17:50:12 webview is just terrible Jun 10 17:50:12 still not an app Jun 10 17:50:21 you go pfn :D Jun 10 17:50:24 hehe Jun 10 17:50:54 adq: what’s so horrible, I tried it, the whole site works fine, including the audio Jun 10 17:51:10 i want to give the site some bluetooth api calls so songtitles can come from it Jun 10 17:51:19 in the app Jun 10 17:51:27 and the damn app should put it on the display in the car Jun 10 17:51:29 niekniek: well i've given you the apis for controlling metaData so really its up to you to figure out how-and-if you can get it to work alongside a webview/chrome Jun 10 17:51:30 that’s all :D Jun 10 17:51:36 niekniek, so many things that i would better not list them, exhaustively or at all Jun 10 17:52:14 Napalm: yeah, I figured that, but why the hell no examples anywhere? Jun 10 17:52:17 i understand the need of ppl rendering a webpage (for any purpose, including audio in your case) in their app, unfortunately webview is weak and heavy Jun 10 17:52:29 niekniek: btw, your app probably needs the bluetooth perms Jun 10 17:52:46 Napalm: yeah, I figured that too Jun 10 17:52:46 at least, you can justify text in a webview ;) Jun 10 17:52:50 (on a side note) Jun 10 17:53:05 adq: you can do that in Android with some magic Jun 10 17:53:09 yep i coded one Jun 10 17:53:12 same Jun 10 17:53:13 :| Jun 10 17:53:25 i did something to justify text on the circular screen even Jun 10 17:53:27 (for android wear) Jun 10 17:53:38 I'm trying to convince the powers-that-be we need a complete revamp of the text rendering system on android Jun 10 17:53:46 but in this specific case, it's not suitable for scrolling Jun 10 17:53:55 on the contrary of a regular textview being extended Jun 10 17:54:01 TextView has gone the same was as ListView Jun 10 17:54:14 a mega uber class of crap Jun 10 17:54:19 :( Jun 10 17:54:35 and it's a major if not critical component Jun 10 17:54:43 Napalm lol Jun 10 17:54:48 instead N gets all new swanky features Jun 10 17:54:50 :( Jun 10 17:55:08 g00s: this is not a laughing matter Jun 10 17:55:12 Napalm minSdk=N in 2020 ! we'll be voting for another president in the US too, will be exciting Jun 10 17:55:27 same goes for the chaos of the media frameworks Jun 10 17:55:41 and the microphone recording, still _one_ instance allowed for all the apps Jun 10 17:55:41 g00s: i've been thinking Jun 10 17:55:47 and with googlenow liostening to ok google everywhere Jun 10 17:56:00 come on, we're in 2016 and all competitors (ios) can handle multiple input Jun 10 17:56:08 damn, stop me Jun 10 17:56:09 the android team at google should have some sort of feature recommendation/upvote system for developers to expose what they need from the platform. Jun 10 17:57:03 adq: at least they did away with that with Camera2 Jun 10 17:57:05 Napalm i thought that was the defect tracker, and starring issues ... Jun 10 17:57:10 mobile markets really looks like car Jun 10 17:57:30 g00s: only tools/appcompat team members actively monitor that Jun 10 17:57:41 you won't have a "german quality" (to not cite brands) when you are fiat and own most of hte market Jun 10 17:57:41 its not used internally Jun 10 17:58:42 Napalm i thought that was the defect tracker, and starring issues ... << we have proof they have their own agenda Jun 10 17:58:59 you can star as many as you want, it won't change a thing Jun 10 17:59:21 you just have to put 'advertisement not showing' in the title, will get attention Jun 10 17:59:28 lol Jun 10 17:59:49 i would not have dared to go so far but it's more important to have an email @somewherebig Jun 10 18:00:02 i also noticed that Jun 10 18:00:37 i'm still mad about audio Jun 10 18:00:45 its kinda interesting, the .net guys hang out in chat. you can talk to scott hanselman if you want. MS is pretty good at catering to devs Jun 10 18:01:25 pretty much all the core .net devs are there Jun 10 18:02:01 but, from what i hear even oems have a hard time working with google Jun 10 18:02:04 Hey guys, check the GMail app. Is the search box a SearchView? Jun 10 18:02:07 we're low on the food chain Jun 10 18:02:16 I'm getting a completely different result with SearchView inside a Toolbar Jun 10 18:02:24 Mattx: no, it's not :( Jun 10 18:02:30 What is it? Jun 10 18:02:31 they use their own custom thing Jun 10 18:02:44 hi. i'm trying to debug my app on my real device. The problem is that the "Wait for debugger message" keeps hanging and is still there and i can't debug my app Jun 10 18:02:47 what can i do? Jun 10 18:02:51 That explains why the standard SearchView looks so awful Jun 10 18:02:59 Mattx: I dont know anyone that actually uses a SearchView Jun 10 18:03:05 Napalm: what do you use? Jun 10 18:03:09 What do you use instead? Jun 10 18:03:42 Mattx: all the apps I've needed similar functionality just create a Custom ViewGroup that wraps a few basic widgets like edittext and a imagebutton or two. Jun 10 18:03:46 There are a few projects on GitHub that implements a GMail like SearchView. Any experience with those? Jun 10 18:04:29 Mattx: the gmail search view just looks like a toolbar with an edittext and a microphone action button Jun 10 18:04:40 whats so special you need a library to do it? Jun 10 18:05:10 g00s: Didn’t the Android devs used to hang out here? Maybe they got overwhelmed Jun 10 18:05:13 Not only that, it has animation, autocomplete, etc Jun 10 18:05:26 s73v3r only a few Jun 10 18:05:50 all i remember was romin guy and chris tate Jun 10 18:05:57 reto came in like, a few times Jun 10 18:06:06 tim bray once or twice Jun 10 18:06:24 https://github.com/renaudcerrato/FloatingSearchView Jun 10 18:07:02 This is the other project I found: https://github.com/lapism/SearchView Jun 10 18:07:50 Mattx: Animations look simple enough and autocomplete is just registering a textwatcher Jun 10 18:08:07 yeah, miss having romin here Jun 10 18:08:46 But these projects only implements the search box, it's not like a toolbar with an expandable search box like in GMail Jun 10 18:09:49 check out the Plaid app, and see if that has a search box that works similarly Jun 10 18:10:22 does anybody know, why android is having issues with mtp? i'm running a cm-based marshmallow rom and encountered this problem while deploying an app. adb only find's my device when in ptp mode. also my computer only sees it in this mode. mtp does not work (windows) Jun 10 18:10:23 Mattx: do you want microphone for speech-to-text? Jun 10 18:10:34 dnano91: wrong channel Jun 10 18:10:40 Plaid Appex/ Nova Theme? s73v3r. There are a few with that name Jun 10 18:10:49 no, the Nick Butcher app Jun 10 18:11:02 Napalm, not now, probably in the future Jun 10 18:11:04 https://github.com/nickbutcher/plaid Jun 10 18:11:05 s73v3r: which one then? regular android channel? Jun 10 18:11:14 there, or maybe #android-root Jun 10 18:11:16 dnano91: you have yourself a driver issue where you force set a driver before that now it defaults to instead of the default. Simply force it up to use the latest usb_driver from the SDK. Jun 10 18:12:01 matt_j: then really this is straight forward. Jun 10 18:12:05 Mattx: ^ Jun 10 18:14:20 hmm... so I want to load an image resized to the proper size inside of my RecyclerView.Adapter, but the imageview hasn't gotten it's size yet... Jun 10 18:14:20 any ideas? Jun 10 18:14:42 Is there a way to make it so my app does not terminate if the user presses the back or home buttons? It needs to keep logging water flow readings to a webserver, even if the user presses home or back. Jun 10 18:14:43 Eplebit: thats what onPreDrawListener is for Jun 10 18:14:57 Eplebit: https://developer.android.com/reference/android/view/ViewTreeObserver.OnPreDrawListener.html Jun 10 18:15:32 I updated to the 2.2.0-alpha3 gradle plugin, and I can't seem to install my test apk because of signing, I suppose: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] Jun 10 18:15:35 s73v3r, I tried to install it but it says item not found on my phone. I guess the search box there is good? Why did you mention Plaid? Jun 10 18:15:36 Eplebit: dont forget to remove the listener inside the callback or it will be called on every frame Jun 10 18:15:55 jesseg: your doing it wrong Jun 10 18:15:57 jesseg you need a Service, probably a foreground one Jun 10 18:16:04 what he said ^ Jun 10 18:16:04 :D Jun 10 18:17:09 Napalm: ok, thanks! Jun 10 18:17:51 Napalm in AS isn't there something like Ctrl-E but you have to hold the keys down, and when you lift them up the dialog dissapears - linda like ctrl-tab, etc Jun 10 18:17:59 joshkovach: its alpha.. so why not downgrade.. that or look at your signing config.. or close down AS. delete your build directories and start it back up again and hope for the best Jun 10 18:18:15 g00s, that sounds good. I do need to display the water flow info on the screen too - can I do it as a foreground service or do I need to essentially have two parts - a service and a user-interface-app? Jun 10 18:18:24 g00s: what? Jun 10 18:18:39 lol i have seen this, can't remember the shortcut Jun 10 18:18:47 jesseg you need a UI and Service Jun 10 18:19:33 Napalm: hmm, not supported on imageview? Jun 10 18:19:48 Eplebit: its supported on every view Jun 10 18:19:53 so your doing it wrong Jun 10 18:20:09 g00s, ok thanks. I was hoping there was a foreground service :D Jun 10 18:20:36 Napalm oh its ctrl-tab Jun 10 18:21:09 on mac anyhow :D Jun 10 18:21:20 its like OS task switcher but for AS files Jun 10 18:22:12 imageView.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { public boolean onPreDraw(){ imageView.getViewTreeObserver().removeOnPreDrawListener(this); int width = imageView.getWidth(); int height = imageView.getHeight(); /* do stuff */; return true; } }); Jun 10 18:22:15 Napalm: don't think so? like on TextView: public class TextView extends View implements ViewTreeObserver.OnPreDrawListener Jun 10 18:22:19 Eplebit: ^ Jun 10 18:22:39 Napalm: aha! Jun 10 18:23:00 so much nicer with lambda Jun 10 18:25:23 which I can use as I'm using xamarin... Jun 10 18:25:24 Mattx: I mentioned it because it’s open source, and a decent source of design inspiration and how to do some of the nicer looking things on Android Jun 10 18:25:43 in java8, does 'this' in lambda refer to the anonymous class, or the outer instance? Jun 10 18:26:01 if the latter, you can't really remove the listener using a lambda Jun 10 18:26:55 pfn: the latter, and I knew that after I said it.. just mean things look so much nicer with lambda.. and im so used to that Jun 10 18:36:30 g00s, since it'd be really convenient for my main UI app to be doing the logging/displaying/reporting - and less convenient to have the service logging/reporting and the UI displaying, could I just have a service that keeps my main app running? Jun 10 18:37:20 put the UI stuff in the activity and the business logic in the service Jun 10 18:37:39 the UI should show the model , shared state , that the service is logging data to Jun 10 18:38:05 which will probably be sqlite or some file Jun 10 18:38:06 is it hard to communicate between them, - oh I can just write variables in the service and the UI can read them? Jun 10 18:39:49 no you can use static variables i guess, but something like event bus also might help Jun 10 18:40:35 oh OK if I can just use variables then that would be super simple. Thanks! Jun 10 18:41:12 jesseg: just dont store a Context in those variables Jun 10 18:48:08 jesseg using globals / static is semi-shady, one of those rules you break because you know how to not shoot yourself in the foot Jun 10 18:50:47 g00s, yeah I know.. But what's the alternative to pass a few numbers from the service to the UI - stand up a database? :D Jun 10 18:51:20 i'd probably use event bus. its going to be async Jun 10 18:51:47 check out greenrobot Jun 10 18:51:54 k thanks Jun 10 18:52:00 rxjava too Jun 10 18:53:14 jesseg: you could just use your application context to store a reference to your data and both your service and actvity can access it. and your activity can just register and unregister a listener for data-change Jun 10 18:53:39 I did see mention of persistent in the manifest but I'm not sure what it actually does Jun 10 18:53:52 jesseg see picture here , this comes close to my app https://github.com/reark/reark Jun 10 18:54:01 jesseg: thats not going to help you.. thats for persisting state across reboots Jun 10 18:54:43 g00s: changing to use rx would not be the simplest of solutions for him Jun 10 18:54:56 yeah i agree Jun 10 18:54:57 g00s: a simple listener model would be better Jun 10 18:55:07 i just throw out some options for the ambitious ones :) Jun 10 18:55:35 jesseg its much easier if your data is all im-memory Jun 10 18:55:38 *in - memory Jun 10 18:55:48 if you have to save to disk, recall later, its a little different Jun 10 18:56:23 g00s, yea that's what I was thinking. Settings will be saved to disk, but the logged data will just be displayed and pushed to HTTP server Jun 10 18:56:32 ah ok Jun 10 18:57:04 well, it might still need to be persisted if you queue stuff up in case http server is down Jun 10 18:57:07 g00s, I'm not seeing a picture on that github url you gave me Jun 10 18:57:32 huh thats weird Jun 10 18:57:41 g00s, it's just irrigation data - server is hardly ever down, solar panels are more likely to be down :D Jun 10 18:58:02 sounds like fun project Jun 10 18:58:23 g00s, oh I saw where it says "Idiot: Scroll down." so I did, and there I found the picture :D Jun 10 19:03:07 g00s, if my data is all in-memory and the UI gets closed, can it re-connect and the service will still be running? Jun 10 19:03:16 yeah Jun 10 19:03:33 then you may as well just put the data in a singleton, the service's static, etc Jun 10 19:03:49 Do you perchance know of an example that demonstrates this? Jun 10 19:03:57 then the ui can access it whenever. but if the process gets killed that all gets wiped out Jun 10 19:04:15 which process? the service or the UI? Jun 10 19:04:20 hm no examples off the top of my head Jun 10 19:04:27 the service and UI are in the same process Jun 10 19:04:35 Ahh... Jun 10 19:04:41 so when your process gets killed. but if its foreground than it should be OK Jun 10 19:04:47 read the Service stuff a few times ;) Jun 10 19:05:08 yeah, I've been reading the service stuff and I suppose it's slowly sinking in but only slowly Jun 10 19:06:29 So if I can have the same process be a service and UI that's perfect because it can be a foreground system and OS won't lynch it for fun Jun 10 19:12:13 Napalm do you know how to get AS to refresh its dependencies ? i can say gradle -refresh or whatever, but the CLI's cache is different than AS Jun 10 19:26:00 is it possible to execute JS in a webview and retrieve results? Jun 10 19:26:19 Map the JSON object into a native object without resorting to serialization formats like JSON? Jun 10 19:26:33 JS object* Jun 10 19:27:43 @patarr yes, I've used https://github.com/mozilla/rhino in the past to execute JS Jun 10 19:27:59 quinnjn, that's not a webview though Jun 10 19:28:18 quinnjn, regardless, im curious - how was the performance with Rhino? Jun 10 19:29:02 It was pretty slick, I didn't notice any hiccups on the emulator Jun 10 19:53:03 is it better to hold on to a reference of the root view of a fragment or to call getView() and null check it? are they any different? Jun 10 20:08:21 Can you change the text/cell background color for single days in a datepicker in order to mark the presence/frequency of events? Jun 10 20:13:54 Napalm: how do i add images to res/drawable-nodpi there isn't a folder like that in ADT Jun 10 20:14:22 Create it Jun 10 20:14:25 Napalm: I have res/res/drawable Jun 10 20:14:56 And read up on resource folders and qualifiers https://developer.android.com/guide/topics/resources/providing-resources.html Jun 10 20:15:33 SimonVT: i tried adding new directory called drawable-nodpi by rgith clicking on res but it didn't appear Jun 10 20:15:38 SimonVT: thx Jun 10 20:17:17 SimonVT: how do i create it Jun 10 20:18:11 Google how to create a folder in windows/linux/osx if ADT can't do it Jun 10 20:19:59 I added it as a folder via osx new folder but its not appearing in ADT Jun 10 20:23:19 Consider switching to android studio, the eclipse adt plugin was deprecated ages ago Jun 10 20:24:01 Maybe you just need to add files to it Jun 10 20:26:18 jesus eclipse :) Jun 10 20:38:28 anyone know what the semantics of Fragment#setTarget() / getTarget() are wrt to the master / child being destroyed ? Jun 10 20:39:13 for example, if the activity is destroyed, or the screen is rotated and the fragments are still attached, how does this work Jun 10 20:39:43 fragment manager will reattach the activity Jun 10 20:39:48 i think* Jun 10 20:41:08 The fragments Jun 10 20:42:31 i guess i'm looking for clarification on "The target set here is retained across instances via FragmentManager.putFragment()." Jun 10 20:42:54 well, i wonder if its exactly the same instance Jun 10 20:44:09 at what point in the lifecycle can i assume that is valid once its set, etc Jun 10 20:44:10 does any1 know any good android wear step by step tutorials Jun 10 20:46:24 droidace, https://developer.android.com/training/building-wearables.html start here Jun 10 20:46:36 it's not that good, but it's sufficient Jun 10 20:46:45 thanks i will start there Jun 10 20:46:53 always look the documentation first Jun 10 20:47:02 then search on google, then stackoverflow, then ask here Jun 10 20:50:37 Hi, I'm kinda new to Android Development. I'm sideway developing a communtiy and an android app for it. Jun 10 20:50:45 So i'm trying to figure out how to store session for logged in users Jun 10 20:52:25 g00s: valid? Jun 10 20:56:06 Can anyone help me? How could I store a session of an login Jun 10 20:56:30 iDentity1337: https://developer.android.com/guide/topics/data/data-storage.html Jun 10 20:56:50 Will check it out, thanks. Jun 10 20:57:08 just a quick question, should I store the user and password there Jun 10 20:57:09 or ? Jun 10 21:51:36 with a shared element transition for a FAB, is it possible to change the icon in the fab during the transition Jun 10 22:06:34 yes Jun 10 22:06:56 you just create your own transition for the icon itself Jun 10 22:07:09 otherwise it'll just appear to be the new icon at the start of the transition Jun 10 22:09:39 oh jeez I can crash AS by just opening framework 9patch files Jun 10 22:32:10 is there any method to obtain the removable sd card path on android ? Jun 10 22:33:53 there's a lot of misinformation about this everwhere :( Jun 10 22:56:25 android.os.Environment Jun 10 22:56:37 * pfn never knows the behavior of it, having never had a phone with an sd card Jun 10 23:01:01 http://www.dezeen.com/2016/06/08/seymourpowell-google-project-ara-move-wear-link-play-gadget-module-concepts-fairphone/ Jun 10 23:01:08 cool as hell Jun 10 23:05:03 meh Jun 10 23:05:50 the audio device seems totally unrealistic Jun 10 23:06:04 but it's fun to look Jun 10 23:06:25 :D Jun 10 23:08:02 cannot trust them for audio until they fix audioflinger, get rid of alsa, allow decent latency like on ios or windows, etc :p Jun 10 23:09:26 pfn it doesn't give sd card, it gives "external" storage, which may or may not be an sdcard, even if you have one mounted. Jun 10 23:09:43 * pfn shrugs Jun 10 23:10:25 it returns /storage/emulated/0 in here, while the sdcard is /storage/6267-C8AF Jun 10 23:10:40 google tries to keep developers out of the sdcard Jun 10 23:11:00 since few years man, they even removed physical slot, what doyou expect Jun 10 23:11:14 "sdcard is too complicated because our API sux, let's remove the slot" Jun 10 23:11:17 s7 does have sdcard Jun 10 23:11:23 s7 is samsung Jun 10 23:11:26 i just want the path of it programatically Jun 10 23:11:37 getExternal is the way Jun 10 23:11:43 it doesnt return it Jun 10 23:11:44 but as you noticed, you have no guarantee Jun 10 23:11:57 you could provide a mini-file browser and allow the user to select his path Jun 10 23:12:18 I'm afraid it's not possible, it's for a non-interactive method Jun 10 23:12:19 or go the bad way of parsing with ls, mount, etc via popen Jun 10 23:12:30 you can’t get the path of the actual SD card because you don’t know if the device has one or not Jun 10 23:12:45 and different manufacturers will mount it at different places Jun 10 23:12:56 isn't that frustrating? Jun 10 23:13:05 not having an api for it Jun 10 23:13:15 that doesnt depend on mountpoints and manufacturers Jun 10 23:13:15 you have an API for getting storage Jun 10 23:13:26 not for this requirement Jun 10 23:13:32 maybe they want you to use SAF instead Jun 10 23:13:48 well, the Android philosophy is that you shouldn’t be counting on there being an actual SD card Jun 10 23:14:00 but if there is, there should be a method to know Jun 10 23:14:13 no, because they don’t want you depending on there being one Jun 10 23:14:46 so sdcards is for users, not for developers Jun 10 23:14:51 pretty much Jun 10 23:15:20 what's the best method to determine if there is an sdcard and obtain its path? Jun 10 23:15:24 it's a shame Jun 10 23:15:35 there isn’t one Jun 10 23:15:35 all OS supports sdcard like any mount point Jun 10 23:15:43 but of course, it's problematic on android Jun 10 23:15:52 s73v3r I know there isnt a method provided by the apis, but there are ways applications get around that, Jun 10 23:16:00 even devices without an actual SD card slot would have a partition called “SD Card" Jun 10 23:16:13 they should have just prevented app to be installed on sdcard, and let the developer deals with presence or absence of the sdcard Jun 10 23:16:17 like for network connectivity Jun 10 23:16:19 the way apps get around that is either by guessing, or being told by the user Jun 10 23:16:19 and many other things Jun 10 23:16:47 you want to watch your photo on your sdcard but you did not plug your sdcard, well you won't see them like everywhere Jun 10 23:16:48 how is my sd card populated with data, if I didnt put it there? some apps found its way into it, so, there must be some hacks and weird ways to get it Jun 10 23:17:17 you don't want to know Jun 10 23:17:21 you will be even more frustrated Jun 10 23:17:40 I will have to hardcode the paths if Jun 10 23:17:40 isn’t it just apps using the get external storage API? Jun 10 23:17:42 if I have to Jun 10 23:18:00 no. hardcoding would be an absolute failure Jun 10 23:18:04 ^ Jun 10 23:18:15 s73v3r if my smartphone is returning /storage/emulated/0 for it, I dont know how they did use it to get to the actual sd card instead Jun 10 23:18:17 one of the more annoying things about android, is that early on it was pretty wild west / lots of freedom, but they keep locking things down more /and/ creating lots of corner cases, special rules, etc Jun 10 23:18:22 another phone will come out, and put the SD card somewhere else, and you’ll be fucked Jun 10 23:18:37 I just need this to run on s7 edge and s7 Jun 10 23:18:56 and only 20 units, I might even hardcode the random path to sdcard they got if I have to Jun 10 23:18:59 is it only running on one phone? or are you distributing it? Jun 10 23:19:02 s7 could change the path between two updates Jun 10 23:19:02 don't Jun 10 23:19:06 don't trust samsung, espeically them Jun 10 23:19:11 I'm not distributing, running on 20 units only Jun 10 23:19:14 what is the overarching goal? Jun 10 23:19:25 what is the overall thing you’re trying to achieve? Jun 10 23:19:32 I need to put 60gb of movies for my app to play them back Jun 10 23:19:37 "put stuff on sdcard" :D Jun 10 23:19:55 and I can't prompt the user Jun 10 23:20:00 why not? Jun 10 23:20:02 oO Jun 10 23:20:15 i would not want 60GB of anything if i'm not aware of nor prompted Jun 10 23:20:25 this is for an event, not for all users Jun 10 23:20:34 60GB is probably more than all of hillary's 30k emails Jun 10 23:21:00 so why can’t the person that is setting up the phones for the event give the sd card path? Jun 10 23:21:07 or the path to the media Jun 10 23:21:31 I’m assuming that streaming the media over local wifi has been ruled out Jun 10 23:22:03 I wanted to stream, but it's too many simultaneous streams and customer declined it Jun 10 23:22:05 the quick'n'dirty way is still scanning yourself the path Jun 10 23:22:14 butyou need to be sure to not get any false positives Jun 10 23:22:25 an app setup prompting for video path Jun 10 23:22:26 yeah, even with a local, private network, that would cause problems Jun 10 23:23:00 I'll go to a one-time setup screen to get around this mess Jun 10 23:23:20 i would say, for an event, having a prompt at setup to point to the files would be best. that way you can change the videos at setup Jun 10 23:23:22 thanks for the guidance guys Jun 10 23:23:32 yeah it's the best compromise i believe Jun 10 23:23:32 I will do that Jun 10 23:23:34 otherwise, if it’s a one time event, then hardcoding the path would be ok Jun 10 23:23:44 What’s wrong with using something like VLC? Jun 10 23:23:49 or an existing media player? Jun 10 23:24:17 s73v3r it needs to play stereo 360 videos without user interaction, all devices in sync between them Jun 10 23:24:34 how are you syncing the devices? Jun 10 23:24:52 it's for Gear VR, 20 users viewing the same 3D vr content in sync.. so you see all their heads in sync looking at the same parts of the virtual work Jun 10 23:24:55 world* Jun 10 23:25:13 cool Jun 10 23:25:22 thought we were talking about popcorn time or something Jun 10 23:25:40 so this is for a ride? Jun 10 23:26:00 virtual tourist, touring in a virtual bus? :p Jun 10 23:26:02 for syncing, Im using a server (windows pc) that sends commands to each device, prepare video, wait for all of them to return true, and only then broadcast a play cmd Jun 10 23:26:28 "on your left, you will appreciate the [...]" Jun 10 23:26:31 that’s a fairly cool project Jun 10 23:27:06 the videos are mostly terror clips, musicals or action (parachute, ski, etc) Jun 10 23:27:20 (pr0n) Jun 10 23:27:23 are they sitting on one of those M4 motion rigs? Jun 10 23:27:35 hahaha Id do that! but it's for a theme park.. they wont like it :) Jun 10 23:27:51 no, for this first project, they will be sitting on rotating chairs, no actuators/motors Jun 10 23:27:58 this isn’t the Six Flags roller coaster thingy, is it? Jun 10 23:28:07 no, that's my next project actually Jun 10 23:28:17 on a smaller scale, doing familiar slow rides Jun 10 23:28:35 similar to vr coaster on six flags Jun 10 23:28:56 it's really fun to develop this kind of things on vr Jun 10 23:28:59 nice Jun 10 23:29:06 i need to break into VR stuff Jun 10 23:29:22 I guess that settles it; my next phone should be a galaxy s7 Jun 10 23:29:31 you'll love it, get a gear vr.. or go for a pc based rift or vive Jun 10 23:29:59 but it's a good excuse to upgrade the phone and get an s7 and get a cheap $99 gear vr for it Jun 10 23:30:22 my expectations on mobile VR were quite low.. it blew my mind Jun 10 23:30:25 the office has a rift and vive. I started trying to get Unreal set up so I could do something for it, and then I spent 3 hours fighting with my wifi, only to discover the router was toast Jun 10 23:30:48 oh, tried vr already? it's lovely, isnt it Jun 10 23:31:23 i’ve worn it for about half an hour. It’s pretty sweek Jun 10 23:31:26 sweet. Jun 10 23:31:32 but i haven’t done anything beyond that Jun 10 23:32:52 gotta go get some beers before store closes here, thanks for the insights again! catch you later Jun 10 23:33:20 good luck Jun 10 23:33:28 ;) Jun 10 23:35:04 yeah i'd like to go into AR Jun 10 23:36:35 stuff is very expensive though Jun 10 23:40:02 hello - i need help with android studio / gradle Jun 10 23:40:31 i have an app and i would like to generate a jar file with a subset of the classes.. so i can reuse them in another app Jun 10 23:40:46 hi, i unlocked my moto g 2015, installed twrp and wanted to flash cm13. i needed to reboot from recovery into recovery, but now it doesnt stop rebooting Jun 10 23:40:55 it turn on the white warning screen and immediatly reboots to the white warning screen Jun 10 23:41:06 buttermelted wrong channel Jun 10 23:42:41 anybody can help with gradle? Jun 10 23:43:26 magopieri put them in a seperate module, and then use uploadArchives() Jun 10 23:43:34 magopieri: separate module Jun 10 23:43:43 or split those into a different project Jun 10 23:43:53 thanks. i tried but then i have to duplicate the dependencies Jun 10 23:44:14 yeah, your module will need to list it’s dependencies Jun 10 23:44:33 but you’d need those dependencies in the other project you want to reuse this code into as well Jun 10 23:44:52 ok.. i will try Jun 10 23:44:53 thanks! Jun 10 23:49:30 new question... if my classes are extending Activity.. do i have to create a android library? Jun 10 23:50:01 no Jun 10 23:50:09 unless you really want to Jun 10 23:50:56 Hi Guys .... Jun 10 23:51:02 hi d0d0 ! Jun 10 23:51:04 ok.. so how do I resolve import to android.app.* Jun 10 23:51:51 magopieri: The android library should be in your class path Jun 10 23:52:01 hey hey ... happy friday ... Jun 10 23:52:03 in the class path of the new module? Jun 10 23:52:07 magopieri: gradle should be handling that for you Jun 10 23:52:17 d0d0: Happy Saturday here! Jun 10 23:52:43 09:52 on a Saturday actually Jun 10 23:52:48 wyoung um, you sure? Jun 10 23:52:50 mm.. it does not: I did a new module and all it created is a griddle file with dependencies compile fileTree(dir: 'libs', include: ['*.jar']) Jun 10 23:52:55 ... OK.... in that case .... hows ur weekend going ? ;-) Jun 10 23:53:00 g00s: To what question? Jun 10 23:53:22 creating android library if classes extend activity Jun 10 23:53:28 d0d0: good :) just woke up and finished my breaky, now drinking some coffee, chatting on IRC, and about to do some coding Jun 10 23:54:17 I need your help guys .... I dont know much about NDK ... I am stuck in a bug ... my activity crashes saying that "Unable to find Native library Main" Jun 10 23:54:21 g00s: The question was does he have to create an android library if extending Activity Jun 10 23:54:30 g00s: my answer was no Jun 10 23:54:54 here is a link to my bug : https://forums.unrealengine.com/showthread.php?113441-Unreal-with-Custom-Android-Activity Jun 10 23:55:10 can one of you NDK gurus take a look at it and help me solve that ... Jun 10 23:55:26 Is that native stuff? Jun 10 23:55:29 Never touched it Jun 10 23:55:30 i am stuck with that bug for more than a week ... Jun 10 23:55:34 ok .. Jun 10 23:56:05 wyoung: can i private message you? Jun 10 23:56:44 magopieri: If you want but I probably won't answer you, I am AFK for a bit Jun 10 23:56:59 d0d0: Have you tried asking in the Unreal channel? Jun 10 23:57:20 ok.. i will keep trying then.. android library does not create a new griddle Jun 11 00:08:04 s73v3r ... i did post in their forum ... but i haven't asked in their channel ... Jun 11 00:08:32 whenever i long into Unreal's irc, there does not seem to be many mobile game developers .... :-( Jun 11 00:38:24 hm got the new google clock update ... why did they fuck up the tab bar? Jun 11 00:39:03 the touch areas on the last version were nice and big, 4 tabs divided equally Jun 11 00:48:13 g00s: those animated icons tho Jun 11 00:48:34 funnily enough the play->pause isnt animated =. Jun 11 00:48:36 =/ Jun 11 00:48:37 they were always animated Jun 11 00:48:48 hmm Jun 11 00:48:54 definantly not for me Jun 11 00:48:57 would of noticed that Jun 11 00:49:18 { "err": false, "username": "iDentity", "session": "somerandomtext-asdaohdiusahdiu", "odg": 1 } - So this is an object my RESTful API returns. How can I request this from Android and parse that JSON object? Any examples on internet? Jun 11 00:49:38 Also I need to add parameters to the API ofcourse. Jun 11 00:49:51 iDentity1337: everything you need: https://github.com/codepath/android_guides/wiki/Consuming-APIs-with-Retrofit Jun 11 01:02:36 any idea why my broadcast receiver gets called twice? I'm only registering it once in the onResume method. Would multiple invocations of that method cause it to register multiple times somehow? Jun 11 01:04:21 oh the view pager Jun 11 01:04:23 sneaky sneaky Jun 11 02:40:19 What can be hacks to use java 8 libraries on android Jun 11 02:46:34 depends on what those libraries use Jun 11 02:46:51 if only lambdas and method references, then retrolambda Jun 11 02:46:59 anything else and you're sol Jun 11 02:47:23 sol? Jun 11 02:56:04 yes the sun Jun 11 02:56:11 you're the sun Jun 11 02:56:40 question Jun 11 02:56:45 not now Jun 11 02:56:47 haha Jun 11 02:56:52 haha? Jun 11 02:56:54 perfect answer Jun 11 02:56:58 ok Jun 11 02:57:06 anyway Jun 11 02:58:14 I have a local notification with an action attached to it, I need that action to fire an event on a fragment. I have onNewIntent handling the action but then it broadcasts another intent that is handled from the fragment. The only problem is that the fragment doesn't register the receiver until onResume which happens after onNewIntent Jun 11 02:59:15 so I'm trying to figure out the best way to handle this **** ENDING LOGGING AT Sat Jun 11 02:59:58 2016