**** BEGIN LOGGING AT Wed Jun 24 02:59:58 2015 Jun 24 03:00:54 but if ipv6 has slaac, what are IT shops doing then ? Jun 24 03:06:14 "DHCPv6 is so important, in fact, that some companies have been advised to bar Android devices that can’t use the system from corporate networks by their legal departments " Jun 24 03:06:31 well, ugh for DMCA :( Jun 24 03:30:28 Hi Everybody! Jun 24 03:31:06 g00s: you can reflect it, but yeah. insanity that it's still not exposed. Jun 24 03:32:45 is there a default picker that just lets you increment/decrement a value? Sort of like the time pickers, but for a single number. I don't think I'm googling the right UI term here Jun 24 03:33:28 shoerain http://developer.android.com/reference/android/widget/NumberPicker.html Jun 24 03:47:18 Are there any best practices for running a development and production version of an app on one device? I have tried googling, but only came up with brittle hacks and workarounds Jun 24 04:00:14 It's me, Dr. Nick! Jun 24 04:15:17 hi Jun 24 04:15:35 help me, I need to learn Android before I get fired Jun 24 04:15:55 oh gosh Jun 24 04:15:59 Cool story, brah. Jun 24 04:16:08 oh i remember this fella Jun 24 04:16:18 anyone here uses RoboSpice for http requests? yes/no/why? Jun 24 04:16:48 if not what is yr networking lib of choice Jun 24 04:16:55 retry, abort, fail ? Jun 24 04:17:14 f Jun 24 04:19:35 JFlash, where are you working? Jun 24 04:20:00 Oh i see Instagram and Pinterest use loopj's async http lib Jun 24 04:20:13 xaobao, just some random small mobile dev shop Jun 24 04:20:40 Any why would they fire you for not know Android? Jun 24 04:20:45 Did you say you did know it? Jun 24 04:21:00 he had three weekENDS experience when he applied Jun 24 04:21:09 didn't know java, didn't know android (his words) Jun 24 04:21:32 but I don't see that loopj's automatically handles updating the UI across activity destruction/recreation Jun 24 04:22:29 I think I use retrofit and picasso Jun 24 04:22:30 xaobao, they had a junior and they where hiring for someone more experiecied. but I only have like 3 weekends studying java/android Jun 24 04:22:34 oh yeah now i remember, so wait - JFlash got hired but misrepresented skills ? Jun 24 04:22:58 they obviously don't care much about their product Jun 24 04:23:07 ouch how did you get hired? no technical testing? Jun 24 04:23:17 g00s, kinda misrepresented. it depends on who you ask Jun 24 04:23:26 * JFlash hides under a rock Jun 24 04:23:38 JFlash making devs everywhere look bad Jun 24 04:23:48 thats their fault I guess. Right on study up Jun 24 04:23:52 * g00s finds IEEE code of ethics Jun 24 04:24:09 yeah, I was kinda lucky. I presented some stuff for them to see but mostly was just stuff I copied from the interwebs Jun 24 04:24:55 like, not that I only copied. I mean, I built it but mostly from cookie cutter code from stackoverflow Jun 24 04:25:28 shadynastys, thanks for your support. that's the idea Jun 24 04:25:39 :) read books? Jun 24 04:25:48 JFlash http://www.ieee.org/about/corporate/governance/p7-8.html #6 Jun 24 04:26:33 hah thats great. way to break the ethics code Jun 24 04:27:00 g00s, how many of those items there steve jobs and bill gates followed by the letter, you'd say? Jun 24 04:27:31 JFlash maybe they wrote it with those 2 in mind :P Jun 24 04:27:55 g00s, good answer :) Jun 24 04:28:00 just joking, no idea Jun 24 04:28:19 Id believe it Jun 24 04:29:23 I don't have any sort of engineering degree thou. I graduated in other field. so it's not like I'm "betraying my peers" or anything ;-) Jun 24 04:30:53 back to the technical point, if anyone has experiencies to share regarding http libs I'd be interested to know Jun 24 04:31:30 wow and i am just graduated with CS and having trouble finding jr level jobs. I have been doing it wrong. I should just tell them that I have years of experience and learn it on the job like you. Test in production. Jun 24 04:32:20 shadynastys, dude, don't say that. you are really going to make me feel a bad person Jun 24 04:33:10 JFlash: don't worry about it bro. Yeah, you only have 3 weeks or whatever but getting a degree does NOT make you a good developer. Next time just ask the question without providing those personal details ;) Jun 24 04:33:18 ;) Im just amazed. Im happy for you. Get paid and learn fast man. Jun 24 04:33:37 shadynastys, my context is much more nuanced than that. I have actually over 10 years of programming xp and over 2 years focusing on mobile dev. Jun 24 04:34:01 shadynastys, it just was not Android or anything native Jun 24 04:35:06 lol, misrepresented skills Jun 24 04:35:29 I guess the interviewers suck Jun 24 04:36:13 pfn, it's a small shop, the interviewer is the owner , which is also the iOS programmer :D Jun 24 04:36:20 who* Jun 24 04:37:01 so 50% of the guys workforce is lame Jun 24 04:37:09 ouch Jun 24 04:37:19 hehe Jun 24 04:37:22 halt and catch fire Jun 24 04:37:25 man, if you are a one person operation, you can't afford to hire a lame #2 Jun 24 04:37:55 lol Jun 24 04:43:12 JFlash, on the technical side. I have not used loopJ in a long time so i dont know about it. I have been using retrofit for API calls for a while now. I like it atleast. Jun 24 04:44:37 shadynastys, thank you. It seems like retrofit can be used alongside RoboSpice to complement it Jun 24 04:46:40 shadynastys, ever used Volley? any thoughts on it? Jun 24 04:50:54 capella there ? Jun 24 04:51:42 If you mean Whistler north in Canada, then yes :) Jun 24 04:52:29 capella oh wow sounds awesome Jun 24 04:52:41 capella what is your take on JS vs webassembly ? Jun 24 04:53:10 Ah, I like the idea! I've been meaning to get into asm.js, so this is better :D Jun 24 04:53:41 g00s: ofc it will depend on the implementation but I think it's a cool project Jun 24 04:54:26 can't remember if capella or shmoooz is into privacy Jun 24 04:54:49 this is ... crazy http://www.sun-sentinel.com/health/ct-allstate-patent-data-0618-biz-20150618-story.html#page=1 Jun 24 04:54:50 g00s: I'm into it, but not like tin-foil into it Jun 24 04:55:41 mmm, yah, the insurers are "paying" for things, so they can "monitor"... don't they already do that for driving records, etc? Jun 24 04:56:12 * capella maybe we're not there yet, but moving in that direction :/ Jun 24 04:56:15 THE TRUTH IS OUT THERE! YOU CAN"T HANDLE THE TRUTH! Jun 24 04:56:15 they want your heart rate now :) Jun 24 04:57:07 "Searching on Google, for example, "seems like it's free, but it's not free," he said. "You're giving them your information, and they sell your information."" ... but is google really selling your info? i thought it kept it for itself Jun 24 04:57:36 *the X Files theme plays* Jun 24 04:57:50 I'm sure they employ the data, for better-targeted ads, that they then can charge more effectively for Jun 24 04:58:27 haha ""A pattern of aggressive driving may be correlated to 'risk taking' in other life or employment environments, including but not limited to spending and debt repayment," Allstate said in its patent." Jun 24 04:58:42 I SEE DEAD PEOPLE! Jun 24 04:59:01 after you ran them over? :p Jun 24 04:59:04 sorry, home loan denied - you speed to much :) Jun 24 04:59:29 if you can't make it home, you don't need a house Jun 24 04:59:33 sorry, eveything denied - you don't drive anywhere (so you must be unemployed) :D Jun 24 05:00:12 * capella prefers "nuder-utilized" Jun 24 05:00:32 * g00s wonders what capella's scrore is on 'driver rating system' Jun 24 05:00:55 your driver rating is too low, you can only apply for loan of autonomous vehicle :) Jun 24 05:01:15 Damn, now that I gave up driking, I could have done so much more of it Jun 24 05:02:26 capella what are you doing up at Whistler ? Jun 24 05:02:40 That makes me think of Prison Break. Jun 24 05:02:58 moz invited me to a work week ... the mountains here are like 5 times the size of upstate NY Jun 24 05:07:20 as long as you are online you cannot expect privacy because someone who wants to monitor you or hack you, eventually does, you can only hope obscurity unimportance and the latest privacy measures will help you Jun 24 05:07:52 I have an AsyncTask that retrieves data from the internet in the form of json and then I show it in a ListView with an Adapter. How can I do it so I can retrieve data multiple times and adding it on the ListView? Jun 24 05:07:56 On the plus side, we never have to feel lonely. Jun 24 05:09:10 * capella is so boring the feds aren't interested Jun 24 05:09:48 * capella . o O ( omigod, it's him again, he ... won't ... SHUT ... *UP* ..... ) Jun 24 05:10:36 Currently creating an activity to show what open source libraries one of my apps is using. Here is a screenshot: http://postimg.org/image/6q5zj6tol/ Currently, when you click on "LICENSE" it opens the browser to a copy of the license. Should I change this to an actual copy of the license or is this good enough? I realize you are suppose to have a copy of the actual license but who does that :P Jun 24 05:15:44 genoskill: I think you have to reinstantiate an AsyncTask to use it again. Jun 24 05:15:52 Though I could be wrong since I never use it (I'm not a fan). Jun 24 05:19:00 surf2b1, it's not a requirement for any license that matters, really Jun 24 05:19:27 pfn: cool, thanks. I'll just leave it as is then :) Jun 24 05:19:28 TacticalJoke: Is it possible to add new items to a ListAdapter? Jun 24 05:19:44 You can just change the data set and call BaseAdapter.notifyDataSetChanged. Jun 24 05:20:03 surf2b1, Apache and MIT don't have advertising clauses Jun 24 05:22:25 meh ... hilton wifi bounces a >lot< Jun 24 05:36:58 TacticalJoke: But what if don't have a BaseAdapter but a ListAdapter? Jun 24 05:37:26 genoskill well thats your problem right there Jun 24 05:37:28 :D Jun 24 05:37:36 You should probably be using BaseAdapter in some way. Jun 24 05:37:48 What is the name of your class implementing ListAdapter? Jun 24 05:38:07 I'm guessing "ArrayAdapter". Jun 24 05:38:27 SimpleAdapter Jun 24 05:39:05 That extends BaseAdapter (but I've never used it). Jun 24 05:43:34 [small code] Hello i have a listview i wanted it to be like this that on itemclick open another intent here is what i tried , main fragment code (http://paste.ubuntu.com/11766142/) and here is the code for intent acitivty (showTick.class) (http://paste.ubuntu.com/11766145/) but the problem is that it does nothing when i click item on list view, Thanks Jun 24 05:44:47 SimpleAdapter has the method, but the problem is that my ListAdapter object doesn't have it. I did this "ListAdapter gAdapter = new SimpleAdapter( ...etc." Jun 24 05:45:14 Just replace `ListAdapter` with `SimpleAdapter` (or even `BaseAdapter`). Jun 24 05:45:56 genoskill: it should be SimpleAdapter gAdapter = new SimpleAdapter(blah blah) Jun 24 05:46:28 boodllebat: Why are you creating an Intent and doing nothing with it? Jun 24 05:46:52 genoskill: Why `gAdapter`? Weird naming scheme. Jun 24 05:47:29 TacticalJoke: i just wanted to check weather it works or not after i'll get success to open intent activity i'll add content to it , but right now i have a textview there Jun 24 05:48:26 TacticalJoke: i am doing something there i have a edittext there Jun 24 05:48:44 I don't understand the query now. Jun 24 05:50:09 TacticalJoke: i just want this when click on listview's item open another blank activity Jun 24 05:50:18 So what's the problem? Jun 24 05:51:01 TacticalJoke: the code i'm using right now does nothing when i click item on listview nothing happens it stays there only Jun 24 05:51:26 boodllebat: I did that and it didn't crash, I thought setListAdapter() only worked with ListAdapter adapters. Jun 24 05:51:37 Maybe try calling startActivity. Jun 24 05:51:57 genoskill: SimpleAdapter implements the ListAdapter interface. It's a ListAdapter. Jun 24 05:52:21 genoskill: is it working fine now Jun 24 05:53:07 boodllebat: yes. Jun 24 05:53:15 genoskill: great Jun 24 05:55:02 TacticalJoke: because I didn't understood what I was doing while writing the code, so I just put a g because It's my first letter's name. Jun 24 05:57:32 hello. im creating a JSON deserializer for GSON to parse this JSON https://gist.github.com/px-amaac/1ef7da5a68c1c4512ba8 I dont feel like this is going to work because i need it for every object and even some primitive types that return a boolean instead of the requested type. Has anyone delt with this before or any tips for this? Jun 24 05:58:10 boodllebat: Is it possible to remove items from a dataset or add items, to the use .notifyDataSetChanged()? I assume that using that method It would refresh the ListView? Jun 24 05:59:32 genoskill: yes it is possible to add/clear dataset from listview Jun 24 06:00:22 genoskill: but you have to add/clear data to adapter and then call notifyDataSetChanged() Jun 24 06:01:18 arrrrg Jun 24 06:02:37 is there a good source for animating the simultaneous removal of more than one ListView row? Jun 24 06:02:46 fomd a way to move them all at the same time Jun 24 06:02:49 sort of Jun 24 06:02:59 boodllebat: When you pass the data set as parameter to an adapter, you make a copy of it or is it just a reference? Jun 24 06:05:37 i need to index sd card for search purpose. I wrote non-recursive filewalker that put each file path into db. But it's too slow :( Jun 24 06:05:44 genoskill: i think its copy of your data , I'm not sure but i think its copy not reference but you can ask in channel to get confirm answer Jun 24 06:06:07 so the question is.. how to make it fast :) Jun 24 06:06:12 people? Jun 24 06:06:21 TacticalJoke: my inent worked i forgot to add startActivity(intent) there , Thanks Jun 24 06:06:49 https://gist.github.com/px-amaac/1ef7da5a68c1c4512ba8 is it common for JSON to return false for values that have no data like "Image" or "image" ?? Jun 24 06:06:54 ondroed: non-recursive ? Jun 24 06:07:57 ondroed: why how do you search inside directories of directories Jun 24 06:08:13 ondroed: is it on github ? Jun 24 06:08:21 boodllebat: yes not recursive Jun 24 06:08:35 HALT ANT CATCH FIRE Jun 24 06:08:44 lol Jun 24 06:08:50 ondroed: well how do you traverse directories of directories ? Jun 24 06:08:55 shadynastys: I can't speak to GSON, but more often I see null instead of false :\ mixing "false" and "[ { some objects } ]" seems odd to me. Jun 24 06:09:33 bloodllebat: I might be forgetting something but i thought Java was always! pass by value. Therefore your dataset when passed as a param is a "reference" to the actual data. A pointer essentially... not really though. Jun 24 06:10:22 shadynastys: i already told him that i'm not confirm i'm not good at JAVA Jun 24 06:10:37 boodllebat: put found dirs in list and walk them Jun 24 06:10:44 genoskill: heads up ! your topic in conversation Jun 24 06:11:25 thankyou groxx. Any idea on how to handle that aside from creating a deserializer for each object? which in my case is everything including primitives aparently. Jun 24 06:11:37 ondroed: are you making file explorer ? Jun 24 06:11:46 yes Jun 24 06:11:53 it is a test task Jun 24 06:12:07 thanks boodllebat and shadynastys. Jun 24 06:12:16 i need to index sd card for fast searching Jun 24 06:12:23 shadynastys: since object references can be null, I'd just interpret "false" as a null List. Jun 24 06:12:41 not sure how to do that in GSON, but I would _assume_ it's possile Jun 24 06:12:44 boodllebat sorry i meant to direct that to genoskill Jun 24 06:12:44 possible* Jun 24 06:13:37 ondroed: have you tried tree-based search ? Jun 24 06:13:44 I'll leave others here to handle the GSON side :) you might have more luck in about 10 hours or so, when the USA wakes up. Jun 24 06:13:44 shadynastys: I have words confused. Doesn't "pass by value" mean that you pass a copy? Jun 24 06:14:05 boodllebat: no, can you give me some url to read? Jun 24 06:14:34 groxx that is along the lines of what i was trying to do. trying to iron out the details. Thankyou. Jun 24 06:15:09 boodllebat: here is how i did filewalker http://privatepaste.com/fba34321da Jun 24 06:15:10 easiest way to think of Java is probably "pass by copy of reference" when dealing with objects, "pass by value" when dealing with primitives. You can't make "out" parameters. Jun 24 06:15:28 java is pass by value, including object references Jun 24 06:15:35 ondroed: well there are many tree-based traversal algorithm , there is not one you have read all of them so search for "Traversal Algorithms" or "Tree-based Traversal Algorithms" Jun 24 06:15:43 you _can_ provide an object as an argument, and modify that argument. but you can't replace it. Jun 24 06:16:51 ondroed: neat !! but you work more on that read away few algorithms. Jun 24 06:24:18 install new software in eclipse is stuck at 0% Jun 24 06:24:25 anyone had thid problem before Jun 24 06:24:28 this Jun 24 06:25:11 its lame when you need to change the value of some primitive in a function; like you want void swap(int& x, int& y) Jun 24 06:25:24 oh it moved abruptly to 28% Jun 24 06:25:27 nvm Jun 24 06:25:51 i see dumb crap in java like void swap(int[] holder1, int[] holder2) Jun 24 06:33:35 lack of out parameters is something java got right Jun 24 06:34:51 pity they didn't think of giving multiple-value-return, though Jun 24 06:35:42 lack of a tuple type sucks Jun 24 06:38:57 that too Jun 24 06:40:13 "Tuple types and expression are no longer supported in Kotlin starting from M3" meh Jun 24 06:43:05 well the kotlin data classes seem pretty short Jun 24 06:43:21 they also didn't like tuples for multiple value returns Jun 24 06:44:29 I didn't argue for tuples. I argued for multiple value returns, and those are a different thing, unfortunately I don't think they can be implemented on JVM :( Jun 24 06:45:15 p_l if i remember from python you can say (a,b,c) = fun() ? Jun 24 06:45:30 * g00s rusty Jun 24 06:45:38 g00s: afaik that uses tuples Jun 24 06:46:06 I was thinking more of (defun function-with-multiple-value-return () (values 1 2 3)) Jun 24 06:46:22 swift loves tuples too Jun 24 06:47:33 and (values) is related to embedded multi-value return functionality in function call protocol, not passing an object back which is handled for you by syntax sugar Jun 24 06:47:46 right Jun 24 06:47:49 like func minMax(array: [Int]) -> (min: Int, max: Int) { Jun 24 06:48:09 hm yeah swift has named tuples Jun 24 06:48:33 code that isn't interested in values other than first one from my example doesn't need to know or care about there being anything other than 1 returned by function Jun 24 06:50:25 often i think it would be so nice if rxjava could use tuples , so instead of making these classes that hold multiple things Observer something like Observable<(int, int, Object)> Jun 24 06:50:53 you just can't have nice things with java :) Jun 24 07:04:28 what if i download the whole package android.animation and place it in my app. is their any licence violation in this? Jun 24 07:05:14 its because that package is not available prior to API 11 . and i am supporting min 8 Jun 24 07:16:14 t2 Jun 24 07:16:17 t2mkn: https://github.com/JakeWharton/NineOldAndroids Jun 24 07:17:31 ya i came acors that lib. Jun 24 07:17:46 then whats the prob Jun 24 07:18:37 no problem Jun 24 07:18:52 so r u going to use it? Jun 24 07:18:57 but is it possible to add android packages directly to app Jun 24 07:19:10 not yet decided Jun 24 07:19:22 use nineoldandroids Jun 24 07:19:31 or, why are you supporting such a low api number Jun 24 07:20:35 because there are old users still comming Jun 24 07:20:48 how many Jun 24 07:21:06 100+ every day Jun 24 07:21:21 interesting Jun 24 07:21:56 well then, use nineoldandroids Jun 24 07:24:01 r u contributing to 9oldA Jun 24 07:24:11 no one is Jun 24 07:25:02 t2mkn what kind of app is it ? Jun 24 07:25:10 im not some shill Jun 24 07:26:10 g00s u know that lol. u forgot Jun 24 07:26:14 bad really bad Jun 24 07:26:18 :O Jun 24 07:29:54 redeveloping the whole app. cause i cant understand the code any more :P Jun 24 07:30:00 forgot to add docs :P Jun 24 07:30:51 you mean you forgot to write selfdocumenting code Jun 24 07:31:11 yes Jun 24 07:31:57 code quality doesnt matter Jun 24 07:32:18 what matters is having the raw intellect to brute force through the spaghettu Jun 24 07:32:21 spaghetti Jun 24 07:32:35 thats right. Jun 24 07:39:35 with android studio and eclipse open at the same time, is there a way to configure each one to use separate adbs so they don't interfere with each other? Jun 24 07:41:01 why would you do such a thin Jun 24 07:41:04 thing Jun 24 07:41:36 desmin88 'monitor' is still based on eclipse Jun 24 07:42:00 hmm Jun 24 07:42:06 i think i have to shut down AS, start monitor, and then shut down monitor, go back to AS Jun 24 07:42:48 yes my lab still uses eclipse for android dev, but i am looking at some sample apps and its just easier to build them in as Jun 24 07:43:33 adb command line help doesn't say anything about a specific instances so I doubt that it's possible :E Jun 24 07:44:32 zharf, bummer. ty. Jun 24 07:45:36 g00s, I very rarely have need for monitor these days, IDEA has most of the commonly used stuff nowadays Jun 24 07:45:53 but when I do use it I don't think I ever needed to go to such lengths to get both working at the same time... Jun 24 07:46:12 hmm Jun 24 07:49:29 greetings android banditos Jun 24 07:49:54 Damn it man. My phone (Moto G) took a dip. Without any phone now :'( Jun 24 07:50:51 WantToCode oh no :( what happened to it? moto g 2015 due out in Q3 Jun 24 07:51:56 Water splash in the bathroom. Was listening to podcast :'(. Totally fried. Had bought it in March only Jun 24 07:52:26 i'd get it the fuck out of the house Jun 24 07:52:39 lithium batteries don't like getting wet Jun 24 07:52:59 my clumsiness is why im glad my phone is waterproof Jun 24 07:53:16 Hey, about phones Jun 24 07:53:18 been 4 days, tried the rice bag thingy etc Jun 24 07:53:27 I've got an HTC One X+ right now Jun 24 07:53:40 It became slow as hell, I guess I have to thanks Android in general Jun 24 07:53:49 could soon be Asus One X+ :D Jun 24 07:54:01 I wanted to get a waterproof thing to replace it at some point Jun 24 07:54:21 Its only Sony Z series which is waterproof right now? Jun 24 07:54:23 I don't remember exactly, but was last year's phone a Sony Jun 24 07:54:33 g00s, I had an old phone go through the washing machine years ago :p Jun 24 07:54:52 Zharf, Nokia 3310? Jun 24 07:54:57 obviously it broke but the battery didn't express itself too badly Jun 24 07:55:02 it was a motorola something Jun 24 07:55:03 Oh it broke Jun 24 07:55:06 Not Nokia 3310 Jun 24 07:55:08 :D Jun 24 07:55:21 I never liked nokia phones Jun 24 07:55:59 6150 was probably the best I had Jun 24 07:56:03 Oh it was the Z3 Compact Jun 24 07:56:07 This one seemed incredible Jun 24 07:56:33 actually, now that I think of it, the phone was by siemens Jun 24 07:56:53 I think I had a motorola after that Jun 24 07:57:46 The Z3 Compact was marked 5/5 on a website which never marked any smartphone 5/5 Jun 24 07:57:48 phones can't swim ! :p Jun 24 07:57:58 I don't remember which website it was Jun 24 07:58:05 For me this was the second phone. Had Moto Fire Xt530 for ~4 years (Gingrebread, YEAH!!). Bought Moto G2 this march! Jun 24 07:58:40 * capella can't decide what new device to buy ... need to get something newer than a GS3 :/ Jun 24 07:58:59 I'll be stuck with my xperia mini pro until the end of times Jun 24 07:59:03 most likely Jun 24 07:59:42 that or I'll just move on a to a real platform for application development and buy a real phone instead Jun 24 07:59:48 not sure how long sony will be making phones either Jun 24 08:00:07 Oh they marked like 15 other phones 5/5 this year Jun 24 08:00:08 ._. Jun 24 08:00:10 Should've got a N5 while they were to be had Jun 24 08:00:40 yeah, the newer ones have been meh Jun 24 08:02:41 It seems to be the time of chinese companies now Jun 24 08:03:06 Huawei, OnePlus Jun 24 08:03:29 are there any non-chinese guys? Jun 24 08:03:54 Some of them are form taiwan ;) Jun 24 08:04:00 :p Jun 24 08:04:36 all the US can export is movies and disaster capitalism Jun 24 08:05:07 and pesticides i guess Jun 24 08:05:28 and designs for phones to be made in China... "Designed in California" Jun 24 08:05:54 foxconn is replacing a large % of their workforce with robots Jun 24 08:05:56 g00s: afaik it also exports lead Jun 24 08:06:07 p_l yeah , arsenic too .. in rice Jun 24 08:06:26 ALL BOW BEFORE ME (and the 1.X billion Chinese people to the north of me) Jun 24 08:06:33 i have app publishing anxiety Jun 24 08:06:43 i cant click the button, i keep thinking there something else i could do Jun 24 08:07:10 desmin88, these days its good practice to release alpha states :p Jun 24 08:07:25 but be sure to charge people before they release its still alpha, not after it Jun 24 08:08:54 turtles all the way down https://demo.famo.us/blog/images/blog-framework-turtles.jpg Jun 24 08:09:33 lol ^^ Jun 24 08:11:47 * boodllebat is eating cheese and bread Jun 24 08:17:16 Hi all, I used the Facebook SDK to share a selfie. But how can open a 'ShareDialog' without any Bitmap? Jun 24 08:18:02 an uri maybe Jun 24 08:18:44 danijoo, no, maybe not clear, I only want to let the user share some text, no image Jun 24 08:26:33 i use retrofit with Observable, and i try to fetch a json from the internet. After this I .map() and such. Now suppose there's a network timeout, what's a good way of handling this? .doOnError() right after the retrofit call? Or is there some sort of global catch mechanism Jun 24 08:26:51 Why not just handle it in onError? Jun 24 08:27:03 in your subscription Jun 24 08:27:05 At the end of the chain? You have to do it anyway. Jun 24 08:27:20 if there is an error anywhere in your chain, you will get it at the end Jun 24 08:28:55 hmm good point.. :) Jun 24 08:28:56 thanks Jun 24 08:38:16 My app is just under 4k lines of code and is 2.75mb, does that seem high to anyon Jun 24 08:38:17 anyone Jun 24 08:38:26 What is the proper way to style the overflow menu? It seems to be using my default theme text color but the overflow background doesn't always match. Jun 24 08:38:58 are you using appcompat toolbar? Jun 24 08:39:33 I'm using AppCompat, but not the toolbar. Jun 24 08:40:04 not sure then Jun 24 08:46:03 EwoudCP, theres an xml attribute for that Jun 24 08:46:09 something with overflow in its name Jun 24 08:46:48 EwoudCP: you should use toolbar though Jun 24 08:48:12 hi, sorry for my bad english. What do you call a widget that you can spin and choose an item? not a spinner, drop down kind. Jun 24 08:48:35 a widget or a view? Jun 24 08:48:51 hey Jun 24 08:48:56 like in alarm, Jun 24 08:49:50 what alarm Jun 24 08:50:28 the default alarm. Jun 24 08:50:35 in clock. Jun 24 08:50:50 what you guys talking about.. i cleared my chat window my accident :( Jun 24 08:50:57 argyris, stock what. android 1.5? Jun 24 08:51:34 android 4.1.2. clock alarm, hour and min choosing widget. with up and down arrows. Jun 24 08:51:35 *by Jun 24 08:51:47 i dont have this ancient version sorry Jun 24 08:51:53 i want to use something like that. but dunno what that is called. Jun 24 08:52:20 argyris: capture a video from the device Jun 24 08:52:27 so you can show us what your talking about Jun 24 08:52:40 sounds to me like its just a vew pager Jun 24 08:52:43 ViewPager Jun 24 08:53:19 oh no. i hate view pager. still dont understand how to use it after watching like 5 tutorials Jun 24 08:53:29 lol Jun 24 08:54:24 argyris: you could always do a google image search and find what your talking about Jun 24 08:54:41 uploading now. Jun 24 08:55:33 http://forums.androidcentral.com/samsung-galaxy-s3/269382-s3-stock-alarm-problem.html Jun 24 08:55:35 stupid me Jun 24 08:55:46 http://www.pasteall.org/pic/89775 Jun 24 08:55:57 thats not even stock or default Jun 24 08:56:02 thats samsung Jun 24 08:56:07 erm Jun 24 08:56:07 yea. Jun 24 08:56:11 that's samsung. Jun 24 08:56:14 not default? Jun 24 08:56:18 isnt that just a few buttons? Jun 24 08:56:21 and thats just buttons Jun 24 08:56:37 argyris: hey Jun 24 08:56:39 do this Jun 24 08:57:03 argyris: go into your settings and find "About".. keep tapping the "build number" entry Jun 24 08:57:14 now that you mention it, it does seem like just 4 buttons. Jun 24 08:57:17 it will show a count down each time you press until it says "You are now a developer#2 Jun 24 08:57:20 " Jun 24 08:57:53 Once "you're a developer", you'll find you have a new Settings area called Developer Options Jun 24 08:57:57 yea. and? Jun 24 08:58:03 go into that Jun 24 08:58:15 and turn on "Show layout bounds" Jun 24 08:58:17 Yeah, I've looked for the xml attribute for it, but even "actionOverflowMenuStyle" appears to have no effect. Jun 24 08:58:18 * danijoo is always happy when android confirms he is really a developer Jun 24 08:58:43 EwoudCP, did you create an overflow style? Jun 24 08:58:51 * Napalm feels like a old fart when he has to do it.. its now just a reflex Jun 24 08:58:54 yes, did it Jun 24 08:59:13 and yes, the arrows have separate bounds. Jun 24 08:59:15 EwoudCP: are you using AppCompat? Jun 24 09:00:05 argyris: since I dont have a samsung device to hand I cant find out for myself.. do the numbers animate at all when you press the arrows.. or do they just change Jun 24 09:00:29 Sure, but no effect. Although I do have to admit I'm not exactly clear on what is supposed to change the background color. I've tried background, windowBackground, popupBackground... Text color doesn't have any effect either. Jun 24 09:00:39 And yes, using AppCompat Jun 24 09:00:50 thats why Jun 24 09:01:02 Anyone good at design here in AS? Jun 24 09:01:06 remove the "android:" prefix from your style attribute names Jun 24 09:02:05 Zajtarn, design? Jun 24 09:02:56 Yeah, I've tried that. Whenever possible, I try the attribute version. Jun 24 09:03:02 EwoudCP: so instead of use Jun 24 09:03:32 I am using the non-light appcompat theme as a base theme though. Does that matter? Jun 24 09:03:34 Napalm it seems to me like they change. not animation. Jun 24 09:03:46 like someone is actually spinning it with force Jun 24 09:03:53 If I create an Adapter that maps 3 values per row, but my layout has 5 views, how can I fill the other 2 views with values that require some calculation first? Jun 24 09:04:29 danijoo yeah like make it look nice, because now my small app doesn't look good with the design. Maybe someone here is better than me and could help me make it look better Jun 24 09:04:33 argyris: so they do animate them Jun 24 09:04:36 lol Jun 24 09:04:58 no Jun 24 09:05:00 no, I dont see the animation. they just change. Jun 24 09:05:07 genoskill: What type of row are you taking about? Jun 24 09:05:09 .... Jun 24 09:05:21 argyris, thats kinda the definition of animation Jun 24 09:05:52 what? isn't it just updating the text? Jun 24 09:06:08 or label? or textview. Jun 24 09:06:11 argyris: anyway, doesnt matter, what were you asking about this screen? Jun 24 09:06:18 barq: row as in each item of a ListView. Jun 24 09:06:54 I think I want a vertical viewpager. with selected one highlighted. Jun 24 09:07:07 what Jun 24 09:07:07 genoskill: What type of Adapter are you using? Jun 24 09:07:14 So I am using the non-"android:" versions of actionOverflowMenuStyle, but I feel I may be missing something obvious. For the overflow style, what should I use as parent? Jun 24 09:07:17 barq: SimpleAdapter Jun 24 09:07:39 Zajtarn, this is more about asking questions. nobody will design an app for you here.. Jun 24 09:07:48 EwoudCP: the one that was already in your theme Jun 24 09:07:50 genoskill: Make the Adapter map to 5 values and do the calculations there. Jun 24 09:08:13 nah I know but I have done most of it, maybe someone just have thoughts on how I could make it look better :D Jun 24 09:08:25 EwoudCP: ctrl+click on your theme parent and follow the AppCompat through each parent.. until you find the one with actionOverflowMenuStyle Jun 24 09:08:45 Zajtarn, post a =screenshot ;) Jun 24 09:08:56 barq: you mean, to override the adapter? Jun 24 09:09:06 theres always lots of opinions here Jun 24 09:09:07 :D Jun 24 09:09:20 genoskill: I don't know. Hard to tell without seeing code. You could extend SimpleAdapter to do what you want for example. Jun 24 09:09:41 we love to destroy layout ideas ^^' Jun 24 09:10:29 danijoo sure one sec, just need to get the picture to this computer in some way. I'll use tw :P Jun 24 09:11:00 :| Jun 24 09:11:20 just make a photo of your phone with computers webcam Jun 24 09:11:20 barq: which method are executed when y do notifyDataSetChanged()? Jun 24 09:11:25 print it out and scan it in Jun 24 09:11:55 hahahah Jun 24 09:12:09 genoskill: notifydatasetchanged. You can look up what the method does. Jun 24 09:12:26 genoskill that method just updates the adapter Jun 24 09:13:23 so if you change the data, like add or delete, then you need to call that to update adapter Jun 24 09:13:37 Zajtarn: but when does the method getView() gets executed Jun 24 09:13:56 genoskill: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.0_r1/android/widget/SimpleAdapter.java#SimpleAdapter Jun 24 09:14:15 I've traced the attribute... I found something. I feel I've already tried this, but it's worth a shot... Jun 24 09:14:22 genoskill: getView method in an adapter is used to create the rows in the list, and it runs one time for each row Jun 24 09:14:43 genoskill: onChanged() of the DataSetObserver of the registered listener of the Adapter Jun 24 09:14:54 genoskill: i think you asking the wrong question here Jun 24 09:14:57 Anyone familiar with this exception https://gist.github.com/anonymous/73ca83a0b61e2888d532 Jun 24 09:14:59 explain what your trying to do Jun 24 09:15:21 I get nothing in my logcat well I get things but I don't get my exceptions from the application Jun 24 09:16:03 Huh. It works. Thanks! Jun 24 09:16:22 neredsenvy: do you have the INTERNET along with any for USB Jun 24 09:16:35 Napalm, quick question: view pager doesn't have to be fullscreen right? I can make it smaller if I am showing only text? Jun 24 09:16:38 Napalm huh ? Jun 24 09:16:45 EwoudCP: was that to me? Jun 24 09:17:23 argyris: omg.. yes Jun 24 09:17:43 sorry, I am very new to almost everything :D Jun 24 09:18:08 argyris: read ths http://developer.android.com/guide/topics/ui/overview.html Jun 24 09:19:33 neredsenvy: oh wait its not from your app Jun 24 09:19:54 no it's android studio Jun 24 09:20:02 Before I even run my app Jun 24 09:20:12 once phone is connected I get multiple of these Jun 24 09:20:18 neredsenvy: something else is listening on the port AS wants to use for USB Debugging.. Jun 24 09:20:38 but the app is still installed on the device and run Jun 24 09:20:40 neredsenvy: it sounds to me like you have adb running from two seperate locations Jun 24 09:20:44 on disk that is Jun 24 09:21:01 I have a clean windows installation, android studio Jun 24 09:21:03 Ok I just want to know how to update at regular intervals the elements of a Listview populated with an Adapter. each elements has a value that I want to increase every second Jun 24 09:21:05 neredsenvy: open a terminal and type adb kill-sever Jun 24 09:21:06 and it's the first time running the app Jun 24 09:21:08 server Jun 24 09:21:12 ok ill try it out Jun 24 09:22:18 genoskill: ugh, your best not using a ListView.. but if you must.. you just change the data and call your adapters notifyDataSetChanged() Jun 24 09:22:51 my next android wear watchface: http://imgur.com/a/cpzyp fear Jun 24 09:24:31 Napalm: thanks. A ListView allows me to show the next item below the others. Are better options other than ListView? Jun 24 09:25:07 genoskill: RecyclerView (its ListView v2).. but I think you should probably stick with the basics for the moment Jun 24 09:25:12 genoskill: want a neat way of doing it? Jun 24 09:25:16 what your asking Jun 24 09:25:22 I am creating a deserializer for some JSON that has been giving me issues. Its 2:30 AM here, can someone please just peek at my solution to make sure its sane. https://gist.github.com/px-amaac/ddef80f8d10459b7fd02 Jun 24 09:26:53 Napalm: im cool for now, i need present this program to teacher in 3 hours Jun 24 09:26:58 hmm check if not boolean. if boolean return null Jun 24 09:27:01 lol Jun 24 09:27:15 android class? Jun 24 09:27:38 danijoo this is how my app looks: http://puu.sh/iANgQ/44e21a13b9.png and http://puu.sh/iANkt/20b9bca9c3.png Jun 24 09:27:42 i know it's shit hehe Jun 24 09:28:10 there is no design at all ^^' Jun 24 09:29:09 haha yeah i know Jun 24 09:29:12 He has some margins in there. :) Jun 24 09:29:17 thats all :D Jun 24 09:29:27 https://www.google.com/design/spec/material-design/introduction.html Jun 24 09:29:31 maybe there are small things I can add in the xml to make it look better Jun 24 09:29:42 more like big things Jun 24 09:29:53 huge things Jun 24 09:30:02 like what? Jun 24 09:30:04 throw some cards in Jun 24 09:30:11 people love cards Jun 24 09:30:15 i don't need like fancy animations Jun 24 09:30:25 for example.. Although I'm not sure cards can be implemented only in XML Jun 24 09:30:31 How can I extract data values inside the Adapter class Jun 24 09:30:44 Napalm how about this kind? http://www.google.com.sg/imgres?imgurl=http://i.stack.imgur.com/X1X9J.jpg&imgrefurl=http://ux.stackexchange.com/questions/22893/do-spinner-based-date-pickers-on-ios-android-detract-from-the-users-experienc&h=211&w=323&tbnid=iTjtXTva6Ry3oM:&zoom=1&docid=r2kdtcwwSYM2bM&ei=nniKVaGdKeOumAXx9LegDw&tbm=isch&ved=0CCoQMygQMBA Jun 24 09:30:47 genoskill: detail. Jun 24 09:31:24 argyris: sounds like you want http://developer.android.com/reference/android/widget/NumberPicker.html or http://developer.android.com/reference/android/widget/TimePicker.html Jun 24 09:32:40 Thank you so much. It was so hard to describe. :D Jun 24 09:33:20 danijoo what are cards? Jun 24 09:33:40 Zajtarn, open the link i posted Jun 24 09:33:43 read through it Jun 24 09:33:46 okok Jun 24 09:36:41 I have a task to do. Make an android app that can insert some rows on a table of a mysql database. I can't really do it with jdbc because after 16 hours of constant trying I don't even know what goes wrong. Is it considered cheating if I make a php powered http interface instead? Jun 24 09:37:23 i Jun 24 09:37:26 https://gist.github.com/anonymous/d577e267b738298a5df0 I'm getting Could not find method android.support.v7.app.AppCompatActivity onCreate referenced in my class Jun 24 09:37:44 ExeciN, "cheating" Jun 24 09:37:55 ExeciN, its good practice actually Jun 24 09:37:55 Using JDBC on Android to connect to mySQL is actually the crappy thing to do Jun 24 09:38:02 dont connect directly to dbs Jun 24 09:38:14 Do put an efficient REST interface in front of your DB and NEVER EVER expose it to the internet. Jun 24 09:38:20 (especially not mysql) Jun 24 09:38:57 I know. This is a case where both the client and the server will be on the same local network. Jun 24 09:39:50 fixed seems wrong onCreate method suggested by android studio Jun 24 09:40:06 ExeciN, doesnt matter Jun 24 09:43:07 g00s: still up??? Jun 24 09:54:59 I have android:text="Search" but still my app shows it in capital letters, why? Jun 24 09:56:19 Hi all Jun 24 09:56:26 Zajtarn: setting some custom fonts? Jun 24 09:56:33 ya phone settings Jun 24 09:57:26 bhans nope I got no fonts Jun 24 09:58:11 I have an issue on the developer console due to the javascript check on the Audience field when you want to do some A/B testing for the store listing of your app. Because of that I can't Save my test at all! Jun 24 09:58:29 Zajtarn: maybe textAllCaps tag = true? Jun 24 09:59:30 Zajtarn: Check app's theme? check you XMLs.......... Jun 24 09:59:53 Here is the issue: as soon as I set my Audience percentage, for example 42.0, it's transformed to 42,2 (with a comma, not a dot) which leads to an error as the format seems to not be good. Do someone as this kind of issue? Jun 24 10:00:31 (sorry transformed to 42,0 not 42,2, but still with a comma instead of a dot) Jun 24 10:01:10 Zajtarn, did you set it to show text in caps in xml? Jun 24 10:02:00 bhans don't have that tag, danijoo nope Jun 24 10:02:27 app's theme? Jun 24 10:04:56 maybe Jun 24 10:05:04 its also default for buttons now i guess Jun 24 10:05:08 at least with material Jun 24 10:06:25 okok how do I change it, do I set that tag to false? Jun 24 10:06:37 try it Jun 24 10:07:03 Zajtarn: No, don't set it to false. You will get what you're trying to get.. just let it be true. lol. Jun 24 10:07:17 GsonBuilder().registerTypeAdapter(Type, TypeAdapter) Is there a way to pass a generic Type here? Gson docs say it supports registering a single handler but I can not find an example of this anywhere. Jun 24 10:07:19 hi! anyone implemented facebook sharing in app? is it possible if user really shared link, or just opened and closed dialog? Jun 24 10:07:20 but how do i fix so it isnt in caps? Jun 24 10:07:41 Zajtarn: Change it. Jun 24 10:07:49 .... how? Jun 24 10:07:54 if i shouldnt set it to false?` Jun 24 10:09:05 Zajtarn: I was being sarcastic. make it false. Jun 24 10:09:13 oh haha okej Jun 24 10:09:14 ok* Jun 24 10:09:29 lol hard to tell in text Jun 24 10:09:44 yeah sure Jun 24 10:15:30 In my app right now so if you press the back button on the phone after you have searched for something, and you come back after pressing that button, the text is saved. But if I press the back button on the app at the top left, the text isn't saved when I go back. Do anyone know how I can fix that? Jun 24 10:16:20 I know how to add a ImageView to my layout if I create it programmatically but what if I have my ImageView in a separate XML file how do I add it ? Jun 24 10:19:09 solved it : P Jun 24 10:22:10 genoskill: got bored > https://gist.github.com/slightfoot/ed91900f99149044852a Jun 24 10:23:10 Zajtarn, read the docs... http://developer.android.com/training/implementing-navigation/temporal.html Jun 24 10:23:52 danijoo_ alright thanks gonna read that Jun 24 10:28:27 Napalm: what's that? Jun 24 10:30:07 If I create an Adapter that maps 3 values per row, but my layout has 5 views, how can I fill the other 2 views with values that require some calculation first? Jun 24 10:30:28 something along those lines.. i dunno.. it just striked me as something interesting to do Jun 24 10:30:38 right, back to actual work Jun 24 10:31:44 Napalm: wow that's a lot of code, i'll check it out. Jun 24 10:31:55 anyone has played with "Vector Drawable" in a canvas with complex shape (thus, many pathes) instead of a regular bitmap? I'm a bit afraid of the perf impact of vector drawable (drawPath is costly compared to a simple drawBitmap) Jun 24 10:32:54 adq: drawBitmap is more costly. Jun 24 10:33:11 adq: drawPath is only more costly if you do not reuse the same Path objects. Jun 24 10:33:40 i played with both of them a lot, and i can confirm and deny depending on the case, i can confirm if you draw a simple path with not so many nodes Jun 24 10:33:45 adq: what i mean is .. Path will be linked with its cached texture on the remote graphics side. so it wont need to be rengerated Jun 24 10:33:57 but i can deny when things become very complex, even with path.rewind() Jun 24 10:34:06 of course, i monitored perf with ddms & stuff Jun 24 10:34:11 Hey. Would this method create an overhead? http://pastebin.com/bpwNhmKf Jun 24 10:34:26 (i was able to achieve 60FPS with a backed bitmap, not with a drawPath, and i'm talking about multiple pathes) Jun 24 10:34:40 this is why i'm asking about vector drawable, because 'im pretty sure it will use drawPath Jun 24 10:35:05 and yes the path does not need to be generated, just drawed everytime Jun 24 10:35:19 (it would be even worse in case of morphing or animation, when the path changes) Jun 24 10:35:31 adq: Paths are always better in this case. the graphics side can optimze it.. a bitmap is a opaque texture which has a fixed about of bandwidth to transfer Jun 24 10:36:06 yes i agree on that too Jun 24 10:36:13 1920x1080x32bit x 60fps = 500Mbit/sec Jun 24 10:36:16 i guess i will have to measure again ;( Jun 24 10:36:54 thx Napalm Jun 24 10:36:57 adq: the new graphics chips use tessellation and other techniques to convert path's to vectors Jun 24 10:37:06 this will be more optimal Jun 24 10:37:16 yup and it's not available before L iirc too Jun 24 10:37:30 adq: what are you actually trying to do? I might have some better suggestions Jun 24 10:38:00 i'm just trying to know in advance if i will use regular png or svg for drawing some troll face inside a canvas ;) Jun 24 10:38:26 adq: right Jun 24 10:38:27 the change is not drastic in code, it's more about having the correct resources in the correct format Jun 24 10:38:54  my next android wear watchface: http://imgur.com/a/cpzyp fear Jun 24 10:38:57 ^ related Jun 24 10:39:15 and the screen resolution is tiny enough to not requiring the bandwidth you mentionned but still, performance matters. Jun 24 10:39:19 adq: i suggest you use vectors.. and on pre-X platform render into bitmap on older Jun 24 10:39:30 adq: essentially providing a cache Jun 24 10:39:34 i also wanted to play with vector drawable, tbh :) Jun 24 10:39:39 adq: if this is for wear.. Jun 24 10:39:47 yup Jun 24 10:39:58 adq: how are you moviing it on the screen? Jun 24 10:40:17 simple offset Jun 24 10:40:35 im not sure you follow my thinking, let me explain Jun 24 10:41:01 if you just update the transformation matrix .. only the matrix itself is transferred to the graphics processor Jun 24 10:41:03 there are many way to move it, from canvas.save + translate + restore Jun 24 10:41:08 or matrix Jun 24 10:41:12 this means more optimal path Jun 24 10:41:14 or simply giving x and y offset coord Jun 24 10:41:21 it does not cost much for that part Jun 24 10:41:26 you know what would be cheaper Jun 24 10:41:30 yes Jun 24 10:41:33 no Jun 24 10:41:34 :D Jun 24 10:41:39 adq: just move the view Jun 24 10:41:44 it's not a view Jun 24 10:41:47 dont render it at a different offset Jun 24 10:41:48 not a regular view Jun 24 10:41:49 make it a view Jun 24 10:41:53 Can someone please confirm if I'm right regarding this. When using Magnetic sensor to make a compass taking the X,Y,Z from Sensor.values we get microTeslas but not relative to the earths magnetic field. When using GeomagneticField it takes those values and returns 'true' north relative to earths magnetic field ? Jun 24 10:41:56 cannot Napalm Jun 24 10:41:59 use a framelayout to layer them on top of each other? Jun 24 10:42:01 and there is no hardware accel on it Jun 24 10:42:07 on what? Jun 24 10:42:07 it's like a wallpaperservice Jun 24 10:42:30 adq: this is the new wear watchface api? Jun 24 10:42:34 it's not my first watchface Napalm Jun 24 10:42:41 nope, it's not so new Jun 24 10:42:44 more than a year at least Jun 24 10:42:56 it is to me, i did my first watchfaces before the API was released :P Jun 24 10:43:03 eheh me too :) Jun 24 10:43:17 adq: one moment Jun 24 10:43:18 was a little hack originally, then they provided an api like wallpaperservice Jun 24 10:43:22 it inherits from it in fact Jun 24 10:43:40 + an abstract engine Jun 24 10:43:46 it's not that great, imho... Jun 24 10:43:49 just noticed that Jun 24 10:44:08 anyway, i will give a try, thx again :) Jun 24 10:45:00 adq: btw, its always going to be hw-accelerated Jun 24 10:45:20 when i test the ishardwareaccel method in the canvas, it returned false last time i checked (few monthes ago for another WF) Jun 24 10:45:26 i was very angry Jun 24 10:45:34 also 1 core on the 4 are disabled on android wear Jun 24 10:45:39 if you're not aware Jun 24 10:46:02 so many caveats in fact, but i think this is to prevent an overheat issue they just don't tell/talk about it Jun 24 10:46:20 i got cpu and bat going up to 55°C on heavy stuff Jun 24 10:46:30 (or after a factory reset...) Jun 24 10:46:42 it's crazy on your wrist (i don't wear it anyway, just dev on it for fun) Jun 24 10:47:12 there were major epics bugs like screen detection was linked to ... LANGUAGES Jun 24 10:47:29 yesterday someone talked about guinea pig ( TacticalJoke maybe) Jun 24 10:47:49 for screen detection, i meant, round or square Jun 24 10:48:08 but i admit, it's easy to criticize :) Jun 24 10:48:17 danijoo_ is this: http://puu.sh/iAQP1/9216178610.png the only thing I need to add in onCreate in MainActivity to fix my problem? Jun 24 10:48:49 Zajtarn, have you tried it? Jun 24 10:49:04 nope I will, should do that before ask maybe :P Jun 24 10:49:12 ... Jun 24 10:52:16 danijoo_ do you know what upIntent is in that code? Jun 24 10:52:54 Does anyone have any idea how I can make a Wordpress site inside webview support offline cache? I have implemented the webview offline method. But I am not sure on how to tell wordpress to cache files. Or does someone can reccomend a simple web cms to use as a backend with wysiwyg editor options :) ? Jun 24 10:53:05 yes i know Jun 24 10:53:23 could you explain? :) Jun 24 10:53:39 the intent for goint up Jun 24 10:53:51 :) Jun 24 10:55:04 yeah but is that like: Intent upIntent = new Intent(this, MainActivity.class) in this case? Because they don't show how they declared it Jun 24 10:55:22 i can't write that in mainactivity so it's weird Jun 24 10:55:59 Zajtarn, read the article before the article Jun 24 10:56:04 about up navigation Jun 24 10:56:12 or no. better read it all Jun 24 10:56:17 I read that Jun 24 10:56:21 the whole "Implementing effective navigation" Jun 24 10:56:51 do it again :) Jun 24 10:57:03 and again. until you find the part where they do Intent upIntent = NavUtils.getParentActivityIntent(this); Jun 24 10:58:15 okok Jun 24 10:58:47 hi, I am confused about which images to put into ldpi, mdpi, hdpi buckets. Lets say that I have two devices - 1) 5in by 5in at 200dpi and 2) 10in by 10in at 100dpi. I also have a 1000px by 1000px image and 500px by 500px image. If I put 500px by 500px into mdpi and 1000x1000 in hdpi, then won't the image look pixelated in 5in device? Jun 24 11:00:21 I read what was given in http://developer.android.com/guide/practices/screens_support.html, but was able to find little about which image resolution should go into which dpi bucket Jun 24 11:09:16 hi, i need to get a contact list by querying group id. something like select * from contacts where groupid = 15 Jun 24 11:09:46 i checked contactcontract.contact table but no related field with group id Jun 24 11:09:51 tnkk, depends on what you want Jun 24 11:10:23 usually you start with one device, adjust the images in a way the fit your needs and then export them to other densities by applying the multipliers Jun 24 11:16:22 danijoo_: yup, that's what I am trying to do. What I really don't understand is why android picks images based on DPI, and not on actual screen resolution(like - if the screen res is 500px x 500px pick an image of approximately of the same resolution) Jun 24 11:17:17 making layout into dp units makes sense - we want to achieve density independence, and dp scales based on device screen size Jun 24 11:17:17 tnkk, what to do when screen resolution is 500x600 in this case? Jun 24 11:18:03 the whole point of dpi is to be independent of pixels Jun 24 11:18:06 and its a good thing Jun 24 11:18:20 because there are devices with really strange ratios Jun 24 11:20:54 Hi all! I have an in-house app where I'd like to add an update feature which just downloads a new apk from the web and installs it to replace the old app. Downloading works fine (md5 sum matches) and I can get the installer (which I launch this way: http://pastie.org/10256334 ) to get all the way to "Installing...". However after a few seconds of the installing screen, the installer app just closes (I Jun 24 11:21:00 can't find anything in logcat) and my app hasn't been replaced Jun 24 11:21:15 When I open the downloaded file manually and install it, everything works as expected. Any ideas? Jun 24 11:22:30 pehlert, never tried that but maybe add intent flags to open the installer in a new process Jun 24 11:22:47 for installation the app must be closed, this might also close the updater when its in the same process Jun 24 11:22:53 just my idea. Jun 24 11:23:06 What flag would that be? Jun 24 11:23:27 Intent.FLAG_ACTIVITY_NEW_TASK Jun 24 11:25:12 danijoo_: Is that really to launch a new process? Will definitely give it a try Jun 24 11:25:52 can anyone suggest me a library to get buttons like these? Jun 24 11:25:52 http://s13.postimg.org/8u1tljlfb/weird_buttons.png Jun 24 11:26:48 I can add the red underline but are there image toggle buttons available? Jun 24 11:26:50 pehlert, http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASK Jun 24 11:27:04 ashwink005, this is a TabLayout Jun 24 11:27:23 ashwink005: you don't need a lib to style buttons Jun 24 11:28:01 ashwink005, http://android-developers.blogspot.de/2015/05/android-design-support-library.html see the section about Tabs Jun 24 11:28:17 danijoo_: I don't want a slidingtablayout.. I want that when I press a button, its background dims and a red underline comes under it Jun 24 11:28:17 its just that, but with icons Jun 24 11:28:30 I know but there is no dimming Jun 24 11:28:34 there is. Jun 24 11:29:07 you can set it do "dimming" by changing the color of selected state Jun 24 11:29:17 danijoo_: That has really solved the problem! Thanks a lot! Jun 24 11:29:41 danijoo_: the text is dimming, not the tab Jun 24 11:30:08 like I said I don't want a "sliding tab" just buttons that have image that dims on pressing Jun 24 11:30:20 and they get toggled Jun 24 11:30:26 and like I said, you can set that in the tabs preference Jun 24 11:30:32 believe me or not ;) Jun 24 11:31:07 its also not hard to do that with normal buttons though Jun 24 11:31:15 just a background image.. Jun 24 11:31:17 ookay.. but won't I need to give it a Viewpager? Jun 24 11:32:45 read the docs Jun 24 11:32:47 wait I read it I don't need one :/ Jun 24 11:33:09 okay can you help me achieve that dimmed image effect? Jun 24 11:40:14 ashwink005: you mean like the stuff on this page? Jun 24 11:40:14 http://www.google.com/design/spec/patterns/loading-images.html Jun 24 11:41:37 Napalm: thats kinda offtopic :) Jun 24 11:41:51 dimmed image in a tab layout Jun 24 11:41:52 http://s13.postimg.org/8u1tljlfb/weird_buttons.png Jun 24 11:41:55 like this Jun 24 11:42:00 danijoo_: thanks! Jun 24 11:42:11 ashwink005: you mean the great background there? Jun 24 11:42:14 grey Jun 24 11:42:39 yeah the grey background in that selected tab Jun 24 11:42:58 ashwink005: do you just want it for touch? Jun 24 11:43:23 yup. When I touch it, it gets selected and stays that way. Jun 24 11:43:31 like a toggle Jun 24 11:43:39 there must be a library or something Jun 24 11:43:45 library :| Jun 24 11:43:53 just call setSelected(true) on the view Jun 24 11:44:00 on setActivated Jun 24 11:44:15 i.e. the imageView? Jun 24 11:44:27 having root, can I disable entirely one of the two mic? Jun 24 11:44:36 try.. since i have no idea what "the imageView" is in this case Jun 24 11:45:33 the imageView is the tab view I'll be using Jun 24 11:45:40 then yea Jun 24 11:45:47 okok thanks :) Jun 24 11:45:59 ashwink005: is it your own background drawable for the tabs? Jun 24 11:47:08 Napalm: what do you mean? Jun 24 11:47:17 i cant make it more cleraer Jun 24 11:47:27 do you set the background on your imageview Jun 24 11:47:28 :| Jun 24 11:47:42 nope Jun 24 11:47:49 hey guys i'm running this query and some for loop, line 5 gives me the right IDs at 72, 73, 74 but once i iterate through those results at line 34 i get the same ID every time the for loop comes to that line in 76, 90, 108 so the shapes i'm drawing for these coord all begun one big connected in shape instead of 3 distincts one http://pastebin.com/FyyN6wif Jun 24 11:48:05 I just use the png on the imageView and add that view to the tablayout Jun 24 11:51:34 right.. so your using the new design library TabLayout? Jun 24 11:51:42 ashwink005: ^ Jun 24 11:52:07 Napalm: yup... planning to do so Jun 24 11:53:09 ashwink005: on your TabLayout in XML add app:tabBackground="@drawable/tab_background_selector" Jun 24 11:53:36 ashwink005: then create a new xml resource called res/drawable/tab_background_selector.xml Jun 24 11:54:28 okok Jun 24 11:54:49 will this tab layout work in gingerbread? Jun 24 11:55:03 Napalm: ^ Jun 24 11:55:06 ashwink005: yes Jun 24 11:55:57 Napalm: and in the selector I can set the backgrounds to wight and light grey right? Jun 24 11:55:59 ashwink005: with something like http://pastebin.com/PAdDTrQW Jun 24 11:57:25 Napalm: thanks man I'll try it! thanks alot I was freakin out :O Jun 24 11:58:50 Is NotificationCompat.Builder deprecated? Jun 24 12:01:23 Zajtarn: http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html Jun 24 12:01:27 doesn't seem to be Jun 24 12:01:50 hmm why do I get Cannot resolve symbol 'NotificationCompat' ? Jun 24 12:04:54 Zajtarn: what targetApi do you have? Jun 24 12:05:39 how do you check that? is it targetSdkVersion? Jun 24 12:05:40 Zajtarn: did you include the appcompat library in your gradle script? Jun 24 12:05:53 Zajtarn: check your gradle script for your target Jun 24 12:06:13 yes i have com.android.support:appcompat-v7:22.2.0 in my dependencies Jun 24 12:06:46 yeah targetSdkVersion is in build.gradle and that is 22 Jun 24 12:09:12 hello Jun 24 12:09:26 what do you think of using static fields to pass objects between activities? Jun 24 12:12:18 it feels like a reasonable tradeoff. Jun 24 12:13:42 Napalm: hey which library do I need to compile to use the Tablayout? Jun 24 12:14:42 compile 'com.android.support:design:22.2.0' Jun 24 12:15:26 thepoosh or were you looking for some other target? Jun 24 12:16:38 Napalm: thanks man ur a life saver Jun 24 12:36:31 why the design choice in android to not let the programmer instantiate an activity, then call something like .show()? Jun 24 12:37:31 paulo_: why would you want to do that? Jun 24 12:37:47 it seems more natural to me. Jun 24 12:38:13 (well, i believe swing does it this way) Jun 24 12:38:33 also it would provide a natural way of passing objects between activities Jun 24 12:39:08 well as we all know swing got everything right :| Jun 24 12:39:18 not sure I follow that last statement Jun 24 12:39:28 natural way? I dont see how Jun 24 12:39:36 Well he does have a point. Jun 24 12:39:45 I have to say.. i disagree Jun 24 12:40:01 the model of what an Activity is is not the same as a Window or JFrame or whatever Jun 24 12:40:06 Not being able to control activity instances is a huge pain all across the board, iOS does that way better with them letting you communicate to viewcontroller after present. Jun 24 12:40:47 Mavrik: I think its a case of misuse Jun 24 12:41:26 Android is pretty much the only UI framework where you're not able to expose an API on your presented view Jun 24 12:41:36 (window, frame, controller, whatever you call it this month) Jun 24 12:41:39 er? Jun 24 12:41:41 you can Jun 24 12:42:08 i think the Android model is much better than most Jun 24 12:42:34 lolcycle :)) Jun 24 12:42:38 having done win32 for a long time.. and the model of chunck all the UI in the same pool and let it work itself out never works Jun 24 12:43:06 Except for all other UI frameworks out here. Jun 24 12:43:27 its its where its better, there is now established boundaries Jun 24 12:43:35 security can be put into place Jun 24 12:43:54 if you want to do something internaly in your activity.. then hell do whatever you like Jun 24 12:44:02 render your whole app on a canvas Jun 24 12:44:17 and Activity doesnt even require a UI Jun 24 12:44:30 and Activity is not a Window or JFrame Jun 24 12:44:48 You're essentially just arguing "This is good because I've always done it like this." Jun 24 12:44:50 but developers seem to treat it that way, and thats where the problem comes in Jun 24 12:44:58 erm.. Jun 24 12:44:59 no Jun 24 12:45:15 That system is crap, you can't even provide precanned activities that can be communicated with without some kind of inheritance of bus fuckery Jun 24 12:45:29 Much less provide setters/getters and other encapsulations Jun 24 12:45:44 The whole frigging existence of the Fragment crap is because Activity is such a terrible UI abstraction Jun 24 12:45:57 you just said it Jun 24 12:46:02 thanks for everything guys you saves me good bye Jun 24 12:46:09 np Jun 24 12:46:18 you think of it as UI Jun 24 12:46:22 Napalm: thanks a lot Jun 24 12:50:26 hi Jun 24 12:50:42 what is the best way to pass a lit of objects to fragment ? Jun 24 12:50:51 i have a list of object serializable Jun 24 12:52:59 t0th_-_: most call Fragment.setArguments with a bundle Jun 24 12:53:37 nice Jun 24 12:53:42 i am using newInstance Jun 24 12:53:50 t0th_-_: http://developer.android.com/reference/android/app/Fragment.html < look at DetailsFragment.newInstance on this page Jun 24 12:54:10 i have a bundle.putSerializable("key", ListOfObject); Jun 24 12:54:12 i have an error Jun 24 12:54:16 Good morning/afternoon/night. Does anyone have experiance with SortedList? I'm struggling with duplicate entires. I've narrowed it down to the findIndexOf method using the compare function of my comparator. The issue is that I've got a boolean that has changed and I'm using it to pin things to the top of the list. This is throwing off the findIndexOf Jun 24 12:54:27 Anyone else experiance anything like this? Jun 24 12:54:55 t0th_-_: is it an ArrayList? Jun 24 12:55:03 clockworkant_: please post code. Jun 24 12:55:07 yes Jun 24 12:55:19 List Jun 24 12:55:21 t0th_-_: are you sure its not a List Jun 24 12:55:26 exactly Jun 24 12:55:27 sorry Jun 24 12:55:28 I made a small android app and now I want to share my code. What do I share? Jun 24 12:55:29 thats not an ArrayList Jun 24 12:56:03 thanks Jun 24 12:56:25 ExeciN: I believe you can git init the entire project. Jun 24 12:56:27 ExeciN: AS creates .gitignore files for the files you dont need. the rest is up to you Jun 24 12:56:31 there's a .gitifnote on the root. Jun 24 12:56:40 *gitignore Jun 24 12:57:03 ExeciN: as paulo_ said. just stick it in a git repo and your fine Jun 24 12:57:27 I wont commit to a git repo. I want to zip it and attach it on an email. Jun 24 12:57:32 if you want, put a license, so people won't have to ask permission to use your code. Jun 24 12:57:47 ExeciN: do that on the entire project dir. Jun 24 12:58:44 ExeciN: zip your entire project dir.. then open the zip remove the build directory and go into your module directory normall "app" and delete the build directory in that also Jun 24 12:58:49 now you can share the zip Jun 24 12:59:50 The entire dir is 21 MB. zipped with max compression is 12MB. I need to get below 10MB. What files can I remove? Jun 24 13:00:02 ExeciN: i just said Jun 24 13:00:06 Napalm: ah I just saw Jun 24 13:01:01 Im trying to create new project with android cli . It asks me gradle plugin version. What should I set there ? Jun 24 13:01:02 cool thanks Jun 24 13:01:18 RusAlex: 2.4 is the latest Jun 24 13:01:22 or Jun 24 13:01:23 oh Jun 24 13:01:29 plugin version Jun 24 13:01:32 thats 1.2.3 Jun 24 13:02:22 changed, rebuilding Jun 24 13:02:56 Napalm: thanks. Jun 24 13:12:33 Does anyone have a reccomendation for a CMS to use as backend for webview apps? Right now am using Wordpress, but it loads slow through the webview. Jun 24 13:12:55 webview will always be much slower than native Jun 24 13:14:17 same goes for wordpress Jun 24 13:14:29 Yea, I could make it native, but its someone-else who should update the content... Jun 24 13:16:04 Datasmurfen: add https://wordpress.org/plugins/json-rest-api/ and then make it native and talk to wordpress using the rest api using Retrofit Jun 24 13:16:27 best you can do.. and the "management" can update the content and stuff still in wordpress Jun 24 13:16:43 aa thanks - will check it out :) Jun 24 13:17:03 Datasmurfen: details here http://wp-api.org/ Jun 24 13:36:17 hello\ Jun 24 13:36:21 https://dl.dropboxusercontent.com/u/64175875/Height%20of%20rows.png Jun 24 13:36:31 can anyone help me to somehow define height of this rows Jun 24 13:37:54 abs25, change your griditem_layouts layout_height to wrap_content Jun 24 13:38:22 or remove it at all. why dont you use only ImageView without the relative outer layout Jun 24 13:38:50 as root element imageView Jun 24 13:38:53 ? Jun 24 13:39:06 yes Jun 24 13:39:28 theres no reason for that relative layout if it only holds one view Jun 24 13:39:53 I am new to this ,so its kinda confusing Jun 24 13:40:12 the thing is it will hold more than just image Jun 24 13:40:14 thats the issue Jun 24 13:40:19 ah ok Jun 24 13:41:13 danijoo_, you think it would work with just imageView? Jun 24 13:41:25 not if you want to add more views later Jun 24 13:41:41 I just made it iwth imagview and still same issue Jun 24 13:43:28 danijoo_, https://dl.dropboxusercontent.com/u/64175875/Height%20of%20rows.png Jun 24 13:49:05 Hey guys, quick question: Jun 24 13:49:36 no so quick eh? Jun 24 13:49:48 What do you guys recommend for connecting an app to a mysql database? A web service built in something such as PHP that uses json to communicate, or finding a way to shoehorn a mysql library into the app? Jun 24 13:50:14 never access mysql directly Jun 24 13:50:29 a'ight :) Jun 24 13:51:25 Thanks! Jun 24 13:53:29 Yeah, now that I think about it, that would be highly insecure. The first person to pick apart the app would have full access to the mysql DB. Jun 24 13:55:37 exactly Jun 24 13:56:07 they woudnt need to decompile Jun 24 13:56:16 i think you can even sniff it from communication Jun 24 14:00:30 well, unless you figured out how to connect to mysql over ssl/tls Jun 24 14:00:42 but, that's not default, so who's going to do that? :P Jun 24 14:00:54 ssl can be sniffed too Jun 24 14:00:59 oh yeah Jun 24 14:02:02 yeah, you can't really rely on SSL to fully protect you. best that you create an API to access data on a remote server. Jun 24 14:05:24 since TabActivity is deprecated, how would i go about creating the TabHost tabhost in this tutorial? http://www.mkyong.com/android/android-tablayout-example/ Jun 24 14:05:41 someone suggested using fragments on stackoverflow but im not exactly sure what they mean by that Jun 24 14:06:25 bobbiejim, we recently got TabLayout. Its part of the design support library Jun 24 14:07:26 yeah i saw that but it isnt defined in my SDK. should i see if theres an update? Jun 24 14:07:44 bobbiejim, its not part of the sdk Jun 24 14:07:51 its in the design library Jun 24 14:08:04 oh ok. welp lemme look into this mysterious design library :P Jun 24 14:08:16 when writing an adapter, you use setTag and getTag, but what is really an tag? Why would you need it? Jun 24 14:08:37 it lets you "tag" data to the view Jun 24 14:08:50 danijoo_ would you recommend using the design library over trying to implement tabs in the tutorial i linked? Jun 24 14:09:01 bobbiejim, definitly yes Jun 24 14:09:04 not sure if I understand what it means, do you have any example? Jun 24 14:09:22 Zajtarn, you have a list of objects you show in the adapter Jun 24 14:09:27 yes Jun 24 14:09:31 you need to access the object in on click event Jun 24 14:09:53 you can tag it to the view in getView(....) or the adapter and use getTag() in the onclick listener to get that object Jun 24 14:10:02 and do something on it as result of the click Jun 24 14:10:11 danijoo_ ok im gonna try that out, im assuming we've gotta throw a jar file into our libs folder or something to add it to our apps? Jun 24 14:10:33 okok so tags are used to access the objects you want to show somewhere? Jun 24 14:11:09 bobbiejim, just add thegradle dependency Jun 24 14:11:55 alrighty Jun 24 14:13:35 Hello, I'm getting this stack trace when trying to perform a http request in a thread on a TextView. Trace: http://pastebin.com/6s29FRWh Im not sure whats wrong. At first I thought it was because the request wasn't threaded but then I added threading. Source: http://pastebin.com/SZp0755J This is the test request that causes the error. Im using a basic rest client that I made. Jun 24 14:15:14 what is content Jun 24 14:15:23 you have NPE, so something is wrong Jun 24 14:15:33 also the new thread doesnt start Jun 24 14:16:01 abs25: you row height problem was because your scaleType on your ImageView was wrong. Jun 24 14:16:08 content is a collection of data returned by the http request (the body,headers, httpversion) Jun 24 14:16:30 what line number is this NPE Jun 24 14:16:38 i should've added the start lemme see that first. Jun 24 14:16:42 Stacktrace or GTFO Jun 24 14:16:43 :D Jun 24 14:17:10 why do people always post stacktraces with not matching line numbers :S Jun 24 14:17:20 thats like posting no stack trace at all. Jun 24 14:17:24 lol Jun 24 14:19:53 Is opengl gameing program easy to learn? Jun 24 14:20:17 better to use some framework like libgdx or andengine Jun 24 14:20:41 its the hardest part to learn actually Jun 24 14:21:10 what is usually the reason behind slow builds? resources or java code? Jun 24 14:21:31 old computers Jun 24 14:21:47 danijoo,I was asking see if it the same as others Jun 24 14:21:54 but new projects build quite fast Jun 24 14:22:03 they are smaller Jun 24 14:22:26 more source -> longer compile time -> slower build Jun 24 14:22:44 but with newest gradle and correct configuration it is pretty decent now Jun 24 14:23:00 gradle 2.4 with plugin 1.2.3 is blazing fast for me Jun 24 14:23:24 opengl es do i need to use ndk? Jun 24 14:23:56 well... gradles equivalent of blazing at least :D Jun 24 14:24:29 perlsyntax: or an engine like Unity Jun 24 14:24:45 New, Stack trace after adding '.start()', App also crashes. http://pastebin.com/yPngNxjT Source: http://pastebin.com/Vg14gytE Jun 24 14:24:58 seems like a problem with the other code.. Jun 24 14:25:10 Napalm.i didn't know i need that. Jun 24 14:25:10 Siamaster: as danijoo_ said.. change your gradle and gradle plugin versions Jun 24 14:25:18 err, the client I made. Jun 24 14:25:25 so weird, when I added some code for the back button to work, the app is stopped directly when you run it :S Jun 24 14:25:43 ACzChef, the error is in WebUtility.java, not your MainActivity Jun 24 14:25:58 perlsyntax: you don't need it.. but you'll probably want something unless you want to write your own game engine from scratch.. in which case good luck pulling your hair out Jun 24 14:26:15 at co.[redacted].[redacted].[redacted].Util.Web.WebUtility.getWebStream(WebUtility.java:130) Jun 24 14:26:17 this line Jun 24 14:26:29 not much of an upgrade from 2.2.1 to 2.4 Jun 24 14:26:39 ok let me ask this, how do you do HTTP requests in android. because this client works fine in a java project. Jun 24 14:26:43 Napalm, i thought android programming is easy then apple sorry. Jun 24 14:26:46 Siamaster, parallel builds enabled? Jun 24 14:26:54 and the other optimization tricks? Jun 24 14:26:54 that line is just inputStream.get Jun 24 14:26:56 err Jun 24 14:27:08 HttpConnection.getErrorStream Jun 24 14:27:17 I think so, everytime I start building I can hear my computer using more than one cpu core Jun 24 14:27:28 .. Jun 24 14:27:29 you can hear cpu? :o Jun 24 14:27:46 i was about to ask the same.. Jun 24 14:27:48 ^^ Jun 24 14:27:54 perhaps 40 sec is acceptable for so much source code I don't know Jun 24 14:28:10 no Jun 24 14:28:11 never Jun 24 14:28:17 :) Jun 24 14:28:20 You can do that, even with the most modern ones, I knew you were gonna comment on that Jun 24 14:28:42 do what Jun 24 14:28:52 hear the cpu working Jun 24 14:29:03 you mean the fan Jun 24 14:29:06 danijoo_: check this out https://plus.google.com/u/0/+SimonLightfoot/posts/HsoKBpm839i Jun 24 14:29:17 yea Jun 24 14:29:27 Siamaster: you want this https://plus.google.com/u/0/+SimonLightfoot/posts/TT1yuzkg8vG Jun 24 14:29:38 sometime ago i read something about 'cracking' rsa 'listening' directly the cpu and getting what its calculating Jun 24 14:29:53 Napalm, thats so beatiful.. Jun 24 14:30:11 thanks Napalm Jun 24 14:30:15 Ashiren, yeah.. someone sniffed passwords with that ^^ Jun 24 14:30:56 danijoo_ I tried with the code but it makes the app not start and it says it stopped directly. Weird, I added the code in onCreate. Isn't that correct ? Jun 24 14:30:57 well hearing cpu directly would be great superpower today Jun 24 14:31:02 danijoo_: reshare it.. lets get em to take some notice :D Jun 24 14:31:24 done :) Jun 24 14:31:54 Zajtarn, code for going back usually belongs to onBackPressed() Jun 24 14:32:06 oh alright, Gonna try that Jun 24 14:32:43 bye everyone Jun 24 14:36:28 danijoo_ yeah it worked now but it didnt solve my problem :/ Jun 24 14:37:41 danijoo_ , will most devices support the new design library? at least, any that have updated up to 5.0 Jun 24 14:37:51 i didnt realize how new it was Jun 24 14:38:52 ok Jun 24 14:40:55 design lib supports all the way down to v7 Jun 24 14:42:09 Alright thanks guys, it was a permission problem. Jun 24 14:42:10 oh ok cool Jun 24 14:42:31 dont i have to have the user update it though? or at least have a check to make sure they have the latest Jun 24 14:43:34 erm.. I think you compile it into your app, don't you? Jun 24 14:45:10 oh. yup. you are correct. lol Jun 24 14:45:19 noob here, if it isnt obvious Jun 24 14:56:33 https://gist.github.com/anonymous/13e000db7f4c99fbbfa9 I know that when creating a ImageView and using layout.addView I can pass parameters where to position my ImageView but what about when I inflate my layout with an ImageView and than retrieve that ImageView how can I set it's x, y coordinates on screen ? Jun 24 14:57:10 erm.. what? Jun 24 14:57:13 lol Jun 24 14:57:49 neredsenvy: do you mean match_parent/wrap_content? Jun 24 14:58:19 I get the X & Y coordinate, I inflate my RelativeLayout with an ImageView but this puts it at top left corner of RelativeLayout but that's not where I want it to be positioned I want it to be positioned at X, Y coordinates I have Jun 24 15:00:02 neredsenvy: you do know that on android you dont really use X,Y in that way Jun 24 15:00:14 neredsenvy: the layouts have to work on a range of different screen sizes and devices Jun 24 15:00:14 why not ? Jun 24 15:00:21 so ? Jun 24 15:00:23 which folder should i use for nexus 7 drawables ? If I put them in drawables-xhdpi it uses the same drawables with handset devices (which results to smaller than what i need) Jun 24 15:00:38 neredsenvy: so if you position something at X:1000 and your screen width is 500.. its now off the screen and the user cannot press the button Jun 24 15:00:42 I get X & Y from onTouch event from OnTouchListener Jun 24 15:00:55 can i have a drawables-large or drawables-sw600dp ? Jun 24 15:01:05 So x & y will be in context of users screen whatever the resolution is Jun 24 15:01:36 csst0111: sw600dp Jun 24 15:01:38 but Jun 24 15:01:50 why not just use hdpi or tvdpi or whatever? Jun 24 15:02:04 ugh.. it really depends on layout Jun 24 15:02:52 neredsenvy: exactly.. if you trying to move a view then you now have a X,Y and its valid for the current display the view is on Jun 24 15:05:32 but X,Y will allways be relative to users device Jun 24 15:05:53 to it will never be the situation where I would position something outside the screen Jun 24 15:06:07 Since user cannot touch something outside the screen : P Jun 24 15:07:02 so.. what are you trying to do Jun 24 15:07:07 neredsenvy: ^ Jun 24 15:08:04 Napalm I get X, Y coordiantes from the onTouch event now I take my relative layout and inflate it with my imageview yes but this puts it at x: 0 y: 0 in RelativeLayout I want to put it at my own X, Y coordinates Jun 24 15:08:48 imageView.setTranslationX(x); imageView.setTranslationY(y); Jun 24 15:13:39 hm Jun 24 15:16:41 How can I make screenshot of transparent layout to be transparent also (not black)? Jun 24 15:17:18 Napalm works however it only shows it for a second and then disappears could it be because I'm not setting z axis as well ? Maybe it put's it behind the bottom ImageView ? Jun 24 15:18:12 neredsenvy: no its probably for a completly different reason Jun 24 15:18:18 how are you inflating your imageView Jun 24 15:18:58 I'm trying to create a list key : { stuff, stuff, stuff} rather than an array key : [ stuff, stuff, stuff ]. jsonObject.accumulate(key, stuff); creates an array. afaik put replaces, so not what I want either. Jun 24 15:20:17 neredsenvy: check this out https://gist.github.com/slightfoot/a7de4ecdc6cf06c68640#file-moveviewtouchlistener-java Jun 24 15:20:25 Syzygy: erm... what? Jun 24 15:20:44 Syzygy: objects must have keys and values, arrays are values only Jun 24 15:23:01 Napalm, I'm trying to create a JSONObject with the data key : { stuff1, stuff2, stuff3 }, but it by doing accumulate, I end up with key : [ stuff1, stuff2, stuff3 ] Jun 24 15:23:15 I believe the second thing represents an object, the first thing an array. Jun 24 15:23:25 uhm array and list. Jun 24 15:23:44 Syzygy: omg.. how many times. it is correct. Jun 24 15:24:19 {} = object and [] = array Jun 24 15:25:42 so if i want to add it as an object instead of as an array I'll have to do what? Jun 24 15:25:50 because I can't find a simple solution Jun 24 15:25:59 except maybe building a string Jun 24 15:26:43 you need a key Jun 24 15:27:07 { "something" : "stuff1", "something_else" : "stuff2" } Jun 24 15:27:13 assuming stuff is your data Jun 24 15:28:28 ah, i think I understand now. thank you. Jun 24 15:31:20 https://dl.dropboxusercontent.com/u/64175875/Height%20of%20rows.png can anyone explainme how to set max height for grid items? Jun 24 15:31:31 i just said Jun 24 15:31:58 abs25: change your android:scaleType on your ImageView to fix your problem Jun 24 15:32:27 abs25: you can also add android:adjustViewBounds if you want also Jun 24 15:33:10 scaleType to what value? Jun 24 15:34:34 Napalm, ^ Jun 24 15:35:19 centerInside perhaps.. Jun 24 15:37:46 abs25: Are all the images always going to be the same dimensions? If so, set your imageview width/height to match Jun 24 15:38:07 hey Jun 24 15:39:35 quinnjn, to match like a constant for example 100dp? Jun 24 15:40:12 :| Jun 24 15:40:29 abs25: yeah, if your images are always going to be 100dp x 100dp, then the gist is layout_width="100dp" layout_height="100dp" Jun 24 15:40:56 obv you'll need multiple images though for each density bucket Jun 24 15:41:01 isnt that gona loop bad on tablets? Jun 24 15:41:09 https://github.com/varesa/icinga_android/blob/master/app/src/main/java/fi/dy/esav/icingaandroidclient/IcingaWidgetService.java#L55 Jun 24 15:41:26 yes thats why you have a @dimen/my_image_size Jun 24 15:41:31 I am getting a UnknownHostException: host == null Jun 24 15:41:41 and change it in the resources depending on tablet or phone or whatever you like Jun 24 15:42:08 say the tablet is xxhdpi, xxhdpi = 3x, so you'll need a 300px x 300px == 100dp x 100dp. Then it'll look fine Jun 24 15:42:12 would anyyou happen to know where i can change the screen timeout period besides the usual menu settings ? Jun 24 15:42:17 i mean the command line version ? :) if possible ? Jun 24 15:42:20 id like to set the screen timeout to 0 or unlimited Jun 24 15:42:20 url.getHost() says icinga_export.esav.dy.fi Jun 24 15:42:50 It worked when I had an IP there instead of hostname Jun 24 15:42:56 Ideas? Jun 24 15:43:13 icinga on android ? :D sounds like fun :D Jun 24 15:43:42 icinga the monitoring tool ? Jun 24 15:43:53 spacedust: just a simple widget to show status Jun 24 15:44:01 but yes Jun 24 15:44:16 abs25: side note, you should also look into RecyclerView over GridView. Jun 24 15:44:28 why Jun 24 15:44:31 is it better? Jun 24 15:46:16 abs25: It's a higher learning curve but I'm pretty sure it's better performance than griview. Otherwise the benefits are: animation, easier to change positioning, nicer touch events Jun 24 15:46:48 varesa: hmm a simple widget doesnt locks the screen ? Jun 24 15:47:06 ah you were refering to the other problem sorry Jun 24 15:50:33 i think i found an option in the developmer menu Jun 24 15:51:27 but its just while charging Jun 24 15:51:28 ufff Jun 24 16:05:27 spacedust: make or install an app that acquires a WAKELOCK? Jun 24 16:06:20 Like maybe "Wake Lock - PowerManager" in the play store Jun 24 16:07:14 A WAKELOCK keeps your device from sleeping, often used by things like movie player apps Jun 24 16:16:28 Hi can someone help me run UI Automator. I am put the sample code given here into Android Studio, but when I run the app nothing happens https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html#build Jun 24 16:18:41 Zythyr: for blackbox testing / uiautomator i've had good luck with this https://github.com/xiaocong/uiautomator Jun 24 16:20:35 Zythyr: you called new CalculatorUiTest().setup() somewhere, right? Jun 24 16:20:53 varesa, where do I call that method? Jun 24 16:24:03 Zythyr: how do you want to trigger the automation? Jun 24 16:24:22 I'm looking for a way to clear the cache of a webview, but leave the cookies intact. Any ideas? Currently I clear the cache by calling view.clearCache(true); in onPageFinished Jun 24 16:28:17 https://vid.me/gWJc cc Napalm (wip: troll watch face), not there yet ;-) Jun 24 16:28:34 still few things to take care of, many custom options already there but not used in this short vid Jun 24 16:29:45 (and yes, white on white sux) Jun 24 16:32:48 condensed my problem to a small paste: http://fpaste.org/236228/16344414/ Jun 24 16:44:36 I have a webview that's loading an url that redirects me to a page on which I want to execute javascript on. onPageFinished seems to not be called for the redirected page. Any idea what I could to do execute javascript on the redirect target page? Jun 24 16:48:22 varesa, if it worked when you added an IP, it's not a problem "internet" permission cause i thought it could have that, so it's probably an issue with your dns, resolv probably fails Jun 24 16:51:21 unrelated, but you might consider switching your logging with Log.v or other Log.* instead of using System.out.println Jun 24 16:54:38 varesa can you help me? Jun 24 16:56:42 Is there any way to make screenshot of a activity bellow the current one? Jun 24 17:05:14 adq: I can ping the host and the address works fine on the devices browser Jun 24 17:05:25 but true it looks like a dns issue to me otherwise Jun 24 17:05:41 varesa> Zythyr: how do you want to trigger the automation?ö Jun 24 17:07:58 hey guys Jun 24 17:08:05 all of a sudden my android project is broken Jun 24 17:08:15 Cannot resolve Symbol R Jun 24 17:09:16 Varesa, I didn't build any app. I am just building a UI automator script to programatically testing multiple apps in my android phone. How do I trigger the automation. Right now its just a simple script "press home button" Jun 24 17:09:44 Zythyr: you need to have some kind of trigger, what causes the automation to begin Jun 24 17:09:54 e.g. pressing a button, starting an app, ... Jun 24 17:11:35 and every reference of R Jun 24 17:11:38 is marked red. Jun 24 17:12:09 when I try to build it Error:(53) No resource identifier found for attribute 'style' in package 'android' Jun 24 17:13:23 Varesa, in case of this example, https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html#build, I added a "main" method calling the setUp() method. Does that mean it triggers? Jun 24 17:13:51 lud: step 1) make sure you don't have an "import android.R" anywhere Jun 24 17:14:07 varesa, checked Jun 24 17:14:53 Zythyr: I'm not sure if android runs a main() function Jun 24 17:15:16 usually you register a Service/Intent/Application/something else in you AndroidManifest.xml Jun 24 17:15:28 varesa, nothing :( Jun 24 17:16:05 varesa, is't the androidmanifest.xml related to a full application, not test? Jun 24 17:16:11 are you on eclipse? Jun 24 17:16:25 no Jun 24 17:16:31 Android Studio Jun 24 17:16:34 1.2.2 Jun 24 17:16:49 IAndroid Sutdio Jun 24 17:17:18 Zythyr: I don't think you can install just a "test" on android, can you? Jun 24 17:17:56 varesa, ktwo fixed Jun 24 17:17:57 thanks Jun 24 17:17:59 (I'm not familiar with such testing on android, but I'd expect it to have to be a part of some bigger unit) Jun 24 17:18:11 but this is a bit weird Jun 24 17:18:12 Error:(53) No resource identifier found for attribute 'style' in package 'android' Jun 24 17:18:42 some googling suggests removing android:, though I find that a bit odd Jun 24 17:18:48 yea Jun 24 17:18:49 me too Jun 24 17:18:59 it works fine on other resource files Jun 24 17:19:34 it could also be that the element doesn't have a style attribute (at the specified API level) Jun 24 17:20:02 (not knowing anything about your code/resource) Jun 24 17:20:04 what are we talking about? Jun 24 17:20:09 varesa, it's Button Jun 24 17:20:11 View Jun 24 17:21:12 although I am using android:style on Button view in other xml files Jun 24 17:21:15 :/ Jun 24 17:22:23 heu Jun 24 17:22:36 is it possible to connect to multiple devices at once with adb? Jun 24 17:22:50 im connecting over wifi, but i can only seem to connect to one device Jun 24 17:22:54 lud: is your xmlns:android namespace definition the same in all of the files/elements? Jun 24 17:27:47 do you guys have thoughts on AppThwacks service? any good? Jun 24 17:34:38 Yo Jun 24 17:34:39 In my app right now so if you press the back button on the phone after you have searched for something, and you come back after pressing that button, the text is saved. But if I press the back button on the app at the top left, the text isn't saved when I go back. Do anyone know how I can fix that? Jun 24 17:35:09 I tried with this code: http://puu.sh/iBcp7/70e37db7ff.png in the onBackPressed() method but it made the app crash Jun 24 17:36:23 Does anyone know how to pass an attribute through xml as a custom attr? Jun 24 17:36:56 ie I have a viewgroup i want to use a custom attr so i can use this constructor for the view (context, null, theRattrValue) Jun 24 17:37:03 and pass theRattrValue through the xml Jun 24 17:37:20 lasserix: you need to declare-stylable Jun 24 17:37:24 yeah Jun 24 17:37:31 just a sec Jun 24 17:37:36 i'll paste something Jun 24 17:39:06 varesa, sorry for the late reply Jun 24 17:39:08 yes Jun 24 17:39:11 they are same Jun 24 17:39:46 http://pastebin.com/rvFc70CQ Jun 24 17:39:52 thepoosh you can see Jun 24 17:39:55 lasserix: https://gist.github.com/yishai-glide/8c6c5e32c8440ce85fbd Jun 24 17:39:56 hi, i have setHasOptionsMenu(true); in my fragment and i have onCreateOptionsMenu, but whit method is not called, why? Jun 24 17:40:37 the poosh this is slightly more complicated, i need to pass the reference of an attribute declared in the theme Jun 24 17:40:38 t0th_-_: some more code please Jun 24 17:40:56 just a sec, I'll add the java code Jun 24 17:41:43 basically i want to override the edittext cursor appearance in this textlayout which you can only do from xml by setting android:textCursorDrawable Jun 24 17:41:56 but since its inside a custom view group, how do i pass that reference? Jun 24 17:42:01 as a custom attribute Jun 24 17:42:16 lasserix: refresh Jun 24 17:42:18 i have to use EditText(context, null, theAttr) Jun 24 17:43:03 but tiv:input_text_cursor_styled_color="@style/DerpViewEditTextCursorColorStyle" != the third arguement above Jun 24 17:43:12 R.attr.something != @style reference Jun 24 17:43:37 hmmmm Jun 24 17:43:50 yeah its kinda a pain in the ass Jun 24 17:43:59 lud: no idea then Jun 24 17:45:47 lasserix: The only way to set the text cursor color from code is to use reflection (like the code I posted yesterday). Look at mCursorDrawableRes https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/TextView.java Jun 24 17:45:53 lasserix: so you're creating a new EditText in your custom view and you need to override the cursor with something in the attrs from the parent view? Jun 24 17:46:32 http://stackoverflow.com/a/26543290/1048340 Jun 24 17:46:45 yeah so you can't use a method to override the cursor style, it must come from the xml, so you can do this by defining a reference in your theme, then passing that as R.attr.whatever as the third arguement of the constructor for the edittext, Jun 24 17:47:07 since this edittext is inside a custom viewgroup, i wanted to be able to dynamically assign the cursor attr from a custom attr of this viewgorup Jun 24 17:47:11 but you can only access @style Jun 24 17:47:18 not @attr or whatever Jun 24 17:47:32 even tho the attr points to the same style Jun 24 17:47:58 i guess i could define a few custom cursor styles Jun 24 17:48:04 then just hardcode them as a switch Jun 24 17:48:11 and use an integer custom attr in the xml Jun 24 17:48:35 or just use color, then add all the different colors i need Jun 24 17:48:37 i guess ill do that Jun 24 17:50:42 Help please. Getting "failed to resolve: junit:junit:4.12" error after syncing gradle to project. I am trying to setup for UI Automator https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html#setup Jun 24 17:54:56 thepoosh yeah that worked, kinda a serious bummer Jun 24 17:54:58 but whatever Jun 24 17:57:07 :S Jun 24 17:57:58 Zythyr: Is UiAutomator supported in Android Studio? Jun 24 17:58:59 to fragment or not to fragment? when shoud one use an activity and use a fragment? Jun 24 18:00:32 ventura: depends who you're asking Jun 24 18:00:36 i'm fine with them Jun 24 18:01:19 thepoosh: to me activity are more controllers than viewers, so i use one activity per business logic Jun 24 18:01:47 that is mostly how it's intended to be Jun 24 18:01:50 and, if i need more than one layout in a single control unit, i swype the fragments Jun 24 18:03:05 Hey guys, I use a gridview to display "tickets" Jun 24 18:03:17 I want to animate whenever a ticket appears / disappears so that it's more noticable Jun 24 18:03:25 barq, Yes it is. I got it working on my linux laptop. its not working on my windows Jun 24 18:03:33 but I also sort the list each time a ticket appears to keep everything in order Jun 24 18:03:43 is there an easy way to do this? Jun 24 18:03:55 OK, I heard AS has problems. Maybe they have solved them. Jun 24 18:04:26 tx: viewanimator Jun 24 18:04:31 in getView Jun 24 18:08:17 thepoosh: I think the problem is that I sort after I add the item Jun 24 18:08:26 and so the wrong view gets animated as they are reused Jun 24 18:08:29 if that makes any sense Jun 24 18:08:37 the wrong tile from the users perspective. Jun 24 18:08:54 tx: there are ways around it Jun 24 18:09:10 i recommend looking for Chet Hesse's videos about this Jun 24 18:12:35 is there a way to make Android Studio use my dvorak keyboard layout (os x) ? it appears to be hard-coded for qwerty Jun 24 18:13:58 hi what is the purpose of an empty broadcaster that is registered to a custom intent filter ? Jun 24 18:14:39 does the application (signed with the same cert ) emitting the intent has any clue that the broadcasted intent has been intercepted ? Jun 24 18:16:11 Hello, how are you guys? I just had a quick question as I got stuck on something in the making of my app. I got stuck on an "Add entity" kind of page. I have the layout all completed, except I don't know how to handle the Add "button". Should it be a floating button on the bottom right of the screen, or in the action bar? or is there some type of bottom action bar it should go in? Having trouble finding the most used design patter Jun 24 18:18:53 hi Jun 24 18:19:14 i ahev an error when inflate a menu inside the fragment. Here is my code and error: http://pastebin.com/EATznydy anybody can help me? Jun 24 18:19:15 thanks Jun 24 18:19:48 proq: That seems odd. Usually Apps don't take care of keyboard mapping themselves anymore. Jun 24 18:21:37 Hello folks! Jun 24 18:21:50 can anyone tell me how to get the TabIndicator in a tab (tablayout) ABOVE the tab background? Jun 24 18:22:00 something like this Jun 24 18:22:01 http://s13.postimg.org/8u1tljlfb/weird_buttons.png Jun 24 18:22:03 should I do this with a split action bar? Jun 24 18:22:05 I can't locate R.id.action_do_task. Did it change to something new? Jun 24 18:22:42 barq: the control key mappings are qwerty which appears to be custom coding, the command keys respect my dvorak mapping which would imply it is using OS APIs Jun 24 18:23:21 hey does anyone here have experience with StickyGridHeaders? Jun 24 18:26:34 proq: I use a non qwerty keyboard and can not reaffirm this behavior Jun 24 18:27:06 im using a custom POJO for my model and i need to group items based on a string inside each POJO... it doesn't work.. like ever.. I tried all day but I still don't understand how StickyGridHeaders library groups items Jun 24 18:28:10 any android pros here? Jun 24 18:29:33 how do I get the tabIndicator color above the tab background!? Anyone? Jun 24 18:32:04 Hi, what do you use to draw charts ? I'm trying to use MPAndroidChart, but I getting trouble with it. Is there easier library ? What do you recommend ? Jun 24 18:33:11 hi guys, everytime I refresh my ListView by calling notifyDataSetChanged() of the adapter, my ListView always scroll up Jun 24 18:33:32 how can I refresh my ListView data without moving the current position showed Jun 24 18:33:39 thank you very much =) Jun 24 18:34:04 barq: are you using os x yosemite, and your control keys (such as C-r to Run) is using the actual r key from your keyboard layout? Jun 24 18:34:05 If I have a two page activity, with the main activity being a listview of products, and the second activity being an add/edit product activity. should the add/edit activity have a floating "Save" button, or is there some better design pattern for this? Jun 24 18:34:19 im trying to search through a database to get results based off search but my activity keeps crashing ((apecifically on post execute) Jun 24 18:34:31 1. is this query correct for a like query http://pastebin.com/s0ET0VVc Jun 24 18:34:34 proq: I am on Yosemite. Jun 24 18:34:54 proq: And r happens to be in the same place in my and qwerty's layout. Jun 24 18:34:54 zoraj: you can save and set the scroll position Jun 24 18:34:58 and why is my app crashing Im guessing it might be due to the query http://pastebin.com/GQpJEScL Jun 24 18:35:12 stacktrace http://pastebin.com/dRPiQKp1 Jun 24 18:35:23 zoraj: You're doing something else that causes it to scroll up Jun 24 18:35:47 SimonVT, no nothing else Jun 24 18:35:57 notifyDatasetChanged doesn't cause it to scroll up Jun 24 18:36:04 So, yeah :) Jun 24 18:36:16 shmoooz, let me see that Jun 24 18:36:16 Not sure what to tell you Jun 24 18:37:17 SimonVT, ^^ I always thought it was the notifyDatasetChanged which make it scroll Jun 24 18:37:18 DarkChaoz: You have a syntax error in your SQL query Jun 24 18:37:29 barq: what about any control keys that are different? regardless, it is broken for me with a vanilla setup Jun 24 18:37:34 DarkChaoz: Caused by: android.database.sqlite.SQLiteException: near "=": syntax error: , while compiling: SELECT _id,img,Title,Description,Gamescore FROM gow1_achievements WHERE Title like=? Jun 24 18:37:46 zoraj, are you replacing everying in the listview with items with different ids? Jun 24 18:38:13 DarkChaoz: use either like or '=' not both Jun 24 18:38:14 mhmm Jun 24 18:38:50 so it will be like ? Jun 24 18:38:55 Mavrik, no Jun 24 18:38:56 or just like Jun 24 18:39:04 DarkChaoz: Yes like ? or = ? Jun 24 18:39:12 just doing a notifyDataSetChanged() Jun 24 18:39:14 i see, thanks. Jun 24 18:40:45 zoraj: You need to show your code Jun 24 18:41:38 is there a way to get the buttons, like that on a dialog in a typical activity / layout? Jun 24 18:42:06 like that in a dialog, into an activity / layout * Jun 24 18:45:33 anyone know what the default undeline color for the edittext corresponds too in the theme? Jun 24 18:45:37 *theme attribute set Jun 24 18:46:33 SimonVT, I think I finally figure out, because I create a new instance of the adapter Jun 24 18:46:43 everytime I got data from the webservice Jun 24 18:46:51 Hi everyone, I have a a simple question about getting a listview item to be clickable. I've tried to do it here: http://lpaste.net/135139 but when I run my emulator, the println statement never goes to logcat. I'm sure I'm missing something really easy... Jun 24 18:47:26 I figured :) That's why I said you were doing something else than calling notifyDatasetChanged Jun 24 18:47:50 SimonVT, you're right =), thank you Jun 24 18:51:28 hey everyone Jun 24 18:51:43 so im having a decent amount of trouble with tablayout. do i need to create separate fragments when i want to have two different views in different tabs? im using this https://guides.codepath.com/android/Google-Play-Style-Tabs-using-TabLayout mostly to help me Jun 24 18:53:18 hello shadynastys Jun 24 18:53:49 bobbiejim: commonly, tabs are used with a ViewPager Jun 24 18:54:21 I am havivng exactly this problem >> http://stackoverflow.com/questions/16992891/gson-deserialize-json-with-varying-value-types I have made a solution >> https://gist.github.com/px-amaac/1ef7da5a68c1c4512ba8 Jun 24 18:56:10 What I am not understanding is in the stack post the answer includes an empty class extending the requested class. It says do this to avoid a loop. can anyone explain what is going on here? Jun 24 18:59:29 bobbiejim: I think you just need a ViewPager / a PagerAdapter. those don't require fragments, they're just commonly used together. Jun 24 19:01:25 hilarious, my app crashed so bad the screen went off and there was no way to turn off the sound finally unplugging and holding down power button rebooted it Jun 24 19:02:04 I should sell this to hackers as malicious attack tool Jun 24 19:02:25 shadynastys: take a look here: http://google-gson.googlecode.com/svn/tags/1.2.3/docs/javadocs/com/google/gson/JsonDeserializationContext.html Jun 24 19:02:50 can anyone please tell me how to make the TabIndicator color come ABOVE the tabBackground? Jun 24 19:02:53 there's a description of what they mean under the deserialize description Jun 24 19:02:57 please Jun 24 19:03:56 alexfu groxx yeah, i have an adapter (seen in the tutorial i linked) that the viewPager i creates is set to. so from there, i want to show two different views using tabs/swipes, i only need one fragment activity to do this? Jun 24 19:04:05 create* Jun 24 19:04:16 I think it has to do with watching a youtube with videoview in immersive mode fullscreen Jun 24 19:04:17 How can I add a "Done" and "Cancel" button like in the calendar app when your adding an event: http://imgur.com/o33B9Wm Jun 24 19:05:49 bobbiejim: you can use either fragments or plain views. ViewPager doesnt care which you use. it's up to you. If you want to go the Fragment route, then yes each tab page would equate a new Fragment which you define in your ViewPager adapter. Jun 24 19:08:18 alexfu, Ahh I see the problem. I am calling return context.deserialize(json, typeOfT); which in turn calls the custom deserializer again. so infinite loop problem. But The solution is to just create a class extending the base class so you dont call it with the same class? seems funky Jun 24 19:08:58 shadynastys: OR you can just create a new GSON object Jun 24 19:09:06 and use that to deserialize Jun 24 19:09:28 creating a new class is not exactly a good way to solve the problem Jun 24 19:09:30 alexfu ok cool, let me try that out Jun 24 19:09:39 umm I see what your getting at but. Jun 24 19:09:59 This issue occurs for everything returned in json even primitives Jun 24 19:11:06 That gets big quick. too many classes. IF it was a one-off then I could see doing that. Jun 24 19:12:19 shadynastys: if you need to deserialize an object inside of your custom deserializer, just create a new instance of Gson to deserialize that object. Jun 24 19:12:35 Actually that is why I am having an issue with the class extending base solution. I need this for all of my data types including primitives Jun 24 19:13:22 I am only trying to catch the case where the object is not supposed to be a boolean but is a boolean. The rest of the time I want the default deserialization Jun 24 19:13:48 do you suggest me a Graphic / Chart Library ? Jun 24 19:14:32 alexfu: that might work. Ill try it out. Thankyou Jun 24 19:16:40 cool, my widget works :) Jun 24 19:16:40 shadynastys: if your data has an attribute that can be both a boolean or object based on some flag then that's probably an indication of bad design Jun 24 19:16:57 may or may not be in your control though Jun 24 19:18:24 alexfu: Yes its totally bad design. I am trying to get them to change but I do not know what that will take. Ideally they should return nothing or null for empty object Jun 24 19:19:34 can anyone tell me how to get this layout http://s13.postimg.org/8u1tljlfb/weird_buttons.png Jun 24 19:19:47 no sliding just pressing Jun 24 19:19:52 like instagram Jun 24 19:20:22 That is a material toolbar Jun 24 19:20:44 replacement for the action bar Jun 24 19:21:35 ashwink005 https://developer.android.com/reference/android/widget/Toolbar.html and http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html Jun 24 19:21:45 Hey, I'm looking for someone to do material design icons for a few apps at a reasonable price... can you recommend someone? Jun 24 19:22:13 no it isn't Jun 24 19:22:19 its a tabstrip Jun 24 19:22:54 ashwink005: TabLayout Jun 24 19:23:04 looks like a toolbar with the menu button on it. sorry Jun 24 19:23:15 alexfu: yup tried that Jun 24 19:23:28 ashwink005: and? Jun 24 19:23:34 the dimming effect can't be acheived. Tried every thing Jun 24 19:24:08 in the image the background of the tab gets greyed.. and an indicator color comes on the bottom Jun 24 19:24:21 only one of those 2 can be done Jun 24 19:24:52 my UnknownHostException was caused by an invalid hostname after all Jun 24 19:25:20 A hostname cannot contain undescores, though nothing else than my widget seemed to mind Jun 24 19:27:09 ashwink: are you saying only one of the two at a time mappens or you can only get one to work? Jun 24 19:27:30 ashwink005: you mean the background selector? Jun 24 19:27:50 alexfu: yup Jun 24 19:28:24 shadynastys: yeah actually if I make a selector and make it as the tablayout's tabbackground Jun 24 19:28:40 then the tab indicator color gets hidden behind it Jun 24 19:30:31 ashwink005: you can customize selector colors either through overriding the style attribute or creating your custom tab button layout: https://developer.android.com/reference/android/support/design/widget/TabLayout.Tab.html#setCustomView(int) Jun 24 19:30:45 Anyone else have problems with the DDMS in Eclipse after upgrading to Mars? Jun 24 19:30:58 The entries are invisible, but can still be clicked on and debugged. Jun 24 19:31:54 The color of the selector colors is not a problem. It is that is is hidden under the dimmed grey selector background of the tab Jun 24 19:32:11 ashwink005: what? Jun 24 19:32:31 and If I use a custom View, then I can't modify it in onTabSelected since the item returned is a Tab (object) not a View Jun 24 19:32:34 ashwink005: you're talking about the tab indicator? Jun 24 19:33:20 alexfu: yes. The tab indicator gets "Overlayed"/"over-drawn" by the selector background drawable thats set on each tab Jun 24 19:33:42 so all I see on selecting a tab is the icon and the grey background Jun 24 19:34:11 which is drawn above the tab indicator color Jun 24 19:34:49 ashwink005: are you applying any custom coloring/background drawables or anything? Jun 24 19:34:57 https://code.google.com/p/android/issues/detail?id=178064 (lol) Jun 24 19:35:57 alexfu: I'm using this selector http://pastebin.com/PAdDTrQW and applying it on my TabLayout as app:tabBackground="@drawables/selector" Jun 24 19:37:03 ashwink005: that might be why you dont see the tab indicator. remove that tabBackground and see if your tab indicator comes back Jun 24 19:37:14 yeah it does Jun 24 19:37:23 but then how do I dim the tab? Jun 24 19:37:32 like I said, either of the two work Jun 24 19:37:56 ashwink005: well, then that means the tab indicator is set as a background drawable on the tab. Jun 24 19:38:33 alexfu: not really... I can still see the tabIndicator sliding when I switch tabs Jun 24 19:39:18 ah. right Jun 24 19:41:33 I'm using this method: http://pastebin.com/M3ZAtDnC to get a snapshot of my view. However I'm noticing that the buttons are drawn without their shadow. Tried setting the cache quality to high but it didn't help. Any ideas? Jun 24 19:42:22 did you try to capture the parent view to get the shadow asimas? Jun 24 19:43:09 adq, well I am calling this method on the parent of the buttons, so I think it should be drawn :/ Jun 24 19:43:23 ah :| idk then Jun 24 19:45:51 ashwink005: I think that might be a bug Jun 24 19:46:06 in the android API Jun 24 19:46:16 yeah I guess.. google sucks anyways Jun 24 19:46:17 ashwink005: in the design library Jun 24 19:46:39 yeah I guess Jun 24 19:47:00 Does anyone know where I can download the latest Roboto font? The one you can download on the material design page is still the old one (the one with the curly R) and I need the latest one because the vector files use that and all of the text is misplaced. Jun 24 19:47:48 This is the old one for example: the R is curle: http://www.dafont.com/roboto.font Jun 24 19:47:51 curlly* Jun 24 19:47:53 CURLY Jun 24 19:47:55 wtf if i have a bool in xml can i just do customattrs:show_something="true" Jun 24 19:48:01 alexfu: thankyou that worked. not excited about having to create an extra instance of Gson for every object but it works. Jun 24 19:48:02 or do I have to define a bool item and point it to that? Jun 24 19:50:49 Do I seriousily have to add true false Jun 24 19:51:10 just do ref in xml somewhere else if i have attributes defined for a custom viewgroup that are of typ ebool? Jun 24 19:53:09 ashwink005: you can track the following issue: https://code.google.com/p/android/issues/detail?id=176540 Jun 24 19:55:34 is there an xml android: option to make the tablayout fill the entire tab area? e.g. i have 2 tabs only, and they take up about 3/4 of the tab space, but i want them to just split the entire space evenly Jun 24 19:55:43 it might be because they are spinning tabs although im not sure Jun 24 19:55:56 sliding* not spinning lol Jun 24 20:00:08 Hey all. Bit of an RxJava noob here. I'm working with a Retrofit call that returns an Observable - I have it make it's request, and I have a subscriber working with it afterwards. I actually don't need this to be asynchronous - But need to use the Observable as that's how the app is architected. Is there a way I can have my code wait for it to finish with whatever is subscribed, and then return after that? Jun 24 20:04:34 Wait there's no built-in stuff in Android to show a gif Jun 24 20:04:35 Like Jun 24 20:04:39 A gif Jun 24 20:05:13 like a "something that might be animated and might require handling like a movie" Jun 24 20:06:03 bobbiejim: try tabMode set to fixed Jun 24 20:06:43 Ribesg: glide handles gif Jun 24 20:06:49 I see people are using ImageView, VideoView or Canvas Jun 24 20:07:04 yeah because they are masochists Jun 24 20:07:38 but i prefer not to waste a bunch of time writing something from scratch if a decent image library already takes care of that Jun 24 20:07:41 tjbiddle: well, there is this https://github.com/ReactiveX/RxJava/wiki/Blocking-Observable-Operators Also why do you need sync? Jun 24 20:07:47 glide hmm Jun 24 20:07:54 It supports things in assets? Jun 24 20:08:15 Idk better ask your nearest life guard Jun 24 20:08:50 I see it uses uri Jun 24 20:08:56 Maybe it supports file:/// Jun 24 20:09:39 tjbiddle: you can specify which Schedulders to run on Jun 24 20:09:49 alexfu no dice Jun 24 20:10:06 bobbiejim: really? works for me Jun 24 20:10:36 youve got two tabs and they fit the tab area? Jun 24 20:10:44 bobbiejim: yep Jun 24 20:10:46 hmm Jun 24 20:11:06 lemme try one thing Jun 24 20:11:07 bobbiejim: although in my case, i just have basic tabs with text. no custom anything Jun 24 20:11:19 yeah my tabs are just text as well Jun 24 20:11:22 icedp: I have this logic, as well as some other junk all together and it's in an Asynctask already - Trying to add a progress dialog to it, and I'm finding the rxjava code going off on it's own and causing the asynctask to finish while it's actually still processing - causing the progress dialog to be shorter than it actually is Jun 24 20:11:44 and youre using tablayout? alexfu Jun 24 20:11:50 bobbiejim: yes Jun 24 20:11:55 strange Jun 24 20:12:31 does the way you define your height or width have an effect? Jun 24 20:12:44 yes it does Jun 24 20:12:47 got it :P Jun 24 20:13:09 alexfu thanks Jun 24 20:14:11 bobbiejim: did you have fixed width/height? Jun 24 20:14:44 or did you have TabLayout width = wrap_content? Jun 24 20:14:45 i had them both Jun 24 20:14:49 yeah basically Jun 24 20:14:55 in my XML they both were defined as wrap content Jun 24 20:15:04 changed the width to match parent and that fixed it Jun 24 20:15:30 thanks again Jun 24 20:16:58 is there a variant of https://httpbin.org/ that would return JSON data? i'm writing tests for a classroom of students, and it would be nice to work with an API keyless HTTP endpoint that returns json-y data Jun 24 20:17:07 though of course, i guess I can roll my own Jun 24 20:17:32 tjbiddle: but why to use rx at all then? Jun 24 20:17:41 icedp: Yeah I know, it's ass backwards Jun 24 20:18:11 icedp: But the app is already architected in a way where in order to make my api call - it returns an observable Jun 24 20:18:22 So I guess I could write another method that does the same thing - that doesn't Jun 24 20:18:50 Not sure which would be better - duplicate functionality, but one in a synchronous manner - or this clusterfuck lol Jun 24 20:19:14 Thoughts? Jun 24 20:19:45 hello Jun 24 20:19:57 coming back with same question Jun 24 20:19:57 https://dl.dropboxusercontent.com/u/64175875/Height%20of%20rows.png Jun 24 20:20:07 is there a way to set maximum height of grid items? Jun 24 20:20:30 tjbiddle: Rx has a toBlocking method.... Jun 24 20:20:48 alexfu: Yeah - icedp mentioned that above ^ - We're deciding which is better Jun 24 20:20:54 Input? Jun 24 20:21:09 tjbiddle: dupping functionality is a bad, bad idea Jun 24 20:21:35 cuz then you have to manage the same code, twice and possibly in two different places Jun 24 20:21:44 depending on your code Jun 24 20:23:03 I would choose using the existing rx function and calling toBlocking on it Jun 24 20:23:19 * tx Jun 24 20:23:48 alexfu: Cool, that's what I was leaning towards. Thanks! Jun 24 20:25:01 alexfu: What would be the proper method call rather then? As subcribe() doesn't exist on BlockingObvserable. single() ? I only have on Observable coming out of it Jun 24 20:26:02 tjbiddle: if you only have 1 item emitting from your Observable then calling `first` would be fine. Jun 24 20:26:03 for in app billing, how do you tell google what keystore to use to encrypt your receipt? Jun 24 20:26:31 man the material guidlines for their error / floating text dimensions are all bs Jun 24 20:26:53 I'm getting this error and maybe it's because my keystore doesn't match what GPS is expecting http://stackoverflow.com/questions/11068686/this-version-of-the-application-is-not-configured-for-billing-through-google-pla Jun 24 20:34:06 Haha it takes like 15 seconds to load a small gif Jun 24 20:34:11 Awesome Jun 24 20:39:32 for in app billing, how do you tell google which keystore to use to encrypt your receipt? Jun 24 20:42:50 ok, i am not a big fan of xcode, but is the a similar way of visualizing the activity flow as xcode presents? Jun 24 20:50:01 If I have a list view...and I download a bunch of pictures from the internet and I want the pictures to be the background of the list views randomly... how would I update the background of the LIst view on the fly? Jun 24 20:51:12 Hi guys, whats the best approach to check if user has data installed on startup(1st time user), if not, install data, then check if user has made in-app purchase for extra data, if so, install that. I am using asyncTask but not sure it's the best way. What about IntentService? Thoughts... Jun 24 20:51:25 cart_man: myListView.setBackgroundDrawable(); Jun 24 20:56:21 tx, Would that not set all of the list views the same picture? What If I want different pictures on different list views? Jun 24 20:59:12 cart_man: you pass that function a drawable, so in your case, a random drawable as they are downloaded from the internet Jun 24 21:03:18 cart_man: also, I think an image library like Picasso or Glide would work well for this Jun 24 21:09:57 the_fog, Thanks man the Picasso looks great! Jun 24 21:12:01 no probs, it takes away some of the pain like memory management and caching Jun 24 21:20:21 Is DDMS supported for Eclipse Mars? Jun 24 21:28:06 there's an eclipse Mars? Jun 24 21:28:10 use Intellij really Jun 24 21:28:16 get out of stone age Jun 24 21:29:07 Afzal: Not an option. Jun 24 21:29:13 that's sad Jun 24 21:29:15 Ok so Glide sucks Jun 24 21:29:25 Ribesg why? Jun 24 21:29:27 Not an option for that project. Jun 24 21:29:37 It just doesn't work Jun 24 21:29:49 Huge maven dependency tree. Doubt that can be done in Gradle + the build would take forever. Jun 24 21:29:55 It either takes years to load or doesn't load at all Jun 24 21:30:28 I mean it's certainly great for static images Jun 24 21:30:32 But it's really bad at gifs Jun 24 21:32:17 Picasso then Jun 24 21:32:24 Afzal: Eclipse is still superior to IntelliJ in a few key areas, but sadly for Android, not much choice Jun 24 21:32:53 key areas, care to list any? Jun 24 21:33:03 Incremental compilation and Problems view among other Jun 24 21:33:17 intellij has incremental compilation Jun 24 21:33:23 No it doesn’t really Jun 24 21:33:38 Nowhere near as sophisticated as Eclipse's Jun 24 21:33:48 jaana https://www.jetbrains.com/idea/documentation/migration_faq.html Jun 24 21:33:55 find in page 'incremental' Jun 24 21:33:57 Basically it’s limited to the current files and open files Jun 24 21:34:10 but it won’t tell you if any other file is currently breaking unless you ctrl-f9 Jun 24 21:34:16 I’m tired of pressing ctrl-f9 all the time Jun 24 21:34:32 (and it’s even worse if the build is performed by Gradle) Jun 24 21:34:44 With Eclipse, I get the errors in my entire project as soon as I type Jun 24 21:35:30 Afzal: FYI, the very link you gave says “That is, to compile your project, you should use the Make, Compile or Rebuild”, so that’s IntelliJ admitting they just don’t support incremental compilation Jun 24 21:35:38 jaana err you're just wrong here Jun 24 21:35:43 I *just* tested this Jun 24 21:36:00 Picasso doesn't support Gifs Jun 24 21:36:11 removed a brace from an open file, it showed me the error right away. And so did the Problems scope Jun 24 21:36:15 Try it, add _ to a method name, notice that IntelliJ won’t tell you right away which files are no longer compiling. You need to ctrl-f9 Jun 24 21:36:15 Ribesg ion Jun 24 21:36:38 Picasso supports GIFs Jun 24 21:36:42 ah that Jun 24 21:36:51 It just doesn't support animated GIFs Jun 24 21:36:57 Because Android doesn't Jun 24 21:37:11 Afzal: yes, that Jun 24 21:37:22 https://github.com/koush/ion/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+gif Jun 24 21:37:23 fuzzy autocompletion Jun 24 21:37:24 :) Jun 24 21:37:35 IntelliJ users are so used to it they don’t realize they are settling for a poorer compilation model Jun 24 21:37:49 IntelliJ is great but it’s not the golden tool IntelliJ users like to think Jun 24 21:38:13 (sorry for the rant but your “get out of the stone age” remark set me off) Jun 24 21:42:05 yeah that can be a real drag, especially with larger projects that take half a minute or more to rebuild Jun 24 21:43:57 that and there's something weird with the GIT integration - things go wrong a lot, compared to EGit. Still, I don't miss Eclipse at all ... Jun 24 21:44:27 I miss a few things from Eclipse when using IntelliJ and vice versa Jun 24 21:45:06 oh and arbitrary files being invisible from the default project view is annoying too :) Jun 24 21:45:15 Perspectives is also a feature I’d like to see in IDEA, because the window management is pretty painful right now Jun 24 21:47:08 Can't say I'm missing those much, though I did use them. I can imagine someone would, though. Jun 24 21:47:44 Yeah it’s not a deal breaker. Eclipse is not awesome because it has them and IntelliJ is not broken because it doesn’t Jun 24 21:47:48 Just gives additional flexibility Jun 24 21:49:11 So for future reference if you encounter someone who wants to use animated gifs in Android dev Jun 24 21:49:14 https://github.com/koral--/android-gif-drawable Jun 24 21:49:16 This works great :) Jun 24 21:50:18 hi, im trying to debug a launcher app using a 4.4.2 emulator but i'm having issues with running it, even as a regular app and not a launcher. do apps i debug using the emulator need to be signed? Jun 24 21:50:39 I am new to developmnet. I am trying to install UIAutomator in python. Can someone please help me. https://github.com/xiaocong/uiautomator Jun 24 21:55:19 pfn did you ever get your textinputlayout stuff resolved? Jun 24 21:55:27 As long as i keep coding and building my resume ill be able to get a decent 60k job eventually right? I dont just program I read books on things like design patterns, data structures, graphics etc. its just ill never be able to afford college Jun 24 21:56:10 NateRiver: who needs college Jun 24 21:56:23 NateRiver: i never finished college, just started programing all day, everyday, landed a contract gig at a startup, worked 60hour weeks (in addition to school) until they hired me full time at ~40k, they went under but now I am making more than twice that without a degree. Jun 24 21:56:43 Zythyr: did you try following the install instructions? Jun 24 21:56:51 and this new place the hours are better + they have a in house keg Jun 24 21:56:55 cool thats what im doing, i like to program all day Jun 24 21:57:13 NateRiver: just know your --sh Jun 24 21:57:31 ie, in two hours you should be able to make an asyncronous image viewer Jun 24 21:57:48 yeah i can do that Jun 24 21:57:51 that uses REST to get image urls and other data about the image, and display it all Jun 24 21:58:04 (anyways that was my most recent test, apparently alot of people fail this) Jun 24 21:58:39 rockyrosh yes but its not working Jun 24 21:58:58 pfn: i wrote a textinputlayout from scratch, if you needed Jun 24 21:59:24 does everything with hint->label transition animation / error message you can customize underline, cursor, error, label-hint color etc Jun 24 21:59:30 Zythyr: what part are you having trouble with Jun 24 22:00:23 NateRiver: i guess also you need to be in right location, unless you have good portfolio and can freelance remote Jun 24 22:02:42 rockyrosh, I wrote a simiple two line script "from uiautomator import device as d d.screen.on()" When I run it, I get error in terminal "No module named uiautomator" Jun 24 22:03:44 did you install uiautomator using "pip intall uiautomator" Jun 24 22:05:41 Zythyr: did you install uiautomator using "pip intall uiautomator" Jun 24 22:06:22 rockyrosh, yes I did install Jun 24 22:06:29 https://vid.me/pHTt some progress, still not there.. yet Jun 24 22:08:24 icedp: alexfu Btw - forgot to say, all worked perfect using toBlocking() and first() - thanks! Jun 24 22:09:27 Are Dagger 2 Components nothing more than Factory classes? Jun 24 22:09:56 Seems weird to come up with some fancy new term, if that's essentially all they are Jun 24 22:10:14 no? are you thinking of modules? Jun 24 22:10:18 nope Jun 24 22:10:49 oh so you're thinking of the generate component impl as a factory Jun 24 22:11:16 *generated Jun 24 22:11:35 Yes the ones generated from the classes annotated with @Component Jun 24 22:12:10 Dagger 2 wasn't really making sense to me until I dug into the source for the generated Component class :P Jun 24 22:12:57 I wouldn't call it a factory bc it also takes care of setting the new instances on certain fields Jun 24 22:13:00 It's hard to learn what you need to know when learning about something that tries to do work for you, but you still have to provide it input Jun 24 22:13:10 you can't ask a component for an instance of something Jun 24 22:13:11 s/but/because/ Jun 24 22:14:40 missingno: Well the whole point is to ask it for instances. Do you mean ask it for a new instance? Jun 24 22:18:10 rockrosh, I am trying to reinstall with "pip install uiautomator" but its not working Jun 24 22:20:24 Zythyr: http://imgur.com/jacoj :D Jun 24 22:29:37 lasserix, thanks, but I'm just gonna use the rengxuan thing until textinputlayout matures Jun 24 22:34:31 rengwuxian Jun 24 22:40:51 does anyone else really like jetbrains? i feel like all their IDEs are amazing Jun 24 22:52:11 Yeah, I'm a huge fan Jun 24 23:02:01 their level of support is huge Jun 24 23:09:43 why did it take windows so long to come up with the windows 8 flat design look? why not use it in the 90s? everything looked such shit -yet they had all the tech to make a flat design ui Jun 24 23:09:49 After installing UIAutomator python wrapper, https://github.com/xiaocong/uiautomator, I get an error when saying "No module named uiautomator" when I run a python script. Jun 24 23:10:17 NateRiver: changing preferences Jun 24 23:15:34 pfn: if you change your mind take a look: http://pastebin.com/SXmrmPES Jun 24 23:16:30 fairly straight forward you can toggle label, error, underline, clear button, customize the colors for text, hint/label, error, clear button drawable, underline Jun 24 23:16:44 to be easy i just use less alpha for non focus on some parts Jun 24 23:16:55 but much better than incorporating rengwuxians library imho Jun 24 23:17:20 *you can also change the edit text cursor color with a bit boilerplate Jun 24 23:18:43 yiati: Components are injectors Jun 24 23:18:51 http://postimg.org/image/qthxov597/ http://postimg.org/image/lxl272kgj/ for what it looks like Jun 24 23:18:53 the simplest case is a factory, but it scales to so much more than that Jun 24 23:19:07 hint <-> label animates following cyrill mottiers post Jun 24 23:19:31 i dont use app compat stuff too much, but you can swap it over if you look at his post Jun 24 23:20:05 also the label / error text are set as ratios of the edit text font size set, if you need to alter that stuff Jun 24 23:20:19 i tried setting the paddings according to the material spec but it looks wrong so i halved some of the paddings Jun 24 23:21:59 After installing UIAutomator python wrapper, https://github.com/xiaocong/uiautomator, I get an error when saying "No module named uiautomator" when I run a python script. Jun 24 23:30:40 hmm, $380 for nexus 9 32gb... tempting Jun 24 23:30:56 ... Jun 24 23:31:19 recreating HoloLight pop-ups in HTML so they can be consisently ugly popups across all platforms Jun 24 23:39:28 anyone know how to do? http://stackoverflow.com/questions/28937796/using-inputtype-as-an-attribute-of-a-custom-view Jun 24 23:48:55 lasserix: Does the custom view extend TextView? If so, this should work: https://developer.android.com/training/keyboard-input/style.html Jun 24 23:53:05 no its linearlayout Jun 24 23:54:46 heh, somebody got donut 1.6 running on TI calculator with 64mb ram Jun 24 23:55:11 cool Jun 25 00:05:05 lasserix: can you post the code? Why would you need to add the views dynamically? Jun 25 00:06:36 i am not Jun 25 00:07:01 http://pastebin.com/SXmrmPES Jun 25 00:07:07 lasserix: Can you simply create an attribute on your custom view that is identical to inputType, and forward that in your view’s constructor? Jun 25 00:07:11 just writing TextInputLayout from scratch Jun 25 00:07:23 no i have to do it via xml so I can replace the edittext cursor Jun 25 00:07:41 ill just pass in the ints Jun 25 00:10:16 lasserix: There are a bunch of addView(View) there. You are adding them programmatically. Why not just create an XML layout with your EditText, etc. Maybe you are overcomplicating your approach. Jun 25 00:10:26 no Jun 25 00:10:28 it works fine Jun 25 00:10:38 then you have to make a seperate layout for each type Jun 25 00:10:44 defeats the point of adding the attributes Jun 25 00:11:04 why are you creating the custom layout? Jun 25 00:13:22 because the existing ones suck Jun 25 00:13:27 textinputlayout sucks Jun 25 00:13:36 and i want to remove 3rd party dependencies Jun 25 00:14:42 Have you tried https://github.com/rengwuxian/MaterialEditText Look at how they are doing it. Sorry, but I really don't believe you will be able to produce anything better than what is in the design library or MaterialEditText. :P Jun 25 00:16:29 yeah, rengwuxian's implementation is good already Jun 25 00:16:37 design library version sucks, though Jun 25 00:16:39 it fails hard Jun 25 00:17:26 surf2b1: i already have Jun 25 00:17:44 i was using rengwuxians but this is for a big commercial client so i am trying to drop 3rd party libarries Jun 25 00:17:53 that code i posted works, works well enough Jun 25 00:18:03 if you have to add a few things (editor / input type) easy enough Jun 25 00:18:05 and its done Jun 25 00:18:16 supports custom label, error, underline, edittext cursor Jun 25 00:18:26 has the little hint->label aniamtion transitions Jun 25 00:18:35 and you can add a clear button Jun 25 00:18:45 for commercial clients, who cares Jun 25 00:18:54 unless they absolutely refuse it because of license issues Jun 25 00:19:01 I’ve written plenty of stuff for big commercial clients, and 3rd party libraries don’t matter Jun 25 00:19:08 but it's apache2 Jun 25 00:19:36 Unless it’s a license that states you have to divulge your source code, it’s ok. And the nature of Android means most libraries are not licensed by that Jun 25 00:19:56 Unless you’re being paid by the hour, in which case I say go for it :p Jun 25 00:21:39 i like having one class that is simple than an entire third party library Jun 25 00:21:49 the entire third party library is basically 1 class Jun 25 00:21:57 plus i had to do some funky stuff to get the cursor color to change Jun 25 00:22:10 reng doesn't support changing cursor color Jun 25 00:22:18 it doesn't need to Jun 25 00:22:23 colorControlAccent or whatever does that already Jun 25 00:23:47 i.e. set your theme attribute properly and the problem is solved Jun 25 00:29:20 other things need different colors Jun 25 00:29:55 and again, i just dont want to use third party library it took me all of 4 hours to reproduce textinputlayout that doesn't suck with everything reng library does Jun 25 00:30:48 *that i need anyways Jun 25 00:34:00 That’s also 4 hours that you didn’t spend working on the app itself Jun 25 00:34:28 the app is done Jun 25 00:34:40 so i am trying to remove any unnecessary libraries Jun 25 00:41:17 seems every week there is a story on 'why do developers start with iOS' Jun 25 00:42:14 and yet, with all the attention very little original analysis Jun 25 01:07:02 hi everyone. I've been doing research and I can't find an easy way to change the top bar color of my app that is backwards compatible. Jun 25 01:07:07 Is there any easy way to do this? Jun 25 01:08:23 apoc52, congratulations, you are probably the 5000th person to ask this question online in the world Jun 25 01:08:36 thanks JFlash. Is there a prize? Jun 25 01:08:42 lol Jun 25 01:08:59 apoc52, easy is a very subject thing Jun 25 01:09:23 there are ppl who think programming in pure assembly or fortran is easy Jun 25 01:09:55 by easy i mean path of least resistance. I have not been able to find a single setting to change that has no been implemented pre-lollipop Jun 25 01:10:01 not* Jun 25 01:10:03 apoc52, how come the roughly 50 answers given for this on stackoverflow don't satisfy you? Jun 25 01:11:00 what makes you think google would be interested to make a single setting for this? Jun 25 01:30:15 hi, the numberpicker height is way too big. can i make it the same as the button beside it? Jun 25 01:41:04 hi, is there a way to reduce the numberpicker height? Jun 25 01:42:30 get a smaller phone Jun 25 01:45:26 lmao Jun 25 01:49:08 #android-dev: Providing you with practical solutions -- guaranteed. *theme music plays* Jun 25 01:50:11 aww we have theme music? Jun 25 02:11:16 does anyone know a unity dev channel? Jun 25 02:13:15 kungp: #unity3d on freenode Jun 25 02:15:42 thanks! Jun 25 02:33:09 hi there, i’m storing records in a realm database, and want to create a simple sync so i want to store when records were last retrieved for each endpoint, is the best way to store this in shared preferences? Jun 25 02:56:35 I am trying to broadcast an intent and receive it with a broadcast receiver, but every time I send an intent, I get this error: AUDIO_OUTPUT_FLAG_FAST denied by client Jun 25 02:56:38 hints? **** ENDING LOGGING AT Thu Jun 25 02:59:59 2015