**** BEGIN LOGGING AT Wed Sep 10 02:59:58 2014 Sep 10 03:03:18 more fun stuff http://www.intel.com/content/www/us/en/do-it-yourself/maker.html Sep 10 03:03:47 anyone know how to get getPaint().measureText(mystring) to factor in that I'm using setTextSize(TypedValue.COMPLEX_UNIT_SP, ...)? Sep 10 03:03:47 that video is quite good, can't see me ever wanting this device though Sep 10 03:04:06 the values are a bit on the small side Sep 10 03:05:22 g00s_: is this your latest project? Sep 10 03:05:40 coax75ohm: can't you set the textsize of the paint object before measure? Sep 10 03:05:57 bankai_au no but all my ideas revolve around needing HW lately so i find these interesting Sep 10 03:07:11 still the nRF51822 based products are nice. i have a hard time reconciling intel and power efficiency :) Sep 10 03:07:14 isn't that kind of redundant? guess I can try it Sep 10 03:07:18 for what i'm thinking about anyhow Sep 10 03:08:58 g00s_: it's probably the same atom proc as used in their phones Sep 10 03:09:09 g00s_: i'll try to pick up one and see Sep 10 03:09:27 g00s_: i've got a handful of intel phones; they're interesting. Too bad they're mostly dead now since intel refocused on tabs Sep 10 03:09:30 dragorn any projects you might use it for ? Sep 10 03:10:14 g00s_: i'm curious about its capability for doing radio processing and I'm also curious if the OTG port has full gadget support; if it does, i've got some code to port Sep 10 03:11:13 dragorn intel is still coming out with smartphone chips like Sofia which will have 3g/4g Sep 10 03:11:45 g00s_: yeah they resumed some of their phone dev Sep 10 03:11:54 g00s_: unfortunately they cancelled the one I needed at the time :P Sep 10 03:12:44 g00s_: is that their rpi competitor? I remember that they would be making one. Any one had a go a it? Sep 10 03:13:42 hm, not sure about rpi. they also have galileo Sep 10 03:16:47 canvs2321: Guess not, docs say "Please use this only to consult the Paint's properties and not to change them." for getPaint() Sep 10 03:24:17 coax75ohm: what if you just create a new paint object and set it up to measure Sep 10 03:27:57 canvs2321: I'd rather not have to do that, reading up on DisplayMetrics... Sep 10 03:43:09 9:20AM keynote at Droidcon? Oh my... Sep 10 03:57:55 hey guys, by using text.setTextSize(16 * getResources().getDisplayMetrics().density); I get completely different sizes on a 480*800 (Nexus S) and a 1080*1920 (Nexus 5) screen Sep 10 03:58:17 Ologn: keynote == hangover recovery time Sep 10 03:58:19 Shouldnt that line make text same size on both screens, no matter the density of it? Sep 10 03:59:00 Webflashing: they'll be close Sep 10 03:59:21 software density values vary from physical Sep 10 03:59:47 JakeWharton, I need something more accurate, because the text size is tremendously different. What approach should I take to be able to fix this? Sep 10 04:00:39 well you should be using sp so that users with accessibility settings don't hate you Sep 10 04:00:50 and it will automatically handle scaling for densities Sep 10 04:02:23 hmmm, so I should specify SP as unity when doing text.setTextSize ? Sep 10 04:02:39 example: http://i.imgur.com/1Kef9qv.png Sep 10 04:03:21 hey guys, do you perhaps know how to integrate inmobi with admob? Sep 10 04:03:29 Chris Haseman is giving the Saturday keynote...I heard a speech of his where he talked about mobile fragmentation. He said "I used to work with J2ME when every device had different keycodes. THAT was fragmentation" Sep 10 04:03:33 I tried it but i keep getting "wrong ID" Sep 10 04:03:44 "W/Ads (27456): Invalid unknown request error: [Cannot determine request type. Is your ad unit id correct?]" Sep 10 04:04:18 Agamemnus, what do you mean by integrate inmobi with admob Sep 10 04:04:31 Admob lets you add other ad networks Sep 10 04:04:51 Ologn seems like falacious argument; it was bad then so it can't be bad now Sep 10 04:04:56 heh Sep 10 04:04:57 You need to add in your username/pass, the "app ID", and a secret api key Sep 10 04:05:04 "when i was a kid, we ... " Sep 10 04:05:13 But then I don't know what ad ID I need to use. Sep 10 04:05:16 Agamemnus, yes, you can do ad mediation with Admob Sep 10 04:05:27 If I use the regular one, it seems inmobi doesn't serve any ads Sep 10 04:05:47 If I use inmobi's app ID, that's the error I get ^^ Sep 10 04:06:04 I turned off the part that automatically gets prices for me. Sep 10 04:06:06 Webflashing: wat. those aren't pixel perfect Sep 10 04:06:21 of course they're wildly different sizes Sep 10 04:06:27 If I have that on, there's a yellow flag that says "pending". Sep 10 04:06:31 JakeWharton uhm Sep 10 04:06:49 have you done it? I am finding it very difficult to communicate with inmobi Sep 10 04:06:58 they only respond to tickets at 2AM Sep 10 04:07:07 ....and usually they don't understand my question Sep 10 04:07:08 they are just TextViews with some random text for now. Sep 10 04:07:12 So I have a lot of inheritance to do in java, yet I get stuck in domain specific contexts: example, i have a game where objects that are drawn all subclass a field "Drawer" which handles the rendering of that object. If I am using canvas, i need to pass the canvas, and I have not figured out how to abstract the draw function and then implement its use of canvas in say, "CanvasDrawer" so instead, I simple have a superclass that is Sep 10 04:07:12 abstract and contains the set of non-abstract methods that implementors can choose to override. Thus when dealing with a canvas, I just override draw(canvas c) instead of draw(). Sep 10 04:07:22 My problem with Inmobi is how much the like to communicate Sep 10 04:07:30 Is this a bad constructor or too hacky to collect interfaces? Sep 10 04:07:59 yeah it's weird. They have one guy message another guy who finally messages you Sep 10 04:08:48 I have a thought Sep 10 04:09:08 Maybe InMobi doesn't have the video ads enabled.. although then it would give me info on their dashboard Sep 10 04:09:10 Sorry to interupt Sep 10 04:09:16 I'm trying to serve video ads. Sep 10 04:09:37 lasserix_: I don't know anything about Java Sep 10 04:09:58 Dum dum duum. Sep 10 04:10:59 Agamemnus, I generally have Admob as the mediator and primary ad network, and then send traffic off to others like Millennial Media and Inmobi as a backup Sep 10 04:11:42 Actually my last serious Inmobi mediation was when Adwhirl was still around Sep 10 04:11:48 But, Admob only pays for clicks, and I don't want people to click on my interstitial ads and fly away. Sep 10 04:11:54 (It's a jigsaw game.) Sep 10 04:12:12 What I am hoping to do is to have interstitial videos. Sep 10 04:12:56 I can do this with mopub. I was using mopub with CocoonJS for Cordova (JS -> app), but I'm not using CocoonJS right now. (too buggy) Sep 10 04:13:11 Agamemnus, the last thing I think you have to worry about is someone flying away while depositing money in your pocket Sep 10 04:13:24 99% of people will fly away and not put money in your pocket Sep 10 04:13:25 So right now I'm using a guy's Cordova plugin Sep 10 04:13:44 I want people to play the game and have the ads fund me Sep 10 04:13:56 Right now, I made about 6 cents Sep 10 04:14:06 But it's mostly me testing and I don't click the ads. Sep 10 04:14:07 Agamemnus, I found ads in games to be tough Sep 10 04:14:44 I could be "normal" and use banners but I think that will ruin the experience Sep 10 04:15:04 I have an app with 170k downloads which I pulled because I couldn't figure out how to make money with ads Sep 10 04:15:06 I also read that video ads pay the most. Sep 10 04:15:41 and they should, in theory. Sep 10 04:15:54 I pulled the app in May, the source code is on Github if you want to try it Sep 10 04:16:28 Try what? Putting the app on the play store with different ads? Sep 10 04:16:50 Or.. Sep 10 04:17:03 or try the app ? :P Sep 10 04:17:22 Yes, you could test it if you want, put in on Play Sep 10 04:17:31 I mean, it's like a guaranteed success I think Sep 10 04:17:39 Success in terms of installs, not $$$ Sep 10 04:17:46 Link me, 170K sounds serious... I would be interested to see what you did Sep 10 04:18:10 i had a friend that worked at inmobi ... Sep 10 04:18:11 I ported Tuxmath to Android Sep 10 04:18:47 g00s_: I see Sep 10 04:19:13 he said the android devs hated the fragmentation Sep 10 04:19:29 yes, sure. Sep 10 04:19:35 That's why I want to run it through admob Sep 10 04:19:37 lots of problems with webview, i guess they use that Sep 10 04:19:45 (also because I don't know any Java, or barely) Sep 10 04:19:59 Agamemnus ah ,well - make sure you learn some java :) Sep 10 04:20:13 well, i am using a static build of webview (chromium 37) and I can agree it still has issues Sep 10 04:21:34 What I really want is mopub. I tried it and it worked great. But I didn't do the integratio Sep 10 04:21:37 integration Sep 10 04:21:43 Ludei (CocoonJS) did Sep 10 04:22:05 But their API was/is pretty buggy, and they said they'd do a new build like this week Sep 10 04:22:16 Not sure I can trust devs' ETAs tho :P Sep 10 04:25:39 WTF, the android SDK doesn't expose whether a device is connectable or non-connectable based on the advertising packet type Sep 10 04:26:01 i'd like to strangle somebody .... Sep 10 04:27:36 (BLE) Sep 10 04:28:45 which I saw someone call Bluetooth LTE earlier on :) Sep 10 04:29:17 yeah lets get him Sep 10 04:33:42 i think the android SDK API makes a fundamental mistake in trying to unify BT classic with BTLE in terms of abstractions Sep 10 04:34:23 christ sake, they have -classic and -le have nothing to do with each other. excelt they are called BT Sep 10 04:38:14 does anyone know what "a rate suitable for games" means in actual units for the accelerometer? Sep 10 04:39:58 a little faster than the common target framerate coincidentally Sep 10 05:30:22 woohoo Sep 10 05:45:57 ProjectN, no, I mean my layout will sit on top of the wallpaper, so chopped off corners have to be see-through Sep 10 05:54:17 https://scontent-a.xx.fbcdn.net/hphotos-xap1/t31.0-8/10662059_689747334449809_5948850265431463611_o.jpg Sep 10 06:11:49 hey JackWharton inspired by that talk i wrote a class that measures something about the group of functions it comes from then passes a new version of itself from another subclass to do its actual implementation Sep 10 06:14:35 can't tell if im just a little too one with the coding or this is actually a good idea ;p Sep 10 06:23:47 Can I not have a selector on an ArrayAdapter? If so, how? Right now I have an image and a text label, however I am only able to highlight the text label, which just looks pathetic. Or do I need to use a custom ListView rather than ArrayAdapter? Sep 10 06:32:08 good morning Sep 10 06:32:17 so no way of openning navigation drawer on top of action bar?? Sep 10 06:38:52 SASDOE, I Sep 10 06:38:57 oops Sep 10 06:39:28 SASDOE, I thought arrayadapter is an abstract data structure and not an UI element? Sep 10 06:43:45 lasserix_ "measures something about the group of functions it comes with then passes a new version of itself".. what is that? Sep 10 06:46:22 sarbs, it is called "zen coding" although some prefer "black magic" or "voodoo" Sep 10 06:55:14 I'm new to android so I'm probably mixing things up here. Do you know then how I could highlight a whole line in the arrayadapter? Sep 10 06:55:56 sarbs: here it is kind of not optimized but you can take a look: http://pastebin.com/ieCXX2f9 Sep 10 06:56:07 basically the first 10 clicks from the accelerometer just go to measuring time Sep 10 06:56:19 then it swaps itself out for SensorPipe which actually updates the values Sep 10 06:56:44 i needed to do this since i needed the freqency of the updates for the calculation to transform the accel values into force components Sep 10 06:57:00 and i didn't want an if average set branch Sep 10 06:58:08 im going to drop all the arrays and just use primitives in the future Sep 10 06:58:28 or maybe not but anyways Sep 10 06:59:41 SASDOE you can use spannable string or Html.fromHTML and use html tags inside your string literal Sep 10 06:59:50 (use fromHtml in setText) Sep 10 07:01:32 But won't that just highlight the text label? I'd like for the whole line to be highlited, including the icon. Sep 10 07:03:40 use background drawable Sep 10 07:03:48 err background Sep 10 07:03:51 on the text view Sep 10 07:06:10 Ok I'll give it a try (I'm assuming I understood, which frankly is a wobbly premise) Sep 10 07:07:37 Cheeeers (I didn't set background on textView but view as a whole) Sep 10 07:08:22 lasserix_ cool, ok i see what you did Sep 10 07:11:19 what inspired you to do it that way instead of just something like if (mTiming) { mTiming = averageTime(event); } else { useAccelValue(event); } ? Sep 10 07:11:33 SASDOE, I guess you could take a look at some other pieces of code that do that, like the intention completion chooser Sep 10 07:11:37 that would have been the first method i would have thought of, though i do like the abstractability of the way you did it Sep 10 07:11:42 "complete action using" Sep 10 07:11:45 at least on older androids Sep 10 07:12:33 ravilov: I got it working, I was setting the background on the TextView, all it took was to set it on the parent view. As easy as that. Thanks thoug Sep 10 07:12:45 though* Sep 10 07:13:25 np Sep 10 07:13:48 next step would be to make it stateful instead of manually changing properties ;) Sep 10 07:18:21 Mhh I see I've still got quite a path ahead of me, since I didn't even understand what you just said? Sep 10 07:21:42 sarbs: didn't want an if else statement that is unnecessary 99.9999999999999999999999999999999999999999999999999999% of the time Sep 10 07:22:26 ahh, i see what you meant by the if branch then Sep 10 07:22:28 google "android stateful", basically it means defining sets of properties for various states (pressed, disabled, active) or any (meaningful) combination of them, constructing the view so it manages its state, and then letting everyting happen on its own :) Sep 10 07:23:01 optimizing at that level, i wonder what the cost of the virt method lookup is compared to a branch, though Sep 10 07:23:14 Ah nice! Tried that, to no avail, so chose the lazy way.. Sep 10 07:23:24 probably still less than the branch, if the runtime isn't intelligent about its prediction Sep 10 07:24:15 hmm if i make them final maybe it won't be so bad ;p Sep 10 07:24:53 it's unavoidably virtual because of the interface Sep 10 07:25:05 i'm actually curious about this.. might write a test case Sep 10 07:26:42 either way, that particular aspect is zilch compared to the actual work the two transforms are doing Sep 10 07:26:51 and you solved it neatly and extensibly, i like Sep 10 07:27:20 hehe yeah just wanted not to branch, kind of a habit unless branching is good to do for optimal thread context switching Sep 10 07:29:15 um Sep 10 07:29:27 isn't x?a:b still branching? :p Sep 10 07:29:43 albeit only once Sep 10 07:29:57 well, 10x Sep 10 07:30:01 but not 10,000,000x Sep 10 07:30:02 actually not once, TARGET_AVERAGE_COUNT times Sep 10 07:30:15 yeah that Sep 10 07:31:18 sarbs i believe the compiler can optimize out virtual lookup if it is clear Sep 10 07:31:30 testing now Sep 10 07:31:34 *i guess in fact final are Sep 10 07:32:37 lasserix_, I think now you should decompile the APK and look at the smali code for any further optimizations :p Sep 10 07:32:46 ahh yeah Sep 10 07:32:47 good idea thanks Sep 10 07:33:14 lol, have fun Sep 10 07:33:23 * ravilov is actually dealing with some smali code at the moment Sep 10 07:38:55 hmmm https://news.ycombinator.com/item?id=8295102 Sep 10 07:42:23 hello. I am unable to reliably connect my device via ADB. I think it can be a hardware problem. Sep 10 07:43:13 Is there another way to connect? or WiFi maybe? I want to install my app and hopefully use DDMS Sep 10 07:44:00 you can use wifi, but i think you have to connect via usb first Sep 10 07:44:01 adb can listen on tcp/ip too Sep 10 07:44:10 awe g00s_ Sep 10 07:44:12 :P Sep 10 07:44:16 hey lemonxah :) Sep 10 07:44:38 in other news: so looks like apple will start making paddlephones too Sep 10 07:45:19 heh it took me almost a year and half but i think i winning .. giving a tech talk today at my office about scala .. they are coming around and we will be able to code in scala now WIN! :) Sep 10 07:45:43 lemonxah scala on android ? Sep 10 07:45:55 yes and also on our backend Sep 10 07:46:05 so scala everywhere Sep 10 07:46:12 Yes I tried. need adb usb first Sep 10 07:46:36 either my device is not showing or I keep getting device unauthorized Sep 10 07:46:43 been doing scala on android in a personal capacity for a about 2 years now but now i will be able to do it on my work projects aswell Sep 10 07:49:14 wow Sep 10 07:49:20 lasserix_ virtmethod is 3x *slower* Sep 10 07:49:30 vedu, you might have better luck in #android-root Sep 10 07:49:30 gisting shortly Sep 10 07:51:57 sarbs if its final it's not looked up Sep 10 07:52:32 lasserix_ only if the type it's referenced by defines the method as final Sep 10 07:52:42 yeah Sep 10 07:52:56 in this case, SensorEventTransform.crunch can't by definition be final, it's abstract Sep 10 07:53:00 so it *must* be virtual Sep 10 07:53:12 no i mean if the subclass method is marked as final Sep 10 07:53:20 *the subclass implementation Sep 10 07:53:30 i don't think that's true Sep 10 07:53:32 but i'll test it Sep 10 07:54:32 Hey SimonVT, you there? I just saw your MenuDrawer.. amazing work.. does it also support sliding the drawer on top of the actionbar? Sep 10 07:54:37 sarbs how do you test it? Sep 10 07:54:50 i have a hunch the slowdown is caused by the continual re-setting of the SensorEventTransform Sep 10 07:55:03 what slowdown? Sep 10 07:55:07 did you actually test the code? Sep 10 07:55:20 Hello. seems like android-studio is not generating an apk. I cannot find it in /build. But my app installs on AVD propoerly Sep 10 07:55:20 lasserix_ https://gist.github.com/tophyr/665be244b4f8e7b2961e Sep 10 07:55:30 it wasn't slow or fast in the first place i was just kinda ummm spacy so did this for fun Sep 10 07:56:34 yeah, no worries. i still like the way you did it better than a hardcoded branch Sep 10 07:56:47 your way is more abstractable and you can build it up into way cooler things in the future Sep 10 07:56:54 well still just learning Sep 10 07:57:07 still on the cusp of finally getting how to actually implement a generic Sep 10 07:57:10 (for instance) Sep 10 07:57:19 but i was working on setting up a framework for games Sep 10 07:58:33 and, this test is running 2 billion operations in either 28 or 92 million µs.. meaning the branch or object set+virtmethod lookup is taking about .01µs Sep 10 07:58:40 ...naaaaaat a problem Sep 10 07:59:28 don't let my tinkering set you off the framework you built, i'm just doing this cuz i'm curious. the way you built it is good. Sep 10 08:01:26 oops forgot to add ++ to count in the if return statment Sep 10 08:01:43 yeah no thanks interesting Sep 10 08:02:06 all methods by default are equavilent to the interface function? Sep 10 08:02:44 not sure what you mean Sep 10 08:02:46 there's no difference between a superclass abstract method and a non-abstract method in terms of resolution? Sep 10 08:02:51 but all java methods are by default virtual Sep 10 08:02:53 well the gist you showed you are using an interface Sep 10 08:03:27 oh, yeah class + abstract method is same as interface, in this case Sep 10 08:03:32 though i will test that too :) Sep 10 08:03:47 Hmmm why is my layout_marginBottom getting ignored? Set it to 500 just to be sure, makes no difference. Sep 10 08:03:48 yello Sep 10 08:04:13 yeah an "interface" is just a limited abstract class Sep 10 08:04:23 unless we're talking about @interfaces, aka annotations Sep 10 08:05:00 sup detachYo Sep 10 08:05:12 how's everyone doing? Sep 10 08:05:16 another difference is that a class can implement several interfaces but have only one superclass Sep 10 08:05:32 i'm running jvm performance tests because i'm bored + curious Sep 10 08:05:52 ravilov: yeah i asked about that earlier Sep 10 08:06:01 sarbs what do you think? Sep 10 08:06:08 and I am bashing my head against the wall, because 5 is a logical limit for number of allowed pendingintents Sep 10 08:06:12 So I have a lot of inheritance to do in java, yet I get stuck in domain specific contexts: example, i have a game where objects that are drawn all subclass a field "Drawer" which handles the rendering of that object. If I am using canvas, i need to pass the canvas, and I have not figured out how to abstract the draw function and then implement its use of canvas in say, "CanvasDrawer" so instead, I simple have a superclass that is Sep 10 08:06:12 abstract and contains the set of non-abstract methods that implementors can choose to override. Thus when dealing with say a canvas onbject to draw on, I just override draw(canvas c) instead of draw(). Sep 10 08:06:17 (repost) Sep 10 08:06:45 detachYo is that documented or are you just not getting any more than 5? Sep 10 08:07:17 detachYo: are you making the pending intents unique? Sep 10 08:07:34 hello everyone Sep 10 08:07:38 i am not getting more than 5 Sep 10 08:07:42 yeah, they have a unique ID Sep 10 08:08:41 I have read somewhere that I have to cancel pending intents, once they are triggered. Sep 10 08:09:19 wouldn't GC take care of that? Sep 10 08:09:24 lasserix_ it sounds like you need Composition instead of Inheritance.. instead of public class Foo {extends|implements} Drawer { }, try public class Foo { Drawer mDrawer; } Sep 10 08:09:32 hehe yeah Sep 10 08:09:35 i was going to do that next Sep 10 08:09:45 but thanks for putting the right term to it Sep 10 08:10:06 sarbs: http://www.insightfullogic.com/blog/2014/may/12/fast-and-megamorphic-what-influences-method-invoca/ Sep 10 08:10:22 Foo isn't necessarily logically a Drawer.. *maybe* it implements a method that makes it a Drawable (not the android framework class), but it'll still have to implement what its version of draw() means Sep 10 08:10:40 with composition, though, you could just say @Override public void draw() { mDrawer.draw(); } Sep 10 08:10:49 yeah Sep 10 08:11:11 but the problem is here i need to pass the canvas Sep 10 08:11:25 how do i delegate draw() to draw(canvas c) ? Sep 10 08:11:39 foo.setDrawer(new CanvasDrawer(canvas)) Sep 10 08:11:57 err the canvas is passed each time its drawn Sep 10 08:12:08 hmm but i guess i could buffer it Sep 10 08:12:11 then that would solve the problem Sep 10 08:12:19 mm, maybe Sep 10 08:12:21 just draw on a canvas them dump that into the view's ondraw(canvas c) Sep 10 08:12:36 lasserix_, draw(mCanvas)? :) Sep 10 08:13:09 yeah but the contract has just draw() no canvas Sep 10 08:13:16 if your Drawer might change, then maybe you wanna do something like class Foo { public void draw(Drawer d) { d.drawSomeShit(); } } ... foo.draw(canvasDrawerInstance); Sep 10 08:13:37 it MUST implement a draw, not necessarily with a canvas Sep 10 08:13:43 right Sep 10 08:13:49 yeah i might do that, but probably not unti i start using opengl Sep 10 08:13:58 in that last example i gave, Foo knows how to draw itself on *something* that can draw Sep 10 08:14:13 it doesn't care how the Drawer works, it just knows that it can drawSomeShit() Sep 10 08:14:32 right Sep 10 08:14:42 that's what i do with my input controllers Sep 10 08:14:53 command design principle or something Sep 10 08:15:06 well that and like the facade or something Sep 10 08:15:11 in turn, the Bar that has a Foo doesn't care what Foo draws, it just cares that it draws onto a CanvasDrawable. Whereas a Funkle's Foo, should draw on a SurfaceDrawer, etc Sep 10 08:15:52 facade command :) Sep 10 08:16:37 lasserix_, I meant keep a member field mCanvas (set/initialized elsewhere) and just use that :) Sep 10 08:16:37 that is a fascinating article, btw Sep 10 08:17:05 ravilov: i can't without buffering an instance of canvas since i am passed the canvas by the os each draw Sep 10 08:17:10 *the canvas to draw on Sep 10 08:17:31 but i'd caution against using performance techniques developed for proper jvms, on dalvik/ART. they're very, very different in how they function and a lot of the low-level stuff doesn't necessarily carry over Sep 10 08:17:42 that's what I meant - buffer it if at all possible Sep 10 08:17:53 yeah Sep 10 08:18:09 see i would suppose a smart compiler would just inline the final overriden method Sep 10 08:18:15 and then no lookup time for it Sep 10 08:18:35 ravilov you can't buffer the Canvas given to you in onDraw, it's diff each time. might refer to the same memory but the old one's dead Sep 10 08:19:01 lasserix_ it can't inline it however, we change it explicitly partway through the loop Sep 10 08:19:12 why can't itinline it? Sep 10 08:19:42 sarbs, yeah I was afraid of that Sep 10 08:19:54 Why does Android studio have a 8h time diff with mine? Sep 10 08:20:21 Should a fragment take 2 seconds to inflate? Sep 10 08:20:21 I set time via /etc/localtime, what does it use? Sep 10 08:20:31 android studio? it shouldn't even care about any time, do you mean the emulator? Sep 10 08:20:40 Or am I doint something horribly wrong then? Sep 10 08:20:41 Mrdarknezz, depends on the layout Sep 10 08:20:49 Well logcat's time is 8h hours off Sep 10 08:21:00 yeah that has nothing to do with android studio Sep 10 08:21:06 It's the same for all layouts Sep 10 08:21:10 one is just a listview Sep 10 08:21:15 the other has a few nestings Sep 10 08:21:20 Mrdarknezz, profiler might be what you need Sep 10 08:21:37 Which is newer - android.support.v13.app or android.support.v4.app ? Sep 10 08:21:49 should I read v13 as v1.3 ? Sep 10 08:22:00 Fooable f = new Foo(); for (i : 1..50) { f.foo(); if (i > 50) { f = new FooToo(); } } <---- lasserix_ this is *roughly* akin to what your loop does. partway through, the object that we're calling the method on, changes. the compiler can't inline it because then the called method wouldn't change Sep 10 08:22:16 http://blog.jetbrains.com/clion/2014/09/05/clion-brand-new-ide-for-c-and-c-developers/ Sep 10 08:22:52 if it were insanely insightful and aggressive, it could unroll the loop to the transition point, then inline the two now-constant references, but that's taking it a bit far Sep 10 08:23:06 johnflux__ no, v13 is version 13 Sep 10 08:23:12 hehe that's actually exactly what i thought it'd do Sep 10 08:23:28 johnflux__, no, 13 is 13 Sep 10 08:23:43 johnflux__ most people use v4, but i haven't seen much need for 13 yet Sep 10 08:23:57 if oyu need its stuff, use it.. if not, don't :) Sep 10 08:24:13 Mrdarknezz no, definitely should not take 2sec to lay out Sep 10 08:24:26 no UI operation should take 2sec, evar Sep 10 08:24:38 lasserix_ nah not that smart :) Sep 10 08:25:06 profiler once helped me realize I was doing too much too weird stuff in my custom preference so as a result my preferences activity took a few seconds to show up Sep 10 08:25:45 tbh i'm actually surprised how much slower this virt method call is than a branch Sep 10 08:25:54 (inherited an existing preference but tried to make wraps and workarounds for working with a different data type) Sep 10 08:26:51 Hi, I'm getting a basic network.performRequest error with volley(400) Sep 10 08:27:09 don't know what I'm doing wrong Sep 10 08:30:24 sarbs: I get Grow heap (frag case) to 47.186MB in my logcat Sep 10 08:30:34 0_o Sep 10 08:30:35 QUESTION: I have a pageBody fragment that might have 1 to 5 testResponse fragments, determined programmatically. Each testResponse fragment has an image and 3 radiobuttons in a group. My target is Android 4.4 on a Nexus 7, I do not need to support early versions. What is the best way to handle this, in terms of the Java classes PageBody, TestResponse, and the XML layouts? (Note I have 10+... Sep 10 08:30:36 ...years Java experience, but new to Android.) Sep 10 08:30:39 there's your problem Sep 10 08:31:23 can anyone help with volley? Sep 10 08:31:37 sarbs: Yeah I figure it's probably some bitmap operations Sep 10 08:32:56 ashemark, obviously not; I for one don't even know what that thing is, not sure if I should even care :) Sep 10 08:33:24 it's a library for accessing web apis in android Sep 10 08:34:09 ashemark a lot more info will be needed. 400 just means Bad Request. for all we know you're pasting the Constitution up to Flickr as a .wav file :) Sep 10 08:34:49 lol Sep 10 08:35:01 Nivag sounds like you're familiar enough to know the android concepts involved.. what specifically are you looking for help with? Sep 10 08:35:20 ashemark, not sure you really need a lib for that, but ok Sep 10 08:35:25 sarbs: sure Sep 10 08:35:31 let me post my code Sep 10 08:35:54 * ravilov dislikes using libs as decorations to things already nicely available Sep 10 08:36:40 that'll be a start.. fair warning tho i don't actually know much about volley. i would start debugging by looking at the actual http traffic and seeing what the request is that's failing Sep 10 08:37:17 surely there will be more to the error than just the code... Sep 10 08:38:10 sarbs: okay, here's my code http://pastebin.com/SBcCEdiz Sep 10 08:39:59 ravilov volley method-object-ify's requests nicely, as well as has some queuing and error handling/retrying boilerplate built in and unifies/fixes bugs across platform versions. you're still right, it's a wrapper, but it's a nice one Sep 10 08:40:22 sarbs: I'm familiar with too many Android concepts at the moment, but not familiar enough to choose and integrate them!! :-) I wrote code to display an arbitrary number of images into a LinearLayout (defined in XML). Now I basically want to do the same thing, but with 1 to 5 fragments. Essentially replacing each image with the testResponse fragments. Sep 10 08:41:11 sarbs, I started disliking "utility wrapper libs" ever since I realized just how much bulk jquery adds to my web app, just wasn't worth it considering how much of it I've actually been using Sep 10 08:41:47 sarbs: I changed the request to Jsonobject request, and now it's giving me the same error but with code 500 Sep 10 08:41:48 i would likely make your TestResponse concept a custom View instead of a Fragment, since the TestResponse object sounds like little more than a UI element Sep 10 08:42:01 I mean seriously, having a 300k-400k javascript just to do an ajax request? not worth it Sep 10 08:42:11 ravilov: example? ;) Sep 10 08:42:19 ^ Sep 10 08:42:37 ravilov absolutely, and same thing with guava, apache-commons etc. ppl import 20MB of java code just to use Maps.newHashMap(); Sep 10 08:42:47 yep Sep 10 08:42:56 people are lazy and content :p Sep 10 08:43:26 sarbs? Sep 10 08:43:29 sarbs: ? Sep 10 08:43:33 Nivag making TestResponse a View would also simplify your transition from the LinearLayout you've already got, since you could simply replace the ImageView with TestResponseView Sep 10 08:43:51 ashemark, you really need to look at your http traffic now Sep 10 08:44:06 ashemark i don't see anything wrong with the code, it looks like it should produce a valid request as far as HTTP is concerned Sep 10 08:44:21 the error is likely in the data you're sending to the server Sep 10 08:44:30 sarbs: looks like so Sep 10 08:44:52 i'll check it real quick with some dummy values Sep 10 08:44:57 so like ravilov said you'll need to spy on the request and the response, and possibly even step through the server code, to figure out what's failing Sep 10 08:45:11 sarbs: I will RTFM & Get back to you, thanks Sep 10 08:45:13 i use cURL a shit-ton when developing code against web apis Sep 10 08:45:22 Nivag lemme find some links Sep 10 08:45:51 Nivag https://developer.android.com/training/custom-views/index.html Sep 10 08:46:20 possibly more relevant https://developer.android.com/guide/topics/ui/custom-components.html Sep 10 08:46:51 sarbs: yeah, sure Sep 10 08:46:56 Hi, i'm trying to access to the user download folder in this way: "List files = getListFiles(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS));", but in some devices, specially in 2.3.6 version the list is empty, is it possible to get the files in another way? Thanks a lot. Sep 10 08:47:29 Succy, older androids don't know about specific Environment.DIRECTORY_* stuff Sep 10 08:47:40 there is no such thing as a "system-designated download folder" on those Sep 10 08:48:17 look up the docs regarding those constants Sep 10 08:58:15 Can someone help me align the image with the text and box? I've scoured Google, but everything I try doesn't change sh*t. http://imgbox.com/vGKRLZVN and xml layout http://pastie.org/9541384 Sep 10 08:58:28 I also tried with margins but it doesn't change anything either Sep 10 08:59:24 Hi :) Sep 10 08:59:54 SASDOE https://developer.android.com/tools/help/hierarchy-viewer.html Sep 10 09:00:05 I always assume people who use smilleys to great people on IRC are girls, don't know why Sep 10 09:00:06 greatest ui tool you'll ever use Sep 10 09:00:29 I'll check it out thanks Sep 10 09:00:50 unless you have a rooted device available you'll need to use it on the emulator, fyi Sep 10 09:01:04 I don't even have an android device so..! Sep 10 09:01:12 Yay iphone Sep 10 09:01:16 ah, so it's already emulator for you heh Sep 10 09:03:18 Hi I have a phone based on MT6572, He had 2MPx camera. The plan is to use 5mpx with auto focus. Any clue about pinout information for camera socket in Overmax Vertis Famy 2 ? Sep 10 09:04:33 hetii this chan isn't for hardware stuff, this is software application development Sep 10 09:04:37 no idea where to ask that, sorry Sep 10 09:06:04 ok Sep 10 09:06:20 sarbs: NO idea what I'm looking at..! Sep 10 09:06:26 SASDOE, just a simple LinearLayout with orientation="horizontal" should work Sep 10 09:06:42 sarbs: Thanks for the URL. For the question I asked above, A View seems appropriate. Just want to check my understanding of the use of Views vs Fragments: specifically, is making the PageBody a fragment appropriate, there may be over a dozen (I will also have a PageHeader & PageFooter). Sep 10 09:06:44 sarbs: The PageHeader & PageFooter will have some text is mainly the same for each page. Sep 10 09:06:45 sarbs: Trying to get a feel for when I should use Fragments rather Views (I feel a bit like I'm drowning in detail!) Sep 10 09:06:46 Ah actually now I do! Sep 10 09:06:56 SASDOE, but Sep 10 09:07:49 SASDOE, each item needs to something like layout_gravity="center" maybe Sep 10 09:08:47 So I should just replace Relative w/ linear and specify gravity? I'll give it a try thanks. Although I might find the issue with the hierachyviewer Sep 10 09:09:22 hi all. i'm having trouble trying to customize the default 'ant release' task to build two versions of an apk - the change i need is in the AndroidManifest.xml. basically i want to introduce a small change and have two versions of the same apk - with and without this change Sep 10 09:09:51 is there an easy way to do it? at http://stackoverflow.com/questions/12173860/customizing-parts-of-android-manifest i have trouble understanding how to proceed Sep 10 09:09:57 I thought the hierarchy viewer is just to look at the complexity of a layout. Yours is not very complex Sep 10 09:10:15 What I don't get is there's a margin that is completely overstepping the item underneath it... Sep 10 09:10:51 http://imgbox.com/E4OKxpCD Sep 10 09:11:52 No, but to an amateur like me it helps get what's going on Sep 10 09:12:54 And there seems to be no padding what so ever (have no clue what color it's supposed to be either so it doesn't help) Sep 10 09:13:49 RelativeLayout you dont really need. Sep 10 09:15:03 goodnight nice talking sarbs / ravi Sep 10 09:17:26 Ok I'll use Linear then. But wouldn't that cause issues depending on the screen size? Sep 10 09:17:43 Inconsistencies* Sep 10 09:20:42 hey guys, today I discovered an error that was happening with one of the users. basically I was able to reproduce it with toggling "Don't keep activities". Because the way I did it was I sent information back to the first activity from the second, and when the first was killed, that information didnt get there Sep 10 09:21:06 sarbs, or anyone: I would appreciate feedback from my last question! It is late for me now, I will check responses tomorrow morning (my time) in about 11 hours. Thanks! Sep 10 09:21:09 is there a way I can set my activities to not abide by this option? Sep 10 09:22:42 Sicp: no. fix your code :) Sep 10 09:22:47 god damn it Sep 10 09:22:57 but I need to send stuff back Sep 10 09:23:25 SASDOE, i think it depends what you mean by inconsistencies. You may need more then one layout for different devices Sep 10 09:23:42 whats the exact problem? You open activity 2 from activity 1 with a callback on result, correct? Sep 10 09:23:45 Hi, can anyone help me with an android volley error? Sep 10 09:23:59 not callback, I send a broadcast back to 1 Sep 10 09:24:11 with a modified array, I receive it there and refresh the list Sep 10 09:24:17 so its not onActivityResult() ? Sep 10 09:24:23 http://pastebin.com/SBcCEdiz Sep 10 09:24:34 I'm getting an unexpected error 400 Sep 10 09:24:54 hmm no. cause the array I have loaded in activity 1 has an Edit button for each of the arrays elements placed in a row Sep 10 09:25:14 you grab that array and send it to the next activity, edit that element there and send the array back Sep 10 09:25:31 but sending back was the problem, cause the activity is not going to be recreated, so I cant put it in an intent extra Sep 10 09:25:37 Hello. Access Token or Session from Web App to Android? Which is the best approach? Sep 10 09:25:53 Sicp: cant you just catch that exception and do something convient in that case? Sep 10 09:26:23 like if request is failing, recreate activity and send it to that instead Sep 10 09:26:26 or something like that Sep 10 09:26:26 there will be no exception, the broadcast will be sent successfully, but the receiver will not get it Sep 10 09:26:45 whats the content of that array? Sep 10 09:26:50 String, custom objects? Sep 10 09:26:50 cause the activity the receiver's in is dead Sep 10 09:26:56 custom objects Sep 10 09:27:10 you should use onActivityResult. thats what its for Sep 10 09:27:19 on what activity result Sep 10 09:27:27 whats that got to do with it Sep 10 09:27:31 Is there no kill ring for studio? How can people manage without a kill ring? Sep 10 09:27:55 well you open B from A and want to send data back to A from B. Thats what ActivityResult is built for Sep 10 09:28:02 or did i get it wrong? Sep 10 09:28:15 no its right Sep 10 09:28:20 hmm Sep 10 09:28:38 so you have onActivityResult in A, great. but A is dead, when its recreated it wont see any result Sep 10 09:28:46 still Sep 10 09:29:38 you have to implement a working navigation hierachy.. Sep 10 09:29:51 then A will be recreated if its dead and you go back on B Sep 10 09:30:03 see http://developer.android.com/training/implementing-navigation/ancestral.html Sep 10 09:30:12 if Dont Keep Activities is on, that's whats going to happen Sep 10 09:30:33 it should also happen if its on. Sep 10 09:30:40 then it will recreate a new instance of A Sep 10 09:30:42 off* Sep 10 09:30:48 yeah i meant off, too :/ Sep 10 09:31:13 with keep activities off, every activity will be destroyed but will also be recreated if you hit back Sep 10 09:31:31 that creates ugly glitches man Sep 10 09:31:33 that's horrible Sep 10 09:31:51 with proper implementation, A will be recreated and onActivityResult will be called on recreated A Sep 10 09:32:39 you should adjust your implementation that its working in this way because thats how android works. (also i agree this sometimes is pretty ugly to implement) Sep 10 09:32:59 SASDOE: what is a kill ring? Sep 10 09:35:35 Sort of a cut and paste, but way better. An emacs thing Sep 10 09:36:29 <_3mpty> guys what is best approach for full screen background images, 4 density different images would be overkill in my opinion, what res should I use? Sep 10 09:36:30 ah just googled it. Sep 10 09:36:55 seems like theres a feature like that in intellij since version 11, so it should also be in AS Sep 10 09:36:58 http://blog.jetbrains.com/idea/2012/03/more-emacs-for-the-favorite-ide/ Sep 10 09:37:32 they have everything these days Sep 10 09:37:49 _3mpty: if you dont want to provide all 4, provide the one with the best resolution Sep 10 09:37:56 and then scale it down Sep 10 09:38:59 <_3mpty> danijoo: what about devices with less memory? Scale programmatically? Sep 10 09:39:10 thats why I say scale it :) Sep 10 09:40:20 there is a tutorial for that in the google developer guides Sep 10 09:40:33 (or use something like picasso which does that for you) Sep 10 09:41:30 <_3mpty> ok, thanks I will try to find those. Sep 10 09:43:55 danijoo: cool thanks! Sep 10 09:46:18 _3mpty, depending on what the image is you could use a 9 patch ya? Sep 10 09:47:07 <_3mpty> ProjectN: nope, it's simple photo Sep 10 09:50:11 right I was thinking like if it had a logo in the center. I saw one done like that Sep 10 09:50:42 danijoo: It looks like there's a kill ring, but no way to yank (paste back text), which completely defeats the purpose Sep 10 09:52:56 _3mpty, https://github.com/costimuraru/Simple-Android-OpenGL-2D-Rendering/blob/master/SpriteTest/res/drawable-hdpi/nine_patch_bg.9.png Sep 10 09:54:06 ProjectN: You could do the same thing without a 9.png though. Its just a rect with rounded corners and a color in it :o Sep 10 09:55:04 <_3mpty> ProjectN: yes, I know that 9-patch is good for cases like above but in mine I have images like this: http://www.publicdomainpictures.net/pictures/30000/nahled/table-and-wine-glass.jpg Sep 10 09:55:15 <_3mpty> (don't mind this res ratio) Sep 10 09:56:14 hello, can anyone help me with android volley? Sep 10 09:56:20 ya more complex Sep 10 10:00:24 ashemark, ugh, by now you could've debugged it several times over, looked at detailed http traffic, and fixed your issue Sep 10 10:00:44 or is your plan to just keep asking all day long until someone does it for you? Sep 10 10:00:59 ravilov: i've checked the traffic and found no problem Sep 10 10:01:19 used the same parameters in a python script but to no avali Sep 10 10:01:23 avail Sep 10 10:01:44 python script works, android doesn't Sep 10 10:01:48 then debug the server side, as that is the one actually reporting the error Sep 10 10:02:09 dump and analyze the request from server side Sep 10 10:03:08 I mean, what do you think anyone here can do for you? we don't know your system or your code or your server or anything Sep 10 10:03:25 ravilov: i mean, I'm just looking for directions Sep 10 10:03:49 Hi guys on my way out not looking for a lot of help , yesterday you helped me load in 6 animated imageviews, that stop(); start() .. when you click on them .. and fire once Sep 10 10:04:06 good for you Sep 10 10:04:10 I get memoryleak now, I looked at the source and I got about 7mb of pictures.. what can I do to prevent this? do I need to completely destroy the objects or something? Sep 10 10:04:16 ya lets not share ideas or anything that would be wrong Sep 10 10:05:19 ashemark, well there's your direction right there - focus on server side now Sep 10 10:05:53 ravilov: that's great, but since it's working on python, I'm wondering it might not be server side at all Sep 10 10:06:29 don't assume it's not just because "it happens to work in some other setup" - DEBUG and ANALYZE and CONFIRM Sep 10 10:07:09 ravilov: gotcha Sep 10 10:07:13 one more doubt though Sep 10 10:07:23 here's what the server should return Sep 10 10:07:26 [{ Sep 10 10:07:28 "Id": 1, Sep 10 10:07:29 "Message": "Client profile created" Sep 10 10:07:31 }] Sep 10 10:07:53 is it cool if I use stringrequest? Sep 10 10:08:00 no idea Sep 10 10:08:18 uh huh Sep 10 10:08:28 might i ask someone else? Sep 10 10:08:35 sure Sep 10 10:08:43 I mean you just did, you asked the whole channel :) Sep 10 10:08:47 there is no one-on-one talk here Sep 10 10:09:04 but that didn't sit well with you, so wanna confirm Sep 10 10:09:35 I just said your repeated asking makes no sense, I'm not any kind of authority here though Sep 10 10:10:33 here's what you're gonna do, danijoo Sep 10 10:11:06 Sicp: ? Sep 10 10:11:09 you're going to kill the activity A in onPause, and when you want to go back to activity A from activity B, you're going to start an intent for it and recreate it, passing it what you want Sep 10 10:12:28 yep, sounds good Sep 10 10:12:51 sounds wrong :'D Sep 10 10:12:57 why, it isnt Sep 10 10:13:22 no edge cases Sep 10 10:13:32 you are calling finish() in every onPause() ? Sep 10 10:13:42 not yet Im not, but that's what Im going to do Sep 10 10:14:00 so I could recreate it when going back without having 2 o fit Sep 10 10:14:12 <_3mpty> Sicp: why do you want to do it? Sep 10 10:14:26 this is really bad design Sep 10 10:14:28 cause Dont Keep Activities is causing the receiver of data in A to die Sep 10 10:14:31 oh wow Sep 10 10:14:41 why dont you just implement a proper navigation flow with onAcitivty result? Sep 10 10:14:45 well I cant go restructuring the whole thing, I dont even know how I would if I wanted to do that Sep 10 10:14:48 wasn't there a lenghty discussion with someone about this exact same thing Sep 10 10:14:58 DO NOT disrupt the normal activity flow!!! Sep 10 10:14:59 ravilov: then stop acting like one Sep 10 10:15:08 ashemark, why? Sep 10 10:15:09 + ashemark Sep 10 10:15:26 activityResult, ok, fine Sep 10 10:15:29 I will search Sep 10 10:15:57 ashemark: if you're not an authority here, then stop acting like one Sep 10 10:16:00 regardless if its dead or not, the call will happen and the stuff will be retrieved from B? Sep 10 10:16:04 ashemark, passive aggressive won't get you too far Sep 10 10:16:15 excuse me my stapler Sep 10 10:16:27 ravilov: please don't spoil a good channel with your useless and cursory remarks Sep 10 10:16:41 ++ Sep 10 10:16:48 + * Log(x) Sep 10 10:17:00 i guess you don't sit here all day to shout at people Sep 10 10:17:08 Sicp: if its destroyed, it will recreate it like it normally would on recreation (onCreate, onSavedInstanceState etc). and after that will call onAcitivtyResult() Sep 10 10:17:23 so it has to go through startActivityForResult first Sep 10 10:17:32 on the press of "Done" or wherever I want, in B Sep 10 10:17:57 you have to say yes now Sep 10 10:18:05 documentation says so Sep 10 10:18:33 yeah. Acitivty B will open due to startActivityForResult, and in B you do your stuff and when it finishes, it will callback to A with tyour result Sep 10 10:18:58 startActivityWithTheHopeOfGettingResultBack Sep 10 10:19:13 so startActivityForResult is called in A, and onActivityResult also in A Sep 10 10:19:30 yep Sep 10 10:19:34 aaaallright Sep 10 10:19:34 easy Sep 10 10:20:48 but I dont get the part where when A is killed, onActivityResult will still be called Sep 10 10:21:01 how? it has just been created newly, how will it know there's something pending from B Sep 10 10:21:27 be cool, use event bus Sep 10 10:23:13 this should be comprehensive , http://stackoverflow.com/questions/10407159/how-to-manage-start-activity-for-result-on-android Sep 10 10:26:03 what's the recommended way to print documents for api levels below 19? Sep 10 10:27:38 Like gingerbread? Bluetooth? Sep 10 10:27:44 was that google cloudprint thing befor 19? Sep 10 10:28:56 Whats the main hug difference except the looks and themes between gingerbread and kitkat, really. Sep 10 10:29:50 * Sicp gives borw3 a hug difference Sep 10 10:29:51 borw3, big overhaul in a lot of the sub systems. Sep 10 10:31:34 Is it possible to build a ROM from scratch for an android device while still using it's old 2.3...kernel of gingerbread? Sep 10 10:31:59 ok, startActivityForResult from inside the adapter now Sep 10 10:32:31 great, starts the activity Sep 10 10:32:50 borw3, depends on the device. If the chipset has drivers for the older kernel then sure. Sep 10 10:33:28 What do you mean chipset? Sep 10 10:33:33 If you want 4.4 userland stuff on a 2.3 kernel then no. Sep 10 10:34:13 borw3, chipset is the SoC, radios, camera... basicaly all the guts of the phone. Sep 10 10:34:44 Hmm, it's possible for the phone to boot without support of radios camera and all the above? Sep 10 10:36:26 borw3, probably not without crashing. What are you trying to do? Sep 10 10:38:01 Well, I was told that the main files that need to be ported are some /system/lib files /system/framework/ and /system/apps . So I was wondering if I coulld port the files of a similar device running kitkat to mine that runs gingerbread and possibly transform it to kitkat? Sep 10 10:41:12 borw3, You can, some custom ROMs do that, but they tend to be very buggy. Sep 10 10:42:07 So its possible to run kitkat on an old kernel? Sep 10 10:51:40 I think kitkat requires more cpu cores like dual or quad core an older device running gingerbread might not have Sep 10 10:52:24 ProjectN: Are you sure? I thaught google said that KitKat runs on any device just as long as it has 512mb RAM+ Sep 10 10:53:07 run probably but how will it perform Sep 10 10:53:16 heavy threading Sep 10 11:01:52 i ran android x86 kitkat on an old netbook and worked pretty good though Sep 10 11:02:24 What was its processing power? Sep 10 11:05:27 it was one of the early netbooks. acer aspire one d250 Sep 10 11:06:38 ProjectN: What wass it running before kitkat? Sep 10 11:07:04 ok Sep 10 11:07:12 so this search dialog thing is a pre-android3.0 thing ? Sep 10 11:07:21 now its just the searchview basicsally ? Sep 10 11:08:45 borw3, windows xp home Sep 10 11:10:29 Hmm, I think my android 1ghz and 512 mb RAM can handle kit kat Sep 10 11:10:49 you might be right Sep 10 11:11:22 Hi. I'm having some trouble using HTML5 geolocation API. On one phone with Android 4.2, things work great. On another, with 4.4, I only get coarse location (accuracy about 1000 meters) and the GPS blinking icon, indicating that a lock is being attempted, is not showing up. Sep 10 11:12:07 Even with WIFI and Data off, I'm getting a location that's either cached, or fetched from the phone network connection Sep 10 11:12:28 I checked the permissions of my app, and it has both coarse and fine GPS listed. Sep 10 11:12:57 However, when I look at the list of apps recently requesting location, my app is shown with a subtitle that says "Low battery mode" Sep 10 11:13:11 Does anyone have any idea about how to fix this problem? Sep 10 11:13:16 can someone help me on this issue with httpsurlconnection? http://stackoverflow.com/questions/25753718/steam-web-api-how-to-get-a-working-httpsurlconnection-with-steam-web-api Sep 10 11:14:46 hi, is it possible to set the hint text of an EditText in the top ? Sep 10 11:15:49 xar: You mean in the Actionbar? Sep 10 11:16:25 flan3002, nope. I'm trying to set the hint text of the EditText (multiLined) on its top Sep 10 11:17:21 Oh, so above the EditText? Just wrap a TextView and an EditText in your favorite Layout, and it's above, no? Sep 10 11:18:15 flan3002, here is the definition of the EditText Sep 10 11:18:26 android:id="@+id/drug_add_description" Sep 10 11:18:27 android:layout_width="match_parent" Sep 10 11:18:27 android:layout_height="wrap_content" Sep 10 11:18:27 android:hint="Describe the drug" Sep 10 11:18:28 android:layout_marginBottom="30dp" Sep 10 11:18:29 android:inputType="textMultiLine" android:lines="5" /> Sep 10 11:18:31 Don't. Sep 10 11:18:35 Paste. Sep 10 11:18:46 also, don't do drugs Sep 10 11:19:00 Use any pastebin, but don't paste here. Sep 10 11:19:31 ok sorry, I'm just trying to set the hint text on top of the edittext, not on its vertical-middle line Sep 10 11:19:36 flan3002 Sep 10 11:20:09 Yes, I answered to that. Sep 10 11:20:55 guys, to protect a connection between server and the app, is https enough? Is there a good article about that? Sep 10 11:23:20 flan3002, sorry I didn't understand. what may I do to fix that, please? Sep 10 11:25:01 xar: You don't have to use the inbuilt hinting TextView, don't you? What's wrong with putting another TextView on top of your EditText? Sep 10 11:25:48 flan3002, I've putted above it a TextView, but, I'm just trying to describe it more via the hint text Sep 10 11:28:30 Leeds, drug = medicament Sep 10 11:28:42 yeah, I know... Sep 10 11:29:00 'twas a joke - a pun, or play on words Sep 10 11:29:18 i think it was funny. my work colleague also laughed Sep 10 11:29:20 Leeds, okay :) Sep 10 11:30:35 flan3002, android:gravity="top" Sep 10 11:30:49 if someone could look into this problem of mine i really would appreciate it too ^^ http://stackoverflow.com/questions/25753718/steam-web-api-how-to-get-a-working-httpsurlconnection-with-steam-web-api Sep 10 11:40:54 How do I to catch the back button (actionBar.setDisplayHomeAsUpEnabled(true)) onclick event, please ? Sep 10 11:46:30 How do I to catch the back button (actionBar.setDisplayHomeAsUpEnabled(true)) onclick event, please ? Sep 10 11:47:16 xar: public void onBackPressed? Sep 10 11:47:36 danijoo, yes, but how to catch the onclick event of that home button ? Sep 10 11:47:46 onOptionsItemSelected Sep 10 11:48:55 danijoo, yes I've did that using the R.id.home, but it wouldn't work Sep 10 11:49:40 show your code. Sep 10 11:50:01 android.R.id.home is the correct id and should work Sep 10 11:51:36 http://www.pasteall.org/53916 Sep 10 11:51:44 Guys, I have this Dual sim ROM. When I replace it's build.prop with another one it suddenly becomes a single sim ROM. What lines in build.prop could be affecting it in this way? Sep 10 11:52:04 danijoo, thank you ! but, what it's the difference ? Sep 10 11:53:32 R.id.home is in your projects scope, andorid.R.id.home is android scope Sep 10 11:53:45 borw3: wrong channel. Sep 10 11:53:58 read the topic Sep 10 11:54:05 Which is the right one? Sep 10 11:54:41 * danijoo points to the channel topic Sep 10 11:55:36 * borw3 nods Sep 10 11:57:00 danijoo, (y) Sep 10 11:58:52 ill paste this the laste time here ^^ -> http://stackoverflow.com/questions/25753718/steam-web-api-how-to-get-a-working-httpsurlconnection-with-steam-web-api maybe someone got good knowledge about this issue and can help me Sep 10 12:10:21 is there a bad side in setting dex.force.jumbo=true Sep 10 12:10:22 ? Sep 10 12:11:31 Hi! Anybody know of any clever substitutes to the hamburger icon? Would a "back" arrow be acceptable? Sep 10 12:13:31 frank_o: wait, is this an Android or iOS question? Sep 10 12:16:45 Omg Estel you´re alive Sep 10 12:18:36 VnM: yes! (?) Sep 10 12:19:22 Thought you accepted candy from a stranger or got into someones van last friday when you went to your smart people/booze convention Sep 10 12:27:44 Estel: well I'm working on both an android and an ios app so Sep 10 12:28:25 right now it just says "Menu" in nice and clean sans-serif because i find the hamburger icon visually disturbing Sep 10 12:29:00 i see airbnb uses a cut-off version of the hamburger icon which is kinda nice Sep 10 12:32:04 Well if you have a menu coming from the left moving in to the right you could use an arrow to the right to expand and have it change to an arrow to the left to expand, but the hamburger icon is kinda commonly used for this Sep 10 12:32:31 to the left to collapse* Sep 10 12:32:35 http://www.pasteall.org/53917/java Making a calendar app. Objective: put ALL EVENTS FOR EACH DAY in its own list from the calendarprovider. Problem: More then one day in each list. Sep 10 12:32:51 VnM: i sure do Sep 10 12:35:12 any idears? Sep 10 12:35:23 I am in desperate nee dof assistance. I'm writing some android native code using ffmpeg to mix video and audio together. I'm not sure how to figure out this issue I am having. The code keeps on crashing. I don't know how to get the error code or condition why I get sigsegv errors during execution of the av_interleaved_write_frame method. Is there anybody around that can look at what I wrote and help me f Sep 10 12:35:23 igure out what is wrong? Sep 10 12:35:29 Here's the pastebin I have: http://pastebin.com/d4pbWVTk Sep 10 12:36:01 VnM: no, I stopped having to be in an office and found other ways to procrastinate, though :) Sep 10 12:40:40 office life the new silent killer Sep 10 12:40:59 valder: maybe you could set up a test case with http://runnable.com? Sep 10 12:43:35 frank_o: not sure how I can get lib dependencies installed. From the looks of it, it supports only standard calls right? Sep 10 12:50:50 valder: dunno. it's basically a VM so you should be able to do anything Sep 10 12:57:57 frank_o: doesn't seem to support Android either. so if I had Android-specific calls it wouldn't work right? Sep 10 13:05:49 what would be good is if you could hdmi out an app like a video app maybe instead of just the screen so you can multitask Sep 10 13:06:35 how might that be possible Sep 10 13:07:57 ProjectN, lol for idears :D Sep 10 13:08:03 ProjectN many do that… and have you ever tried chromecast ? Sep 10 13:08:20 oh? Sep 10 13:09:50 oh? but yes, think you are about 8 years too late for that idea Sep 10 13:10:03 cool Sep 10 13:10:04 well 6 years…ugh, I have no concept of time atm Sep 10 13:13:21 Hey guys, I’m making a multiplayer word building game with a friend (android 4.0+) and I’m looking for people to test the app, give us some feedback on the gameplay, the UI and so on…I’ve already posted it on reddit (/r/AndroidAppTesters and on xda-developers forum). Do you guys know/recommend any other places where I could find beta testers? Sep 10 13:13:31 here my activity implements a Handler.Callback. it has a message sent from another thread using handler.sendMessage(msg). can someone suggest why the msg.recycle() call is causing me "random" hangs a few milliseonds later? The calls to the dbg fragment are on the same main thread as the handler. IF I remove the .recycle() call all is fine. Something nasty to do with Java/Davlik runtime optimisation? Sep 10 13:13:31 https://gist.github.com/anonymous/bc0197d4ca474c2a4410 Sep 10 13:14:13 <_3mpty> what image res should I use for xxhdpi fullscreen background? Sep 10 13:14:26 depends how big your image is. Sep 10 13:14:42 well no depends on the screen res and window crop Sep 10 13:14:45 lol Sep 10 13:15:06 quiquedev, there are many communities on G+ that you can check out Sep 10 13:15:36 amazing. chromecast can do that. so i can stream apps to chromecast? Sep 10 13:15:57 A google away. http://stackoverflow.com/questions/19661189/android-background-image-size-for-xxhdpi Sep 10 13:16:09 Thanks, I’ll chekout G+ then Sep 10 13:16:12 ProjectN and your android phone/tablet screen…but please this is not basic product support 101 Sep 10 13:16:46 I think he has some idea of "running the app" on another screen. It doesnt make any sense since it would still be on the device. Sep 10 13:18:05 <_3mpty> I'm scalling image in runtime but I need to consider rational size without increasing app size a lot Sep 10 13:18:30 <_3mpty> I'm limited to portrait Sep 10 13:19:48 _3mpty well depends very much on the image but there are a few design tricks you can try Sep 10 13:19:51 what is the image ? Sep 10 13:21:14 why are you limited to portrait btw ? Sep 10 13:22:37 <_3mpty> StingRay_: it simple photo that can't be 9-patched Sep 10 13:22:45 <_3mpty> StingRay_: ask client and stupid designer Sep 10 13:23:48 <_3mpty> only problem now is app size, I wanted to use only biggest available image size in resources and scale it on demand Sep 10 13:23:59 <_3mpty> (based on screen size) Sep 10 13:24:03 _3mpty well that you can do Sep 10 13:24:47 _3mpty I take it this is no a public user type app Sep 10 13:24:53 for the masses Sep 10 13:25:10 _3mpty, I used a server in that case and downloaded only the resources for the screen size that I needed Sep 10 13:25:28 <_3mpty> StingRay_: kinda Sep 10 13:25:52 <_3mpty> MikeWallaceDev: not bad idea, but those need to be available offline Sep 10 13:25:58 <_3mpty> from the start Sep 10 13:26:09 _3mpty was going to say, if it were for the normal public I think locking screen rotation will give you many crashes due to the mods people install Sep 10 13:26:50 <_3mpty> maybe Sep 10 13:27:15 _3mpty, you download the images when the app is installed. They will be online when it's installed :) Sep 10 13:29:13 [ Just told my girlfriend that my debugger wasn't work. She answered : Stupid Bugger ] ahaha Sep 10 13:30:20 MikeWallaceDev where you from ? Sep 10 13:30:31 Montreal, eh. Sep 10 13:30:42 MikeWallaceDev, what ? did you mean cheese burger Sep 10 13:30:44 ^^ Sep 10 13:32:06 StingRay_, you? Sep 10 13:32:17 britland Sep 10 13:32:29 Britain rather :) Sep 10 13:33:11 Aha, that explains why you type with an accent ;) Sep 10 13:33:48 britàin ^^ Sep 10 13:34:07 Still today I'm amazed at working together with people from around the world. Sep 10 13:34:22 zoraj_ yes ? Sep 10 13:34:30 And I've been doing it for 20 years! Sep 10 13:34:45 zoraj_ an island in northern Europe (west side) Sep 10 13:34:57 StingRay_, no I'm not from Britàin just to be kidding with the accent Sep 10 13:37:00 MikeWallaceDev, this is the pro of being a developer, we got commit from all over the world :) Sep 10 13:38:12 StingRay_, I know where it is, I got lot of news from your country on BBC :D Sep 10 13:39:01 lol. rtfm rgr old bean. Doh. Message.obtain(handler,obj) - sets the obj field and NOT the data field. 2 hours wasted heh. Sep 10 13:40:11 rgr where are you located ? Sep 10 13:40:48 Ze Fatherland. But am English. Sep 10 13:45:32 hey all, anyone ever have issues with a Cursor Window, Im getting an error where its trying to allocate 2mb, I know the limit is 1 mb, but I can't figure out why its trying to allocate so much, especially when my db is a lot smaller Sep 10 13:48:43 you need to post your code and more importantly the query. The result set is larger than the max I assume. Sep 10 13:49:30 problem is that the query is done by this library: https://github.com/cloudant/sync-android Sep 10 13:49:48 im going to create an app that pretends to be a virus Sep 10 13:50:02 but you must seed the query for a subset. Sep 10 13:50:19 prohobo: why would you do something like that? To test some antivirsu? Sep 10 13:50:23 virus Sep 10 13:50:36 no, just to make people freak out Sep 10 13:51:02 do the "damn it i got a virus again" and wipe everything Sep 10 13:51:04 what do you mean seed the query for a subset? you mean narrow the results? Sep 10 13:51:12 well, yes. Sep 10 13:51:49 can somebody ban that asshole? Sep 10 13:51:49 you don't just say "give me the entire database" or you'd crash.... or get an exception out of memory or something. Sep 10 13:52:09 database is only 300 kb though Sep 10 13:52:12 MikeWallaceDev: who are the ops here? (I dont like banning I must admit) Sep 10 13:52:39 and using that library I do specific queries, so the result set should not be too big Sep 10 13:52:49 rgr anybody who purposely wants to make a virus does not deserve our help at any time Sep 10 13:52:55 Matulis: doesnt matter. You can return multiple rows based on joins , cross products etc. Sep 10 13:53:03 MikeWallaceDev: thats not what he said. Sep 10 13:53:25 But I agree he sounds like a dork... Sep 10 13:53:37 it is... he wants you to wipe your phone. That's a virus... Sep 10 13:53:48 hang on.. ... Sep 10 13:54:07 Oh yeah. A wanker. Who are the ops? Sep 10 13:54:12 !ops Sep 10 13:54:16 kroot? Sep 10 13:54:21 canadiancow Sep 10 13:55:07 rgr: So underlying cause is the cursor returned from the query is too large correct?, now Ive also seen some errors along the lines of too many open cursors, is it safe to assume that finalize will clean up SQL Cursors when they go out of scope? Sep 10 13:55:39 no Sep 10 13:55:42 Matulis: I dont know. Youve posted no code, no stacktrace no nothing. I and the rest of the group are not crystal balls :)) Sep 10 13:55:43 no Sep 10 13:56:10 you have to manage your cursor Sep 10 13:56:41 i close all my cursors, I am worried about the library internally handling their own Sep 10 13:56:44 but I would advise not leaving open cursors laying around for natural biodegrading... Sep 10 13:58:03 hypothetically that could also be causing the issue, that the gc is not closing the cursors fast enough and the CursorWindow is getting too big Sep 10 13:59:40 also here is a stack trace: Sep 10 13:59:41 https://gist.github.com/anonymous/1ece30e24e993b3e7bcf Sep 10 14:00:25 ._. Sep 10 14:00:34 manage your cursors! Sep 10 14:00:47 leaving it to "gc" is tantamount to "duh". Sep 10 14:01:41 I'm using FragmentTabHost to show two different fragments. How can I get a reference to the current Fragment being shown? Sep 10 14:02:36 yeah i guess ill try to go into their library and clean up their cursor usage, i was hoping the case was me doing something else stupid and hoping I could get away without modifying the library Sep 10 14:02:44 thanks for the help guys! Sep 10 14:03:30 Birk_ buy getting the index Sep 10 14:03:57 isn't there a getCurrent or something ? Sep 10 14:04:00 there really is not method to close their cursors? Find that hard to believe. Someone that knows enough to provide a library like that is hardly likely not to provide some level of control. Sep 10 14:04:32 rgr probably weak ref loader model Sep 10 14:04:50 there is getCurrentTab. But nothing related to the Fragment Sep 10 14:05:01 Birk_ does it not give you the index ? Sep 10 14:05:21 from that index can you not "think" of a way you could track it to what "you" added ? :) Sep 10 14:05:54 the problem is that I add the fragment just passing its class, not an object. Sep 10 14:06:03 or override onTabChanged and store it. Sep 10 14:06:49 wow, just looking at this tab thing, I dont like it.. Sep 10 14:06:58 what is the charset of android logcat? Sep 10 14:09:16 yep. its a crap Sep 10 14:09:21 StingRay.. that problem from yesterday with IMMERSIVE STICKY... not so easy :) Sep 10 14:10:14 why is it crap? Sep 10 14:10:36 ad_dev no indeed, there are some pretty great minds in this channel and when I asked they were silent, normally means I asked a really dumb question, or a really really too good one…. I already know what type it was :) Sep 10 14:11:00 heh Sep 10 14:11:02 And now, for something completely different : http://pastebin.com/NxkTXZP2 Sep 10 14:11:04 yeah I asked around here Sep 10 14:11:17 (that's a real dev question :) ) Sep 10 14:11:26 ad_dev it's a design flaw in android though… so what can you do Sep 10 14:11:31 pretty major if you ask me Sep 10 14:11:32 all answered, "interesting.... gotta investigate more" Sep 10 14:11:46 yeah it kinda leans towards.. "not possible" Sep 10 14:12:00 what about L version Sep 10 14:12:12 any news in that regard? Sep 10 14:12:14 oh… dont get me started, watched some of the vids Sep 10 14:12:19 they are doing an apple Sep 10 14:12:38 heh exactly! Sep 10 14:12:42 Instead of clogging the channel with my question, I wrote it in the PasteBin. Cause I'm awesome. Sep 10 14:13:07 heh MikeWallaceDev nice Sep 10 14:13:12 ad_dev, what is the IMM_STI thing? I'm working with that these days Sep 10 14:13:30 StingRay_: can elaborate on that Sep 10 14:14:10 MikeWallaceDev try setting layoutparams in getView Sep 10 14:14:51 oh and the problem with IMMERSIVE_STICK is this, you cannot have a dialogFragment that maintains immersive stick AND is cancelableOutsideTouch (or even blocking outside touch) Sep 10 14:15:14 so you are left with navigable view behind your dialog Sep 10 14:15:32 or you have to pop the ui status and nav bar on Sep 10 14:15:35 No Fragments in my code, can't really help... Sep 10 14:15:40 so to me thats a silly design flaw Sep 10 14:16:10 oh and by getView I mean instantiateItem Sep 10 14:16:26 it is my understanding that you can't use in XML for child fragments correct? Sep 10 14:17:04 StingRay_, I am not using GetView, only InstantiateItem. Which Layout params do you want me to set? The FrameLayouts? Or The VideoViews or the Pager :) Sep 10 14:17:36 pager, so ViewGroup.LayoutParams and give it set values like 400,400 Sep 10 14:17:46 see if it takes Sep 10 14:18:05 but the Pager IS full screen Sep 10 14:18:24 the whole thing is weird. It should work. Sep 10 14:18:39 StingRay_: found the answer. when you add a fragment tab, the tabhost assignes a tag of TabSpec to nested Fragment. So inside a Fragment with FragmentTabHost you can use getChildFragmentManager().findFragmentByTag(tabSpecTag) Sep 10 14:19:05 I cloned adb source code from https://github.com/android/platform_system_core/tree/master/adb. I know nothing about Android.mk, how can I compile it Sep 10 14:19:11 Birk_ yeah looked at that S/O post…but the whole thing is silly so left it quiet :) Sep 10 14:19:48 wiky with great pleasure I direct you to read the topic and head over to #android-root Sep 10 14:19:53 :) Sep 10 14:20:55 MikeWallaceDev it's MyVideoView that is 0,0 right ? Sep 10 14:21:02 right Sep 10 14:21:40 yeah layout params to force its dimensions in inst*item then also set a background color just to test Sep 10 14:21:42 StingRay_, btw, this was commented out (as in, I tried it) Sep 10 14:21:42 I always find it amusing when someone clones a kernel or adb or something pretty advanced like that and then needs hand holding to make it. As someone once said here "if you need to ask you, probably shouldnt be doing it". Harsh but inevitably true. Sep 10 14:21:43 / LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT); Sep 10 14:21:43 / params.gravity = Gravity.CENTER; Sep 10 14:21:43 / videoView.setLayoutParams(params); Sep 10 14:21:52 yikes! Burn him..... Sep 10 14:22:28 Ha! I removed the setBackgroundColor from the pastebin to not clog it up, it's already in the code :) Sep 10 14:22:31 StingRay_, I want to compile adb in linux, ubuntu14.04 Sep 10 14:22:41 Hi, I am using the getLastKnownLocation method to get an immediate Location to minimalize the users waiting time before he gets an accurate Location. Which Prodiver would be better? The Passiv or network provider? Sep 10 14:22:45 wiky with great pleasure I direct you to read the topic and head over to #android-root Sep 10 14:26:01 So... opening navigation drawer on top of action bar... Sep 10 14:26:20 and impossibility? Sep 10 14:26:22 an Sep 10 14:26:32 StingRay_, just to reiterate, you want me to setLayoutParams on the ViewPager from inside the PagerAdapter? Sep 10 14:28:56 MikeWallaceDev ish http://pastebin.com/uGSEs52Y Sep 10 14:29:04 just to test really Sep 10 14:29:08 ish? :D Sep 10 14:29:53 right, the VideoView, that makes more sense... already tried that, but I'll try it your way Sep 10 14:32:15 here my activity implements a Handler.Callback. it has a message sent from another thread using handler.sendMessage(msg). can someone suggest why the msg.recycle() call is causing me "random" hangs a few milliseonds later? The calls to the dbg fragment are on the same main thread as the handler. IF I remove the .recycle() call all is fine. Something nasty to do with Java/Davlik runtime optimisation? Sep 10 14:32:15 https://gist.github.com/anonymous/bc0197d4ca474c2a4410 Sep 10 14:33:31 hmm. maybe recycling it in the thread it wasnt created in is an issue. but that would be nuts. Sep 10 14:38:46 rgr: why are you calling that? Sep 10 15:06:52 I found it in the book "Android Programming : pushing the limits" which spends a lot of time arguing the relative benefits of runOnUiThread, AsyncTask and Handlers. I have no strong opinion on it. But since the Message is obtained from a handler cache it kind of makes sense (not particularly in this instance since its not that cpu/memory intensive but anyways). Sep 10 15:07:30 but its kind of confused me as to why the error would occur since at the point I m.recycle() its not used anymore. Sep 10 15:08:56 Hi guys, I'm trying to build android in the 2.3.5_r1 branch but I don't see a lunch option for "aosp_arm-eng".. does anyone have an idea how I can get the aosp targets there? Sep 10 15:09:14 shauvik: see the topic of this channel Sep 10 15:10:07 @danijoo.. sorry, i will post it to #android. Sep 10 15:10:21 -root Sep 10 15:10:22 #android-root Sep 10 15:10:26 ^^ Sep 10 15:10:28 :) Sep 10 15:11:13 anyone got any hint on solving this issue? http://stackoverflow.com/questions/25753718/steam-web-api-how-to-get-a-working-httpsurlconnection-with-steam-web-api Sep 10 15:12:12 thanks! :) Sep 10 15:21:14 re: My FrameLayout and VideoView problem. I can see in HierarchyViewer that the FrameLayout has MATCH_PARENT, MATCH_PARENT but it's just not matching the parent! It has a size of 0, 0. And the parent is full screen. WTH?? Sep 10 15:22:24 I'm going to try to replace the FrameLayout with a RelativeLayout just for kicks and giggles Sep 10 15:29:56 is there anything better i could use for json parsing except jackson? or is jackson actually the standard for serializing and eserializing atm? Sep 10 15:31:45 defuex, check out GSON Sep 10 15:32:05 I'm not sure why people don't use the org.json stuff which is built-in Sep 10 15:32:28 I'm sure there's a good reason, but I'm just lazy... Sep 10 15:33:08 Leeds: they don’t use it because it’s horrible Sep 10 15:33:51 @leeds: isnt it slower actually? Sep 10 15:34:05 i’d imagine jackson/gson are slower because of reflection Sep 10 15:34:05 when serializing and deserializing? Sep 10 15:34:11 What's the best way to send HTTP POST/GET requests with cookies in android? Sep 10 15:34:29 Glitches: there is a built in cookie manager Sep 10 15:34:40 do you need to persist across app sessions? Sep 10 15:34:41 JacobTabak: What about the requests, then? Sep 10 15:34:47 JacobTabak: I suppose? Sep 10 15:34:54 the cookie manager handles them automatically, sec i’ll find something for you Sep 10 15:35:16 but what's actually horrible about it? Sep 10 15:35:29 what isnt Sep 10 15:35:34 Leeds: the fact that you have to parse it procedurally Sep 10 15:35:43 and not declaratively, obfuscating your models Sep 10 15:36:43 Glitches: I use okhttp and java.net.CookieManager Sep 10 15:37:11 it attaches all the cookies automatically Sep 10 15:37:51 JacobTabak: Thanks, I'll look into it! Sep 10 15:37:54 http://pastebin.com/PxU7uWkk Sep 10 15:38:05 Wow, thanks! Sep 10 15:38:13 the PersistentCookieStore is custom Sep 10 15:38:28 and is it easy to send get / post requests with it? Sep 10 15:38:32 Glitches: http://stackoverflow.com/questions/25461792/persistent-cookie-store-using-okhttp-2-on-android Sep 10 15:38:54 Glitches: I also use Retrofit to handle all of the requests, I’d recommend it if there’s room in your life for a new library Sep 10 15:39:25 Just whatever will make it easier Sep 10 15:39:29 that( Sep 10 15:39:45 https://github.com/square/retrofit Sep 10 15:39:52 hi all, I want to run unittests on some modifications that I did to the rom itself. where should I place those tests and how should I run them? (I tried using tradefederation but it's not working) Sep 10 15:41:51 meital: This channel is for application development Sep 10 15:42:11 any idea which channel is the correct one? Sep 10 15:42:32 #android-rrot Sep 10 15:42:35 root :D Sep 10 15:42:40 thanks :) Sep 10 15:42:42 It's in the channel desc :P Sep 10 15:43:19 duh, nobody reads that Sep 10 15:43:36 need welcome message Sep 10 15:43:48 for people that cant read…oh wait Sep 10 15:44:25 I think that it should be added to the official documentation, where all the irc channels should be written at Sep 10 15:47:04 I've been on this VideoView layout problem for a day. Why? Just to center the video. Unbelievable. Sep 10 15:47:21 MikeWallaceDev did it show with dimensions ? Sep 10 15:47:51 nope Sep 10 15:48:02 did it show with the color at all ? Sep 10 15:48:28 is the custom view even created ? Sep 10 15:48:33 I followed it all the way up to "compiled code", it went in with the correct Layout. Then when it's displayed it still have MATCH_PARENT Sep 10 15:48:44 nope... 0, 0 = no color Sep 10 15:49:06 yep, all created. All have correct Layout... still have 0, 0 Sep 10 15:49:20 so the parent is 0,0 Sep 10 15:49:35 nope, parent is full screen Sep 10 15:49:45 getParent().getWidth Sep 10 15:49:50 you tested ? Sep 10 15:49:53 (and the ImageView works...) Sep 10 15:50:02 oh….hmmm Sep 10 15:50:25 it's a Pager, I load one video and one image. Video has 0, 0, swipe and the Image is perfect Sep 10 15:50:37 swipe back to video, video is 0,0 Sep 10 15:51:31 brb Sep 10 15:52:31 is it recommended to use retrofit with jackson? Sep 10 15:52:41 i do Sep 10 15:52:43 it doesn't matter Sep 10 15:53:00 okay Sep 10 15:53:27 thx for the quick answer XD Sep 10 15:54:02 im posting this the last time for today...if someone can help me solving this issue i would appreciate it -> http://stackoverflow.com/questions/25753718/steam-web-api-how-to-get-a-working-httpsurlconnection-with-steam-web-api Sep 10 15:57:48 "im posting this the last time for today" - thats what you said 7 hours ago, too... Sep 10 16:02:32 JakeWharton: is it really you? Sep 10 16:04:09 ad_dev: Don't you know that aliens like to call themselves JakeWarthon? Of course it's not him. Sep 10 16:04:26 I thought so! Sep 10 16:04:37 its simply impossible Sep 10 16:05:13 nothing is impossible Sep 10 16:05:38 theres always someone in this channel pretending to be JakeWharton! dont get fooled! :p Sep 10 16:06:08 i am trying to draw two custom views to my layout programatically but i keep getting a runtime error... this is the code i am using http://pastebin.com/2sYGRPqB Sep 10 16:06:35 How about having smooth animations in android? Sep 10 16:06:46 i do beleive.. THAT is impossible. Sep 10 16:08:05 Why wouldn't it be JakeWharton? I never doubted it for a second... Sep 10 16:08:50 how do you determine which application handled an intent? sharing for example Sep 10 16:08:53 is that possible? Sep 10 16:09:37 JacobTabak, good question! I don't think it's possible though... Sep 10 16:09:47 What are you trying to achieve? Sep 10 16:09:53 just analytics Sep 10 16:10:00 determining how people are sharing Sep 10 16:10:50 the fedex truck just dropped off my moto 360 from i/o :D Sep 10 16:11:46 Motohitu! Sep 10 16:12:43 hey there! Do anyone have some knowledge to help me with IAP? I need to use IAP in my game and i have some questions! Sep 10 16:13:27 in app billing? Sep 10 16:14:11 well, i know it as in app purchases but i think it's the same Sep 10 16:14:13 so yes! Sep 10 16:15:04 ah. Well go ahead, ask. Not sure I can help but someone else might :) Sep 10 16:16:30 i can lift you up Sep 10 16:17:07 Im making a game and i want to give the options to buy additional levels. The question is, is there a way to do that without including the level packs in the apk before-hand? If i inlcude them, it's easy to enable with a few checks. But i'd prefer the more secure way of downloading the pack when someone purchases the pack Sep 10 16:17:45 j0hnskot: Of course you can download them... Sep 10 16:18:21 can you give me some pointers? A tutorial or something? Sep 10 16:18:26 http://developer.android.com/google/play/billing/index.html Sep 10 16:18:32 it expalins how to enable download Sep 10 16:18:34 after purchase Sep 10 16:18:44 i beleive... :) Sep 10 16:19:33 j0hnskot: after the purchase, download the file containing the level into a public folder and check that folder for levels together with the check if something is purchased Sep 10 16:20:06 if you implement IAP correctly, cheating arround it shouldnt be possible though! Sep 10 16:20:57 I'm using cocoonjs to port my game and it is giving me a head-ache. I dont know if this will be posible to achieve with cocoonjs. Did anyone tried it? Sep 10 16:24:13 I'm pissed at Layouts. Going to make coffee. Stupid Layouts. Sep 10 16:24:22 MikeWallaceDev: yo dude Sep 10 16:24:34 JacobTabak, ? Sep 10 16:24:42 MikeWallaceDev: lets figure it out? Sep 10 16:26:03 how do you determine which application handled an intent? sharing for example (asking again.. one last time, sorry) Sep 10 16:27:07 Should you know? Doesnt that kind of defeat the object of registered intent "receivers"? Sep 10 16:27:24 JacobTabak, figure what out? My layout? Sep 10 16:27:29 MikeWallaceDev: yes Sep 10 16:27:41 rgr: i’d like to know how the intent was resolved Sep 10 16:27:44 I need coffee first. I usually don't drink coffee twice in a day, but this is killing me :D Sep 10 16:28:04 layouts... Sep 10 16:28:18 rgr, programmatically, he doesn't need to know. But for analytics, why not? Sep 10 16:28:26 ok, brb :) Sep 10 16:29:13 Because I dont believe it should be the business of the app writer which apps the "customer" uses to service intents. It's kind of invasive IMO. But there you go. Sep 10 16:30:15 pretty much all analytics are invasive... Sep 10 16:30:23 rgr: that’s a fine line Sep 10 16:30:46 MikeWallaceDev, who do you want banned (and why)? Sep 10 16:30:46 sites track how you came in and where you go to Sep 10 16:31:04 canadiancow, oh wow, that was a while ago :) Sep 10 16:31:35 canadiancow, some guy wanted to write a Virus... I think guys like that don't deserve our help Sep 10 16:32:15 canadiancow, where are you from mate? I'm in Montreal Sep 10 16:32:25 (I'm never going to get this coffee :) ) Sep 10 16:32:32 originally toronto Sep 10 16:32:41 now im in mountain view Sep 10 16:32:46 Cali? Sep 10 16:32:58 yes Sep 10 16:33:01 cool Sep 10 16:33:50 View.GONE (to get my coffee) Sep 10 16:41:19 Thanks for waiting for me to come back before continuing :) Sep 10 16:45:46 no problem Sep 10 16:46:16 haha, i was kidding :) Sep 10 16:46:30 Just funny that nobody said anything while I was gone :) Sep 10 16:47:20 Heya. I'm dynamically creating bitmaps in my app (ie. they're Bitmap objects, no resource id). Anyone have any ideas on if it's possible to show them in an AlertDialog (or similar)? Sep 10 16:47:50 yes, put it in an imageview Sep 10 16:47:54 of course :) Sep 10 16:48:03 custom layouts with an imageview Sep 10 16:48:26 http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setView(android.view.View) Sep 10 16:48:35 you don’t even need a layout to prototype it Sep 10 16:48:48 new AlertDialog.Builder(context).setCustomView(myImageView).show() Sep 10 16:48:53 er, setView() Sep 10 16:49:31 Oh wait... I completely missed the method setImageBitmap() on ImageView. *cough* Sep 10 16:49:39 *cough* Sep 10 16:49:47 That's rather embarrassing. :) Sep 10 16:49:49 that’ll do it Sep 10 16:52:03 is there a refactor method in android studio to change the type of a class member, like from an int to a long, that will change all of its getters and setters? not seeing it Sep 10 16:53:42 nope, I had to do it by hand. Sep 10 16:53:46 which is weird Sep 10 16:53:57 ya Sep 10 16:54:19 i have to do it quite often, like when i’m mapping out api models Sep 10 16:54:34 i’ll assume something is an int when its actually a string, like an id for example Sep 10 16:55:21 you can automate the getters setters though, if they are "empty" (no validation or anything) Sep 10 16:56:21 Alt-Ins Sep 10 16:56:46 is 4.4.4 out, yet?! Sep 10 16:58:59 * monsti needs to learn how to use google before irc ... Sep 10 17:00:13 monsti, yes Sep 10 17:02:40 canadiancow: sometimes google is faster ;) Sep 10 17:05:37 that should be our new motto Sep 10 17:06:02 Learn to use Google before IRC Sep 10 17:06:19 hey, I just say this for the first time, this is cool : http://i.imgur.com/pzKvVCH.png Sep 10 17:06:41 Android Studio offers the parameters as well, parameters Sep 10 17:08:46 i still don't get it - what's all about that smart watch hype? Sep 10 17:08:56 * monsti is getting to old for this ;) Sep 10 17:10:18 me again: cleaned up the library cursor management, still finding this error: https://gist.github.com/anonymous/84b9f371ca32634ced42 Sep 10 17:10:46 AS have NDK integration yet, or somewhat acceptable build times? Or both still no? Sep 10 17:11:54 number of cursors is 1, but the window is still trying to allocated 2048 kb Sep 10 17:14:25 you need PacMan if you have too much cursors ;) Sep 10 17:16:47 is that the rom? Sep 10 17:19:47 yes PacMan is the ROM ;) Sep 10 17:19:48 oh nice http://www.engadget.com/2014/09/09/intel-reference/ Sep 10 17:20:35 is that to debug the leak or just fix it by using the rom, i need to solve the problem on vanilla android Sep 10 17:21:17 g00s: so android-x86 will become even more useful ;) Sep 10 17:22:27 i'd really like a low cost hardware reference design sans battery/3g/lcd that plugged into the machine and interacted through adb; UI via vnc or something Sep 10 17:22:36 something in the $35 price range Sep 10 17:23:04 g00s: you can get some of the usb sticks that are about that price as I recall Sep 10 17:23:14 g00s: some intel-ish raspery? Sep 10 17:23:39 g00s: http://www.amazon.com/UG007-Dual-Core-processor-integrated-Bluetooth/dp/B00EOL1BO0/ref=sr_1_4? Sep 10 17:24:01 dragorn ah thanks for the link Sep 10 17:24:14 i mean, it's mips, and awfully china-ish Sep 10 17:24:15 Is anyone else having problems with Android Studio layout preview being rendered all whiite? Sep 10 17:24:21 part of the benefit would be google blessing the device as a reference device Sep 10 17:24:29 and keeping everything up to date / working Sep 10 17:24:30 well, ok. That's a different argument. :) Sep 10 17:24:33 hehe Sep 10 17:25:37 monsti: sorry, so would I be testing on PacMan or is that just a temp solution Sep 10 17:28:20 "Justin Bieber Strips At Fashion Show, Gets Loudly Booed" haha Sep 10 17:28:31 so there are issues with using a textureview on an emulator? anyone have experience? Sep 10 17:32:45 dont use android emu or virtualbox, only real devices Sep 10 17:32:52 so cant help Sep 10 17:52:15 StingRay_: you could probably improve productivity a lot w/ genymotion Sep 10 17:53:00 JacobTabak compared to what ? I dont want to jump through hoops Sep 10 17:53:11 I just like the "it just works" thing :) Sep 10 17:53:11 compared to testing on a device Sep 10 17:53:27 genymotion is about 5x faster from launch to app starting Sep 10 17:53:55 not to mention not having to worry about connecting devices, making sure they dont go to sleep, etc Sep 10 17:53:55 JacobTabak and about 1000x harder to get things like gms-play-services Sep 10 17:54:08 indeed, but you’re not testing that part of your app all the time Sep 10 17:54:16 different tools for different tasks Sep 10 17:56:07 having my machine with virtualBox … not a big fan Sep 10 17:56:18 I dont want extra crap running :) Sep 10 17:56:26 I'm a bit or an arse when it comes to that Sep 10 17:57:10 understandable… just sharing my experience, it’s really sped up development Sep 10 17:59:09 I'm using android studio and I'm trying to read from a text field with this code: Sep 10 17:59:12 EditText editText = (EditText) findViewById(R.id.edit_message); Sep 10 17:59:41 But after importing EditText I get "can't reslove method 'findViewById'" Sep 10 17:59:46 Why is this? Sep 10 17:59:54 are you in an activity class? Sep 10 18:00:15 oh... I'm in a fragment Sep 10 18:00:23 call getActivity().findViewById Sep 10 18:00:31 but Sep 10 18:00:33 you don’t want to do that Sep 10 18:00:45 you should keep your views in your fragments separate from your views in your activities Sep 10 18:00:57 What's the difference? Sep 10 18:01:05 separation of concerns Sep 10 18:01:11 a fragment shoudlnt’ depend on its activity and vice versa Sep 10 18:01:22 they should be completely independent and only communciate through interfaces Sep 10 18:01:42 uhm, what if I have my UI on the fragment? Sep 10 18:02:04 getView().findViewById() Sep 10 18:02:11 assuming your view has been created Sep 10 18:02:19 sorry, i was slightly confused at your question Sep 10 18:02:25 but that’s the answer you’re looking for Sep 10 18:02:54 Can't resolve method 'getView'? Sep 10 18:03:10 fragment has a getView method Sep 10 18:03:13 re: My FrameLayout and VideoView problem. The FrameLayout's onLayout is not being called?? OnMeasure is called. OnMeasure is also weird, it's giving a reasonable height, but a width of 0. Sep 10 18:03:24 http://developer.android.com/reference/android/app/Fragment.html#getView() Sep 10 18:03:41 if you’re in a fragment class, you won’t need to import anything to use getView() Sep 10 18:04:01 I see now Sep 10 18:04:43 MikeWallaceDev: the params for onMeasure are not pixels or anything like that, they’re MeasureSpecs Sep 10 18:04:59 http://developer.android.com/reference/android/view/View.MeasureSpec.html Sep 10 18:05:09 how do I use logcat again? Sep 10 18:05:14 0 means unspecified, the view can pick it’s only size Sep 10 18:05:43 got it Sep 10 18:05:55 MikeWallaceDev: my gut feeling is that you’re digging too deep when the problem is probably on the surface somewhere Sep 10 18:06:38 JacobTabak, you are probably right. But I did the surface and can't figure it out. So... I have to go deeper. Sep 10 18:07:08 can you tell me at a high lvl what your issue is Sep 10 18:08:26 wait.. there's a pastebin up there somewhere... Sep 10 18:09:28 http://pastebin.com/NxkTXZP2 Sep 10 18:10:47 MikeWallaceDev: what about your layotu files Sep 10 18:11:35 no layout files Sep 10 18:11:59 though I did also try it with layout files. (I've been trying EVERYTHING!!) Sep 10 18:12:53 so i’m pretty sure the default behavior for video view is to center the video when you set match_parent for both its layout params Sep 10 18:13:53 JacobTabak, apparently not if it is in a LinearLayout, which is why I'm trying to wrap it with a FrameLayout Sep 10 18:14:02 right Sep 10 18:14:03 and by 'apparently' , I mean no. Sep 10 18:14:11 It goes to the left Sep 10 18:14:33 and I know it is full screen because the MediaController is fullscreen Sep 10 18:15:28 MikeWallaceDev: http://pastebin.com/63YLTzqa Sep 10 18:15:37 this works for me Sep 10 18:15:39 wait... what?? If the MediaController is fullscreen, then the VideoView is full screen, why would it put video to the left?? Regardless of the container Sep 10 18:15:43 it’s merged into a framelayout Sep 10 18:15:59 MediaControllers have their own mind, disregard that and focus on yoru videoview for now Sep 10 18:16:24 Yeah, I noticed that they have their own mind :D Sep 10 18:16:37 obv the layout_gravity in the thing i pasted is not necessary Sep 10 18:17:12 i would drop all these custom classes you have, do it in xml Sep 10 18:17:27 I tried in XML too... Sep 10 18:17:44 and the custom classes are there for a reason :D Sep 10 18:18:25 The VideoView is inside a ViewPager. I page through videos and images Sep 10 18:18:37 aye, but you need to get rid of the complexities and make it work for the simples case Sep 10 18:18:39 simplest* Sep 10 18:18:56 actually, no, I need to make it work for the hardest cases... Sep 10 18:19:16 i’m talking about debugging strategy, you have been frustrated with this for a while Sep 10 18:19:49 I can make it work. Just remove the FrameLayout. Tada! Sep 10 18:19:58 you should do something as simple as possible that gets your video centered, then re-add your logic Sep 10 18:20:02 But then the video is to the left. THAT is what I'm trying to fix. Sep 10 18:20:39 ok, so my suggestion to you would be take yourself out of the context of your project, and create a centered videoview via xml Sep 10 18:20:56 then once that’s working, migrate the implementation to your project Sep 10 18:23:18 Fuck me. Even Android Studio thinks this should work! http://i.imgur.com/HyqD5W5.png Sep 10 18:23:47 (I colored the FrameLayout Cyan to see how it is drawn) Sep 10 18:24:02 why isn’t your videoview MATCH_PARENT? Sep 10 18:24:11 It IS! Sep 10 18:24:22 HierarchyViewer says that it is Sep 10 18:24:57 even when I hard code dimensions (200, 200) , it still goes back to match parent Sep 10 18:26:18 ? Sep 10 18:26:25 ! Sep 10 18:26:26 hahaha Sep 10 18:26:51 I haven't pulling my hair out for nothing :) There's somethign screwy going on Sep 10 18:26:56 http://cl.ly/image/090m3c3B2y3J Sep 10 18:27:54 when i play video with this, it is centered Sep 10 18:29:41 gimme a second Sep 10 18:31:16 damn, make that a minute. (I factory reset my tablet last night, I have to find a small video) Sep 10 18:31:44 im constantly writing code to check if the fragment I want to insert already exists. there doesn't happen to be a convienance function for this does there? Sep 10 18:32:10 theblang: do you mean exists in the FragmentManager? Sep 10 18:32:18 JacobTabak yeah Sep 10 18:32:40 theblang: typically you re-attach fragments in onCreate and then you’ll always know they are there Sep 10 18:33:04 JacobTabak reattach or destroy? Sep 10 18:33:23 i mean like Sep 10 18:33:25 JacobTabak reattach, else destroy is what I mean Sep 10 18:33:49 maybe we’re not talking about the same thing, but like if i have a fragment with setRetainInstance(true) Sep 10 18:33:52 JacobTabak because one problem I was having ist hat I would rotate orientations, then have two of the same fragment around because I wasn't checking if it exists already Sep 10 18:34:24 ok perfect, yea thats what i’m talking about Sep 10 18:34:50 JacobTabak I would love a better solution than constantly doing a find, if not null, create everywhere Sep 10 18:35:21 does the fragment get attached/detached throughout the lifecycle of the activity? like is it part of drawer layout or tabs or something Sep 10 18:35:41 and are you dealing with lots of fragments or just one Sep 10 18:36:11 JacobTabak lots. I just switched to one activity for my five or so top level screens Sep 10 18:36:37 JacobTabak and yeah, it has a drawer layout Sep 10 18:37:03 the way i do this is make a map of fragments Sep 10 18:37:33 hashmap Sep 10 18:37:56 JacobTabak would that effect GC though? Sep 10 18:37:57 only attach the first fragment in onCreate, and only if savedInstanceState == null Sep 10 18:38:22 theblang: if you don’t care about instance state you don’t have to make a map Sep 10 18:38:36 i do it so instancestate is saved Sep 10 18:39:23 are you using replace() to show your fragments? Sep 10 18:39:45 JacobTabak so, for example, if you scroll in a ListFragment, then navigate around and back to that screen, the scroll state will be the same? Sep 10 18:39:48 JacobTabak yes Sep 10 18:40:00 theblang: yes, if you manage lifecycle correctly Sep 10 18:41:16 listviews save their scroll state to instancestate Sep 10 18:42:02 theblang: if you’re using replace, you should never need to worry about having multiple fragment Sep 10 18:42:20 JacobTabak if you only attach the first fragment in onCreate, and only if savedInstanceState == null, what happens if a fragment for an activity has been garbage collected and you some how make it back to the activity. would that not happen? Sep 10 18:42:46 JacobTabak well, if I attach Foo fragment to Foo Activity in onCreate, then rotate orientation, I will have two Foo fragments Sep 10 18:42:58 right, thats why you check to make sure instancestate is null before attaching Sep 10 18:43:05 a fragment attached to an activity will not get GC upon rotation Sep 10 18:44:03 or ever, really, as long as the activity is restored from instance state, any fragment attached to it can be as well Sep 10 18:45:09 JacobTabak ahh, I think I got ya. if you rotate, the instancestate isn't null Sep 10 18:45:25 JacobTabak hmmm, so maybe I can stop doing this find if null create stuff Sep 10 18:45:32 JacobTabak by just checking instance state Sep 10 18:45:47 yep Sep 10 18:46:19 JacobTabak I almost made a Util method for it, until I realized I'd have to figure out how to do some generics stuff, which is why I wanted to check here. thanks man, gonna try that Sep 10 18:46:29 good luck… this stuff gets really confusing Sep 10 18:47:33 JacobTabak man, im glad I'm not the only one that feels that way. I actually tried to do what I am currently doing about five months ago and was completely overwhelmed. At least now I feel like I have a much better grasp on it. I have almost finished the rework to only one Nav Drawer Activity Sep 10 18:47:36 theblang: btw, you should have no problem keeping 5 top lvl fragment references in your activity Sep 10 18:48:07 JacobTabak yeah, that is a good point. I almost wonder if I shouldn't just go ahead and load them when app starts for a quicker swap Sep 10 18:48:08 what about this for adding a fragment http://developer.android.com/reference/android/app/FragmentTransaction.html#add(int, android.app.Fragment, java.lang.String) Sep 10 18:48:15 don’t do that theblang Sep 10 18:48:48 sec im gonna pastebin you something Sep 10 18:48:50 you dont have to supply a container and you can supply a string tag Sep 10 18:49:04 ProjectN interesting. so then is it just around but not visible? Sep 10 18:49:11 how thatll work i dont know Sep 10 18:51:30 theblang: add all your fragments like that messes with fragment lifecycle Sep 10 18:51:39 JacobTabak got ya Sep 10 18:51:41 you will have all of the fragments in memory Sep 10 18:51:53 onResume() won’t be called when switching between them, etc Sep 10 18:52:02 check this out, it’s how i handle drawer item selections in one of my apps Sep 10 18:52:04 JacobTabak ahh yes Sep 10 18:52:06 http://pastebin.com/j5GepZ1f Sep 10 18:53:24 JacobTabak keeping it in that map will keep it from being GC, and thus eventually (when user has gone to all nav screens) will have all fragments in memory, right? Sep 10 18:54:16 theblang: yes, but they will be destroyed Sep 10 18:54:29 their views Sep 10 18:55:56 JacobTabak got ya. thanks man! this conversation has been very helpful! Sep 10 19:00:47 theblang: a more complicated way of doing it might be to drop the map, and manually save teh fragments instance state with FragmentManager.saveFragmentInstanceState Sep 10 19:01:27 JacobTabak yeah, that will require setRetain which will require handling everything manually right? Sep 10 19:01:46 theblang: no Sep 10 19:02:19 google play services library got an update? Sep 10 19:02:30 theblang: this is how fragmentstatepageradpater does it, check out http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/android/support/v4/app/FragmentStatePagerAdapter.java Sep 10 19:02:34 line 124 Sep 10 19:03:32 tbh, i don’t know why there isn’t a better built in library for managing fragments for a drawer Sep 10 19:03:44 like viewpageradapter doesn’t work because it has offscreen fragments Sep 10 19:03:54 Does anyone have any good resources for setting up stub REST servers for use in testing scenarios? Sep 10 19:04:06 or not.. Sep 10 19:04:06 s73v3r: are you using retrofit? Sep 10 19:04:15 No Sep 10 19:04:28 do you want to ? Sep 10 19:04:37 or yes Sep 10 19:04:52 (/whispers retrofit rocks) Sep 10 19:05:12 Ideally, I wouldn't have to touch the app itself; I'd change the system proxy or something like that Sep 10 19:05:30 We're looking at Retrofit, but our current implementation is using Volley Sep 10 19:06:59 I want to set up something scriptable, so I can control it from my automated tests Sep 10 19:09:07 s73v3r: you could inject a custom Netowrk object into your RequestQueue Sep 10 19:09:21 http://javadocs.okadatech.com/javadoc/volley/reference/com/android/volley/RequestQueue.html#RequestQueue(com.android.volley.Cache, com.android.volley.Network) Sep 10 19:10:24 s73v3r: this project is a good example of using dependency injection and retrofit to allow swapping between mock and real http requests at runtime https://github.com/JakeWharton/u2020 Sep 10 19:10:45 when your APIs are just an interface they're trivial to swap for fake impls Sep 10 19:11:03 This is more for functional or integration testing, so I'd prefer to not touch the app or muck with the app's network layer unless I have to Sep 10 19:11:34 Ive got a question about android programming with bluetooth: Sep 10 19:11:43 s73v3r: in your unit test you can create a different requestqueue than you use in your actual app, and only change that Sep 10 19:11:50 without messing around with any production code Sep 10 19:12:03 would take very minimal refactoring of your app Sep 10 19:12:51 hey hey Sep 10 19:13:29 JakeWharton: so do you find yourself doing most of your data loading into an injected singleton in your application, rather than loading it all in a service and pulling it from there? Sep 10 19:14:06 so, I want to development a bluetooth chat thing: But insteat of chatting with just one person, my app should allow to send and reciece messages to all linked bluetooth devices (which have installed my app) at the same time Sep 10 19:14:08 right now it's a mix between injecting a singleton and querying the db Sep 10 19:14:27 do i need an extra thread and socet for each device? Sep 10 19:14:31 *socket Sep 10 19:15:07 JakeWharton: I find myself spending most of my effort initiating async fetch/process in a service and then dealing w/ syncing to it (and getting crappy performance opening a new activity which waits for the service bind to complete) Sep 10 19:15:07 any experience using Calabash for functional testing? Sep 10 19:15:13 JakeWharton: so I'm suspecting I'm doing something stupid Sep 10 19:15:52 JakeWharton: but for the most part I don't NEED the data THAT persistent (I mean, the service can go find its own stuff for background notification purposes) Sep 10 19:18:53 does binding your service take some time? Sep 10 19:19:33 JacobTabak: it's async and can take an indefinite amount of time; in practice it generally takes long enough that there is some visible "ui is waiting to get data" stage, yeah Sep 10 19:19:50 JacobTabak: even though I'm doing binding against the application context and not the activity Sep 10 19:20:20 so... I removed the FrameLayout. I only instantiating a VideoView. The VideoView is added to the ViewPager. The ViewPager is full screen. The VideoView is the size of the video (which is smaller than the screen). The VideoView appears on the left side of the ViewPager. HViewer tells me that the VideoView is MATCH_PARENT, however it's width is only 798. Sep 10 19:21:10 MikeWallaceDev: what type of viewpager is it? Sep 10 19:21:20 custom impl? Sep 10 19:21:40 private class MyViewPager extends ViewPager Sep 10 19:22:44 but it doesn't do much. Sep 10 19:24:25 man, this is messed up; one of the apps on my n7 crashed. when i go into recents apps button, the previews for all the loaded apps are gone and clicking any one brings up a crash reporter window for that app Sep 10 19:25:52 MikeWallaceDev: is it centered vertically? Sep 10 19:26:08 MATCH_PARENT Sep 10 19:26:12 someone can help with this prob? http://stackoverflow.com/questions/25753718/steam-web-api-how-to-get-a-working-httpsurlconnection-with-steam-web-api Sep 10 19:26:16 yes, it's full height Sep 10 19:26:16 hi guys Sep 10 19:26:34 hey defuex you said you wouldn't post that anymore :P :D Sep 10 19:26:50 i know i said i wouldnt post it anymore mike :P Sep 10 19:26:57 hehe Sep 10 19:27:10 but i really need that solved and my brain goes numb :( Sep 10 19:27:58 MikeWallaceDev: so did you try making a new activity with the layout i sent you and see if it worked? Sep 10 19:30:34 No need, I know that will work :) Sep 10 19:43:40 Hello! Sep 10 19:44:35 I'm trying to set up a loader with ActiveAndroid but every time onLoadFinished is called, the cursor is null Sep 10 19:44:36 any idea? Sep 10 19:45:07 the relevant line is this: return new CursorLoader(getActivity(), ContentProvider.createUri(Post.class, null), null, null, null, null); Sep 10 19:45:31 all args are null so it should be loading everything Sep 10 19:45:57 even the projection eh :) Sep 10 19:46:04 yes Sep 10 19:46:04 i don't think so, seems busted Sep 10 19:46:10 you dont need a projection? Sep 10 19:46:22 no you don’t need a projection by default it gets all columns Sep 10 19:46:22 what? the docs say it can be null Sep 10 19:47:15 oh, and I have this other relevant line: Toast.makeText(getActivity(), String.valueOf(new Select().from(Post.class).count()), Toast.LENGTH_LONG).show(); Sep 10 19:47:30 and the database is not empty Sep 10 19:47:41 Mattx stop pasting in channel, gets lost and is confusing … use pastebin Sep 10 19:48:06 come one, pastebin for one line of code? Sep 10 19:48:15 on* Sep 10 19:48:23 2 so far Sep 10 19:48:40 but isn't on of those flags supposed to be an ident of some kind for it to use as a reference Sep 10 19:49:23 oh, maybe not, I just used loader, not cursorLoader Sep 10 19:49:39 hmn, maybe I shouldn't be using cursorLoader then? Sep 10 19:50:20 does a sqliteopenhelper hold a reference to the context? Sep 10 19:50:22 I took it from here: https://github.com/pardom/ActiveAndroid/wiki/Using-the-content-provider Sep 10 19:50:28 i know you have to pass it into the super constructor Sep 10 19:51:24 Mattx ah no, same thing really, and only needed in initLoader Sep 10 19:51:39 hmn, ok Sep 10 19:52:05 what would you guys do to find the error? I'm lost Sep 10 19:52:39 can you get a cursor from your cp ? Sep 10 19:52:49 forget the loader Sep 10 19:53:19 I'm not sure, let me see Sep 10 19:53:35 (first time with ActiveAndroid, I've no idea) Sep 10 19:53:35 cause that would be the 1st thing I would do….find where the prob is :) Sep 10 19:53:46 Handlers and HandlerThreads, whats the proper way to clean them up? Sep 10 19:53:59 but I draw things more than type…so maybe listen to others rather than me Sep 10 19:54:01 :) Sep 10 19:54:23 remove callbacks and quit the looper Sep 10 19:54:25 ? Sep 10 19:58:03 aha! I found the error! Sep 10 19:58:46 :) Sep 10 19:59:25 The URI AA was generating didn't match the authority in in AndroidManifest Sep 10 20:00:18 now the cursor is not null, but the list is still empty after adapter.swapCursor(c) :( Sep 10 20:00:35 it's better now than before anyway haha Sep 10 20:00:57 Let's say I have a compound view, and I have a stateful text color on a contained view. How do I pass my own drawable state on to the text view, or where is the best place to manually set it so that the change is reflected in the contained views? Sep 10 20:01:01 Mattx called notify ? Sep 10 20:01:23 I've tried using onLayout, onCreateDrawableState, and drawableStateChanged and none of them seem to keep the state updated. Sep 10 20:01:40 Hi, I'm working with the android accesibility service. Is there a way to do a back button press using accesibility service. The android developers page says you can but I can't find any examples Sep 10 20:01:41 it's not in AA's wiki, should I call notify? Sep 10 20:02:07 Mattx think so, observer wont trigger on data source swap I dont think Sep 10 20:02:09 not sure though Sep 10 20:02:17 but try it Sep 10 20:02:53 My project is growing, and I want to try to keep it manageable Sep 10 20:03:04 How should I split it up into "libraries" ? Sep 10 20:03:21 you probably don’t want to unless you’re goign to reuse them on other projects Sep 10 20:03:23 where the library is completely self contained, with its own resources, xml files, etc? Sep 10 20:04:04 you can create a library project but it’s probably going to add complexity rather than remove it Sep 10 20:04:08 can I keep them in separate folders or anything? Sep 10 20:04:13 packages Sep 10 20:04:56 question for you all: somehow I have a mediaplayer drawing to a surface view, but when i scale the matrix, it draws OUTSIDE of the bounds of the surfaceview for one frame Sep 10 20:05:18 ie, when i zoom in, it ignores the bounds of the surfaceview for one frame? so confused Sep 10 20:06:29 JacobTabak: there's an option whether to clip the padding or not - do you have that set? Sep 10 20:07:03 johnflux__, i don’t have that set Sep 10 20:07:23 there is no padding Sep 10 20:08:38 http://developer.android.com/reference/android/view/TextureView.html#isOpaque() “Some transforms might prevent the content from drawing all the pixels contained within this view's bounds. In such situations, make sure this texture view is not marked opaque.” Sep 10 20:09:15 JacobTabak: that's for the opposite problem Sep 10 20:09:34 ah, indeed Sep 10 20:10:01 I'm adding multiple views programatically. I set the layout params (it's a relative view) to be two columns and 3 rows. It's only one row and two columns, the ImageViews that I created programatically are just stacked on top one another Sep 10 20:11:05 johnflux__: i have a 100dp x 100dp surface view in the center, and this is whats happening: http://imgur.com/whz1ocT Sep 10 20:11:41 JacobTabak: when you said "I don't have that set", you want that set Sep 10 20:11:43 it's set by default Sep 10 20:11:49 do you know the property I'm talking about? Sep 10 20:12:14 hm yeah it’s a viewgroup property Sep 10 20:12:29 should i set it on the parent container? Sep 10 20:12:53 there's also android:clipChildren Sep 10 20:13:47 neither of those have an effect :| Sep 10 20:13:52 i think it has something to do with the scaling transform Sep 10 20:15:05 StingRay_, it's not the notification (it seems it's not needed??). I'm checking the rest of the code just in case, thanks for your time! Sep 10 20:15:26 notification ? Sep 10 20:15:30 JacobTabak: yes, but the transform is correct, but you just want it clipped to its bounds, right? Sep 10 20:15:36 JacobTabak: or did I misunderstand> Sep 10 20:15:40 notifyDataSetChanged Sep 10 20:15:53 johnflux__: the video is clipped to bounds, but for some reason one frame is drawn outside of the bounds Sep 10 20:15:58 its’ like an opengl bug almost Sep 10 20:16:09 oh sh*t yeah, well just look at what getCount() returns, then trace to a single getView and you should know all you need to Sep 10 20:16:12 it seems it's not needed, at least in the examples I found on the internet. I tried with it and the list is still empty Sep 10 20:16:24 yep, thanks Sep 10 20:21:13 Anything wrong with this? byte tile = 0; tile |= 4; Sep 10 20:24:32 hm, genymotion hasn't had a release in a loong time, wonder if they are OK Sep 10 20:28:05 restricted by google Sep 10 20:28:17 lack of play services support Sep 10 20:28:30 I dont see the point tbh Sep 10 20:28:42 not with how fast the emulator can be Sep 10 20:29:16 StingRay_ geny is much more than a fast emu, it has other things (in the paid version) that official emu doesn't have Sep 10 20:29:59 ah, not experienced it … I liked them back in the androVM days Sep 10 20:30:02 dev tools is always a tricky market. i would think there are enough shops doing android work, they would get a license Sep 10 20:30:03 not so much now Sep 10 20:30:23 if they had to rely on hobbyists that would a bad plan ;) Sep 10 20:33:04 johnflux__: i solved my problem by wrapping the textureview in a framelayout and specifying the size on the framelayout rather than the textureview. i hate stuff like this, i wish i understood what the actual problem was :( Sep 10 20:36:52 JacobTabak: I wrote a lot of the layout code for the nokia phones. These sorts of problems were to do with the exact order in which you invalidated, updated, resized and clipped Sep 10 20:37:27 JacobTabak: (I worked for Nokia) Sep 10 20:37:43 interesting, it definitely seems like an android bug though Sep 10 20:38:08 JacobTabak: sure, but the algorithms are pretty similar Sep 10 20:38:28 aye, i’m just saying it shouldnt be my responsibility to work around it :) Sep 10 20:38:39 i’ll put together a bug report adn sample project Sep 10 20:38:44 JacobTabak: that's what all the users complained about :_D Sep 10 20:42:18 JacobTabak: I'm really new to android. How do I state "I want this widget to resize to contents, but with this maximum and minimum size" Sep 10 20:43:26 there is a view:minWidth and view:minHeight Sep 10 20:43:48 but they’re not exactly reliable Sep 10 20:44:17 it really depends what type of widget (or view, as they’re called) you want to size Sep 10 20:45:05 this is funny in /r/androiddev "android studio uses eclipse apis" ... like some form of herpes Sep 10 20:45:21 you dawg we put swt in your swing ... Sep 10 20:45:31 layout phase is pretty complex, each parent view imposes size requirements on its children via MeasureSpec Sep 10 20:45:59 so max size is almost always determined by the parent Sep 10 20:49:57 Hey everyone. Is there an ios-dev? Sep 10 20:51:45 tricknology #iphonedev Sep 10 20:51:50 ty Sep 10 20:56:06 g00s did you see any clips of the conference Sep 10 20:56:13 no Sep 10 20:56:14 it's just soooo funny Sep 10 20:56:23 worth it if you have a few drinks and watch bits Sep 10 20:56:37 i doubt it :| Sep 10 20:56:50 "retina HD, thats full HD, thats 2 million pixels" Sep 10 21:05:39 StingRay_ i read the verge summary and even that was boring Sep 10 21:05:53 the devices look beautiful tho, i bet that A8 smokes Sep 10 21:06:06 they have done some things to iOS that are pretty good Sep 10 21:06:19 things that I have had to do in my app that google just seem to …well….ignore Sep 10 21:06:35 like preference for 1 handed operations Sep 10 21:06:39 love that Sep 10 21:09:53 i guess they have a barometer too now to help with motion coprocessor? Sep 10 21:10:06 some android devices have had that a while back for agps .... Sep 10 21:10:25 but as an apple dev, its nice knowing now that all those devices have it ;) Sep 10 21:12:08 yeah I looked at a few updated sources of revenue for mobile devs, compared to ios android is depressing as hell Sep 10 21:12:35 they both have their advantages Sep 10 21:13:27 yeah, money being on apples side Sep 10 21:13:33 ;) Sep 10 21:14:07 g00s you looked at swift ? Sep 10 21:14:14 who am I kidding Sep 10 21:14:20 StingRay_ no, not doing any apple dev atm Sep 10 21:14:30 seen it, not impressed by it Sep 10 21:14:32 oh …shocked that you not looked Sep 10 21:14:42 bankai_au better than objc Sep 10 21:14:47 sure is! Sep 10 21:14:48 ? Sep 10 21:15:58 i'd still rather java/scala Sep 10 21:19:43 i'd rather money Sep 10 21:19:52 drugs, bro, i keep telling you ... Sep 10 21:20:04 legal money :) Sep 10 21:21:24 bankai_au do I need mavericks to have a play in swift ? Sep 10 21:21:49 dunno, sorry Sep 10 21:24:23 StingRay_ https://developer.apple.com/swift/blog/?id=14 Sep 10 21:25:07 oh it's not a current thing Sep 10 21:25:16 suppose I should actually read a bit :) Sep 10 21:26:36 StingRay_: look at scala and robovm ;) Sep 10 21:27:06 bankai_au cant be too adventurous, I only play at being a programmer Sep 10 21:30:41 John Carmack is not a fan of android development Sep 10 21:30:52 lol Sep 10 21:30:56 http://www.businessinsider.com/cto-of-oculus-john-carmack-gives-interview-about-android-2014-9 Sep 10 21:31:12 memory leak... all these issues Sep 10 21:32:27 guys im having an issue with SherlockNavigationDrawer... i added actionbarsherlock to it but im receiving several errors of attributes already defined Sep 10 21:33:11 dogarrhea ha, i remember he said something about that a while ago - but this is a new article Sep 10 21:35:41 i ran into some sdk incompatibility issues across platforms this morning via nvidia driver and some internal sdk lib pointing to the wrong place.. He wants even more than this via ndk Sep 10 21:35:42 hi folks Sep 10 21:35:48 hi folk Sep 10 21:35:49 sometimes i feel like i'm losing my mind. often here in this channel, people are pretty gung ho about developing on android, but people I know in actual work settings / startups think its a miserable expereience. but google has had a very long time to get their tooling together; the ide is fine but still much is amiss Sep 10 21:35:50 sdk doesn't even go cross platform development wise Sep 10 21:36:07 *a mess Sep 10 21:36:20 g00s: i thinks it quite miserable Sep 10 21:36:40 yes. now i have to deal with the camera emulator Sep 10 21:36:49 I've been learning java the past 8 months... and now android for maybe 2 months.. slowly though dont have much time Sep 10 21:37:03 gotta say sometimes I see people writing something else.. like PHP I dont know.. and cant help but wonder Sep 10 21:37:11 seems like I picked a complicated place to start Sep 10 21:38:26 i'm interested to see the project volta suff / tools Google is working on; i'd like to see them give much better tooling around vm instrumenting and memory analysis Sep 10 21:38:26 it's one thing when a noob like me says android dev sucks. but the guy who invented Quake and Doom and ushered in a new era of 1st person shooter games.. when he says "real android developers" can't fix the mess. Sep 10 21:38:28 P3nnyw1se I feel you there, sometimes I just want to go back to doing games/film effects Sep 10 21:38:30 u know something is definitely wrong Sep 10 21:38:41 instead they are adding fucking dialogs to AS to replicate the DSL for gradle Sep 10 21:39:04 a John Carmack standard of "Real Android developer" has to mean something here Sep 10 21:39:35 ffs, i had to implement his reverse stencil shadow map used in doom 3 in college in 2008 Sep 10 21:39:41 I feel like a complete idiot sometimes in here.. honestly I get the 'are you seriously asking this, why dont you know this... shoot yourself' .. feeling a few times Sep 10 21:41:02 P3nnyw1se: this channel is for people who have computer science degrees and jobs in android departments Sep 10 21:41:03 join #java, they'll drive the stake in a little further :) Sep 10 21:41:22 In case you didn't realise, I'm joking Sep 10 21:41:35 Moony22 phew, i'd have to leave :) Sep 10 21:41:40 I couldnt tell on your face tbh :P Sep 10 21:41:49 g00s: so would I Sep 10 21:42:14 i just sit here pretending I know what im talking about Sep 10 21:42:47 next to studying 'computer science' .. I work in ItT support.. I get to do cool shit like change monitors.. or maybe install applications Sep 10 21:43:17 I see this guy 65.. my colleague, who has a rough time all day... everything he learned 40 years ago.. is worthless today.. he is struggling everyday to keep along Sep 10 21:43:46 P3nnyw1se well of course, the half like of knowledge and facts in general seems to be getting shorter and shorter in every area Sep 10 21:43:47 and I get exhausted.. when I get a book at comptuer science thats just relased and the first 2 chapters are already outdated Sep 10 21:44:00 "facts" i guess then its like truthiness :) Sep 10 21:44:07 and I wish I picked... being a chef or something.. Sep 10 21:44:20 P3nnyw1se no good book on CS will be out of date any time soon ;) Sep 10 21:44:26 you're not reading CS then Sep 10 21:44:42 I bought the android developers.. and I dont recall which one I can find it half a year ago it was one of the most sold books Sep 10 21:44:46 second chapter... deprecated completely Sep 10 21:44:55 hello! I'm totally new - let;s say funky fresh to android - but i need to set up a web view of www in app -> it's posiible to write app that's when open, starts with that webview? i see tutorials only with some interaction - like buttons. Sep 10 21:45:06 P3nnyw1se what book ? link please Sep 10 21:45:40 many non-fiction books are in fact fiction ;) Sep 10 21:45:54 its at my school. .i think it might be called.. android 4, application development Sep 10 21:45:56 g00s: they are already out of date Sep 10 21:46:06 P3nnyw1se thats not a CS book Sep 10 21:46:16 no one gives a flying f*ck about master theorem or sovling the p=np complete problem in practice Sep 10 21:46:25 computer science != android development Sep 10 21:46:32 then why is everyone such a dick.. lol Sep 10 21:46:33 or some back prop algorithm algorithmic running time Sep 10 21:46:35 android development == shlep Sep 10 21:46:45 I spend 3 months on #java.. when I didn't know what an object was Sep 10 21:46:48 *schlep Sep 10 21:46:56 dogarrhea, you're just not writing serious enough software. Sep 10 21:46:57 each reply was followed by .. 'oh and you are never gonna amount to anything' Sep 10 21:47:00 Federal Express pays some programmer 1 million dollars a year to write code for the traveling salesman problem Sep 10 21:47:07 even though this problem isn't solved Sep 10 21:47:21 and it still saves them some 2 million dollars of driver mileage / year Sep 10 21:47:42 but schools say "NO U SHOULD PUSH BACK BECAUSE THIS PROBLME IS NP COMPLETE" Sep 10 21:47:43 not bad Sep 10 21:47:46 my colleague gets 10k a month.. dollars to keep tabs on microsoft windows updates.. Sep 10 21:47:50 use half of your savings and pay the guy Sep 10 21:48:13 dogarrhea, and people who know CS get 3x as much. Sep 10 21:48:14 you have these "professors" telling you not to do what your boss asks you to do because it's np-complete Sep 10 21:48:23 and you should be as passive aggressive as possible Sep 10 21:48:28 P3nnyw1se i'd like to recommend a book: http://www.ccs.neu.edu/home/matthias/HtDP2e/ Sep 10 21:48:37 it's stupid Sep 10 21:48:39 i'd say SICP but thats very hard Sep 10 21:48:43 my professor told me, that me that if he was hiring.. he wouldn't hire any of us.. Sep 10 21:48:45 he is the honest type Sep 10 21:48:46 could someone here smash my head into a solution? http://dpaste.com/2ZN452B How do i slow the loop down? SOmeone told me i should look into handlers & postDelay Sep 10 21:49:02 P3nnyw1se: lol Sep 10 21:49:10 one of my professors went to prison Sep 10 21:49:17 P3nnyw1se well yeah, I wouldn't hire any PHP devs either haha Sep 10 21:49:19 day, yes, don't use a loop Sep 10 21:49:23 http://www.voiceofoc.org/healthy_communities/health_news/article_6bb61430-9f5b-11e3-9f5f-0019bb2963f4.html Sep 10 21:49:27 day, dispatch change callbacks with delays Sep 10 21:49:35 uc irvine professor. went to prison. computer science is generally a scam Sep 10 21:49:40 day, try a combination of handlers and posting delayed runnables Sep 10 21:49:43 man I dont program PHP .-. I was shown it for 3 weeks.. manged to do like a table and list weather predictions Sep 10 21:49:54 i went to his office hours once because i was taking a class. he had 5 interns. all of them were 19 year old japanese girls Sep 10 21:49:55 * ravilov does php for a living Sep 10 21:50:00 wrongfully weather predictions Sep 10 21:50:03 * Mavrik hugs ravilov. Sep 10 21:50:20 dude, we're not to 1st base yet Sep 10 21:50:30 P3nnyw1se so check out that book HtDP/2e. forget about PHP, maybe even android. Sep 10 21:50:36 lol :P Sep 10 21:50:44 jeez Mavrik take him out to dinner first Sep 10 21:50:54 PHP skips all that initialization stuff Sep 10 21:51:02 it's just Sep 10 21:51:05 no headers no nothin Sep 10 21:51:08 lol Sep 10 21:51:09 hows the language in it g00s.. I get lost in too many terms smushed into tight sentences Sep 10 21:51:21 P3nnyw1se its a beginner book Sep 10 21:51:32 question is... is it str_hug() or strhug() or string_hug() or what? Sep 10 21:51:40 maybe mb_hug() Sep 10 21:51:46 beginner.. yeah thats what you all say.. next thing you are hanging from the sealing telling me to drip candle wax on your feet Sep 10 21:51:51 str_hug_real_this_time() I think Sep 10 21:52:38 oh its all there Sep 10 21:52:40 I dont have to buy it :D Sep 10 21:53:52 you from germany ravilov? Sep 10 21:55:23 no? Sep 10 21:55:35 * ravilov ist nicht ze german Sep 10 21:56:13 hmm, why would notifyDataSetChanged() mess with padding and margins but only with the added elements Sep 10 21:56:54 ok nevermind Sep 10 21:57:22 hey.. animation-drawable .. you experiencing you need to clear/destroy/put down/kill/shoot a lot ? Sep 10 21:57:30 I get memory leak almost everytime I animate using it Sep 10 21:57:51 not talking anything specific here Sep 10 21:59:25 is there any way to speed up the emulator launch? Sep 10 21:59:46 use an actual device Sep 10 22:00:28 boo Sep 10 22:00:33 in all seriousness, my attempts to speed up emulators have made them slower Sep 10 22:00:37 need someone to buy me a device Sep 10 22:00:44 where are you from ? Sep 10 22:00:48 where do you live more specifically Sep 10 22:00:57 I live in lala land Sep 10 22:01:10 I'm not gonna track you down by knowing your country Sep 10 22:01:29 the place where paris hilton's herpes prescription is posted on every telephone pole and parking meter for public display as a meme similar to "obey" stickers Sep 10 22:01:39 American? Sep 10 22:01:39 Los Angeles Sep 10 22:01:46 ok Sep 10 22:01:54 Iphone is what.. 199$ ? Sep 10 22:02:03 this is android Sep 10 22:02:07 yea Sep 10 22:02:11 yeah I'm just using it as example Sep 10 22:02:21 in Denmark, where I'm from.. an Iphone cost.. 1300$ Sep 10 22:02:29 android/iphone whatever. iphone is still the best android phone right now Sep 10 22:02:30 lol Sep 10 22:02:40 1300 us dollars? Sep 10 22:02:51 you wont get a car.. less than 5000 dollars.. and thats a wreck Sep 10 22:02:54 are people still jailbreaking those things to put linux on them or is that no longer the cool thing to do ? Sep 10 22:03:26 1300 american dollars Sep 10 22:03:32 P3nnyw1se: kroneckers or dollars? Sep 10 22:03:36 o shit Sep 10 22:03:42 5000 kroners for the cheapest one Sep 10 22:03:42 damn actionbarsherlock cant get it to work... "already defined" errors all around Sep 10 22:03:45 why don't u buy one on ebay Sep 10 22:03:48 1 dollar = 5kr Sep 10 22:04:08 P3nnyw1se: why don't you proxy to american ebay and buy one there? Sep 10 22:04:10 buy it online.. its caught entering the country you pay the difference and a fine Sep 10 22:04:16 and use paypal to buy it Sep 10 22:04:23 anyone know of a way to use a custom SSLSocketFactory for DownloadManager.Request or WebView? Sep 10 22:04:33 P3nnyw1se: they search all packages? Sep 10 22:04:47 not one sent from a private person know Sep 10 22:04:53 one sent from 'IphoneShop.us' Sep 10 22:04:53 yes Sep 10 22:04:59 this is for a custom cert chain, with its own CA, and some custom checking logic Sep 10 22:05:06 also need client certs Sep 10 22:05:08 P3nnyw1se iphone is not $199 Sep 10 22:05:53 cliffreich: ditch ABS and aim for a higher API :) Sep 10 22:05:57 Its the danish welfare system.. anything entering the country gets trippled in cost.. on the other hand. I'm a student worker, and I make 45$ an hour Sep 10 22:05:59 iphone 6 is around that price with contract Sep 10 22:06:01 +1 to ditch ABS Sep 10 22:06:05 hey iphone people Sep 10 22:06:05 minSdkVersion 15 Sep 10 22:06:18 ^ +1 Sep 10 22:06:23 dogarrhea oh, then yes, its $199 + $2000 commit Sep 10 22:06:41 or to save money $800 to buy it Sep 10 22:06:42 :) Sep 10 22:06:50 I bought a Nexus 7 a year ago.. on sale Sep 10 22:06:51 300$ Sep 10 22:06:55 or just get a nexus series, subsidized by ads Sep 10 22:06:58 <3 Sep 10 22:07:10 P3nnyw1se: how Nazi is the airport security in Denmark? Sep 10 22:07:14 SSLSocketFactory in DownloadManager.Request, or in WebView, anyone? Sep 10 22:07:26 I am thinking about paying you a visit with some gifts if you can also find some friends who would like some "gifts" Sep 10 22:07:26 small and open country not that nazi.. you can get stuff through Sep 10 22:07:31 but if you get caught.. the fine sux Sep 10 22:08:07 I mean people do it.. they go to the states vacation Sep 10 22:08:17 buy electronics. open it.. and pretend like they brought it to begin with Sep 10 22:08:54 they put it in plastic bags and put it inside their anus? 50 iphones at once? Sep 10 22:09:17 my friend went to new york for a week.. bought an ipad and iphone Sep 10 22:09:23 opened it.. put it in the suitcase when customs checked Sep 10 22:09:28 he said he had bought it in denmark Sep 10 22:09:53 how does the postal service work in Denmark? Sep 10 22:10:11 open everyone's mail and read it/inspect it for iphones? Sep 10 22:10:13 in denmark everything works like in the states just better ;) Sep 10 22:10:33 i still don't understand how you can't just mail it Sep 10 22:10:45 you can.. and you can just download music and movies... Sep 10 22:10:48 find some US business that doesn't use "imSendingIphonesToDenmark.com Sep 10 22:10:51 sometimes they set an example Sep 10 22:10:55 and you get a 40k$ fine Sep 10 22:11:01 read about it in the paper and you think Sep 10 22:11:04 'fuck no.. not me' Sep 10 22:11:05 so there's no problem with 1300$ iphones then Sep 10 22:11:21 I'm a student worker.. I get paid 45$ a month. thats out system Sep 10 22:11:26 just import 40000/1300 number of iphones to cover the cost Sep 10 22:11:27 we pay more than anyone in tax and get paid more Sep 10 22:11:36 hour! Sep 10 22:11:38 lol.. not month haha Sep 10 22:12:11 so it breaks even then. mostly Sep 10 22:12:12 anyways you are right.. it could be done like that Sep 10 22:12:33 fact is denmark is also one of the countries with the least crime in, which is why its not that big a problem Sep 10 22:12:37 last year we had... 3... gun killings Sep 10 22:12:40 6million people Sep 10 22:13:13 ur neighbor had that rampage though kekek Sep 10 22:13:13 didn't you see the CNN special? .. happiest country in the world ;) Sep 10 22:13:23 they sure did.. we played it safe Sep 10 22:13:30 'nothing to see here.. move along' Sep 10 22:13:31 the guy who killed those pro muslim christians or whatever it was Sep 10 22:13:42 this is #android-dev Sep 10 22:13:44 well each country has their psycopaths dont they Sep 10 22:13:46 yeah sorry Sep 10 22:14:04 android development makes people go on rampages Sep 10 22:14:39 I have headache now from dev Sep 10 22:14:39 I wake up and scream at night 'APPLICATION HAS STOPPED WORKING!!' Sep 10 22:15:01 It's ok. you probably have a google office near you that you can rampage in Sep 10 22:15:15 my roomate.. is nordic marketing manager of google Sep 10 22:15:24 cant tell me anything he does.. its secret... smartass Sep 10 22:15:29 there you go. just kidding Sep 10 22:15:44 lol 'sorry desmin88 just gotta say this' Sep 10 22:15:53 I couldn't get my hands on chrome cast.. yesterday.. no store had it Sep 10 22:15:56 held him personally accountable Sep 10 22:17:58 my sister works for Google Sep 10 22:18:10 in what way is android java different from 'normal' java? I noticed that some libraries are not available on android. is there anything else? Sep 10 22:18:32 the VM is slightly slower in some respects (e.g. reflection and some other minor stuff) Sep 10 22:18:33 she brings her dog to work. and then sells adwords to some advertiser for some movie in Hollywood Sep 10 22:18:41 but thats mostly it Sep 10 22:18:48 day: has a few extra ones, missing others Sep 10 22:19:09 well there is the xml part Sep 10 22:19:17 Activies/Fragments Sep 10 22:19:18 i guess i learn java first then before i jump into writing my app :P Sep 10 22:19:28 definetly learn java first Sep 10 22:19:34 android is a 'buildon' in my opinion Sep 10 22:19:55 * StingRay_ wishes he learned java first Sep 10 22:20:19 thats bull.. youre one of those types that only needs to be shown something once and then gets it Sep 10 22:20:21 hate your kind Sep 10 22:20:32 well Android just exposes it's own set of APIs to Java, so yes, it's kinda hard to do anything if you don't understand Java and can't read the documentation. Sep 10 22:20:38 P3nnyw1se was that at me ? Sep 10 22:20:56 seems to me like you can answer pretty much every question thats asked in here StingRay Sep 10 22:21:17 dunno bout that Sep 10 22:21:23 well it was rather simple to grasp python / perl on the go with my c skills. but the whole oop thing is too much Sep 10 22:21:43 I think I know android quite ok, just erm…. java oop..the whole cs thing and lacking a bit of math :) Sep 10 22:21:48 python is OO isn't it ? Sep 10 22:21:50 so pretty screwed really :) Sep 10 22:21:51 took me 3 months to understand just the basics of OOP.. I'm slow at that to be honest Sep 10 22:21:55 several people got it before me Sep 10 22:22:07 tbh. ive no idea where oop starts and ends Sep 10 22:22:16 would you consider C struct as oop? Sep 10 22:22:21 no Sep 10 22:22:23 python classes? Sep 10 22:22:30 dammit, any person here ever used actionbarsherlock? Sep 10 22:22:35 i have Sep 10 22:22:41 I still dont know how to use it correctly .. there are so many patterns I wish I knew how to use Sep 10 22:22:43 haha Sep 10 22:22:50 cliffreich: You shouldnt use actionbarsherlock Sep 10 22:22:54 just set your minsdk to 15 Sep 10 22:22:54 Strategy pattern.. man that pattern is clever for dynamic stuff.. I just dont know how to use it Sep 10 22:22:55 it's more about how you use the language, not whether a given language or feature of a language is OOP or not Sep 10 22:23:09 JakeWharton im receiving several errors like this: Error:Attribute "navigationMode" has already been defined Sep 10 22:23:14 any clue? Sep 10 22:23:17 cliffreich: see above Sep 10 22:23:19 dont use ABS Sep 10 22:23:25 you can do OOP design even in basic C Sep 10 22:23:26 day, well, the structs and classes are largely interchangeable in C++ for example :) Sep 10 22:23:26 atm oop to me is, chopping the code into blocks/ objects. which have their own private variables Sep 10 22:23:46 day, but I doubt anyone really counts that as OOP since it's a paradigm not language structure thing Sep 10 22:23:51 thats surely oop. but ive no idea if it graps the whole package Sep 10 22:23:52 oh well i wanted to try drawer sherlok Sep 10 22:23:58 dont Sep 10 22:24:07 JakeWharton... that name sounds familiar Sep 10 22:24:07 day: i can see how you see it that way, but as you get to understand it more it'll make more sense Sep 10 22:24:10 Mavrik: thats my problem. Its kind of a grey area :/ Sep 10 22:24:10 use native apis and set your minsdk to 15 Sep 10 22:24:27 day, everything in programming can be a gray area, we can flame pretty much about anything :P Sep 10 22:24:34 hehe Sep 10 22:24:38 Mavrik: no we can't! Sep 10 22:24:39 day: maybe looking at things like polymorphism, interfaces, extending classes etc Sep 10 22:24:40 * Mavrik slaps desmin88. Sep 10 22:24:41 Sep 10 22:24:42 :p Sep 10 22:24:47 to learn android dev, first you must get 20 feet of barbed wire. Then you put it in the oven for 20 minutes at 400 degrees Fahrenheit. Then you stick the barbed wire into your pee hole slowly until it comes out of your mouth. Then you pull it back out. Sep 10 22:24:54 This is to get you accustomed to pain. Sep 10 22:25:19 Then you install the sdk. which is even more painful Sep 10 22:25:26 cliffreich, that looks like you have it included twice in your project or somehow the styles are being compiled in twice Sep 10 22:25:31 which build system are you using? Sep 10 22:25:47 then you install something to speed up your emulator.. then you realise that just because SDK says 'installed' doesn't mean its installed Sep 10 22:25:50 he shouldnt be using abs Sep 10 22:25:50 it just means its downloaded Sep 10 22:25:57 if absolutely necessary, abc. Sep 10 22:25:57 yes. Sep 10 22:26:23 then you find out that your specific distribution of linux does not work with the SDK unless you configure xorg settings and restart your computer Sep 10 22:26:44 and then you restart your computer and find out the configuration has cause your display/monitor to stop working. Sep 10 22:27:00 because android sdk depends on some nvidia driver that doesn't exist Sep 10 22:27:17 you buy a device cause emulators suck.. and realise you need to tap it 7 times in settings.. sing a magic chant.. and wait for a blizzard Sep 10 22:27:21 before it allows you to develop on Sep 10 22:27:28 dogarrhea the sdk has dep. on a display driver ? Sep 10 22:27:36 No, he's just a moron. Sep 10 22:27:43 argh shit, why did i just upgrade hangouts, it was fine before!!! :'( Sep 10 22:27:45 That came here to spam the channel with his alt account. Sep 10 22:27:57 bankai_au, and now it's better I bet! Sep 10 22:27:59 it most definitely errors when launching an avd Sep 10 22:28:05 on some nvidia driver Sep 10 22:28:12 within the sdk manager application Sep 10 22:30:32 we've already been over this Mavrik. it is definitely a bug in the sdk manager at least Sep 10 22:30:46 has anyone here uploaded a library to maven central with chris bane’s gradle script? Sep 10 22:34:21 anyone? :) Sep 10 22:34:46 I did not have the pleasure of doing that :) Sep 10 22:34:49 What's some a generic table structure in a sqlite database for android? Sep 10 22:35:17 like i need a mock database for a tutorial i am trying to think what would be good dummy columns Sep 10 22:35:37 your porn collection catalogue? Sep 10 22:36:00 lasserix http://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns.html Sep 10 22:36:05 "porn collection catalogue" just highglited me Sep 10 22:36:06 weird Sep 10 22:36:20 actually this would be better lasserix http://developer.android.com/reference/android/provider/MediaStore.MediaColumns.html Sep 10 22:37:08 http://www.businessinsider.com/google-android-one-launch-2014-9 Sep 10 22:37:20 i wonder if i can get an android One Sep 10 22:37:26 or is it only India ? Sep 10 22:37:43 "Eventually, Google and its Android manufacturers seem to be hoping, people will face a choice: $700 for an iPhone or $100 for an Android that does the same thing." Sep 10 22:37:54 IIRC from I/O the Google One is only for low income countries Sep 10 22:38:24 hmm, k. the US is a poor country except for the top .1% so, that includes us right ? Sep 10 22:38:37 JacobTabak: that's already in the OS Sep 10 22:38:50 i am thinking what kind of sqlite database table would a typical developer use Sep 10 22:39:07 *that would have text-searchable information inside of it Sep 10 22:39:20 ok just make one with id, title, content, author Sep 10 22:39:23 or something Sep 10 22:39:23 g00s, I'm afraid you'll have to be violated by Verizon in the forseeable future still :) Sep 10 22:39:25 its not really a big deal eh? Sep 10 22:39:43 JacobTabak: heh that's what coworker picked too Sep 10 22:39:51 Mavrik i'm on tmo but .. yeah, those thieves :) Sep 10 22:39:57 nah it's a big deal to me, these are the few moments I get to be creative in my job ;p Sep 10 22:40:05 lol 100$ android that does the same thing as what? an annoying leprechaun with herpes? Sep 10 22:40:20 I have a feeling I went overboard Sep 10 22:40:26 nobody could pay me to go back to VZ for anything; i wouldn't even buy bubble gum from those guys Sep 10 22:40:29 a.b.c.d Sep 10 22:40:32 :) Sep 10 22:40:33 instead of a.b Sep 10 22:40:38 g00s that's why i think the latest apple release is actually going to count against them more deeply than would be suspectedbecause if apple is no longer "cool" than why would you pay that premium? Sep 10 22:40:45 you pay that premium for that coolness to begin with Sep 10 22:41:45 and if apple is getting "over the hill" who really wants to shell out 400 extra for something that is "so last tech season" Sep 10 22:42:06 Well aren't like iPhones 200$ or something on contract in US? Sep 10 22:42:27 lasserix its probably a bit more complex; aside from cool luxury is a status symbol. even for very poor people, it seems illogical, but we may spend a disproportionate amount of money on a status synbol as a signal we're not totally wirthless crap when standing at some arbitrary gate Sep 10 22:42:28 i’m sure there’s a better place for this type of conversation Sep 10 22:42:33 Mavrik so yeah over $2400+ ? Sep 10 22:43:24 g00s that's what i mean, if the image of apple as being cool / of status is shaken, why would you want to shell out a disproportionate amount of cash anymore? Sep 10 22:44:08 dont underestimate the power of youth wanting to deviate from the generation before them.. Sep 10 22:44:15 thats whats happening to facebook and will happen to iphone Sep 10 22:44:23 nobody wants an iphone when your dad and grandma has one Sep 10 22:44:35 P3nnyw1se how old are you ? Sep 10 22:44:39 30 Sep 10 22:45:06 ah…ok…just thought you were lots younger :) Sep 10 22:45:14 cause of my educational lacking Sep 10 22:45:21 I worked 6 years as an actor Sep 10 22:45:28 before realising I wasn't gonna be in blockbusters Sep 10 22:46:50 luckily for me.. going to college in denmark amounts to a total of Sep 10 22:46:55 0$ Sep 10 22:47:28 lies. Sep 10 22:47:32 I had to pay for my alcohol. Sep 10 22:47:34 I don't agree Sep 10 22:47:41 Middle aged people bought iphones Sep 10 22:47:48 not teens with no money Sep 10 22:47:52 at first, anyway Sep 10 22:48:08 lasserix for example, who wants to write apps for teans with no money :P Sep 10 22:48:12 more bullshit with android development since plugging the usb and running adb devices doesn't work: http://ptspts.blogspot.co.il/2011/10/how-to-fix-adb-no-permissions-error-on.html Sep 10 22:48:17 oh shit, sorry 2 messages got jumbled Sep 10 22:48:18 lasserix, but that's about the same issue you face when buying an Android... like HTC One m8 is an awesome device... but it does cost 2x as much as Nexus 5 Sep 10 22:48:20 In my experience there is a fundemental thing in your people to go their own way... the people who grow up with everyone knowing Iphones Sep 10 22:48:26 are gonna want something new.. something different Sep 10 22:48:38 your/young Sep 10 22:48:47 why http://ptspts.blogspot.co.il/2011/10/how-to-fix-adb-no-permissions-error-on.html Sep 10 22:48:55 ???????????? no permissions Sep 10 22:48:58 P3nnyw1se, $0? that's not good, you learn nothing that way Sep 10 22:48:58 :p Sep 10 22:49:11 dogarrhea: i dunno, i use windows :) Sep 10 22:49:21 lol. Sep 10 22:49:23 actually its not just that we don't pay to go to college here Sep 10 22:49:41 the goverment puts 1000$ on your account each month.. as long as you study Sep 10 22:49:42 dogarrhea: you have to modify your udev rules Sep 10 22:49:50 so you have support and dont have to miss school to work Sep 10 22:49:54 that's got nothing to do with android or development, that's just a crappy linux setup Sep 10 22:49:55 what the hell is that? Sep 10 22:50:15 P3nnyw1se, you guys have it waaaay too good Sep 10 22:50:22 oh. i have to go into linux internals again Sep 10 22:50:23 P3nnyw1se yeah I used to teach a 4 week course that cost £9,000… first thing I did was show a picture of a 2nd hand z4 bmw, and said this is what you are giving up to be here Sep 10 22:50:24 no way teens whose middle aged parents have too much money bought their teens (with no money of their own) iphones Sep 10 22:50:44 investment and something to loose makes people …more… just makes them more! Sep 10 22:50:45 lol Sep 10 22:50:50 Middle aged people more than all are desperate to be "young" Sep 10 22:51:02 thats how it works here... we pay 1300$for an iphone Sep 10 22:51:04 young people want to be cool Sep 10 22:51:09 but healthcare, schools, its all free Sep 10 22:51:27 hence middle age people want to be cool, but mature, a sleek ergonomic iphone that is also hip with the kids, what a better status symbol? Sep 10 22:51:54 lasserix, its happening right now to facebook.. .kids moms are on facebook Sep 10 22:51:58 they dont wanna be there then Sep 10 22:52:10 what the hell are all these vendor codes? Sep 10 22:52:12 P3nnyw1se: yeah i know that's what i was saying to begin with, apple has lost its edge Sep 10 22:52:21 this has everything to do with android. it's not just 'crappy linux setup" Sep 10 22:52:22 dogarrhea, just do it Sep 10 22:52:30 no, it's really just all linux Sep 10 22:52:42 except with all the hard coded constant VENDOR CODES Sep 10 22:52:52 the fundemental truth about people is.. they dont know what they want.. and if they have been fed Iphones for decades.. they will want something else, simply because its something else Sep 10 22:52:54 what the hell is that wall of text anyways Sep 10 22:53:15 I don't even know what's with that list, I never had to do any of that stuff and my adb works every time Sep 10 22:53:19 just works Sep 10 22:53:27 it's a list of udev rules. Sep 10 22:53:28 I might have had to add one (generic) vendor code Sep 10 22:53:34 P3nnyw1se you are funny :) Sep 10 22:53:45 philosopher, actor, programmer :D Sep 10 22:53:46 P3nnyw1se: nah that's not true, the effectiveness of mass advertising has made that true, but people do know what they want they are just brainwahsed into believeing they dont and want soemthing else instead Sep 10 22:53:47 JesusFreke, I know that, I just don't know why is that necessary Sep 10 22:54:18 lasserix nothing stays the same.. show me products that have stayed strong for more tahn 20 years Sep 10 22:54:19 because by default the non-root user can't just access and write to random /dev stuff Sep 10 22:54:24 the triump of advertising has seriosuily perverted us all Sep 10 22:54:25 I just had to fix some udev/usbfs crap, mount a virtual usb filesystem somewhere, fix a few scripts... done Sep 10 22:54:33 that udev rule sets the /dev device node you get when plugging in a USB device to 666 Sep 10 22:54:43 which means you can access it as a normal user without sudo / su Sep 10 22:54:44 g00s.. you need to be overthinking all the time to be an actor :p Sep 10 22:54:49 otherwise your ADB only works with root account. Sep 10 22:54:57 P3nnyw1se: we are agreeing on something so not sure where there divergence is coming from ;p Sep 10 22:55:17 from here "[00:53] P3nnyw1se: nah that's not true, " Sep 10 22:55:17 ;) Sep 10 22:55:20 hm, apparently my solution was to run "adb start-server" as root on startup Sep 10 22:55:31 ahh yeah about people not knowing what they want Sep 10 22:55:42 P3nnyw1se coke Sep 10 22:55:45 that's because advertising is so effective not because people don't really know what they want Sep 10 22:56:25 just look at the success of the cosmetic industry fucking with the self respect of 99% of woman in the (us) at least Sep 10 22:56:28 I'll admit StingRay there are certain world dominating brands that seem hard to pull down Sep 10 22:56:31 like bluejeans or coke Sep 10 22:56:33 anyways we are waay off topic Sep 10 22:56:44 self respect of women pffff Sep 10 22:56:44 P3nnyw1se there are 100's Sep 10 22:56:54 you just asked for 1 Sep 10 22:56:56 :) Sep 10 22:57:02 looking at my system now, apparently this is the only rule I have Sep 10 22:57:02 http://media-cache-ec0.pinimg.com/736x/32/c0/9a/32c09a7645e67679ecee082ec60f815f.jpg Sep 10 22:57:03 SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", GROUP="android", MODE="0660" Sep 10 22:57:16 0bb4 is allegedly some HTC, I don't even have a HTC Sep 10 22:57:30 I think that might've been my olD G1 Sep 10 22:57:32 old* Sep 10 22:57:58 ravilov, yes, if you start adb as a root you don't need the udev root Sep 10 22:58:29 *rule... most people probably rather wouldn't run random services with file access as root tho :) Sep 10 22:58:45 but adb can be trusted, right? ;) Sep 10 22:58:45 P3nnyw1se: there's no dbl standard, men are as fucked but woman are the ones typically exploited far worse Sep 10 22:59:08 speaking of random stuff with root access... today I realized most of VirtualBox's binaries are setuid root Sep 10 22:59:19 they come like that out of the box Sep 10 22:59:27 oh yes, VMs are such nice security holes Sep 10 22:59:33 especially the ones running in Ring -1 Sep 10 22:59:42 they would need root to create teh network devices 'n' stuff Sep 10 23:00:00 Mavrik, I didn't even realize it's set up like that until today Sep 10 23:00:03 yeah, also virtualization instructions don't really run as a limited user :) Sep 10 23:00:06 you should try playing with SCCM and talk about security holes Sep 10 23:00:49 yeah I was guessing it's to do with all that VT-x and similar stuff Sep 10 23:01:02 Why does this happen: http://gyazo.com/025b965c96c129df784e942133fd8c4d I lose padding and stuff. Test 2 was added and then I called notifyDataSetChanged on my adapter. Sep 10 23:01:22 well back to learning android.. this android better last 10-15 years or I'm gonna be angry Sep 10 23:01:35 hmm Sep 10 23:01:38 Doubt it :) Sep 10 23:02:54 Making me pull my hair out Sep 10 23:03:21 lovely... http://pastebin.com/rh863sC3 Sep 10 23:03:52 real programmers don't have hair :p Sep 10 23:04:31 then I'm not a real programmer Sep 10 23:04:34 asking one last time - anyone here published a lib to maven central? Sep 10 23:04:37 not on my head.. not on my back.. not on you know Sep 10 23:05:08 your chin? Sep 10 23:05:12 JacobTabak: I have.. but I'm mostly blocked the experience from my mind :) Sep 10 23:05:15 I've* Sep 10 23:05:18 jacobTabak .. there is a channel called #maven Sep 10 23:05:23 with 40 people in it Sep 10 23:05:23 I just remember it being a PITA Sep 10 23:05:26 they might be able to help Sep 10 23:05:30 thank you P3nnyw1se Sep 10 23:05:47 JesusFreke: did you have to register an account with sonatype and create a jira ticket or something ? Sep 10 23:05:55 yeah Sep 10 23:06:02 k just wanted to make sure that i was doing the right thing Sep 10 23:06:20 yes my chin Sep 10 23:06:53 JacobTabak: here's the gradle file I used to upload: https://github.com/JesusFreke/smali/blob/master/build.gradle Sep 10 23:07:39 thank you, i was usign this - https://github.com/chrisbanes/gradle-mvn-push but it wasn’t clear to me that I needed to create a sonatype account Sep 10 23:07:52 While we're at it, I've been asking before, anyone tried to do "shade" of AAR? E.g. include all dependencies inside and rename them? Sep 10 23:08:13 no but really, why would I lose padding etc. by calling notifydatasetchanged. ex: http://gyazo.com/025b965c96c129df784e942133fd8c4d Sep 10 23:09:00 and only on the added items Sep 10 23:09:22 notifydatasetchanged calls getView() again, so check if you're not killing something there Sep 10 23:10:03 my adapter is incredibly simple Sep 10 23:11:04 shouldn't the sdk fcking take care of /dev devices Sep 10 23:11:11 what a joke Sep 10 23:11:27 imagine if I install kies and it doesn't know how to use a usb device Sep 10 23:11:30 dogarrhea: not quite fcking sure what you're talking about Sep 10 23:11:48 don't install kies Sep 10 23:11:51 dogarrhea: also not fcking sure what kies is Sep 10 23:11:52 http://ptspts.blogspot.com/2011/10/how-to-fix-adb-no-permissions-error-on.html this Sep 10 23:11:57 No please install Kies. Sep 10 23:12:13 Mavrik: http://pastie.org/9543403 Sep 10 23:12:21 it's on another machine at home Sep 10 23:12:57 desmin88, hrmpf, how does that situation look like with margins/paddings displayed? Sep 10 23:13:22 In my image I pasted, the first item in the list was there at the creation of the adapter Sep 10 23:13:37 the second item was added to the list, then i notify....() Sep 10 23:14:20 desmin88 hI think he means with viewBounds and borders turned on Sep 10 23:14:29 oh Sep 10 23:14:32 lol Sep 10 23:14:40 so you can actually see if it's padding or margins of which view Sep 10 23:14:51 yeah Sep 10 23:15:20 yes, I mean that :) It's in developer settings Sep 10 23:15:36 so you won't be scratching your head for no reason if it's not the padding thats the issue :) Sep 10 23:15:39 yeah i got confused Sep 10 23:16:08 there's also hierarchyviewer which is fun Sep 10 23:16:12 or if you didn't intend to paste and image you could simply look at it in the ddms view dump Sep 10 23:16:27 yeah that yiati :) Sep 10 23:16:31 HiearchyViewer is awesome, just such a pain to setup if you don't have a rooted device Sep 10 23:16:39 gotcha: http://gyazo.com/90350cd9e24fe2977bd6dd92e4e180e3 Sep 10 23:16:58 desmin88, yep, it's not the paddings or margins Sep 10 23:17:03 your text view is too large :) Sep 10 23:17:07 yup Sep 10 23:17:13 damnit Sep 10 23:17:31 anyway, sleep time Sep 10 23:17:44 totally forgot about that dev option Sep 10 23:21:46 Hmm, why is it so large. its wrap_content Sep 10 23:22:14 clue is maybe in the 2nd half of that Sep 10 23:22:21 whats it wrapping ? Sep 10 23:23:00 wrapping the text? Sep 10 23:23:47 oh hang on, just looking at your img for the 1st time lol Sep 10 23:23:50 whats this then ? Sep 10 23:23:58 that looks like wrapping to me Sep 10 23:24:00 you loosing or gaining space ? Sep 10 23:24:03 losing Sep 10 23:24:11 so loosing padding on the text Sep 10 23:24:30 correct Sep 10 23:24:33 is there are reason you choose to have that over a margin ? Sep 10 23:24:44 or rather a container padding if you wanted Sep 10 23:24:48 just seems a bit odd to me Sep 10 23:25:11 all content is 16dp padding inside Sep 10 23:25:31 well not the outside view Sep 10 23:25:41 or not at the bottom ? Sep 10 23:25:55 Yeah the padding is 16dp except for the bottom Sep 10 23:26:57 Theres no blank space or line returns or anything in the preloaded content Sep 10 23:27:38 where do you set the padding on that textView that then goes missing ? Sep 10 23:30:07 the container view Sep 10 23:30:17 xml? Sep 10 23:30:29 it's funny how I buy every single humble bundle on android Sep 10 23:30:33 but I almost never play them Sep 10 23:31:38 http://pastie.org/9543463 Sep 10 23:33:23 desmin88 ok so it has to be view based Sep 10 23:33:32 not sure what that view is…robototextview Sep 10 23:33:50 https://github.com/johnkil/Android-RobotoTextView Sep 10 23:33:58 but to confirm it's internal to view and not really adapter…get rid of view padding and use layoutParams margins Sep 10 23:34:33 there is no way it can be my adapter Sep 10 23:34:52 test with margins Sep 10 23:34:56 desmin88: http://plasmasturm.org/log/6debug/ Sep 10 23:35:35 what’s the proper way to clean up resources (like a mediaplayer) used by a view in an adapter? Sep 10 23:35:46 JesusFreke: yup Sep 10 23:38:12 ie, how can you know when a view in an adapter is going to be recycled and do cleanup then? Sep 10 23:38:23 JacobTabak i'd start by looking at https://developer.android.com/reference/android/view/View.html#onDetachedFromWindow() - i don't know if it gets called reliably tho Sep 10 23:38:29 it doesn’t :( Sep 10 23:38:50 very interesting. no idea. Sep 10 23:38:51 JacobTabak: you should tell a view if it's being recycled in the adapter Sep 10 23:39:03 if you get a non-null convertView then it's being recycled Sep 10 23:39:05 tell it Sep 10 23:39:15 oh right Sep 10 23:39:26 thanks Sep 10 23:39:49 have to have video in a listview, not fun so far Sep 10 23:40:03 what about scenarios where the view is never re-used tho? much more of an edge case i guess. Sep 10 23:40:20 i don’t think i’m too concerned about that Sep 10 23:42:31 is it only one video? Sep 10 23:42:40 if so you should use a different view type for it Sep 10 23:43:08 it does have its own view type Sep 10 23:43:33 but there can be several Sep 10 23:44:19 also have to think of a way to deal with activity onpause, etc, its in a very early stage right now Sep 10 23:47:32 Hello. I have multiple models that implement parcelable but I am getting Unmarshalling unknown type code xxx at offset xxx Here is the model. https://gist.github.com/px-amaac/0de82d712d41bd74b6af The problem only occurs when distance is null. Sep 10 23:48:07 Can anyoun explain this? am I handling null values correctly? Sep 10 23:49:37 shadynastys: you should initialize the double Sep 10 23:50:14 is there a reason your using the objects and not primitives Sep 10 23:51:04 I am writing and reading objects to handle nulls Sep 10 23:51:14 shadynastys: your writeToParcel method changes nulls to 0 Sep 10 23:51:29 for distance Sep 10 23:51:51 so why are you using the objects Sep 10 23:51:52 you should handle nulls before before it gets to that point Sep 10 23:52:31 oh btw http://developer.android.com/reference/android/os/Parcel.html#readValue(java.lang.ClassLoader) Sep 10 23:52:36 oops the code i posted was a little off cause i have been trying stuff Sep 10 23:53:08 i have fixed it to use writeValue Sep 10 23:53:18 instead of writeDouble Sep 10 23:54:05 Retrofit uses gson to fill this model and sometimes distance is not in the json data Sep 10 23:54:15 shadynastys: why are you using the objects and not primitives Sep 10 23:54:42 because writevalue will write a null Sep 10 23:54:51 no? Sep 10 23:54:57 primitives cant be null Sep 10 23:55:03 and you can just do writeInt and writeDouble Sep 10 23:55:21 desmin88 sometimes the value is genuinely a null, like he said Sep 10 23:55:33 gson uses null for primitive values that aren't present in parsed json Sep 10 23:55:40 if distance is null and i use write double it will write but not read Sep 10 23:55:48 exactly Sep 10 23:55:50 that shouldnt be handled by the model Sep 10 23:56:11 desmin what do you mean. Sep 10 23:56:15 shadynastys i don't think Parcel is null friendly, however. you probably need to write a flag that indicates whether or not the value is present Sep 10 23:56:53 what is irritating is that i have used this method in different places and it works fine Sep 10 23:57:10 but not here for some reason Sep 10 23:57:34 shadynastys: http://pastebin.com/wk1gfCAY Sep 10 23:58:03 that is just Sep 10 23:58:07 hi Sep 10 23:58:08 not good Sep 10 23:58:43 so you guys think artificial organisms as an android app would be cool? Sep 10 23:58:50 maybe touch sensitive Sep 10 23:59:00 que? Sep 10 23:59:24 TechEffigy: Creatures(tm) for Android? :D Sep 10 23:59:40 ill check it out Sep 10 23:59:49 TechEffigy: no, I was asking Sep 11 00:00:14 Creatures is an older Artificial Life game Sep 11 00:00:22 http://pastie.org/9543529 Sep 11 00:00:23 ahh JacobTabak: i didnt realize i could pass the double class loader there. everywhere i have seen the nulls handled they use the default class loader. Thankyou ill try this Sep 11 00:00:25 there is not an Android version, as far as I know Sep 11 00:00:28 thats how it should be done Sep 11 00:00:42 shadynastys: no clue if it will work, i just threw it into my parcelable generator android studio plugin Sep 11 00:00:49 it hasn’t failed me yet Sep 11 00:01:09 THEY HAVE THAT? Sep 11 00:01:15 lol “they" Sep 11 00:01:21 Although, I've been keeping up with that guys work on his new project grandroids, and am impressed by what he's doing Sep 11 00:01:25 slow framerate, low color of my evolving organisms, i gues i could spice up the graphics, but they can smell eat, evolve http://postimg.org/image/5iqdvz5gr/ Sep 11 00:01:30 https://github.com/mcharmas/android-parcelable-intellij-plugin Sep 11 00:01:40 desmin88 sadly that's not compatible with gson and it's kinda overkill to write a model for a model Sep 11 00:01:49 using time delay neural network population and a genetic algorithm Sep 11 00:02:09 JacobTabak nice. that's something i'd been idly meaning to write for a long time. glad someone did it Sep 11 00:02:38 there should be a better way though Sep 11 00:03:04 what would be better about it? Sep 11 00:03:30 well the whole thing with parcelable is speed, so i guess there can’t be many niceties Sep 11 00:03:51 but i imagine it would be nice to use reflection Sep 11 00:03:52 Oh man creatures Sep 11 00:03:53 hehe Sep 11 00:03:58 syntacticly nice anyway Sep 11 00:04:04 I was just thinking about that game today. Sep 11 00:04:09 sarbs: you can make it compatible Sep 11 00:04:11 but then it would just be serialization Sep 11 00:04:45 Coding genetics seems like all sorts of fun Sep 11 00:08:29 g00s: do you know why google introduced their own run configurations etc with IJ and not just write a really awesome gradle plugin? Sep 11 00:08:39 modifying genetics seems even more fun Sep 11 00:10:24 do any of you have experience with long short term memory neural networks? Sep 11 00:10:55 what the hell is a long short term memory neural network? Sep 11 00:11:00 cant seem to wrap my head around programming them, and they would be great for android sensors and detecting things Sep 11 00:11:20 it basicly keeps a memory, and when it detects something, it outputs Sep 11 00:11:20 Sounds like the creation of an addled brain Sep 11 00:11:32 it's a neural network that's got the same condition as Sammy Jenkins and is well hung dogarrhea .. duh Sep 11 00:11:45 they use it in cursive writing character detection Sep 11 00:12:27 coursera has a great course on neural networks from beginning to advanced, but im not as mathematical as i would like to be Sep 11 00:13:01 too bad. Sep 11 00:13:17 matrix mult too hard for u? Sep 11 00:14:01 u could forego rolling your own and use opencv Sep 11 00:14:57 there are no hard guidelines for building an ann Sep 11 00:15:13 what kind of architecture.. how many layers... all trial and error Sep 11 00:15:38 and all these "new" variants like support vector machines and convolution networks are all about the same Sep 11 00:16:44 android renders svgs differently compared to windows. is that a system limitation or my svgs are broken? Sep 11 00:18:00 no solving partial differentiation equations are hard for me Sep 11 00:18:24 what kind of neural network are you building? Sep 11 00:18:37 differential equations my arse. Sep 11 00:18:48 well im just using time delay NN at the moment for my Norgs Sep 11 00:19:25 feedback NN were also useful, so i might mix elman, jordan and time delay to see how organic that might be Sep 11 00:19:58 i like the idea of feedback causing chaos, that gives the illusion of order Sep 11 00:20:47 good luck lol Sep 11 00:20:54 it's time to go home now Sep 11 00:21:02 with the jordan network i had some very jittery Norgs, but they didnt seem to smart, where with time delay they adapted quiet well Sep 11 00:25:59 followup question from earlier… say you have a listview with 7 viewtypes, but only 3 views are visible. would the other view types that can’t be recycled still be children of the listview? and just sit there? Sep 11 00:26:19 like would the most recent view of each type just sitting in limbo? Sep 11 00:27:45 Anyone know if beginTransaction/endTransaction/setTransaction successfull applies to the normal db.insert(tablename, null, contentvalues) operation? Sep 11 00:28:00 or is it transactionally only applied for sqlitestatement? Sep 11 00:28:10 /ie rawquery / execsql Sep 11 00:30:52 lasserix: i have reason to believe it would include all queries Sep 11 00:30:56 yeah Sep 11 00:31:12 unfortunately this reason is not backed by documentation Sep 11 00:31:34 they are the best kind Sep 11 00:31:44 mysterious :) Sep 11 00:32:10 just because the convenience method really just executes raw sql Sep 11 00:32:21 (insert) Sep 11 00:32:30 ahh thanks Sep 11 00:33:51 can you sell me on activeandroid? why is it better than ormlite? Sep 11 00:41:48 sometimes I wonder what the hell this is that I have built Sep 11 00:42:23 oh yeah? Sep 11 00:43:11 sometimes seems like a genius artistic expression of simple and deep common sense Sep 11 00:43:28 other times seems way over complex and not very well thought out Sep 11 00:43:42 kinda mood dependant Sep 11 00:44:45 if you think it is complex and not very well thought out i wonder how someone else looking at it would feel Sep 11 00:45:06 lost and shock, appalled and in awe Sep 11 00:45:10 haha Sep 11 00:45:24 like I say, mood dependant Sep 11 00:46:22 Like I can define about 4 objects totalling 30 or so lines and have a functional activity with fragments all managed and lovely along with custom theme visuals that are on a per view basis not silly styles Sep 11 00:46:58 but then sometimes when I change a format, I sit here for hours getting no place fast, thinking, well why didn't I do this in the 1st place Sep 11 00:48:25 I think I need to step away from this and maybe learn a bit more basic programming and explore all the things I kinda skipped Sep 11 00:49:37 oh is this your first app Sep 11 00:49:42 indeed Sep 11 00:49:57 ah i would hate to look back at some of my early ones Sep 11 00:50:09 yeah but I have a problem Sep 11 00:50:21 I come for a 20+ year art/td background Sep 11 00:50:33 so I can't just…erm… move on like others can Sep 11 00:50:35 :) Sep 11 00:51:12 JacobTabak you have many on the store ? Sep 11 00:51:24 I can take a look back for you … cause now I'm interested :) Sep 11 00:51:28 hm like 200+ but many are just localized flavors Sep 11 00:51:43 like working with a parent company that releases one app per subsidiary Sep 11 00:52:02 my full time job is at Timehop, though Sep 11 00:54:04 JacobTabak oh and I think a single view held in a list that is unique "getType" is always held if it ever appears Sep 11 00:54:07 iirc Sep 11 00:54:25 StingRay_ if android was your first platform learning to program, you're brain is going to require some serious deprogramming to get straightened out again :) Sep 11 00:54:27 that’s what i’m assuming, going to try to investigate a bit Sep 11 00:54:44 JacobTabak I'm pretty sure that the case Sep 11 00:54:44 instead of: android:layout_height="match_parent" how can make it like match_parent/2 ? Sep 11 00:54:52 johnflux__ no Sep 11 00:54:54 to make a widget take up 50% of the scren? Sep 11 00:54:54 bankai_au no idea; lots of things google does completely mystify me Sep 11 00:54:58 g00s yes Sep 11 00:55:09 johnflux__: look at layout_weight in a linearlayout Sep 11 00:55:10 g00s why ? lol Sep 11 00:55:13 at the moment I place it in a layout, then use dummy "view"s and use layout_weight Sep 11 00:55:27 JacobTabak: okay, so that's the best way? using dummy views to pad the space? Sep 11 00:55:37 yea Sep 11 00:58:14 omg, anyone read the reviews for facebook messenger ? Sep 11 00:58:18 wow! Sep 11 00:58:26 link link Sep 11 00:58:41 https://play.google.com/store/apps/details?id=com.facebook.orca Sep 11 00:58:46 i think i fucked up my project by changing the path, now i cant use getViewById, i need to inflate a layout before. any way to fix this? Sep 11 00:58:58 getViewById returns null Sep 11 00:59:27 cliffreich you inside something that has that method ? Sep 11 00:59:29 and seems like i have to import R Sep 11 00:59:35 main activity Sep 11 00:59:37 i love that people are being "forced" to use it ;) Sep 11 01:00:09 cliffreich yeah you pretty much do need the resource id's Sep 11 01:00:18 yeah, like "hey dumbass, you're using fb so ..." Sep 11 01:01:29 oh wait that was before when i fucked R Sep 11 01:01:32 now its ok Sep 11 01:01:34 but Sep 11 01:01:38 still cant getviewbyid Sep 11 01:02:32 it works but returns null Sep 11 01:03:07 is this in a fragment or activity, are you inflating the layotu correctly? Sep 11 01:05:03 activity Sep 11 01:05:12 wait i have an error runnin Sep 11 01:05:16 sec Sep 11 01:05:44 stop hitting enter so much would you Sep 11 01:06:03 i think its time for minSdk=16 Sep 11 01:06:26 yes g00s Sep 11 01:06:29 fuck old devices Sep 11 01:06:38 shh don't tell ravilov Sep 11 01:06:46 ^H^H^H^H Sep 11 01:06:49 hue Sep 11 01:07:27 i need a break, gonna look at lumeOs :) Sep 11 01:08:29 this damn padding issue Sep 11 01:08:54 whats your issue desmin88 Sep 11 01:09:53 For some reason elements I add after the adapter creation display different Sep 11 01:09:57 http://gyazo.com/025b965c96c129df784e942133fd8c4d Sep 11 01:10:31 desmin88 did you confirm it has fk all to do with the adapter ? Sep 11 01:10:37 yes Sep 11 01:10:52 so it is the padding internal to the view Sep 11 01:10:56 thats freaky Sep 11 01:11:34 desmin88: how are you creating the elements that you add? Sep 11 01:12:07 Creating a new data model, and add it to the adapters data Sep 11 01:13:00 what happens when the old views that look good are recycled Sep 11 01:13:38 hmm Sep 11 01:16:11 ugh mediaplayer prepareAsync lags my ui… not very good async method -.- Sep 11 01:16:50 afaik the old views remain good Sep 11 01:16:53 new ones stay bad Sep 11 01:18:47 the issue is the padding on the bottom? Sep 11 01:18:57 correct Sep 11 01:18:58 or the padding between the title and the date Sep 11 01:19:33 can you send the xml layout of the item? Sep 11 01:19:46 yeah Sep 11 01:20:00 http://pastie.org/9543616 Sep 11 01:21:37 so it looks like the 2nd one matches the xml … and the first one has weird padding at the bottom Sep 11 01:21:57 yeah its all fucked up Sep 11 01:22:14 so the first one has extra padding that it shouldn't? Sep 11 01:22:36 yes Sep 11 01:22:58 do you have newlines in the text? Sep 11 01:23:16 heres my tutorial blog if anyones interested Sep 11 01:23:18 techeffigy.wordpress.com Sep 11 01:23:26 no Sep 11 01:25:15 damnit Sep 11 01:25:19 i think so Sep 11 01:25:25 sure looks like it Sep 11 01:25:45 "

test 2<\/p>\n" straight from the json Sep 11 01:26:06 ha Sep 11 01:26:28 are you using Html.fromHtml? Sep 11 01:26:37 yup Sep 11 01:26:41 damnit Sep 11 01:26:42 well there you go, problem solved right? Sep 11 01:26:51 yu Sep 11 01:26:53 yup* Sep 11 01:26:55 woohoo Sep 11 01:27:21 Now i need to strip it Sep 11 01:28:05 so now I need someone to tell me why prepareAsync lags my UI Sep 11 01:28:17 for a mediaplayer Sep 11 01:30:20 did you try to woo it Sep 11 01:30:26 lol, wut Sep 11 01:30:42 treat it really nice Sep 11 01:30:54 "woo" == make love Sep 11 01:31:06 ya i know what it means, just not helpful :*( Sep 11 02:04:53 ah nice, finally cricket time Sep 11 02:05:24 omg, just read about what comcast and all the cable companies are doing over there Sep 11 02:05:41 g00s I do not envy you guys at all Sep 11 02:05:54 StingRay_ oh, you mean our capitalist free market system over here eh Sep 11 02:06:00 yeah Sep 11 02:06:08 murcia Sep 11 02:06:10 damn Sep 11 02:06:14 murica* Sep 11 02:09:20 'Murica! Sep 11 02:11:11 hey all, been racking my brain on this: https://gist.github.com/anonymous/7e36ade5380328b384c4, any suggestions to the problem? Sep 11 02:11:39 capella-s3 i have to hop on ff irc and ask a few questions; like why it takes 30 seconds or more for the browser to shut down (time proportional to the amount of memory its using) Sep 11 02:12:18 Hmmm... I never shut mine down :/ Sep 11 02:12:41 30 secs sounds wrong definitely Sep 11 02:13:06 Still using 1000 addons? Sep 11 02:13:53 Matulis: can’t help, but i’m interested in the context of the problem, why are you using sqlite connection pools? Sep 11 02:14:07 capella-s3 i only have ABP, noscript, self destructing cookies, onetab Sep 11 02:14:12 4 addons Sep 11 02:14:18 not me directly, a library I am using I can only assume Sep 11 02:14:27 which db lib are you using? Sep 11 02:14:53 yah... teasing a little but... not even sure which channel to suggest Sep 11 02:14:55 https://github.com/cloudant/sync-android Sep 11 02:15:56 capella-s3 do you think ABP could be messing everything up Sep 11 02:16:09 Matulis: interesting… once again sorry can’t help, but just found this interesting http://stackoverflow.com/questions/2493331/what-are-the-best-practices-for-sqlite-on-android Sep 11 02:16:56 g00s: Not sure ... I've never had a problem with it ... it's an issue on Android/Mobile version 'cause all the .css, but desktop has never hurt Sep 11 02:17:39 And actually, from my personal use, Android/Mobile is worth the *small* delay for the adblock benefits Sep 11 02:18:20 hmm interesting article, ill have to see if maybe they are using multiple connections Sep 11 02:18:28 can't be onetab; just started using that but FF has been behaving like this for a year for me; its one of ABP / noscript / self destructing cookies or a combination Sep 11 02:18:45 all through clean installs and everything Sep 11 02:18:45 matulis: seems like it because you are having issues with the sqlite connection pool Sep 11 02:19:23 g00s: I don't use noscript nor self-destructing cookies ... so I'd look there first .... have you played with a clean profile (I'm assuming yes) Sep 11 02:19:41 noscript is like a condom for the interwebs :( Sep 11 02:20:03 IU wonder how adblock and noscript play together Sep 11 02:20:07 *I Sep 11 02:24:04 So this is neat https://code.google.com/p/cqengine/ Sep 11 02:25:48 desmin88 does it work on android? have to ask, one never knows :) Sep 11 02:25:52 yes Sep 11 02:26:35 I have a global holder for my super large objects that cant really be parcelized but fragments need to be made aware of them Sep 11 02:26:46 Pass in the id and query on it Sep 11 02:33:45 dam android is soo jerky :) Sep 11 02:36:33 g00s what was that free icon website you linked yesterday> Sep 11 02:37:04 ahh got it Sep 11 02:37:06 flaticon Sep 11 02:39:04 StingRay_: what do you mean jerky? Sep 11 02:43:11 janky StingRay_ , janky! Sep 11 02:43:19 if you’re talking about animations or scrolling, you’re doing it wrong™ Sep 11 02:43:24 jerky is a delicious meat treat Sep 11 02:43:46 jank™ Sep 11 02:43:51 JacobTabak nah, at least 4.4 still feels janky on my 2013 n7 Sep 11 02:44:02 just gapps themselves Sep 11 02:44:16 i bet L will improve that with the new animation thread Sep 11 02:44:30 nope sloer Sep 11 02:44:32 slower* Sep 11 02:44:32 the render thread isn’t in the l preview yet, right? Sep 11 02:44:39 or was it in the latest release? Sep 11 02:48:52 how to communicate between Service and Activity/Fragment? I only can see one option is to use Share Preferences… Sep 11 02:49:06 broadcast receiver is the canonical way of doing it Sep 11 02:49:29 why is it that a normal AlertDialog stretches it's width, however using a custom content view the width seems to be fixed to a very narrow width? Sep 11 02:49:36 there are a few event bus libs like otto which require a bit less boilerplaate code Sep 11 02:50:48 alexfu: inyour dialog getWindow().setLayout(…); Sep 11 02:51:37 JacobTabak: I'm more or less asking about how AlertDialog is able to do this without calling setLayout(..) Sep 11 02:55:08 JacobTabak I mean UI, compared to IOS Sep 11 02:57:27 alexfu: are you creating the custom content view with layoutparams match_parent, match_parent? Sep 11 02:57:41 this whole alertdialog sizing thing is like some sort of black box.. JacobTabak: yes. Sep 11 02:57:51 it’s really not, considering it’s all open source Sep 11 02:58:48 JacobTabak: the fact that it's open source doesnt really explain my question. been looking through the source and I cant find anything on how alertdialog measures it's size. Sep 11 02:59:00 how are you constructing your dialog? Sep 11 02:59:22 JacobTabak: extend Dialog, setContentView Sep 11 02:59:45 are you setting the theme? **** ENDING LOGGING AT Thu Sep 11 02:59:58 2014