**** BEGIN LOGGING AT Tue Jun 14 02:59:59 2016 Jun 14 03:52:09 the iOS announcements were super boring ... Jun 14 03:52:55 was hoping we would see Apple do something like windows Continuum Jun 14 03:57:28 you're obviously not a fanboy or you'd be pissing your pants with excitement Jun 14 03:57:57 lol, i'm not a fanboy of anything really Jun 14 03:58:41 bankai_ although, that new filesystem ... for 2017, hopefully will be good. hfs+ kinda sucks Jun 14 03:58:44 What's the best way to display constantly changing graphics? I'm doing an audio oscilloscope app, so it needs to update my 2D graphics at like 30FPS . Is this suitable for a view that lets me just draw on a portion of the screen while having regular buttons and text elsewhere, or should I do a full screen Canvas? Or can I have a Canvas that's not full screen? Thanks! Jun 14 03:59:14 sounds like they took a lot of ideas from ZFS... no doubt a lot of the problems that follow :) Jun 14 03:59:31 these things need lots of testing :D Jun 14 04:03:21 jesseg, best would be opengl, then surfaceview with few threads or a regular canvas view with few threads Jun 14 04:04:38 if you don't draw too many operations, it's perfectly find to reach/maintain 30FPS with a surfaceview Jun 14 04:10:18 adq, thanks. Lemme google to see how hard opengl is to use. I'm just learning. Jun 14 04:10:35 it won't be trivial if you never played with it Jun 14 04:11:05 but I only need 2d lines Jun 14 04:11:30 you would better do it first with a surfaceview, then if you suffer of performance issue think of switching maybe Jun 14 04:12:03 jesseg, you can also look the visualizer class but i don't recommand it Jun 14 04:12:10 K Jun 14 04:12:12 too many issues, bad quality Jun 14 04:12:24 yeah I want clean and simple :D Jun 14 04:15:32 google play books update , woohoo "stability and performance improvements" ! Jun 14 04:25:36 anyone notice with instant run, sometimes the build completes but nothing is deployed to the device ... Jun 14 04:31:08 g00s: really? I didnt notice ! Jun 14 04:31:29 gordon_ pfew, thought it was just me! Jun 14 04:32:12 my fav bug is then it compiles, launchs app and.. old code from cache is there Jun 14 04:32:29 yeah thats cool too Jun 14 04:32:47 i like the one where my apps theme changes from dark to light Jun 14 04:33:08 didnt have that Jun 14 04:33:22 i set the theme in Application.onCreate() Jun 14 04:33:35 sometimes i guess thats not called :P Jun 14 04:33:52 "whoopsies" Jun 14 04:39:51 maybe activity Jun 14 04:39:53 whatever Jun 14 04:49:00 Is it possible to draw me a couple lines on a SurfaceView without spawning multiple threads...? Been googling it and all examples seem to be spawning threads or launching runnables Jun 14 04:49:18 I guess a canvas is also involved Jun 14 04:50:07 it would not make sense jesseg, purpose of surfaceview is to be able to draw it outside of the ui thread to get a constant FPS for example (but not only) Jun 14 04:50:26 (between lock and unlock of its canvas) Jun 14 04:51:46 you need a gameloop-like thread to call the drawing on the surfaceview periodically, you will find many examples online Jun 14 04:52:34 Hmmmm but what if I just want to draw some 2D vector graphics and display them? Jun 14 04:52:52 Maybe I am using the wrong feature for that Jun 14 04:53:12 idk what do you mean by 2D vector graphics Jun 14 04:53:26 Oh -- just 2D colored lines on a black background. Jun 14 04:53:29 im working with the navigation drawer activity that is created in android studio... so when i select an option in the nav drawer, am I supposed to launch a new activity? Jun 14 04:53:30 it's all about canvas operation on canvas, like canvas.drawLine etc Jun 14 04:53:41 yeah that sounds right Jun 14 04:54:17 i did it jesseg, including an audio waveform display, etc Jun 14 04:54:35 adq, using multiple threads? Jun 14 04:55:20 yeah because you have the audio thread (could be audiotrack or audiorecord, depending what you are trying ot display), the gameloop thread for drawing, etc Jun 14 04:55:53 you could even separate the update and render between 2 additional threads but don't go this route it will be too complicated at first if you never played with it Jun 14 04:55:58 ahh yeah that's how everyone else does it too. I got my audio thread running in MainActivity :P Jun 14 04:56:04 don't do anything on the ui thread intensive Jun 14 04:56:40 Why not intensive, as long as it doesn't take more than a 30th of a second? Jun 14 04:57:03 because locking the UI thread is bad Jun 14 04:57:07 I guess threads helps speed things up if there are multiple cores Jun 14 04:57:11 your application will stutter, etc Jun 14 04:58:43 jesseg, it's not about multiple cores Jun 14 04:58:52 we have no idea how things are going to be scheduled anyway Jun 14 04:59:06 parco usually, you switch a fragment. but you can start a new activity Jun 14 04:59:16 except if there's only one core, cpu cycles are cpu cycles, and if another thread hogs the CPU everything else will stutter Jun 14 04:59:20 no Jun 14 04:59:29 i strongly suggest you read about UI thread on android Jun 14 04:59:36 it's the main thread Jun 14 04:59:44 oh does it run at a higher priority? Jun 14 04:59:47 yes Jun 14 04:59:54 parco https://guides.codepath.com/android/Fragment-Navigation-Drawer Jun 14 04:59:59 but it has a special treatment too Jun 14 05:00:02 well I guess that makes sense Jun 14 05:00:14 UI thread is for referencing and touching UI components Jun 14 05:00:17 like a TextView Jun 14 05:00:35 i heard TextView likes to be touched Jun 14 05:00:42 :p Jun 14 05:00:50 i'm over simplifying Jun 14 05:01:22 jesseg, it's just a common recommended practice to not do anything heavy on the UI thread Jun 14 05:02:37 you are free to ignore it at your expense :) Jun 14 05:03:10 adq, yeah I know. But sometimes when one is just learning a framework and are just programming for learning's sake on an app that is not intended for public display, it's OK for them to take the simple route if it helps them keep from giving up at the steep learning curve :) Jun 14 05:03:32 that is to say I know that the ideal app doesn't do any intensive processing in the UI thread Jun 14 05:03:48 adopt good reflex earlier is the way to go Jun 14 05:03:56 um Jun 14 05:04:11 anyone know if you can access a realm DB in a service Jun 14 05:04:15 anyway, i believe you have enough pointers/directions to start something now jesseg Jun 14 05:04:41 adq, good reflex is definitely the way to go as long as one doesn't fall off the learning curve :P Jun 14 05:05:18 embrace the complexity Jun 14 05:05:43 how can i create a navigation drawer that opens activities with back arrows? Jun 14 05:06:49 parco what, fragments too complicated? :P Jun 14 05:07:13 i actually havent used them yet, but i figured having a nav drawer complicates things Jun 14 05:07:47 and i dont think the generated nav drawer activity uses fragments :-/ Jun 14 05:10:31 somebody will get android on this http://www.gizmag.com/fallout-pip-boy-smartwatch/43828/ Jun 14 05:15:08 g00s, it's copyrighted i believe Jun 14 05:15:27 has anyone intermittently gotten a 'ERR_EMPTY_RESPONSE' when loading a web view in an app? Jun 14 05:25:28 so when i add code in the new android studio which require certain imports, why doesn't the ctrl+alt+o bring them in? Jun 14 05:39:36 https://github.com/airbnb/RxGroups Jun 14 05:39:42 CedricBeust did you see that ^^^ Jun 14 06:35:40 morning all Jun 14 06:45:02 o/ thepoosh Jun 14 06:59:14 sup Jun 14 07:42:51 how do you install a .apk file on Android 6.0 Intel x86 Atom_64 System Image? Jun 14 07:44:26 JyZyXEL, `adb install PATH_TO_APK` Jun 14 07:44:35 where do you type that in? Jun 14 07:44:45 oh uh, a terminal? Jun 14 07:44:57 Did you try drag-dropping the APK? Jun 14 07:45:03 I'm not sure if that works in the native emulator Jun 14 07:45:55 hah, your right, drag&drop works Jun 14 07:47:33 there you go. Jun 14 07:48:39 my first instinct was to try access the .apk with the Android browser, but it crashes right away Jun 14 07:49:14 then my second idea was to put the .apk on the sdcard by mounting the image, but android "Could not open file" Jun 14 07:51:39 heh Jun 14 07:52:16 i wonder what the "Launcher 3 has stopped" notification is about at the boot-up process? Jun 14 07:52:34 doesn't seem to affect anything though Jun 14 08:24:05 hey yall Jun 14 08:24:13 im a JS/node/web developer, Jun 14 08:24:58 hello Jun 14 08:25:03 we feel sorry for you Jun 14 08:25:05 ;) Jun 14 08:25:10 XD Jun 14 08:25:54 the emulator is an insane resource hog Jun 14 08:26:06 NodeJsWeveloper Jun 14 08:26:13 I'm looking to make a nice generic camera application, which takes pictures, displays pictures by 'day they were taken' and also communicates with a remote API. where do I start? Jun 14 08:26:30 File > New Project Jun 14 08:26:34 i dont know java, but it doesnt look insanely different to modern JS Jun 14 08:26:39 it is Jun 14 08:26:40 how can the emulator be using so much CPU :p Jun 14 08:26:45 neat tip bro XD Jun 14 08:26:50 start with java man Jun 14 08:27:39 erm... start by asking the same questions as you got answered yesterday? Jun 14 08:27:49 :o Jun 14 08:27:57 shots fired Jun 14 08:28:17 basiclaser: I would start with some basic android tutorial first, do you know about activity, fragment etc ? Jun 14 08:28:26 Odaym: thanks, is java bogged down by a thousand frameworks like JS is? or do people tend to build using well established patterns? Jun 14 08:28:41 ooo just no Jun 14 08:28:53 to everything Jun 14 08:29:14 you're bogged down by a thousand assumptions Jun 14 08:29:26 indeed thats why im here XD Jun 14 08:29:35 basiclaser: I think there is course on udacity for android (by google) Jun 14 08:29:40 you might take a look Jun 14 08:29:45 i need some clarity before i dive into learning something otherwise ill spend a month learning the wrong thing Jun 14 08:30:01 https://www.udacity.com/course/developing-android-apps--ud853 Jun 14 08:30:01 you ain't even gonna start Jun 14 08:30:06 you would've started yesterday Jun 14 08:30:14 ok negativity Jun 14 08:30:15 and it's free Jun 14 08:30:20 thanks gordon_ Jun 14 08:30:58 damn, I missed the new Mr Robot! :< Jun 14 08:31:14 anyone see it? Jun 14 08:31:21 no Jun 14 08:33:22 It's back on?! Jun 14 08:33:51 markyosullivan: yeah season 2 episode 1 was supposed to show today Jun 14 08:34:10 I don't see it up on the torrent sites yet Jun 14 08:34:52 still using theme song (wheresmymindremx) as my ringtone shmoooz /: Jun 14 08:35:48 Who uses torrents.. Jun 14 08:35:57 yeah we all watch it legally Jun 14 08:35:59 ... Jun 14 08:36:18 Does a SQLite Database use a lot of resources? Jun 14 08:37:19 raoul11: cool! best show ever Jun 14 08:37:31 yes, waiting for a season pack Jun 14 08:42:34 oh crap I made a mistake, I thought it was June 13th, but it's not on until July 13th :( oh well, one more month Jun 14 08:43:57 since the upgrade to the latest Lollipop, just earlier today, I now can't press on "Allow" when a permissions popup appears Jun 14 08:44:06 like literally it isn't pressable, only Deny is Jun 14 08:44:12 what the actual fuck Jun 14 08:44:13 Just had a look at Realm, would anyone here recommend it? Jun 14 08:44:22 no Jun 14 08:44:24 :P Jun 14 08:45:10 realm has quite different philosophy than sqlite/orm Jun 14 08:45:10 just try Jun 14 08:45:27 I dont like extending realm classes Jun 14 08:45:41 thought EJB2 was long time ago Jun 14 08:47:09 the objects you read from realm database are more like references to the data, not actual objects Jun 14 08:47:31 thats why realm is "fast" when reading. objects are not created until their fields are read Jun 14 08:47:46 this has some implications in multi threading and synchronization Jun 14 08:55:33 So overall SQLite DB would be better to use? Jun 14 08:57:12 depends what you want.. Jun 14 09:02:40 i meant if you switch to realm be ready things will be handled differently, not neccessarilly better or worse Jun 14 09:06:44 im seriously having this issue right now Jun 14 09:06:45 waw Jun 14 09:06:49 I can't believe it Jun 14 09:06:55 how can I just not press "Allow" Jun 14 09:07:07 I can only deny the permission Jun 14 09:10:12 Odaym: which phone? Jun 14 09:10:20 N5 Jun 14 09:10:36 latest lollipop update, did you update? Jun 14 09:11:30 but new permission system is on marshmallow Jun 14 09:11:57 doesn't the N5 have marshmallow? Jun 14 09:12:03 I mean marshmallow damn it Jun 14 09:12:11 newest marshmallow update Jun 14 09:13:07 Odaym: did you try rebooting after update ? Jun 14 09:13:16 yea i did Jun 14 09:13:41 if you select "Dont ask again", the Allow is completely greyed out then, not just unpressable Jun 14 09:13:42 Is it possible you have a security setting enabled? Jun 14 09:13:59 Could try resetting that setting? Jun 14 09:14:05 to never allow any app anything? Jun 14 09:14:19 Maybe only certain ones are trusted :/ Jun 14 09:14:56 Just following the current trend that seems to be... Jun 14 09:15:12 Might be locked out in some setting. Jun 14 09:15:17 closest thing to that is Settings > Security > Apps with usage access > Reset app preferences Jun 14 09:15:21 doesn't do anything Jun 14 09:15:31 or like im not admin or something Jun 14 09:16:10 super strange. Jun 14 09:16:24 Odaym: in settings - security - apps with usage access setting maybe? Jun 14 09:16:33 that's the one I said above Jun 14 09:16:40 but resetting app preferences doesn't do anything Jun 14 09:16:53 it doesn't seem like a random issue, its specifically just disabling Allow Jun 14 09:16:57 I can deny just fine Jun 14 09:17:15 does it show Google Play services, and Google Play Store in the list as 'on' ? Jun 14 09:17:20 yea Jun 14 09:17:22 only 2 Jun 14 09:17:43 mine is like that too, but it works Jun 14 09:34:44 hi all, how do i implement a communication between my phone and wearable project? Jun 14 09:43:32 how do i implement a communication between my phone app and wearable project? Jun 14 09:44:31 I went to the app info screen and explicitly allowed the permissions Jun 14 09:44:33 whatever Jun 14 09:47:32 droidace, https://developer.android.com/training/wearables/data-layer/index.html learn to search and RTFM Jun 14 09:47:39 you can also look for WCL library Jun 14 09:50:58 thanks adq yea i read the manual but it didnt make sense to me. just looking at WCL library and this one seems to make sense more. Jun 14 10:19:24 hi guys, not really developing anymore, but trying to help an app. I have a Moto G so low memory, and I'm never seeing any notifications they are sending with AlarmManager, checking "adb shell dumpsys alarm" shows there aren't any alarms registered, but when I load the app, they register the alarm. Are they missing a step of registering the alarms to AlarmManager? Like via Broadcast? Jun 14 10:20:07 how do they register the alarm. code snippet? Jun 14 10:21:31 Ashiren: not a clue, I'm chatting to their support. I just wanted to make sure I wasn't talking bollocks. I haven't developed in ages, just read the documents and want them to fix their bug as their current response is. "That's how Android works, it can't be fixed upgrade your device" Jun 14 10:21:44 Hey guys, does anyone know an open source app on GitHub which does a good job of using an SQLiteDatabase? Just wanting to see what they do Jun 14 10:27:23 sarkie: in no alarms are set then they failed setting them Jun 14 10:28:52 Ashiren: so they are there when the app is started. So I assume there's a start up service? or broadcast reciever (I'm trying to remember) like recieve Broadcast.Startup.onMessage(){ register alarms here } Jun 14 10:30:03 you set alarm using AlarmManager, that is, at specific time you want to trigger the BroadcastReceiver Jun 14 10:30:17 in which mostly you start Service but you may do whatever you want there Jun 14 10:33:43 but how do you register for AlarmManager? as it can't be inside the main app, which I think is what they are doing Jun 14 10:36:53 huh? you only need Context for AlarmManager to register alarms. so it can be in Application, Activity, Service, BroadcastReceiver, virtually everywhere Jun 14 10:39:10 Ashiren: sorry, what I am saying. I think they are registering it in Application only, but they need to register in Service or BroadcastReceiver as if the user doesn't load the app, the alarms won't get registered. Jun 14 10:40:30 hithere Jun 14 10:40:36 I have two data sets (DsA/B) and one ListView. I am using setOnItemLongClickListener for DsA, and both listners forDsB. Filling listView with DsA, switching to DsB and back does strange thing. List view with DsA is visible, but normal Click is active and DsB Item is returned. This behaviour can be suppressed by setting setOnItemClickListener on both DsA filled listViews. Jun 14 10:40:36 Functional example https://github.com/sonavolob/ABIconTest . Jun 14 10:40:41 Question is - why? Jun 14 10:43:02 this is stableArrayAdapter I am using where I am attaching click listeners by used data set https://github.com/sonavolob/ABIconTest/blob/master/app/src/main/java/com/example/abicontest/StableArrayAdapter.java Jun 14 10:53:36 sarkie: alarms will trigger the BroadcastReceiver even when app is in background or 'closed' unless you explicitly kill the app. Jun 14 10:53:58 and app needs to be run at least once after installing Jun 14 11:00:21 Ashiren: ok, understand, currently it has to be run maybe every boot or every day for it to get the notifications back. Jun 14 11:00:32 ahh right! Jun 14 11:00:44 on reboot alarms are lost Jun 14 11:01:07 there is broadcastReceiver for BOOT_COMPLETED to set them again Jun 14 11:05:36 ok, that's what I thought. and is there a way for me to find all the broadcastreceivers on my system to see if they've done this? Jun 14 11:06:14 Ashiren: current reply from support. "Please be patient as there might be a reply soon from me. Furthermore, our android developer has stated that we prefer to have it that way until further notice. We apologise for the inconvenience!" Jun 14 11:12:56 dunno Jun 14 11:13:19 at least you can dumpsys alarms Jun 14 11:17:05 hi Jun 14 11:17:48 i need a custom theme to my users. I have in my api the name and color os theme. I need create the themes in my app or i can create on the fly? Jun 14 11:22:29 hey gang Jun 14 11:22:52 Can I develop an app to install on an android gear watch without a paired device? Jun 14 11:23:53 Hey all, I am trying to develop an android app which can add geotagging metadata to the images which are being clicked every 5 seconds. I am having issues with this. When I am testing on a mobile, the image gets saved but once I check the image with an exifviewer, I can’t see the GPS coordinates. Jun 14 11:24:41 Can someone please me with that? I am new Android and having writing code in a haphazadous manner, apologies for that. Jun 14 11:25:00 ok Jun 14 11:25:47 My main activity - http://pastebin.com/nNVXEftN Jun 14 11:26:16 nah Jun 14 11:26:34 My GPS tracker activity - http://pastebin.com/6b2pDMFd Jun 14 11:30:25 can i create a theme on the fly and apply it? Jun 14 11:39:34 any idea why with Retrofit if the call is an Observable and the response from the API is anything other than 200, I fall into the onError? Jun 14 11:40:05 as opposed to falling into onNext where I'd like to, and over there I check if its !200 and do something accordingly? if the call is a Call object and I enqueue, it's fine and I always fall into onResponse Jun 14 11:40:09 which is what I'd prefer Jun 14 11:40:43 I guess Retrofit doesn't have any say which callback gets triggered when the call is an Observable? Jun 14 11:41:23 I'd better leave it as enqueue, meaningless to have it as an observable unless there's a real usecase Jun 14 11:47:12 Odaym: because anything that isn't 200 (well, except for 100 and 300) are errors Jun 14 11:47:22 but who's he to tell Jun 14 11:47:26 it's none of his business Jun 14 11:47:36 the correct behavior is to always fall into onResponse Jun 14 11:48:07 Odaym: unless it is a non-success response Jun 14 11:48:08 no more observable Jun 14 11:48:25 the response is a 401, invalid credentials, that's "success" Jun 14 11:48:38 the api is reachable and a response did come back Jun 14 11:48:40 nowai Jun 14 12:06:49 can i create a theme on the fly and apply it? Jun 14 12:28:05 hey, I'm wondering if anyone knows of some WebView in a Fragment(State)Pager performance tips Jun 14 12:28:26 I have issues in that it calls onResume on off-screen pages on initial load Jun 14 12:28:59 any way to use a MQTT library with an android wear app? standalone (no paired deive)? Jun 14 12:29:02 device* Jun 14 12:29:28 so that it tries to loadData on at least three webviews at the same time, making the webview that is actually visible take ~1-2 seconds to load Jun 14 12:29:44 is there a way around this without reimplementing fragmentpageradapter? Jun 14 12:30:05 (which would be fine, but I'd rather prevent that if there is a simple solution) Jun 14 12:33:54 an arm64 device should just be able to use armv7 native libs, right? Jun 14 12:34:12 eeyup :? Jun 14 12:34:14 gang? Jun 14 12:34:18 bang? Jun 14 12:34:27 just gang Jun 14 12:34:32 :< Jun 14 12:34:33 Don't make this weird Jun 14 12:35:31 are you breaking up with me? Jun 14 12:36:58 is there an easy way to Blur the image in an imageView and make it less opaque ? Jun 14 12:37:11 ivali: ? who are you? Jun 14 12:45:10 getUserVisibleHint does the trick, if anyone is struggling with the same problem Jun 14 12:51:05 Apart from the Android docs, anyone got another good example of an implementation of a SQLiteDatabase? Jun 14 12:51:47 Hi guys Jun 14 12:53:59 I'm working on an app which can play audio files. I'm using MediaPlayer to play audio and it works with mp3 files, but when I "share" an audio from Whatsapp to my app, the shared audio is an .opus audio file, and I can't play it with MediaPlayer... I've read the developer docs and Android 5.0+ supports opus codec natively. So... why can't I play .opus files? What else do I need? Thanks in advance! Jun 14 12:59:32 Sepho: start here: https://github.com/videolan/vlc/blob/master/modules/codec/opus_header.h Jun 14 13:00:18 seems like you need to write your own decoder Jun 14 13:02:24 ooops :( Jun 14 13:09:02 Hi! Anyone got experience working with Raph Leviens music synthesizer for android? I'm using his C++ lib to synth music and it works okay but I need to send the synthesized music back to java app for visual feedback. I ponder how to synchronize what's actually playing with visual feedback. Jun 14 13:16:29 is there way to hide youtube fullscreen button in webview? Jun 14 13:16:48 it appears on samsung device, but no on other devices Jun 14 13:17:20 and webview does not have webChromeClient setted. Fucking samsung. Jun 14 13:17:37 Has anyone used this library before: https://github.com/square/sqldelight Jun 14 13:17:42 It looks pretty interesting Jun 14 13:40:05 Hi, I set my appTheme background to a drawable in styles.xml like this : Jun 14 13:40:06 @drawable/splash Jun 14 13:40:54 Works fine, But I would like to know how to change the windowBackground dynamically in code. Jun 14 13:41:07 Google seems to not help much on the topic. Jun 14 13:41:30 i want to edit my application and re-pack that to apk package... but after rename that to zip and editing xml file... i cant re-sign that... Jun 14 13:41:54 your app. Jun 14 13:42:02 ... Jun 14 13:43:08 is here some channel for helping jar siging tools? Jun 14 13:56:24 So how does this react native work? Jun 14 14:02:53 Guess it doesn't? Jun 14 14:03:54 The answer to my own question is: getWindow().setBackgroundDrawableResource Jun 14 14:04:01 For those interested. Jun 14 14:04:19 and I have no idea what p0ff3 is talking about. Jun 14 14:04:20 :) Jun 14 14:05:53 NeoFrontier: Facebook made something for building apps for multiple platforms using javascript but I'm having trouble finding info about if that would make things better or worse Jun 14 14:06:56 react native? Jun 14 14:10:18 <_kw> when I specify a service in my manifest, it starts as soon as an intent is triggered that is specified in its intent-filter, correct? Jun 14 14:10:32 <_kw> what about if I don't specify any intent-filters? Jun 14 14:10:39 <_kw> when is the service started then? Jun 14 14:10:49 Eplebit: https://facebook.github.io/react-native/ Jun 14 14:10:50 <_kw> and when does a service shut down? Or does it stay running in the background once started? Jun 14 14:11:07 p0ff3: yup, tried it Jun 14 14:11:20 realized I suck at javascript and gave up Jun 14 14:11:21 hehe Jun 14 14:12:24 Haha Jun 14 14:12:35 Did you try to build for both iOS and Android? Jun 14 14:13:50 didn't spend many hours with it, just wanted to test it Jun 14 14:13:57 but I only tested it on iOS Jun 14 14:15:30 where is g00s Jun 14 14:17:42 Eplebit: Yeah I'm looking for info about the troubles of multiple platforms Jun 14 14:23:12 p0ff3: I'm usually using xamarin to do that Jun 14 14:29:37 Isn't there a BottomSheetBehaior guide in d.android site ? Jun 14 15:21:28 Is there a page explaining how to start using Twitter SDK without getting into what's the difference between Fabric, mopub and other approaches? Jun 14 15:21:47 I just need to integrate damn login button Jun 14 15:22:25 And I can't acheive that for like a half of hour already... Jun 14 15:22:31 next thing you know, 20k methods for a button ... Jun 14 15:22:50 Why all those social SDKs are such a pain in the ass? Jun 14 15:24:05 Hi everyone. I have a layout with some TextViews and an ExpandableListView. I would like to have all groups in ExListView opened (and I open them by code), but now I need my layout to be able to scroll down because full list doesn't fit screen Jun 14 15:24:08 how can I do that? Jun 14 15:24:11 Add this to your project-level build file, add that to your app-level file, add this to application class and if you don't have one then create such Jun 14 15:24:24 Initialize it in your activity... Jun 14 15:24:32 What a mess Jun 14 15:25:32 g00d: yeah, kinda. I felt exactly what you're talking about when worked with FB SDK last month Jun 14 15:25:35 I've tried with ScrollView but it does'nt work Jun 14 15:25:36 RxJava experts: is there a difference between Observable.amb(A,B) and A.ambWith(B) ? Jun 14 15:26:04 And every 2nd method is deprecated the very next morning after you applied it Jun 14 15:35:58 hey guys can bluetooth be used to private message between two people? Jun 14 15:37:35 sure, although the distance is fairly limited, they could probably just talk irl. Jun 14 15:38:03 yeah, heh Jun 14 15:38:53 if i was wanting to read up on how to use bluetooth in android apps would i go to like the bluetooth api? Jun 14 15:39:24 morning all o7 Jun 14 15:39:39 on the bluetooth basics page on the website, it lists general functions how to connect, managing connection, profiles, server/client but it doesnt state all the things bluetooth can or cant do Jun 14 15:39:51 website = dev.android website Jun 14 15:40:36 orbyt_: morning Jun 14 15:42:11 Wtflux: The basics page does mention BluetoothSocket with the description "... Bluetooth socket (similar to a TCP Socket) ... allows an application to exchange data ... via InputStream and OutputStream.". Jun 14 15:42:44 Thorbear: ok so the socket is how any/all exchanges are made? no matter what their use case might be? Jun 14 15:42:58 Thorbear: i just thought perhaps bluetooth spec had specific use cases it can or cannot do and listed them by chance Jun 14 15:43:27 as far as i recall your only app-level bluetooth options are btle exchanges, and SPP/rfcomm serial sockets Jun 14 15:44:33 I simply don't understand https://docs.fabric.io/android/twitter/twitter-core.html here they say " ...compile('com.twitter.sdk.android:twitter:1.13.1@aar')" Jun 14 15:44:50 https://docs.fabric.io/android/twitter/twitter-core.html Jun 14 15:44:57 And here twitter-core:1.6.6@aar' Jun 14 15:45:10 What version should I use? Jun 14 15:45:13 what's not to understand Jun 14 15:45:19 use both Jun 14 15:45:29 lol wut Jun 14 15:45:35 or the least that does what you need Jun 14 15:46:03 The thing is that Gradle says it can't find neither :) Jun 14 15:47:49 I always say if you're not automating you're not programming but ... https://developers.slashdot.org/story/16/06/13/2021216/programmer-automates-his-job-for-6-years-gets-fired-realizes-he-has-forgotten-how-to-code?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Slashdot%2Fslashdot+%28Slashdot%29 Jun 14 15:47:49 their docs tell you to add something to your resolvers Jun 14 15:48:12 shmooooz, you're so slow Jun 14 15:48:54 17:13 utc-7 yesterday Jun 14 15:49:50 AlexBerdnikov: Their stuff is not in Maven Central (or jcentral), you need to reference their repo, it is described in their documentation somewhere, and also in all their samples. Jun 14 15:50:34 Thorebear, thanks, but I don't understand why not to mention that in the veruy beginning of integration tutorial? Jun 14 15:51:30 AlexBerdnikov: They do: https://fabric.io/kits/android/twitterkit/install Jun 14 15:51:36 pfn you're slow too, that was at least a week old ;) Jun 14 15:51:59 cept you have nothing in here to prove. that Jun 14 15:52:32 I may be slow but I get there in the end! Jun 14 15:52:36 it's probably fake anyway Jun 14 15:52:55 pfn https://www.reddit.com/r/programming/comments/4mz47v/programmer_fired_after_6_years_realizes_he_doesnt/ Jun 14 15:52:58 AlexBerdnikov: It was just located under "Tutorial" rather than "Twitter" on the page you linked. Which links further to tutorials for all the different kits. Jun 14 15:53:27 shmooooz you know, you can post links without the utm garbage :) Jun 14 15:54:10 stop whining and just take it like a man Jun 14 15:55:22 utm_lol Jun 14 15:56:19 yeah, but that's just a link that doesn't appear here any time in the last week Jun 14 15:57:37 actually i guess its 22 days old on /cscareerquestions Jun 14 15:57:51 i can't believe it though Jun 14 15:57:54 that must be because I clicked on the slashdot news ticker from my website Jun 14 15:58:45 Thorbear, thanks. I just don't understand am I really supposed to use Crashlytics just to have login button? Jun 14 15:58:56 no Jun 14 15:59:28 tbh i like using twitter4j for twitter stuff cuz their api and docs r crap Jun 14 15:59:33 but fabric is definantly getting better Jun 14 16:00:22 What do you mean? There is nothing in that tutorial about Crashlytics? Jun 14 16:01:03 Why do they have it separate ways? I mean, there's a Twitter doc and there's also twitter-related Crashlytics doc, what to use when? Jun 14 16:02:58 Probably because they're adding new kits to the Fabric-umbrella and have to restructure the documentation as they go :) Jun 14 16:03:37 Thorbear, it's really confusing Jun 14 16:06:42 whats the best way to persist data while in a service? Jun 14 16:11:41 orbyt_: Is there a difference for the data are you in service or not? Jun 14 16:14:17 hey guys i noticed Java's JDK 7 has ended that seems rather abrupt, is there an alternative? Open JDK sdk? Jun 14 16:14:35 he is probably looking for something equivalent to saveInstanceState for activity or arguments for fragments. For shared preferences and database there shouldn't be any difference. Jun 14 16:17:37 Wtflux: You can still use JDK 7, it just isn't in development anymore because JDK 8 has replaced it for Java. You can also try using JDK 8, it should work for most parts. Jun 14 16:18:44 oh thanks, i assumed if java had a later JDK they would've mentioned it on the JDK 7 page...i assumed the entire JDK by sun was being shut down (maybe due to the ongoing legal battle between sun and google just to piss them off?) glad to hear the Sun JDK is still development regardless of version Jun 14 16:20:05 Wtflux: it's not sun anymore it's oracle Jun 14 16:20:12 my bad, oracle. Jun 14 16:20:15 your right Jun 14 16:40:47 AlexBerdnikov: what? Jun 14 16:41:00 what do you mean is there a difference Jun 14 16:45:35 hi again Jun 14 16:46:17 Odaym: you mentioned that i ( node / JS ) guy was bogged down by assumptions about android, could you please elaborate? I'm still curious to get a full picture Jun 14 16:46:30 (sorry for my sporadic comments, ive been at a conf) Jun 14 17:06:33 how i can get the name of current theme? Jun 14 17:07:22 http://pastebin.com/5EEbm8jy I've got this abstract presenter here that has "bind(subscription)" and "unsubscribe()" (which is called on detachView) - Is there something fundamentally wrong with how I'm unsubscribing? I'm getting leaks despite being unsubscribed Jun 14 17:08:41 http://pastebin.com/jQVVLuVm This is how I'm "binding" to a subscription, I get balanced "subscribed" and "unsubscribed" logs, but the target function onRecentCourses gets called an increasing number of times per event Jun 14 17:20:41 Oh woops, I read my logs wrong- too much noise. The subscriptions are not balanced Jun 14 17:26:10 do serviceintent share the same memory? Jun 14 17:26:17 (my understanding is that they're separate processes) Jun 14 17:30:40 Hi guys! bear with me, I'm not an android dev but trying to help some android colleagues. They are trying to figure out why some part of the app is slow, I suggested using the traceview profiler and it gives that most of the time (CPU exlusive %) is used by thread.nativeCreate and object.wait. (about 16% each in a 6 seconds timespan). As I said, I don't know much about android but this seems very strange Jun 14 17:30:42 to me, am I correct? Jun 14 17:34:24 there's like a million different things that could be causing this Jun 14 17:34:38 doubt anyone will be able to give you a straight answer Jun 14 17:35:41 I'm not asking what could be the cause, but if it really is unusual to have those two methods being the biggest source of exclusive CPU time Jun 14 17:36:16 which, from what I understand, is time executing those methods and not what's inside them (that would be inclusive CPU time) Jun 14 17:36:45 According to https://developer.android.com/studio/profile/traceview-walkthru.html Jun 14 17:40:26 As for the cause, the timeline pane has hundreds of rows being "Timers" (java.util.Timer) which, again, as a noob, doesn't seem normal to have hundreds of Timers in 6 seconds in which the app (which is a chat app) is initializing and querying the conversation lists from the database. Jun 14 18:00:34 Can I make circle divider on LinearLayout? Jun 14 18:04:34 I'm in a trouble at making circle drawable which don't scale Jun 14 18:13:39 So I'm pretty new to app development. I've got it a basic idea of what I'm doing and I know Java well, but this here I'm hoping someone with more experience with the SDK can help me with Jun 14 18:17:35 Where was I... Jun 14 18:18:32 Okay so I've got this maps fragment, it draws the google logo and some buttons that interface with the map. I have to set a padding on that in java, since I can't use fitSystemWindows with it. Jun 14 18:18:57 That works, but I need to read the padding from the other view to apply to the maps view Jun 14 18:19:36 why are you programmatically laying out the view? can you just do it in the xml or it has to be done at runtime? Jun 14 18:20:12 The Google Maps SDK can set a padding for the overlay items without setting a padding for the whole map Jun 14 18:20:16 But that has to be done at runtime Jun 14 18:20:34 This way the map still draws under my status and nav bars Jun 14 18:20:46 But the "locate me" button doesn't Jun 14 18:21:18 So I can set this padding. I can read the padding. And I can do that in an "onclick" with a button and it works fine. Jun 14 18:21:48 But in onCreate, the map isn't ready yet, and in onMapReady, the padding hasn't been set by fitSystemWindows yet. Jun 14 18:22:09 So my question is, what callback do I want to be calling this setPadding function in? Jun 14 18:22:12 Paul bist du das Jun 14 18:30:31 I get java.lang.RuntimeException: Unable to start activity ComponentInfo{...}: android.view.InflateException: Binary XML file line #20: Binary XML file line #23: Error inflating class fragment How do I know which XMLs are faulty? Jun 14 18:31:17 Does it change anything if you run it in debug mode? Jun 14 18:32:40 I'll try doing that. Problem is, the activity is the main activity, so a rather big class. Jun 14 18:33:06 it’s your layout XML Jun 14 18:35:47 yeah but I have many Jun 14 18:35:54 I cant tell which one Jun 14 18:36:25 it’s the one that activity is loading Jun 14 18:36:36 Well, you ran it, it worked, you changed a file or two, and ran it again. So it's gonna be the thing you changed. Jun 14 18:36:48 * mrandroid hopes everyone is safe and happy today. Jun 14 18:36:51 If you're using git to manage your code, it's easy Jun 14 18:37:05 The same to you mrandroid Jun 14 18:39:19 speaking of git, 2.9 was released Jun 14 18:40:05 yeah, problem is I didnt just change a file or two, but many, after refactoring someone eses work Jun 14 18:41:26 your version control should still have a list of what changed Jun 14 18:41:52 What does 2.9 bring that's special, g00s? Jun 14 18:42:40 but your onCreate isn’t doing setContentView multiple times, is it? Jun 14 18:43:22 paulywog not sure yet, usually its modest stuff Jun 14 18:43:34 Also, anyone know of a good callback where the padding values from fitSystemWindows will be applied to the view? They don't seem to be populated yet in onCreate or onMapReady. Jun 14 18:44:18 Like I said, I have a snippet of code that works if I run it way later in like a "location update" callback or an onClick, but I want it to run at the proper time. Jun 14 18:45:55 damn, i keep running into this - i want to use a CoordinatorLayout, but apply a behavior to a view thats not one of its children Jun 14 18:46:44 for example, AppBarLayout is child, but layout_behavior needs to go on a recyclerview and /not/ its sibling empty view Jun 14 18:47:51 guys... what can i use instead of setBackgroundTintList for an ImageButton? Jun 14 18:48:02 on older API Jun 14 18:51:44 Q of the day: should i go for OP3, or wait for Nexus 5 2016 to upgrade my old N5.. Jun 14 18:52:12 why is that Q of the day ? Jun 14 19:03:29 huh? how is recyclerview not a child of coordinator layout Jun 14 19:07:51 g00s, i think i have a similar issue, which i left sort of dormant until client complaint Jun 14 19:08:45 bitkiller_ yeah wish there was a way CL could operate on indirect children Jun 14 19:08:49 Do you see anything wrong with this lauyout file? http://pastebin.com/YGmaj5Qd Jun 14 19:09:10 any idea why a new project looks like this: http://prntscr.com/bgdqsa Jun 14 19:09:14 well its cloned Jun 14 19:09:29 from what i can tell all the gradle files are there... Jun 14 19:10:47 I get android.view.InflateException: Binary XML file line #20: Binary XML file line #23: Error inflating class fragment Jun 14 19:11:44 I assume it is this file because I get Disconnected from the target VM, address: 'localhost:8651', transport: 'socket' while executing setContentView(R.layout.activity_main); Jun 14 19:12:02 in debug mode Jun 14 19:12:24 though the exception comes only in normal mode, not in debug mode Jun 14 19:13:19 what I changed in the layout file was adding a container for a fragment Jun 14 19:14:14 but replacing the container is not handled in that line Jun 14 19:14:42 what might be the problem? Jun 14 19:15:19 Is there like a View onDrawComplete callback I can use? Jun 14 19:18:27 no Jun 14 19:19:43 So where do I put this code then that should happen after the fitSystemWindow code populates the padding for a view? Jun 14 19:24:25 getViewTreeObserver and look for things like OnDrawListener and etc. Jun 14 19:24:47 also view.post(new Runnable()...) will be called after view is laid and drawn Jun 14 19:25:01 Shouldn't make too puch of a performance dent right? Jun 14 19:25:13 It's just copying the padding from one view over to another Jun 14 19:25:20 what do you want to accomplish Jun 14 19:25:32 and how much is it needed after the view is drawn Jun 14 19:26:23 GFDI why are microusb so shit Jun 14 19:26:39 About to test and of course my device isn't showing Jun 14 19:27:29 Also, really regretting the AMD CPU right about now since I can't reasonably emulate on it Jun 14 19:28:05 oh Jun 14 19:29:01 Not buying an AMD CPU or graphics again. Works fine for processing, works fine for gaming, but if you want Premiere you need Nvidia, and if you want Android development you need Intel, and if you want Hackintosh you need both... it just never ends Jun 14 19:30:00 It's bad when my MacBook Air can run the emulator better than my 8 core 16GB ram desktop Jun 14 19:44:14 I dont get google, why doesnt GPGS have security builtin? Jun 14 19:44:37 And if you want to charge users they will need a google account anyhow right? Jun 14 19:51:20 what's the best way to have a local db that i can access from any activity or fragment? Jun 14 19:51:32 i need a table of sorts Jun 14 19:51:56 hey guys, we’re using a build system (Unity for Android) which does accept .aar files, but falls over with dynamic AndroidManifest files with ${applicationId} Jun 14 19:52:17 is there any way to do some sort of “build .aar file using this applicationId” Jun 14 19:52:38 which would process a .aar file with a passed in applicationId? Jun 14 19:52:39 is SQLlite the go-to database for android? Jun 14 19:54:28 what do you mean Jun 14 19:54:38 sqlite is standard, built-in Jun 14 19:54:58 if you wanted to have a database on android, you would use sqlite? Jun 14 19:55:46 depends on use case. but i'd use some orm/ormlite on top of sqlite Jun 14 19:56:18 ive never heard of orm, what does it do? Jun 14 19:57:12 it stands for Object-relational mapping Jun 14 19:57:25 its a way how you convert a Java Object (POJO) into/from database Jun 14 19:57:27 there’s also Realm Jun 14 19:57:48 ah so if i wanted to store objects directly, i should use that? Jun 14 19:58:01 they’re both databases Jun 14 19:58:53 well using plain sqlite you have to write object's variables into query. the orm thing does it under hood Jun 14 19:59:09 and also theres realm as mentioned earlier Jun 14 19:59:27 interesting Jun 14 20:03:44 Ayy I figured it out Jun 14 20:04:40 Needs to be run in getViewTreeObserver().addOnGlobalLayoutListener() to update properly. But I now have Google Maps SDK working with my transparent bars, awesome. Jun 14 20:08:32 hi, using robolectric, but I'd like to try to upgrade the sqlite version it's using Jun 14 20:08:40 fgf Jun 14 20:08:51 is there a way configure a project in build.gradle to use a newer version of one of the libraries it depends on? Jun 14 20:09:16 it looks like sqlite4java has newer stuff available than robolectric is using Jun 14 20:10:33 * mrandroid wishes the Android SDK docs and Gradle Plugin were more complete. Jun 14 20:17:51 rager, then add it as a dependency Jun 14 20:19:03 ah, that's all I should have to do? Jun 14 20:24:36 Hey everyone... Why can I not create a legitimate Bitmap when working with the data array that I have received from an jpegCallback function. The Callback is used with camera.takePicture(); Jun 14 20:27:02 BitmapFactory.decodeByteArray()? Jun 14 20:28:43 cart_man: are you trying to create the Bitmap with the wrong callback passed to takePicture() ? Jun 14 20:30:00 mrandroid: Well I am using the jpeg callback and I wan to overlay another picture over the one that has just been taken Jun 14 20:30:28 check which callback is doing the processing: shutter, raw, postview, or jpeg ... void takePicture (Camera.ShutterCallback shutter, Jun 14 20:30:30 Camera.PictureCallback raw, Jun 14 20:30:31 Camera.PictureCallback postview, Jun 14 20:30:33 Camera.PictureCallback jpeg) Jun 14 20:32:19 mrandroid: At the moment all of them are null accept for jpegCallback Jun 14 20:32:33 Alright, what's it called, the silhouette 'not logged in' user picture, how do I use that in my app? Jun 14 20:35:22 Am I supposed to use ic_person and add a background? Jun 14 20:35:47 will realm make things easier when i go to iOS, since it's also supported there? Jun 14 20:41:25 hey guys, anyone knows where to get the latest adb? Jun 14 20:42:10 in the sdk Jun 14 20:43:11 and the stand alone one? I got mine from ubuntu repos Jun 14 20:43:45 Realm looks awesome Jun 14 20:43:48 but now it's outdated Jun 14 20:46:20 For in app-purchases users need a google account right? Jun 14 20:49:30 k fixed it Jun 14 20:54:18 Hi all. I am new to Android dev, so my apologies. I tried to load my app to my nexus 6P, so I downloaded the apk and installed it. It says it installed successfully, but the 'open' option was disabled and it is not visible on my device. Here is my manifest: http://pastebin.com/ifSk6iVu what am I doing wrong? Jun 14 20:56:16 erffddcdc: I believe that's correct Jun 14 20:56:16 not sure what you mean by "open option" ... just tap the icon on the screen. Jun 14 20:56:30 but the only thing you should apologize for is not starting Android development sooner ... Jun 14 20:56:39 :-D Jun 14 20:57:13 yea, apologize jerk Jun 14 20:57:14 mrandroid: Hahah, thanks! When you install the apk, there is 'OK' and 'OPEN'. Open was disabled. The icon is nowhere to be found on my phone, even though the install was successful Jun 14 20:57:35 how r u installing the apk... Jun 14 20:58:09 orbyt_: generated the apk with android studio, emailed it to myself, downloaded it and installed it Jun 14 20:58:21 via adb install? Jun 14 20:58:24 or some other method Jun 14 20:58:54 Cheating is a real issue right? Why is then GPGS not encrypted? You need to add your own encryption on top of it... Jun 14 20:58:54 nope, just clicking the apk from my downloads folder Jun 14 20:59:04 lol Jun 14 20:59:06 try adb install mate Jun 14 20:59:16 or just use android studio normally Jun 14 21:00:07 orbyt_: I normally just use usb debugging in android studio, but I'm trying to make it so when the user goes to a specific url, it opens up this app with some variables set. Hard to test from android studio as far as i've learned Jun 14 21:01:24 nococks_ what puzzles me is that you're e-mailing your .apk file to yourself. Jun 14 21:02:45 mrandroid: Hahah, fair enough. I'm not sure what standard practice is here. I'm learning the Android way as I go here. I am doing USB debugging from Android Studio, but I dont' know of any way to install the app on my phone without sending the apk across Jun 14 21:03:52 why would you do that when you’re USB debugging? Jun 14 21:05:00 s73v3r: No, when USB debugging I don't bother with the apk. But I don't know how to test auto-launching the app when the user visits a URL in their browser/clicks a link without having the app already installed. Is that possible? Jun 14 21:05:21 mrsocks_ sounds like you need to get cozy with Android Studio. And I'll be the first to tell you it's not easy. Android Studio ain't no NetBeans. Jun 14 21:05:40 the app should already be installed Jun 14 21:06:02 but what I’ve done is hit go, and then hit the home button Jun 14 21:06:05 then click the link Jun 14 21:06:05 try this: Run (menu) -> Debug 'yourapplicationmodulename' Jun 14 21:08:04 OK, I will test that out. I assume that must mean I have something wrong with my manifest then (http://pastebin.com/ifSk6iVu), since the links don't seem to redirect to my app Jun 14 21:14:09 lol, where else would it be Jun 14 21:14:23 oops scrollback fail Jun 14 21:14:33 nosocks_: try putthing the MAIN and VIEW in seperate intent filters Jun 14 21:15:10 xorgate_: put MAIN in a different intent filter than VIEW? Jun 14 21:15:18 hold on Jun 14 21:15:34 i actually don't seem to have a view intent filter hmm Jun 14 21:15:48 here's what i did Jun 14 21:15:48 https://gist.github.com/xorgate/9cb4aeb0b600d90d8b2b7512b696decb Jun 14 21:16:13 ahhh i see. let me give that a shot! Jun 14 21:17:23 didn't realize i could have 2 separate intent filters in the same activity Jun 14 21:18:20 still didn't launch my app while i'm usb debugging. must be something else i'm missing... Jun 14 21:21:25 what the fuck Jun 14 21:21:47 app crashes with an InflateException when loading up a FloatingActionButton Jun 14 21:21:53 only on an S5 Jun 14 21:21:58 why would that be Jun 14 21:23:20 because it's samsung Jun 14 21:24:11 orbyt_ lol oh shit Jun 14 21:24:38 orbyt_ make sure you aren't referencing some attribute thats undefined on sammy Jun 14 21:24:50 hopefully they just move on to tizen and leave us alone soon Jun 14 21:25:00 if you have an app where the user buys content and there is a bug and it isnt delivered. what are the rules here? how liable are you? Jun 14 21:26:38 orbyt_: I have a bug right now where my progress spinner doensn't show on a S7, but on everything else I've tried Jun 14 21:26:54 Eplebit: what version of android? Jun 14 21:27:31 6 Jun 14 21:29:17 orbyt_: is it a known bug? Jun 14 21:30:00 no was just wondering Jun 14 21:30:04 well it might be but idk Jun 14 21:32:06 hmm Jun 14 21:32:15 g00s: like what Jun 14 21:33:04 orbyt_ what version of android is the samsung device Jun 14 21:33:09 5.0 Jun 14 21:33:33 have you tested on any other 5.0 devices ? Jun 14 21:33:40 about to Jun 14 21:33:45 well, emulator Jun 14 21:35:06 yea so 5.0 is the issue then hmm Jun 14 21:35:13 heh Jun 14 21:35:43 make sure you are paying attention to any lint warnings Jun 14 21:36:16 yea none other than hardcoded string warnings Jun 14 21:36:48 guess ill just delete the fab properties until it starts working.. Jun 14 21:43:07 what could possibly be wrong with this: http://prntscr.com/bgfx0a Jun 14 21:44:24 orbyt_ app:src Jun 14 21:45:02 orbyt_ oops, my bad Jun 14 21:45:41 orbyt_ is ic_play a vector drawable, plain drawable, png , etc ? Jun 14 21:46:07 vector yea Jun 14 21:46:13 what is app:src Jun 14 21:46:32 my mistake, app:src is wrong Jun 14 21:46:51 vectors wouldnt be the problem would they? thatd be weird Jun 14 21:47:24 orbyt_ you may need to wrap it (make a drawable that references the vector) Jun 14 21:48:11 but that should work on 5, hm Jun 14 21:49:48 yea my other vectors work fine Jun 14 22:00:55 lol.... Jun 14 22:01:07 updated appcompat and design libs to 24 Jun 14 22:01:11 it started working Jun 14 22:01:20 then Jun 14 22:01:28 went back and downgraded to confirm that was the issue Jun 14 22:01:37 and it works on the lower version now Jun 14 22:01:43 -______________________- Jun 14 22:05:08 how does it work with in app purchases that are not practically refundable? Jun 14 22:05:27 the user doesn’t get refunds Jun 14 22:09:01 but they can regret their payments for 48 hours... Jun 14 22:09:35 bullshit if you ask me. then they have already enjoyed it... Jun 14 22:11:42 I may be wrong, but I don’t think IAP falls under the 48 hour refund window Jun 14 22:23:13 orbyt_ sounds like pebkac ;) Jun 14 22:23:34 like what? Jun 14 22:23:46 oh Jun 14 22:23:47 erm Jun 14 22:23:58 i would like to think so Jun 14 22:24:06 but considering thats literally all i changed.... Jun 14 22:24:24 i literally went and ran the same project and it built on the s5 Jun 14 22:24:25 so.... Jun 14 22:25:43 regarding iap, in brazil shit could be big, if people used to purchase app things Jun 14 22:26:17 there's a law named something like "consumer protection law" Jun 14 22:36:35 Is a custom view just any view that has some methods overrid? Jun 14 23:23:26 i think the worst part of Fragments is executePendingTransactions() - such garbage api & semantics Jun 14 23:24:41 and for some reason, i can't seem to executePendingTransactions() in Fragment@onActivityCreated() or I get some illegal state (recursive transactions) Jun 14 23:57:08 If I set ro.debuggable=1, will I be able to debug third party applications? Not mine, not google's, but some arbitrary app found in the play store. Jun 14 23:58:23 hmm Jun 14 23:58:38 why cant you do Observable.from() with an array of ints? Jun 15 00:02:29 should I get a pixel c or a nexus 9 Jun 15 00:05:16 missingno: no, probably not Jun 15 00:11:06 heh purchasing one is inevitable Jun 15 00:11:16 I like how the answer is no to both :D Jun 15 00:11:52 Android on Tablets isn’t in a good place right now Jun 15 00:12:34 yes but I have like 50 phones why don't I have a tablet Jun 15 00:12:39 seems like a sweet place to test N Jun 15 00:13:09 meh. if it’s a test device, you can probably get something cheaper Jun 15 00:13:41 if it’s a personal device, then android isn’t great on tablets. most apps don’t optimize for tablets Jun 15 00:14:00 so you’re using the same apps you’re using on the phone, in the same form Jun 15 00:15:06 I mostly want to optimize my own app for tablets Jun 15 00:15:27 and it being a nexus-esque device is an advantage for preview builds Jun 15 00:18:59 missingno, buy a subscription for genymotion instead, you will have many form factors, and for the most of it it's sufficient for testing form-factor Jun 15 00:19:22 offtopic: trac was a very nice pm tool Jun 15 00:20:15 ah nevermind, just saw you want N Jun 15 00:44:18 hey is there any way to query media contract provider to determine (and retrieve) accidently deleted media? or is there some other api for doing this? Jun 15 01:43:53 i need to make a custom view, but the background grid doesnt change, how can i avoid redrawing the backgroudn grid every time? Jun 15 01:48:48 whoa! the new One plus 3 has 6GB ram! Jun 15 01:55:03 anyone know why this fails in Fragment#onActivityCreated(Illegal State Exception) - Jun 15 01:55:11 getActivity().getSupportFragmentManager().beginTransaction().commit();getActivity().getSupportFragmentManager().executePendingTransactions(); Jun 15 01:55:43 g00s: we need more then that Jun 15 01:55:46 even without getActivity() ... so : Jun 15 01:55:57 getSupportFragmentManager().beginTransaction().commit(); Jun 15 01:56:05 getSupportFragmentManager().executePendingTransactions(); Jun 15 01:56:23 michael33 one sec ... Jun 15 01:56:27 g00s: stop what you're doing and back away from it Jun 15 01:56:51 just say NO to fragments Jun 15 01:57:52 michael33 this is the salient point Caused by: java.lang.IllegalStateException: Recursive entry to executePendingTransactions Jun 15 01:58:11 but those are the only 2 lines, i can replicate it easily Jun 15 01:58:25 they just have to be in Fragment#onActivityCreated Jun 15 01:58:51 notice its an empty transaction. so basically, executePendingTransactions() just barfs with even no work to do Jun 15 01:59:09 again, only in Fragment#onActivityCreated() Jun 15 01:59:58 wonder if i have to do one of those 'post runnable' to unstick some race condition Jun 15 02:03:05 is there a better way to fix imports instead of going to each red mark and waiting for Alt+Enter to work? Jun 15 02:03:12 lol, putting it in a runnable and posting it fixes - must be a bug with the fragment state machine Jun 15 02:04:01 which totally defeats the whole purpose of executePendingTransactions () haha Jun 15 02:05:11 well i guess this will be fixed with commitNow() soon Jun 15 02:05:31 they can rename the existing one as commitSoon() :D Jun 15 02:06:33 shmooooz i'm not so much against fragments, just that seems the impl is so bad google can't get it working right ;) Jun 15 02:18:44 For contacts contract, if a contact is to be deleted there is a flag set in one of the columns... does anyone know if it is same for media (specifically video), so like I could find a deleted video meta info by querying over media video column, and checking that flag? Jun 15 02:18:51 or does that flag not exist for media? Jun 15 02:20:49 lasserix: is to be deleted but hasn't been deleted yet? Jun 15 02:20:56 yeah Jun 15 02:21:17 err not exactly sure to be honest Jun 15 02:21:36 assuming it was somehow deleted, but phone hasn't been used since Jun 15 02:22:04 so i was hoping media contract would still have its meta data, just flagged as ready for delete/overwrite then i could iterate that and find where it is and pull it Jun 15 02:22:45 I don't remember seeing such a column for video Jun 15 02:25:27 yeahh Jun 15 02:25:28 i know Jun 15 02:26:00 doesn't really make sense since that is a lower level, non "public" (outside of os) access Jun 15 02:26:29 damn i need to work on a machine learning thing to deobsfucate code Jun 15 02:26:47 (not for piracy or anything, just cause i like inspecting how other people solve their problems) Jun 15 02:26:53 *the same problems Jun 15 02:32:11 ugh i cant find any data on this... Jun 15 02:32:26 im just trying to figure out the best way to do this is all Jun 15 02:32:55 i have a background grid that doesnt change, and id like to put a bars over it that grow. Jun 15 02:33:53 If i put them all in one view, then on invalidate, the entire grid will redraw even though it didnt change, right? Jun 15 02:49:02 is there a way to customize intentions in android studio? like, add some? **** ENDING LOGGING AT Wed Jun 15 02:59:58 2016