**** BEGIN LOGGING AT Sat Dec 12 02:59:59 2015 Dec 12 03:33:21 Anyone have ridiculously slow transfers using ADB on the Nexus 5X? Dec 12 03:43:11 I don't. but then I don't have any nexuses either Dec 12 04:54:30 "Oracle officially pushes Java 9 launch date to 2017" Dec 12 04:54:38 d'oh Dec 12 05:16:40 hello everyone :) Dec 12 05:55:02 hidy ho Dec 12 08:34:37 Hello Dec 12 08:35:09 anyone here? Dec 12 08:37:08 will i can get links for getting started with development? Dec 12 08:37:35 not official android Dec 12 08:37:44 docs Dec 12 08:39:36 josethomasd, are you looking for something specific? Dec 12 08:39:41 a book, videos? Dec 12 08:40:30 anythinh Dec 12 08:40:34 anything Dec 12 08:40:45 book is preferred Dec 12 08:41:27 https://www.reddit.com/r/androiddev/wiki/index <-- this is the best I could cook up under short notice Dec 12 08:41:59 I'm thinking about creating an app as a project for my studies with my friends Dec 12 08:42:23 the_rabbit thanks a lot Dec 12 08:42:25 josethomasd, anywhere is a good place to start. Dec 12 08:42:37 looks like a good one Dec 12 08:43:02 i've to start from scratch Dec 12 08:43:18 learned java a bit earlier. but forgotten Dec 12 08:43:34 so I need learn java too Dec 12 08:43:50 yes java kinda comes first. Dec 12 08:44:09 is just basics enough? Dec 12 08:44:26 in my opinion, yes. Dec 12 08:44:42 we are planning to make an app that communicates with our server Dec 12 08:44:43 from there, there are just a huge amount of android specific stuff. Dec 12 08:44:53 ok Dec 12 08:45:11 A lot of people use volley but I personally like using okhttp. Dec 12 08:45:35 o god, actually I said something that can get quite confusing. Dec 12 08:45:46 yeah,. i didn't get it! Dec 12 08:45:58 for networking this is a library I use mostly --> http://square.github.io/okhttp/ Dec 12 08:46:23 depending how you want to program your endpoints --> http://square.github.io/retrofit/ Dec 12 08:47:05 well I'm into just basics first then move on to these Dec 12 08:47:31 yes, i highly recommend just doing a lot of research before jumping in. Dec 12 08:47:32 Shall I just briefly explain what I'm planning to do? Dec 12 08:47:48 yea sure. Dec 12 08:47:52 well Dec 12 08:48:07 message me, you know how to message in irc right? Dec 12 08:48:22 Sorry I dont knoq Dec 12 08:48:27 I'm new to irc Dec 12 08:48:37 "/w the_rabbit " Dec 12 08:48:42 OK Dec 12 08:49:04 is there option for private chat? Dec 12 08:49:16 that is private chat. :P Dec 12 08:49:35 There is an NSA joke in there somewhere. :P Dec 12 08:51:17 lol Dec 12 09:37:42 DAU. Dumbest assumable User. Dec 12 09:37:56 The bane of every dev, even on Android. Dec 12 09:38:03 whom? Dec 12 09:39:45 It's a phrase to refer to the most stupid user that you can expect will use your software. Dec 12 09:40:07 Which are usually then people who won't find anything unless it's explicitly spelled out for them. Dec 12 09:40:33 lol Dec 12 09:40:36 The type of user that constantly clicks away errors, etc Dec 12 09:40:58 ohh Dec 12 09:41:04 The type of user complaining about their PC not working because the screen is turned off Dec 12 09:41:05 Etc Dec 12 09:41:15 lol Dec 12 09:41:23 A common character in horror stories of devs. Dec 12 09:41:40 and sysadmins too btw. if that means anything..... Dec 12 09:41:41 At least in German, DAU has become s kinda-common abbreviation in dev circles. Dec 12 09:42:06 In horror stories of computer guys too Dec 12 09:44:00 Indeed. Dec 12 09:44:41 Luckily, I didn't have to deal with many of them yet Dec 12 09:45:08 One guy asked me earlier that whether I can give him internet in a disc Dec 12 09:45:25 he needed to access the internet from a disc Dec 12 09:45:48 But I'll never forget the 3rd semester compsci student, she couldn't figure out how to use her computer to do stuff. I mean, she could write and run program in a dozen of languages, but had no idea how to switch the WiFi on. Dec 12 09:47:43 Same here. I'm a 5th semester cs student and some students in my class have no idea how to create a gmail account Dec 12 09:48:19 I'm 3rd sem myself. Dec 12 09:48:20 everyone knows how to open the editor and programming. nothing out of the box :( Dec 12 09:49:06 Well, we've even had to use gdb, or design our own processors, we had to write in Java, C, Scheme and some more languages. Dec 12 09:49:21 They are the ones who came from non cs background. But the college doesn't provide the facility to learn them more about the computer. Dec 12 09:49:27 But the issue I have found is that these people can't learn on their own Dec 12 09:49:30 From the first class programming only Dec 12 09:49:47 they had no idea how to create a folder even Dec 12 09:51:18 and that hurts :( Dec 12 09:53:02 colleges should provide some classes for familiarization with computers here Dec 12 09:53:21 nowadays things are changing though Dec 12 09:55:47 True, but there are a lot of things I still will give college credit for. If it wasn't for my physics classes I won't know how to pick up on things on my own. Dec 12 09:57:05 Haha. that also true Dec 12 09:57:44 We can't neglect the help given by college in our life' Dec 12 10:19:24 http://imgur.com/VD5eBrO Dec 12 10:19:51 1.2megabyte of data vs. 40 megabytes of ads. Dec 12 10:20:08 I know why I am using AdBlockers. Dec 12 10:23:45 lol Dec 12 10:31:21 (And yes, I usually pay for apps) Dec 12 10:38:50 I'm using FAB from latest support design. why isn't the icon centered? http://i.imgur.com/mzBxWlh.png Dec 12 10:44:40 yoavst: the issue is, the icon is centred. Dec 12 10:44:47 But you don't want it to be centred. Dec 12 10:44:56 You want it to be slightly further right. Dec 12 10:45:34 So that the weight centre of the circumference circle of the icon is centred. Dec 12 10:45:54 For that, modify your icon file. Dec 12 10:48:44 Thanks Dec 12 11:39:35 justJanne: wow, first time android dev? You're not so good at it at all Dec 12 11:39:59 pewpau: eh, what? Dec 12 11:40:39 justJanne: quick, pull my finger! Dec 12 11:40:53 Eh? Dec 12 11:41:13 do it! No time to explain, there's a billion ants heading for our city! Dec 12 11:42:37 justJanne: a billion human beings died now because of you :( Dec 12 11:42:47 you're a worshipper of satan Dec 12 11:43:16 I'm sorry, I'm confused. Dec 12 11:44:15 justJanne: even if there's just a tiny tiny chance to save millions of people by pulling my finger, you're not gonna do it. Dec 12 11:44:21 only a satan worshiper would do that. Dec 12 11:44:42 Meh, then I'm a Satan worshipper, eh? Dec 12 11:46:46 All the best bands are in cahoots with Satan so it isn't a bad thing Dec 12 11:48:30 yoavst: https://medium.com/@erqiudao/the-play-button-is-not-optical-alignment-4cea11bda175#.rhm2zi3s5 Dec 12 11:54:06 https://medium.com/@lukejonesme/optical-adjustment-b55492a1165c#.m33f03ee5 Dec 12 11:54:13 Design is really really hard. Dec 12 12:05:08 Something else that is really bugging me is that so many apps integrate Google Maps, but offer no way to use integrated OSM or HERE maps instead. Dec 12 12:05:32 Google maps hasn't been updated in 11 years in my city, my whole district is missing. Dec 12 12:05:42 And Mapmaker is not available here either. Dec 12 12:06:08 So, please, use some lib that allows the user to select which map to use. Dec 12 12:10:45 justJanne, same here.. There are streets in my city that where plain fields years ago when google mapped it.. Dec 12 12:11:54 EXACTLY! Dec 12 12:12:21 Exactly that. Google maps at least, after complaints from police and co, modified the routing. Dec 12 12:12:48 Before that, because they never got around to mark a street as footpath, cars ended up at a trail trying to get to the autobahn... Dec 12 12:13:10 aah.. german too :p Dec 12 12:13:39 Kiel? Dec 12 12:13:57 Cause that's where my issue is >_> Dec 12 12:14:06 no. between Heidelberg and Frankfurt Dec 12 12:14:11 Ah, okay. Dec 12 12:14:36 Bavaria. Everything south of the Elbe is Bavaria, and Bavaria isn't part of Germany ;) Dec 12 12:14:47 haha. Hessen actually :p Dec 12 12:15:00 I know, I know... Dec 12 12:15:11 But I agree with the rest about Bavaria :D Dec 12 12:15:18 So is there a library that exposes those mapping libs via single interface? Dec 12 12:15:37 I had found one a few days ago, but am currently on mobile only. Dec 12 12:19:58 If that just don't maintained anymore, someone would need to write a new lib around here, mapforge and gmaps Dec 12 12:24:43 or someone has to start maintaining it again Dec 12 12:43:34 How can I make a toolbar in an AppBarLayout reapear when replacing a fragment. I make it scroll out of the screen via CoordinatorLayout but when I switch to another fragment it should be visible again (The second one is not scrollable) Dec 12 12:48:10 nvm found it: AppBarLayout.setExpanded(boolean) Dec 12 13:40:58 anyone tried the new data binding toolkit yet? Dec 12 13:46:10 storkme, for an hour or so. why? Dec 12 13:50:03 it looks nice, i'm watching a dev talk on it, just wondering if it's worth investing more time in Dec 12 13:50:17 some hate it, some love it.. Dec 12 13:50:24 or is it going to end up as a new volley Dec 12 13:53:46 whats wrong with volley Dec 12 13:55:16 documentation was pretty scarce last time i looked Dec 12 13:55:48 I’d call volley "self-documenting" Dec 12 13:56:35 if you need lots of docs, android is the wrong place :p Dec 12 13:57:07 Well, if you need good tools, good docs, good support, good anything, Google is the wrong place Dec 12 13:57:08 all the other libraries i use are fairly well documented Dec 12 13:57:13 except for ads, they can do that Dec 12 14:01:50 FloatingActionButton.show() doesn't animate, just show it on RelativeLayout. Is there a way to animate it? Dec 12 14:21:17 anyone have any good and up to date guides on using HttpURLConnection Dec 12 14:21:45 via a secondary thread Dec 12 14:25:01 thornekey: If you just want to load something from an URL, look into an AsyncTask. Maybe even look into OkHttp from Square Dec 12 14:25:14 Im using Async :) Dec 12 14:25:35 retrofit Dec 12 14:25:37 ! Dec 12 14:25:40 But i will take a look int those Dec 12 14:25:43 :) Dec 12 14:26:27 also using retrofit here Dec 12 14:26:49 pretty straight forward iyo? Dec 12 14:27:22 oookay, squareup’s website is bugged. Dec 12 14:27:54 String missing: en.rothko.about.s44 Dec 12 14:27:56 >_> Dec 12 14:28:28 http://square.github.io/retrofit/ ? Dec 12 14:29:12 storkme, yes Dec 12 14:29:24 works for me Dec 12 14:29:30 for me too Dec 12 14:32:34 I was reading on their about page https://squareup.com/global/en/about Dec 12 14:33:38 the data binding stuff is a little confusing to me since they introduce a notion of Observables but I've been doing a lot of work with RxJava recently, which has its own observables.... why didn't they just build on those? :( Dec 12 14:35:30 people in other areas of development (frontend web) are doing a lot of cool data binding stuff with Rx Dec 12 14:35:58 what’s so awesome about Rx? I haven’t heard of it before really Dec 12 14:36:54 the x Dec 12 14:36:59 everything with x is better Dec 12 14:37:08 it's just a pattern/toolkit for modelling data as streams, which happens to make doing asynchronous stuff super easy Dec 12 14:38:05 it pretty awesome for doing things like.. connection a list to some buttons/searchviews etc Dec 12 14:38:23 you can model a stream of information so the view automatically updates on changes by observing them Dec 12 14:38:51 I NEED THAT Dec 12 14:38:52 how Dec 12 14:38:53 ? Dec 12 14:38:55 justJanne, CedricBeust had a really good blog series about rxjava. you should check it out Dec 12 14:38:56 o.O Dec 12 14:39:04 pls link :3 Dec 12 14:39:48 sounds like contentProvider thing Dec 12 14:39:49 Let me introduce you to Google. Dec 12 14:39:59 googling cedric and rxjava should be enough ;) Dec 12 14:40:26 Ashiren, not really Dec 12 14:40:34 its hard to explain for me tbh Dec 12 14:40:56 Thanks! And after spending ages trying to build exactly what he describes there, this might have actually just saved me a lot of time Dec 12 14:42:46 hey guys, I'm new to Android Content Providers and trying to figure out how should I handle junction tables for example when calling 'applyBatch' to update a few parent tables at the same time. Do I need to expose the junction tables in content provider's contract so that each junction table has its own content URI? If yes, how would this content URI look like? Dec 12 14:44:34 I've been googling this subject for a while and couldn't find too much info about it Dec 12 14:44:54 danijoo: this one? http://beust.com/weblog/2015/06/01/easy-sqlite-on-android-with-rxjava/ Dec 12 14:45:15 storkme, yeah. theres also another one involving kotlin thats pretty good too Dec 12 15:01:30 I’ve just read all of them... Dec 12 15:01:40 I’m literally crying, this makes everything soo easy Dec 12 15:02:31 welcome to the future~ Dec 12 15:02:45 to the preset ^^ Dec 12 15:02:51 to the 1960s Dec 12 15:03:23 After having worked with some Racket stuff in uni it was painful to work again with java and android, Dec 12 15:03:28 but this... this changes everything Dec 12 15:05:19 do you know android arsenal Dec 12 15:07:37 Hi there! Dec 12 15:07:47 i got my app rejected because of: Policy Issue: Your app was rejected for violating the https://play.google.com/about/developer-content-policy.html. Your app’s rating category and content rating are incorrect. Dec 12 15:07:47 • The content of your app must be rated in accordance with our https://support.google.com/googleplay/android-developer/answer/188189. Dec 12 15:07:48 • These guidelines apply to all content in your app, including user generated content, in-app products, and advertisements. Dec 12 15:08:07 now what th hell should i do? try 500 times resubmitting the classification questionaire? Dec 12 15:08:57 okdamn, do it once and do it right. Dec 12 15:09:10 danijoo: i did, it got rejected Dec 12 15:09:34 and it was 100% correct for me :/ unbelievable damn Dec 12 15:09:50 i would repair and they do not tell me HOW!?!? Dec 12 15:10:36 I dont know your app and what you rated. Its hard to help Dec 12 15:11:26 Good afternoon. Dec 12 15:11:52 who can i contact for help ? :( Dec 12 15:12:07 i can try resubmitting many times but its a neverending story i guess Dec 12 15:12:53 hello all Dec 12 15:13:15 if any of you could help me classificating it please pm me i can tell you what the app does and all the infos :( Dec 12 15:16:48 can anybody help me rating / cassificating my app on play store? :( Dec 12 15:16:56 patience. Dec 12 15:17:07 sorry yep Dec 12 15:17:07 IRC is one of those hit and miss things, sometimes someone will reply instantly, sometimes never. Dec 12 15:17:46 People aren't going to just do a 1 on 1 consulting session for free on a weekend. Dec 12 15:18:13 well, some people might, but those usually then end up not being competent themselves either Dec 12 15:18:24 weekend? it's just someone who is more experienced that could give some suggestion for a certain app type Dec 12 15:18:38 5 minutes Dec 12 15:20:03 okdamn, just show your app and how you rated it. if someone wants to help he will. You will wait forever if you wait for someone to confirm helping you without seeing the problem Dec 12 15:20:49 ^ this Dec 12 15:28:20 is it possible for an app to capture a photo when it is taken and choose if it should be saved or not? Dec 12 15:28:39 isnt that what a photo app does? :p Dec 12 15:29:14 but make sure that the photo is not saved anywhere at all if a certain critera is not met? Dec 12 15:29:54 You mean like snapchat? Dec 12 15:30:16 you cant intercept the photos taken by other apps if thats what you mean Dec 12 15:33:42 Well, technically, you might be able to register as camera app, and then intercept them Dec 12 15:34:16 but that won’t work if the user selects another camera app Dec 12 15:44:13 if i send an intent to the camera with Intent myintent .... startActivityForResult(myintent, CAMERA_REQUEST), can put an extra in the intent to recieve it on the onActivityResult-method? Dec 12 15:49:24 danijoo: do ineed to screenshot something? Dec 12 15:49:49 okdamn, for what? Dec 12 15:50:01 no sorry dont mind sorry Dec 12 15:55:50 When they ask for example: Does you app include offensive speaking or content (note this is not related to user generated content) Dec 12 15:56:24 i put all NO because i do not include any offensive or violent or sex content , images or videos Dec 12 15:56:43 it's a random video chat Dec 12 15:56:50 like chat roulette Dec 12 15:58:25 sounds right Dec 12 15:58:35 indeed, i mean what else :( Dec 12 15:59:07 if someone shows his dick on the videochat it is user generated content :( Dec 12 15:59:26 so after i put all NO the result is my app is ok for +3 people Dec 12 15:59:28 there are more questions then this one Dec 12 15:59:51 violence, offensive, sex, drugs, all NO i put Dec 12 16:01:30 there are more questions then that iirc Dec 12 16:02:04 Where do you mean i have a full questionaire Dec 12 16:02:08 i filled all :( Dec 12 16:02:20 I dont have all questions in head. Dec 12 16:03:18 And I wont ask for your responses question by question if you are not willing to post Dec 12 16:03:23 http://imgur.com/jacoj Dec 12 16:04:29 Hey Everyone! Dec 12 16:05:20 ok sorry danijoo and thanks Dec 12 16:05:36 but damn this thing makes me go crazy when they give 0 explanations on what is wrong Dec 12 16:05:38 crazy Dec 12 16:05:53 post the questions and your answers if you want help Dec 12 16:06:00 and also a description of your app.. -_- Dec 12 16:06:21 danijoo, r/reptiles got me some solid feedback Dec 12 16:06:30 drose379, good to hear :) Dec 12 16:06:44 Thanks for the reccomendation Dec 12 16:09:06 i am writing RecyclerView.LayoutManager lm = new LinearLayoutManager(this); this in my activity class.but this word is red underline Dec 12 16:10:29 milkshake, what does the tooltip say Dec 12 16:10:48 i bet youre doing it in fragment Dec 12 16:20:50 In strings is it possible to have something like this "Volts: %f, temperature: %f" Dec 12 16:20:59 Blah Dec 12 16:21:12 neredsenvy, yes Dec 12 16:21:47 "Volts: %1$f, temperature: %2$f" and then getString(R.string.mString, volts, temp) Dec 12 16:22:17 What about when I'm setting the string Dec 12 16:22:34 get it, then set it Dec 12 16:22:39 can I put this in view like @string/.... Dec 12 16:22:54 Meh stupid questions Dec 12 16:22:57 no sleep Dec 12 16:23:05 how should the view know what temp and volts to put in Dec 12 16:23:56 Yea I get it : P Dec 12 16:24:09 What about subscript/superscript that possible ? Dec 12 16:24:29 what iks that Dec 12 16:24:37 is* Dec 12 16:28:47 neredsenvy: you mean numbers like ²? Dec 12 16:28:59 Not unless you write your own string formatter for that. Dec 12 16:29:09 danijoo what do you mean? Dec 12 16:29:11 cant you do this with javascript? Dec 12 16:29:13 err Dec 12 16:29:14 html Dec 12 16:29:25 and use Html.fromHtml(string) Dec 12 16:29:35 i am using that in my fragment class Dec 12 16:30:12 Html.fromHtml("This has a superscript2") Dec 12 16:30:43 justJanne, Yes Dec 12 16:30:49 Yup. But then you'd end up with Dec 12 16:31:22 A getstring for a string that has multiple replacement tags, Dec 12 16:31:53 A string.format with ("%f"), Dec 12 16:31:56 And some more stuff Dec 12 16:32:17 Or you wrap everything on Html.fromHtml... Hm Dec 12 16:32:36 No good solution for anything, especially without a SpannableString.format method Dec 12 16:33:32 or just s/2/²/ Dec 12 16:43:55 writing a simple formatter for spannable isn't baf Dec 12 16:44:08 bad, it's the best solution really Dec 12 16:46:39 RecyclerView.LayoutManager lm = new LinearLayoutManager(this); what should i write instead of this Dec 12 16:47:15 i am using recycler view in frgament class Dec 12 16:51:30 Hi, why do I get this "setAudioSource failed" when trying to make sound recorder app: http://pastebin.com/S1urxdPL Dec 12 17:01:06 Hello Dec 12 17:02:29 OK I worked out part of the problem: my permissions are not getting properly added. The app fails to launch on the emulator, but if I go to settings and manually give it permissions, it runs OK(ish) Dec 12 17:02:35 What gives? Why are my permissions not working? Dec 12 17:03:41 did you request audio permission properly Dec 12 17:05:00 C_minus, i cant see where you request the permission in your code Dec 12 17:09:15 danijoo line 158? Dec 12 17:09:54 C_minus, since android M this is not enough Dec 12 17:10:09 you need to request the permission at runtime by showing a dialog to the user Dec 12 17:14:08 danijoo OK thanks I'll look into proper ways to do permissions. In the mean time can you tell me why I get an IOException no valid output file from my recorder object?? Dec 12 17:14:35 It's here: http://pastebin.com/rB6USJ8v Dec 12 17:15:01 http://imgur.com/jacoj Dec 12 17:19:26 danijoo lol point taken. Here's the stacktrace. http://pastebin.com/pH5DDctp Dec 12 17:19:32 RxJava 1.1.x gets a completable Api http://akarnokd.blogspot.hu/2015/12/the-new-completable-api-part-1.html Dec 12 17:20:10 no sry Dec 12 17:21:06 what? Dec 12 17:21:13 cant help u Dec 12 17:21:46 something i did wrong? Dec 12 17:21:57 i just dont know Dec 12 17:31:27 how is it going danijoo Dec 12 17:32:33 quite good Dec 12 17:32:49 currently trying to find a new color sheme .. Dec 12 17:32:51 and you? Dec 12 17:33:13 danijoo ah have you seen - there are a few websites that will make a material palette for you Dec 12 17:33:18 doing ok thx Dec 12 17:33:51 yeah i know. But using them gives you a 90% chance there are 100 other apps with the same colors :p Dec 12 17:40:44 hi guys Dec 12 17:40:57 danijoo good work from germany! http://www.news.com.au/technology/innovation/design/german-scientists-achieve-landmark-breakthrough-in-nuclear-fusion/news-story/032c1a173efdf99f599f9311923983fd Dec 12 17:41:04 I have a fundamental question: Dec 12 17:41:35 If Content providers are used to share data with other apps - what needs to be used just to store data locally for your app only? Dec 12 17:41:47 just sqlite Dec 12 17:41:52 HikaruBG, you dont need them then Dec 12 17:41:55 just plain sqlite Dec 12 17:42:00 g00s, didnt see that! Dec 12 17:42:00 or any local file storage of your choice Dec 12 17:42:01 thanks Dec 12 17:42:12 is there "Best Coding Practices" on how to build sqlite adapter, which can be accessed by all activities of my app?! Dec 12 17:42:27 pfn, thanks! Dec 12 17:42:54 danijoo, thanks as well... - what is the best coding practice to achieve that local service? Dec 12 17:43:11 any tuturial links, suggections/ideas? Dec 12 17:43:22 use an orm Dec 12 17:43:37 view drag helper is kinda fun Dec 12 17:43:48 HikaruBG provider isn't necessary, but people still use them for private data when CursorLoader makes like easy Dec 12 17:43:58 *life Dec 12 17:44:37 g00s... so even for private data again Content Provider is a good solution? Dec 12 17:44:57 HikaruBG i'm not saying its a good solution, but its sometimes used still Dec 12 17:45:21 g00s, understood. Dec 12 17:45:27 Thanks, guys! Dec 12 17:48:15 content provider is never a good solution Dec 12 17:49:02 pfn only deals in absolutes Dec 12 17:49:20 ^^ Dec 12 17:49:36 content provider is the only solution if you want to export Dec 12 17:56:35 yeah, only for exporting Dec 12 17:56:48 or for interop with existing framework, like search Dec 12 17:57:01 otherwise it's never a good solution Dec 12 17:57:13 its horrible that you need it for search.. Dec 12 17:58:21 i wish sqlite was one of those things, we could just bundle our own Dec 12 17:58:45 like how apache HTTP Client was originally bundled, but not any more Dec 12 17:59:09 SQLite4 is going to have some nice things - but when can we rely on it being on most android devices? it will be years :( Dec 12 17:59:37 we can bundle sqlite outself i guess, but can't use the java bindings - so you're on your own Dec 12 17:59:41 what does android's sqlite version not have which you want? Dec 12 18:00:03 sqlite 4 will have a dedicated k/v engine that you can use seperately Dec 12 18:00:18 kinda like leveldb Dec 12 18:00:35 and plenty of other goodies Dec 12 18:00:44 ugh, I broke my nick complete button Dec 12 18:01:08 danijoo, yeah, practically the only reason I've exposed content providers Dec 12 18:02:04 there's some other stuff, too, but same idea, interop with framework Dec 12 18:03:57 some people just like organizing their CRUD operations around a topical scheme Dec 12 18:18:10 ah bummer, nick's Plaid app is minSdk=21. Wanted to use ElasticDragDismissLayout but it uses Window#setReturnTransition Dec 12 18:20:02 i managed to crash powershell. lol Dec 12 18:20:13 danijoo has even more power ! Dec 12 18:21:26 seems like you cant just ctrl+C calabash-android on windows Dec 12 18:21:46 or it will take the system down with it ^^ Dec 12 18:22:27 danijoo: you could modify it to only use that if the target sdk is high enough? Dec 12 18:22:48 justJanne, wrong name? Dec 12 18:22:54 oh, right Dec 12 18:22:58 meant to highlight g00s Dec 12 18:23:15 hadn’t fully scrolled down, and just a simple [tab] just puts the latest user’s name Dec 12 18:23:42 justJanne eh, too much work. i'm not strong in the animation area and having code paths for L and Pre L is too much hassle for me Dec 12 18:23:53 i'll just do something else Dec 12 18:23:54 g00s: well, you could just have no animation pre L Dec 12 18:24:06 holo wasn’t full of animation anyway Dec 12 18:24:18 yeah but - in this case the animation conveys something meaningful Dec 12 18:24:29 i think too much material is BS animation, but this is good Dec 12 18:26:51 so what animations do work pre Dec 12 18:26:53 L? Dec 12 18:26:55 whoops lol Dec 12 18:27:25 well, there’s http://nineoldandroids.com/ Dec 12 18:27:42 which ports at least the honeycomb animations back to everything (down to donut) Dec 12 18:27:47 (or even cupcake?) Dec 12 18:27:59 well for one, Activity Shared Element Transitions are api 21 Dec 12 18:28:04 which are pretty nice Dec 12 18:28:07 im only supporting JB and above Dec 12 18:28:08 and I think there’s a lib to apply the L transitions with the old animation lib Dec 12 18:28:13 justJanne, even jake will tell you to not use this lib :p Dec 12 18:28:31 danijoo: I know, but, in case you want to do these animations on Cupcake, you can ;P Dec 12 18:28:59 is anyone using the new CollapsingToolbarLayout yet? Dec 12 18:29:11 drinfernoo, im sure Dec 12 18:29:13 well, and then you need to make sure that you share the position info of elements between activities, and use regular animations for that Dec 12 18:30:08 danijoo, im trying to follow this: http://antonioleiva.com/collapsing-toolbar-layout/ Dec 12 18:30:14 justJanne for shared element transitions, there are too many corner cases - trying to do it manually isn't good experience Dec 12 18:30:28 g00s: Indeed. But you only need to write your app once Dec 12 18:30:48 but im using a listview inside the NestedScrollView, and it only shows me the first row of my list Dec 12 18:30:51 Writing a full lib won’t be possible, but handling your own cases will Dec 12 18:31:01 drinfernoo, i dont use nestedscrollview Dec 12 18:31:07 drinfernoo: you can’t put lists into scroll views Dec 12 18:31:07 justJanne nah, like i said ... you can't do it like 21 does Dec 12 18:31:24 g00s: well, manually you can make it look the same ;) Dec 12 18:31:29 ok hold on Dec 12 18:32:34 drinfernoo the codepath tutorial is pretty good Dec 12 18:32:59 drinfernoo https://guides.codepath.com/android/Handling-Scrolls-with-CoordinatorLayout Dec 12 18:35:13 drinfernoo also look at cheesesquared from chris banes Dec 12 18:35:24 OH wait, you're on AIDE i keep forgetting that Dec 12 18:35:31 lol Dec 12 18:35:51 it's fine Dec 12 18:35:59 Hey all, I have a LG G3, I have the correc USB drivers from logitech, but I cannot see any device matching /ADB/i in evice manager, the phone is in developer mode. Can anyone gimme a hand getting this thing to work, the operating system is windows 10 64bit Dec 12 18:36:37 ok so just using a listview, no nestedscrollview, i can see all my rows, but i cant scroll Dec 12 18:36:51 usb drivers from logitech of an LG G3? this sounds very wrong.. Dec 12 18:36:52 drinfernoo you can;t use LV Dec 12 18:37:03 ahah Dec 12 18:37:07 you need components that implement the nested scrolling behavior Dec 12 18:37:09 recyclerview? Dec 12 18:37:12 so recyclerview Dec 12 18:37:14 yeah Dec 12 18:37:20 g00s, not true. you can use that now. Dec 12 18:37:29 danijoo LV really ? Dec 12 18:38:06 g00s, ViewCompat.setNestedScrollingEnabled(listView, true) Dec 12 18:38:21 oh interesting Dec 12 18:38:22 will only work on 21+ though Dec 12 18:38:25 lol Dec 12 18:38:34 does nothing pre L Dec 12 18:38:38 kitkat is the new gingerbread Dec 12 18:38:47 but better than nothing i guess Dec 12 18:39:01 well, so below 21 drinfernoo use recyclerView Dec 12 18:39:02 any good guides on migrating lv to rv? Dec 12 18:39:24 drinfernoo, the recyclerview official doc is okish Dec 12 18:39:25 might as well go all the way ;) Dec 12 18:39:25 by now there are lots of tutorials Dec 12 18:39:42 * danijoo still uses listview whenever possible Dec 12 18:41:11 I use still list view + my own way to recycle views, too Dec 12 18:41:59 and it’s a lot easier to just write two separate methods, one that creates new views, and one that takes a view and updates the content. I wonder why Google didn’t design the API like that. Dec 12 18:42:31 drinfernoo, I followed a guide online Dec 12 18:42:38 danijoo, even Dec 12 18:42:47 but its not pc suite or anything like that Dec 12 18:42:47 i dont mind using recyclerview, i just felt like listview had a lower admission cost lol Dec 12 18:43:03 daemon, this makes no sense. why should logitech write drivers for motorola? Dec 12 18:43:08 or LG Dec 12 18:43:34 danijoo, sorry from LGE typo Dec 12 18:47:01 daemon, you might want to try #android or $android-root if nobody can help you here Dec 12 18:47:18 your problems are the exact reason why I only buy nexus phones since years :p Dec 12 18:47:36 danijoo, ah ok dokey :) Dec 12 18:47:40 that's why i use Linux tbqh :) Dec 12 18:47:45 I have linuyx installed Dec 12 18:47:54 and freebsd Dec 12 18:48:02 if adb doesn't work in Linux, you need to add the vendor id Dec 12 18:48:19 ~/.android/adb_usb.ini Dec 12 18:48:32 for Windows, you need to create your own .inf for the device too, because MS can't USB Dec 12 18:49:19 is there a #android_design, too? Dec 12 18:49:31 zinx, ok sounds good ill reboot into linux, se you in 10 ^+^ Dec 12 18:52:41 finally got instant run to work on code changes :) Dec 12 18:54:02 there we go Dec 12 18:54:09 three OS's and all of them look pretty much the same lol Dec 12 18:54:26 all of them autostart hexchat too Dec 12 18:54:31 hmm possible IRC addiction -_- Dec 12 18:55:19 you notice you have an IRC additction when you take over maintenance for the app for an IRC bouncer because you want it and its ugly Dec 12 18:55:57 weechat-android ← Dec 12 18:55:59 which one znc or psy? :P Dec 12 18:56:10 quassel, I maintain QuasselDroid Dec 12 18:56:22 ah Dec 12 18:56:28 not had chance to see that in action Dec 12 18:56:53 weechat-android has a nice kitty. Dec 12 18:56:55 the latest beta build https://camo.githubusercontent.com/70e2382e4c3e4a59b0c27e824d091477e22e9acd/68747470733a2f2f692e696d6775722e636f6d2f475376495436356c2e706e67 looks quite different from latest in store build https://lh5.ggpht.com/hdE9nh3amY1QAi96ph_vNfPNlYJRPdnFhrXQsbp9R1RTMwMJZ0iVAzE_a2KV4TC0O9s=h900 too Dec 12 18:57:58 (in-store hasn’t been updated since july 2014) Dec 12 18:58:09 justJanne, you dont have store access? Dec 12 18:58:24 Well, that’s not the issue, the issue is that it’s full of bugs Dec 12 18:58:30 :D Dec 12 18:58:39 ok ^^ Dec 12 18:58:39 http://reports.kuschku.de/acralyzer/_design/acralyzer/index.html#/bugs-browser/quasseldroid Dec 12 18:58:39 https://raw.githubusercontent.com/ubergeek42/weechat-android/master/releases/chat-channel.png look at the cute interface Dec 12 18:58:54 weechat android actually looks neat Dec 12 18:58:57 and you don't even need a bouncer Dec 12 18:59:15 * danijoo waits for pfn to join the discussion Dec 12 18:59:26 ok how do I track down my phone on loonix syslog Dec 12 18:59:31 paul@paul-desktop:~$ grep -i adb /var/log/syslog Dec 12 18:59:34 seems to not bring anything back Dec 12 19:00:06 ah ha Dec 12 19:00:07 syslog Dec 12 19:00:09 Dec 12 18:51:06 paul-desktop kernel: [ 1.669565] usb 5-1: Product: LGE Android Phone Dec 12 19:00:09 Dec 12 18:51:06 paul-desktop kernel: [ 1.669566] usb 5-1: Manufacturer: LG Electronics Inc. Dec 12 19:00:09 Dec 12 18:51:06 paul-desktop kernel: [ 1.669567] usb 5-1: SerialNumber: LGD855c40ba0cb Dec 12 19:00:22 please pastebin :s Dec 12 19:00:28 oh yeah sorry Dec 12 19:00:36 well, currently I am working on rewriting quasseldroid from scratch, to get rid of the bugs. So I’m first writing libquassel-java, and then the app. And I’ll probably use a separate protocolhandler for that in android, to also add RxJava Dec 12 19:01:06 justinmrkva, I always fancied making DHT adpaters for standard clients and servers Dec 12 19:01:35 #randomHighlight Dec 12 19:02:43 by the way all especially justinmrkva I apologise for the randomness, I know its an old excuse but I just got a new keyboard and its horrible Dec 12 19:02:51 everythning is in the wrong bloody place -_- Dec 12 19:02:54 fwiw justJanne, i use AndroIRC Dec 12 19:03:19 https://play.google.com/store/apps/details?id=com.androirc Dec 12 19:04:02 i dont irc on android. the keyboards just suck Dec 12 19:04:12 I wonder if there’s a good material-ish way to handle channels and networks in the navigation drawer... Dec 12 19:04:30 danijoo, really I suppose irc is just like a constant SMS Dec 12 19:05:08 auto completion or completion-hinting would be a must have though Dec 12 19:05:15 The ability to always switch to another device, like a phone, and still be connected, is just awesome. Dec 12 19:05:51 hey guys, (sorry for repeating) I'm new to Android Content Providers and trying to figure out how should I handle junction tables. For example when calling 'applyBatch' when inserting into parent tables in one batch. Is it so that I need to expose the junction tables in content provider's contract like their parent tables? Dec 12 19:06:35 I’ll probably switch QuasselDroid in 2.0 to SpyGlass Dec 12 19:07:03 I wish hardware keyboards would become a thing again Dec 12 19:07:08 then I would irc on android again Dec 12 19:07:11 danijoo: they just did. Dec 12 19:07:23 justJanne, i guess you mean the blackberry? Dec 12 19:07:25 danijoo, I like hardware keyboards,m I had a nokia E71 till 3 days ago :P Dec 12 19:07:26 there are multiple KK or later phones with hardware keyboards. Dec 12 19:07:29 Sony and BB Dec 12 19:08:10 Apparently apple are doing the old infared projected keyboard trick for the ihpone7 Dec 12 19:08:19 yeah.. but Sony and BB prices are crazy compared to what you get imo Dec 12 19:09:18 danijoo, could always grab one of those bluetooth micro keyboards Dec 12 19:09:26 attach it to your phone for when you need the ability to really type Dec 12 19:09:30 that’s horrible. Dec 12 19:09:37 if you want to IRC, you’d want it all the time Dec 12 19:09:47 and then i hold the phone in one and the bt device in the other hand or what? Dec 12 19:09:50 justJanne, bluetooth keyboard or project keyboard == horrible Dec 12 19:10:12 danijoo, I assume you sit it on your desk and type away when you are on the train or such Dec 12 19:10:26 landscape oriented keyboards are very easy to type Dec 12 19:10:37 also you can just use voice input Dec 12 19:11:26 daemon, I meant things like this: http://d38v16rqg5mb6e.cloudfront.net/wp-content/uploads/2014/03/Galaxy-S-Relay-4G.jpg Dec 12 19:11:48 danijoo, ah the slide of qwertys they was nice Dec 12 19:11:58 yep Dec 12 19:12:16 really no reason they could not easily implement that on most phones Dec 12 19:12:30 well, but the trend goes towards 7" phones of 5mm thickness Dec 12 19:12:37 can’t have a keyboard there Dec 12 19:12:38 you cant advertise with being 1mm thinner then last year then :p Dec 12 19:12:54 2mm thicker but 200 times more usability! Dec 12 19:12:59 ^ Dec 12 19:12:59 or that not as cool ;/ Dec 12 19:13:07 sorry, meant to ^ danijoo Dec 12 19:13:11 a lot of people seem to be just fine with software keyboards. Dec 12 19:13:26 a lot of people seem to be just fine with iOS, too Dec 12 19:13:29 yep Dec 12 19:13:33 doesn’t mean some want an alternative. Dec 12 19:13:43 *doesn’t mean none want... Dec 12 19:14:06 a lot of people also seem to be just fine with their phones being bigger then their pockets Dec 12 19:14:10 yeah, that's why there are alternatives to ios Dec 12 19:14:20 and so few software keyboards Dec 12 19:14:25 hardware* Dec 12 19:14:25 danijoo: I’m a girl, girl jeans have no pockets anyway xD Dec 12 19:14:41 justJanne, in 10 years they will be bigger then your bag! :D Dec 12 19:14:51 I always find the inside pocket of walking jackets seems the best place for phones Dec 12 19:14:51 with current growth rate ^^ Dec 12 19:14:57 well, the first phones are becoming larger than my Nexus 7... Dec 12 19:15:39 that is why you buy boy jeans instead, they are measured correctly anyway (by circumference of waist) Dec 12 19:16:32 yeah, sizing on girl clothes sucks >_> Dec 12 19:16:50 I wish correct sizing would be legally mandatory Dec 12 19:16:55 yeah Dec 12 19:19:56 zinx, are you the chap that said to use linux? Dec 12 19:20:02 yes Dec 12 19:20:35 zinx, I added SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev" Dec 12 19:20:39 You know what’s weird? that .de is the second-most common TLD Dec 12 19:20:42 which is the id for the LG devices to udev rules Dec 12 19:20:58 I am still not seeing the device in device monitor on androdi studio though Dec 12 19:21:00 i thought its .to :p Dec 12 19:21:01 daemon: did you tell udev to reload, and re-plug the device? Dec 12 19:21:09 ah I just replugged Dec 12 19:22:36 (data: https://www.denic.de/fileadmin/public/stats/tld-Vergleich.PNG ) Dec 12 19:22:45 you’d expect .cn to overtake at least at some point Dec 12 19:22:49 daemon: usually distros have a command to tell udev to reload, something like 'service udev reload' or 'systemctl reload udev' Dec 12 19:23:10 or (shudder) /etc/init.d/udev restart Dec 12 19:23:11 zinx, ok restarted and replugged phone showing usb connection, system is saying: http://dpaste.com/12X6EJY Dec 12 19:23:14 justJanne, I guess it doesnt because of firewall. Dec 12 19:23:15 justJanne: maybe they already did but china uses its own dns roots? Dec 12 19:23:22 zinx, yeah I guessed it :) so so unused to linux Dec 12 19:23:32 nobody wants cn if that means you have to deal with that shit Dec 12 19:23:34 zinx: China uses the same DNS as the rest of the world, though Dec 12 19:24:04 daemon: try adding 1004 to ~/.android/adb_usb.ini Dec 12 19:24:41 zinx, done, should I run # USE 'android update adb' TO GENERATE. ? Dec 12 19:24:46 daemon: oh, make sure you have usb debugging enabled on the phone too Dec 12 19:24:52 daemon: nah Dec 12 19:25:01 zinx, well when I went to that the option was greyed out so I assumed it was forced on by developer mode Dec 12 19:25:06 daemon: you may need to do adb kill-server then adb start-server though Dec 12 19:25:24 daemon: o_O Dec 12 19:25:31 daemon: it should not be forced on even in developer mode Dec 12 19:25:42 daemon: and if it is, it will have a check by it Dec 12 19:25:49 Are you sure it’s not forced off? Dec 12 19:25:51 zinx, no greyed out unchangable Dec 12 19:25:54 no tick Dec 12 19:26:00 daemon: then it's being forced off Dec 12 19:26:06 ah how do I force it back on Dec 12 19:26:12 well force it on as it was lol Dec 12 19:26:13 ^ Dec 12 19:26:19 ugh, lagg Dec 12 19:27:42 daemon: it may only let you enabled it if it's plugged in to USB Dec 12 19:27:49 ah ha Dec 12 19:27:50 the opposite Dec 12 19:27:57 it won't let you enable it while its plugged in :) Dec 12 19:28:18 daemon: ah.. interesting Dec 12 19:28:29 that sounds like a workaround :) Dec 12 19:28:29 yes not its greyed out unchangable but ticked Dec 12 19:28:38 ticked good Dec 12 19:28:47 still not showing up in adb devices however Dec 12 19:29:22 o_O Dec 12 19:29:23 its deffinetly the right USB string though because now when I pluigged it in I had an extra line from dmesg Dec 12 19:29:25 [ 2242.903537] usb 5-1: New USB device found, idVendor=1004, idProduct=633e Dec 12 19:30:21 ok so linux is seeing it, because udev caught it Dec 12 19:30:30 we added 1004 to that file in ~/.android Dec 12 19:30:33 what else could be missing Dec 12 19:30:36 is the correct mode on your phone set? Dec 12 19:30:40 daemon: did you do adb kill-server && adb start-server? Dec 12 19:31:06 it must not be ptp mode Dec 12 19:31:15 danijoo, indeed, yes I seen that in settings let me double check Dec 12 19:31:45 strange restrictions :/ Dec 12 19:31:50 I have three options, Charge Phone, MTP, PRP Dec 12 19:31:54 I have three options, Charge Phone, MTP, PTP Dec 12 19:31:57 its in 'MTP' Dec 12 19:32:23 daemon, the working one is charge phone for me Dec 12 19:32:28 adb has been killed and restarted Dec 12 19:32:36 let me try swapping it to charge phone mode Dec 12 19:32:42 Short question: Does anyone know beautiful, usable, material IRC clients for android? Dec 12 19:33:27 justJanne, AndroIrc Dec 12 19:33:38 weechat-android Dec 12 19:33:49 squirrel, nice try! Dec 12 19:33:50 swapping over to chrage only mode gave me more dmesg output: http://dpaste.com/0R09WMD Dec 12 19:33:50 I specified "beautiful" Dec 12 19:34:05 well then definitely weechat-android. Dec 12 19:34:06 I mean, ones where the looks can compete with Plaid Dec 12 19:34:11 weechat-android is now in my list Dec 12 19:34:24 plaid?.. Dec 12 19:34:39 the super-hyped design news reader with lots of awesome material design stuff Dec 12 19:34:55 whats possible when you can say minSdk=21 :P Dec 12 19:35:10 i looked up plaid and couldn't find anything Dec 12 19:35:20 justJanne, on my chromebook I use https://chrome.google.com/webstore/detail/byrd-irc-client/endimfdcgfnlmoankhocnkhgohmoecoi?hl=en I THINK it also works on android not had time to check Dec 12 19:37:04 okay, i got now Hermes, IrcCloud and Weechat-Android Dec 12 19:37:12 I’ll look at them for some inspiration then :3 Dec 12 19:37:45 danijoo, zinx woohoo got it working Dec 12 19:37:48 note that weechat-android is a client for another client, not something that connects to irc directly Dec 12 19:37:48 its really hard to make something material and not looking like a 0/8/15 app imo :/ Dec 12 19:37:50 it NEEDS to be in PTP picture transfer mode Dec 12 19:38:02 (working on improving design atm too) Dec 12 19:38:09 daemon, thats weird Dec 12 19:38:17 http://forum.xda-developers.com/lg-g3/general/guide-connecting-lg-g3-to-linux-adb-aka-t2821673 Dec 12 19:38:22 apparently its a bit special <3 Dec 12 19:38:27 not so weird. some other phones (moto G 1) had the same issue Dec 12 19:39:52 ok well now we know how its meant to connect lets see if windows can do it Dec 12 19:42:29 is it OK of CoordinatorLayout is at the very root VS just the root of entangled views Dec 12 19:43:05 g00s, both work for me Dec 12 19:43:17 danijoo thx Dec 12 19:43:44 also you can have the scrolling view inside fragments and it will still affect the activities AppBarLayout (i didnt expect that to work) Dec 12 19:47:46 danijoo, turn off nested scroll for views you don't want to cause appbar to move Dec 12 19:48:35 pfn, I know Dec 12 19:48:50 I meant i find it awesome this is possible with fragments Dec 12 19:48:50 and how can you talk about Android irc and not qicr Dec 12 19:48:54 tall sucks Dec 12 19:48:56 yall Dec 12 19:50:11 last time i looked qicr was holo design :p Dec 12 19:50:36 uh Dec 12 19:50:38 no Dec 12 19:50:45 pfn: material themed clients ;P not gingerbread Dec 12 19:50:45 and none of those are material Dec 12 19:50:54 qicr isn't gingerbread Dec 12 19:50:56 fool Dec 12 19:51:10 what is it? Dec 12 19:51:12 weechat-android and irccloud and hermes at least pretend to be material Dec 12 19:51:15 hey working in windows too now Dec 12 19:51:17 perfect Dec 12 19:51:18 thanks guys Dec 12 19:51:21 a ginger-kat? Dec 12 19:51:39 it just works on gingerbread Dec 12 19:51:42 the microphone icon on the microphone button says gingerbread: https://lh5.ggpht.com/NeCDoH8oph1XRDB_JxHs6hL8GRHWxtGzMdw04G8v0F_84NB4ZUHszgCw-vCHgMatzGaW=h900 Dec 12 19:51:49 it's been material for a while now Dec 12 19:51:54 except on boarding Dec 12 19:52:24 I’ll try it for inspiration then, too Dec 12 19:53:23 no other irc client is remotely close in features Dec 12 19:53:31 or design Dec 12 19:54:49 https://youtu.be/eMc2bEUMsvY Dec 12 19:54:54 eh, not really Dec 12 19:55:08 dicking around with adding a notification center and bottom tray Dec 12 19:55:11 really Dec 12 19:55:11 except for irc:// and the voice recognition even our good old quasseldroid has most of the rest Dec 12 19:55:20 even the "future features" stuff Dec 12 19:55:35 notification and widget? nope Dec 12 19:55:44 notification? yes. Widget? no. Dec 12 19:56:14 but QD aint a client for IRC, but for a specific bouncer, obviously Dec 12 19:56:15 popcorn time Dec 12 19:56:20 does anyone do android development with just a text editor (emacs, vim..)? Dec 12 19:56:36 fully indexed logs and search? nope Dec 12 19:56:41 yes. Dec 12 19:56:41 autrilla Ologn uses emacs Dec 12 19:56:50 autrilla, easily Dec 12 19:56:56 ensime + emacs Dec 12 19:56:57 pfn: Yes, fully indexed, fully searchable, even searchable with multiple other tools Dec 12 19:57:25 pfn: is code completion and tooling in heneral good? Dec 12 19:57:25 as the logs are on the bouncer, we can even store them in postgres and apply elasticsearch, or another search system Dec 12 19:57:34 I personally use in-app search most of the time Dec 12 19:57:38 autrilla, no. thats why people use ides :P Dec 12 19:57:54 autrilla, yes Dec 12 19:58:04 ensime has full completion support Dec 12 19:58:11 danijoo: for python, jedi is comparable with IntelliJ Dec 12 19:58:19 pfn: good Dec 12 19:59:22 autrilla kjeldahl also uses emacs Dec 12 19:59:32 i think he blogged about his setup Dec 12 19:59:42 Does no one use vim? :p Dec 12 19:59:55 i use vim to edit /etc/hosts :) Dec 12 20:00:04 I'm giving vim and emacs both a week, so that I can pick the one I like the most Dec 12 20:00:31 autrilla eh, definitely learn vim. then decide if you want more with emacs Dec 12 20:00:34 will you be able to quit vim in just one week? Dec 12 20:00:50 if you need to remote into a box vi will always be there Dec 12 20:00:55 so know it regardless Dec 12 20:01:10 but yeah - customizing with plugins can take time, and they also kinda suck and destabilize things :) Dec 12 20:01:15 g00s: "more"? Both can do absolutely everything, can't they? I guess emacs maybe has a lot of buffer modes or whatever Dec 12 20:01:27 so when you say, oh i need these plugins to meke vim tolerable, its time for something else probably Dec 12 20:01:28 g00s: yeah I bet you know the basics Dec 12 20:01:50 think of emacs as a lisp interpreter that happens to have text editor :) Dec 12 20:01:51 g00s: does emacs ship with code completion? You also need plugins to make emacs decent Dec 12 20:02:05 Yeah, so is vim, of vimscript Dec 12 20:02:13 I don't know lisp anyway Dec 12 20:02:17 yeah i haven't used emacs much lately; honestly use AS if you can Dec 12 20:02:42 maybe you are using one of those because your machine doesn't have enough resources ? Dec 12 20:02:51 No Dec 12 20:02:58 My machine has plenty of resources Dec 12 20:03:01 autrilla also i've been having lots of fun with Atom and VS Code Dec 12 20:03:12 VS Code is amazing for an editor, almost like an iDE Dec 12 20:03:15 those require tons of mouse usage afaik Dec 12 20:03:21 yeah Dec 12 20:03:31 * autrilla doesn't like moving to his mouse Dec 12 20:03:56 atom somehow need ages to start for me. Dec 12 20:04:02 thats why I went back to sublime Dec 12 20:04:36 but this was early beta Dec 12 20:04:42 danijoo still kinda slow, but 1.3 is a bit faster Dec 12 20:04:58 what i like is the tree view can have multiple projects open at once Dec 12 20:05:04 yeah thats nice Dec 12 20:05:10 so i use it to poke around a bunch of projects Dec 12 20:06:19 but all the editors are fun Dec 12 20:07:10 i was going to use emacs again for clojure but now Cursive 1.0 is out i'll use intelliJ Dec 12 20:07:43 autrilla, nothing requires a lot of mouse usage if you know the shortcuts.. Dec 12 20:07:59 also there is IdeaVim plugin to use vim stuff inside intellij Dec 12 20:08:04 you can use AS without a mouse if u want i think Dec 12 20:08:14 It's not very good Dec 12 20:08:20 It's missing features Dec 12 20:08:26 autrilla, which one? Dec 12 20:08:52 hi everyone Dec 12 20:09:08 what is the best method for fetching data from a website and display it in an app? Dec 12 20:09:36 yapme you could start by googling :) Dec 12 20:09:37 danijoo: I can't remember now, it was a while back when I looked Dec 12 20:09:57 autrilla, IdeaVim supports everything apart from some less used commands, you should try it Dec 12 20:10:52 i did, but from what i found i can't exactly conclude it serves my purpose Dec 12 20:11:08 I've been using IDEA for the last few weeks and it was fairly slow, even on a powerful machine. Something makes me think it's the kotlin plugins Dec 12 20:11:10 best method is to ask the owner for an api Dec 12 20:11:14 yapme, well you need to be a bit more specific then (which also helps googling) Dec 12 20:12:01 a good example is the imdb app Dec 12 20:12:17 yapme, imdb has an api Dec 12 20:12:18 how would i do something close to that? searching a website and displaying it's movies, for example Dec 12 20:12:25 its not grabbing data from the website Dec 12 20:12:28 i know danijoo but it's not actually for imdb Dec 12 20:12:33 yapme, IMDB has an API made for their app Dec 12 20:12:48 yapme, so I'd use the websites API that exposes data over JSON or a similar format Dec 12 20:13:17 Do you guys work only on Android Development or do you work on other stuff too, like web dev? Dec 12 20:13:47 web dev is the devil :P Dec 12 20:13:53 * Mavrik does bunch of backend stuff. Dec 12 20:14:16 autrilla, oh, emacs doesn't do kotlin Dec 12 20:14:18 I do sometimes web dev, too, but I hate it. Dec 12 20:14:20 or ensime won't Dec 12 20:14:33 mostly academic stuff, android, etc Dec 12 20:14:55 pfn: I'm not sure I'll stick with kotlin, it doesn't really add much Dec 12 20:15:21 autrilla if you want to use instant run, it must be from AS Dec 12 20:15:34 g00s: instant run is not instant Dec 12 20:15:53 thats what they call it :) Dec 12 20:15:59 mostly-instant run would be a bad name for a feature though Dec 12 20:16:17 danijoo: it's basically "wait 30 seconds for your app to compile" instant Dec 12 20:16:31 autrilla, then you are doing it wrong Dec 12 20:16:34 autrilla its early stage Dec 12 20:16:37 its arround 1 second for me Dec 12 20:16:52 danijoo: how do you compile that fast? Dec 12 20:16:57 I'm on an i5 4670 Dec 12 20:16:59 What is that instant-run feature? Dec 12 20:17:19 is it something that eclipse had it since always Dec 12 20:17:19 is it enabled by default on AS? Dec 12 20:17:32 and they added it on AS 2.0 Dec 12 20:17:35 autrilla, are you sure you are actually instant running? Dec 12 20:17:46 note that instant run doesnt work with kotlin yet Dec 12 20:17:53 yes make sure you run instantly Dec 12 20:17:54 Ashiren, so it's still not in the stable channel? Dec 12 20:17:54 danijoo: no, I'm still using IDEA Dec 12 20:18:01 eeyup Dec 12 20:18:02 I saw their promo video though Dec 12 20:18:05 also no proguard and also no multidex i think Dec 12 20:18:10 also no IDEA ;P Dec 12 20:18:31 do you use GenyMotion or the AVD? Dec 12 20:18:42 no Dec 12 20:19:04 i use real device :v Dec 12 20:19:05 instant run is actually pretty fast if it works (it usually doesnt) Dec 12 20:19:56 Geny is currently the fastest option until the new AVD is stable Dec 12 20:20:04 Let me ask something else.. what is the first thing you do when you want to start developing an app? probably design the structure on how everything will work (services, activities, fragments) ? Dec 12 20:20:20 Mavrik, the new avd is available now (beta) Dec 12 20:20:27 danijoo, I know. Dec 12 20:20:30 danijoo: android studio is just IDEA with plugins o.O Dec 12 20:20:32 "... is stable" Dec 12 20:20:34 "no IDEA" makes no sense Dec 12 20:20:49 justJanne, they have diverged. Dec 12 20:20:57 AS has a lot of new features IDEA doesn't lately. Dec 12 20:21:03 justJanne, thats not true Dec 12 20:21:05 Yes, all added via plugins Dec 12 20:21:10 yeah what Mavrik said Dec 12 20:21:14 justJanne, no. Dec 12 20:21:24 no. if you install all android plugins you wont have all AS features Dec 12 20:21:24 Why would Google do that Dec 12 20:21:27 Most of new Android related stuff isn't available at all currently, not even in EAP Dec 12 20:21:41 danijoo: if I install all normal plugins, yes. Dec 12 20:21:43 IntelliJ is a bit slow merging the new (albreight beta) features. Dec 12 20:21:44 Mavrik: well, have fun beta-testing :p Dec 12 20:21:46 If I just copy them out of AS2, Dec 12 20:21:48 then I do Dec 12 20:21:59 autrilla, am, saves a bunch of time Dec 12 20:22:05 am? Dec 12 20:22:17 The new profilers are very useful at making non-crap apps. Dec 12 20:22:32 Am I supposed to maintain two configs for two IDEs? Dec 12 20:22:44 Mavrik: to avoid leaks? Dec 12 20:22:50 autrilla: no, you are supposed to maintain a different config for every IDE! Dec 12 20:22:57 welcome in our amazing new world! Dec 12 20:23:01 O.o Dec 12 20:23:15 autrilla, and other stuff. Dec 12 20:23:16 there are people who even install multiple versions of IDEA with different plugins Dec 12 20:23:27 to have a clear gui for every usecase Dec 12 20:23:30 There tons of crazy people Dec 12 20:23:31 And there are people who crucify themselves. Dec 12 20:24:01 danijoo: doesn't IDEAs GUI change on a project basis? Dec 12 20:24:29 nop. Dec 12 20:24:42 it just loads all plugins Dec 12 20:25:28 IDEAs GUI /can/ change on a per-project basis, though Dec 12 20:25:43 note the can Dec 12 20:26:50 *shrug* Dec 12 20:26:57 I've had no problem having AS and IDEA load same projects. Dec 12 20:27:19 well, the issue would be constantly having to sync configs and switching between two IDEs for a single app Dec 12 20:27:25 that’s not sane Dec 12 20:27:26 I wish IDEA had an even darker theme Dec 12 20:27:40 and a flatter one too Dec 12 20:28:24 pfn: do you have any live screencasts up? Dec 12 20:29:11 justJanne, there's no issue. Dec 12 20:29:34 Mavrik: eh Dec 12 20:30:38 Mavrik about AS / idea diverging - is google adding stuff to the IDE thats not encapsulated in the plugins then? Dec 12 20:31:07 g00s: No, they aren’t. But some people still believe that myth Dec 12 20:31:23 g00s, Google is developing Android part separately. Dec 12 20:31:36 The AS codebase and IDEA codebase is separate. Dec 12 20:31:55 And until IntelliJ syncs up and rebuilds their plugins with Google's commits the features aren't available. Dec 12 20:32:12 ... Dec 12 20:32:13 g00s, e.g. currently there's still no network, GPU profiler, no new memory profiler, no instarun, etc. Dec 12 20:32:22 You can just copy the plugin over... Dec 12 20:32:29 the whole rest of the IDE is the same Dec 12 20:32:35 What IDEA ships is currently somewhere at AS 1.2 Dec 12 20:32:42 sure, but when they distribute AS i thought it was just a version of Idea + android plugins that were in a more advanced state than the plugins you would get from IDEA vanilla Dec 12 20:32:57 Yeah, mostly. Dec 12 20:33:04 Plus branding and some minor other stuff. Dec 12 20:33:12 but i didn't think they were actually messing around much with idea in general, which would be a headache to maintain with upstream merging, etc Dec 12 20:33:16 so, time to do sha checksums between 2.0 preview and IDEA Dec 12 20:33:35 which is why logcat is been kinda sucky Dec 12 20:33:37 *shrug* it's Google Dec 12 20:33:40 heh Dec 12 20:33:48 yeah they have enough people they can do whatever Dec 12 20:33:51 It doesn't look there was much upstream merging going on. Dec 12 20:34:01 AS still doesn't have the new editor refresh updates from IDEA either. Dec 12 20:34:20 Or the IDEA's bundled JRE for non shitty fonts on OS X. Dec 12 20:34:30 of course not. Dec 12 20:34:33 yeah noticed that Dec 12 20:34:42 because AS is just IDEA with plugins, they don’t maintain the IDE at all Dec 12 20:34:45 AS 2.0 is based on Intellij 1.5 which comes bundled with jre Dec 12 20:35:16 maybe because its preview, they aren't going through the hassle of bundling patched jre Dec 12 20:36:18 justJanne, still you wont get that plugins for IDEA on normal ways. yes you can copy paste them but why would you Dec 12 20:36:38 danijoo: To get IDEA 15 with the non-crappy font rendering? Dec 12 20:37:22 autrilla, of what? Dec 12 20:37:25 and no Dec 12 20:37:41 pfn: you using emacs for android Dec 12 20:37:56 are you doing that? Dec 12 20:38:10 ^ justJanne Dec 12 20:39:22 danijoo: as of this minute, I am Dec 12 20:39:38 too much work imo :s Dec 12 20:39:48 on the other hand I dont have to deal with crappy fonts Dec 12 20:39:58 autrilla, I don't use emacs Dec 12 20:40:02 I use intellij Dec 12 20:46:18 and instant run sucks, it's not instant, and it doesn't support anything Dec 12 20:47:52 yet Dec 12 20:47:58 i'm sure protify sucked at 0.0.1 Dec 12 20:48:13 well, they’re still doing it the wrong way round. A non-emulating emulator might be preferable Dec 12 20:49:00 even if you don't use preview stuff from google, its nice they put it out there for feedback; and its encouraging to see how they are advancing the current state of things Dec 12 20:49:44 and it doesn't use sbt so thats a huge win Dec 12 20:50:50 popcorn time! :P Dec 12 20:52:26 3 seconds more to run, but 20h less to configure :p Dec 12 20:52:35 20h? Dec 12 20:52:39 ok,fuuck you then Dec 12 20:52:45 :D Dec 12 20:52:57 I don't even know why I bothered trying to help you Dec 12 20:52:58 I knew this would be the reaction Dec 12 20:53:03 thankless shit Dec 12 20:53:14 whats wrong with you? Dec 12 20:53:35 ^^ Dec 12 20:54:19 what's wrong with me? what's wrong with you, someone writes stuff to make your life considerably better and that's your response, screw you Dec 12 20:54:48 sheesh. Dec 12 20:54:52 * squirrel hands pfn a nut Dec 12 20:54:55 for free even Dec 12 20:55:09 pfn, yeah, that's not really a civilized response for someone not liking a piece of software. Dec 12 20:55:24 nothing is free unless time is free Dec 12 20:55:35 pfn, I mean c'mon, personal insults? Dec 12 20:55:48 I never insulted anyone personally Dec 12 20:55:52 lol i didnt even say anything negative beside that it takes some time to get into it ^^ Dec 12 20:56:03 it didn't remotely take 20h Dec 12 20:56:05 and your response was fuck you, thankless shit :D Dec 12 20:56:06 pfn, yes, yes you did. Dec 12 20:56:56 no personal insults were flung, people were cursed Dec 12 20:57:03 there's a semantic difference Dec 12 20:57:15 it doesn’t matter anyway. Dec 12 20:57:20 we can just agree to disagree. Dec 12 20:57:28 and talk about more important topics ;) Dec 12 20:57:38 pfn, no, it's not. Dec 12 20:58:08 And if you really think that then I guess besides civility you need to look up a bit on english language as well. Dec 12 20:58:10 who cares. we all know pfn sometimes has his days.. Dec 12 20:58:14 I can deal with that Dec 12 20:58:46 Still doesn't excuse the shitty behaviour he regularly exhibits to people here. Dec 12 20:59:16 nyoro~n Dec 12 21:00:11 regularly, right, only those deserving of it Dec 12 21:02:47 ie everyone not being your opinion %% Dec 12 21:03:50 http://dilbert.com/strip/2015-06-07 Dec 12 21:06:23 If you start developing an app with target sdk = Marshmallow, do you need to setup the new permission system and also have dialogs that ask for a permission when needed? Dec 12 21:06:34 or does android do it for you? Dec 12 21:06:49 Bubo, you have to do that Dec 12 21:07:02 Even the dialogs asking to enable a permission? Dec 12 21:07:12 theres an api for that Dec 12 21:07:21 the system shows the dialog for u Dec 12 21:07:27 oh, that's better Dec 12 21:08:07 is still the recommended way of removing the titlebar? When I try this the app crashes Dec 12 21:08:39 adding this.requestFeature(Window.FEATURE_NO_TITLE); to onCreate in the MainActivity class also causes a crash Dec 12 21:08:52 do you do something like getSupportActionBar().something Dec 12 21:09:02 jiffe, you should check what the cause of the crash is Dec 12 21:09:02 reaad the exact error Dec 12 21:14:57 hmm You need to use a Theme.AppCompat theme (or descendant) with this activity. Dec 12 21:23:54 hi all Dec 12 21:24:37 looking some info on how to use mysql in my app Dec 12 21:24:55 android only has sqlite Dec 12 21:25:17 works as well? Dec 12 21:26:48 doing a calculation app and need to store some tables of info.. some complex equations otherwise.. Dec 12 21:27:35 is it easy to use sqlite and drag those variables to equations? Dec 12 21:27:51 and yeah.. sorry.. newbie here :D Dec 12 21:28:05 you should do some research on google Dec 12 21:29:42 i agree Dec 12 21:33:39 okhttp3: https://publicobject.com/2015/12/12/com-squareup-okhttp3/ Dec 12 21:40:50 ugh, weird, now the nick complete button is working again Dec 12 21:41:04 interesting, and now it's not Dec 12 21:46:31 anyone has experience on making sql database tables with excel? Dec 12 21:46:49 seems that sqlite converst Dec 12 21:46:56 converts* Dec 12 21:47:10 CaptainMint you can export a table as CSV and use the sqlite3 command line tool to import it Dec 12 21:47:33 thaks Dec 12 21:47:35 thanks Dec 12 21:47:40 only makes sense if you have existing stuff in excel files Dec 12 21:48:03 oh crap i need to reinstall chrome for stetho :( Dec 12 21:49:10 i was thinking on making all data on excel first Dec 12 21:49:22 hm Dec 12 21:49:43 then figure out to make app use it in equations Dec 12 21:49:44 eh if its easiest Dec 12 21:50:35 I think excel even supports handling the whole excel file as csv Dec 12 21:50:38 not only export Dec 12 21:50:52 i was just thinking of dumping all tables on one excel file Dec 12 21:51:05 i dont know how it converts.. different tabs.. all that Dec 12 21:51:16 was just thinking that Dec 12 21:51:21 if the data fits into a small excel file, you might dont need sqlite Dec 12 21:51:27 CaptainMint if its not much data , instead of going to sqlite you can use OpenCSV on android to just read the CSV files Dec 12 21:51:28 should ask #sqlite Dec 12 21:51:33 maybe its enough to ship your app with the csvs? Dec 12 21:51:43 g00s, same idea :p Dec 12 21:51:44 its like.. ten tables Dec 12 21:51:59 not much Dec 12 21:52:07 fucking Divine favor man. I sprint and he plays his whole hand. draws 9 cards Dec 12 21:52:33 this is not #hearthstone Dec 12 21:52:41 shit Dec 12 21:52:53 sorry Dec 12 22:11:55 hey guys is there an easier way to take a screenshot on an android phone than volup+voldown+pwe Dec 12 22:12:05 its bloody impossible on my phone Dec 12 22:12:11 without replacing my fingers for match sticks Dec 12 22:12:37 What's the best way to get people to laugh at your code and critique it? Dec 12 22:13:04 autrilla, plonk a link to it in here at various times throughout the day for the furthest user spread Dec 12 22:13:11 +6 hours delay between each ask Dec 12 22:13:20 hit all timezones! Dec 12 22:13:24 :) Dec 12 22:14:21 autrilla, could also post it to stackoverflw Dec 12 22:14:32 What format are videos from the camera saved in? Dec 12 22:15:11 Anthaas__, I think it can vary Dec 12 22:15:22 Ahhh - what are the common formats? Dec 12 22:15:39 mp4 Dec 12 22:15:44 wassuup Dec 12 22:15:46 I am gussing here but I would think MP4 and 3GP Dec 12 22:15:51 emulator 2.0 looks pretty nice Dec 12 22:17:24 welp, if anyone feels like critiquing my code, https://github.com/autrilla/Farmnet-Android/tree/master/app/src/main/java/com/favega/farmnet/login. I'd appreciate it. Dec 12 22:18:12 autrilla, is this kotlin Dec 12 22:18:14 Oooh kotlin Dec 12 22:18:25 Bubo: yes Dec 12 22:19:07 i kinda like the syntax Dec 12 22:19:29 Im still not too sure about what to think about kotlin Dec 12 22:19:47 anyone familiar with creating custom layoutmanagers for recyclerview? Dec 12 22:19:52 are there any advantages using it ? never heard of it Dec 12 22:20:17 Almador, it is a language created by Jetbrains - the creators of IntelliJ among others - runs on the JVM and thus on Android. Dec 12 22:31:15 Almador: advantages, for example, are the ability to attach after the fact methods to a class, or the reduced overhead, or many other things Dec 12 22:32:32 also infline/lambda functions and interfaces with concrete implementations Dec 12 22:32:43 s/infline/inline Dec 12 22:32:56 and null-safety Dec 12 22:33:00 90% of the use cases of kotlin are in Java 8 or 9 or 10 or -X, Dec 12 22:33:10 but will probably never end up on Android through Java itself Dec 12 22:33:27 null-safety is really nice to have Dec 12 22:34:19 autrilla, since you want ´criticism´. you are using a companion object for a tag here: https://github.com/autrilla/Farmnet-Android/blob/master/app/src/main/java/com/favega/farmnet/login/SignInFragment.kt Dec 12 22:34:39 you should use the ´const´ modifier here. ie private const val TAG = ¨...¨ Dec 12 22:34:51 danijoo: oh, okay, thanks! Dec 12 22:35:48 i have a project like this and this is not working. i do not know why is that Dec 12 22:35:49 http://s6.dosya.tc/server4/1iammz/newproject.zip.html Dec 12 22:36:03 milkshake, nice try! :P Dec 12 22:36:15 danijoo: fixed! I did that in more than one class Dec 12 22:36:30 danijoo what you mean Dec 12 22:36:34 i doubt anyone will download your random file from a non-english site :p Dec 12 22:36:57 how do you even update google play services on emulator? :/ Dec 12 22:37:07 can you tell me an english site that i can upload? Dec 12 22:37:07 Afzal, tell me if you find out :/ Dec 12 22:37:15 danijoo lol wtf google Dec 12 22:37:25 milkshake,host your project on github or so. Dec 12 22:37:35 i wont load your zip and noone else will Dec 12 22:38:39 danijoo: anything else you noticed? Dec 12 22:38:46 autrilla, I also notices some places where lazy{} could cleanup your onCreates Dec 12 22:39:03 danijoo: could you give me a quick example/ Dec 12 22:39:04 ?* Dec 12 22:41:36 Afzal yeah, the whole gms / emulator story is bonkers Dec 12 22:41:47 Let's say you want to get some json data from an api. There are posts and there are comments. How can I use one asynctask for getting the json data and then giving it to a parser that will parse that data (the data can be for posts or comments so needs different parsers) Dec 12 22:42:08 Also, milkshake, you shouldn’t store your project on your desktop, that’s not very tidy Dec 12 22:42:58 At the moment I have two different asynctasks that basically do the same thing (open url, get data, parse data) Dec 12 22:43:50 autrilla, SignInFragment for example you can do this: http://pastebin.com/i8nrmLWp Dec 12 22:44:10 makes preferences being a val instead of a var and removes the lateinit Dec 12 22:44:17 danijoo: when does that get evaled? first access, I guess? Dec 12 22:44:22 yes Dec 12 22:45:00 you can use the same for views which is pretty nice imo Dec 12 22:45:14 mhm, true Dec 12 22:45:16 ie val view by lazy { findViewById(...) } Dec 12 22:45:28 well, then kotlin may be worth using Dec 12 22:45:38 I didn't find it very useful because I was mostly writing java :p Dec 12 22:48:05 cfr decompiler works better than jd-gui \o/ Dec 12 22:56:26 sqlite guys wont answer so im asking you.. i have this pre calculated variable data.. depending on place and time gives different variable.. is divided to four time periods(365/4) and idea is the app searches right variable using user input (date).. should i make all dates in table? or just like 3.3-1.4. could i make app understand it without making all data for all dates? Dec 12 22:57:38 otherwise has data for 365 dates * 200 cities :D Dec 12 22:59:30 How do you store a password for the user that is required to get some json data for that user? Dec 12 23:01:04 Bubo, dont store passwords Dec 12 23:01:06 store hashes Dec 12 23:01:23 danijoo, but you can't log the user on the website api without his password Dec 12 23:01:50 http://stackoverflow.com/questions/975399/are-there-any-demerit-if-i-use-json-as-the-storage-mechanism-for-storing-id-pas Dec 12 23:02:27 Bubo, storing passwords is a security risk. You _cant_ secure them because everyone can read your app code Dec 12 23:02:34 danijoo, yes I know Dec 12 23:02:43 but it was my mistake, the api doesn't work that way Dec 12 23:02:48 https://github.com/geallen/android-project i have a project and it is not working i do not know what is the error Dec 12 23:02:49 i knew something was wrong Dec 12 23:04:22 is it okey danijoo Dec 12 23:04:29 ... Dec 12 23:04:43 did you really upload the zip to github now? ._. Dec 12 23:05:58 funny guy :D Dec 12 23:06:09 Bubo: get a token Dec 12 23:06:09 lol Dec 12 23:06:14 I dont know what to say now... Dec 12 23:06:25 autrilla, yes, a token. I misread how it worked Dec 12 23:06:28 HAHAHAHAHA Dec 12 23:06:37 Bubo: storing a token is fine Dec 12 23:07:02 Bubo: but are you talking about a static token (ie hardcoded into the source code) or dynamic? Dec 12 23:07:19 autrilla, yes I get it.. I first thought I need the user and password to access the api, but I didn't read that after the first time you get a token Dec 12 23:07:32 autrilla, I will need to refresh it every xx minutes I think Dec 12 23:07:55 Bubo: that's sometimes the case. Sometimes tokens just don't expire unless you revoke them Dec 12 23:09:03 it's documented somewhere so we'll see Dec 12 23:13:22 so I've implemented most of https://github.com/googlesamples/android-Camera2Basic/blob/d7a3bfd0f2a2a3a6447a41f7b729fcae571ef020/Application/src/main/java/com/example/android/camera2basic/Camera2BasicFragment.java Dec 12 23:14:32 should that onclick trigger when I touch the preview image? Dec 12 23:15:55 I replaced the content of onclick with showToast("CLICK!"); but it doesn't seem to trigger when I press the image Dec 12 23:17:11 https://github.com/geallen/android-project/tree/master/newproject i have a project and it is not working i do not know what is the error Dec 12 23:17:19 now okey danijoo ? Dec 12 23:17:39 milkshake, yes better. Dec 12 23:19:03 now can anyone help me ? Dec 12 23:19:26 Do you use fragments everywhere? Dec 12 23:20:06 autrilla, you're using emacs? Dec 12 23:20:13 no Dec 12 23:20:19 I was asking if anyone did :p Dec 12 23:20:45 no i am trying to learn android. i saw the project and try to do it.it says use fragments Dec 12 23:21:15 autrilla, I used it as an Eclipse alternative Dec 12 23:21:34 Ologn: used? You don't anymore? Dec 12 23:22:25 autrilla, I do sometimes, but Android Studio is less of a hassle than Eclipse was, so I use it less when Android programming Dec 12 23:22:36 I see Dec 12 23:24:00 Is it better to use fragments everywhere or not? Dec 12 23:26:02 if you asked me that, i do not know Dec 12 23:26:30 Bubo, some say so some say so Dec 12 23:27:01 danijoo, from what I read, if you have some widget that will get reused on more activities, you should make it a fragment? Dec 12 23:27:22 danijoo will you help me to figure out why that is not working ? Dec 12 23:27:27 Bubo, or a view Dec 12 23:27:40 milkshake, i dont have time to check it out right now, sorry Dec 12 23:28:25 okey. can anyone help me ? i am trying it for days Dec 12 23:29:38 danijoo, or a view? can you explain? Dec 12 23:30:03 Bubo, Custom compound views are also a method to reuse ui code Dec 12 23:30:20 ie you extend LinearLayout and create your own view from it Dec 12 23:31:41 danijoo, but if you do something like a list view and a detail view (for a list item), if you press the back button from detail view -> it should go to the list view.. this is easier done with fragments right? Dec 12 23:31:55 fragments get added to the back stack? Dec 12 23:32:43 i was thinking of fragments too.. when are fragments better? Dec 12 23:34:06 when you like to deal with lolcycle and fragment manager Dec 12 23:34:11 Bubo, you can add them to the backstack yes Dec 12 23:34:37 Its really also a preference thing. Dec 12 23:34:50 my planned app project had like.. spash screen->mainactivity(three buttons to choose calculator->calculator asks user input and gets variables from database->results.. Dec 12 23:35:48 now im at planning stage for structure for databases and equations for calculator and im totally lost :D Dec 12 23:35:51 do I need to have buttons in order to use onClick? Dec 12 23:35:54 An easy way to tell if its a good idea to use fragment for a specific case is looking at that image: https://github.com/xxv/android-lifecycle/blob/master/complete_android_fragment_lifecycle.png Dec 12 23:36:09 if you then still think its a good idea to use a fragment, do so :p Dec 12 23:36:27 or better: if you still think its worth the effort diviing into that Dec 12 23:37:22 as a newbie i think ill avoid fragments :D Dec 12 23:38:17 doing bioenergy calculator as my thesis.. was stupid to even suggest doing an app with like 10% android skills :D Dec 12 23:38:31 but yeah.. stuck to it now... Dec 12 23:38:37 CaptainMint, CS bachelor thesis? Dec 12 23:38:54 fragments aren't hard, not using fragments and wanting to take advantage of things like framework transitions and. backstacks is much harder Dec 12 23:39:02 thesis for bachelor of forestry :D Dec 12 23:39:34 CaptainMint, ah nice :) Im a natural science guy too Dec 12 23:39:35 but yeah.. has need for app that isnt relient for networks Dec 12 23:39:55 they advertise that 3g covers all but reality... is hmm.. different Dec 12 23:41:16 i think the most suprising thing was when i jump more deeper into coding was the termonology.. Dec 12 23:41:36 when isnt familiar seems like latin.. but seems simple enough Dec 12 23:41:52 alright my system doesn't recognize my device via usb ._. Dec 12 23:42:17 and the quantity of options.. seems like candy land.. Dec 12 23:43:18 it works for a second (i see the debugging enabled notification) and then it stops working Dec 12 23:44:44 how is Google's data binding library now? Dec 12 23:46:17 danijoo I actually figured half of it out but Fitness APIs weren't still available :( Dec 12 23:47:30 What do you use for deferreds, promises etc? Dec 12 23:47:36 Afzal: still ba Dec 12 23:47:37 bad Dec 12 23:47:49 http://opengapps.org/ you download the correct version from here and copy PrebuiltGmsCore, GoogleLoginService, PhoneSky and GoogleServicesFramework apks to /system/priv-app/ Dec 12 23:47:49 autrilla, Rxjava Dec 12 23:48:07 danijoo: is it cleaner than providing a callback object? Dec 12 23:48:07 autrilla okay Dec 12 23:48:40 That is, an anonymous instance implementing and interface with methods that get called when done etc Dec 12 23:48:43 autrilla, yes, but not as simple to learn Dec 12 23:48:58 danijoo: I guess it's like Python's twisted Dec 12 23:50:21 sounds like it Dec 12 23:53:01 with regards to https://github.com/googlesamples/android-Camera2Basic what would I have to implement in order to be able to handle clicking the camera preview image instead of the picture button? the onclick event doesn't seem to trigger when I do that Dec 12 23:59:54 danijoo: RxJava + Retrolambda could be cool Dec 13 00:00:16 autrilla, or kotlin :p Dec 13 00:00:18 Or just kotlin :p Dec 13 00:00:19 yeah Dec 13 00:00:47 Although I'm not sure if I should just leave it as it currently is, make a note, and improve it later Dec 13 00:00:53 I really should get a MVP going Dec 13 00:05:55 would this be right way to write formulas ? 0,036089*exp(d(2,01395))*(exp(0,99676(d)))*exp(h(2,07025))*exp((h-d)(-1,07209)) Dec 13 00:06:30 h and d are userinput Dec 13 00:06:43 then print it to somehow on result activity.. Dec 13 00:07:10 thats just one part of equation.. but sigh.. i dont know how to write in code Dec 13 00:07:53 CaptainMint, you should read up a tutorial on java programming Dec 13 00:08:11 i am:D Dec 13 00:09:39 How do i change FloatingActionButton background on API 17 Dec 13 00:09:47 backgroundTint is not supported Dec 13 00:12:02 background="@drawable/..." has no effect on it Dec 13 00:12:51 doesnt it just take the color you defined as colorAccent? Dec 13 00:13:30 Porblem is I get my drawable in the middle of the pink background Dec 13 00:13:30 sec Dec 13 00:14:11 danijoo, http://imgur.com/9TS7rk9 : // Dec 13 00:15:02 well.. thats how fabs work Dec 13 00:15:28 android:src is for the icon you want to show, not for the whole background Dec 13 00:17:18 Ahh Dec 13 00:17:41 Now I have to make new image : ( Dec 13 00:17:50 images* Dec 13 00:19:14 neredsenvy, better do your research before that ;) Dec 13 00:20:17 I fell out of loop went off to do a game with Unity things change so fast Dec 13 00:22:43 endering Problems The following classes could not be found: Dec 13 00:22:44 - android.support.v7.internal.app.WindowDecorActionBar (Fix Build Path, Create Class) Dec 13 00:22:51 any ideas why I would get that Dec 13 00:22:57 turkeys on offensive http://digg.com/video/mailman-attacked-by-turkeys Dec 13 00:22:59 since it's a new project I haven't even changed anything Dec 13 00:25:31 g00s, my bad english made me expect something totally different Dec 13 00:25:57 turkish gangs lol Dec 13 00:26:22 danijoo hehe. we have a hang of turkeys were i live also Dec 13 00:26:45 so if CenterView is the name of a class that extends View so I can draw on it and I have an instance inside of a RelativeLayout with id android:id="@+id/center", how to I call a public function in that instance of CenterView Dec 13 00:27:38 noone helped me.thank you Dec 13 00:27:42 ((CenterView)view.findViewById(R.id.center)).framed() will call it not it must be creating a new instance of it because the existing instance isn't touched Dec 13 00:28:29 jiffe, thats not true Dec 13 00:28:37 findViewById finds, it does not create Dec 13 00:32:51 hmm you may be right, I made a change within frame() and then made another call to verify the change still existed and it did Dec 13 00:33:09 jiffe, use a debugger for things like that ;) Dec 13 00:54:57 it must be reinstantiating my CenterView() class because I can see it flip flopping my framed value in the debugger Dec 13 00:55:49 quick question, when using a recycler view, can i make it not scroll unless if all its rows are showing? Dec 13 00:58:11 drinfernoo: Check this Stack: https://stackoverflow.com/questions/30531091/how-to-disable-recyclerview-scrolling Dec 13 00:58:27 TacticalJoke https://www.reddit.com/r/Android/comments/3wexo9/sign_up_for_the_reddit_for_android_mobile_beta/ Dec 13 00:58:39 some interesting comments from ahiggz in there Dec 13 00:59:37 Yeah. Seems it's gonna have ads. Hopefully they're talking about minor items in post lists. Dec 13 00:59:53 Something that's easy to ignore. Dec 13 01:00:15 Reddit apps that show ads all the time (and take up valuable screen space) make Reddit clients a waste of time, IMO. Dec 13 01:00:30 I mean "Ads ... make". Dec 13 01:01:22 Ah, that's simple. Dec 13 01:01:29 Write an XPosed module, done. Dec 13 01:02:04 Anyone here updated to Genymotion 2.6.0? I'm having problems installing Google Apps on a new emulator created after updating Dec 13 01:02:17 It just infinitely says the .zip is transferring to device Dec 13 01:02:20 XPosed would make RMS happy: it's not ideal, but at least it allows users full control over their systems. Dec 13 01:04:49 liewenhao, that helps ;) Dec 13 01:05:15 hm. switching fragments with NavigationView - each has quite different toolbar. whats the best way to handle this (1) uber toolbar that each fragment customizes or (2) have each fragment install its own toolbar. 1 is messy , 2 is messy too because each child fragment would have to set up the nav drawer icon again Dec 13 01:05:54 Are you using AppBarLayout/CollapsibleToolbarLayout g00s? Dec 13 01:06:14 none of my frags have collapsableXXX ... yet Dec 13 01:06:19 total noob here. I want to make apps for my website. the actual functionality of the website could be simply copied client-side, but the side needs to store files... should I make an app that works with my website/a web API, or a clone of it that won't require an internet connection, but needs to upload files at some point? Dec 13 01:07:01 How different are the Toolbars? I usually just have my Activities manage the toolbar and replace use Fragment transactions to replace the content view Dec 13 01:07:18 hm one has a spinner, the other doesn't Dec 13 01:07:35 i could imagine a 3rd frag having tabs Dec 13 01:08:10 but yeah, dont like the idea of fragment having toolbar in its own layout, makes it less reusable Dec 13 01:08:16 Are you using a lib for the navigation drawer (i.e. MaterialDrawer) or custom implementation? Dec 13 01:08:30 just NavigationView + DrawerLayout Dec 13 01:08:33 * g00s uses few libs Dec 13 01:08:52 alright so I moved my tracking variable to MainActivity, I call ((MainActivity)getActivity()).centered(); to set it after which the debugger shows it set to true, than when my repaint is triggered, that variable under MainActivity shows false again Dec 13 01:08:53 g00s, I would use a toolbar for the activity and let the fragments modify it Dec 13 01:09:04 danijoo yeah ... i think so Dec 13 01:09:08 liuwenhao danijoo thanks Dec 13 01:12:40 Yeah don't implement the Toolbar inside the fragment, just add some logic for customize it in your fragment. If each fragment has it's own Toolbar it's gonna get messy fast Dec 13 01:15:23 Hmm I got my new emulator to flash gapps but now it's just infinitely loading after logging in to Google Play Dec 13 01:16:17 and Google Play Services force closing Dec 13 01:18:23 do you think that this is true? i am using recycler view Dec 13 01:18:25 https://paste.kde.org/pu7siuscu Dec 13 01:19:26 What do you mean true? Dec 13 01:20:12 milkshake, this wont work Dec 13 01:20:22 because getActivity() will return null at line 32 Dec 13 01:20:38 so I put a random number in a variable in MainActivity, the breakpoint in my fragment shows mActivity (MainActivity@20407) t = -761353436 and the breakpoint in my view shows mContext (MainActivity@20516) t = 622606961, why are they different? Dec 13 01:20:40 you cant use getActivity() before onActivityCreated() callbacl Dec 13 01:21:02 Why are you using ListFragment with RecyclerView? They are completely different things. Dec 13 01:22:36 it is a project.i am learning android new.so i am trying to do some projects Dec 13 01:23:08 You should look up some RecyclerView examples. It's difficult to implement from scratch if you are new Dec 13 01:23:10 If you're using RecyclerView, don't use ListFragment. The latter uses ListView under the hood. Dec 13 01:25:12 setting the tracking variable to static works so maybe that's the best way to handle it Dec 13 01:29:22 danijoo what should i write in onActivityCreated method? Dec 13 01:30:49 just writing public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); } Dec 13 01:31:03 wont solve the problem Dec 13 01:31:08 milkshake, you should read about activity and fragment lifecycle Dec 13 01:31:13 what it does and how it works Dec 13 01:31:22 that will clear things up for you Dec 13 01:41:59 i have this message.what should i do https://paste.kde.org/pzlo4aods Dec 13 01:44:39 That's 1,218 messages. Dec 13 01:45:26 you should learn java and how to debug code / how to read stack traces Dec 13 01:47:01 https://paste.kde.org/py144y8jt now i have this error message Dec 13 01:47:27 :D i decreased it Dec 13 01:47:28 milkshake, Could it be that you have no idea what you are doing? Dec 13 01:48:17 maybe Dec 13 01:48:29 i am trying and trying Dec 13 01:48:35 noone to learn Dec 13 01:48:44 so do nothing :( Dec 13 01:48:46 you should learn the basics first. Dec 13 01:49:51 what is even happenining in this class? Is this a good model design https://github.com/grandstaish/hello-mvp-dagger-2/blob/master/app/src/main/java/com/example/bradcampbell/domain/HelloModel.java ? Dec 13 01:51:07 Afzal aha, if its not clear, its magic ! Dec 13 01:52:27 g00s haha but is it good magic? Dec 13 01:52:37 its pretty simple, just some Observables Dec 13 01:52:44 I love the rest of that structure with the presenter stuff Dec 13 01:52:46 Afzal are familiar with RxJava ? Dec 13 01:53:01 g00s not aas mucch as I'd like to be :( Dec 13 01:53:13 just got decently familiar with dagger 2 Dec 13 01:53:27 nice. rxjava is useful also Dec 13 01:53:40 good to have in toolbelt :D Dec 13 01:54:58 Afzal what that is doing is wrapping a cache, and getValue() is grabbing one of them Dec 13 01:55:24 looks like the first one that comes in , memory() or disk() Dec 13 01:55:31 these are all streams Dec 13 01:55:47 but you see .first() so its only going to return one Dec 13 01:55:52 (the first one) Dec 13 01:57:31 I'm making my first calculator app on android studios and im trying to add a java class so i can create a method that used the javascript engine to evaluate a string but everytime i try to import the javascript libraries android studios automactically deletes them. Why is that? Dec 13 01:58:36 because they don't work on android Dec 13 01:58:43 Is there a permission that gives an app on a non-rooted device access to install non-system apps? Dec 13 01:58:53 no Dec 13 01:58:55 Romain Guy on Twitter: "And IntelliJ 15’s “Convert Java file to Kotlin” is very tempting :)" Dec 13 01:59:10 why won't that work on android? Dec 13 01:59:28 SpawnDemonic, android is not able to run javascript Dec 13 01:59:45 at least not like that Dec 13 01:59:49 pfn there is now way to uninstall/install an apk with prompting the user? Dec 13 02:00:39 what other method could i look into to evaluate a string for my app? Dec 13 02:00:52 SpawnDemonic, do it in plain jav Dec 13 02:00:53 a Dec 13 02:01:14 lasserix_, no way Dec 13 02:01:39 if dev mode was on, could i run a shell and just use adb? Dec 13 02:01:47 *run a process Dec 13 02:02:28 what in java would allow me to do that? Dec 13 02:02:38 lasserix_, http://stackoverflow.com/questions/4604239/install-application-programmatically-on-android Dec 13 02:02:57 that will allow you to launch an install promt Dec 13 02:03:01 prompt. Dec 13 02:03:09 thats as close as you can get to installing apps Dec 13 02:06:40 *just trying to automate a batch install not circumvent the user Dec 13 02:19:57 is there a way to hide dev mode on a device once made visible? Dec 13 02:20:01 *in code Dec 13 02:21:52 Is there a way in Android Studio to have new activities auto added to the manifest? Dec 13 02:22:16 lasserix_ if its not here, probably not http://developer.android.com/reference/android/provider/Settings.html Dec 13 02:22:23 any many of these are read only Dec 13 02:22:25 My workflow is like this: add activity, write some code, launch emulator, app crashes, realize I forgot to Activity to manifest Dec 13 02:22:28 liuwenhao: Doesn't that happen by default? Dec 13 02:22:34 When the activity is added via the wizard. Dec 13 02:22:49 Let me check Dec 13 02:23:15 hm, AS mangled my stuff a few times when it tried to be too smart Dec 13 02:23:24 Yeah it does TacticalJoke. Thank you Dec 13 02:23:27 i think it reformatted my androidmanifest.xml file Dec 13 02:23:33 I always added blank activities manually but I will do it from the wizard from now on Dec 13 02:23:47 I had that happen with my Gradle g00s Dec 13 02:23:53 when adding a MapActivity Dec 13 02:23:54 Yeah, one thing is that the wizard sometimes messes with the manifest file. Dec 13 02:23:57 Removing whitespace and such. Dec 13 02:24:04 it completely mangled my gradle and all of the comments Dec 13 02:24:22 I don't have anything custom in manifest though so this is nice Dec 13 02:26:18 Whats the best way to pass coordinates to a fullscreen MapActivity? Should I just send the Latitude/longitude in an intent? Dec 13 02:26:48 i'm odd i think, in that i like to actually type these things out manually, i feel more connected to the code Dec 13 02:27:32 g00s: I'm the same way for many things. But I always forget to add stuff to manifest Dec 13 02:27:46 I do like starting with a completely blank file though instead of auto generated Dec 13 02:28:14 liuwenhao yeah i'd just pass those via intent Dec 13 02:30:20 Thanks. I will do it like that Dec 13 02:31:43 I never knew you could do pinch to zoom with right click in Genymotion. Very cool Dec 13 02:33:14 if I start aprocess with su in an app it will through NOT super user permission error right? Dec 13 02:34:04 lasserix_ lol, come again ... Dec 13 02:34:49 The API 23 permissions? Dec 13 02:35:20 danijoo not sure if this is biochem, maybe http://www.bbc.com/future/story/20151207-the-air-that-makes-you-fat Dec 13 02:53:27 Hey all, can anyone recommend a good kit for 2d sprite development? Dec 13 02:54:13 I have 0 experience with Sprite development and really don't need anything spectacular, just need to have something completed (can be very poorly completed) by the end of the month. Dec 13 02:57:31 You might be better off asking in a Game dev channel Dec 13 02:58:00 Because it's not really Android specific, and I don't think many people here code games Dec 13 02:59:20 Got yah, my mistake Dec 13 02:59:21 Thank you Dec 13 02:59:30 https://www.reddit.com/r/gamedev/comments/1fnopj/good_gamedev_ircchannels/ Check this, might be of use Dec 13 02:59:42 Awesome, I appreciate it Dec 13 02:59:52 no problem, good luck :) **** ENDING LOGGING AT Sun Dec 13 02:59:58 2015