**** BEGIN LOGGING AT Fri Jan 09 02:59:58 2015 Jan 09 03:00:21 this is a good foundation Jan 09 03:00:26 not that I can blame them. but as far as I've seen, there's definitely that preference. Jan 09 03:01:14 I wonder why someone would use that and not just subscribe with their account, though? I guess one reason is they like viewing a subreddit only on mobile. Another is that they don't trust the client enough to log in (which could be solved by use of OAuth2, although even then some people won't trust it {since they don't understand it}). Jan 09 03:01:41 TacticalJoke: personally, what I find I miss most in apps is bookmarks. bookmarks are wonderful and not-opinionated in how you use them. you can save searches, search results, cool-thing-I'll-never-look-at, etc. but nobody puts them in apps :'( Jan 09 03:02:01 Does reddit's 'save' thing suffice? Jan 09 03:02:15 ¯\_(ツ)_/¯ Jan 09 03:02:16 I guess that's just for posts. Jan 09 03:03:49 at work, we're pretty heavily focused on "do this thing well, not for everyone". it has worked pretty well for us, and it is legitimately a lot simpler on the code side (though much more design time) Jan 09 03:03:59 Yeah. I'm like that. Jan 09 03:04:02 but there's room for both. Jan 09 03:04:23 I like what JW said about apps being opinionated. I think that's sometimes the best solution. Jan 09 03:04:27 ideally, there are good competitors which provide an outlet for "I like X, but it doesn't have Y", and you can just do X well. Jan 09 03:05:05 yeah. doing _everything_ is a feature itself, and a different kind of skill than doing a few things better than others. Jan 09 03:06:18 tl;dr most users are not power users, because they'd rather be doing something else. anything you put in the way is something in the way. it's impossible to be ideal for everyone. Jan 09 03:06:25 I think probably my main market will be the nerdy "I just want a client that doesn't get in my way" people. Jan 09 03:07:06 i'm not a big user of reddit Jan 09 03:07:13 what's wrong with just using reddit over the web? Jan 09 03:07:32 it's not a native app D: burn the blasphemer! Jan 09 03:07:36 Certainly not the "I want rainbows-shooting-out-of-unicorns animations every time I scroll a list" kind. Jan 09 03:07:51 HevvyMetal: Have you tried on a small screen? It's awful. Jan 09 03:08:00 TacticalJoke: see, there web wins. you can just cornify everything: http://www.cornify.com/ Jan 09 03:08:18 no but what would be less awful on a an ap TacticalJoke ? Jan 09 03:08:23 isit goin to be that much differnt Jan 09 03:08:24 ? Jan 09 03:08:24 haha Jan 09 03:08:48 HevvyMetal: Hugely different. Jan 09 03:08:48 typical on a small screen sucks either way Jan 09 03:08:52 in what way? Jan 09 03:09:00 lol cornify Jan 09 03:09:13 i havent tried browsing mobile web on reddit some are pretty good and some sites are pretty bad Jan 09 03:10:03 hiya Jan 09 03:10:27 HevvyMetal: As far as I'm concerned, browsing reddit on a small screen with a browser is absolutely horrid. Jan 09 03:10:32 satellites are still showing as having no almanac, even after sendExtraCommand("gps", "force_xtra_injection", bundle); Jan 09 03:10:32 And their mobile site is just awful. Jan 09 03:10:43 any idea how to inject almanacs to the GPS so that it can sync faster? Jan 09 03:11:08 Check this out for web design: http://www.reddit.com/.compact Jan 09 03:11:14 And imagine that on a small screen. Jan 09 03:11:20 i'm not a big fan of reddit to begin with so i dunno Jan 09 03:11:27 what reddit feeds do you read mostly TacticalJoke ? Jan 09 03:12:39 -/r/programming is good. Jan 09 03:12:48 Comment listings are even more awful: http://www.reddit.com/r/aww/comments/2rryvs/cold_weather_is_coming/.compact Jan 09 03:16:54 UukGoblin: I've never heard of 90% of what you just said. color me interested (but unhelpful, sadly) Jan 09 03:17:25 TacticalJoke: dem buttons :E Jan 09 03:18:22 groxx, basically, my phone's GPS is taking forever to sync, so I started looking for a cause. I wrote a small app that dumps these structs for each satellite: http://developer.android.com/reference/android/location/GpsSatellite.html Jan 09 03:18:36 surprise surprise, all 5 heard satellites have hasAlmanac on false Jan 09 03:19:02 almanacs are sets of data for a satellite that are needed to locate it AFAIK Jan 09 03:19:12 HevvyMetal + TacticalJoke: personally, apps have the benefit of being able to be custom-tailored for a specific use-case. the official website is unlikely to ever spend the time to optimize your weird use, but some _other_ weirdo might, and that's awesome. Jan 09 03:19:12 satellites send this data, but it takes 12 minutes for the device to get it Jan 09 03:19:20 so AGPS should be able to fetch it off the internetz. Jan 09 03:19:44 so I tried http://stackoverflow.com/questions/4961514/problems-with-sendextracommand-and-force-xtra-injection, but as for the OP, it doesn't work (although I don't know where the lto_downloader line comes from) Jan 09 03:19:54 groxx: you'd be suprised; some websites have a really great mobile experience and some don't Jan 09 03:20:18 HevvyMetal: but my point is that that's a personal opinion, and others might use the really great mobile experience entirely differently and be justified in disagreeing. Jan 09 03:22:28 hi Jan 09 03:22:30 http://pastebin.com/GdKhUPXZ Jan 09 03:22:33 even if reddit had a gorgeous, blazingly-fast mobile web option, someone's going to prefer app X because it shows them all gifs, all the time, and no comments ever. (or website X, but apps are the thing right now, in part because native app dev does some things faster and easier than web) Jan 09 03:23:03 if i set txtSearch.setText("test"); i have a nullpointer Jan 09 03:23:06 why? Jan 09 03:24:10 t0th_-_: I would guess because your actionview doesn't have a txt_search view. not sure off-hand how to fix that though. Jan 09 03:24:29 i have.. Jan 09 03:24:37 the only feature i would find interesting in some app showing comments / discussion (reddit, hn) is some novel way of visualizing, representing the threads. i haven't seen anything interesting in this area. Jan 09 03:24:40 my menu.xml in item i have android:actionLayout="@layout/menu_autocomplete" Jan 09 03:24:49 in menu_autocomplete i have txt_search Jan 09 03:26:34 ttraif i dont have txt_search it is not compile Jan 09 03:26:51 t0th_-_: dunno, https://developer.android.com/guide/topics/ui/actionbar.html looks pretty clear to me. Jan 09 03:27:02 to me to Jan 09 03:27:06 SearchView Jan 09 03:27:07 I haven't used it though, possibly there's something non-obvious :\ Jan 09 03:27:16 anyway, thanks Jan 09 03:28:54 so have we reached an agreement Jan 09 03:29:40 t0th_-_: hm. maybe try expanding it first? Jan 09 03:29:58 t0th_-_: but I'm guessing, don't really know. Jan 09 03:31:20 thanks, groxx Jan 09 03:41:19 i think when you type in your app name, google should check whether it infringes any trademark and just put a red (X) next to it, meaning invalid field Jan 09 03:41:48 anyone got experience with SwitchCompat ? Jan 09 03:43:30 g00s: in some ways it makes sense. but you might have permission to use that trademark. Jan 09 03:44:05 Any one of you bubs ever implement Chartboost? Jan 09 03:44:07 groxx yeah ... maybe a checkbox saying you have permission O.o. anyhow that reddit sync guy had permission, so i'm very curious what happened Jan 09 03:46:12 g00s: I assume that, by uploading, you're legally saying you have permission, a checkbox would just be a minor sanity check (that's still wildly inaccurate, because you could violate e.g. Twitter's trademark in other ways in your app, just not visible in e.g. the name) Jan 09 03:57:43 oreilly customer support is amazing Jan 09 04:02:10 everybody wake up @_@ Jan 09 04:02:19 hey whats up :) Jan 09 04:04:15 oof. is there any way to "crop" a surfaceview? I know I can use TextureView, but that's not available in gingerbread :\ Jan 09 04:04:54 groxx: not even by support lib? Jan 09 04:05:09 abara: it's not part of the support lib Jan 09 04:06:42 oh Jan 09 04:06:46 :/ Jan 09 04:06:52 with a textureview you can "just" set its bounds larger than its containing layout, and it'll essentially crop the results so you only see it where the containing view exists. surfaceviews don't reliably act that way though. Jan 09 04:20:23 cool http://www.gizmag.com/toshiba-nfc-sd-sdhc-memory-card/35515/ Jan 09 04:23:12 thems gonna be some tiny thumbnails. nfc isn't really a fast channel :\ Jan 09 04:23:37 maybe they should call them pinkynails Jan 09 04:38:33 resources on appcompat v21 are poor Jan 09 04:38:47 how can I change nav icon ? Jan 09 04:40:27 has anyone here built android from source yet? Jan 09 04:41:01 no, absolutely no one Jan 09 04:41:53 are google play ratings global? Jan 09 04:42:39 ok, so how about anyone who isn't being sarcastic? Jan 09 04:42:51 okmkz: there's even movie on xda how to do it Jan 09 04:44:05 I'm trying to build master for hammerhead. Jan 09 04:44:25 check the video Jan 09 04:44:46 also, android-root would be better channel for this Jan 09 04:45:07 ok, that's the answer I was looking for. thanks Jan 09 04:45:23 the answer you were looking for was in the topic then Jan 09 04:46:37 "Root/custom ROMs" is not exactly the answer I was looking for, but I get where you're coming from. Jan 09 04:47:22 why is everyone idle in android-root Jan 09 04:49:14 fffffff Jan 09 04:51:46 screwsss: because that's the natural state of IRC. this room just sets a bad precedent. Jan 09 04:52:07 channel Jan 09 04:52:36 yeah, that Jan 09 04:52:41 does anyone know of any svg templates for material design app icons? particularly the ones with dog ears (e.g. Keep app, Play Newstand etc) Jan 09 04:53:06 is #android an option for building source? I forget what exactly that channel is for. Jan 09 04:55:29 this channel seemed like a more likely candidate. Jan 09 05:00:02 what does this mean? "01-08 20:55:20.777 E/AndroidRuntime(20206): java.lang.NoSuchMethodError: No direct method (Lcom/blango/cuber/BaseActivity;Landroid/content/Context;ILjava/util/ArrayList;)V in class Lcom/blango/cuber/BaseActivity$NavigationDrawerAdapter; or its super classes (declaration of 'com.blango.cuber.BaseActivity$NavigationDrawerAdapter' appears in /data/app/com.blango.cuber-1/base.apk)" Jan 09 05:00:49 drinfernoo did you define a non default ctor for an activity O.o ? Jan 09 05:01:13 Yep Jan 09 05:02:00 not that I know of?? Jan 09 05:02:17 * capella that feeling while you're bisecting a regression and praying it's not a foot-gun :/ Jan 09 05:03:06 the line it points to is when I construct an adapter, but everything should be right Jan 09 05:04:58 it looks like its saying my activity isn't a valid context? Jan 09 05:05:01 or something Jan 09 05:05:08 mismatched jar ? Jan 09 05:12:20 stack trace here: http://pastebin.com/w5w5eDHG, source here: https://github.com/drinfernoo/Cuber/blob/master/app/src/main/java/com/blango/cuber/BaseActivity.java Jan 09 05:12:42 hello, could anyone explain sound? Jan 09 05:12:51 wow this lastest version of zillow apartment search is bad ass Jan 09 05:13:06 it also means there is NOTHING for rent in the bay area <$2500 jeez louise Jan 09 05:14:32 Is AudioTrack the correct/only way to plays sounds? Jan 09 05:15:05 drinfernoo: does NavigationDrawerAdapter maybe need to be static + have a public constructor so it can be revived by the framework? /me is not familiar with them though Jan 09 05:15:15 it would seem kinda odd if that were the case though Jan 09 05:16:18 no, I just stuck it in there since its where I'm doing everything drawer-related Jan 09 05:16:41 think that might be it Jan 09 05:17:37 alternatively: clean & rebuild, maybe it got confused D: but that is a funky one Jan 09 05:18:04 HevvyMetal: I'd believe it. I got lucky with a roommate + 3100. Jan 09 05:18:31 quite lucky. this place could probably rent for 4k+ Jan 09 05:21:20 what kind of place is it groxx and where in the bay area is it? how far do you have to commute to work? Jan 09 05:21:59 if I moved to the bay area now the salaries woul dhave to be insane to cover that kind of rent i dont see how a non DINK/tech family could handle it i t will be all geeks and noone to serve bagels heh Jan 09 05:22:14 and rent-controlled places, yeah Jan 09 05:22:24 house, in sunnyvale, commute is about 1:40 to SF. Jan 09 05:24:14 an 1:40 from sunnyvale to SF? How? on bart? Jan 09 05:24:21 so yuo commute 3 hours a day groxx? Jan 09 05:24:35 not to pry but approxmiantely how much do you make inexchange for that Jan 09 05:24:51 so your share is like $1500 but it's for a full on house tho rite? Jan 09 05:25:17 caltrain + bike, it's pretty easy. I get to count a good chunk of my commute as "work hours" because I can do work on the train, so it's not as bad as it sounds :) Jan 09 05:26:05 also caltrain is generally on time and way nicer than bart. clean and quiet. Jan 09 05:26:29 What condition does a row of a listview become unelgible for onitemclick ? Jan 09 05:26:48 lasserix: if it has clickable elements, like a button or checkbox. iirc. Jan 09 05:27:05 oh ok Jan 09 05:27:11 so is there any way to reenable it? Jan 09 05:27:36 it's a little borked :| I forget. listview + clickable + checkbox is pretty googleable though, last I tried Jan 09 05:27:38 right i wonder about that workable hours on the train groxx .... i didn't know caltrain went to sunnyvale i just thought it went to mountain view? is there a connector groxx or what? Jan 09 05:27:50 you can also maybe take the google bus i dont think you have to work for google to take it Jan 09 05:27:52 HevvyMetal: caltrain runs gilroy to sf. Jan 09 05:28:04 working on the train is fun Jan 09 05:28:10 hey groxx! Jan 09 05:28:12 HevvyMetal: sunnyvale is a huge stop, bigger than mountain view. Jan 09 05:28:12 well shoot move to gilroy then Jan 09 05:28:29 that's a hell of a commute. and few trains. :P Jan 09 05:28:33 ill try to put it in its own file Jan 09 05:28:34 well some companies count train time as time and some don't ...you bring your own hotspot? who do you work for groxx? Jan 09 05:28:38 a rebuild didn't work Jan 09 05:28:42 just grow some weed sell a few pounds three times a year should cover you ;p Jan 09 05:28:45 *your rent Jan 09 05:28:46 they used to have wifi on the train Jan 09 05:29:00 i cant believe last time i lived in berkeley i paid $1300/month for a 2 bdrm apt Jan 09 05:29:01 all legal as long aq you are benefactor or whatever that term is Jan 09 05:29:04 no way could you get that now Jan 09 05:29:06 HevvyMetal: a startup :) regrettably we like to be a bit stealthy. and yeah, hotspot. connectivity is crap, and there's no train-wifi, but it works. Jan 09 05:29:27 yeah well when i moved to san diego it was affordable here Jan 09 05:29:33 caltrain has never had wifi. they've been hoping to for years. :P Jan 09 05:29:35 now it's getting really expensive....higher than LA Jan 09 05:29:46 they did use to have it lewellyn Jan 09 05:29:55 i dont know how the san diego rent market things people will really pay that Jan 09 05:30:07 since salaries are pretty low here Jan 09 05:30:07 I have a listview showing a string on each row. I want that when the user clicks on a row, the text converts into a edittext so the user can edit the string Jan 09 05:30:13 can it be done in the same activity or should I change the activity upon list clicking? Jan 09 05:30:20 HevvyMetal: no. they didn't. :P Jan 09 05:30:22 http://www.caltrain.com/riderinfo/wi-fi.html Jan 09 05:30:40 yango definatly the same activity Jan 09 05:30:48 well people had told me that they did have it but they dropped it Jan 09 05:30:52 yango I'm an android dev noob, but i don't see why you couldn't keep it in the same Jan 09 05:30:58 that page doesnt say they never had it it just says they are investigating Jan 09 05:31:05 probably they did have it but then it got too slow and they dropped it Jan 09 05:31:16 yango: just pull the text from the row, make an edittext appear, and then setText(oldText) it Jan 09 05:31:47 lasserix: t0astt then my question becomes, how can i replace or switch the textview for an edittext in place (I'm newbier than you) Jan 09 05:31:53 http://www.caltrain.com/riderinfo/wi-fi.html Jan 09 05:31:57 holy shitoly batman Jan 09 05:32:01 oops Jan 09 05:32:05 http://www.rentjungle.com/average-rent-in-san-francisco-rent-trends/ Jan 09 05:32:24 As of December, 2014, average apartment rent within 10 miles of San Francisco, CA is $3413. Jan 09 05:32:24 One bedroom apartments in San Francisco rent for $2873 a month on average and two bedroom apartment rents average $3859. Jan 09 05:32:38 As of December, 2014, average apartment rent within 10 miles of San Diego, CA is $1797. Jan 09 05:32:39 One bedroom apartments in San Diego rent for $1516 a month on average and two bedroom apartment rents average $1971 Jan 09 05:33:06 That's all on VCs, HevvyMetal Jan 09 05:33:16 what's all on VC's yango? the rent? Jan 09 05:33:22 yeah but you'd have to be making $200k Jan 09 05:33:37 austin seems like the best deal I see a lot of $140k jobs there and rent is dirt cheap Jan 09 05:34:18 austin is pretty nice, as a tourist. dunno what work is like, but the city is good Jan 09 05:35:33 yango instead of using textview / edittext Jan 09 05:35:36 just use an edittext Jan 09 05:35:45 its normal state is disabled, it'll look like a textview Jan 09 05:35:50 when the row is clicked enable it, Jan 09 05:36:03 lasserix: great Jan 09 05:36:06 then disable it when the user is done typing or and you confirm or whatever Jan 09 05:36:49 i've never been thre Jan 09 05:36:55 no weed there tho in tx heh i dunno Jan 09 05:37:23 i'm looking for a new android consulting project to work on telecommute if anyone needs an extra hand at their stratup Jan 09 05:37:30 networking and all that Jan 09 05:37:54 lasserix: and to have two options edit/delete a row, the easiest path would be a context menu, right? I would like a button on the row instead bu tthat means a custom listview adapter... correct? Jan 09 05:40:17 where the idea would be that if the user presses the trashcan at the end of each row, it deletes the row, if the user presses on the string, it edits the row Jan 09 05:47:26 yango you just have to implement and see Jan 09 05:47:58 the only problem i see is its NOT IMMEDIATLY obvious that clicking on the textview/edittext will toggle its inputability Jan 09 05:48:12 so infact you may want an edit icon next to trash can Jan 09 05:48:14 tha ttoggles it Jan 09 05:48:21 and switches from edit icon to confirm/done icon Jan 09 05:56:07 does anyone know a workaround for audiotrack stream latency? sorry if this is obvious but i've been unable to discover anything so far. Jan 09 05:56:50 now I'm getting this "01-08 21:54:50.738 E/AndroidRuntime(3503): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/blango/cuber/adapter/NavigationDrawerAdapter;" Jan 09 06:05:11 Why are my crashes popping a Unable to get package info now? Jan 09 06:05:17 stack trace totally useless Jan 09 06:11:52 what is the correct way to make a library module's jni/c++ code link against a .so with gradle? Jan 09 06:12:11 the java code is found fine, but the c++ is failing to link (keep getting undefined reference errors) Jan 09 06:19:36 is it possible to create and build an android app skeleton from the commandline in linux? http://stackoverflow.com/a/27491225/210945 seems to indicate that it isn't... Jan 09 06:20:18 I followed the creating- and building an android app on the command line docs, but I get the same error as the OP in that question ^ Jan 09 06:21:44 Task 'assembleDebug' not found in root project 'RemindMe'. Jan 09 06:21:47 heh wow i just saw a job posting for an android powered gun for $275k/yr Jan 09 06:23:33 android powered gun? Jan 09 06:24:01 groxx, I figured it out Jan 09 06:24:14 I've lost my stacktrace i only get Unable to find package info are you sure it installed? anyone know why this is? Jan 09 06:24:21 I declared it as NavigationDrawerAdapter instead of Jan 09 06:24:58 yup here you go lasserix https://www.theladders.com/job/jobboard?cr=10452587&pl=ind-101&rx_campaign=Indeed21&rx_job=32137243&rx_medium=cpc&rx_source=Indeed Jan 09 06:25:11 based in Austin, Texas created the first Precision Guided Firearm, a revolutionary new shooting system that puts fighter jet lock-and-launch technology in rifles Jan 09 06:25:40 f... yeah Jan 09 06:26:02 besides the fact you're making weapons of death Jan 09 06:26:06 that looks like a lot of fun Jan 09 06:26:24 plus in austin tx thats like making $500k Jan 09 06:26:31 why do you think they are paying so much? Jan 09 06:26:34 is there an equivalent to LOCAL_SHARED_LIBRARIES in gradle? Jan 09 06:26:43 now everyone is gonna apply there hehe Jan 09 06:26:47 anyone know how to set margins on AbsListView.LayoutParams ? Jan 09 06:26:53 HevvyMetal: hush money. Jan 09 06:26:56 they just have that much money Jan 09 06:29:01 apple has a lot of money too but they don't psend it like that Jan 09 06:29:09 you'd think that would be worth $140k tops Jan 09 06:29:15 why so high? maybe misprint? cocaine? Jan 09 06:30:01 Hi, how to I track that the app hasen't been opened in a while? say 2 days, and then notifiy the user? Jan 09 06:31:31 anyone know how to style android.support.v7.widget.SwitchCompat ? Jan 09 06:33:18 Sophomore: keep a timestamp every time you're opened? Jan 09 06:35:24 Leeds: Well, I need to send a notification if the app hasen't been opened in 2 days. Jan 09 06:37:21 drinfernoo: d'oh. I shoulda noticed that. glad you found it :) Jan 09 06:37:39 I've never extended a generic apparently Jan 09 06:37:42 lol Jan 09 06:38:09 :) fwiw, since you already stated the underlying type is ArrayAdapter, you don't need generics anywhere else Jan 09 06:39:50 Trying to understand AIDLs, I create com.example.app.aidl.IBoundService.aidl - but I cannot access it in com.example.app.TestService - it just cannot resolve it, what could I be doing wrong ? Jan 09 06:42:46 so I was thinking of changing my nick (or alt nick) to Sarnacc what do you think? Jan 09 06:42:59 oh I just changed them both to Jan 09 06:43:17 sarlacc even Jan 09 06:43:30 lol Jan 09 06:43:35 why would we think anything Jan 09 06:44:37 well does it sound cooler than HevvyMetal Jan 09 06:44:48 HevvyMetal how old are you ? Jan 09 06:45:07 old enough to be a star wars fan i guess Jan 09 06:45:26 et tu g00s? Jan 09 06:45:46 woohoo \o/ >regression-squish< Jan 09 06:45:51 I don't know why so many star wars names are food items Jan 09 06:46:11 "Chew"-bacca Jan 09 06:46:33 well that too i guess Jan 09 06:46:53 i was thinking of Boba Fett and the Tusken Raiders and Calamari cruisers in particular tho Jan 09 06:47:03 heh Jan 09 06:47:45 it says here that sobaka is the russian word for dog Jan 09 06:48:13 I can't watch star wars without getting at least a little hungry Jan 09 06:49:13 quite the wrong place to ask about your nick "coolness" Jan 09 06:49:27 also I didn't know the most important thing on irc is to have a cool nick Jan 09 06:49:31 i'm sure there's mroe food ones i'm forgetting right now tho Jan 09 06:49:39 why's that? isn't it a nerd festival here? Jan 09 06:49:56 might be, so? Jan 09 06:50:01 so why not? Jan 09 06:50:16 the whole entire freenode network is nothing but nerds Jan 09 06:50:25 so then there's the whole class of star wars words that are just misspelligs like, "Taris", Geonosis, Kamino and Jedi Jan 09 06:50:44 everyone knows it should be "Tardis" Jan 09 06:50:54 was that an ELP song? Jan 09 06:51:13 everytime I drive down the El Camino Real i expect to see Lama Suu Jan 09 06:51:20 "misspelligs", how ironic :p Jan 09 06:51:32 which i do just about every day Jan 09 06:51:39 * HevvyMetal blames the protocol droid Jan 09 06:52:21 ok time to go to Kamino and get some Tusken lasagna with calamari cruiser bytes Jan 09 06:53:50 ravioli ! you're back ! Jan 09 06:54:02 no I'm not, what are you talking about Jan 09 06:54:03 * ravilov hides Jan 09 06:54:17 ravilov so now with 5.0 out, are you upgrading to 3.0 ? Jan 09 06:55:06 tots Jan 09 06:55:17 tater tots ? Jan 09 06:55:50 sounds like a good android name Jan 09 06:55:51 they call me, ... tater tot Jan 09 06:56:28 * desmin88 furnace just died, and its now 45 degrees in his house Jan 09 06:57:19 how am i supposed to program when my fingers are ice cold. Jan 09 06:58:48 dude , you need foxriver fingerless gloves Jan 09 06:58:53 General Cannoli it's been a long time since we last met Jan 09 06:59:11 desmin88 get a little portable heater for now Jan 09 06:59:25 How was your adventures on Gumm E'bear? Jan 09 06:59:47 unfortunately its 2am here so i cant buy a space heater Jan 09 06:59:58 I think Greedo was blatantly racist Jan 09 06:59:58 desmin88 no walmart ? Jan 09 07:00:11 shh. Jan 09 07:00:16 yes there is :p Jan 09 07:00:19 what kind of furnace and how did it die desmin88? Jan 09 07:00:27 How cold is it over there? Jan 09 07:00:35 i thougth my gas furner was dead but it really had an error light blnking and the blining light just meant to change the filter Jan 09 07:00:37 desmin88 can't let the pipes freeze dude ! Jan 09 07:00:42 i pulled out the filter and it started up Jan 09 07:00:51 right now its -2 in freedom units Jan 09 07:01:04 Nice Jan 09 07:01:06 Its warmer here Jan 09 07:01:12 I think its like 5 Jan 09 07:01:16 Chicago Jan 09 07:01:21 HevvyMetal: electric, doesnt blow air at all and heating element isnt starting Jan 09 07:01:36 I heard in New York they might get up to 20 inches in lake effect snow in some place Jan 09 07:01:38 *places Jan 09 07:01:40 lol Jan 09 07:01:42 g00s: i have the bathroom baseboard heaters on high Jan 09 07:02:01 well did you try pputting it in a different socket? maybe it blew a fuse Jan 09 07:02:08 what's a freedom unit? where do you live? freedom, ky? Jan 09 07:02:29 fahreinheit Jan 09 07:02:39 Anyone in Illinois? Jan 09 07:02:40 ren* Jan 09 07:02:42 Chicago? Jan 09 07:02:59 Its freezing here too Jan 09 07:02:59 yeah the breakers flipped but i replaced all the fuses Jan 09 07:03:30 will flip the breeakers then Jan 09 07:03:47 desmin88 if you had a nexus 9, watched a movie that could heat up the room Jan 09 07:03:51 lol Jan 09 07:04:00 i should run prime95 with my fans on high Jan 09 07:04:05 yeah if you watch porn it will burn your nuts off Jan 09 07:04:17 HevvyMetal: yeah theyre flipped back of course Jan 09 07:04:25 why would you live in a cold place that has electric heat that's insane Jan 09 07:04:37 electric heat is the most stupid thing imaginable Jan 09 07:04:52 thik about it....you take heat...convert it (inefficiently) to electricity Jan 09 07:05:00 transport it inefficiently Jan 09 07:05:07 then ineffiiently convert it back to heat again Jan 09 07:05:16 LOL Jan 09 07:05:20 it has to be the dumbest thing ever Jan 09 07:06:10 supposed to be efficient for where we live or some shit like that Jan 09 07:06:25 no gas lines at all here Jan 09 07:06:25 inefficient but scalable and multipurpose ? although i don't know how efficient having a coal pipeline into the basement is Jan 09 07:06:51 which honestly im okay with, dont want anyone blowing me up Jan 09 07:07:33 how expensive is electricity where you live desmin88 ? and where do you live anyway? Jan 09 07:07:49 cleveland ohio area Jan 09 07:07:51 miketo: natural gas, fuel oil, etc Jan 09 07:07:58 the mist8 on the l8k Jan 09 07:07:59 quite cheap dont know the exact kwh cost though Jan 09 07:08:10 well where i live it's the highest in the country higher than hawaii even Jan 09 07:08:23 they have android devs in cleveburg? Jan 09 07:08:26 how much is it? Jan 09 07:08:28 i think they have some nuke plant there Jan 09 07:08:30 anyone know why a listview wouldn't scroll using smoothScroll smoothScrollBy etc Jan 09 07:08:36 yup we have the perry nuclear power plant Jan 09 07:08:41 fuck not even setselection works Jan 09 07:09:05 yeah im one the last few left Jan 09 07:09:07 Is internet fast there? Jan 09 07:09:20 uhh Jan 09 07:09:21 Where is internet the most expensive? Jan 09 07:09:30 Rural areas and stuff? Jan 09 07:09:42 i bet those antarctic stations Jan 09 07:09:43 http://www.sdge.com/residential/2013-rates Jan 09 07:09:44 or the ISS Jan 09 07:10:00 350 kwH which is nothing Jan 09 07:10:03 is $74 a month! Jan 09 07:10:06 that is fucking crazy Jan 09 07:10:21 a typical house uses more like 1000 kwh/month and thas $300 here Jan 09 07:10:31 when I see people with pluguiin hybrids i laugh Jan 09 07:10:43 thats ludacris Jan 09 07:10:48 it's just a total assreaming tho it's 30% higher than LA for what reason? Jan 09 07:10:51 it is ludicrous Jan 09 07:10:59 and i reserve that word for special occasions Jan 09 07:11:02 and this is one of them Jan 09 07:11:19 $$$ is why Jan 09 07:11:25 what do you pay out there desmin88 ? Jan 09 07:11:29 anyone know why a listview wouldnt scroll after calling smoothScroll setSelection etc etc Jan 09 07:11:40 hold on we have an android question :) Jan 09 07:11:43 lol Jan 09 07:11:45 lol Jan 09 07:11:49 HevvyMetal, Looks like $0.084/kwh here, also electric heat (Alabama) Jan 09 07:12:11 something like .074/kwh Jan 09 07:12:16 nm Jan 09 07:12:22 thats 25% of the price here Jan 09 07:12:23 anytime something doesn't work in android Jan 09 07:12:23 lasserix: you fixed it? Jan 09 07:12:24 insane Jan 09 07:12:29 i dont know why people tolerate it Jan 09 07:12:30 just wrap it in a handler postdelayed by 100 ms Jan 09 07:12:50 well if electricity is that cheap ther eyou should set up a grow operation and some BTC mining Jan 09 07:12:59 you called the smoothSchool after the listview was drawn? Jan 09 07:13:14 yeah Jan 09 07:13:17 this is in response to clicking Jan 09 07:13:24 Idk if you can do that. Jan 09 07:13:25 i have expandable rows Jan 09 07:13:35 and so you click, it scrolls that position to top then expands the row Jan 09 07:13:37 yeah it works Jan 09 07:13:55 like i said, anytime something doesn't work w/r to the UI just wrap it in a handler postdelayed by 100 ms Jan 09 07:13:58 always fixes it ;p Jan 09 07:18:23 hm, wonder if it works http://www.gizmag.com/thync-mood-changing-wearable-hands-on/35535/ Jan 09 07:21:11 ok Jan 09 07:22:18 g00s im sure getting zapped would get me out of bed Jan 09 07:23:34 :D Jan 09 07:24:18 what kind of pads does it have? Jan 09 07:24:25 can you choose what sort of drug effect you get? Jan 09 07:25:27 I was thinking about "Load More" buttons and the auto-load-more-on-scrolling-the-list thing. Jan 09 07:25:39 I actually kinda like the button. It's so simple. Jan 09 07:25:58 The main advantage of the auto-load-more system is that it's convenient. But the user doesn't really understand what's happening. Jan 09 07:26:05 It's confusing, I think. Jan 09 07:26:12 It also probably makes users feel out of control. Jan 09 07:26:32 If someone wants to limit bandwidth, it's much hard with auto-load-more. Jan 09 07:27:03 Though I think people will hate having to click a button. Auto-load-more might be the lesser evil. Jan 09 07:28:40 I guess this'd be cool: auto-load-more with some kind of UI display that makes it obvious what's happening (regardless of the current scroll position). Jan 09 07:29:06 load bandwith that's kind of a joke right? Jan 09 07:29:17 why are they using your app if they want to conserve bandwidth? Jan 09 07:29:33 I think it's a concern for some people. Jan 09 07:29:37 Some people have like 100MB/month. Jan 09 07:29:39 and don't assume the user is an idiot: once they see it auto loads more when they scroll to the bottom they will understand the fact Jan 09 07:29:43 then why are they using your app? Jan 09 07:30:02 or put up a notification "Warning not on wifi and app may use bandwidth ! don't show again mkay" Jan 09 07:30:34 Do you feel in control when apps do it, lasserix? Jan 09 07:30:35 I know I don't. Jan 09 07:30:40 I feel like the app is weird and volatile. Jan 09 07:30:43 do what? Jan 09 07:30:46 This applies to web pages, too. Jan 09 07:30:47 auto load Jan 09 07:30:48 yeah Jan 09 07:30:55 it would really irratate me if it didn't autoload Jan 09 07:30:59 Okay. Jan 09 07:31:04 if i had to press a button everytime i already scrolled to the bottom of the list? Jan 09 07:31:04 I'll probably end up auto-loading. lol Jan 09 07:31:09 Just trying to think of a better way. Jan 09 07:31:11 that's asking the user to do more than they should Jan 09 07:31:14 True. Jan 09 07:31:26 well use a scroll more to refresh approach Jan 09 07:31:27 Maybe auto-load but only when they hit the very bottom of the list. Jan 09 07:31:30 that way its the same action Jan 09 07:31:31 Thereby making it obvious what's going on. Jan 09 07:31:34 yeah Jan 09 07:31:38 thought thats what you meant Jan 09 07:31:53 I guess I was thinking of auto-loading-more once they get 3/4 down or something. Jan 09 07:31:57 Which a lot of people seem to do. Jan 09 07:32:00 But it's too hidden. Jan 09 07:32:27 I want the user to feel in control and not be surprised at all, ever. Jan 09 07:32:42 So I guess auto-load-more at the very bottom is good enough. Jan 09 07:34:17 God, I'm doing logins next. I hope it's not too painful. Jan 09 07:34:35 reddit wants everyone to use OAuth2, and I've seen posts where people basically gave up because it was too complex to do on Android. Jan 09 07:34:52 It doesn't sound like it should be too bad, but those posts aren't exactly comforting. Jan 09 07:37:03 I'm not sure I should even bother with OAuth2. Nobody else seems to. Jan 09 07:37:17 The alternative is a simple HTTP POST to https://ssl.reddit.com/. Jan 09 07:38:20 Or a GET, I guess. Jan 09 07:39:33 you have a bad feeling about it TacticalJoke ? Jan 09 07:39:58 I sent some bothans out to get some milk and cookies... all dead Jan 09 07:40:47 The first sentence of : "So OAuth is a huge pain to implement." Jan 09 07:41:00 Wait, that's talking about OAuth in general. Confused some tabs. Jan 09 07:41:03 just use a third party library Jan 09 07:41:06 you'll be fine Jan 09 07:41:24 Yeah, but I wanna understand everything about reddit. If stuff stops working, I need to know why. :) Jan 09 07:43:17 The funny thing is that the official reddit (AMA) app doesn't (as far as I can tell) use OAuth2. Jan 09 07:43:23 They preach that everyone should use it, but they don't. Jan 09 07:43:44 are you planning on charging for this app TacticalJoke or why are you writing it? Jan 09 07:44:03 It'll be free. Jan 09 07:44:10 HevvyMetal: Remember when I told you earlier why I'm writing it? Jan 09 07:44:13 yeah i hear everyoen complane aobut oauth doesnt it share that with the browser? and what if you have different browsers installed which one does it use?or that's fb login? i forget? Jan 09 07:44:34 you said because you wanted some client but i mean are you planning on monetizing it or open sourcing it or are you a student or what? Jan 09 07:47:44 I feel like I ought to open-source it. Not sure. Jan 09 07:49:39 To be honest, I'm not 100% sure what OAuth2 guarantees. Couldn't an app just *pretend* to use OAuth2? Jan 09 07:50:28 Assuming that it's using a WebView. Jan 09 07:52:23 It's telling that the official reddit app doesn't use OAuth2. Was it too hard for them to do well? Jan 09 07:55:11 funny the topic says no bots, maybe google should follow that with regards to takedowns Jan 09 08:00:15 sn0rin g00s Jan 09 08:06:10 Statistics about my app from the Google Play Developer Console, it says "Current installs by device for Dec 5, 2014 - Jan 5, 2015" Jan 09 08:06:22 How is that current? That was 4 days ago! Jan 09 08:06:44 At the bottom of the page, it says "Application statistics are updated daily. All statistics are calculated based on the PST/PDT timezone." Jan 09 08:08:41 devdean: has anyone installed it since then? Jan 09 08:09:07 sue google devdean Jan 09 08:09:11 soogle Jan 09 08:09:19 I still wonder why google is not making good docs and examples for material design support libs Jan 09 08:09:30 gordon_ they are amateurs Jan 09 08:09:35 for sure ! Jan 09 08:09:48 yeah look how hackified fragments are and the oncreate tight coupling like its 1993 Jan 09 08:09:54 i've come to the conclusion the android team has lots of inexperienced developers Jan 09 08:09:55 g00s: wanna fork android together? :D Jan 09 08:10:03 lewellyn: Yes. I promoted my app from alpha to production on the 6th, and I've been promoting my app as much as possibly. Jan 09 08:10:04 i'm surprised it's not called android beta 5.0 Jan 09 08:10:09 smart, but inexperienced Jan 09 08:10:19 whats the url to your app devdean? Jan 09 08:10:21 I'd really like to see how many installs my app is getting. Jan 09 08:10:30 devdean: analytics ? Jan 09 08:10:32 https://play.google.com/store/apps/details?id=com.dean.boxgame.android Jan 09 08:10:35 g00s: sfba tech, in general, avoids hiring mentor figures. Jan 09 08:10:59 who is 'mentor figure' Jan 09 08:11:11 gordon_: I don't have analytics integrated with my app...yet. Maybe I will after this. Jan 09 08:11:24 gordon_: people who have been around enough to be able to share their "war stories" so they aren't fought again. :P Jan 09 08:11:36 ah Jan 09 08:12:00 devdean: you should do it, it went on diet sometime ago Jan 09 08:12:05 there's a decided anti-old-people trend around here. and that's starting to be like 30+. that does not bode well for the quality of what's being produced. Jan 09 08:12:12 so it doesnt take like ~5k of your method limits Jan 09 08:12:24 lewellyn: lol? Jan 09 08:12:39 did you write that by hand devdean or use any 2d apis? Jan 09 08:13:42 HeavyMetal: libgdx Jan 09 08:13:59 *HevvyMetal Jan 09 08:14:25 thats cool does that deal with the bckground sounds and latency? Jan 09 08:14:36 how do most games deal with android latenc or just ignore it? Jan 09 08:15:29 i'm curious about this. if i search play for 'tile', the Tile app is #1 even though they just introduced it, and it only has 348 ratings. compared to Meow Tile 2 which is way further down, 1912 ratings Jan 09 08:15:45 i think somehow google rigs Play for certain apps Jan 09 08:15:58 play has a search newest and search trending etc Jan 09 08:16:03 how did you search g00s? web? Jan 09 08:16:08 web Jan 09 08:16:16 i still don't know how the play app works is it webviews or what? Jan 09 08:16:25 try the app it has more options even tho it might jsut be webviews g00s Jan 09 08:16:29 doubt its webviews Jan 09 08:17:00 it seems to be pretty webviewy Jan 09 08:17:13 is there still taht tool to get it to display the view hiearchy? could run that on it Jan 09 08:17:48 not sure what webview has to do with anything. so how would Tile be #1 already with so few downloads ? Jan 09 08:18:11 well if play is webviews why dont the web version of the play store have the various search options Jan 09 08:18:24 Tile is #1 cuz it's new and then it will float down the list probably Jan 09 08:18:36 why dont you google about it i'm sure there's lots of rants on the subject Jan 09 08:19:05 i really regret not moving to a cheaper place sooner i didnt realize there were a lot of cheap aprtments in this area i thought it was mostly houses *sigh* Jan 09 08:19:11 yeah i'll find out how money changed hands behinf the scenes Jan 09 08:19:19 or theis guy talked to that guy Jan 09 08:19:28 late night cybersex Jan 09 08:19:33 why dont you ask the app developer? Jan 09 08:44:02 When a user logs in to reddit, they get an authentication cookie. Where should I store this? SharedPreferences? Do I need to encyrpt? Jan 09 08:45:12 TacticalJoke: I hate to say it, but... you do seem to ask for advice on every single technical question here... Jan 09 08:46:41 TacticalJoke, AuthenticationManager. Jan 09 08:46:49 or accountmanager or whatsit Jan 09 08:47:11 Leeds sayin it like it is Jan 09 08:47:15 Ah. Forgot about that. Jan 09 08:47:22 I don't understand Leeds's complaint. What is it, exactly? Jan 09 08:48:31 I believe the complaint is that you're just simply overdoing it, like you're immensely insecure and uncertain about every single aspect of your work Jan 09 08:48:58 I'd rather Leeds told me. Jan 09 08:49:02 Since only he knows what he's talking about. Jan 09 08:49:40 nope, many people do, he's just the one voicing it Jan 09 08:49:52 but ok, feel free to wait on him if you prefer Jan 09 08:50:24 I care what ravilov thinks. Jan 09 08:50:33 this looks good. i think i'm going to get it http://www.informit.com/deals/ Jan 09 08:50:43 ravilov: Have you learned how to use a revision-control system yet? Jan 09 08:50:48 today, deal of the day :) Jan 09 08:50:51 TacticalJoke: firstly, if you're talking to someone, you typically would address them, rather than referring to them in the third party... Jan 09 08:50:53 g00s diffusing the tension Jan 09 08:51:22 TacticalJoke they have a chapter "Overcome the unique challenges of mobile authentication and login" Jan 09 08:51:55 Ah, interesting. Jan 09 08:52:40 but what I was talking about was actually a combination of two related things... you seem to obsess over details of your app which really aren't all that important... and then, as ravilov says, you seem to want to discuss those details in detail, get told what to do Jan 09 08:54:00 g00s: that book is almost 2 months out of date... Jan 09 08:54:09 Leeds: And your whining helps how? Jan 09 08:54:29 TacticalJoke, quit being a jerk Jan 09 08:55:15 g00s, do tell if it's any good Jan 09 08:55:16 :) Jan 09 08:55:26 Mavrik i will :D Jan 09 08:56:06 Leeds: You should put me on ignore. I'll continue to ask questions in here. Jan 09 08:56:30 are you a student TacticalJoke ? Jan 09 08:56:49 TacticalJoke loses tact Jan 09 08:57:18 if TacticalJoke is asking android questions i don't see the issue. if there are a lot of people asking its curteous to let others get time, but its pretty slow Jan 09 08:57:53 TacticalJoke it would be good to realize, you will throw your code away eventually anyhow ;) Jan 09 08:58:09 getting emotionally attached to code is bad bad bad Jan 09 08:58:16 I'm not complaining about the asking... just saying, sometimes do a little Googling, then just go ahead and write some code... don't agonise over it, don't obsess too much over details Jan 09 08:58:18 HevvyMetal: Aren't we all? :) Jan 09 08:58:26 * g00s goes back to admire his new code Jan 09 08:58:38 are you < 25 tactical? Jan 09 08:58:46 are you in college? high school? Jan 09 08:58:51 g00s, make sure you pet it and feed it too Jan 09 08:58:52 Leeds: I essentially do peer review in here. If I'm asking a question, I have probably googled it for at least 20 minutes. Jan 09 08:58:57 I do that because there are experts here of all domains. Jan 09 08:59:04 ravilov i'll feed it raviolis Jan 09 08:59:10 And I've learned a lot from certain people. Jan 09 08:59:10 #nohomework Jan 09 08:59:20 it's a waste of time and annoying Jan 09 08:59:43 what is pfn? Jan 09 09:00:08 TacticalJoke, this channel is a free resource run by volunteers, as such it would be nice to use it sparingly or else run the risk of overusing the resources Jan 09 09:00:24 * g00s got used up years ago Jan 09 09:00:25 g00s, good luck with that Jan 09 09:00:31 I think you don't have a clue what you're talking about, ravilov. Jan 09 09:00:40 see more: vampire wrt stackoverflow Jan 09 09:00:42 That's about it. Jan 09 09:00:46 I think you should stop talking down to people, TacticalJoke Jan 09 09:00:47 hey guys, anybody here using google app engine, and can explain to me how to run a method on every request, how to I intercept this logic, which main class should I override? Jan 09 09:01:00 ravilov: I talk down to idiots who dog-pile others while not having a clue what's going on. Jan 09 09:01:08 #appengine Jan 09 09:01:13 oh thx Jan 09 09:01:20 #lesnbox Jan 09 09:01:22 #lensbox Jan 09 09:01:23 TacticalJoke, thus making yourself look like an idiot - good job Jan 09 09:01:24 * ravilov done Jan 09 09:01:42 damn told off by some pasta Jan 09 09:01:47 True. I prefer talking to non-idiots. I'll stop responding to you now, ravilov. Jan 09 09:02:11 i thought TacticalJoke seemed like a candian but he looks to be more aussie Jan 09 09:02:16 Um. Jan 09 09:02:25 TacticalJoke, could you not... insult people here? Jan 09 09:02:30 what ravilov mean is TacticalJoke Jan 09 09:02:31 this Jan 09 09:02:32 180ms ping wtf Jan 09 09:02:34 http://meta.stackoverflow.com/questions/258206/what-is-a-help-vampire Jan 09 09:02:39 dont be that Jan 09 09:03:31 HevvyMe(n)tal, he's a brit actually Jan 09 09:04:02 how do you know he's a brit his tracert says arstralia Jan 09 09:04:02 thats hevvy man Jan 09 09:04:04 I feel that way about a bunch of people Jan 09 09:04:16 HevvyMetal, because I know Jan 09 09:04:22 do you just think he's a brit because he wants to be spoon fed on the dole? Jan 09 09:04:25 help vampires Jan 09 09:04:34 I just know Jan 09 09:04:42 do you have any new lens box pics pfn? Jan 09 09:04:43 (I have other resources) Jan 09 09:04:54 ;) Jan 09 09:05:53 no idea wtf you're on about Jan 09 09:06:08 you're not the pfn who used to take lots of pictures of their lens boxes on #photography? Jan 09 09:06:39 how many other perry nguyens are there? Jan 09 09:06:43 used to be on #photo EFnet, never here Jan 09 09:06:48 never of lens boxes Jan 09 09:06:50 well no kidding Jan 09 09:06:59 yes you did you took pictures of lens boxes, and watches and some gold coin Jan 09 09:07:10 i think you did get out and do a cool night shot of the bay bridge tho Jan 09 09:07:16 where do you liev now still the bay area? Jan 09 09:07:16 watches and stuff Jan 09 09:07:17 hi, I am trying to get a memory trace using the AS's audit memory feature. The problem I'm facing is that the app in question is crashing with OOME, and the auditing just fails on me. Jan 09 09:07:25 never lens boxes Jan 09 09:07:34 maybe a watch sitting on a lens box Jan 09 09:07:36 anyone know how to get it even when the app crashes? Jan 09 09:07:54 so do you still live in the bay area pfn or where now? you have to guess my old nick on efnet Jan 09 09:08:01 avinashrbhat, you'll have to do a heap dump: http://stackoverflow.com/questions/6131769/is-there-a-way-to-have-an-android-process-produce-a-heap-dump-on-an-outofmemorye Jan 09 09:08:09 ok Jan 09 09:08:19 and then convert it and open it with e.g. Eclipse MAT or somethign Jan 09 09:09:19 Mavrik, thanks. I'll do that. Jan 09 09:09:48 I was hoping to have a solution without changing the code though. Jan 09 09:11:01 avinashrbhat, you can do a heap dump from ANdroid Monitor whenever Jan 09 09:11:11 avinashrbhat, but of course, you have to do it before OOM kills your process :) Jan 09 09:11:49 Mavrik, that is not possible as, the OOM happens erratically. Jan 09 09:12:33 Mavrik, I'll try dumping the heap. which seems to be the easiest functionality. Jan 09 09:12:36 it's always somethin Jan 09 09:13:17 avinashrbhat, yeah, registering the OOM handler is probably the best idea then Jan 09 09:14:04 avinashrbhat http://novoda.com/blog/memory-debugging-on-android-part-1 Jan 09 09:14:25 "GRABBING A HEAP DUMP WHEN THINGS GO WRONG" Jan 09 09:14:39 ssssshhhhh Jan 09 09:16:35 how good is the heap dump i never used it myself Jan 09 09:17:16 well you get the whole java heap dumped to file Jan 09 09:17:17 :) Jan 09 09:18:18 its pretty hevvy Jan 09 09:18:27 HevvyMetal, good memory, I still live there, no idea right now Jan 09 09:18:30 l2s? Jan 09 09:19:30 HevvyMetal, it was a watch sitting on a watch boz Jan 09 09:21:58 pfn get any further with luaj ? Jan 09 09:22:09 g00s, haven't looked at it Jan 09 09:35:40 yeah but can you inspect the heap and see what strings are in there or follow the object pointer or you just see that thre are 12000 strings or whatever mavrik? Jan 09 09:35:50 i hardly use my slr any more my sx40hs does it all Jan 09 09:41:52 HevvyMetal, yes, you can inspect the heap and see objects on it and which objects reference which Jan 09 09:42:00 so you can track down memory leaks and stuff Jan 09 09:42:11 as I said, Eclipse MAT is a pretty neat GUI for reading those heap dumps Jan 09 09:46:29 HevvyMetal, I sold all my stuff Jan 09 09:46:46 * pfn sleep & Jan 09 09:48:56 what about in AS? Jan 09 09:49:03 does eclipse MAT pull the dump automatically? Jan 09 09:52:45 HevvyMetal, no, you need to load it Jan 09 09:53:01 also, you need to convert Dalvik dump to JVM dump first with the hprof-convert tool or whatsit Jan 09 09:53:05 i mean does it load automatically over adb/usb or do you have to file transfer it by hand? Jan 09 09:53:08 (MAT is built for desktop java apps= Jan 09 09:53:14 No. Jan 09 09:54:45 so how do you get the dump into aat from android? Jan 09 09:54:52 oh ok Jan 09 09:54:59 so there is no android tool built into adt or anthign Jan 09 09:55:12 there's a tool in Monitor but it's less useful Jan 09 09:55:26 Hmm. Thinking about it, my web browser stores my reddit session cookie anyway, and it's visible in plain text. So I don't think I really need to worry about encrypting it before saving on the user's device. Jan 09 09:57:28 i've but does the mointor tool show you just raw memory usage Mavrik ? what about android studio? Jan 09 10:01:01 hows intersteller? Jan 09 10:07:21 i liked it Jan 09 10:07:41 did you see it in 3d? i didnt know it was still showing thats a long time it came out in november right? Jan 09 10:07:46 what did you like best about it diamat ? Jan 09 10:07:53 imax right? Jan 09 10:07:56 i saw it in imax Jan 09 10:08:16 well it was visually a very stimulating movie lol Jan 09 10:08:19 the actors performances are great and it looks amazing Jan 09 10:08:28 yea Jan 09 10:08:55 the plot has weird/pseudo-causal parts sure but i would highly recommend it Jan 09 10:10:59 was it 3d imax? Jan 09 10:11:13 i'm tired of "visually stimulating" movies (like gravity) that are boring as fuck Jan 09 10:11:38 that's why i didn't go see battle of the 5 stupid armies Jan 09 10:14:05 it's not boring, at least I didn't think so Jan 09 10:14:16 wasn't that boring, although then again i like boring movies too Jan 09 10:17:28 did you like 5 armies? Jan 09 10:17:33 boreomeer Jan 09 10:17:55 no 5 armies was awful Jan 09 10:18:10 how awful was it? Jan 09 10:18:25 why does the cgi on 5 armies look like a nintendo? whydidnt they just stick to costumes? Jan 09 10:18:29 pretty bad, legolas is basically superman Jan 09 10:18:41 legolas wasn't even in the hobbit Jan 09 10:18:53 I know Jan 09 10:19:09 and that bitch tawdriel gets in the way of making is a fully homoerotic dwarf elf and hobbit orgy Jan 09 10:19:30 was there even a battle of 5 armies in the hobbit? or a barkenstone or whatever? Jan 09 10:19:35 i just remember the spiders and the dragon Jan 09 10:19:53 I can't wait for the 12 part peter jackson version of Green Eggs and Ham Jan 09 10:20:02 bilbo gets knocked out and misses the battle in the book Jan 09 10:20:04 with the helicopter shots and al Jan 09 10:20:32 well bilbo doesnt do much in the movie does he? you mean they don't cover the battle it just skips past it in the book? Jan 09 10:21:01 did you see it in 3d Memorion ? what did you think of the interview? Jan 09 10:21:22 i just think that this hobbit thing COULD have been a cool 3 hour movie to get kids into LOTR Jan 09 10:21:33 but making it 7 hours or whatever is totally nutso Jan 09 10:21:53 i just saw the 2nd one i didnt want to spend $18 to watch a bunch of dwarves eat cheese for 3 hours Jan 09 10:22:55 yeah, I just don't understand how it could get so bad with so much of the same staff and writers Jan 09 10:23:07 did you see peter jackson's king kong? Jan 09 10:23:09 the dialog in the third is so bad Jan 09 10:23:13 no Jan 09 10:23:17 oh man Jan 09 10:23:20 you should Jan 09 10:23:31 it's absolutey the worst piece of garbage ever Jan 09 10:23:41 it's so horrible Jan 09 10:24:02 but of course they ruined the hobbit with the same writers it's a totally different book/vibe to it Jan 09 10:24:11 the hobbit is like harry potter it's not like dune or LoTR Jan 09 10:24:26 they should have gotten harry potter directors to tackle the hobbit it's light kids fare Jan 09 10:24:47 * ravilov checks if he's in the right channel Jan 09 10:24:51 not trying to have all thsee characters make high and mighty statements and bloviate about dark forces and helicopter shots Jan 09 10:25:39 ok ok i'll just say that if peter jackson was gonna do something like that he should just do Dune and make it 12 hours long and everyone will love it..more in #cinema Jan 09 10:34:04 Hello! I have area described by RectF. I want to detect, contains this area coordinates. Everything work ok BUT, this rect (area) can be rotated!!1 And when i trying to rotate Rect to recalculate it bound results of rotation are unexpected. I use this method http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.0.0_r1/com/android/bitmap/util/RectUtils.java#RectUtils.rotateRect%28int%2Cint%2Cint%2Candroid. Jan 09 10:34:04 graphics.Rect%29 (rotateRect). So, for example i have rect [0,0, 225,225], result is of rotation on 45 degree angle is something near [-46.0267, -46.02669, 272.0267, 272.0267] WTF? Jan 09 10:34:19 link http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.0.0_r1/com/android/bitmap/util/RectUtils.java#RectUtils.rotateRect%28int%2Cint%2Cint%2Candroid.graphics.Rect%29 Jan 09 10:38:41 xgearx, instead try to rotate your canvas (use canvas.save(), canvas.rotate[...] canvas.drawRect[...] and canvas.restore() Jan 09 10:38:57 otherwise, try to explain your issue better cause I don't really understand what your problem is Jan 09 10:39:03 i use rect not for drawing Jan 09 10:39:08 not for canvas Jan 09 10:39:11 ah:/ Jan 09 10:39:25 only for detecting is touch in area or not Jan 09 10:39:34 i see Jan 09 10:40:04 the problem is - when i rotate rect - coordinates unexpected Jan 09 10:40:25 for [0,0, 225,225] and angle near 45 i have [-46.0267, -46.02669, 272.0267, 272.0267] Jan 09 10:40:28 maybe the center of your rotation is wrong? Jan 09 10:40:33 not Jan 09 10:40:37 or you need to shift your rect a bit Jan 09 10:40:44 the negative for left and top is probably expected Jan 09 10:40:47 i use Rect.centerX() Jan 09 10:40:49 if your rect start near 0 0 Jan 09 10:41:10 imagine you have a sheet of paper on a table corner Jan 09 10:41:15 you rotate it on its center Jan 09 10:41:23 you will see some edge going out of the table surface Jan 09 10:41:32 only one value should be negative Jan 09 10:41:36 top or left Jan 09 10:41:41 but not both Jan 09 10:41:49 ! Jan 09 10:42:23 i just tried i can see left and top Jan 09 10:42:28 going negative Jan 09 10:42:57 so i expect something like this [46.0267, -46.02669, 46.02669, 272.0267] Jan 09 10:42:58 especially on 45° angle Jan 09 10:43:07 but it is wrong Jan 09 10:43:39 if i rotate square coordinates (0,0) should not be in rect after rotation Jan 09 10:43:45 but they are in Jan 09 10:44:06 WTF? Jan 09 10:44:21 I have some EditText's that are cleared when I pause the activity. Jan 09 10:44:26 I don't want this behavior. What do? Jan 09 10:45:45 xgearx, i don't know more sorry, but i really think that based on your description and using the center of your rect for rot, this is expected/working as intended Jan 09 10:46:15 Has anyone worked on the Android L source code ? Jan 09 10:46:27 tx, you need to use saveinstance restoreinstance Jan 09 10:46:48 that's for if the activity is destroyed Jan 09 10:46:56 not paused / resumed. Jan 09 10:47:23 adq: for square [0,0, 225,225] i use 112.5, 112.5 while rotating Jan 09 10:47:33 as center Jan 09 10:50:58 for some reason users with android 4.3 are giving us way worse ratings than users with android 4.1 or 4.4. any ideas on this? Jan 09 10:50:59 xgearx, http://imgur.com/ox1kB2Z sorry for the poor drawing (on right it should be a rectangle but you get the idea why left and top are negative) Jan 09 10:52:54 so either you move your center of rotation or you offset your rectangle if you want to keep the its current center to not have both left and top negative Jan 09 10:53:06 as already said :) Jan 09 10:54:37 oh, i understand, after rotation a get rect in which can be inserted my small rect that i rotated Jan 09 10:56:00 so, i don't want to write code for calculations, is there any api for my purpose? When i rotate rect and detect if random coordinates are in this rect? Jan 09 10:59:33 anyone here who montize their apps for more than a year? Jan 09 11:01:27 fancy42: what are their reviews saying? Jan 09 11:01:39 try using it on a few 4.3 devices for a while Jan 09 11:05:22 mikedg__, can I somehow filter ratings by android version? i can only filter by app version or by device.. Jan 09 11:06:16 fancy42, I think only manually Jan 09 11:06:25 by selecting the devices Jan 09 11:07:48 adq: i found answer Jan 09 11:08:02 hi guys. Can you help me please? http://pastebin.com/FihsGVXj i don't know how put a ScrollView with DrawerLayout Jan 09 11:08:11 adq: https://android.googlesource.com/platform/packages/apps/Camera2/+/idea133/src/com/android/camera/crop/CropMath.java Jan 09 11:08:14 pointInRotatedRect Jan 09 11:08:17 method Jan 09 11:08:31 adq: anyway, thanks for help Jan 09 11:09:02 roxdragon, whats the prob? Jan 09 11:10:57 xgearx, np good luck! Jan 09 11:11:02 I need some help in porting the Android System Recovery 5.0.2 for my device. In the recovery, I get a message like this "E:Cannot load volume /misc!" Jan 09 11:11:13 hi danijoo when i put a ScrollView in my app crash... this is my code with a ScrollView and DrawerLayout http://pastebin.com/B8zxJdCe Jan 09 11:11:29 app crash says nothing Jan 09 11:11:32 why does it crash Jan 09 11:11:40 logcat? Jan 09 11:11:45 yes Jan 09 11:12:06 danijoo: it might be a SIGSEGV Jan 09 11:12:10 or SIGBUS Jan 09 11:12:53 also.... a drawerlayout INSIDE a scrollview? hell... why? Jan 09 11:13:55 danijoo: http://pastebin.com/M8fTMs4y Jan 09 11:14:23 that error is not because of your layout Jan 09 11:14:30 its a nummpointer in an async task Jan 09 11:14:59 danijoo: but if remove scrollview in my layout it work Jan 09 11:15:34 roxdragon: what happens in SplashScreen.java:133 Jan 09 11:16:15 you should put the scrollview inside the drawerlayout. or youll get the worst user experience Jan 09 11:16:40 thepoosh: this: Iterator iterator = tabella.select("td").iterator(); Jan 09 11:17:05 either tabella is null or the result of select("td") is Jan 09 11:17:12 danijoo: can you help me for this? Jan 09 11:17:22 roxdragon: ^ Jan 09 11:17:45 thepoosh: but if i remove the ScrollView my app work fine.. Jan 09 11:17:56 that doesn't mean anythong Jan 09 11:18:04 you might not execute the AsyncTask Jan 09 11:18:13 check which of those is null and why Jan 09 11:18:24 what does android:fillViewport ? never seen this before.. Jan 09 11:20:07 danijoo: danijoo i have read... "with relativelayout and ScrollView is need fillviewport Jan 09 11:20:32 no. remove that. maybe its the problem.. Jan 09 11:20:44 Greetings. Jan 09 11:21:35 freetings Jan 09 11:21:36 I often get people offering to increase my app installs for a fee. Jan 09 11:21:44 scam Jan 09 11:21:47 ^^' Jan 09 11:21:53 And I see you can buy reviews also. Does google not have a way o detecting this ? Jan 09 11:21:56 thepoosh: ok, but the problem isn't asynctask... if i remove the ScrollView is all ok! i have SplashScreen.java and MainActivity.java - SplashScreen.java have a layout separed but MainActivity have this layout with a ScrollView Jan 09 11:21:58 I mean fake reviews? Jan 09 11:22:19 Unknown0BC: not worth it Jan 09 11:22:30 Unknown0BC, never heard of anyone being banned for it, but its just not worth Jan 09 11:22:42 roxdragon: I don't care, and you shouldn't either Jan 09 11:22:52 i tried to remove fillviewport but it crash :( Jan 09 11:22:52 you know where the issue is, jsut find it and fix it Jan 09 11:22:56 if you use the same money to hire developers you could publish an app for the money it takes to get a nice amount of reviews ^^ Jan 09 11:23:02 Sometimes when I see an app with 5 million installs I wonder how that really happened... Jan 09 11:23:14 Unknown0BC, its a good one ;) Jan 09 11:23:25 I don't want to help this fake world become more fake... Jan 09 11:23:34 danijoo ++ Jan 09 11:24:13 I am just wondering if google cant stop this shit. Jan 09 11:24:53 Unknown0BC, this is really a low low percentage of apps Jan 09 11:25:22 those "services" are so expensive, you cant buy enough rating to be really popular Jan 09 11:25:34 if you see an app really succeeding, its just a good one Jan 09 11:25:50 (or made by EA Games.) Jan 09 11:26:19 Unknown0BC: if you have more votes than downloads, it will be fishy Jan 09 11:26:23 It might be worth it for someone to spend a lot of money to get installs if he is certain his app will make way more money... Jan 09 11:26:40 thepoosh, you cant vote for an app if you dont downloaded it with that account Jan 09 11:26:45 more than he spent. Jan 09 11:26:50 danijoo Jan 09 11:28:50 I'll install your app and rate it 5 stars for 1 bitcoin Jan 09 11:29:06 Unknown0BC, yes but you cant buy lets say... 1million downloads Jan 09 11:29:26 some might boosting their app at start Jan 09 11:29:38 but I still think that does not happen *that* often Jan 09 11:30:17 Well I hope google would just do what they can to stop this crap. Jan 09 11:30:42 In the mean time I am taking the safe route. I have not to date having put up plenty of apps had one removal :D Jan 09 11:31:48 Unknown0BC, the most important thing is a good app :) Jan 09 11:32:08 I hope so danijoo Jan 09 11:32:11 I hope so... Jan 09 11:32:12 For my first app I literally did nothing to advertise Jan 09 11:32:14 anyone know another place to view the videos from the material design site? None of them work. http://www.google.co.uk/design/spec/what-is-material/material-properties.html Jan 09 11:32:21 and now Im at 500k installs Jan 09 11:32:41 how long did that take danijoo ? Jan 09 11:32:51 a year :/ Jan 09 11:33:05 but its a niche app. Nothing everyone could use. So im fine Jan 09 11:33:15 camason, huh. they worked 2 weeks ago Jan 09 11:33:19 but are all black now Jan 09 11:33:30 a bit of a pain, as I'm trying to brief the designers :) Jan 09 11:33:55 :/ Jan 09 11:34:56 camason, for me it works to rightclick them and select play video in new tab Jan 09 11:35:03 this opens the mp4 directly Jan 09 11:35:09 hm yes, a few are working like that Jan 09 11:35:18 strange Jan 09 11:35:28 but seem to not work for all of them O.o Jan 09 11:35:37 spamming refresh works sometimes Jan 09 11:35:42 must be a CDN problem Jan 09 11:35:42 cai i access the view of searchview? Jan 09 11:36:52 t0th_-_, what do you mean? Jan 09 11:36:58 the searchView is a view. Jan 09 11:37:10 1minute Jan 09 11:37:28 do you mean the expanded view where you can set the hint on and stuff like that? Jan 09 11:37:31 when i click in menu item, it is showed the textview , ok? Jan 09 11:37:40 ah yes. Jan 09 11:37:51 but Jan 09 11:37:52 just read the best article ever Jan 09 11:37:55 in onCreateOptionsMenu: Jan 09 11:38:21 SearchView searchView = (SearchView) menuItem.getActionView() Jan 09 11:38:28 i need a autocomplete Jan 09 11:38:37 1 will post my code, 1 minute Jan 09 11:39:44 danijoo: thepoosh : i have found the problem: can you help me? http://paste.ubuntu.com/9697890/ Jan 09 11:40:19 roxdragon: XposedBridge.java:631 Jan 09 11:40:20 ? Jan 09 11:40:49 thepoosh: i haven't this .java :\ Jan 09 11:40:53 t0th_-_, i think you mean this: http://pastebin.com/cvB1kRif Jan 09 11:41:23 no Jan 09 11:41:24 roxdragon, read the error explanation Jan 09 11:41:33 that should tell you what to do.. Jan 09 11:41:34 i need a autocomplete inside the layout of searchview Jan 09 11:41:56 here: http://pastebin.com/f7zkW08Y Jan 09 11:42:10 danijoo: ScrollView can host only one direct child ? Jan 09 11:42:45 yes Jan 09 11:42:54 you scrollview has too many objects in it Jan 09 11:43:40 ..... = Jan 09 11:43:41 ? Jan 09 11:44:18 should I save records in DIRECTORY_PODCASTS ? Jan 09 11:44:41 t0th_-_, try this: http://pastebin.com/kYL1BrKx Jan 09 11:45:03 roxdragon, inside of a scrollview, there can only be a maximum of one view Jan 09 11:45:06 so you must do: Jan 09 11:45:30 **ALL YOUR STUFF** Jan 09 11:45:48 read the documentation on ScrollView. It explains it.. Jan 09 11:48:49 working Jan 09 11:48:55 anyone ever had problems with the emulator not going down a resolution? Jan 09 11:48:55 here is the problem Jan 09 11:49:02 http://stackoverflow.com/questions/27765636/costume-widget-switch-not-appearing-in-actionbar/27765778#27765778 Jan 09 11:49:05 I've created more AVDs, I can't seem to get 480x800 Jan 09 11:50:38 Hi all! I was looking around for an Android IDE which can run on android... all I could find was AIDE, which is not free (and for some reason won't resolve object R) or Terminal IDE, but using it is a PITA. Anyoune has suggestions? Jan 09 11:51:59 tx: do you get an error? Jan 09 11:52:16 Isn't aide like $8? Jan 09 11:52:29 thanks all Jan 09 11:52:53 yeah, i'd spend those bucks if the demo would work maybe, but... Jan 09 11:54:07 dont use the avd :p Jan 09 11:54:12 it sucks Jan 09 11:54:31 same for AIDE ^^ Jan 09 11:55:50 I guess we'll never see an IDE as goog as android studio for android tablets... Jan 09 11:56:21 i guess so too Jan 09 11:57:14 the point is that my tablet battery lasts *4 my pc battery Jan 09 11:57:48 and i can't use pc+tablet (for debugging) on the subway lol Jan 09 11:58:05 ricvail, you could use pc+ emulator :) Jan 09 11:58:25 how do you write code? with soft keyboard? Oo Jan 09 11:59:10 that's the point, i don't, since i can't find an IDE that runs on android... Jan 09 11:59:26 ricvail: RDP to a desktop machine... ;D Jan 09 11:59:31 and the emulator... nope, thx Jan 09 11:59:44 ricvail, not the andorid emulator of course ;) Jan 09 12:00:50 ... then what emulator are you talking about? Jan 09 12:01:18 genymotion Jan 09 12:01:19 also, how do you "target" specific irc users? sorry, i'm a noob here Jan 09 12:01:37 ricvail, by typing their name :) Jan 09 12:01:45 don't fucking debug on the subway for fucks sake man Jan 09 12:01:47 i rename my directory in Android Studio, when i try use preview it is try get the older directory and i have this error: rendering problems failed to convert into a drawable Jan 09 12:01:51 if you put the name of someone in a text, he gets notified Jan 09 12:01:52 because the directory is wrong Jan 09 12:02:20 or you can private message ppl, but ask first Jan 09 12:02:41 how depends on the irc client you are using Jan 09 12:03:53 danijoo how fast is it? I mean in terms of time from the press of debug buton to the launch of the app Jan 09 12:04:37 that didn't work :/ i'm using webchat.freenode.net Jan 09 12:05:31 anyway, using the tablet to test my apps it can take up to one minute, and the avd was even worse Jan 09 12:06:58 ricvail, faster than any real android device you can currently buy Jan 09 12:07:12 danijoo: thepoosh is a bug https://code.google.com/p/android/issues/detail?id=56605 Jan 09 12:07:21 its too fast for benchmarking stuff ^^' Jan 09 12:07:53 Status: Released Jan 09 12:08:31 looks like i found what i was looking fr then :) ty Jan 09 12:08:39 ricvail, you are welcome:) Jan 09 12:12:20 can you specify the height of a widget to be the same as another widget Jan 09 12:12:43 so I want the edit box to be the same height as the spinner which is set to wrap_content? Jan 09 12:14:10 ChrisUK, yes. there are multiple ways to do that Jan 09 12:14:23 ricvail: all fixed Jan 09 12:14:27 I have one more query though Jan 09 12:14:41 if I have two layout folders, say "layout" and "layout-hdpi" Jan 09 12:14:47 you coiuld put both in a relative layout and set the box to match its top and bottom border to the spinners one Jan 09 12:14:55 my 1080p display uses the layout-hdpi layout Jan 09 12:14:57 why is that? Jan 09 12:15:16 'h' stands for high Jan 09 12:15:24 'm' for medium Jan 09 12:15:32 so 'layout' is lower? :P Jan 09 12:15:33 'l' for low Jan 09 12:15:36 (in priority) Jan 09 12:15:56 there's also "xhdpi" Jan 09 12:16:11 So if you didn't specify each Jan 09 12:16:17 does it choose the closest? Jan 09 12:16:22 yes Jan 09 12:16:33 what about just 'layout' Jan 09 12:16:43 that's for something else Jan 09 12:16:45 is that the last pick? Jan 09 12:16:56 danijoo: I have linear layout them both inside a linear layout, linear layout is set to wrap_content, spinner is set to wrap_content, edit box is set to match_parent Jan 09 12:17:01 that seems to work but wanted to check Jan 09 12:17:03 can't remember what that something else is though Jan 09 12:17:22 ? You can define layouts in layout just fine. Jan 09 12:18:07 i'm resonably sure it picks whtever bucket is below it if tere's not a perfectly qualified bucket Jan 09 12:18:14 oh sorry sorry Jan 09 12:18:15 yea of course Jan 09 12:18:21 I was thinking drawable :\ Jan 09 12:18:25 so if you just have a layout for xhdpi, and have an hdpi screen, it would go for plain old layout Jan 09 12:18:34 drawable is for the shapes drawn in XML, the rest are for actual images Jan 09 12:18:37 oh, since we are talikng about this i'll ask a question that i've had since i began developing for android Jan 09 12:18:39 and really, theres very few reasons to use the dpi buckets for layouts Jan 09 12:19:02 use screen sizes or the width buckets Jan 09 12:19:08 thepoosh: http://paste.ubuntu.com/9698049/ i have this error Jan 09 12:19:23 why cant i just put all my max- res images on the xhdpi folder and let the system scale them accordingly? Jan 09 12:19:44 they have to be 9patched if you want scaling Jan 09 12:19:51 ricvail: performance, ldpi devices are generally shit, do you really want them loading a giant xhdpi image and scaling it on the fly? Jan 09 12:20:02 I 9patch and put everything in drawable-hdpi Jan 09 12:20:05 never failed Jan 09 12:20:24 might be wrong though, meh Jan 09 12:20:30 danijoo: http://pastebin.com/HQz2kWBQ is correct? Jan 09 12:20:38 it just does it when you install the app, no? Jan 09 12:20:45 it also causes artifacts in bitmaps too Jan 09 12:20:58 ricvail: i'm almost positive that it does not Jan 09 12:21:31 roxdragon, have you tested? Jan 09 12:21:56 i mean, if you install an app that has both xhdpi and ldpi folders on a ldpi device, is the xhdpi folder stored? Jan 09 12:22:07 yes Jan 09 12:22:16 apart from the .apk file i mean Jan 09 12:24:10 ricvail, its all packed inside of the apk, so yes Jan 09 12:25:08 yeah, but you can install the app and delete the .apk Jan 09 12:25:32 btw odaym i don't think ican 9patch game sprites XD Jan 09 12:25:46 ricvail, those files are installed. period Jan 09 12:26:08 look it up, dont think Jan 09 12:26:09 P Jan 09 12:26:10 :P Jan 09 12:27:20 seems there is no way, I looked it up Jan 09 12:27:21 ricvail: The apk is the installation.. Jan 09 12:27:54 good thing the graphic part is not my job XD Jan 09 12:28:23 game resources likely shouldn't be allowed to be butchered by androids resource manager Jan 09 12:29:40 what is your job then? Jan 09 12:30:20 why am I even asking..... Jan 09 12:30:44 need psychiatric help Jan 09 12:32:07 coding Jan 09 12:32:08 Odaym, Realising is the first step :p Jan 09 12:32:18 XD Jan 09 12:32:19 + Jan 09 12:33:27 anyway i just mash random buttons on the keybord and see what happens XD once i have a fully-functioning game base i'll think about how to get the graphics done Jan 09 12:33:43 In Android Studio, when editing XML, it'll show references values instead of reference names (i.e. "64dp" instead of "@dimen/..." until you click it, then the value disappears. How do you get them back? Jan 09 12:33:44 (i'll likely ask someone else, since i draw like a 3 yo) Jan 09 12:34:06 everybody wants to make games, it's so "cool" Jan 09 12:34:07 hehe Jan 09 12:34:20 you can open the value file Jan 09 12:35:55 yes, of course, but I want them displayed back inline Jan 09 12:36:16 that's the case with 3/4 of my IT eng. classmates Jan 09 12:36:41 mh... mouseover does nothing? Jan 09 12:36:46 Chainfire, reopen the file Jan 09 12:36:48 ^^ Jan 09 12:37:07 that the only way? Jan 09 12:37:17 or take your dimens from only 1 file so that you dont get lost with where everything is coming from Jan 09 12:37:28 they are all in one file Jan 09 12:37:29 that feature is supposed to help you Jan 09 12:37:38 why would it cause a problem.. Jan 09 12:37:47 you mistake my question for it being a problem, I'm just wondering Jan 09 12:37:58 Good day sir. Jan 09 12:38:40 http://hydra-media.cursecdn.com/dota2.gamepedia.com/d/da/Axe_deny_16.mp3 Jan 09 12:39:28 i have this: connectionCallback = new GoogleApiClient.ConnectionCallbacks().... how i can do the Android Studio add the class or show-me the hint to add? Jan 09 12:39:41 add field class, add local... Jan 09 12:40:38 oh my god Jan 09 12:40:47 I've been looking at this code and debugging for like 20 minutes Jan 09 12:40:59 I had tried to create a table called "param" Jan 09 12:41:04 dang bro Jan 09 12:50:46 any? Jan 09 13:06:01 Hey guys, I need some advices. I'm building a custom gallery for my app. I need to show all images of a specific bucket in a grid view. Now I'm looking for the photo thumbnails using "queryMiniThumbnail" to display only the thumbnail in the gridView and the result is acceptable, but not as good as the device gallery. The main problem is when the photo does not have a thumbnail and I need to create one. What is the best approach Jan 09 13:10:41 hi Jan 09 13:11:05 i am trying use DownloadManager but sometimes the downlods it is stoppep alone.. why? Jan 09 13:11:10 when the file it big Jan 09 13:14:25 Is there a ButterKnife pattern for injecting views for a listview header that will be inflated programmatically? Jan 09 13:16:19 Basically, my activity is a listview, with a header, and most of the views are in the header, but I can't inject them because of that. I use the `findById` convenience method from ButterKnife, but I am wondering if I am extract this header into a separate class and inject all the views there as I normally would Jan 09 13:16:33 Guys I have a spinner that pops up when a click event happens and I'd like to change the color of its text Jan 09 13:16:44 I tried playing with the options in the spinners XML like android:textColor="#000" Jan 09 13:16:48 but nothing changes Jan 09 13:16:54 any ideas? Jan 09 13:17:32 cnap_, the texts of the items or the spinner text color? Jan 09 13:17:40 text of items Jan 09 13:18:13 cnap_, you need to do that in the adapter then Jan 09 13:18:28 in the getView() method Jan 09 13:19:02 danijoo, hmmm sweet i'll check it out. Thx! Jan 09 13:21:11 anybody had problemas with large file in DownloadManager? Jan 09 13:53:25 hey Jan 09 13:53:54 did you got it setup? Jan 09 13:57:37 nope:( Jan 09 13:57:49 im back to windows now Jan 09 13:58:14 got the lenovo and asus consistently showing up, but still unauthorized Jan 09 14:02:34 Hi. A few questions: 1- how android package manager handles package dependencies and conflicts? Jan 09 14:02:49 There is none Jan 09 14:02:54 (depenceny) Jan 09 14:03:02 there is no conflict either Jan 09 14:03:09 the only collision is by package name Jan 09 14:03:16 you can't have 2 packages with the same name installed Jan 09 14:04:15 i see .... so what if App1 depends on version_1 of pkg_A and App2 depends on version_2 of pkg_A ? Jan 09 14:08:40 An app can't depend on a package Jan 09 14:08:47 you hack to check at runtime if the package is installed Jan 09 14:08:51 and yell if it is not Jan 09 14:09:05 the packge manager is pretty basic Jan 09 14:09:11 it's nowhere near APT or anything Jan 09 14:12:00 Hello people! Jan 09 14:13:08 hi Jan 09 14:13:37 im using Unity, and to be able to build Android apps I obviously need to install the Android SDK Jan 09 14:14:21 I have done that, but now I get an error when I try to build: Android SDK is out of date: SDK Tools version 22.6.2 < 23 Jan 09 14:14:36 but the thing is, I just updated the SDK, and I still get the error Jan 09 14:14:57 I downloaded the installer_r24.0.2-windows.exe from http://developer.android.com/sdk/index.html Jan 09 14:14:58 an app cannot depend on a package ...... Jan 09 14:15:15 and then ran the SDK manager, and it updated stuff for like an hour Jan 09 14:15:35 vesture_star, what do you mean? Jan 09 14:15:51 I've a YoutubePlayer in my app that is somehow not working. It seems it does load the video, but a second after that it goes black. I've checked the logs and SOMETIMES it happens when the garbage collector is executed. But I didn't run out of memory, it has like 50% free. Jan 09 14:15:56 I've spent the last two days with this prolem. Can you help me please? Jan 09 14:16:30 what is the latest version number of Android SDK? Jan 09 14:16:45 21.1.2? Jan 09 14:18:53 ahhh ... I am using wrong terminology I think. By package I was not talking about java packages ...... my mind was working for something like linux packages ...... so if two apps depend on 2 different versions of same library .... how will system behave? Jan 09 14:21:03 danijoo, you around? Jan 09 14:21:11 yes Jan 09 14:21:15 partially Jan 09 14:21:27 Ive notice now i cant even brows the files on the tablet via windows Jan 09 14:21:34 the window just locks up Jan 09 14:21:41 stops responding Jan 09 14:23:21 which window? Jan 09 14:23:28 no idea what you are talking about Jan 09 14:23:32 also if i install app1 that depends on app3_v1 and then i install app2 which depends on app3_v2, will app manager or installation manager complain about it or how system behaves in this scenario? Jan 09 14:24:02 im certain i have the correct drivers now too. i downloaded the drivers for another asus memo pad, slightly different model number. Checked the inf file and my device is in there. I just had to install with driver signature enforcement disabled in windows Jan 09 14:24:06 anyone using Unity 3D here? Jan 09 14:24:27 danijoo, the explorer window in windows. Jan 09 14:25:19 ok ^^ no idea if this has sth to do with adb Jan 09 14:25:25 dont thhink so Jan 09 14:25:30 i double click the device, takes me to a new window with "internal storage" in there Jan 09 14:25:47 when i load that i see a folder with no name or anything and the window stops responding Jan 09 14:26:09 Dream_Team: there? Jan 09 14:31:40 danijoo: any idea? Jan 09 14:32:47 once again Jan 09 14:32:50 you can't depend on anything Jan 09 14:32:54 other than at runtime Jan 09 14:33:05 you can't tell android that your app depends on a package Jan 09 14:33:11 even less that it depends of a specific version Jan 09 14:33:25 your app wont compile without all resources Jan 09 14:33:29 you have to check, at runtime of your app, that the dependency is there and with the correct version Jan 09 14:33:37 danijoo: we're talking about installed apps, not builtin libraries Jan 09 14:33:44 think of his problem like the play services Jan 09 14:33:47 oh ok Jan 09 14:33:56 the package manager won't stop from installing on a device without the play services Jan 09 14:33:58 well then just listen to Dream_Team . hes right Jan 09 14:34:01 but if you don't check at runtime, you'll crash Jan 09 14:34:08 yep Jan 09 14:34:56 although that would be a nice feature Jan 09 14:40:24 yes it would :) Jan 09 14:40:44 We wouldn't need to bundle the v4/v7 support libs in every app, making them heavier Jan 09 14:41:13 yeah.. and there wouldnt be that nasty google play services check Jan 09 14:45:14 I see, now it is making sense ... and is this information written somewhere? Jan 09 14:45:39 Don't know Jan 09 14:45:58 and what do you mean when you say "nasty google play services check"? Jan 09 14:47:59 I'd like to change the action on the keyboard from actionNext to actionGo while the Edit Text is focused, does anyone know a way to do this? Jan 09 14:48:58 vesture_star, I mean that you must check by code if gps is installed, show notification if it isnt Jan 09 14:49:07 and you must do that in every activities onResume Jan 09 14:50:04 I see Jan 09 14:50:34 a few more questions :) Jan 09 14:51:54 can I install app directly from a uri? or it has to be present on my device and then I can install it? Jan 09 14:53:25 you must first download the apk Jan 09 14:53:35 you have to download the apk Jan 09 14:54:35 and how do i check that download was good enough? like checksum, hash etc? Jan 09 14:54:47 you can calc checksum when you want. Jan 09 14:59:24 and how do i check sign of an app? Jan 09 14:59:56 is there some way to confirm the app is comming from authentic vendor and not a fake app? Jan 09 14:59:56 calculate the checksum, and see if it matches ? :) Jan 09 15:00:02 oh well Jan 09 15:00:04 you cant that Jan 09 15:00:28 cant??? Jan 09 15:00:32 cant Jan 09 15:00:39 !!! Jan 09 15:01:15 :( then what is the point of signing the app from android studio? Jan 09 15:01:52 io? Jan 09 15:01:54 ups Jan 09 15:01:59 http://developer.android.com/tools/publishing/app-signing.html Jan 09 15:02:48 i think it might be possible to sign the app anc check against a server if the certificate is valid (if you dont make it a self signing one) Jan 09 15:02:55 but i have no experience with that Jan 09 15:03:19 yeah, I will be interested in having some way of sign verification. Jan 09 15:03:46 if you have an app installed with a given signing, android will refuse to update if the update has another signing Jan 09 15:03:51 i think thats the main purpose Jan 09 15:04:29 so a corrupted download wouldn't it install anyway would it? Jan 09 15:04:57 nah m8 Jan 09 15:04:58 a corrupted zip cannot be unzipped, so.. Jan 09 15:05:00 ;) Jan 09 15:05:29 I got disconnected. I'll repeat my question just in case. Jan 09 15:05:30 I've a YoutubePlayer in my app that is somehow not working. It seems it does load the video, but a second after that it goes black. I've checked the logs and SOMETIMES it happens when the garbage collector is executed. But I didn't run out of memory, it has like 50% free. Jan 09 15:05:37 I've spent the last two days with this prolem. Can you help me please? Jan 09 15:07:20 can i have packages in formats other than .apk? like .zip etc and that can still be installed? Jan 09 15:07:33 vesture_star, an apk is a zip file Jan 09 15:07:39 it just has another ending Jan 09 15:07:50 but you can rename it to zip and unzip and vice versa :) Jan 09 15:08:36 i see ............... so if I rename it to .zip ending and then try to install it, adb or app installer can still undertand and install it? Jan 09 15:08:56 no Jan 09 15:09:00 it must be apk Jan 09 15:09:07 (i think) Jan 09 15:09:08 but not other compression types like .rar or 7zip or gzip or bz? Jan 09 15:09:14 yep Jan 09 15:11:28 maybe if you install per command line, it accepts .zip ending Jan 09 15:11:31 i dont know Jan 09 15:13:07 I don't understand where questions like that come from Jan 09 15:13:13 ^^ Jan 09 15:13:31 you dont have an option to create something else anyways Jan 09 15:13:38 since the compiler outputs an apk.. Jan 09 15:13:38 an apk is an apk Jan 09 15:15:30 Leeds: see what danijoo said .... apk is a zip file Jan 09 15:15:56 vesture_star, yes but how would you build a bvalid rar? Jan 09 15:16:03 vesture_star: ever heard the saying that a little knowledge is a dangerous thing? Jan 09 15:16:08 its just not possible to even create it Jan 09 15:16:09 you have a little knowledge... Jan 09 15:17:31 Leeds: if I had knowledge of android world, I wont have been asking these questions. 'Little knowledge is dangerous' when you start persuading others to believe in you, but not in the case when you are learning and asking people who are more knowledgabe to mentor you. Jan 09 15:18:03 you jumped from what little you've learned to assume nonsense Jan 09 15:18:53 Leeds: you can easily ignore that trying to bullying me from asking things. All I can say is stay away if you are not interested. Jan 09 15:19:24 sure, continue with your nonsensical questions Jan 09 15:19:36 I'll continue poking occasionally Jan 09 15:19:53 lol .... good for you. Jan 09 15:39:13 anyone here using RxJava ? Jan 09 15:42:56 how can I make that two fragmetnts will overlap Jan 09 15:47:27 danijoo, new pm incoming! Jan 09 15:47:40 why dont you ask here ^^ Jan 09 15:48:02 im shy! Jan 09 15:48:20 ups i accedently closed it ^^' Jan 09 15:48:33 lol Jan 09 15:48:44 send it again Jan 09 15:48:46 do you reckon this seems descriptive enough for what we went through? http://forum.xda-developers.com/memo-pad-7/help/usb-debugging-memo-pad-me170c-k017-t2997886 Jan 09 15:50:13 i think so Jan 09 15:51:51 hello everyone. i am creating a navigation drawer app with fragment and video playback.. how would i go about making the videoplayback fragment full screen sp the video will be full screen ? or should i switch to another (normal activity for playing the video ?) Jan 09 15:52:11 where the other activity would be full screen Jan 09 15:53:48 is there any player for android that accepts at least youtube and vimeo videos? Jan 09 15:54:01 youtubeplayer accepts youtube ;) Jan 09 15:54:08 I'm fed up with youtube player -.- Jan 09 15:54:33 it just doesn't work well inside, after a second it goes black Jan 09 15:54:35 :| Jan 09 15:54:43 s/inside// Jan 09 16:11:59 Anybody know of any good swipe-to-refresh libs for RecyclerView? I've tried ActionBarSwipeToRefresh but it doesn't appear to work with RecyclerView. Jan 09 16:14:03 is possible put a navigationdrawer into ? Jan 09 16:55:03 * Fraz crys teas of rage Jan 09 16:55:12 tears too Jan 09 16:55:35 What is the most straightforward way to take a library projected with maven build files and to use it in an Android Studio project? Jan 09 16:55:46 there is none Jan 09 16:55:52 publish the maven project as an aar Jan 09 16:55:59 and then use it as an aar in android studio Jan 09 16:56:08 maven-android-plugin should support publishing aar by now Jan 09 16:56:48 so i have 5 devices here now Jan 09 16:56:53 and i cant debug on ANY of them Jan 09 16:57:37 pfn: I can't find any tutorials on how to publish a Maven project as an AAR. Do you know of any? Jan 09 16:57:47 tutorial? look at the maven-android-plugin documentation Jan 09 16:57:51 tutorials are universally dumb Jan 09 16:58:24 Cool I'll check it out Jan 09 16:59:00 these devices with older android (before the whitelisting thin) show fine as "ABCDWHATEVER Device" under adb devices......then as soon as i lood up android studio the device goes offline Jan 09 16:59:17 load* Jan 09 17:00:43 so now theres 2 problems. I cant get the authorization popup to show on devices that require it so they show as unathorized. And all devices go offline when i run android studio Jan 09 17:01:51 pfn: I don't need to fire up android studio to do this? Couldn't I theoretically clone the Maven project, modify its config to produce an AAR and then use maven from the command line to "build?" it? Jan 09 17:03:21 you publish it using maven Jan 09 17:07:17 pfn: 'packaging' with value 'aar' is invalid. Aggregator projects require 'pom' Jan 09 17:07:45 you set packaging aar in the wrong pom Jan 09 17:08:09 Ah Jan 09 17:08:28 assuming this is a maven library that's packaged as an apklib Jan 09 17:09:00 http://forum.xda-developers.com/memo-pad-7/help/usb-debugging-memo-pad-me170c-k017-t2997886/post58059550#post58059550 Jan 09 17:09:06 edited at the bottom Jan 09 17:09:50 hi Jan 09 17:10:06 hi Jan 09 17:10:08 hi, i have a drawer and have a view inside, but when i click in this view, it is clicked on activity under the drawer Jan 09 17:10:15 how i can solve this ? Jan 09 17:11:44 pfn: https://github.com/dkmeteor/Android-PullToRefresh-RecyclerView-Extention/blob/master/library/pom.xml#L7I changed from apklib to aar Jan 09 17:13:21 Has anyone ever noticed a black flicker when doing an activity transition? Jan 09 17:13:34 i just want to know how can i make the hint text in the editText unchangeable but making the editText editable? like in gmail app Jan 09 17:19:17 i have this: http://cl.ly/image/3G3u1F2J2h3b, but when i click in the red linearLayout, the click got to listview under the drawer, .. can help me? Jan 09 17:21:34 t0th_-_, step one: uninstall avast antivir Jan 09 17:22:56 scammers Jan 09 17:23:05 and incompetents Jan 09 17:23:24 talking about this t0th_-_? :p Jan 09 17:23:51 ok danijoo Jan 09 17:27:19 I'm attempting to publish a maven repository as an AAR but I encounter the following NoClassDefFOundError: https://gist.github.com/sorter/583d9f7b834852cd98a5 Jan 09 17:27:30 That's the output of mvn -X Jan 09 17:35:59 update the maven plugin Jan 09 17:37:16 hi all, I wanted to ask a question about legal issues and copyrights. Jan 09 17:37:29 I want to use a movie music as my app background music. Jan 09 17:37:32 ask a lawyer Jan 09 17:37:37 is it legal.. Jan 09 17:37:39 no Jan 09 17:37:57 if you arent given permission, it is not Jan 09 17:38:48 how do i ask permission to a music creator? any idea? Jan 09 17:39:18 use the google Jan 09 17:39:24 not dev related Jan 09 17:40:35 what about artefacts? like say a cartoon movie character face talking? Jan 09 17:41:07 no Jan 09 17:41:12 the answer is all no Jan 09 17:41:21 if its not yours, you cannot use it Jan 09 17:41:38 fair use has minor provisions Jan 09 17:41:49 but the general answer is all no Jan 09 17:42:10 thanks pfn Jan 09 17:43:36 I'm having a hell of a time using this project in my ANdroidStudio project: https://github.com/dkmeteor/Android-PullToRefresh-RecyclerView-Extention Jan 09 17:43:42 Any advice on how to accomplish it would be appreciated. Jan 09 17:44:57 I have tried publushing with maven but I get as far ass these errors: PullToRefreshRecyclerView.java:[54,27] cannot find symbol Jan 09 17:45:01 symbol : class RecyclerView Jan 09 17:45:04 publishing, rather. Jan 09 17:47:59 so the Lollipop HAXM emulator is pretty dang good so far, I am surprised. Jan 09 17:49:13 askhader, that's not a publishing error Jan 09 17:50:14 pfn: You're right, it looks more like a compilation error. SOmewhere I'm referencing an older version of the support library perhaps? Jan 09 17:51:00 hiiiiiii Jan 09 17:51:10 hoooooo Jan 09 17:51:26 Good afternoon. I have what I think is a rather basic question, but I'm not really sure of the answer (I'm a total android n00b). So, I got the OpenGLES2 example code up and running fine. It creates a screen with a GLES2 surface on the bottom and a bit of text with the app name and icon at the top. So far so good. However if I comment out all the code in the activity and remove the res/layout/main.xml file, it still gives the split screen, Jan 09 17:51:26 but with no GLES2 surface. So, the question is: where does that come from? Jan 09 17:52:08 I've been reading about layouts, but I can';t find any code remaining with anything to do with layouts in it. So I'm sort of a bit stumped. Jan 09 18:02:17 Since a View hierarchy always has to have the root be a ViewGroup I wonder if there is any reason http://developer.android.com/reference/android/view/LayoutInflater.html#inflate(int, android.view.ViewGroup) couldn't return ViewGroup instead of View Jan 09 18:12:33 JesusFreke http://www.theverge.com/2015/1/8/7518355/onewheel-electric-skateboard-ces-2015 Jan 09 18:18:41 yiati, huh? no, it doesn't always have to be a viewgroup Jan 09 18:18:57 yiati, layout.xml could always be a single view, such as a TextView Jan 09 18:19:21 really? Jan 09 18:19:27 of course really Jan 09 18:19:45 lol lemme try it out, I always thought it was screaming no at me Jan 09 18:20:12 you do that to load styled views Jan 09 18:20:43 How can I see System.out.println() output from within Android Studio 1.0.1? Jan 09 18:20:49 Hmm okay just tried it out, looks good. Has it always been like that? Jan 09 18:21:13 yes Jan 09 18:21:22 filadome, it's in logcat Jan 09 18:22:18 is that in Android DDMS Jan 09 18:23:08 http://pastebin.com/SiFdcpRj Jan 09 18:23:36 pfn: Welp, here comes to chopping block to some of my ViewGroups :D Jan 09 18:24:08 i'm not seeing any output within logcat from my System.out. Jan 09 18:28:31 look harder Jan 09 18:29:48 it started working after Log.d was added Jan 09 18:44:23 I have a ListView, an adapter, and a list of stuff that needs to be sorted several different ways. Should these sorts happen in the adapter, or in the fragment and the sorted list passed to the adapter? Jan 09 18:51:22 um, why is it that hard to detect swiping gestures on a single view in android ;_; Jan 09 18:59:50 hi. How do I change the default layout of an app? I have an app which consists of nothing but the following code: package com.test; Jan 09 18:59:50 import android.app.Activity; Jan 09 18:59:50 public class DefaultActivity extends Activity { Jan 09 18:59:50 } and no XML files except build.xml and AndroidManifest.xml. Why does this produce a screen with text on rather than a blank screen? Jan 09 19:00:21 If I try to add stuff, it just comes under the text. Jan 09 19:00:49 cannot find symbol Jan 09 19:00:49 [javac] setContentView(R.layout.activity_main); Jan 09 19:01:39 can anyone point me to something to read to explain it? I've been digging through the "gettins started" docs for the last few days, but I'm a bit stuck. Jan 09 19:02:21 what is this how do i resolve this thanks http://www.codejaw.com/8xnlhk Jan 09 19:06:30 Rohan_14, you didnt import R. Jan 09 19:07:06 OverCoder, it is? use a gesture detector... Jan 09 19:07:30 i tried everything, i got puzzles, just, replaced it with something else Jan 09 19:07:32 no longer need it Jan 09 19:07:36 serviscopeMinor, huh? activities have a title by default Jan 09 19:07:39 puzzled* Jan 09 19:07:51 danijoo: i solved it the error was that my in my directory "layout" the layout XML was named as main.xml but i was trying to give its path as avtivity_main Jan 09 19:08:26 but the problem now is that PendingIntent is igonring intent's flags, i mean since i'm running a floating activity, i don't want it to close the background activity Jan 09 19:08:52 there's an intent flag for that but since i'm using PendingIntent for the notification the background activity gets closed Jan 09 19:08:54 which is annoying Jan 09 19:10:36 sorry to keep repeating myself, but HELP! http://forum.xda-developers.com/memo-pad-7/help/usb-debugging-memo-pad-me170c-k017-t2997886 Jan 09 19:12:34 pfn: the title being an icon and a piece of text at the top of the screen, under the status bar? Jan 09 19:13:20 pfn: please bear in mind I have never done any android dev before, and I'm currently trying to stumble through mounds of docs :) Jan 09 19:13:30 so some of my questions might be a little naive Jan 09 19:14:04 serviscopeMinor, go through the dev overview on d.android.com Jan 09 19:14:12 is it a really bad idea to have an invisible empty fragment with setRetainInstance(true) just to keep state information between configuration changes Jan 09 19:14:40 Chainfire, why dont you keep it in the activity? Jan 09 19:14:51 it’s not a terrible idea, but there are generally cleaner ways to do it Jan 09 19:14:55 because the activity get recreated on rotate Jan 09 19:14:56 Chainfire, no, that's one of the recommended approaches Jan 09 19:15:02 Chainfire, I generally use singletons, though Jan 09 19:15:12 ^ this Jan 09 19:15:14 fragments have to deal with fragment liefcycle bullshit Jan 09 19:15:23 while singletons have an extremely consistent behavior Jan 09 19:15:37 pfn> the state being saved is all UI related though Jan 09 19:15:50 I indeed use singletons for data Jan 09 19:16:00 pfn: the overview? I don't know what link you mean. I';ve been digging through all the "getting started stuff" Jan 09 19:16:03 Chainfire, I assume this is "model" information, even though it's ui-related, it should be decoupled from UI Jan 09 19:16:15 serviscopeMinor, why don't you go through android design first to understand how android apps look Jan 09 19:17:06 pfn: not all apps look like that though. Jan 09 19:17:17 I'm mostly after a large OpenGLES2 surface. Jan 09 19:17:32 s73v3r> well I'd be happy to hear your suggestion for the following scenario: I have a navigation drawer with multiple entries that each have their own fragment. switching between those fragment you can just use an activity-local cache (List). Jan 09 19:17:56 does Android Studio have a screen capture gui now? Thought I read that somewhere Jan 09 19:18:00 s73v3r> however when you rotate (or another configuration) change, you can keep the instance of the currently displayed fragment, but the other fragments are lost Jan 09 19:18:28 s73v3r> and when they're recreated, you do not get the saved instance state bundle (and such) Jan 09 19:18:31 hi Jan 09 19:18:34 Chainfire: and you can’t simply recreate them? Jan 09 19:18:37 wher i can put the directory assets? Jan 09 19:18:40 in res? Jan 09 19:18:52 serviscopeMinor, then request a fullscreen app and no title bar then Jan 09 19:19:19 pfn: where? There's nothing in my code requesting anything at all. Jan 09 19:19:21 s73v3r I could, but it would require a lot of extra state saving/loading code Jan 09 19:19:27 serviscopeMinor, then read on how that is done Jan 09 19:19:41 serviscopeMinor, read android design overview first Jan 09 19:20:17 (aka more points of failure) Jan 09 19:20:21 pfn: could you tell me what you mean by "the android design overviwe". The link from the develop page to design tells me things like I should try to enchant the users. Jan 09 19:20:37 Chainfire: wouldn’t that state be related to the state of your data? Jan 09 19:20:45 hey guys :) i was reading about the ActionBar and the collapseActionView. The example show the classic "search" icon expanding with a SearchView from support lib. There is a way to show my on view? Like a editText with a Spinner? Jan 09 19:21:02 jeez I got another request for a "code sample" thing and this time they want people to do a project that would take 3 business days to do ! that's crazy Jan 09 19:21:12 serviscopeMinor, http://developer.android.com/guide/index.html Jan 09 19:21:13 who was the person who linked me to that nospec.org site about that stuff? Jan 09 19:21:15 start there Jan 09 19:21:29 serviscopeMinor, read everything from top to bottom on the left, skip the hardware/sensor stuff you don't need Jan 09 19:21:43 hey guys… how do i set a value inside a fragment from outside it? i created public functions inside the fragment, but it’s not working: http://paste.ofcode.org/bep8DyxG99twEz2JGLmiLT Jan 09 19:21:44 no, this data is not persisted Jan 09 19:21:52 it can be regenerated, but that's fairly expensive Jan 09 19:22:04 pfn: so before starting I should read 200M of docs?? Jan 09 19:22:53 does anyone know of a good Rosetta Stone for iOS -> Android iconography that I can give to a designer for reference? Jan 09 19:23:17 pfn: besides a lot of those are tutorial fragments. They don't explain any of the underlying stuff. Jan 09 19:23:32 i.e. share/send/info/expand type icons Jan 09 19:25:08 serviscopeMinor, yes Jan 09 19:25:11 you should read Jan 09 19:25:16 so you don't waste our time with stupid questions Jan 09 19:25:28 and no, everything there isn't tutorial fragments Jan 09 19:25:38 all the fundamentals and stuff are all underlying stuff Jan 09 19:27:38 pfn: well don't worry, once I get the hang of it I'll waste your time with sensible questions though. In seriousness though, I'm trying to work through the tutorials like a reasonable person, and getting hung up very early on things which aren't explained. The trouble is wading through 200M of docs without writing a line of code is let us say tricky at best. It's chicken and egg. Jan 09 19:28:05 Also, not everything is, but a good fraction of the stuff is in fact in tutorial fragments. Jan 09 19:28:42 read at least up to animation and graphics Jan 09 19:28:48 if you can't be bothered to do that, we can't be bothered to help Jan 09 19:30:05 pfn: I've been reading the animation and graphics stuff. Jan 09 19:33:44 *everything* up to that point Jan 09 19:34:20 ah yes, well the stuff on content providers will definitely help me understand that bar at the top of the app. Jan 09 19:38:43 hm, i have a Queue> and one of 5 callbacks need to pull from - is there any way they can safely determine the type being removed ? can't use instanceof here. Jan 09 19:38:46 how can i access the "stores" part of the following JSON? I've got the following now: stores = json.getJSONArray("stores"); but i want a CSV string of all the names Jan 09 19:38:56 http://api1.nl/vosca/getdetails.php?bc=5060166690144 Jan 09 19:39:56 hey guys, does anyone know how to capture bt packages? Jan 09 19:40:08 jareddlc: bluetooth? Jan 09 19:40:09 I have a galaxer gear fit, and i am trying to make my own app Jan 09 19:40:11 yup Jan 09 19:40:16 BLE? Jan 09 19:40:23 i think so yes serviscopeMinor Jan 09 19:40:28 one mo, let me dig out the code Jan 09 19:40:34 the Android API is kinf of awful Jan 09 19:40:35 er Jan 09 19:40:40 samsung hasnt released an app but hasnt updated to work with lollipop Jan 09 19:40:48 specifically, are you trying to dumpo packets or just connect and do stuff? Jan 09 19:41:01 so i wanted to see if i could take a crack and making open source galaxy gear fit app that would sync with the device etc. Jan 09 19:41:10 capella "Announcing Rust 1.0 Alpha" \o/ Jan 09 19:41:11 the nice answer is yes. Jan 09 19:41:15 dump packages that samsung sends to device Jan 09 19:41:25 Ah, yuou porobably don't want that Jan 09 19:41:29 do you know BLE at all? Jan 09 19:41:30 Oh ! Finally hit 1.0 :D Jan 09 19:41:36 serviscopeMinor: a bit yes Jan 09 19:41:42 how much> Jan 09 19:41:44 how much? Jan 09 19:41:45 not the underlining stack Jan 09 19:41:47 ah Jan 09 19:41:52 ok Jan 09 19:41:52 so Jan 09 19:41:52 but ive made an app with ble in android Jan 09 19:42:01 oh? Jan 09 19:42:10 yup g00s has help alot Jan 09 19:42:18 well, can you query the galaxy fit device? Jan 09 19:42:36 the BLE protocol is self describing in that it should reveal all the data sources and sinks Jan 09 19:42:41 if you just go through the tree Jan 09 19:42:48 so the problem is initial setup Jan 09 19:42:54 as in connecting? Jan 09 19:43:00 the initial setup requires "sepcial" handshaking Jan 09 19:43:04 ah Jan 09 19:43:22 if i try to connect via android bt settings, says please use gear fit app to setup Jan 09 19:43:28 oh right Jan 09 19:43:37 I mean if you write a basic BLE app can you connect via that? Jan 09 19:43:47 as in a basica app which connects and dumps the characteristics Jan 09 19:44:04 havent tried that yet, I was thinking of trying to capture whats going on with it to try to mimic it Jan 09 19:44:14 i have enabled in CM12 bt dump Jan 09 19:44:15 I think you might find the other way easier Jan 09 19:44:18 but im not sure if there another way Jan 09 19:44:36 well, if you can't get characteristics you're probably up the creek anyway Jan 09 19:44:41 i used enable bluetooth HCI snoop log Jan 09 19:44:57 oh so you're getting the raw PDUs? Jan 09 19:45:01 it was a huge dump Jan 09 19:45:21 and im not good at figuring out what is good data etc Jan 09 19:45:23 by special handshaking, what do you mean? Jan 09 19:45:51 Anyone here understand grouping notifications? Jan 09 19:45:53 im guessing it tells the device, I am the galaxy geat fit app and here are your settings Jan 09 19:46:05 how do you know if you should create a summary notification or not? Jan 09 19:47:01 jareddlc: ok, backing up a bit. You've got a galaxy fit and you're trying to write your own app to connect to it via BLE, right? Jan 09 19:47:09 serviscopeMinor: I just wanted to see if there way a different way to filter trough all that dumped via hci dump Jan 09 19:47:16 serviscopeMinor: yup Jan 09 19:47:37 I know, but I've done a fair bit of work with the low level BLE protocol and I think you might be heading down the wrong path, possibly. Jan 09 19:47:48 from that HCI dump, i saw how it sent bytes to notify it to show notification Jan 09 19:47:57 i appreciate any help Jan 09 19:48:04 ok, and you want to do that yourself? Jan 09 19:48:19 well samsung is lagging and hasnt release a lollopop version of the app Jan 09 19:48:31 I mean you want to get notifications into your app? Jan 09 19:48:31 :) Jan 09 19:48:42 notifications from my app to device Jan 09 19:48:48 er Jan 09 19:48:51 but notifications isnt problem right now Jan 09 19:48:56 i should be able to get those easily Jan 09 19:48:59 ReScO: Can't you just access each array element? Jan 09 19:49:14 ok, can you re-explain the problem? Jan 09 19:49:20 xD sure Jan 09 19:49:25 A JSON array is essentially the same as a Java array. Jan 09 19:50:27 jareddlc: bear in mind my android knowledge is almost nonexistent. I've build some BLE circuit boards and got them to interface to unity via a JAR file shim which uses the android APIs, but I've never tried writing an app until about today. Jan 09 19:50:29 i want to reverse engineer the communication between the official galaxy fear fit app and the device. My thought was to to something akin to a TCP dump and get the packets that are sent to device via BLE. that way i can look into packages and try to recreate. But if there is a better way im all ears Jan 09 19:50:40 ah right Jan 09 19:50:41 yes Jan 09 19:50:44 there is a better way Jan 09 19:50:46 I think Jan 09 19:51:00 unless Samsung are guilty of dicking around pointelessly Jan 09 19:51:00 binders seems like a complicated concept Jan 09 19:51:09 If they're not then it should be easier. Jan 09 19:51:20 i read they have some unique object id attached across all processes, can someone sort of explain that part ? and why is that useful? Jan 09 19:51:42 serviscopeMinor: ive built a circuit using ble as well: https://www.youtube.com/watch?v=G-1y5b-LNrc Jan 09 19:52:03 well.. i cheated. i started using a broadcom ship. then i settled for the hm-10 chip which uses texas instruments Jan 09 19:52:25 cool! What app is that BTW? Jan 09 19:52:40 thats the one i made Jan 09 19:53:00 OK, so probably the easiest way is just to see if you can get the complete list of services off the device. Jan 09 19:53:12 that should be a few calls using the BLE API. Jan 09 19:53:29 From within the services you should be able to get all the charactewristics. Jan 09 19:53:36 oh wow Jan 09 19:53:48 yeah BLE has a self describing protocol Jan 09 19:53:49 it;'s nuts Jan 09 19:53:57 well to be *compliant* BLE... Jan 09 19:54:10 lol lets hope samsung complies Jan 09 19:54:17 I read the spec. As in waded through the massive PDF. Jan 09 19:54:32 is there an app already written that gives me a list of services and characteristics Jan 09 19:54:37 :D Jan 09 19:54:44 i did the same when i made a MIDI controller Jan 09 19:54:51 took some time looking at timing etc Jan 09 19:54:55 but made my controller Jan 09 19:55:01 I know there's an iPhone one and I can point you in the right direction on Linux, but I don't know about android. Jan 09 19:55:08 sweet! Jan 09 19:55:19 hmm i have a mac..which has BLE Jan 09 19:55:24 I know an iPhone one exists. No odea what it's called. Jan 09 19:55:25 i wonder if i can run the linux app Jan 09 19:55:35 Don't know about OSX either, Jan 09 19:55:35 er Jan 09 19:55:57 ahh its fine Jan 09 19:56:13 i'll try to search the google play with "ble characteristics" Jan 09 19:56:13 ? Jan 09 19:56:38 possibly. Jan 09 19:56:44 Well, let me take one more crack at it. Jan 09 19:56:51 https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner Jan 09 19:56:57 looks like might do it Jan 09 19:56:59 ooh that might do a good job Jan 09 19:57:16 yeah Jan 09 19:57:20 the screenshots look about right Jan 09 19:57:34 That will explore the tree and allow you to set nitifications etc. Jan 09 19:57:43 the API will match that tree view more or less. Jan 09 19:57:51 cool, thanks serviscopeMinor Jan 09 19:57:54 np Jan 09 19:57:58 hopefully i can use this instead of the dump xD Jan 09 19:58:02 yeah Jan 09 19:58:16 alright back to work xD Jan 09 19:58:18 If you do go the dump route, you'll have to get a copy of the Bluetooth4 spec to decode the packets Jan 09 19:58:20 well Jan 09 19:58:22 sort of Jan 09 19:58:34 if you hack bluez there's a bunch of source code to do decoding. Jan 09 19:58:35 yeah it was nasty not gonna lie Jan 09 19:58:50 so you could try to mash the logs into those C functions Jan 09 19:58:53 but yuck! Jan 09 19:59:02 Anyone here collect vinyls? Jan 09 19:59:38 jareddlc: BLE is not all that easy to understand quickly from the available docs. Let me know if you have any more questions. Jan 09 20:04:05 TacticalJoke: trying to, no success. Jan 09 20:05:22 TacticalJoke: this yields no results: http://pastie.org/private/o8vhhkzpw4sane2lfnhnnq Jan 09 20:05:34 ReScO: On my phone, so it's hard to help much, but any JSON library will have some kind of JsonArray.get(int index) method. Jan 09 20:05:55 the standard android library Jan 09 20:07:33 Don't you want "stores.get(I)"? Jan 09 20:07:39 i* Jan 09 20:08:01 stores is a array, within that there's a name node Jan 09 20:08:28 serviscopeMinor: thanks alot will do Jan 09 20:08:29 stores: [{"name":"Storename"}] Jan 09 20:08:41 that's the structure Jan 09 20:08:46 i love JSON xD Jan 09 20:08:59 does anyone know if Android Studio has an "automatically add `final` to variables/etc" thing like Eclipse has? Jan 09 20:09:13 "stores":[{"name":"Storename"}] Jan 09 20:09:18 sorry :P Jan 09 20:10:08 Anyone use any code review tools at work? Jan 09 20:10:15 jareddlc: how would i access the storenames? Jan 09 20:11:16 ReScO: i never used it in android. Im Node.js dev, but in JS we acces by data.storenames Jan 09 20:11:33 Yeah, my answer was wrong. Didn't realise Android's JSON library worked like that. I'll have to wait till I get home. Jan 09 20:12:01 sorry ReScO can you repeat question maybe i can help Jan 09 20:12:04 but not certain Jan 09 20:12:41 jareddlc: I'm heading off. I'm also online here (not this channel at the moment) as serviscope_minor. Feel free to PM. Jan 09 20:12:57 thanks cya serviscopeMinor Jan 09 20:13:16 jareddlc: http://pastie.org/private/o8vhhkzpw4sane2lfnhnnq Jan 09 20:13:21 that's my current code Jan 09 20:13:26 i can't get the storenames Jan 09 20:13:46 result is json data? Jan 09 20:13:52 yeah Jan 09 20:14:08 http://api1.nl/vosca/getdetails.php?bc=5060166690144 < json @ jareddlc Jan 09 20:14:11 which lib are you using Jan 09 20:14:52 Android Built-In Jan 09 20:14:58 okay reading docs really quick Jan 09 20:15:03 or rather, no lib :P Jan 09 20:15:48 I'm having trouble with navigating through the JSON structure Jan 09 20:16:33 JSONObject json = (JSONObject) new JSONTokener(result).nextValue(); should probably be: JSONObject = JSONObject(result); Jan 09 20:16:54 err JSONObject json = JSONObject(result); Jan 09 20:18:12 jareddlc: it works for getting ProductName. Jan 09 20:18:50 so then looks like stores = getjsonarray is good Jan 09 20:19:11 Not sure Jan 09 20:19:26 the for loop doesn't.... loop. Jan 09 20:19:30 not even once Jan 09 20:19:51 Log.e("Scanner_sb_loop", "Name: " + sname); doesn't show up in logcat Jan 09 20:19:57 youur look should be JSONObject jo = stores[i]; Jan 09 20:20:30 wouldn't work Jan 09 20:20:40 so you are not entering loop at all? Jan 09 20:20:41 it's not an array, it's a JSONArray Jan 09 20:22:27 so JSONArray has a getString(index) Jan 09 20:22:39 should get you the name Jan 09 20:22:57 but, i dont know why you cant enter the loop Jan 09 20:23:26 before entering loop, what is value of stores.length()? Jan 09 20:26:24 jareddlc the toughest thing about android BLE imho is dealing with serializing commands Jan 09 20:26:39 i.e. not haveing multiple commands in flight at the same time Jan 09 20:27:18 seems the samsungs are OK with this, and their older proprietary stack (pre jellybean_mr2) was fine as well Jan 09 20:27:24 the nexus devices have issues though Jan 09 20:28:24 i've been looking at a few ways to make this invisible using rx & some trickery, but google made some unfortunate design decisions in the API which are making this difficult as well. Jan 09 20:28:51 ahh Jan 09 20:29:33 what cracks me up about google, is they have these coding guidelines like 'memver variables must have m as prefix', but they apparently have no guidelines on how API designers should write these re-occurring things like callbacks. so much inconsistency. Jan 09 20:29:58 what the hell am I supposed to do with this?? "01-09 12:17:01.613 E/AndroidRuntime(7392): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/blango/cuber/adapter/NavigationDrawerAdapter;" Jan 09 20:30:18 if you look across the swath of google apis, it appears pretty much every approach, naming convention, etc was used Jan 09 20:30:40 ReScO: ? did you find the length? Jan 09 20:30:48 anyone using retrofit lib? Jan 09 20:30:54 i am Jan 09 20:31:01 i am Jan 09 20:31:02 any ideas on that trace? Jan 09 20:31:44 how can i set the number of "tries" of the request object? Jan 09 20:31:50 drinfernoo: look higher up. I bet you'll find a VerifyError that the base class can't be found. Jan 09 20:31:57 abara: retrofit does no retrying Jan 09 20:31:58 guys you see those facebook chat heads? Jan 09 20:32:07 and how they work? Jan 09 20:32:10 yes Jan 09 20:32:11 and yes Jan 09 20:32:12 how could you not see them Jan 09 20:32:20 that's like two years ago news Jan 09 20:32:24 Is it sensible to save a reddit cookie and modhash as plain text in SharedPreferences? Jan 09 20:32:25 i mean like whenever i call my floating activity the current one closes Jan 09 20:32:35 they don't use activities Jan 09 20:32:40 o Jan 09 20:32:40 TacticalJoke: yes Jan 09 20:32:44 wow Jan 09 20:32:48 seriously? Jan 09 20:32:49 Thanks. Jan 09 20:32:50 then what? Jan 09 20:33:03 abara: that's either an application level concern or an HTTP client concern Jan 09 20:33:07 so i'am supposed to write an asyntask do retry? Jan 09 20:33:22 JakeWharton, http://pastebin.com/Txgf27tC Jan 09 20:33:24 retrofit just maps HTTP semantics onto interfaces Jan 09 20:33:32 ok Jan 09 20:36:32 Hi, dumb question time. I have just started using Android Studio, and whilst I love it, the annoying thing is it doesn't seem to link to the Android online documentation. I was hoping highlighting a keyword and pressing F1 would take me to the Online SDK documentation page. Instead it brings up intelliJ help page. Am I missing something obvious? Jan 09 20:36:40 OverCoder, I stumbled over Tooleap this week, which is a library for floating windows like fb's chat heads Jan 09 20:36:56 gr8, what is it's name? Jan 09 20:37:59 interesting, is tooleap free ? Jan 09 20:38:58 o Jan 09 20:39:02 so it's name is Tooleap Jan 09 20:39:05 how dumb am i >.> Jan 09 20:39:08 * OverCoder develops his app Jan 09 20:39:31 the video cracked me up Jan 09 20:39:42 i like the notification bar filled with crap Jan 09 20:42:06 Has anyone noticed recently an occasional flicker when transitioning between activities? https://www.youtube.com/watch?feature=player_videoeditor&v=yiIEFOpkS0M#t=19 Jan 09 20:42:28 g00s, yeah that video is like wow Jan 09 20:51:35 hey people whats the name of that idea intellij channel again it might help MarkG1234 Jan 09 20:52:14 sorry got lost in the datastream Jan 09 20:53:03 there is android-studio but it's kinda dead MarkG1234 Jan 09 20:53:38 you lot still using Eclipse? Wow, you are keen.... Jan 09 20:53:38 hello, anyone know about audio playback on android? i'm having trouble playing a low-latency stream with AudioTrack Jan 09 20:54:35 miketo a little, low latency and "audio playback" are distinct concepts especially on android :( Jan 09 20:55:03 but AudioTrack should be lower latency than say, SoundPool Jan 09 20:55:41 what device/os/etc Miketo and how large is your audiotrack buffer? Jan 09 20:57:00 i've tried buffers of 10ms, but still get a ~1sec delay Jan 09 20:57:23 i think the native audiotrack object keeps a 1sec buffer Jan 09 20:58:04 but am curious how things like skype / hangouts(voice) work Jan 09 20:59:17 skype/hangouts is the least of the problems Jan 09 20:59:28 games/music apps are far more intolerant of latency Jan 09 20:59:51 i havent used audio track myself, Zharf has you can ask him but the way i understand audio track to work is Jan 09 20:59:57 it has some buffer Jan 09 20:59:59 no, you misunderstand. i mean "how do skype and hangouts stream real-time(ish) low-latency audio" Jan 09 21:00:08 stupid internet Jan 09 21:00:11 no i didn't misunderstand miketo Jan 09 21:00:19 read it again Jan 09 21:00:20 so any ideas JakeWharton? Jan 09 21:00:25 http://pastebin.com/Txgf27tC Jan 09 21:01:07 anyway with your audiotrack, miketo, you probably want to write the sound you want to play just a little ahead of the current pointer to the playback index, and not at the beginning Jan 09 21:01:24 audiotrack just loops the buffer so you have to write into the middle (etc) of the buffer not jsut the beginning Jan 09 21:01:25 i'm tring to stream real-time audio from my pc to phone. i *always* get ~1 sec latency. this is intolerable. whatever the method hangouts uses for low-latency streams, i would like to use it. Jan 09 21:01:43 maybe th elatency is coing from the pc to phone stuff Jan 09 21:01:55 are you playing audio straight out of the phone to make sure that isn't the cause miketo? Jan 09 21:02:23 HevvyMetal, all you have to do is audioTrack.write(dataBuff[]) and it copies data down to the native object buffer, it's dead simple to get working -- but has a huge delay Jan 09 21:02:56 MarkG1234: try installing the documentation for the platform you're targeting. it should be using your local documentation. Jan 09 21:02:58 try #music dsp on efnet miketo Jan 09 21:02:59 if i put audiotrack in static mode, i get zero latency, but in stream mode i get about 1sec Jan 09 21:03:02 #musicdsp Jan 09 21:03:16 kk, thanks :D Jan 09 21:03:33 you'll like it :) Jan 09 21:03:42 lots of humble folk there Jan 09 21:04:18 but on here go ping zharf miketo i know he's dealt with that and you can pm him he idles here mostly if he complains about the pm tell him to yell at me miketo :) Jan 09 21:04:24 HevvyMetal, any ideas what's going on here? http://pastebin.com/Txgf27tC Jan 09 21:04:58 i'll chk in a sec here drinfernoo gotta grind some emails gimme a few mins k Jan 09 21:05:09 lol, thanks HevvyMetal Jan 09 21:05:10 yarp Jan 09 21:08:33 hey all Jan 09 21:09:26 i have a layout file that seems like the layout_alignParentRight="true" is not working http://pastie.org/9822923 line 70 Jan 09 21:11:03 skrite: that's because the parent view is a LinearLayout, which doesn't have alignParentRight as a layout option Jan 09 21:11:42 groxx, Jeez. thanks, is there a way to pull that off? Jan 09 21:11:53 skrite: layout_gravity="right" will probably work Jan 09 21:12:04 ah, splendid, thanks ! Jan 09 21:12:44 groxx, and ideas on this trace? http://pastebin.com/Txgf27tC Jan 09 21:12:48 any* Jan 09 21:13:04 skrite: tl;dr: layout_ is defined by the parent view. it uses those to determine how to organize its children. alignParentRight is (basically) only used by RelativeLayout. Jan 09 21:13:25 i see. well, thank you very much. Jan 09 21:13:53 drinfernoo: dunno. I forget, is this part of a multi-project project, and could your final "app" project be in a different project than the code? Jan 09 21:14:34 not this one Jan 09 21:14:42 skrite: _most_ built-in views let you use layout_gravity, fwiw. you can get a long way with just that, and it's faster than RelativeLayout (if you don't need the fancier stuff it provides). Jan 09 21:14:42 I could never get the other projects to work Jan 09 21:14:45 lol Jan 09 21:15:14 app is where my project is, and I had this working, and it just broke Jan 09 21:15:20 is that in AS or eclipse drinfernoo ? i think it's odd that its complaing about the dex Jan 09 21:15:22 no filesystem changes that I know of Jan 09 21:15:36 drinfernoo: :\ what does your gradle stuff look like? I suspect weirdness there, but I'm guessing. Jan 09 21:16:19 settings.gradle is "include ':app'" Jan 09 21:16:26 and I'll pastebin the build.gradle Jan 09 21:16:30 :y: Jan 09 21:16:36 oops. slack-ism there. Jan 09 21:17:37 http://pastebin.com/xe0WWw9f Jan 09 21:18:46 huh. looks fine to my eyes at least Jan 09 21:19:05 that's what I thought Jan 09 21:19:39 I changed an id in a layout file, and added some stuff in my adapter, but I reverted that and it still won't work Jan 09 21:20:53 HevvtMetal, I don't like to say what ide I'm using lol Jan 09 21:21:06 well it might matter so say it drinfernoo Jan 09 21:21:13 drinfernoo: it seems odd that it would compile but not run. but try removing the generics on your drawer adapter, so you just have `class NavigationDrawerAdapter extends ArrayAdapter`. I wouldn't think it would compile if it were the problem, but it's kinda crazy anyway Jan 09 21:21:18 ReScO: Just got back. Did you get an answer to your JSON question? Jan 09 21:21:28 (I assume this is the same project as that code?) Jan 09 21:22:17 TacticalJoke: ReScO is afk i think i was trying to help as well Jan 09 21:22:28 groxx yeah Jan 09 21:22:33 Okay. :) Jan 09 21:22:45 HevvyMetal, I'm using AIDE, and everyone lols when I say that Jan 09 21:22:46 lol Jan 09 21:22:53 lol Jan 09 21:22:57 dunno what that is Jan 09 21:23:11 * groxx waits for more lols... is disappoint :( Jan 09 21:23:22 AS is lawlz enough Jan 09 21:23:29 if it sucks worse than that fuck it Jan 09 21:23:41 sucks is relative Jan 09 21:23:54 vacuums suck, but that's a good thing Jan 09 21:24:07 TIL programming = vacuum Jan 09 21:24:24 so it runs on your tablet? how are you pasting? Jan 09 21:24:35 hoover? Jan 09 21:24:36 #aide Jan 09 21:25:09 what is it an IDE for hipters or third worlders to use on the train or camel because they don't have a laptop to do real coding on? Jan 09 21:25:21 essentially lol Jan 09 21:25:25 if you're gonna go that route use ALICE or something Jan 09 21:25:33 I'm actually using it because I don't have a computer at all Jan 09 21:25:40 I love Stallman drama. Jan 09 21:25:45 so what country do you live in drinfernoo ? Jan 09 21:25:51 drama TacticalJoke ? Jan 09 21:25:51 TacticalJoke: hehe yeah he's a pretty funny fella Jan 09 21:25:55 Stallman and drama go so well together. Jan 09 21:25:57 US Jan 09 21:26:01 what's the latest stallman drama TacticalJoke Jan 09 21:26:10 I was part of the drama that got Stallman kicked out of MIT Jan 09 21:26:13 TacticalJoke, did you like his fooot skin eating video Jan 09 21:26:16 Sculptor: http://www.reddit.com/r/programming/comments/2rtumb/current_emacs_maintainer_disagrees_with_rms_id_be/ Jan 09 21:26:17 but very indirectly Jan 09 21:26:20 Eww, yeah. Jan 09 21:26:21 so what's his latest drama? Jan 09 21:26:57 Is there stil more I can still do right now with Gradle 2.x aside from running it as a daemon to speed it up more? Jan 09 21:26:57 oh gawd emacs Jan 09 21:27:16 Chainfire : ssd Jan 09 21:27:22 already on ssd Jan 09 21:27:39 speaking of ssd are there any good microsd that have high IOPS for compiles? Jan 09 21:27:44 most ppl dont understand but here they would Jan 09 21:27:55 Chainfire : ant, maven, make Jan 09 21:28:13 comical Jan 09 21:28:16 HevvyMetal what's ALICE? Jan 09 21:28:18 i am not a phan of gradle Jan 09 21:28:37 www.alice.org drinfernoo Jan 09 21:28:55 HevvyMetal: try to find a class 10 one. they'll cost more. Jan 09 21:28:56 everything I can find re gradle performance optimization is outdated Jan 09 21:29:12 I think Stallman drama is so fun because he has a super-high profile and yet he's really bizarre. :D Jan 09 21:29:35 oh yeah, not for me. no pc Jan 09 21:29:38 no groxx class 10 is just about sustained writes and compiling needs randowm writes and reads = high IOPS not high sequential Jan 09 21:29:45 he's only "super-high profile" with geeks and those who know/care about GNU Jan 09 21:29:46 does anyone anywhere even like that guy ? Jan 09 21:30:09 I dunno I never met stallman I just used his root accounts for free at mit Jan 09 21:30:19 but i did meet captain crunch chainfire and that guy is a wackjob Jan 09 21:30:26 or cap'n crunch Jan 09 21:30:29 HevvyMetal: technically true, but in my experience the 10s are several times faster for _everything_. it's almost hard to make a flash store that has fast sequential write and not fast anything else. Jan 09 21:30:31 i met tim leary too and leary was cooler Jan 09 21:30:43 blue box capn crunch? Jan 09 21:30:43 not in my experience with crystal diskmark groxx Jan 09 21:30:48 yeah Jan 09 21:30:50 that one Jan 09 21:30:57 way wack Jan 09 21:30:57 ha, well, fwiw I've never tried those :) Jan 09 21:31:04 dope sounds like he would be Jan 09 21:31:05 well i have groxx Jan 09 21:31:06 lol Jan 09 21:31:16 yeah brb smoke Jan 09 21:31:17 though there are definitely some cheap sd cards that claim class 10 and objectively do not achieve it Jan 09 21:31:34 i hung out with him for couple hours btw not just saw him at a conferenec (crunch) Jan 09 21:31:36 bbiab Jan 09 21:32:07 hey guys, im open an url with a POST, but im missing something. this static page works: http://paste.ofcode.org/kuPABYwhbjTMWSt9F86iuj but i think im missing the “onload” thing. How can i do it?? this is currently the code: http://paste.ofcode.org/39n75ydXZqSpQEkq2g7zwyj Jan 09 21:32:09 drinfernoo: tbh since aide's gradle support isn't fantastic, I might just recommend switching to an eclipse-style project. Jan 09 21:32:16 it's possible it's borked for some reason Jan 09 21:32:28 that's actually not a terrible idea Jan 09 21:34:12 drinfernoo: converting to gradle later is semi-easy, as long as you don't do weird stuff with the eclipse project. and Android Studio can import it magically, if you're able to do that in the future. Jan 09 21:34:55 I think I switched to gradle in order to use maven, and then realized it doesn't maven either lol Jan 09 21:35:14 hah, yeah, that could be problematic :) Jan 09 21:36:26 afaik anything in maven (central) can be downloaded as .jar / .aar from the website. not as nice as gradle's setup, but still pretty simple. Jan 09 21:39:29 if I could figure that shit out you'd be a lifesaver Jan 09 21:39:29 I'll totally do it Jan 09 21:40:23 drinfernoo: http://search.maven.org/ -> find -> pick version -> resources are at the bottom :) Jan 09 21:40:36 AS doesnt even use maven.org as repo Jan 09 21:40:39 it uses jstore Jan 09 21:40:51 everyone loves gradle because it can load dependencies but lots of things can do that Jan 09 21:41:03 yeah, but everyone adds mavenCentral() anyway, because jstore doesn't have much Jan 09 21:41:13 it does have just about everything Jan 09 21:41:20 but even so Jan 09 21:41:29 gradle is not intrinsically a package loader Jan 09 21:41:32 it just does load packages Jan 09 21:41:34 no. just makes it easier. Jan 09 21:41:40 i dont see what else makes it so great Jan 09 21:41:50 yes and dozens of if not scores of build systems do that Jan 09 21:42:00 that's why they have 20 different paste strings on maven.org Jan 09 21:42:03 pom.xml Jan 09 21:42:06 gradle Jan 09 21:42:07 maven Jan 09 21:42:09 blah blah Jan 09 21:42:12 it's more-easily more-flexible than Eclipse's. that's about it, and that's more than enough of a good reason for any non-trivial project. Jan 09 21:42:14 gradle is hardly the only one Jan 09 21:42:52 i haven't seen it be more easy or flexible especially sice in the manifest you can't specify compatibility (unlike .NET) and even JakeWharton says you should hard code references (no +) Jan 09 21:43:02 so what does it give you? you just didn't have to download it and add it to libs Jan 09 21:43:04 that's it Jan 09 21:43:14 even autoupdating is too flakey to use in practice Jan 09 21:43:26 it's jcenter, not jstore, and it's a superset of repo1.maven.org Jan 09 21:43:29 if i have to hard code a lib version i'd just as soon download it add it to libs and put it git Jan 09 21:43:37 ah ok jcenter Jan 09 21:43:45 dependency management goes beyond just fetching the jar Jan 09 21:43:46 thanks JakeWharton Jan 09 21:43:56 yeah but at least .net made an attempt there Jan 09 21:44:25 how do you auto post to all those sites? do you have a push script to push to jcenter and maven.org and xxx and internal or what? curious jalcine Jan 09 21:44:48 what attempt did .net make? Jan 09 21:44:56 what are you even talking about? Jan 09 21:45:10 JakeWharton : to specify exactly which previous versions of a .DLL that it was compatible with versus breaking changes Jan 09 21:45:33 so it could autoupdate to the latest compatible version but not the latest breaking changes version if that makes sense JakeWharton Jan 09 21:45:41 you can do that with + Jan 09 21:45:46 assuming the library author isn't an idiot Jan 09 21:45:59 we talked about that but only assuming every author adheres to some spec and i'm not sure they do Jan 09 21:46:01 wait, jcenter is a superset of maven? I thought I've had it fail to find stuff that mavenCentral() fixed... Jan 09 21:46:19 ok, well maybe i don't adhere to that in .net world either Jan 09 21:46:40 so, from your side JakeWharton , what constitutes a breakin changes? does 1.8 to 1.9 break? what about 1.8 to 2.0? 2.0 doesnt have to break...but it could Jan 09 21:46:55 oh i didnt know you had .net versions JakeWharton .. do you? Have to check them out if you do Jan 09 21:47:08 no, i'm just invalidating your useless argument Jan 09 21:47:20 hah well in a very straw man fashion *sigh* Jan 09 21:47:25 really they did try to do something there Jan 09 21:47:34 no they didn't. it's exactly the same thing Jan 09 21:47:34 maybe they do in maven too but i havent seen it yet Jan 09 21:47:49 but do you get about what i mean about 1.8 versus 1.8.1 or 1.9 or 2.0 when does it break? Jan 09 21:47:58 it breaks whenever I want it to Jan 09 21:48:08 because it's my choice and version numbers are arbitrary Jan 09 21:48:10 sure so like i said, and I htink you said, you can't just use + Jan 09 21:48:12 right Jan 09 21:48:14 it's arbitrary Jan 09 21:48:18 thank you :) Jan 09 21:48:24 at least i'm not missing something Jan 09 21:48:24 this argument is fucking pointless Jan 09 21:48:30 it isn't an argument Jan 09 21:48:32 conversations with you are a hamster wheel Jan 09 21:48:45 you're right it's not, because i'm right and you're wrong Jan 09 21:48:45 well maybe because we are agreeing when you think we aren't :) Jan 09 21:48:54 cool Jan 09 21:49:43 Anyone know a good free android testing servies? Jan 09 21:50:27 perlsyntax: like user-testing, or cloud-unit-testing, or something else? Jan 09 21:50:35 yes Jan 09 21:50:48 that's not quite a yes/no question :) Jan 09 21:50:51 yes it is Jan 09 21:50:54 boolean logic! Jan 09 21:51:02 sorry i mean both. Jan 09 21:51:16 fine :P I should've stated xor. Jan 09 21:51:33 haha Jan 09 21:51:40 np Jan 09 21:51:45 perlsyntax: by user-testing I'm referring to "have some people try my app and give me feedback" - you want that? Jan 09 21:52:02 Why not Jan 09 21:52:08 perlsyntax: some will let you try it for free, but then they get semi-expensive Jan 09 21:52:24 Only thing i worry it about it crash and damage people phone. Jan 09 21:52:39 groxx,i see Jan 09 21:52:58 maybe i worry to much groxx. Jan 09 21:53:14 unless you're doing something with root, you're unlikely to break someone's phone Jan 09 21:53:31 i didn't know that. Jan 09 21:54:00 well, you can put crazy data into the sms / contacts / other databases, since they don't really do validation, and break some apps. but that's about it. Jan 09 21:54:18 groxx,So you saying if they don't have root on the phone i fine. Jan 09 21:55:01 generally. what are you doing that you're worried about breaking something? Jan 09 21:55:56 not anything bad Jan 09 21:57:01 iI just thought you could break someone phone by crashing it. Jan 09 21:57:12 I worry to much. Jan 09 21:57:59 i, i'm trying to recreate this (https://stackoverflow.com/questions/4480363/android-java-utf-8-httpclient-problem) my code is here (http://pastebin.com/BQMr0Xym) Jan 09 21:58:03 the line (response = httpClient.execute(httpGet);) is causing a problem, and i don't know why Jan 09 21:58:38 in theory, crashing should only crash your app, which doesn't really do anything to the phone as a whole. it's expected, to some degree, that your app will crash at some point. Jan 09 21:59:14 i understand now. Jan 09 21:59:33 You can use < and > to avoid breaking links: and Jan 09 22:00:03 groxx,thanks Jan 09 22:00:05 chars6: what kind of problem? Jan 09 22:00:18 groxx: i'm not sure, all ti says is W/System.err Jan 09 22:00:33 Actually, I take that back -- those links worked here. Jan 09 22:00:42 chars6: do you have the internet permission in your manifest? Jan 09 22:00:48 groxx: no Jan 09 22:00:52 ya need it Jan 09 22:00:56 groxx: i'll set that now Jan 09 22:04:26 groxx: i'm getting a NetworkOnMainThreadException. i guess that means i have to move this function to another file. Jan 09 22:05:00 No, it means that you need to do network operations on a background thread. Jan 09 22:05:09 oh Jan 09 22:05:18 still googling a solution Jan 09 22:06:25 chars6: To be honest, it's probably best to use OkHttp (a better HTTP client) and its async functionality (so that networking stuff all happens on a background thread). Jan 09 22:06:47 Though it's not 100% necessary. You could do what you want with the current HTTP client. Jan 09 22:17:23 is it possible to change the color of the dividing line between the view and the buttons in an AlertDialog? Jan 09 22:19:33 heater89: probably. I think it's a bit involved, but this looks promising: http://stackoverflow.com/a/23897269 Jan 09 22:21:21 afaik it's partially defined by your theme, which is the cause for the complexity Jan 09 22:22:33 groxx, I made a new eclipse project, and copied all my source into it, and now its crashing saying I need to be using a Theme.AppCompat theme Jan 09 22:22:34 :( Jan 09 22:24:53 groxx: thanks i will take a look at that Jan 09 22:25:18 I'm guessing you're misinterpreting the error somehow - "need to be using Theme.AppCompat" doesn't sound like an error the system would cause. is it that your theme doesn't work down to e.g. v8, or that it can't find Theme.AppCompat, or something else? Jan 09 22:25:57 groxx: never thought it might be the style of the button in the layout Jan 09 22:26:18 "01-09 14:21:11.719 E/AndroidRuntime(3602): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.blango.cuber/com.blango.cuber.BaseActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity." Jan 09 22:26:36 heater89: yeah, I would guess it's either that, or it's _possible_ it's a linearlayout and that's the divider color. Jan 09 22:26:47 heater89: I'm not familiar with how alertdialog constructs its views though Jan 09 22:27:13 drinfernoo: hm. you're extending a support ActionBarActivity or something like that? Jan 09 22:27:54 yeah Jan 09 22:28:15 and my theme is descended from Theme.AppCompat.Light.NoActionBar Jan 09 22:29:37 are you using the .aar resource? I _think_ that's required for the themes... though I've never used them directly in eclipse. Jan 09 22:31:46 hello Jan 09 22:32:27 drinfernoo: ew. looks like the official docs still suggest pulling in appcompat as a separate library project for eclipse :( Jan 09 22:32:40 drinfernoo: https://developer.android.com/tools/support-library/setup.html#libs-with-res you might have to do that to get access to the themes. Jan 09 22:33:03 drinfernoo: though the error sounds somewhat different than I'd expect for "can't find that theme". I would expect that at compile-time... Jan 09 22:33:36 Yeah, it's messy in Eclipse. Jan 09 22:36:26 I absolutely do need to use AsyncTask, yes? Jan 09 22:37:12 You don't need to use AsyncTask. In fact, I don't think AsyncTask is even appropriate for networking stuff. Somebody will surely correct me if I'm wrong. Jan 09 22:38:13 Hmm. Though some Android documentation talks about using AsyncTask for networking stuff. Jan 09 22:38:26 why is my app not logging anything anymore (since yesterday), despite LogCat working, and Log.d being called? Jan 09 22:39:55 hey all. getting my head in a spin about material theming of buttons. how can i get a button with inverted colours? Jan 09 22:40:03 or therabouts Jan 09 22:40:24 chars6: Any reaction to my suggestion above (OkHttp + async functionality)? Jan 09 22:41:10 TacticalJoke: still trying to see how to do async Jan 09 22:41:30 i.e. how can i do this: http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7S1lXOTYzMUx4SnM/components_buttons_main7.png Jan 09 22:41:41 To be clear, this is what I mean: https://github.com/square/okhttp/wiki/Recipes#asynchronous-get Jan 09 22:42:01 TacticalJoke: OkHttp looks nice though. brevity is something i've been looking for all day Jan 09 22:42:28 chars6: you absolutely need to use _something_. asynctask is eh... relatively simple and built-in, but it's not a good fit for networking. Jan 09 22:42:32 It's just better than DefaultHttpClient. Better API, better functionality. Jan 09 22:42:55 yeah. give okhttp a try, it's usually worth it even for really simple stuff. Jan 09 22:51:40 OKSPDY Jan 09 22:54:53 TacticalJoke: async is fine for networking, just depends on complexity Jan 09 22:55:22 TacticalJoke: often times if you can use a networking library, why not? but at the same time you may want to tailor some subset of classes based off async to do your own implementation if you need to Jan 09 22:55:43 i want to do this http://developer.android.com/guide/topics/ui/controls/text.html , keep some part of text in the editText that cant be changed , and also be able to edit the editText, just like the image of gmail app Jan 09 22:55:47 how can i do so Jan 09 22:55:59 no one should use defaulthttpclient since api9+ ... Jan 09 22:56:41 john67: You mean the hint? Jan 09 22:56:46 no one should use yeah Jan 09 22:56:51 android:hint=whatever Jan 09 22:57:03 but it shouldnt be change when Jan 09 22:57:23 when the editText re been changed Jan 09 22:57:33 like the gmail app, on the image Jan 09 22:57:40 lookt at the first form Jan 09 22:58:13 JakeWharton, you mean <16 Jan 09 22:58:18 FTFY Jan 09 22:58:34 Indeed Jan 09 22:59:56 Instead of the normal stack trace, I always get this java.lang.IllegalStateException: Unable to get package info whenever the app crashes. Anyone know why? Jan 09 23:00:06 john67: I found this, but I don't know whether it works or is a good idea: http://stackoverflow.com/questions/13134770/how-to-create-a-edit-text-with-a-permanent-hint-inside-it/13135075#13135075 Jan 09 23:01:16 TacticalJoke: oki, let me test it$ Jan 09 23:01:24 almost done! https://www.youtube.com/watch?v=RPAZTn0NFIA :) (it's an android wear watchface) Jan 09 23:02:00 adq cool Jan 09 23:02:19 only for circular? Jan 09 23:02:24 need a couple of things, few passes of optimizations, a name, and ready to go Jan 09 23:02:55 lasserix, yeah i'm a bit lazy for the first release but it fits well on square screen too, i will probably update it after Jan 09 23:03:18 adq: Does it change display like that all the time (the "interference" thing)? Or is that just for the demo. Jan 09 23:03:24 nope Jan 09 23:03:32 only when you switch from/to ambient mode Jan 09 23:03:42 It's really neat. I'd love something like that. Jan 09 23:03:48 originally, it was randomly popping/glitching Jan 09 23:03:52 The steady display, I mean. :) Jan 09 23:03:57 but it's too annoying and unecessary :p Jan 09 23:04:09 Yeah, that'd drive me crazy if it kept happening. Jan 09 23:04:36 there is also a digital (instead of analog) clone Jan 09 23:04:57 adq: fancy. nice work! Jan 09 23:05:00 thx Jan 09 23:05:13 could be better, but i don't want to suck too much cpu/battery Jan 09 23:05:16 The pulse in the middle looks hypnotic. Jan 09 23:05:19 how tricky is getting it optimized? is the watch just barely powerful enough, or is it not too hard? Jan 09 23:05:36 nothing tricky, it's just drawing in a canvas Jan 09 23:05:53 but what i meant by few pass of optimizations is that i have many computations i can do once Jan 09 23:05:57 so "don't be stupid" and it's basically fine? Jan 09 23:06:00 instead of multiple times Jan 09 23:06:17 the watch is powerful enough indeed Jan 09 23:06:29 Do batteries last long on those devices? Jan 09 23:06:33 nope :[ Jan 09 23:06:34 cool. I'm still waiting for one that isn't like 1/4 of an inch thick, but that's good to hear Jan 09 23:06:55 i find the round screen very fun to deal with Jan 09 23:06:56 we need an op here named adb adq Jan 09 23:06:59 since you don't have corners :) Jan 09 23:07:06 or at least a bot Jan 09 23:07:08 lol Jan 09 23:07:23 you haz been banned by adb! Jan 09 23:07:39 adb hell Jan 09 23:07:44 yeah, I'm thrilled by the round screens. the flat bottom edge (or ginormous bezel) bugs me though. Jan 09 23:08:09 yeah i don't have a moto360 (the only one with a "chin" (aka flat tire at bottom)) Jan 09 23:08:14 but it's just 30px Jan 09 23:08:18 still! Jan 09 23:08:30 this is why i did not put any relevant info on the hud on the bottom side Jan 09 23:08:33 garmin just came out with another 500 dollar smart-ish watch, probably running proprietary OS Jan 09 23:08:39 fenix3 Jan 09 23:08:40 also audi Jan 09 23:08:43 for starting your engine lol Jan 09 23:08:46 crazyness Jan 09 23:08:52 they call them smart watches so dumb consumers will buy them Jan 09 23:08:53 I'd consider buying one if battery life were amazing. Jan 09 23:09:01 duh i'm not blonde i have a smart watch mister! Jan 09 23:09:05 HevvyMetal, it depends Jan 09 23:09:12 i don't wear them, but i like to dev on it Jan 09 23:09:14 wtf is it good for Jan 09 23:09:16 surprising:) Jan 09 23:09:26 i see just a few use cases for smartwatches Jan 09 23:09:26 for dev dude, it's pretty fun Jan 09 23:09:37 lots of stuff is fun for dev Jan 09 23:09:42 but you know it's just the dawn of wearable stuff Jan 09 23:09:45 HevvyMetal: they're useful because you don't have to pull your phablet out and look ridiculous. Jan 09 23:09:49 i'd be interested in a slightly different form factor, maybe 3" x 2" curved screen Jan 09 23:09:53 so it has to start somewhere, often useless at beginning Jan 09 23:10:09 a curved bracelet with a big screen Jan 09 23:10:15 seems plausible in the future Jan 09 23:10:19 yes and look ridculous when? when checking notifies and stock updates? ok groxx...are you gonna browse the web or porn in a meeting? no Jan 09 23:10:29 it's useful for something and not others g00s Jan 09 23:10:29 it will monitor your health, will do phone stuff, etc Jan 09 23:10:40 HevvyMetal: merely by owning a phablet, you look ridiculous. best to not broadcast its existence. Jan 09 23:10:41 and upload all your private data on you to a third party server Jan 09 23:10:42 yeah an overpriced heart rate monitor Jan 09 23:10:44 (of course) Jan 09 23:10:49 phablets are great Jan 09 23:10:57 for demoing apps to clients its awesome Jan 09 23:11:00 that they may be, but are they ridiculous? Jan 09 23:11:05 tablets are better for demos Jan 09 23:11:05 some are Jan 09 23:11:13 phablets no so much Jan 09 23:11:17 nah tablets are too big and give wrong sizing Jan 09 23:11:20 problem is privacy, big problem ahead Jan 09 23:11:29 demoing a phone app on a phablet looks way better than a phone or tablet Jan 09 23:11:32 bah. just screencast to the projector and have a 50" "phone" Jan 09 23:11:33 especially health data.. Jan 09 23:11:49 not really Jan 09 23:11:51 (they already got all your mails :p) Jan 09 23:11:53 you showed cardiac symptoms while near your bed Jan 09 23:11:59 you only have sex 1xyear Jan 09 23:12:09 we will adjust your coverage rates accordingly Jan 09 23:12:10 insurance will raise their cost ;) Jan 09 23:12:19 it is already happening on babies Jan 09 23:12:28 babies? Jan 09 23:12:30 yeah Jan 09 23:12:31 new born Jan 09 23:12:33 they dont have enough sex? Jan 09 23:12:37 not yet Jan 09 23:12:37 :) Jan 09 23:12:44 or they get a genetic map to raise their premiums? Jan 09 23:12:49 exactly Jan 09 23:12:54 cariotype studies Jan 09 23:12:54 yeah i think that is fukt Jan 09 23:13:01 they start out with terrible credit scores too Jan 09 23:13:02 it has already begun Jan 09 23:13:03 where i live its all about genotyping Jan 09 23:13:08 cardiotype? whats that adq? Jan 09 23:13:13 i just know genome mapping here Jan 09 23:13:14 cariotype == genotype Jan 09 23:13:20 ok so yeah Jan 09 23:13:25 but a genotype is a lot of money Jan 09 23:13:26 oops it's a k in english Jan 09 23:13:28 soon it will be cheap Jan 09 23:13:29 kariotype* Jan 09 23:13:31 like yousay Jan 09 23:13:33 oh kario Jan 09 23:13:35 k Jan 09 23:13:36 karyotype* omg Jan 09 23:13:39 lol Jan 09 23:13:41 you suck Jan 09 23:13:43 bbiab Jan 09 23:13:45 sometimes Jan 09 23:13:50 I was going to say "I played that game, with the plumber, yeah?" Jan 09 23:13:54 lol Jan 09 23:14:02 you troll too much HevvyMetal :) Jan 09 23:14:22 Is there some kind of "new progress has started" callback relating to WebView? WebViewClient.shouldOverrideUrlLoading isn't enough, and WebViewClient.onPageStarted isn't quite right. Jan 09 23:14:45 troll is such an overused word and rarely even is related Jan 09 23:14:49 geno/kario/karyo-typing was pretty much guaranteed to happen though. it makes sense. but it's also why I want government healthcare, because otherwise private can just block you if you're going to be expensive. Jan 09 23:15:02 well i dont want to invoke godwins law Jan 09 23:15:04 I want to call Handler.removeCallbacks every time "new progress" beings (whatever progress it might be). I don't like the idea of calling it at the start of WebChromeClient.onProgressChanged, because that gets called so quickly sometimes. Jan 09 23:15:15 but certainly this genotyping can lead to pretty scary ramifications Jan 09 23:15:17 once again bbiab Jan 09 23:15:38 Instead of the normal stack trace, I always get this java.lang.IllegalStateException: Unable to get package info whenever the app crashes. Anyone know why? Jan 09 23:15:40 finally some silence :) Jan 09 23:15:53 AndI can't say something like "if (progress == 0) { removeThoseCallbacks(); }". Jan 09 23:16:04 Because we don't always get called with 0 progress. Jan 09 23:16:07 HevvyMetal i go off topic a lot too, but you should talk about android at least once in a while :) Jan 09 23:16:23 TacticalJoke: just have a thing that checks the latest time it was called, and if its less don't call it Jan 09 23:16:38 HevvyMetal, so I have no idea who you are :p Jan 09 23:16:57 HevvyMetal, maybe a reminder of what you used to shoot would stir some memory Jan 09 23:17:48 oh man, where is rustyshackleford Jan 09 23:17:53 lasserix: dunno. that's kinda weird. is there anything in the main logcat / not filtered by your app package? Jan 09 23:18:07 yeah everything else is fine Jan 09 23:18:27 I've been pulled quickly out of topic, when i realize Jan 09 23:18:45 im using genymotion Jan 09 23:18:54 i swtiched to actual device, stacktrace working fine again Jan 09 23:19:08 i renewed my indie license for genymotion :) Jan 09 23:19:44 there were a nice code promo/sale (XMAS2014BU) idk if it is still working, but worth it Jan 09 23:20:00 ironically, I just abandoned genymotion. didn't want to use it for real apps, don't want to pay that much, so I switched back to the normal emulators Jan 09 23:20:07 apparently haxm and virtualbox play nicely together now Jan 09 23:20:25 anyone know how to change the color of a button in material? Jan 09 23:20:31 i've used gm intensively last year, it's also a way to show my support Jan 09 23:20:38 and to be clean legally :) Jan 09 23:20:53 yeah, it's an impressive project, and the side tools are way better in some cases Jan 09 23:24:16 I like how simple it is to interact with the UI message queue in Android. I remember this being a pain in .NET, the VCL, etc. Jan 09 23:24:21 pfn photoduck called what i used to shoot porn Jan 09 23:24:33 but it wasn't Jan 09 23:24:42 anyway i'm f-stop if that rings a bell pfn Jan 09 23:24:43 hmm, not quite enough to jog the memory Jan 09 23:24:48 yeah, that does Jan 09 23:24:54 :) Jan 09 23:25:08 whatever happened to rc did he get 5150'd pfn? Jan 09 23:25:20 I don't recall Jan 09 23:25:35 heh np Jan 09 23:25:53 it's been years but versed seems to still be alive on most networks pfn Jan 09 23:26:04 havent seen rc or pawel or whatever his nick was in ages Jan 09 23:26:06 what about you? Jan 09 23:26:15 yeah, run into him from time to time, I think he used to troll #android Jan 09 23:26:27 i saw a guy at the zoo with a 500L and it was to die for I got to play with it Jan 09 23:26:40 nice lens Jan 09 23:26:41 what about koKaine you see him much? re 500L? pfn? Jan 09 23:26:43 amazing Jan 09 23:26:47 contrast was out of this world Jan 09 23:26:51 TacticalJoke: yeah, I like the handler system. low-level and efficient, and not too painful to use. Jan 09 23:26:55 nope Jan 09 23:27:00 I ditched all my photo stuff a few years back Jan 09 23:27:02 `KoKaine Jan 09 23:27:05 TacticalJoke: plus, nicely defined behavior. Jan 09 23:27:05 I don't really have time for it Jan 09 23:27:06 yeah me too Jan 09 23:27:16 now all I use for photography is my phone Jan 09 23:27:18 where you living these days now pfn? i was in berkely now in diego Jan 09 23:27:25 silicon valley Jan 09 23:27:37 the heart of it all Jan 09 23:27:51 bemore vague pfn... cuptertino? sunnyvale? atherton? Jan 09 23:27:56 santa clara Jan 09 23:28:01 ouch Jan 09 23:28:07 where do you work ? Jan 09 23:28:10 at home Jan 09 23:28:12 nice Jan 09 23:28:26 where are your clients? sf? or ...? you do android telecommute then pfn? way cool Jan 09 23:28:33 i haven't had to leave my house for work in... a few years Jan 09 23:28:46 I guess last year I had to make occasional trips to st louis Jan 09 23:28:55 all over, LA, NY, STL, etc. Jan 09 23:29:11 how do you find your gigs pfn? cl? dice? how would you find all these gigs? I do telecommute too but it's been geting harder to do Jan 09 23:29:22 I used to find a lot on CL and DICE..how do you find them pfn? Jan 09 23:29:25 some friends hooked me up Jan 09 23:29:33 kewlio Jan 09 23:30:26 well in android even big apps like wunderground or tinder just have a few devs so it's hard to find pplz who are in there...are they ios people who are in there that hook you up or what pfn? I'm curious cuz telecommuting is going a little off kilter and want to get that back in tune Jan 09 23:30:50 you can pm em too so we dont annoy pplz if they complain but its a fair topic i think (telecommute android gigz) Jan 09 23:30:53 other android people mostly Jan 09 23:31:05 a few connections came from here, even Jan 09 23:31:14 so are these bigs companies that have >10 android ppl? Jan 09 23:31:22 most co's i know just have 2 android Jan 09 23:31:25 maybe sony has 10 Jan 09 23:31:35 but most...even tinder, whatever, 1 or 2 Jan 09 23:31:38 just a handful Jan 09 23:31:43 right on Jan 09 23:32:21 so what kind of app are you doing now pfn? mostly social networking or mobile payments or video but just broadly what kind of cool stuff are you doing? Jan 09 23:32:34 i do a lot of all of the above Jan 09 23:32:39 nothing particularly cool, video stuff, and all my crap on github Jan 09 23:32:42 plus some device stuff Jan 09 23:32:57 oh ok link the github and i'll chk it in a bit Jan 09 23:33:02 github/pfn Jan 09 23:33:02 what about tinder? Jan 09 23:33:09 I work there Jan 09 23:33:09 what about tinder? Jan 09 23:33:16 do you know karim JonBad ? Jan 09 23:33:20 I do Jan 09 23:33:25 :) Jan 09 23:33:30 pm me Jan 09 23:33:35 JonBad how big is the android team there ? Jan 09 23:34:24 so err... Galaxy S5 running Lollipop completely ignores my colorAccent, for example for progressbar spinners and whatnot. Works fine on Nexus 5 (Lollipop). Problem occurs with and without appcompat, setting "colorAccent" as well as "android:colorAccent". Any ideas? Jan 09 23:34:25 It's currently 2 devs but we're looking to grow it a good amount Jan 09 23:34:48 Chainfire, are you inflating views yourself? creating them yourself? Jan 09 23:35:09 Chainfire, make sure you're using the right inflater if the former, use the correct view objects if the latter, but you said lollipop... oh Jan 09 23:35:11 pfn> just setContentView(layoutResid) Jan 09 23:35:12 that's irrelevant Jan 09 23:35:26 sounds like the S5 is just stupid Jan 09 23:35:33 hah Jan 09 23:35:55 Chainfire liking the appincompat library ? Jan 09 23:36:08 g00s: I think we're looking to hire between 2-4 more Jan 09 23:36:11 works fine with any other 5.0 device I've tried Jan 09 23:36:25 JonBad wow. what precipitated the need to grow the team ? Jan 09 23:37:02 I bet there'll be a lot of takers for that job Jan 09 23:37:07 Chainfire: I think the problem is that you're running a samsung phone. Jan 09 23:37:09 I'm not even sure you have to offer money :P Jan 09 23:37:20 people like tinder that much? I don't even know what it is Jan 09 23:37:33 We have a lot of things we're trying to do and our iOS team is larger. We really want things to be on par between the applications so we need more Android devs to keep up with iOS Jan 09 23:37:34 groxx har har. I have a couple of million users on it Jan 09 23:37:38 so can't just drop it :) Jan 09 23:37:43 yeah, but I can dream :) Jan 09 23:38:08 I have no idea how, but on the app I work on, we have Nexuses in the top 2 slots. Jan 09 23:38:13 pfn> I've never even seen it irl but I keep hearing about it from other (Single) people Jan 09 23:38:15 it's fantabulous Jan 09 23:38:27 meh Jan 09 23:38:33 in my experience Nexus users are the most demanding Jan 09 23:38:45 redditers exceed that, but yeah Jan 09 23:38:56 oh god reddit Jan 09 23:39:11 also the N4 has weird device-crashing camera bugs Jan 09 23:39:42 reading the Android section makes me cringe every time. the amount of bad info confirmed by dozens of users is ridiculous Jan 09 23:40:23 I'd imagine it's abnormally painful for you. I don't know much for root / kernel work, but even I see a hugely disproportionate amount of wildly-incorrect info about rooting. Jan 09 23:40:23 They remind me of a cult. Jan 09 23:42:55 Chainfire, simple answer, tell the samsung users who care to pay for an S5 for you :p Jan 09 23:43:19 JonBad you are hiring 4 android devs? onsite or remote or both? also chk ur pm Jan 09 23:43:41 tinder is very cool in some ways especially the gamification aspect and ease of use Jan 09 23:43:45 pfn> I actually have one here... Jan 09 23:44:05 its not just reports. can't figure out what the issue is Jan 09 23:44:09 Chainfire, oh, I misread what you meant Jan 09 23:44:11 was hoping someone else figured it out ;) Jan 09 23:44:23 confused your line about tinder vs. samsung problem Jan 09 23:45:17 HevvyMetal: Yeah like 2 to 4. We've avoided remote so far but I suppose there is a possibility we might consider it. Jan 09 23:45:34 HevvyMetal: thanks, we like it :) Jan 09 23:46:14 JonBad: Where are you guys? Jan 09 23:46:55 s73v3r: West Hollywood (Los Angeles) Jan 09 23:49:28 that's a good area Jan 09 23:49:36 close to UCLA and the beach Jan 09 23:49:46 JonBad: how far must you be? in la itself? Jan 09 23:51:25 lasserix: what do you mean? For applicants? Like I said, we prefer people to work in the office as opposed to remotely so that's really up to the individual in terms of how much a commute they want Jan 09 23:51:46 ahh I live in Irvine, and am looking for a position Jan 09 23:51:57 jumping on metrolink wouldn't be so bad Jan 09 23:53:17 do you have website? Jan 09 23:53:51 JonBad> I'll fly over for a visa... ;) Jan 09 23:54:22 did you say you work at tinder? Jan 09 23:55:10 lasserix: yeah http://www.gotinder.com/jobs Jan 09 23:55:50 Chainfire: Apply, I think we would consider visas for the right person Jan 09 23:57:18 JonBad: what is the hours? Does everyone show up at 8AM or do you do core hours? Jan 09 23:57:21 groxx: so i ended up figuring it out Jan 09 23:57:53 basically core hours... i think it's 10:30-4 or 5 right now Jan 09 23:58:17 heater89: cool, do tell :) Jan 09 23:58:49 groxx: looked up the alert_dialog layout in the source. found the resource id, then grabbed it use activity.getResources().getIdentifier(), and set the drawable for the horizontal divider to null Jan 09 23:58:54 JonBad, I'll definatly apply Jan 09 23:58:58 thanks for bring it up Jan 09 23:59:34 the id was "buttonPanel" Jan 09 23:59:51 of course... thank you for applying!!! Jan 09 23:59:53 heater89: haha, I like that plan :) I'm not sure if you'll have problems on some devices (so I'd recommend a fallback that just ignores it), but that is pretty often a workable way. Jan 10 00:00:13 easier than doing a completely custom layout anyway. Jan 10 00:00:28 groxx: yea i null check everything, and check id for > 0. so worst case the divider shows up Jan 10 00:01:28 groxx: thanks for the initial help :D Jan 10 00:32:34 iphone 6 must be selling like hotcakes. after 4 mos its finally available without wait Jan 10 00:34:29 fsck iphone g00s Jan 10 00:34:56 funny that Jan 10 00:35:08 I know quite a few people with iPhones... but none of them has the 6 Jan 10 00:35:35 samsung is hurting http://www.reuters.com/article/2015/01/08/us-samsung-elec-outlook-idUSKBN0KG2DE20150108 Jan 10 00:39:47 Can someone explain to me why list.clear() does not do what I want to to when adding Lists to a hashmap? Jan 10 00:40:09 if i use clear() It will replicate the same list (the last one) over and over Jan 10 00:40:26 if I use new ArrayList it will use unique lists Jan 10 00:40:51 inserting into the hashmap like hm.put(key,list) Jan 10 00:44:55 got it: pointers Jan 10 00:45:15 pointing to the same arrayList and clearing it every time, and inserting into every element is what clear() achieved for me Jan 10 01:22:07 tricknology: not sure I followed that. still trying to figure it out, or are ya good? Jan 10 01:22:21 yeah I got it Jan 10 01:22:27 I was inserting a list into a hashmap Jan 10 01:22:41 but after I generated a list (list.add(something)) Jan 10 01:22:49 I would use list.clear() Jan 10 01:23:02 ..after doing hm.put(string,list) Jan 10 01:23:19 so it turns out that hm.put() links to an object.. like a pointer Jan 10 01:23:35 Yeah, you're passing a reference to the List. Jan 10 01:23:44 so by reusing and clearing the same list.. I was using the same list, essentially Jan 10 01:23:52 yeah so it jsut repeated the last element Jan 10 01:24:03 using new List worked Jan 10 01:24:18 instead of clear().. sorry for this wall of broken statements Jan 10 01:25:39 is Android able to switch on strings? Jan 10 01:26:45 If you're compiling with Java 7 compliance level, yes. Jan 10 01:27:04 Or whatever the term would be. Jan 10 01:27:14 yeah, 1.8. but will Android be able to understand what’s goign on at runtime? and I think you answered yes.. Jan 10 01:29:03 I believe it's determined at compile time, so Android knows nothing of it. Jan 10 01:30:10 java 8 compliance, I think, not 7. could be wrong there though. Jan 10 01:30:17 it works if you install retrolambda ;) Jan 10 01:30:18 No, 7 is fine. Jan 10 01:30:33 Actually, what I said about compile time seems wrong. Jan 10 01:31:11 ah, it does say 7. neat. Jan 10 01:31:12 TacticalJoke: groxx: i can't find any examples on how to use OkHttp's async Jan 10 01:31:27 actually, aside from that it exists, i can't much much at all Jan 10 01:31:44 chars6: https://github.com/square/okhttp/wiki/Recipes#asynchronous-get Jan 10 01:32:39 gah! I was inches away from finding that :) thanks TacticalJoke Jan 10 01:33:19 I've been there so many times that Chrome is eager to auto-complete that URL for me. :) Jan 10 01:34:16 ok, i did see that before, lost it in a sea of tabs. still, i couldn't get it running. let me recreate the error i was seeing Jan 10 01:34:32 huh. I'm really not sure why I thought it wasn't in the list of things that java 7 supported / or maybe it was kitkat only. I see it now though :| sweet. guess we can start using them. Jan 10 01:34:43 tricknology: you can convert hte string to hashcode Jan 10 01:35:41 that's unlikely to help for a switch Jan 10 01:35:48 lasserix: Why would he need to? Switching on strings seems to work fine in Android. Jan 10 01:35:59 you need 1.7 Jan 10 01:36:10 groxx why? Jan 10 01:36:31 hey guys can MediaPlayer class can read and show subtitles from a file which is generated live Jan 10 01:36:37 3 illegal start of expressions at private client and public run, 3 expecting ; at public void run Jan 10 01:36:43 I notice that my string-switch actually compiles down to bytecode such as "invokevirtual java.lang.String.hashCode()". Jan 10 01:36:52 heh Jan 10 01:37:10 interesting TacticalJoke Jan 10 01:37:10 odd. hashcode has no uniqueness guarantees Jan 10 01:37:11 Then lookupswitch" and so on. Jan 10 01:37:23 That was with some string literals, anyway. Jan 10 01:37:41 wouldnt it be best to take it down to byte and then int representation of that? Jan 10 01:37:44 then switch on that? Jan 10 01:37:52 can it verify that at compile time when the string hashcode definition isn't part of the compiled product? assuming all androids now and forever use the exact same hashcode, it's probably fine, but that's not something the compiler can guarantee Jan 10 01:37:55 should be guaranteed unique that way.. Jan 10 01:38:33 Does it relate to the interning of String literals? I'm not sure. Jan 10 01:38:44 groxx oh i figure you'd declare all your string cases as final somewhere Jan 10 01:38:59 then it doesn't matter if the hashcode changes, as long as you get the hashcode of those Jan 10 01:39:12 lasserix: that would work. but then you would have to pass in one of those literals as an argument to switch. (still totally useful, but very hard to verify for the compiler) Jan 10 01:39:19 string >> byte array>> each byte to int + concatenate = unique int Jan 10 01:39:33 dat overhead doe Jan 10 01:39:53 er. and you're limited to like 2 characters. Jan 10 01:39:54 Hmm, it does use String.equals as well. I stopped reading too soon. Jan 10 01:40:05 tricknology: alternatively you can have a function that maps a string to an int Jan 10 01:40:30 This seems right: http://stackoverflow.com/a/18636061 Jan 10 01:40:39 at this point I'd say "y u no use enums" Jan 10 01:40:48 yeah, enums ftw Jan 10 01:41:03 TacticalJoke: yeah, that does sound reasonable Jan 10 01:41:07 enum lifer Jan 10 01:41:10 *enum life Jan 10 01:41:19 yea booooi Jan 10 01:41:29 its final. Jan 10 01:41:46 Note that, after calling String.equals, it has stuff like "ifne". So I'm taking it that this would work in any version of Android. Jan 10 01:42:07 what is ifne? Jan 10 01:42:16 "If not equal", I guess. Jan 10 01:42:25 o Jan 10 01:42:30 fwiw down at the bottom of http://tools.android.com/tech-docs/new-build-system/user-guide it states explicitly that string switches work, and it doesn't include it in the "kitkat only" list. Jan 10 01:43:00 ifne life Jan 10 01:43:04 its 1.7 Jan 10 01:43:32 yeah. but is there any downside to using 1.7? Jan 10 01:43:51 It says we can use try-with-resources with buildToolsVersion 19? Doesn't sound right. Jan 10 01:43:51 "oh noes, my code is more readable D: /death" Jan 10 01:44:05 Doesn't try-with-resources need minSdkVersion=19? Jan 10 01:44:07 no, it says minSdk 19 Jan 10 01:44:19 "With Android KitKat (buildToolsVersion 19) you can use the diamond operator, multi-catch, strings in switches, try with resources, etc." Jan 10 01:44:34 oh Jan 10 01:44:35 or, it might include build tools 19 earlier, but you also need minsdk 19 Jan 10 01:44:52 weird. didn't notice that. I suspect it's a typo Jan 10 01:44:54 In the following example they use minSdkVersion=7. Jan 10 01:44:56 Yeah. Jan 10 01:45:04 I think they just got confused. Jan 10 01:45:21 I *wish* we could use try-with-resources below 19. :) Jan 10 01:45:26 in the text below the code block they say minSdkVersion Jan 10 01:45:28 TacticalJoke: groxx: these are the compile errors i'm getting http://pastebin.com/sPVpHvr7 Jan 10 01:45:47 If I'm writing an app that uses common system intents (like camera), do I need to declare anything special permission wise? I'm a little vague on perms/intents Jan 10 01:45:56 True, groxx. They mention that after. Jan 10 01:46:31 chars6: Could you post the code? Jan 10 01:46:36 chars6: local variables can't have "private" / "public" Jan 10 01:46:53 Those are some cool error messages. :D Jan 10 01:46:54 Fah Jan 10 01:46:55 though I guess that could be declared on the activity / elsewhere, I suspect that's part of the problem Jan 10 01:46:56 nah Jan 10 01:47:07 unless you read /write contact data Jan 10 01:47:17 err Jan 10 01:47:18 i take it back Jan 10 01:47:26 chars6: what's the code around those errors? Jan 10 01:47:33 depends on what you are doing, stuff with contacts requires contacts, phone calls dial/ call etc etc Jan 10 01:47:35 TacticalJoke: groxx: it's copy/paste from the receipe. i'm just trying to get it working before i customize Jan 10 01:47:44 You're pasting it in the wrong place. Jan 10 01:47:48 chars6: where you put the code matters too Jan 10 01:48:06 chars6: sounds like you are missing a semilcolon Jan 10 01:48:12 chars6: you should post the code Jan 10 01:48:13 that could be too ^ Jan 10 01:48:14 groxx, was first trying in a fetchJSON method, moved it to the main class Jan 10 01:48:33 it's inside of MainActivity Jan 10 01:48:42 We can only hypothesize until you post the code. Jan 10 01:49:14 (but we might steal his code!) Jan 10 01:50:32 I have enough code already. ;| Jan 10 01:50:38 In fact, I'd like to get rid of some. Jan 10 01:50:42 :) Jan 10 01:50:48 http://pastebin.com/m7QtH0KY Jan 10 01:51:34 chars6: yeah. the problem is that that's not valid Java code. the example is meant to be inside a Runnable class or something, which is a little weird. Jan 10 01:51:51 chars6: tl;dr move it outside the fetchJSON method. Jan 10 01:52:56 and also read http://www.javabeginner.com/ or something. Jan 10 01:55:37 http://docs.oracle.com/javase/tutorial/ is probably better. straight from the horse's mouth. Jan 10 01:57:34 anyone here who has created admob campaigns? Jan 10 02:01:31 Rust looks nice. It's exciting to see all these neat new languages popping up. Jan 10 02:04:50 yeah i want to use rust for a project Jan 10 02:11:23 Documentation comments support Markdown. Interesting. Jan 10 02:13:35 TacticalJoke: really? that's been my dream for documentation for a while now Jan 10 02:13:54 javadoc is so verbose. when you make it useful for tools, it's unusable for reading. Jan 10 02:14:25 Yeah, here's the book chapter: http://doc.rust-lang.org/1.0.0-alpha/book/comments.html Jan 10 02:15:32 daaang. rust has been on my list for a while, maybe this'll actually get me to try it out Jan 10 02:16:30 /! looks handy too Jan 10 02:16:39 by which I meant "//!" Jan 10 02:16:43 but irc Jan 10 02:21:07 Standard-library method naming appears to use snake_casing, though. Not sure how I feel about that. Jan 10 02:22:04 I can't decide either. it's how I name my git branches, though I keep trying to switch to using '-' because it's easier to type. Jan 10 02:22:21 Yeah, I hyphens in my Mercurial branch names. Jan 10 02:22:26 SCREAMING_SNAKE_CASE Jan 10 02:22:57 That's the worst. :D Jan 10 02:23:07 :) i use that for final static Jan 10 02:23:26 good point. same here. Jan 10 02:23:26 I wish Java didn't have that convention, but because it does I use that too. Jan 10 02:23:33 C# used PascalCase for constants. Jan 10 02:23:41 as long as whitespace isn't syntax Jan 10 02:23:41 though now i'm going to picture snakes screaming my variable names. gee, thanks. Jan 10 02:23:55 :)) Jan 10 02:24:08 i don't mind any convention, i just like consistency across project codes Jan 10 02:24:18 Yeah, consistency is key. Jan 10 02:24:25 go probably wins there. gofmt is brilliant. Jan 10 02:24:40 There seems to be a snake_casing-related warning in the compiler (?): http://www.reddit.com/r/rust/comments/29sumo/warning_function_foobarshould_have_a_snake_case/ Jan 10 02:24:41 but naturally, it seems i go against everyone choice, like i put a new line between a method name and { Jan 10 02:24:51 <3 symetry Jan 10 02:25:09 You say "void foo()\n\n{ ... }"? Jan 10 02:25:40 void foo()\n{\n}\n Jan 10 02:25:54 Ah. Jan 10 02:26:53 I'm doing so traceview profiling, i like that part Jan 10 02:26:58 I read "new line" as "blank line" for some reason. Jan 10 02:27:28 would be great to have a diff possibility between result of different traceview Jan 10 02:27:50 but android device monitor is still borrowed from eclipse in AS..... you cannot even go to the corresponding line in allocation tracker per example Jan 10 02:27:55 :p Jan 10 02:27:57 adq: you monster! Jan 10 02:28:02 newlines go after {! Jan 10 02:28:21 Yeah, I love having a single opener and a single closer. Jan 10 02:28:43 probably a bad habit i kept, the worst one to get rid of Jan 10 02:30:21 so I'm guessing you're not fond of python? how would you feel about a language that _totally_ ignores whitespace (except to differentiate e.g. "String" from "varname". but "var name" is "varname" is "Varn Ame")? Jan 10 02:30:42 i'm a noob in python but i like it :| Jan 10 02:31:41 I wish we could use hyphens in Java identifies. "highest-number" is so much easier on the eye than "highestNumber", IMO. Jan 10 02:31:45 identifiers* Jan 10 02:31:48 I started in Ruby. mostly prefer it over python. might change if I used python more (AND started playing with their AST-rewriting stuff. that's legitimately cool.) Jan 10 02:32:12 wondering why uppercase are forbidden in xml filename on android Jan 10 02:32:17 TacticalJoke: well, you can underscore Jan 10 02:32:18 Even with subtraction things seem fine: int number = highest-number - lowest-number; Jan 10 02:32:26 and other special characters too Jan 10 02:32:33 Yeah, but I dislike that even more than camelCase. :) Jan 10 02:32:48 adq: personally, I wonder why nested xml folders aren't allowed. otherwise your /layout folder is full of tons of stuff. Jan 10 02:33:01 that too Jan 10 02:33:33 seems like it wouldn't be that hard to e.g. allow folders in the IDE, but flatten & enforce uniqueness at build. or "foldername" == "foldername_file_name.xml". Jan 10 02:33:34 Yeah, seems like a big omission. Jan 10 02:34:10 groxx yeah it would be cool if the nested dirs corresponded to nested R classes, so res/layout/foo/bar would be R.layout.foo.bar Jan 10 02:34:34 they'd have to change their "look up resource id" code, but yeah, that would be nice too :) Jan 10 02:34:35 with flavor you can have something Jan 10 02:34:43 very close to what you describe for res iirc Jan 10 02:34:49 orly? Jan 10 02:35:14 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Product-flavors Jan 10 02:35:19 but it's one level above (src) Jan 10 02:35:32 still, that gives more flexibility Jan 10 02:35:58 yeah, and that goes into "main/src/res/layout/etc.xml" and "flavor/src/res/layou/etc.xml", not "src/res/layout/flavor/etc.xml" Jan 10 02:36:08 though I suppose you could fake it. Jan 10 02:36:46 src/flavor1/res src/flavor2/res works too Jan 10 02:37:11 I just generally dislike build processes that impose organization on you. for convenience, sure - convention over configuration is handy. but srsly, I'd hand-code those foldernames every time, just let me change the resource glob patterns D: Jan 10 02:37:21 i realized recently there are different tree hiearchy possible with flavors Jan 10 02:37:27 let me find the ticket Jan 10 02:37:54 https://code.google.com/p/android/issues/detail?id=80539#c6 there Jan 10 02:38:04 you can do just about anything, since you can set specific source paths for each flavor. I haven't figured out how to say "add these .xml files as if they were /layout/etc" though. Jan 10 02:38:46 indeed Jan 10 02:40:20 Question.. I am new to the android API. I have a two-color bitmap font (white and transparent) and I'm using drawBitmap to display it. I want to apply new colors to it when I paint it, both to the foregruond and background. i was able to do this using two drawBitmap calls, the first with a matrixfilter applied (sets the foreground) and then the next one with a porterDuffFilter(XOR) (sets the background). is there a Jan 10 02:40:20 better way to do this? Jan 10 02:42:29 ahh i saw when you asked few days ago arg0n_, have you looked at http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html to see if another mode than XOR can suit your need? Jan 10 02:44:16 arg0n_: actually, since it's a bitmap font... is it feasible to pre-combine those? Jan 10 02:44:53 ive tried almost all of them and so far have not gotten any traction with it.. they mostly seem to be concerned with a combination of one user-specified color and the source / destination bitmaps color. but the source color is just a placeholder for me.. however i did try drawRect(BACKGROUND_COLOR) followed by porterduff filter hoping that it would combine the background with the filter color, but that didn't work the Jan 10 02:44:53 way i hoped Jan 10 02:45:04 I'm guessing it's small enough sitting in memory that duplicating it for a particular theme wouldn't be too hard. Jan 10 02:46:09 lasserix: you might want to also email alexandra@gotinder.com just in case Jan 10 02:46:23 groxx; so i have 16 background and 16 foreground (its an ANSI drawing program, which will support iCEColor) wouldnt that require 256 different bitmaps? Jan 10 02:47:02 groxx; i also want to support the XBIN standard eventually which would allow a user defined palette (still limited to 16 though) Jan 10 02:47:40 groxx; i could do that but i wanted to avoid it if possible Jan 10 02:48:39 i suppose i could probably cut down on the bitmaps though using those aforementioned filters and switching the values? so maybe it might only require 16 bitmaps... that would be very feasible Jan 10 02:49:01 arg0n_: at worst, yeah, it probably would. hm. Jan 10 02:49:25 is two draw calls for each glyph a bottleneck? I understand wanting to kill it if possible, but it seems somewhat unlikely Jan 10 02:49:52 i don't think so, but you better use traceview to monitor that properly, we cannot guess Jan 10 02:50:00 i have written this code in .NET and basically i used unsafe pointer access and just applied logical operations on the pixels to adjust the color bytes.. works very fast and effective Jan 10 02:50:13 drawing bitmap is very efficient, when bitmap are not large Jan 10 02:50:18 but i dont know how to port it to android Jan 10 02:50:25 heh. you could probably do it Jan 10 02:50:41 make an array of ints (colors), pass it to BitmapFactory Jan 10 02:50:59 ah, or Bitmap.create Jan 10 02:51:13 it might even reuse the memory, making it cost almost nothing. Jan 10 02:51:51 right now it seems fine and i'm using the two draw calls for now. just wondering if anyone saw that and immediately thought of a better solution Jan 10 02:52:17 ooh. canvas has drawBitmap(int[] colors, ...) Jan 10 02:52:56 how does that work? so i would need to get a byte array of the original bitmap, apply the colors to that byet array and then pass it back? Jan 10 02:52:58 this one is not efficient :p the int[] is the array of x*y pixels (where x is width and y the height) Jan 10 02:53:07 and the other parameters is the color iirc Jan 10 02:53:42 nah, it's the same arguments as to Bitmap.create Jan 10 02:53:56 hello guys Jan 10 02:53:58 ah Jan 10 02:54:02 good nite :) Jan 10 02:54:24 int[] is each pixel, as an ARGB int. since you're just drawing it, you could probably reuse a single byte buffer every time, just massage the offset and width to match the glyph Jan 10 02:54:33 what i mean is.. what does the array contain in drawBitmap() ? if I have a 16x16 grid, it would be a 256 byte array with the color values for each pixel? Jan 10 02:54:33 ah yes indeed, my bad lol Jan 10 02:54:40 or is it some sort of color index Jan 10 02:54:53 yes Jan 10 02:54:54 it would be a 256 int array, which is *4 bytes, but yeah Jan 10 02:54:58 or more precisely an int array Jan 10 02:55:34 ok, thanks. great idea guys. i will read up more on the API before coming back here if necessary Jan 10 02:55:35 arg0n_: Color.argb will make it for you, and/or you can check the source and duplicate it. I think it's just bitshifting. Jan 10 02:56:33 So i have a tabbed view (3 tabs) and one action button. what i want is tho change the label of this action button every time i change tab. i already have a class field to hold the ActionBar used on the activity, and i know where the "switch" of tab happens. I just dont know how to recover an MenuItem from the ActionBar class. Jan 10 02:56:54 hopefully you find something :) I doubt I'll ever need more than a the normal porterduff modes, but I am curious what kinds of things are possible (and if they behave reasonably) **** ENDING LOGGING AT Sat Jan 10 02:59:59 2015