**** BEGIN LOGGING AT Fri Sep 12 02:59:58 2014 Sep 12 03:00:01 well I create them with method Sep 12 03:00:07 final ShadowActivity shadowActivity = Robolectric.shadowOf(aboutActivity); Sep 12 03:00:22 AS 0.8.10 released Sep 12 03:00:42 http://pastebin.com/8ezaDcjD Sep 12 03:00:58 http://tools.android.com/recent/androidstudio0810released Sep 12 03:01:06 ah, nice memory monitor Sep 12 03:01:26 pastebin down :( Sep 12 03:01:31 a Sep 12 03:01:33 ok its back Sep 12 03:01:37 canary channel... Sep 12 03:03:58 but with gradle now robolectric doesnt make sense Sep 12 03:04:01 gordon_: unfortunately i need a shadow of an actual object not an intent, and i need to provide the implemntation Sep 12 03:04:09 it takes like forever to start all those tests Sep 12 03:04:30 JacobTabak: dont know if it will work Sep 12 03:04:42 dont have *that* much exp Sep 12 03:04:44 i think i can just use mockito Sep 12 03:04:46 ask JakeWharton Sep 12 03:04:53 JacobTabak: I would just do that Sep 12 03:04:55 maybe the only reason they used it was because it was a static method they needed to shadow Sep 12 03:05:16 I use mockito too Sep 12 03:05:28 but I think I will move to normal android tests Sep 12 03:05:47 guess I'm getting old :) Sep 12 03:08:56 JesusFreke crazy bike of the week! http://www.gizmag.com/flying-rider-production/33777/ Sep 12 03:09:08 http://tech.slashdot.org/story/14/09/12/0050206/chrome-os-can-now-run-android-apps-with-no-porting-required Sep 12 03:11:42 lasserix_: wow Sep 12 03:11:50 I didnt expect that Sep 12 03:12:00 g00s i bet you can fall much more easily Sep 12 03:12:11 they must not take hard turns at high mileage Sep 12 03:12:29 i routinely turn right corners at 25 miles an hour and use the fact i can lean in and out of the turn to avoid falling to my doom Sep 12 03:13:01 also being locked into the bike is kind of frightening Sep 12 03:13:19 i'm not sure the benefits, they expecting you can go 1-2 more mph or something? Sep 12 03:14:37 no seating ;) Sep 12 03:14:41 but it's expensive as hell Sep 12 03:16:03 lasserix_ yeah i think its crazy! but bycicle seats aren't good for your crotch ;) Sep 12 03:16:12 male or female Sep 12 03:16:17 if you know what i mean Sep 12 03:16:39 isn't that kind of a matter of uh seat angle? ;p Sep 12 03:16:48 nah Sep 12 03:17:29 there are some ergonimic seats out there, one i remember has 2 paddles for your ass bones Sep 12 03:17:29 ladies! Sep 12 03:18:11 ron_frown http://www.gizmag.com/daqri-smart-helmet-ar/33738/ Sep 12 03:18:57 <_flip> such banter here today! Sep 12 03:19:42 gordon_: i can’t use moquito because i can’t inject this without messing up the whole API Sep 12 03:19:50 so i have to make this work :\ Sep 12 03:20:02 with robolectric Sep 12 03:20:15 yeah I looked into that one g00s Sep 12 03:20:22 they want to do the implementation themselves Sep 12 03:20:25 i hope it massages it your brain Sep 12 03:20:31 so let us come into your business and build software for you Sep 12 03:20:52 I'm basically done with my current employer to be honest Sep 12 03:20:55 or at least provides mild electric shock when it determines you are being sluggish or having difficulty thinking Sep 12 03:22:54 So I have created my theme for actionBar in styles.xml, however I can't find where to set it. I used android's default navigationdrawer new project. Sep 12 03:23:05 As is it does nothing. Sep 12 03:23:22 lasserix_ dark helmet :) Sep 12 03:23:27 I believe the styles.xml is correct. Sep 12 03:24:00 g00s no didn't you see that report that shows mild electric shock in the right places improves mathematical skill and may be more "rejuvinating" than a coffee ? ;p Sep 12 03:24:27 lasserix_ oh yeah, i've been thinking i need that Sep 12 03:24:30 https://gist.github.com/SASDOE/4604200156a86fa00ab6 styles.xml Sep 12 03:24:33 SASDOE make sure it's not being overriden Sep 12 03:24:48 by what/who/where? Sep 12 03:25:08 style-400sp or something Sep 12 03:25:13 you have different resource folders Sep 12 03:25:29 i think the default project comes with all and >ice cream sandwich or something Sep 12 03:25:35 so make sure the OTHER styles has your style Sep 12 03:25:39 and then set it in your manfiest Sep 12 03:25:52 for your activity if its activity or application if its for all the activities Sep 12 03:26:01 How? Sorry I'm awfully new to IDEs and even more so to android Sep 12 03:26:02 lasserix_ maybe we could attach the electrodes to this http://i.imgur.com/razZjOa.gif Sep 12 03:26:16 values and values-w820dp Sep 12 03:26:42 then make sure your Manifest file has in the application node android:theme="@style/AppTheme" > Sep 12 03:26:48 There's only a dimens.xml in values-w8d.. Sep 12 03:26:49 or whatever you style name is Sep 12 03:26:53 yeah Sep 12 03:27:13 for the hell of it delete the values-w820dp folder Sep 12 03:27:21 and make sure your manifest has the style Sep 12 03:27:24 set Sep 12 03:27:25 g00s: apparently that is android based Sep 12 03:27:28 I emailed those folks Sep 12 03:27:31 fuck it Sep 12 03:27:31 I have a RelativeLayout with two children which are meant to overlap. The first has a MATCH_PARENT layout but when it draws, its height does not fill or match its parent's. It only seems to work if the parents layout is set to an exact size; ex. setLayoutParams(new LayoutParams(50, 50)). Sep 12 03:27:41 ron_frown the perfect bush machine ? Sep 12 03:27:45 or the helmet ? Sep 12 03:27:49 the helmet Sep 12 03:27:52 g00s hehe Sep 12 03:28:08 I could sell the shit out of those assuming they are REASONABLE PRICE Sep 12 03:28:27 lasserix_: great got it, thanks a lot. Sep 12 03:29:01 and I've already got the guts to bt comm, augmented reality marker replacement, virtual HMI etc Sep 12 03:29:22 sasdoe if you look at how res folder works you can have variants on a folder that will override the default ie, layout-land will override layout if the phone is in landscape mode Sep 12 03:29:24 would jsut need hardware and I could probably whip up a quick and dirty poc Sep 12 03:30:40 lasserix_: cool tip, thanks Sep 12 03:32:29 ron_frown they could make good mike helmets if slighty modified for venting and coolness ;) Sep 12 03:32:33 *bike Sep 12 03:32:40 skully makes an AR helmet Sep 12 03:32:47 android based Sep 12 03:32:58 but they are trying to sell me at 1500 introductory price Sep 12 03:33:13 will I see little androids ? Sep 12 03:33:32 ron_frown hm, well custom bikes go for 10K so thats no so bad i guess Sep 12 03:33:52 fuck for that price I'll buy google glass and plop it Sep 12 03:33:55 oh Sep 12 03:34:02 I assumed you were talking motorcycle helmet Sep 12 03:34:04 haha Sep 12 03:34:39 I was gonna say 10k?! no shit Sep 12 03:34:46 I got two bikes, both of which were over 10k Sep 12 03:46:03 android apps on chrome os, lolwut Sep 12 03:52:11 time for res/layout-chromeos :) Sep 12 03:52:31 oh lawd Sep 12 03:52:42 Praise the lawd. Sep 12 03:58:03 someone give me new job Sep 12 03:58:14 maybe android on chrome means Sep 12 03:58:21 emulation in windows wont be so utterly shitty Sep 12 03:58:56 g00s: I got to try a http://www.solowheel.eu/ the other day :D Sep 12 03:59:39 JesusFreke: did you crash? Sep 12 03:59:43 cool, carry like breafcase. see captain america's shield should have been like this Sep 12 04:00:19 ron_frown: not really. took me 5 min to be able to ride without holding on, and fell (mostly just stepped off) a couple of times Sep 12 04:00:37 What conditions cause LayoutParams.MATCH_PARENT to not make the view dimensions not match its parent in the layout? Sep 12 04:01:31 ron_frown have you used the Eagle pcb autorouter by any chance ? Sep 12 04:01:44 neg Sep 12 04:03:31 been a loong time. last one i used was orcad Sep 12 04:03:44 at intel we had all our own tools Sep 12 04:04:44 wondering if this takes into account shielding and grounding Sep 12 04:05:49 sqwishy: padding Sep 12 04:08:02 lasserix_: The parent has no padding in this case Sep 12 04:09:03 Nor does the thing that is supposed to fill its parent Sep 12 04:12:56 sqwishy margins of those layout params Sep 12 04:23:54 Any thoughts on handling navigation drawer w/ fragments like this? http://pastie.org/9546892 Sep 12 04:27:29 Seems nice to remove the responsibility from the containing activity to the drawer layout Sep 12 04:45:27 hm for some reason AS isn’t letting me step through the platform code Sep 12 04:45:30 it definitely used to Sep 12 04:45:33 anyone have any ideas? Sep 12 04:46:15 i haven't been happy with my navigation drawer implementations. i pretty much used the template from AS but instead pass pack the ID of the thing chosen; but it still seems like a mess. Sep 12 05:01:18 how to debug android sources in android studio 0.8.2 + ? Sep 12 05:05:15 g00s: yeah i agree that the many ways to do it can be a pain Sep 12 05:05:49 i think im gonna settle on this method because it removes the activity from handling most of the dirty work and instead allows the activity to just indicate what fragments it wants to have in the drawer Sep 12 05:07:34 desmin88: looks like the addNavigationItem method is missing an argument for fargment argumnets Sep 12 05:08:06 and i forgot to add an onitemclicklistener Sep 12 05:08:08 thx Sep 12 05:09:14 also you’re not saving/restoring instancestate Sep 12 05:09:54 thats in the activity Sep 12 05:10:31 i just do it normally via drawerlayout.getdrawertoggle() Sep 12 05:10:54 you need to save and restore instance state Sep 12 05:12:25 create a HashMap and before you replace a fragment call FragmentManager.saveFragmentInstanceState Sep 12 05:13:20 er Sep 12 05:13:36 Sep 12 05:14:00 and when you recreate them, fragment.setInitialSavedState(...); Sep 12 05:14:13 ah Sep 12 05:14:33 also to be truly real you’ll need to make fragmentnavigationitem parcelable Sep 12 05:14:43 so you can persist that state to your activities instance state Sep 12 05:14:54 if you care about that kind of thing Sep 12 05:14:59 what if using setretaininstance Sep 12 05:15:27 that only works for rotation and config changes Sep 12 05:15:27 and when you replace a fragment you remove it from the fragment manager Sep 12 05:15:32 so its not gonna hang around Sep 12 05:15:40 unless you have a reference to it (which would be a watse of memory) Sep 12 05:17:05 oh Sep 12 05:17:16 i see what you meant Sep 12 05:18:11 oh man, this is just terrible. in order to be a BLE observer I have to continuously start and stop scans because android only reports the first scanRecord #%$@!#$@ Sep 12 05:18:29 JacobTabak: thanks for the tip but i think in this case i wont need to do that Sep 12 05:18:40 lucky Sep 12 05:20:38 night all Sep 12 05:36:38 morning Sep 12 05:36:52 Is there a limit in google play on how many apps can you publish ? Sep 12 05:38:29 if you need to ask... Sep 12 05:39:43 if there is, you won't hit it Sep 12 05:40:01 i mean i can't say that for certain Sep 12 05:40:12 are you trying to spam google with app submissions? Sep 12 05:40:40 yes Sep 12 05:42:03 so it's limitless ? Sep 12 05:42:19 up to the point where they realise you're a spammer and shut you down hard Sep 12 05:42:55 sounds legit Sep 12 05:44:38 hmm so if I have 1000 customers and I want to do an app for each of them Sep 12 05:44:53 email them an apk. Sep 12 05:45:00 :| Sep 12 05:45:58 presumably they'll all be the same app, with a different logo and RSS URL Sep 12 05:47:00 yes Sep 12 05:47:55 hmm I can't find any limit in the developer center Sep 12 05:48:56 now we know how android has so many apps ! Sep 12 05:49:25 good morning America Sep 12 05:49:30 :) Sep 12 05:49:59 I know it sucks that's a requirement from my boss at least I have to research the issue Sep 12 05:50:11 I've seen accounts with lots of apps Sep 12 05:50:26 and I can't find any information on the limit Sep 12 05:53:43 Leeds i know what you're thinking ... Sep 12 05:53:54 please put the cyanide down Sep 12 05:54:32 i can't be the only cynical bastard here :) Sep 12 05:55:23 you never know, you may just be. Sep 12 05:57:49 your boss is an idiot Sep 12 05:57:58 don't make 1000 individual apps Sep 12 05:58:14 that would be impressive Sep 12 05:58:24 but why would you make that many? Sep 12 05:58:26 give out 1000 keys that the app can unlock Sep 12 05:58:42 ^ Sep 12 05:58:45 nothing better to do in life ? :) Sep 12 05:58:49 probably boss thinks 1000 different apps means 1000 apps with a different username each etc Sep 12 05:59:02 o! I got interesting thing in test Sep 12 05:59:04 " Only the original thread that created a view hierarchy can touch its views" Sep 12 05:59:09 underling thinks literally Sep 12 05:59:10 assming they have lives... Sep 12 05:59:19 so now underling wants to make 1000 apps Sep 12 05:59:31 that would be impressive. Sep 12 05:59:35 or just a clueless phb Sep 12 05:59:35 yes Sep 12 05:59:53 unless it was a duplicate of the same app with minute difference. I think your applications would be removed. Sep 12 06:00:01 phb? Sep 12 06:00:05 phd? Sep 12 06:00:11 dilbert..pointy haired boss Sep 12 06:00:18 ah Sep 12 06:00:37 no actual answer yet unless that one of Leeds Sep 12 06:00:50 is true I am going to assume there is no limit Sep 12 06:01:04 and no actual policy against that Sep 12 06:01:05 what was the question? Sep 12 06:01:13 :| Sep 12 06:01:20 I don't know... I'd be pretty sure there's no hard limit, but they will, as I said, shut you down hard once they decide you're spamming Sep 12 06:01:34 really hard, I bet. Sep 12 06:01:38 don't spam. Sep 12 06:01:56 is there an automated way to submit and update apps? Sep 12 06:02:03 is would one humanly do this Sep 12 06:02:06 yeah here's is where we get in discussion with my boss Sep 12 06:02:14 on the understanding of what spam is ... Sep 12 06:02:16 meaning, shut down your account, remove your apps, delete your gmail, etc. Sep 12 06:02:34 you should not use any automated system for posting applications. Sep 12 06:02:51 tagrudev is your boss doing this to game the system from a marketing perspective, or he thinks you need this Sep 12 06:03:25 tagrudev also btw, you know that the google play submission process does actually test for duplicate apps Sep 12 06:03:31 what they do, i don't know Sep 12 06:04:23 I'm not sure what's going on here honestly, but it sounds unethical. Sep 12 06:05:33 the thing is I am too low in the hierarchy to actually have an impact on the decision, I got a question and I need to answer it with of course prove of it's truthfulness Sep 12 06:06:04 tagrudev just post a question to Play support then Sep 12 06:06:37 yeah trying to find the contact form, but I am lost in menues :D so many options Sep 12 06:06:48 you may be surprised to know - likely nobody in this channel has tried posting 1000 apps Sep 12 06:06:52 lot of things they have to address. Sep 12 06:07:03 because we're honest developers? Sep 12 06:07:45 boredDev, yeah Sep 12 06:08:06 g00s, nah I was just trying to find out if anyone knows if there is a limit Sep 12 06:08:31 well, i don't know if Play says you cant post more than x apps Sep 12 06:08:38 :) Sep 12 06:08:38 if x is 10, probably OK Sep 12 06:08:43 100, probably OK Sep 12 06:08:44 the limit is 5 if you are spamming. how about that? and infinite if you can manage to make unique interesting applications. Sep 12 06:09:02 :D Sep 12 06:09:05 :) Sep 12 06:09:21 that my friend would cost me my job :D Sep 12 06:09:25 but I will try Sep 12 06:09:43 what would cost you your job? Sep 12 06:09:44 yeah, I think the point is that if you were to, say, publish a small-but-real app once a month for years, there would be no issue... Sep 12 06:10:05 if you publish 50 almost-identical apps per day, you'll get flagged fast Sep 12 06:10:14 really fast. Sep 12 06:10:20 i see somebody had a limit uploading 15 apps per day Sep 12 06:10:22 that's something I can use in reasoning Sep 12 06:10:26 that's Leeds Sep 12 06:10:40 there is no reasoning Sep 12 06:10:50 it's been awhile since I've been here, but I recall Leeds being awesome. Sep 12 06:16:37 oh god, fixing this application is not going to be fun. Sep 12 06:17:09 i’m having a horrible time getting a shadow implementation to work on a non-static method, anyone help? Sep 12 06:17:15 robolectric Sep 12 06:17:42 why did i read that as roboeclectic Sep 12 06:19:14 i'm just moving tests to normal android classes :D Sep 12 06:21:30 I'm trying to apply new advertisements to a game I haven't looked at the code of in over 6 months Sep 12 06:22:14 but I need to move a bunch of stuff, because the last time I did something with it, I moved everything down to put the banner on the top hoping that was the reason I lost advertising. Sep 12 06:22:44 if you are bored you have nothing else to do, may as well :) Sep 12 06:23:27 well, my gf has an idea for an app, and she'd like me to make it. so, I figured if I was going to be working in eclipse again, I might as well try to start making money off of this app I had all but abandoned. Sep 12 06:24:09 boredDev: libgdx, gradle Sep 12 06:24:28 looks promising Sep 12 06:24:30 What's that? Sep 12 06:24:34 which one Sep 12 06:24:44 Yes Sep 12 06:24:48 http://libgdx.badlogicgames.com/ Sep 12 06:25:24 it works on ios too Sep 12 06:25:25 afaik Sep 12 06:25:32 Bad logic, that's the guy that quote the book that I got some of my structure from Sep 12 06:25:47 Wrote not quote Sep 12 06:26:48 Not my game structure. The structure I use to handle canvas and threads, and done other features, so I can focus on game programming, and not getting the system to work. Sep 12 06:28:16 I'll click on the link when I get back to my computer. Sep 12 06:29:44 how can I get the title in center and logo to far right, as I though I defined it in the xml ? http://imgbox.com/rXXnrKMP Sep 12 06:29:52 I actually plan to use unity, or gamemaker for future games, but my gf wants an application that would be easier to do in java. Testing is easier in multiplatform softwares Sep 12 06:29:55 and xml: https://gist.github.com/SASDOE/d14763e8357759775745 Sep 12 06:51:51 No one? I have tried Google obviously, can't seem to find an answer. My google-fu could be low, but still. Sep 12 06:52:29 custom actionbar layout ? Sep 12 06:52:38 Yes. Sep 12 06:53:14 I got that working, not the layout though Sep 12 06:53:29 why do you use linear layout? Sep 12 06:54:04 Hi I have this http://pastebin.com/MadxWZZ6 http://pastebin.com/M8KgAs5q Sep 12 06:54:16 why is your TV set to width=wrap? Sep 12 06:54:44 How can I customize the date and time now? I want the date to be in yyyy-mm-dd and time in hh:mm:ss Sep 12 06:54:48 gordon_: tried both Sep 12 06:55:31 niru, http://developer.android.com/reference/java/text/SimpleDateFormat.html Sep 12 06:55:32 it is linear right now actually Sep 12 06:55:33 is it streched on whole phone ? Sep 12 06:55:47 I mena action bar ? did you set background to it Sep 12 06:55:53 SASDOE, why is your TV set to width=wrap? Sep 12 06:55:54 it MUST work in relative one Sep 12 06:56:13 gordon_: yes I have set a background. Sep 12 06:56:19 ravilov: what tv? Sep 12 06:56:29 textview dude Sep 12 06:56:49 SASDOE: and ? Sep 12 06:56:53 :) No idea. Sep 12 06:57:08 and I get the desired background (full white) Sep 12 06:57:22 align_parentRight="true" ? Sep 12 06:57:29 so you come up with a broken layout and then wonder why it's not working as expected? lol Sep 12 06:57:40 work on your layout, your widths and heights seem all weird Sep 12 06:58:39 ravilov: you mean after obtaining the date and time from the DatePickerDialog and TimerPickerDialog I have to use simpledateformat to format it. I want to select the date and time from the widget and simpledateFormat will set it to default without user intervention Sep 12 06:59:05 unkown attribute align_parentRight Sep 12 06:59:26 ravilov: I am trying, but without much success. What should the tv width be? Sep 12 06:59:37 niru, I have no idea what you mean or need Sep 12 07:00:01 SASDOE, everything should be wrap_content except tv width Sep 12 07:00:56 Which should have what? Not match_parent surely. Sep 12 07:00:57 why not? Sep 12 07:01:13 proper combination of widths, heights and weights can get you any kind of layout Sep 12 07:01:28 Well it'll take up all of the width.. If I understand "match_parent" right. Sep 12 07:01:35 well you don't Sep 12 07:01:45 that's why I mentioned weight too Sep 12 07:01:51 did you even try? Sep 12 07:01:53 When I try match_parent the logo disappears. Sep 12 07:02:03 ok, now bring weights into play Sep 12 07:02:42 setting weights of 1 to all? I tried that as well, the icons become weirdly big. Sep 12 07:02:55 .... why to all?! Sep 12 07:02:57 dude Sep 12 07:03:22 do I really have to fire up eclipse and do your layout for you? :p Sep 12 07:03:23 Ok that is stupid and I get why. Sep 12 07:03:42 No don't I need to learn! But thanks for your patience Sep 12 07:12:02 playing with weights messes vertical alignement. Plus if I get weights, I should set max weight on tv. But it stays to the left, and if I increase the nav_drawer icon, it moves to the right, and shifts up as well. Sep 12 07:16:32 ugh, I forgot how long this main java class was. little over 600 lines. and I feel like that might be a small number compared to some. Sep 12 07:26:49 Gaaaaaa got it. Thanks ravilov and gordon_ Sep 12 07:31:51 SASDOE, too bad, I did too :p http://pastebin.com/VtF7hJTn Sep 12 07:33:12 Haha cheers! At least I got to learn a bit Sep 12 07:40:28 hey niru hows the project coming along? Sep 12 07:41:22 its picking up Sep 12 07:41:29 how are you? Sep 12 07:43:33 After 3 months of Android studio, the ide is a bit slow. Any tips to make it faster as post installation? I'm on os x Sep 12 07:44:17 welp i figured out my robolectring thing Sep 12 07:48:33 good Sep 12 07:48:46 gdrc you can enable caching Sep 12 07:48:52 gdrc, reformat, reinstall everything, switch to eclipse Sep 12 07:48:53 * ravilov hides Sep 12 07:49:05 ha ravilov its insane Sep 12 07:49:08 install intellij Sep 12 07:49:10 not eclipse Sep 12 07:49:16 if you go that route Sep 12 07:49:44 ravliov mentions using eclipse in the same way a 60 year old man still uses his cell phone from 1990 Sep 12 07:49:49 :) Sep 12 07:49:52 dunno, I've had this same eclipse installation for about 2-3 years now, I have yet to notice any kind of slowdown Sep 12 07:50:07 lasserix_, might be crazy but WORKS! Sep 12 07:50:09 ravliov eclipse is okay, and i used it for 2 years but intellij is better Sep 12 07:50:31 and faster. Sep 12 07:50:33 do I have to tell you too about tab complete? :p Sep 12 07:50:41 what are you talking about? Sep 12 07:50:45 that is in intellij too Sep 12 07:50:48 lol Sep 12 07:50:55 you can't seem to spell my nick right Sep 12 07:51:02 yeah yeah i like typing out names wooo Sep 12 07:51:11 ok, whatever works for you Sep 12 07:51:13 i dont save contacts, or passwords Sep 12 07:51:18 i like typing stuff out ravilov Sep 12 07:51:21 ;p Sep 12 07:51:24 ah, I see Sep 12 07:51:30 you're of the extra paranoid kind :p Sep 12 07:51:41 * ravilov also never saves any passwords, but offline contacts are ok Sep 12 07:51:52 nah just haven't used command line enough to be in the habit of always tabbing for autocomplete Sep 12 07:52:05 well you need to fix that then :p Sep 12 07:52:11 you are going to get a lot of hate towards eclipse .. eclipse wasn't bad while i was still using it but after using intelliJ / Android studio i cant see myself go back to eclipse EVER Sep 12 07:52:14 from now on do EVERYTHING in commandline Sep 12 07:52:37 lemonxah, I've noticed, I don't really care, I'll still keep pushing ;) Sep 12 07:53:04 I've tried AS (which is intellij based), I'd rather not go back to that thing ever again Sep 12 07:53:13 yeah just that like old man whose afraid to upgrade his phone ;p Sep 12 07:53:15 do yourself a favour though .. dont trash your eclipse but try out intelliJ Sep 12 07:53:17 it's heavy, bloated, slow, and likes to think for me too much Sep 12 07:53:24 we get it Sep 12 07:53:25 you’re a rebel Sep 12 07:53:31 you’re old school Sep 12 07:53:33 you still use vim Sep 12 07:53:35 a deprecated rebel Sep 12 07:53:36 Sep 12 07:53:40 ravilov, what was it from that that has put you off? Sep 12 07:53:49 the fact that it is mainstream Sep 12 07:54:01 JacobTabak, i still use vim :) but not for development Sep 12 07:54:02 lasserix_, has nothing to do with oldness or being afraid to switch, it just simply DOESN'T WORK for me, as hard as that might be to comprehend for you guys here Sep 12 07:54:18 JacobTabak, don't be a jerk Sep 12 07:54:19 suuuurrrreeeee Sep 12 07:54:29 might it have been your gradle setup that didn't work for you? Sep 12 07:54:46 cause as an ide intelliJ kicks eclipse ass every time Sep 12 07:54:48 ^^ Sep 12 07:55:03 lemonxah, it takes literally over a minute to even start up to the point it loads all my windows/tabs from last time Sep 12 07:55:04 but the build tools does change between eclipse and intelliJ Sep 12 07:55:22 just after witnessing the #1 eclipse apologist (kirill grouchnikov) switch, i am done having the debate lol Sep 12 07:55:41 :) Sep 12 07:55:52 like I said at least a bajillion times, I really don't care to switch to something just because it's NEWER if the OLDER works flawlessly for me and I see literally no benefits (that I personally could/would use) in the newer Sep 12 07:55:52 ravilov, i have a beast of a machine so i dont notice BUT on eclipse it would crash / use 100% cpu on java process every hour so i have to restart it Sep 12 07:56:06 my AS has been running nonstop(i dont shutdown my work machine) Sep 12 07:56:13 its been .. let me check Sep 12 07:56:16 JacobTabak, no one asked you to participate Sep 12 07:56:26 oh but now i want to Sep 12 07:56:27 uptime Sep 12 07:56:27 09:56:53 up 32 days, 45 min, 3 users, load average: 0,59, 0,57, 0,52 Sep 12 07:56:31 can you use gradle on eclipse? Sep 12 07:56:34 yes Sep 12 07:56:43 32 days and counting .. and AS is still responsive still working Sep 12 07:56:44 but I don't care to Sep 12 07:56:59 ah ravilov so gradle might be the issue then not the ide Sep 12 07:57:12 so do you have a nice setup with different flavors and dependency injection based on build type? Sep 12 07:57:14 well it's entirely possible that ravilov has a shitty slow HDD with 2GB of RAM Sep 12 07:57:20 or are those tools that dont work for you either Sep 12 07:57:21 which would explain why IDEA starts up in 1 minute Sep 12 07:57:25 instead of standard 5-10s Sep 12 07:57:28 don't really care, I never had to tweak anything about the build process on eclipse Sep 12 07:57:36 Mavrik, I have an i5 with 8GB RAM and an SSD Sep 12 07:57:43 never had to build another flavor ? Sep 12 07:57:52 or a beta build? Sep 12 07:57:57 no Sep 12 07:58:01 but you will have to have separate build processes one for CI and one for the IDE Sep 12 07:58:19 and also flavors ... oh JacobTabak mentioned it Sep 12 07:58:25 if you were to send me one of your projects, would i be able to open it in 5 minutes? Sep 12 07:58:40 look, I know you guys are all hot and bothered about all this AS/IJ/gradle stuff, but just accept it already - it does literally NOTHING for me, with my setup and my workload what I have works for me Sep 12 07:58:41 or would it take 2 hours for me to resolve all the library dependencies Sep 12 07:58:45 EOD Sep 12 07:58:48 cough cough -*- ravilov hides cough cough Sep 12 07:58:52 we have 8 flavours for bb10 nokiax .. release debug and beta for all and then a standard one too Sep 12 07:59:06 NO you will ACCEPT Sep 12 07:59:12 you must ACCEPT Sep 12 07:59:20 love the intellij be the intellij Sep 12 07:59:21 we shall assimilate him Sep 12 07:59:23 resistance is futile? Sep 12 07:59:30 no im not that type of person Sep 12 07:59:32 #idewars Sep 12 07:59:35 thats a hashtag Sep 12 07:59:37 not an irc channel Sep 12 07:59:38 haha Sep 12 07:59:41 lasserix_, I prefer making love to humans if you don't mind ;) Sep 12 08:00:17 Eclipse Is Slavery Android Studio Is Peace Gradle is Strength Sep 12 08:00:28 you should totally make this into a banner Sep 12 08:01:05 oh, also add "Google Brings Tranquility" Sep 12 08:03:09 exit Sep 12 08:05:51 hey guys maybe we are all wrong and should go back to eclipse without gradle .. AS is so mainstream Sep 12 08:06:03 lol wat Sep 12 08:06:37 Why would you want to go back to something that has a 1h boot time and 2000ms keypress delay? Sep 12 08:07:01 heh ,, take it you didn't follow the conversation a little earlier :) Sep 12 08:07:08 No Sep 12 08:07:21 :P Sep 12 08:07:55 is it possible to get resource id from textview drawable? Sep 12 08:08:25 in that case let me explain :) i was being facetious Sep 12 08:08:50 from Sep 12 08:09:03 textView.setCompoundDrawables(drawable, null, null, null); Sep 12 08:09:07 to be exact Sep 12 08:09:20 nope Sep 12 08:10:01 a way there is not Sep 12 08:10:54 wanted to find solution, found master yoda Sep 12 08:13:46 i hate it when the log stops working Sep 12 08:14:08 and i have to restart adb / disconnect reconnect phone etc Sep 12 08:14:10 zzz Sep 12 08:14:29 i have not had this issue when only having 1 IDE open Sep 12 08:14:43 i always have … way more than 1 Sep 12 08:14:49 but as soon as there are multiple instances of IDEs open i get this Sep 12 08:15:19 yeah that is very annoying i wish there was a way to stop the other instances of intelliJ from opening the android adb Sep 12 08:15:26 like there has to be a master one Sep 12 08:15:51 cause even intelliJ steals AS's claim on the adb Sep 12 08:16:03 so i cant have AS open and library projects at the same time Sep 12 08:16:14 a bit annoying i feel your frustration :( Sep 12 08:16:18 i can always open terminal and type adb logcat Sep 12 08:16:24 how come the idea can’t do that Sep 12 08:16:34 ide* Sep 12 08:17:28 use colored logcat script then :) Sep 12 08:17:46 in the ide? Sep 12 08:18:01 no, from terminal Sep 12 08:18:25 had that script somewhere... Sep 12 08:18:43 yeah its not as nice cause in the IDE you can click on the exception and it will take you to the line in question Sep 12 08:18:46 https://github.com/marshall/logcat-color Sep 12 08:19:00 cant do that if you run your own logcat Sep 12 08:19:02 that's also true Sep 12 08:19:31 I guess you can terminate adb in intellij so it wont steal connection from AS Sep 12 08:19:45 how? Sep 12 08:19:55 been looking for that Sep 12 08:20:02 not been looking very hard though Sep 12 08:20:33 tools -> android -> enable adb integration? Sep 12 08:21:14 * lemonxah is now switching it off inside of intellij Sep 12 08:49:10 would be really nice if we could run adb in a window in Android Studio Sep 12 08:49:28 the shell I mean Sep 12 08:51:14 argh i got to go to work in 5 hours and need to squeeze in some sleep but coffee is sooo good what's a coder to do Sep 12 08:51:53 snowpong: cygwin Sep 12 08:59:18 snowpong: there is a terminal option ? Sep 12 08:59:32 there is a terminal in AS you could run it in there Sep 12 08:59:37 yes what Mrdarknezz said Sep 12 08:59:46 there is? Sep 12 09:00:04 snowpong: yes i'm writing through it right now using irssi Sep 12 09:02:28 cool i have a neat dependency injection technique for context Sep 12 09:03:01 have a class with a static method that returns a singleton by using an interface on the application class which returns the context on a per use basis Sep 12 09:03:54 lasserix_: Yeah I've been doing that too for a while Sep 12 09:03:57 ahh nm i am too tired and stupid Sep 12 09:04:01 Mrdarknezz: thanks - found some docs here http://www.jetbrains.com/idea/webhelp/working-with-embedded-local-terminal.html Sep 12 09:05:20 Mrdarknezz: guess I can re-purpose that to open git bash or something with ADB paths properly setup - thanks! Sep 12 09:06:46 snowpong: When I'm on windows I usually start a linux vbox that i develop on Sep 12 09:07:16 snowpong: Haven't done that developing for android though Sep 12 09:07:28 http://blog.codeleak.pl/2014/02/git-bash-in-intellij-idea-13-on-windows.html Sep 12 09:07:56 snowpong: It's just not the same :/ Sep 12 09:16:21 just use cygwin Sep 12 09:16:29 best of both worlds Sep 12 09:16:51 man ffs Sep 12 09:17:04 is there ANY documentation on available options / calls in android-gradle plugin ANYWHERE?! Sep 12 09:17:48 lasserix_: I prefer git bash Sep 12 09:18:41 because? Sep 12 09:18:54 git bash is cygwin. Sep 12 09:19:12 hehe Sep 12 09:19:21 oh :3 Sep 12 09:28:42 i was devastated to find that git has little to do with github Sep 12 09:30:05 O.o Sep 12 09:30:21 Github is awesome, totally fucks up the whole point of having a distributed VCS :P Sep 12 09:30:36 Mrdarknezz: actually, if you're using Git Bash from msysGit then it is not cygwin, it is mingw - more here https://github.com/msysgit/msysgit/wiki Sep 12 09:30:42 Mavrik, it's msys, not cygwin Sep 12 09:30:58 but for normal usage it feels like cygwin Sep 12 09:31:11 ah, yeah, msys > cygwin for most cases anyway :) Sep 12 09:31:11 it's better than cygwin Sep 12 09:31:27 msys is better for all cases Sep 12 09:31:48 cygwin is an emulation layer, msys is a native port Sep 12 09:39:29 Anyone managed to get systrace to actualy trace anything? I've added gfx and view tags, mounted /sys/kernel/debug but my trace.html has no trace data. Sep 12 09:40:30 Mavrik, and no, github doesn't fuck up the point of dvcs Sep 12 09:41:02 if you say so :) Sep 12 09:41:16 just because you're a distributed system doesn't mean there cannot be a canonical source Sep 12 10:03:17 alright i have an activity with two fragments as tabs. when i start the app, tab one shows. when i switch to tab two, then back to tab one and finally again to tab two i get an error indicating views with duplicate id's. im not using the id anywhere else. pastebin here: http://pastebin.com/4BwMpYCm any ideas? Sep 12 10:10:16 aaearon: whats the other fragment? Sep 12 10:10:33 header_list_view is the culprit make sure if you have two lists they do not use the same header id Sep 12 10:11:09 a listfragment that definitely doesnt use id/header_list_view Sep 12 10:13:37 it might use one you dont know about Sep 12 10:13:41 so just change the one you do use Sep 12 10:13:55 but the problem is probably deeper Sep 12 10:14:02 i bet you are adding the first fragment again instead of finding it Sep 12 10:14:05 and reusing it Sep 12 10:14:11 even if i change id/header_list_view to id/header_totally_random_number Sep 12 10:14:23 hi guise Sep 12 10:14:25 my tab listener excerpt is at the bottom Sep 12 10:15:10 yeah so you are adding the first fragment twice Sep 12 10:15:13 instead of reusing it Sep 12 10:15:40 post the code where you instatiate the fragments from your activity Sep 12 10:16:00 so I've drawn a disk like this http://pastie.org/9547666 Sep 12 10:16:03 ie where do = new Frag Sep 12 10:16:25 how would I use ObjectAnimator to play with its radius? (i want the circle to shrink, grow) Sep 12 10:17:04 translationX seems to....not do what I want Sep 12 10:17:07 http://pastebin.com/YHYnfgBN ok heres the relavent part of the activity lasserix_ http://pastebin.com/YHYnfgBN Sep 12 10:17:19 nor does scaleX do it, scaleX blows it up horizontally of course Sep 12 10:17:22 it becomes a rectangle Sep 12 10:18:21 Sicp do you have to add getRadius? Sep 12 10:18:28 for the objectanimator to function Sep 12 10:18:38 just animate "setRadius" Sep 12 10:18:47 you can use that as a property/ Sep 12 10:18:50 ...I dont think so? Sep 12 10:18:55 http://developer.android.com/guide/topics/graphics/prop-animation.html#views Sep 12 10:19:26 just change the radius with objectanimator Sep 12 10:19:58 ObjectAnimator.ofFloat(mDrawDisk, "setRadius", start, end) Sep 12 10:19:59 how? that's the only way I've used objectanimator so far, to do x, y, scaleX, scaleY, etc. with it Sep 12 10:20:06 whattt that works?! Sep 12 10:20:10 how would it know man Sep 12 10:20:11 err raduis Sep 12 10:20:14 reflect Sep 12 10:20:18 reflection i believe Sep 12 10:20:24 but yeah that's why it is a "object" animator Sep 12 10:21:21 nah that doesnt do anything Sep 12 10:23:05 oh....hmm I didnt get set start Sep 12 10:23:16 but regardless, it would have to do whatever it does, to the number I gave as end Sep 12 10:24:33 ahh Sep 12 10:24:35 you have to call Sep 12 10:24:37 setParameterName Sep 12 10:25:15 err Sep 12 10:25:25 PropertyName Sep 12 10:25:31 ObjectAnimator can animate anything.. If you pass it "radius" as the property, it'll call setRadius Sep 12 10:26:48 yeah Sep 12 10:26:52 see it is supposed to work ;p Sep 12 10:27:02 SimonVT: do you have to define getRadius too? Sep 12 10:27:04 lol yea seems sensible, but it doesnt affect it at all Sep 12 10:27:23 I have to do getRadius, so that start can be getRadius and end can be getRadius + whatever I want to add or subtract Sep 12 10:27:25 Shouldn't have to, unless you only pass it 1 value Sep 12 10:30:30 setRadius is functional as the disk is being drawn at start Sep 12 10:31:48 hmm Sep 12 10:35:16 what if it needs redraw or something Sep 12 10:35:33 *or something* Sep 12 10:35:53 stop animating invalidate restart animating? Sep 12 10:36:03 ObjectAnimator just calls the method, what happens after that is up to the implementation Sep 12 10:36:27 Is there a way to specify a start offset? Sep 12 10:36:34 it gets added to the set of animator, and they all run together, everything's running along with it Sep 12 10:37:22 start offset you set it when you create the disk Sep 12 10:37:35 with none other than setRadius Sep 12 10:38:26 I'll try on another object Sep 12 10:39:21 it worked on my circles.. Sep 12 10:39:25 tha hell... Sep 12 10:39:31 black magic is afoot Sep 12 10:41:08 it's the exact same implementation as DrawDisk, only DrawCircle's Paint style is Stroke Sep 12 10:41:38 Sicp debug it and see if the radius is changing at least Sep 12 10:41:56 yea I probably shouldnt have said the above and just did that before Sep 12 10:42:07 #roadtodecentprogramming Sep 12 10:42:31 black magic = sleep deprivation Sep 12 10:43:01 nah its just general ignorance of the craft itself :P Sep 12 10:43:20 I've heard "It's not rocket science god damn it!" like a million times in the past 3 years Sep 12 10:48:03 hi need some advice with reloading activities Sep 12 10:48:47 when i rotate my device the current activity gets reloaded. Is this common or should i prevent it from reloading the activity Sep 12 10:49:08 because my app gets data from json and thus this will also be redone Sep 12 10:49:24 I called getRadius on the object right after the call to animations.start() radius is still the same Sep 12 10:50:47 first it needed ofInt and not ofFloat since the value I was passing was an int, if it's an int and you call ofFloat it doesnt get passed Sep 12 10:50:48 BulleTime, this is exactly the intended behavior, it's all described in detail in the docs Sep 12 10:51:13 by default your activity gets recreated on any config changes Sep 12 10:51:51 okay so im using the support v4 fragments but this will crash if i rotate my device to fast Sep 12 10:52:24 what if you slowly tilt it Sep 12 10:52:24 like when i rotate it two times Sep 12 10:52:32 then it works Sep 12 10:52:44 oh I asked that in joke Sep 12 10:52:46 if i wait untill its reloaded it works well Sep 12 10:53:03 then kill things in onPause Sep 12 10:53:10 "crashed" means there's a trace dump in the log, tried looking at it? Sep 12 10:53:13 yeah i toughts so Sep 12 10:53:34 yeah i looked at it thats why i know its about the fragment manager Sep 12 10:57:01 . Sep 12 10:57:44 there's no tutorial on Filters http://developer.android.com/reference/android/widget/Filter.html ? Sep 12 10:57:52 tut on android documentation i mean Sep 12 10:57:59 are filters meant to use in conjunction with adapters only ? trying to understand what all usecases can it have Sep 12 11:13:33 that animation needed invalidate Sep 12 11:13:55 it worked on the circle BEFORE the circle appeared on the screen with .setVisibility (something I do in the code) Sep 12 11:14:03 pro, bro Sep 12 11:17:35 Hi, is it possible to know if a print job was successfully printed with PrintManager? Sep 12 11:27:26 When I provide Spanish translation in the store listing, for es-es, do I also need to add es-us and es-latin america? Sep 12 11:27:42 or will people with these language codes get the es-es served automatically or will it default to english? Sep 12 11:34:56 Okay, so how do I add a header to all my retrofit requests (oauth token)? Sep 12 11:34:56 platzhirsch: if you provide values-es, all dialects of es will receive that unless you specify another resource explicitly Sep 12 11:35:07 danijoo: perfect, thanks Sep 12 11:35:29 marrrk: have you read the documentation Sep 12 11:35:31 ? Sep 12 11:36:15 danijoo: Good point. Sep 12 11:37:29 but let me give you a hint: OkHttpClient Sep 12 11:38:01 It looks more like RequestInterceptor to me Sep 12 11:38:26 Yep, that'd be it Sep 12 11:38:42 doesnt retrofit also support annotations? Sep 12 11:38:50 something like @Header(......) Sep 12 11:38:59 in the service methods. Sep 12 11:39:00 not sure Sep 12 11:39:45 You'd probably need to know that at compile time Sep 12 11:39:46 yep it does Sep 12 11:40:04 SimonVT: no. you can define them in the api methods Sep 12 11:40:36 oh okay no you cant. Sep 12 11:40:52 then go for the interceptor Sep 12 11:41:14 I am Sep 12 11:41:14 Seems like you can Sep 12 11:41:25 But that would be redundant Sep 12 11:41:27 But something like an oauth header, you'd probably want to add that to every request anyway Sep 12 11:41:30 to add that header thing to everything Sep 12 11:41:35 Exactly Sep 12 11:43:30 there should be a test account option for google play store.. cant count how many adqweqe@asdasd.de accounts I already created on emulators just to test google play services Sep 12 12:06:10 is there any build in function in android to set decimal seperators depending on language? Sep 12 12:06:41 for example 1000000.10d would be 1.000.000,10 in de_DE and 1,000,000.10 in en_US Sep 12 12:09:03 danijoo: maybe this http://developer.android.com/reference/java/text/DecimalFormatSymbols.html can help you Sep 12 12:09:43 sounds worth a look. thank you Sep 12 12:10:36 and then I would use DecimalFormat Sep 12 12:10:43 How do I set fill_parent to a view programatically? Sep 12 12:11:00 danijoo it should do that automaticially Sep 12 12:11:12 you would only need to change that if you didn't want it to use the current locale Sep 12 12:12:47 is DecimalFormat also captable of removing trailing 0s ? Sep 12 12:13:09 oh well. nvm. i just gonna read :p Sep 12 12:13:26 probably if you use # Sep 12 12:13:28 hm, anyone familiar with support fragments? i use SherlockFragment Sep 12 12:14:38 but when i fast rotate the device (so the activity cant initialize ) then fragmentManager.comit fails Sep 12 12:19:06 BulleTime you described what was wrong the first time, spent 1.4 hours away and now back with nothing new! Sep 12 12:20:06 well Sicp i was looking for someone who knows the issue Sep 12 12:20:21 1.4 hours still on the same issue man Sep 12 12:20:23 as far as i can see its a bug in the support library Sep 12 12:20:35 you wish Sep 12 12:20:52 yes ive tried 4 different solutions but not any works Sep 12 12:21:16 so the library has a bug that when you switch orientation and you have fragments, everything crashes Sep 12 12:21:33 must've slipped before production Sep 12 12:22:25 maybe show some code.. :/ Sep 12 12:22:54 also whats the point in using SherlockFragments these days? its all in the support libs Sep 12 12:25:06 Sicp the actual output is Sep 12 12:25:07 an not perform this action after onSaveInstanceState Sep 12 12:25:31 on the fragmentManager.commit() Sep 12 12:25:45 then it probably means that it knows its going to run into null at such a stage, and wont do it to prevent you the pain Sep 12 12:26:02 BulleTime: that does not sound like a bug in support lib. it sounds like you have an error in your code Sep 12 12:27:11 danijoo i use the fragments like it should be used, there's not much that could go wrong Sep 12 12:28:09 everything is wrong but your code Sep 12 12:28:16 haha, like I do sometimes :P Sep 12 12:28:25 BulleTime: I cant tell because you still didnt show us some code :) Sep 12 12:28:43 danijoo i was just about to show some Sep 12 12:32:23 ok so this is my main activity: Sep 12 12:32:24 http://pastebin.com/86x4P21h Sep 12 12:32:32 and my fragment: Sep 12 12:32:33 http://pastebin.com/qTCjmuvG Sep 12 12:32:45 alright hoping this is not bad ettiquite but already typed it out on SO: http://stackoverflow.com/questions/25807332/crash-when-returning-to-fragment-as-a-tab-view-with-same-id Sep 12 12:33:07 do i somehow need to 'stash' the view from oncreateview in a bundle then return it? Sep 12 12:33:12 the problem occurs on line 152 of main activity Sep 12 12:34:13 oh wow i wont debug this. sorry.. to much boilerplate Sep 12 12:58:41 danijoo : to much crap :P ? Sep 12 12:58:50 is there a text-overflow ellipsis equivalent in Android? Sep 12 12:59:00 yeah but its only about the fragments not about the json etc. Sep 12 12:59:00 too much not errorrelated code Sep 12 13:38:47 GreenDao users, how do you manage database migration? Sep 12 13:39:19 extend DaoMaster.OpenHelper and override onUpgrade Sep 12 13:40:10 Then just call MyDao.createTable(db, true) Sep 12 13:40:50 jaynewstrom: when you generate new database with greendao generator, your onUpgrade implementation is lost, right? Sep 12 13:41:34 no Sep 12 13:47:16 jaynewstrom: why no? new DaoMaster.java is created an the old one (where you overrided onUpgrade) is deleted Sep 12 13:47:17 anyone know of an infinity listview that when you get to the bottom you can push more items to it Sep 12 13:47:24 sorta like a reveresed pull to refresh Sep 12 13:49:01 gdrc: use the overriden version of DaoMaster.OpenHelper to open the database. DaoMaster get's generated every time. but your custom subclass will not Sep 12 13:49:42 Oh, that's correct. Thanks Sep 12 13:50:40 Mrdarknezz: You'd just handle that in your adapter Sep 12 13:52:40 SimonVT: Yeah but I want that iphone patented rubber animation when you get to the bottom and wait for it to load Sep 12 13:53:19 Hi, I want to place a chronometer widget in the actionbar, is it possible to access actionbar-items without using Menu.findItem ? Sep 12 13:54:07 lmbd: whats wrong with findItem Sep 12 13:55:56 so how pass the chronometer widget through findItem or assign it like this if the chronometer is placed in a normal view : mChronometer = (Chronometer) this.findViewById(R.id.running_time); ? Sep 12 13:56:45 you might want to look into custom actionbar layouts Sep 12 13:58:32 and you also might check out it Window.FEATURE_INDETERMINATE_PROGRESS isnt what you really want Sep 12 13:58:46 http://stackoverflow.com/questions/9157504/put-a-progressbar-on-actionbar Sep 12 13:59:54 not really, I want to place a "text clock" widget in the actionbar Sep 12 14:00:03 to show the elapsed time Sep 12 14:00:21 i have a solution where i placed a textview in the actionbar and it worked Sep 12 14:00:54 but i want it "the clean" way and transform this to the chronometer widget Sep 12 14:01:54 lmbd: you can set any layout in the actionbar by inflating it and call actionBar.setCustomView(view); Sep 12 14:02:37 + actionBar.setDisplayShowCustomEnabled() Sep 12 14:06:06 so if im only worried about honeycomb and above, i can use android.app.Fragment instead of android.app.v4.support.Fragment yea? Sep 12 14:08:28 good morning everyone Sep 12 14:10:00 MikeWallaceDev: Hello Sep 12 14:29:54 even though i know what the picture in the topic is Sep 12 14:30:02 i can't help but click it everytime i join this channel Sep 12 14:30:09 power of 'img' in a url Sep 12 14:33:21 at least you know then :p Sep 12 14:34:16 aaearon: I think ViewPager also requires supportfrags on honycomb + Sep 12 14:34:37 hi, i need some advise for my app. I use rest to connect to my drupal site. The login part goes well but am i forced to login every time the avtivity is recrated ? Sep 12 14:35:10 im not that good in android but is there any way to save data between the pauze resume of activities ? Sep 12 14:36:02 onSavedInstanceState Sep 12 14:36:06 BulleTime: Typically you would do in in onSaveInstanceState in a bundle you would return Sep 12 14:36:14 er, not return, but put data in the bundle Sep 12 14:38:06 in the onCreate(Bundle savedInstanceState) method of the Activity, you would check to see if the bundle is null. If it isn't, it would be safe to assume there's data there from before a pause Sep 12 14:38:29 Ironthighs: hell no Sep 12 14:38:42 the opposite. check if instanceState is null or not Sep 12 14:39:13 I'm sorry. Is that not what I said? Sep 12 14:39:14 damijoo why not check the bundle ? Sep 12 14:39:42 BulleTime: You can NEVER be sure savedInstanceState != null Sep 12 14:39:46 how do i set a maven plugin property? Sep 12 14:39:49 ooh Sep 12 14:39:49 ok Sep 12 14:40:34 specifically failOnConflictingLayouts Sep 12 14:40:57 danijoo but if i would save some data inside it and i would check if some specific data is present? Sep 12 14:41:31 not check if its null or not but if it contains my session basically Sep 12 14:41:37 check if instanceState != null. if yes, there is the data you put in. if not, there is no old state to resume Sep 12 14:41:42 thats all. Sep 12 14:42:28 That's so weird. I've never seen anything about instanceState when I've looked up how to save/recreate the activity data Sep 12 14:42:28 if onSaveInstanceState() always puts your session in it, you can be sure it is in it if there is an instanceState Sep 12 14:43:48 hhm im not sure about the difference of instanceState and the bundle savedInstanceState (from onCreate) Sep 12 14:43:57 there is no Sep 12 14:44:27 haha ;) Sep 12 14:44:33 i thought so lol Sep 12 14:44:45 you save a bundle in onSaveInstanceState Sep 12 14:44:56 that one gets saved for you (android handles that) Sep 12 14:45:10 and if a recreation occures, the same bundle gets passed to onResuteInstanceState AND onCreate Sep 12 14:45:34 resute = restore Sep 12 14:45:59 I'm sorry, danijoo, but it seems here on the android documentation they recommend seeing if the savedInstanceState bundle is not null too. http://developer.android.com/training/basics/activity-lifecycle/recreating.html Sep 12 14:46:29 Ironthighs but the bundle could not have the data im looking for ? Sep 12 14:46:30 Ironthighs: thats what I said. Sep 12 14:46:51 It is also what I said, to which you responded "hell no" Sep 12 14:47:02 maybe I got you wrong. I thought you said he should check if the IntentBundle is null and if this is the case, he can assume instanceState is not null Sep 12 14:47:04 Have a look at SharedPreferences Sep 12 14:47:08 and http://developer.android.com/guide/topics/data/data-storage.html Sep 12 14:47:20 Oh, I said savedInstanceState Sep 12 14:47:49 well, then we just talked across purposes :) Sep 12 14:47:57 and meant the same Sep 12 14:47:57 Anyways, not confused anymore. Sep 12 14:48:01 yeah ^^ Sep 12 14:48:43 lut4rp: SharedPref to save the state of activities? O.o Sep 12 14:50:48 danijoo, From what I understand they want to persist some sort of login token Sep 12 14:51:11 lut4rp: yeah but only when activity is paused i think Sep 12 14:51:18 at least thats what he said Sep 12 14:51:25 Okay, then I'm not sure :) Apologies Sep 12 14:51:40 Yes, then the instance bundle works Sep 12 14:56:26 But I agree that he might also consider to store it more permanent so user does not have to login every time he opens the app Sep 12 14:56:44 then sharedpreferences would become an option and instancestate wouldnt be neccessary at all. Sep 12 14:57:15 but thats a design choice he has to make :) Sep 12 14:58:05 anyone here ever mucked around with the virtual box version of android? Sep 12 14:59:20 http://www.genymotion.com/ Sep 12 14:59:22 screwsss: ^ Sep 12 15:00:14 Hi, how do i get commercials into an app? Sep 12 15:00:40 hey, if you have an app on the Play Store and you distribute the same signed apk file. Do you still need unknown sources to install it? Sep 12 15:01:10 I'm having a git issue with Android Studio. Is this the place to help? Sep 12 15:01:14 err for help? Sep 12 15:01:46 whats your prob? Sep 12 15:02:03 kirby561: yes. Sep 12 15:02:12 ah. Thanks danijoo Sep 12 15:02:14 Its not pushing to my repo Sep 12 15:02:27 Hangs at "pushing" Sep 12 15:02:43 If I use TortoiseGit, Git Bash etc it works. Sep 12 15:02:45 danijoo: im not really looking to test apps atm Sep 12 15:02:56 i actually have kit kat up and running already in virtualbox neway Sep 12 15:03:04 Inside Android studio it doesn't work :| Sep 12 15:03:10 whats your prob then? Sep 12 15:03:19 why won't it work in Android Studio? Sep 12 15:03:31 compile, why on earth do you develop in a windows environment?? Sep 12 15:03:31 first up Sep 12 15:03:36 one, google maps loads nothing but the search box and a big black area where the map should be Sep 12 15:03:36 compile: windows? Sep 12 15:03:41 second, facebook force quits on opening Sep 12 15:03:44 I'm still setting up Arch that's why Sep 12 15:03:57 everything else seems to be working okay Sep 12 15:04:08 maybe its a version problem. AndroidStudio doesnt use the default git implementation. it uses jgit Sep 12 15:04:20 legit? Sep 12 15:04:36 I've tried Native/Built-ion Sep 12 15:04:39 err in* Sep 12 15:04:50 and tested git through settings and it works :| Sep 12 15:05:02 10:57:28.503: git push --progress origin master:master Sep 12 15:05:12 compile: jgit is known to be very buggy and has missing/not working features Sep 12 15:05:23 thats the message i get, and its been like that for 10 mins... Sep 12 15:05:56 So what should I do danijoo? Sep 12 15:06:02 commandline :) Sep 12 15:06:27 well duh, just wanted to avoid an extra step. Sep 12 15:06:34 i dont know if there is already a git-native plugin for AS. maybe there is Sep 12 15:06:46 but ive seen a lot of people having issues with AS/git Sep 12 15:06:58 Hold on Sep 12 15:07:33 http://i.imgur.com/w0Jzg1h.png Sep 12 15:07:34 there Sep 12 15:08:27 oh ok Sep 12 15:08:50 I've tried native, same shit Sep 12 15:08:54 no idea on windows/cmd :/ Sep 12 15:08:57 sorry Sep 12 15:09:09 hrm Sep 12 15:09:17 yeh so Sep 12 15:09:21 back to me Sep 12 15:09:42 im out :/ Sep 12 15:22:52 screwsss: what virtualbox android are you talking about? Genymotion? Sep 12 15:23:03 oracle Sep 12 15:23:59 android-x86-4.4-r1.iso Sep 12 15:24:02 running that file there Sep 12 15:31:26 oh, you might have better luck in #android, that's not so much an app development issue Sep 12 15:44:24 Is it possible to set the size of the progressspinner in the action bar? Sep 12 15:48:37 nvm Sep 12 16:03:06 Hello Sep 12 16:03:22 I have a problem compiling a "sample" app. Sep 12 16:03:27 'b. Create the local.properties build file by running "android update project -p ."' Sep 12 16:03:31 And then I get an error: Sep 12 16:03:43 'Error: The project either has no target set or the target is invalid. Please provide a --target to the 'android.bat update' command.' Sep 12 16:03:50 Does anyone know how I can fix this? Sep 12 16:04:01 is the answer not in the question ? Sep 12 16:04:15 I don't know how to specify a target correctly Sep 12 16:04:22 or is it not telling you exactly Sep 12 16:04:41 erm with --target from the looks of it :) Sep 12 16:05:17 Wait. Sep 12 16:05:24 I think something just clicked Sep 12 16:05:32 I tried it before but i didn't think of it Sep 12 16:05:36 your reading skillz ? Sep 12 16:05:39 I guess it's --target 1 Sep 12 16:05:46 Shaddup, that's not obvious Sep 12 16:05:55 it really is Sep 12 16:06:01 it tells you Sep 12 16:06:01 freaking instructions need to be real Sep 12 16:06:13 why are you doing command line builds ? Sep 12 16:06:13 It says to add "--target"..... TARGET WHAT? Sep 12 16:06:21 platform api version Sep 12 16:06:26 I know that now Sep 12 16:06:31 if you dont know this you should not be pressing build Sep 12 16:06:31 :) Sep 12 16:06:40 My friend, Sep 12 16:06:52 I'm trying to run a test of the Millenial ad platform Sep 12 16:06:53 No need to be an asshat. He's just asking a question. Sep 12 16:07:09 not being an asshat Sep 12 16:07:11 Or an asssombrero Sep 12 16:07:18 just really surprised tis all Sep 12 16:07:20 Yes you are Sep 12 16:07:41 stay tuned Sep 12 16:07:56 i'll have plenty of obvious questions soon Sep 12 16:08:06 ugh Sep 12 16:08:58 hey, Sep 12 16:09:04 it took me years to learn right from left Sep 12 16:09:07 i'm a slow learner Sep 12 16:09:16 :X Sep 12 16:09:33 but are you doing command line builds ? Sep 12 16:09:40 yes, yes i am Sep 12 16:09:50 rather than following the d.android.com things ? why ? Sep 12 16:10:00 d.android.com things? Sep 12 16:10:04 sorry, i don't follow Sep 12 16:10:07 just would have thought it easier doing it the normal way Sep 12 16:10:13 more visual Sep 12 16:10:22 these are the instructions in the sample app for millenial media Sep 12 16:10:39 He can learn by doing. Its not a crime Sep 12 16:10:48 like this http://developer.android.com/training/index.html Sep 12 16:11:15 ProjectN not saying it is, what is your problem ? Sep 12 16:11:29 I was asking why "choose" to do it that way Sep 12 16:11:33 cause I was "interested" Sep 12 16:12:17 The android docs are sometimes outdated, sometimes confusing, and crucially depend on Eclipse Sep 12 16:12:32 I might have used Eclipse but I am working with Cordova Sep 12 16:12:42 i hope that helps Sep 12 16:12:57 ah, well the tuts will still be relevant for learning Sep 12 16:13:06 maybe not learning the IDE side of things though Sep 12 16:13:34 one day they will be updated to AS, I think some are already, all the integration ones Sep 12 16:13:56 What is AS? Sep 12 16:14:08 Android Studio Sep 12 16:14:25 Oh. Sep 12 16:14:31 Well basically any IDE stuff Sep 12 16:14:43 (a customized version of IntelliJ IDEA) Sep 12 16:14:45 Sorry, I think I meant Android Studio. or Eclipse. Or maybe both Sep 12 16:15:05 but since Cordova is on the command line it really doesn't jive with IDEs Sep 12 16:15:34 jibe* Sep 12 16:16:02 Are you actively avoiding IDEs ? Sep 12 16:16:46 no Sep 12 16:17:15 just doesn't work with cordova stuff Sep 12 16:17:31 and overcomplicated for it, really.. Sep 12 16:31:30 there's no tutorial on Filters http://developer.android.com/reference/android/widget/Filter.html ? Sep 12 16:31:36 tut on android documentation i mean Sep 12 16:31:43 are filters meant to use in conjunction with adapters only ? trying to understand what all usecases can it have Sep 12 16:36:09 Well, it makes most sense to use with some sort of adapter, but it works just as fine with any Filterable interface. For usecases I would say it applies to any situation where you want to filter something by having the user enter text. Sep 12 16:39:21 hm ok Thorbear Sep 12 16:42:00 hi guys, is there any way to clear a surfaceview? Sep 12 16:42:15 i’m using one in an adapter and when its recycled, the old content appears for a second before the new stuff loads Sep 12 16:45:06 maybe surfaceholder’s unlockCanvasAndPost? Sep 12 16:45:19 Does anyone know, officially, if SDK 20 (4.4W.x) uses Dalvik or ART as the runtime? Sep 12 16:46:19 JacobTabak: when do you sleep? Sep 12 16:46:29 lasserix: slept for 5 hrs jsut now Sep 12 16:46:30 lol Sep 12 16:46:30 Rican7: you can set it to do either Sep 12 16:46:38 heh Sep 12 16:46:44 4 hours here ;p Sep 12 16:46:54 oh shit Sep 12 16:47:04 You on the west coast? Sep 12 16:47:06 didn't even think to try tapping the build # for dev options Sep 12 16:47:06 haha Sep 12 16:47:22 btw i meant textureview rather than surfaceview Sep 12 16:47:25 i live in wisconsin Sep 12 16:47:30 oh Sep 12 16:47:47 @lasserix I don't see the option in the dev options Sep 12 16:48:16 its somewher Sep 12 16:48:46 when the documentation says something is invoked in a worker thread, that means shit is happening asynchronously ? Sep 12 16:49:13 shmoon_: when implemented correctly, yes. Sep 12 16:50:25 shmoon_: depends on how it calls back Sep 12 16:50:45 is the non-worker thread blocked by the worker thread? then its synchronous, is not blocked but calls back to it somehow? asynchronous Sep 12 16:51:32 guise take it easy Sep 12 16:51:37 if the documentation says worker thread Sep 12 16:51:42 its not gonna block Sep 12 16:52:13 hm Sep 12 16:52:42 Unless you do something silly like placing the implementation whole in onPostExecute() of an AsyncTask :) Sep 12 16:52:56 even if you did Sep 12 16:53:04 if it runs in a worker thread, the method call will return immediately Sep 12 16:53:24 sure Sep 12 16:54:00 hm i dont understand so much :D Sep 12 16:54:03 lol Sep 12 16:54:36 shmoon_ "yes" thats the answer :) Sep 12 16:54:39 hi Sep 12 16:54:50 how i can make my app appears to tablet download? Sep 12 16:54:54 What do you advice me to develop as a funny personnal useful android application, please ? Sep 12 16:55:03 t0th_—: make telephony feature and camera optional Sep 12 16:55:04 StingRay_: okay :D Sep 12 16:55:25 xar: Sep 12 16:55:31 t0th_—: do you require camera or telephony permissions in your app? Sep 12 16:55:35 funny cat pics Sep 12 16:55:57 that take over the phone app Sep 12 16:56:09 instead of the caller's/callee's pic Sep 12 16:56:12 it is a funny cat pic Sep 12 16:57:30 in user permission? Sep 12 16:57:37 in manifest permissions Sep 12 16:57:42 i have only Sep 12 16:57:49 shmoon_: in the case of Filter, it means that when you call filter("foo"); you can do dialog.show(); on the next line, and a dialog will pop up right away, even if the filtering is not done yet. Once the filtering is completed it will be passed through publishResults(). Sep 12 16:58:07 t0th_—: make it optional Sep 12 16:58:26 What do you advice me to develop as a funny personnal useful android application, please ? Sep 12 16:58:42 how, JacobTabak? Sep 12 16:58:47 add this: Sep 12 16:59:41 xar: you really have to give it a rest Sep 12 16:59:51 wrong channel for that Sep 12 17:00:34 thanks Sep 12 17:00:58 with the BLE apis, does one have to serialize each readCharacteristic(), writeCharacteristic(), and writeDescriptor() so that only one of these is going at the same time (that is - wait for the matching BluetoothGattCallback) before using any other ? Sep 12 17:01:26 this is so mindnumingly bad Sep 12 17:02:20 Is anyone familiar with Google Play Games Services, particularly the TurnBasedMultiplayer API? Sep 12 17:02:31 now i think i know why Bluetooth SIG wrote android Application Accelerator library - they said, man thats so bad we need to help out BT devs Sep 12 17:03:57 Hello Sep 12 17:04:06 What do you guys prefer to use for REST servers? I'm thinking of using Retrofit with RoboSpice.Hello Sep 12 17:04:10 blah Sep 12 17:04:13 What do you guys prefer to use for REST servers? I'm thinking of using Retrofit with RoboSpice. Sep 12 17:04:14 +1 retrofit Sep 12 17:04:25 I agree retrofit is great Sep 12 17:04:48 That helps my confidence. :) Sep 12 17:05:27 Btw JakeWharton, I used Butterknife all the time in my last app and plan to keep using it. It's to the point where I tell people to use the library as a first step when teaching them Android. Sep 12 17:05:45 It's great. Thank you for it. :) Sep 12 17:05:53 awesome. glad it's helpful Sep 12 17:06:55 Do you guys know if I should use RoboSpice with it? or is that overkill? Sep 12 17:07:08 never used Sep 12 17:07:38 * ravilov is hoping to one day dissect butterknife to the point where I understand how to create my own annotation processors that generate source code Sep 12 17:07:52 i'm giving a presentation on that next week Sep 12 17:07:53 Thorbear: cool thanks. just to get a concept right in my head, asynchronous taks doesn't necessarily means a new thread, am i right ? an asynchronous task could also happen on the UI thread. Sep 12 17:08:10 ravilov: http://nyc.droidcon.com/2014/dcnyc/39/ Sep 12 17:08:50 ravilov: do you happen to be in NYC or Waterloo? Sep 12 17:09:11 JakeWharton, awesome, pass me a link to the resulting video as I'm nowhere near even the same continent :) Sep 12 17:09:23 haha ok. it will be recorded. Sep 12 17:09:54 shmoon_: In practice, on android, it will always mean a background thread. Not necessarily a "new" thread though, since android will in many cases keep a pool of threads ready for you. Sep 12 17:10:26 Anyone know if it is possible to decouple javadoc from the source code? Sep 12 17:10:42 shmoon_, an async task can by definition NEVER happen on the UI thread Sep 12 17:10:51 ie an outline is generated, you edit the javadoc in that, then it can generate into your source, but it stays seperate from the source code Sep 12 17:11:20 actually an async tasks runs on both the UI and a background thread, pre / post on the UI doinBackground on the background Sep 12 17:11:35 eh, I meant the main bulk of it ;) Sep 12 17:11:52 wait, so you want to be able to edit javadoc comments but outside the source code? Sep 12 17:11:58 yeah Sep 12 17:12:03 redwraith: I haven't used robospice, but it looks interesting. I think you can get a lot of the functionality out of rxjava with retrofit, but will have to look into it more. Sep 12 17:12:17 ravilov: so whichever thread starts an async task, that task doesn't happen on that thread but another one ? Sep 12 17:12:45 when i need use compatible-screens ? Sep 12 17:12:49 shmoon_, the definition of anything "async" is that it's... well... asynchronous to the caller Sep 12 17:12:55 shmoon: async task calls onPreExecute onPostExecute on the UI thread and doInBacgkround on a different thread Sep 12 17:12:59 pieces029, I've been trying to find the big advantage of it over just raw RetroFit. What would you say is the advantage of it? same for rxjava Sep 12 17:13:12 meaning it's happening at the same time as the caller's normal code Sep 12 17:13:32 onPreExecute finishes then starts the thread to do doInBackground which when it finishes returns the result calling back to onPostExecute Sep 12 17:13:35 so yeah the main bulk of the async task by definition cannot be executed in the calling thread Sep 12 17:13:47 an async task must be initialized on the UI thread Sep 12 17:13:57 what lasserix is talking about is the code that enables communication between the task and the caller :) Sep 12 17:14:08 so it alway starts on the UI thread, does the bulk on the background thread, then calls back to the UI thread with the result Sep 12 17:14:19 yeah, comm stuff ;) Sep 12 17:14:24 redwraith: It looks like it caches the results so that if you execute the same request it doesn't nessesarily need to do a network call. You can achieve that with rx with some configuration. Sep 12 17:14:45 thanks guys :) Sep 12 17:14:50 it uses Handler h = new Handler(Looper.getMainLooper()).post(new Runnable { // gets called on UI thread } Sep 12 17:14:56 pieces029, alright, so something I should tack on later then? Sep 12 17:15:00 well not that exactly sinceit uses callable i believe Sep 12 17:15:31 pieces029, I've heard a lot about RX but mostly through my C# work. Would you say it's helpful for Android if you already use RetroFit? Sep 12 17:16:25 redwraith: Yeah definatly. Also, for your first question, I'm not sure how difficult robospice would be to add in after the fact. Sep 12 17:17:17 pieces029, I looked through the RetroFit/RoboSpice bit and it seems to be fairly easy, aside from actually handling calls of course. Sep 12 17:17:51 Hi, I'm having a nightmare trying to style an actionbar popup menu. It's just using the dark theme all the time, regardless of the styles I specify. I have tried everything I can think of. Is there any common gotchas? Sep 12 17:17:54 pieces029, would you say that RxJava can be used to compress the MVC layers for Android if you're using REST? Because if it does that, I'm on board. :) Sep 12 17:18:50 redwraith: what do you mean by compress the mvc layers? Sep 12 17:19:23 Here is my XML. My manifest references it correctly, as other elements are styled just fine. http://pastebin.com/k0tgtb8E Sep 12 17:20:00 pieces029, so you know how some data is stored for any given UI (bit flipped, string name, etc.). Could I then store that purely through observables, rather than creating an object and then having it make a call when I open the panel to populate the object? Sep 12 17:20:26 pieces029, though, it sounds like that might be handled by RetroFit. Sep 12 17:20:42 Retrofit. One word. Sep 12 17:20:45 Retrofit. Sep 12 17:20:45 JakeWharton, in a nutshell: is it possible to have a custom annotation processor as part of the app (so basically compiled at the same time as the app), or does it have to be a lib first? also can I avoid having the awkwards services file? Sep 12 17:20:54 Got it. Sep 12 17:21:21 redwraith: I'm still not sure I am understanding the question. Sep 12 17:21:34 ravilov: the annotation processor would have to be in another module, at the very least. Sep 12 17:21:43 I know the styles themselves are sound, as it was generated online by the awesome auto generator. actionbarstylegenerator Sep 12 17:21:50 ravilov: and you cannot avoid the services file, but you can use an annotation processor to generate it for you Sep 12 17:22:03 pieces029, I guess a good way to ask would be this: How did you use RxJava in combination with Retrofit in your app? Sep 12 17:22:10 ravilov: https://github.com/google/auto/tree/master/service#example Sep 12 17:22:38 oh interesting, thanks Sep 12 17:22:41 hopefully that sufficiently blows your mind Sep 12 17:23:30 I'm still recouping, yes Sep 12 17:24:03 annotation processors need a service file, but you can generate one with an annotation processor, which would normally need a service file, but one can be generated....... Sep 12 17:24:26 redwraith: I mainly use it for the subscription model, that allows me to cancel the results from updating the ui when the user navigates away. But I also use the filtering and other cool things like that to just get the data I need. Sep 12 17:25:36 pieces029, alright, I'll dig around a bit and see if I can use it like that. Is it simple to use for new developers? Because it's me and a new developer working on it. Sep 12 17:25:45 New to Android, not new to mobile. Sep 12 17:26:48 redwraith: rx I think takes a bit to full understand, but the simple stuff with rx and retrofit is really straight forward. I would recommend checking on this https://github.com/JakeWharton/u2020/blob/master/src/main/java/com/jakewharton/u2020/data/GalleryDatabase.java by JakeWharton to understand some of the awesome things you can do. Sep 12 17:28:12 L sdk update, yes please :D Sep 12 17:28:13 pieces029, thank you. Sep 12 17:29:18 redwraith: np Sep 12 17:38:51 pfn http://phandroid.com/2014/09/12/moto-x-pure-edition/ Sep 12 17:41:16 * ravilov shudders preemptively Sep 12 17:41:28 I still remember SE's "xperia pure" experimentt Sep 12 17:41:29 -t Sep 12 17:44:04 is there any reason DownloadManager.ACTION_DOWNLOAD_COMPLETE wont get called if a download works fine? Sep 12 17:44:40 g00s, I know, not for verizon though Sep 12 17:45:50 What are all of your opinions on Otto vs. Eventbus? Sep 12 17:46:40 or do they even matter if you have RxJava? Sep 12 17:49:03 i still use Otto for small things occasionally because I'm too lazy to Rx-ify Sep 12 17:49:53 That sounds like a good plan. Sep 12 17:50:04 hi, is it possible get json from a byteArray or should i just do toString() ? Sep 12 17:50:57 i mean does it make any sense ? Sep 12 17:51:20 just a java noob question Sep 12 17:55:35 BulleTime: most people here would say you should not be concerning yourselfw ith byte[] Sep 12 17:55:43 that should be abstracted for you Sep 12 17:55:53 if you’re working with json Sep 12 17:56:40 well Sep 12 17:57:41 what http client are you using Sep 12 17:57:50 how do u mean that actually? cause i dont understand why i should convert a byte[] into a string and then into JSONObject Sep 12 17:58:10 cant i just do newJSONObject(byte[]) ?? Sep 12 17:58:32 instead of newJSONObject(byte[].toString()) Sep 12 17:58:40 there’s no constructor for a jsonobject with a byte[] Sep 12 17:58:48 yeah i tought so Sep 12 17:58:54 but what i’m saying is Sep 12 17:58:54 okay then Sep 12 17:59:07 you’re probably taking a stream, converting it into a byte array, then into a string, then to json Sep 12 17:59:15 i think it would not matter at all , but i was just asking around Sep 12 17:59:17 this is a problem that has been solved many times, find a library to do it for you Sep 12 18:00:07 JakeWharton: by Rx-ify do you mean you would create your own eventbus with rx, or a different pattern? Sep 12 18:00:23 not an event bus Sep 12 18:00:24 Ok I have been having some funky behavior with Parcelable. https://gist.github.com/px-amaac/ce2208a1450d156969ee This class worksand i am not sure why. It breaks the parcelable pattern of writing and reading things in order. Can anyone explain this? Sep 12 18:00:26 just per-event observables Sep 12 18:00:30 why does android studio not stop on breakpoints inside of onClickListeners? Sep 12 18:00:46 dcope: it does Sep 12 18:00:49 dcope: are you using ART? Sep 12 18:01:02 pieces029: hm, not sure. i'll have to check. Sep 12 18:01:07 breakpoints stop elswhere though Sep 12 18:02:18 pieces029: no, i am using Dalvik Sep 12 18:02:22 dcope: some friends of mine where having issues with breakpoints and ART. Also sometimes just rebuilding / disconnecting helps. Sep 12 18:03:37 dcope: when you’re at a breakpoint that works, if you look at your breakpoint in the onclicklistener, sometimes it will have an ‘x’ if itw ont be hit Sep 12 18:04:12 obviously, the onclicklistener won’t be triggered until the user actually clicks, it wont be hit when you’re just setting the onclicklistener Sep 12 18:05:11 i have an onclick listener on a list view cell tap Sep 12 18:05:17 and i tap the cell, the breakpoint doesn't get hit Sep 12 18:05:18 :( Sep 12 18:05:38 tried reconnecting the device Sep 12 18:05:40 this is crazy Sep 12 18:05:49 is the code in the onclicklistener working? Sep 12 18:05:55 yes Sep 12 18:06:02 somewhat... which is why im trying to debug it :P Sep 12 18:06:08 dcope: proguard ? Sep 12 18:06:17 i would hope he doesnt progaurd debug buidls Sep 12 18:06:26 I do Sep 12 18:06:28 because I have to Sep 12 18:06:29 progaurd is disabled Sep 12 18:06:40 lucky Sep 12 18:07:06 you have to gordon_ ? method limit? Sep 12 18:07:16 yes Sep 12 18:07:20 ouch Sep 12 18:08:04 i put a log statement in my onclicklistener Sep 12 18:08:09 that would make development so painful Sep 12 18:08:12 it logs, but the breakpoint doesn't get hit Sep 12 18:08:41 screenshot your ide around that onclicklistener Sep 12 18:09:19 JacobTabak: ok one sec, i relaunched android studio to try one last time Sep 12 18:11:57 If one adds a .jar file to their libs directory Sep 12 18:12:05 are those things automatically included? Sep 12 18:12:20 Or do I need a " gradle? Sep 12 18:12:36 gradle? Sep 12 18:12:41 are you using gradle Sep 12 18:12:50 android studio Sep 12 18:12:51 I am using the command line and cordova Sep 12 18:13:02 how are you building Sep 12 18:13:10 "run" Sep 12 18:13:17 well.. crosswalk and cordova Sep 12 18:13:34 gl with that Sep 12 18:14:45 ok i got it to work Sep 12 18:14:46 lol Sep 12 18:14:55 i had to add the breakpoint AFTER i started the app in debug mode Sep 12 18:15:03 dcope: thats not how its supposed to work Sep 12 18:15:04 apparently if you place a BP, debug the app... it goes right over it? Sep 12 18:15:13 if you change code it wont’ work Sep 12 18:15:20 i didnt change code Sep 12 18:15:24 but you can definitely place breakpoints while running Sep 12 18:15:26 i placed the breakpoint after i started the debug session Sep 12 18:15:28 yes, Sep 12 18:15:31 that is what i had to do Sep 12 18:15:35 i mean you can do it before Sep 12 18:15:41 you’re having a dcope issue Sep 12 18:16:23 HEY BUDDY BOYS! Sep 12 18:17:22 Umm Sep 12 18:17:26 So my question is Sep 12 18:17:34 If I physically add a .jar file Sep 12 18:17:37 to /libs Sep 12 18:17:46 IS IT ... included in the apk? Sep 12 18:17:53 That depends on your build system Sep 12 18:18:01 there are 2 build systems for android, gradle an ant Sep 12 18:18:01 Oh. Sep 12 18:18:07 Oh, then I'm using any Sep 12 18:18:08 ant Sep 12 18:18:26 A standard android ant project picks them up, yes Sep 12 18:21:07 how do I remove a buttonClick listener Sep 12 18:21:13 setClickListener(null) ?? Sep 12 18:21:54 seems like that its.. nevermind Sep 12 18:24:53 so, i have a textureview in an adapterview, and the textureview is rendering a video. when the views get recycled, the textureview doesnt’ get cleared, having a lot of trouble clearing it, any suggestions? Sep 12 18:30:51 all right, thanks Sep 12 18:30:55 just wanted to confirm Sep 12 18:32:42 For Retrofit, how does the RestAdapter know what/how to convert? Does it use naming conventions or is there an annotation for it I should use on the object fields? Sep 12 18:32:47 android:name="android.hardware.accelerometer" Sep 12 18:32:54 what do I do for magnetic field? Sep 12 18:33:04 redwraith: there are several converters Sep 12 18:33:10 look at restadapter.builder.setconverter Sep 12 18:33:16 Will do. Sep 12 18:33:17 Thank you. Sep 12 18:33:22 it delegates to gson by default, so you’d need to look at gson’s documentation Sep 12 18:34:04 redwraith: with gson, you can also use the @SerializedName(“remote_field_name”) annotation on your models and name them whatever you want Sep 12 18:34:54 JacobTabak, should I use GSON? or are there better options? Sep 12 18:35:03 you should probably use gson Sep 12 18:35:10 but if you use jackson it supports that Sep 12 18:35:54 also simplexml, and protobuf Sep 12 18:35:55 Ok. Sep 12 18:36:09 I've heard Jackson is faster, but I'm guessing GSON is easier? Sep 12 18:36:28 haven’t used jackson much, i’m familiar with writing typeconverters for gson Sep 12 18:36:35 so i’ve just stuck with it Sep 12 18:46:33 http://stackoverflow.com/questions/25814558/android-correct-equations-for-moving-a-ball-with-accelerometer Sep 12 18:46:44 can someone help me with my maze ball equation? Sep 12 18:48:07 the fact that you can embed or show a DialogFragment is freakin awesome Sep 12 18:50:21 you can be frikkin awesome Sep 12 18:50:35 ep Sep 12 18:50:37 yep Sep 12 18:52:27 zeltin: hard to say - my initial guess is that you're polling the accelerometer too slowly Sep 12 18:53:13 and so you end up changing the velocity of the ball at discrete times Sep 12 18:54:15 zeltin: posting your actual code may help :) Sep 12 18:58:19 Is there a good way to do optional query parameters for Retrofit? Sep 12 18:58:29 pass null, it won't be included Sep 12 18:59:18 Sweet. Thanks. Sep 12 19:02:00 is it possible to disable animations in android when creating avd? Sep 12 19:05:10 I know that you can in developer options for the windows etc. Not sure about the avd Sep 12 19:07:12 Not disable just set them to 0 Sep 12 19:07:41 yes, that's what I want Sep 12 19:09:15 JesusFreke, i use sensor_delay_fastest Sep 12 19:15:05 i have tried various ways. update on every new sensor event. however that could differ between phones. Sep 12 19:16:05 so I update after a certain time has passed, I have tried different size steps and different time between updates and it can get better or worse but it is still not good enough. I cant find a sweetspot Sep 12 19:16:13 what do I do for magnetic field? Sep 12 19:16:17 android:name="android.hardware.accelerometer" Sep 12 19:16:26 i cant find what the sensor is called Sep 12 19:18:37 Ok Sep 12 19:18:55 With ant, if I wanted to add a library, how do i do that? Sep 12 19:19:06 Right now i am copy/pasting and adding some dummy files manually Sep 12 19:19:12 but i am sure that is not the right way Sep 12 19:19:35 I mean, from /extras. . . like the play apk expansion library Sep 12 19:20:48 If I set uses-feature then phones that dont have that feature cant install right? So I dont have to check that in code...? Sep 12 19:21:25 zeltin believe so yes, there is also a required flag Sep 12 19:21:34 so it can be used but not required Sep 12 19:21:35 etc Sep 12 19:21:44 its app idea sharing time Sep 12 19:22:20 tell your app ideas to me in pm and ill provide feedback, i wont steal any good idea because im a good guy Sep 12 19:22:42 * StingRay_ laughs at prohobo Sep 12 19:22:49 thats funny :) Sep 12 19:22:51 anyone Sep 12 19:23:14 how do I install the android extras/ libraries in my project? Sep 12 19:23:22 :( Sep 12 19:23:41 via command line Sep 12 19:24:03 what ide are you using? Sep 12 19:24:18 man I hate this Sep 12 19:24:48 Agamemnus: all i know is that you have access to a terminal from inside android studio Sep 12 19:24:55 haha Sep 12 19:24:56 Animation Drawable.. I have no idea how I empty the cache.. it doesn't do it by itself.. the more images I animate.. is just a step closer to 'Out of Memory' Sep 12 19:25:02 i have a terminal without it Sep 12 19:25:03 how do I clear it? Sep 12 19:25:09 I am not using an IDE Sep 12 19:25:39 oh, whatever you're asking about i probably have no idea about Sep 12 19:25:46 P3nnyw1se if you are painting a bitmap are you not just using the same object per paint ? Sep 12 19:25:54 for example Sep 12 19:26:06 are you on linux? Sep 12 19:26:10 adding play_apk_expansion ? Sep 12 19:26:15 Windows. Sep 12 19:26:21 oh Sep 12 19:26:24 yeah, i have no idea Sep 12 19:26:42 yes I am.. the fact is..I have 6 images, I click and one of them animates.. I see in logcat -> 70% free memory .... I click something else.. the same object Animation-drawable.. animates that picture-....-> 50% Sep 12 19:26:49 I click 4-5 in a row.. out of memory Sep 12 19:27:24 P3nnyw1se ok thats odd, if you are re-using objects not sure why that would happen Sep 12 19:27:43 its like I'm reusing the object but it keeps the animated frames in memory.. in case I wanna reuse them Sep 12 19:27:46 it doesn't clear cache by itself Sep 12 19:28:03 but then again, not only am I on industrial strength headache tablets, I'm not very good to boot, so maybe dont listen to me :) Sep 12 19:28:16 :[ Sep 12 19:28:32 P3nnyw1se how are you animating it ? Sep 12 19:28:40 Agamemnus: why do you choose to make your life hard Sep 12 19:28:42 just with a post and paintBitmap ? Sep 12 19:29:47 http://pastebin.com/etzQpj9j Sep 12 19:29:55 android dev is the first place ive seen anyone take pride in coding inside a terminal Sep 12 19:30:05 its weird Sep 12 19:31:00 reason why start is // .. is because the second you load an imageview using Animation-List it fires Sep 12 19:31:07 P3nnyw1se oh you just using all of them as a frame list ? Sep 12 19:31:31 also how big are these images ? Sep 12 19:31:31 animation-list .. in imageviews yeah.. then use animation-drawable to control them Sep 12 19:31:44 32kb each.. 25 in each .. total.. 7mb Sep 12 19:31:51 man the only time you should ever use a switch is when you have no idea what you're doing Sep 12 19:32:20 I use a switch on btn click.. to avoid having 6 identical methods.. dont see the issue in that Sep 12 19:32:31 polymorphism Sep 12 19:32:40 P3nnyw1se cant help really, think I would choose to do something like a sequenceDrawable and control the load myself Sep 12 19:33:17 I do use poly, in a way I treat it first in a way no matter what view is clicked Sep 12 19:33:53 anyways the effieciency of my switch is beside my concern ;) Sep 12 19:34:11 I use the same animation-drawable to load in these gifs.. and they keep building up memory Sep 12 19:34:13 it never clears Sep 12 19:34:19 and suddenly it leaks Sep 12 19:34:21 and shuts down Sep 12 19:34:32 gifs ? Sep 12 19:34:48 gifs.. no .. pictures in animation-list loaded into imageviews Sep 12 19:38:20 (Android Wear) does Node.getDisplayName() work for anyone? It returns the same string as Node.getId() :/ Sep 12 19:39:18 prohobo where have you seen anyone in here code in the terminal? Sep 12 19:39:39 ive heard it from like 5 people since i came in here 2 days ago Sep 12 19:39:46 hi, just a question about onSaveInstanceState bundles.. should i delete if i add them i think they got duplicated ?? Sep 12 19:39:55 fyi still, lots of people code in the terminal and take pride in their command line setup to do so. You'd be surprised at the amount of customizations you can do to that thing Sep 12 19:40:12 prohobo, don't be so quick to judge Sep 12 19:40:30 i didn't judge shit man Sep 12 19:40:58 you're judging it harder than me Sep 12 19:41:49 where do we file gms bugs? Sep 12 19:41:56 prohobo, whatever Sep 12 19:42:03 :P Sep 12 19:51:04 https://code.google.com/p/android/issues/detail?id=76108 Sep 12 20:02:58 prohobo: I have an idea I have been thinking of a long time, I think it could be great. You know how all people like cats and puzzle games right? and cats that are mad are funny. You could call it "Mad cats". So you would shoot these cats at stuff and they could explode and the point would be to shoot them at mice and if you hit all mice you win! Sep 12 20:03:29 guys I'm display numberes 1-9 to a user.. and I want to show him a combination, like 1-3-4-4-1-5 ... the button is highligted so the user can see it... I want to wait 2 seconds between each highlight.. but I dont know what the right angle is.. Sep 12 20:04:04 how would I wait between actions?.. use a timer somehow? Sep 12 20:05:02 zeltin your idea sucks Sep 12 20:05:14 i wont be stealing it Sep 12 20:05:23 prohobo, it was a joke (Angry birds)... Sep 12 20:05:36 dude why do you have to get meta Sep 12 20:05:42 i know you were joking Sep 12 20:06:01 :E Sep 12 20:18:29 hey guys Sep 12 20:19:01 if I install an apk with same keystore manually, would google play update it next time when there is a an update? Sep 12 20:19:58 afaik Sep 12 20:19:59 no Sep 12 20:29:50 what if I pulled it from here Sep 12 20:29:50 http://lifehacker.com/apk-downloads-lets-you-pull-apk-files-directly-from-goo-1456775931 Sep 12 20:29:52 actually it should Sep 12 20:30:12 i really need some advice here, this is killing me Sep 12 20:30:26 I install apps manually all the time, when there's an update available it always tells me and updates if I let it Sep 12 20:30:30 i am building an app, which a fragment hosting a viewpager, loading other fragments Sep 12 20:30:50 i make a call using volley, which has async callbacks for when the response is returned, Sep 12 20:30:56 how do i pass that data to the fragment? Sep 12 20:31:20 let me do a release and find out myself... just gona take a few hours. then i can write a blog post about it so people dont have to ask this question again Sep 12 20:31:30 good idea Sep 12 20:31:57 androidji, have a callback method in the fragment (onDataReceived() or something) and simply call it from the request? Sep 12 20:32:37 I want to destroy an AVD from the manager, but the manager says that the virtual device is currently running in an emulator. adb claims that there's no emulator running to connect to. There's no emulator window. How do I kill the silly thing? Sep 12 20:33:35 frem: OS? Sep 12 20:33:36 ravilov, sorry, didn't understand, how do i find the fragment object first Sep 12 20:33:44 gdrc: OS X Sep 12 20:33:50 there's got to be some pattern for this, i am not the first person with this problem Sep 12 20:33:57 frem: what if you kill java? Sep 12 20:34:37 gdrc: the only java process was the SDK/AVD manager Sep 12 20:34:56 androidji, maybe you should post some code Sep 12 20:35:13 are you doing the request and/or processing the response from within the fragment? Sep 12 20:35:17 frem: usually theres an emulator process open when this occurs Sep 12 20:35:48 desmin88: what would it be called? I grepped the process list for "emu" and didn't find anything Sep 12 20:36:06 emulator- Sep 12 20:36:09 ***.exe Sep 12 20:36:32 ravilov, the MainActivity is calling and intentservice, which on finishing calls the eventbus method post, the fragment hosting the viewpager has subscribed to it and hence gets the response Sep 12 20:37:02 desmin88: nothing named emulator here. Does AVD keep a lockfile? This started when I rebooted because the emulator was crashing on startup. Sep 12 20:37:05 so in the end you do get the response into the fragment? Sep 12 20:37:15 frem: not sure about that Sep 12 20:37:19 mind you, I have never worked with fragments or volley Sep 12 20:39:31 desmin88: Ah! Found something. In ~/.android/avd there are directories and ini files that correspond to each AVD. I just deleted the ones named the same as the one I wanted to kill. Sep 12 20:41:24 I got a small question where can you find beta testers for android? Sep 12 20:42:37 on forums Sep 12 20:43:13 Oh i thought there was web site for beta testing for android. Sep 12 20:43:41 does such a thing exist for other platforms? Sep 12 20:44:07 Not sure i just start out. Sep 12 20:45:08 what the fuck, i look out side my window and i have 3 squirrels jumping on my gutter Sep 12 20:45:19 like its some sort of trampoline Sep 12 20:45:28 no way.. Sep 12 20:45:34 not joking Sep 12 20:45:42 i thought you where. Sep 12 20:45:48 i never joke Sep 12 20:45:55 * desmin88 sometimes does, but not in this case Sep 12 20:46:12 you must be joking about not joking Sep 12 20:46:25 or am i? Sep 12 20:46:48 yes Sep 12 20:47:11 ravilov you called my bluff Sep 12 20:47:25 but im serious, there were 3 squirrels jumping on my gutter up and down Sep 12 20:49:52 maybe they were trying to see past some tall house Sep 12 20:50:04 or trying to bring my gutter down Sep 12 20:50:10 lol Sep 12 20:50:26 im in a war with my neighbor and i think hes contracted out squirrels Sep 12 20:50:45 you could always go ask them Sep 12 20:50:52 how dare i be civil Sep 12 20:51:17 being at war with your neighbor is a bad thing though Sep 12 20:52:01 there is no alternative Sep 12 20:52:12 eh Sep 12 20:52:25 he is a retired city manager or something and we get letters in the mail about the tiniest violations Sep 12 20:52:44 so ignore them Sep 12 20:52:51 from areas impossible to see unless one comes unto or property, or if your my neighbor Sep 12 20:53:03 we do - we have a place on the refrigerator for the violation papers Sep 12 20:53:28 there you go Sep 12 20:54:44 * ravilov ponders over whether there are just that few letters or does desmin88 have a superstrong magnet to hold them all Sep 12 20:55:00 its the entire face of one side of my refrigerator Sep 12 20:55:17 along with jehovah witness pamphlets( getting those is so fun!) Sep 12 20:55:24 should keep at least that side of the fridge clean Sep 12 20:55:44 no kitchen splatter can harm it Sep 12 20:56:00 exactly Sep 12 20:56:25 why are there so many errors in log cat from simply having the device plugged in Sep 12 20:57:19 like what Sep 12 20:58:08 why do you assume everything in logcat are errors? Sep 12 20:59:10 maybe error filter is on Sep 12 21:07:04 Which is the gradle version I should use for Android Studio? It seems 2.x isn’t supported yet, is it? Sep 12 21:09:55 Nevermind, I found the answer here: http://tools.android.com/tech-docs/new-build-system/user-guide Sep 12 21:11:10 question Sep 12 21:11:19 answer Sep 12 21:11:21 actually this is more of an ad question Sep 12 21:11:23 very funny Sep 12 21:11:28 im not laughing Sep 12 21:11:34 ok SO Sep 12 21:11:44 I just got millenial media ads to work Sep 12 21:11:49 they're saying CPM $6.3 Sep 12 21:11:54 eCPM Sep 12 21:12:00 Even though I set $12 on admob Sep 12 21:12:05 They're through admob Sep 12 21:12:12 Also, I only got 2 cents Sep 12 21:12:17 for 2 video ads. Sep 12 21:12:18 * desmin88 is not laughing Sep 12 21:12:23 Dordm Sep 12 21:12:28 Doesn't sound like a lot. Sep 12 21:12:38 try using actual punctuation instead of the enter key please Sep 12 21:12:41 What's the best ad network for video ads? Sep 12 21:13:06 im usually not a stickler on over usage of the enter key, but that was excessive Agamemnus Sep 12 21:13:12 also, personally I despise ads of any sort so I'll stay out of this Sep 12 21:13:28 you have the option to buy a premium version for $4 Sep 12 21:13:37 the only ads i like are small banner ads at the bottom that i can ignore Sep 12 21:13:40 (not that I know anything about ad systems anyway) Sep 12 21:14:01 Well, I felt that small banner ads were detrimental to my game's experience Sep 12 21:14:10 video ads are just terrible Sep 12 21:14:27 So instead of that, I used interstitials... but those image ads don't pay anything unless people click on them.. that kind of ruins the concept of interstitials Sep 12 21:14:34 yeah you're probably better off with excruciatingly annoying full-screen video ads Sep 12 21:14:35 also, interstitial ads are the most fucking annoying thing ever. Lets break from the content to show them a full page ad Sep 12 21:14:55 they are shown before a puzzle loads, so it is not annoying Sep 12 21:15:05 no, they are still annoying Sep 12 21:15:15 ok, whatever then, need to make money somehow Sep 12 21:15:29 so, no one has any experience with them? Sep 12 21:15:37 well, so far you've made $.02, Sep 12 21:15:38 is there a way to use layers in android like you can in ios? Sep 12 21:15:49 that could be because your ad system is too annoying Sep 12 21:15:52 From the Millenial media ads. Admob ads gave me 8 cents for one view. Sep 12 21:16:08 if your main point with an android app is to solely make money, good luck Sep 12 21:16:10 Actually that was just me testing my game. But it's not enough, 1 cent per video ad Sep 12 21:16:41 its never enough Sep 12 21:16:44 I have read/heard that acquisition costs are anywhere from 2 to 20 cents Sep 12 21:16:57 It has to be at least break even :P Sep 12 21:17:00 ultra-, that would assume people here know about ios Sep 12 21:17:22 desmin88, I suppose you survive on fresh air and sunshine. Sep 12 21:17:37 under the bridge. Sep 12 21:17:45 well i’m sure some would… basically instead of onDraw, are there layer objects that i can add to a view? set properties such as color, transparency, etc Sep 12 21:17:49 in a box... Sep 12 21:17:51 if you intend to make a living, you picked the wrong method of doing so Sep 12 21:17:51 I think the point was, good luck trying to make a living through ad-supported android apps Sep 12 21:18:06 especially if you go out of your way to annoy your users with excessive ads Sep 12 21:18:17 i make my money not through the apps but by making the apps for other people so they can make their pitiful ad money Sep 12 21:18:24 For you, any ads are excessive ads, so that's a bit misleading, no? Sep 12 21:18:25 ultra-, yes, it's called canvas Sep 12 21:18:52 Agamemnus, dunno, I suggest you publish your app and see how it goes, from what I've seen nobody clicks on ads Sep 12 21:18:56 i think banner ads are the only acceptable ads, interstitial and video adds will get you poor reviews and ratings Sep 12 21:19:06 and a lot of people (me included) have ads permanently blocked Sep 12 21:19:08 same as the canvas argument in onDraw… so i still draw to it with onDraw, then? Sep 12 21:19:25 ultra-, you can create any number of new canvases Sep 12 21:19:33 So I should block 20% of the screen with banner ads Sep 12 21:19:40 like this error: 09-12 17:18:08.934: ERROR/PowerManagerService-JNI(275): Couldn't load power module (No such file or directory) Sep 12 21:19:46 if your banner is taking up one fifth of screen space Sep 12 21:19:48 what the hell does that even mean? i'm not using the NDK Sep 12 21:19:48 ok, i’ll read up on canvases then… the only time i used one is the one it provides on onDraw Sep 12 21:19:49 you are doing it wrong Sep 12 21:19:50 instead of showing video ads for 5 seconds of your time, out of 15 minutes Sep 12 21:19:59 ravilov: thanks Sep 12 21:20:10 "Couldn't load power module" really Sep 12 21:20:14 dogarrhea, that seems very specific to your situation Sep 12 21:20:21 why don't you disable your ad blocker and screenshot your next banner ad Sep 12 21:20:38 and tell me what percent of the screen it takes up. maybe 15% though Sep 12 21:20:41 k. Sep 12 21:22:38 doesn't seem so specific to me ravilov http://stackoverflow.com/questions/17973195/tons-of-errors-when-starting-a-virtual-device and it's a year old Sep 12 21:23:03 somebody was looking for curl on android https://github.com/hiteshsondhi88/android-curl Sep 12 21:23:34 hrm. other developers seem to see a bunch of red in log cat as well. it just vomits errors Sep 12 21:23:42 dogarrhea, are you talking about an emulator or a real device? Sep 12 21:23:50 i'm on a real device Sep 12 21:23:53 Agamemnus: http://i.imgur.com/FmCNXjK.png approx. 7% of screen space Sep 12 21:23:54 that post is an emulator Sep 12 21:24:20 maybe android just likes to vomit errors Sep 12 21:24:35 android in general likes to be verbose when logging Sep 12 21:24:43 I hope the pure edition moto x comes with japan certification at least Sep 12 21:24:51 it's easier to filter things out than to get things logging that won't log Sep 12 21:24:51 but who knows when I'll ever go to japan again, heh Sep 12 21:24:52 Well Sep 12 21:24:58 Agamemnus: even officially endorsed by google as the best method to not compromise UX Sep 12 21:25:01 Your phone is much taller than normal Sep 12 21:25:07 no Sep 12 21:25:09 It does really. Sep 12 21:25:13 it does Sep 12 21:25:17 a normal phone is Sep 12 21:25:22 1920x1080 Sep 12 21:25:24 or er Sep 12 21:25:29 that's not a normal phone Sep 12 21:25:31 1.777 Sep 12 21:25:35 screen ratio. Sep 12 21:25:43 also, again, let go of that enter key Sep 12 21:25:53 Normal = average. Sep 12 21:25:59 still no Sep 12 21:26:06 ravilov: does it concern you at all that most of the log messages are "ERROR" ? Sep 12 21:26:17 That's 1920x1080 actually.. seemed taller than normal. Sep 12 21:26:19 ravilov: dont make my phone self-conscious :( Agamemnus: 1080p is pretty normal Sep 12 21:26:42 dogarrhea, you would think those would be worrisome, but eh, not really Sep 12 21:26:50 I would prefer no ads Sep 12 21:27:11 Agamemnus: if you're going to have any ads at all, banner ads are the way to go, even google says so Sep 12 21:27:14 do i need to switch from 'draft' to 'publish' in order to let beta tester test my app? Sep 12 21:27:26 ravilov: that makes debugging a lot harder Sep 12 21:27:31 "what's a real error?" Sep 12 21:27:41 What's better, an annoying ad (perhaps with effects) that changes every 2 minutes or so, or an interstitial that appears for 5-15 seconds for every 30 minutes of gameplay? Sep 12 21:27:52 if you're working on an app, you surely won't care about *system* messages, would you dogarrhea? Sep 12 21:28:03 you make me want to add more interstitials Sep 12 21:28:03 Just filter by your app package, no big deal dogarrhea Sep 12 21:28:14 Agamemnus, good luck with that Sep 12 21:28:26 Agamemnus: your in the developer mindset i guess, but its pretty well known interstitials are not good Sep 12 21:28:39 seems to me you want to make money off your users while at the same time looking down on them Sep 12 21:29:02 i need help, I have my database in raw folder however I get an error in my databasehelper Sep 12 21:29:05 "gearsdatabase cannot be resolved or is not a field" Sep 12 21:29:08 how am I looking down on them? Sep 12 21:29:29 how do i fix? Sep 12 21:29:30 5-15 seconds of time every 15 minutes versus an annoying ad taking up space 100% of the time Sep 12 21:29:48 the notion "the way you're doing ads is annoying, please reconsider" apparently makes you want to add even more annoying ads Sep 12 21:29:53 DarkChaoz by fixing your query I would guess Sep 12 21:29:55 http://developer.android.com/training/monetization/ads-and-ux.html even google agrees Agamemnus Sep 12 21:30:19 what do they agree on? Sep 12 21:30:22 whats the issue here? Resources res1 = myContext.getResources(); Sep 12 21:30:22 InputStream myInput = res1.openRawResource(R.raw.gearsdatabase); Sep 12 21:30:33 stop le trolling, google does not say not to use interstitials Sep 12 21:30:45 the r.raw not recognizing file exist Sep 12 21:30:57 Agamemnus, a persistent ad at the bottom is much easier to get used to than a popup every 15 minutes Sep 12 21:31:14 I see Sep 12 21:31:19 So it's like Stockholm Syndrome? Sep 12 21:31:33 "Advertising without Compromising User Experience" then it goes on to implement banner ads Sep 12 21:31:36 no, it's like, I can cover up that part of the screen or imagine it's not even there Sep 12 21:31:43 if you want to compromise your apps UX, then by all means Sep 12 21:31:49 desmin88: you're imagining things Sep 12 21:31:51 DarkChaoz look at getAssets() Sep 12 21:31:58 as opposed to I just have to stop whatever I'm doing and watch this annoying thing that I don't even care about Sep 12 21:32:12 They are talking about how to implement banner ads "correctly", not advocating against interstitials Sep 12 21:32:31 well either way, looks to me you'll not get answers you want here, Agamemnus Sep 12 21:32:38 kind of a pointless discussion, this Sep 12 21:32:44 Ok, well, if I was playing the game, I would want interstitials instead of banners. Sep 12 21:32:50 nobody else does. Sep 12 21:33:01 I quit playing quite some games because they had such ads Sep 12 21:33:02 I guess I'll play it by my lonesome self then! Sep 12 21:33:21 retention and install rates plummet with interstitials, but im not going to convince to not trash your app Sep 12 21:34:14 and if your sole purpose with creating your apps is to make livable money, you're doing it wrong. Sep 12 21:34:16 you probably looked up some stats about interstitials when they first showed up on the scene. Sep 12 21:34:22 Agamemnus, don't worry, you still might be able to convince some buddies to have it installed, for your sake :p Sep 12 21:34:42 People aren't confused by interstitials Sep 12 21:34:45 * desmin88 doesn't care enough to argue anymore about how bad interstitials are Sep 12 21:34:54 Agamemnus: yes they fuckin are Sep 12 21:34:55 I guess we'll find out. Sep 12 21:34:56 I don't remember anyone ever mentioned confusion Sep 12 21:35:00 annoyance, yes Sep 12 21:35:06 "retention and install" Sep 12 21:35:13 you break user experience by opening up a full page advertisement Sep 12 21:35:39 the idea is, don't *EVER* force ads on your users Sep 12 21:35:47 discrete, yes Sep 12 21:35:54 in your face, huge NO Sep 12 21:36:08 It's right before a level opens... no user experience broken. Sep 12 21:36:30 personally, I would rather watch a boring progress spinner instead, but that's just me Sep 12 21:36:38 either way, good luck, and be sure to report back on your sales Sep 12 21:36:46 A million dollars Sep 12 21:36:50 Me in a month :P Sep 12 21:36:58 yeah, in debt Sep 12 21:37:01 :\ Sep 12 21:37:23 from all the lawsuits due to emotional and psychological damage done to your users :p Sep 12 21:37:31 Uhuh Sep 12 21:38:14 Anyway, in all this conversation, one point wasn't discussed enough Sep 12 21:38:29 it's funny though - seems to me people with the least intention to make money off of android apps end up making most the money Sep 12 21:38:33 Google doesn't pay if people don't click. That's why I wanted to add dependable video ads. Sep 12 21:39:08 Or, admob doesn't pay. Sep 12 21:39:10 I think there is way too much conflict in this channel and opinions that are just that… opinions… there are no absolutes and as always something needs context and consideration… not absolute assumptions Sep 12 21:39:29 the only reason my app does well is because its exposed to networks with huge unique view rates; its incredibly difficult to start an app, let alone a game from the ground up Sep 12 21:40:16 I have seen games where you have pet poop have thousands of downloads Sep 12 21:40:19 Somehow Sep 12 21:40:20 StingRay_, developers are opinionated by nature ;) Sep 12 21:42:34 i mean literally Sep 12 21:42:34 poop. that is a pet. Sep 12 21:42:34 ravilov maybe, but they should also be mindful of context Sep 12 21:42:34 :) Sep 12 21:42:39 (Or something like that, anyway) Sep 12 21:45:56 StingRay_, well now you're starting to sound like my wife :p Sep 12 21:45:57 hrm. android device not being detected after unpluggin and plugging device back in Sep 12 21:45:57 ./adb devices ----> empty list Sep 12 21:45:57 Agamemnus, long time ago there was a shareware windows program that would do nothing but sit in your tray and occasionally pop up insults. and people were buying it. go figure Sep 12 21:45:57 usb debugging on. Sep 12 21:45:57 probably another bug Sep 12 21:45:57 faulty cord? Sep 12 21:45:57 ok i have another question, totally unrelated to ads Sep 12 21:45:58 i guess i can google it.. Sep 12 21:45:58 in that case you probably should Sep 12 21:45:58 usb debugging with cords sucks. Sep 12 21:45:58 Do it wirelessly. Sep 12 21:45:59 lol? Sep 12 21:45:59 why would i want battery life to be less anyways Sep 12 21:45:59 nah still have it plugged in, but to the charger :p Sep 12 21:46:00 this sounds kind of ridiculous Sep 12 21:46:00 anyways i don't have a wireless adpater Sep 12 21:46:00 it was never serious anyway Sep 12 21:46:00 I do all my debugging wirelessly Sep 12 21:46:02 $ ./adb devices List of devices attached NOTHING!!!!!! Sep 12 21:46:17 why is it now deciding it wants to act up Sep 12 21:46:21 Agamemnus, you also want to use full-screen ads - 'nuff said :p Sep 12 21:46:27 buy a new cord Sep 12 21:46:30 dogarrhea, sudo adb? Sep 12 21:46:33 they break easily Sep 12 21:46:47 try to make it level with the phone Sep 12 21:46:51 why do i need to run it as sudo? Sep 12 21:46:52 depends on what you do with them, mine tend to last Sep 12 21:47:02 dogarrhea, for testing Sep 12 21:47:09 either way, still empty Sep 12 21:47:18 ok, then there's something else wrong Sep 12 21:47:24 does your phone say it has usb connected? Sep 12 21:47:32 nope Sep 12 21:47:38 ...well there you go Sep 12 21:48:04 but it should thought right? Sep 12 21:48:14 i haven't had to explicitly mount it before Sep 12 21:48:14 I would think so Sep 12 21:48:17 this is new behavior Sep 12 21:48:22 Does anyone know how to output unsigned builds with cordova's run by any chance? Sep 12 21:48:28 I never said anything about any mounting Sep 12 21:48:59 you *might* try running "stop adbd" followed by "start adbd" on your phone (use connectbot or android term or something) Sep 12 21:49:18 (also make sure you're running it as root) Sep 12 21:49:36 stop adbd? is this part of the sdk? Sep 12 21:49:46 just do it Sep 12 21:49:46 like ./adb stop? Sep 12 21:49:47 abd kill-server Sep 12 21:49:51 no Sep 12 21:49:51 oh. i've done that already Sep 12 21:49:54 and start-server Sep 12 21:50:02 and sudo kiling Sep 12 21:50:04 did you miss the part that says "ON YOUR PHONE"? Sep 12 21:50:04 and sudo starting Sep 12 21:50:07 what phone? Sep 12 21:50:28 this is foreign to me. what program is adbd it sounds non standard Sep 12 21:50:32 my Note 2 has an extremely flaky USB connection Sep 12 21:50:41 along with the bad cords Sep 12 21:50:43 dogarrhea, how about you just do it now and ask stuff later Sep 12 21:50:44 note, that attaching to a windows machine somehow works Sep 12 21:50:53 ravilov how? open up terminal on phone? Sep 12 21:50:59 what exactly do you think your adb from the computer connects to? duh Sep 12 21:51:11 dogarrhea, please read what I said again, it is all explained there Sep 12 21:51:53 soi have to install this connect bot tool? Sep 12 21:52:02 sigh Sep 12 21:52:14 I think you just need to restart your phone and try again, maybe. Sep 12 21:52:23 I never heard of adbd either. Sep 12 21:52:24 i've restarted my phone as well Sep 12 21:52:43 any permutation of stop adb server restart phone sudo and what not it's been tried Sep 12 21:52:47 this really makes me think google is just simply not working for some people Sep 12 21:52:49 close intellij. Sep 12 21:53:21 either that or people think adb just "magically" connects to whatever endpoint with there being nothing on the other sie Sep 12 21:53:24 side* Sep 12 21:53:55 well. you're asking me to diagnose a non connectivity issue by connecting to the phone some how Sep 12 21:54:12 and first query for adbd is http://stackoverflow.com/questions/15336215/how-to-restart-adb-from-root-to-user-mode Sep 12 21:54:19 which doesn't really say what adbd is at all Sep 12 21:54:53 on unix/linux (android included) anything ending in "d" is a daemon Sep 12 21:55:11 well not everything, but that is the convention Sep 12 21:55:28 how do I connect to a daemon on the phone that won't let me connect? Sep 12 21:55:47 you're just not getting it I'm afraid Sep 12 21:55:57 and I'm running out of energy to explain further Sep 12 21:55:59 apparently not Sep 12 21:56:32 so i have to root my phone to use connectbot? Sep 12 21:56:48 bottom line - if your phone is not even detecting being connected to usb, then there is something wrong with either your phone, or the cord, or both, or maybe even the port in your computer Sep 12 21:57:00 dear lord, where in the world are you getting this crap?! Sep 12 21:57:06 rooting to use connectbot? really? Sep 12 21:57:10 use connectbot or android term or something Sep 12 21:57:19 i'm trying to find out what is involved here Sep 12 21:57:22 you do however need root to restart adbd Sep 12 21:57:30 so i need to root the phone Sep 12 21:57:43 I would kind of think any device (real or virtual) used for development would have been rooted Sep 12 21:58:16 that's not really a good assumption. since apps are supposed to run unrooted Sep 12 21:58:29 I said for development Sep 12 21:58:32 not for running apps Sep 12 21:58:41 you don't test/run your apps during development? Sep 12 21:58:54 when you're actively developing an app, having root is just infinitely useful Sep 12 21:59:13 not for running apps like a normal user * Sep 12 21:59:38 dunno, I just can't even imagine using my phone without having root Sep 12 21:59:44 same Sep 12 21:59:51 even for normal everyday stuff, not to mention for testing apps Sep 12 21:59:51 i think it would be better if phones didn't just leave hanging processes around that require me to root my phone to kill Sep 12 21:59:57 I need to do things like inspect databases in /data Sep 12 22:00:10 ravilov: that's just you. among millions of other people Sep 12 22:00:20 grandmas. gramps. etc Sep 12 22:00:28 dude... Sep 12 22:00:29 I just Sep 12 22:00:31 I give up Sep 12 22:00:35 you're too thick right now Sep 12 22:01:01 i'm just unable to fathom that a daemon that isn't being used with no possibility of being used just hangs around. it's a bug for sure Sep 12 22:01:08 and somehow i'm dumb? Sep 12 22:01:17 root will take anotehr hour at least Sep 12 22:01:19 nope, that's not a bug at all, whatsoever Sep 12 22:01:25 that daemon is *supposed* to run at all times Sep 12 22:01:38 at least while "usb debugging" is enabled Sep 12 22:01:48 it lets me connect on windows.. not on linux. and it wasn't like this before lunch Sep 12 22:02:02 dunno Sep 12 22:02:22 point is, this was supposed to be a quick workaround so you don't have to restart your phone Sep 12 22:02:25 what is this discussion btw :) seems random :) and user'ish Sep 12 22:02:29 but you said you restarted it anyway and it didn't help Sep 12 22:02:38 so rooting and/or restarting adbd won't do anything Sep 12 22:02:48 so why suggest it ? Sep 12 22:02:52 am I thick again? Sep 12 22:03:04 yes, because apparently you forgot the beginning of this discussion Sep 12 22:03:13 StingRay_, he does indeed seem more like an user than a developer :) Sep 12 22:03:40 even John Carmack has trouble with Android Sep 12 22:03:51 is he stupid? Sep 12 22:03:53 is he thick? Sep 12 22:03:57 he's not into smartphone os stuff anyway Sep 12 22:04:05 he's into higher levels of abstraction Sep 12 22:04:05 are you fucking serious>? Sep 12 22:04:10 yes Sep 12 22:04:15 what the fuck is Occulus then Sep 12 22:04:22 No Sep 12 22:04:23 all they are doing is android work for VR Sep 12 22:04:32 He said that Android was messy or something Sep 12 22:04:37 I doubt he did it all by himself Sep 12 22:04:44 ok fine Sep 12 22:04:46 So it's not just his frustrations Sep 12 22:04:48 John Carmack is a moron Sep 12 22:05:00 Linus Torvalds must be stupid too Sep 12 22:05:17 I can't believe this channel Sep 12 22:07:03 I can't believe this conversation :) Sep 12 22:07:42 yeah they are all dolts Sep 12 22:08:21 how come genymotion camera never works Sep 12 22:08:57 have to restart emulator/adb 5 times Sep 12 22:08:59 cause virtualBox is a bit …creepy :) Sep 12 22:09:04 any tricks? Sep 12 22:09:20 never use it…sorry Sep 12 22:09:36 its cool cool Sep 12 22:09:54 requires hooks into too many things that run when they just dont need to… i forget what they are…but why are they running! Sep 12 22:11:09 for some strange reason people here get really upset when they don't get the answer they want, lol Sep 12 22:12:15 nice deflection Sep 12 22:12:36 ravilov stop being full of crap he's not into smartphone os stuff anyway Sep 12 22:12:44 he's into higher levels of abstraction Sep 12 22:13:05 StingRay_: i did just drag and drop a video from my file explorer to the emulator though, thats pretty cool :P Sep 12 22:13:11 um okay sure Sep 12 22:13:14 whatever you say Sep 12 22:13:49 JacobTabak yeah, just I dont like all the virtual crap it runs all the time that does/can screw with some mac OSX stuff Sep 12 22:14:03 he's trying to use the SDK. That's not working out for him. He's trying to use the NDK (closer to hardware) and that's also not working Sep 12 22:14:15 so enough with your crap lying bullshit Sep 12 22:14:22 StingRay_: i understand where you’re coming from, my computer does weird stuff sometimes :| Sep 12 22:14:30 I really don't see how whatever he's doing over there has anything to do with your phone and your situation Sep 12 22:14:45 that's why I said what I said, because it seems irrelevant anyway Sep 12 22:15:15 you're just all worked up right now, and for no good reason at all Sep 12 22:15:59 i'm annoyed that you keep lying Sep 12 22:16:14 ok, you can think of it as lying, not like I care Sep 12 22:16:29 dishonesty, lying, misrepresenting Sep 12 22:16:32 whatever you label it Sep 12 22:16:42 I actually tried to help Sep 12 22:16:43 not sure whts going on here lol Sep 12 22:16:48 but you were just not listening Sep 12 22:16:51 so eventually I gave up Sep 12 22:17:10 just like I'm going to give up right now Sep 12 22:17:17 lag test Sep 12 22:17:50 apparently your help is not very useful. and you don't have anything better to do than to suggest incorrect things anyways Sep 12 22:18:05 whatever dude Sep 12 22:18:09 so... you must not have a job or actually do anything useful for a living. so i probably don't care what you say anyways Sep 12 22:18:15 take your frustration elsewhere, it would do you more good Sep 12 22:19:19 so I can't use google play services on an emulated android through eclipse? Sep 12 22:19:50 ANGRYSTEVE incorrect statement, with an odd question mark :) Sep 12 22:20:50 I was told by my TA that it doesn't work Sep 12 22:22:54 hello, i'm using android studio and gradle, can i safely ignore maven updates, i don't know what it is, is it needed? http://imgur.com/zQlleCc Sep 12 22:24:03 maven is like gradle I believe. Sep 12 22:24:48 johnc--, yes you can safely ignore maven updates Sep 12 22:25:15 johnc--, but Maven repository is something else. You don Sep 12 22:25:26 don't wanna ignore that, BUT now we use jcenter :) Sep 12 22:25:50 ok thanks Sep 12 22:29:04 ok finally done with this nonsense https://github.com/jacobtabak/Picasso-Video-Frame-Loader **** BEGIN LOGGING AT Fri Sep 12 22:40:38 2014 Sep 12 23:13:28 I'm having some trouble sending custom cookies with HttpClient Sep 12 23:13:28 None of the examples I try seem to work :/ Sep 12 23:13:29 I can't seem to find .getCookieStore() in android's HTTPClient **** BEGIN LOGGING AT Fri Sep 12 23:15:27 2014 Sep 12 23:20:00 lol Sep 12 23:20:10 usb hardware failure. there was a piece of dust in the usb port Sep 12 23:20:36 applied some air to it. now usb device connects Sep 12 23:21:00 my god Sep 12 23:21:09 terminator 2 AND Scarface on different channels... what to do Sep 12 23:36:38 watch Maid in Manhattan Sep 12 23:39:54 I have a beginner question about how to organize Activities/Fragments: My application requires authentication, but persists the login details. Should by launch activity be the main view, and then just transition to a LoginActivity if the user isn't authenticated? Sep 12 23:40:58 dstaley think thats more a design question based on context but I would assume for the most part yes Sep 12 23:41:23 or rather thats how I would do it in all the immediate things that spring to mind :) Sep 12 23:42:16 but would depend lots on whats going on and the conditions of the flow, also what info and results… pretty much all of it :) Sep 12 23:42:26 StingRay_: Yeah, it's what I thought made the most sense as well! My issue, however, is that when I launch the LoginActivity from the MainActivity, the MainActivity is still in the backstack, so if I press back, it goes to the MainActivity as opposed to exiting the application. Sep 12 23:43:25 StingRay_: Any ideas when you wouldn't use that flow? Sep 12 23:47:05 but the main activity would have 2 states though right ? Sep 12 23:47:11 guessing btw Sep 12 23:47:39 StingRay_: What do you mean by two states? Sep 12 23:47:50 normal state "not logged in" with some nice graphic or presentation that relates to the app along with a "not logged in" while the loging fires Sep 12 23:48:04 then returns to the main with a result that switches state to logged in Sep 12 23:48:16 or I would assume this is the simplest thing for you to do Sep 12 23:49:15 StingRay_: Well, ideally the MainActivity wouldn't show anything if the user wasn't logged in. I want to keep all of that separate and in the LoginActivity Sep 12 23:49:51 It'd be awesome if the user never saw the MainActivity if they weren't logged in Sep 12 23:49:52 sorry, I'm thinking of it in my head as a dialog themed activity for the login :) Sep 12 23:50:10 but these are design aspects that you should decide before planning any implementation really Sep 12 23:50:32 Well, I have most of that done already. Sep 12 23:51:08 The login screen is a full-bleed image with the name of the app and a login button, which transitions to a list of items from the user's account. Sep 12 23:51:29 but I'd prefer not to flash the list layout before transitioning to the login view Sep 12 23:52:33 hence why I would probably use fragments or an activity with 2 states Sep 12 23:52:40 but thats just me Sep 12 23:52:56 Thankfully everything's a fragment at the moment! Sep 12 23:53:02 and I'm arty farty that sometimes lacks common sense, much like most designers Sep 12 23:53:21 My listview and detailview are both fragments Sep 12 23:53:34 so should my mainactivity also have a login fragment? Sep 12 23:54:06 well since it's a utility function in my eyes I would use fragments Sep 12 23:54:40 if it were soemthing like a signup then maybe I would choose not to… but depends on the overall design and feel of the app I guess Sep 12 23:56:39 nope, just a button. Its anonymous login Sep 12 23:56:51 this is a rough version: https://around.rocks Sep 12 23:57:36 I dont understand this.. cannot resolve R Sep 12 23:57:40 what could that be? Sep 12 23:58:24 P3nnyw1se you know what R is though right ? Sep 12 23:58:34 its my resources? Sep 12 23:59:03 well auto generated pointer list Sep 12 23:59:26 all my activities are messed up.. cant resolve R.. can I reload it somehow? Sep 12 23:59:27 so it's not generated…that would cause it Sep 13 00:00:25 not sure if I understand that, how would it suddenly not generate Sep 13 00:00:47 same reason java files may no build Sep 13 00:00:52 errors of some kind Sep 13 00:00:56 names, syntax etc Sep 13 00:01:21 names and or syntax errors in my resources.. like my xml files .. cause that the R is not generated? Sep 13 00:01:38 xml build into R Sep 13 00:01:49 xml syntax error = no R build Sep 13 00:01:59 eclipse right ? Sep 13 00:02:03 and ant Sep 13 00:05:05 Android studio... no idea what the error is Sep 13 00:05:09 cant find one on my xml Sep 13 00:05:36 oh, never really had them while using AS Sep 13 00:05:49 you sure it just dont need a clean/rebuild ? Sep 13 00:09:51 hi, does anyone know if Google has posted the source code for the Android Wear app? Sep 13 00:16:10 hey all, i have a singleton that has a hash to store objects related to downloads. for some reason, the hash is null in the receiver when the downloads completes. any ideas why? Sep 13 00:16:22 could the singleton be freed with GC? Sep 13 00:25:10 dcope: paste some code Sep 13 00:28:11 any idea why I'm geting [2014-09-12 20:13:54 - google-play-services_lib] Could not find google-play-services_lib.apk! Sep 13 00:28:20 desmin88: for what? the singleton? Sep 13 00:28:26 sure Sep 13 00:28:53 how can I get the ID of a current image added to an imageview?.. if its changed dynamically... I tried this String resourceName = currentView.getDrawable().toString but thats not it Sep 13 00:29:14 you mean the resource id? Sep 13 00:29:39 I mean the source of the imageview Sep 13 00:29:55 so the drawable Sep 13 00:30:32 yes Sep 13 00:30:35 How do I select thumbnails for images from a particular folder using CursorLoader? To select images from some particular folder I can use MediaStore.Images.Media.DATA + " LIKE '%" + APP_PICTURES_DIRECTORY_NAME + "%'" as a selection argument but how does it work if thumbnails? Should I gather images IDs first and then use ...Thumbnails.IMAGE_ID IN (...) or there's the way of doing it simpler? Sep 13 00:30:51 what is wrong with imageview.getdrawable Sep 13 00:31:30 nothing but when i ToString it gives me some code for it... I was hoping I could get something that could help me differentiate Sep 13 00:31:44 like a src name Sep 13 00:31:49 picture.jpg Sep 13 00:33:02 whats your usecas Sep 13 00:33:04 usecase* Sep 13 00:33:53 depending on which src picture is loaded.. I want to do different stuff... I dont know what src picture the imageview holds Sep 13 00:35:03 how are the imageviews getting loaded Sep 13 00:36:01 you can just do imageview.setTag(url) Sep 13 00:36:06 in the xml, from start.. they change dynamically from button clicks Sep 13 00:36:19 hmm Sep 13 00:36:57 so I cant read the actual filename of the drawable? Sep 13 00:37:00 no Sep 13 00:37:04 ok Sep 13 00:37:05 the drawable might not have a filename Sep 13 00:37:14 a drawable is just an abstraction for anything that can be drawn Sep 13 00:37:30 anything that can be drawn has a filename, or it can't build ;) Sep 13 00:37:37 nope. Sep 13 00:37:56 name that which doesn't have a name Sep 13 00:37:57 ;) Sep 13 00:38:01 can set a tag on your imageview when you set an image to it Sep 13 00:38:12 oops n/m already suggested Sep 13 00:38:45 Finally, registering is such a pain :P Sep 13 00:38:58 P3nnyw1se: theres plenty of things Sep 13 00:39:12 you're thinking that a drawable only contains an imageview loaded into it Sep 13 00:39:22 ok the hash isn't null it's just empty Sep 13 00:39:27 so the singleton could be getting deallocated Sep 13 00:40:06 actually Im thinking the drawable as loaded into the imageview Sep 13 00:40:37 imageviews dont have to be from a file Sep 13 00:41:37 no but the src does, dont it ? Sep 13 00:42:01 new ColorDrawable(Color.RED) Sep 13 00:42:06 set that and find the file Sep 13 00:42:52 the imageview source doesnt have to be from a file either Sep 13 00:43:14 dam not sure I can construct a bitmap in 1 line :( Sep 13 00:43:38 lol Sep 13 00:43:46 fair enough, but you argue that I cant discover the name of an imageview source.. I refuse to believe that ;) Sep 13 00:43:57 you cant Sep 13 00:44:02 given an imageview and nothing else Sep 13 00:44:03 you cannot Sep 13 00:46:15 but to answer your question Sep 13 00:46:23 just do a imageview.setTag(url) Sep 13 00:47:00 tag it each time with a Unique name for the src? Sep 13 00:48:26 yup **** BEGIN LOGGING AT Sat Sep 13 01:26:41 2014 Sep 13 01:37:31 And we're back :p Sep 13 01:38:05 Hey everyone Sep 13 01:38:48 Does anyone know what's up with java.lang.NoSuchMethodError in JUnit testing? Sep 13 01:39:00 I changed all my methods around, moved some from the test to what im testing.. Sep 13 01:39:16 now I try to run the test and its crapping out on the first method I call Sep 13 01:39:23 it doesn't matter which method I call Sep 13 01:39:30 I've cleaned the project Sep 13 01:39:51 restarted eclipse.. Sep 13 01:41:19 theres your problem Sep 13 01:41:22 your using eclipse Sep 13 01:43:20 BAM! Sep 13 01:44:14 burn.. Sep 13 01:45:14 g00s? any idea? Sep 13 01:48:28 no idea. i don't test Sep 13 01:48:47 stuff always works from the beginning ;) Sep 13 01:48:55 g00s bruteforces apps with raw intellect Sep 13 01:48:59 there is no need for silly testing Sep 13 01:49:20 i only have a few unit tests in my app for the parsers i wrote Sep 13 01:49:38 so much shit on android goes wrong i have almost no control over Sep 13 01:50:45 fuuuuuuuuuu Sep 13 01:50:49 it was workign for so long Sep 13 01:50:55 i started building methods in the test Sep 13 01:51:07 then i moved them to their own classes and put some in the main class I was testing Sep 13 01:51:11 now splat Sep 13 01:51:29 i only had 2 crashes in my app over 4 years; one was i forgot to wire up an android:onClick handler, the second was in android 4.o they changed the content provider Uri permissions Sep 13 01:51:40 g00s stop flaunting Sep 13 01:51:44 XD Sep 13 01:51:50 also please dont tell me you use android:onClick ;) Sep 13 01:52:19 now all of the stuff i'm working on relating to BLE - again, i really don't know how to test it Sep 13 01:52:37 not like i'm going to mock the bluetooth apis Sep 13 01:52:58 in the last 2 days i've found lots of undocumented behavior - dark behavior Sep 13 01:53:01 major gotchas Sep 13 01:53:08 demons Sep 13 01:54:19 its very frustrating because, working around the gotcha is just getting simple things to work makes the whole design 10x more complicated Sep 13 01:54:42 android ble apis just suck Sep 13 01:55:17 so yeah, i guess i do test a lot, but its more exploratory - does this api behave like its supposed to, etc Sep 13 01:55:28 hmm, just came across somethign by JakeWharton Sep 13 01:55:31 isn't he in here? Sep 13 01:55:43 he has his own show now, i think the Jake Show Sep 13 01:56:02 http://androidbackstage.blogspot.com/2014/08/android-developers-backstage-episode-12.html Sep 13 01:57:53 Tricknology: no Sep 13 02:02:25 Talking to someone random today at a bbq. I say I use java. He says "oh ur one of tthose weird guys..." Sep 13 02:02:41 android bbq ? Sep 13 02:03:01 Nah a meat bbq Sep 13 02:03:06 Lol Sep 13 02:03:09 oh, its not yet http://www.bigandroidbbq.com/ Sep 13 02:04:13 too bad I live in africa, looks like a good time Sep 13 02:04:29 zylinx hehe, bbq with lemonxah ? Sep 13 02:04:55 i doubt it, but that would be a coincidence ;) Sep 13 02:06:15 lemonxah, lol well there was someone there called lemoene. Close Sep 13 02:09:16 I fixed it... Sep 13 02:09:35 In my fury of cleaning things out, I had unchecked the project I wanted to test Sep 13 02:09:56 Bummed my mobile provider blocks web sockets. Do any of you guys use them in your projects? Sep 13 02:10:06 I had to add the project as a libaray Sep 13 02:10:39 Tricknology is that in eclipse? Sep 13 02:12:19 zylinx try port 443 ? Sep 13 02:12:34 i was curious why this would not work Sep 13 02:12:35 blocked :( Sep 13 02:12:41 came across http://blog.hekkers.net/2012/12/09/websockets-and-mobile-network-operators/ Sep 13 02:12:47 odd Sep 13 02:13:19 what is the standard for variables? Sep 13 02:13:23 thread_name? Sep 13 02:13:29 or threadName? Sep 13 02:13:29 " Its only relationship to HTTP is that its handshake is interpreted by HTTP servers as an Upgrade request.[1]" Sep 13 02:13:36 aha Sep 13 02:13:40 I was taught both ways Sep 13 02:14:00 zylinx, yes it is Sep 13 02:14:05 g00s, http://websocketstest.com/ Sep 13 02:15:02 all fail Sep 13 02:19:26 i have to fill out and sign a document and email it to my provider to get an unrestricted APN for websockets to work Sep 13 02:19:36 Hey guys, if you had to get a new phone today, what would it be (Android of course) Sep 13 02:19:44 I'm with vodacom Sep 13 02:20:05 forgot... US? unless there are international phones Sep 13 02:20:54 i'm talking Google Nexus 5, Samsung S5 or Note 4, HTC One, Moto M8 Sep 13 02:21:18 new Moto X seems to be pretty well-regarded... I like my One E8 Sep 13 02:23:20 Can anyone indicate a good tutorial for beginners in android development, since installation of all essentials programs. Sep 13 02:23:56 sepoki: you mean apart from the stuff on d.android.com? Sep 13 02:26:36 Leeds, yeah Sep 13 02:27:31 you've gone through all the training and docs there already? Sep 13 02:32:49 not yet Sep 13 02:43:26 sepoki, try vogella. It's waht I used Sep 13 02:43:38 and if you run into problems, stackoverflow or google Sep 13 02:43:55 http://www.vogella.com/tutorials/android.html Sep 13 02:44:10 Start writing massive amounts of bad code Sep 13 02:44:48 Everyone does, everyone gets better Sep 13 02:46:51 Tricknology, thank you, i will take a look on it Sep 13 02:47:29 capella-s3, haha, certainly i am going to do that Sep 13 02:50:50 Contribute to some open source projects... oh look... here's one :p http://whatcanidoformozilla.org/#!/progornoprog/proglang/java/firefox-mobile Sep 13 02:51:45 * capella-s3 waiting for g00s to comment :p Sep 13 02:55:45 FOSS is a great way to gain skills Sep 13 02:55:58 also it makes you feel good inside Sep 13 02:56:24 the peer review is nice too, when its not annoyingly exposing your bugs ;) Sep 13 02:59:50 sepoki - also look at the examples that come with the SDK **** ENDING LOGGING AT Sat Sep 13 02:59:58 2014