**** BEGIN LOGGING AT Thu Nov 05 03:00:15 2015 Nov 05 03:02:01 g00s: That's pretty ridiculous Nov 05 03:03:48 CedricBeust i dont think so at all; environmental activists have been targeted by the FBI Nov 05 03:04:04 very recently too, wrt keystone XL Nov 05 03:04:08 That part I'm fine with, the Android security one is silly Nov 05 03:11:21 g00s, CedricBeust que? was offline for a bit Nov 05 03:12:19 CedricBeust seems like the main problem is lower end devices aren't required to use full disk encryption - devices that would be popular in parts of the world were social stability is not a norm Nov 05 03:12:39 alex_PP http://www.technologyreview.com/news/543161/why-google-trailing-apple-on-encryption-support-is-a-human-rights-issue/ Nov 05 03:14:02 so making affordable devices is a bad thing? Nov 05 03:14:17 why doesn't apple get criticised for not making a cheeper device? Nov 05 03:15:07 this will all be moot next year or whenever the cheeper devices get powerful enough to run fully encrypted Nov 05 03:15:16 Hey all. I'm trying to do some OpenGL stuff and the docs say that my context might be lost under certain conditions. I'm supposed to get an onSurfaceCreated callback when this occurs. The problem is I'm having trouble testing this out. I can't make Android lose the OpenGL context on my device. Any suggestions for forcing a context loss? Nov 05 03:26:11 g00s, also this: https://xkcd.com/538/ Nov 05 03:30:10 looks like just pausing and resuming an activity is enough to lose opengl context Nov 05 03:31:25 alex_PP: because it's apple ;) Nov 05 03:48:09 why is it always so hard to resize overlay video windows in android, bleh Nov 05 03:49:28 best tutorial to implement a splash screen? Nov 05 03:49:43 took a look at bazel - seems like buck Nov 05 03:49:50 even functions are the same Nov 05 03:57:08 eghdk: try this: https://github.com/PaoloRotolo/AppIntro Nov 05 03:57:19 though splash screens arent usually a good idea Nov 05 03:58:25 orbyt_: Eh. Material design guidelines show splash screens. All of googles apps now have splash screens. I'm not including it just to include it, I want to include until stuff has loaded, then remove it. Seems like hangouts works this way from what I see. Nov 05 03:59:18 also orbyt_ seems like you gave me a setup wizard library, not a splash screen lib. let me know if I'm wrong. Nov 05 04:00:16 eghdk: yea its similar to what you said google is using, its an app intro. This: https://github.com/JorgeCastilloPrz/AndroidFillableLoaders is pretty cool if you really want to build a unique splash Nov 05 04:05:17 I just want to know what the best way to do a "branded launch" would be. https://www.google.com/design/spec/patterns/launch-screens.html#launch-screens-types-of-launch-screens Nov 05 04:19:27 How would I implement a master detail layout without using fragments? Nov 05 04:43:28 eghdk, for splash screens make sure the activity with the default/launcher intent filter has a theme that sort of matches your splash screen so you don't get any hickups and you're 90% of the way there Nov 05 04:44:06 for amster/details, there's nothing really magic about fragments, they're just some views and some life cycle Nov 05 04:50:59 alex_PP: Thanks. Just implemented a windowBackground for the activity with intent filter for launch. Cool. That's really basically it. The only trouble now is a custom drawable xml, and how do I get text in it... I have my launcher icon there for now. Nov 05 05:06:25 eghdk, a textview? Nov 05 05:06:54 you can swap out the splash once you get going, or go to the next activity for all the real work Nov 05 05:07:38 alex_PP: yeah, im following this tutorial, but I don't know how id add a textview Nov 05 05:07:41 http://antonioleiva.com/branded-launch-screen/ Nov 05 05:08:54 as an aside, i can't stand splash screens Nov 05 05:09:33 even if they're only there while some data's being loaded, they delay your getting your bearings in the app Nov 05 05:21:18 alex_PP: Well the way you explained doesn't delay anything... it's simply changing the background while the first activity loads up. Nov 05 05:21:48 eghdk, that tutorial's a bit weird, you'll only get the splash screen for half a second Nov 05 05:21:52 is that even worth it? Nov 05 05:22:37 I meant that you'd go theme -> splash activity -> main activity, or theme -> splash view -> main view Nov 05 05:23:21 not worth it for that scenario probably, but it's still nicer than a blank screen coming up. to me I find the blog posts' gif pretty convincing. Nov 05 05:23:55 when android loads your application, it starts with a process called zygote that it themes with your theme so you get a sort of empty version of your app before your app loads Nov 05 05:24:03 that's how it's meant to work Nov 05 05:24:43 and if you're doing a splash you need to make sure zygote picks up the splash theme so the action bar and other gumph doesn't flicker when the theme changes Nov 05 05:24:54 Is there a library with which I can see my app's shared prefs xml file quickly? Using DDMS is a long process. Nov 05 05:25:07 WantToCode you can use Stetho Nov 05 05:25:38 eghdk, this has a better explanation than i can give over irc Nov 05 05:25:39 http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ Nov 05 05:25:43 alex_PP: It's not really a splash... its just a way to brand your launch while it's launching. splash screens usually have set time outs. Nov 05 05:25:56 eghdk you means its a splash Nov 05 05:26:05 https://plus.google.com/+IanLake/posts/SW7F2CJvAmU Nov 05 05:26:15 a way to brand your launch while it's launching == a splash Nov 05 05:26:44 eghdk stop taking UX advice from kids Nov 05 05:26:51 g00s, isn;t it only for db and network inspection? Nov 05 05:27:02 WantToCode no prefs also Nov 05 05:27:08 oh ok thanks! Nov 05 05:27:33 g00s: ian is a kid? Nov 05 05:27:50 eghdk all the reasons spash screens are bad have been known for years http://www.amazon.com/Mobile-Usability-Jakob-Nielsen/dp/0321884485 Nov 05 05:28:52 any reason why googles app do it now all of a sudden and it made its way into material design docs? Nov 05 05:29:17 because they are inexperienced hipsters Nov 05 05:30:13 So what should I do if I need to load a massive amount of db for my lauching activity? Nov 05 05:30:34 what is "load a massive amount" Nov 05 05:30:43 get it off the ui thread Nov 05 05:31:05 idk, lets say load and decrypt 500 entries from a db. that could take a second or two. Nov 05 05:31:32 I find it hard to believe enough information will fit only a 5 inch screen to take too long to come from the db Nov 05 05:31:32 why not load and decrypt the # of entries you can show on the screen ? Nov 05 05:31:41 do I show a white screen while it loads, show a spinner while it loads, or show a themed launcher while it loads. Nov 05 05:32:09 g00s: So what, only show 20 items? Nov 05 05:32:16 eghdk take a look at this, i haven't used it yet https://developer.android.com/reference/android/support/v7/util/AsyncListUtil.html Nov 05 05:32:21 this implies you can chunk things Nov 05 05:32:38 see "tileSize" Nov 05 05:32:53 still, lets say (in this scenario) you are decrypting... even 20 items, and it still adds enough overhead. Nov 05 05:33:57 worst case scenario, you don't have any data to show, i'd just have the navigation on screen and put a spinner Nov 05 05:34:31 some ui is better than some meaningless branding, IMO Nov 05 05:34:42 yeah i agree Nov 05 05:34:46 at least I can start thinking about what i came to your ap to do Nov 05 05:35:25 Okay, that was the point I was getting to. Is ui (mostly blank ui) better than no ui and just a logo. seems like your answers are pretty clear. Nov 05 05:37:44 g00s: and alex_PP One more thing before I sign off for tonight, because the issue with loading from the list is something I'm trying to fix right now. I have 500 items in my db, but the items are actually being shown as an ArrayAdapter from ArrayList. I make the query, take the cursor, and turn them into objects, and add them to ArrayList. I don't want to change that mechanism right now, but how would I keep adding to the list if Nov 05 05:38:22 thats busted, i'd fix it Nov 05 05:38:24 use a cursor, it does some magic with memory Nov 05 05:38:46 you can add a wrapper that builds your objects as needed Nov 05 05:39:26 eghdk although that AsyncListUtil thing is pretty much what you have; it was just meant for recyclerview Nov 05 05:40:42 I usually use autovalue for types these days, so I wrap a cursor in an object called something like FooList that returns something that implements the autovalue interface and talks to the cursor Nov 05 05:42:55 Is it really busted though? Why is a cursor so much better than an ArrayList? What if I change my datastore... and just save stuff in files... It'd be nice to just be able to open the files, convert to objects, and shove into arraylist. Nov 05 05:44:40 if you do that you have to parse all the objects and store them in the array list Nov 05 05:44:49 which will take a while and use loads of memeory Nov 05 05:46:00 anything where you interact with a human is sloooooow as far as the computer is concerned, so why not spread all the work the computer has to do out across all the idle time that the human introduces Nov 05 05:46:41 alex_PP: Wait... let me make sure I'm understanding you. Why would I have to parse all the objects and then store them in the arraylist? Nov 05 05:47:11 no, sorry, I suppose you could store them in the list and lazily load them Nov 05 05:47:15 that would be fine Nov 05 05:47:35 just loading all 500 and parsing them straight off the bat is what you want to avoid Nov 05 05:48:57 alex_PP: Yeah, I guess I haven't tried yet, but my question is if I have a db of 10,000 items. and I load 50, turn cursor, into objects, into arraylist, then onScroll when the user hits halfway, maybe I query more and update the arraylist. would that be possible? Nov 05 05:49:24 yeah, why not, plenty of stuff works like this Nov 05 05:50:53 okay. cool. I just am not great at java, and didn't know if there was some issue with adding items to arraylist, and then refreshing the adapter. Nov 05 05:51:09 or will the adapter automatically refresh...? idk if I'm making any sense. Nov 05 05:53:58 I guess idk what issues adapters/arraylist might present in this situation. I still want the scrolling to be smooth as f*ck Nov 05 05:54:35 use hasStableIds(){return true;} Nov 05 05:54:41 so it doesn't jump around Nov 05 05:54:51 and notifyDataSetChanged Nov 05 05:54:57 when you add to the arraylist Nov 05 05:58:32 awesome! didn't know about the hasStableIds() method! thanks alex_PP I appreciate that. I'm going to try to implement that this weekend. Nov 05 06:49:18 Hello everybody Nov 05 06:50:33 i am trying to inflate an xml file but i am getting InflateException Nov 05 06:50:34 http://pastebin.com/ubTQg0EL Nov 05 06:50:38 this is my xml file Nov 05 06:50:42 this is a custom view Nov 05 06:50:58 sunny_slls: logcat? Nov 05 06:52:28 thepoosh, http://pastebin.com/dDfEcCji Nov 05 06:53:33 it seems like the system is trying to inflate the wrong layout Nov 05 06:53:47 the error is for: Error inflating class com.android.launcher3.PagedViewIcon Nov 05 06:53:58 and your layout is: com.sample.PagedViewIcon Nov 05 06:54:34 thepoosh, oh~! sorry . I had cloned the layout Nov 05 06:54:54 even with correct package its giving same error Nov 05 06:55:38 can you give a bit of context with HorizontalListFragment.java line #111 Nov 05 06:57:01 thepoosh, its the line inside getView Nov 05 06:57:09 convertView = mInflater.inflate(R.layout.fragment_horizontal_scroll_item, parent, false); Nov 05 06:57:27 inflating the same layout which i had pasted earlier Nov 05 06:57:35 and the code for R.layout.fragment_horizontal_scroll_item Nov 05 06:58:36 also, is com.sample.PagedViewIcon extending ViewGroup? Nov 05 06:59:18 http://pastebin.com/MvPhpExk Nov 05 06:59:28 it extends TextView Nov 05 06:59:52 paste the code? Nov 05 07:00:48 http://pastebin.com/s8DGbihS Nov 05 07:01:33 sunny_slls: you're missing 2 constructors Nov 05 07:01:41 read this: http://stackoverflow.com/a/3739853/1056359 Nov 05 07:08:39 sunny_slls: ? Nov 05 07:08:53 hey its working but getting another issue Nov 05 07:10:51 thepoosh, http://pastebin.com/KfxSqpqB Nov 05 07:11:08 what seems to be the issue? Nov 05 07:11:17 http://pastebin.com/uPFWV7Lm Nov 05 07:11:57 in case if the view in the getView() is not null I am trying to getTag() and cast it to the ViewHolder Nov 05 07:12:07 viewHolder = (ViewHolder)convertView.getTag(); Nov 05 07:12:15 it gives exception in this line Nov 05 07:12:41 HorizontalListFragment.java line #115 Nov 05 07:12:42 ? Nov 05 07:13:25 viewHolder = (ViewHolder)convertView.getTag(); Nov 05 07:13:27 this is the line Nov 05 07:13:36 the else part Nov 05 07:15:02 seems like someone sets the tag eleswhere Nov 05 07:15:08 *elsewhere Nov 05 07:15:23 oh yes i remember Nov 05 07:15:47 hey thepoosh Nov 05 07:15:54 hya g00s Nov 05 07:16:08 today is my first day actually working with AS Nov 05 07:16:19 thepoosh oh yeah? how do you like it ? Nov 05 07:16:46 usual first impression is "ooo, the darcula!" Nov 05 07:17:20 My first reaction was noting that the keybindings for ctrl-o and ctrl-n were retarded Nov 05 07:17:57 oh, i think mine was ctrl-D (eclipse delete line) is duplicate line in AS Nov 05 07:18:03 one of the first things that needs to be changed :D Nov 05 07:18:53 its tough getting used to the shortcuts aft using eclipse for so long Nov 05 07:19:26 I'm mostly pissed at Cmd+W not closing my file Nov 05 07:19:39 becomes ctrl+F4 Nov 05 07:19:42 thepoosh https://medium.com/@dmytrodanylyk/configuring-android-studio-4aa4f54f1153 Nov 05 07:19:54 my Cmd +D deletes the line Nov 05 07:20:25 g00s: read that last week Nov 05 07:20:32 most of it is already configured for me Nov 05 07:20:53 the issues are now: no logcat colors and no "problems" view Nov 05 07:21:14 thepoosh see the link for logcat colors Nov 05 07:21:43 now doing this Nov 05 07:21:43 thanks for the link Nov 05 07:21:47 a serious life saver Nov 05 07:23:50 thepoosh other thing i do (not sure how effective it is) - disable unused plugins. at least it tidies up the UI Nov 05 07:25:16 this was a depressing read https://medium.com/swlh/mobile-app-developers-are-suffering-a5636c57d576 Nov 05 07:25:26 talked about iOS , but Android probably the same Nov 05 07:26:41 most apps are just crap :) Nov 05 07:27:00 g00s: a company our size that already got 40M$ in funding just closed last week Nov 05 07:27:07 Anything.me Nov 05 07:27:39 thepoosh but do you guys have a business model yet ? Nov 05 07:27:49 http://everything.me/team/ Nov 05 07:27:52 these guys Nov 05 07:28:05 there are some business models Nov 05 07:28:10 like having an SDL Nov 05 07:28:12 SDK Nov 05 07:28:18 and a franchise Nov 05 07:28:24 and some in-app purchases Nov 05 07:28:32 but idk too much about that Nov 05 07:28:40 " Everyone’s phone is always running out of disk space" Nov 05 07:28:45 I dont have that problem.. Nov 05 07:28:49 +1 Nov 05 07:28:49 thepoosh i'd pay close attention to the business side of things ;) Nov 05 07:29:17 my problem is that i have no use cases for apps - i just use my phone to call people (okay, i have 2 games for when i am bored/waiting for something) Nov 05 07:29:21 g00s: I do, but for now, Israel has the largest amount of startups per person and there is a real shortage on mobile devs Nov 05 07:29:46 thepoosh do you guys have universal health care ? Nov 05 07:29:46 what's everythingme Nov 05 07:30:04 gordon_: a launcher app that just got closed Nov 05 07:30:12 they had 40M$ in funding Nov 05 07:30:13 ah Nov 05 07:30:15 (likr us) Nov 05 07:30:17 lol Nov 05 07:30:30 g00s: IL has mandatory universal healthcare Nov 05 07:30:36 read - spam Nov 05 07:30:47 gordon_: ? Nov 05 07:30:57 thepoosh that helps people be more independent and do things like startups Nov 05 07:31:09 it gives you suggestions when you search Nov 05 07:31:14 oh Nov 05 07:31:15 :S Nov 05 07:31:16 reminds me of ubuntu and amazon Nov 05 07:31:19 so -> spam Nov 05 07:31:34 why would someone want spam on phone Nov 05 07:31:48 g00s: IL has state healthcare since it was founded in the late 40s Nov 05 07:31:59 it's a mandatory tax Nov 05 07:32:26 maybe I should look for something different Nov 05 07:32:40 maybe leeds can explain more Nov 05 07:32:46 like opensource development, healthcare, build tools or machine learning Nov 05 07:32:54 gordon_: wanna be a senior android developer? Nov 05 07:33:04 we're hiring Nov 05 07:33:10 just got new job Nov 05 07:33:18 so? Nov 05 07:33:21 haha Nov 05 07:33:30 wouldn't you rather work with yours truly? Nov 05 07:33:42 no idea what you're doing ;) Nov 05 07:34:03 haha Nov 05 07:35:00 http://www.glide.me/jobs Nov 05 07:35:09 we play games Nov 05 07:36:30 are those .me domains the new cool thing or are you guys actually there :P Nov 05 07:36:47 it's nice and short Nov 05 07:36:55 ]and glide.org and glide.com were taken Nov 05 07:37:26 glide reminds me of 3dfx/voodoo stuff Nov 05 07:37:26 brr Nov 05 07:39:22 thepoosh how good are you with material design ideas, etc ? mostly about navigation Nov 05 07:40:07 a bit Nov 05 07:40:12 why? Nov 05 07:40:29 thepoosh: do you know how far is it from tokyo to jerusalem? ;) Nov 05 07:40:44 about 10 hour flight Nov 05 07:40:45 thepoosh have you ever seen an app with multiple but different navigation drawers ? Nov 05 07:41:09 g00s: do you mean the drawer changes between activities? Nov 05 07:41:17 thepoosh yeah Nov 05 07:41:21 hmmmm Nov 05 07:41:28 gmail does that when you switch accounts Nov 05 07:41:36 they add and remove folders Nov 05 07:44:37 hm. my app connects to several kinds of devices, each one has different 'spaces' to navigate to, so each would have different items in the nav drawer Nov 05 07:44:47 i would have a device picker, like they have a account chooser Nov 05 07:44:58 not sure if that would confuse people Nov 05 07:45:30 well, it probably will Nov 05 07:45:40 but if this is the concept it's fine Nov 05 07:45:56 they have both a dropdown list and the icon chooser Nov 05 07:46:20 in gmail there is an icon, only when its collapsed .. yea Nov 05 07:47:50 actually i think gmail uses SlindingPaneLayout probably Nov 05 07:50:37 * thepoosh is dumping the gmail view Nov 05 07:51:46 orly Nov 05 07:51:54 g00s: they use DrawerLayout Nov 05 07:52:21 huh ... Nov 05 07:52:33 dont understand how they make it work that way Nov 05 07:54:27 g00s: http://i.imgur.com/qdWGJHZ.png Nov 05 07:55:42 thepoosh interesting, thanks ... Nov 05 07:55:48 מפ Nov 05 07:55:49 np Nov 05 07:56:08 thepoosh i thought they did it like this http://blog.sqisland.com/2015/01/partial-slidingpanelayout.html Nov 05 07:56:36 although, seems with each release SPL either works or doesn't with ViewPager Nov 05 07:56:43 never can tell Nov 05 07:57:18 from what I know about google they now force everyone to use the material design guidelines Nov 05 07:58:20 a lot of android information dissapeared Nov 05 07:58:32 for example, i can't find the specs for notification icons Nov 05 07:59:16 for example http://developer.android.com/design/patterns/notifications.html Nov 05 07:59:30 "Use the proper notification icon style for small icons, and the Material Light action bar icon style for your action icons." Nov 05 07:59:52 but that link just goes here now https://www.google.com/design/spec/style/icons.html Nov 05 08:00:12 so how do you know, what size, color, opacity to make a notifica\ton icon ? Nov 05 08:03:07 g00s: probably here - https://www.google.com/design/spec/material-design/introduction.html Nov 05 08:05:08 thepoosh have you used this? https://github.com/umano/AndroidSlidingUpPanel Nov 05 08:06:18 nope Nov 05 08:14:15 g00s: we use this one - https://github.com/umano/AndroidSlidingUpPanel Nov 05 08:14:20 oh Nov 05 08:14:22 O_O Nov 05 08:14:25 YES!!! Nov 05 08:14:26 we use it Nov 05 08:15:20 thepoosh heh Nov 05 08:15:58 thepoosh from the docs, looks like it has 2 views: the part always visible, and the part that expands when the visiable part is touched ... Nov 05 08:16:33 is there a way to hide the 'always visible part' ? for example, in Google Drive ... when you press (+) FAB, it slides up Nov 05 08:16:46 but its hidden completely until you hit (+) Nov 05 08:20:57 just a sec, afk Nov 05 08:21:52 g00s: dunno, we have the always visible part on purpose Nov 05 08:22:34 thepoosh ok, btw glide screen shots are pretty ... hard to understand on play Nov 05 08:24:17 thanks, I have nothing to do with them since we have a marketing team Nov 05 08:24:57 have they been doing play store a/b tests ? Nov 05 08:25:18 "experiments" i think Nov 05 08:25:41 idk Nov 05 08:25:43 maybe Nov 05 08:27:18 g00s: apparently there is a live experiment in progress Nov 05 08:27:35 :D Nov 05 08:27:47 and the screenshots are shit Nov 05 08:28:01 yeah, maybe you see what i see Nov 05 08:28:03 lol wtf Nov 05 08:28:28 g00s: I see the playstore backend Nov 05 08:32:18 How to make sure my service is not killed when app is swiped out ? Nov 05 08:32:27 Run in a seperate process ? Nov 05 08:32:51 Cos i believe when you swipe out the app, the service dies with a process. Nov 05 08:33:15 hi what is the name / terms for this syntax in java for further research that allow to call multiple function without repeatiung the instance/class name : https://bpaste.net/show/5556c50af97e Nov 05 08:34:41 Builder pattern I guess? Nov 05 08:36:22 Mavrik, perfect thanks Nov 05 08:38:01 in the end i fixed the camera issue by building my own camera and not using the built in one (btw removing the portrait from activity thet someone sugested and said the problem is me - its not working m8 so you wrong) Nov 05 08:39:21 troulouliou_div2 thats called a fluent api Nov 05 08:45:30 so with glide, to show a image from url its: Glide.with(this).load("url.com"). What about if the image is a byte[]? Nov 05 08:45:47 does glide work with byte[] as well? Nov 05 08:47:41 orbyt_, I'm sure it takes an InputStream argument Nov 05 08:47:50 That you can use with ByteArrayInputStream. Nov 05 08:51:16 Mavrik: do you know of any docs i can read on that? Cant seem to find any. Im getting a byte[] from a network call, so your saying just construct a ByteArrayInputStream and pass that into glide? Nov 05 09:03:54 Hi. https://developers.google.com/analytics/solutions/testing-play-campaigns Nov 05 09:03:55 "If your application has two receivers registered for this intent, it is recommended that you create a custom receiver that can receive the INSTALL_REFERRER intent and dispatch it to other receivers, including the Google Analytics receiver, as necessary." Nov 05 09:03:55 But should I still keep those two receivers in the manifest? Or I can safely remove them from there and register only my custom receiver? Nov 05 10:17:28 hi thepoosh Nov 05 10:17:46 sunny_slls: ! Nov 05 10:18:00 I am using a viewpager which has a fragment which holds a gridview Nov 05 10:18:22 Presently I am trying to test the performance of the Viewpage Nov 05 10:18:48 through HierarchyView and GPU renderer Nov 05 10:19:14 In hierarchyView the Viewpager shows 3 red colors Nov 05 10:19:34 its taking too much time for processing of views Nov 05 10:19:54 how can I reduce that ? Nov 05 10:20:17 Measure : 3.690ms, Layout : 1.225ms Nov 05 10:20:33 its taking to much time was processing to draw layout Nov 05 11:03:32 Hey, does anyone knows about a good intent picker plugin? or an example of you create a telegram like intent picker Nov 05 11:03:35 attachments Nov 05 11:09:56 huh? Nov 05 11:10:07 intent picker plugin... Nov 05 11:10:10 u wot m8 Nov 05 11:10:53 what exactly are you trying to create? Nov 05 11:13:50 hello, I'm looking at https://android.googlesource.com/platform/bionic/+/master/linker/linker.cpp and there are TRACE macro calls. When SSHing into an Android device, is there a way I can see those traces when my native program calls dlopen()? Nov 05 11:15:46 hithere Nov 05 11:16:23 how do you supress unwanted logging (debug, verbose,...) in release app versions? Nov 05 11:16:35 I have red http://developer.android.com/intl/ko/tools/publishing/preparing.html Nov 05 11:16:58 but supressing it by proguard is not 100% Nov 05 11:17:32 went through some stack advice http://stackoverflow.com/questions/2018263/how-do-i-enable-disable-log-levels-in-android Nov 05 11:18:12 which I am not fully convinced about Nov 05 11:18:36 guardian, I'm betting no Nov 05 11:19:14 Hello, iam new and i have problems to understand the difference between Activites, Fragments and Views. Can someone enlight me :) Nov 05 11:19:42 the android developer site does a pretty good job of explaining it Nov 05 11:20:14 bolovanos, you could wrap android.util.Log and add a some sort of log level guard on each call, or you could use a different logging library like slf4j Nov 05 11:20:22 i read it there. didnt help clear Nov 05 11:20:26 What I have on my mind as solution is separate class implementing standard methods for logging, this class upon initialization will be set to needed lvl of loging Nov 05 11:20:41 Hey guys. I have written a Viewpager which contains a gridView Nov 05 11:21:13 Zharf, :) it seems to be same solution as you suggest - any cons? Nov 05 11:21:14 In the hierarchy I can see that the viewpager is taking time in measure and layout Nov 05 11:21:35 how can i optimize the performance and lessen the measure and layout time ? Nov 05 11:21:44 leo19, activity's your window, view is a component you can put on a window, fragment is a component you can attach to a window lifecycle which may or may not have a collection of views inside of it Nov 05 11:21:53 njcomsec, thats what im trying to do -> https://telegram.org/file/811140955/3/uL7GVV0tAVo/e3ad6d760787d22d4a Nov 05 11:22:28 bolovanos, without proguard the code is left in the apk, but never used, that's pretty much it Nov 05 11:22:28 zharf, i readi should always use fragments instead of activites when possible. would you agree on that? Nov 05 11:22:49 no Nov 05 11:23:04 leo19, you'll need an activity in the background to hold your fragments, but yes... if you build fragments you can easily build activities that have different configurations of the fragments Nov 05 11:23:20 or more easily... Nov 05 11:24:41 Zharf, ok, seems legit - thak you Nov 05 11:25:02 S0phos, oh you want to build a view to allow the user to pick an application that can use the intent you're sending? Nov 05 11:25:07 yes Nov 05 11:25:30 sorry for the bad explaination Nov 05 11:26:44 zharf, let me put what you said in my own words. so for example i have an activity that contains 2 fragments, but i can also have an acitivity that contains views.So views and fragments are on the same "level"? Nov 05 11:26:51 Zharf, is there anything like that already ready online? Nov 05 11:27:38 S0phos, probably, but I've rolled my own in the past, based on android.widget.ActivityChooserModel source code Nov 05 11:27:42 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.1_r1/android/widget/ActivityChooserModel.java/ Nov 05 11:29:04 leo19, fragments can also contain views which the activity can display... but you can also have fragments that don't have any views and just contain some logic Nov 05 11:30:15 Zharf, how do i append a fragment that i create on the page absolute to all other elements on screen( i mean not moving them when i add the view to the layout) ? Nov 05 11:30:41 zharf, still dont get it i think. i will keep google it. Seems like there are alot of ppl who want something from you. thanks for your time/help :) Nov 05 11:31:01 leo19, it's not usually this busy -.- Nov 05 11:32:26 S0phos, just adding a view on top of other views? use a framelayout or a relativelayout Nov 05 12:01:35 So have you guys hard about the intent picker plugin? Nov 05 12:17:56 why do i get escaping of " on my json request Nov 05 12:18:20 does the httpurlConnection does that? Nov 05 12:21:48 You get escaping where? In the debugger? Nov 05 12:34:44 Leeds: ? Nov 05 12:34:52 thepoosh: ! Nov 05 12:34:55 HAI Nov 05 12:35:03 have you seen this - https://skillsmatter.com/conferences/6712-droidcon-2015#skillscasts Nov 05 12:35:03 ? Nov 05 12:39:21 conference in London? Nov 05 12:40:51 closer to you than to me :) Nov 05 12:41:04 that's true Nov 05 12:41:13 but they released all the talks Nov 05 12:41:17 oh, and last week... yeah, that's good Nov 05 12:43:03 thought you'ld like it Nov 05 13:21:48 hi all, new to android development Nov 05 13:22:27 I'm trying to add https://github.com/jjobes/SlideDayTimePicker to my project, but when I compile the project I get the following error message: Gradle sync failed: Project with path ':slideDayTimePicker' could not be found in project ':app'. Nov 05 13:22:53 If I inflate a menu containing an icon into a Toolbar, and the icon is a vector drawable, the icon's colour isn't changed to match that of the back arrow (etc.). Is there a simple way to make the icon colour match the back-arrow colour? Nov 05 13:23:10 Setting `colorControlNormal` doesn't change it. Nov 05 13:27:12 I have animation which changes layouts position/width and it all worked fine until I added listview in the layout which is being animatied. Is there any know reason for this? Found similiar case from SO without any answers: http://stackoverflow.com/questions/22453630/drawing-a-view-through-animation-is-very-slow-because-of-list-view-inside-it Nov 05 13:27:31 layout's Nov 05 14:15:33 To (kind of) answer my question from earlier: http://stackoverflow.com/questions/28219178/toolbar-icon-tinting-on-android Nov 05 14:18:05 "If we don't mutate the drawable, then all drawable's with this id will have a color filter applied to it." - Did not know this. Nov 05 14:21:37 Hello folks. Is it possible to switch on the developer mode from the recovery menu of my tablet ? Nov 05 14:22:17 ngirard: I dont think this is the right chanel for that question, sorry Nov 05 14:22:29 #android-root should be what you're looking for Nov 05 14:22:44 Thanks jvrodrigues. Which channel... oh right, thanks for your feedback ! Nov 05 14:23:32 Who here replaced EventBus by rxjava and how did that workout? Nov 05 14:38:28 is there a way to make a RecyclerView fill up the entire screen even if there aren't enough elements? Nov 05 14:40:52 Eplebit: What do you mean by "fill up the entire screen"? Nov 05 14:41:24 Eplebit: is match_parent not working for you? Nov 05 14:42:22 jvrodrigues: nope, doesn't seem that way Nov 05 14:42:36 have you tried setting a background color? Nov 05 14:42:39 in your xml Nov 05 14:42:52 yes Nov 05 14:42:59 still nothing? Nov 05 14:43:16 from some googling it seems like it's the linearlayoutmanager that ignores it... Nov 05 14:43:34 what does that have to do with it? Nov 05 14:43:48 Is there any way to make view unclickable in preview mode ? Nov 05 14:44:47 jvrodrigues: it ignores the height property (in this case match_parent), some say... Nov 05 14:45:36 well Nov 05 14:45:37 yea Nov 05 14:45:49 ignores the height of the children, not the recyclerview itself Nov 05 14:46:02 you said you want the recyclerview to fill the screen, not the children Nov 05 14:46:16 ah, ok Nov 05 14:50:30 to make the children fill the screen you will need a custom layout manager yea Nov 05 14:55:16 ah, sorry. I'm terrible at explaining this Nov 05 15:13:38 what's best way to have several imageview halfway over eachother in a row? Nov 05 15:15:14 you can do margins in a linear layout Nov 05 15:16:39 probably easier on a relative layout tho Nov 05 15:18:42 i think he means overlapping layers? or i guess you could just clip the images Nov 05 15:18:48 crop/clip Nov 05 15:19:07 yea, easily made through a relative layout tho Nov 05 15:19:37 just draw the second on top of the first and add a margin thats equal to half of the width Nov 05 15:19:51 though if the width is dynamic this can only be done programatically Nov 05 15:23:47 When did the AVDs get so good? All of a sudden they seem faster than Genymotion Nov 05 15:24:48 Might be HAXM. Nov 05 15:25:44 jvrodrigues: Why RelativeLayout? I avoid RelativeLayout as much as I can, because performance is (AFAIK) usually worse than LinearLayout or FrameLayout. Nov 05 15:26:01 Well, depending on what you're doing. I guess in many cases the performance will be similar. Nov 05 15:28:26 I tend to use RelativeLayout more than LinearLayout, though there might be performance concerns, I believe them to be forgetable Nov 05 15:29:17 In his particular case using a RelativeLayout is easier because the images will, by default, be drawn on top of each other, so he only has to align the first with the second and add margin Nov 05 15:29:36 whereas in a linear layout he would have to sum widths and add negative margins Nov 05 15:29:43 just negative margins in a linear layout is simpler Nov 05 15:30:09 jvrodrigues: It'd be negative margins in both cases. Nov 05 15:30:19 yea, but with a relative layout you have to set 2 dimens: width and half width Nov 05 15:30:21 or if you just want to do margins only, a frame layout is still even simpler Nov 05 15:30:23 TacticalJoke: huh, no it wouldnt Nov 05 15:30:41 jvrodrigues, it's a matter of relativity Nov 05 15:30:57 it's negative from one perspective while. positive from another Nov 05 15:30:58 with a frame layout you would have to set as many dimen elements as imageviews Nov 05 15:30:59 Hmm, true, you could align lefts and add nargins. Nov 05 15:31:37 margins* Nov 05 15:31:38 (or a linear layout, only with negative margins, in this case, which make me somewhat unconfortable to begin with) Nov 05 15:31:43 Though it's not really simpler. Nov 05 15:32:41 well it's, at least in my opinion, more correct. Nov 05 15:32:58 there is no such thing as more correct for this Nov 05 15:34:50 hi all Nov 05 15:34:56 hey Nov 05 15:35:43 I have an activity where I have to add multiple clock times to a single item, but the material guidelines do not have such kind of UI interaction Nov 05 15:35:57 any tips on how this should look like? Nov 05 15:36:46 What are clock times what is a single item? Nov 05 15:38:05 a single item is a meeting, the clock times are at what times the meeting takes place Nov 05 15:38:42 so one meeting "session A whatever" would meet at 10:00, 15:00 and 18:00 Nov 05 15:38:46 (for example) Nov 05 15:38:57 so the app needs some way to add multipe clock times to that one meeting Nov 05 15:41:14 so you want it to be a clock, can it not be text? Nov 05 15:41:18 you can add it in a cardview Nov 05 15:43:10 exit Nov 05 15:44:35 jvrodrigues: Overlap the layouts with aligntop, alightbottom,alignstart,alignend end then layout_margin you mean? Nov 05 15:45:21 yea, you align the second with the first, the third with the second and so on, and add half-width for the margin Nov 05 15:48:27 is there an irc channel for PushWoosh? Nov 05 15:48:32 or if performance is an issue go the pfn way Nov 05 15:48:46 linear layout with negative margins Nov 05 15:50:00 though this is one of those situations where a relative layout just fits. Nov 05 15:50:33 * danijoo never had performance issues with RelativeLayout ... Nov 05 15:50:52 it's easier for me with relative here, but this shows only first two, am i doing something dumb? http://pastebin.com/mqw6Wt0v Nov 05 15:51:39 jvrodrigues, no, it's incredibly cumbersome to use RL here, as you're basically emulating LL by having to align N-1 times for N images Nov 05 15:52:02 if it were not only in a row, RL could make more sense Nov 05 15:52:10 but the requirement was in a single axis, which makes LL an ideal choice Nov 05 15:52:24 I see, that does make sense yea Nov 05 15:52:53 i dont see how i would align top of each other with LL because LL doesn't have alignTop etc Nov 05 15:53:24 you just need to align start Nov 05 15:53:34 hello o/ Nov 05 15:53:55 so, i'm developing an android application, and i've setup the google sign in with a google-services.json file. but now i want to enable GCM with another google account, which will create a different google-services.json file... how should i proceed with this? its not possible to have 2 different google-services.json files in the same app.. or is it? Nov 05 15:54:03 then adding different padding to each imageview jvrodrigues ? Nov 05 15:54:54 margin* yea Nov 05 15:55:19 jvrodrigues: Do you see why mine only shows first two by the link i sent? Nov 05 15:57:05 you're not setting a drawable on the third? Nov 05 15:57:20 jvrodrigues: Drawables on all Nov 05 15:58:07 wrong drawable? Nov 05 15:58:49 dsneves: I dont think you can have 2 google accounts connected to the same app :/ Nov 05 15:59:41 jvrodrigues: It works if I add different dps on each other by manually testing, but I was thinking I should use better solution Nov 05 16:01:42 jvrodrigues: yeah... so i have to use the same google account to setup both google services - the google sso and gcm ? Nov 05 16:02:35 I don't see how i could all this with LL Nov 05 16:03:53 mentazoom, just add negative paddings to each item Nov 05 16:03:57 er, margins Nov 05 16:05:37 as for align top, layout_gravity=top Nov 05 16:06:57 pfn layout_gravity=top would just set in top of the layout not the imageviews on top of each other, or am i misisng something Nov 05 16:08:11 if all image views are gravity=top, of course they will be aligned Nov 05 16:08:30 you have been told, multiple times, to use negative margins Nov 05 16:09:11 Hello dev, I have a pre Lolipop UI of Actionbar with tab bars using ViewPager to swipe to next fragment page. But now I want to add like 2 more fragments, but not with ViewPager. How can I show a fragment on top of ViewPager? Or is it going to be ugly and a redesign is necessary? Nov 05 16:09:30 on top of how, vertically or z-order? Nov 05 16:10:04 z-order Nov 05 16:10:23 adding on top is easy, just add it into a layout that allows that Nov 05 16:10:29 like put your viewpager inside a framelayout Nov 05 16:10:30 the FramentLayout is the ViewPager. Nov 05 16:10:44 and add the fragment to the framelayout, presto, fragment on top of viewpager Nov 05 16:12:11 pin, wait, how can I add a ViewPager in a FrameLayout? I thought this can only be done using Fragments. Nov 05 16:13:09 From my experience I use FrameLayout only for Fragments, I've never thought it could be used by any view. Nov 05 16:13:34 good morning Nov 05 16:13:37 unless explicitly documented as such, views can be composed any way you want Nov 05 16:16:23 pfn I agree with you. But where do I have to look on how to add any view in a FrameLayout. The only way I know is using FragmentManager.beginTransaction().replace(myFrameLayout_id, fragment). Is there a way to do it with any view? If I'm asking too much, I'm sorry. I'll google further than. Nov 05 16:17:07 Number5, add a container view into your framelayout Nov 05 16:17:12 add the fragment into the container view Nov 05 16:17:46 instead of calling replace you can call add Nov 05 16:18:02 Good day, i am currently working on a native activity library which does some handing of events. i am using a ALooper_PollAll/ALooper_PollOnce in the library but that seems to result in a infinite loop. Is it allowed to have multiple pollers in a single application anyway? (since the main glue also handles its own events) Nov 05 16:18:14 jvrodrigues, this will only add fragments to the stack, so you can popup. Nov 05 16:18:51 pin thnx, I'll try it out. Nov 05 16:32:29 Anyone experienced with making an imageview into a slideshow type Nov 05 16:32:36 Like, having it change images every 5 seconds? Nov 05 16:32:50 drose379: use a fragment Nov 05 16:32:59 Why? Nov 05 16:33:28 Use a fragment man Nov 05 16:33:39 Ok why Nov 05 16:33:45 This image is in a CardView Nov 05 16:33:53 Not sure if a fragment is applicable Nov 05 16:34:11 I was just tryign to be cryptic like the above poster Nov 05 16:34:19 just use a countdowntimer Nov 05 16:34:41 Never used that, I'll look into it, thanks Nov 05 16:34:53 drose379: I firmly believe views that have that much business logic in them make for poor design Nov 05 16:35:00 the fragment can do all the business logic Nov 05 16:35:23 and you can put fragments in a CardView Nov 05 16:35:33 How would using a fragment help me? Nov 05 16:35:51 drose379: for one, it cleanly separates the UI elements from the business logic Nov 05 16:36:04 it gives you lifecycle calls so you can change that logic Nov 05 16:36:12 it lets you easily work with several views Nov 05 16:36:24 So you think put the fragment in the carview Nov 05 16:36:30 and put the imageview in the fragment Nov 05 16:36:31 drose379: yup! Nov 05 16:36:33 Then do the slideshow from there Nov 05 16:36:37 yeah, and you can switch them out Nov 05 16:36:41 Interesting actually Nov 05 16:36:43 so, have an imageview, then switch it Nov 05 16:36:46 to another Nov 05 16:36:49 How would you go about switching the imageview? Nov 05 16:37:49 drose379: change the views and use animations for it Nov 05 16:38:07 Ok, so I've never used a fragment in a Cardview.. will be cool to try thatr Nov 05 16:38:08 that* Nov 05 16:38:13 Thanks a lot Sarah Nov 05 16:39:08 Sarah the card has multiple view elements in it, would you say that all the views go in the fragmnet? or just the slidshow ImageView? Nov 05 16:39:15 drose379: You can use a ViewFlipper Nov 05 16:39:34 drose379: that's up to you. Try and organize it in a way that makes sense Nov 05 16:39:42 ViewFlipper? Nov 05 16:40:08 So with the ViewFlipper I wont really need the fragment anymore... Nov 05 16:40:16 that's true Nov 05 16:40:33 * Sarah just looked up that view. Nov 05 16:41:17 Ill try that out, thanks again Sarah Nov 05 16:41:28 drose379: for our image viewer in the app, though, it made a lot more sense to have it running in a fragment Nov 05 16:41:39 but it has a ton of logic around all over the place Nov 05 16:41:44 Is there any way to make view unclickable in preview mode ? Nov 05 16:41:47 not just a simple show image Nov 05 16:41:56 Hmm Nov 05 16:42:14 Got another problem, my card background is not showing on my s6 Nov 05 16:42:17 especially since we had a gallery at the bottom to jump to an image Nov 05 16:42:17 But it shows in my emulator Nov 05 16:43:09 Any idea why a cardview background would not show on android 5.1.1 Nov 05 16:44:09 Nevermind Nov 05 16:44:10 :) Nov 05 16:45:31 droidlambda: lol, what did you find? Nov 05 16:57:10 pfn, it seems to work as you suggested :) But I still think it's an ugly solution. The app needs a redesign, otherwise I'll end up in a mess. Nov 05 16:57:11 thnx Nov 05 16:57:24 Does the SDK come with in and out animations Sarah? Nov 05 16:57:51 drose379: there are some basics Nov 05 16:57:57 https://developer.android.com/reference/android/R.anim.html Nov 05 16:58:02 Thanks Sarah Nov 05 16:58:15 drose379: glad to help :) Nov 05 17:00:45 Im trying to use R.anim.fade_in Nov 05 17:00:49 But I'm getting cannot resolve symbol.. weird Nov 05 17:01:32 drose379: you have to use android.R.anim.fade_in Nov 05 17:02:00 Ah Nov 05 17:02:00 Thank you Nov 05 17:03:12 sure Nov 05 17:05:21 oh no Nov 05 17:07:20 how safe is .getContext() in a Fragment, in onCreateView ? Nov 05 17:24:14 has something changed in LocationManager recently. seems like network-based locationsearching takes forever as it used to take less than a second or so Nov 05 17:53:49 Hey! Nov 05 17:54:10 Can anyone with international presence let me see a screenshot of their new relic geographical map that shows network failure rates? Nov 05 17:54:36 I have no baseline to compare from and it would be helpful to see if other apps/users are experiencing the same international traffic issues we are seeing Nov 05 17:56:13 o/ Nov 05 17:58:11 i'm following this guide https://developers.google.com/cloud-messaging/android/client ( google gcm client ) but after setting the compile dependency on play-services-gcm i dont have the com.google.android.gms.gcm.GcmListenerService Nov 05 18:00:08 dsneves, sync gradle Nov 05 18:01:40 danijoo: i did... still have nothing Nov 05 18:04:35 actually, in android studio the gcm dependency does not show in the 'External Libraries' for some reason.. Nov 05 18:05:32 show your gradle file Nov 05 18:08:19 danijoo: https://gist.github.com/dneves/cb18a0a34a86a220db61 Nov 05 18:09:26 no idea sry Nov 05 18:09:54 yeah... strange stuff... the plus and identity works fine... the gcm is not included for some reason :( Nov 05 18:10:08 oh wait Nov 05 18:10:26 a clean project resolved. :s Nov 05 18:10:36 gradle sync was not enough Nov 05 18:14:51 anybody use the umano AndroidSlidingUpPanel? is it possible for it to be completely hidden in its resting state, and only show the main content area when needed ? Nov 05 18:15:13 i'd like it to be completely hidden until the user presses the FAB (+) button Nov 05 18:16:57 People on /r/androiddev seem to think RecyclerView is simply better than ListView. Nov 05 18:18:08 Every time those threads come up it's "TL;DR: Don't use ListView -- use RecyclerView". If only things were that simple. Nov 05 18:20:34 TacticalJoke :D Nov 05 18:22:31 TacticalJoke have you seen anything like cwac-merge but for RV ? Nov 05 18:23:15 I'm using a toolbar with a left hand drawer (NavigationView) menu with 5 menu items Nov 05 18:23:19 Nah, but I haven't looked. Nov 05 18:23:47 There's a gray active background color that being set across each menu item when the user selects it Nov 05 18:24:23 However I can't find where the gray color is getting set Nov 05 18:24:30 g00s: are you talking about MergeAdapter? Nov 05 18:24:42 hey thepoosh , yeah ! Nov 05 18:24:49 we use it Nov 05 18:24:53 it's good Nov 05 18:24:57 for recyclerview ? Nov 05 18:25:00 nah Nov 05 18:25:03 oh ha Nov 05 18:25:04 for listview Nov 05 18:25:11 does anyone know of an attribute that sets the active background color for a menu item Nov 05 18:25:14 myabe i should try to convert it Nov 05 18:25:32 lexton: is it a menu, or did you put a listview in your drawer layout? Nov 05 18:25:34 i wonder if its a problem because the VH is a generic Nov 05 18:26:50 it's a menu created with a lexton: it's the tint i think Nov 05 18:27:36 so how would I get rid of the tint? Nov 05 18:27:45 g00s: Mark will be happy Nov 05 18:31:57 lexton: try this: http://stackoverflow.com/questions/31097716/how-to-style-the-design-support-librarys-navigationview Nov 05 18:39:25 g00s: i just got a throwback thursday post on reddit Nov 05 18:39:27 https://redd.it/3rn0u6 Nov 05 18:39:54 lol Nov 05 18:40:37 tips and tricks my ass Nov 05 18:42:22 lasserix: welcome aboard Nov 05 18:44:20 thepoosh TacticalJoke here is a strange future scenario i had. seems like MS is working with redhat to qualify .Net on RedHat Linux. What if .... Oracle loses interest in Java, and .Net becomes the defacto standard for linux development :P Nov 05 18:44:42 well, on the server. because java failed in the client space mostly Nov 05 18:44:52 that is weird Nov 05 18:45:13 thepoosh but you did hear about MS on redhat right ? Nov 05 18:45:24 yeah Nov 05 18:45:28 about a year ago Nov 05 18:45:30 java will be like cobol - never going away for sure Nov 05 18:45:41 That'd be cool, but I think Linux will forever have dissociated-identity disorder. Unifying stuff on that platform seems impossible (and that's a real shame). Nov 05 18:45:46 dissociative* Nov 05 18:46:51 i have been using .net core and vs code on OS X for a little while, been OK of studying Nov 05 18:47:10 g00s: Nov 05 18:47:13 As a principle, we don’t want to ask the community to come to where we are. Instead, we want to go where the community already is. Based on feedback that many other projects have received it seems the majority of the .NET community is on GitHub. Nov 05 18:47:14 Are you using C# or F#? Nov 05 18:47:19 http://blogs.msdn.com/b/dotnet/archive/2014/11/12/net-core-is-open-source.aspx Nov 05 18:47:38 TacticalJoke i'm reading through 'Essential C# 6' Nov 05 18:47:57 thepoosh yeah, i think thats cool. i'm pretty damn amazed by VS Code. Nov 05 18:48:15 electron thing running on node.js Nov 05 18:48:33 i get the impression it gets its C# smarts from the compiler somehow Nov 05 18:50:40 anyone care to explain why gradle is taking 20 minutes to build??? Nov 05 18:51:13 thepoosh because gradle :P Nov 05 18:51:27 Functional Programming with Kotlin: https://youtu.be/AhA-Q7MOre0 Nov 05 18:51:36 i stopped the build, the stop task is taking now a minute Nov 05 18:51:39 and running Nov 05 18:51:40 TacticalJoke yeah i started to follow the kotlin twitter Nov 05 18:51:44 Mike Hearn represent. Nov 05 18:51:48 TacticalJoke: is that even stable yet? Nov 05 18:51:59 1.0 is probably gonna be soonish. Nov 05 18:52:08 I think it's basically stable now, though (not sure). Nov 05 18:52:18 i really want to know how kotlin use effects jack & jill Nov 05 18:52:25 not touching that until it's at least 1.0 Nov 05 18:53:01 like, if i have a module in my project that uses kotlin, does it need to be bunded as a jar and fed to jill or crazy things like that Nov 05 18:53:52 the only thing from keeping me from playing around with it more is understanding the consequences with J&J Nov 05 18:54:12 but google hasn't really said anything about J&J lately either Nov 05 18:54:31 its kinda funny, hooking into the .net community, how open the development and roadmap is Nov 05 18:54:43 makes android look like some closed off ecosystem Nov 05 18:54:52 i like that Nov 05 18:55:00 plus, C# is amazing Nov 05 18:55:05 if you ask me Nov 05 18:55:29 C# 7 will have more pattern matching stuff Nov 05 18:55:43 how? Nov 05 18:56:55 thepoosh trying to find the article from yesterday Nov 05 18:57:08 I use xamarin, so c# to wrinte android code Nov 05 18:57:55 not sure if it's worth it, though... Nov 05 19:00:16 Eplebit: why? Nov 05 19:00:35 If I'm writing a custom adapter for a spinner, does that need to be in a new class entirely from the class the spinner is declared in? Nov 05 19:00:53 there's some stuff you don't get Nov 05 19:01:22 kalimaya: only if you want the code to be readable and maintainable Nov 05 19:01:26 kalimaya: No, but it's good practise to separate. Nov 05 19:02:06 It'd also be easier to reuse, I assume? Nov 05 19:02:17 yep Nov 05 19:02:23 Just different string[] Nov 05 19:02:48 aha! thanks guys :D Nov 05 19:02:53 Also easier to read both classes. Placing two classes together doesn't help readabillity. Nov 05 19:03:03 I mean two unrelated classes. Nov 05 19:03:42 I just realized I'd probably reuse the adapter for the spinner, too, so it makes more sense to separate. Nov 05 19:04:12 yup. Occasionally you’ll have a truly one-off adapter for something like that, and then it might make sense to make it an inner class Nov 05 19:04:28 but most of the time you write it that way, and then realize you need it elsewhere Nov 05 19:04:43 or worse, you keep writing the same adapter over and over, but with little tweaks Nov 05 19:06:13 Right now, it's a "Select gender" adapter I'm working on, but that same adapater should be good if I wanted to ask the user if they were a patient or not Nov 05 19:07:03 why not just used the arrayadapter? Nov 05 19:07:49 I've had a lot of trouble with it, and I need to get this thing done in 10 days Nov 05 19:07:51 thepoosh http://www.infoq.com/news/2015/10/csharp-7-sneak-peek Nov 05 19:08:38 the other big issue i'm stuck on i'll probably ask about tonight, when i finish this activity Nov 05 19:10:51 thepoosh around 0:25 https://channel9.msdn.com/Blogs/Seth-Juarez/Looking-Ahead-to-C-7-with-Mads-Torgersen Nov 05 19:11:10 s73v3r: thanks for the link to the NavigationView color background customization, I got it working by setting app:itemBackground="@color/transparent" Nov 05 19:12:47 wasn't too much to be exited about in c# 6 :/ Nov 05 19:14:39 but stuck without it anyways as my idiot company won't upgrade my resharper license... Nov 05 19:15:57 why? I’m sure the cost of that license is miniscule compared to the cost of VS, or your computer, or your salary Nov 05 19:16:57 Marshmallow november 2015 security update has been pushed to my nexus 5 Nov 05 19:17:05 anyone else get the update? Nov 05 19:17:43 thepoosh 0:30 recursive pattern matching Nov 05 19:18:05 Those Samsung devices that have that crash related to AppCompat -- those must struggle to run loads of apps. Nov 05 19:18:09 Does anyone have one of those? Nov 05 19:18:53 what AppCompat crash? Nov 05 19:19:22 "appcompat-v7 v21.0.0 causing crash on Samsung devices with Android v4.2.2": https://code.google.com/p/android/issues/detail?id=78377 Nov 05 19:19:45 yeah only samsung crashes galore Nov 05 19:19:51 Hmm, they've finally fixed it: "Right, we've decided to do a one-time rename of the internal classes which *should* fix this" Nov 05 19:20:10 Though there is this: "I have done no testing on those devices though, and don't plan on doing any either." Nov 05 19:20:51 TacticalJoke osxorgate i heard things exported on classpath is going to be part of the CTS Nov 05 19:20:51 that person should be shot Nov 05 19:21:06 not sure how far along that has gotten though Nov 05 19:21:38 last well i was reading about on carrier (yes CARRIER, not OEM) switching out a crypto lib that crashed an app Nov 05 19:21:41 its becoming a shitshow Nov 05 19:22:08 any thinking person would say this kind of fragmentation is bad and exists Nov 05 19:22:19 I don't like his attitude: "You don't have to use the support libs, if you feel that the time you would have saved investigating this 'bug' is more than the time you'd spend implementing what it gives you, feel free to do so." Nov 05 19:22:42 yeah its like, well i dont have to use android either :) Nov 05 19:22:49 and it’s people like him that give open source a bad name Nov 05 19:22:53 and if there was more competition in this space, i probably wouldn't Nov 05 19:23:01 I'd never act like that professionally. It'd just be silence or "This problem will be fixed". Nothing emotional; nothing personal. Nov 05 19:23:54 i think there is something wrong with the reward / penalty system at google when it comes to bugs Nov 05 19:24:01 at least on the android team Nov 05 19:24:08 g00s: Yeah, it'd be so nice to be able to jump ship and get away from all the horrible patterns and bugs and so on. Nov 05 19:24:40 hi.. a stupid question.. i don't remember shotcut tu back previous line when create a new prop.. for example... alt+enter create a new property and i'd like go back into previous line Nov 05 19:24:49 at one company i worked for, we had technical writers look over out API docs, etc. and if people had questions, this went to first level support. and that was measured. and if they couldn't answer it, then it went to our desks. so we did a good job of good docs Nov 05 19:25:27 almost every week or so we'd have a meeting with support to get stats on what people were calling about Nov 05 19:25:57 google is such a data driven & advanced company, but in so many ways they seem like they are in the stone age Nov 05 19:26:05 devuser: I guess Navigate > Back. Nov 05 19:26:10 And the shortcut should be stated there. Nov 05 19:26:36 g00s: It'd be amazing if Google were that well put together. Nov 05 19:27:37 Ctrl+At+Left but doesn't work Nov 05 19:27:52 if use Menu it workes :( Nov 05 19:28:01 Some people have a problem where Ctrl+Alt+Left/Right is taken by their system keyboard. Nov 05 19:28:08 I had to change my keyboard settings to enable it. Nov 05 19:28:20 TacticalJoke, may be... i use Ubutu Nov 05 19:28:22 Ubuntu Nov 05 19:28:23 C+A+L/R rotated the screen (or something similarly stupid). Nov 05 19:28:31 Like I need a keyboard shortcut for that. lol Nov 05 19:28:52 I'm on Windows, personally. Nov 05 19:29:30 Oh yeah :) i find in ubuntu shortcut thanks Nov 05 19:30:17 Yeah, chris banes has a pretty shitty attitude about what the support libraries are.. He seems to think it's google doing us a solid Nov 05 19:30:18 Ah, it's "Move workspace left" in Ubuntu. Nov 05 19:30:29 But thinking google should take any action on that issue is kind of dumb Nov 05 19:30:41 I dont' use workspace Nov 05 19:31:10 it’s not Google’s fault, but it’s definitely their problem Nov 05 19:31:23 It's okay, devuser. We'll allow this. Nov 05 19:31:27 :D Nov 05 19:31:34 there’s no way Samsung is going to be able to push any kind of fix in a timely manner, if at all Nov 05 19:31:37 :) i remove shortcut Nov 05 19:31:56 On my keyboard, Ctrl+Alt+Down was "rotate screen upside down". I kept pressing that shortcut by mistake; drove me crazy. Nov 05 19:32:04 s/keyboard/laptop/ Nov 05 19:32:18 Trying to un-turn-things upside down with the mouse was really hard. Nov 05 19:32:48 Felt like I had dropped acid. Nov 05 19:33:02 (I think Ctrl+Alt+Up didn't fix it.) Nov 05 19:34:15 SimonVT i think chris banes has a very tough job, so you have to cut him some slack Nov 05 19:34:28 Please Nov 05 19:34:32 haha Nov 05 19:35:25 google should probably put more resources on it though Nov 05 19:35:48 at least some more QA, etc Nov 05 19:36:56 Google Repository 23 in Sdk manager Nov 05 19:38:32 I have no idea about whether they need more resources, or they're spending their time poorly, or it's all part of a greater plan Nov 05 19:39:08 I just view the support libraries as tools, like AS or everything else needed to build an app Nov 05 19:39:17 Can someone share with me their NewRelic dashboard showing network error rates across the world? Nov 05 19:39:31 ah Play Services 8.3 Nov 05 19:39:32 My numbers are insanely high but I'm not really doing anything dramatic with code Nov 05 19:42:09 Does anyone even use NewRelic here :/ Nov 05 19:42:21 My Crashlytics is giving me a ton of inet errors, also Nov 05 19:42:40 I am at a total loss as to what's happening Nov 05 19:43:01 Retrofit 1, OkHttp 2.5.0 Nov 05 19:43:15 OkHttp with a decisive victory. Nov 05 19:43:42 Sorry, multitasking a little here. Nov 05 20:07:05 explodes: hat kind of connection? Nov 05 20:09:39 socket connections Nov 05 20:10:04 In OkHttp, when you use interceptors, and do chain.process(request), is that potentially duplicating a request/response? Nov 05 20:10:52 For example, if I put 1000 of these interceptors in my client, am I going to make 1000 requests/responses? Nov 05 20:10:52 http://pastebin.com/qgwB5J3i Nov 05 20:14:52 No Nov 05 20:15:45 No Nov 05 20:15:49 It's a chain Nov 05 20:16:39 I have an excited new Android dev on our team, she's blown away by the fact that you're here Nov 05 20:19:22 s73v3r: ever figute trhat prob last? Nov 05 20:19:36 yeah, I pretty much punted on it Nov 05 20:19:44 Hmm i have a alooper_callbackfunc that seems to only get hit once, anything i need to do to keep it working? Nov 05 20:20:54 i registered it with a SensorManager_createEventQueue Nov 05 20:21:25 s73v3r: sees almost vernatium Nov 05 20:21:30 s73v3r: http://stackoverflow.com/a/1070709/3865761 Nov 05 20:21:39 not the same thing Nov 05 20:21:45 I’m doing it for a List Nov 05 20:22:00 tp just swap enum for list Nov 05 20:22:12 and I told you that you can’t do that Nov 05 20:22:18 i said this last night Nov 05 20:22:27 i dont believe you. Nov 05 20:22:42 can you show eniter surrounding code? Nov 05 20:22:43 you can’t do the multiple stuff for a list, because it doesn’t know what type to cast when you try to get something out of the list Nov 05 20:22:52 i showed you what I was trying to do last night Nov 05 20:22:57 ohh Nov 05 20:22:58 that's easy Nov 05 20:23:03 you just pass .class Nov 05 20:23:05 List myList Nov 05 20:23:07 for each subtype Nov 05 20:23:20 then you use a getTag{ return classstype} Nov 05 20:23:24 to initialize Nov 05 20:23:30 no, you can’t. Java specifically does not let you do that with it’s generics system Nov 05 20:23:36 yeah it does Nov 05 20:23:45 its a way to get around erasure Nov 05 20:23:47 i promise it works Nov 05 20:23:47 no, it doesn't Nov 05 20:24:03 yeah it does Nov 05 20:24:04 one sec Nov 05 20:24:20 make sure to try compiling it and running it first Nov 05 20:24:36 you may be able to instantiate the collection, but working with it will be pretty much impossible Nov 05 20:24:54 what does Collection.get() return ? Nov 05 20:25:19 you won't be able to say Foo foo = Collection.get(1) Nov 05 20:25:32 it returns an item of type E, where E is the thing in the <> Nov 05 20:25:45 https://weblogs.java.net/blog/hellofadude/archive/2014/06/01/java-generics-ii-understanding-erasure Nov 05 20:26:07 if youmake the thing containg a Class type Nov 05 20:26:17 which you set in constructor Nov 05 20:26:19 lasserix: you keep showing things with classes. I’m not working with a class Nov 05 20:26:22 you can instatiate that way Nov 05 20:26:23 I’m trying to instantiate a list Nov 05 20:26:43 can you post code so i am aware of what you mean Nov 05 20:26:50 i already showed you! Nov 05 20:26:57 no i showed you stuff with class and interface Nov 05 20:27:02 List myList Nov 05 20:27:05 this is about preserving info from type erasure Nov 05 20:27:07 that’s what I was trying to do! Nov 05 20:27:27 and Java’s generics system specificially does not allow that Nov 05 20:27:35 no i mean can you dont paste a small snippet? Nov 05 20:27:42 yeahit can be done Nov 05 20:27:43 what the fuck is there to paste? Nov 05 20:27:45 i have done it Nov 05 20:27:59 you have to explicitly set the .class tag Nov 05 20:28:01 no, you haven't Nov 05 20:28:01 but it does work Nov 05 20:28:09 yeah i have Nov 05 20:28:27 it does not, because the line i pasted DOES NOT COMPILE Nov 05 20:28:36 unfortunatly i was working with people much much much smarter than myself so I can't remember his explnation for how it worked Nov 05 20:28:43 can you post Nov 05 20:28:46 more than the single line Nov 05 20:28:54 ie what is the use of this generic in action? Nov 05 20:28:57 again, what the fuck is there to post? Nov 05 20:29:05 it’s a fucking list. i would be doing list-y things with it Nov 05 20:29:10 how it would be used Nov 05 20:29:14 then why you need the interface? Nov 05 20:29:15 like a fucking list! Nov 05 20:29:31 i would be adding things to it, and getting things from it Nov 05 20:29:40 what in the world are you 2 rambling about? There isn't even an explanation at the start of the discussion... Nov 05 20:29:51 it’s a problem I ran into last night Nov 05 20:30:04 basically, i wanted to create a list of objects that had two type constraints on it Nov 05 20:30:29 I wanted a list of items that extended an abstract class Foo, but also conformed to an interface Bar Nov 05 20:31:42 s73v3r like i said, you can instantiate such a collection - but you can't really work with it Nov 05 20:31:57 yeah can you show me two examples of how you get an item from thislist and invoke the neccessary method? Nov 05 20:31:59 except you can’t, because the line I posted does not compile Nov 05 20:32:15 you honestly cannot imagine how to put something into a list? Nov 05 20:32:26 myList.add(something) Nov 05 20:34:45 yeah but where does interface come in? Nov 05 20:34:54 it’s just an interface Nov 05 20:35:23 it defines some stuff that I want my models to have. but it’s not relevant here, other than I want items that conform to that interface Nov 05 20:36:07 s73v3r, to instanciate a list you need a concreete type, multi constraints is for wildcards Nov 05 20:36:17 that’s what I found out Nov 05 20:36:27 so there is nothing to discuss then Nov 05 20:36:42 right. that’s what I’m trying to say. Lasserix disagrees Nov 05 20:37:20 yeah i am trying to say with DI it is possible to inject the necessary info into that generic to generate the proper list Nov 05 20:37:25 or list element Nov 05 20:37:43 not if it doesn’t compile when i try to declare it Nov 05 20:38:22 lasserix, you cannot instanciate a generic class without a concrete type Nov 05 20:38:24 ever Nov 05 20:38:25 Hey, JakeWharton my app is getting network errors at a rate of over 4%, the only fancy things I'm doing with the app is using retrofit 1 with Observables, and OkHttp 2.5.0 . The vast majority of errors reported in Crashlytics are lowlevel socket errors, and NewRelic is showing network errors all over the world including Canada, Denmark, and Norway. Nov 05 20:39:06 bendem: you can put the necessary info to a generic type to generate the concrete type Nov 05 20:39:14 not from the declaration thesmeves, but through DI Nov 05 20:39:15 what you can do is write a method that'll take an intersection wildcard Nov 05 20:40:14 there are simpler ways too Nov 05 20:40:48 if you can't provide an example, you are wrong Nov 05 20:41:21 lasserix s73v3r not i think i posted this yesterday http://igstan.ro/posts/2011-07-09-composing-java-interfaces-using-generics.html Nov 05 20:41:26 and if you're rambling about using type erasure to bypass the compiler's checks, well, you should really stop doing that Nov 05 20:41:36 see last line, public & Set> void foo(QS queueSet) {} Nov 05 20:41:38 because runtime will not be kind Nov 05 20:41:46 i did read that, g00s, but unfortunately that doesn’t work for what I’m doing Nov 05 20:42:06 g00s, that's a wildcard, you can't instanciate an object from a wildcard Nov 05 20:42:07 s73v3r yeah, sorry - this just isn't something java's type system is any good at Nov 05 20:42:19 bendem: can you provide an example of that? Nov 05 20:42:29 no. Unfortunately, I can’t think of many languages who’s type systems are good at it Nov 05 20:42:47 haskell and ceylon can do this (off the top of my head) Nov 05 20:43:17 they can. but I don’t think they’d be useful for Android development Nov 05 20:43:36 swift might be able to, but i’m not sure Nov 05 20:43:44 explodes, https://gist.github.com/bendem/5b87dbed657f1a4516cc Nov 05 20:43:45 oh , yeah haskell probably not ever; ceylon - git it a few months. gavin is working on it Nov 05 20:44:06 s73v3r: can you show me the entire method you are trying to define? Nov 05 20:45:17 bendem now you have to include how Bar b = a.get(i) works :D Nov 05 20:45:52 abstract method in foo? Nov 05 20:47:02 g00s, what do you mean? Nov 05 20:47:56 since FooBar implements Bar and extends Foo, everything you get from a is assignable to FooBar, Foo and Bar Nov 05 21:06:43 bleh, stupid Paint Nov 05 21:08:35 kinda funny though, how I created a class "public class SerializablePaint extends Paint implements Serializable", and bam, it's serializable Nov 05 21:10:38 it's not working as expected though Nov 05 21:11:09 in the paint object I had a color and was using stroke style Nov 05 21:11:59 bendem i get the impression what s73v3r is trying to do is create a collection bounded by several types without an intermediate class that extends all those; for example perhaps interface segregation was used Nov 05 21:12:06 but when it's unserialized, I'm left with just black colors Nov 05 21:12:38 g00s, well, if he needs that he'll be really sad Nov 05 21:12:54 lol i think so :D Nov 05 21:22:05 lasserix: I’m not trying to define a method. I’m trying to declare a collection. Why can you not understand this? Nov 05 21:23:36 g00s is right in what I was trying to do, and bendem was right in that I was sad when I realized it couldn’t be done Nov 05 21:48:13 i have a localisation question. say i have an app whose menus and stuff will all be english, but some things displayed to the user are in other languages that can be set from a menu-list. is there any way to still organize say 'strings.xml' in the localisation format and selectively choose them? Nov 05 21:52:30 Anyone farmiliar with setting a border around a CardView? Nov 05 21:53:07 nemik: Create other strings.xml files in the other language directories. Android will look there first, but if it can’t find something there, it will fall back to the main one Nov 05 21:53:31 so just don’t put the strings you don’t want localized in the language specific strings.xml files Nov 05 22:01:54 s73v3r: thanks, i get that but here's the thing, the locale on the device won't change. so menus and stuff in the app will always be english Nov 05 22:02:41 but i will have a dropdown somewhere to choose another language only for a few strings in the app. so i need to only localise those and keep everything else same and have it only depend on an internal app-only config, not system-wide locale Nov 05 22:02:47 sorry if i'm explaining this poorly Nov 05 22:03:26 ok, i see Nov 05 22:03:35 then you’re doomed to reimplement the system yourself Nov 05 22:03:46 i think at this point the only thing that makes sense is to plop those other language strings in the same strings.xml and append their id with "es_" or whatever Nov 05 22:04:07 i don’t know why you’d want to do that, instead of using the built in system Nov 05 22:04:08 anyone using vector graphics in Android Studio? Nov 05 22:04:13 it's a shame i can no longer use custom resource types with my own XML. Nov 05 22:04:17 to be honest, it seems quite silly Nov 05 22:04:29 why can’t you? Nov 05 22:04:31 I hate it when you a channel ask you to provide more details with your questions, and when you do nobody responds... Nov 05 22:04:46 getting a strange error with one of my vector graphics -> java.lang.ArrayIndexOutOfBoundsException: length=3; index=3 Nov 05 22:04:50 sometimes nobody who knows the answer is there Nov 05 22:05:03 can't find a solution on google Nov 05 22:05:18 s73v3r: ok, so using the built-in system, how would i do this? how can i from java say "give me the spanish version of this string id"? Nov 05 22:05:35 Yeah, but you should know that you don't know more from the question with fewer details. Nov 05 22:05:37 you’d not have the toggle in your app Nov 05 22:05:47 Asking for more when you haven't got a clue just seems a bit tight. Nov 05 22:05:53 you’d just use the android locale system Nov 05 22:06:04 if they want to set their device to spanish, then they’ll do it Nov 05 22:07:01 ok, this app has two users. one user is an 'admin' that can configure the app for another user that might only speak some language. i want the menu for the admin to be only english, and they can choose a language for the other person for only certain things in the app. does that make sense/ Nov 05 22:07:23 i understand what you’re trying to do, but that use case doesn’t really make sense Nov 05 22:08:05 for one, why would the admin care what language you’re using? Nov 05 22:08:27 second, what if the admin wants the menu in french? Nov 05 22:09:06 in this case they don't, it's only english. and some words are popping up for another person who has no idea how to use this device, they only want those words to appear in their language, that the admin can set Nov 05 22:09:18 it's ok, thanks anyway. i think i know how to proceed Nov 05 22:10:22 chaning language in apps is pretty hacky Nov 05 22:10:26 i take it this isn’t something going on the store? Nov 05 22:10:48 but its possible. You need to change it once at app start in application class and then again after every configuration change Nov 05 22:11:06 just override getResources().configuration Nov 05 22:11:39 s73v3r: no Nov 05 22:12:11 s/override/set Nov 05 22:12:20 danijoo: oh, thanks! i'll look into that Nov 05 22:15:46 nemic: http://pastebin.com/wK23K0Z5 Nov 05 22:16:21 Ughk, Im convinced there is no way to get this stupid touchpad working correctly on Ubuntu. Nov 05 22:16:34 you need to do thin in Application class onCreate & onConfigurationChange Nov 05 22:16:51 this* Nov 05 22:17:17 I guess its a bit of a grasp at wind, but does anyone here have any experience with faulty touchpads in Ubuntu and would be willing to help (in PM or another channel so as not to divert the topic of this channel) Nov 05 22:19:40 danijoo: that's awesome. but would the update configuration then change other things in the app to that language? Nov 05 22:20:36 nemik, all this does is telling the whole app to now run with the selected language. your 'admin' could chose that language and user will then see the strings from the xmls you stored under that language Nov 05 22:20:54 for the admin strings just set them as translateable=false and the admin will always see english Nov 05 22:21:13 danijoo: ahhh ok cool! thanks a lot Nov 05 22:44:28 So I'm working on the spinner in a separate class, after starting it before in the class that uses the spinner, and I'm getting an error on these lines. http://pastebin.com/gypEYGW4 Nov 05 22:45:09 The top line gives an error that it must be declared abstract, the bottom says it's a duplicate class Nov 05 22:46:13 so, i've declared that abstract, but the bottom part screws up if I remove it. Do I just rename the class? Nov 05 22:47:43 erm, i think i got it Nov 05 22:57:45 good day, is there a way to hide the navigation bar using NDK? Nov 05 22:57:57 there does not seem to be a manifest variable for that Nov 05 23:27:19 Hi guys - v.focusSearch(View.FOCUS_RIGHT).requestFocus() is not working in a ListView. Anyone have any idea why? Nov 05 23:27:50 is what is ever to the right focusable=true? Nov 05 23:28:39 It's an EditText so I think it's focusable=true by default Nov 05 23:29:05 You can focus on it by touch Nov 05 23:41:42 Got it working :) **** BEGIN LOGGING AT Thu Nov 05 23:50:44 2015 Nov 05 23:51:25 I'm thinking it's a problem with the emulator not regenerating the R.string properties Nov 05 23:51:40 er not the emulator, but eclipse Nov 05 23:51:41 RustyShackleford, get irc on your android device of choice ;) Nov 05 23:51:54 I type faster with a keyboard lol Nov 05 23:53:00 anyway, I'm stumped. I change a value in res/values/strings.xml and its always showing the old value on screen Nov 05 23:54:12 it could also be me doing something wrong Nov 05 23:54:38 cleaning the project doesn't seem to help Nov 05 23:59:38 RustyShackleford, just throw away the generated files Nov 05 23:59:40 it should regenerate Nov 06 00:03:20 hm I didn't manually delete them. I figured cleaning the project would do that Nov 06 00:03:27 not quite Nov 06 00:03:35 I should have thought of that, but I was getting frustrated Nov 06 00:06:19 I have a permission error with Cordova ( couldn't fix the error) -- then created a native app and i have the exact same problem. Can anyone help me with my error? PickContact requires android.permission.READ_CONTACTS, or grantUriPermission() Nov 06 00:06:27 I have declared Nov 06 00:06:34 and running android 6.0 Nov 06 00:06:39 I set the targetSDK to Android 22 Nov 06 00:06:41 pastebin your manifest Nov 06 00:07:12 I have totally http://pastebin.com/17QEHYV1 Nov 06 00:07:47 I changed it from same result though Nov 06 00:08:28 Gonna debug it once more just to make sure Nov 06 00:09:51 same error Nov 06 00:10:23 Updated android manifest.xml = http://pastebin.com/nbE6NP9w Nov 06 00:14:23 Any thoughts? Nov 06 00:15:20 i dont' really understand how fragments are to be used, i want to have a log view and then another view Nov 06 00:16:16 Nick-S: https://guides.codepath.com/android/Creating-and-Using-Fragments ? Nov 06 00:16:34 wow Nov 06 00:18:42 That is one freaking good site :p Nov 06 00:20:39 I have a permission error with Cordova ( couldn't fix the error) -- then created a native app and i have the exact same problem. Can anyone help me with my error? PickContact requires android.permission.READ_CONTACTS, or grantUriPermission() -- http://pastebin.com/nbE6NP9w is my AndroidManifest.xml , any thoughts Nov 06 00:20:40 ? Nov 06 00:24:59 yeah codepath has some good stuff Nov 06 00:25:07 the way docs should have been :) Nov 06 00:25:36 Indeed, bookmarked it right away :p Nov 06 00:26:11 gotta love lmgtfy Nov 06 00:29:42 i am using inner class ISTANACE singleton pattern Nov 06 00:29:55 is there a good way to release and reinitialize resources within this pattern? Nov 06 00:33:07 TheOnlyJoey: which generated files? Nov 06 00:38:55 if i want to update the content of a Spinner's list of things (when its dropped down) is the only option to set the SpinnerAdapter again ? Nov 06 00:39:30 for example i have some changing things (Spinner shows devices and their connection states), but setAdpater() each time anything changes is kinda lame Nov 06 00:39:51 make a custom adapter Nov 06 00:40:27 canvs2321- but how would the adapter notify the Spinner that something changed ? Nov 06 00:40:39 i dont see anything like notifyDatasetChanged on SpinnerAdapter Nov 06 00:40:57 thats from BaseAdapter Nov 06 00:42:48 i guess i'll have to keep a mapping of views to model and update the view , see if that works Nov 06 00:43:42 maybe this is easier than i thought, with no recycling Nov 06 00:44:47 Could anyone check if there is something wrong with my AndroidManifest.xml , i receive a PickContact requires android.permission.READ_CONTACTS, or grantUriPermission() error, but can't find the cause :( Nov 06 00:45:02 It's at http://pastebin.com/nbE6NP9w Nov 06 00:55:49 CedricBeust https://github.com/ReactiveX/RxJava/issues/3453 :( Nov 06 00:56:29 Well, other people will take over Nov 06 00:57:28 We'll see. David Karnok has always been doing a lot. Nov 06 00:58:03 I think the library is pretty complex though, probably large barrier to entry. lots of weird edge cases with these operators, and testing is difficult Nov 06 00:59:06 nicojuicy: open up the APK and see if the manifest XML is as expected. Nov 06 01:02:30 okay. Somewhat obfuscated but i see the READ_CONTACTS Nov 06 01:03:14 the androidmanifest.xml file is totally different though, it looks like this after extracting the api as zip Nov 06 01:03:14 http://pastebin.com/HfYb4j06 Nov 06 01:03:46 aliasaila: ( sorry for late notice, it's been a long time since using irc :) ) Nov 06 01:07:40 aliasaila: i suppose the target sdk version somehow changed in the apk Nov 06 01:08:39 when i look at the AndroidManifest.xml @ \app\build\intermediates\manifests\full\debug the targetSdkVersion = 23 Nov 06 01:14:55 aliasaila: thanks for the heads up, day 2 on Android, didn't knew that much about gradle :) Nov 06 01:15:10 and you fixed my 2 day irritation :p Nov 06 01:15:44 nicojuicy: irritation starts from now ;) Nov 06 01:16:14 I hope not, i thought to have written the entire program except with the intents that didn't work :p Nov 06 01:16:35 and it's only something for myselve, so only sdk 23 with sdk 22 permissions :p Nov 06 01:16:56 https://github.com/pfn/iota Nov 06 01:17:00 yay, 0.1 of my library is done Nov 06 01:26:37 cool :) Nov 06 01:44:15 quite in here today Nov 06 01:45:05 mhh Nov 06 01:46:00 is there an easy way to get started to help AOSP? Nov 06 01:46:18 I'd like to help out but not sure how :) I am very familiar with the build process and setting up a build environment and dev environment Nov 06 01:46:51 find a bug, fix it, submit a pull request? Nov 06 01:47:05 getting it building is the hardest part Nov 06 01:47:12 you'll need a gerrit account Nov 06 01:47:42 Why does onStop and onResume get called twice in a fragment? Is that normal? Nov 06 01:47:42 https://android-review.googlesource.com/ Nov 06 01:49:21 sleepster no ..... are you sure ? Nov 06 01:49:54 g00s: hmm? Nov 06 01:49:54 oopse, drose379 sorry, not sleepster Nov 06 01:49:58 sleepster, then repo branch and submitting to Gerrit for review is easy Nov 06 01:49:58 ah :) Nov 06 01:50:16 g00s, I just figured out why :) Nov 06 01:50:35 thanks pfn I read to look at the android issues and then start seeing how to solve them Nov 06 01:50:44 just wondering if there are newbie issues to get started Nov 06 01:50:53 like proof reading documentation :) hah Nov 06 01:52:15 sleepster: https://code.google.com/p/android/issues/detail?id=59310 Nov 06 01:52:17 try this one Nov 06 01:52:22 I submitted it ages ago Nov 06 01:52:39 ah perfect. thanks alex_PP Nov 06 01:53:05 that looks doable Nov 06 01:53:54 alex_PP does that still happen on 6 ? Nov 06 01:54:17 not sure Nov 06 01:54:35 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.1_r1/android/text/TextLine.java#TextLine.recycle%28android.text.TextLine%29 Nov 06 01:54:38 looks fixed now Nov 06 02:02:35 Code wont run after finish is called right? Nov 06 02:02:47 In an activity Nov 06 02:04:06 no Nov 06 02:04:17 it will Nov 06 02:04:41 Really, ok Nov 06 02:04:45 Thanks Nov 06 02:05:05 drose379, finish just tells android that you're done with that activity, stuff still runs like any it could in any java class Nov 06 02:05:15 Ok, cool Nov 06 02:05:23 for example if you have an async task that returns after finish Nov 06 02:05:50 or, a lot of people who are new to java have code after finish(); and wonder why it runs Nov 06 02:06:03 Brb Nov 06 02:09:44 pfn, you've strong opinions, what's the best ORM/NoSQL/other storage option on Android these days Nov 06 02:11:22 alex_PP aren't really that many options. there are a few ORMs, but for db's not much at all - except maybe realm.io Nov 06 02:11:37 didn't like the look of realm Nov 06 02:11:44 versant used to have db4o but that dissapeared Nov 06 02:12:15 oh well Nov 06 02:12:29 alex_PP also depends on your workload, data model, etc Nov 06 02:12:39 i'm playing around with mvstore on android but thats just k/v Nov 06 02:12:55 which is like the most primitive of all :) Nov 06 02:13:05 had a look at ormlite, but it doesn't play nicely with auto-value, sugarorm needs you to extend a base class, realm's the same Nov 06 02:13:13 for k/v you have leveldb (+ jni bindings) and mvstore Nov 06 02:13:26 ah ok Nov 06 02:13:45 I don't do much in the way of storage, just flat files or sqlite directly Nov 06 02:13:58 yeah, plain sqlite here too Nov 06 02:14:10 yeah, me too, but i'm bored of it Nov 06 02:14:16 lol Nov 06 02:15:10 no one is responding in android root, anyon know if it is possible too rot desire 626s on virgin mobuile? Nov 06 02:15:17 might just knock something up to generate the boring stuff Nov 06 02:15:44 "ORM is the Vietnam of Computer Science" Nov 06 02:16:24 do most people that contribute to AOSP have other full time jobs? Nov 06 02:16:36 yeah, at google Nov 06 02:22:03 sleepster don't be dissapointed if your submitted AOSP patches don't get used. Nov 06 02:22:27 g00s: thanks :) yeah I just want to practice Nov 06 02:22:40 if I submit 10 patches and only 1 gets accepted Nov 06 02:22:42 I will be happy Nov 06 02:22:49 may as well practice copying stuff into /dev/null Nov 06 02:23:20 sleepster dev tools probably easier to submit patches too Nov 06 02:23:20 g00s: hah Nov 06 02:23:52 to be honest, I just want something on my resume Nov 06 02:23:59 I thought 1 patch Nov 06 02:24:14 err. one accepted patch might be worth putting on my resume Nov 06 02:24:16 hm, would you put that on a resume? sounds strange Nov 06 02:24:38 I am currently doing app development but would like to do platform development Nov 06 02:31:56 platform dev is pretty uninteresting to me Nov 06 02:33:08 hard to get widespread adoption Nov 06 02:33:33 sleepster have you considered linux kernel dev ? Nov 06 02:33:49 have you met Linus? Nov 06 02:34:33 met alan cox once Nov 06 02:34:36 went to the same uni Nov 06 02:34:43 (some time late) Nov 06 02:34:51 map.getUiSettings().setMyLocationButtonEnabled(true); inside of onMapReady callback doesn't show the myLocationButton. If I do it outside of the callback it shows. Anyone know why? Nov 06 02:34:59 https://gist.github.com/anonymous/d0af9088a5db28306388 Nov 06 02:35:03 *later Nov 06 02:35:43 I have a dialogfragment with several buttons. When I click one of these buttons I want to display something else in the dialog. Should I just have another layout in my xml that I set to visible, or is there a better way to do it? Nov 06 02:35:58 ANyone got goot watcha pps to recomend? Nov 06 02:36:06 g00s: yeah, I used to be interested in that stuff. I actually did a lot of windows drivers and linux drivers work in my last lifetime Nov 06 02:36:13 lasserix lolwut Nov 06 02:36:16 DadFoundMy: usually depends on my buttons Nov 06 02:36:27 lasserix: watch apps? Nov 06 02:36:28 DadFoundMy: if you can generalize it hen itmakes it easy to ruse Nov 06 02:36:35 whatever app sthat are cool on a watch Nov 06 02:36:40 lasserix: Nov 06 02:36:44 lasserix: have you been drinking? Nov 06 02:36:54 no Nov 06 02:36:56 lasserix: i want to hide the buttons and show something completely different Nov 06 02:36:58 sleep deprived Nov 06 02:37:11 a listview in this case Nov 06 02:37:22 1 hour sunday,2 hours tueday, 4 hours wedneday, 2 hours latst night Nov 06 02:37:29 sleepster what about this http://www.contiki-os.org Nov 06 02:37:37 you need tom ode the listviw then call notifyDataSetCahnged Nov 06 02:38:14 god i so want anti-of-internet-of-thing bots and hardware, roaming the world Nov 06 02:38:22 g00s: ah interesting. unfortunately, I think brillo is going to take the market :( Nov 06 02:38:45 sleepster ha, not if it requires as much resources as they say it will Nov 06 02:39:08 g00s: yeah that's a good point Nov 06 02:39:38 g00s: I hope the IoT market stays competitive... like the way smart phones used to be before android Nov 06 02:40:19 sleepster lots of challenges, protocols, semantics, security ... but its going to happen. not sure about the internet connected toaster, but other things Nov 06 02:40:47 hah Nov 06 02:40:48 i'n interested in sensor monitoring water quality, etc Nov 06 02:40:55 yeah, I am not sure how smart my toaster needs to be Nov 06 02:41:13 garmin's just released some ANT+ bike lights Nov 06 02:41:24 not sure what the market is Nov 06 02:42:04 the cyclist who has everything, I suppose Nov 06 02:44:03 alex_PP "As rider’s speed increases, the headlight automatically projects further ahead or closer as a rider’s speed decreases when paired with select Edge computers" .. wonder how they do that Nov 06 02:44:36 little servo on the reflector i suppose Nov 06 02:44:39 how? Nov 06 02:44:51 servo and gps/speed sensor Nov 06 02:45:38 I can't see that working worth a damn though Nov 06 02:46:12 yeah i just want full blast all the time :D Nov 06 02:46:16 on a road bike, straight ahead a good distance all the time, and on a mountain bike, there's too many other variables Nov 06 02:46:38 it's not full blast that's changing Nov 06 02:46:50 it's just where the light is focused Nov 06 02:46:55 alex_PP both head mounted and handlebar mounted Nov 06 02:47:14 not a fan of head mounted lights for bikes Nov 06 02:47:24 kinda pain with the helmet Nov 06 02:47:27 eh, it's. kind of the best Nov 06 02:47:29 wobbling etc Nov 06 02:47:30 they're confusing for other traffic Nov 06 02:47:35 lights where you're looking Nov 06 02:47:48 in traffic is a different story Nov 06 02:47:49 had a friend who used one and it was a pain being behind him Nov 06 02:47:55 pfn zebralight using new Cree XHP-35 :) Nov 06 02:47:59 for offroad, toes Nov 06 02:48:01 *totes Nov 06 02:48:04 "You have turned the wheel... this requires us to restart your computer... in 2... 1..." Nov 06 02:51:57 "Open the car door, Hal..." "Dave, I'm afraid... I can't do that... dai... sy,,, dai... sy..." Nov 06 02:53:17 why would one choose WebView over Chrome Custom Tab, vice versa ? Nov 06 02:54:16 the latter for a full browser while looking branded Nov 06 02:54:24 webview for tight app integration Nov 06 02:54:44 ok thanks Nov 06 02:58:39 no comments on my iota library :( Nov 06 02:59:37 pfn: linky? Nov 06 02:59:56 https://github.com/pfn/iota **** ENDING LOGGING AT Fri Nov 06 02:59:58 2015