**** BEGIN LOGGING AT Tue Dec 23 02:59:59 2014 Dec 23 03:00:22 i don't know much about the details Dec 23 03:06:03 i guess it's defaulting to red because R.attr.textColor is not compatible with what android:color expects Dec 23 03:06:42 ?android:attr/textColor throws Resource is not a ColorStateList (color or path): TypedValue{t=0x2/d=0x1010098 a=3} Dec 23 03:07:00 when used directly in a style and not through a selector Dec 23 03:07:09 i see Dec 23 03:09:47 arcanine69 see http://blog.fastmail.com/2014/12/23/jmap-a-better-way-to-email/ ? Dec 23 03:15:37 GAH! how can this happen?!? The production version of my app is crashing, but the debug version is fine! I have released a crap app to my customers! Dec 23 03:16:02 regreddit: fix it and re-release it quickly ! Dec 23 03:16:33 i cant reproduce it except on the production version! no debug! Dec 23 03:16:40 this is killing me Dec 23 03:18:05 regreddit: omfg.... you always test these things. always always always Dec 23 03:18:30 i know - i am a true idiot, but thats not helping me now Dec 23 03:19:15 what's the problem like dude? Dec 23 03:19:30 idont know how to debug it in production :/ Dec 23 03:19:35 do you have any details? Dec 23 03:20:18 CrappApp.apk Dec 23 03:20:21 so, my app POSTS a small json doc to my server that creates a larger doc that it deserialiazes Dec 23 03:20:49 is serializes the small doc from a hashmap - and that is crashing on the production version Dec 23 03:20:55 this is bizarre Dec 23 03:21:11 regreddit: is the Dev version exactly the same as the prod version ? Dec 23 03:21:25 yes Dec 23 03:21:41 debug will sanitize some variables Dec 23 03:21:57 Make sure all open vars are declared and open handles closed Dec 23 03:22:01 there's probably a setting in the debug build that's not in the production build Dec 23 03:22:02 well, i need to turn off proguard Dec 23 03:22:14 if its proguard im going to scream Dec 23 03:22:41 i got $5 thats says its proguard, now that I think about it Dec 23 03:24:51 which hasent changed in 2 releases, but the build tools and sdk have Dec 23 03:25:10 regreddit didn't you deploy the release version to your phone O.o Dec 23 03:25:44 no :-| i got too comfortable i guess Dec 23 03:25:53 i know, im an idiot Dec 23 03:26:42 well why not deploy it to your phone and get the stack trace Dec 23 03:26:47 at least you don't have some obscure error that only happens on certain phones lol Dec 23 03:26:55 use the proguard mapping feil Dec 23 03:28:12 SirLagz even worse - program doesn't crash but api just behaves completely differently Dec 23 03:28:19 even worse, its samsung which everyone has Dec 23 03:28:46 g00s: yep. Damn Samsung Dec 23 03:29:02 i see the stack trace, but its an obscure error not in my code Dec 23 03:29:07 doen in GSON Dec 23 03:29:10 down Dec 23 03:29:21 thats leading me to believe ProGuard Dec 23 03:30:30 yup, disabled minify and obfuscate and now its working Dec 23 03:30:35 screw mw Dec 23 03:30:56 now I know better, but i got sloppy with my release testing Dec 23 03:33:43 hey guys, is there a way to embed video inside notification area? Dec 23 03:34:08 or it will break the user experience as per Android guidelines Dec 23 03:40:31 is there really no way to set android:color to default text color (as set in the theme)? Dec 23 03:42:08 seems so :/ Dec 23 03:48:25 OK, it was proguard. So, I removed it for good. Too much stress to same 1mb of compiled apk Dec 23 03:48:37 s/same/save/ Dec 23 03:49:06 nothing in my code needs obfuscation anyway, all the magic is on the server Dec 23 03:52:26 ok Dec 23 03:53:12 might be worth figuring out what actually went wrong when u calm down :) Dec 23 03:53:20 and have some extra time Dec 23 03:53:33 it might actually be a bug in your app which shows only under certain condition Dec 23 03:54:37 luv, yes, that's very possible. I have made 40 releases of my up to this point, and the last 12 have had proguard enabled. thats the scary part Dec 23 03:55:29 and the data model in the app almost never changes, which is where the crash was happening - BUT what is new is the build tools and sdk Dec 23 03:55:48 first release using either, and i didn't test Dec 23 03:56:21 but i lint on every compile, and treat all warnings as errors - i'm generally pretty careful Dec 23 03:56:42 but have only been testing un-proguarded releases locally Dec 23 03:57:35 what are people around here using to find remote android development gigs that pay real money (eg no odesk etc) Dec 23 03:57:47 But in the words of the great Jake Wharton: "I've never used ProGuard" Dec 23 03:59:27 Can someone help me figure out why my Facebook LoginButton keeps crashing my application? Dec 23 04:09:51 did you look at the stacktrace t0astt ? Dec 23 04:21:48 HevvyMetal: I am using Android Studio, where can I view the stacktrace? ADB logs? Dec 23 04:21:56 Because nothing is showing up in ADB logs Dec 23 04:22:16 And my Devices | logcat window doesn't show anything special when I have my app process selected Dec 23 04:22:46 selecting your process doesnt do much Dec 23 04:22:59 you should see a constant spew of data on your logcat window Dec 23 04:23:10 if you dont something is wrong or you need to turn off some filters or something t0astt Dec 23 04:23:30 Ah here, I think I can adjust the Log level Dec 23 04:23:34 Let me try this Dec 23 04:23:40 I'll report back if I find something weird Dec 23 04:29:46 Well, I saw some errors in red but none of them referenced any of the files I can directly edit (MainActivity, etc.). Should I still post them? Dec 23 04:32:19 HevvyMetal: Here is a pastebin of the logs: http://pastebin.com/VpVdce3A Dec 23 04:35:08 well i'd have to know what time i should be look at or whatever Dec 23 04:36:09 t0astt: what's your package name? Dec 23 04:36:11 I'm sorry but it's the best I can give you. It seems to give me the same output everytime, even when clearing the log window Dec 23 04:36:27 com.mikerinehart.myapplication Dec 23 04:36:37 *my name has been revealed!* Dec 23 04:37:42 I'll pastebin my MainActivity as well Dec 23 04:38:29 MainActivity.java: http://pastebin.com/1mrWzUsn Dec 23 04:38:32 thats ok Dec 23 04:38:37 i dont see anything in the logs really Dec 23 04:39:02 just paste the logs of right when it crashes not a whole bumch Dec 23 04:39:04 just trim it down Dec 23 04:39:16 Well that's the thing, the logs don't show up until it crashes Dec 23 04:39:22 yeah, there's no crash there Dec 23 04:39:47 I should be looking at the Devices | logcat tab right? Dec 23 04:40:31 dunno, I use adb on the command-line... Dec 23 04:40:55 ah ok, I'll do that and pipe the log to a file Dec 23 04:40:58 Please standby Dec 23 04:42:04 Ah here we go, this looks a bit juicier Dec 23 04:42:59 New log: http://pastebin.com/p5kvVr4K Dec 23 04:43:30 and I think I see the error too :P Dec 23 04:43:51 Although the Facebook quick start for Facebook Login never told me to declare that in the Android Manifest Dec 23 04:51:48 hows it going Leeds Dec 23 04:52:02 not too bad - you? Dec 23 04:52:35 Leeds yep, just poinding away at code ;) Dec 23 04:52:47 need to find somewhere to stay for a few days in Australia in late Feb... looking on airbnb, places I'd looked at before are already booked :( Dec 23 04:52:53 i tried replacing my content provider with a few different things, each one turned out being worse than the provider Dec 23 04:53:01 any telecommuters in here? Dec 23 04:53:10 Leeds oh nice Dec 23 04:53:22 Leeds vacation or business ? Dec 23 04:53:32 neither - it's a holiday Dec 23 04:53:53 I'm English, we don't 'vacation' :P Dec 23 04:53:56 telecommuters? Dec 23 04:54:01 I work remotely atm. Dec 23 04:54:09 Leeds have you chosen the location ? Dec 23 04:54:14 city, etc ? Dec 23 04:54:21 oddalot are you a contractor or full timer or what? Dec 23 04:54:23 g00s: oh, yeah - got flights booked months ago Dec 23 04:54:52 contractor currently Dec 23 04:54:53 we're spending a week or so in Sydney, then 3 days in Gold Coast - that's what I need to book for... staying with family in Sydney Dec 23 04:55:21 HevvyMetal: I'm technically a contractor, 'working' 'full-time' for one guy, based at home Dec 23 04:55:41 ok well i'm wondeirng how you find your remote/telecommute gigs leeds and oddalot Dec 23 04:55:48 it's kinda hit and miss with me Dec 23 04:56:25 well... as I say, I'm basically full-time for one client, but I normally get at lease one or two people per month approaching me... it's all about the networking, really Dec 23 04:56:48 I didn't really find this one, a friend sought me out because he had a need. But it was a rare chance occurence, I wouldn't normally of known - or perhaps wanted - to have gotten this kind of work Dec 23 04:57:09 right well how do people approach you ? what city are you in leeds? Dec 23 04:57:21 silly Dec 23 04:57:21 I geneally work on 3-6 month projects but they don't lead into new business from differnt clients... Dec 23 04:57:41 it is rare for me Dec 23 04:57:57 i got a client from a client because the initial client got employed by a company Dec 23 04:58:02 I live near San Francisco, it's pretty easy to find work if you have a good portfolio Dec 23 04:58:07 and made me a contractor for that client Dec 23 04:58:24 for the company Dec 23 04:58:53 HevvyMetal: I'm in Hong Kong... I go to industry events, meetups, etc., give out business cards - HK is mad for cards, everyone swaps them constantly, I've got piles of them on my desk Dec 23 04:59:16 i see Dec 23 04:59:23 is that why they get things like SARS constantly Dec 23 04:59:54 oddalot i have a good portfolio and i used in live in the bay area Dec 23 05:00:10 but how do they find your portfolio? on linked in or what? Dec 23 05:00:28 for me, i am on elance Dec 23 05:00:32 craigslist, dice are two good ones Dec 23 05:00:34 latest thing, I got an email yesterday: "We met in a startupshk event a month or two ago. $NAME introduced me to you in the event. I am working on a project ($APP_URL) and would like to get someone to help me out with the Android App development work. Would you be free to meet this week or next?" Dec 23 05:00:49 craigslist and dice are trash here Dec 23 05:00:55 dice can hook you up with headhunters who can do a lot of the work of finding clients easier Dec 23 05:01:07 well dice used to be my cash cow 10 or so years ago but not really anymore oddalot Dec 23 05:01:19 and i used to get a lot of work from craigslist too but very little telecommute work on there now Dec 23 05:01:20 that's how i got my last two jobs Dec 23 05:01:33 one cool thing about dice is that you (used to be able) to search by telecommute but now you can't Dec 23 05:01:34 my problem is, I've agreed to be pretty much exclusive to my one client, he pays me reasonably well for that, and mostly doesn't work me hard - so I don't really *want* more work :) Dec 23 05:01:39 oddalot last two were recruiters? Dec 23 05:01:48 yeah Dec 23 05:01:59 and they advertised telecommute or what? Dec 23 05:02:00 has anyone tried hired.com? Dec 23 05:02:10 oh, those jobs were full time jobs, sorry Dec 23 05:02:12 (I tried it a few times, never got any offers) Dec 23 05:02:21 hired.com seems to be a real long sign up proceses Dec 23 05:02:31 well if you're on odesk you must be in a cheap coutnry Agamemnus Dec 23 05:02:40 elance, not odesk Dec 23 05:02:45 And, Massachusetts Dec 23 05:02:46 oddalot so they were full time telecommute jobs through recruiters or what? Dec 23 05:02:57 and how much do yo uget on elance? elance doesnt seem too much better than odesk Dec 23 05:03:00 oh, no, they were full time in person jobs here in the bay area Dec 23 05:03:02 Also, elance is the best platform to find contract jobs Dec 23 05:03:09 only for cheap ass shit Dec 23 05:03:16 yeah it has been shit lately but i found almost all my clients from elance Dec 23 05:03:17 I charge ~$100/hr Dec 23 05:03:28 gotta check out elance i guess Dec 23 05:03:31 and how much are you charging agamemnuns? Dec 23 05:03:32 I started at $40 but now I am at $75 Dec 23 05:03:45 and how many hours do you bill through it? Dec 23 05:03:56 less each year Dec 23 05:04:03 it's random Dec 23 05:04:09 one client I got, a museum client Dec 23 05:04:15 so it's just gravy or your full time thing? Dec 23 05:04:16 got two jobs from them so far Dec 23 05:04:18 $7000 Dec 23 05:04:26 i only saw 20 people on elance > $40/hr for android Dec 23 05:04:27 a few months of work Dec 23 05:04:38 so what is most of your work come from then Agamemnus ? Dec 23 05:04:39 I should mention I'm a javascripr programmer Dec 23 05:04:47 javascript* Dec 23 05:04:54 Elance Dec 23 05:05:07 but a close second is the client I got from one client on elance Dec 23 05:05:10 an industrial company Dec 23 05:05:17 40 dollars isn't like you are poor of something Dec 23 05:05:32 $40 is decent if you can get it consistently Dec 23 05:05:43 but not on elance, not really Dec 23 05:05:54 so i charge $75 and i don't take any prisoners Dec 23 05:06:17 i often keep the copyright... Dec 23 05:06:20 I'm a javascript programmer, but i'm learning android while i do this new job Dec 23 05:06:38 so i don't charge very much, considering i didn't know one lick of java before I started Dec 23 05:06:59 Hmm, I'm getting an "Invalid Key Hash" error with my Facebook login now - I don't even know where the hash it's showing is coming from. Can someone help me out? Dec 23 05:07:13 telecommuting is still hugely underappreciated in the world of programming, in my opinion Dec 23 05:07:26 or rather companies that deal in it Dec 23 05:07:37 even if they tell you otherwise Dec 23 05:07:38 One problem I could see, is that these companies might not want to give programmers access to their data Dec 23 05:07:53 Sure. Dec 23 05:07:55 I know the company I'm working on trusts me enough because I'm friends with the guy Dec 23 05:08:12 but even if they do a good job, you might of lost trade secrets in the process Dec 23 05:08:14 I guess a lot of companies think that way Dec 23 05:08:28 That if you have someone in the office then they're "yours" Dec 23 05:08:40 and that, of course, is a fallacy of epic proportions Dec 23 05:08:40 yeah, it Dec 23 05:08:48 's easier at least Dec 23 05:09:11 well, it's like with Snowden, he was a contractor Dec 23 05:09:20 or at least, that's what was initially reported Dec 23 05:09:55 Most people just aren't smart. Dec 23 05:10:05 everyone stores their code and data in the cloud anyway now Dec 23 05:10:10 And these people decide security budgets... Dec 23 05:10:35 hevvymetal: yeah that helps for a lot of things Dec 23 05:10:52 until your shit is hacked and you didn't want to pay that extra $5 for backups... Dec 23 05:10:56 so what do you think of all the scrum/agile stuff? Dec 23 05:11:21 Yeah, I know, Sony can spend 100million on a movie no one will watch, but they can't secure their data? Dec 23 05:11:34 it's not the first time Dec 23 05:11:42 it keeps happening to Sony Dec 23 05:11:48 they're "victims". please Dec 23 05:12:07 perl harber Dec 23 05:12:27 HevvyMetal: what i know is that there's only so much optimization you can do of a programmer's time Dec 23 05:12:31 anyway sony has very few telecommuter Dec 23 05:12:58 sure and sucking the life out of them with daily nonending scrums is not a good use of time Dec 23 05:13:01 for example, it is often reported that google tries to keep its programmers in the building as much as possible, because commuting takes time Dec 23 05:13:05 most of the scrum implementations suck so far Dec 23 05:13:21 and programmers get food in the building Dec 23 05:13:24 and so on Dec 23 05:13:34 that makes sense from an economic perspective Dec 23 05:13:54 but you can't just rush through a project Dec 23 05:13:54 Honestly I've been to mountain view and it doesn't seem like there is much going on outside anyway Dec 23 05:14:02 maybe in san francisco Dec 23 05:14:13 mountain view is a pretty borign place Dec 23 05:14:30 i dont even know why it is called mountain view Dec 23 05:14:35 what fucking mountain does it have a view of? Dec 23 05:14:37 does it have mountains? Dec 23 05:14:38 heh Dec 23 05:14:43 no Dec 23 05:14:44 maybe they were all bulldozed Dec 23 05:14:53 pollution clouding the way ? Dec 23 05:14:58 it was probably drained swampland Dec 23 05:15:08 the nearest mountains are far to the south of mountain view Dec 23 05:15:22 it's more like parking lot view Dec 23 05:15:25 same with sunnyvale Dec 23 05:15:26 so there are a few ways you can optimize programmers' efficiency Dec 23 05:15:30 its like a giant parking lot Dec 23 05:15:34 well telecommuting is the best way Dec 23 05:15:34 first is bringing things like food to them Dec 23 05:15:41 sure but like Dec 23 05:15:44 beacuse then they can work when they are most in the mood Dec 23 05:15:46 if they're trapped in an office Dec 23 05:15:47 lots of jobs n SF but i'm not keen on moving there (traffic, congestion, real estate, etc) Dec 23 05:15:47 food is always there Dec 23 05:15:51 quick blow job Dec 23 05:15:55 trapped in office is not a way to be creative Dec 23 05:15:59 another thing is Dec 23 05:16:12 g00s that's why i think ther should be more telecommuting Dec 23 05:16:12 well you leverage wages Dec 23 05:16:15 basically Dec 23 05:16:24 no you dont leverage wages Dec 23 05:16:31 because real estate sucks up all the excess wages Dec 23 05:16:33 there should be like 5 people from poor countries looking at a programmer's screen Dec 23 05:16:41 remotely Dec 23 05:16:47 lol Dec 23 05:16:49 so in the end if you move there you dont make money Dec 23 05:16:50 and if they make a mistake Dec 23 05:16:55 lol Agamemnus those people sucks Dec 23 05:16:56 they get pinged Dec 23 05:17:04 wtf :-D Dec 23 05:17:16 just various ideas Dec 23 05:17:38 obvious mistakes that an IDE can't see Dec 23 05:18:08 or, well, the classic example is to offsource customer support Dec 23 05:18:11 then tech support Dec 23 05:18:22 leave the most advanced things in house Dec 23 05:19:00 yeah cant beat that clueless customer support in india for virgin media Dec 23 05:19:06 telecommuting works in this case too Dec 23 05:19:17 way to make your customers happy Dec 23 05:19:20 but in terms of role separation Dec 23 05:19:31 yeah customer support is often just that Dec 23 05:19:58 but it makes people soulless, when they pluck out your best expertise and make you do that 24/7 Dec 23 05:20:18 like "this guy is good at making widgets. He shall be the widget guy." Dec 23 05:20:30 AND NOTHING ELSE... Dec 23 05:20:30 I'm thinking of doing uber during the day and programming at night, mix it up and make some extra cash Dec 23 05:20:41 I see Dec 23 05:20:55 you will sleep during the uber part Dec 23 05:21:00 or the programming part? Dec 23 05:21:02 just work 4 hours at each Dec 23 05:21:08 ah Dec 23 05:21:19 you won't even need to shave Dec 23 05:21:24 I've talked to some uber drivers here that say they can make 400 dollars in a few hours some days Dec 23 05:21:29 an unkempt beard works for both Dec 23 05:21:45 interesting Dec 23 05:21:55 isn't the idea that uber drivers get paid LESS? Dec 23 05:22:00 oddalot another uber story from today, if you need insurance http://www.buzzfeed.com/kenbensinger/ubers-yawning-insurance-gap Dec 23 05:22:17 but i guess they keep more Dec 23 05:23:13 I would need to buy I car first hehe Dec 23 05:23:34 but you can use Uber's financing Dec 23 05:23:43 like they say in the article Dec 23 05:23:58 sweet Dec 23 05:24:22 I'm seriously going to look into it Dec 23 05:25:57 i would rather fly to work Dec 23 05:26:04 on genetically engineered wings Dec 23 05:26:13 would be a bitch to sleep tho Dec 23 05:30:48 how much do uber people make? Dec 23 05:31:33 Agamemnus: they;d just fall off for the night Dec 23 05:32:03 i see Dec 23 05:33:07 http://www.businessinsider.com/uber-drivers-say-theyre-making-less-than-minimum-wage-2014-10 Dec 23 05:34:09 sheeeeet Dec 23 05:34:13 Uber takes 20%? Dec 23 05:34:20 Just for providing .. what? Dec 23 05:35:12 Agamemnus who cares, the uber execs are getting rich :) Dec 23 05:36:21 http://static4.businessinsider.com/image/52f23e6a6bb3f7c33ac251af-1200-900/travis-kalanick-uber-limo-driver04-1.jpg Dec 23 05:36:46 did you take me off ignore? so now i don't have to rage insult you now... Dec 23 05:37:14 i rest my ignores for now :) Dec 23 05:37:20 I see Dec 23 05:37:49 I was reading a book Dec 23 05:38:22 Atlas by Isaac Hooke Dec 23 05:38:38 It's not really that creative but I like how he extrapolates current society Dec 23 05:38:46 to society in maybe 50-100 years Dec 23 05:38:56 Hmmm, after making a content provider for my app, I'm seeing less and less of a need to use objects for the data I'm going to store in the sqlite database Dec 23 05:39:09 everyone in the US has free robot servants Dec 23 05:39:12 one per family Dec 23 05:39:15 no crime Dec 23 05:39:21 barely anyone has any job Dec 23 05:39:31 some companies are entirely automated Dec 23 05:39:44 If the only reason they are there is to help make it easier to interact with the data, seems like the content provider tooks care of that already Dec 23 05:39:46 the servants actually shop for groceries Dec 23 05:40:15 takes* Dec 23 05:40:16 but in mexico everyone is poor, except the kingpins and drug lords and such Dec 23 05:40:24 and everyone has a sawed-off shotgun. Dec 23 05:40:42 can I define code in GLSL that will reference an array in memory? Dec 23 05:41:22 Hey guys, I'm using some code from Facebook to output my KeyHash using Log.d in my onCreate method. That should get output to logcat, right? I can't find it anywhere Dec 23 05:41:35 Mexico's basically like that movie, Elysium Dec 23 05:42:42 There are a lot of people in the US too Dec 23 05:42:51 that are poor Dec 23 05:42:51 i'm less optimistic. 90% of the people in this country will be in poverty Dec 23 05:43:00 t0astt: yes, it should Dec 23 05:43:12 Agamemnus from today, see chart 4 http://www.newyorker.com/business/currency/four-charts-defined-global-economy-2014?intcid=mod-yml Dec 23 05:43:19 Well, you see, the US has become pretty much a socialist haven Dec 23 05:43:34 in that people get a lot of subsidies Dec 23 05:43:43 there's still capitalism. The rich are still rich Dec 23 05:43:53 ut the poor people "subsist" with a free robot Dec 23 05:44:48 heh, socialist haven :D Dec 23 05:45:01 oh yea Dec 23 05:45:02 it's just that the people voted themselves free stuff Dec 23 05:45:05 guess that's what happens when you 'elect' a Kenyan Muslim, right? Dec 23 05:45:34 in mexico, everyone's content with getting a mamasia and some kids Dec 23 05:45:38 can you eat the robot ? Dec 23 05:45:38 and living in squalor Dec 23 05:45:55 do you guys think north korea is gona kill us all Dec 23 05:46:00 i thinks o Dec 23 05:46:17 The main character, when he was younger, ambushed police robots in Mexico Dec 23 05:46:30 north korea is going to provide is with more entertainment Dec 23 05:46:34 us* Dec 23 05:46:41 Also, 90%+ of the US military is composed of illegals due to the illegal draft act Dec 23 05:46:58 O.o Dec 23 05:47:01 if you try to cross the border, you have the option to get drafted for 12 years Dec 23 05:47:11 i mean, if you're caught Dec 23 05:47:19 then you become a full citizen Dec 23 05:47:32 14 for special forces called MOTHs Dec 23 05:47:41 That's what the main character wants to be. A MOTH Dec 23 05:47:58 Can you explain the whole book? Dec 23 05:48:03 haha, jk Dec 23 05:48:08 i'm through half of it already :P Dec 23 05:48:20 thanks for spoiling everything Dec 23 05:48:21 but there's a sequel too Dec 23 05:48:35 so really it's only 25% spoiler Dec 23 05:48:39 barely 25% Dec 23 05:49:07 I bought the paperback. Damn amazon free shipping Dec 23 05:49:18 there are cheap electronic versions tho Dec 23 05:49:57 And, of course... in the book, Amazon has flying drones. Dec 23 05:50:04 with GLSL can you define code to run on the GPU which refers to an array in normal memory? Dec 23 05:50:07 now put the damn book down and get to coding! Dec 23 05:50:35 fuck the us military Dec 23 05:50:40 fuck obama Dec 23 05:50:42 our gov is dumb Dec 23 05:50:44 smellymoo: well, i don't know the specifics but you can definitely check texture data Dec 23 05:50:48 i wana start my own cuontry Dec 23 05:50:51 Agamemnus did make me laugh tho, saying us was socialist haven haha Dec 23 05:50:51 and you can send that in Dec 23 05:50:59 arcanine69: I think you want #politics Dec 23 05:51:15 nah shmooz i just needed to rant for a sec, im done Dec 23 05:51:16 Agamemnus, so you are suggesting that I could convert it to a texture then use that? Dec 23 05:51:26 Leeds, I just put a System.out.println("testing"); right above the Log.d command and the S.o.pln is not being executed, can I show you a pastebin of my code? I'm so close to getting this login working and I want to get it done by tonight :D Dec 23 05:51:31 I guess Dec 23 05:51:49 just a thought. I barely know anything about it. Dec 23 05:52:03 t0astt: I have no idea where System.out will go - Log.foo is the right thing to use Dec 23 05:52:18 obamacare is just the beginning Dec 23 05:52:23 Agamemnus, thanks, I guess I need to find an expert on it. Dec 23 05:52:37 they're looking into letting people have free rejeuvenation treatments Dec 23 05:52:51 but some in the Senate are arguing this will obviate the need for work entirely Dec 23 05:53:28 In Mexico, all the drug lords are 100 years old but look like they're 24. Dec 23 05:53:32 or 25 Dec 23 05:53:46 i think i know why i put Agamemnus on ignore now Dec 23 05:53:50 lol Dec 23 05:53:50 :( Dec 23 05:53:50 Leeds: I was putting a S.o.p at the very start of the onCreate and it was being printed out, so my guess is a certain condition isn't being met or something... http://pastebin.com/JQ5e5q6T Dec 23 05:54:05 i'm done Dec 23 05:54:59 oddalot were you at content provider part in your book ? Dec 23 05:55:21 i have a soft spot for cp's, but most hate them Dec 23 05:55:35 t0astt: well, the obvious question is if your try/catch is being fired Dec 23 05:56:29 g00s, think I found what I was looking for in this stack overflow answer: http://stackoverflow.com/questions/5008224/android-using-dao-pattern-with-contentprovider Dec 23 05:56:38 didn't know the term: DAO Dec 23 05:57:20 So apparently my thinking is correct, the contentprovider pretty much handles modeling the data for you, so making a DAO on top of that is not necessary Dec 23 05:57:51 you are still dealing with cursors tho Dec 23 05:58:03 which may or may not be your cup of tea Dec 23 05:58:12 I'd already implemented the ContentProvider a while back. I was refactoring some code and realized I was about to delete the need for my classes Dec 23 05:58:25 g00s, but I thought that's what android was all about, cursors Dec 23 05:58:32 listviews, etc.. Dec 23 05:58:33 cursing, yes Dec 23 05:58:41 haha Dec 23 05:59:12 Leeds: It is entering the try/catch, but it is not entering the for loop Dec 23 05:59:12 It's almost like it is screaming at you to do it this way. Dec 23 05:59:48 t0astt: because... Dec 23 05:59:52 oddalot there is a leitmotif of Uri in android Dec 23 06:00:24 a what? Dec 23 06:00:52 never seen that word, leitmotif Dec 23 06:01:31 yes, so you agree that content provider seems like a good way to go then? Dec 23 06:02:34 hm. my last 2 apps used them, it worked out pretty well since i had lots of pieces chucking data in to the db, and the UI was refreshing with loaders Dec 23 06:03:10 in both cases, the db was private. i've been rethinking it though for this app. not sure if i'll use a provider or not Dec 23 06:03:47 oddalot one of the nice things about provider, is ContentProviderOperation is parcelable. so you can send it to an intentservice Dec 23 06:04:11 so did you didn't make any Classes for the tables at all in those apps? Dec 23 06:04:21 -did Dec 23 06:04:39 so lets say yo have a UI screen, editing a form. once the user presses done, you can send that update operation to the IntentService, no need to worry about whether you have inflight bg threads writing outside the killable lifecycle of activity, etc Dec 23 06:05:09 no, no classes for tables. I did a Contract class though Dec 23 06:05:29 Yeah, guess I need to look at that. Dec 23 06:05:50 the iosched content provider is organized well Dec 23 06:06:39 i was reading this http://commonsware.com/blog/2014/03/31/cwac-loaderex-failed-abstractions.html Dec 23 06:07:08 I really need a better way to copy text from this screen Dec 23 06:07:33 but even if loaders suck for everything except cursors, that was still a pretty useful Dec 23 06:07:44 thing Dec 23 06:07:51 I'm ssh'ed into a vps in a terminal, and I that link breaks on three lines...so i'm forced to copy all three parts seperately Dec 23 06:09:31 I guess the main thing is, should I not worry about objects at all for my data? Dec 23 06:09:46 Cause that is what the contentprovider is doing away with Dec 23 06:11:38 seems weird, using Java and all Dec 23 06:12:05 oddalot you can try http://ormlite.com/ Dec 23 06:12:08 i haven't used it Dec 23 06:14:31 loaders sucked, even for cursors :p Dec 23 06:14:51 you started a loader, and got cursors - pretty easy :) Dec 23 06:14:59 well, i already hand wrote all the classes and everything Dec 23 06:15:06 but i just don't need them anymore Dec 23 06:15:31 the implementation is awful - like java goatse Dec 23 06:15:34 so it seems lik ormlite would be superflous as well Dec 23 06:16:58 I used sugarORM when i first started, but that couldn't even return a cursor so i quickly abandoned it Dec 23 06:17:43 generally, you want to avoid making content providers Dec 23 06:18:02 pfn, but why? Dec 23 06:18:45 because they are a terrible programming pattern Dec 23 06:18:56 and have limited utility Dec 23 06:19:44 pfn, but that seems to contradict what the android docs say on the matter Dec 23 06:20:19 the docs don't say to use a content provider every opportunity you can Dec 23 06:20:38 I didn't say they did Dec 23 06:21:06 I said they contradrict your other two statements about having limited utility Dec 23 06:21:33 i think some people like organizing their content around a hierarchical uri Dec 23 06:21:40 they don't contradict the statements at all Dec 23 06:22:05 they have a loosely defined api Dec 23 06:22:13 well, I've read a good portion of the docs, and there are numerous cases where content providers appear useful. Dec 23 06:22:15 #1 bad programming practice Dec 23 06:22:35 their structure is rigid Dec 23 06:22:41 #2 poor utility Dec 23 06:23:38 having a rigid structure can be a good thing in programming Dec 23 06:23:46 oddalot one thing i've considered is a stub provider, which basically has an empty impl except for query() on the things i want to use loaders for Dec 23 06:24:58 the rigid structure is not in relation to programming Dec 23 06:25:30 anyway, continue using them, you're just making development more if a pain for youraelf Dec 23 06:27:33 there's only 2 places where it's actually useful Dec 23 06:27:46 pfn: Spain and Brazil? Dec 23 06:27:47 pfn, well, making things less painful isn't always the top concern, my thanks for the advice Dec 23 06:28:14 making development easier and maintainable always is Dec 23 06:29:01 maybe if you coded in a vacuum and didn't have any business concerns Dec 23 06:29:24 security, for instance, doesn't make things easier. Dec 23 06:29:31 but you have to do it in some cases. Dec 23 06:31:23 yes, but content providers add nothing of value Dec 23 06:31:35 that's the main reason, use them when you have to Dec 23 06:31:41 not because they're there Dec 23 06:32:19 you're equating using content providers to a business requirement Dec 23 06:32:53 that's like saying you have to use tab indentation because of a business requirement Dec 23 06:34:17 what i'm saying is that sometimes you have to work with what you've got. I doubt anyone would of chosen javascript to work with, but that's what you have to use if you want to make web applications Dec 23 06:34:42 yes, but what you've got available to you is the whole world Dec 23 06:35:11 ideally yes, but i'm not an idealist, i'm a pragmatist Dec 23 06:35:29 if you're a pragmatist you would not use content providers Dec 23 06:35:51 Maybe if you're a cargo cultist Dec 23 06:35:55 http://www.androiddesignpatterns.com/2012/05/correctly-managing-your-sqlite-database.html Dec 23 06:36:00 one example Dec 23 06:36:49 well, to be part of this society you have to be part of a cult to one degree or another Dec 23 06:40:36 you clearly don't know the meaning of cargo cult Dec 23 06:42:20 I know what cargo cult means, it comes from a society that thought they could get cargo planes to land in their village by setting up a fake airport Dec 23 06:43:21 why do peole even use sqlite oddalot? isnt there a NoSQL for android or just store hashtables? Dec 23 06:43:31 i see little reason to use the sql lite approach Dec 23 06:43:58 I use it because I looked at the alternatives and it seemed like the most reasonable. Dec 23 06:44:16 what kind of alternatives? Dec 23 06:44:35 it just depends how easy it is to flatten out your data but then you have the JSON layer and the POJO layer and the Sqllite it seems like a mess Dec 23 06:44:36 plus, I was going to be interacting with a database on a remote back end anyway. Dec 23 06:45:10 how are you going to interact with the database on the remote backend? Dec 23 06:45:27 probably http, xml Dec 23 06:45:34 but i haven't gotten that far yet Dec 23 06:46:04 uh huh Dec 23 06:46:27 really though, at the end of the day, there is always going to be a better way. I'm just trying to do the best with what I've got Dec 23 06:46:53 If the solution is good enough, then I will use it. Dec 23 06:47:06 HevvyMetal what storage options have you tried with success? Dec 23 06:48:59 you can use sqlite schemaless: { id, type, blob } Dec 23 06:49:26 maybe put a protobuf in th eblob Dec 23 06:49:59 (as long as its < 4K :) Dec 23 06:50:52 i don't store too much persistetly goos and if i do either prefs or serialize a hashmap Dec 23 06:54:50 ok, spent an hour talking to the opengl room, and read a lot, still unsure how to proceed. can I get a buffer from surface-flinger and edit it directly? and will it be processed by the gpu? Dec 23 06:55:29 but i'd be interested in what nosql solutions people here are using Dec 23 06:55:39 sqlite with blobs is probably not that efficient Dec 23 06:56:03 i'm bored Dec 23 06:56:20 i read an interesting rant about mobile the other day does anyone want to see it? Dec 23 06:56:34 what is the rant about? Dec 23 06:58:40 the challenges of mobile development Dec 23 06:58:48 yeah, go on. Dec 23 06:58:52 http://postagilist.wordpress.com/2014/12/17/challenges-in-mobile-development-does-it-suck/ Dec 23 06:58:52 HevvyMetal i'm using mvstore for k/v Dec 23 06:59:00 ^^ Dec 23 06:59:17 ok does it let you add data and/or recycle dead data or it's just in memory or what? Dec 23 06:59:19 ok, so how do I get a buffer from surface flinger then directly edit it? Dec 23 07:00:11 HevvyMetal recycle dead data ? Dec 23 07:00:19 deleted data Dec 23 07:00:21 thats like Animator stuff :) Dec 23 07:00:39 sure, its log structured and efficient Dec 23 07:02:06 heavy Dec 23 07:02:56 how does log structured make it efficient to deal with blobs g00s? Dec 23 07:03:04 so what did you think of that link smellymoo? Dec 23 07:03:26 and how does android in general prevent data corruptio of the device suddenly loes power? Dec 23 07:06:06 HevvyMetal its transactional like sqlite , 2 phase commit, etc Dec 23 07:06:48 sure g00s what about the normal android shared preferences and general file corruption in android (just flat and/or download etc) Dec 23 07:08:37 bit of a short rant really. Dec 23 07:09:00 was expecting them to mention fragmentation and google being a total cock-juggling-thunder-c*nt Dec 23 07:09:26 anything like that that handles Pojis instead ofjust maps? Dec 23 07:09:34 well it's short and sweet smellymoo Dec 23 07:09:37 but what did you think of the points/ Dec 23 07:11:37 HevvyMetal if you look at SharedPreferencesImp, there is nothing special going on for robustness. all they do is rename the existing file as a backup and write a new one Dec 23 07:12:12 fine, but fragmentation and google are bigger problems. Dec 23 07:12:35 what kind of fragmentation? Dec 23 07:12:50 the rant was more about management at individual mobile development companies not attacking google itself or whateer Dec 23 07:12:58 HevvyMetal there is also realm.io but its new and the jury is out :) Dec 23 07:14:55 kewl g00s Dec 23 07:15:02 what kind of fragmentation smellymoo? Dec 23 07:15:18 are there any new apis in 5.0 that are worth using and is there a new compat lib for it? Dec 23 07:16:45 dude, that is android... it's fragmented. Dec 23 07:17:04 millions of devices, doing everything a bit differently. Dec 23 07:17:51 so anyway, how can I get a buffer from surface-flinger and edit it directly? Dec 23 07:19:04 i dont think android is all that fragmented Dec 23 07:19:12 ignore the 2.x and the fragmentation goes away Dec 23 07:23:48 do you guys ever have problems in AS with the auto-suggestion callout thingy popping up ontop of the cursor ? Dec 23 07:24:06 so you basically can't see what you're typing then Dec 23 07:29:31 dood Dec 23 07:29:32 all Dec 23 07:29:33 the time Dec 23 07:33:02 arcanine69 did you see that link i sent earler about fastmail ? Dec 23 07:33:19 g00s: no bud. Dec 23 07:33:43 g00s: i started writing my own mail server though. node has some great dns tools for mx look ups and stuff. Dec 23 07:33:43 arcanine69 https://news.ycombinator.com/item?id=8785894 Dec 23 07:34:00 ew. Dec 23 07:34:09 you pay for it man. im trying to create a new free webmail service here. Dec 23 07:35:34 g00s: dw, im going to take down google facebook dropbox and the new york times all at once Dec 23 07:35:48 g00s: than imma be super rich and travel to exotic lands Dec 23 07:36:10 g00s: and i am gona makr ur lyfe easier Dec 23 07:38:21 what you smoking on arcanine69 ? Dec 23 07:38:38 RustyShackleford there ? Dec 23 07:41:07 g00s: i am Dec 23 07:41:10 whats going on? Dec 23 07:41:33 RustyShackleford if you are still thinking about a project .. i saw this http://www.amazon.com/How-Build-Billion-Dollar-Entrepreneurs-ebook/dp/B00J3C4RE6 Dec 23 07:41:40 mayeb give you some ideas Dec 23 07:42:10 g00s: looks interesting Dec 23 07:42:13 have you read it? Dec 23 07:42:26 it has good reviews anyway Dec 23 07:42:33 i just bought it, i'll read it after the next book Dec 23 07:42:54 if i don't become a billionaire, I'm blaing you Dec 23 07:43:01 *blaming Dec 23 07:43:29 :) Dec 23 07:43:42 i have to finish one book, read this http://shop.oreilly.com/product/0636920030676.do , and then i'll read that Dec 23 07:44:24 it's kinda interesting how some apps get really popular, like angry birds Dec 23 07:44:57 hula hoops Dec 23 07:45:01 or candy crush Dec 23 07:45:07 they aren't original ideas Dec 23 07:45:12 pet rocks Dec 23 07:45:25 lol Dec 23 07:45:34 haha, i don't believe pet rocks could have ever been that popular Dec 23 07:45:37 is a pet rock like a chia pet ? Dec 23 07:45:45 nope it's literally a rock Dec 23 07:46:08 99% of mobile is bullshit Dec 23 07:47:04 flippin' ripple effect Dec 23 07:48:03 one thing that puzzles me about android: why isn't there a stock dialer? Dec 23 07:48:21 and similarly, contacts and text messages Dec 23 07:49:38 the S5's apps for those aren't awful, but they aren't great either Dec 23 07:50:30 hello. Play store is not considering my app fit for 7" tablets. I do have a layouts-large folder (with a container for a master detail flow) Dec 23 07:50:52 I wrote a simple Otto implementation today... built then hard copied the lib over... should figure how to dynamically rebuild from its git repo next Dec 23 07:51:14 vedu do you have any 7" screenshots ? Dec 23 07:52:07 vedu also, do you have http://developer.android.com/guide/topics/manifest/supports-screens-element.html Dec 23 07:56:19 g00s: I have 7" screenshots. that is not the error. It is "Your layout should make use of the available space on 7-inch tablets" learn more-> http://developer.android.com/distribute/essentials/quality/tablets.html#use-extra-space Dec 23 07:57:13 vemacs: do you have a layout-large? Dec 23 07:57:23 or layout-sw600 Dec 23 07:58:09 g00s: did you develop anything for lollipop? Dec 23 07:58:19 I have both, thepoosh Dec 23 07:58:26 thepoosh no Dec 23 07:58:52 vedu: what about landscape and portrait? Dec 23 07:58:58 luckily, the crowd that uses my app doesn't give 2 shits about animations and stuff like that Dec 23 07:59:10 porting to it is a bitch Dec 23 07:59:47 ripple effects in wierd places Dec 23 07:59:53 *wierd Dec 23 07:59:54 thepoosh: How to configure? It works well on both when I test Dec 23 07:59:59 ok Dec 23 08:00:14 do you mean it's designed to adapt to both? Dec 23 08:03:06 thepoosh: yes Dec 23 08:03:21 well, I don't have an answer Dec 23 08:03:23 :( Dec 23 08:04:44 g00s: want a good read? Dec 23 08:04:45 http://meta.stackexchange.com/a/10370 Dec 23 08:04:47 vedu you have the ? Dec 23 08:07:11 thepoosh interesting, they went ftom hg to git Dec 23 08:08:43 git is good Dec 23 08:08:46 I like it Dec 23 08:09:08 it's very much like CPP, very powerful and you cause a lot of damage with it Dec 23 08:11:37 g00s: no. but from the documentation it seems it is used to limit, rather than explicitly specifiy, screen sizes Dec 23 08:11:57 vedu it can be used to limit Dec 23 08:12:14 oh well, hope you work it out Dec 23 08:12:31 Play store specifically mentions that I should read this section http://developer.android.com/distribute/essentials/quality/tablets.html#use-extra-space Dec 23 08:12:41 g00s: I will try your method Dec 23 08:42:06 arcanine69: thanks? How are you? Dec 23 08:43:39 mmm ... pming from some other channel :/ Dec 23 08:49:05 ha, what a bunch of dimwits; sourcetree 2.0.4 was crashing because the supplied git was segfaulting on os x 10.7 - so i filed a bug, and the support guy thinks my download was currupted and i should try reinstalling Dec 23 08:49:26 thats like , 'please reboot your computer' Dec 23 09:04:25 how do you make the drawer toggle turn to back instead of drawer? Dec 23 09:09:10 * capella-s32 can't parse that Dec 23 09:21:09 good day to all of you! Dec 23 09:22:12 and a good afternoon to you! Dec 23 09:24:00 4am... needs coffee :p Dec 23 09:31:15 so nobody? lol trying to figure out how to use the drawer toggle as back navigation when there's fragments in the back stack Dec 23 09:31:37 Change the icon to something that looks like a back button Dec 23 09:32:12 afternnon?! Dec 23 09:32:13 but i want the behavior to go back too Dec 23 09:32:16 lol Dec 23 09:32:18 Leeds: are you in India? Dec 23 09:32:22 So change what you do when it's pressed Dec 23 09:32:32 thepoosh: Hong Kong Dec 23 09:32:38 cool Dec 23 09:33:17 It's an menu item with the id android.R.id.home Dec 23 09:33:38 so you're the guy that tripped over the power plug to the n Korean router Dec 23 09:35:07 capella-s32: didn't seem like they were using it for much Dec 23 09:35:50 heheh... so the press reports indicate ;) Dec 23 09:38:16 Leeds: someone needs to post in r/pionyang Dec 23 09:38:46 still can't believe that's an actual thing Dec 23 09:41:24 how do you go back programatically? Dec 23 09:44:36 my app is crashing when a particular method is paused because of something thats in onPause. but the logcat doesn't log anything. Is there a way to force it to tell me why it stopped? Dec 23 09:44:59 anyone with gson expeirience? Dec 23 09:45:52 logcat must show relevant stuff Dec 23 09:46:22 capella-s32, meaning it must show when it crashes right? Dec 23 09:46:28 ofc Dec 23 09:46:38 Nick-S: if you have a question, ask it Dec 23 09:46:58 basically for some strange reason my classes won't serialize to gson Dec 23 09:47:07 bilb_ono: if it's a clib exception it might not show up in your filter Dec 23 09:47:14 exception? Dec 23 09:47:17 or null Dec 23 09:47:53 it says "unfortunately (application) has stopped" Dec 23 09:48:14 I take that to mean a crash and that it should show up. Im not sure what it is because there is no log Dec 23 09:48:33 try removing all filters Dec 23 09:48:57 thepoosh, where would the filters be? Im not sure what those are Dec 23 09:49:11 filters? monitoring in ide vs adb logcat huh Dec 23 09:49:31 capella-s32: yep Dec 23 09:49:36 I log in eclipse Dec 23 09:49:52 sorry Dec 23 09:49:53 logging in android studio. this is logcat, verbose logs. Dec 23 09:50:05 bilb_ono: the default is to filter by application package Dec 23 09:50:06 http://pastebin.com/TUDCwbMr Dec 23 09:50:14 thepoosh: thats my structure Dec 23 09:51:03 oh I see. ok I removed all filters. still no error log when it stops Dec 23 09:51:09 adb logcat ftw :) think outside the box Dec 23 09:51:35 capella-s32, in the ADB logs it just says PropertyFetcher: AdbCommandRejectedException getting properties for device 023c50b70d576b6d: device unauthorized. Please check the confirmation dialog on your device. Dec 23 09:51:39 over and over again Dec 23 09:51:50 not sure what that means Dec 23 09:52:13 capella-s32: you suck Dec 23 09:52:27 wow, harsh :/ Dec 23 09:53:10 thinking inside the box like that is for ! Dec 23 09:53:12 losers Dec 23 09:53:40 sorry, stuck debugging facebook integration Dec 23 09:53:46 bilb_ono: can you make any sort of guess what that might mean? Dec 23 09:54:08 ok SimonVT, how do i trigger the hamburger animation then? Dec 23 09:54:18 hamburger animation? Dec 23 09:54:37 and if he suspects onPause(), can't you do some directed Log() -ing? Dec 23 09:54:37 changing the hamburger to an arrow Dec 23 09:54:39 Leeds, I would guess that it thinks the device (my phone) is unauthorized. however, I authorized usb debugging when I plugged it in. Dec 23 09:54:50 maybe thats not the authorization it means Dec 23 09:55:04 ohhh Dec 23 09:55:08 that Dec 23 09:55:17 you mean you *enabled* usb debugging, or you authorised adb from that computer? Dec 23 09:55:17 when my backstack has items, i want it to change to an arrow, and then not open the drawer, but go back instead Dec 23 09:55:27 capella: if his app is crashing due to a segmentation fault it won't help Dec 23 09:55:35 Leeds, the first one. perhaps I need to do the second? Dec 23 09:55:40 you need to authorise each individual computer Dec 23 09:55:42 which i can control, but not with the animation Dec 23 09:55:45 I follow you thepoosh Dec 23 09:55:54 yay for me Dec 23 09:55:56 and only if i tap the icon, not if i press back Dec 23 09:55:56 to stop someone using adb to get around a screenlock Dec 23 09:56:01 indeed Dec 23 09:56:40 thepoosh: by the way, I'm listening to David Broza right now :) Dec 23 09:56:51 he's very good with the guitar Dec 23 09:57:15 he is Dec 23 09:57:26 Leeds: a few years ago he was in a very bad car accident Dec 23 09:57:34 they reconstructed his hand Dec 23 09:57:43 he had to learn how to play the guitar from scratch Dec 23 09:57:55 oh, didn't know that... I saw him perform on the beach near Nahariya when I was living around there in 1995 Dec 23 09:58:03 Leeds, is there a page on the android developer site for how to authorize a computer for adb debugging? Dec 23 09:58:11 you should've gone to Mezada Dec 23 09:58:21 he performs there every year in the sunrise Dec 23 09:59:01 bilb_ono: it's mentioned here: http://developer.android.com/tools/device.html Dec 23 09:59:35 thepoosh: yeah, that's what I'm listening to, from 1994 Dec 23 09:59:41 good Dec 23 10:01:23 apart from Noa, who I still follow, my Israeli music taste is frozen 20 years ago :) Dec 23 10:02:06 Leeds: if you want I can give you some updates Dec 23 10:02:11 english and hebrew Dec 23 10:02:51 Leeds: try this - http://youtu.be/sMcxk-XiNcA Dec 23 10:03:37 bilb_ono: basically, the first time you try to use adb from a particular computer, you should get a pop-up dialog on the phone asking you to authorise that computer - once or forever Dec 23 10:04:03 nice voice Dec 23 10:05:12 he's very good Dec 23 10:05:49 Leeds: there is also this guy - http://youtu.be/KRAMNWzfjcg Dec 23 10:06:22 reminds me, I need to get back to that pesky RTL textSelection bug :/ Dec 23 10:09:54 NO Dec 23 10:09:58 FUCK RTL Dec 23 10:11:45 Leeds, so I have set it up so that when I execute "adb devices" my device shows up under "list of devices". does this mean that its now authorized? Dec 23 10:12:00 bilb_ono: should be, yes Dec 23 10:12:13 My tester keeps having a problem I can't diagnose or replicate. What's the simmplest way to persist my log messages? Dec 23 10:12:44 thepoosh: did you see my gson struct? Dec 23 10:12:59 I did but I have no knowledge of GSON, Dec 23 10:13:10 I'm sure stackoverflow will help you Dec 23 10:13:24 Leeds: the second guy got signed by Columbia Dec 23 10:13:24 i tried Dec 23 10:13:30 it just gives me null Dec 23 10:13:35 thepoosh: first one is more my type :) Dec 23 10:13:40 same here Dec 23 10:13:45 actually, that was a remix Dec 23 10:13:50 they are the same style Dec 23 10:13:52 70 rock Dec 23 10:14:17 Leeds: this is his original thing - https://www.youtube.com/watch?v=x261RnYolKE Dec 23 10:14:31 Leeds, though its still giving me PropertyFetcher: AdbCommandRejectedException getting properties for device 023c50b70d576b6d: device unauthorized. Please check the confirmation dialog on your device. when I run stuff Dec 23 10:14:46 how can I show it that its wrong? that it is authorized! Dec 23 10:14:56 I hereby allow it Dec 23 10:15:04 so you can do adb devices from the same machine, using the same sdk? Dec 23 10:15:10 I'm going to try this: https://code.google.com/p/android-logging-log4j/ Dec 23 10:15:14 and you don't see any more confirmation dialogs? Dec 23 10:15:49 Leeds, I can do adb devices and have it show up, yet I still see the confirmation dialog Dec 23 10:16:05 did you maybe tell it to ask for confirmation each time? Dec 23 10:16:47 not intentionally. how might I have done that? Dec 23 10:17:07 and that part I don't really mind. i just want my logs even if I have to confirm the device every time Dec 23 10:17:26 bilb_ono : any help here? http://stackoverflow.com/questions/26079838/android-studio-adb-error-device-unauthorized-please-check-the-confirmat Dec 23 10:19:35 capella: your device enabled for debuging/ Dec 23 10:20:25 kamol: it was meant as a suggestion for bilb_ono and his issue, actually :) Dec 23 10:21:00 capella: oh sorry :) Dec 23 10:21:16 np Dec 23 10:23:01 also, https://code.google.com/p/android/issues/detail?id=82850 mentions : Is "adb integration" enabled (Tools | Android)? Dec 23 10:23:40 ( google is our friend :D ) Dec 23 10:24:19 ooh now instead of saying the devices is unauthorized, it says that its offline Dec 23 10:24:34 it tried to connect a bunch of times and then "timed out" and concluded that it was offline Dec 23 10:25:30 and yeah I enabled adb integration Dec 23 10:28:56 does it usually say something good? like "device online" or is it just gonna say nothing if it works? Dec 23 10:30:44 "it"? Are you referring to something in your IDE or a response you might receive from |adb devices| ? Dec 23 10:31:41 capella, Im looking at android studio's adb logs and hoping to see something good, rather than "device offline" Dec 23 10:32:00 so the former Dec 23 10:32:11 yeah Dec 23 10:33:15 I can't say, maybe someone else can ... I don't depend on adb via the IDE, I go straight to the CLI Dec 23 10:33:56 oh geez. I was hoping to stay away from that perhaps is necessary though Dec 23 10:33:57 ask thepoosh? Dec 23 10:35:07 its easy, open terminal, type |adb devices|, press enter Dec 23 10:35:27 though in this case, it'll probabl say the same thing Dec 23 10:38:33 capella, wait with the | Dec 23 10:38:35 ? Dec 23 10:39:31 heh, no Dec 23 10:39:47 damn ide Dec 23 10:40:16 well yeah when I just do adb devices, it shows my device but it doesn't say whether its online or authorized or anything else Dec 23 10:41:04 this is mine and is connected proper https://pastebin.mozilla.org/8111295 Dec 23 10:41:41 instead of 'device" iirc, it might say "offline" if that's the case Dec 23 10:41:50 capella, yeah mine looks like that. and it does say device Dec 23 10:42:08 so your ide is confused I'd guess Dec 23 10:42:39 or you're mis-reading something it's trying to say Dec 23 10:43:16 PropertyFetcher: AdbCommandRejectedException getting properties for device 023c50b70d576b6d: device offline Dec 23 10:43:25 dang it. might pick this up again tomorrow Dec 23 10:44:04 you can also try |adb shell| ... tha'll (kinda-like) cd you over to the device Dec 23 10:44:06 thanks for all the help capella, capella-s32, other capellas that I missed Dec 23 10:44:24 it's all me, baby :D Dec 23 10:44:49 (moving around) Dec 23 10:44:56 A activity using class B by passing A’s context. B using this context and even ((Activity) context).startActivityForResult. Is it right way to do? Dec 23 10:45:11 oh I can get the adb shell up Dec 23 10:45:17 I want to build a project from command line, http://developer.android.com/tools/projects/projects-cmdline.html says I should execute "android" in my "tools" directory, but there's only "platform-tools" and "build-tools" and neither contains "android" Dec 23 10:45:58 maybe its working but just not telling me anything. Dec 23 10:46:09 but then it still doesn't show the crash logs?! Dec 23 10:46:29 well, now you can check |adb logcat| from cli after crash Dec 23 10:46:58 adb logcat > foo.txt Dec 23 10:46:59 wait 5 secs, and ctrl-c then cat foo.txt | more Dec 23 10:47:07 or somesuch Dec 23 10:47:32 ok now this is looking good. giving me verbose logs and such Dec 23 10:47:47 \o/ think outside the ide Dec 23 10:48:11 seriously Dec 23 10:48:48 then you can work towards understanding system dumps for native android crashes :D Dec 23 10:54:32 Does anyone know what happens to apps local files (like a db) when it gets updated? Dec 23 10:57:26 Nothing Dec 23 10:58:14 hey guys, anyone here develops or developed for vuzix sdk? (it's a smart glass based on android) Dec 23 11:02:17 capella: who's asking me what? Dec 23 11:14:40 What the best practice for Android Context in non-activity class? And how can I use dagger in for this purpose? Dec 23 11:16:30 kamol, you pass in application context when instatiating it Dec 23 11:16:36 there's a Dagger way of doing that too Dec 23 11:17:13 Mavrik: Tq! In dagger way I can just inject context? Dec 23 11:20:17 http://stackoverflow.com/questions/27342599/dagger-proper-way-to-define-injectable-class-that-takes-context-in-its-construc Dec 23 11:22:06 Mavrik: tq! Dec 23 11:54:03 Hi :) I have just released my first "game" for Android, it is a sample game I did to test a small library I did (for wrapping a webapp inside an android native application). Is there anybody interested in taking a look? It would be much appreciated, as I need some feedback on other devices and so. There is not any ads or in-game monetization, I only want to see what people think about it. Dec 23 11:54:14 If interested please let me know and I will post the url to the play store (android only) Dec 23 12:40:21 I get this error in kernel when compiling lollipop http://pastebin.com/p9k83wHy Dec 23 12:40:47 I need some help in fixing it Dec 23 12:45:27 aaronfc: im interested! pls link :) Dec 23 12:45:44 https://play.google.com/store/apps/details?id=net.nebur.games.numynums Dec 23 12:46:09 I have also link to the apk directly, just in case you don't want to use playstore (it doesn't require any special permission nor anything weird so...) Dec 23 12:46:30 supay, btw thanks for the interest :) Dec 23 12:48:57 aaronfc: pls link.. im interested Dec 23 12:49:25 I have already posted it Dec 23 12:49:33 couldn't you see it ? Dec 23 12:49:46 do you read me ? Dec 23 12:50:34 supay, do you read me now ? Dec 23 12:51:06 supay: https://play.google.com/store/apps/details?id=net.nebur.games.numynums Dec 23 12:51:11 in case you couldn't see it directly :P Dec 23 12:51:31 gsteinert, thanks :) I don't understand what's happening :P Dec 23 12:51:44 I think he blocked me or something haha Dec 23 12:55:29 also a bit odd that I can't see anything else from him in my log :P Dec 23 12:55:32 (or her...) Dec 23 13:21:03 has anybody managed to get TFS integration plugin working in AS? Dec 23 13:25:31 sighs, another acronym to google :/ Dec 23 13:25:50 TFS = MS' team server? Dec 23 13:26:03 :) so I see Dec 23 13:33:25 p_l, yes Dec 23 13:33:53 it works fine (.. well.. 'fine') in eclipse, but the i can't seem to get it installed in AS Dec 23 13:36:49 Because AS is better like that Dec 23 13:36:58 mmm ... I just use intelliJ and would have to follow the insts here https://www.jetbrains.com/idea/help/using-tfs-integration.html Dec 23 13:40:14 yeah but that tutorial has the prerequisite 'The TFS Integration plugin is enabled.' Dec 23 13:40:19 and that's what i'm struggling with Dec 23 13:42:10 And you clicked to insts: 'enable the plugin' ? (sorry if isn't helpful) Dec 23 13:58:13 is there a way to limit the ripple effect border on lollipop? Dec 23 14:00:18 Is there any libs for drawing markers on GoogleMap object that's not as slow as the native one ? Dec 23 14:00:45 There used to be one but no longer developed. Dec 23 14:01:09 Yet drawing more than 200 custom markets on your avg device still takes forever Dec 23 14:05:42 neredsenvy: how about just creating those who are in the current view (exceprt that is currently in focus) first and creating all the others in the background in an outward "wave" from the center? That does not necessarily require an entire library but just a bit of custom coding Dec 23 14:06:27 What happens when theres 300~ of them on the current focus Dec 23 14:09:59 dispatch them asynch / cancellable from the closes one outwards? Dec 23 14:11:01 neredsenvy: Not desirable from a user perspective but if necessary -> async task adding them from the center of the focus outwards Dec 23 14:11:14 ninjad Dec 23 14:11:30 Hello guys, I've almost finished my app to launch it on the Play store. I just have one little problem, I make use of ActionBar from AppCompat support library and the problem is that on Android 4.3 device there's no shadow beneath the actionbar, which there is for pre <4.3 versions. Dec 23 14:13:22 It's a small detail, but it bothers me. I also don't like to solve it with hackish code. So, I hope someone has a good tip for me. Dec 23 14:15:01 Number5: I think it is a change known even before the ActionBarCompat was added to the support lib. It is an 4.3 Internal bug -> https://code.google.com/p/android/issues/detail?id=58280 Dec 23 14:16:01 karlsve, really? Alrighty, well than some people gotta live with it :) Dec 23 14:17:17 Number5: Well as the IssueTracker says ;) Dec 23 14:17:55 karlsve, I hold you responsible for it! Dec 23 14:18:06 karlsve, just joking, thnx my friend :) Dec 23 14:20:48 Number5: If someone asks you if you could fix it just refer to that issue. But I think someone said they had a workaround right about here: http://stackoverflow.com/questions/17945785/what-happened-to-windowcontentoverlay-in-android-api-18/18093909#18093909 Dec 23 14:21:44 karlsve, I'm just adding this code to test out hahaah Dec 23 14:21:55 thnx Dec 23 14:23:08 MY app currently tries to make a call. I use lastest Android Studio. How could I pretend that the call was answered? I've read something about being possible with DDMS but I can't find something related to that in the IDE interface, and the android site seems to be outdated, talking about perspectives (which I believe were from the Eclipse) Dec 23 14:23:49 I just want the app to think the call was answered a couple seconds after dialing Dec 23 14:26:03 realtime: Do you need a specific response object to be usable after that? otherwise for testing purposes work around it? Dec 23 14:28:06 hmmm not sure I understand you (new to android AND bad english), but I just need it to stop dialing and be 'connected', as if someone answered. I just need to know it happened (but I can't call real phones every time I want to debug, because telecom charges me) Dec 23 14:28:27 karlsve, YES! It works, it's an ideal workaround, because there's no custom view or style to add or something ugly. :P Dec 23 14:29:31 realtime, haven't you checked for some tools Google Android may provide? Dec 23 14:30:10 Number5: happy to have entered the right bits of requests into google :D Dec 23 14:30:11 Number5, no, what tools? Dec 23 14:32:07 Hi all Dec 23 14:32:27 realtime: ddms is one of them. But thats a tough question to google :D phone refers to android phone and call refers to function call -.- Dec 23 14:32:28 realtime, a tool to test phone calls? Just search for it... Dec 23 14:32:49 Like there is a tool to create a logo with the right sizes etc. Dec 23 14:33:23 I have a problem with ColorFilter. http://tinypic.com/r/6gfymh/8 See the ListViewItem with number 4. The bike icon is white, and in my adapter I set a gray color filter. But i'm using the same image above the listview with a white colorfilter. How can I fix this. It must be all gray in the listview and white in the imageview above the listview, using the samen drawable Dec 23 14:33:42 er, actually, I just realized it seems that when the emulator makes a call, it is immediatly answered Dec 23 14:34:02 realtime: haha nice you figured it out :D Dec 23 14:34:30 my bad :) Dec 23 14:34:43 FrancescoV, nice UI design, good work :) Dec 23 14:34:55 realtime: I think most ppl didnt know it either Dec 23 14:35:22 Number5: thanks Dec 23 14:35:47 Hope it will be big hit :) Dec 23 14:36:47 Ok have a nice day guys! karlsve once again, thank you for your help :) Dec 23 14:43:41 * onr pifons pifon1 Dec 23 14:47:58 FrancescoV: Did you fix it by now? Dec 23 14:49:15 karlsve: no Dec 23 14:51:28 FrancescoV: you seem to have 2 layouts for your listview items. So just fix that listview item layout to display it correctly? Thats how I would approach it but I dont know if thats applicable with your current setup Dec 23 14:53:34 karlsve: I have one layout for listview item. But above the listview, there is an ImageView which uses the same drawable (R.drawable.walk). On the ImageView above, I use Color.WHITE for the ColorFilter. But in my ListView items I use gray, using the same drawable. Which is a problem --> list view items are white before scrolling. Dec 23 14:54:07 I thinks the setColorFilter sets a filter on the drawable but this is like a problem here because I need 1 to be white and all the others to be gray (listview items) Dec 23 14:59:06 quick question, im using play services for location updates, but it seems rather slow in background Dec 23 14:59:10 do I need to make a special service to get location updates in backgrond more frequently or is this a setting issue somewhere? Dec 23 15:00:09 Gleb: maybe your minDistance to get a new location is too high Dec 23 15:00:49 G1eb, what's your precision setting in FusedProvider? Dec 23 15:01:15 did you set it PRIORITY_HIGH_ACCURACY ? Dec 23 15:01:29 and setInterval? Dec 23 15:02:06 ehm, let me check Dec 23 15:02:43 FrancescoV: Hmm don't really know. Haven't been doing much in that regard :D Dec 23 15:03:30 FrancescoV, when I have my screen on it seems to work much better and I dont know of any minDistance setting =/ Dec 23 15:03:38 Mavrik, basically I followed this guide here http://developer.android.com/training/location/receive-location-updates.html Dec 23 15:03:47 and there is no FuxedProvider that i know of Dec 23 15:04:04 G1eb, and you missed the whole "Set up a location request" part? :P Dec 23 15:04:33 that's where you set the parameters for updates you require Dec 23 15:04:50 of course, the more accuracy you need, the more battery your app will kill and more the users will hate you ;) Dec 23 15:05:06 Mavrik, apparantly yes i missed it... reading now :D Dec 23 15:05:46 also note that actual update interval is up to the device firmware and its location, your settings just tell Android what you'd like :) Dec 23 15:06:45 checked it, and I had these settings same as default on that page Dec 23 15:07:16 So my feeling is that when i turn screen off the update interval goes up Dec 23 15:07:53 At any rate, I don't see why I would need a separate background update service if this should work already just fine Dec 23 15:12:24 any idea why shared preferences would not be filled after a reboot when they've been filled before a reboot? Dec 23 15:12:28 G1eb: usually during screen on time the firmware of the device updates far more frequently and uses more sensors than during sleep Dec 23 15:13:33 Syzygy__: any specific device? Dec 23 15:13:51 karlsve yeah it makes sense Dec 23 15:14:23 both on the nexus 6 and the LG something (some phone from the stone ages) it seems to happen to all devices so far Dec 23 15:14:49 G1eb, those settings request update once per 10 seconds Dec 23 15:15:00 Syzygy__: Android version? Dec 23 15:15:00 "by default" Dec 23 15:15:29 5.0.1 and 4.0.3 i think Dec 23 15:15:37 presumably in between as well Dec 23 15:15:49 Syzygy__: so its not just one version thats quite weird Dec 23 15:16:22 yes Dec 23 15:16:41 Syzygy__: not just emulators tho or are they? Dec 23 15:16:44 Syzygy__, hmm, is that in dev or production mode? Dec 23 15:16:53 no, both are physical phones Dec 23 15:16:55 e.g. is your app data being wiped after restart? Dec 23 15:17:24 Mavrik, right now it's dev, let me download a production version and test it Dec 23 15:17:39 but I believe I haven't set it to wipe my data Dec 23 15:17:57 Mavrik, yea I've set it lower now, already seeing improvement, going to test outside now :) Dec 23 15:18:14 G1eb: have fun on that walk :D Dec 23 15:18:51 karlsve thanks :D Dec 23 15:20:51 I guess I'll have to wait a bit to see the result in the production version Dec 23 15:35:07 is there a way I can log all shared preferences access even if i don't know how the file is called Dec 23 15:42:52 Mavrik, turns out it works in production... weird. Where can I change the setting for development versions so that my user data won't be wiped? Dec 23 15:43:55 launch settings. Dec 23 15:45:05 of what? I only recall that being the case for an emulator, I'm running this on phones though Dec 23 15:50:49 Hey guys, how do you handle chained null checks? Seems the standard solution is really unwieldly. Dec 23 15:52:20 Syzygy__, are you constantly reinstalling app / chaing certs? Dec 23 15:52:56 RedWraith, usually the question is more "how do I avoid writing code that requires those null checks." Dec 23 15:53:08 Mavrik, I'm reinstalling the app fairly often, but not when restarting the phone. Dec 23 15:53:19 Mavrik, my backend was made by...crazy people. Dec 23 15:53:38 I could use a reactive framework, but it *feels* just as messy. Dec 23 15:53:39 RedWraith: The Null Object pattern is sometimes nice. Dec 23 15:53:41 ehehe :) Dec 23 15:54:03 RedWraith, yeah, do what JSON frameworks do - they have a "Null" object that can still handle method calls Dec 23 15:54:10 so you can chain that without losing your sanity :) Dec 23 15:54:26 I see Dec 23 15:54:27 that could work Dec 23 15:54:36 thanks Dec 23 15:54:54 RedWraith, also the pattern of "optSomething" from Android JSON framework is interesting Dec 23 15:55:15 that is - getItem(default) where a call returns a default value if the underlying value is null Dec 23 15:55:23 (sorry, not optSomething, getSomething) Dec 23 15:55:41 I see Dec 23 15:55:45 cool Dec 23 15:57:29 When I run apps in the Android emulator, the fonts look horrible: thin and not smooth. I've tried all kinds of settings. Is there some simple way around this? Dec 23 15:57:52 I was kinda hoping to use the emulator to take screenshots for Google Play (since I don't have a 5.0 device). Dec 23 16:01:32 TacticalJoke, set the same resolution as your device would have and use the Android Studio screenshot tool Dec 23 16:01:42 make sure your DPI settings are fine. Dec 23 16:10:13 Hmm, settings seem fine. Dec 23 16:10:30 BTW, I wonder why says "Do not use graphics created here in your 1024x500 feature image or screenshots for your Google Play app listing". Dec 23 16:10:46 I thought that tool was all about generating app-listing screenshots. Dec 23 16:11:36 Oh, it's this: "Device imagery is tempting, but becomes dated fast, and may be inappropriate if your user’s device looks entirely different." Dec 23 16:11:39 http://android-developers.blogspot.co.uk/2011/10/android-market-featured-image.html Dec 23 16:13:08 Do you folks use emulator screenshots for Google Play app screenshots? Dec 23 16:14:54 depends on how lazy am I Dec 23 16:18:29 I really, really don't get this Dec 23 16:18:59 how can 136/1000 calculated into a double become 0.0? Dec 23 16:19:08 it's not calculated into a double Dec 23 16:19:15 it's calculated into an int, that you then convert to double Dec 23 16:19:21 Ah Dec 23 16:19:53 yep Dec 23 16:19:57 do 136/1000.0 Dec 23 16:20:25 Okay, thanks Dec 23 16:21:06 TacticalJoke, I don't, I generally don't use emulator at all Dec 23 16:22:03 emulator probably looks "horrible" because you're looking at it at 90dpi Dec 23 16:22:05 instead of 300dpi Dec 23 16:31:19 pfn, can't you emulate device resolution? and then it's usually huge on your screen because of that Dec 23 16:31:28 you can scale it down Dec 23 16:31:44 I guess, but it should be fine for screenshots Dec 23 16:31:45 it'll never be "device resolution" Dec 23 16:31:51 for screenshots Dec 23 16:31:57 alright Dec 23 16:31:59 it should be the same whether you took it from device or emulator Dec 23 16:32:00 pixels are pixels Dec 23 16:32:27 Syzygy__, the emulator always renders frames at set resolution Dec 23 16:32:32 and then the actual display window is scaled Dec 23 16:32:35 thought it might take the screenshot before scaling is applied or something Dec 23 16:32:45 if you use the adb screenshot tool from AS you get the emulator full resolution screenshot Dec 23 16:32:53 ah, so it should work Dec 23 16:32:56 yes. Dec 23 16:33:07 So screenshots should look good regardless of what I'm seeing? Dec 23 16:33:13 TacticalJoke, they will look the same Dec 23 16:33:19 (I ask because I'm using Eclipse and the screenshot tool isn't working with the emulator.) Dec 23 16:33:22 I don't know what you're seeing, but ok Dec 23 16:34:01 TacticalJoke, guess you could just try it, but since you can't get the tool working... Dec 23 16:34:25 my god, get rid of that shitty IDE already Dec 23 16:34:35 ^ Dec 23 16:34:38 Better than Android Studio right now for my purposes. Dec 23 16:34:49 you're constantly running unit tests? Dec 23 16:34:52 Yep. Dec 23 16:34:54 ok Dec 23 16:35:10 intellij is still better than android studio and eclipse Dec 23 16:35:11 * pfn shrugs Dec 23 16:35:21 I started to code a project with AIDE on my phone... Dec 23 16:35:36 not sure if it's bad or bearable yet. Dec 23 16:35:44 Have you guys ever taken a screenshot of the emulator that looked good (as good as a device)? Dec 23 16:35:44 * pfn can't imagine bearable Dec 23 16:35:48 In terms of text and so on. Dec 23 16:35:52 TacticalJoke, pixels are pixels Dec 23 16:36:02 and the text doesn't look bad, what are you talking about Dec 23 16:36:14 pfn, the 6" screen makes it kind of bearable, but code completion could be better Dec 23 16:36:18 The text looks awful here. Dec 23 16:36:22 but it doesn't Dec 23 16:36:39 Think Linux from 1990. Dec 23 16:36:41 That's how the text looks. Dec 23 16:36:43 and some things are displayed as wrong even when they shouldn't be. Dec 23 16:36:46 I don't believe you Dec 23 16:37:05 and no one ran x11 in 1990 Dec 23 16:37:10 so it was just a simple console font Dec 23 16:37:11 You think I'm mistaken or lying? Dec 23 16:37:27 pics or it didn't happen Dec 23 16:48:59 how the hell do you make a simple flashlight app.. my god.. ive tried every single example on the internet.. none work Dec 23 16:49:03 !!!!!!!1 Dec 23 16:49:09 Where are you getting stuck? Dec 23 16:49:27 it just keeps tellin me it cant connect to camera service Dec 23 16:49:30 in the log Dec 23 16:49:46 im using the simple Camera cm = camera.open Dec 23 16:49:54 with the parameters and stuff Dec 23 16:50:07 bynarie: sounds like you forgot to release the camera once, so now its locked in an open state.. uninstall your app or reboot your device Dec 23 16:50:24 ok ill try it Dec 23 16:51:51 ok... i dont get an error, but the led doesnt light up Dec 23 16:56:01 bynarie: Maybe post everything on . Dec 23 16:58:22 http://pastebin.com/H92ZbChq Dec 23 16:58:32 mainactivity and manifest Dec 23 17:04:52 how do I align a radio button to the right inside its parent? Dec 23 17:05:04 well I have 2 radio buttons in a group, I want one left and one right Dec 23 17:06:05 a radiogroup is basically a linearlayout Dec 23 17:06:10 treat it like one Dec 23 17:07:08 bynarie: Do you get an exception if you remove that "try { ... } catch (Exception e) { // do nothing }" thing? By the way, you should never, ever, ever have code like that. Dec 23 17:10:05 sorry i left last night, any input on actionbardrawertoggle stuff? Dec 23 17:13:32 bynarie: In some cases, it might be sensible to silently swallow specific exceptions (though it's often a good idea to document that). But swallowing java.lang.Exception is a terrible idea. Dec 23 17:14:19 crap i lost my connection Dec 23 17:17:09 bynarie: Try removing the two "try { ... } catch (Exception e) { }" things and see whether an exception is thrown somewhere. Dec 23 17:17:19 TacticalJoke: If you have a custom handler to at least process that information and provide it to those responsible for fixing (eg yourself) its really not that bad. Best case is no exceptions happen and the app runs without problems worst case -> an exception gets thrown and the currently requested operation does not continue. Otherwise worst case -> app crashes on unexpected error and you dont get to know why Dec 23 17:18:03 bynarie: at least log the stacktrace so that you can see if something happens ;) Dec 23 17:18:33 karlsve: A custom handler can be good. I'm talking about silently swallowing java.lang.Exception. Dec 23 17:20:19 TacticalJoke: Yeah that's never a good thing :D Sorry about that ;) Dec 23 17:20:33 S'okay. :) Dec 23 17:23:55 TacticalJoke: A custom error handler is what i start off with on most programming projects (unless there are good libs to do that) Dec 23 17:24:00 google year in photos is neat, but doesn't seem to have the whole year Dec 23 17:24:07 it basically got photos from my 2 vacations... Dec 23 17:24:44 afternoon guys, i've just upgraded Android Studio from the beta (fresh install) - imported my project, all seemed fine, set a build running and went to drop the girlfriend off at work. Just come back and it took 50 mins! Fixed a couple of errors it threw up and it looks like it's going to take a similar amount of time Dec 23 17:25:09 it's not a particularly complicated project... is this justa first-build thing or am I doomed to hour-long builds? Dec 23 17:26:02 sounds wrong :/ Dec 23 17:27:30 gsteinert: Should usually not take that long :D Running on something like a calculator? Dec 23 17:29:59 karlsve: a little more powerful than that :P just found the grade console, lets see which steps are the problem Dec 23 17:30:33 just seen 'Configuration on demand is an incubating feature.' - the Gradle docs say that 'The configuration on demand feature is incubating so not every build is guaranteed to work correctly. ' Dec 23 17:30:42 Something worth worrying about? Dec 23 17:34:25 gsteinert: Don'T really know about that never had that issue Dec 23 17:34:44 dammit! i bet I know the problem... I'm working over a samba share, I bet it's struggling working over the network Dec 23 17:34:58 that might be an issue Dec 23 17:36:18 i really should learn not to change more than one thing at once! Dec 23 17:37:06 haha Dec 23 17:38:06 I figured out how to make the drawertoggle go back, instead of up, and how to change to and from an arrow, but not animated, and only if i tap it, not if i press back Dec 23 17:38:16 and ideas how to trigger the animation? Dec 23 17:40:53 i made the same mistake the other day with my internet access. had an upgrade from virgin and decided to eliminate a redundant wireless router at the same time. couldn't understand why the wireless kept dropping out every few minutes. tried everything i could think of and in the end called virgin out. turned out that the superhub doesnt like the wireless card I have in my PC. When I was testing I unplugged everything except my laptop which I Dec 23 17:40:53 connected by wireless as it has no ethernet port. Forogt the my computer upstairs was quite happily connecting, breaking the connection, then trying to reconnect again! Dec 23 17:41:20 Now I know why I kept that old wireless router in the network! The superhub has to stay in modem mode if I want any chance of getting my PC online! Dec 23 17:55:36 hi Dec 23 17:55:59 is it ok to set a TextView's editable field to true if I want to allow the user to input stuff? Dec 23 17:56:21 ChrisUK: use a EditText Dec 23 17:56:30 hi ! is there any way to display an svg with android >4 ? Dec 23 17:56:41 (google gave me some lib, i'm wondering if it's mandatory) Dec 23 17:57:26 blusky: use something like http://fontastic.me to drag and drop your svg into the site and export a font with a UTF char sequence Dec 23 17:57:31 they generate the right one Dec 23 17:57:44 then you can use an TextView to display it Dec 23 17:57:57 Hi! could I specify a context menu for every textfield in an activity? Dec 23 17:58:02 it's kind of ankward, i built a webservice to generate svg Dec 23 17:58:13 ok thanks napalm. Dec 23 17:58:22 aranax: yes, but you dont need to Dec 23 17:58:40 Napalm, what is the best approach? Dec 23 17:59:24 aranax: http://developer.android.com/reference/android/app/Activity.html#onCreateContextMenu%28android.view.ContextMenu,%20android.view.View,%20android.view.ContextMenu.ContextMenuInfo%29 Dec 23 17:59:31 thx Dec 23 17:59:40 checking... Dec 23 18:00:15 aranax: override that method in your activity, use v.getId() == R.id.yourEditText then inflate your menu into the ContextMenu passed in Dec 23 18:01:01 aranax: you'll also want to call http://developer.android.com/reference/android/app/Activity.html#registerForContextMenu%28android.view.View%29 in your onCreate or someplace before Dec 23 18:01:44 Napalm: do you know which heading edit text is under in the Palette? Dec 23 18:02:24 ChrisUK: No because nobody uses the visual editor Dec 23 18:02:29 I had a question related to RecyclerView.ViewHolder: how should I safely run a query in a ViewHolder? Dec 23 18:02:34 ChrisUK: it's easier to just write the xml by hand Dec 23 18:02:43 ChrisUK: this isnt crazy iOS Dec 23 18:04:04 avinashrbhat: shouldn't your queries be run before putting it into a view, then you put the data into the viewholder? Dec 23 18:05:36 gman23, I am storing the email of users in the database, when the app is loaded, I need to find the user's thumbnail from the contact database, so I need to run this inside the ViewHolder. Dec 23 18:06:23 gman23, makes sense? Dec 23 18:07:10 Mh, for some reason the android on-screen buttons are covering my scrollview. Is there an easy way around this? Dec 23 18:07:24 I'm not sure I've ever used the "palette". Dec 23 18:07:28 Didn't even know it was called that. Dec 23 18:07:29 i thought they were more like a fixed operating system thing and cannot cover other views Dec 23 18:08:16 * pfn looks for other cool louis vuitton things Dec 23 18:08:26 It's funny: I was reading a thread earlier about DPIs and devices, and someone made a Reddit post talking about rooting their device and changing the DPI. Dec 23 18:08:42 And they said something like "This is useful for Reddit clients; it makes the content easier to read". Dec 23 18:09:38 Yeah, because almost every Reddit client wastes space ridiculously. Dec 23 18:09:47 RedReader is the only one I can think of that doesn't. Dec 23 18:10:13 That's funny Dec 23 18:10:19 I've thought the same thing about reddit clients Dec 23 18:10:31 "wtf look at all this shit" Dec 23 18:10:58 apparently I don't use reddit enough to give a shit Dec 23 18:11:01 There's so much to present on screen. I can't believe so many clients show enormous buttons and waste people's space (and time). Dec 23 18:11:38 you don't need to use reddit a lot to see that the interface on an app sucks Dec 23 18:11:48 On almost every existing app, yeah. Dec 23 18:11:55 It's possible to make one that doesn't suck. Dec 23 18:12:11 I'd recommend RedReader, but it doesn't even support basic stuff like "Load more comments". Dec 23 18:12:59 well, now that you have 12" phones, that't not an issue right? :P Dec 23 18:13:04 :D Dec 23 18:13:22 Now the issue is tendonitis, I gues. Dec 23 18:13:24 guess* Dec 23 18:14:05 Or the whole "looking stupid taking photos with a huge rectangle" thing. Dec 23 18:15:08 i used to change my dpi on my S3, but my N5 and N6 have been great :) Dec 23 18:15:10 We need resizable screens already. Dec 23 18:15:46 TacticalJoke, have you much experience with the navigation drawer? Dec 23 18:15:56 Nah. Almost none. Dec 23 18:16:01 To be honest, I don't like it much. Dec 23 18:16:12 I have experience as a user but not as a developer. Dec 23 18:16:15 damn Dec 23 18:16:28 im trying to figure out a thing with the toggle Dec 23 18:16:51 Does that relate to the top-left icon animating when it shows? Dec 23 18:17:37 yup, specifically how to trigger it when i add another fragment to the backstack Dec 23 18:17:39 It might be worth asking again in case someone new is here now. Or, if that doesn't work, you could try https://androiddev.reddit.com/ . Dec 23 18:18:44 every user likes something different, apparently Dec 23 18:18:47 I like the nav drawer Dec 23 18:19:13 I should link to https://www.reddit.com/r/androiddev. The other one ends up using HTTP (not HTTPS). Dec 23 18:25:23 me too Dec 23 18:25:48 pfn, you dont have any ideas on triggering that animation do you? Dec 23 18:25:53 avinashrbhat, I'm still learning android so I apologize in advance if I'm mistaken, but wouldn't you make that query before setting the ImageView to the contact's image? Dec 23 18:25:59 what about it Dec 23 18:26:10 read the docs for actionbardrawertoggle and implement it as documented Dec 23 18:27:37 gman23, Sorry, I didn't understand your question. Dec 23 18:27:49 gman23, can you rephrase? Dec 23 18:28:33 ugh, /r/androiddev is awful :) Dec 23 18:30:31 dear all , i have this addNotification code http://pastebin.com/hjWy6Fc8 , when user tuch the Notification it open the app. i dont want this to be happend ,. just a Notification without tuch RESPONSE Dec 23 18:30:38 hi there, any sync adapter experts in here? Dec 23 18:30:42 please advice Dec 23 18:30:55 avinashrbhat, actually, I don't think I can really help. Dec 23 18:30:56 pfn, im assuming you mean this doc? https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.html Dec 23 18:30:58 Sorry Dec 23 18:31:06 I'm wondering about how much work a sync adapter should ideally perform Dec 23 18:31:13 that doesn't really say anything about it? Dec 23 18:31:21 gman23, NP. :_) Dec 23 18:32:24 i want to make the animation happen when i add a fragment to the backstack, rather than when the drawer opens Dec 23 18:32:44 in fact, I'd like to disable it for when the drawer opens Dec 23 18:33:17 drinfernoo, the documentation should give you an idea of how to do that, read again until your head absorbs it Dec 23 18:34:22 and if you still can't figure it out, based on reading that documentation, answer 1 question: how does the drawer trigger the animation Dec 23 18:34:34 do the same for whatever you're doing, done, profit Dec 23 18:34:45 avinashrbhat, are you using Rx or just plain old java stuff? Dec 23 18:34:55 for the thumbnails in holder? Dec 23 18:35:07 Mavrik, RxAndroid Dec 23 18:35:18 avinashrbhat, I store the subscription in the holder Dec 23 18:35:33 and when I have to re-bind it, I cancel the thumbnail load subscription and start a new one Dec 23 18:36:17 im trying to figure that out lol Dec 23 18:39:35 what's to figure out, the documentation is quite clear where it hooks Dec 23 18:40:21 Mavrik, here is what i'm doing https://paste.ee/p/RMji7 Dec 23 18:40:55 are there any good resources on dual-booting an android device? I'd like to put a rom on a different partition. would that be possible? Dec 23 18:41:05 avinashrbhat, in the bindView() right? Dec 23 18:41:13 HamDog, not here Dec 23 18:41:16 #android-root Dec 23 18:41:18 sorry, this may be the wrong channel Dec 23 18:41:21 thank you Dec 23 18:41:38 multi-booting would be handy, though, I'd like to boot 4.0-5.0 for development, or whatever the range of firmwares available for a given nexus device is Dec 23 18:41:40 Mavrik,ya in onBindViewHolder Dec 23 18:41:40 Hi, ever since Lollipop some of my code is not working correctly. I'm trying to read the input from a HttpURLConnection with BufferedInputStream but it's not giving me all of the bytes: https://github.com/MatthewLM/peercoinj/blob/master/core/src/main/java/com/matthewmitchell/peercoinj/store/ValidHashStore.java#L172 Dec 23 18:42:07 avinashrbhat, yeah, .subscribe() returns a Subscription Dec 23 18:42:14 avinashrbhat, which represents that operation Dec 23 18:42:23 ok, like a token, got it. Dec 23 18:42:27 avinashrbhat, cache that in the holder and call .unsubscribe() on it when you have to rebind it Dec 23 18:42:36 so you cancel the old retrieval before running a new one Dec 23 18:42:56 otherwise it looks good :) Dec 23 18:43:13 Mavrik, so the ViewHolders are also reused in the RecyclerView? Dec 23 18:43:22 yes Dec 23 18:43:26 ViewHolder is bound to the View Dec 23 18:43:36 Mavrik, that's awesome! Dec 23 18:43:42 it's the same as old pattern of calling "setTag" for viewholder Dec 23 18:44:11 oh! ok, TBH, Mavrik I haven't used that before. :-) Dec 23 18:46:26 Matt_von_Mises: That code just looks fundamentally wrong. Dec 23 18:46:37 You're requiring that it read 16 bytes at a time? And creating a new byte array each time? Dec 23 18:47:27 InputStream.read returns the number of bytes read, which could be various numbers other than 16 here. Dec 23 18:49:12 anything up to 16 Dec 23 18:50:29 Mavrik, like this https://paste.ee/p/jnbtq right? Dec 23 18:50:49 if you use dp for measurement should your layout look the same regardless of screen resolution? Dec 23 18:50:49 yep Dec 23 18:51:11 Matt_von_Mises: This is the kind of thing you should be doing: http://stackoverflow.com/a/1264737 Dec 23 18:51:12 Hey:) Dec 23 18:51:14 ChrisUK, not really Dec 23 18:51:26 ChrisUK, since devices can have more space dp-wise Dec 23 18:51:34 how would one go about piping cmds to console and getting the output? Dec 23 18:51:36 TacticalJoke: The read method should read the length of the byte array. Dec 23 18:51:39 what class would i use Dec 23 18:52:11 e.g. a phone will typically have 640x360dp screen, a tablet 960x540, etc. Dec 23 18:52:24 Matt_von_Mises: You're dealing with networks. It could read any number of bytes in one go. Dec 23 18:52:27 It might return five bytes. Dec 23 18:52:31 ChrisUK, you'll have to leave some "stretch" space in your layout for those cases Dec 23 18:52:35 Mavrik, 600dp rather than 540dp Dec 23 18:52:44 Mavrik, thx a bunch. Dec 23 18:53:10 pfn, hmm, isn't it 1920x1080 at 2.0 density? or did I forget -_- Dec 23 18:53:30 Mavrik, 7" tablets are typically min-sw600dp Dec 23 18:53:52 notable exception being some stupid kindles Dec 23 18:53:54 http://vimeo.com/111414803 < so cool Dec 23 18:53:54 Matt_von_Mises: You need to read the documentation. Dec 23 18:54:05 ah Dec 23 18:54:08 fuck kindles Dec 23 18:54:43 * pfn publishes a new plugin with retrolambda support Dec 23 18:55:06 TacticalJoke: So the method may read less than 16 bytes without blocking for all 16 bytes is that what you are saying? Dec 23 18:55:07 hello i am new to android development , i started with the training section on developer.android.com , the res/layout contains main.xml instead of activity_my.xml mentioned in the tutorial , Dec 23 18:55:24 Matt_von_Mises: Yes. Dec 23 18:55:38 does it make a difference ? because upon making changes and compiling i dont see the changes reflected in the app Dec 23 18:55:42 TacticalJoke: I got you. Thanks. I think I know what needs to be done now. Dec 23 18:57:10 Such low-level reading is much more tedious than high-level stuff (such as BufferedReader.readLine). I can't remember whether Java has some nicer interface for reading blocks of bytes (though I suspect not). Dec 23 18:57:38 I really need to bump my plugin version to 1.4 Dec 23 18:58:27 ok thanks Dec 23 18:58:48 quantum-mechanic: its just a file, you point to that file with setContentView, Dec 23 18:58:54 Matt_von_Mises: Don't forget to stop recreating that array. No need whatsoever. Dec 23 18:59:04 The array should be created once. Dec 23 18:59:12 lasserix: okay .. Dec 23 18:59:20 im not using the android-studio Dec 23 18:59:30 there is your first mistake Dec 23 18:59:36 well clean the project Dec 23 18:59:38 and try again Dec 23 18:59:46 is it not possible to do without android-studio ? Dec 23 18:59:56 dear all , i have this addNotification code http://pastebin.com/hjWy6Fc8 , when user tuch the Notification it open the app. i dont want this to be happend ,. just a Notification without tuch RESPONSE Dec 23 19:00:29 you should be using AS since it's the standard now, espicially if you are starting out. Dec 23 19:00:38 anyways trying cleaning your project Dec 23 19:00:53 eclipse is notorious for needing to clean the project after you making changes to xml files in android projects Dec 23 19:01:08 okay ill try with AS then ... Dec 23 19:01:13 im not using eclipse either Dec 23 19:01:45 im editing files in vim Dec 23 19:01:46 it shouldn't matter but if you are using eclipse (which you just said you were) trying Project -> Clean Dec 23 19:01:50 oh Dec 23 19:02:04 are you using an ide at all? Dec 23 19:02:07 no Dec 23 19:02:09 no IDE Dec 23 19:02:13 quantum-mechanic: That should be an Insanity Wolf meme. Dec 23 19:02:21 Writes an Android app. No IDE. Dec 23 19:02:24 my bad Dec 23 19:02:42 umm i am not sure but i imagine there is some command you run to refresh the project linkages Dec 23 19:02:46 well i just prefer not to ... but may be i should atleast initially while learning then Dec 23 19:02:47 Success Kid: Starts using IDE. Profits. Dec 23 19:02:53 Yeah, you should. Dec 23 19:03:22 ant debug compiles my application Dec 23 19:03:30 for debuging Dec 23 19:03:33 Why endure the pain? Dec 23 19:03:39 IDEs make your life easier. Dec 23 19:03:41 I am trying to setText() on EditText, even though the value is correct, It just silently fails to set the text. Dec 23 19:04:05 some people still think cmdline makes em hackers, or purists Dec 23 19:04:09 quantum-mechanic: you can do all that in AS... but for starting off i'd recomend you DO use an IDE so you can at least get a sense of your project structure and beable to follow tutorials online Dec 23 19:04:29 gr0k: What are you passing to EditText.setText? Dec 23 19:04:34 okay thanks lasserix .. ill do that then Dec 23 19:04:48 whatitis: im not a hacker or a purist Dec 23 19:05:06 quantum-mechanic: there are some people who do from cli (occasionally they hang out in ehre too) Dec 23 19:05:25 i see .. i think its better i learn initially with android studio Dec 23 19:05:33 TacticalJoke: string value, even tried with BufferType.EDITABLE as second parameter Dec 23 19:05:45 yeah it'll much easier to follow tutorialsget help while you are learning the ropes Dec 23 19:06:13 gr0k do you have something watching the edittext value? Dec 23 19:06:14 http://imgur.com/a/MtQZv#5 - Dalvik Executable file format graphic - niceeee! Dec 23 19:06:19 like an input validator or something? Dec 23 19:06:46 gr0k: Are you sure the String isn't null? Dec 23 19:06:51 i wish android studio had a vim mode or something Dec 23 19:07:00 im really used to the vim keybindings Dec 23 19:07:06 Isn't there an IntelliJ plugin for vim? Dec 23 19:07:10 quantum-mechanic: AS is based on intellij idea which DOES have plugin for vim Dec 23 19:07:21 see ides are awesome ;p Dec 23 19:07:23 oh okay ... ill look it up then Dec 23 19:07:27 ideavim should be available for android studio Dec 23 19:07:53 Napalm: how did you find this mysterial signal video? Dec 23 19:08:00 im still waiting for the punchline Dec 23 19:08:28 lasserix: No. Dec 23 19:08:37 Napalm: or i guessi mean why did you find this? ;p Dec 23 19:08:52 I've tried IdeaVim for Android studio. It works, though I noticed it doesn't show if a file has unwritten changes. Dec 23 19:08:55 TacticalJoke: It isn't null. Dec 23 19:08:58 are you sure it's the valid reference to the edit text? Dec 23 19:09:04 damn, thought that was a girl at first Dec 23 19:09:07 can you set the hint? Dec 23 19:09:12 pfn it is? Dec 23 19:09:20 lasserix: some random internet link is all, but I really like that kind stuff Dec 23 19:09:40 lasserix, I don't think so Dec 23 19:09:45 lasserix: reminds me when I had to clear up my own original basic cassette's Dec 23 19:09:48 gr0k: Hmm. It's kinda hard to help with such little info, to be honest. Dec 23 19:09:57 pfn you mean in this video? Dec 23 19:10:02 yeah Dec 23 19:10:07 it is a woman Dec 23 19:10:18 it is? sounds and looks like a man to me... Dec 23 19:10:22 Napalm: ? Dec 23 19:10:41 yeah, I pop the current fragment and setArgument() with current info and when the previous fragment creates itself, it tries to initiliaze the EditText with the arguments bundle. Dec 23 19:10:42 pfn: it is a girl Dec 23 19:10:44 oona is female name Dec 23 19:10:49 Will try to see if that sequence is the problem. Dec 23 19:10:50 ok Dec 23 19:11:08 grok ahh that would make sense it is a stale reference Dec 23 19:11:25 Napalm: http://www.windytan.com/ Dec 23 19:11:49 gr0k: Try [Log.i("gr0k", "string = " + theStringInQuestion);]. Dec 23 19:12:42 lasserix, Napalm austin powers moment Dec 23 19:13:26 ? Dec 23 19:14:28 TacticalJoke: wouldn't post here, without doing that :-) The string is valid. Dec 23 19:15:00 setTex on a TextView works but not on an EditText. Dec 23 19:16:17 lasserix, I guess you've never seen the movie Dec 23 19:16:31 i have just not sure which you are refering too Dec 23 19:16:43 "that's a man" Dec 23 19:16:46 wow if you check out her blog she's really really into signal analysis Dec 23 19:16:49 ohh yeah Dec 23 19:17:50 lasserix: http://pastebin.com/CCDUSwSX Dec 23 19:18:10 Napalm: thats really cool thanks for the img link Dec 23 19:18:13 I think thats a valid way to pass arguments between current and previous fragment Dec 23 19:18:48 how are you retrieving? Dec 23 19:19:10 lasserix: your welcome Dec 23 19:19:36 oh she hangs out on irc Dec 23 19:25:07 grox solve it? Dec 23 19:25:47 is there a standard way to stop an EditText from gaining focus and bringing up the keyboard when an activity starts? Dec 23 19:26:31 don't make your edittext editable Dec 23 19:26:49 move the focus somewhere else Dec 23 19:26:53 or forcibly hide the keyboard Dec 23 19:27:12 I want it to be editable Dec 23 19:27:30 it seems for some reason Dec 23 19:28:18 if you put this in a linear layout it stops it: android:focusable="true" Dec 23 19:28:18 android:focusableInTouchMode="true" Dec 23 19:28:29 of course, because it's focusable Dec 23 19:29:32 but future resumes won't prevent the keyboard from showing Dec 23 19:31:47 Hi everyone. I am wondering if anyone here can help me with a SQLite/ExpandableListView question. I posted on stack overflow https://stackoverflow.com/questions/27626758/sqlite-cursor-select-in-an-expandablelistview-simplecursortreeadapter-issue-with Dec 23 19:31:54 Sorry for my poor English Dec 23 19:32:59 Mainly, I am trying to fix my cursor/sql select to only be show one child item at a time Dec 23 19:36:03 ChrisUK: put something else before in the layout that has focus Dec 23 19:37:37 ChrisUK: if that fails you can try using http://pastebin.com/vJjEgBM8 Dec 23 19:37:48 how the hell do I edit/update files in drive from android Dec 23 19:38:02 on desktop, it autosync, but on android, I have no way of publishing changes except to delete, and add a new Dec 23 19:39:55 I'm about to try to set up wireless adb. I wonder what my chances of success are. Dec 23 19:40:07 100 Dec 23 19:40:09 Before doing anything like this with Android, I consider that I'll be about 30% likely to succeed. Dec 23 19:40:15 minus your idiot factor ;p Dec 23 19:40:15 100%? ;o Dec 23 19:40:37 well its not idiot proof Dec 23 19:40:47 but it should work, its all of like 5 steps Dec 23 19:41:10 id rec omend changing your phone wirless settings to use static ip btw Dec 23 19:41:42 Okay. Dec 23 19:42:05 otherwise youre going to have to look up the ip everytime Dec 23 19:47:18 Wow. Dec 23 19:47:19 It works. Dec 23 19:47:26 what what! Dec 23 19:47:37 Usually doing something new on Android takes about six hours. Dec 23 19:49:22 So glad that works. Was getting worried about leaving my phone plugged in for hours every day. Dec 23 19:57:50 TacticalJoke: now we can sniff your apps from the air ;) Dec 23 19:58:25 I think only Napalm is potentially close enough to do that. Dec 23 19:58:45 TacticalJoke you in the UK? Dec 23 19:58:48 Yeah. London. Dec 23 19:58:52 heh Dec 23 20:13:33 Weird. Just earlier I was criticising RedReader for not being able to load more comments or link to specific comments. Now there's an update that fixes both. Dec 23 20:13:55 The implementation is strange, though. It opens a new page for new comments. Dec 23 20:14:01 Why not just add them to the list? Dec 23 20:15:46 no idea, TacticalJoke are you going to connect your indenting comments with lines to the parent ? Dec 23 20:16:18 and when you collapse the parent the children fold into it Dec 23 20:16:36 just like Windows Explorer folders Dec 23 20:17:11 Child comments do connect with lines to the parents right now. I'm assuming I know what you mean. Dec 23 20:17:32 What do you mean by "fold into"? The children disappear when the parent is collapsed. Dec 23 20:17:44 yeah Dec 23 20:18:03 The parent also condenses. It makes huge-comment threads easier to read. :) Dec 23 20:18:20 like in Windows Explorer when you expand a folder by hitting the tiny + sign and collapse it when it is showing - Dec 23 20:18:23 I might also give the option to simply condense a comment without collapsing it. Dec 23 20:18:29 Right. Dec 23 20:18:48 (Condensing would just show the first N lines or something.) Dec 23 20:19:05 Some comments (such as those on /r/writingprompts) are crazily long. Dec 23 20:20:29 also do they have thumbs up thumbs down for each comment ? Dec 23 20:20:43 Nah. Need to figure out some way to show that. Dec 23 20:20:53 I was thinking of showing buttons on long-click (though I know that some people here hate that). Dec 23 20:21:08 can users rate each comment and the comment can get buried if it has too many thumb downs so you have to expand it , like digg Dec 23 20:21:12 I just think that tap has to be "collapse/expand". Dec 23 20:21:53 Reddit will show those comments low in the list. Reddit.com collapses them by default but I don't really like that idea. Dec 23 20:21:58 Sometimes, the best comments have -57. lol Dec 23 20:22:32 yeah, that's true, it sucks cause you're always curious what they said anyway Dec 23 20:22:40 Yeah. Dec 23 20:22:41 and you always have to expand it Dec 23 20:22:42 It's too tempting. :D Dec 23 20:22:55 It's like telling a child "Don't touch this button". Dec 23 20:22:59 maybe make that a user choice in settings Dec 23 20:23:06 to collapse low rated comments or not Dec 23 20:23:11 Maybe. Though does anyone really want that behaviour? Dec 23 20:23:35 I realise that Reddit.com does it, but they do a lot of weird things that nobody should copy. Dec 23 20:23:47 well it would be a reflection of the website behaviour if that's how it works Dec 23 20:24:27 I would leave it off by default but give the user the option to enable it Dec 23 20:24:46 pfn, is it syncState()? i haven't been able to replicate it through any ActionBarDrawerToggle, DrawerLayout, or DrawerListener methods :/ Dec 23 20:25:46 TacticalJoke: you should have an input where you can show comments at a level, in a range, above a threshold Dec 23 20:25:55 and the listview of comments should instantly reflect those changes ;p Dec 23 20:26:15 That's a nice idea. Kinda like HN. Dec 23 20:26:28 but the easiest way to do that is just have a dialog box that when the user clicks on expand low rated comment "Always expand low-rated comments?" (dont show this again checkmark) Dec 23 20:26:46 TacticalJoke: well it would be cool and a simple way to browse comments quickly Dec 23 20:27:04 i like that idea lasserix Dec 23 20:27:14 lasserix: Do you like that reddit.com hides low-rated comments by default? Dec 23 20:27:17 I've always hated that, personally. Dec 23 20:27:43 I hated it on digg and slashdot Dec 23 20:27:53 I don't use reddit Dec 23 20:28:00 i dont hate it, but i dont mind it on mobile Dec 23 20:28:30 I didn't like being left curious about what the bad comment said Dec 23 20:28:47 and i do 99.99% of my redditing on mobile Dec 23 20:29:09 Yeah, I do most of my redditing on mobile now. Dec 23 20:29:23 Hi, I'm learning Android right now, using Android Studio. When setting the minSdkVersion, should I have it on both the Manifest and the build.gradle? Dec 23 20:29:36 TacticalJoke: what is your favourite reddit app , which one are you using ? Dec 23 20:29:40 never thought about it but yeah it is more a nuisance than anything since arbtrirarily so much is collapsed anyways Dec 23 20:29:49 shmooz: RedReader. Dec 23 20:30:02 kot09 delete it from manifest set it in build.gradle Dec 23 20:30:11 kot09, minSdk (and target, and package and some otherthings) in XML will be replaced with values from build.gradle at build time Dec 23 20:30:12 I don't think it's that good, though. It's just the least bad one I've tried so far. Dec 23 20:30:23 I do think its UI is great for Reddit. Dec 23 20:30:27 lasserix: yeah, I only have it in build.gradle Dec 23 20:30:39 i'm trying to get through this part: http://developer.android.com/training/basics/actionbar/adding-buttons.html Dec 23 20:31:03 "@drawable/ic_action_search" , "@string/action_search , showAsAction="ifRoom" aren't working Dec 23 20:31:08 for the first part Dec 23 20:31:16 when andding the search button on the action bar Dec 23 20:31:56 it can't find the drawable or the string, and it's telling me to use app:showAsAction, even though I set my minSdkVersion to 15 Dec 23 20:32:29 heh, I guess I'll try it when I can install apps from playstore eventually Dec 23 20:32:29 are you using appcompat? Dec 23 20:33:07 Mavrik: how do I check? Dec 23 20:33:11 I disabled everything to stop my tablet from auto upgrading to lollipop Dec 23 20:33:25 kot09, did you include it as dependency and are using it as a theme? Dec 23 20:33:44 in my build.gradle, i have this as dependencies Dec 23 20:34:07 http://pastebin.com/jUGqCKjM Dec 23 20:34:22 it was automatic, I think, when I first built my project. I didn't touch this part Dec 23 20:34:26 well Dec 23 20:34:32 I certanly see appcompat in there :) Dec 23 20:34:38 so yes, you have to use app: in that case Dec 23 20:34:59 what would happen if I take out appcombat Dec 23 20:35:35 you'll have to use the default theme of the OS :) Dec 23 20:35:41 nothing horrible Dec 23 20:36:07 "appcombat" is a good description of the Android SDK. Dec 23 20:37:58 Mavrik: and for the drawable and string resources, if I'm not finding it, is it because I haven't imported a library, or Android changed the name file? Dec 23 20:38:37 uh Dec 23 20:38:43 Android doesn't magically change anything Dec 23 20:38:55 do you guys like that left arrow showing up on top left corner of all these new apps to make it look like the iOS app ? Dec 23 20:39:01 if it doesn't find a resource, you managed to delete it or you didn't create it yet :P Dec 23 20:39:12 and some go back, some do nothing, some bring out a nav drawer Dec 23 20:39:13 shmooz: I prefer it to showing an icon, to be honest. Dec 23 20:39:29 I'm not gonna show an icon (whether I use ActionBar or Toolbar). Dec 23 20:39:44 Doesn't the arrow always go back? Dec 23 20:39:47 TacticalJoke: will it go back ? Dec 23 20:40:01 If it's in a sub-activity, yes. Dec 23 20:40:12 no a lot of apps, it's just there as decoration, it does nothing Dec 23 20:40:43 and on some apps like VLC it brings out a Nav drawer with options Dec 23 20:40:44 Mavrik: strange, it's just in the tutorial, it never mentioned importing an image/creating resource for the search button ;x Dec 23 20:41:19 shmooz: That's because some devs don't read the guidelines Dec 23 20:41:20 TacticalJoke, that depends on who you ask Dec 23 20:41:31 TacticalJoke, but my prefered behaviour was always that arrow should go up one level Dec 23 20:42:08 Mavirk: by the way, from what I am understanding, is appcombat used specifically to be able to support anything between Android 2.1 and Androdi 3.0? Dec 23 20:42:10 Yeah. The idea of the showing the nav drawer when an "up" arrow is clicked sounds weird. Dec 23 20:44:22 kot 3.0-<5.0 Dec 23 20:44:29 appcompat Dec 23 20:44:30 I giggle everytime I read "appcombat" Dec 23 20:44:45 mortal app combat Dec 23 20:44:46 shmooz: are you talking about the up/back button? Dec 23 20:44:59 lasserix: say that again? :P Dec 23 20:45:01 I thought only the hamburger thing should open the nav drawer. Dec 23 20:45:11 ok well the newer VLC has changed t into a hamburger button, but the old VLC is showing a left arrow just like on iOS Dec 23 20:45:29 kot09: https://chris.banes.me/2014/10/17/appcompat-v21/ Dec 23 20:46:10 When inflating anything to be displayed on the action bar (such as a SpinnerAdapter for list navigation in the action bar), make sure you use the action bar’s themed context retrieved via getSupportActionBar().getThemedContext(). Dec 23 20:46:10 You must use the static methods in MenuItemCompat for any action-related calls on a MenuItem." Dec 23 20:46:24 huh, the main scrolling view in Calendar is terribly Janky Dec 23 20:46:45 but it has a nice picture of a skier Dec 23 20:46:47 lasserix: thanks! Dec 23 20:46:50 TacticalJoke, thats why im trying to figure out my drawertoggle thing lmao Dec 23 20:46:56 What is nice about the newer VLC is that now sometimes their hamburger icon behaves like a up button. That app just have a terrible UI. Dec 23 20:47:36 vlc as in the media player app? Dec 23 20:47:44 drinfernoo: You should try asking again. Srsly. Dec 23 20:47:45 yep Dec 23 20:48:06 It's amazing how many apps have horrible and inconsistent UIs. Dec 23 20:48:13 TacticalJoke: that arrow does whtever you override android.R.id.home to do Dec 23 20:48:48 gui is for noobd Dec 23 20:48:49 If the UI is horrible and consistent, you can almost forgive it. But horribleness and inconsistency are too much. Dec 23 20:49:13 yeah I don't like the idea of having to squeeze in a hamburger or arrow there Dec 23 20:49:27 lasserix, i have that working, but im trying to get the icon to do the animation when it changes behavior Dec 23 20:49:28 I already have the icon there that chooses modes Dec 23 20:49:33 Android devs just don't care about UI/UX. That's changing slowly... Dec 23 20:51:30 i'm also seeing the opposite, apps with lots of bling but no substance Dec 23 20:51:52 renanferrari: its a lot of work to get UI consistent with fragmentation Dec 23 20:51:55 like a lot of work Dec 23 20:52:00 a lot lot lot lot lot lot Dec 23 20:52:03 of work Dec 23 20:52:30 support libraries are fine, but really the whole thing needs to be washed, and a better framework take it place Dec 23 20:52:34 ultimately it comes down to ROI - is it worth it ? Dec 23 20:52:40 If I leave adb wirelessly connected to my device, will that drain the battery much? Dec 23 20:52:41 g00s yeah and it is Dec 23 20:52:43 If I just leave it for hours. Dec 23 20:52:51 It's not a lot of work to just read the guidelines. Yet some devs don't even do that. Dec 23 20:52:51 if you can get away with something simple awesome but... Dec 23 20:53:15 the more apps with awesome gooeiness comes out the more the ones without look like sh.t Dec 23 20:53:44 TacticalJoke: hehe that's why all devices need inductive charging built in Dec 23 20:54:42 60% of my development time is UI/UX. Dec 23 20:55:29 I like to work on functionality first Dec 23 20:55:30 g00s, funny thing about the Calendar, it's janky only on pre-5.0 devices Dec 23 20:55:36 on Lollipop the scrolling works perfectly Dec 23 20:55:40 no idea what they did Dec 23 20:56:00 Mavrik interesting - yeah it stuttes so bad its practically hopping Dec 23 20:56:04 *stutters Dec 23 20:56:05 I just don't understand why some devs waste so much time tweaking their code to be "beautiful" but they just can't care less about when they should use an hamburguer icon. Dec 23 20:56:38 renanferrari the d.android.com website still has tons of holo specific material on it Dec 23 20:56:49 even google is half assed with this Dec 23 20:57:06 not to mention, use Keep, then another gapp, and they look quite different Dec 23 20:57:10 yeah the examples are pretty outdated, but look at the MD spec Dec 23 20:57:17 Calendar uses its own Preference framework or something Dec 23 20:57:25 That's not a excuse. They have http://www.google.com/design/spec/material-design/introduction.html Dec 23 20:57:27 the MD spec is platform agnostic Dec 23 20:57:38 How many of us have read that? Dec 23 20:57:41 it has no code at all, even attributes for things like spacing Dec 23 20:57:49 g00s, so? Dec 23 20:57:55 That's the wierdest argument I've seen. Dec 23 20:58:00 they should have reeleased a dimen file Dec 23 20:58:04 for all the dimensions in metrics Dec 23 20:58:06 and fonts Dec 23 20:58:10 "Google didn't prepare every element I'd ever need so now I don't know how to set margin to 16dp." Dec 23 20:58:35 Mavrik: it would be very simple for them to offer a resources bundle for material Dec 23 20:58:40 these attributes are there, like preferredListItemPadding or whatnot, you just have to spend an hour finding them Dec 23 20:58:41 I've seen that also for snackbar and FAB O.o Dec 23 20:58:47 that would make it infinitly easier to start using material spec in your app Dec 23 20:58:50 and then determine, which platforms they are availeble :) Dec 23 20:58:53 g00s, that yes, they should definetly document those attributes Dec 23 20:59:01 they should offer them as resource bundles Dec 23 20:59:01 I agree google could be a lot more clear about that specs. I really agree with that. But it should not be an excuse to don't even try. Dec 23 20:59:24 renanferrari, honestly, I've seen most of my apps update to Material design very quickly Dec 23 20:59:38 which really surprised me, I guess Google really hit a note for devs with this redesign :) Dec 23 20:59:44 Mavrik: Was switching from ActionBar to Toolbar (assuming that you did that) a pain? Dec 23 20:59:54 I'll do that soon(ish). Just curious. Dec 23 20:59:56 I updated mine really quickly too, and was also surprised by that. But that varies a lot. Dec 23 21:00:11 TacticalJoke, my apps don't do anything fancy with toolbar yet, so I didn't switch Dec 23 21:00:16 Okay. Dec 23 21:00:21 I just use appcompat-v7 and the shims are there Dec 23 21:00:42 That were components in my app where I had customized everything. Those were a pain to update. Dec 23 21:00:59 That's why now I'm leaving everything with appcompat. Dec 23 21:01:41 yeah Dec 23 21:01:43 The price I pay is that the app will look slightly different across Android versions. Dec 23 21:01:53 also, dealing with transparent navbar is pain in the arse Dec 23 21:02:03 But that's expected by the user already. Dec 23 21:03:02 users don't notice because they don't use 10 different versions of Android really :) Dec 23 21:03:11 Exactly. Dec 23 21:03:18 also even if they do, they're probably skinned beyond recognition anyway Dec 23 21:03:33 Mavrik, how so about the navbar? Dec 23 21:03:34 I think "material design" has some nice aspects, but this idea of using abundant whitespace everywhere is not good for small screens. Dec 23 21:03:44 When I started my app I wanted the list selector to look identical in every version (not grey in KitKat, blue in ICS, etc). That was a mistake. Dec 23 21:03:46 I'll use material without screen-waste. Dec 23 21:03:59 drinfernoo, there's bunch of views that act strangely with clipToPadding on Dec 23 21:04:05 it's like playing whack-a-mole :) Dec 23 21:04:12 gotcha Dec 23 21:04:48 basically you want the padding to be set to navbar size so clickable stuff never gets stuck under the navbar... but the content still has to scroll there :) Dec 23 21:04:58 When Material Design came out and I looked at my app... "I made a huge mistake" Dec 23 21:05:00 TacticalJoke: actually Dec 23 21:05:05 packing in content is a huge mistake Dec 23 21:05:08 it tired the eyes Dec 23 21:05:10 Never again. Dec 23 21:05:14 It's needed for my app, though, lasserix. Dec 23 21:05:18 yeah Dec 23 21:05:19 well Dec 23 21:05:20 And for many. Dec 23 21:05:21 IMO. Dec 23 21:05:27 even then Dec 23 21:05:32 i bet there is something better Dec 23 21:05:34 than packing in content Dec 23 21:05:46 for instance, with that horizontal scrolling idea Dec 23 21:05:50 each page could be its own comment Dec 23 21:05:54 instead of packing as many as you can Dec 23 21:06:04 Also, using light theme on most apps makes whole OS look way less depressing :P Dec 23 21:06:12 since you can fling scroll, it's not like you're slowing the user down, if anything you're making it easier to read easier to use Dec 23 21:06:18 Mavrik: hehe yeah Dec 23 21:06:37 lasserix: I notice that when I read reddit comments I look all over the place. Dec 23 21:06:46 I kinda need to know where I am in the tree and where other interesting things are in the tree. Dec 23 21:06:49 I made a light theme for mine but I think I have to make it lighter Dec 23 21:07:43 I hate light themes myself though, much prefer black or something close to black Dec 23 21:07:51 I dislike Holo Light. Dec 23 21:07:54 It's too grey. Dec 23 21:08:01 I don't mind Material Light so much; Dec 23 21:08:02 .* Dec 23 21:08:13 But, yeah, I generally prefer dark themes. Dec 23 21:08:19 Especially for screens I'm staring at for ages. Dec 23 21:08:29 TacticalJoke: imjust saying packing in content is a mistake where i worked previousily that had that philosophy and in the end i think it just hurt more than helped the UI Dec 23 21:08:34 I can't stand code editors with white backgrounds now. Dec 23 21:08:49 lasserix: Even for a reddit client, though? :) Dec 23 21:08:54 for instance, there is actual optimal column width for reading Dec 23 21:08:59 The main point of this app is to show a lot on a small screen. lol Dec 23 21:09:09 Yeah. Dec 23 21:09:16 that's what i mean that's the wrong philosophy to go from Dec 23 21:09:27 it should easier/more effective to read on a small screen Dec 23 21:09:31 not simply show Dec 23 21:09:31 it's like trying to read the voltage on a 150 watt lightbulb while it's on Dec 23 21:09:49 150 volt I mean Dec 23 21:10:03 Okay, fair point, lasserix. Dec 23 21:10:19 Though I think reddit shows so much info that you need to show a lot on one screen for the user to even stand a chance. Dec 23 21:11:06 TacticalJoke: Hey, your app is not out yet, right? Dec 23 21:11:08 lasserix: Note that the text I'm using right now is way smaller (by default) than it will be at release. So that thing you tried won't be how things will be ultimately. Dec 23 21:11:21 TacticalJoke: that's a good idea, and that will also allow you to port it to watches easier Dec 23 21:11:22 renanferrari: Right. Dec 23 21:11:38 shmooz: haha reddit on watch hehehe Dec 23 21:11:49 lol Dec 23 21:11:53 WatchIt! Dec 23 21:11:57 TacticalJoke: again, it should be about easier more effective reading / browsing expireince not about packing content Dec 23 21:12:00 Imagine how small the cat pics would be. Dec 23 21:12:12 TacticalJoke: Ah, ok. I've seen you talk about it for some days now. I just want to try it already. lol Dec 23 21:12:23 renanferrari: You can try it soon if you like. :) Dec 23 21:12:28 I'd love loads of beta/whatever testers. Dec 23 21:12:36 Count me in :) Dec 23 21:12:44 have you tried Reddit Now ? Dec 23 21:12:47 Thanks. Dec 23 21:12:55 Who, lasserix? Dec 23 21:13:25 you Dec 23 21:13:29 yes I've reddit been there done that Dec 23 21:13:34 Yeah. It's similar to reddit sync, IIRC. Dec 23 21:13:35 the two column approach on my tablet is kind of nice Dec 23 21:13:38 Similar UI. Dec 23 21:14:08 Wait, I must be thinking of another one. Dec 23 21:14:12 But, yeah, I've tried Reddit Now too. Dec 23 21:14:17 man tough Dec 23 21:14:26 so much to pack in how to do it effectively Dec 23 21:14:41 lasserix: I like that you're thinking about it. Lol. You have some nice ideas. Dec 23 21:15:03 I don't like Reddit Now's use of tabs at the top (at least on phones). Dec 23 21:15:07 Way too difficult to scroll that thing. Dec 23 21:15:46 I prefer a spinner in the action bar to tabs Dec 23 21:15:57 Yeah, I prefer that. Dec 23 21:16:02 I prefer that to a nav drawer, even. Dec 23 21:16:40 Most people seem to love nav drawers, so I might be in the minority there. Dec 23 21:16:53 TacticalJoke: oh man Dec 23 21:16:57 yeah that is content packing in fail Dec 23 21:17:07 The tabs? Dec 23 21:17:08 reddit now on phone Dec 23 21:17:12 Oh. lol Dec 23 21:17:26 wow that is really terrible Dec 23 21:17:36 I like the idea of zooming in/out. Dec 23 21:17:39 Best of both worlds. Dec 23 21:17:46 As long as it's not obnoxious. Dec 23 21:17:51 i feel like my phone is suffering from brain damage Dec 23 21:18:36 i wonder if there is some good examples of waht you are trying to do Dec 23 21:18:39 not nece for reddit Dec 23 21:18:40 but in general Dec 23 21:18:48 Yeah, I'd like to know. Dec 23 21:19:17 lasserix: Do you think I could get away with using a spinner in the ActionBar/Toolbar for subreddits? Dec 23 21:19:22 (As opposed to a nav drawer.) Dec 23 21:19:31 A spinner seems more natural to me here. Dec 23 21:20:13 easier to use Dec 23 21:20:20 what is the size? Dec 23 21:20:26 is this the users selected subreddits or? Dec 23 21:21:04 It shows the current subreddit and holds the rest of the default/subscribed subreddits. Dec 23 21:21:32 TacticalJoke: yeah Dec 23 21:21:35 that is probably best Dec 23 21:21:42 look "chanu app screenshots" Dec 23 21:21:47 apparently best 4chan browser Dec 23 21:21:54 now pulled from both istore/play Dec 23 21:22:54 Do you guys know a way to delete all unused resources from the project? Dec 23 21:23:17 well, gradle does that at build time Dec 23 21:23:19 and lint will show them Dec 23 21:23:21 Hmm, looks neat. Dec 23 21:23:29 but I haven't found a reliable tool to do it Dec 23 21:23:51 TacticalJoke: i think the very critical thing for you is going to be font contrasts Dec 23 21:24:20 Mavrik: Guess I'll do it manually then. Thanks. Dec 23 21:27:40 You mean, like, contrasting comment author and date and so on? Dec 23 21:28:07 http://practicaltypography.com/ Dec 23 21:28:24 a good reddit client will present really well Dec 23 21:28:28 i recomend you read his stuff Dec 23 21:28:40 and try to design the way you present things, like the small details of font weights, etc Dec 23 21:28:45 because that will make it stand out Dec 23 21:29:25 anyways Dec 23 21:29:27 Thanks. Checking that out. Dec 23 21:34:19 lasserix: This is really good. Dec 23 21:39:05 yeah Dec 23 21:39:15 i would almost go as far as including some fonts in your app Dec 23 21:39:19 or as downloadable content Dec 23 21:39:24 and allowing user to change the font Dec 23 21:39:31 to whatever they want / or presets Dec 23 21:40:50 Ya. Seems like a good idea. Dec 23 21:45:00 lasserix: The thing about the CVs seems highly relevant to my app (and to many text-dominated apps). Dec 23 21:45:16 The "bad CV" could lead to the user uninstalling. Dec 23 21:45:27 cv? Dec 23 21:45:49 Resumé. Dec 23 21:46:03 ? Dec 23 21:46:31 He showed two CVs and asked the reader which looked best. Dec 23 21:46:50 And which candidate the reader would hire based on the CVs. Dec 23 21:46:55 ohh yeah Dec 23 21:47:02 been a while since i read the essay Dec 23 21:47:21 which section is that? Dec 23 21:47:47 if I want to display a message while my thread is processing telling the user to wait and then close the message when the thread has finished should I use an AlertDialog? Dec 23 21:48:32 TacticalJoke: this is what i am going on about not packing in : http://practicaltypography.com/page-margins.html Dec 23 21:48:40 lasserix: http://practicaltypography.com/why-does-typography-matter.html Dec 23 21:48:48 ChrisUK: Why not use a ProgressBar? Dec 23 21:48:59 I have not way of updating its progress Dec 23 21:49:12 You can use an indeterminate one. Dec 23 21:49:13 it is a long call to an API function Dec 23 21:49:13 ChrisUK: you can use alertdialog but progress bar is a little better Dec 23 21:49:28 well I cant monitor the progress of the function Dec 23 21:49:39 why not? Dec 23 21:49:43 can you fake it? Dec 23 21:49:47 because it is an API call Dec 23 21:49:50 "simulate" Dec 23 21:49:52 I cant access its progress Dec 23 21:49:53 ok Dec 23 21:50:01 either use indeterminate Dec 23 21:50:02 fake it you mean Dec 23 21:50:07 or measure the last time you make the call Dec 23 21:50:12 and do something along those lines Dec 23 21:50:21 ok ill fake it Dec 23 21:50:41 ChrisUK: What is the work being done? Dec 23 21:50:44 A download or something? Dec 23 21:50:54 scaling a large jpg down Dec 23 21:51:06 An indeterminate progress bar would probably be fine there, if you ask me. Dec 23 21:51:10 In fact, I'd expect that. Dec 23 21:51:35 That's pretty much what they're made for, I think. Dec 23 21:51:44 Tasks of unknown durations. Dec 23 21:51:54 ChrisUK: what api? Dec 23 21:52:38 You could fake it, but if the fakery gets it wrong then that could be annoying for the user. Dec 23 21:52:49 A wrong progress bar is worse than an indeterminate one. Dec 23 21:53:07 BitmapFactory.decodeFile Dec 23 21:53:11 Though it depends on how wrong it is. Dec 23 21:53:41 alert dialogs are annoying in 99% of cases Dec 23 21:53:58 they also practically ensure your app will be broken if a user dismisses it :P Dec 23 21:54:14 Yeah, I'm not keen on dialogs at all. Dec 23 21:54:17 basically I just want a popup window that says Dec 23 21:54:18 Certainly not in this case. Dec 23 21:54:25 Please wait decoding... Dec 23 21:54:41 then it closes automatically when the jpg has been scaled Dec 23 21:54:43 ChrisUK: I think a lot of people would hate that. Dec 23 21:55:00 lol ok Dec 23 21:55:01 A progress bar is way less annoying. Dec 23 21:55:06 well ok Dec 23 21:55:09 ChrisUK, use a progress dialog with indeterminate progress Dec 23 21:55:22 ChrisUK, that shows a popup window with a spinning skinned throbber and a messsage Dec 23 21:55:27 I will have to create a second thread Dec 23 21:55:31 make sure you can handle it's dismissal properly Dec 23 21:55:36 ? Dec 23 21:55:50 and make sure you set theme right so it won't have Android 2.3 theme on lollipop Dec 23 21:56:57 ChrisUK you should not use popup at all Dec 23 21:57:03 ok Dec 23 21:57:04 are you displaying this image ? Dec 23 21:57:09 no Dec 23 21:57:10 after its done scaling or wahtever? Dec 23 21:57:19 what is the user waiting for? Dec 23 21:57:31 when they add a file to the photosphere gallery Dec 23 21:57:36 well what i would argue is try and make whatever notification inline with the layout, not something that pops out Dec 23 21:57:48 can't you put in a horizontal indeterminate progress bar under a placeholder for the image? yeah, i wouldn't use a dialog for that Dec 23 21:58:05 ChrisUK: the thing is if you make it inline with your layout it won Dec 23 21:58:14 't get in the way, will bea sier to mantain on back/rotation etc Dec 23 21:58:19 and looks smoother Dec 23 21:58:24 "smoother" Dec 23 21:59:11 An old Windows app that used to show a dialog whenever it was "processing". Totally forget what it was, but goodness it was annoying. Dec 23 21:59:21 Every little thing caused a "Processing..." dialog to show. Dec 23 21:59:36 That's an extreme example, but I just remembered it. lol Dec 23 22:00:55 yeah, that's annoying Dec 23 22:01:08 if you're doing background work, doing in a service and showing progress bar as a notification is way better Dec 23 22:01:20 if you're loading stuff, showing an inline throbber is also way better Dec 23 22:01:24 Probably the worst example of popups was that "You are an idiot" website. Anyone remember that? Dec 23 22:01:47 ok ill pop up some insult to the user to make them mad Dec 23 22:01:51 while they wait Dec 23 22:02:03 "Arbitrarily making you wait..." Dec 23 22:02:13 as long as you follow it up with a toast that says "You're alright" Dec 23 22:02:21 "jk" Dec 23 22:02:34 Using a toast would be the ultimate insult. :D Dec 23 22:02:56 (I'm kidding. I know you don't mind them.) Dec 23 22:03:13 I'm hoping to never use a toast in my current app, personally. Dec 23 22:05:15 ok I am going to use a ring progress dialong Dec 23 22:05:30 noooooo Dec 23 22:05:46 just make sure the user can do nothing but watch it spin the entire time its working Dec 23 22:06:14 yes it cannot be cancel Dec 23 22:06:23 it is for 2/3 seconds ffs Dec 23 22:06:35 also see if you can ovveride the the home and back buttons so they are totally unable to do anything Dec 23 22:06:39 *and notification bar Dec 23 22:06:44 oh switch it to immersive! Dec 23 22:07:04 progress dialogs are so froyo Dec 23 22:07:20 I liked g00s's idea of a progress bar under a placeholder for the image. Dec 23 22:07:27 it is better than nothing Dec 23 22:07:28 That's way more natural. Dec 23 22:07:34 Probably easier to implement, too. Dec 23 22:07:56 Or under something, if we're not showing the image. Dec 23 22:08:01 yeah don't do dialog Dec 23 22:08:04 put it in your layout Dec 23 22:08:24 I think democracy should decide ChrisUK's app UX. Dec 23 22:09:34 is this still a good way of doing done / discard? or has the pattern changed? https://plus.google.com/+RomanNurik/posts/R49wVvcDoEW Dec 23 22:09:56 now Calendar has 'Save' and 'X' Dec 23 22:11:15 I am trying to keep it as simple as possible Dec 23 22:19:41 is there a delay before the progress window is displayed Dec 23 22:20:34 g00s if you are doing material FAB Dec 23 22:20:43 since FAB is supposed to be positive/creation Dec 23 22:21:00 and then do discard as action bar Dec 23 22:21:09 ChrisUK: The call to display the dialog might be async. Why do you ask? Dec 23 22:21:33 ChrisUK: the dialog should show when you call show() Dec 23 22:21:50 final ProgressDialog ringProgressDialog = ProgressDialog.show(this, "Please wait ...", "Processing Image ...", true); Dec 23 22:21:56 doesnt seem to display right away Dec 23 22:22:01 g00s: and instead of discard how about reset? Dec 23 22:22:28 that way you can have back (as normal) create/done as FAB and discard/reset as action Dec 23 22:22:46 lasserix back in Calendar shows a dialog : save or discard now Dec 23 22:22:57 you can do that with FAB Dec 23 22:23:00 FAB bypasses Dec 23 22:23:10 if back without then do dialog save/discard Dec 23 22:23:13 if anythign changed Dec 23 22:23:39 actually i'm not using the fab atm Dec 23 22:23:46 hehe Dec 23 22:24:08 the i'd do back reset/done Dec 23 22:24:35 with back dialog if dirty Dec 23 22:25:52 although if you have validation Dec 23 22:26:00 do a overlay at the top with DONE Dec 23 22:26:05 when you detect is valid Dec 23 22:26:10 might be better Dec 23 22:26:13 as a bridge between Dec 23 22:26:16 not as consistent but... Dec 23 22:26:23 action bar is kinda possy Dec 23 22:26:40 ok I fixed it Dec 23 22:26:43 thanks alot for the help Dec 23 22:27:25 God, I hate how Google Chrome can't handle many tabs (on desktop). Dec 23 22:27:36 Why can't I have 100 tabs open without my laptop slowing to a crawl? Dec 23 22:27:36 it can't? Dec 23 22:27:40 get more ram Dec 23 22:27:50 failing that, add more swap space Dec 23 22:27:50 TacticalJoke: I know the feeling. Any more the 20 and it goes mental. Dec 23 22:27:52 To be fair, I think part of the problem is that I have a crazy number of tabs in OneTab. Dec 23 22:28:00 700+. Dec 23 22:28:09 why do you people have so many tabs Dec 23 22:28:14 chrome is greedy with ram, though Dec 23 22:28:15 There's so much to read. Dec 23 22:28:22 I can't quite let go of some articles. Dec 23 22:28:23 just dump tabs to a bookmark file Dec 23 22:28:35 fuck it, I ordered the dev moto x in white for $250 Dec 23 22:28:37 I dump them into OneTab but then never read them. Dec 23 22:28:41 need to replace my sgs3 that broke Dec 23 22:29:17 Did the screen break? Dec 23 22:29:38 yep Dec 23 22:29:55 I've seen so many Samsungs with broken screens. Only anecdotal, but it makes me wonder. Dec 23 22:29:58 And iPhones. Dec 23 22:30:01 TacticalJoke: How have I never known about OneTab, this is amazing. Dec 23 22:30:01 popular phone Dec 23 22:30:09 Yeah, it's great, Radther. Dec 23 22:30:25 the firefox version of OneTab lost all my tabs Dec 23 22:30:27 It's basically Firefox Panorama (or whatever they're calling it now) done right. Dec 23 22:30:43 Is there anyway to lock tabs so when I press it they don't go? Dec 23 22:30:48 I heard bad things about the Firefox OneTab. Dec 23 22:30:52 Yeah, Radther. Dec 23 22:30:57 why not just have a system where you put things in bookmarks as 'to sort' or something ? Dec 23 22:30:57 Click "More..." or whatever it is. Dec 23 22:31:16 does anyone elses as debug/android windows minimize every time? Dec 23 22:31:20 if you have 700 now, you'll have 1400 next year .... Dec 23 22:31:31 TacticalJoke: Thanks. Dec 23 22:31:34 I used to have that system, g00s, but I had exactly the same problem. Dec 23 22:31:40 I just never got around to processing them. Dec 23 22:31:55 TacticalJoke then get rid of them, this is hording except cyberspace Dec 23 22:31:58 It's tab hoarding, I guess. Dec 23 22:31:59 Yeah. Dec 23 22:32:07 Every now and then I mass-purge. Dec 23 22:32:53 Even Google Chrome on my phone has like 100 tabs open. Dec 23 22:32:53 although i wish the browsers had much better bookmark management stuff. chrome doesn't even let you tag bookmarks Dec 23 22:32:54 But it's super-fast. Dec 23 22:33:36 I wish Google Chrome on desktop were as lazy about loading as on Android. Dec 23 22:33:37 ok, is there an easy way to display an svg on android ? Dec 23 22:33:40 TacticalJoke: With Lollipop I often don't realise how many chrome tabs I have open. Dec 23 22:33:44 in 2010, i thought by now i'd be searching for bookmarks using semantic web technologies Dec 23 22:34:10 Radther: Don't they display in "Recent Tasks" in 5.0? Dec 23 22:34:44 Yeah, which means I end up with loads of things open. Dec 23 22:34:50 blusky there is a library Dec 23 22:35:07 i tried svg-android and androidsvg, both aren't working Dec 23 22:35:09 I'm not a fan of that idea. Dec 23 22:35:20 It doesn't have the number telling you how many are open and I am very really looking back to see which ones are open. Dec 23 22:35:33 I see. Dec 23 22:35:38 TacticalJoke: I really like it, makes the pages feel more like apps and instances. Dec 23 22:35:47 Rather then all in one place. Dec 23 22:37:37 I apparently can't get OneTab to exclude stuff. Keeps doing everything. Dec 23 22:39:30 You want it to keep some groups but it won't keep them? Dec 23 22:39:53 (Keeping them in the OneTab list.) Dec 23 22:40:04 Or did you mean "not put them in the OneTab list"? Dec 23 22:40:05 I think I got it working. Dec 23 22:40:58 This is completely off-topic, but does anyone know whether shops sell something you can put over radiators to hold the curtains above the radiators against the wall? Dec 23 22:41:10 Because so much of my heat is going behind the curtains. Dec 23 22:41:19 I googled and to my surprise didn't find much. Dec 23 22:42:04 TacticalJoke: put a magnet on the wall with some adhesive :) Dec 23 22:42:14 and then another magnet on the outside to hold the curtain Dec 23 22:42:23 Oh, that's clever. Dec 23 22:42:25 some sugru might work well to hold the magnet to the wall Dec 23 22:42:32 Though I might need a few magnets. lol Dec 23 22:42:37 yea Dec 23 22:43:06 How does a 100 sound. http://www.amazon.co.uk/Big-Bargain-100pcs-Neodymium-Magnets/dp/B00AAWEH9I/ref=sr_1_2?ie=UTF8&qid=1419374568&sr=8-2&keywords=magnets Dec 23 22:43:12 or maybe like a small thin steel rod on the wall Dec 23 22:43:16 and magnets on the outside Dec 23 22:43:36 those are only n35 though Dec 23 22:43:41 I was thinking of, like, a towel rack. But it holds the curtains back. Dec 23 22:44:08 Or something that goes behind the radiator and shoots up. Dec 23 22:45:03 TacticalJoke: can you take ap icture? Dec 23 22:45:10 not sure what ye old radiator is Dec 23 22:46:08 TacticalJoke: yeah Dec 23 22:46:16 they do its a device called miniblinds Dec 23 22:46:48 can't you just tie the left and right bottom of the curtain together and pull it up and away / behind? Dec 23 22:46:58 or use two hooks and use a dowel Dec 23 22:47:37 or you could move nearby where i live in the northern hemisphere for some reason it is 85 degrees F Dec 23 22:47:52 (29 c) Dec 23 22:48:07 lasserix: Lucky for some. Dec 23 22:50:30 guess you can say that Dec 23 22:50:41 but california is suffering 8 trillion gallon water defecit Dec 23 22:51:14 That sounds like it might be a bit of a problem. Dec 23 22:51:31 hasn't really affected me, tbh Dec 23 22:51:53 lasserix its interesting how the weed growers steal water out three Dec 23 22:51:59 *there Dec 23 22:52:13 i guess its a pretty water hungry crop Dec 23 22:52:21 yea Dec 23 22:52:34 do you mean in suburbs? Dec 23 22:52:39 an dthen yo have opera shipping water in from someplace Dec 23 22:52:44 *Oprah Dec 23 22:52:49 lasserix no the mountains Dec 23 22:52:59 Yeah, the hooks thing sounds good. Looking into that. Dec 23 22:53:03 It's frosty here. Dec 23 22:53:19 lasserix diverting streams, etc Dec 23 22:53:55 oh yeah Dec 23 22:54:04 yeah it gets crazy in northern california Dec 23 22:56:51 amazing how many of my friends have their "american dream" / retirement plan to move to northern ca to start a farm Dec 23 22:58:14 i think the future of farming is robotic automation and indoors Dec 23 22:58:38 there will always be outdoors Dec 23 22:58:46 i really need help with svgs Dec 23 22:58:46 you can't come close to emulating the sun Dec 23 22:58:55 i'm using this lib. https://github.com/pents90/svg-android Dec 23 22:59:01 also you can't do grapes indoors for viticulture Dec 23 22:59:02 and all I have is a blank imageview ... Dec 23 22:59:17 no "terrior" however for all other produce defintly Dec 23 22:59:26 hopefully we'll move to algae-cricket burgers :) Dec 23 22:59:28 When using ndk-gdb I'm getting "warning: while parsing library list: not well-formed (invalid token)" Then it doesn't seem to have any symbols loaded(all functions are unknown). Any idea what I've done wrong? Dec 23 22:59:32 SVG svg = SVGParser.getSVGFromString("[...]"); imageview.setImageDrawable(svg.createPictureDrawable()); Dec 23 22:59:37 lasserix lol Dec 23 23:00:38 blusky what's the problem? Dec 23 23:01:24 lasserix: code's launching, no expcetion and compiling, the imageview is switching to a "transparant" imageview instead of my vectorial picture Dec 23 23:01:54 blusky: Where is the SVG stored? Dec 23 23:02:08 I get it from a webservice, in a json Dec 23 23:02:16 Ahh ok. Dec 23 23:02:18 but even with a test svg, it's not working Dec 23 23:03:04 https://svg-android.googlecode.com/files/android.svg Dec 23 23:03:08 i tried with this one Dec 23 23:03:15 (c/c the svg in java) Dec 23 23:03:17 same behaviour Dec 23 23:03:44 http://pastebin.com/Nz8uBxV9 Dec 23 23:03:51 What happens if you add the svg to the drawables folder and use .getSVGFromResource(getResources(), R.raw.android); Dec 23 23:03:57 Instead of from path. Dec 23 23:04:16 i'm using fromstring Dec 23 23:04:16 ^^ Dec 23 23:04:24 Ahh ok. Dec 23 23:04:27 thats the probably the problem Dec 23 23:04:29 what's you path string Dec 23 23:04:33 andblusky what is the error? Dec 23 23:04:46 no error, it's just that nothing's happening, no image Dec 23 23:05:15 ugh, did I miss a discussion about the done/discard pattern here? Can someone get me a log of that? :/ Dec 23 23:05:24 i tried this http://pastebin.com/Nz8uBxV9 (in case my SVG isn't good) Dec 23 23:05:27 but same behaviour Dec 23 23:05:39 (it's the example svg from https://code.google.com/p/svg-android/downloads/detail?name=android.svg&can=2&q=) Dec 23 23:05:47 Looking online android really doesn't like SVGs, would it be possible to convert the SVG before hand and then show it. Dec 23 23:06:10 it will be hard for my server to convert the SVG Dec 23 23:06:18 possible, but I won't be able to handle high load Dec 23 23:06:33 maybe a java lib to do it, instead of android lib ? Dec 23 23:06:46 Hmmm ok. Is there any reason they are being stored as SVGs to begin with? Dec 23 23:06:52 yup Dec 23 23:07:06 it's the simpliest format to generate randomized imgs Dec 23 23:07:13 Ok. Dec 23 23:07:29 bluesky encoding? Dec 23 23:07:40 lasserix: can you develop ? Dec 23 23:07:49 develop what? Dec 23 23:07:56 what do you mean by encoding ? Dec 23 23:08:06 oh UTF-8 but it looks like it does already Dec 23 23:08:08 umm Dec 23 23:08:14 you define 500px by 500px Dec 23 23:08:18 is that throwing it off maybe? Dec 23 23:08:54 mmmm, maybe, gonna try 100*100 Dec 23 23:09:17 also i would step thru with debugger Dec 23 23:09:21 and see what happens after you call parse Dec 23 23:09:27 ie if you getting any information Dec 23 23:09:28 nop, same behaviour with 100*100 Dec 23 23:09:40 just in case, you are not calling setImage from bac kground thread? Dec 23 23:09:52 it's done from an async task Dec 23 23:09:59 in postExectue? Dec 23 23:10:08 not doInBackground Dec 23 23:10:10 yup Dec 23 23:10:52 you are not getting any thrown svgparsingexceptions are you? Dec 23 23:11:05 protected void onPostExecute(JSONObject result) { Dec 23 23:11:11 nop, no exception Dec 23 23:11:35 umm Dec 23 23:11:41 i noticed you have a bunch of new lines Dec 23 23:11:47 maybe that is messing it up? Dec 23 23:12:00 or is svg newline delimited? Dec 23 23:12:14 it's just an xml Dec 23 23:12:24 It seems that it wouldn't throw an error if there was problem with the file. Dec 23 23:12:55 let's try to mess up with the svg, see if throw an exeption ... Dec 23 23:13:19 bluskjy Dec 23 23:13:24 turn off hardware acceleration Dec 23 23:13:28 it does Dec 23 23:13:29 android:hardwareAccelerated="false" Dec 23 23:14:18 lasserix: same behaviour Dec 23 23:14:48 what is the width height of your imageview? Dec 23 23:15:07 lasserix: almost all the screen Dec 23 23:15:13 is it wrap Dec 23 23:15:28 no, it's on a relative layout Dec 23 23:15:39 try hardcoding the width height of the imageview Dec 23 23:16:57 same Dec 23 23:17:00 yeah Dec 23 23:17:02 you are sol Dec 23 23:17:07 try a different library Dec 23 23:17:09 "sol" ? Dec 23 23:17:12 or step thru with the debugger Dec 23 23:17:15 i tried them all :( Dec 23 23:17:24 (there's 2) Dec 23 23:17:27 then its probably a problem in your code Dec 23 23:17:31 seems to be at least 3 Dec 23 23:17:35 https://code.google.com/p/androidsvg/wiki/SVGImageView Dec 23 23:17:43 if it failed on both i am guessing you code is to blame Dec 23 23:17:48 (sol = sh.t out of luck) Dec 23 23:17:52 :D Dec 23 23:18:14 Why aren't you rendering SVGs on server and then serving a WebP? Dec 23 23:18:18 are you using android studio or eclipse? Dec 23 23:18:25 Rendering such a complex format on slow devices will murder your performance. Dec 23 23:18:27 android studio Dec 23 23:18:37 Mavrik: rendering it on a server will be worse Dec 23 23:19:00 Nop. Dec 23 23:19:14 using the webserv to generate pngs from svgs ? Dec 23 23:19:34 WebP. Dec 23 23:19:43 what do you mean ? Dec 23 23:19:56 ooh Dec 23 23:20:08 convert svg to webp is easy ? Dec 23 23:20:18 blusky: so if this is critical to your app, make a new project, do a fresh hello svg and get it working with whichever library independently of your app or your web served svgs Dec 23 23:20:25 then figure out what is different and fix your app Dec 23 23:20:29 otherwise it seems sol Dec 23 23:24:23 hi i recently upgraded to android studio 1.0.2 Dec 23 23:24:31 and i'm getting this error building my apk Error:Execution failed for task ':dexRelease'. > outDexFolder must be a folder Dec 23 23:24:40 can someone explain how to fix that Dec 23 23:25:09 i also get this warning a bunch of times Warning:Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android. Dec 23 23:25:40 you have a transitive dependency that picks up org.json Dec 23 23:25:42 exclude it Dec 23 23:25:50 WORKING !!!! Dec 23 23:25:53 is there some way to figure that out? Dec 23 23:26:05 that's just standard gradle Dec 23 23:26:08 read the gradle docs Dec 23 23:26:31 almost working ... Dec 23 23:27:14 so is it me that's doing something wrong, or is it a dependency i'm using that's doing something wrong Dec 23 23:27:36 well, if you don't call it out specifically, then it's a dependency Dec 23 23:28:24 blusky: What was the problem? Dec 23 23:29:11 ok so looks like my engine.io has a pom.xml with a org.json dependency Dec 23 23:30:49 also my socket.io client has a org.json dependency Dec 23 23:31:27 so let's assume that these developers have also noticed the conflict. if i update socket.io should that fix it? presuming they've removed the dependency Dec 23 23:31:56 If they'd do that, they wouldn't be able to compile their lib. Dec 23 23:32:06 Add an exclusion to your dependency parameter in build.gradle Dec 23 23:32:32 ohhh ok i need an exclusion Dec 23 23:34:46 blusky what was the deal? Dec 23 23:35:01 yeah, compile('your-dependency') { exclude group: "group.name", name: "artifact.name" } Dec 23 23:35:04 should do the trick Dec 23 23:35:25 hephaestus_rg, note that you might be in a world of pain if those libs used org.json that cannot be replaced by a single compatible instance >P Dec 23 23:36:33 well i ran my app and it works so idk ;p Mavrik Dec 23 23:37:38 lasserix: no idea, i insalled the lib from graddle, and now it's working ... Dec 23 23:39:39 Hi everyone Dec 23 23:39:48 I'm unable to run a simple test Dec 23 23:40:01 on my phone I get Waiting for Debugger Dec 23 23:40:15 and on android studio I get this: https://up.kibakoapp.com/S81K0Bjkjf Dec 23 23:41:45 your phone should never say "waiting for debugger" while it's running tests Dec 23 23:42:21 pfn: let me try on a tablet Dec 23 23:42:37 i.e. your app shouldn't be running in the foreground for it to say that Dec 23 23:43:58 pfn: well, seems working on a Nexus 10 Dec 23 23:44:06 I was testing a Nexus 5 Dec 23 23:44:16 the device shouldn't matter Dec 23 23:44:31 sounds like you went into settings and set your app to require a debugger before starting Dec 23 23:44:41 pfn: let me check Dec 23 23:44:46 thanks for all the helps guys, i gotta go Dec 23 23:45:19 pfn: settings seem fine, let me reboot the phone Dec 23 23:45:28 "seem fine"? Dec 23 23:45:38 so your app isn't listed under debug apps? Dec 23 23:46:32 yep Dec 23 23:47:03 and wait for debugger isn't checked? Dec 23 23:47:27 I can't be checked :) Dec 23 23:47:38 by the way a reboot "fixed" the problem Dec 23 23:47:43 thanks :) Dec 23 23:47:48 * pfn shrugs Dec 23 23:48:12 that shouldn't happen without 1 of several things being enabled manually Dec 23 23:54:29 Slightly of topic but not sure where else to post this. What do you think of this logo? https://unsee.cc/podamube/ Dec 23 23:56:08 both too generic and not conveying the essence of anyhting obvious Dec 23 23:56:41 g00s: Thanks, back to the drawing board. Dec 23 23:57:31 Saying that, the app it self is very generic to begin with. Dec 24 00:00:42 making a good logo is hard Dec 24 00:01:05 g00s: Yeah, it never seems to get easier. Dec 24 00:12:12 How about this, symbolises the app a little more. https://unsee.cc/neromita/ Dec 24 00:22:45 JesusFreke check this out. not sure how he's getting away with this using those wheels http://digg.com/video/road-bike-party-3 Dec 24 00:27:52 finally, i'm making a svg2png conversion server side Dec 24 00:28:02 it's a lot easier, and not that much costly Dec 24 00:30:24 my app crashed on someone's device, is there a way for that person to more or less easily access logcat? Dec 24 00:30:58 squirrel maybe try crashlytics or something Dec 24 00:31:35 g00s: i mean, like, just once :s Dec 24 00:31:50 i'm sure it will happen again XD Dec 24 00:33:02 no Dec 24 00:33:11 my bugs are way too rare :/ Dec 24 00:33:59 i've been trying to catch some bug for a month now (extra debug messages) Dec 24 00:34:45 after what time of not being able to reproduce one should consider a bug not a bug :s Dec 24 00:36:26 use acra Dec 24 00:36:29 collect logs and stack Dec 24 00:39:01 but can i use something now? the crash is still in logcat, but i can't make the user go through installing adb or something Dec 24 00:47:34 no Dec 24 00:47:43 need root to collect logcat these days Dec 24 00:47:46 or adb Dec 24 00:48:39 D: Dec 24 00:50:35 just fix the stack Dec 24 00:50:40 stacks are enough for just about all bugs Dec 24 00:50:41 :p Dec 24 00:51:05 and if the stack isn't in your code, fuck it Dec 24 00:58:48 "LG G3 allegedly explodes, battery burns hole right through teen’s bed" :O Dec 24 00:59:22 * g00s hopes hes never on an airplane when that happens Dec 24 01:02:21 "just fix the stack" = use acra? yeah should do that Dec 24 01:12:30 JakeWharton are you aware of any problems overriding @Named provider bindings in dagger? Dec 24 01:12:36 no Dec 24 01:12:44 wtfbubbles then. kk thx Dec 24 01:52:20 hm, i have to decide between 2 worflows. the goal is to allow the user to add N bluetooth devices to the app, and possibly edit some details for those devices like name, disposition (fixed, mobile), comments, refresh rates, etc. The first flow = user presses add -> selects N devices from list -> done. If they want to edit properties, from the main screen they need to select the new device -> edit Dec 24 01:52:55 the second flow, the user doesn't have a chance to add N devices. The say add new device, and a screen comes up with the detail fields, etc. They have to choose a device, and then press done. Dec 24 01:53:51 first flow, they get to add N devices but not edit any details, second flow they can only add 1 device but edit details Dec 24 01:54:51 anyone have an opinion on either ? Dec 24 02:05:45 wireframe it out and then show/ask us :p Dec 24 02:30:26 is there an android studio channel anywhere? Dec 24 02:30:58 i'm finally trying out AS and it's kinda painful (which is why i've been avoiding it for years) Dec 24 02:31:24 this would be it, mostly Dec 24 02:32:31 well if I have a gradle dependency then how Can I get it to load the javadoc for the IDE and also not have the javadoc in the real application Dec 24 02:32:49 also where do I see the lint output in the ide somehow? Dec 24 02:32:57 absolutely no idea - I still use ant on the command-line! :) Dec 24 02:36:07 HevvyMetal lint output should show up when you say "Analyze" Dec 24 02:36:46 main menu Dec 24 02:37:09 I see an Analyze Menu in between Code and Refcator but I don't see an action for that Dec 24 02:37:12 years? Dec 24 02:37:14 Analyze->what? Dec 24 02:37:43 there's a setting to auto-download source&javadoc Dec 24 02:37:55 Analyze -> Inspect Code Dec 24 02:38:52 ok cool i'll try that in a sec Dec 24 02:39:29 also anyone doing anything with Android/Google TV or Fire TV or any related video streaming...looking for some good TVish UI elements and controls if there are any Dec 24 02:39:59 does the leanback library not fulfill your needs there? Dec 24 02:40:51 i found that I didn't need to add much to it for a really nice setup Dec 24 02:41:02 the one in Lollipop JakeWharton ? Dec 24 02:41:21 it's a separate library Dec 24 02:41:28 leanback-v21 Dec 24 02:41:41 ok i'll check it out Dec 24 02:41:46 what device are you running it on? Dec 24 02:42:02 ADT-1 Dec 24 02:42:50 and what is the difference between "Android TV" and "Google TV" ? is Android TV just a renamed version of Google TV? I only saw 2 samples for the android tv... so the remote etc pairing is still the old Google TV way right?? Dec 24 02:43:56 Google TV is the failed and forgotten first attempt at a TV platform... ATV is the new generation Dec 24 02:44:34 Leeds can you dev for ATV without having a physical TV? emu work ? Dec 24 02:44:46 g00s: yeah, I think so - there's an image in the SDK, isn't there? Dec 24 02:44:57 * g00s checks Dec 24 02:45:14 yup Dec 24 02:45:28 maybe i looked at google tv by mistake :| Dec 24 02:45:30 Leeds right i get taht but does one basically build ATV apps using the same apsis that GTV used to have? or are they completely different? Dec 24 02:45:32 IIRC one of the oddities of GTV was that the emulator, at least originally, didn't run on Windows Dec 24 02:45:38 such as anymote etc Dec 24 02:46:00 HevvyMetal: I don't know, but I'd go with 'completely different' Dec 24 02:46:21 well are you doing anything with it? I don't know what's "completely different about it"... Dec 24 02:46:58 what's the name space for the current ATV stuff? When I treid to build the ATV samples in Android Studio I hada a lot of problems and then in eclipse ahd a lot of problems too wrangling with everything atm :) Dec 24 02:47:04 i looked into this a few months ago, but seems there are very few Android TVs - at least what i found Dec 24 02:47:05 no, I'm not doing anything with it - and I'm not sure why anyone would, when it's limited to one Nexus device in one country Dec 24 02:47:53 because.....I'm basically doing a Fire TV app which is android 4.4.x, and just want to (reuse) any existing etc themes/layouts/controls on the Fire...not make it for the ATV per se Dec 24 02:48:10 assuming that it's a library ic an include why not Dec 24 02:50:44 it sort of feels right now like ATV has faltered, more so than GTV which started quite strong... they *really* should have been attacking Christmas, but obviously not Dec 24 02:52:18 gonna ask again, in case theres someone here who might have an answer now... is there any way to trigger the hamburger/arrow animation manually? im trying to animate to the arrow and sqitch to an 'up' implementation whenever there are items in my backstack. i had thought i on the right track this morning after something pfn said, but i have tried every method i can think of from ActionBarDrawerToggle, DrawerLayout, and DrawerListener, Dec 24 02:52:25 you can understand why the car stuff seems to have gone slowly, but if they couldn't get more than one box - and a badly-reviewed Nexus, at that - out the door 6 months after announcing the platform... Dec 24 02:54:28 have you tried to built a TV app from AS? There is a wizard but the resultant code doesnt work Dec 24 02:54:51 " no, I'm not doing anything with it" " absolutely no idea - I still use ant on the command-line! :)" Dec 24 02:59:24 this was a few days ago in android / car dept http://www.theverge.com/2014/12/18/7417957/google-reportedly-wants-android-to-replace-your-cars-infotainment Dec 24 02:59:49 right, which isn't the Android Auto stuff from I/O at all Dec 24 02:59:51 ill take the car w/o android / ios, that way when the Cylons come mine will still work **** ENDING LOGGING AT Wed Dec 24 02:59:59 2014