**** BEGIN LOGGING AT Wed Sep 21 02:59:58 2016 Sep 21 03:00:17 g00s ^ Sep 21 03:00:39 g00s: did it happen by chance ? i dont think so ;) Sep 21 03:01:43 "cat with mounted head laser destroys building" is the story? Sep 21 03:01:54 heh, til Sep 21 03:02:19 unless you pull his tail Sep 21 03:02:58 (dont do that) Sep 21 03:11:40 Does anyone have any idea why I can't force my Android Studio's UI font to be anything other than just the 1 that I have showing? Running linux here. Sep 21 03:12:15 Idiosyncratic you have to make a new profile ... Sep 21 03:12:21 i changed mine Sep 21 03:12:29 g00s: you had the same problem? Sep 21 03:12:46 no - the default profile is read only Sep 21 03:13:02 its standard intellij behaviour Sep 21 03:13:09 in prefs, you have to make a new one - i'm on OS X so maybe a different thing though Sep 21 03:13:56 g00s: *UI* font, not editor font Sep 21 03:14:06 Idiosyncratic right Sep 21 03:14:27 oh sorry Sep 21 03:14:29 can you change ui font ? Sep 21 03:14:38 yeah for UI font you should just be able to change it Sep 21 03:14:55 I know i’ve done it, but I don’t remember how Sep 21 03:15:45 gordon_: it's in the Appearance panel Sep 21 03:20:00 Ugh, I'll just let it be. I have to face my sans-serif phobia anyway. Sep 21 03:29:50 g00s: "Redhat develops Java plugin for VisualStudio, which is a great editor for Macs. Nothing makes sense anymore." Sep 21 03:34:47 ahaha gordon_ Sep 21 03:34:57 wait there's visual studio for mac? Sep 21 03:35:17 i’m betting it’s VS Code Sep 21 03:35:24 gordon_: Link? Sep 21 03:40:58 hi Sep 21 03:41:05 s73v3r http://developers.redhat.com/blog/2016/09/19/java-language-support-for-visual-studio-code-has-landed/ Sep 21 03:41:10 i'm looking at google's material design site, but it's pretty light on for actual code examples Sep 21 03:41:25 is there a good resource to see actual examples of material design... just simple ones really Sep 21 03:42:14 gordon_ "As you type compilation error reporting" so they are ahead of google already :D Sep 21 03:43:26 how can i make my recycler view add 1 item at a time.. its just showing all the items at once. id like them to come in 1 at a time after eachother Sep 21 03:43:54 basically i just want to turn a normal listview into a "material design" listview Sep 21 03:45:13 eh VSCode isn't VS Sep 21 03:45:17 it's just lite Sep 21 03:45:32 let's add gradle to it :D Sep 21 03:45:35 i think gordon_ is confused Sep 21 03:45:43 Afzal that would fuck it up :D Sep 21 03:45:48 it'll be something purists who dgaf about previewer would use Sep 21 03:45:50 it'll be awesome Sep 21 03:46:08 I just want something like http://i.stack.imgur.com/HNkwv.png Sep 21 03:46:10 g00s: only a matter of time Sep 21 03:47:11 ir7466: http://stackoverflow.com/questions/27203817/recyclerview-expand-collapse-items Sep 21 03:47:30 i was really excited about gradle in the beginning; i'm kinda dissapointed at how the whole gradle <--> AS experiment went Sep 21 03:48:05 thanks Afzal , i'll give that a try Sep 21 03:49:12 g00s: i'm still excited about it, especially because I never played with maven Sep 21 03:49:30 Afzal we're still missing incremental compilation like eclipse + ADT Sep 21 03:49:38 for me, thats *yuuuge* Sep 21 03:49:42 it's in settings brah Sep 21 03:50:34 Afzal where ... Sep 21 03:51:36 gradle may be able to do something there, but you still have to kick off builds to find errors ... Sep 21 03:51:42 outside of the file you are editing anyhow Sep 21 03:51:56 unless i'm missing somethin Sep 21 03:54:20 g00s: dexOptions { incremental true } ? Sep 21 03:54:29 womp deprecated lmao Sep 21 03:54:38 nah Sep 21 03:55:04 build cache maybe? Sep 21 03:55:07 experimental though Sep 21 03:55:27 Can someone point me in the right direction to how people make those "please while loading" screens at the beginning? Sep 21 03:55:33 nope - these things are not real - time feedback like eclipse had Sep 21 03:55:36 okay when did importing a jar break?! Sep 21 03:55:41 lol Sep 21 03:55:42 classdefnotfound :/ Sep 21 03:55:58 Is it an activity or does the API have a function for that? Sep 21 03:58:34 Idiosyncratic search for 'listview empty view' etc Sep 21 03:59:08 g00s: well, it's an activity then? Sep 21 03:59:25 no you are just swapping visisbility between listview and a spinner or something Sep 21 04:00:55 think hard if that's really something you want to do -- it's 'very' annoying for users Sep 21 04:03:02 bankai_: seeing a white screen for ~4 seconds is even more annoying Sep 21 04:04:29 well, end result is the same - a user is staring at a whole heap of nothing and can't use your app Sep 21 04:05:03 anyone a member of androidstudygroup.slack ? Sep 21 04:05:06 bankai_: but seeing something spinning is charming to the reptilian brain Sep 21 04:05:07 if you show loading in another way, it's at least not blocking the UI Sep 21 04:06:21 While white reminds people of paint drying up on walls Sep 21 04:09:17 i painted the ceilings with that white paint that goes on pink, dries white. Top stuff, that is... Sep 21 04:10:03 Having a screen that you can show if your list doesn’t have anything in it is good, as it alerts the user that there is nothing, and hopefully has a call to action to do something that will populate it Sep 21 04:12:37 https://m.reddit.com/r/androiddev/comments/53p52z/psa_if_your_app_requires_gps_hardware_to_operate/?utm_source=mweb_redirect&compact=true Sep 21 04:12:39 is that legit? Sep 21 04:12:48 yeah Sep 21 04:12:49 but Sep 21 04:12:58 your target SDK has to be a certain level Sep 21 04:12:59 I am looking at android-developers.blogspot and see nothing Sep 21 04:13:07 left all of the previous app store apps will die :p Sep 21 04:13:11 lest* Sep 21 04:13:40 yea I am targetting 23 Sep 21 04:13:52 hmm... why nothing on the blog or anywhere on developers.android.com Sep 21 04:14:21 tx were you talking to me? Sep 21 04:15:17 Ping_2_Ur_Pong typical ... half of the N documentation is sitting on commonsware 'look what i found today' blog entries Sep 21 04:15:19 yes Sep 21 04:21:38 g00s: lol Sep 21 04:31:44 capella-5x cool, my county tested positive for hexavalent chromium in the water :D can't wait for the free markets to clear this up Sep 21 04:32:08 oh wait, we already have a private water company and no competition ;) Sep 21 04:32:52 i think when the free market guys say things eventually get right (monopolies, etc) they really mean, after we're all dead Sep 21 04:33:44 is it your fault? Can you financially support two? Is there an unshareable /critical path? Sep 21 04:33:45 what do i use if i want to iterate over an item Sep 21 04:33:57 say i have a bunch of strings in an array, and want to show them all as TextViews Sep 21 04:34:08 Listview doesn't really seem appropriate? i just want to loop some textviews Sep 21 04:37:39 ir7466: for loop Sep 21 04:38:18 is there a way to transform an hour from utc to local timezone? Sep 21 04:38:47 squ: in the xml code? Sep 21 04:38:51 or must i do it programatically Sep 21 04:39:18 you want to present list into screen Sep 21 04:39:49 then use recyclerview Sep 21 04:41:13 hey alex88 Sep 21 04:41:19 hi g00s Sep 21 04:41:19 hey alex_PP Sep 21 04:41:24 wtf Sep 21 04:41:26 lol and you :D Sep 21 04:42:02 g00s: what was name of macos photoshop like editor Sep 21 04:42:12 if I recall you were using it :) Sep 21 04:42:22 Affinity Designer & Photo Sep 21 04:42:28 i use AD Sep 21 04:42:32 no Sep 21 04:42:56 or yes Sep 21 04:42:58 alex_PP read the Lr 6.7 updater was crashing on lots of people Sep 21 04:43:29 morning Sep 21 04:43:34 nope Sep 21 04:43:39 morning Sep 21 04:43:39 been pretty camera lazy Sep 21 04:43:47 this is it, right Sep 21 04:43:48 me too Sep 21 04:44:17 what is Photo? Sep 21 04:44:37 squ: Affinity Photo Sep 21 04:44:44 oh Sep 21 04:45:04 photo's a bit like PS and designer's more like indesign Sep 21 04:45:13 squ: I've currently got this in xml - http://pastebin.ca/3720567 -- how do I make that programatically? Sep 21 04:46:34 ir7466, why do you want to do that programmatically? XML's almost always easier Sep 21 04:47:03 because I want to have an unknown number of them, and I need to do a loop in java to add them to the linear layout Sep 21 04:47:29 you can still use the XML Sep 21 04:47:35 how do i do that? Sep 21 04:48:10 for(int i =0; i < count; ++i){LayoutInflater.from()getContext().inflate(R.layout.textview, linearLayout);} Sep 21 04:48:55 is R.layout.textview literally what I put in that pastebin? Sep 21 04:48:58 I've left fixing the brackets and variable reuse as an exercise for the reader Sep 21 04:49:06 :) Sep 21 04:49:28 R.layout.textview is the id of the layout you want to add the the liner layout Sep 21 04:49:34 *add to Sep 21 04:50:00 i guess it was disingenuous when i said i wanted to loop, i'm actually using a RecyclerView Sep 21 04:50:11 and when you tap an item, then it displays "x" number of textviews below Sep 21 04:50:16 you said you want to iterate Sep 21 04:50:27 if you want to set some text on the textview first, add false as the last parameter on the inflate call, save the result to a variable and do whatever you want, then add it to the linear layout Sep 21 04:50:39 well, the ViewHolder has a bind() function Sep 21 04:50:53 i was treating that as part of the iteration Sep 21 04:51:22 is it safe to put: LayoutInflater.from()getContext().inflate(R.layout.textview, linearLayout); Sep 21 04:51:29 inside the bind function, rather than having it in a for loop? Sep 21 04:51:56 use LayoutInflater.inflate in the createViewHOlder of your adapter Sep 21 04:52:07 add the view retuned there to the viewholder Sep 21 04:52:30 what is the difference between doing LayoutInflater.from().getContext().inflate(R.layout.textview, linearLayout); like 5 times Sep 21 04:52:32 in bind, set the value on the view Sep 21 04:52:37 or doing linearLayout.addView(x) 5 times? Sep 21 04:52:56 depends on the value of x Sep 21 04:53:09 Can't I get x by doing inflate? Sep 21 04:53:17 yes Sep 21 04:53:21 in that case, nothing Sep 21 04:53:40 the important difference is using inflate over new TextView() Sep 21 04:53:47 yeah Sep 21 04:54:00 if I use addView, I wouldn't need linearLayout in inflate would i? Sep 21 04:54:13 you still need the parent view Sep 21 04:54:34 inflate(id) wont use the correct layout params Sep 21 04:54:47 okay Sep 21 04:54:49 inflate(id, parent) uses the correct layoutparams and returns the parent Sep 21 04:55:00 so you are saying that if I do this, i will have a textview returned to me? Sep 21 04:55:07 LayoutInflater.from().getContext().inflate(R.layout.textview, linearLayout, false); Sep 21 04:55:08 inflate(id, parent, false) uses the correct layout params and return the child not attached to the parent Sep 21 04:57:29 okay, just tried it... get an error on "LayoutInflater.from()" saying Context in LayoutInflater cannot be applied Sep 21 04:57:49 is that a scope issue because I'm in the ViewHolder class? Sep 21 04:58:06 did you fix the brackets? Sep 21 04:58:14 LayoutInflater.from(getContext()); Sep 21 04:58:41 my apologies Sep 21 04:59:08 though I think there's still a scope issue because getContext() is not available? Sep 21 04:59:10 g00s, been up to much? not been in here in ages Sep 21 04:59:24 reader did not completed the exercise left by author Sep 21 04:59:55 alex_PP not really. studying some other things, like R Sep 21 05:00:02 what for? Sep 21 05:00:04 alex_PP AS 2.2 came out yesterday ... Sep 21 05:00:09 cool Sep 21 05:00:13 and cool Sep 21 05:00:32 alex_PP did you see that new canon mirrorless ? Sep 21 05:00:36 Good morning!!!! ! !!! !! Sep 21 05:00:51 g00s: m5 was it? Sep 21 05:00:54 morning Sep 21 05:00:58 yeah Sep 21 05:01:15 saw the headline on petapixel or somewhere Sep 21 05:01:18 didn't read it Sep 21 05:01:37 my 5D's still doing me fine Sep 21 05:01:46 oh thats nice Sep 21 05:03:47 photo news is almost as tiresome as bike news Sep 21 05:04:06 just gear Sep 21 05:04:16 alex_PP did you see http://newatlas.com/fujifilm-gfx-medium-format/45499/ Sep 21 05:04:21 very little interesting events Sep 21 05:04:55 recommend a website with pro photos :) Sep 21 05:04:58 again, saw the headlines Sep 21 05:05:32 fuji's are nice, or will be once they settle on a standard button layout Sep 21 05:05:57 aphotoeditor's one of the nice ones Sep 21 05:05:59 g00s: great; now the tetrachromats can finally feast their eyes on something nice! Sep 21 05:06:15 and http://lens.blogs.nytimes.com/ Sep 21 05:06:16 > Hasselblad Unveils its 50MP X1D Medium-Format Mirrorless Sep 21 05:07:10 alex_PP - thanks got it working somewhat. Now if I want to take it a step further and instead of having a single textview, and have a LinearLayout which has 2 textviews inside it... Sep 21 05:07:11 Hasselblad awesome optical cameras iirc Sep 21 05:07:12 LinearLayout linearLayout = (LinearLayout) LayoutInflater.from(_context).inflate(R.layout.project_recycler_item, _recyclerLinearLayout, false); Sep 21 05:07:27 once I have the linearLayout object, how do I then grab the textviews from within it? Sep 21 05:07:37 findViewById(); Sep 21 05:07:44 ah ok of course Sep 21 05:07:45 thanks Sep 21 05:07:50 aphotoeditor looks as education resource, I just want to view pro photos :) Sep 21 05:08:31 i skip the articles and look at the pictures Sep 21 05:08:42 he gets a lot of books to review Sep 21 05:09:00 http://aphotoeditor.com/wp-content/uploads/2016/09/CM_01.jpg Sep 21 05:09:01 :) Sep 21 05:11:17 squ: fat batman pride? Sep 21 05:11:33 wanted to see photos made by expensive Hasselblad equipment, but can't find anything Sep 21 05:12:19 what is the term for the way you can swipe right on a recycler view to reveal buttons (kinda like on facebook messenger) Sep 21 05:12:54 thornekey: swiping to reveal a delete button is ios feature Sep 21 05:13:31 squ, i found this lib https://github.com/daimajia/AndroidSwipeLayout Sep 21 05:13:54 classic library Sep 21 05:14:03 android way is to long press Sep 21 05:14:13 ohh Sep 21 05:14:25 swipe to delete is automatic in ios, btw Sep 21 05:14:44 all you need to return boolean YES in appropriate callback Sep 21 05:14:48 i dont mean to just delete Sep 21 05:14:49 to enable it Sep 21 05:14:59 i want to give a few button options Sep 21 05:15:31 I get it, but as I see it, that is not how it is usually done in android Sep 21 05:15:50 ohk, like design standard-wise Sep 21 05:16:27 in most apps long press on item reveals options Sep 21 05:18:43 what squ says is right Sep 21 05:18:46 (this time) Sep 21 05:19:54 Nothing wrong with swiping, plenty of apps use it. But like long press it should be a secondary way of performing the action. The primary way should be visible on the screen, e.g. in the toolbar Sep 21 05:20:19 final question, if you're still around alex_PP - how can I add a on click listener to the linearLayout? I tried this Sep 21 05:20:21 linearLayout.setOnClickListener(new View.OnClickListener() { Sep 21 05:20:37 But I'm worried that the scope issue has caused problems again, with the View.OnClickListener bit Sep 21 05:20:48 ohk cool i see Sep 21 05:22:25 ir7466: set an onclicklistener in you bid method Sep 21 05:22:31 that's all you need to do Sep 21 05:22:47 yeah that's where I tried it Sep 21 05:22:54 ViewHolder is where bind() is: public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { Sep 21 05:22:55 and it works? Sep 21 05:23:03 now Sep 21 05:23:04 *no Sep 21 05:23:08 I have this: linearLayout.setOnClickListener(new View.OnClickListener() { Sep 21 05:23:17 I wouldn't implement onClick in your view holder Sep 21 05:23:33 but that's where bind() is Sep 21 05:23:43 and where i inflate the linearlayout and do addView() Sep 21 05:24:18 why do you have new OnClickListener and implements OnClickListener? Sep 21 05:24:38 just out of interest, why do you recommend not putting it there? i noticed when i was just testing the app then, that as i scroll and start clicking etc etc i see a lot of odd resutls. like linear layouts appearing when I click items, but they should be appearing on other items Sep 21 05:24:49 could it be refreshing layouts as i scroll or something? Sep 21 05:24:52 like, re-binding Sep 21 05:25:01 that's exactly what it does Sep 21 05:25:20 newViewHolder is only called as many times as needed to fill the recyclerView Sep 21 05:25:50 then bind is called as you scroll to put new information in the old views so you don't need to create new ones all the time Sep 21 05:26:03 wait, you're calling inflate in bind? Sep 21 05:26:07 yeah Sep 21 05:26:08 why? Sep 21 05:26:12 i'm guessing that's bad now Sep 21 05:26:28 create your views once, change the data in them Sep 21 05:26:36 well my rationale was this Sep 21 05:26:52 the function is public void bind(int position) { and given i know the position, then I can set the text that appears when the item is expanded Sep 21 05:27:08 setText(_items.get(position).toString()); Sep 21 05:27:11 that sort of thing Sep 21 05:27:32 yeah, that's normal Sep 21 05:28:27 http://aphotoeditor.com/wp-content/uploads/2016/08/Lipczynski-CivilWar_8270.jpg Sep 21 05:28:39 hmm ok Sep 21 05:29:07 What I'm seeing is say there's 5 items in the list, if i open Item 1, then I see the "Item 1 Subitem" Sep 21 05:29:18 if I open Item 2 i see "Item 2 subitem" Sep 21 05:29:31 if i open Item 1 again, I see both "Item 1 subitem" and "Item 2 subitem" Sep 21 05:29:49 breakpoint, debug Sep 21 05:29:58 no, i think i understand why Sep 21 05:30:03 it's not clearing the linearlayout Sep 21 05:30:10 because i just keep addView'ing to it Sep 21 05:30:23 squ: is there a reason for you to take only pictures of obese people? Sep 21 05:30:33 -- but is it good practice if I wipe the contents of the linearlayout in bind() each time just to clear away the existing stuff? Sep 21 05:30:35 squ: that looks large format to me Sep 21 05:30:54 ir7466: so you're nesting stuff? Sep 21 05:30:59 that's what I was missing Sep 21 05:31:05 i do have a for loop inside bind() Sep 21 05:31:13 for every sub item, i addView Sep 21 05:31:43 Is there a way to transition between a theme/style change of an activity? Sep 21 05:31:52 Fade effect? Sep 21 05:32:55 ir7466: you probably want to look for a library to do this for you Sep 21 05:32:58 I've no doubt 100 exist Sep 21 05:33:14 first google result is this one Sep 21 05:33:15 https://www.bignerdranch.com/blog/expand-a-recyclerview-in-four-steps/ Sep 21 05:33:21 i'm using this one: https://github.com/cachapa/ExpandableLayout Sep 21 05:33:38 I'm trying to do what he's done in the "RecyclerView items" example Sep 21 05:34:00 except instead of just tapping and seeing one item, I want to show all subitems for whatever was clicking (which i'm storing as a list inside an object) Sep 21 05:34:09 and I retrieve the object in bind() using .get(position) Sep 21 05:34:17 alex_PP: large format? Sep 21 05:34:49 Arancio: wasn't me who took the pictures Sep 21 05:34:52 squ "wanted to see photos made by expensive Hasselblad equipment, but can't find anything " Sep 21 05:35:11 alex_PP: yes, of their medium format 50mp Sep 21 05:35:23 i meant large than 35 Sep 21 05:35:27 curious how it looks Sep 21 05:35:27 *larger Sep 21 05:35:51 probably a lot like most others Sep 21 05:35:55 idk Sep 21 05:36:08 the physical attributes will be set by the physical size Sep 21 05:36:19 and colour and sharpness come with post Sep 21 05:36:47 ir7466: these aren't recyclerviews? Sep 21 05:36:56 http://static.hasselblad.com/2016/05/aerial-a5d1-2000x1498.jpg Sep 21 05:36:56 http://static.hasselblad.com/2016/05/aerial-a5d2-2000x1498.jpg Sep 21 05:37:10 only two samples on official website Sep 21 05:37:25 this one? https://github.com/cachapa/ExpandableLayout/blob/master/images/recycler.gif Sep 21 05:37:31 I guess 2000x is not the best what 50mp can do Sep 21 05:38:03 ir7466: I did exactly the same thing recently :) Sep 21 05:38:44 but I close sub-menu on click Sep 21 05:38:45 ir7466: by using a `dumb` layout inside a recycler, you're losing a lot of the reason for using the recycler Sep 21 05:38:59 alex_PP what do you mean? Sep 21 05:39:19 you dont think recyclerview is the best option? Sep 21 05:39:22 so you have a recyelerview with a load of expandablelinearlayout inside? Sep 21 05:39:43 i think a recycler view that knows how to layout children is the best idea Sep 21 05:40:06 alex_PP: it is much more simpler Sep 21 05:40:14 i have a RecyclerView and inside it is a series of ExpandableLayout, yes Sep 21 05:41:10 so you're recycling the expandablelayout, which is a pretty simple view with no styling or theme support, and rebuilding the heavier textviews with a lot of themeing and whatnot Sep 21 05:41:40 well it's not super heavy. it's just a linearlayout with two textviews inside it Sep 21 05:42:18 so when the user opens an item they see a series of "NAME / Description", "NAME / Description" Sep 21 05:42:57 alex_PP: http://i.imgur.com/VRMe36R.png Sep 21 05:43:02 that simple :) Sep 21 05:43:08 anyway, i fixed the bug by doing if (_recyclerLinearLayout.getChildCount() > 0) { _recyclerLinearLayout.removeAllViews(); } Sep 21 05:43:15 damn, sorry about the spacing Sep 21 05:43:38 so now i just need a way to get the onClick working because "linearLayout.setOnClickListener(new View.OnClickListener() {" doesn't work due to the following error Sep 21 05:44:04 oh Sep 21 05:44:07 never mind Sep 21 05:44:13 i might be on to something... Sep 21 05:44:20 squ: he's not just hiding the children, he's rebuilding them in a loop as he doesn't have a fixed number Sep 21 05:45:31 i was implementing public void onItemClick() instead of just onClick() - hence why it didn't work Sep 21 05:45:32 clicking on a row adds variable amount of rows under it? Sep 21 05:45:41 squ: yes Sep 21 05:45:44 squ: I beleive so Sep 21 05:45:52 each row corresponds to some object, which has a list of subitems Sep 21 05:45:54 still possible with my solution Sep 21 05:45:58 when you click the row, i display the subitems Sep 21 05:46:01 no problem Sep 21 05:46:12 i've got it working now anyway Sep 21 05:46:17 so that side of it is fine Sep 21 05:46:30 what changes is instead of menuRowPosition is an list datatype with row numbers Sep 21 05:46:46 in my public void onClick(View v) i want to have an intent to another activity Sep 21 05:47:06 but because i'm in public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { which is part of private static class SimpleAdapter Sep 21 05:47:11 i don't have access to MainActivity.this Sep 21 05:47:11 ir7466: you are doing it the bad way:) Sep 21 05:47:44 within the scope of the library i'm using, is there a good way? Sep 21 05:48:19 idk what library you are using Sep 21 05:48:28 https://github.com/cachapa/ExpandableLayout Sep 21 05:49:45 I'd redo in my way Sep 21 05:50:08 i feel like i've invested too much time to quit at the last step though Sep 21 05:50:27 all i need now is to get the click to result in an intent to some other activity and i can put a line through this feature Sep 21 05:50:49 to make it my way you need around 10 lines of code Sep 21 05:52:03 that logic to match menu position Sep 21 05:52:21 inside onBind Sep 21 05:54:11 it's ok Sep 21 05:54:15 i got it working now! Sep 21 05:54:27 i just needed to do _context.startActivity(intent); Sep 21 05:55:13 thanks alex_PP for all of your help :) Sep 21 05:55:18 thanks also to squ Sep 21 06:03:25 This silly idea came into my mind that I should ditch Java/Android's RNG and get one from https://www.random.org/ Sep 21 06:04:07 Idiosyncratic: why? Sep 21 06:05:24 alex_PP: because Android's RNG doesn't seem so random to me Sep 21 06:05:31 really? Sep 21 06:05:56 which are you using, and how? Sep 21 06:06:21 how can you tell if its so random or not btw /: Sep 21 06:06:22 alex_PP: Random numberGenerator = new Random(); Sep 21 06:06:36 and that's not random enough? Sep 21 06:07:32 Maybe it's because the range is quite low 0-100, but it seems to me that certain numbers pop out the same way sometimes Sep 21 06:07:48 unlikely Sep 21 06:07:56 how can you tell its not random though Sep 21 06:08:00 just your brain spotting patterns that don't exist Sep 21 06:08:24 random doesnt mean equal distribution Sep 21 06:08:46 Just nevermind Sep 21 06:13:40 Don't activities get Configuration options from the Application context when they are created? Sep 21 06:16:03 how do i go about displaying items in a recyclerview 1 after the other instead of all together like cascading Sep 21 06:16:12 ive already got it so that it animates from the top down Sep 21 06:16:21 but its doing it to the whole thing rather than 1 at a time Sep 21 06:17:04 Idiosyncratic: http://www.javapractices.com/topic/TopicAction.do?Id=62 Sep 21 06:19:17 Arancio: reading it Sep 21 06:20:19 Idiosyncratic: SecureRandom Sep 21 06:26:02 Google’s prime Messaging App, Allo. On Google’s prime Tablet, the Pixel C. https://pbs.twimg.com/media/Cs2w0imVYAAh6VT.jpg:large Sep 21 06:26:05 No. Landscape. Sep 21 06:26:46 why I'm not surprised Sep 21 06:27:09 Also https://pbs.twimg.com/media/Cs2tcO0UMAEqW4v.jpg Sep 21 06:27:10 Sep 21 06:27:19 > By the way if you activate on another device, you lose your name, profile picture, chats, and contacts. Sep 21 06:27:25 https://twitter.com/RonAmadeo/status/778470188156981254 Sep 21 06:28:38 justJanne but it renders nicely Sep 21 06:28:51 given that today is technically the 'last day of summer', do we think it was rushed for release? Sep 21 06:28:54 and the people in /r/projectfi made a checklist of things allo does right and wrong (guess which is empty) https://www.reddit.com/r/ProjectFi/comments/53rhk8/allo_allo_but_no_impact_for_fi/d7vo0vj Sep 21 06:29:16 google never rush anything Leeds Sep 21 06:29:29 just wait Sep 21 06:29:32 Also, if you send from allo to non-allo users, Sep 21 06:29:37 in 5 days allo will be forgotten and google will be on to something else Sep 21 06:29:46 if the receiver is on Android, Google inserts a fake SMS into the system SMS storage, Sep 21 06:29:51 and fakes a notification Sep 21 06:30:02 otherwise you receive an SMS from Google, all from the same number Sep 21 06:30:04 tx: remember Duo? I don't think anyone at Google does... Sep 21 06:30:08 literally worse than IRC bouncers Sep 21 06:30:14 what is duo? Sep 21 06:30:29 Duo = video conferencing Sep 21 06:30:31 basically Sep 21 06:30:34 hangouts became allo and duo Sep 21 06:30:35 skype? Sep 21 06:30:38 google’s video chatting app that terminates the call after a minute if you have less than 14Mbps Sep 21 06:31:30 nvidia has chips which do hardware video encoding Sep 21 06:31:37 .. ok Sep 21 06:31:51 squ: the sky is blue sometimes Sep 21 06:31:53 AMD has, too, and every other company, and every fucking phone since the Nexus S Sep 21 06:32:09 with tweaks they could adjust quality in realtime and transfer at any available mbps Sep 21 06:32:22 Eh, not really Sep 21 06:32:26 I have one single contact on Duo Sep 21 06:32:32 squ: ummmmmmm Sep 21 06:32:36 most hardware encoders work with fixed quality, squ Sep 21 06:32:36 not quite. Sep 21 06:32:41 even so Sep 21 06:32:44 justJanne: besides nvidia no one has video hardware encoding Sep 21 06:32:47 that’s the big issue with using hardware encoders for twitch streaming Sep 21 06:32:56 squ: yes, almost everyone has Sep 21 06:32:56 you can't expect someone with 100kbps of available bandwidth to get a decent quality call Sep 21 06:32:58 duo is their live camsex thingie Leeds ? Sep 21 06:33:18 raoul11: video chat with pre-connection streaming, basically Sep 21 06:33:21 squ: AMD has had the VCE since 2014 for encoding Sep 21 06:33:26 H264 and H265 Sep 21 06:33:35 does it work properly? Sep 21 06:33:39 Intel has had it for a few years, too Sep 21 06:34:00 qualcomm has the OMX hardware video encoding layer on android since Jul 2011 Sep 21 06:34:15 100kbps will be enough for 640x nice quality video with low frame rate Sep 21 06:34:54 justJanne: I'll look it up later Sep 21 06:40:29 lol this allo! Sep 21 06:41:13 Btw, if any of you guys wanna have fun, Sep 21 06:41:35 try "abc".split("") on Android, and in normal java, and tell me how WTF that is Sep 21 06:41:47 what happens Sep 21 06:42:01 (Android returns on pre-N devices at least ["", "a", "b"], oracle Java returns ["a", "b"] Sep 21 06:42:15 So, even as basic Java APIs as fucking String::split are bugged) Sep 21 06:42:41 gotta try it out Sep 21 06:42:43 er... Sep 21 06:42:48 I don't believe you Sep 21 06:42:51 but I will give it a go lol Sep 21 06:43:29 Android phones aren't worth the child labor they cost X_X Sep 21 06:43:30 I don't believe too Sep 21 06:43:31 :) Sep 21 06:43:58 justJanne: what happened to "c"? Sep 21 06:44:03 eh sorry Sep 21 06:44:08 that’s obviously still there Sep 21 06:44:14 java: [a, b, c] Sep 21 06:44:15 just android inserts the "" at the beginning Sep 21 06:44:43 i think it is working as intended if you look https://developer.android.com/reference/java/lang/String.html#split(java.lang.String) Sep 21 06:44:58 it's like i try to separate "" from abc Sep 21 06:45:09 so remains on left "", and on right a, b and c Sep 21 06:45:38 no, you want to split the string at "" Sep 21 06:45:53 for example, if i do "a,b,c".split(",") I get ["a", "b", "c"] Sep 21 06:46:08 like in the example in the doc, the o get "" because there is nothing between the two o Sep 21 06:46:17 but it seems to trim the end only Sep 21 06:46:26 android: [, a, b, c] Sep 21 06:46:30 09-21 08:46:13.903 29162-29162/de.kuschku.example I/System.out: [, a, b, c] Sep 21 06:46:32 justJanne: you are right Sep 21 06:46:35 Yes Sep 21 06:46:39 I hate java Sep 21 06:46:46 a fucking standard Java API has been broken on Android since Gingerbread Sep 21 06:46:59 oh man Sep 21 06:47:06 I chose my minsdk as 24 Sep 21 06:47:10 and I don't have an emulator set up for it Sep 21 06:47:12 >:| Sep 21 06:47:13 I don’t know if N fixes that Sep 21 06:47:19 I just know it happens pre-N Sep 21 06:47:25 well Sep 21 06:47:31 we'll find out as soon as this finishes downloading lol Sep 21 06:47:33 the doc is clear, "Trailing empty strings are therefore not included in the resulting array." Sep 21 06:47:51 adq: that doesn’t matter when java libraries suddenly break on android Sep 21 06:48:03 and i still don't see an issue to separate something with a "nothing" separator resulting in nothing on left and the rest separated on the right Sep 21 06:48:08 I wrote a library for java, tried to include it on android, and suddenly it broke Sep 21 06:48:11 that’s the issue. Sep 21 06:48:21 and then I had to choose: make it work on android, or on other java Sep 21 06:48:38 I ended up writing my own String.split Sep 21 06:48:50 lol Sep 21 06:49:01 09-21 08:48:52.147 3102-3102/de.kuschku.nougatexample I/System.out: [, a, b, c] Sep 21 06:49:05 tx: still not fixed Sep 21 06:49:28 justJanne: what's the bug number? Sep 21 06:49:40 Leeds: I don’t know anymore, google it maybe? Sep 21 06:49:54 sparse arrays? Sep 21 06:51:12 I currently have 3 such compatibility overrides here Sep 21 06:51:47 turns out, chromium’s android implementation doesn’t support KeepAlive sockets, some Android versions don’t properly support the Z_SYNC_FLUSH flag, and this issue Sep 21 06:52:04 a few years ago, that class was several thousand lines long, luckily, most has been fixed Sep 21 06:52:27 And now we can go back to complaining about allo being portrait only #firstworldproblems Sep 21 06:52:40 This is just freaking great; if I change a drawable's properties and try to debug the changes, they won't appear without a rebuild X_X Sep 21 06:54:56 This is new in 2.2 Sep 21 06:55:06 Allo’s SMS fallback only works in US, India and Brazil Sep 21 06:55:11 MILD SHOCK Sep 21 06:57:05 WHY DO YOU SUCK, GOOGLE?! WHYYY?! Sep 21 06:57:18 And Allo’s SMS relay number is already on some spam blocklists Sep 21 06:58:10 It’s like google ran directly and with full speed into a wall Sep 21 06:59:41 Like, a messaging app has some very basic features Sep 21 06:59:55 Google got every single basic feature wrong. But they got the assistant right. Sep 21 07:00:12 that’s like, even half of the fucking IRC clients handle multi-device support better than allo Sep 21 07:01:38 They're too busy making smarter and smarter backdoors and don't have time for actually making their API better, methinks Sep 21 07:04:11 Allos SMS fallback only works in US, India and Brazil Sep 21 07:04:13 heuehueh Sep 21 07:04:17 suck it rest of the world! Sep 21 07:04:27 also who uses sms outside of the US? Sep 21 07:04:33 what do you mean? Sep 21 07:04:46 Well, the point is, how do you message non-allo users? Sep 21 07:04:46 in US it is called texting not SMS Sep 21 07:04:56 ideally, you’d SMS people Sep 21 07:04:59 * Idiosyncratic raises hand Sep 21 07:05:17 justJanne, yeah I know but Google is assuming Sep 21 07:05:23 you've forced your friends into Allo Sep 21 07:05:25 lol Sep 21 07:05:27 so, in the rest of the world, we just gained "one more messaging app" that users have to install Sep 21 07:05:42 cbot: if I could do that, I’d get all of them back on jabber.ccc.de Sep 21 07:05:50 and not on allo Sep 21 07:06:02 what the heck is that Sep 21 07:06:12 an open XMPP server Sep 21 07:06:33 it's not even out yet Sep 21 07:06:36 in NYC Sep 21 07:06:38 ): Sep 21 07:07:06 XMPP is a chat system that’s used by every large chat app even today, including Google Hangouts, Facebook Messenger, WhatsApp, and others. But back in the old days, they were actually compatible Sep 21 07:07:18 a jabber.ccc.de user could send messages to facebook and google+ users Sep 21 07:07:21 within of one app Sep 21 07:07:25 and receive responses Sep 21 07:07:43 that concept was called Federation Sep 21 07:09:26 justJanne: didn't Facebook drop the XMPP support? Sep 21 07:09:34 Idiosyncratic: yeah, 2013 or so Sep 21 07:09:40 google talk did the same Sep 21 07:09:49 if we still had that, allo could have used XMPP as well, Sep 21 07:10:09 and allo users could have immediately chatted with every whatsapp, facebook, or hangouts user from day 1 Sep 21 07:10:18 it doesnt even have SMS fallback justJanne Sep 21 07:10:24 it goes off weird allo number Sep 21 07:10:25 justJanne: more recently than that. I used to use it with Pidgin. Sep 21 07:10:26 now that would have made it a killer app Sep 21 07:10:27 allo is DOA Sep 21 07:10:48 Idiosyncratic: "official" killoff was 2013, Sep 21 07:10:58 but pidgin still has support today Sep 21 07:11:21 how come google can't create a decent imessage competitor Sep 21 07:11:23 the lib pidgin uses as backend even supports telegram and threema nowadays, skype web and I think now whatsapp Sep 21 07:11:37 justJanne: no, Pidgin's Facebook XMPP is broken Sep 21 07:11:49 justJanne: try if it you don't believe me Sep 21 07:11:49 there’s also bitlbee, integrating all of these chats into your IRC client Sep 21 07:12:29 justJanne: in order to have Facebook on Pidgin you'd have to use something like this https://github.com/dequis/purple-facebook Sep 21 07:15:01 justJanne: tried it right now and it says "Not Authorized" Sep 21 07:18:00 justJanne: and bitlbee's kinda clunky if you ask me Sep 21 07:18:15 Idiosyncratic: not if your IRC client has support for bitlbee natively Sep 21 07:18:35 someone has made a hacky patch for quassel to support libpurple natively Sep 21 07:18:49 justJanne: I've tried it on weechat and it still was a hassle to communicate with and configure Sep 21 07:18:59 especially awesome because then the bouncer sits on the other side, Sep 21 07:19:09 and you gain fulltext search through every chat ever+ Sep 21 07:19:28 http://vpaste.net/Pqi8d Sep 21 07:19:42 justJanne: fulltext search through every chat ever? Sounds depressing! Sep 21 07:20:21 it#s super awesome Sep 21 07:20:34 I never set bookmarks or anything Sep 21 07:20:52 I keep my logs where they belong. In tmpfs. Sep 21 07:20:58 On https://material.google.com/components/lists.html#lists-specs - i might be missing something, but i dont see a recommended size for the "avatar"/little circle that appears on the left of a list view item Sep 21 07:21:01 just go "messages containing :// within of 5 minutes of messages containing 'raspberry pie'" Sep 21 07:21:04 does anyone know what it is? Sep 21 07:21:52 Hi Sep 21 07:22:00 ir7466: take one of those screenshots, MS paint, and measure? Sep 21 07:23:44 dp != pixels though Sep 21 07:28:20 justJanne: out of curiosity, what's your distribution? Sep 21 07:30:41 my what? sorry, context is important, it could mean anything from "what linux distro do you use" to "what regional or version distributions do your apps have" to ... I don’t even know Sep 21 07:31:11 i think he meant linux distro Sep 21 07:31:23 justJanne: err... linux distribution :D Sep 21 07:32:08 Making a very important survey right now about people's linux distributions. Sep 21 07:32:23 Do people still use linux? Sep 21 07:32:27 Is there someone who are using ItemTouchHelper.SimpleCallback ? For the swipe to delete ? Sep 21 07:33:01 Arancio: the majority of programmers use linux Sep 21 07:33:01 I use in this moment Debian, Ubuntu, Kubuntu and Arch Sep 21 07:33:13 Arch on desktop, kubuntu on laptop, debian and ubuntu on different servers Sep 21 07:33:14 arch for the win Sep 21 07:33:37 arch for the Windows 10 Sep 21 07:33:41 actually, I have 3 servers, hydrogen (on debian), helium (on ubuntu), and lithium (also on ubuntu) Sep 21 07:34:11 I mainly use arch too, but I have debian on this PC that I'm on Sep 21 07:34:35 and my android devices are a nexus 5, nexus 7, moto g (2013) and moto g (2014) and a Huawei IDEOS X3 Sep 21 07:34:50 the last one was recently upgraded to 2.3.7 via cyanogen Sep 21 07:35:32 2.3.7 woah Sep 21 07:36:31 I put 5.1 on this cheap HTC Wildfire or Desire once, I don't remember the model :D Sep 21 07:38:22 It was a HTC Explorer, actually. It surprisingly didn't suck out my battery very fast. Sep 21 07:38:52 Ashiren: you could run 4.1 on it, but the camera wouldn’t work, the kernel would use a custom wrapper to appear to android as 3.x kernel while actually being a 2.6 kernel, Sep 21 07:38:59 and you had to do lots of hacky stuff Sep 21 07:39:28 "the majority of programmers use linux" .. not for programming at least Sep 21 07:40:04 SimonVT: yeah, we run linux just to look cool Sep 21 07:40:23 I am android developer. I am displaying banner ad in my app. How much i need to pay to google for ad. Sep 21 07:40:40 SimonVT: make people catching glimpses of our screens believe that we're hacking a satellite or something Sep 21 07:41:45 E.g. stack overflow has more traffic from both windows and osx Sep 21 07:41:57 SimonVT: because of noob developers Sep 21 07:42:04 that’s like saying the average developer uses PHP Sep 21 07:42:12 that’s technically true, but, just, no. Sep 21 07:42:43 janaki: well, the idea is They pay you for displaying ad in your app Sep 21 07:42:44 :o Sep 21 07:42:58 janaki: do you use Google AdMob, Sep 21 07:43:03 or do you use something else? Sep 21 07:43:11 Do you have any sources on the OS distribution of non-noob developers? Sep 21 07:43:36 Or what the ratio between noob and non-noob developers are on stackoverlow Sep 21 07:43:36 SimonVT: you don't question linux elitism, bro Sep 21 07:43:50 SimonVT: or we'll have your IP address Sep 21 07:43:55 SimonVT: you could filter by programming language Sep 21 07:44:00 SimonVT: yeah, we run linux just to look cool <<< https://www.youtube.com/watch?v=qV1cMT70FCQ Sep 21 07:44:15 *hack your IP address Sep 21 07:44:26 for example, in the more classical languages like C++, C, Go, or anything that’ll run on servers that aren’t a 50ct wordpress server, Sep 21 07:44:33 you’ll end up with developers running on linux Sep 21 07:44:53 I think the Docker guys made an OS breakdown per average developer, Sep 21 07:45:02 which is why they targetted linux as host first Sep 21 07:46:54 Sure, target demographic and all. But programming in general, not very many use linux Sep 21 07:47:05 adq: that guy's a conformist. This is how real and cool programmers look like. http://vignette2.wikia.nocookie.net/uncyclopedia/images/6/6a/Computer_nerd.JPG/revision/latest?cb=20101124091256 Sep 21 07:47:36 man he is running MS 98 or something on the screen Sep 21 07:47:47 you can see the window bar on top of the screen Sep 21 07:49:12 SimonVT: uhm, seriously now and without being elitistic, most programmers tend to use linux Sep 21 07:49:35 Source? Sep 21 07:49:54 SimonVT: I'm not saying that Windows programmers are noobs or anything, but it's just common sense that most programmers use linux Sep 21 07:49:57 SimonVT: the question is what kind of developer you want to target Sep 21 07:50:13 common sense is wrong most of the times Sep 21 07:50:19 if the target demographic is "person an write software that runs on multiple systems, can work without an IDE, etc" Sep 21 07:50:25 then Linux is the most common Sep 21 07:50:38 if you include people clicking around in turbo delphi, it’s not Sep 21 07:52:19 SimonVT: getting tools to work with each other in Windows is way harder than on linux Sep 21 07:52:22 Only DelphiWorld uses turbo delphi Sep 21 07:52:44 justJanne: I want to target "programmers", that's what I was responding to Sep 21 07:52:48 real programmers use vim anyway Sep 21 07:53:06 * Arancio checks if his tools as working with each other. They are Sep 21 07:53:07 The Delphi convention has beed called off. One programmer got sick and the other one told he doesn't want to be alone. Sep 21 07:53:10 real programmers use ed Sep 21 07:53:13 the standard editor Sep 21 07:53:19 But even Android I bet there are more windows users.. And osx for that matter Sep 21 07:53:26 real programmers have C blood type Sep 21 07:53:44 SimonVT: linux notifies you when programs need updating and it's done very easy while on Windows you have to update everything by hand Sep 21 07:54:04 What does that have to do with anything Sep 21 07:54:05 huh Sep 21 07:54:12 in Windows they force you to update Sep 21 07:54:13 SimonVT: the thing is, you can’t get through university compsci education without switching to linux Sep 21 07:54:16 not even nowadays Sep 21 07:54:30 really? Sep 21 07:54:32 Ashiren: I'm not talking about OS updates Sep 21 07:54:34 not when I did it Sep 21 07:54:37 well, unless the uni is shit, yes Sep 21 07:54:50 why? Sep 21 07:55:03 I’m not sure how they’d teach the basics of reverse engineering and breaking existing software on windows Sep 21 07:55:08 Real programmers use whatever they have to use: Windows, OSX, Linux Sep 21 07:55:24 you can’t just dtrace or step with gdb through any software on windows that easily Sep 21 07:55:43 no, you use another debugger, not gdb Sep 21 07:55:44 and as soon as you use graphical debuggers, you end up with a lot of additional boilerplate that makes it worse for teaching Sep 21 07:55:50 justJanne: I once went to this Java programming class that was held at a University with my laptop. When I opened it and everyone saw my tilling WM, they all looked like I was some genius hacker or something, lol. I was the only one there with linux. Sep 21 07:56:12 *looked at me Sep 21 07:56:25 Idiosyncratic: here it was just assumed for classes you’d have linux, gdb was used, so was the GCC, Sep 21 07:56:26 justJanne: but this was a Romanian university :D Sep 21 07:56:32 Arancio: "Real programmers use whatever they have to use" hit the nail on the head Sep 21 07:56:36 if you didn’t want to use Linux, they had linux VMs you could use, Sep 21 07:56:37 i need to pay or no need to pay? Sep 21 07:56:41 or provided linux Vm images Sep 21 07:56:49 Ashiren, I need to pay or no need to pay Sep 21 07:56:59 justJanne, Yes I am using Admob. Sep 21 07:57:00 janaki: pay for what? Sep 21 07:57:19 janaki: so you have admob in your app? Sep 21 07:57:29 then google will pay you when users click on it Sep 21 07:57:40 whether i need to pay to google for displaying ad in my app? Sep 21 07:57:44 janaki: to use AdMob? No. To be able to *submit* applications on the Google's App Store you have to pay 25$. Sep 21 07:57:56 you pay to show your ad in other people's apps... Sep 21 07:57:58 janaki: the 25$ is a one time payment Sep 21 07:58:12 justJanne, Yes i am having admob in my app Sep 21 07:58:15 janaki: if you want to show your ads in other apps, pay. If you want to show google ads in your app, you are paid Sep 21 07:58:29 google sends money to you Sep 21 07:58:32 not you pay Sep 21 07:58:33 google pay Sep 21 07:59:00 Idiosyncratic, I am already paid for google play store Sep 21 07:59:08 then you no pay Sep 21 07:59:16 fuck, I started Visual Studio by mistake. When I switched to Android Studio I got struck by severe depression Sep 21 07:59:19 janaki: AdMob is free, then Sep 21 07:59:38 Idiosyncratic: can I call you "Idio"? "Idiosyncratic" is too long... Sep 21 07:59:54 justJanne, ok. How can i sync my bank account to get money? Sep 21 07:59:55 Arancio: use tabcomplete? Sep 21 07:59:57 they don't send you much money :) Sep 21 08:00:09 Arancio: idiot actually means "to one's self", so I don't mind :P Sep 21 08:00:10 janaki: easiest thing is just to paste your account details here Sep 21 08:00:16 janaki: I don’t know, ask someone else Sep 21 08:00:22 and don’t do what leeds said Sep 21 08:00:26 leeds was joking Sep 21 08:00:32 Arancio: also, ever heard of tab completion? Sep 21 08:00:33 * Leeds never jokes Sep 21 08:00:52 justJanne: justJanne you ruined my punchline Sep 21 08:00:54 Leeds: I could give you my bank account details, but good luck getting a single cent from that Sep 21 08:01:33 Arancio: cause then you just have to type Idio\t ? Sep 21 08:01:36 Idiosyncratic: tab completion is the enemy of humor Sep 21 08:02:20 Arancio: :P Sep 21 08:02:31 justJanne: getting a single cent would be a pretty inefficient way to steal money from someone Sep 21 08:02:36 Arancio: I don't get the joke, though Sep 21 08:02:50 Leeds, accound details? Sep 21 08:03:24 Idiosyncratic: cause then he’d just have to type "idio\t" is the joke Sep 21 08:03:29 Idiosyncratic: ok. It was a lame joke. I failed. Sep 21 08:03:36 where \t is the universal replacement char for the tabulator button Sep 21 08:03:53 Leeds: you couldn’t get more either ;P Sep 21 08:04:03 justJanne: oooooohhh Sep 21 08:04:13 I squashed a bad bug! Yay Sep 21 08:04:15 cause I have an account that’s disabled for pulls, and an account that’s disabled for pushing money in Sep 21 08:04:27 and I just shuffle money around online, with no fees Sep 21 08:04:43 so if I deal with a company that doesn’t fucking support paying via SEPA sending, Sep 21 08:04:47 I just use this Sep 21 08:05:15 Leeds, *accounts Sep 21 08:05:41 justJanne: freelancer? Sep 21 08:06:53 can any one help me to sync my bank account details in ad mob? Sep 21 08:06:56 Arancio: also, "‎(idiṓtēs) was used derisively in ancient Athens to refer to one who declined to take part in public life". That's me! Sep 21 08:07:01 no, Idiosyncratic, just standard setup Sep 21 08:07:12 I also don’t do credit or credit cards or so Sep 21 08:09:14 Mariu = Bruce Wayne, Alphabet = Batman Sep 21 08:10:51 janaki: what problem are you having? Sep 21 08:11:26 Well, I have 2 bank accounts and they're both gathering dust right now. :( Sep 21 08:11:49 I am new to ad mob. I dont no how i can get money from ad mob? Sep 21 08:12:26 Leeds, I am new to ad mob. I dont no how i can get money from ad mob? Sep 21 08:12:58 janaki: this isn't really the right place for general questions like that - have you tried admob's documentation? Sep 21 08:13:47 Leeds, not completely. Sep 21 08:13:56 Btw, Google Duo 2 is rolling out this week! Sep 21 08:14:01 To replace Google Duo Sep 21 08:14:08 Google Duo 2: Electric DuAlloo Sep 21 08:16:02 where is Allo 2 Sep 21 08:16:07 now with less sms support Sep 21 08:16:27 Allo v.261 will launch tomorrow, now we made it even simpler: you can only message the google bot now! Sep 21 08:16:46 we also removed support for any device larger than 3", because it was too confusing, Sep 21 08:16:53 and smaller than 4", because it was unreadable Sep 21 08:18:05 justJanne: to be fair, you can pretty much only message the google bot already Sep 21 08:22:02 Omg, AS' Designer screen looks awful now Sep 21 08:23:57 hi guys Sep 21 08:24:10 is there some inbuilt mechanism for cutting off long textviews? Sep 21 08:24:21 ie. instead of them going to a new line it truncates or fades out or something Sep 21 08:24:33 yes, ir7466 Sep 21 08:24:38 set singleLine=true Sep 21 08:24:39 ellipsis Sep 21 08:24:46 and set ellipsis="…" I think? Sep 21 08:24:59 and use maxLines="1" or singleLine Sep 21 08:25:21 though it might work for any numbers of line maybe Sep 21 08:25:30 do you mean android:ellipsize="end" ? Sep 21 08:25:58 https://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize Sep 21 08:26:01 yup Sep 21 08:27:05 well I never know Sep 21 08:27:14 CSS and android, one of them had ellipsize, Sep 21 08:27:20 the other had ellipsis: "…" Sep 21 08:27:53 thanks, that worked Sep 21 08:28:26 ir7466: see, no matter how hard is the problem, this channel has the solution Sep 21 08:28:42 what is the last digit of pi? Sep 21 08:29:07 Ashiren: sometimes we just don't care to give you the answer Sep 21 08:29:13 Ashiren: it is a 0 Sep 21 08:29:15 in base 12 Sep 21 08:29:17 * base 1 Sep 21 08:29:24 in base 1, the last digit of Pi is a 0 Sep 21 08:29:28 now figure out why Sep 21 08:30:23 Ashiren: it's a trick Sep 21 08:30:33 Ashiren: don't answer Sep 21 08:37:50 Can I summon the standard virtual keyboard for a custom view? Sep 21 08:38:25 Hi all., we are planning to implement Augment reality in my android app. Actually, my app shows nearby pins and posts. like that i need to show that pins in real time arguments on camera view. Can anyone suggest some ideas and solutions for this. Thanks Sep 21 08:40:35 VkyVignesh: could you re-write your question without random punctuation? Sep 21 08:43:05 Yes. I will be having location based data's. I wanted to show that in Augmented Reality mode with the help of device camera and sensors. Sep 21 08:45:45 These data's should show as like pin on top of camera screen, on background let real world objects be there. Those pins would move when i rotate the camera in different direction. Sep 21 08:45:51 Arancio: yep i've had some really good help in this channel Sep 21 08:49:38 i have a linear layout (horizontal) and frame layouts inside. the one on the right is only 48dp width and the left should be the remainder of space available. However the left one is filling up the whole area and the one on the right is pushed off the screen... what am i doing wrong? Sep 21 08:52:44 thornekey: use width=0dip, weight=1 for the left Sep 21 08:54:08 ohhh Sep 21 08:54:16 justJanne, brilliant! thanks Sep 21 09:07:03 damn yes, the hard work finally paid off Sep 21 09:07:47 aka changing from Jackson to LoganSquare in couchbase-lite-android source gave a LOT of speed. Too bad they will never accept this commit lol. Sep 21 09:08:21 maybe a custom adapter class for any json parser to plug in, a la retrofit. Later. Sep 21 09:10:24 Hi guy, I have a problem when i use swipe to delete, there is the swipe, but when my item is delete, the draw rectangle is still present. Do you have an idea ? Sep 21 09:11:44 sorry man, not really, brain isn't working anymore Sep 21 09:11:46 it's 5am Sep 21 09:11:49 work tmoorrow Sep 21 09:11:54 good luck Sep 21 09:12:36 11am for me ;) Sep 21 09:16:08 .subscribeOn(Schedulers.computation()) Sep 21 09:16:09 .subscribeOn(Schedulers.newThread()) Sep 21 09:16:09 .subscribeOn(Schedulers.io()) Sep 21 09:16:12 which one? Sep 21 09:22:28 Hi all, I need to create a kiosk-mode for a project. The issue is that there won't be electricity for 1 - 2 - 3 days. But the must stay active so that nobody needs to startup the device or app when there's power again. Sep 21 09:22:33 squ: depends on what you want to do with it Sep 21 09:22:37 but for android, Sep 21 09:22:55 usually the computationthread is the best Sep 21 09:23:06 I was thinking about the airplane mode, is it possible to enable that in code? And what about changing the brightness of the screen? Sep 21 09:24:05 SoundPool to load audio files Sep 21 09:24:15 FrancescoV: you generally can't touch that stuff unless you're rooted Sep 21 09:24:19 it must be as power safely but the device & app needs to stay awake ;) Sep 21 09:24:25 I found that the thread is being cancelled Sep 21 09:24:43 or yet to find out what kind of bug is that Sep 21 09:25:06 Leeds, do you have other suggestions? & is it easy to do with a rooted device? Sep 21 09:25:14 no, and no Sep 21 09:25:19 Google has an app doing exactly that, Sep 21 09:25:25 but it’s only available to OEMs Sep 21 09:25:35 you can’t get it, and you can’t get access to any of it Sep 21 09:29:16 http://stackoverflow.com/a/28178914/2000057 Sep 21 09:29:23 > TL;DR; I no longer think it's worth the danger/hassle of debugging SoundPool Sep 21 09:29:24 haha :) Sep 21 09:30:27 FrancescoV: you can get a battery pack big enough to power a small tablet for a couple of days for maybe US$30-$50 Sep 21 09:39:57 this is so irritating Sep 21 09:45:32 Hi, I'm using a library which accesses a USB-Interface to send/receive audio data (superpowered audio). This takes place in the JNI. Of course, I want to process or store that audio. What would be the best approach? Implement the appropriate functionality in C++ as well or return the data and take care of it in Java? Sep 21 09:48:53 Leeds uk? Sep 21 09:50:48 michael macbook? Sep 21 09:50:59 freiform, I don't see a reason for doing it in Java Sep 21 09:51:12 you'll just pay the performance hit of moving it to Java and then a hit again when processing it. Sep 21 09:51:13 tx rx? Sep 21 09:51:18 Asking the important questions. Sep 21 09:52:52 Mavrik, I thought so. I stay in C/C++ then- Going to miss some of the more convenient Java Classes, though. Sep 21 09:56:15 michael_mbp: I'm from Leeds, haven't lived there full-time since 1994, will be there in a couple of weeks visiting my family Sep 21 09:57:17 post photos of your town Sep 21 09:57:22 :) Sep 21 10:00:21 https://www.google.com.hk/search?q=hong+kong&source=lnms&tbm=isch is my current town... Sep 21 10:01:19 Leeds: ah, the last bastion of British imperialism in Asia :P Sep 21 10:01:45 Idiosyncratic: you may be about 19 years late with that statement Sep 21 10:01:58 Leeds: oh yeah, forgot lol Sep 21 10:02:49 Leeds: seems like de facto since English is an official language, lol Sep 21 10:03:14 it's an official language in lots of places which haven't been British for a long time Sep 21 10:03:15 Leeds your place looks pretty cool :) Sep 21 10:05:27 *de jure that they're not British, de facto that they are Sep 21 10:05:50 White man's tax haven bastion in Asia :P Sep 21 10:06:02 right now I'm somewhere around the middle of this picture: https://upload.wikimedia.org/wikipedia/commons/1/18/Hong_Kong_Night_Skyline.jpg Sep 21 10:06:38 Leeds: how's the air quality? :P Sep 21 10:06:50 eh, HK is much more of a mainland tax haven nowadays, I think Sep 21 10:06:52 Leeds: ever bought one of those air-in-a-cans? :P Sep 21 10:06:55 breathable, just... Sep 21 10:07:05 (mainland Chinese, that is) Sep 21 10:10:38 anyway, y'all can enjoy the photos, time for me to walk home through the real thing Sep 21 10:13:21 "the expiry of the 1898 lease on the New Territories in 1997" lol Sep 21 10:13:44 Does somebody know a lib to detect faces in a picture/bitmap? Sep 21 10:14:01 How the fuck can a 100-year-old contract stand... Sep 21 10:15:29 Especially considering the circumstances Sep 21 10:17:01 But then again, we're talking about the nation whose king admired Adolf Hitler Sep 21 10:19:26 Idiosyncratic: many did. The US president did, Ford did, etc. Sep 21 10:19:47 It’s always shown as if only Germany was far-right at the time, nope, most countries were. Sep 21 10:19:58 justJanne: :D Sep 21 10:20:06 more like D: Sep 21 10:21:19 justJanne: really saddens me that most people don't know the most basic things about "recent" history Sep 21 10:21:57 just improve schools. That solves 90% of the issues of society Sep 21 10:23:04 FrancescoV: it's easy: post the image on facebook, wait for people to tag it, retrieve the tags. Just don't call this method synchronously on the UI thread. Sep 21 10:23:30 FrancescoV: it's called crowdcomputing Sep 21 10:23:32 FrancescoV: opencv Sep 21 10:24:22 damn that hong kong picture is something Sep 21 10:24:27 justJanne: randomly heard on TV about how the Soviets killed those Polish officers/soldiers in the Katyn massacre. Around 22k people, but our dear Romanian historians somehow forget that the Romanian army killed ~12k Jews in record time in the invasion of Ukraine. Sep 21 10:25:06 And that's just a single event. Read that even the Germans were surprised at the sadism of the Romanian army. Sep 21 10:25:19 *by the Sep 21 10:25:24 stop this shit talk now Sep 21 10:25:54 squ strikes back Sep 21 10:25:57 Idiosyncratic: if we’d list every historical atrocity, we wouldn’t ever be done, as they’re committed faster than we can list them Sep 21 10:26:20 so stopping it would likely be best Sep 21 10:29:03 justJanne: it would be nice to stop remembering each other of our crimes, but governments and historians like to washout the bloody past of their peoples. Like how the British are trying to say that they "civilized" India when in fact during their occupation -- not even exagerating -- tens of millions of people died due to starvation due to mismanagement. Sep 21 10:30:20 Arancio: not an option Sep 21 10:30:33 squ, that's what I need. tnx Sep 21 10:30:41 FrancescoV: the follow squ's suggestion Sep 21 10:30:53 FrancescoV: he knows it all Sep 21 10:30:57 justJanne: right now, you don't hear about this, but you hear about Holodomor because -- surprise, surprise! -- Europe is once again united against Russia and needs the people to hate it Sep 21 10:31:24 Idiosyncratic: I suggested you’d stop it Sep 21 10:31:24 #android-dev-politics Sep 21 10:31:30 I don’t want to start listing atrocities, Sep 21 10:31:37 justJanne: ok, ok :D Sep 21 10:31:45 starting with the 30'000 civilians the US admits to have killed alone in this decade Sep 21 10:32:46 Romanians descend from Drakula. No wonder they committed such atrocities Sep 21 10:33:04 so can we instead focus on Google’s Allo or something Sep 21 10:33:13 the "how to spam friends involuntarily" app? Sep 21 10:33:45 Where Google’s new #1 app (Allo) doesn’t work on Google’s #1 Android device (the Pixel C)? Sep 21 10:36:42 And God only know what other atrocities will they commit in the future Sep 21 10:38:41 Arancio: invade Italia with cheap labor and steal your street cleaner and construction worker jobs :P Sep 21 10:39:38 Arancio: I mean, again :D Sep 21 10:40:04 Hi. I had HTC desire 820, it got power IC damage and was coslty to repair. I bought Xiaomi Redmi note 3. The 64GB memory card I used in HTC is being detected as wrong fromat in Mi. How to know which format of sdcard was in HTC ? Sep 21 10:40:14 The difference is that now that's all the jobs we're left with Sep 21 10:40:26 gulzar: wrong channel Sep 21 10:40:36 gulzar: #android Sep 21 10:40:51 gulzar: this is #android-dev Sep 21 10:41:39 Arancio: Oh, Ok Sep 21 10:50:38 hi is there someone who know how to fix the issue with drawable vector abc_ic_ab_back_material.xml of appcompat ? Sep 21 10:50:52 android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml Sep 21 10:51:01 With the device pre-lollipop Sep 21 11:02:07 Remember to do the support library stuff: http://android-developers.blogspot.dk/2016/02/android-support-library-232.html Sep 21 11:03:29 you’ll be able to use the new app:srcCompat attribute to reference vector drawables (as well as any other drawable available to android:src): Sep 21 11:03:40 whats srcCompat and why Sep 21 11:04:02 An AppCompatImageView attribute Sep 21 11:04:31 buildToolsVersion "24.0.2" Sep 21 11:04:43 compile 'com.android.support:appcompat-v7:24.2.1' Sep 21 11:04:56 toolbar.setNavigationIcon(ContextCompat.getDrawable(getApplicationContext(), R.drawable.abc_ic_ab_back_material)); Sep 21 11:05:10 Just when you want use the icon "arrow" Sep 21 11:05:29 And because the :src behavior can't be overridden Sep 21 11:05:44 I mean, you set your toolbar with this icon of appCompat Sep 21 11:05:53 This drawable use vector Sep 21 11:06:12 and there is an issue with this, under pre-lollipop Sep 21 11:06:12 Try VectorDrawableCompat#create instead Sep 21 11:07:45 Why ? Sep 21 11:08:27 Because there are no vector drawables before lollipop Sep 21 11:08:36 You need a compat implementation Sep 21 11:09:23 Oh okay Sep 21 11:09:28 BEfore i was using this R.drawable.abc_ic_ab_back_mtrl_am_alpha on 23 Sep 21 11:09:32 SimonVT: what for Sep 21 11:09:38 SimonVT: AppCompatImageView Sep 21 11:10:07 https://developer.android.com/reference/android/support/v7/widget/AppCompatImageView.html Sep 21 11:12:05 VectorDrawableCompat.create how to use it correctly ? Sep 21 11:12:11 I want to start using Git to manage my source code in Android Studio Sep 21 11:12:51 I currently have several library projects that I include in my application projects Sep 21 11:13:03 How will they be handled by Git? Sep 21 11:13:16 > This will automatically be used when you use ImageView in your layouts. Sep 21 11:13:19 :) Sep 21 11:13:31 Will Git commit the changes to the libraries in the libraries' own repository? Sep 21 11:13:52 Could anybody explain this to me? Sep 21 11:16:21 idoko: you've been infected by a trojan Sep 21 11:17:45 naruara: What about the method confuses you? Sep 21 11:20:24 Can I summon the standard virtual keyboard for a custom view? Sep 21 11:21:24 Is there any directory in android studio where I can keep the application documentation? Sep 21 11:21:43 selaci: your application? Sep 21 11:21:59 selaci: a directory in the project tree? Sep 21 11:22:00 application or project ... kind of TODO, README ... Sep 21 11:22:14 You can create any folder you want. But no, I don't think there's anything built in Sep 21 11:22:16 Other than javadocs Sep 21 11:22:20 I guess there is no standard, I can do whatever I want? Sep 21 11:22:25 ok cool Sep 21 11:22:26 Yes Sep 21 11:22:28 Cheers Sep 21 11:22:34 unleash your fantasy bro Sep 21 11:22:38 haha Sep 21 11:22:41 will do ... Sep 21 11:25:37 toolbar.setNavigationIcon(VectorDrawableCompat.create(getResources(), R.drawable.abc_ic_ab_back_material, null )); Sep 21 11:25:42 Finally, the best way is not to use a custom icon ? Sep 21 11:26:09 Because there is still, the problem Sep 21 11:27:19 Does super.onStart() do something resource intensive? Sep 21 11:28:08 You should be able to pass the drawable resource id directly to Toolbar, no need to manually create the Drawable Sep 21 11:28:38 Same should go for any support library view (at least in appcompat/design) Sep 21 11:29:04 Just with framework views you need to create vector drawables manually Sep 21 11:30:39 Git is smart enough to distinguish the files that belong to the projects from the files of projects that are included Sep 21 11:31:05 Idiosyncratic: do you use git? Sep 21 11:31:41 Arancio: yeah, but I only know the basics Sep 21 11:31:55 I basically just sign them with my GPG and give an empty commit message :D Sep 21 11:32:31 Yes but it's work with after lollipop but what is wrong with the code that i sent to you, i have use VectorDrawableCompat, and it's the same issue with API 19 Sep 21 11:33:08 On another note, is InstantRun not working for you guys? I keep making changes to the code and only after I rebuild the app they appear. Sep 21 11:36:22 Idiosyncratic: what's InstantRun? Sep 21 11:37:36 i turned it off since it was introduced Sep 21 11:37:48 Arancio: AS/(I think)Gradle's debug feature which allows you to make changes to your code and not have to recompile it Sep 21 11:38:12 Idonsyncratic, yeah try disabling it, it;s one awesome shit when it works though Sep 21 11:38:23 Idiosyncratic: I don't know if I'm using it or not Sep 21 11:38:44 Arancio: it's enabled by default Sep 21 11:39:06 Arancio, if your using it, it will show up when you try running your app from AS Sep 21 11:40:40 what could possibly go wrong if i trigger a button click programmatically? Sep 21 11:40:44 idoko: disable and reenable it? Sep 21 11:43:01 idoko: why would you trigger a button click programmatically? Sep 21 11:43:13 idoko: are you testing the UI of your application? Sep 21 11:45:22 Arancio, no, wanted to recreate what happens when the button is clicked Sep 21 11:45:46 now that i think about it, i could just move the actions to a separate method Sep 21 11:45:50 idoko: then make a method of the code that is executed when the button is clicked Sep 21 11:45:56 idoko: and call that method Sep 21 11:46:27 idoko: simulating a button click for that purpose is sick and perverted. You should be ashamed Sep 21 11:47:12 you seem to feel very strongly about it Arancio Sep 21 11:47:16 Arancio: ashamed of spaghetti code? at least it isn't ramen Sep 21 11:47:23 :D Sep 21 11:49:25 I'm trying to control the virtual keyboard with this code https://gist.github.com/anonymous/12e134a08728d7affe2390a0d824c525 Sep 21 11:49:40 Does it make sense? Why is it not working? Sep 21 11:50:39 (By the way, I learned how to pastebin code from Android Studio!!! ! !!) Sep 21 11:51:03 u mean anony gist? Sep 21 11:51:15 Leeds would be proud of me: no more lengthy paste in channel Sep 21 11:51:28 Yeah, that Sep 21 11:51:45 Poor Android Studio. It isn't Visual Studio but I really underutilize it Sep 21 11:51:59 it's stuffed with features Sep 21 11:54:51 <_genuser_> hola devs Sep 21 11:55:02 _genuser_: hola gringo Sep 21 11:55:34 <_genuser_> oh, I can't say hola? (pronounced as "whola", if you're really trying to be gringo, lol). Sep 21 11:56:13 _genuser_: 'sup, chollo Sep 21 11:56:24 * _genuser_ googles chollo Sep 21 11:56:55 chollo = big deal Sep 21 11:57:00 <_genuser_> oooh a male of hispanic descent, who can be a gangsta/homey... Sep 21 11:57:10 <_genuser_> urban dict. ^ Sep 21 11:57:20 or a bum Sep 21 11:57:40 <_genuser_> one should have the k-jones to admit he's a gangsta... Sep 21 11:57:52 _genuser_: maaan, I thought you were a real esse Sep 21 11:58:09 <_genuser_> Idiosyncratic: not long ago I had to look up esse too, lol. Sep 21 11:58:21 <_genuser_> am I just losing street rep here? Sep 21 11:58:27 _genuser_: yeah, vato Sep 21 11:58:51 * _genuser_ draws the line at chollo for looking up new terms on google. Sep 21 11:59:11 :D Sep 21 11:59:18 stop this shit talk now Sep 21 11:59:31 squ: right? Sep 21 11:59:37 what Sep 21 11:59:42 I did like you do Sep 21 11:59:47 okey Sep 21 12:00:02 <_genuser_> Arancio: think I'm just chilling after the package deployment. I linked it as a dep in gradle and used it just fine, so it was deployed correctly. Sep 21 12:00:25 <_genuser_> I now just have to fix it up and deploy a new version and then move on to the real proj. my github readme has been updated too. Sep 21 12:00:40 sad my irc client doesn't have ignore Sep 21 12:00:58 _genuser_: cool. I can barely manage to use git locally Sep 21 12:01:47 <_genuser_> Arancio: I use hg for everything. Sep 21 12:01:57 hg? Sep 21 12:02:06 <_genuser_> I just used git for this one because I was going to push it to github. Sep 21 12:02:09 <_genuser_> hg = mercurial. Sep 21 12:02:19 ah right Sep 21 12:04:02 squ: ah, you sour gopnik Sep 21 12:05:22 Is there any advantage in using final on a method parameter of primitive type? Sep 21 12:15:27 Java: the one time you thought it was cool because of a feature it turns out you were mistaken and it actually doesn't have that feature Sep 21 12:43:52 Can I remove the status bar that appears when I log into Games services? Sep 21 12:44:51 My theme is fullscreen, but the status bar appears when logging in Sep 21 12:53:08 Idiosyncratic: Sorry, I have no idea what Games services is Sep 21 13:03:58 How do you style a Settings activity/fragment/ Sep 21 13:04:08 I have a regular preferences.xml file Sep 21 13:06:40 hi. im wondering if im misusing Recyclerview right now. I want to have a list of items (devices currently connected to) and i wish to change the displayed state whenever the connection state changes (for instance from Disconnected to Connected) but it feels very awkward and like im misusing it Sep 21 13:07:34 its alright Sep 21 13:07:59 kvikende, need more info, code perhaps too Sep 21 13:08:17 usecase seems reasonable Sep 21 13:11:05 hmm Sep 21 13:11:19 How to add for example a cardview in preferences.xml Sep 21 13:12:13 kvikende: recyclerview is tricky to use, it attaches/deattaches views frequently, so if you want to have a reference for a view in a given position, it may return null, even if you see the view there Sep 21 13:12:19 kvikende: just a tip Sep 21 13:12:37 "tricky", meh :p Sep 21 13:12:49 yeah, it feels very overkill for a list with like 3-4 views Sep 21 13:13:05 but i dont want to hardcode it :P Sep 21 13:13:58 if there's even a possibility of it being dynamic, there's no reason to hardcode a list of items Sep 21 13:14:16 kvikende, but do you actually have a problem? Sep 21 13:14:59 im trying to figure out a way of going from a broadcast -> correct item in recyclerview being updated Sep 21 13:15:37 ID? Sep 21 13:16:52 kvikende: if you feel guilty for misusing a RecyclerView you can always do charity. It will make you feel better Sep 21 13:17:54 yeah i might have to Sep 21 13:17:58 kvikende, usually you just update data in your backing adapter and call notifyItemChanged or whatsit Sep 21 13:18:05 Not sure what's the issue? :) Sep 21 13:18:27 * Zharf neither Sep 21 13:18:29 my issue is mostly that i dont really understand what im doing :D Sep 21 13:19:13 Adapter provides data to the view. Sep 21 13:19:22 Change data in adapter, tell view to look at adapter and update itself :) Sep 21 13:23:00 Any recommendations on what graphing library I should use? Sep 21 13:23:21 so a structure like: MainActivity receives broadcast. Calls method on fragment. fragment calls method on adapter. Adapter changes data and calls notifyItemChanged() ? Sep 21 13:23:30 not structure but flow Sep 21 13:23:37 Looking for bar charts, percentage pie charts, etc Sep 21 13:25:45 https://github.com/PhilJay/MPAndroidChart Sep 21 13:34:46 Wtf, I barely did added anything and my APK size went from ~12mb to 18mb o_O Sep 21 13:38:00 https://materialdesignicons.com/ handy as f*** Sep 21 13:40:56 raoul11: bookmarked :D Sep 21 13:41:22 i was using google's material icons site, but this one has a lot more Sep 21 13:41:36 in addition to the google ones Sep 21 13:41:53 plus direct support for vector drawables Sep 21 13:42:12 raoul11: do they require attribution? Sep 21 13:42:21 doesnt look like it Sep 21 13:42:40 ill give it anyways Sep 21 13:45:50 raoul11: they're apparently SIL. https://tldrlegal.com/license/open-font-license-(ofl)-explained Sep 21 13:45:58 *SIL OFL Sep 21 13:49:01 i dont see any attribution rules Sep 21 13:49:33 but yer correct, its SIL Sep 21 13:51:34 raoul11: the license is: no-one gives a damn Sep 21 13:51:51 awesome (: Sep 21 13:52:22 hate those licenses Sep 21 13:53:30 raoul11: I've seen some idiots on Wikipedia GPL'ing paintings of long-gone artists X_X Sep 21 13:53:50 lol Sep 21 13:53:57 class move Sep 21 13:55:12 Idiosyncratic: photos of the paintings Sep 21 13:55:15 Or recreations Sep 21 13:55:19 Those can be GPLd Sep 21 13:55:37 Although usually they're CCd Sep 21 13:55:59 justJanne: can a Michelangelo painting be copyrighted to the guy who takes the photo? Sep 21 13:56:09 Ridiculous Sep 21 13:56:15 No, but the photo can be copyrightwd Sep 21 13:56:23 You have to make your own photo Sep 21 13:56:37 Only then you can use it freely Sep 21 13:56:40 It's like music Sep 21 13:56:52 justJanne: what if it's in digital format such as those on wikipedia? Sep 21 13:57:13 Then the digital file is owned by whoever created the file Sep 21 13:57:17 For example: Sep 21 13:57:41 The berlin philharmonic orchestra plays mozart on stage, I record it, put it on wikipedia Sep 21 13:57:41 Copyright infrkngement Sep 21 13:57:42 Why? Sep 21 13:57:49 The orchestra owns that thing Sep 21 13:58:04 If i record a non-copyrihjted thing, Sep 21 13:58:09 justJanne: even so, I say to hell with people whom claim copyright on photos of works of art of long dead artists Sep 21 13:58:37 Say a gramophone record with copyright long gone, I own that digital file Sep 21 13:58:38 Even if the original recors is public domain Sep 21 13:59:14 justJanne: I understand that, but an orchestra playing that is expensive. Taking a photo of something just because your in its vicinity and putting on *Wikipedia* and demanding attribution and copyright for it is just being an asshole. Sep 21 13:59:45 justJanne: like this photo https://commons.wikimedia.org/wiki/File:Nasreddin_(17th-century_miniature).jpg Sep 21 14:00:38 justinmrkva Sep 21 14:00:54 justJanne *, what if i do a printscreen of an image on wikipedia Sep 21 14:01:18 thats my creation. Sep 21 14:01:39 I just don't care when it comes to really old art. I'll infringe on those recreations like a mofo. Sep 21 14:02:23 Even though, realistically, no-one in their right mind would find out about me using that and have the desire to sue me. Sep 21 14:02:36 stop this shit talk now Sep 21 14:02:57 or? Sep 21 14:06:57 raoul11: I would find it reasonable if you were to sell physical recreations of them, but on the internet where it can be so easily shared? Hell no. Sep 21 14:07:40 raoul11: I don't know. squ never mentioned the "or" part. Sep 21 14:15:07 Idiosyncratic cant remember what is was, but i read an article about a photographer who got sued for using her own pictures who were allegdly copyrights by a bigsite Sep 21 14:15:38 raoul11: assholes Sep 21 14:18:32 raoul11: she sold the pictures *with exclusivity* to the site? Sep 21 14:18:50 no, she actually distributed them freely Sep 21 14:19:00 i really gotta find it Sep 21 14:19:03 give me a min Sep 21 14:19:07 raoul11: that's nuts Sep 21 14:20:01 there it is Sep 21 14:20:02 http://www.latimes.com/business/hiltzik/la-fi-hiltzik-getty-copyright-20160729-snap-story.html Sep 21 14:21:07 how I do a async post in android code? I want to post an image to a web server? Sep 21 14:22:20 Arancio: please stop trolling Sep 21 14:23:42 <_genuser_> SimonVT: but what is teh internet without trolling. Sep 21 14:24:15 <_genuser_> flame wars and trolling is what drives you to check your message nonstop and add to the internet's hustle and bustle Sep 21 14:25:24 raoul11: lmao Sep 21 14:26:10 raoul11: they wanted some measly 120$ and now they're getting sued for 1 billion $ Sep 21 14:26:36 A batter place? Sep 21 14:26:57 Anyway, plenty of places to troll.. Just not here Sep 21 14:27:10 raoul11: I hope she wins and runs getty into the ground Sep 21 14:27:46 <_genuser_> SimonVT: that was my little joke, I'll quit adding to it now. :) Sep 21 14:30:47 raoul11: how can they even ask that small amount of money when they're so big? Sep 21 14:33:08 Not only that, but they threatened to *sue* for that amount of money Sep 21 14:40:34 this https://code.google.com/p/android/issues/detail?id=223044 Sep 21 14:49:13 <_vaibhavingale_> after installing the ota update, device should reboot automatically, I tried adding the reboot command in the updater-script. can anyone guide me on this? Sep 21 14:50:49 Try #android or #android-root if you need help with your device, _vaibhavingale_ Sep 21 14:53:42 <_vaibhavingale_> okie, thanks. Sep 21 14:56:04 Amazing. ActivityInfo.SCREEN_ORIENTATION_LOCKED has a minimum API of 18. Sep 21 14:56:40 What did you expect? Sep 21 14:57:01 Arancio: this should've been API 1 Sep 21 14:59:31 ermagherd they finally released api 24 google api system images Sep 21 15:00:17 One of a million reasons why Nougat is still below 0.1% of the Android devices Sep 21 15:01:27 yiati: that or they're still bloody expensive Sep 21 15:01:56 "One of a million reasons" Sep 21 15:06:38 raoul11: are you dead man? Sep 21 15:37:15 my 6p just only got nougat the other day Sep 21 15:37:19 it's no surprise Sep 21 15:39:31 Same here, I read somewhere they were having battery issues with Nougat + 6p which is probably why the release got delayed. Sep 21 15:43:43 I haven't had battery issues, but the ota took forever to come Sep 21 15:43:49 ended up sideloading Sep 21 15:46:09 Yeah, I waited for OTA, and I also haven't had issues Sep 21 15:46:41 So happy that clicking wifi/bluetooth/etc icon in the system tray doesn't toggle on/off Sep 21 15:46:58 I always accidentally hit it hoping to get to a detail screen Sep 21 15:52:33 Love how Samsung Support Centre comes up every time I press F7 while debugging. Thanks, Samsung. Sep 21 16:00:33 I use AlertDialog to display a box with a yes or no decision. But now I need one but with different actions laid out instead of yes/no. So I need four buttons in my dialog, one for cancel and three others for different actions. Can I still use AlertDialog to build this? Or do I need to use another tool? Sep 21 16:07:04 Bernzel: AlertDialog supports up to three buttons unless you show a custom view inside it. Sep 21 16:07:28 You might be able to just show three buttons (and clicking outside of the dialog or clicking Back cancels the dialog). Sep 21 16:08:11 yiati, yes best design decision ever.... Sep 21 16:08:18 TacticalJoke, just found the setMultiChoiceItems parameter. Shouldn't this be able to take mmore than 3? Sep 21 16:09:02 Hello guys Sep 21 16:09:13 Have you guys used Google Keep? Sep 21 16:09:31 There is like a small frame at the bottom that is always there even when you scroll down Sep 21 16:10:09 This website is awesome http://www.materialdoc.com/ Sep 21 16:10:24 very easily shows all the Material UI components and how to quickly implement them Sep 21 16:11:02 Any idea on what name that component has? Sep 21 16:11:27 Bernzel: AlertDialog.Builder.setMultiChoiceItems defines a checkable list to display, not a set of buttons. Sep 21 16:11:51 Looks like a LinearLayout Sep 21 16:12:13 Bernzel: AlertDialog.Builder.setItems might work, though. Sep 21 16:13:19 By "work" I mean "be good enough". Sep 21 16:13:36 "Google hasn’t made it available on the web, on desktop, or on tablets" ha Sep 21 16:13:42 lol @ Allo Sep 21 16:13:52 Alol Sep 21 16:13:59 TacticalJoke, I see. Well a checklist like that might work aswell. I'll try them out, thanks Sep 21 16:16:13 rangu: Could be done with bottom nav bar, https://material.google.com/components/bottom-navigation.html Sep 21 16:18:29 "In Google Allo you’ll also be introduced to a preview edition of the Google Assistant." No longer forever-alone. Sep 21 16:18:50 Oops, mean to quote this: "With your Assistant in Allo, you can have a conversation with Google". Sep 21 16:19:09 * Idiosyncratic googles Google Allo Sep 21 16:19:55 Yeah but I dont want navigation yiati Sep 21 16:20:19 Think that 1984 warned us of this Sep 21 16:21:30 hi Sep 21 16:21:37 someone used styles for edittext? Sep 21 16:21:43 It seems for me it is not working Sep 21 16:21:52 I guess the decision boils down to "Do you want to sell your private life to Facebook or Google?" And it's the kind of selling where you make no money back. Sep 21 16:22:21 when I set textcolor to a specific edittext the color will change but when I use a style with @color/colorAccent it won't work Sep 21 16:22:36 @color/colorAccent is #ffffffff Sep 21 16:22:39 rangu: I have no idea what you want to do :) plus they are just buttons. You can have them do whatever you want. Also you can just make your own RelativeLayout with some buttons in it. Sep 21 16:22:55 Hmm Sep 21 16:22:56 TacticalJoke: they probably rationalize them buying our souls with providing us free stuff Sep 21 16:23:03 I want the same thing Google Keep has Sep 21 16:23:22 rangu: Sounds good Sep 21 16:23:30 https://play.google.com/store/apps/details?id=com.google.android.keep&hl=en Sep 21 16:23:39 Check the bottom bar Sep 21 16:23:47 "Say it privately in Incognito mode." hahahaha Sep 21 16:23:53 rangu: Yeah, I know. I use it all the time Sep 21 16:23:53 Nice one, Google Sep 21 16:30:14 Samsung doesn't honor the file picker intent ? Sep 21 16:30:28 "You have to fire a completely different intent to get the file picker to be brought up on Samsung devices. " Sep 21 16:30:30 dafuq Sep 21 16:31:28 Ben_1: Works for me. Sep 21 16:31:45 g00s: Boo Android OEM requirement process Sep 21 16:31:50 ah ok I have to use style= not theme= Sep 21 16:32:20 TacticalJoke: TextColor works for me too but textColorHint not Sep 21 16:32:52 my hint does not have the same color like my text Sep 21 16:33:37 Setting the hint colour works for me too. Sep 21 16:36:59 TacticalJoke: are you using @color/colorAccent? Sep 21 16:38:04 Ben_1: Why complicate? Just set `android:textColorHint="#f00"` in the layout. All this indirection just makes your task harder. Sep 21 16:38:14 s/set/say/ Sep 21 16:38:39 TacticalJoke: because I want to change the color of every edittext and I don't want to set the color for every single EditText Sep 21 16:38:44 We shouldn't have to care about whether `@color/colorAccent` is set and what it is set to in order to figure this stuff out. Sep 21 16:39:53 TacticalJoke: it seems even when I change the hint color directly in my EditText it won't work Sep 21 16:42:26 TacticalJoke: Ahhh probably it won't work because I'm using a textInputLayout Sep 21 16:42:47 the hint is filled by this component so I have to change the color there Sep 21 16:54:29 Allo is pretty neat Sep 21 16:57:20 i haven’t gotten my confirmation SMS yet Sep 21 16:57:52 i’m on google voice, and i remember it took a while with Duo (which I think I’ve used once since it came out) Sep 21 16:58:11 Mine was automatic Sep 21 16:58:19 Filled it in as soon as the sms came in Sep 21 16:59:05 hell, I don’t even see a place where I can enter the code Sep 21 17:01:27 allo is out? Sep 21 17:02:18 huh, does allo work with hangouts? looks like no Sep 21 17:02:42 Nope.. Sep 21 17:02:45 No multi device support Sep 21 17:02:46 No web ui Sep 21 17:02:48 that's pretty dumb Sep 21 17:02:51 No seamless sms experience Sep 21 17:02:54 No backup Sep 21 17:03:03 No android iMessage Sep 21 17:03:13 wtf is the point, it's a walled garden... Sep 21 17:03:26 the point is to train the Google Assistant Sep 21 17:03:47 to capture data - not to sell, but to learn from Sep 21 17:03:59 Leeds: that was my paranoid thought as well Sep 21 17:04:08 Take hangouts, remove a few useful features.. Add assistant and sub-par texting Sep 21 17:04:10 Release with new name Sep 21 17:04:31 eh, paranoia is overrated Sep 21 17:04:44 hell folks, I have a generic clone android tv box that I would like to "roll my own" rom for , I know the hardware within the device all appear to be of the shelf. the processor is a AMLogic S805 with Hynix nand and a realtek wifi radio chip. The device will boot and run a test rom however ..the radio doesnt seem to work .. it is rooted .. where would a good place be to start to roll my own os fo this device Sep 21 17:04:50 training google assistant is much more useful if the app is actually usable Sep 21 17:04:53 *hello Sep 21 17:04:58 not being able to interop is useless Sep 21 17:04:59 ghostD0g: Try #android or #android-root for help with your device Sep 21 17:05:11 thank you :) Sep 21 17:13:35 Can I deny internet permission to an app on my rooted phone? Sep 21 17:13:57 Arguggi: Try #android or #android-root for help with your device Sep 21 17:14:29 SimonVT, oh ok thanks wasn't sure where the best place to ask was Sep 21 17:28:01 I could be wrong, but can’t you go into the App settings and deny internet like you can any other permission? I know its granted by default Sep 21 17:30:40 I only see 2 permissions and they are not internet, on the "All permissions" list internet is present so it does permission Sep 21 17:31:01 can't use adb pm revoke on internet either :/ Sep 21 17:31:20 The only solutions seems to be a local proxy Sep 21 17:33:19 Arguggi: AFwall? Sep 21 17:33:23 i think he means the some kind of app permission revoker Sep 21 17:33:28 not runtime permissions Sep 21 17:34:21 I mean, if you don’t want it using internet, then you probably don’t want to be running it at all Sep 21 17:34:47 Arguggi: do you want to block an app's access to the internet? Sep 21 17:35:32 Idiosyncratic, ideally yes, without using firewalls/proxys, I thought that since it the INTERNET permission exists it would be easy to revoke, apparently not Sep 21 17:35:49 s/it// Sep 21 17:36:08 when i create a java class on a package it gives the option to put on "interface(s)", how do i set more than 1? and how can i see if a java class that was already created has interfaces linked to it? thank you Sep 21 17:36:22 comma separated list Sep 21 17:36:59 I’m not sure if that dialog lets you do it, but in the file you can simply do `class Foo implementes Bar, Baz, Fizz, Buzz1 Sep 21 17:37:25 can anyone think of a reason it will take onDestroy 5+ seconds to be called after onFinish() is called? Sep 21 17:37:39 it’s waiting for garbage collection? Sep 21 17:37:48 I no there is no gaurantee that it will be immediately called but its takking so long its causing issues. Sep 21 17:37:50 there could be something that’s holding onto a reference Sep 21 17:38:05 you shouldn’t be relying on onDestroy being called at all Sep 21 17:38:18 s73v3r thanks, and do you know how can i see if a java class already created had interfaces? (it doesn't say implements on any part of the code) Sep 21 17:38:19 not my architecture, trying to help a friend. Sep 21 17:38:40 hexagonSun_: If a class implements an interface, it’ll say implements Sep 21 17:39:16 now, you could be subclassing a class which implements something, in which case that won’t be readily obvious Sep 21 17:39:16 thank you s73v3r Sep 21 17:40:38 Ping_2_Ur_Pong: Unfortunately there isn’t a guarantee. you can check to see what kind of references are still holding onto the activity Sep 21 17:40:47 like inner classes and the like Sep 21 17:41:05 s73v3r how to know then? im pretty sure i have a java class that's linked to interfaces, but doesn't say implements on any part of the code (it's a simple item touch helper callback, its interfaces are the item touch helper adapter and viewholder and such) Sep 21 17:41:20 look at the superclass Sep 21 17:43:12 of the interfaces? Sep 21 17:43:36 no, of your class Sep 21 17:44:36 if your class doesn’t declare that it implements an interface, then the only place that could be is in the superclass Sep 21 17:44:39 this is basic java Sep 21 17:44:54 can anyone think of a reason it will take onDestroy 5+ seconds to be called after onFinish() is called? < profile, so you will know Sep 21 17:45:40 there is no point speculating what the cause cauld be, when you can find exactly what the cause is Sep 21 17:52:37 g00s: ... Sep 21 17:56:36 hey thepoosh Sep 21 17:56:56 looks like google reneged on their privacy claims with Allo Sep 21 17:57:31 wut? Sep 21 17:57:34 what happened? Sep 21 17:57:39 http://www.theverge.com/2016/9/21/12994362/allo-privacy-message-logs-google Sep 21 18:00:36 can't install on the israeli play store Sep 21 18:02:38 thepoosh https://twitter.com/Snowden/status/778585040976502784 Sep 21 18:03:32 o: Sep 21 18:04:34 raoul11 snowden knows ... Sep 21 18:04:49 raoul11: all he is saying is that they have analytics integrated Sep 21 18:04:58 which doesn't surprise me or frighten me Sep 21 18:05:02 yeah, but he doesnt know glide is actually a mossad operation 0____o Sep 21 18:05:07 because that is just the reality with internet Sep 21 18:05:15 MUHAHAHAHAHAHA Sep 21 18:05:18 ohi thepoosh (: Sep 21 18:05:18 raoul11 haha Sep 21 18:05:26 hi hi Sep 21 18:05:33 do you guys work together :P Sep 21 18:05:58 us and google? Sep 21 18:06:01 not on allo Sep 21 18:06:07 thepoosh you and raoul11 Sep 21 18:06:09 to the best of my knowledge Sep 21 18:06:11 oh Sep 21 18:06:12 no Sep 21 18:06:25 he's a hipster from TLV while I am a cool cat from JLM Sep 21 18:06:49 thepoosh might hire me as a new junior QA Automation Sep 21 18:07:27 ok Sep 21 18:07:37 <_genuser_> lol our company's new focus is "IoT" Sep 21 18:07:57 yep Sep 21 18:07:59 <_genuser_> they want teh new IoT market, have assigned existing people as IoT experts now Sep 21 18:08:01 sounds about right Sep 21 18:08:05 IoT is all the rage now Sep 21 18:08:06 <_genuser_> what does that even mean? Sep 21 18:08:12 watches Sep 21 18:08:18 and google glass (NOT) Sep 21 18:08:30 and android TV and apple TV Sep 21 18:09:00 <_genuser_> I can understand it being (ab)used as a marketing term. but it's really a scalable web platform as far as I can see it. Sep 21 18:09:16 a scalable web platform ... Sep 21 18:09:34 g00s: https://events.withgoogle.com/firebase-dev-summit/ Sep 21 18:09:38 are you coming? Sep 21 18:09:49 <_genuser_> the gadgets directly connecting to your network, and needing management, I can understand that. Sep 21 18:09:51 raoul11: ^^ Sep 21 18:10:13 only if fontain is coming Sep 21 18:10:15 thepoosh no Sep 21 18:10:22 <3 fontain Sep 21 18:10:25 ha Sep 21 18:10:42 <_genuser_> If you're an IoT service provider, like a platform or a set of services, I can see you using IoT. Sep 21 18:10:44 thepoosh chan 10 right nao, an ad to a new israeli app called bosco Sep 21 18:10:56 which is basically spyware for parents over their kids Sep 21 18:10:57 <_genuser_> But I'm not sure why it's just catching on and going out of control. Sep 21 18:11:21 <_genuser_> ok, I don't want to step into an existing conversation. I'll keep it down, heh Sep 21 18:12:18 https://play.google.com/store/apps/details?id=com.bosco.boscoApp Sep 21 18:12:20 thepoosh ^^^ Sep 21 18:12:22 GTFO Sep 21 18:12:45 5 FUCKIN INSTALLS and a 5 min's review on prime tv Sep 21 18:13:21 someone sucked major dick there Sep 21 18:13:31 thepoosh did you see this ? http://android-developers.blogspot.com/2016/09/extending-web-technology-with-android.html Sep 21 18:13:34 probably Bar Refali's brother Sep 21 18:13:35 sFbi inc Sep 21 18:13:37 gtfo Sep 21 18:13:44 ""Paper Planes started as a simple thought - “What if you could throw a paper plane from one screen to another?” Sep 21 18:14:04 they should have had another thought “What if you could throw a Allo conversation from one screen to another?” " Sep 21 18:15:53 fine, afk Sep 21 18:17:28 thepoosh wondering if there will be an Android Dev Summit Sep 21 18:19:15 meh Sep 21 18:21:23 i should have gone last year. Sep 21 18:23:31 thepoosh Android Dev Summeht Sep 21 18:24:02 why did they remove "refresh" in the preview xml mode Sep 21 18:24:10 gdit!!! Sep 21 18:24:31 need to save dummy stuff or rotate to have a refresh-like Sep 21 18:25:37 anyone tried the VS Code with Java support? Sep 21 18:26:48 oh right Allo is out Sep 21 18:27:50 s73v3r: doing that right now Sep 21 18:37:04 so it took me about 5-10 minutes to figure out how to install packages in Visual Studio Code Sep 21 18:37:24 and this was reading through their startup documentation Sep 21 18:42:32 in the xml files for layout some things say android:* and others say tools:* what is the tools used for ? I've seen this in tutorials but no explainations Sep 21 18:48:02 The preview window Sep 21 18:48:13 e.g. for dummy text Sep 21 18:52:31 Edward Snowden: What is #Allo? A Google app that records every message you ever send and makes it available to police upon request. Sep 21 18:53:25 * pfn ponders some more changes to qicr before releasing a new version Sep 21 18:53:48 only upon subpoena Sep 21 18:53:58 what is qicr? Sep 21 18:54:22 yeah, but as has been shown, a subpoena isn’t as hard to get as it should be Sep 21 18:54:58 * pfn shrugs Sep 21 18:55:11 not hard to choose incognito mode, or other avenues of communication Sep 21 18:55:17 phone texts suffer from the same problem Sep 21 18:55:27 carrier will provide the information upon request Sep 21 18:55:46 people like to make a big deal out of nothing Sep 21 18:56:07 i don’t think this is making a big deal out of nothing Sep 21 18:56:23 why does it still suffer from the same problems, if it came much later, and is supposed to be better? Sep 21 18:56:56 it's not better in that regard Sep 21 18:57:00 it's the status quo Sep 21 18:57:03 which is perfectly acceptable Sep 21 18:57:14 no, not really Sep 21 18:57:18 especially for enormous improvements to QoL in other areas Sep 21 18:57:34 I am happy with the status quo Sep 21 18:57:40 most people aren’t Sep 21 18:57:43 if you're not, you can use other options Sep 21 18:57:45 no, most people are Sep 21 18:57:57 only a very few are privacy conscious Sep 21 18:58:12 if they were, they would not be texting via sms Sep 21 18:58:17 and criticising them for not improving in this very important area should be done Sep 21 18:58:34 the vast majority of people don't consider it importing Sep 21 18:58:39 important Sep 21 18:59:05 enough do to make it an issue Google should have known about Sep 21 18:59:18 google knows about it, their market studies indicate that it doesn't matter Sep 21 18:59:28 pfn: what is qicr? Sep 21 18:59:31 which is precisely the reason the status quo continues Sep 21 18:59:32 Arancio, use google Sep 21 18:59:57 no. that’s not an acceptable answer for the status quo Sep 21 19:00:07 I googled. Found nothing that could possibly be a project of yours Sep 21 19:00:09 which is why the mounting criticism against them Sep 21 19:00:09 perhaps not for you Sep 21 19:00:14 mounting? eh, not really Sep 21 19:00:16 vocal minority Sep 21 19:00:20 i disagree Sep 21 19:00:51 without that, there’s really no reason to use allo over any of the other options Sep 21 19:01:38 pfn: I was reading the results for oicr. qicr is so obscure that google returns the results for oicr instead Sep 21 19:01:45 I found it now Sep 21 19:02:04 hurray for google auto-changing shit... Sep 21 19:02:33 so obscure but it's the first link if you type "qicr" Sep 21 19:03:02 sometimes google replaces your search term if it thinks it might be a typo... Sep 21 19:03:31 which means you have to go and click on what you actually meant to type Sep 21 19:03:50 pfn: i just always use double quotes Sep 21 19:04:56 it does not work anymore properly the strict expression with double quotes Sep 21 19:05:12 they changed (and removed) so many things since decade Sep 21 19:05:49 let's hope it's not like the playstore search soon Sep 21 19:06:24 huh? Sep 21 19:06:39 i won't be able to use google anymore if double quotes stop working. Sep 21 19:06:44 pfn: does qirc support blowfish or OTR or OMEMO actually now? Sep 21 19:07:50 textual supports OTR, i haven't used it yet Sep 21 19:07:55 fucking google, they are lagging hard on sync from jcenter to central Sep 21 19:08:02 (also http://i.imgur.com/U6l5pEe.png @ pfn) Sep 21 19:08:02 wtf is their problem... Sep 21 19:08:14 it's like a single click... (sync my shit) Sep 21 19:08:28 even this thing is ahead of pfn’s app: https://github.com/nbaztec/Qirc Sep 21 19:09:02 justJanne its qicr Sep 21 19:09:11 g00s: ooh Sep 21 19:09:12 zinx, https://productforums.google.com/forum/#!topic/websearch/du8TLS9Hphk random finding where ppl already started to complain in ... 2011 Sep 21 19:09:14 that explains a lot Sep 21 19:09:30 who names an IRC client in a way that’s a common typo for IRC? Sep 21 19:09:38 i think it's good for ppl like my dad & mom, not for CS dev & other fields Sep 21 19:09:49 we should have the choice but we don't have. Sep 21 19:10:13 adq: the issue is the way google handles search Sep 21 19:10:23 I spent the last week implementing fulltext search for IRC, Sep 21 19:10:39 and just stemming the words, using word2vec, etc improves search speed by orders of magnitude Sep 21 19:10:42 well, they are more or less expert in how to handle search Sep 21 19:10:45 i think it's a choice Sep 21 19:10:46 like, from hours to milliseconds Sep 21 19:10:55 seriously, for Google, it’s a huge cost thingy Sep 21 19:11:03 their scale cannot be compared to searching into an IRC db or some big log files i believe Sep 21 19:11:06 (no offense plz) Sep 21 19:11:17 well, it kinda can Sep 21 19:11:24 Google does the same, just parallelized Sep 21 19:11:33 if you have one server searching 10GB in 200ms, Sep 21 19:11:43 or a million servers searching 10 million GB in 200ms Sep 21 19:11:51 i think it's beyond my limited knowledge of big-o and tree and arc between level in trees & stuff Sep 21 19:12:07 if the search speed halves in my case, Sep 21 19:12:10 google’s profit doubles Sep 21 19:12:17 you can get back actual plaintext search, Sep 21 19:12:37 if you are willing to in turn give up Google+, Wave, their loon project, etc Sep 21 19:12:44 :D Sep 21 19:13:04 even if we’d assume the most naive search system Sep 21 19:13:18 you’d replace every word, wherever possible, with a pointer to its dictionary entry, Sep 21 19:13:18 I spent the last week implementing fulltext search for IRC, < i can recommend an algo I used, K-M-P Sep 21 19:13:20 and stemm words Sep 21 19:13:23 knuth morris prat Sep 21 19:13:30 multi pattern parallel search Sep 21 19:13:31 pretty efficient Sep 21 19:13:39 (for text but also binary stuff like memory address) Sep 21 19:13:41 nah Sep 21 19:13:42 justJanne: the typical solution is to search for the stemmed version, then filter out the non-matching results Sep 21 19:13:47 i really enjoyed this algop Sep 21 19:13:49 -p Sep 21 19:13:57 zinx: yes, that’d work well for filtered text still, Sep 21 19:14:09 but that breaks down when searching for stuff that’s in no dictionary Sep 21 19:14:18 "qicr" is in no dictionary Sep 21 19:14:34 there are so many ways anway Sep 21 19:14:35 Why is everyone in this IRC channel working to an Android IRC app? Sep 21 19:14:41 adq: this was the desired result: https://dl.kuschku.de/videos/2016-09-16_04-03-36.mp4 Sep 21 19:14:47 justJanne: i would guess that all four letter combinations are part of one of their lists Sep 21 19:14:54 best is to know in advance how to store things, assuming search will rain upon Sep 21 19:14:59 justJanne: simply for being 3-4 letters Sep 21 19:15:08 yeah, zinx, simple trigram indexing Sep 21 19:15:14 used also for typo matching Sep 21 19:15:19 Hello all, quick Android Firebase / general Service related question: Is it possible to manually call the methods defined in the firebase service? My reasoning for wanting to do this: whenever the services OnTokenRefresh is called, it also calls sendMessageToServer, which updates a user model in the database. Since this is a background service the code for making the http POST doesn't need to be in an async task. I was just wondering if it was Sep 21 19:15:20 possible to do something like call myFireBaseReference.sendMessageToServer, instead of creating a new async task which pretty much makes the same POST request as the service would have. I've tried binding the service, however I am unable to @override onBind because it was declared as final by firebase. Sep 21 19:15:20 I used https://www.postgresql.org/docs/9.1/static/textsearch-controls.html and trigram indexing both Sep 21 19:15:45 stosho_: not directly, no Sep 21 19:15:53 best you could do is send an Intent directly to the service Sep 21 19:16:10 nice vid justJanne Sep 21 19:16:29 Arancio, because we all irc too much Sep 21 19:16:32 and all other clients suck Sep 21 19:16:33 Arancio: because that’s what we use ourselves, and we all need irc Sep 21 19:16:46 and because every client but mine sucks Sep 21 19:16:53 it's a classic exercise to at some point in a dev life to make an irc client and discover the famous RFC Sep 21 19:17:10 adq: IRCv3 is now where it’s at Sep 21 19:17:15 eheh Sep 21 19:17:15 most of the RFC is barely used anymore Sep 21 19:17:25 2oldschool4u Sep 21 19:18:33 justJanne: Are you saying that pfn's client sucks? Sep 21 19:18:46 yes, and he’ll say mine sucks Sep 21 19:18:50 :)) Sep 21 19:19:00 it's k, I think justJanne's sucks, too Sep 21 19:19:04 well, from the UI perspective i would choose justJanne over pfn Sep 21 19:19:20 but i never tried any of them, just saw screenshots Sep 21 19:19:23 adq: don’t be fooled, pfn’s client actually has awesome material design Sep 21 19:19:29 my screenshots are like 5 years old Sep 21 19:19:30 he jsut never updated the screenshots Sep 21 19:19:33 lol Sep 21 19:19:43 also, pfn has me on ignore, Sep 21 19:19:52 so this entire conversation is extremely funny to see Sep 21 19:19:56 i did an irc client on android, too but never released, like in 2010 when i started android Sep 21 19:20:04 pfn: and your Google Play page is too nerdy Sep 21 19:20:06 i was interfacing it with cleverbot api, at that time it was free and open Sep 21 19:20:26 pfn: you need someone to take care of communication for you Sep 21 19:20:37 not particularly interested Sep 21 19:20:40 also, pfn has me on ignore < gdit, cannot you all get along :3 Sep 21 19:21:38 you are too nerdy inside Sep 21 19:21:49 :p Sep 21 19:21:52 Arancio: btw, I recently started doing mockups for promo materials for IRC apps, like http://imgur.com/a/fGWMR Sep 21 19:21:57 what’d you think of the images? Sep 21 19:21:59 it's irc, it's not a mass medium Sep 21 19:22:06 Arancio, nerds do maths, not android Sep 21 19:22:06 I’m still not very experienced at design Sep 21 19:24:10 justJanne, first pic is not enough ok, the font of quasseldroid and maybe its shadow too, and the logo color is too close (but not enough) from the title bar blue of your app, also this dark overlay on the right of the tablet is no good, etc Sep 21 19:24:44 adq: the dark overlay is cause nav drawer is open Sep 21 19:24:54 yup, but it's horrible (for me) Sep 21 19:25:03 I’ll embed the drawer soon anyway Sep 21 19:25:16 the second pic is much more OKish Sep 21 19:25:32 that the first pic is cut off is known, it’s for the header on the top of the google play listing Sep 21 19:25:32 of course, less things are going on on it Sep 21 19:25:40 you know which one I mean? Sep 21 19:25:43 the feature image Sep 21 19:25:45 yep Sep 21 19:25:58 I usually tend to mimic what they do on some google app or famous app I like Sep 21 19:26:27 well, I went through the play store listing of every single messaging or social or IRC or xmpp app, Sep 21 19:26:31 but it's often rudimentary, https://lh3.googleusercontent.com/u87KJ_wja0muTO0hdxvrfgspYQ5MEpupZkfhct_vFEZ7DNszU-h-R5jkP1PplvncGAA=h900-rw on this one I even took the liberty of using a "fun" font on top Sep 21 19:26:36 and printed all images out and pinned them to the wall Sep 21 19:26:39 and then made this Sep 21 19:26:54 for example, i noticed most screenshots of big app like the one I pasted above, has very little margin on left & right Sep 21 19:26:55 justJanne: The images are nice. The excerpt of IRC chat that is visible in the second image is nerdy too. But in the end I guess that IRC users are nerds thus that chat may be appropriate. Other people would be scared by phrases like "USB2 is also very CPU-inefficient, even for its low bandwidth" :D Sep 21 19:26:58 also, I can’t open that link, it’s in webp Sep 21 19:27:10 ah damn, let me put it elsewhere Sep 21 19:27:49 justJanne: thanks, just a little clarification: would this involve creating a new IntentService that is separate from the FirebaseInstanceService itself? Or somehow just overriding the onHandleIntent in the FirebaseInstanceService to call whatever methods based on the intent data Sep 21 19:27:53 justJanne, http://imgur.com/a/vqvKF Sep 21 19:30:04 * azv4 wonders why his Genymotion emu's dont show up sometimes Sep 21 19:30:44 azend|vps: is it pirated? Sep 21 19:30:54 erh, azv4 Sep 21 19:31:10 that looks fun, adq Sep 21 19:31:15 no pirated Sep 21 19:31:21 but playful isn’t exactly what I’m going for here Sep 21 19:31:30 for sure Sep 21 19:32:23 azv4: are you using the stock launcher? Sep 21 19:32:35 zinx, Genymotion's launcher? or AS? Sep 21 19:32:36 azv4, sometimes it'z vboxheadless which is creating problems, sometimes Sep 21 19:32:43 azv4: android Sep 21 19:33:12 ahh, I'm just clicking the green arrow and "Select Deployment Target" reports no devices sometimes Sep 21 19:33:19 azv4: ah Sep 21 19:33:41 azv4: maybe latency thing + swap? Sep 21 19:33:45 How would you store the history of changes of a rich text document in a database? what kind of database would you use? Sep 21 19:33:51 azv4: idk Sep 21 19:34:22 Has anyone ever had an android studio build corrupt gradle? Sep 21 19:34:40 That just happened today, the fix was easy but tracking it down was a bit of a pain Sep 21 19:35:55 hello Sep 21 19:37:25 mRokita: hello!!!! Sep 21 19:38:13 konk3r: I think Android Studio 2.2 has ruined a gradle file while updating a project Sep 21 19:38:46 All I ended up having to do was delete my .gradle folder so it wasn’t terrible, just annoying haha Sep 21 19:39:02 And for some reason I couldn’t get my gradle wrapper to point to java 1.7 Sep 21 19:39:43 I tried pointing it to the java 1.7 home directory in gradle.properties and I set JAVA_HOME but it ignored it. I ended up having to delete java 8 Sep 21 19:40:25 konk3r: why would you want to do that Sep 21 19:40:27 Can you use Java 8 to build Android applications? Sep 21 19:40:51 We use some library that can’t compile with java 8 =/ Sep 21 19:41:17 It’s annoying. We get errors about some apache library class not existing Sep 21 19:41:41 jdk8 can compile to java7 code Sep 21 19:42:02 Do you just need to set a property to tell it to? Sep 21 19:42:29 It definitely doesn’t work out of the box for us. Sep 21 19:42:37 yes Sep 21 19:48:23 * pfn twiddles thumbs for google to publish 2.2 to maven central Sep 21 19:48:38 jcenter should not be the default, unless users want to use beta/rc versions Sep 21 20:01:29 hmm, qicr has 0 android 7.0 users... no one to appreciate the new changes, too bad Sep 21 20:26:17 <_genuser_> pfn: forget maven central. I prefer jcenter. Sep 21 20:27:03 no you don't Sep 21 20:27:08 you prefer *publishing* to jcenter Sep 21 20:27:11 <_genuser_> I really realy do. Sep 21 20:27:17 central is better in all regards besides publishing Sep 21 20:27:22 <_genuser_> oh, ok, you're right on that count. Sep 21 20:27:34 <_genuser_> so what's the difference that you're focusing on? Sep 21 20:27:50 <_genuser_> I had recently published to jcenter and I was ready just how much of an annoyance maven central is vs. jcenter. Sep 21 20:28:03 the difference is that jcenter is not a default resolver for any build tool Sep 21 20:28:06 gradle included Sep 21 20:28:08 <_genuser_> and publishign to bintray (before pushign to jcenter) was a huge annoyance. So I figured maven central would make anyone go nuts. Sep 21 20:28:17 bintray = jcenter Sep 21 20:28:28 <_genuser_> pfn: sure, I see that bit, and it's quick and easy to change to maven in android studio. Sep 21 20:28:47 if you published to jcenter, publishing to central is free (if you've already been setup on central) Sep 21 20:28:55 not interested in "quick and easy to change" Sep 21 20:29:00 <_genuser_> oh bintray and jcenter have a little separation. once you publish to bintray, you have to then request a push to jcenter. Sep 21 20:29:00 I'm interested in: it is the default Sep 21 20:29:03 <_genuser_> it's two steps. Sep 21 20:29:14 yes, for all intents and purposes, basically the same Sep 21 20:29:23 and once you get onto jcenter, it's basically the same process to get to central Sep 21 20:29:25 click a sync button Sep 21 20:29:27 and it goes to central Sep 21 20:29:38 google already has it setup Sep 21 20:29:42 <_genuser_> well, if they're slow, it takes forever for it to make it from bintray to jcenter. Sep 21 20:29:46 but they're lazy as fuck about actually clicking the button Sep 21 20:30:01 a couple hours Sep 21 20:30:05 not days Sep 21 20:30:15 <_genuser_> 0.0.1 of my took 48hours without resolution. Sep 21 20:30:19 <_genuser_> 0.0.2 was couple of hours. Sep 21 20:30:32 that's because you were still getting setup Sep 21 20:30:37 after that, it's always a couple hours Sep 21 20:30:47 <_genuser_> well they never published 0.0.1 Sep 21 20:30:55 <_genuser_> I just dropped the request by not pursuing it further. Sep 21 20:31:13 <_genuser_> technically it's still outsttanding becuse they haven't rejected or accepted my request. Sep 21 20:32:08 * pfn shrugs Sep 21 20:32:18 <_genuser_> but I also deleted the package after 48hours. I figured it will help them get closure faster. heh Sep 21 20:33:12 <_genuser_> ok back to the question tho. what's better about maven central? Sep 21 20:33:20 <_genuser_> it's faster? Sep 21 20:33:27 it's the default Sep 21 20:33:30 by all tools Sep 21 20:33:48 and once you've published to jcenter, getting to central is almost free Sep 21 20:34:10 <_genuser_> but you prefer maven central because it's default in most tools (except AS)? Sep 21 20:34:16 it's the default in *all* tools Sep 21 20:34:18 including AS Sep 21 20:34:30 <_genuser_> maven central? AS is defaulting to jcenter now. Sep 21 20:35:16 hmm, maybe I'm a little off, gradle doesn't even default to having any repositories at all Sep 21 20:35:24 it's not a default if it's set in the build file Sep 21 20:35:37 and jcenter() must be listed in repositories{} Sep 21 20:35:38 <_genuser_> My 2.1.2 AS is using jcenter as default in the build.gradle when I do a new project. Sep 21 20:35:44 it's not default Sep 21 20:35:48 it's generated for you int he template Sep 21 20:35:51 but it is not the default for gradle Sep 21 20:35:53 <_genuser_> oh, I see what you're saying. Sep 21 20:36:01 <_genuser_> if AS hadn't specified it, gradle would have used maven central. Sep 21 20:36:06 maybe I'm mistaken about gradle defaulting to central, though Sep 21 20:36:22 it's possible that gradle doesn't default to any repo at all; not sure, I don't really use gradle Sep 21 20:36:33 <_genuser_> I just thought that AS defaults to jcenter, so it's the new hip thing. Sep 21 20:36:46 <_genuser_> I have never published any android/java lib before this one. Sep 21 20:36:58 <_genuser_> I wanted the user to have to modify the least bit of build files. Sep 21 20:39:52 normally you get that by using maven central Sep 21 20:40:20 <_genuser_> but your point about one click to push to maven central is valid too. Sep 21 20:40:28 but it looks like I'm wrong about central+gradle though Sep 21 20:40:37 <_genuser_> it just needs to be signed by my key, and it's maven ready. Sep 21 20:41:03 <_genuser_> it was a big accomplishment just getting it on jcenter, lol. Sep 21 20:41:19 https://docs.gradle.org/current/userguide/artifact_dependencies_tutorial.html#sec:repositories_tutorial Sep 21 20:41:21 meh, annoying Sep 21 20:41:32 <_genuser_> I tried 20 ways to get it to upload to bintrays and wasted 2 days on it. the darn bintray plugin is very fragile Sep 21 20:42:11 <_genuser_> oh, "by default gradle does not define any respositories". Sep 21 20:42:15 <_genuser_> would be nice to have a defualt, tho. Sep 21 20:42:49 yeah, everything else defaults to central Sep 21 20:43:14 <_genuser_> right, plus I jsut like software, components, classes, servies to have a default. Sep 21 20:44:49 man, I really love the nougat notification Sep 21 20:44:53 changes Sep 21 20:45:05 <_genuser_> nougat is android 7? Sep 21 20:45:15 yes Sep 21 20:45:16 <_genuser_> where are you running it? Sep 21 20:45:22 6p and 9 Sep 21 20:45:35 <_genuser_> did it auto push or you rooted it? Sep 21 20:45:55 <_genuser_> I'm not even sure how to upgrade my api 19, galaxy alpha to android 5, lol. Sep 21 20:45:59 nexus9 got it ota, 6p I did sideload (no root, no bootloader unlock) Sep 21 20:46:06 sux2bu Sep 21 20:46:16 <_genuser_> well, no, not that. heh Sep 21 20:46:25 <_genuser_> I intentionally chose the cheapest phone I could find unlocked. Sep 21 20:46:31 <_genuser_> it was 250, I think. Sep 21 20:46:49 looks like I'll get another 5x to replace the 5x I have, pixel phones look too stupidly expensive Sep 21 20:47:01 unless they're stat monsters, it's so dumb... Sep 21 20:47:20 <_genuser_> I want the latest gizmos, but I don't want to spend money on them. Sep 21 20:47:30 * pfn shrugs Sep 21 20:47:44 tax writeoff, so that saves like 35% of purchase price Sep 21 20:47:58 <_genuser_> oh nice. that's the way to do it! Sep 21 20:53:46 stupid f2p game, making me want to spend money Sep 21 20:55:05 I hate my 5x Sep 21 20:55:12 it stutters and freezes on me Sep 21 20:55:30 my 5x performs decently well after they sent out the ota that fixed perf problems Sep 21 20:55:39 dropping it in water destroyed the wifi/bt module though Sep 21 20:55:59 gonna have to see if it's less crap after the OTA Sep 21 20:56:25 before I went on the nougat preview, I was having to just give up and put my phone back in my pocket sometimes because it'd just hang for so long Sep 21 20:56:47 never had that problem... since like an ota during 6.0.1 Sep 21 20:57:03 it was shitty during 6.0, unusable and got returned Sep 21 20:57:20 the ota that fixed perf came out a little before the nougat previews started, probably Sep 21 20:57:26 So I have a unit test I want to write to test one of my methods that runs some code off the main thread, and I enforce in the method that it's off the ui thread. The problem I'm having is that my assertions in the unit test happen off the main thread so none of them get logged as failed tests even if the assertion fails Sep 21 20:57:38 but you're right, it was unusable at that time, I returned my first 5x I got because of it Sep 21 20:58:25 https://9to5google.com/2016/03/08/google-ota-update-fix-nexus-5x-performance-issues/ Sep 21 20:59:08 N previews started in july... Sep 21 21:01:11 i hate when library doccumentation hints to controls of specific thing but you cant find specifications anywhere... :/ Sep 21 21:01:59 I have an app that I want to use in another project as a library. Should I make the app a library project and just import the library in another "app" module? Sep 21 21:02:29 you should split out the part that you want to be common, and make that a library that both apps use Sep 21 21:03:37 s73v3r, I want the whole app in another larger app. Sep 21 21:04:00 i highly doubt that Sep 21 21:04:22 but even if you want most of it, the best way is still to split it into a library that both apps use Sep 21 21:05:31 s73v3r, I really do need all of it. I was thinking of applying the android.library gradle plugin and then uploading it to a private artifactory and then just switching back to the main app plugin. If that makes sense. Sep 21 21:05:37 i’m also assuming this is your own app Sep 21 21:05:43 yes Sep 21 21:06:05 you can try it, but I really, really don’t think that’s what you want Sep 21 21:06:30 there’s going to be a bunch of additional stuff included that you don’t need Sep 21 21:07:00 like what? Sep 21 21:07:20 manifests, resources, other stuff Sep 21 21:07:42 models that will be duplicated Sep 21 21:07:52 it will all be used in the larger app Sep 21 21:08:00 then make a module from it. Sep 21 21:08:08 in that case, why not just make the app into the larger app? Sep 21 21:08:18 there is no concept of library anymore with AS, it's a module or something else Sep 21 21:08:25 s/AS/gradle/ Sep 21 21:11:18 s73v3r: interesting. I think you can, unless the first app has assets since they can't be used in libraries Sep 21 21:11:53 are assets not included in the AAR? Sep 21 21:12:29 I remember in Eclipse days they weren't, but I thought AAR includes assets. maybe not :| Sep 21 21:13:47 hmm, I stand corrected Sep 21 21:13:49 http://tools.android.com/tech-docs/new-build-system/aar-format Sep 21 21:13:53 does include assets Sep 21 21:15:38 the whole point of aar is to include android resources Sep 21 21:15:45 ah ok Sep 21 21:15:50 that means, res, assets, jni, manifest, proguard config, etc. Sep 21 21:15:56 riiiight Sep 21 21:32:45 hello everyone, I'm trying to store symmetric keys in a KeyStore Sep 21 21:33:47 I can call setEntry just fine with a KeyProtection Sep 21 21:33:57 however when I try to call getEntry, it throws an empty UnsupportedOperationException Sep 21 21:46:05 then you can't call getEntry on KeyStore Sep 21 21:46:43 I think I got it Sep 21 21:46:52 for some bizarre reason you have to call setEntry and getKey Sep 21 21:47:01 that specific combination Sep 21 21:50:33 <*****> https://plus.google.com/+KirillGrouchnikov/posts/562Em1mnFEn :o Sep 21 21:50:42 no comment. Sep 21 21:53:10 hexafluoride, i doubt that Sep 21 21:53:33 I dunno, it just worked that way for me Sep 21 21:53:44 I couldn't use setKey and getKey, neither could I use setEntry/getEntry Sep 21 21:53:44 getEntry should return you an instance (not the key itself ofc) to allow you to do some crypto op with it via Cipher Sep 21 21:53:56 it just threw an empty UnsupportedOperationException in my case Sep 21 21:53:59 then you need to read more about it, and look better tutorials Sep 21 21:54:02 no message or anything Sep 21 21:54:28 like I said, it works right now so I'm satisfied Sep 21 21:54:40 mobile dev is bizarre Sep 21 21:54:43 it's not Sep 21 21:54:50 I find it to be Sep 21 21:54:57 you really need to understand the cause of your issue, even if it works now Sep 21 21:54:59 it's critical Sep 21 21:55:57 https://www.codatlas.com/github.com/lambdalab-mirror/jdk7u-jdk/master/src/share/classes/java/security/KeyStoreSpi.java?line=483 Sep 21 21:56:00 this is where it throws Sep 21 21:56:07 adq, What if you named your application "Android System" and your activity had another label. I wonder if the permission dialog would say "Allow Android System to xxx".. Sep 21 21:56:11 and it's bizarre because it's not even supposed to reach there, AndroidKeyStore overrides that method Sep 21 21:56:42 it somehow does and since it's going to be a private application for my personal use only, I don't care right now Sep 21 21:56:48 I've spent a couple of hours troubleshooting this Sep 21 21:57:02 I just don't wanna spend any more time on this Sep 21 21:57:05 tired of it Sep 21 21:57:09 well, paste your code and stacktrace maybe, if anyone can and want to help Sep 21 21:57:26 surf2b1, no idea, not my pb tbh i'm not Google ;) Sep 21 21:57:29 thanks but I'm moving on Sep 21 21:57:33 this is just unacceptable Sep 21 21:57:35 I've accepted the responsibility of writing shit code Sep 21 21:57:38 ok hexafluoride, no worry Sep 21 22:00:20 hexafluoride, just in case maybe you simply did not provided the corresponding flag in your keyprotection versus how you plan to use your key, like if you ommit for example KeyProperties.PURPOSE_ENCRYPT you probably won't be able to use this key for encrypting purpose, same for other flag decrypt, sign, etc anyway you moved on. Sep 21 22:05:11 adq, I'm using the same line for KeyProtection Sep 21 22:07:27 hello, When I put a support v7 toolbar and a listview inside an activity that extends extends appcomcatactivity, the toolbar shows but the listview not. if I remove the code for the toolbar, the listview shows fine. Any idea how to fix this? Sep 21 22:08:33 s0ullight: can you post your layout xml?? Sep 21 22:08:45 sure, prefered pastebin website? Sep 21 22:08:57 sure, pastebin, hastebin, whateverbin Sep 21 22:09:32 hexafluoride nice nick :D especially after the Note 7 battery fiasco :D :D :D Sep 21 22:09:40 lol Sep 21 22:09:42 ty Sep 21 22:09:47 lloll Sep 21 22:11:14 Afzal: http://pastebin.com/dTB6ZYBr Sep 21 22:11:54 s0ullight: you need to set the orientation on that parent LinearLayout to vertical Sep 21 22:11:59 oh, HS is hydrofluoric acid Sep 21 22:12:02 *HF Sep 21 22:12:14 alright, trying it now Sep 21 22:12:26 HFl <_< Sep 21 22:12:42 HF** >_< Sep 21 22:15:22 Release time!! Sep 21 22:16:46 I have the following issue: I have multiple textviews Sep 21 22:16:57 can I somehow allow the user to select over multiple of them? Sep 21 22:17:08 select the text in multiple of them? Sep 21 22:17:24 well, the idea is that if the views are in multiple lines, Sep 21 22:17:33 the user would start by selecting the last half of view 1, Sep 21 22:17:36 views 2,3,4 Sep 21 22:17:41 and the first half of view 5 Sep 21 22:18:03 similar to selection in browsers Sep 21 22:18:23 Afzal: thanks, that freaking fixed it, been trying to solve it for 2 days now Sep 21 22:18:25 why would you do that instead of just having a multi-line textview? Sep 21 22:18:45 IRC messages Sep 21 22:18:50 but the answer, out of the box, is no, i believe. Selecting one would steal the focus from another Sep 21 22:18:52 I have potentially infinite amounts of messages Sep 21 22:19:02 and each view is a separate message Sep 21 22:19:05 yes Sep 21 22:19:49 i’m gonna have to say not unless you rewrite a bunch of stuff, as there can only be one control in focus at a time Sep 21 22:21:15 and there’s no simple way to allow users to both select multiple messages, Sep 21 22:21:23 or within of one message either, right? Sep 21 22:21:24 fuuck Sep 21 22:21:50 well, you could make it one big, multi-line text view Sep 21 22:22:01 but that has other downsides Sep 21 22:22:20 well no I can’t Sep 21 22:22:36 already with recyclerview I had to create different message types per message types Sep 21 22:23:14 yeah, it’s not a great solution Sep 21 22:24:34 seriously the scroll performance was horrible with using formatted spans instead of different types already Sep 21 22:24:39 you might try doing something with the internals of recyclerview, but i don’t know if it’d be worth it Sep 21 22:24:53 i think that would require a lot of work from side justJanne, like you need to handle yourself the start/end + touch + selection len per row and also inject that into a temp clipboard which at the end probably goes into the default clipboard Sep 21 22:25:54 and due to the amount of work VS the priority of this feature, i'm not sure if you should :p Sep 21 22:26:44 yeah, unless the bad guys from Taken have your family and are demanding this, you might want to put it on the back burner Sep 21 22:27:15 and you will have corner cases too, like selecting as start marker few chars from the end of one of your row and as end marker few chars after the next row Sep 21 22:29:43 whats the proper way to push a view up so it can be animated in? Sep 21 22:30:07 i have 3 views stacked horizontally with the middle one not visible. it is eventually switched to visible but i'm trying to have it slide from below the top view. Sep 21 22:30:26 if you are lazy, and switch this view from GONE to VISIBLE Sep 21 22:30:27 justJanne: you could just have a multi-select mode for messages then an option to select all content or provide some sort of view to edit the selection Sep 21 22:30:30 you can use animatelayoutchange Sep 21 22:30:43 adq: that's what i'm doing now :P Sep 21 22:30:53 adq: the height is done without animation, then the view fades in. Sep 21 22:30:55 it will translate + alpha, usually Sep 21 22:31:02 just doing alpha automatically :( Sep 21 22:34:49 dcope: You can animate any property of any object via property animations Sep 21 22:38:56 orbyt_: animating it seems to work, but i can't figure out what the proper way to push it up before the animation is. do i just translate it on the y-axis? Sep 21 22:42:01 more a scale Sep 21 22:42:07 dcope: You should post a screen record of what it currently does Sep 21 22:42:09 from 0 to height Sep 21 22:49:14 Hmm Sep 21 22:53:56 http://imgur.com/a/pmyf3 Sep 21 22:54:07 oops Sep 21 22:55:02 oh, that's the right link Sep 21 22:58:29 hi Sep 21 22:59:05 I have a very basic question, for which I couldn't find an answer on the web so hoping someone can help me out here Sep 21 23:00:23 I'm importing a custom java library in my android project. That library uses logback & slf4j for logging. When I run my application, the latter crashes due to the fact it can't find slf4j at runtime Sep 21 23:00:30 specifically LoggerFactory class Sep 21 23:00:44 I have added the dependency in my gradle.build but to no avail Sep 21 23:01:37 I have tried with the following two dependencies: compile 'org.slf4j:slf4j-android:1.7.21' compile 'org.slf4j:slf4j-api:1.7.21' Sep 21 23:02:18 when i assemble my application all of the other dependencies get added to the apk apparently except slf4j Sep 21 23:02:37 Anyone here work a lot with AOSP? Sep 21 23:02:43 or on AOSP Sep 21 23:03:02 #android-root Sep 21 23:03:10 geddamit :V Sep 21 23:03:30 for further information, initially the java library when I was importing it, was creating a clash with some existing Slf4j Sep 21 23:04:05 so I changed the scope to provided for the slf4j lib (maven) in my custom library so that it wouldn't create a clash Sep 21 23:04:32 and I was thinking about adding slf4j as a gradle dependency Sep 21 23:04:43 if anyone has any ideas that would be great Sep 21 23:05:47 if you have to add it as provided to prevent a clash, you're doing it wrong Sep 21 23:06:18 that means you will definitely encounter a no class def found error if it gets run on android Sep 21 23:06:48 pfn, looks much better (qicr in your vid) than in your store listing Sep 21 23:06:55 pfn, interesting, can you please elaborate. The library is also used in another project, at first I didn't mark it as provided, and thus it got bundled but then created a clash with some existing class Sep 21 23:07:00 unless someone published the same artifact at different coordinates Sep 21 23:07:26 adq, like I said, the screenshot are old, and that video is only the notification Sep 21 23:07:33 adq, not the app itself Sep 21 23:08:03 how come didn't you update the screenshots in playstore? Sep 21 23:08:43 Error Gradle .... TransformException: java.util.zip.ZipException: duplicate entry: org/slf4j/impl/StaticLoggerBinder.class Sep 21 23:09:24 that's what was originally happening, and I thought it might be due to the fact that Android might be already importing slf4j for it's own use (a bit like the apache http client lib) Sep 21 23:09:55 adq, I can't. be bothered to get around to it Sep 21 23:10:04 :') Sep 21 23:14:13 ayor, even if android used it internally, it wouldn't result in that build error Sep 21 23:15:06 find out which artifact is including it twice and then remove it Sep 21 23:15:17 dx really should spit this sort of info out... Sep 21 23:15:32 it has all this information internally.. Sep 21 23:27:43 man, these new dell laptops are nice Sep 21 23:29:24 which one? i'm yet to be impressed by anything dell produce Sep 21 23:31:57 xps 13 9350 Sep 21 23:33:03 the inspiron that can flip into tablet form is nice too Sep 21 23:33:20 but the xps is nice for that 4k display and overall design Sep 21 23:37:49 too bad linux doesn't play well with hiDpi screens yet Sep 21 23:38:23 x1 carbon is really nice, but full hd screen on old gens are crap Sep 21 23:39:27 so I cleaned everything and removed the provided, and built everything and still getting a no classdeffound Sep 21 23:39:39 atleast the duplicate entry error is gone Sep 21 23:40:11 I ran a dependencies check and didn't see any major issue Sep 21 23:40:39 a part from the the same lib being called twice which indirectly imports slf4j but that apparently isn't the problem as it can't even find it Sep 21 23:44:33 anyhow will check it out later, i'm off, thanks pfn Sep 22 00:06:28 Starting from Marshmallow, on my two physical devices and the emulators. Activity.startActivity seems to be synchronous. No matter what second activity is being started, everything stops until it starts. Has anyone else noticed this? Sep 22 00:06:35 s/./,/ Sep 22 00:06:59 I wouldn't expect this at all. Sep 22 00:07:06 ...Was it async before? Sep 22 00:07:47 Yeah. Sep 22 00:08:18 I'd expect it still to be async. Sep 22 00:10:02 I know there was a change in KitKat to stop further click events from being processed (after the first Activity.startActivity call), but I can't imagine that causing this behaviour. Sep 22 00:22:27 If I store some object as a static field in my Application object, is it guaranteed to be there all the time until application process is killed and Application object is destroyed? Sep 22 00:33:16 AlexBerdnikov: Yes, it's guaranteed to be there until the process is killed. Sep 22 00:33:45 As long as you aren't resetting that reference (e.g., `thatReference = null;`). Sep 22 00:34:25 Note that this applies to all static fields, not just those of Application subclasses. Sep 22 00:35:29 TacticalJoke: Thank you. Sep 22 00:35:50 This probably isn't documented, although here's a comment by Dianne Hackborne: "It is a little confusing, but there is no lifecycle of Application. It is created when your app starts (before any of its components are instantiated) and its onCreate() called at that point, and... that is all. It sits there and lives forever, until the process is killed. Just like a singleton. :)" Sep 22 00:36:00 http://stackoverflow.com/a/3888560 Sep 22 00:36:52 The third comment to that answer. Sep 22 00:37:26 TacticalJoke: one more question: why then there are so many questions on SO and other forums about some static field become null\unitialized agian after application being in background for some amount of time? Sep 22 00:38:26 Actually this made ask this question. Before that I somehow knew that static members shoukd be there forever. Sep 22 00:39:33 And then I saw a couple complaints on what I described and it made me doubt Sep 22 00:39:41 AlexBerdnikov, link to one of the questions on SO Sep 22 00:40:27 surf2b1: for instance this http://stackoverflow.com/questions/9541688/static-variable-null-when-returning-to-the-app Sep 22 00:40:39 If an app has been in the background for some time, Android may kill its process, which means that those fields lose their values. If, when the app starts, those fields are automatically reassigned to the same value, you won't notice a thing, but if those fields are set only after some event (e.g., a button click), they'll be null when the process is restarted. Sep 22 00:40:41 And I've seen a bit more similar Sep 22 00:41:28 TacticalJoke: Makes perfect sense now. Thank you! Sep 22 00:43:46 Yeah, in that question, it sounds like he's not able to reset the fields in time. This problem wouldn't occur if those fields were set in Application.onCreate, for example. Sep 22 00:45:00 Or in the initializer: `private static Foo someFoo = new Foo();`. Sep 22 00:45:21 is there a way to get ListViews to not recycle when they get scrolled off screen? Sep 22 00:49:41 staeksauce: AFAIR, you could achieve this by always returning Adapter.IGNORE_ITEM_VIEW_TYPE from your Adapter.getItemViewType override, but why do you want to do this? It's probably a bad idea. Sep 22 00:51:04 If your answer is something like "Because dealing with View recycling is too much effort", that's a "She tried to stab me in my sleep"-size red flag. Sep 22 00:51:49 Hey guys Sep 22 00:52:24 I would like to do some sort of backtracking to an Android mobile app. Sep 22 00:52:32 Is there anyway I could do this? Sep 22 00:54:00 Lets say... I want to enter in a form, the numbers from 1 to 100 Sep 22 00:54:13 and then I want to enter 1 and then click a button Sep 22 00:54:19 then 2 and so on and forth. Sep 22 00:54:38 TacticalJoke, lol, this is my first app. I'm trying to show the user a list of items they've added to a list and allow them to enter a quantity for each item Sep 22 00:55:36 TacticalJoke, problem is if the list has several items in it anything they enter gets removed when the list is scrolled Sep 22 00:56:19 It sounds like you're not updating the data set for the list. Sep 22 00:56:54 The only working approach is to mutate the data set. Then, when the ListView queries the data set, the data will still be there. Sep 22 00:57:32 you've already lost me Sep 22 00:57:34 The ListView should be dumb and display only what the data set holds. Sep 22 00:58:06 the list shows the items added no problem, but I need a way for the user to enter a quantity for each item in the list Sep 22 00:58:16 How are you displaying the quantities right now? Sep 22 00:58:25 I'm not Sep 22 00:58:31 they just select what items they want Sep 22 00:58:47 then at the end, it shows their list and I wanted to allow them to enter quantity there Sep 22 01:00:46 they first choose a category, then check items they want to add to their order list Sep 22 01:01:10 then there's an activity that shows them their list and allows them to delete items Sep 22 01:01:24 then finally an activity to allow them to enter quantities Sep 22 01:02:49 is there another way of allowing them to enter data that won't get deleted when they scroll? Sep 22 01:02:55 Basically, change the list (e.g., `list.set(index, newText);`, and then say `adapter.notifyDataSetChanged();`. Sep 22 01:03:12 No, there's no other sensible way. Sep 22 01:03:36 Not recycling Views would be a terrible solution. Sep 22 01:03:44 i figured Sep 22 01:04:47 right now I have it so the main categories and subcategories are populated by string-arrays in strings.xml Sep 22 01:04:48 The last guy who tried it got struck by lightning later that day. Sep 22 01:04:53 lol Sep 22 01:05:30 then i use a sparebooleanarray to get checked items and add them to an arraylist Sep 22 01:05:38 *sparsebooleanarray Sep 22 01:06:02 the "items" are objects that have a name and amount field Sep 22 01:06:39 being my first app it's probably the most idiotic way of doing it Sep 22 01:07:51 It might be easier to have `class Item { String description; boolean checked; int quantity; }`. Sep 22 01:07:51 the user first creates a "customer" object that has an arraylist associated with it Sep 22 01:08:04 Then the adapter can determine what to display based on those properties. Sep 22 01:08:05 so I've just been passing the customer from one activity to the next Sep 22 01:08:51 well my problem is how can I allow the user to change the amount field Sep 22 01:09:09 if when they scroll it deletes what they entered Sep 22 01:09:22 list.get(index).setQuantity(5); adapter.notifyDataSetChanged(); Sep 22 01:10:24 The adapter could say something like `textView.setText(description + " (" + quantity + ")");`. Sep 22 01:10:31 are you saying to do that on the final screen where the list is shown and to the right of each item is an EditText field or somehwere else? Sep 22 01:13:07 Not sure about the details in your case; just giving the general working method. Sep 22 01:13:43 but that would just display a quantity, how would I allow them to change it Sep 22 01:14:15 In terms of the UI? No idea. Could be some EditText anywhere. Might even be in a dialog. Sep 22 01:14:44 From what I hear, EditTexts inside ListView don't play well, but I haven't tried this in a long time. Sep 22 01:14:56 It might even be '+' and '-' buttons. Sep 22 01:14:58 right, I have an EditText set up in a custom adapter, but as soon as they scroll whatever they entered into the EditText gets deleted Sep 22 01:15:31 i was going to have them enter quantities for each item then hit a submit order button Sep 22 01:15:35 Yeah, because you're not storing what they enter in your underlying list. Sep 22 01:16:21 that's my problem then, how do I store what they enter immediately after they enter it instead of having them enter all the quantities and hit submit Sep 22 01:18:27 can you store what they enter in the previous EditText when they focus on another EditText somehow Sep 22 01:18:31 Hmm, it's been a long time since I've used an EditText inside a ListView, so I'm not sure. I guess you could store it every time they enter a character, or every time the EditText loses focus (does this work with ListViews?), or something else. Sep 22 01:18:55 My hunch would be to avoid EditTexts in ListViews, but maybe you can't. Sep 22 01:19:11 I'm not sure how else to allow them to enter quantities Sep 22 01:21:00 Another approach would be a 'Set quantity' button which opens a dialog where they can enter the number, but maybe that's lame. Sep 22 01:21:19 Or '+' and '-' buttons, but that might not be feasible. Sep 22 01:21:53 hmm Sep 22 01:22:19 a set quantity button might work even though it would look kind of ridiculous Sep 22 01:22:27 a button next to each list item Sep 22 01:23:00 shyman: could you rephrase your problem in a way that is understandable to humans without telepathic abilities? Sep 22 01:23:11 The 'Set quantity' button could simply display the current quantity. As long as it's clearly a clickable thing, it'll be discoverable. Sep 22 01:23:25 Sure, Arancio Sep 22 01:23:36 i tried a spinner too but that does the same thing Sep 22 01:23:43 Though maybe I'm wrong. Maybe EditTexts in ListViews are fine. Sep 22 01:24:05 In any case, your underlying issue is that you're not updating your ArrayList. Sep 22 01:24:55 yeah I can't get to the part where I grab what they enter to update the quantity field Sep 22 01:25:05 Your ArrayList's is what determines what is displayed when they scroll new items into view. Sep 22 01:25:10 ArrayList* Sep 22 01:25:24 right, it displays the item names no problem Sep 22 01:26:04 i could show a quantity as well, but they need to be able to change it Sep 22 01:26:35 In this layout: https://gist.github.com/MarkyC/4ccb220ee85d1e22d9322f4c62d3390e How can I get view_search_bar.xml to display a drop shadow? I have used app:elevation, but that doesn't seem to do anything. My intent is to cast a drop shadow /over/ the RecyclerView Sep 22 01:27:00 the change quantity button, or + or - buttons might work though Sep 22 01:27:04 that's a good idea Sep 22 01:27:12 it'll just look kind of stupid I guess Sep 22 01:27:47 staeksauce Have you looked into a NumberPicker? Sep 22 01:28:05 no I've tried EditText and spinner Sep 22 01:31:05 MarkyC: Have you tried a smaller elevation value (e.g., `8dp`)? Sep 22 01:35:46 TacticalJoke I have, it still doesn't show the drop shadow Sep 22 01:35:52 I have a feeling it's a view bounds issues Sep 22 01:39:32 MarkyC: I'm assuming you've tried android:elevation instead of app:elevation correct? Sep 22 01:42:04 orbyt_: that's the ticket, thanks! Sep 22 01:42:10 shyman: oh, now I get you. I'll answer to your question. Sep 22 01:43:37 Its okay, I think I have found a huge security gap on Android, lol. Sep 22 01:54:31 shyman: lol Sep 22 01:54:34 -.- Sep 22 02:02:27 is there any way I could ask for money after I've found a security gap? Sep 22 02:03:27 How much do you want? Sep 22 02:04:25 A lot, lol. Sep 22 02:04:30 https://www.google.co.uk/about/appsecurity/android-rewards/ Sep 22 02:07:59 Sounds good. Sep 22 02:09:47 What if the security gap is in someone else app? Let's say its like a Bank or something like that. Sep 22 02:10:30 pixel phones will be IPX53 (lol) Sep 22 02:10:43 IPX53? Sep 22 02:10:48 IP53 sorry Sep 22 02:10:50 hey TacticalJoke Sep 22 02:11:09 Nice! Sep 22 02:11:41 shyman its not a compliment Sep 22 02:11:52 Oh Sep 22 02:11:54 I thought it was. Sep 22 02:12:02 hence the (lol) :D Sep 22 02:12:03 lol Sep 22 02:12:07 Hey, g00s. Sep 22 02:12:35 TacticalJoke the /r/android folks are ravaging Allo Sep 22 02:12:55 Lol Sep 22 02:13:00 was Allo released? Sep 22 02:13:04 Yep Sep 22 02:13:17 Yesterday. Sep 22 02:13:46 and Edward Snowden twitted about it too Sep 22 02:13:55 TacticalJoke this is so truthy https://www.reddit.com/r/Android/comments/53tsxw/the_direction_google_is_heading_in_is_frustrating/d7wnm33 Sep 22 02:15:00 The /r/android people are so passionate about this OS. Sep 22 02:16:01 Google is the new Microsoft! Sep 22 02:16:10 Yeah, that sounds like Google. Sep 22 02:16:15 sounds like they want an iMessage competitor ... Sep 22 02:16:27 i have never seen iMessage. whats so special about it ? Sep 22 02:16:36 It's all about the young, naive, annoyingly enthusiastic new recruits. Sep 22 02:16:38 i can't imagine a messaging app being more then sending text back and forth Sep 22 02:17:13 The app seems very incomplete to me Sep 22 02:19:32 shyman: did you manage to get rich with your security issue discovery? Sep 22 02:19:32 TacticalJoke that would be funny if the google engineers were all hanging out on allo, asking the allo bot how to make it self aware Sep 22 02:20:26 Arancio: Not yet, I'm trying to feel like a hacker. When done, I'll report it. Sep 22 02:20:53 "@google What project should we work on next?" Sep 22 02:20:56 I think this security issue might have already been reported. Sep 22 02:21:04 shyman: fire a shell console with black background and green text. It helps Sep 22 02:21:09 or maybe people is aware of it. Sep 22 02:21:14 Hahahahaha Sep 22 02:23:16 Does anyone know of a situation where a View's *measured* height/width is different from its *actual* height/width, when using typical Android ViewGroups (I know that we can create this situation ourselves with a custom ViewGroup)? Sep 22 02:23:52 Arancio: I dont feel rich with 30k :( Sep 22 02:23:55 It's always seemed weird to me that the measured height/width doesn't have the final say. Though maybe I'm missing something. Sep 22 02:24:10 TacticalJoke: Visibility and such? Sep 22 02:24:17 I think that would cause a difference Sep 22 02:26:29 say I wanted to pop up a window when an item on the screen was pressed, is that an alertDialog? Sep 22 02:27:25 orbyt_: Ah, good point. I'll check that. Sep 22 02:27:35 staeksauce: Yeah. Sep 22 02:28:50 Well, I think in your case it's an AlertDialog. Sep 22 02:29:14 And in pretty much any case. Sep 22 02:29:48 I think I'll just show the default quantity (1) of the item to the right nad allow them to press an item and change the quantity through a dialog Sep 22 02:30:20 i think most of the time the quantity will be 1 anyway Sep 22 02:37:55 Hmm, even a 'gone' view retains its height and width. Sep 22 02:40:23 I guess I could set a conditional breakpoint (`getHeight() != getMeasuredHeight() || getWidth() != getMeasuredWidth()`) in `onLayout` in View.java. Sep 22 02:52:36 Never gets triggered in my app. And, as far as I can see from the source, the Big Three (FrameLayout, RelativeLayout, LinearLayout) always respect a child's measured dimensions (even if they ask for them more than once). Sep 22 02:56:10 Maybe this is simply flexibility which allows a custom ViewGroup to 'crop' views in some cases. Though it's hard to imagine a good example. Sep 22 02:59:02 I had a scenario where I had a recyclerview with dynamically generated textviews. There was an issue where when the viewholder was recycled, the old dynamic textviews would be "cleared" but the view itself was still there Sep 22 02:59:26 I remember that was causing some odd issues when i was measuring a few things for layouts Sep 22 02:59:38 Dont remember the specifics though **** ENDING LOGGING AT Thu Sep 22 02:59:59 2016