**** BEGIN LOGGING AT Sat Mar 21 02:59:59 2015 Mar 21 03:00:19 I think that was established once the MySpace Angle™ term was coined Mar 21 03:14:45 okay i need some help, I cant figure out how to set the colors for this element int he betterpicker library https://github.com/derekbrameyer/android-betterpickers/blob/master/sample/src/main/java/com/doomonafireball/betterpickers/sample/activity/calendardatepicker/SampleCalendarDateDefault.java Mar 21 03:15:00 there is a setStyle method but its paremeters are int style, and int theme Mar 21 03:15:17 what should the theme parameter be? Mar 21 03:24:22 I googled and found this: http://stackoverflow.com/questions/13469084/dialogfragment-in-android-with-theme Mar 21 03:24:35 (Which may or may not be related to the question DadFoundMy just asked. :D) Mar 21 03:24:58 are so posts to spoonfeed answers? Mar 21 03:25:17 unfortuently its not related, my question was specific to the one library :( Mar 21 03:25:43 lasserix: spoonfed? considering ive been googling for several hours and implementing my own solutions i attemped to find someone with experience on this channel Mar 21 03:26:02 no i mean on stackoverflow Mar 21 03:26:21 come on groxx you left us hanging, did you profile those 2 ? :P Mar 21 03:26:26 i gave an answer and the person copied and pasted and ended up implementing a function i left for them to be a recusirve endless loop Mar 21 03:26:30 oh lol oops Mar 21 03:27:24 Any problem in computer science can be solved by adding another layer of stack overflow pastes. Mar 21 03:28:00 DadFoundMy: I searched that repository (which includes samples) and their own setStyle call is this: etStyle(DialogFragment.STYLE_NO_TITLE, 0); Mar 21 03:28:00 but then how did they make SO ? Mar 21 03:28:11 setStyle* Mar 21 03:28:36 TacticalJoke: I found that too. but they were for the old type of ui elements Mar 21 03:28:41 g00s: they were the first programmers Mar 21 03:28:48 i tried it and it didnt work exactly how i planned Mar 21 03:28:55 maybe I will try that path again though Mar 21 03:29:33 I don't know how we survived before StackOverflow. Mar 21 03:29:38 I seem to remember NNTP being a big deal. Mar 21 03:30:07 TacticalJoke: i'm spoiled by learning to program in this day in age Mar 21 03:30:21 * CedricBeust_ used to run an NNTP server back in the days Mar 21 03:30:31 Yeah, things have advanced quite a lot. Particularly distributed revision control and things like intellisense in IDEs. Mar 21 03:30:33 TacticalJoke i used usenet until cox said they weren't going to provide usenet service any more Mar 21 03:30:42 which was like 2011 or something Mar 21 03:30:44 CedricBeust_: I spent so much of my life on newsgroups. :D Mar 21 03:30:48 g00s: alas I have not. been doing workly stuff up until I abandoned the place to catch a train :) Mar 21 03:30:50 g00s: Ah, yeah. Mar 21 03:30:53 Mine stopped, too. Mar 21 03:30:59 i dont even think i was alive when you guys were doing these things Mar 21 03:31:48 heh. I ran a little archive server for a specific newsgroup, circa 2000 or so Mar 21 03:32:02 DadFoundMy: Are you younger than 20? Mar 21 03:32:03 alt.binaries.pictures.fractals, iirc Mar 21 03:32:09 TacticalJoke: 16 Mar 21 03:32:15 Okay. I have 14 years on you. :D Mar 21 03:32:21 Give or take one year, I guess. Mar 21 03:32:43 I spent too much time in that insane asylum comp.os.linux.advocacy. Mar 21 03:32:47 wow what was it like before color tv's?????? Mar 21 03:32:50 haha Mar 21 03:33:18 I grew up playing an NES.. AND I LIKED IT Mar 21 03:33:27 twas simpler times Mar 21 03:33:45 Mario was srs bsnss. Mar 21 03:33:51 i grew up playing in the dirt Mar 21 03:33:58 that too :) Mar 21 03:33:58 It was like... you were either good at Mario or you were a failure as a male. Mar 21 03:34:01 making mud castles ans stuff Mar 21 03:34:47 I bet you can play a "grow up playing in the dirt" sim today. Mar 21 03:34:57 minecraft? Mar 21 03:35:09 then i read recently all these kids are getting myopia because they aren't outside enough, its not clear whether the bright light produces dopamine in the eye or whether they just aren't focusing on stuff far away or what Mar 21 03:35:23 I'm guessing focus is a big deal. Mar 21 03:36:05 myopia can be serious, not just vision but retinal detachment, etc Mar 21 03:36:10 maybe we'll get a good batch of myopic films in about 10-15 years Mar 21 03:36:25 DadFoundMy: My toddler niece is growing up in a world of tablets and Interweb. It's kinda amazing what a futuristic world she has stumbled upon. Mar 21 03:36:56 TacticalJoke: yeah its kinda nuts how new borns are getting phones and tablets Mar 21 03:37:20 im thinking it will really improve ui int he future :D Mar 21 03:39:12 I wonder whether humans of the future will fully immerse themselves into virtual reality. Mar 21 03:39:15 It already has various benefits. Mar 21 03:40:48 That new 360-video thing is kinda cool. Mar 21 03:40:55 I'm looking forward to a virtual reality workspace. 3d windows floating around you, etc. Mar 21 03:41:23 just need some higher resolution screens Mar 21 03:41:41 the oculus rift is still low-res enough that small text is.. problematic Mar 21 03:41:51 Have you tried one? Mar 21 03:41:58 I own one Mar 21 03:42:15 Ah, cool. Never tried here. Mar 21 03:42:22 it's pretty awesome :) Mar 21 03:42:29 elite: dangerous with the oculus rift is.. amazing :) Mar 21 03:53:20 so i'm on android studio on arch linux x86 with the most recent version of jdk and android studio Mar 21 03:53:36 i got android studio started up Mar 21 03:54:47 http://a.pomf.se/kshjwi.png this happened Mar 21 03:56:26 it is just a blank window that didn't load up anything Mar 21 03:58:01 so it your image Mar 21 03:58:18 ? Mar 21 03:58:47 arch x64* Mar 21 04:00:58 your image 404s for me Mar 21 04:01:01 was a joke Mar 21 04:01:55 doesnt 404 here Mar 21 04:09:29 xnil: that's the joy of arch Mar 21 04:09:53 AS works for me, ubuntu 14.04, jdk 1.7 Mar 21 04:10:33 rolling release really means nothing is tested Mar 21 04:12:35 Dat IRC interface tho. Mar 21 04:13:55 isn't that just irssi with some tiled no decorations wm? Mar 21 04:14:25 Probably. I just feel weird about CLI IRC clients. Mar 21 04:14:37 (Even though they all have CLI aspects.) Mar 21 04:15:24 haha wow mirc Mar 21 04:15:26 ppl still use that?? Mar 21 04:15:39 irc originally didn't even have a client Mar 21 04:15:43 you'd just telnet in and type commands Mar 21 04:15:56 jarkko was against them Mar 21 04:15:58 (i'm old) Mar 21 04:17:29 * myke slaps TacticalJoke around a bit with a large trout Mar 21 04:18:12 MyWay: Mar 21 04:18:22 try again Mar 21 04:19:00 myke: You didn't impress me there. Try harder? Mar 21 04:19:12 Tell me more about how you used telnet to type in IRC commands. Mar 21 04:19:39 my point was, it's weird to me that it's weird to someone that irc clients are cli Mar 21 04:20:00 considering they were cli for many years before the first graphical irc client Mar 21 04:20:41 also, irc is all about typing anyway Mar 21 04:21:27 always thought there'd be more JIRC users here Mar 21 04:22:41 There are things that graphical IRC clients do better, such as maintaining lists of favourite channels, applying settings such as "join channels x, y, and z when I connect", presenting Connect/Disconnect buttons. Mar 21 04:23:19 you mean they present a graphical ui for all those things Mar 21 04:23:32 the features themselves were all in text clients long before they were in gui clients Mar 21 04:24:16 and pretty much every irc client i've used cribs ircII's basic slash commands like /server, /join, etc Mar 21 04:24:56 it's so canonical even some in-game chat clients use them Mar 21 04:30:28 myke: Did you ever write an IRC client? Mar 21 04:34:52 TacticalJoke: you should try IRC Cloud Mar 21 04:35:00 Yeah, I've been meaning to check that out. Mar 21 04:35:43 it's like an un-irc client Mar 21 04:35:52 never been so happy to not have to care Mar 21 04:36:20 That's cool. I particularly hate Android IRC clients. ;| Mar 21 04:36:30 IRCCloud looks good on Android, from the screenshots. Mar 21 04:36:49 that's why IRC Cloud is so nice, it's not an Android IRC client, it's an Android IRC Cloud client Mar 21 04:37:12 JakeWharton: Very interesting, going to try this right away. I wonder how it compares to Slack which is... well, pure awesome Mar 21 04:37:21 (but not irc) Mar 21 04:37:39 indeed. i saw you mention a while back about not being able to edit messages with IRC Mar 21 04:37:58 i instinctively try to correct typos here Mar 21 04:38:08 What's an 'Android IRC Cloud client'? Mar 21 04:38:25 meaning it doesn't have to deal with the IRC protocol directly Mar 21 04:38:35 ahh Mar 21 04:38:38 their servers handle all the BS, and the client just connects with their simple, sane API (over websockets) Mar 21 04:38:55 sane-ish Mar 21 04:41:14 Is that what you're using right now? Mar 21 04:41:52 yep Mar 21 04:53:30 fwiw I'm pretty happy with irccloud too. speedy and brainless to use. Mar 21 04:53:55 might have to fork their android app eventually though Mar 21 04:59:07 to what end? Mar 21 05:01:32 Weird. I'm trying to capture packets for a bit of protocol analysis, and so I'm trying tPacketCapture. Unfortunately, when it pops the dialog asking if I trust it, the checkbox can't be checked. Mar 21 05:01:41 What's up with that? Mar 21 05:02:31 i feel like such a noob right now. This library (https://github.com/derekbrameyer/android-betterpickers) sets the backround color as a drawable and requests it in 9patch. If i want to make the backround red do i need to get a red picture? Mar 21 05:02:58 shouldnt i be able to just have the drawable hold a color resource with a hex value? Mar 21 05:08:39 TacticalJoke: not an end-user client but a few bots Mar 21 05:21:10 irccloud might be nice if you can use standard clients Mar 21 05:22:53 do they have a public api ? Mar 21 05:22:57 phew Mar 21 05:23:00 was worried for a moment Mar 21 05:23:10 static map generator limits size for free but you can do scale for high density Mar 21 05:24:08 g00s, would prefer just sticking to irc standard so that common clients can connect Mar 21 05:24:17 JakeWharton: more inline media, different display options. sounds like they're working on search, but I might tackle it if it takes too long Mar 21 05:24:46 why not contribute that? Mar 21 05:24:48 also I want to be able to highlight "threads" on tap or something Mar 21 05:25:12 I probably will. but forking and doing is step 1. Mar 21 05:31:17 pfn: I think they do act as an irc bouncer, so any normal irc client should work too. might have to double check that though. Mar 21 05:31:52 they don't Mar 21 05:32:23 ah yeah, just checked. definitely not / not yet. Mar 21 05:35:38 groxx, yeah, I prefer my various clients too much to use irccloud Mar 21 05:35:55 ctcp pfn version Mar 21 05:35:57 hrh Mar 21 05:39:00 ctcp your mom version Mar 21 05:43:56 has anyone run the current android studio on Ubuntu 12.04? its says that it has been tested on 14.x on the site. Mar 21 05:47:35 i have been looking around, and i just can't find an answer to this... is there a way to cycle through the available apps on the phone and run an available on... sort of like how you can tab through icons on the desktop in windows? Mar 21 05:47:56 say a user is using a physical keyboard with an android phone Mar 21 05:48:13 available one* Mar 21 05:48:20 as in, i cycle through, select one and run it Mar 21 05:49:13 pardon the spelling if there is any in question... i'm drunk as shit Mar 21 05:51:21 lol http://imgur.com/zsrElqP Mar 21 05:51:48 maybe the ceiling is dripping beer or something Mar 21 05:52:42 lol Mar 21 06:00:23 bkboggy: yep, you can build that. I think the starting point is that you get a PackageManager and there's .getInstalledPackages on it. but check out the source for a launcher, it'll cover this. Mar 21 06:00:47 groxx, thanks bud Mar 21 06:08:39 ugh my freaking action bar spinner is not found no matter what I do Mar 21 06:09:07 spinner=(Spinner)menu.findItem(R.id.spinner_chocies).getActionView(); just fails Mar 21 06:09:13 choices* Mar 21 06:09:16 http://i.imgur.com/lgSRoeI.jpg Mar 21 06:09:44 ssh + screen + irssi = android mpbility solution Mar 21 06:09:53 nice Mar 21 06:10:58 myke have you seen mosh https://mosh.mit.edu/ Mar 21 06:11:36 is that the new ssh? Mar 21 06:12:06 yea, haven't needed it but i can see how it'd be awesome Mar 21 06:12:31 at least here 4g rarely drops Mar 21 06:20:36 I found my answer! getActionView() only works if there's a custom actionView from setActionView. Mar 21 06:46:36 Hi! I know this question has been asked quite several times on StackOverflow. But I really didn't find any clue to this. Is there a reliable way to force splitting ActionBar? Mar 21 06:50:57 no Mar 21 06:51:02 use a custom view for the split Mar 21 06:51:22 i.e., just a view in your layer themed like an actoin bar Mar 21 06:54:55 OK. I will create a generic Activity for all Activities which have an action bar at the bottom. And all those Activity inherit it. Is this a correct way to achieve my goal? Mar 21 06:55:10 sure, that'll work Mar 21 06:55:24 Thanks for pointing out a proper way, JakeWharton! Mar 21 08:07:54 Ok so I am trying to add a second menu item to my action bar. The first one was given the flag: Menu.FIRST. There is no Menu.SECOND :(. Can anyone tell me what I should flag my second menu-item in order to place it next to the first one? (The documentation confuses me :/) Mar 21 09:15:12 hi gang! Mar 21 09:15:34 is there an android offtopic? or should i talk shit here? Mar 21 09:20:07 what good will that do Mar 21 09:29:29 hey anyone know why the dates are not printing as the same here https://ideone.com/sNzxaa Mar 21 09:31:25 Because of Integer.MAX_VALUE Mar 21 09:33:29 so how can I convert it to an int Mar 21 09:35:19 Don't. Mar 21 09:35:27 That's why it's defined as a long in the first place. Mar 21 09:35:50 Lonesoldier728, or if you change it into a second Mar 21 09:36:00 make sure you upcast it before doing operations on the number Mar 21 10:02:01 ok so lets say I do not convert it into an int the problem is I cannot do math on it and set it to an integer Mar 21 10:02:39 so lets say I am trying to figure out a custom inputted time - currenttime to let user know what the int total hours left is Mar 21 10:02:54 or is it better to just change int total hours to long total hours? Mar 21 10:07:13 That made no sense.. If you're working with numbers larger than Integer.MAX_VALUE, make it a long Mar 21 10:07:18 That simple Mar 21 10:10:06 startTimeInt = (int) (long) (startTime) so doing this is fine then Mar 21 10:11:03 You can cast as much as you want Mar 21 10:11:31 hi all, quick question - where should i store the java keystore for an app if my code is on an open github repository Mar 21 10:11:41 i'm guessing it's not a smart idea to store the keystore in there is it? Mar 21 10:12:30 Well this is the dilemna and I am trying to find the best way to go about it SimonVT, I have a startTime and I am going to subtract a specific endTime (input) and then I want to turn it into an int, without the milliseconds if needed Mar 21 10:12:50 startTimeInt = (int) (long) (startTime/1000); is this the best way for the conversion or should I be doing something else Mar 21 10:13:04 sorry Lonesoldier728 i missed the start, but you shouldn't have to cast it to long you can just immediately cast it to an int Mar 21 10:13:09 and the ms will be lost Mar 21 10:13:47 A dilemma? This is really basic.. Mar 21 10:13:49 http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html Mar 21 10:13:51 int startFrozen = (int) (startFrozeMillis % Integer.MAX_VALUE); this is another method Mar 21 10:13:59 The various types can only hold so much.. Mar 21 10:14:16 nah i don't think that will work Mar 21 10:14:22 Need to hold a value larger than int supports? Don't use int Mar 21 10:14:35 startTimeInt = (int) startTime; so this should be fine then jimmycarr Mar 21 10:14:59 I dont need anything more than seconds Mar 21 10:15:16 well like i said i missed the start, if your value is going to be longer than MAX_VALUE of int then no you can't do it Mar 21 10:15:17 but you will get the millis and lose the longer periods Mar 21 10:15:32 first divide by 1000 Mar 21 10:15:33 what are you doing with this value, displaying it to the user? Mar 21 10:15:53 you could leave it as a long/float/whatever and use String.format() to show it to them without the decimals Mar 21 10:16:20 if you must store it maybe BigInteger is what you want Mar 21 10:16:39 I am going to be doing a lot of equations Mar 21 10:16:52 based on the time and be storing total hours etc as integers Mar 21 10:17:10 ok well i can't imagine a time in hours ever exceeding the max value of an int Mar 21 10:17:46 all depends what you're using it for though, put some thought into what you expect the data's biggest value to be and choose an appropriate data type Mar 21 10:18:03 long time since epoch in seconds? Mar 21 10:18:10 does anyone know the answer to my question above regarding the key store? Mar 21 10:18:25 jimmycarr: Store it somewhere safe where only you can access it Mar 21 10:18:41 ok thanks SimonVT Mar 21 10:19:19 see jimmycarr https://ideone.com/sNzxaa Mar 21 10:19:32 I wrote up a little format and it does not work the way you mentioned it Mar 21 10:20:42 yep i didn't realise you were working with the entire system millis Mar 21 10:20:47 i thought you were doing a calculation Mar 21 10:20:59 https://ideone.com/sNzxaa if I do this it works Mar 21 10:21:24 int intTime = (int) (long) (longTime/1000); Mar 21 10:21:29 so I need the second long in there Mar 21 10:21:51 can't you just do int intTime = (int) longTime/1000; Mar 21 10:22:10 it's the same as what you've written above as far as i can tell Mar 21 10:22:26 no, it would cast longTime to int Mar 21 10:22:30 then divide by 100 Mar 21 10:22:32 0 Mar 21 10:22:38 oh yeah aha Mar 21 10:22:43 ah so you need the brackets Mar 21 10:22:50 but not the (long) Mar 21 10:22:56 right? Mar 21 10:23:02 eeyup Mar 21 10:23:04 well it works with just (int) Mar 21 10:23:05 ok Mar 21 10:23:32 someone said something about upcasting Mar 21 10:23:41 so thought I needed the (long) in there as well or something idk Mar 21 10:25:22 :o Mar 21 10:25:25 he lied Mar 21 10:26:38 I'm using canvas.drawText(...) to draw some text but I need also to set the bg to opaque. Any ideas ? Mar 21 10:27:47 Draw the text on top of the background Mar 21 11:00:44 I continue to struggle in getting the emulator to show me buttons for home, menu, back, etc. First, would someone clarify this for me: when the emulator shows buttons outsiide the device for these things are those hardware buttons or software buttons (I could see it going either way) Mar 21 11:00:50 just a drawRect() before the drawText call - works now Mar 21 11:20:07 huh Mar 21 11:20:08 https://developer.android.com/google/play/safetynet/index.html Mar 21 11:24:38 hahahaha Mar 21 11:28:56 hi Mar 21 12:55:44 I'm trying to get the ViewPager working. I have a static 4 item adapter. When it starts, it creates fragments (and views) for item 0, and item 1. When I swipe left, I see item1, it creates a fragment and view for item 2 and then fails with this exception: https://gist.github.com/anonymous/97287393fa7ad05f0ff8 Mar 21 12:55:54 Any suggestions? Mar 21 12:56:36 Here is the relevant code: https://gist.github.com/anonymous/d645a1c450b175f4c7c2 Mar 21 12:58:54 java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. Mar 21 12:58:56 https://www.google.fr/?gfe_rd=cr&ei=RGoNVdTPI-HL0wWDw4LQDw#q=++++java.lang.IllegalStateException:+The+specified+child+already+has+a+parent.+You+must+call+removeView%28%29+on+the+child%27s+parent+first. Mar 21 13:05:53 john67: sure, but isn't the ViewPager supposed to do that for me? As near as I can tell, all I'm supposed to do is provide fragments. Mar 21 13:06:14 And it doesn't help that "the specified view" is not specified in the exception Mar 21 13:07:16 btw, that link you posted doesn't help me at all. I end up on the google home page Mar 21 13:09:39 Hi, Shouldn't File IO on main-thread cause me an error? Mar 21 13:09:51 And i'm even using strictmode.enabledefaults Mar 21 13:15:24 i want to run my service at 12:05AM each day how can i do that without opening app? Mar 21 13:20:34 s9iper1 checkout alarmmanager Mar 21 13:21:08 ok Mar 21 13:37:12 Is it possible for an app to take total control of a call? Including reacting in real-time to the incoming audio? Mar 21 13:42:43 hehe. wanna build an answering machine? Mar 21 13:43:00 "yes honey, i am taking a beer with friends" Mar 21 13:43:49 While that would also be cool, more the opposite. Want to detect on-hold music on the line. Mar 21 13:44:13 errr. and the phone to alert you when the waiting time is over? Mar 21 13:44:15 that would be cool Mar 21 13:47:48 From initial research, this seems impossible. Other apps that do it use VoIP or other 3rd party middleman services. Mar 21 13:53:56 Yeah, no access to in-call audio. That's sad. Mar 21 14:23:12 I got a date in the following format: "2015-03-15T00:00:00Z", what's the best way to convert it to "March 15th" ? Mar 21 15:34:10 can someone explain to me why setters in fragments are bad? Mar 21 15:34:41 Are they? Mar 21 15:34:53 It seems thats the generalized opinion Mar 21 15:35:00 using bundles and whatnot Mar 21 15:35:11 I believe because bundles are kept on configuration change? Mar 21 15:35:43 which is not exactly a problem when using viewpager, since it would be the viewpager reinitializing the fragment from the adapter afaik Mar 21 15:36:01 ah, some questions just answer themselves by asking Mar 21 15:44:28 so the requestsingleupdate of locationmanager just doesnt work Mar 21 15:44:37 all this looper story Mar 21 15:47:12 Is ExpandableListView still the best option for creating a listview with categories? Mar 21 15:58:48 I need to install java for Android development. However, I strongly dislike all the java-cruft (web plugins, addons, automatic updates, etc). Is there any unix-like way of installing java on OS X? Mar 21 16:04:12 sandstrom: What you call cruft is that makes installing it seamless, why would you want to do all this manually? Mar 21 16:05:00 CedricBeust I think it installs a preference pane, auto-updater, installs browser plugins (security vuln) etc. Mar 21 16:05:12 sandstrom: No it doesn't Mar 21 16:05:22 Just install the .pkg, click a few buttons and you're good to go Mar 21 16:07:20 CedricBeust I may have misread the cask, perhaps it's actually cleaning up the cruft after the install (https://github.com/caskroom/homebrew-cask/blob/master/Casks/java.rb#L21) Mar 21 16:08:08 sandstrom: You're the one worried about security vulnerability and you choose to install the stuff from brew instead of Google... Mar 21 16:13:04 CedricBeust something like ~90% of all security vulnerabilities last year were from Java, so yes I'd like to limit it's intrusion into my computer to the extent possible. Mar 21 16:13:35 sandstrom: 90%? That's nonsense. And you're talking about the Java browser plugin, which has nothing to do with Android. Mar 21 16:23:18 well, 92.43% of all statistics are made up on the spot Mar 21 16:24:36 Perhaps we are discussing different things, but the numbers in this report are pretty high: http://www.cisco.com/web/offer/gist_ty2_asset/Cisco_2014_ASR.pdf (I've seen other reports on the same thing) Mar 21 16:27:56 sandstrom: that sounds like it's specifically about java in the browser Mar 21 16:28:12 the part about java, at least Mar 21 16:28:40 hi Mar 21 16:28:41 yes, that's all browser vulnerabilities Mar 21 16:28:55 so the solution is to disable java in your browser :) Mar 21 16:29:54 I don't think anyone's going to argue that java applets are secure Mar 21 16:30:23 but that doesn't mean that just having java installed on your computer makes it more insecure Mar 21 16:30:36 i dont have 16gb of fisical ram, so can i compile aosp anyway? Mar 21 16:30:48 mankeletor: that should be fine Mar 21 16:30:57 mankeletor: oh, you don't have Mar 21 16:31:01 how much do you have? Mar 21 16:31:13 Well... try? Mar 21 16:31:19 the answer is likely yes, but it will take a while :) Mar 21 16:31:26 2gb Mar 21 16:31:34 that's going to be painful :) Mar 21 16:31:40 but it should probably work Mar 21 16:31:44 10gb swap Mar 21 16:32:35 I would keep the -j low. probably 2 at the max Mar 21 16:32:37 JesusFreke I agree. It's the java applets, adware etc. that Oracle installs by default that I'd like to avoid. Mar 21 16:33:18 sandstrom: gotcha. I don't specifically know anything about the java installer for mac/windows. Mar 21 16:33:35 im like old skool guy with computers lol im using a 1.7 intel celeron lenovo notebook right now xD Mar 21 16:33:50 mankeletor: that's going to be.. painful :) Mar 21 16:34:08 lol im using this pc only for chat Mar 21 16:34:24 oh, I thought you meant you were trying to compile AOSP on that :) Mar 21 16:35:07 my build pc is an amd phenom quard-core Mar 21 16:35:30 I'd definitely slap some more ram in that thing, if you can :) Mar 21 16:35:37 2g is pretty spare Mar 21 16:36:08 lol i know.. but old ddr2 are difficult to get at these days Mar 21 16:36:27 heh Mar 21 16:36:57 new cp Mar 21 16:36:59 http://www.ebay.com/itm/New-4GB-PC2-6400-DDR2-800MHZ-240pin-DIMM-For-AMD-Motherboard-Desktop-Memory-RAM-/281456828931?pt=LH_DefaultDomain_0&hash=item4188226203 ;) Mar 21 16:36:59 pc Mar 21 16:37:05 time for one Mar 21 16:37:34 $13.29 for 4GB Mar 21 16:37:36 hard to beat Mar 21 16:38:08 i can't manage to request a single update from the location manager Mar 21 16:40:23 ebay.com huh? mmm www.mercadolibre.com.ar is more suitable for me Mar 21 16:41:34 yeah, I was just pointing out that they're available out there, for relatively cheap :) Mar 21 16:41:42 even if you had to ship from the US. heh Mar 21 16:41:58 but in any case, definitely give it a shot with what you've got Mar 21 16:42:04 it will likely work, it will just take a while Mar 21 16:42:06 4gb isn't really enough Mar 21 16:42:24 still slow Mar 21 16:42:31 ok this is killing me, I never know the right options for strechting an image Mar 21 16:42:45 lets say i have an imageview with a set width and variable height Mar 21 16:43:07 whats the configuration for the image to fit the width and adjust the height to stay in proportion to original size? Mar 21 16:43:14 pfn: presumably you could buy multiple modules.. ;) Mar 21 16:43:17 is it scaleType fitXY? Mar 21 16:43:18 always fitXY Mar 21 16:43:39 does fitXY work well with picasso? Mar 21 16:43:41 JesusFreke, they have limits to how much the board supports Mar 21 16:43:57 JesusFreke, ddr2 machines max out at 4 or maybe 8 Mar 21 16:44:09 jvrodrigues, irrelevant Mar 21 16:45:26 without resizing does picasso grab the image in its actual size? Mar 21 16:46:16 8gb (2x4) ddr2 it's like 150 bucks in us? Mar 21 16:48:01 mankeletor: just grab 2 of those 4gb Mar 21 16:48:06 < $30 Mar 21 16:49:07 ah adjustViewBounds needs to be set to true Mar 21 16:49:17 i dont work enough with images Mar 21 16:49:22 (thank god for that) Mar 21 16:50:05 Hey everyone! Mar 21 16:50:06 damn here the cost is about USD 300 Mar 21 16:50:13 too expensive Mar 21 16:50:36 Is there any way to resolve "DebugAndroidTest has an indirect dependency on Android API level 15, but minSdkVersion for variant 'debugAndroidTest' is API level 7". I have been stuck here for a really long time. Mar 21 16:50:41 hey Radther Mar 21 16:51:06 v_s: you must be using some sort of library or feature which wasn't available in api 7 Mar 21 16:51:16 is there no more information about the error, or what part of the code is causing it? Mar 21 16:51:40 compiling going fine by now.. i just stop the X server to get more free mem Mar 21 16:51:56 mankeletor: sounds like you should import a ton from the US and sell them there :p Mar 21 16:52:22 So, like some other dependency? Mar 21 16:53:51 http://pastebin.com/CtHs2UXR Mar 21 16:53:58 this is the paste of build.gradle Mar 21 16:54:19 Execution failed for task ':app:prepareDebugAndroidTestDependencies'. Mar 21 16:54:26 This came along with the error. Mar 21 16:54:52 you set min twice? Mar 21 16:54:56 JesusFreke, it should be a great idea Mar 21 16:55:03 just set min to 15 Mar 21 16:55:09 pfn: one is commented Mar 21 16:55:45 I mean to set it at 7. But doing that pops up the said error. Changing it to 15 resolves the error. Mar 21 16:56:49 then don't set to 7 Mar 21 16:56:59 7 is dumb Mar 21 16:57:09 15 is correct Mar 21 16:58:27 Hah. I want to support lower versions pfn. Mar 21 16:58:50 then don't use libraries Mar 21 16:58:58 min is 15 deal with it Mar 21 16:59:17 which libraries? I want to know which ones are causing the error. Mar 21 16:59:18 v_s: Why do you want to support 7? 7 is ancient. Mar 21 16:59:53 Yeah, over 90% is on or over 15 Mar 21 17:00:39 you figure that out Mar 21 17:00:51 what is best way to retrieve data from dynamically created editText boxes... setting ID then getId or to add them to an arraylist then grab the data like that? Mar 21 17:00:52 Yeah TacticalJoke I know. 7 is like the stone age of android. But I am working on a project belonging to someone else. And I dont want to bump the supported android version. Not until its necessary. Mar 21 17:01:01 And it was working fine with maven. Mar 21 17:01:12 I'm not going to inspect your dependency tree for you Mar 21 17:01:28 maven android plugin us s Mar 21 17:01:36 is stupid, it's so broken Mar 21 17:01:39 v_s: It sounds like it's necessary -- you can't continue development. Mar 21 17:01:47 it builds shit it shouldn't Mar 21 17:01:47 pfn: I am willing to figure that out. Just tell me how to inspect the dependency tree. Just point me in the right direction. Mar 21 17:02:05 :) Mar 21 17:02:16 what is best way to retrieve data from dynamically created editText boxes... setting ID then getId or to add them to an arraylist then grab the data like that? Mar 21 17:02:20 google for gradle dependency tree probably Mar 21 17:02:36 Lot of maven hate here. I got it. Mar 21 17:02:46 I don't use gradle either Mar 21 17:02:52 but maven sucks Mar 21 17:02:52 i have a question.. su.c from system/extras/su/ is compiled at the end of build time? Mar 21 17:02:57 Okay pfn. I'll give another try. Mar 21 17:03:21 *building time Mar 21 17:03:36 mankeletor, if you only want to build su, call make on it directly Mar 21 17:04:27 grep MODULE_NAME system/extras/su/Android.mk Mar 21 17:04:39 make modulename Mar 21 17:04:59 im compiling aosp_x86-eng Mar 21 17:05:22 so you want to build the whole thing, then it doesn't matter when Mar 21 17:06:33 it can be usefull if i make some changes to su.c like comment the part that check for user unallowed to run su Mar 21 17:07:55 *useful Mar 21 17:08:03 damn my english sux Mar 21 17:08:04 xD Mar 21 17:08:54 mankeletor: hopefully you know that that's not going to work on an unrooted device, yes? :) Mar 21 17:09:07 because you won't be able to set it as suid root Mar 21 17:09:35 Lonesoldier728: If you're adding them to a ViewGroup, you could iterate the ViewGroup's children. (Shall I post that twice since you posted your question twice? :D) Mar 21 17:10:03 Yo, having trouble with Android Studio. The following screenshots should explain: Mar 21 17:10:17 http://a.pomf.se/qudcun.png This happened when I tried to press "Start a new ... Project". Mar 21 17:10:33 well that's the only screenshot Mar 21 17:11:22 hehe yeah, it is just added to a linearlayout, so no viewgroup? Mar 21 17:11:42 JesusFreke, it's a function that check my uid and compares it with root, that should be 0 Mar 21 17:12:00 mankeletor: I'm quite familiar with how it works :) Mar 21 17:12:01 I guess it is a viewgroup but Mar 21 17:12:02 Lonesoldier728: http://stackoverflow.com/questions/4809834/how-to-iterate-through-a-views-elements Mar 21 17:12:16 mankeletor: in any case, this is straying a bit offtopic. shall we continue in #android-root? :) Mar 21 17:12:46 xnil: Is this related? https://code.google.com/p/android/issues/detail?id=78647 Mar 21 17:13:17 JesusFreke, i just trying to compile a rooted android for x86 Mar 21 17:13:21 Talks about checking your Android SDK path. Mar 21 17:13:47 Lonesoldier728: A LinearLayout is a ViewGroup. Mar 21 17:14:00 yeah i know, but I have spinners also being added Mar 21 17:14:10 there are plenty of x86 builds already Mar 21 17:14:11 mankeletor: right, but this channel is for android app development, hence the off-topic :) Mar 21 17:14:14 Right. I meant "If you're adding them to a ViewGroup that exists just for them...". Mar 21 17:14:17 so it seems like a mess but maybe this thing radther posted will help Mar 21 17:14:17 rooting is trivial Mar 21 17:14:22 JesusFreke, anytime i can manipulate files from system just starting linux and mount the android partition Mar 21 17:14:23 You could create a ViewGroup just for them. Mar 21 17:14:32 mankeletor: #android-root :) Mar 21 17:15:10 The thing is they are grouped with the spinners so cant do that, ill figure it out Mar 21 17:15:24 setting an Id might be my best bet Mar 21 17:16:31 JesusFreke, im not trying to root android.. im trying to compile aosp for x86 pc Mar 21 17:16:51 JesusFreke, so the root part it doesnt really matters Mar 21 17:17:31 mankeletor: Yes. but compiling AOSP is off-topic for this channel Mar 21 17:17:49 mankeletor: I'm not continuing this discussion here. If you want to chat, head to #android-root Mar 21 17:18:09 mankeletor: or #android Mar 21 17:18:29 but #android-root is probably better Mar 21 17:19:59 oh i see Mar 21 17:20:21 Lonesoldier728: Are the grouped items the same each time. E.g. a spinner and a edit text next to each other? Mar 21 17:20:56 TacticalJoke: probably. Mar 21 17:21:00 hmmmmm what is involved in rolling your own android (without rooting it) Mar 21 17:21:28 i want to add hardware kernel modules Mar 21 17:21:43 #android-root Mar 21 17:21:55 so i can fully support a barcode scannet Mar 21 17:22:16 pfn: that is a #android-root topic too? Mar 21 17:23:08 It's in the topic, "Root/custom ROMs, head to #android-root" Mar 21 17:24:08 Radther - yeah an editText then two spinners Mar 21 17:25:35 Lonesoldier728: It might be a good idea to make them there own view so they are easier to insert. Mar 21 17:26:45 What do you mean? Mar 21 17:27:18 custom view groups Mar 21 17:27:25 encapsulation Mar 21 17:27:34 basic oo Mar 21 17:27:43 In XML make a view that contains what you want, like this https://bitbucket.org/singlett/android-development-advantage/src/952b82eb87bf0f5083b54ce2f962a33d88393aa2/Order/app/src/main/res/layout/order_card_view.xml?at=master Mar 21 17:28:03 Then when adding it to you main view it's easier to add. Mar 21 17:28:10 Just inflate the view. Mar 21 17:35:41 Hi everyone, my code relies that after a new activity is finished it returns to the old activity for the OnCreate method but it appears to be false, what is the first code execution that happens after an activity finishes ? Mar 21 17:36:28 https://raw.githubusercontent.com/xxv/android-lifecycle/master/complete_android_fragment_lifecycle.png Mar 21 17:40:18 seems sometimes AS editor folds a lambda with (type) foo -> { ... } while other times , just folds it all with { ... } -- anyone know why ? Mar 21 17:43:53 I hate when it's hard to design the class hierarchy because we can't predict the future. :[ Mar 21 17:44:15 Need to know all the things! Mar 21 17:44:26 new FuturePredictor().designClassHierarchy() Mar 21 17:44:27 g00s: I have no idea. That stuff seems almost random to me. Mar 21 17:44:31 JesusFreke: :D Mar 21 17:59:49 if anybody's online, i have a question to ask. I have created a program, a bus app that tells u when the next bus will be at the stop within ten meters radius of it. i have it all coded and everything. I just need to get the gps coordinates of the user and match them with the bus stop gps. What package should i import to get gps comparision code? Mar 21 17:59:55 and hello :) Mar 21 18:00:46 can someone help? Mar 21 18:01:38 does this help you? https://developers.google.com/places/android/ Mar 21 18:02:44 it helps a little Mar 21 18:02:52 but i just want to know what format the gps info comes in Mar 21 18:03:57 http://developer.android.com/google/play-services/location.html Mar 21 18:05:20 interesting. this project gonna be harder than i thought Mar 21 18:07:00 Deathcode Mar 21 18:07:06 wait Mar 21 18:07:39 I'm trying to use this library with my app, however Android Studio says "Cannot resolve symbol "REQUEST_CODE_VENMO_APP_SWITCH" "... any ideas? https://github.com/venmo/app-switch-android Mar 21 18:09:41 yes lasserix Mar 21 18:09:44 ? Mar 21 18:11:20 http://pastebin.com/vsENJWm1 Mar 21 18:11:34 you might want to switch the contents of the IF ELSE parts, because that grabs network location over gps Mar 21 18:11:45 memorion: danke schön ! Mar 21 18:11:46 but you dont need google play services Mar 21 18:12:08 toothpick bitteschön :D Mar 21 18:12:49 ok thank you lasserix Mar 21 18:13:08 and another question. lasserix. what format does the gps location come in? Mar 21 18:13:37 there is a location class in the sdk, that code uses a dummy wrapp gpscoordinates which just has float,float as lat/long Mar 21 18:13:50 you could remove the gpscoordinates and just return the native location class Mar 21 18:13:53 or do whatever Mar 21 18:14:07 ah so it comes as lat/long Mar 21 18:14:15 in a float variable? Mar 21 18:14:31 in that code yes Mar 21 18:14:48 but thats becasuse i designed it that way you could do it as a double or string or whatever Mar 21 18:15:06 i see. and from the current location getting of the phone, does it come off as a float too? Mar 21 18:15:22 or what format does it come from in the actual android? Mar 21 18:15:33 you can look it up Mar 21 18:15:57 i just provided that code so you wouldnm't have to integrate google play library Mar 21 18:16:23 because what i essentially want to do is take current lat/long and take bus stop lat/long and find out if they are within 10m radius Mar 21 18:16:34 then redirect the program to the necessary bus stop Mar 21 18:16:43 hence i need to have both in the same format Mar 21 18:16:51 for the comparision part Mar 21 18:16:58 im sure you can write a formatter Mar 21 18:17:14 lat long should either be double or float so its trivial Mar 21 18:17:20 how to get lat/long from whaterver format the android phone location getter ? Mar 21 18:17:36 again look it up and alter the code Mar 21 18:17:42 fuck.jpg Mar 21 18:17:59 thank you for the help Mar 21 18:20:46 Is a new apk generated every time I run the app? Mar 21 18:21:21 drose379: what do you mean? Mar 21 18:21:28 the apk file Mar 21 18:21:50 Is a new one created with the updates to the app each time I run the app in AS? Or "Build" it Mar 21 18:22:13 only if there were changes Mar 21 18:22:16 ok Mar 21 18:28:37 so they split up the play services libs even more Mar 21 18:45:30 hi Mar 21 18:45:40 does picasso support gif? Mar 21 18:46:10 or does it only download the first frame of the gif? or does it just convert the gif to some other format? Mar 21 18:47:04 no Mar 21 18:47:19 android doesn't support playing gifs Mar 21 18:47:32 someone released gifdrawable you can use tho Mar 21 18:47:35 yea I know, but if i use a custom view class that does in fact support them Mar 21 18:47:36 Picasso doesn't do any converting, does it? As far as I know, Picasso will download static GIFs and animated GIFs. Mar 21 18:48:20 hum, I was using GifImageView from the gifdrawable library Mar 21 18:48:37 it doesnt seem to convert a gif from picasso automatically to gifdrawable Mar 21 18:48:38 hum Mar 21 18:48:46 android totally supports playing animated gifs, but only in webview ;) Mar 21 18:49:07 anything else and you'll need a 3rd party lib or something Mar 21 18:49:33 the question isnt so much for android as it is specifically for picasso Mar 21 18:49:40 and gifdrawable Mar 21 18:50:16 jvrodrigues: A static GIF, an animated GIF, a PNG image... what's the difference? When it comes to downloading and caching them, they're all just a bunch of bytes. Mar 21 18:50:27 quickpic (https://play.google.com/store/apps/details?id=com.alensw.PicFolder) does support animated gifs though Mar 21 18:50:49 yeah you have to decode and play yourself tho Mar 21 18:51:01 jvrodrigues, pretty sure picasso's range of supported formats is down to what android supports Mar 21 18:51:16 I am using gifdrawable lib Mar 21 18:51:20 with gifimageview Mar 21 18:51:42 I suspect you might need to find a custom gif loader too Mar 21 18:51:46 according to the documentation the gifimageview is supposed to automatically create a gifdrawable when setting a gif to it Mar 21 18:52:36 but that doesnt seem to be happening Mar 21 18:52:58 go complain to the lib authors? :p Mar 21 18:53:56 ravilov, there are steps, 1 - ask in andrid-dev, 2 - rant in android-dev, 3 - complain to the lib authors Mar 21 18:54:02 im only just in step 1 :p Mar 21 18:54:17 oh is that so? Mar 21 18:54:24 I thought 3) is ??? and 4) is PROFIT Mar 21 18:54:41 not in this business Mar 21 18:56:48 4) PROFIT is iOS Mar 21 18:57:42 com.squareup.picasso.PicassoDrawable cannot be cast to pl.droidsonroids.gif.GifDrawable Mar 21 18:57:52 it is picassos fault after all Mar 21 18:58:14 Goddamnit! picasso needs to get its shit together -> step 2 Mar 21 19:01:05 g00s, are you saying Ferengis run iOS?!? Mar 21 19:02:05 Anyone know how to dtermine if google map has no data for that zoom level? Mar 21 19:09:08 interesting, io.netty.buffer is available as a standalone library Mar 21 19:09:26 JakeWharton: You around? Mar 21 19:10:48 its really shitty that picassodrawable is a package protected class Mar 21 19:10:50 like wtf Mar 21 19:11:29 jvrodrigues: sounds reasonable Mar 21 19:11:36 thepoosh ! Mar 21 19:11:57 and why is it picasso's fault you cannot cast a PicasoDrawable to a GifDrawable wtf that is Mar 21 19:12:00 g00s: ! Mar 21 19:12:11 thepoosh whats going on over there? how is glide Mar 21 19:12:21 trying to make it Mar 21 19:12:28 with the google deadline Mar 21 19:12:29 oh, the promotion deadline ! Mar 21 19:12:35 there is an alpha Mar 21 19:12:52 went out to the team on friday morning Mar 21 19:14:44 \o/ Mar 21 19:15:05 it has tons of issues Mar 21 19:15:08 o.O Mar 21 19:15:14 but you know what, its the begining of the end Mar 21 19:15:16 how come CedricBeust has the op hat? Mar 21 19:15:28 in CS we trust Mar 21 19:17:13 thepoosh beginning of the end ? Mar 21 19:17:23 if this sprint Mar 21 19:17:34 ah Mar 21 19:17:42 thought you mean, beginning of the End Mar 21 19:17:55 the end is nigh? Mar 21 19:18:04 2 minutes to midnight ! Mar 21 19:18:15 ravilov: Be afraid Mar 21 19:18:33 * ravilov trembles in fear Mar 21 19:19:16 the end is nigh for gingerbread indeed ! Mar 21 19:19:17 g00s: totally missed you Mar 21 19:19:24 anywho, going on a food run Mar 21 19:19:27 AFK Mar 21 19:19:39 GB will never die Mar 21 19:39:49 jvrodrigues: can't you subclass one of those requesthandlers or whatever and detect if it is gif and then deal with it yourself? Mar 21 19:46:51 thepoosh, google deadline for what app? Mar 21 19:46:58 those are fun Mar 21 19:54:35 thepoosh did you guys ever spin off any open source libraries ? Mar 21 20:13:52 how do i show a list and an action bar in one activity? Im extending ListActivity, but action bar is showing only when i extend ActionBarActivity Mar 21 20:18:24 you may need to do an actionbaractivity and make the list as a widget and manage it yourself Mar 21 20:18:27 that's what i've always done Mar 21 20:21:17 lxknvlk: I would also recommend what dragorn said. Using an ActionBarActivity which has a ListView in the layout. Or an ActionBarActivity with a ListFragment perhaps. Mar 21 20:24:40 lasserix i just created an asynctask to get the bytearray from the url Mar 21 20:24:51 got no time for these shenanigans, need to deliver this tomorrow Mar 21 20:25:01 now its partially working Mar 21 20:57:59 Hallo, what does px and py refer to in postScale here: https://developer.android.com/reference/android/graphics/Matrix.html#postScale(float, float, float, float) Mar 21 20:59:43 F1skr, that's the pivot point Mar 21 20:59:48 around which the scaling is done Mar 21 21:01:54 Mavrik: I'm trying to scale an image in an imageView with the center of the screen as the center point for the scaling, But I can't figure out what the value of px and py should be Mar 21 21:02:25 F1skr, you're applying the matrix to the imageview? Mar 21 21:02:32 yes Mar 21 21:03:33 it scales but I have calculated a weird center point, so it's all over the place Mar 21 21:05:07 hmm Mar 21 21:05:56 F1skr, I don't remember which reference setImageMatrix uses, it's either image size itself (so your px/py have to be imagewidth/2 and imageheight/2) or the imageview size (so your px/py have to be imageviewwidth/2 , ... ) Mar 21 21:06:22 anyone have a link to an example app using material design toolbar for pre-v21 devices? Mar 21 21:10:56 Mavrik: that makes sense if the image is centered, but I can move the image around when zoomed in, so the center of the screen might not be the center of the image Mar 21 21:11:22 how do you move it around? Mar 21 21:11:33 translating the matrix Mar 21 21:11:46 F1skr, well Mar 21 21:11:49 if you translate first Mar 21 21:11:55 and then scale, then obviously it won't work. Mar 21 21:12:05 try using preScale? :P Mar 21 21:12:09 or just scale()? Mar 21 21:13:07 pfn: google said they'll feature us as long as we meet their deadline Mar 21 21:13:17 g00s: not really, the core is ours Mar 21 21:13:29 but we use all sorts of 3rd party libs Mar 21 21:13:35 some are open Mar 21 21:15:00 thepoosh when is the deadline ? Mar 21 21:15:09 2 weeks Mar 21 21:15:33 why is there a deadline at all ? couldn't they just feature it when ready ? Mar 21 21:16:23 idk Mar 21 21:16:28 in google we trust Mar 21 21:16:34 and do what they tell us Mar 21 21:16:34 not me Mar 21 21:16:41 they are the gods of android Mar 21 21:18:52 not me Mar 21 21:19:14 Google is the last place I look for App design advice Mar 21 21:19:25 (Implementation, yes.) Mar 21 21:19:29 :)) Mar 21 21:19:31 anyhoo... :D Mar 21 21:19:38 Sadly there's noone else really trying. Mar 21 21:19:47 Talk about jumping into a conversation :D Mar 21 21:19:52 haha Mar 21 21:20:10 I just wish Google would make a UX guidelines like Apple/Microsoft have Mar 21 21:20:15 Alt-Tab -> ATTACK!! Mar 21 21:20:24 and then print it and beat their engineers with it until they start listening to it Mar 21 21:20:27 make them?? I wish they would follow them! Mar 21 21:20:40 Follow what? :P Mar 21 21:21:00 well, there are guidelines... they ARE there. More than we used to have... Mar 21 21:21:11 I would just like a little consistency Mar 21 21:21:13 i think in some ways , Material was a huge step backwards. instead of focusing on frictionless interaction, so many devs seem focused on putting the right animation or having a stupid fab button Mar 21 21:21:24 MikeWallaceDev, I actually meant a proper document not some web pages :P Mar 21 21:21:36 g00s, hmm, I'd disagree on that Mar 21 21:21:40 g00s, if by "some ways" you mean "all the ways" then I'm with you Mar 21 21:21:48 Mavrik, oh. Mar 21 21:21:49 the whole OS and most apps are significantly more usable now Mar 21 21:22:28 also having a clear (even though short) guideline to shove up iOS designer arses seemed to help alot Mar 21 21:22:31 everybody should read golden krishna's new book Mar 21 21:22:35 How so Mavrik ? I'm so fed up with Lollipop... I actually wrote a list of things that are bad in Lollipop! Mar 21 21:22:42 <3 Lollipop Mar 21 21:22:46 i'd give out copies if i could :) Mar 21 21:23:03 It's like going from 1993 KDE to a modern OS Mar 21 21:23:09 Did you ever try Lollipop on a tablet? Worse thing ever. Mar 21 21:23:19 huh Mar 21 21:23:20 no. Mar 21 21:23:27 (I use it daily on N9) Mar 21 21:23:36 N10. Mar 21 21:23:43 Yes? Mar 21 21:23:46 And the notifications in the middle of the screen? Mar 21 21:23:58 and the constant scrolling in the task manager? Mar 21 21:24:06 the task manager without a kill all? Mar 21 21:24:10 I have no idea what are you talking about :) Mar 21 21:24:16 hahaha :D Mar 21 21:24:25 I have no recollection of the even in question :D Mar 21 21:24:39 My notifications show up on top. Mar 21 21:24:44 centered Mar 21 21:24:47 sorry Mar 21 21:24:53 Kill application buttons should be removed from whole OS Mar 21 21:25:14 and the user connected to 220V when it installs an app killer Mar 21 21:25:19 No way! Nobody knows more than me when I want to kill my apps! Mar 21 21:25:42 so you're saying that we shouldn't have the kill command in Linux? Mar 21 21:25:43 I've never used 5.0 on N10 though, I've replaced it with N9 Mar 21 21:25:52 since 16:10/16:9 is a retarded AR for tablet anyway Mar 21 21:26:05 MikeWallaceDev, no, I'm saying you should be beaten with a stick if you use any kind of kill on Android. Mar 21 21:26:06 Well, I'm giving the benifit of the doubt that it's probably similar Mar 21 21:26:20 MikeWallaceDev, when I'll mean "Linux" I'll say "Linux" Mar 21 21:26:24 * MikeWallaceDev hides all his sticks Mar 21 21:26:39 Mavrik, my point was that it's the same thing. Mar 21 21:26:49 Nope. Mar 21 21:27:02 I think there are some cases where we need the ability to kill apps. Two I can think of right now are (1) an app that is malfunctioning (perhaps flooding a server with requests) and (2) one of those obnoxious apps that display an ad *after* the main Activity has been Backed out of. Mar 21 21:27:06 Just like your car might be "the same thing" Mar 21 21:27:19 Android might have a memory manager, but it doesn't know better than me when I want to kill an app. Mar 21 21:27:25 And giving users a kill command for CANBUS processes would be dumb as well :P Mar 21 21:27:43 TacticalJoke, mhm, and swipe works well for that Mar 21 21:27:46 actually, wait, forget the word kill. Or even the idea. Just forget it, let me start over Mar 21 21:27:54 MikeWallaceDev, just... no. Mar 21 21:27:55 :) Mar 21 21:27:59 Yeah, I advocate swipe for such things. Mar 21 21:28:02 another place where windows phone > android, you can tell the OS whether cached processes are allowed to run at all in the BG Mar 21 21:28:12 and you have control process by process Mar 21 21:28:15 Task manager is full of windows, some are alive, some are killed. I just want to empty that list. Mar 21 21:28:21 g00s, last I checked you have that switch as well on Android :) Mar 21 21:28:21 i can say, outlook can't do anything in the background Mar 21 21:28:43 g00s: I love the idea of that. As a user, I want power over what is running and when (and, ideally, which permissions it is allowed to use at any given time). Mar 21 21:28:45 I'm a user, I have no idea what that does, I just think my list is too long and I can't find my apps. I want to empty it Mar 21 21:28:52 Mavrik where ? Mar 21 21:29:06 force stops just does it once Mar 21 21:29:15 g00s, also no Mar 21 21:29:21 I'm against giving that kind of power to users as well. Mar 21 21:29:44 Because users WILL break your app and then they WILL blame you and cause you problems. Mar 21 21:29:53 no offense Mavrik , but if you don't want power, buy an iPhone. I want power. Mar 21 21:30:02 how can you break 'this app can't do anything unless i run it' Mar 21 21:30:05 There's enough work supporting morons that break their phones with Xposed already. Mar 21 21:30:13 hahaha Mar 21 21:30:24 g00s, "YOUR APP DOESN'T WORK, IT WONT RECEIVE MESSAGES AND SYNC!!!@ Mar 21 21:30:30 g00s, "IT SUCKS I SUE YOU" Mar 21 21:30:33 :D Mar 21 21:30:33 I don't think the solution to such problems is "Don't allow people to do things". Mar 21 21:30:52 g00s, there was an interesting article on HN yesterday Mar 21 21:30:59 HN? Mar 21 21:31:02 where some Android dev explained that they cripple their app Mar 21 21:31:12 Hacker News? Mar 21 21:31:18 because dumb users can't properly read memory usage of android apps Mar 21 21:31:21 windows phone also has the option to disallow background processes when battery gets below a certain amount - maybe android has that too Mar 21 21:31:37 and they have to make it slower and broken because mmaping pages to disk would show up fake memory usage Mar 21 21:31:42 and people would complain. Mar 21 21:31:59 Well, as a user, fuck them. As a user, I want power Mar 21 21:32:05 g00s, JobScheduler/Battery saver do that. Mar 21 21:32:07 As a dev, I have to deal with that power Mar 21 21:32:30 MikeWallaceDev, I'm all for power, but not for dumb stuff like that. Mar 21 21:32:37 like what? Mar 21 21:32:52 I also like a dev want power to tell you my app won't work on your broken phone. Mar 21 21:33:02 And thus prevent you from ever reviewing or scoring the app. Mar 21 21:33:03 exactly. Mar 21 21:33:29 see, this is where you lose me man. Crippling the OS because of reviews?? Mar 21 21:33:33 The argument "Dumb users might do X, which is bad; therefore, allow *nobody* to do X" just leads to a system that is dumbed down to the lowest common denominator. Mar 21 21:33:38 MikeWallaceDev, not crippling the OS Mar 21 21:33:46 TacticalJoke, exactly. Mar 21 21:33:50 MikeWallaceDev, preventing idiots from blaming their incompetence on me Mar 21 21:33:52 That's how I feel now TacticalJoke Mar 21 21:34:00 MikeWallaceDev, you're not reading properly (again!) Mar 21 21:34:05 sorry mate Mar 21 21:34:09 I said "prevent from reviewing or scoring" :) Mar 21 21:34:10 that does happen :) Mar 21 21:34:30 that's what I read (?) Mar 21 21:34:46 and that's what I answered to. Mar 21 21:34:50 Maybe not clear though Mar 21 21:35:50 basically, as a user, I don't about your reviews. Not one bit. Mar 21 21:35:59 (of course, as a dev, I care about mine :D ) Mar 21 21:36:22 but as a dev, i have to work hard to make things work. And bulletproof Mar 21 21:36:35 MikeWallaceDev, the issue of course being Mar 21 21:36:42 that if I don't want to deal with dumb users anymore Mar 21 21:36:47 you're not getting the software you need Mar 21 21:36:54 "you" being the user :) Mar 21 21:36:59 :) Mar 21 21:37:19 If I'm gonna be flooded by angry mails about battery usage when I make a GPS path tracking app... Mar 21 21:37:20 I 100% agree with you on the dumb user part. Mar 21 21:37:23 I'll rather go fish :P Mar 21 21:37:29 :D hahaha Mar 21 21:37:52 Of course, I'd prefer for this to be solved by Google not being a lazy plant when it comes to Play Store management. Mar 21 21:38:03 fuck, my logcat is constantly getting spammed with com.google.android.apps.gmm.base.app.GoogleMapsApplication.b(PG:166) strictmode violations Mar 21 21:38:04 As a dev, I'm 100% with you. Mar 21 21:38:36 looks like they are accessing sqlite on the main thread Mar 21 21:38:43 bastards! Mar 21 21:38:59 I think this whole discussion is about self-fulfilment Mar 21 21:38:59 damn. You guys!!! You sucked me into this conversation!!! :D Mar 21 21:39:06 I came here for a reason! Mar 21 21:39:18 hahaha, my app is still in a break point :D Mar 21 21:39:42 look at how we scramble around looking for ways to feel responsible and more maker-like Mar 21 21:39:47 do you guys have that problem where the debugger doesn't find local vars when it's on the first line of a method? Mar 21 21:40:16 * Odaym ponders life and the universe Mar 21 21:40:23 and everything Mar 21 21:40:28 and everything Mar 21 21:41:05 hello there. quick question: i'm trying to make an irc client for android, but i need some class to keep the irc service in background. now, service and intentService don't seem to be good for my need, since the background service has to communicate with the ui thread to update the "chat view". what could i use? Mar 21 21:41:07 so? debugger? first line? Mar 21 21:41:10 my debugger sometimes finds bugger all Mar 21 21:41:20 also sometimes I forget proguard on and then nothing works. Mar 21 21:41:26 Programmers are mini-gods, in a way. We create metaphorical universes over which we have almost total control. (That might be why we sometimes hate using external libraries -- we want *all* the power.) Mar 21 21:41:36 gabmus, Service is exactly what you're looking for. Mar 21 21:41:41 Wouldn't you write everything from the ground up if you had the time and energy? Mar 21 21:41:49 yep, service. Mar 21 21:41:51 And it wasn't boring or something. Mar 21 21:41:52 430 people here? Mar 21 21:42:00 2 write from ground up Mar 21 21:42:00 gabmus, use a message bus and send events from it and if UI is active, it'll get them. Mar 21 21:42:10 TacticalJoke, I mostly write from the ground up. Mar 21 21:42:13 the rest is scotch-tape programmer Mar 21 21:42:14 Odaym: Yeah, but we are so limited regarding time and stuff. Mar 21 21:42:16 * MikeWallaceDev == God complex Mar 21 21:42:20 no we're not Mar 21 21:42:22 Mavrik: it will stay active until i manually stop it? Mar 21 21:42:28 we're limited by our own weakness Mar 21 21:42:32 you dont know how.. Mar 21 21:42:33 will it survive the garbage collector? Mar 21 21:42:41 gabmus, yep Mar 21 21:42:53 you have to "start" the service. Mar 21 21:42:57 the 10x programmer is not someone who has a lot of time. he just can do the stuff that you use as a lib, with the same time that was given to you Mar 21 21:42:58 gabmus, uh, garbage collector doesn't operate on the level you're thinking about Mar 21 21:43:05 some thing in the way he learns or looks for info Mar 21 21:43:14 a Service will run until you stop it or OS kills it due to lack of resources Mar 21 21:43:24 IRC service should probably be run as a foreground service Mar 21 21:43:33 which will make it even more unlikely to be killed Mar 21 21:44:16 but I've had this argument many times recently, I'm realising that at each turning point, I'm not being paid to write from ground up Mar 21 21:44:34 I'm getting paid to get things done and get them to run as a a complete solution Mar 21 21:44:52 that itself is "something" Mar 21 21:45:35 for the market that requires these things to get done, you are taking that job and doing it, you're not worse than the programmer who writes a library Mar 21 21:45:49 Mavrik: lol ok, im sorry but im new to android development Mar 21 21:46:01 Whoa. I had "private List posts = new ArrayList<>();" and I renamed the Post class to PostSummary. Android Studio made this change: "private List postSummaries = new ArrayList<>();" That's pretty neat (the "postSummaries" thing). Mar 21 21:46:09 thank you, ill be afk now, later :) Mar 21 21:46:28 yea it does that :) Mar 21 21:46:32 guesses things Mar 21 21:47:02 TacticalJoke, yeah, AS does some pretty awesome things... Mar 21 21:47:02 god damn it Im starting my own blog Mar 21 21:47:08 tired of ranting here Mar 21 21:47:25 My favorite was telling me that I used the wrong variable! Mar 21 21:47:51 A blog is just a high-tech way of talking to yourself. Mar 21 21:47:53 mleft = right; ("you probably used the wrong variable") Mar 21 21:47:59 Neat, MikeWallaceDev. Mar 21 21:48:04 and I had! Mar 21 21:48:08 I was like : whoa. Mar 21 21:48:21 Yes, I'm Keanu Reeves. Mar 21 21:48:24 Deal with it. Mar 21 21:48:26 :D hahaha Mar 21 21:49:58 Does anyone know how Path::offset() is implemented? (it's in native code) Mar 21 21:50:08 I think it's causing me problems Mar 21 21:50:45 I need to know if it actually changes all the values in a path, or just adds a move at the beginning Mar 21 22:11:16 hg st Mar 21 22:11:19 Grr. Mar 21 22:11:23 why is it that using a fragmentstatepageradapter i get out of memory a lot faster than in a fragmentpageradapter? Mar 21 22:11:31 Android Studio messes with my Alt+Tab order. Mar 21 22:13:46 jvrodrigues: Why are you getting an OutOfMemoryError at all? Doesn't sound healthy. Mar 21 22:14:57 Guys im having an issue where my main activity cant resolve "R" Mar 21 22:15:03 Is there a way to grab another app's featured image banner (1024x500)? It use to be on the play website but that was months ago. Mar 21 22:15:32 drose379: do you have any errors in your xml files? Mar 21 22:15:33 drose379: probably some issue with a layout or something in /res Mar 21 22:15:49 Ok, ill check it out Mar 21 22:15:51 Thanks guys Mar 21 22:21:12 jvrodrigues: Are you not downsampling the Bitmap you're creating? Mar 21 22:24:59 TacticalJoke, im using glide Mar 21 22:25:13 im suposing it uses inSamplesize Mar 21 22:25:15 no? Mar 21 22:25:22 cause if not its a terrible library, really Mar 21 22:27:27 Oh, okay. I don't know anything about Glide. Mar 21 22:34:31 hi Mar 21 22:38:34 anyone used this? https://github.com/koush/ion Mar 21 22:41:33 Hello everyone. I have a settings fragment which shows on top of my layout. I have 2 questions: 1) what can I do so it does not show on top of tyhe layout of my main activity? and 2) How do I close this settings activity?? TIA! Mar 21 22:50:47 nimbiotics, some code, please Mar 21 22:53:24 how to i execute some method every 10 seconds? Mar 21 22:53:42 use a thread Mar 21 22:59:42 Use a ScheduledExecutor Mar 21 23:03:25 Use a Handler Mar 21 23:05:00 a Handler is probably better suited than a thread, yea Mar 21 23:06:10 I was just adding to the list :D Mar 21 23:06:27 I thought more people would join in... Mar 21 23:07:28 A Handler is easy, if you want to run the code on the main thread Mar 21 23:08:07 jvrodrigues: SettingsFragment: http://pastebin.com/wAvsV3r7 SettingsActivity: http://pastebin.com/6L64EYP7 fragment from MainActivity: http://pastebin.com/Shu9cWYN Mar 21 23:08:09 Like I said, ScheduledExecutor which at each ticks, posts on the main thread Mar 21 23:08:15 (assuming that's what you want to do) Mar 21 23:09:31 I didn't find ScheduleExecutor. I found ScheduledExecutorService.. C'est ca? Mar 21 23:09:42 Yes Mar 21 23:11:26 the example seems a bit verbose, no? ~15 lines to print a beep. Mar 21 23:11:45 I'm guessing this is better when you don't actually have an activity Mar 21 23:12:11 If you need a repeated action, ScheduledExecutor is pretty bare bones as it is Mar 21 23:12:16 or if you want to be independent of the Activity Mar 21 23:13:00 More options is better, that's for sure :) Mar 21 23:13:12 What else is there that makes repeating easy? Mar 21 23:14:35 Handler. You just repost at the end of the code. It allows for varying delays Mar 21 23:14:59 http://developer.android.com/reference/android/os/Handler.html#postDelayed(java.lang.Runnable, long) Mar 21 23:15:00 nimbiotics Mar 21 23:15:27 what exactly is the issue? show us the xml, you seem to be adding a fragment to a framelayout on your activity Mar 21 23:15:31 that totally overlays it Mar 21 23:15:34 Hi, messing with xamarin and create my first android app. I've got an EditText control and want to hide the soft keyboard after enter as been hit. tried this: http://pastebin.com/hn67SSjx but it's hiding the keyboard after every 'keypress' ofc Mar 21 23:15:38 I do not know what your goal is Mar 21 23:16:16 se5a, text changed is not the right event Mar 21 23:16:29 what's a better one? Mar 21 23:16:50 I tried keypress event Mar 21 23:16:54 on editor action Mar 21 23:16:58 ok Mar 21 23:17:09 if you have the action for enter set Mar 21 23:17:22 otherwise look for newline in the text changed event Mar 21 23:32:25 jvrodrigues: you are right; Im adding a frgament on top of a layout. How can I do it otherwise?TIA! Mar 21 23:36:54 hello Mar 21 23:37:49 I have a question with android studio working with imported java files, anyone available to help? Mar 21 23:42:10 esto: Just ask the question. Mar 21 23:43:21 oke. I have java files I have imported from netbeans into android studio and set up to use the android 5.0.1 SDK. right now I am getting the error “AndroidManifest.xml not found” has this error been seen before and how do I fix it? Mar 21 23:45:13 "Imported from NetBeans into Android Studio"? What do you mean? Mar 21 23:47:12 every android project needs a manifest file I believe Mar 21 23:48:15 and correct android file structure i guess too Mar 21 23:48:23 netbeans was probably a phonegap/cordova project which is not compatible with android-studio Mar 21 23:48:36 TacticalJoke: I had a java program I wrote in a different IDE and imported it into the android studio IDE Mar 21 23:49:08 im not sure if you can make regular java aps in AS Mar 21 23:49:15 apps* Mar 21 23:49:18 esto: I think I'd recommend creating a new project in Android Studio and manually copying files over. Mar 21 23:49:31 I can try that Mar 21 23:49:33 There are so many differences between a Java project and an Android Studio project. Mar 21 23:49:57 so basically copy and paste each source file, or is there a way to import java files Mar 21 23:50:08 instead of importing projects Mar 21 23:50:09 you cant put a frozen pizza in a kettle and expect it to cook Mar 21 23:50:19 nice analogy Mar 21 23:50:30 its pretty accurate in this context Mar 21 23:50:30 I was not expecting it to be easy Mar 21 23:50:33 Yeah, you might end up rewriting a lot of stuf. Mar 21 23:50:35 stuff* Mar 21 23:50:42 okay I can try to import them manually Mar 21 23:50:43 esto: Does the Java project use Java 8? Mar 21 23:50:46 no Mar 21 23:50:49 Java 7 Mar 21 23:50:55 the file structure is different, half the code is different... only the syntax is the same Mar 21 23:51:06 Okay, almost all (AFAIK) of Java 7 is supported on Android. Mar 21 23:51:15 okay Mar 21 23:51:17 bye Mar 21 23:51:26 android is just a java 7 framework :) Mar 21 23:51:28 Apart from the non-Androidy UI things, of course. Mar 21 23:51:44 I am going to rebuild the UI for this program in androi Mar 21 23:52:11 esto: Have you made an Android "Hello, world" app yet? Mar 21 23:52:18 activities, manifest, resource files, android system calls... so yeh basic java with a ton of android stuff on top of it Mar 21 23:52:22 nope Mar 21 23:52:34 esto: You're gonna need to learn Android before you can port a Java project to it. Mar 21 23:52:41 got it Mar 21 23:53:04 I honestally thought that it was just another java runtime I could use right out of the box Mar 21 23:53:57 okay I will get to it Mar 21 23:54:02 thank you for the input! Mar 21 23:54:23 What is the project? Just curious. Mar 21 23:54:36 I'd definitely recommend starting with "Hello, world", BTW. Mar 21 23:55:06 moving a desktop network IO program from desktop to phonne Mar 21 23:56:18 pfn: thanks, OnEditorAction seems to be a better way of doing it. Mar 22 00:07:47 meh Mar 22 00:07:55 had to use largeHeap to make glide work Mar 22 00:08:01 average of 100mb ram Mar 22 00:08:04 which is a lot Mar 22 00:08:07 but its an image app, so Mar 22 00:08:14 with gifs working perfectly Mar 22 00:08:21 give me a break! Mar 22 00:11:23 jvrodrigues: we don't care to support GIF because Android doesn't Mar 22 00:13:41 pfn: mostly anyway, I'm now checking if InputMethods.ImeAction.Next except one of the edittext controls (the last one) is ImeAction.Done which threw me. Mar 22 00:14:44 JakeWharton, what do you mean with we? Mar 22 00:14:50 Picasso Mar 22 00:15:25 Well, android is perfectly capable of rendering gifs Mar 22 00:15:35 just because it doesnt have native libraries, doesnt mean it doesnt support them Mar 22 00:15:44 animated GIFs Mar 22 00:16:22 ah I see what you mean, the android - company - doesnt support them, not the android OS Mar 22 00:16:36 because the android OS supports them perfectly, jsut takes a bit of work Mar 22 00:17:01 let me state it a different way, Picasso delegates all image decoding to the OS Mar 22 00:17:15 plus the users kind of demand them, so its not like we can tell them "yea, google doesnt like gifs, so im sorry, no cats for you" Mar 22 00:17:36 well there are a couple of good gif decoders out there Mar 22 00:17:59 right but I didn't care to muddy my library for it Mar 22 00:18:19 the code is so much simpler without pluggable decoders Mar 22 00:18:30 maybe someday we'll add it, but for now we delegate to the OS Mar 22 00:18:41 the OS decoders are crap though Mar 22 00:18:50 you should definitely consider moving away from them Mar 22 00:19:05 hmm, are they? Mar 22 00:19:08 yep Mar 22 00:19:16 our requirements have never seen them fail so we have no plans to Mar 22 00:19:19 isn't JPEG decoding even DSP accelerated on some devices? Mar 22 00:19:53 jvrodrigues: Is Movie any good for playing animated GIFs? Mar 22 00:20:15 also animated gif kinda breaks all kinds of image rendering optimizations Mar 22 00:22:52 seems to me that the GIF format sticks around out of sheer nostalgia and stubbornness ... Mar 22 00:23:13 and suckage of video players Mar 22 00:25:00 TacticalJoke, it works, but the GifDrawable library or Glide library is probably what you should be looking at. Makes displaying a gif a matter of 5 lines of code. Im never touching Movie for a gif ever again. Mar 22 00:39:42 this is hardly the place to share this Mar 22 00:39:56 but its saturday night and all my friends are having fun somewhere and I have to work so Mar 22 00:40:25 Saturday night and all your friends are having fun? You must be really young. :p Mar 22 00:40:30 my upstairs neighbor just dropped some panties (that she was hanging to dry) on my backyard when I was out smoking Mar 22 00:40:41 and I can now distinctly hear her masturbate upstairs Mar 22 00:40:41 wtf Mar 22 00:40:47 portuguese girls are insane man Mar 22 00:41:20 TacticalJoke, 27 :p Not that young anymore Mar 22 00:42:08 saturday night and you're working on android :D Mar 22 00:42:31 well i am too :( Mar 22 00:42:36 thank god, without scrollback I thought I was in the wrng room Mar 22 00:43:34 you kinda logged in a critical moment of my tale Mar 22 00:44:40 well, and Ive seen it go off topic on weekends, but usually along the lines of muppet movies and monty python sketches Mar 22 00:44:51 jvrodrigues: I tend to think people in general are insane. I was travelling home on a train full of drunk people at 11pm last night, and it was essentially a mobile zoo. Mar 22 00:45:07 true Mar 22 00:45:24 TacticalJoke, I do my share of crazy stuff on weekends Mar 22 00:45:26 I wish this were not the case. Would be cool to have a real, worthy-of-the-name civilization. Mar 22 00:45:47 Oh, but you're wrong, blowing of steam is perfectly alright Mar 22 00:45:54 as long as you do it respectful of others Mar 22 00:45:59 Oh, these people were bad. (Well, some were.) Mar 22 00:46:14 ya, thats wrong, and its just a show of bad character Mar 22 00:46:41 but for example, you can see me walk home at 9-10am on a saturday morning, and casually stop to buy a beer and keep on walking Mar 22 00:46:58 How do you get back to a normal sleeping schedule after that? Mar 22 00:47:01 every couple of times a month theres an extra-crazy night Mar 22 00:47:10 well when you drink a lot you dont sleep much Mar 22 00:47:15 so say you go to bed at 11 - 12 Mar 22 00:47:26 but you cant sleep past 16 Mar 22 00:47:31 I see. lol Mar 22 00:47:35 thats 4-5 hours of sleep Mar 22 00:47:44 so at 23 you're very tired again Mar 22 00:47:52 unless you decide to go out again Mar 22 00:50:16 TacticalJoke how is the reddit client going Mar 22 00:51:02 It's going pretty well, thanks. I've been so busy lately, unfortunately, so I've not done much in the past two weeks. But it basically does everything you could want reading-wise. Mar 22 00:51:17 nice Mar 22 00:51:28 you're building a reddit client? Mar 22 00:51:31 thats cool man Mar 22 00:51:33 Yeah. Mar 22 00:51:40 are you going to open source the code when you're done? Mar 22 00:51:43 It's a reddit app that focuses on having a minimalistic interface. Mar 22 00:51:50 ive been using reddit is fun, but absolutely hate that one Mar 22 00:51:50 I probably should. Not certain though yet. Mar 22 00:52:07 though I feel its the best one Mar 22 00:52:42 Out of all the released ones, I think I prefer RedReader and Sync for reddit. But I'm not a fan of any, to be honest. Mar 22 00:53:27 ya Mar 22 00:53:42 I think if you have an eye for design thats definitely a project worth taking Mar 22 00:54:20 sadly I avoid any solo projects as my eye for design is terrible Mar 22 00:56:46 Are you working on something right now? Mar 22 00:58:26 yea a small image viewer Mar 22 01:02:37 Hello everyone. Is it possible to write an android app that opens a listening ad-hock wifi network, then see the IP of devices connected to it? Mar 22 01:07:57 netty ByteBuf FTW Mar 22 01:11:19 cconstantine, I dont see why not, but I really cannot tell for sure, never had to use the network for more than httprequests Mar 22 01:11:34 and xmpp :) Mar 22 01:12:10 hi , i have one problem with the alarm manager Mar 22 01:12:25 yeah, that's what I'm finding on good. it's really hard to tell google that you're looking for pages describing the android device as the ad-hoc network host Mar 22 01:12:35 s/good/google Mar 22 01:13:33 actually i am calling alarm manager with pending intents and it turns out that when i call alarm manager with two pending intents one after another then the previous one doesn't responds back Mar 22 01:13:45 cconstantine, yea, but keep on looking, also read the javadocs and developer guides Mar 22 01:13:47 can someone help me out !! Mar 22 01:13:51 maybe you will come up with something Mar 22 01:14:10 hashbash, what do you mean doesnt respond back? Mar 22 01:14:18 Hi! I need help with the google cardboard SDK, Specifically HeadTransform, When ever I make a new HeadTransform variable and initalise it with new HeadTransform() it always give me bad data, i.e a zero in every place of the array except for the last which is a one. My variables are correct, I have tested this in the google sample with headTransform variable already defined in OnNewFrame and it worked, So I know Mar 22 01:14:18 my variable is okay, It just has this problem when I do it with my own HeadTransform variable, Please help. Mar 22 01:14:18 are you sending these intents for the same activity? Mar 22 01:14:26 yes Mar 22 01:14:37 but with different ids Mar 22 01:14:40 so the activity doesnt receive the new intent? Mar 22 01:14:52 the second intent i mean Mar 22 01:15:25 basically the reciever recieves the response for second intent but not for first intent Mar 22 01:15:33 *broadcast reciever Mar 22 01:16:49 basically i am showing something in notification Mar 22 01:17:10 and when alarm wakes up i change the notification content Mar 22 01:17:23 so the alarm manger is not working properly i think so ] Mar 22 01:18:28 sir can you help me out !! Mar 22 01:18:50 i still did not fully understand the issue Mar 22 01:18:52 so the pending intent Mar 22 01:19:14 is pointing to an activity or a broadcast receiver? Why a broadcast receiver? Mar 22 01:19:15 sir actually the issue is that i call alarm manager with two different pending intents Mar 22 01:19:30 so you set two alarms with two pending intents? Mar 22 01:19:35 yes Mar 22 01:19:39 ok fair enough Mar 22 01:19:47 and those intents, which class do they point to? Mar 22 01:19:50 and alarm which was set earlier doesn't responds back Mar 22 01:20:00 ah, the earlier doesnt work? Mar 22 01:20:14 yes Mar 22 01:20:26 ok, so which class does the intent point to? Mar 22 01:20:54 not able to get the point ? Mar 22 01:21:19 copy paste the code you use to set the intent that you put in yout prnding intent Mar 22 01:21:56 AlarmManager am = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE); Mar 22 01:21:57 am.setExact(AlarmManager.RTC_WAKEUP, triggerTime, buildIntent(this, _id)); Mar 22 01:21:57 private static PendingIntent buildIntent(Context context, long keyId) { Mar 22 01:21:57 Intent intent = new Intent(BROADCAST_ACTION_PASSPHRASE_CACHE_SERVICE); Mar 22 01:21:57 intent.putExtra(EXTRA_KEY_ID, keyId); Mar 22 01:21:57 return PendingIntent.getBroadcast(context, REQUEST_ID, intent, Mar 22 01:21:57 PendingIntent.FLAG_CANCEL_CURRENT); Mar 22 01:21:58 } Mar 22 01:22:16 and the key_id is unique Mar 22 01:22:42 and here is the reciver Mar 22 01:22:43 private void registerReceiver() { Mar 22 01:22:43 if (mIntentReceiver == null) { Mar 22 01:22:43 mIntentReceiver = new BroadcastReceiver() { Mar 22 01:22:43 @Override Mar 22 01:22:43 public void onReceive(Context context, Intent intent) { Mar 22 01:22:43 String action = intent.getAction(); Mar 22 01:22:44 Log.d(Constants.TAG, "PassphraseCacheService: Received broadcast..."); Mar 22 01:22:44 if (action.equals(BROADCAST_ACTION_PASSPHRASE_CACHE_SERVICE)) { Mar 22 01:22:45 long keyId = intent.getLongExtra(EXTRA_KEY_ID, -1); Mar 22 01:22:45 Log.d(Constants.TAG, Mar 22 01:22:46 "trigger time "+ keyId Mar 22 01:22:46 ); Mar 22 01:22:47 timeout(context, keyId); Mar 22 01:22:49 wait wait wait Mar 22 01:22:51 just one line Mar 22 01:23:02 for the rest use paste bin :D Mar 22 01:23:13 ohh fine Mar 22 01:24:30 hashbash, so the key is not the same? Mar 22 01:24:37 are we sure about that? Mar 22 01:24:46 yes it is not same Mar 22 01:24:51 i checked it twice Mar 22 01:25:02 hashbash: Do not paste your code like this, use pastebin Mar 22 01:25:39 sorry i will keep in mind for further queries !! Mar 22 01:25:49 http://pastebin.com/BcLppSmt Mar 22 01:27:20 erm Mar 22 01:27:23 hashbash, Mar 22 01:27:37 the request code, should be different Mar 22 01:27:43 cancel current with the same requestcode Mar 22 01:28:09 not able to understand Mar 22 01:28:22 the request code in pending intent Mar 22 01:28:25 ? Mar 22 01:28:41 PendingIntent.getBroadcast(context, keyId, intent, PendingIntent.FLAG_CANCEL_CURRENT); Mar 22 01:28:45 try it like that Mar 22 01:30:23 but sir it is giving error Mar 22 01:30:29 says keyid should be int Mar 22 01:30:38 but i have taken it long Mar 22 01:30:50 (int) keyId Mar 22 01:31:04 proactivity is dead these days Mar 22 01:31:56 but sir in broadcast reciver i have taken id from intent by using intent.getLongExtra(EXTRA_KEY_ID, -1) because i use this id to delete something !! Mar 22 01:32:11 so will it work this way ? Mar 22 01:33:08 hum you need a unique value in yur request code Mar 22 01:33:16 or it will be canceled if triggered at the same time Mar 22 01:33:23 yes sir it is unique Mar 22 01:33:31 i told you in the beginning Mar 22 01:33:34 ! Mar 22 01:34:02 REQUEST_ID -> this looks like static final notation Mar 22 01:34:36 ok got it so for each indent it should be unique right !! Mar 22 01:34:52 yes Mar 22 01:35:09 i will get back to you if some error comes Mar 22 01:35:10 !! Mar 22 01:35:14 thanks sir :) Mar 22 01:35:25 no worries, try it now see if it works Mar 22 01:37:33 I've been developing a multiplayer game for the Android. Basically I've been living off beans for a long time. It only does multi player right now. I've played a lot of games with it. Any suggestions for getting beta users on board? Also I'm curious about single player and if that is required for a Google Play Game Services game. The docs make no mention of that as a requirement although I have a plan to work up AI for that. Mar 22 01:38:04 send us a link to the apk Mar 22 01:38:43 no prob one moment I need to build a fresh one. Mar 22 01:51:15 https://onedrive.live.com/redir?resid=DB0189AA1CD22777!462010&authkey=!AKS3_4o5ymvklOA&ithint=file%2capk I backed up the current apk with file expert. Hopefully it works. I have to clear beta users on a list otherwise they cant loging Mar 22 01:52:22 thanks sir it worked !! Mar 22 02:04:15 How do you do that? requires no special permissions but connects to internet? Mar 22 02:10:40 I never quite knew how to play backgammon Mar 22 02:11:51 Me neither. Mar 22 02:12:12 Played it once, with my Uncle who does know. DIdn't really get it then, and haven't got a clue now. Mar 22 02:12:26 Much like sex. Mar 22 02:12:29 I seem to not be able to connect Mar 22 02:12:36 (I joke - seemed funny at the time) Mar 22 02:12:48 sepotuvich: is that a ramps board I see there? Mar 22 02:12:51 Anthaas, I feel you on the sex part, though i have played that one much more than once Mar 22 02:13:01 Never played it with my Uncle though hahaha Mar 22 02:13:11 sepotuvich, i need to be signed as a tester Mar 22 02:13:23 so you dont need internet permission if you have google play games/ Mar 22 02:13:23 ? Mar 22 02:13:26 thats new information Mar 22 02:15:16 going to bed Mar 22 02:15:19 see you guys tomorrow Mar 22 02:16:32 does anyone know the hex colors for the gmail app? Mar 22 02:17:19 I once defined these colors but I bet the palette changed quite a bit since :) Mar 22 02:18:17 I feel like im either using the material design color pallete wrong, or gmail doenst follow it Mar 22 02:19:00 Using the material design colour palette surely isn't a requirement of the material design guidelines? Mar 22 02:19:11 So long as the colours you use are pastel-like in appearance? Mar 22 02:19:44 so these swatches arent part of the guidelines? http://www.google.com/design/spec/style/color.html Mar 22 02:20:15 Color is inspired by bold color statements juxtaposed with muted environments, taking cues from contemporary architecture, road signs, pavement marking tape, and sports courts. Emphasize bold shadows and highlights. Introduce unexpected and vibrant colors. Mar 22 02:20:19 Sounds like every art student ever. Mar 22 02:21:13 Hmm, thats quite a useful link, but does that mean there would be something wrong with these palettes? https://color.adobe.com/explore/most-popular/?time=month Mar 22 02:22:44 :/ i just want my app to look pretty and for google to love me Mar 22 02:25:58 Google died for your sins. Of course he loves you. Mar 22 02:26:29 DadFoundMy: Couldn't you take a screenshot and use the eye-dropper thingy? Mar 22 02:26:48 Or, to use a hautier term, "pixel sampler". Mar 22 02:26:58 haughtier* Mar 22 02:27:13 Or to use Paint terms: pipette Mar 22 02:27:37 My Paint shows "Color picker". Mar 22 02:28:01 "Pick a color from the picture and use it for drawing." Mar 22 02:28:34 Oh, what about old paint? Mar 22 02:28:42 Like. 90s/00s? Mar 22 02:28:50 I havent used Paint in flipping ages haha Mar 22 02:29:51 I think it showed "Eyedropper tool" or something. Mar 22 02:30:33 I remember being at school and full-screening a desktop screenshot in Paint. Mar 22 02:30:42 Much fun was had watching n00bs trying to get out of that. Mar 22 02:31:35 Color pipette? Isn't that like a a solder-sucker ? Mar 22 02:31:37 TacticalJoke: im going to try that Mar 22 02:31:39 Haha, our schools computers had a shortcut for rotating everything on the screen through 90, 180, and 270 degrees. Watching people try and work the mouse was hilarious. Mar 22 02:31:45 haha Mar 22 02:31:49 My laptop does that. I hate that feature. Mar 22 02:31:57 Solder suckers were also a school weapon. Mar 22 02:32:02 DadFoundMy: Google cares about Material Design but they care even more for tablet versions of your app Mar 22 02:32:35 Of course, tablets make them money Mar 22 02:32:42 I remember our IT room allowing full shell access. All you had to do was type some command, and you had root on a Windows terminal. Mar 22 02:32:54 The annoying thing is though, my Nexus 7 has barely been used, yet somehow it has become the slowest thing known to man. Mar 22 02:33:14 The IT staff had no clue that we knew this. Mar 22 02:33:43 I have a Tesco Hudl 2, and it's really nice, but I almost never use it. Mar 22 02:33:58 Our IT had to get taught how permissions work by students. Connecting the account and then changing their permission level from admin to student was a mistake. Students just pulled the network cable out after connecting and the computer defaulted to admin, and then plugged the cable back in and the network just left them as admin. Mar 22 02:34:45 Since moving to Huddersfield, I haven't been to Tesco, only Morrisons these days. Mar 22 02:35:14 I think I've never been to a Morrisons. There are so few around here (Essex). Mar 22 02:35:29 Ahh, they are brilliant. Cheaper and much better quality food IMO Mar 22 02:35:40 But do you get a Clubcard? :D Mar 22 02:35:43 Im originally a Southerner and we have Morrisons :/ Mar 22 02:35:48 Haha Match and More its called Mar 22 02:35:49 Tesco4lyfe. Mar 22 02:35:53 Get points on petrol n everything haha Mar 22 02:35:56 lol Mar 22 02:36:39 Don't sell all the electrical stuff that Tesco do though, which is a bit naff Mar 22 02:36:54 Do you have any Tesco nearby? Mar 22 02:37:12 There is a small one in town, but its falling to bits. Holes in the ceiling and everything haha Mar 22 02:37:48 Damn. We have a few new little ones in town, and they charge a fortune for the "convenience". Mar 22 02:38:40 Yeah, they aren't allowed to open a huge number of supermarkets, so they just buy out the convenience stores these days and plop them there Mar 22 02:38:47 Or another tactic is buying out petrol stations Mar 22 02:38:53 Turning the store into a mini-supermarket Mar 22 02:39:08 Oh, yeah. Mar 22 02:39:09 Never really gone to a petrol station and thought "Hmm, I need an aubergine" Mar 22 02:39:28 :D Mar 22 02:39:38 Are you still working on that reddit app, Anthaas? Mar 22 02:39:57 Annoyingly, stopped before it started. Mar 22 02:40:12 Working on a Food and Drink app with a friend now Mar 22 02:40:16 Ah, cool. Mar 22 02:40:27 reddit apps, I've found, are so much work. Mar 22 02:40:30 Ive been wanting to do an app like this for a while and he asked me about it after I mentioned it, and we are kind of going with it. Mar 22 02:40:41 Yeah, I noticed that from reading too. How is it going? Mar 22 02:41:07 It's been fairly easy but kinda tiring. Like, it's a lot of thinking about annoying little things. Mar 22 02:41:15 And being annoyed by the reddit API. Mar 22 02:41:26 Yeah, in that kind of app its all about letting a user do a lot, simply. Mar 22 02:41:40 I can imagine haha. It seemed fairly well documented though Mar 22 02:42:03 Do you do layouts as you go, or before, or after? Mar 22 02:42:04 Yah, I kinda feel like a slave to a bunch of potential future users. Yeah, the documentation is pretty good. Mar 22 02:42:11 As I go. Mar 22 02:42:32 Ahh same Mar 22 02:42:45 Generally I try to create the smallest possible change to my project, one changeset at a time. Most of my changesets are tiny. Mar 22 02:42:50 Haha, yeah, like I said though, if you need someone to use it and give feedback, I'd be more than happy. Mar 22 02:42:56 Thanks. :) Mar 22 02:43:26 I try and implement functionalities Mar 22 02:43:30 Not sure if its the best approach Mar 22 02:44:33 Like I want a user to be able to register, then I want a user to be able to log in, then I want the user to be able to be remembered, then I want a user to be able to reset their password, then thats probably the log in screen sorted. Mar 22 02:44:36 I think it's possible to go too far, but it's also possible to go too far in the other direction. I guess I try to think ahead but try not to create a whole bunch of stuff I *might* need. It's hard to find the balance sometimes. Mar 22 02:45:06 Oh, yeah, I like to group stuff like that. Mar 22 02:45:08 I have so many questions about how other people develop applications Mar 22 02:45:54 Like, do you follow MVC? i.e. MainActivity only has Views and Listeners defined, which call methods of other classes, or do you put your program logic into the activity too etc? Mar 22 02:46:49 I keep UI stuff (such as activities) very thin. They are kept as ignorant as possible about the problem domain they come into contact with. Mar 22 02:47:17 So, listeners and views only? Mar 22 02:47:27 What about form validation? In Activity or some other class? Mar 22 02:48:27 I guess mainly listeners and views, but there could be other stuff (such as the backing list of a list adapter). Mar 22 02:48:31 I wish I could read through code of some good applications out there. Mar 22 02:48:41 See how things are done. Mar 22 02:48:58 If the validation is something like "This has to be a valid e-mail address", I would definitely do that elsewhere. Mar 22 02:49:09 If it's something like "This text field cannot be empty", the activity takes care of it. Mar 22 02:50:35 Anthaas: IME, it's rare to find good code. :D Mar 22 02:50:41 So much code is an absolute mess. Mar 22 02:50:56 Even if it is a small application that just does things well. Mar 22 02:51:03 So I can see the best way of doing things. Mar 22 02:51:03 oh, must be chatting with an ignored Mar 22 02:51:05 Classes that do five separate things, whose methods are pages and pages long. Mar 22 02:51:13 Hi pfn Mar 22 02:52:13 I love the beginner approach: just put everything into MainActivity (but reluctantly create classes where needed). :D Mar 22 02:52:28 Thats me Mar 22 02:52:37 I dont do it because of ignorance of encapsulation Mar 22 02:52:42 I do it because I dont know better. Mar 22 02:52:49 In that, I dont know what should be where really Mar 22 02:52:50 It sounds like you do know better. lol Mar 22 02:53:03 I do, I do know that encapsulation is a good thing Mar 22 02:53:20 I'm just never sure where to put what. Mar 22 02:53:33 When searching my app in google play it has started comingcomes up "Did you mean: something else". Is there a risk it will start "showing results for: something else"? Mar 22 02:53:38 coming up* Mar 22 02:54:01 I think one huge influence is where I learnt Android, on Uni placement with a company where devs just knew nothing Mar 22 02:54:10 Made it up as they went along. Mar 22 02:54:25 Anthaas: It's really simple, but Martin Fowler's book on refactoring is good. (In fact, the simplicity is what makes it so good.) Mar 22 02:54:32 Whole Android projects had to be started, and finished by 1 dev in 3 weeks. Mar 22 02:54:40 It's amazing how such simple concepts can be forgotten in the midst of sheer complexity. Mar 22 02:54:48 And how much they can break down that complexity when they're used. Mar 22 02:55:30 Anthaas: FWIW, I find it's way easier to extract classes *after* extracting methods. Mar 22 02:55:37 Extracting methods can help us see very clearer where another class lies. Mar 22 02:55:38 Haha, Im a PhD Student - I can't be affording books right now :( Mar 22 02:55:45 What's your PhD in? Mar 22 02:55:52 Reasoning Mar 22 02:55:55 Ironically Mar 22 02:55:58 :D Mar 22 02:56:26 What does a PhD in reasoning entail? Mar 22 02:56:39 Is it like philosophical? Or AI-related? Or something. Mar 22 02:56:40 If you ask me to write a desktop app, I can encapsulate and information hide etc well. Mar 22 02:56:42 Android, nope. Mar 22 02:56:44 AI-related. Mar 22 02:56:56 Ah, interesting. Mar 22 02:57:01 Qualitative preferences with Spatiotemporal Knowledge. Mar 22 02:57:11 So you're gonna be writing a lot of code, right? Mar 22 02:57:24 Umm, I have written a bit so far. Mar 22 02:57:29 Using JavaCC Mar 22 02:57:41 To turn a number of files into numerous encodings Mar 22 02:58:00 And then some Python to Benchmark different Systems solving these encodings. Mar 22 02:58:22 Then some gnuplot to put the results into charts **** ENDING LOGGING AT Sun Mar 22 02:59:58 2015