**** BEGIN LOGGING AT Fri Sep 16 02:59:59 2016 Sep 16 03:02:07 Yeah I'm looking at the paid ones and wondering that. For now I'm just hitting up the free version. Sep 16 03:28:38 hello: x.setBackgroundResource(R.drawable.whatever); Sep 16 03:28:47 is there some reverse function like "getBackgroundResource" ? Sep 16 03:28:55 i need to dynamically get the drawable Sep 16 03:29:50 ir7466: ContextCompat.getDrawable(getActivity(), R.drawable.name); Sep 16 03:30:13 inder_gt: not what hes asking Sep 16 03:30:21 no, it's already been set Sep 16 03:30:26 and what are you setting the bg on ir7466 Sep 16 03:30:28 and I want to retrieve what it was set to Sep 16 03:30:29 ya just realized, mb lol Sep 16 03:30:51 what am I setting it on? inside an adapter Sep 16 03:30:59 What kind of view Sep 16 03:31:06 board view Sep 16 03:31:10 (ext library) Sep 16 03:31:25 but basically a list view Sep 16 03:32:00 so *somewhere* the image is being set. and in my activity, i want to get the drawable of that image given I know the resource id of the imageview Sep 16 03:32:16 int drawable = clickedView.findViewById(R.id.item_image_view).WHAT_HERE() Sep 16 03:32:20 so basically I can get that far Sep 16 03:33:27 Well is it an ImageView or a ListView? ImageViews have a getDrawable() method Sep 16 03:34:28 the image is an imageview Sep 16 03:34:44 but it's part of what is essentially a list view item Sep 16 03:34:55 so there's an imageview and a textview = and that forms the item Sep 16 03:35:01 ((TextView) clickedView.findViewById(R.id.text)).getText(); Sep 16 03:35:05 that gets me the text Sep 16 03:35:12 now i want to get the drawable for the image Sep 16 03:35:15 Hi, is there a way to open a pdf and convert it to an image ? Sep 16 03:44:04 lol http://phandroid.com/2016/09/15/firebase-android-app-crash/ Sep 16 03:45:06 go google ... Sep 16 03:46:11 "It seems that when Google updated its Play Services to version 9.6.80, any application using Firebase as a crash reporting tool will indeed crash." Sep 16 03:46:13 omfg Sep 16 03:58:33 Greetings, Question: For SpannableStringBuilder how do you stop a SPAN_EXCLUSIVE_INCLUSIVE? AKA i want to "log.append(text, RED, SPAN_EX_IN).append(text).append(text).append(newline, RED, **CHANGE TO SPAN_EX_EX**)?" Sep 16 04:03:17 is there an easy way to have the activity NOT reload when the orientation changes? Sep 16 04:04:27 You can lock the orientation Sep 16 04:05:38 don't want to lock it Sep 16 04:05:55 my list view for example, say the user re-arranges some stuff Sep 16 04:06:05 if they rotate the orientation, all the changes are lost Sep 16 04:06:17 save the changes then Sep 16 04:06:34 how Sep 16 04:06:49 can't i just not have the activity reload on orientation change? Sep 16 04:06:52 seems much easier Sep 16 04:06:59 whats the best way to create an observable out of a callback that fires, use a Subject? Sep 16 04:07:29 added android:configChanges="orientation|screenSize" in the manifest - that fixed it Sep 16 04:20:55 ir7466: That works indeed, and if your application can handle the configuration changes, it's much faster (and uses less cpu/battery) than the defaukt. Sep 16 04:21:20 ir7466: That said, you should still write your code to be able to handle activity restarts, since configuration changes are not the only thing that can trigger them. Sep 16 04:23:01 loke: i've never heard that before about it being much faster, that's interesting Sep 16 04:23:18 parco: It's faster simply because it runs less code. Sep 16 04:23:48 How much faster is debatable. :-) Sep 16 04:24:33 I'm pretty sure it was visibily smoother on old devices. Sep 16 04:27:17 parco: What do you mean by "observable out of a callback"? Sep 16 04:27:55 all of the rxjava examples show how to create observables from predefined lists / data Sep 16 04:28:17 i'd like to create a stream out of a callback, from say, the LocationManager Sep 16 04:28:36 parco: I don't know. I never bothered with rxjava Sep 16 04:29:18 I've used that stuff in web development, but I've never felt the need in Java. Sep 16 04:33:45 loke: its awesome, definitely check it out Sep 16 04:36:59 parco: I don't know. My code is has plenty of lambdas all over the place (I do Android development in Kotlin). I see the rxjava stuff as a restriction and a complication. Sep 16 04:37:25 kotlin must be the way to go, i can't wait to try it out Sep 16 04:39:02 parco: It's quite nice. Not as nice as Lisp of course, but acceptable. :-) Sep 16 04:50:39 ugh, DecoratedCustomViewStyle looks like shit Sep 16 04:56:36 dragorn 53.4 here, would be great if it got into the 40's Sep 16 04:56:43 * g00s pumps fist Sep 16 04:57:12 dog is 5 years younger Sep 16 06:05:34 Hi Sep 16 06:05:37 I have this: Sep 16 06:05:39 RequestBody formBody = new FormBody.Builder() .add("search", "Jurassic Park").build(); Sep 16 06:06:01 what do I do if I want to call "add()" an unknown number of times? basically i have a list of parameters and i want to inject them dynamicall Sep 16 06:08:59 so you just add another add after add() Sep 16 06:09:07 it returns the FormBody.Builder Sep 16 06:09:12 you can chain them Sep 16 06:21:35 hey , I am trying to delete a database inside an alert Dialog , but it says either declare dbadapter as final and if i declare it final , it says , trying to re-open and already closed database Sep 16 06:21:37 http://pastebin.com/5MryEwRP Sep 16 06:27:52 db is closed before dialog is shown Sep 16 06:28:18 if you click yes you have db.deleteAll() on already closed db Sep 16 06:29:03 you could initialize the dbadapter inside the onClick Sep 16 06:44:11 Ashiren: but db is closed at the end , and when i try to delete the database , it still is open Sep 16 06:46:23 not exactly Sep 16 06:46:52 doing .show() you just tell the system to open dialog in the future Sep 16 06:47:07 the lines below show() will execute before dialog is actually shown Sep 16 06:47:38 you have a log there, you can see the log is shown before you click anything in dialog Sep 16 06:47:48 and so is db.close() executed Sep 16 06:48:28 Trying to get the WiFi signal strength, using this code: http://pastebin.com/fjG0vJ5B However, OnRecieve is never being called even though I should be receiving data. Any idea why? Sep 16 06:49:36 Ashiren: you mean the .show of negative or positive response , causes it to execute in future? Sep 16 06:50:30 Zajt: http://stackoverflow.com/questions/8717741/application-never-receives-rssi-changed-action Sep 16 06:51:09 killer: the show() of the dialog Sep 16 07:03:22 for a floating action button i have: android:src="@android:drawable/ic_" Sep 16 07:03:35 where can I see a full list of the possible icons I can use? Sep 16 07:54:40 android studio doesn't respond Sep 16 07:55:27 waited for 7 minutes for gradle to complete build, cancelled it, trying to quit studio Sep 16 07:56:00 android is low quality software :) Sep 16 07:56:49 squ: doing Android programming has opened my eyes to just how much Google sucks considering just how many trillions of $ they have Sep 16 07:57:35 you should try to develop app in XCode for ios for better image Sep 16 07:59:38 Note: the configuration keeps the entry point 'com.google.firebase.iid.FirebaseInstanceId { com.google.firebase.iid.FirebaseInstanceId getInstance(com.google.firebase.FirebaseApp); }', but not the descriptor class 'com.google.firebase.FirebaseApp' Sep 16 07:59:40 this Sep 16 07:59:42 why Sep 16 08:00:12 software responsible by google, firebase Sep 16 08:00:22 doesn't compile with proguard Sep 16 08:00:52 I expected more Sep 16 08:01:39 https://www.youtube.com/watch?v=-6BXBI4KkwY Sep 16 08:01:47 is there a site that shows some simple/elegant form designs for android? Sep 16 08:04:51 squ: ugh, their enthusiasm is depressing me. I bet they gave them cocaine before the filming started because no right-minded developer can be that excited about bullshit without drugs. Sep 16 08:05:12 yeah :) Sep 16 08:05:37 americans Sep 16 08:05:42 question : on gradle properties I want to be able to override them in a flavour but apply them in the archives base name and dependancies .... attempting to override in flavour just ends up with last defined flavour, if you use custom properties the deps. are resolved before the variants container is populated, anyone got any ideas ? Sep 16 08:11:12 VerbalKint o/ Sep 16 08:32:02 raoul11: ola Sep 16 08:33:10 raoul11: how's your app going? Sep 16 08:37:32 VerbalKint: I'm still trying to get a handle on what Firebase actually is. Sep 16 08:37:58 loke: unicorns, happiness and the magic of friendship Sep 16 08:38:26 VerbalKint: Clearly. :-) Sep 16 08:38:27 loke: and snorting cocaine off of the backs of fashions models on the deck of a cruiser in Ibiza Sep 16 08:38:51 *yacht Sep 16 08:39:30 loke: Firebase is progressive, innovative, forward-thinking, revolutionary and groundbreaking, bro Sep 16 08:39:49 loke: so buy it, don't ask what it is :D Sep 16 08:43:26 question : on gradle properties I want to be able to override them in a flavour but apply them in the archives base name and dependancies .... attempting to override in flavour just ends up with last defined flavour, if you use custom properties the deps. are resolved before the variants container is populated, anyone got any ideas ? Sep 16 08:43:39 Firebase made me go, oh my god its magic ya know Sep 16 08:44:18 http://www.youtube.com/watch?v=MzlK0OGpIRs ! Sep 16 08:44:35 VerbalKint: firebase theme song right there Sep 16 08:50:24 simple question - what could go wrong with this approach of creating and passing objects to fragment? http://pastebin.com/WvgHbcm0 Sep 16 08:50:31 provided app is always portrait Sep 16 08:51:02 and the complex object cant be serialized/parcelled, it contains references to 'living' objects Sep 16 08:56:27 VerbalKint: hi Sep 16 08:56:32 arancio: hey Sep 16 08:57:33 arancio: my AdMob impressions are slowly rising :D Sep 16 08:58:06 arancio: how's your app? Sep 16 09:01:42 VerbalKint: even exponential curves have a beginning with a very low slope. Then: BOOM! Trivia world domination! Sep 16 09:02:01 arancio: I'm betting on that Sep 16 09:02:30 But really, I need to go back to webdev in the meantime Sep 16 09:05:18 VerbalKint: maybe web development will give you new ideas for mobile app too Sep 16 09:05:56 arancio: meh, maybe Sep 16 09:06:49 hi Sep 16 09:07:25 best intro of all time: https://www.youtube.com/watch?v=kn8Yd3_oIVQ Sep 16 09:07:26 Kalleos: hi. Welcome to #android-dev Sep 16 09:08:35 I have a Fragment with Text and LiesViews. After I press a button in that fragment, a DialogFragment appears. The problem is now, that the listviews of the previous Fragment disappear, whereas the TextViews remain. Sep 16 09:08:40 ListViews* Sep 16 09:08:50 parco: now THAT'S the kind of programmer speech impediment that gives me chills! Sep 16 09:09:18 The DialogFragment hast also ListViews.. but they are fully their own Sep 16 09:09:47 I checked whether the DialogFragment overwrites any of the ListView variables of the previous fragment, but it doesn't Sep 16 09:09:48 VerbalKint: i like this guy already, his name's Nigel! Sep 16 09:10:16 Has someone experiences something like that? I was not able to find something in StackOverflow.. Sep 16 09:10:48 Kalleos no code no help ? Sep 16 09:11:03 parco: but seriously now, nothing's wrong with him. I would rather have him tell me about Firebase features than those obviously-CG dumbasses. Sep 16 09:11:18 ok.. one moment Sep 16 09:11:24 TextViews with xml static id's will restore values Sep 16 09:12:58 Well.. I think it will take a little time.. I reduce the code Sep 16 09:20:47 Hi all, somebody else had an issue with the fab having a cast exception with the layoutparams by upgrading support lib to 24.2.0 | 24.2.1? Sep 16 09:21:30 like this issue: https://code.google.com/p/android/issues/detail?id=220794 Sep 16 09:31:00 How do you change the color of the top screen area where charge level indicator, time and signal level indicator are? Sep 16 09:31:12 How is that area called? Sep 16 09:32:46 android:statusBarColor Sep 16 09:33:05 Zharf: thanks Sep 16 09:33:48 it's the colorPrimaryDark setting in the theme Sep 16 09:36:17 Hi Sep 16 09:36:25 I have this in my main activity: bundle.putBoolean(Constants.SPLASH_TO_SETTINGS_INTENT, false); Sep 16 09:36:40 I have this in the settings activity: final boolean fromSplash = getIntent().getExtras().getParcelable(Constants.SPLASH_TO_SETTINGS_INTENT); Sep 16 09:36:54 But it's not finding it in the parcel, it's coming back as null Sep 16 09:36:57 i do not understand Sep 16 09:40:21 oh i see... getBoolean was needed not parcelable Sep 16 09:58:22 hi there, I have a question about TypedArray in an adapter but don't know how to manage the call to ".recycle" efficiently. Is it OK to create the TypedArray for each view and then call ".recycle"? Sep 16 09:58:41 what are you trying to do Sep 16 09:59:26 I load some random colors from an XML resource file .... color1 , color2, color3, ... Sep 16 10:00:24 Right now, I have the TypedArray as an attribute of the adapter, however this means it lives as long as the adapter does and the call to ".recycle" never occurs Sep 16 10:02:42 alternatively, I can create the TypedArray in "onBindViewHolder" and call ".recycle()". However this means a new TypedArray for each view. I don't think this is the right approach. Sep 16 10:03:49 or ... I can actually pass all colors to the adapter ... either in the constructor or in a set method ... it just came to my mind ... Sep 16 10:08:12 you should convert it to a java array for the adapter to use Sep 16 10:08:18 or list Sep 16 10:08:19 but whatever Sep 16 10:10:43 What are the pros and cons of using AbstractThreadedSyncAdapter vs GcmTaskService to perform all network based calls synchronously. Sep 16 10:19:19 yup! that's right Zharf! Sep 16 10:19:22 Thanks Sep 16 10:32:40 <_genuser_> is there way to force intellisense popup for paramters? Sep 16 10:33:02 <_genuser_> ctrl-space always just popups up autocomplete. when inside the parens of a method call, I'd like to pull up param list. Sep 16 10:33:27 always? Sep 16 10:34:09 VerbalKint: song about magic is nice, never heard it Sep 16 10:35:05 _genuser_, settings > editor > general > code completion has some settings you might be interested in Sep 16 10:35:15 <_genuser_> Zharf: yes, for me when I hit ctrl-space, it pops up autocomplete. Sep 16 10:35:21 <_genuser_> Zharf: ah, let me look. Sep 16 10:35:52 <_genuser_> I know I can go to the beginning of the method and hit ctrl-space, and then scroll down and it will show the params, but that requires scrolling after already starting the param list. Sep 16 10:37:08 I'm not sure what you mean to be honest Sep 16 10:39:26 <_genuser_> Zharf: https://code.visualstudio.com/images/January_jsdoc.png Sep 16 10:40:16 <_genuser_> that's Visual Studio (not AS), but basically once you're inside the method parens, it will show how many params (if overloads, you can up/down arrow thru them), and as you type commas, it will highlight currently needed param. Sep 16 10:40:22 <_genuser_> that way you can quickly see what you need to pass there. Sep 16 10:41:07 <_genuser_> https://i-msdn.sec.s-msft.com/dynimg/IC829254.jpeg Sep 16 10:41:24 <_genuser_> so you keep typing or up/down arrow to see if there's a method signature that you like better. Sep 16 10:42:21 is it possible to choose named parameter in @Provides method in dagger ? Sep 16 10:43:56 _genuser_, I'm not sure if you can get them up automatically unless you're just writing the call (that is, not when you just click inside the parentheses... but you can always press ctrl+p when inside those parentheses Sep 16 10:45:55 <_genuser_> Zharf: yep, ctrl+p that's exactly what I was looking for! thanks. Sep 16 10:46:34 <_genuser_> in VS, you ctrl+space for regular autocompelte, and ctrl+shift+space for this thing that needs ctrl-p in AS. Sep 16 10:46:42 <_genuser_> this is such a time saver! Sep 16 10:47:19 VerbalKint: so can I stop buying smartphones just to install your app? I got 23 already. Can we use another strategy to make your download count go up? Sep 16 10:47:51 After watching the first 30 seconds of that firebase video I decided I won't use it. It must be a technology for morons Sep 16 10:49:07 Can I learn to write Android apps without becoming like these guys in the google evangelization videos? Sep 16 10:50:23 sure, don't watch those videos Sep 16 10:51:19 <_genuser_> you can learn to write, sure. as you get more and more involved in a scene, you'll willingly or unknowingly turn into one of those guys. Sep 16 10:52:57 those guys are as useless as their videos, it's much more efficient to just read things to learn Sep 16 10:53:23 I agree. I hate video tutorials too Sep 16 10:53:26 <_genuser_> oh are you talking about watchign videos to learn? Sep 16 10:53:55 <_genuser_> that's just a bunch of people always sitting around talking pretending it's a talk show Sep 16 10:55:16 I was talking about those video specifically which are a further degeneration of video tutorials. Video silliness without even tutoring. I guess they are made to make young developer think that that stuff is particularly cool and glamour Sep 16 10:56:17 <_genuser_> if it's a show that has regular content on daily/weekly basis, it will be like any other show. lot of waste of time. little information. Sep 16 10:56:51 Hello ! I am unable to find the externalStorageDirectory with DDMS on my GS5. No problem with any other phone. Its usually on mnt/shell/emulated/0/, but where it is supposed to be on a GS5 ? Sep 16 10:57:17 /storage/emulated/0/? Sep 16 10:57:21 maybe Sep 16 10:58:29 In my phone it's where Zharf says Sep 16 10:58:34 Yeah i tried, but when i want to expand emulated/, nothing appears Sep 16 10:59:06 Environmen.getExternalStorageDirectory() Sep 16 10:59:09 it's only readable by root Sep 16 10:59:18 <_genuser_> I just use es file manager and go thru the whole visible filesystem. Sep 16 10:59:24 you need to jump to the 0 directory directly Sep 16 10:59:39 ES :( Sep 16 10:59:54 hm? Sep 16 10:59:58 i am using DDMS, i cant do this kind of jumps Sep 16 11:00:01 <_genuser_> oh, you dislike es file mgr? Sep 16 11:00:16 they ruined it, it's a spam platform now Sep 16 11:00:23 <_genuser_> it's gotten too annoying lately with ads, and lock screen ads Sep 16 11:00:36 I uninstalled it Sep 16 11:00:40 <_genuser_> ok, then we're talking about the same thing. yeah, I have wanted to find anotehr replcement lately. Sep 16 11:00:58 <_genuser_> I mainly use it to hit my LAN at home. Sep 16 11:01:06 <_genuser_> get files over wifi from fileserver. Sep 16 11:02:19 I'm trying solid explorer now, but I might just write my own Sep 16 11:02:23 what about total commander Sep 16 11:02:36 it's horrible Sep 16 11:02:44 utter user interface design failure Sep 16 11:02:55 ghost commander :? Sep 16 11:03:09 <_genuser_> anything with the word commander has always been a total disgrace, lol. Sep 16 11:03:17 norton commander? Sep 16 11:03:19 norton commander was great Sep 16 11:03:21 <_genuser_> I'll check out solid explorer Sep 16 11:03:28 but that's DOS :p Sep 16 11:03:49 so dosbox + norton Sep 16 11:04:19 <_genuser_> Zharf: t least it has appbar (or a look-alike) (talking about solid explorer). Sep 16 11:04:23 <_genuser_> but the theme is horrible. Sep 16 11:04:32 <_genuser_> damn fake 3d icons. Sep 16 11:06:37 <_genuser_> oh there's a classic and there's a regular Solid Explorer File Manager. Sep 16 11:07:50 I never tried the classic one Sep 16 11:08:57 <_genuser_> alright, I have installed it via web interfcace. Let's see how it looks on teh device one it gets installed. Sep 16 11:09:14 <_genuser_> meanwile back to my googling for cropping bitmaps. Sep 16 11:09:52 Would it be a good idea for every app to have multiple icons, e.g. round, square versions? Sep 16 11:11:04 why Sep 16 11:11:05 :) Sep 16 11:11:06 how do you identify navigation items in onNavigationItemSelected()? By title? Sep 16 11:11:35 <_genuser_> arancio: use the android studio new project template to install one wiht nav drawer. it will have all the coded to get it going Sep 16 11:12:03 _genuser_: thanks Sep 16 11:12:33 _genuser_: I was using cheesesquare as reference but it does nothing when navigation items are clicked Sep 16 11:13:37 <_genuser_> arancio: https://developer.android.com/training/implementing-navigation/nav-drawer.html Sep 16 11:14:14 I say they get the id with item.getItemId(). That's the resource id Sep 16 11:14:18 saw Sep 16 11:14:29 <_genuser_> Handle navigation click events section has more code Sep 16 11:14:48 <_genuser_> shows you onItemClick event which gies you the position and id of the item clicked. Sep 16 11:14:57 takes patience to point arancio in the right in tutorial Sep 16 11:15:03 in the right spot Sep 16 11:15:38 <_genuser_> squ: heh, don't worry I'm now taking payments in teh form of people helping me fiture out how to clip the bitmap under the rect I just drew on it. Sep 16 11:16:09 :) Sep 16 11:16:15 look at apidemos Sep 16 11:16:37 drawing section has various clipping methods Sep 16 11:20:19 <_genuser_> squ: right, so I got the square drawn on image. I can drag it. I can resize it. when I hit crop, I need to translate those bounds into that section in the image and extract that. Sep 16 11:21:12 well it is easy as that in imagemagick -crop "100x100+5+5" Sep 16 11:21:27 where 5 is offset and 100 is size Sep 16 11:21:34 x and y Sep 16 11:23:47 <_genuser_> squ: 1) imagemagick is programmaitcally available? 2) if image if centerFit etc. etc. the actual left of the image doens't align with left edge of ImageView necessarily. 3) the actual Image is obviously much bigger ahn screen size. So I need to translate the coordinate on the screen-fitted image into the actual bitmap. Sep 16 11:24:10 <_genuser_> squ: having said that, it's probably still just as easy as something you said. I'm just needing to work thru it mentally probably. Sep 16 11:24:38 yes Sep 16 11:25:16 _genuser_: thank you! Sep 16 11:26:06 <_genuser_> arancio: enjoy. Sep 16 11:26:27 <_genuser_> squ: thanks, I'm gonna look at imagemagick stuff. Sep 16 11:26:55 <_genuser_> interesting, when I get ref to canvas in onDraw of extended Imageview, clipRect doens't clip the underlying image. Only what I draw on it. Sep 16 11:29:16 hola Sep 16 11:29:20 any eralm users in here ? Sep 16 11:29:23 realm I mean Sep 16 11:33:03 tilerendering: hi! I only use eralm, sorry. Sep 16 11:33:57 arancio: what is eralm ? Sep 16 11:34:17 hey guys, i have an image here: http://i.imgur.com/u4jwxB1.jpg which has metadata specifying the orientation, but i haven't been able to read that metadata in my android app. Sep 16 11:34:37 tilerendering: it's a fork of realm. They just swapped the first two letters of every method name Sep 16 11:34:45 and i'm pretty sure i'm using the exifinterface correctly Sep 16 11:35:17 arancio: man, this is funny. I m sure it´s hip too. want some cold coffee from my favorite arbista ? Sep 16 11:35:28 sigh. Sep 16 11:35:43 :) Sep 16 11:35:46 :) Sep 16 11:36:46 arancio: I wonder: when I parse json into a realm object, while an instance of realm is open, will it automatically be inserted/updated (depending on whether it finds the object already there or not) to persistent store ? Sep 16 11:36:52 that would be great. Sep 16 11:36:56 but I need to be sure Sep 16 11:38:03 have you read the docs for creating realm objects? Sep 16 11:43:21 some of it, yeah. basically what they say is that my assumption is true Sep 16 11:43:32 but I want to make sure by asking realm users, rather than realm “doc-readers”. Sep 16 11:44:11 i'd imagine they're one in the same Sep 16 11:44:39 *shrug* so am I right with the assumption ? Sep 16 11:46:00 you have to commit your transaction Sep 16 11:46:23 of course Sep 16 11:46:38 this is what I read on the topic: https://realm.io/docs/java/latest/#controlling-the-lifecycle-of-realm-instances Sep 16 11:46:43 assumptions are the mother of all fuckups tilerendering /: Sep 16 11:46:57 this is why I verify them with experienced users, raoul11 Sep 16 11:47:04 _genuser_: you can use DrawerLayout in many ways. The tutorial you pointed uses a RecyclerView as navigation drawer. It's not your average drawer, though. You typically use a NavigationView. Hence the difference in code. There is no right or wrong, better or worse. Sep 16 11:47:36 am using a drawerlayout with baseadapter and listview Sep 16 11:47:46 coz some people just wanna see the world burns Sep 16 11:50:04 anyway, tilerendering this may be what you're referring to: https://realm.io/docs/java/latest/#auto-updating-results Sep 16 11:50:42 je vous remercie infiniment, monsieur eemgr Sep 16 11:51:05 but if you're creating a realm object you'll need to commit your transaction or execute it in one of those transaction blocks Sep 16 11:51:53 understood, yeah, dont worry, they call me the god of 2phase-commit Sep 16 11:52:36 So for some reason I haven't been able to get the exif data for the orientation of this photo in Android: http://i.imgur.com/u4jwxB1.jpg Sep 16 11:52:48 If I look at the exif data using an online tool I can see the information properly Sep 16 11:53:10 is this your living room ? cool Sep 16 11:53:43 no, its an old office space, and that's highly irrelevant Sep 16 11:54:41 :/ Sep 16 12:00:17 nice lamp Sep 16 12:00:23 fits nicely Sep 16 12:00:42 draws attention from ceiling Sep 16 12:00:50 So it looks like my exif data is being scrapped when I convert the image to a bitmap and then upload the data Sep 16 12:01:02 but that doesn't change the fact that i can't even read the exif data to begin with :p Sep 16 12:07:48 eemgr: ever declared to ralm a class to be the primary key ? like: class Book, with primary key BookPK, and further field description, while BookPK holds attributes author, title and year ? Sep 16 12:08:20 realm doesn't support composite keys, afaik Sep 16 12:08:26 i wasn't aware you could do that Sep 16 12:08:44 my primary keys have always been single variables, ideally integers Sep 16 12:09:52 eemgr: the way I described could be a workaround. also, I would have expected realm to use the .equals method on objects to determine whether they already are persisted or should be updated Sep 16 12:10:03 tilerendering: do you have a link that shows what you're talking about in the docs? Sep 16 12:10:09 that s what most db managers do btw Sep 16 12:10:43 eemgr: I saw in the docs that realm is only supporting one field as primary key. and I wonder why. when it´s so much simpler to let the users just define their own .equals method Sep 16 12:10:45 tilerendering: realm has an "insert or update" functionality Sep 16 12:11:03 i know. Sep 16 12:11:13 it s Realm.insertOrUpdate. Yes. Sep 16 12:11:18 tilerendering: realm has a lot of big fucking issues and i've nearly jumped off a bridge because of it several times Sep 16 12:11:23 I'm no longer recommending it to anyone Sep 16 12:11:28 aha why ? Sep 16 12:11:39 the fact that it doesn't support polymorphism is a huge issue Sep 16 12:11:44 you have to model your objects using composition Sep 16 12:11:51 mh. Sep 16 12:11:59 why would you need polymorphism ? Sep 16 12:12:10 ??????????? Sep 16 12:12:13 I dont have this issue with my entity layer, I think. Sep 16 12:12:37 raoul11: do you know why Firebase Analytics would show me that 10 people have made a purchase? I don't have any IAPs and the app is free :O Sep 16 12:12:39 why do you need polymorphism in your persistence layer ? Sep 16 12:13:25 tilerendering: because it makes sense, and it's not just your "persistence layer", it's your business layer logic. I can think of tons of reasons for it. Sep 16 12:13:53 ok Sep 16 12:14:02 anyway - unfortunately i dont have time to chat about the obvious benefits of polymorphism Sep 16 12:14:03 well I dont need it, in the whole model/persistence layer Sep 16 12:14:10 let me know if you have any other one-off questions Sep 16 12:14:15 no problem, Captain Obvious. Sep 16 12:14:27 btw: this seems to be the only current workaround: https://groups.google.com/forum/#!topic/realm-java/DEdUVTS7n-I Sep 16 12:18:32 ugly hack, but i suppose it'll work Sep 16 12:19:45 I'm also not sure on the performance tradeoffs associated with that method Sep 16 12:20:23 but if you aren't writing thousands of rows at a time you're probably fine Sep 16 12:23:50 How do you typically use material design icons? You hand pick them and add the icons you use in your project? Sep 16 12:23:55 a .equals approach would have been nicer though Sep 16 12:34:36 VerbalKint_ there are auto events that firebase logs Sep 16 12:34:39 What are the pros and cons of using AbstractThreadedSyncAdapter vs GcmTaskService to perform all network based calls synchronously. Sep 16 12:34:46 not sure why it shows u purchases Sep 16 12:42:49 raoul11: probably a bug because when I try to view them it says 0 Sep 16 12:43:02 hi Sep 16 12:43:22 Another case of fine Google engineering Sep 16 12:43:59 How do I get networkResponse [I need headers] and statusCode from any volley request, regardless of success/failure? Sep 16 12:44:55 lets talk about fine google engineering - getting images from the gallery gives you a content:// path, which "may or may not" lead actually be a path to an actual file... But to get Exif data from ExifInterface before API 23 you must have a file path. Sep 16 12:45:19 s/lead actually/ actually/ Sep 16 12:45:51 "want to get exif data on an image in your gallery? fuck you" - google Sep 16 12:46:29 lol Sep 16 13:01:01 How do I get networkResponse [I need headers] and statusCode from any volley request, regardless of success/failure? Sep 16 13:01:33 what's behind all this google engineering bashing? Sep 16 13:03:10 I bet you people are Apple shills who infiltrated this channel Sep 16 13:03:24 arancio: I have no idea what was said before I joined, but Google Engineering does deserve some bashijng. Sep 16 13:03:36 And I'm definitely not an Apple shill. Sep 16 13:18:05 I'm back! Sep 16 13:23:59 arancio_ - hurray Sep 16 13:48:43 Hi all. I'm planning to implement Argumented reality in my app. I am looking for open source libray to integrate with my app. Can anyone knows some good tutorial or open_source library? Sep 16 13:49:13 argumented reality :D Sep 16 13:52:49 Yes. Sep 16 13:52:58 I think you mean augmented Sep 16 13:55:56 Yah. its augmented reality. sorry. Sep 16 13:56:24 I don't have an answer for you though, sorry :( Sep 16 14:01:57 Hi all, is there a way to add a custom dictionary to a RecognitionListener? I have several brand names that Google likely won't know that need to be detected Sep 16 14:07:59 no Sep 16 14:08:51 Anyone here got an example of a project which uses EventBus with Fragments? Sep 16 14:09:14 iv been using: Intent nextScreenIntent = new Intent(activityClassName.this, NextScreen.class); , but now i want to move this method to the Input.class(activityClass contains instance of Input.class), I have tried in input class (activityClassName.class, NextScreen.class) but it does not work Sep 16 14:09:54 hi Sep 16 14:10:10 i am adding cardElevation to my cardView but is not working. Can help me ? Sep 16 14:10:51 markyosullivan, is there something difficult about that? Sep 16 14:11:09 I didn't think so Sep 16 14:11:20 but it's not working for me :( Sep 16 14:11:57 i need to use context? Sep 16 14:12:46 arancio: orange vs apple ? :) Sep 16 14:13:20 njcomsec, pass context to the method? Sep 16 14:13:27 <_genuser_> can you access the imageview canvas, if anyone know? Sep 16 14:13:39 markyosullivan, can you be more specifuc Sep 16 14:14:07 _genuser_, extend imageview Sep 16 14:14:20 No subscribers registered for event class me.markosullivan.practiceapp.eventbus.CustomMessageEvent Sep 16 14:14:25 No subscribers registered for event class org.greenrobot.eventbus.NoSubscriberEvent Sep 16 14:14:49 are you subscribing? Sep 16 14:15:06 and if you are, how/when Sep 16 14:15:07 I've inserted the register within onStart, onStop has unregister, I've got my CustomMessageEvent class created which is sent from Fragment 1 and the onEvent method is within Fragment 2 Sep 16 14:15:37 onStart / onStop is within Fragment 2 which has the @subscribe onEvent method Sep 16 14:15:40 are both fragments active in the acgivity Sep 16 14:15:54 like this? [activity class]: input.processMenuBarInput(this); [input class]: public void processMenuBarInput(Context context){ Intent screenIntent = new Intent(context, Screen.class); } Sep 16 14:16:18 any? Sep 16 14:16:20 i am adding cardElevation to my cardView but is not working. Can help me ? Sep 16 14:16:27 how i can put elevation in CardView Sep 16 14:16:50 njcomsec, sure Sep 16 14:17:57 raoul11: oh man, have a read at THIS. It's part of the app reject email that I got from www.slideme.org http://hastebin.com/lisotusase.vbs Sep 16 14:18:12 t0th_-_, I don't remember by heart and am on a really full bus right now so it's hard to stay standing and type/search Sep 16 14:18:27 I think both Fragments are active Sep 16 14:18:27 thanks, man Sep 16 14:18:32 anyway to check? Sep 16 14:18:57 raoul11: the other "wrong" thing that I did was that I didn't submit my real name Sep 16 14:18:58 markyosullivan, log onstart and onstop? Sep 16 14:20:54 will check now Zharf Sep 16 14:20:56 raoul11: kinda rich coming from a rinky dink app store that I barely wanted to submit to Sep 16 14:22:21 t0th_-_, I think my issues with cardview was that elevation doesn't increase margins so it gets under other viewd Sep 16 14:22:39 <_genuser_> Zharf: I have extended it. I can access it in onDraw. I was trying to access it outside of that. but it's alright, I'll do the drawing in onDraw. Sep 16 14:22:44 working here Sep 16 14:22:53 i add cardUseCompatPadding and work Sep 16 14:24:21 t0th_-_, cool Sep 16 14:25:49 is there any reason to make the game menu/landing screen a different activity to the game play screen? the game play screen has a button to the menu always visible so the back button functionality is redundant Sep 16 14:26:47 Zharf, onStop is called before the second fragment is created Sep 16 14:32:20 what is that VerbalKint Sep 16 14:32:25 How do you keep the fragment running in the background? Sep 16 14:33:08 raoul11: tried submitting my app to this alternate app store called www.slideme.org and I got rejected because I submitted it solely for "monetization through ads" :D Sep 16 14:33:42 tell em you put ads coz you wanna help hungry kids in africa Sep 16 14:43:36 markyosullivan, I'lltry to help when I get home Sep 16 14:43:49 hard to do on the bus right now Sep 16 14:45:15 Thanks! Sep 16 15:14:30 hey guys, i need some help Sep 16 15:14:47 trying to figure out why, when i replace a fragment, the size of the frame layout appears to increase Sep 16 15:15:11 what layour mode is the frame layout in Sep 16 15:15:14 the increses pushes my bottom navigation bar such that the soft action button (back, recent, home) cuts off Sep 16 15:15:22 tx: default Sep 16 15:15:34 are its width/height set to wrap Sep 16 15:15:38 or match / fill parent Sep 16 15:15:40 match Sep 16 15:15:41 (or is it fixed) Sep 16 15:16:36 Is this something we need to worry about on Android? https://discuss.kotlinlang.org/t/performance-intrinsics-checknotnull-called-for-every-parameter/1971 Sep 16 15:16:51 It's actually Intrinsics.checkParameterIsNotNull. Sep 16 15:17:13 And I think it applies to both parameters and return values. Sep 16 15:20:43 tx: any other suggestions? Sep 16 15:23:00 xximjasonxx: It's appearing on top of the system UI? Weird. Sep 16 15:23:26 under Sep 16 15:24:15 Well, it sounds like the contents is simply too large. Sep 16 15:24:32 are* Sep 16 15:26:36 markyosullivan, how do you add your fragments Sep 16 15:27:56 Zharf, PM me I can send you a link to the project to clone Sep 16 15:28:06 might be easier for you to quickly look through Sep 16 15:28:27 why should I pm you first for you to do that? :) Sep 16 15:28:55 Cause everyone could look at it if I post it here :D Sep 16 15:28:58 just give me the link, in private if you want :) Sep 16 15:29:13 you can initiate the private messages too :) Sep 16 15:30:01 I can't with this client :D Sep 16 15:30:06 -.- Sep 16 15:30:24 Can you type `/query Zharf`? Sep 16 15:31:27 `/query Zharf` Sep 16 15:31:35 this is not working :D Sep 16 15:31:38 Haha Sep 16 15:35:11 Where's all the hipsters to answer my Kotlin question. :\ Sep 16 15:35:34 Java is so 1995. Sep 16 15:37:13 TacticalJoke: Kotlin is Soviet expansionism Sep 16 15:37:49 I was actually thinking that earlier while watching that 'yole' guy giving a speech in Russian. Sep 16 15:37:57 Like "Why the frack is this not in English". Sep 16 15:38:30 https://youtu.be/35GACInsZsk Sep 16 15:39:51 TacticalJoke: they're everywhere http://www.youtube.com/watch?v=x1vs6Jsod8Q Sep 16 15:40:15 That's kinda scary. Sep 16 15:41:07 TacticalJoke: the long hair, beard and fat make sense now, don't they? :D Sep 16 15:42:17 *sugh* Sep 16 15:42:21 my uncle is like that Sep 16 15:42:28 Free as in feardom. Sep 16 15:42:39 one reason why i am not inviting him to my wedding, fiancee is korean so is her family Sep 16 15:42:43 last thing i want is an indicident Sep 16 15:43:23 xximjasonxx: what do you mean? Sep 16 15:44:49 He openly told me that, when he is in public and sees people speaking not English, even to someone of the same background (for example two people speaking Arabic to each other) Sep 16 15:45:04 he wants to say something, thinks everyone should speak English always Sep 16 15:45:16 xximjasonxx: lmao Sep 16 15:46:40 grrr my left usb port seems to consistently stop working with adb after about a day or so Sep 16 15:46:44 thanks apple Sep 16 15:49:42 missingno, wireless adb! Sep 16 15:50:04 say whaaaa Sep 16 15:50:23 its like 3 commands then you can adb over wifi Sep 16 15:50:31 does it involve an apk as well Sep 16 15:50:35 no Sep 16 15:50:47 ok i will ignore this stackoverflow post from 2010 then Sep 16 15:51:58 essentially if you are on the same wifi (device and dev machine) then 1) plug in your device Sep 16 15:52:00 https://dzone.com/articles/use-adb-over-wi-fi-without Sep 16 15:52:02 neat.jpg Sep 16 15:52:22 yeah. that's the one Sep 16 15:52:29 thanks truckcrash! Sep 16 15:52:40 (I was about to explain it, but no need now) Sep 16 15:52:43 no prob Sep 16 15:52:58 I just use the emulator nowadays. :S Sep 16 15:53:30 same but I am testing a custom nested scroll thingie and that's kinda easier using your thumb Sep 16 15:53:35 I still like a physical device ¯\_(ツ)_/¯ Sep 16 15:53:55 Yeah, physical devices are better for some things. Sep 16 15:55:29 am receiving json with retrofit but the json is formatted like so: { Sep 16 15:55:29 "calendar": [ Sep 16 15:55:29 {...},{...} ], "another":[...] } so how do i say to look in "calendar" ive set up models but theyre for the things inside calendar (the items) Sep 16 16:19:59 Too much joining and leaving; too little chat. Sep 16 16:20:39 blame markyosullivan Sep 16 16:25:16 soz Sep 16 16:25:34 :p Sep 16 16:29:29 hey TacticalJoke Sep 16 16:29:44 TacticalJoke: Hide the join/part messages and you get 100% chat. Sep 16 16:29:56 Hey, g00s. Didn't see you join. ;o Sep 16 16:30:01 jaana: That's a good poit. Sep 16 16:30:03 point* Sep 16 16:30:04 Can’t believe there are people who use irc and stilll see all these messages. Makes it unusable IMO Sep 16 16:30:14 i like some part/join messages, gives an impression of flowing time Sep 16 16:30:19 Then it might be too much chat and too little joining and leaving, though. Sep 16 16:30:26 otherwise you see day old messages like they just happened Sep 16 16:30:30 ignoring joins/parts can easily lead to confusion too :) Sep 16 16:30:30 I like not seeing them, gives an impression of not wasting my time Sep 16 16:30:36 jaana: I hate IRC so much that I refuse to even download a client now. Sep 16 16:30:51 Keep the timestamps on messages, problem solved Sep 16 16:30:54 TacticalJoke did you see the latest fiasco ... Sep 16 16:31:00 but yeah, irc looks like a dinosaur compared to Slack Sep 16 16:31:15 I'm on channels where no one has talked in years Sep 16 16:31:24 g00s: Which one? Sep 16 16:31:25 TacticalJoke https://www.reddit.com/r/androiddev/comments/52yq1e/fyi_firebase_crash_reporting_causing_anr/ Sep 16 16:32:10 man i can't win; last week they proposed more previews of support lib or something, i said no more previews to outsource Google's QA on us - give us working shit (that got downvoted) Sep 16 16:32:29 this week, i said ok give us GMS previews and the most highly rated comment was just give us working shit Sep 16 16:32:29 lol Sep 16 16:32:33 yeah, nothing wrong with stalking ppl joining and leaving Sep 16 16:32:47 even better if you are an op Sep 16 16:33:18 g00s: Ohh, that looks bad. Not sure how I missed that. Sep 16 16:33:19 one feature i wish my IRC client had, was just showing users that are in my address book Sep 16 16:33:26 worst is when you talk to someone who left, but you don't know it due to hidding join/leave Sep 16 16:33:36 I think I have a mental filter on strings such as "firebase". Sep 16 16:33:40 It just sounds so generic and boring. Sep 16 16:34:00 have you abandonned your reddit client development TacticalJoke? Sep 16 16:34:02 its actually been quit exciting for some :D Sep 16 16:34:05 *quite Sep 16 16:34:09 or, is it out??? :) Sep 16 16:34:12 firebase sems incredibly incomplete to actually use for anything Sep 16 16:34:16 Nah, adq. I do that ish all day, erry day. Sep 16 16:34:21 No release yet. :[ Sep 16 16:34:22 dat quest Sep 16 16:34:48 Zharf the way this works, is google announces stuff at I/O. by the nest I/O it has either been abandoned or is now out of beta :D Sep 16 16:35:34 *next I/O Sep 16 16:35:54 It's not just libraries and stuff. Every time something gets added to Android, that CommonsGuy points out how it doesn't actually work. Sep 16 16:36:17 i wonder if commonsguy has love/hate relationship with android ... Sep 16 16:36:27 if its more love or more hate Sep 16 16:36:33 lol its his bread and butter Sep 16 16:36:50 Previews are awesome. Sep 16 16:37:07 Google just needs to ban every dipshit that doesn't understand the concept of "alpha" Sep 16 16:37:18 I've been reading the Jack source, and it's an absolute mess. Same old "methods with 500 lines" stuff as in the Android framework. Sep 16 16:37:21 is firebase alpha ? Sep 16 16:37:42 i got the impression its stable for production Sep 16 16:37:42 Yep. Sep 16 16:37:47 (Or should be marked as such.) Sep 16 16:37:48 Why can't we just have nice things. :/ Sep 16 16:37:52 jack the compiler? Sep 16 16:37:56 Yeah. Sep 16 16:38:02 wait a minute Mavrik ... Sep 16 16:38:11 lol firebase crash Sep 16 16:38:11 google's own GA site says migrate to firebase Sep 16 16:38:14 Why can't we live in a world in which Google (or someone) knows what they're doing. Sep 16 16:38:27 GCM is also now FCM Sep 16 16:38:33 TacticalJoke google is learning the mistakes MS learned back in the 90s Sep 16 16:38:34 TacticalJoke: because Google doesn’t know what they’re doing Sep 16 16:38:51 its some kind of institutionalized experience Sep 16 16:38:54 Zharf: at least you can reimplement FCM yourself, Sep 16 16:39:01 µG for the backend, Sep 16 16:39:08 and a custom lib to compile into your app Sep 16 16:39:09 It's the same as any other software in existence for last 30 years. Sep 16 16:39:12 (takes about 2 days to write) Sep 16 16:39:19 Don't frigging use it for production first year :P Sep 16 16:39:38 Also needs more beta testers to find issues. Sep 16 16:39:38 Mavrik um, do you use GA? because under the hood it uses firebase anyhow Sep 16 16:39:46 you aren't going to avoid it Sep 16 16:39:50 Nope, not using GA. Sep 16 16:39:52 Everything you need to implement an FCM lib for your app is here: https://gist.github.com/justjanne/153bd4886f92be0ee57fb408427c8d8b Sep 16 16:40:04 g00s, my point is, Google NEEDs more previews. Sep 16 16:40:13 And a better bug tracker for it. Sep 16 16:40:20 And ban shipping apps with preview SDKs Sep 16 16:40:26 Mavrik: no, Google needs a QA team Sep 16 16:40:27 That ZakTaccardi is getting hit with the downvotes. Sep 16 16:40:37 justJanne, QA teams don't work for such scale. Sep 16 16:40:38 i'm againt more beta tester or previews Sep 16 16:40:42 against* Sep 16 16:40:48 We catch like 10x as much bugs on iOS as we do for Android. Sep 16 16:40:49 Mavrik: it’s not about scale, but about software Sep 16 16:40:54 And Apple actually fixes them until final release. Sep 16 16:40:59 (Well 90% of them.) Sep 16 16:41:03 they need more specs and stick to it Sep 16 16:41:14 Google just throws out something that should go into 6-month alpha testing period as release version. Sep 16 16:41:52 Google is in a funny situation Sep 16 16:42:03 justJanne, software or no, QA teams don't really work for SDKs. Sep 16 16:42:19 Nothing, nothing, comes close to widespread public testing when it comes to finding bugs. Sep 16 16:42:25 for all their web stuff, they don’t even have testing – they just do staged rollout, and check if it works. Sep 16 16:42:33 But on Android, that’s not easily possible Sep 16 16:42:34 (Of course, catching trivial shit before public release is kinda important too.) Sep 16 16:42:41 just look into the bugs with android itself Sep 16 16:42:49 they already acknowledged in few tickets they don't even test shit on android Sep 16 16:43:05 Of course it's possible - look at how they're dealing with ConstraintLayout. Sep 16 16:43:07 and wait the guinea-pigs (us) to submit everything to b.android.com Sep 16 16:43:09 NO MORE Sep 16 16:43:14 You throw it out as alpha and iterate publicly. Sep 16 16:43:53 Even Apple does that with all their OSes and SDKs. Sep 16 16:44:06 Mavrik: I mean it’s not possible to iterate quickly once it’s in release Sep 16 16:44:15 and it’s not easy to test fully on Android Sep 16 16:44:17 That's why you don't release it. Sep 16 16:44:25 And you do a preview / alpha builds. Sep 16 16:45:40 Basically, get rid of Keynotism with those buggy releases once per year just to have a fancy keynote :P Sep 16 16:46:13 sadly, that’s not how the world works Sep 16 16:46:22 sadly, the world is advertising Sep 16 16:46:33 to do that, you’d need to get rid of marketing completely Sep 16 16:46:40 Nope. Sep 16 16:47:04 Again, Apple does keynotes and STILL publicly beta tests their OSes and frameworks :) Sep 16 16:47:25 but still does marketing based programming Sep 16 16:47:26 I did overestimate amount of bugs they fix though, they fixed just a few of stuff we reported: https://pspdfkit.com/blog/2016/writing-good-bug-reports/ :P Sep 16 16:51:24 Mavrik: Have you switched to Kotlin yet? :D Sep 16 16:51:31 For some things yes. Sep 16 16:51:50 (Our Play store app and tests, not the actual core.) Sep 16 16:51:57 (Still bugs galore.) Sep 16 16:52:25 Wow, I'm surprised. Was just trying to make a silly comment. Sep 16 16:52:38 I thought you were waiting till 4.0 or something. :D Sep 16 16:52:42 id like to download and dissect an app like this one...https://play.google.com/store/apps/details?id=com.myfitnesspal.android any open-source project links for me? newer to android development and still building up my link list. Sep 16 16:53:06 TacticalJoke, I am waiting for 4.0 or something :P Sep 16 16:53:19 Hence the use for non-critical parts :P Sep 16 16:53:40 Currently the biggest issue is that for some reason both AS and IDEA get really slow on larger code bases over time. Sep 16 16:53:48 To the point where code completion needs seconds to appear. Sep 16 16:53:52 "for some reason" Sep 16 16:54:06 Not fun when you have 900+ tests :P Sep 16 16:54:26 i can imagine the pain Sep 16 16:55:00 Also build times aren't fast either (even though they're overshadowed by C++ compiling times) Sep 16 16:55:39 best thing I did to compensate AS perf is to move the build/ folders and the gradle cache to a ramdisk Sep 16 16:56:01 all other tips (which we see regularly in blog & stuff since years now) are done of course Sep 16 16:56:12 I'm planning to buy a 6/8 core hackintosh to offset that really Sep 16 16:56:19 Just need to see those Sierra compatibility tables Sep 16 16:56:38 on 6 cores here, AS is not able to use 100% of them Sep 16 16:56:44 something else is still the bottleneck Sep 16 16:57:48 Yeah, we have C++ code which neatly parallelizes when compiling Sep 16 16:58:49 Also one of those PCIe SSDs would help a lot I guess. Sep 16 16:58:55 https://twitter.com/ID_AA_Carmack/status/771749108780523520 :') Sep 16 16:58:59 talking about AS..... . . . Sep 16 16:59:04 Maybe they also fix the issue which kills off AS performance on 4K monitors until then. Sep 16 16:59:07 and romainguy jumped Sep 16 17:13:31 have you guys heard about android summit this year, like the one they had last year ? Sep 16 17:14:07 I hope so! I am really hoping they have one Sep 16 17:14:15 but i have not heard anything Sep 16 17:17:52 looks like last year they announced it sep 14 Sep 16 17:18:14 so we could still see something. getting kinda late though for nov + travel plans, etc Sep 16 17:18:58 adq lol i just read that Sep 16 18:15:35 adq, most of the files are build artifacts... Sep 16 18:20:45 it's a pretty invalid complaint, other than putting build output in the same dir tree as sources Sep 16 18:27:41 on the Carmack's tweet above... i've always noticed that AS writes a lot my ssd Sep 16 18:27:53 * to my ssd Sep 16 18:30:40 which is better for making network calls AbstractThreadedSyncAdapter or GCMTaskService? Sep 16 18:36:51 Why would my .getMapAsync() method for my map stop returning the callback? Sep 16 18:37:25 No visible errors, the callback just isnt getting executed Sep 16 18:46:14 what's the best way to preserve exif info when displaying an image with a bitmap? Sep 16 19:38:25 * pfn adds support for the RemoteInput in notifications, coool Sep 16 19:38:34 dsa Sep 16 19:47:50 * pfn tries the nougat notification input thing Sep 16 19:48:02 oops Sep 16 19:48:14 apparently it's been working... heh Sep 16 20:13:13 man I wish there was adb logcat to ipython notebook lol Sep 16 20:13:22 weird but damn if that wouldn't be cool Sep 16 20:13:32 eemgr, if just displaying you just read the exif from the file that you are loading Sep 16 20:13:40 that should be possible though Sep 16 20:27:02 huh, how do I set the notification header color? other apps on 7.0 have a color in the header, mine is just grey... Sep 16 20:28:48 pfn: to the decompiler! Sep 16 20:32:34 oh, there's a .color field on notification Sep 16 20:34:17 Afzal what would that get you with logs ? Sep 16 20:39:41 g00s analysis of logged sensor data + derived data Sep 16 20:41:02 I work with timeseries a lot and it's kinda tough to understand what happened to a sensor unless you read the logged stuff, it'd be nice to just graph it all. Tried piping to nodejs app before and graph it in realtime but it was very restricting because I had to change the parse format every time Sep 16 20:41:32 Afzal what do you use to store time series (if anything) on disk ? Sep 16 20:41:35 with ipython notebook, I won't have to **code** the parsing, just look up the data in a different way I'm hoping Sep 16 20:42:23 g00s Oh this is from logcat, I don't write log files to disk. Using a couchbase db to store the data and push to cloudant Sep 16 20:43:08 Afzal is the couchbase db on device ? not familiar with that one. if so, is their client still in erlang ? Sep 16 20:43:23 the couchdb guy used to hang out here Sep 16 20:43:26 but that's more for structured data than this stuff, this is for troubleshooting things in the app. The couchbase db is to analyze and backend algorithms (on the embedded size) and correct that, or for ML training Sep 16 20:43:52 g00s I don't have trouble accessing couchdb :) yes it's on the device using couchbase-lite library, that isn't a problem Sep 16 20:44:05 neat Sep 16 20:44:51 i haven't really found any embeddable time series dbs that work on android, at least w/o JNI Sep 16 20:44:54 it's like, for some reason, the app logic failed to correct the number of steps it got from the embedded device, making them negative. Would be nice to graph the sensor input and the step increment in the app side by side and see what happened Sep 16 20:45:06 (and those haven't been tested on android, so i'd basically have to do that myself) Sep 16 20:45:52 g00s I use a very stripped down version of fastutil FloatArrayLists to store timeseries, then save it serialized to the db as an array Sep 16 20:46:48 fyi fastutil is like 70k methods :D Sep 16 20:53:14 sounds like a cool project Afzal Sep 16 20:59:56 g00s I shall make sure to open source it if I make it, that's after I do the ML nanodegree on udacity :D Sep 16 21:00:44 Afzal what are the ML techniques being used for (on your data) - what is the output ? Sep 16 21:01:17 to model different activity states, basically for activity recognition Sep 16 21:01:35 but on embedded, which apparently a challenge, I'm not the embedded dev Sep 16 21:02:24 embedded makes everything more challenging :D Sep 16 21:03:25 lol yeah, 32 kb ram lmao Sep 16 21:03:42 thats extreme Sep 16 21:03:45 yup Sep 16 21:04:06 so it really cant buffer much at all Sep 16 21:04:11 that's apparently the lowest we can go before our stuff won't be able to integrate into it Sep 16 21:04:34 Afzal are you compressing time series data ? Sep 16 21:04:52 I..no. I don't know lol, I haven't looked at that code Sep 16 21:05:13 time series is hard :P Sep 16 21:05:24 yuuuuuup, I hate it :P Sep 16 21:05:29 lol Sep 16 21:06:03 this is why I invest more time into making the app nice and all, and taking that opportunity to implement mvc and all that shit Sep 16 21:06:07 way better use of brain Sep 16 21:07:44 Afzal i disagree, that is *shlep* Sep 16 21:07:50 time series is the interesting problem Sep 16 21:08:34 and lots of people are working on time series dbs, etc - if you get good experience in this, its worth quite a but Sep 16 21:08:39 *quite a bit Sep 16 21:09:12 solve hairy problems = big bucks Sep 16 21:09:29 https://code.google.com/p/android/issues/list oO displays 6 rows for "1-100" Sep 16 21:10:02 adq that website is a fucking disgrace Sep 16 21:10:07 man, i was going to search if something broken in AS is already in the issue lists, and the issue lists now appears broken, where am i gonna find the issue list of the issue list Sep 16 21:11:01 adq should be easy to search manually :D Sep 16 21:11:29 yeah but i have my habbits, like in the morning with a coffee, i like look at latest issues lol Sep 16 21:11:35 g00s it is, but I'm the guy who makes it looks nice on Android so it's cool :p Sep 16 21:11:40 (anyway it's not the morningà Sep 16 21:12:02 Afzal do you do any graphing on android ? Sep 16 21:12:32 g00s I use hello charts, after experimenting with pretty much all the libraries out there for graphing for 1.5 years Sep 16 21:12:57 Afzal btw mpandroidchart is adding time series support Sep 16 21:13:04 it's done like 4 graphviews at once, 3 axes each at a quite decent rate for me Sep 16 21:13:19 Afzal so when you graph, do you do it in batch, or is it updated in real time ? Sep 16 21:15:01 g00s realtime Sep 16 21:15:03 always Sep 16 21:15:28 looks like hello hasn't been updated in a wheil Sep 16 21:19:24 oh wow you're right lol Sep 16 21:20:02 hmm mpandroidchart-realm, interesting Sep 16 21:22:41 g00s maybe this weekend, I'll make a github repo, benchmarking framerates for different graphing libraries in realtime Sep 16 21:26:47 are there any free off-the-shelf indoor positioning libs y'all know of for android? Sep 16 21:30:51 indoor would probably relate to wifi scans. what are you trying to do> Sep 16 21:50:38 http://www.serkantoto.com/2012/02/21/gacha-social-games/ Sep 16 21:50:45 interesting, I never knew Sep 16 21:51:06 are these elements incorporated into. any common games that are popular in the West? Sep 16 22:04:07 hi Sep 16 22:04:15 id like to download and dissect an app like this one...https://play.google.com/store/apps/details?id=com.myfitnesspal.android any open-source project links for me? newer to android development and still building up my link list. Sep 16 22:04:56 rcw2 grab enjarify / apktool / cfr decompiler Sep 16 22:05:08 or fernflower, whichever works best Sep 16 22:05:26 i keep both, sometimes 1 does a better job than the other Sep 16 22:05:58 we won't help reverse though, thats for another channel. Sep 16 22:09:17 maybe rcw2 is more about searching sources + demo, like https://github.com/google/iosched instead of wanting to reverse anything (which is not very useful when you start) Sep 16 22:11:49 what method do you use to remove database (SQLite) code from the UI thread? AsyncTask? Sep 16 22:16:24 Lol my status bar wont change color Sep 16 22:16:38 Its set to a color that doesnt exist in my project Sep 16 22:16:41 and it wont change Sep 16 22:27:11 g00s, i think i will, but im looking for a sample app to inspect and maybe modify a bit for educational purposes. any recommends on where to get such code? i dont think i can just take any old app and look at its source code. Sep 16 22:27:36 rcw2 thats outside the bounds of this channel Sep 16 22:28:01 g00s, really? this is for development education Sep 16 22:28:25 this channel is for development via writing your own code :) Sep 16 22:29:35 g00s: Hes asking for OSS codebases I believe Sep 16 22:30:14 rcw2: Check out Plaid by Nick Buther, Cheesesquare, and the Google IO apps, to name a few Sep 16 22:30:19 if its open source, just grab the source and build it ? why do you have to reverse it ? Sep 16 22:30:33 yes I think we manaaged to talk him into doing that Sep 16 22:31:16 If you have to fill a RecyclerView with data coming from SQLite, where do you run the query? Sep 16 22:31:38 Arancio: Activity or Fragment Sep 16 22:31:45 pass it into the adapter once its done Sep 16 22:31:57 orbyt_: don't you use another thread? Sep 16 22:32:09 You can Sep 16 22:32:42 Tbh I prefer Realm over SQLite Sep 16 22:32:47 in Android Sep 16 22:34:04 "Flavored Dog Food Spray, 8oz " hmm Sep 16 22:34:16 *Bacon Flavored Sep 16 22:34:52 Maybe pfn will have that for dinner tonigh =/ Sep 16 22:34:56 tonight* Sep 16 22:35:02 orbyt_: thanks Sep 16 22:36:07 yeah should go well with waffles Sep 16 22:36:42 (☞゚∀゚)☞ Sep 16 22:43:39 foo Sep 16 22:44:38 bar Sep 16 22:55:29 Yeahno Sep 16 23:02:07 pfn they also have chicken, Pb, beef ... http://www.flavoredsprays.com/ Sep 16 23:02:17 if your not into the bacon mood today Sep 16 23:04:09 g00s: why don't just eat the real foot instead of spraying the flavor? Sep 16 23:04:37 because canabilism is illegal Sep 16 23:07:42 g00s: why don't just eat the real food instead of spraying the flavor? Sep 16 23:08:31 whatitis: other animals have foot besides humans Sep 16 23:13:22 I have a tab where I generate entries in a database table and another tab where I display that table in a RecyclerView. Since fragments in a tabbed view aren't recreated when you switch to them, currently the RecyclerView is never updated. How do you tell the RecyclerView to update itself? Sep 16 23:18:51 Arancio, notifyDataSetChanged(), notifyItemChanged(... etc on the adapter entangled with the RV Sep 16 23:19:45 adq: I know that. I was asking where/when I should notify the fragment containing the RecyclerView that it needs to be updated using those methods. Sep 16 23:20:10 well, you asked "how". Sep 16 23:20:31 you should only call it when needed Sep 16 23:20:32 adq: for example, I could chose to do it after every operation that changes the database Sep 16 23:20:35 obviously Sep 16 23:20:51 which mostly involves having the RV visible to the user Sep 16 23:21:12 could be when it enters the screen containing the RV and/or later at any time (depending on needs, it's too generic) Sep 16 23:21:24 adq: or I could add an "event emitter" (I don't know what people use on Android) on the database adapter which is fired when a changes occur and make the view fragment subscribe that event Sep 16 23:22:02 maybe, but then you're making the app doing unnecessary things, like updating something not visible Sep 16 23:22:05 I currently update the RV in onResume but it doesn't seem to be enough Sep 16 23:22:51 and if you have lot of tabs, depending how you are managing them Sep 16 23:23:01 they will be destroyed if you're far away Sep 16 23:23:08 and recreated when you come back near or on this tab Sep 16 23:23:30 (i don't recall the default value, could be 3 or 5 tabs) Sep 16 23:23:42 adq: this is my onResume for the activity containing the RV: http://pastebin.com/V6Xa1nyS Sep 16 23:24:11 adq: what you say is correct. I thought I addressed it by writing the onResume like that Sep 16 23:27:12 adq: 3, 1 previous and 1 in advance Sep 16 23:27:28 By default* Sep 16 23:28:05 onResume is not being called when I switch back to tab containing the RV... Sep 16 23:29:58 that's why the RV is not being updated Sep 16 23:31:14 i'm using retrofit2 (awesome lib by the way) with certificate pinning and added (the correct) hash to the attached okHttpClient, i'm wondering two things: 1) what happens if in between two requests the hash of the cert of the serv has changed (does it check every request or only at init?) to mismatch? 2) In case it detects it like at init, does it prevent any request to go through (I'm too lazy to bridge or sniff the network atm to verify that)? I ask 2 Sep 16 23:31:14 because I can see in the logcat prior to the pinning failure: D/OkHttp: --> GET https://*** http/1.1 with the END GET too, I would not want to risk sending sensitive data in this case Sep 16 23:31:36 oops a bit long.. Sep 16 23:34:30 That behaviour is normal, you have to handle yourself the notification that a fragment is becoming active: http://stackoverflow.com/questions/17845641/alternative-for-the-onresume-during-fragment-switching Sep 16 23:38:16 This is specific to ViewPager: http://stackoverflow.com/questions/10853611/viewpager-with-fragments-onpause-onresume Sep 16 23:45:47 Is calling lifecycle methods like this http://stackoverflow.com/a/14035499 a good way to fix my problem? Sep 16 23:46:43 hoooowww Fastutil json serialization, how!?! Sep 16 23:47:11 it's a serializable but that doesn't mean anything :/ Sep 16 23:50:43 setOnPageChangeListener is deprecated anyway... Sep 17 00:08:55 what do you think capella-5x ? Sep 17 00:10:07 last comment I see was 20 mins ago, got context? Sep 17 00:10:32 spray on bacon flavor, yeh or neh ? Sep 17 00:12:03 no, kill a pig, fry it Sep 17 00:12:52 bacon... mmmmmmmmm...... 💕 Sep 17 00:14:01 g00s: You watch TFS? Sep 17 00:15:09 orbyt_ wut is that Sep 17 00:15:40 You keep reminding me of: https://www.youtube.com/watch?v=IQXwni6Rq6Q Sep 17 00:15:46 sounded like that MS thingy Sep 17 00:15:59 Lol TFS is an Abridged series for DBZ Sep 17 00:16:30 lol Sep 17 00:17:07 i hardly eat any bacon, but its always on my mind for some reason Sep 17 00:18:20 capella-5x2 your IRC history must look like swiss cheese Sep 17 00:19:17 sorry, but yes... am I spamming the channel? Sep 17 00:20:13 need to tinker with "aggressive" handover network settings perhaps Sep 17 00:32:31 holla Sep 17 00:32:39 Got my first ad click from my Wallpaper app Sep 17 00:33:17 I have IRC history back to when channels began with a plus sign Sep 17 00:33:23 On Apple ][ 3.5" disks Sep 17 00:33:32 g00s: maybe I misunderstood the whole thing. Is this back spray something eat or something you put on yourself before going out with a girl? Sep 17 00:34:21 Ologn: what does ][ mean? Sep 17 00:34:33 Arancio, Apple 2 Sep 17 00:35:08 ][ was the Apple trademark Sep 17 00:35:57 Ologn: was that before or after World War ][? Sep 17 00:36:24 * capella-5x2 owned one when it came with tape deck as storage only Sep 17 00:36:54 Arancio, after Sep 17 00:37:05 hey Ologn Sep 17 00:37:10 congrats :S Sep 17 00:37:19 g00s, thanks Sep 17 00:37:29 i guess you aren't using firebase crash reporting :P Sep 17 00:37:42 i can recall they had several ways to "express" 2, like "//" in the //c or //e sometimes also IIe Sep 17 00:37:51 Ologn: sorry, I missed that. Congratulation for your first ad click! May you become millionaire soon. Sep 17 00:38:18 Ologn: what's a "wallpaper app"? Sep 17 00:38:25 g00s, I have some Firebase thing but didn't set it all up...actually I had Google Analytics in it and ripped it out because GA and Firebase use the same filename Sep 17 00:38:49 Arancio, people download wallpapers, put it on the back of their phone. Backgrounds app. Sep 17 00:41:11 Ologn: ah ok. Thanks Sep 17 00:59:34 "Why not distribute the support libraries in a similar manner as Google Play Services?" Sep 17 00:59:49 am i the only one who thinks the way GMS is distributed is kinda a clusterfuck ? Sep 17 01:00:00 the user has no control of updates, its forced Sep 17 01:00:05 the developer has no control of updates, etc Sep 17 01:00:12 its basically convenient for google Sep 17 01:00:30 to me it just points to some lack of package management, GMS is a one-off Sep 17 01:00:50 yes Sep 17 01:01:36 I mean, sounds fair Sep 17 01:01:54 * g00s pondering capella-5x2 response Sep 17 01:02:31 capella-5x2 when i see 5x2 i think lego brick Sep 17 01:02:46 although, i don't think they had 5x2, maybe 4x2, 8x2 Sep 17 01:06:25 stupid yaaic appends chars during reconnect attempts, I could conolain to Sebastian, fix it, or ignore it Sep 17 01:06:31 Ologn what do you think ? Sep 17 01:07:18 http://linuxbsdos.com/2015/03/26/android-on-a-stick-or-how-to-install-android-x86-on-a-usb-stick/ No need for emulator :P Sep 17 01:07:47 Well, GMS is not even really the big problem. Sep 17 01:07:53 It's that there's no real package management. Sep 17 01:08:02 You just install an entire new OS. Sep 17 01:08:29 Or individual apps (not same as with Linux Aptitude) Sep 17 01:08:51 I mean, you can change out browsers, sure, but trying to update system libraries is a no-go. Sep 17 01:09:48 So, if there's a root exploit in your builtin file browser or music player? OK, we'll just update the APK. Sep 17 01:10:02 But exploit in some device driver? Sorry, you're hosed. Sep 17 01:10:11 alphamule do you think package management state of the art, in linux today, is a successful experiment ? Sep 17 01:10:17 I love it. Sep 17 01:10:43 every time i updated ubuntu i wound up fighting the package manager to get some newer package, but that was years ago Sep 17 01:10:55 No going all over the Internet to download installers (most of the time), and you can make it as automated/not as you want. Sep 17 01:10:59 g00s, I had to deal with some gms nonsense trying to release the latest version of wallpapers app Sep 17 01:11:00 some kind of dependency hell Sep 17 01:11:02 Ubuntu... Sep 17 01:11:03 eww Sep 17 01:11:04 :P Sep 17 01:11:12 alphamule i used gentoo also ;) Sep 17 01:11:19 I guess I had something pointing to an old version or something... Sep 17 01:11:27 I'm used to old-ass-stable Debian. Sep 17 01:11:31 ah Sep 17 01:11:36 Hard to break it Sep 17 01:11:55 alphamule yeah but debian stable is kinda glacial :P Sep 17 01:12:00 And if you do: Well you can backup your settings quite easily. Sep 17 01:12:14 The GNOME ABI guys are still breaking the GNOME ABI all the time, and there's no need of that Sep 17 01:12:14 * alphamule still runs Windows Server 2003 Sep 17 01:12:24 O.o Sep 17 01:12:30 Oh, and OpenBox Sep 17 01:13:22 Got a Mac, too, but only got it because it was A) free B) PPC games :P Sep 17 01:13:53 Ologn did you mix versions by mistake, or forget to update that manifest version string ? Sep 17 01:14:14 " some kind of dependency hell" There are ways around this but risky. Sep 17 01:14:52 You can even manually edit the files that keep track of installations and their relationships but this is intermediate-to-expert mode shit. Sep 17 01:15:12 Good way of needing to reinstall, heh. Sep 17 01:16:04 package management in linux lol Sep 17 01:16:22 anyone try playing with/using AppImages? Sep 17 01:16:28 g00s, I don't even know what it was I just kept ripping stuff out of everything until it worked Sep 17 01:16:59 Ologn: PWAC at it's best Sep 17 01:17:14 What's annoying is people using Apple // instead of 2 or II or ][ (last 2 of which are all of useless for screenreaders). Sep 17 01:17:21 AppImage seems preferable to the distro clusterfuck that is distributing software for linux Sep 17 01:17:55 Protip: // never caught on Sep 17 01:19:38 I will say this: The dependancies are somewhat bjorked, sometimes. Like: needing 500MB KDE/Gnome for a 200KB program, while using a 2GB Flash drive that you found sitting around. XD Sep 17 01:20:53 Also, that issue with both Android and Linux: Running out of free space from some stupid image cache or the like. Sep 17 01:21:15 how do I tell ndk-build to target android-23 ? Sep 17 01:21:21 That infamous bug on some phones that you have 4GB of user space, and there's a single 3GB folder with useless temp files. Sep 17 01:21:55 Windows just does this with Windows 10 installers. ;) Sep 17 01:22:23 seitensei cool , reading Sep 17 01:25:22 seitensei so, reading about AppImage .. got to the part in the presentation where Peter talks about dependencies Sep 17 01:26:00 am i missing something, or basically this just punts on dependencies entirely - they don't package 'what is expected to be on base linux system' Sep 17 01:26:15 so how is openssl handled ? Sep 17 01:26:56 HoloPed, the make files Sep 17 01:27:24 Ologn, makes sense, but where in the make file? I can't find any reference to target or "24" (which its currently building for) Sep 17 01:28:06 https://github.com/probonopd/AppImageKit/wiki/Creating-AppImages, all I know is this Sep 17 01:28:17 HoloPed, in Application.mk what is APP_PLATFORM ? Sep 17 01:28:48 there is no application.mk, it's a library. There is an Android.mk, and there is no APP_PLATFORM entry Sep 17 01:28:55 can I just add one ? Sep 17 01:29:35 HoloPed, also I believe NDK is different than build.gradle. I believe NDK APP_PLATFORM is the lowest to target, whereas build.gradle target is the highest to target. Sep 17 01:29:41 I would double check that though Sep 17 01:29:48 hmm Sep 17 01:30:02 ok there is an application.mk - APP_PLATFORM := android-8 Sep 17 01:43:48 if I ask why Java has "boolean" instead of "bool" but "int" instead of "integer" on #java, will I be banned? Sep 17 01:45:31 I sure hope so Sep 17 01:47:36 lol Sep 17 01:47:54 I have recently been learning java and I wondered the same frickin thing. Sep 17 01:48:11 I guess I really do use "int" wayyyy more than boolean. Sep 17 02:10:47 Why SQLite database.insertOrThrow() returns a long but _ID is an int? Sep 17 02:14:22 It isn't a int. I just decided to retrieve it with getInt() insted of getLong() Sep 17 02:15:55 Hello. In my applicaiton, i use object.wait() method to block the thread. After running a long time, i get the exception: 'com.android.internal.os.BinderInternal$GcWatcher.finalize() timed out after 10 seconds;'. Is there something wrong? Anyone can help me? Sep 17 02:19:46 My Android platform is android 4.2.2 Sep 17 02:22:14 cnbleu: is you nick a shorthand for "cordon bleu"? Sep 17 02:22:20 your Sep 17 02:23:41 Arancio: No Sep 17 02:23:49 Ok Sep 17 02:24:17 it's short of China Bleu Sep 17 02:24:56 I am Chinese Sep 17 02:26:56 Chinese from China or expat? Sep 17 02:28:13 From China Sep 17 02:29:57 cool Sep 17 02:30:26 Thanks Sep 17 02:33:22 cnbleu: https://github.com/andstatus/andstatus/issues/301 Sep 17 02:33:45 cnbleu: but I can't help you more because I don't really understand your problem. Sorry Sep 17 02:34:47 It' hard for me. I worked this for a week. Sep 17 02:35:02 But, thanks. Arancio Sep 17 02:40:14 how appropriate, your nick colors as blue on my client Sep 17 02:42:25 Wow, Sep 17 02:46:58 Should I ContentValue#putString() a timestamp in SQLite? Sep 17 02:47:42 Sorry ContentValue#put(String) Sep 17 02:49:01 Do I have to acquire a lock before I perform concurrent queries on SQLite? Does it handle concurrency gracefully? Sep 17 02:58:17 cnbleu if you are using object.wait() ... you better know what you are doing. yet you have this question, so i think you are using the wrong tool ;) **** ENDING LOGGING AT Sat Sep 17 02:59:58 2016