**** BEGIN LOGGING AT Mon Jul 14 02:59:59 2014 Jul 14 03:03:24 what are the most common ways that mobile apps interface with a backend server? i know java, but i highly prefer working in python. I am wondering if I would really be going against the flow by trying to write a RESTful API in Python to interface with the android app, if my focus is on mobile and not web. Jul 14 03:04:49 On the other hand, i guess if mobile devs are working on something they want to extend to iOS also, it doesn't help so much for it to be written in Java? is that right? Jul 14 03:05:06 spaes two options: 1) build your RESTful API however you want and use an Android client that does REST well, e.g. retrofit 2) dont build a backend and just Parse or something like that Jul 14 03:05:20 spaes the backend has nothing to do with which clients consume from your API Jul 14 03:05:31 it shouldnt matter what your backend is written in Jul 14 03:05:54 all that matters is that it can receive HTTP requests and serve HTTP responses.. Jul 14 03:06:20 Speaking off RESTful APIs in python Jul 14 03:06:28 LuxuryMode: ok awesome thanks. only one thing I don't get, what do you mean by just Parse? Jul 14 03:06:45 https://parse.com/ Jul 14 03:07:02 My RESTful api could trigger a notification in my application. What would be the best way to check the REST server be? Jul 14 03:07:04 GCM? Jul 14 03:07:07 specifically https://parse.com/products/core Jul 14 03:07:24 LuxuryMode: excellent, i will look into that, thank you! Jul 14 03:07:46 bas_ if you have an event driven scenario, you may consider mqtt Jul 14 03:07:56 *may also Jul 14 03:08:50 How hard would it be to hook mqtt into an existing database (that the REST api uses)? Jul 14 03:09:06 i don't know. depends on too many things Jul 14 03:09:14 like three tables Jul 14 03:09:17 mqtt is best for pub/sub events Jul 14 03:09:35 But the most important bit is that the entire thing requires the device uuid Jul 14 03:09:36 its a different message exchange pattern than rest Jul 14 03:09:39 or http Jul 14 03:10:25 bas_ well, not sure why that would be an issue with GCM; i'd make sure that solution didn't work first Jul 14 03:10:37 its probably been heaily optimized for battery, etc Jul 14 03:10:38 Okay Jul 14 03:11:05 if you use mqtt, you have more control, no lockin, but you have to reinvent some pieces if using it like GCM (to wake up the device. etc) Jul 14 03:11:27 GCM seems really complicated tho and there isn't a whole lot of documentation that doesn't just throw a whole bunch of stuff at you and goes "understand!!!" (cough google documentation cough) Jul 14 03:11:42 :( Jul 14 03:11:42 I'll have a look Jul 14 03:11:53 thanks Jul 14 03:11:59 yw Jul 14 03:15:54 i'm trying to use android-maven-plugin and apparently failing. i have three projects: sdk, core, and test. sdk is an aar, and builds just fine. core is an apk that depends on sdk, and also builds just dandy. test is an apk, that depends on core, and can't build because dex complains about a duplicate symbol (a lone resource value in R from sdk). any tips on where to start looking for what i've done wrong? Jul 14 03:16:02 something i find curious is that if i do mvn dependency:tree in test, sdk shows up twice: once as a compile dependency of core, and then a second time as a direct dependency of test, in the "system" scope Jul 14 03:16:15 i think this is because the plugin is unpacking the .aar (so that it can read it) into ./target/unpacked-libs, and then maybe it's seeing that directory later and figuring "oh, i should put these jars into the dependency list"? Jul 14 03:25:52 sarbs, it's best to switch to gradle now Jul 14 03:26:11 pfn looked at it but at the moment don't have that option Jul 14 03:26:23 this is just my area of a much, much larger build Jul 14 03:28:10 * pfn shrugs Jul 14 03:28:28 very few here use maven, and those that do don't really understand it Jul 14 03:29:11 pastebin your log, I suppose Jul 14 03:29:17 maven logs suck Jul 14 03:35:54 pfn https://gist.github.com/tophyr/b15f30cec448d5ffa7c6 - this one's extra sucky, i turned on -X Jul 14 03:36:07 lmk if you want just the regular output but it doesn't tell much useful Jul 14 03:40:33 sounds like barsdk isn't built properly Jul 14 03:40:55 it should not include R$*. class Jul 14 03:41:03 nor R. class Jul 14 03:41:45 you can verify that by looking at the classes. jar in your aar Jul 14 03:55:15 thx pfn i'll check that out Jul 14 03:58:08 wait. pfn .aar's can't include R? Jul 14 04:00:42 no Jul 14 04:01:01 i thought that was the whole point of them. library jars couldn't include R but aar's can? Jul 14 04:01:21 and as I understand it, maven support for aar is extremely shoddy, if you want to use maven, you should use apklib Jul 14 04:01:33 aar cannot include R. class Jul 14 04:01:38 by definition Jul 14 04:01:53 ohh Jul 14 04:01:59 aar includes the resource files but not the class itself Jul 14 04:02:03 hmmmmmmmm Jul 14 04:09:51 crap, unpacking the aar and classes.jar, it doesnt have a R.class Jul 14 04:09:58 maybe it really is just crappy aar support in mvn Jul 14 04:16:38 pfn so what's happening is that the core apk carries a com.foo.bar.R, *and* aapt is autogenerating a com.foo.bar.R in the test project Jul 14 04:17:08 i feel like that'd be a fairly common use case. app depends on aar, test app depends on main app Jul 14 04:31:25 Does every thread, including the UI thread, automatically get it's own Handler, or do you explicitly have to create it? Jul 14 04:31:49 OmniQ outside the UI thread, you need to create handlers for those Jul 14 04:31:53 see HandlerThread :D Jul 14 04:32:05 but HandlerThread is a shortcut; you can use looper directly Jul 14 04:32:17 Right. Jul 14 04:50:40 hello... what do you guys use for load/stress testing your back-end systems? Jul 14 04:51:42 What would be ideal would be some large number of android emulators all under automation control, running somewhere with a fast pipe Jul 14 04:52:29 hmm Jul 14 04:52:41 well, if your backend is just some normal service, you can use grinder Jul 14 04:53:02 its been a while, you can use jmeter also Jul 14 04:53:21 the trick is having enough load generators Jul 14 04:53:28 What I want to do is to simulate lots of different users. Jul 14 04:53:39 right, and that Jul 14 04:53:42 sure, thats typica Jul 14 04:54:37 i used load runner for a while, that was expensive as hell though Jul 14 04:54:59 I have used jmeter before, but only on local workstations Jul 14 04:55:17 which wouldn't provide this type of load testing (unless the backend sucks...) Jul 14 04:55:55 yeah, i found it easier just to script grinder … docs on jmeter were iffy Jul 14 04:56:24 i'm not sure whats going on with the grinder project these days, its been at least 2 years since i used it Jul 14 04:56:34 yes, quite tricky to get it to do stuff. It's powerful but not that easy to figure out how it actually works Jul 14 04:58:26 Hi all Jul 14 04:58:39 Is there any option in android to have pop-ups? Jul 14 04:59:07 A pop up but it should close when I want to close Jul 14 04:59:13 sarbs, so don't pack the test code and you're done. Jul 14 04:59:58 nesoi i worked previously for a largish company, and we still couldn't afford all the load generator licenses (loadrunner). thats really why i just used grinder instead; but loadrunner is pretty awesome if you can afford it. the scripting language is pretty easy too, and they have great instrumentation on the server Jul 14 05:00:05 pfn not sure what you mean - don't run aapt on the test project? Jul 14 05:00:37 I mean something like a resizable pop-up. When items increase the width and height should also get adjusted and vis-a-vis Jul 14 05:00:38 don't run the test project, :p Jul 14 05:00:46 yeah loadrunner is nice, last product I used was LoadUI for rest webservices Jul 14 05:00:54 test project shouldn't include any code from core, in any case Jul 14 05:02:15 sarbs, if that's what you really want. then you should publish core as an aar and have test import that Jul 14 05:02:44 core is a set of services that runs on the device Jul 14 05:03:03 test is a sample app that consumes those services, and also contains instrumentation (against itself) Jul 14 05:03:31 so, only having half-attn to think about it at the moment, i think you're spot on - test shouldn't contain any core code Jul 14 05:03:39 sdk is what should bridge them Jul 14 05:04:44 g00s: I admit to having a sick mind, but when you say grinder, I see grindr :) Jul 14 05:07:55 trying to decide whether i should google that :| Jul 14 05:08:24 I have little or no budget :( Jul 14 05:08:47 looking on HP's Loadrunner site and I don't see any pricing Jul 14 05:08:56 that means its expensive Jul 14 05:09:00 hehe :D Jul 14 05:10:06 all HP stuff is; but we had great support from them. during one critical outage on the holidays, their support put me in touch with one of their c++ compiler engineers to figure something out Jul 14 05:10:08 g00s: let's say... social/dating app, for guys who like guys, which leans towards anonymous one-night-stand sort of stuff... nah, you probably don't want to Jul 14 05:10:43 hm. prong.com says .56 per "user day". WTF is that? Jul 14 05:10:45 Leeds thats all i need to know, thanks XD Jul 14 05:10:53 56 cents per virtual user? That's expensive... Jul 14 05:11:27 g00s: it's well enough known in the UK, at least, for it to be used in punchlines on comedy shows :) Jul 14 05:13:47 99% of the crap from silicon valley can be used as punch lines on comedy shows :) Jul 14 05:14:24 Leeds still using django ? Jul 14 05:14:33 of course Jul 14 05:15:06 and no, 99% of the crap from silicon valley *never makes it out of the valley* Jul 14 05:16:19 true, it kinda gets recycled into e-soylent green or something Jul 14 05:16:42 for the next disruptive startup to reinvent Jul 14 05:16:57 reinventing, to redisrupt ! Jul 14 05:16:58 kickstarter potato salad - flavoured with the tears of those who didn't get funded Jul 14 05:17:26 hehe Jul 14 05:18:41 in fact... it's just stuck me, I think we can start an official transition - from "jumping the shark" to "funding the potato salad" Jul 14 05:20:33 "we all know that blackberry funded the potato salad when they started touting a square phone with a keyboard" Jul 14 05:21:56 now we have this to deal with http://techcrunch.com/2014/07/03/go-disrupt-yourself/ Jul 14 05:22:11 JerkTech Jul 14 05:23:04 hm. this service looks possible http://support.loader.io/ Jul 14 05:23:22 I mean https://loader.io/pricing Jul 14 05:23:31 I have a view with a bunch of children. They are not necessary views themselves, since I'm using a canvas to draw them in the parent view. Anyways my questions each of these views needs to be updated periodically and individually, what's the best way to handle this? Like a handler in the parent view and use a handler with a map of runnables post delayed? Jul 14 05:23:48 unlimited 10 min tests with up to 100K clients/test for $99/mo Jul 14 05:25:10 This is kinda for a game: another approach is to treat the children views as like sprites, and emulate speed such that after some distance they'll be updated Jul 14 05:25:49 ok, bbl thanks all Jul 14 05:28:20 lasserix i was going to say, try rxjava observers for the children, but … if its a game and performance oriented it may not work out well. well, you would have to check the gc Jul 14 05:28:45 especially if things are happening on different threads Jul 14 05:29:16 but if its all on the same thread, i would be cooler on the rx approach Jul 14 05:30:43 lasserix yeah scratch that (rx) i think i know what you're getting at; in any case i don't know anything about games Jul 14 05:32:01 No one? To clarify, i have a view with a bunch of psuedo-views. By pseudoview, I mean a bunch of squares, the squares themselves need to change color every say minute, independently of eachother. What's the best way to do this? Have each object representing the square have its own handler? Jul 14 05:32:01 Have the parent have a handler and use a hashmap of runnables (so I can cancel the random color change) when I need to? Jul 14 05:32:29 yeah rx not applicable for this but thanks tho Jul 14 05:33:00 well i guess for now ill just use a hashamp on the parent with runnables to squares and see how that works for now Jul 14 05:33:15 btb Jul 14 05:35:34 sounds like one of those times you want function pointers Jul 14 05:35:56 heh yeah Jul 14 05:36:09 you can actually do it pretty easily Jul 14 05:36:43 use a functor or static single method classes Jul 14 05:40:37 How to work with a debugger Jul 14 05:40:59 I am new to debugging and want to have easy lookup of the problem in the code Jul 14 05:41:33 I tried running it on ADT but exactly not understanding what its trying to do Jul 14 05:41:43 I kept breakpoints Jul 14 05:52:41 any help? Jul 14 05:59:21 niru: you getting an error and need to find out why? you know bout logcat? Jul 14 06:00:33 i forgot how to use eclipse, sorry :) Jul 14 06:00:49 but i think you put a breakpoint on a line, and click the bug run icon Jul 14 06:01:04 its usually better to just talk to the Duck Jul 14 06:05:52 canvs2321: g00s I know logcat but I want to use the debug mode. where we put some random breakpoints and try to catch exactly where the error is Jul 14 06:06:14 Also is there any good example on pop-ups Jul 14 06:06:20 breakpoints don't catch errors Jul 14 06:06:29 logcat & stacktrace does if crashing Jul 14 06:06:31 A dynamic pop-up whcih changes the size when content changes Jul 14 06:06:40 otherwise logcat plus logging variables you wanna check work Jul 14 06:06:57 canvs2321: ah ok... Jul 14 06:07:11 you getting a crash, or just unexpected outputs? Jul 14 06:07:39 you can set a breakpoint for uncaught exceptions Jul 14 06:08:09 canvs2321: crashing Jul 14 06:08:38 canvs2321: sometimes I am not able to understand the errors so may be debug mode will help? Jul 14 06:08:41 seems best just to read the stack trace, but if you are unfamiliar with it, check out JakeWhartons route Jul 14 06:09:32 canvs2321: ok... Jul 14 06:09:44 canvs2321: any help on dynamic pop-ups? Jul 14 06:09:56 post your errors&some code Jul 14 06:10:37 pastebin or alternative Jul 14 06:13:56 * hackkitten hugs Eclipse and flashes at g00s :P Jul 14 06:15:24 hmm... haven't seen hackkitten talking for a while... Jul 14 06:16:07 * hackkitten notes that hackkitten has been a busy kitten for the past months :) Jul 14 06:16:12 niru: if not knowing really what to post, maybe detail your actual intents a bit. You wanting a Dialog, or PopupWindow, or a Toast, or what's your end game Jul 14 06:16:16 hackkitten oh hai :) Jul 14 06:16:21 hi :D Jul 14 06:16:47 yeah hackkitten , what have you been up to ? Jul 14 06:20:20 work, writing more chapters of this AndEngine ref book for Packt, being a general nuisance :) Jul 14 06:20:41 also started work on my own SCM because git annoys the heck out of me :D Jul 14 06:21:07 hackkitten try hg ? Jul 14 06:21:16 nah Jul 14 06:21:21 it's much the same Jul 14 06:21:29 never liked CVS and SVN either Jul 14 06:21:46 I don't like repository and commit-level SCMs Jul 14 06:22:11 plus almost nobody using Hg anyway :3 Jul 14 06:22:54 yeah, i don't really like git UI either , although the model is elegant - i use it because everyone else does mostly Jul 14 06:23:14 if software is a social endeavor, better use what people like ;) Jul 14 06:23:15 canvs2321: sorry I meant to ask please provide me with some good example link on pop-ups Jul 14 06:23:26 canvs2321: may be I was not clear in my question Jul 14 06:24:11 g00s: this SCM project of mine is actually inspired by how I have seen SVN used at some companies doing billion-dollar hardware designs :) Jul 14 06:24:27 for some reason Git just won't ever work there :D Jul 14 06:25:32 niru: Pop-ups isn't an Android specific term, are you wanting a Dialog? what are you doing to the point where you need this "popup"? are you needing input from the user, or just displaying data? Jul 14 06:29:05 canvs2321: my requirement is : when I click on a link it should open a pop-up(a mini window) which will have some text boxes and drop down selection and I will enter the necessary data and click submit(a button). Once submit is clicked the window should close Jul 14 06:29:32 but the main activity should not close Jul 14 06:29:41 because that will have some more links Jul 14 06:32:58 niru use Dialog or Activity themed as Dialog; PopupWindow is kinda low level and PITA (can't use a Spinner in a PopupWindow, etc) Jul 14 06:33:21 g00s: ah ok... Jul 14 06:33:42 g00s: yes I read it some where now theme dialog Jul 14 06:42:36 Hello Jul 14 06:42:44 I have an EditText box Jul 14 06:42:49 How do I allow copy/paste in that field? Jul 14 06:42:57 I have already added android:textIsSelectable="true" to it Jul 14 06:57:12 Hi everyone. Jul 14 06:57:30 Got a little question, anyone here? Jul 14 06:58:16 Yes Jul 14 06:58:21 What is the question? Jul 14 06:58:27 got a little answer: 0.005 Jul 14 06:59:05 Leeds: I think you mean 0.006 Jul 14 06:59:15 phyzloc: that's a bigger answer Jul 14 06:59:26 In deed :) Jul 14 06:59:49 I'm waiting for indn1234's 'little question' Jul 14 07:03:17 Leeds you been drinking? Jul 14 07:03:30 unfortunately not Jul 14 07:04:40 Leeds: is it possible that I create an action bar and left and right panes "natively", and put in a webview below the action bar, in order to create a hybrid app? Jul 14 07:04:41 indn1234: are you just keeping us all in suspense? :) Jul 14 07:04:47 ah, there it is Jul 14 07:05:34 indn1234: you can put a webview anywhere you like - it's just like any other native widget Jul 14 07:05:49 indn1234: what do you mean by left and right panes? Jul 14 07:14:08 Sorry got called by boss. Jul 14 07:14:29 barbs: by those, I mean the left and right split panes. Jul 14 07:15:16 still not sure what you mean... Jul 14 07:16:30 navigation menu Jul 14 07:16:59 do you mean like the drawer menus that you can open from the left and right on the Facebook app, for example? Jul 14 07:21:17 I'm not sure about the FB app, but there is a side menu on the G Play Music app Jul 14 07:21:38 ok cool. In any case, you should be able to do what you want :) Jul 14 07:25:19 Oh. Cool. Jul 14 07:41:37 Anyone got a theme recomendation for android studio? Jul 14 07:41:45 darcula Jul 14 07:41:53 (other than the defaults, which are kinda of stale pastel) Jul 14 07:42:08 not a fan of dark background Jul 14 07:42:30 what about pink? Jul 14 07:42:47 Not a good contrast Jul 14 07:42:56 Anyone got a theme recomendation for android studio using light-contrasted background? Jul 14 07:43:12 lasserix: http://ideacolorthemes.org/home/ Jul 14 07:43:14 Presumably not light pink? Jul 14 07:43:30 danijoo thanks Jul 14 07:43:49 actually the vibrant unknown is not bad! Jul 14 07:44:15 didnt u say you are not a fan of darkness? :P Jul 14 07:44:18 If you find a good one, say; getting bored of my current one again Jul 14 07:44:48 danijoo i'm not, but the colors are unconventially good Jul 14 07:45:00 im a fan of this one: http://ideacolorthemes.org/themes/4/ Jul 14 07:45:32 The solarized set is decent, think I use it on sublime Jul 14 07:47:13 Doesn't it kind of count as a dark background though? Jul 14 07:47:25 i am a paradoxist Jul 14 07:47:29 yeah Jul 14 07:47:35 theres also a solarized light btw Jul 14 07:48:24 As an actual android question, does anyone know why I have a fragment that keeps painting white? (But not on the simulator) Jul 14 07:48:52 no Jul 14 07:48:59 Damn. Jul 14 07:49:13 need more info :) Jul 14 07:49:13 doesnt it have any context? Jul 14 07:49:23 buttons etc? Jul 14 07:49:30 that should print Jul 14 07:50:49 It's a fragment that works as a toolbar, it switches layouts from double-row to single row depending on orientation/device Jul 14 07:51:06 Now the question of the best font type face to use... Jul 14 07:51:27 Estel: you should do that via xml .. Jul 14 07:51:36 It's updated after a webview completes loading, but it seems that after it draws successfully one or two of the rows turn white Jul 14 07:51:40 danijoo: I do Jul 14 07:51:43 oh ok Jul 14 07:52:18 There's some code to modify if a row is visible because some buttons change visibility based on content type. Jul 14 07:52:55 It's annoying because the buttons are still there and will draw successfully if encouraged to do so (ie I press an invisible button, or drag the system notification drawer down acress the app) Jul 14 07:55:41 Can I add fragments to a gallery inside a horizontal scroll view? When I try I get the following error: Jul 14 07:56:00 java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView Jul 14 07:56:09 on setContentView of my activity. Jul 14 07:57:21 Everything is defined in my layout xml, so I don't actually call addView. Any ideas on how I could make this work? Or do I need to implement gallery behaviour myself? Jul 14 08:00:17 What's your xml? Jul 14 08:01:21 Estel: one way you can debug is start giving all your views color Jul 14 08:01:26 until you find out the problem view Jul 14 08:04:38 Estel, my xml looks like this: http://pastebin.com/vbXRU6W2 Jul 14 08:05:35 lasserix: yeah, I'm pretty sure it's just being painted white, it's not the case that I can see through to lower views Jul 14 08:06:31 anyone knows how to change resolution of android-86x running on vbox ? tried with VBoxManage controlvm | setvideomodehint but it does nothing Jul 14 08:10:27 hi all, Can I run CTS on a new device (meaning that it's not connected to any google account yet)? Jul 14 08:10:51 also - when running an emulator, to which google account is it connected to (if any)? Jul 14 08:12:15 Syzygy_: Gallery is an adapterview, you need to add the fragments (if that works at all??) using an Adapter rather than in xml Jul 14 08:12:17 for a bunch of custom views, that all share similar features like background rect being painted, etc, is it better to pass one paint around for them all to use or to initialize a paint for each one? Jul 14 08:12:40 alright, I guess I'll implement gallery behaviour myself then. Jul 14 08:13:36 Syzygy_: are you trying to make an actual gallery? Jul 14 08:13:42 no Jul 14 08:14:02 I'm trying to make a sidemenu by abusing horizontal scroll view Jul 14 08:14:47 Why O_O Jul 14 08:14:52 designers Jul 14 08:15:10 the default sidemenu thingy doesn't do what they want Jul 14 08:15:16 ViewPager might be a better fit Jul 14 08:17:01 Can I partially scroll things in with this? Jul 14 08:19:50 Apparently you can .setPageMargin(something) Jul 14 08:27:16 I don't think this will do what I want better than my current implementation Jul 14 08:28:21 android.widget.Gallery? deprecated, horrible Jul 14 08:29:33 apperently. Jul 14 08:29:56 and I wasn't talking about Gallery Jul 14 08:31:36 you should kick your designers for trying to put iOS on android, clearly Jul 14 08:31:38 ;) Jul 14 08:32:18 we're available on both and try to keep it mostly the same Jul 14 08:32:34 generally a bad idea Jul 14 08:32:58 anyone knows how to change resolution of android-86x running on vbox ? tried with VBoxManage controlvm | setvideomodehint but it does nothing Jul 14 08:37:45 Anyone know how the token works for the removeCallbacks function works? Jul 14 08:48:08 I've published an app yesterday, it was on the store until this morning, and not it's "Not Found" when I try to access it's page on the play store from web. The app's status is "Published" in the dev console Jul 14 08:48:22 any idea if that's just a server glitch or was the app removed? Jul 14 08:48:26 it's a flappy bird clone Jul 14 08:48:40 Hey guys, I have a button inside a row in a list view, and I'm wondering, how do I treat their states independently? (right now if you click the list view, the button also appears selected, and vice versa) Jul 14 08:48:50 I should also mention the button is just a text view Jul 14 08:53:46 aviran link? Jul 14 08:53:58 maybe they pulled it since apps like that are ruining the app store? Jul 14 08:54:11 lasserix: https://play.google.com/store/apps/details?id=com.endlesslives.jumpingjesus Jul 14 08:55:43 hmm yeah dunno Jul 14 08:55:46 lasserix, I wish they did that Jul 14 08:56:19 asquirrel you need to set the appropiate listener per view, or propogate the events from either parent to child or child to parent Jul 14 08:56:25 aviran, I'd give it a day and then ask google Jul 14 08:57:01 lasserix, if i set the listeners appropriately, will the propogation stop? Jul 14 08:57:18 asqurriel it'll only propogate if you make it so Jul 14 08:57:26 that's not what I'm seeing here Jul 14 08:57:34 that's the whole point of why onTouch returns true or false Jul 14 08:58:00 ah I see Jul 14 08:58:05 Google has a lot of issue lately..... But this one might be because its a flappy jesus game Jul 14 09:00:32 any idea if google ban apps with religious references? Jul 14 09:00:45 aviran, there's an app called "jesus jumps" also Jul 14 09:00:53 so I doubt it Jul 14 09:01:13 is there no information on your dashboard? Jul 14 09:01:27 no, everything is normal Jul 14 09:01:38 aviran, and it says the app is published? Jul 14 09:02:27 lasserix, fixed it by changing it from a TextView to a Button. (the touch event propagation is different for the two, which makes sense I guess) Jul 14 09:06:33 I'm trying to implement a dragging action with an added action once the screen is released, but for some reason I don't seem to be able to detect the end of the motion event Jul 14 09:07:11 shouldn't ACTION_UP and and ACTION_CANCEL cover all the possible events? Jul 14 09:10:44 Have have two fragments Jul 14 09:10:59 In my main activity Jul 14 09:11:01 ItemListFragment ls_fragment = new ItemListFragment(); fragmentTransaction.replace(android.R.id.content, ls_fragment); Jul 14 09:11:03 works fine Jul 14 09:11:18 whereas the 2nd fragment ItemDetailFragment dt_fragment = new ItemDetailFragment(); fragmentTransaction.replace(android.R.id.content, dt_fragment); Jul 14 09:11:28 shows erro in replace. why? Jul 14 09:12:13 the method replace(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, ItemDetailFragment) Jul 14 09:14:47 Here is the actual code Jul 14 09:14:48 http://pastebin.com/xpDp0i2E Jul 14 09:14:52 hey guys Jul 14 09:15:08 can someone point me to a link that explains what spanned text is? Jul 14 09:15:44 jvrodrigues: http://lmgtfy.com/?q=android+spanned+text Jul 14 09:16:14 but none of those links actually explain what span means and what it is Jul 14 09:16:22 The first link says: Jul 14 09:16:28 "This is the interface for text that has markup objects attached to ranges of it" Jul 14 09:16:42 hmm Jul 14 09:16:50 so a markup object would be a string within tags? Jul 14 09:17:02 like string here ? Jul 14 09:17:05 Markup objects can be pretty much anything Jul 14 09:17:08 Woop, six hours, one bug \o/ Jul 14 09:17:25 It's basically a way of tagging parts of a string Jul 14 09:17:36 I see Jul 14 09:18:02 been googling that for an hour and all pages seem to take for granted that readers know what a markup is Jul 14 09:18:03 lol Jul 14 09:18:04 fullScroll(FOCUS_LEFT); for some reason this apperently doesn't work when triggered by drag events, only by click events. Jul 14 09:18:07 anyways thanks! Jul 14 09:18:22 jvrodrigues: You can attach arbitrary objects if you so wish Jul 14 09:18:46 with this code http://pastebin.com/rxWQMSS7 Jul 14 09:20:08 ah, i guess I have to do it in post delayed Jul 14 09:24:42 Is the direction of a motion event provided to me or do I have to calculate that myself? Jul 14 09:24:57 Calculate Jul 14 09:25:02 ok Jul 14 09:25:36 positions are absolute screen coordinates, right? Jul 14 09:27:10 is anybody experienced with licensing libraries? Jul 14 09:27:40 i’m looking at licensing something that makes my app possible… without it, i can’t use it… is 15% fair for that or is more detail necessary? Jul 14 09:28:15 until i figure out how to do it myself, or hire someone for a one time payment so i don’t have to keep paying Jul 14 09:32:48 for ev.getHistoricalX(int), what exactly does the history represent? Jul 14 09:33:00 if i put 1, will that be the most recent event or the first event? Jul 14 09:33:38 does it include the current event? Jul 14 09:35:13 or should it be 0? Jul 14 09:35:27 i don’t believe it includes the current event Jul 14 09:36:04 do you need to go back more than one? Jul 14 09:36:24 because you can use previousLocationInView Jul 14 09:37:01 oh, that’s ios Jul 14 09:37:18 why do we get error as Jul 14 09:37:26 actually, i guess it doesn't really matter if i have the most recent or the first event Jul 14 09:37:26 i wrote my graphics/controls and touch interaction all from scratch in my app for both ios and android so i get confused on what’s what Jul 14 09:37:31 The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, ItemDetailFragment) Jul 14 09:37:49 event.getX() Jul 14 09:38:45 also if you need distance since last event, override onScroll and use distanceX/distanceY Jul 14 10:00:25 is it possible to change the value of an Integer? Jul 14 10:02:08 something like: Integer i; i.setValue(2); Jul 14 10:02:50 oh, "Integer objects are immutable" :( Jul 14 10:03:57 catphish, there'll be MutableInteger in future Jul 14 10:04:17 what i really wanted was a MutableBoolean Jul 14 10:04:37 but i suspect there's a better way to structure my code to avoid it Jul 14 10:04:39 thanks Jul 14 10:04:52 I guess you're thinking in C-like pointers Jul 14 10:04:57 Hi I am not getting any help today :) niru is crying Jul 14 10:05:09 :( Jul 14 10:05:10 niru, ask your questions Jul 14 10:05:17 EPG ItemListFragment ls_fragment = new ItemListFragment(); fragmentTransaction.replace(android.R.id.content, ls_fragment); ItemDetailFragment dt_fragment = new ItemDetailFragment(); fragmentTransaction.replace(android.R.id.content, dt_fragment); Jul 14 10:05:26 sorry let me paste that in pastebin Jul 14 10:05:34 please do Jul 14 10:05:53 http://pastebin.com/GsgQ2XKB Jul 14 10:05:57 I have two fragments Jul 14 10:06:22 I want to see both. But with that code I am able to see only one Jul 14 10:06:27 I am running an emulator Jul 14 10:07:27 EPG: I am not understanding what condition I have to put to see one fragment and then the other Jul 14 10:07:49 niru, don't you want to see both at once? Jul 14 10:08:15 EPG yes sure but that is not possible with a handset as far as I know Jul 14 10:08:26 oh, ok Jul 14 10:08:49 EPG: only tab supports two fragments in one screen Jul 14 10:09:00 niru, did you read http://developer.android.com/guide/components/fragments.html#Example ? Jul 14 10:10:34 EPG: no I did not let me got through it once Jul 14 10:27:49 I want to call two fragments without any condition check Jul 14 10:28:03 Is there any procedure Jul 14 10:29:01 I think replace /add should do that Jul 14 10:32:00 SimonVT: Is this http://goo.gl/QFRmpH possible with the menudrawer library? Jul 14 10:32:34 EPG: I did it :) Jul 14 10:32:49 niru, nice :) Jul 14 10:33:21 I changed replace() to add(). Which was overwriting the textfileds so I included new line Jul 14 10:42:10 napster: I'd imagine so, the listeners tells you how many pixels the menu is open Jul 14 10:43:39 SimonVT: Can you give me some more pointers? Jul 14 10:44:07 0x0F836E93 Jul 14 10:44:31 very clever :p Jul 14 10:44:35 0x3A28213A Jul 14 10:44:38 Enough? Jul 14 10:44:42 So, where's my relevant XKCD? Jul 14 10:44:46 yeah, XKCD Jul 14 10:45:15 I believe its 138 Jul 14 10:45:18 http://xkcd.com/138/ Jul 14 10:45:31 Not really.. You have the menu size and how much of it is visible.. Then do stuff to the view so it looks like that Jul 14 10:46:02 SimonVT: Which listeners receives the current menu size? Jul 14 10:46:19 yourMenuView.getHeight() Jul 14 10:48:41 Hey! I am trying to build a system application and wondering if that can be accomplished with the Android Studio. I need to access the StatusBarManager but it is of course not part of the SDK. How do I tell android studio to look for it in the source code, or should this be done any other way? Jul 14 10:49:12 There should be some listeners that receives how much of it is open as it is drawn, right? SimonVT Jul 14 10:51:14 yeah Jul 14 10:52:23 hey all... so im trying to get an upload working through asynctask for the purposes of a speed test. I'm wondering if anyone can guide me on how I could generate a 5mb file of miscellaneous garbage simply for the sake of uploading Jul 14 10:53:31 Jesperhead: $ head -c=5000000 /dev/urandom > file Jul 14 10:53:44 in an app :) Jul 14 10:54:08 Without that '=' of course... Jul 14 10:54:35 You know Java file IO and java.util.Random? Ready to go... Jul 14 10:54:41 flan3002: I appreciate your answer, however im a bit ignorant. im not exactly sure whats going on there Jul 14 10:54:46 ah, well that explains it Jul 14 10:55:39 I know how to create a file to internal storage using cwrapper. it was filling it that i was confused on. Jul 14 10:55:48 Though you should even be able to spawn that process from inside your app, so... (Not saying that's the best way) Jul 14 10:55:58 Cwrapper? Jul 14 10:56:26 contextwrapper Jul 14 10:56:47 ie: Jul 14 10:57:12 ContextWrapper cw = new ContextWrapper(mContext); Jul 14 10:57:14 File directory = cw.getDir("images", Context.MODE_PRIVATE); Jul 14 10:57:15 File mypath=new File(directory,"myImage.jpg"); Jul 14 10:57:36 Would create a directory @ /data/data/app_images and a file named myImage.jpg Jul 14 10:57:53 err: /data/data/appdirectory/app_images* Jul 14 10:57:55 Jesperhead: I got to go, but just a FileOutputStream (with a BufferedOutputStream) around it. Google for it! Jul 14 10:57:59 *+use Jul 14 10:58:06 flan3002: thanks again Jul 14 11:04:09 Since I read that I'm supposed to specify size not in pixels but dip, and '(int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 6, getResources().getDisplayMetrics());' seemed long and ugly, I made a method for it to which I pass the context and then get resources from that. Now I read that passing context around isn't a good idea because of potential memory leaks. Jul 14 11:06:05 passing getResources().getDisplayMetrics() or getResources() to the method it gets almost as ugly as doing it without the method. Do you guys use the long line directly in code or have you got a neater method solution? Jul 14 11:11:58 jesperj: if you don't store the context then I don't see what memory leak there could be. Jul 14 11:12:32 can i use aspectj with android studio? is there a guide or something, maybe? Jul 14 11:13:55 jush: Sorry I am not a very good programmer but... it looks like "public int dipToPx(Context pContext, int pDip) {" By storing it, do you mean store it inside dipToPx as a variable there? If I only use the parameter pContext, does it disappear after the method is called or is stored? Jul 14 11:18:19 jesperj, really, you can just do dp * displayMetrics.density Jul 14 11:18:30 jesperj, so just pass around density Jul 14 11:18:54 other way I usually do it is just create a short method that does conversion and make sure you never really keep context around. Jul 14 11:20:15 uhm,can anyone tell me what would cause a DialogFragment to show a small empty square even missing title? Jul 14 11:21:30 Mavrik: Does context passed as a paremeter to a method "stay around" or disappear after the method is called if I don't use it some other way in the method? Jul 14 11:21:46 (Yeah I have a lot to learn) Jul 14 11:22:17 oh wait Jul 14 11:22:30 jesperj, why would it? Jul 14 11:22:55 Mavrik: I'm not sure. Just want to make sure it wouldn't Jul 14 11:23:13 I'm confused Jul 14 11:27:45 this is the fragment code http://pastebin.com/ZJseqKCA Jul 14 11:31:04 Mavrik, can you halp meh? beware,I'm a fragment noob Jul 14 11:31:37 helicopter88, default dialog theme has space reserved for title Jul 14 11:32:16 yea,but it should load a listView and loads nothing Jul 14 11:42:03 Mavrik: Is there a good reason for why I should pass around getContext().getResources().getDisplayMetrics().density to the method rather than context? Will density be much faster or use a lot less memory or why? Jul 14 11:42:56 jesperj, it's a good design pattern Jul 14 11:43:02 pass the most narrow information you need Jul 14 11:43:11 also, you can store density then ;) Jul 14 11:45:03 Hi, if a AsyncTask in a Fragment is running, does a FragmentTransition kill the AsyncTask. If yes how could I keep the AsyncTask from being killed? Jul 14 11:46:46 byt89, perhaps make the async a separate class Jul 14 11:47:42 k thanks Jul 14 11:47:44 Mavrik: Ok thanks Jul 14 11:48:44 byt89, AsyncTask is never killed Jul 14 11:48:48 by anything else than process dying Jul 14 11:48:52 to be careful about that. Jul 14 11:52:01 anyone experienced with Access-Control-Allow-Origin in WebView? I run a local webserver and start a javascript method, but the ajax call fails with a "Origin http://localhost:4400 is not allowed by Access-Control-Allow-Origin.", source: http://localhost:4400/index.html" Jul 14 11:52:17 local webserver = nanohttpd on the android device itself Jul 14 11:57:03 Is it OK to have different code for different APIs or how do you handle that+ Jul 14 12:00:31 anyone knows how to install jacbi-aspects?.. Jul 14 12:00:41 or anything like that.. Jul 14 12:11:28 Hi! Jul 14 12:11:51 How do I prevent my fragment from fetching data from server again when i press back button? Jul 14 12:16:20 Any tips on good breadcrumb views? Jul 14 12:16:32 is it common that a single insert should take up to 20 ms in sqlite? Jul 14 12:17:21 Morning Jul 14 12:20:53 JakeWharton: is there a reason why 9OA won't work on API 8 to 10? or android 2.X.x? Jul 14 12:21:33 how do i get hold of a 2.X.x simulator since it is not in the SDK anymore? Jul 14 12:22:15 Nine Old Androids should work going back to 1.0 according to the readme Jul 14 12:27:32 any of you have a multi-dex file project? Jul 14 12:27:52 i want to speed the build and it seems like it could be a thing to throw libraries into one dex and all the codes into another Jul 14 12:28:17 Well it is probably not 9OA. I have soe stuff not working on API8-10, like setVisibility and color of edittexts, I know thats very unspecified but maybe someone knows of the top of their head some problem with that? Jul 14 12:34:42 Hello, i'm writing an app where the user can push on a layout to activate a timer and release it to stop it. But i have a problem when the orientation changes. I'm handling orientation changes with onConfigurationChanged(Configuration), but when the layout is replaced (because i call setContentView in onConfigurationChanged), i don't receive the onTouch event with ACTION_UP when releasing. is there a way to make that work please? Jul 14 12:42:18 How can i apply a style to the application theme from within PreferenceFragment? getApplication().getTheme().applyStyle() doesn't work. It does work when i call it inside onRestart() of an activity that calls the PrefFragment tho. Jul 14 12:43:39 Actually not from a PreferenceFragment but from a PreferenceActivity Jul 14 12:49:55 ANDROID STUDIO... There should be a simple way to switch fragments in an activity onClick of button... any sugestions? Jul 14 12:50:24 IrishGringo, look into the fragment manager Jul 14 12:51:12 my logcat ran away and now I can't find it anymore (using android studio) Jul 14 12:51:12 jonc-1: yea.... that is the normal way I do it... but AS has another technique... and I was looking for it... Jul 14 12:51:33 it's missing from the alt+6 thingy Jul 14 12:52:00 nevermind i found it Jul 14 13:04:29 if (database != null) database.close() nullpointererror D: worst java Jul 14 13:09:02 Estel what does that have to do with java? Jul 14 13:09:23 it's a java error on my code, I can totally blame java ^^ Jul 14 13:09:34 if close() has an implementation error or you are calling it from the wrong state that would be the same nomatter what language it is Jul 14 13:09:52 Yeah :) Jul 14 13:10:03 It wasn't a studied complaint about java, of which I have none Jul 14 13:13:14 gah this fragment is making me mad Jul 14 13:13:23 it never reaches onCreate ffs Jul 14 13:16:42 helicopter88: how are you calling for the new fragment? Jul 14 13:17:02 I figured that naming my DialogFragment DialogFragment wasn't a smart idea Jul 14 13:17:03 lol Jul 14 13:17:23 did that resolve the issue? Jul 14 13:17:30 yup Jul 14 13:17:35 well,now I have a NPE,but that's another story Jul 14 13:21:51 hey all, does the NotificationManager not work when an app is in the background? Jul 14 13:22:32 it does. Jul 14 13:22:45 hm, for some reason my notifications aren't updating only when the app is suspended Jul 14 13:23:04 dcope: are you updating from a BroadcastReceiver? Jul 14 13:23:08 but it works fine if the logic runs while the app is in the foreground. is there any permission or setting on the notification i need to set? Jul 14 13:23:24 thepoosh: nope, using NotificationManager Jul 14 13:23:25 dcope, how are you creating the notification? Jul 14 13:23:33 dcope, in a service? broadcast receiver? Jul 14 13:23:41 is the phone online? is the CPU on? Jul 14 13:23:42 Mavrik: NotificationCompat.Builder Jul 14 13:23:45 I suspect a receiver Jul 14 13:23:52 dcope, that does not answer my question. Jul 14 13:23:58 dcope, how are you running your code in background? Jul 14 13:24:05 dcope: what starts the process of making that? Jul 14 13:24:10 Mavrik: oh Jul 14 13:24:24 Mavrik: there is an audio service Jul 14 13:25:02 dcope: is the service bound to an Activity? Jul 14 13:25:02 ... Jul 14 13:25:09 thepoosh: yes Jul 14 13:25:15 is the activity dead? Jul 14 13:25:20 Mavrik: sorry, i am new to android dev Jul 14 13:25:30 thepoosh: i don't believe so, because the method encapsulating the notification logic runs fine Jul 14 13:26:08 it's just as if the notification doesn't get fired off Jul 14 13:26:40 dcope: pastebin the code Jul 14 13:26:41 dcope, well then you'll have to clear up on basics Jul 14 13:26:52 like, activity, service, receiver Jul 14 13:26:57 and when they run and how Jul 14 13:32:43 can onServiceConnected be called after fragment's onStop? Jul 14 13:33:39 sure Jul 14 13:36:38 Are there any expandable view elements other than expandable list view? Jul 14 13:37:40 Jesperhead: I assume you solved the problem? Jul 14 13:38:18 if I am nesting fragments (activity A creates fragment B, fragment B creates fragment C), how should I set up the callbacks for C back to B? Jul 14 13:39:15 mattblang, usualy this is done for you Jul 14 13:39:33 Syzygy_ what do you mean? Jul 14 13:40:02 cool, i got it working Jul 14 13:40:03 thanks all Jul 14 13:40:22 the system threats your activitiy history like a stack, so once you destroy C you should go back to B automatically Jul 14 13:41:35 mattblang, http://developer.android.com/guide/components/tasks-and-back-stack.html here's more info for you Jul 14 13:41:51 I'm working on a simple android widget, which loads fine for nova launcher, however if I switch to my default google now launcher it doens't seem to exist at all Jul 14 13:42:15 Syzygy_ I'm sorry, not trying to do anything with the back stack. Trying to set up a callback in C that will call a function in B. Jul 14 13:42:55 oh. Jul 14 13:43:44 mattblang: I'd use the Activity A as controller so it redirects the call to fragment C Jul 14 13:44:03 i'm having trouble with my activity bar indeterminateprogress spinner freezing quite noticeably, it seems to happen when it's started as the activity starts (ie in onresume) and freezes for up to 0.5 seconds before it spins smoothly Jul 14 13:44:05 because the activity A is the only that knows if C is there or not Jul 14 13:44:21 Syzygy_, jush more specifically, I have a nav drawer that creates a dialogfragment for login, and when the user hits login I want to let the nav drawer know to show more menu entries if authentication is successful Jul 14 13:44:51 startActivityForResult and onResult should work for that purpose Jul 14 13:46:21 catphish, too much work on UI thread Jul 14 13:46:56 pfn: that's what it feels like :(but i can't think why, does much happen *after* onResume completes? Jul 14 13:47:09 jush so activity A is the only one that knows if C is there or not, even if fragment B (the nav drawer) is the one injecting the fragment? Jul 14 13:47:30 pfn: is there a callback i can use that fires after the activity has settled and drawn? Jul 14 13:47:35 I'm trying to build a menu and I'm not sure if I should implement the menu elements as list view elements or as individual views on a scrollview Jul 14 13:47:40 catphish, it's your code, I wouldn't know how you're doing too much Jul 14 13:48:01 catphish, post? Jul 14 13:48:24 pfn: i'm not doing anything in the main thread except onCreate, which i assume runs before onResume Jul 14 13:48:25 mattblang: it was more a way of structuring your code. You can call findFragmentBy* from any where, even from inside the nav drawer. Jul 14 13:48:27 Hey there. Jul 14 13:48:43 jush I was thinking that I could get a reference to the nav drawer fragment from the login fragment, but any attempts return null, so I guess you are right. I know how I can use Activity A as the controller, was just hoping to use the nav drawer as the implementer of the callbacks Jul 14 13:49:08 How can I detect whether the device has two bars (phone layout, navigation bar on top and system bar on the bottom) or just one bar (tablet, merged bar on the bottom)? Jul 14 13:51:31 Syzygy_: post? Jul 14 13:52:10 view.post(Runnable action) Jul 14 13:52:49 Syzygy_: thanks, i'll try that, it feels like when "onResume" runs, some things are still running in the ui thread Jul 14 13:53:12 yeah, sounds like post could help Jul 14 13:53:18 (or postDelayed) Jul 14 13:53:38 Nested fragments upset me so much the last time I tried them that everything got refactored so that they'd never come back Jul 14 13:57:43 does it make sense that running cts takes more than 6.5 hours?! Jul 14 13:57:55 cts? Jul 14 13:58:09 catphish, so you say, but your code us blocking, and that's why you see a visual delay Jul 14 13:58:19 flan3002, android test suite Jul 14 13:58:21 flan3002: https://source.android.com/compatibility/cts-intro.html Jul 14 13:58:36 I'd imagine it would take a day Jul 14 13:58:49 but no one here runs cts Jul 14 13:59:36 Ah, okay. :) Jul 14 14:02:32 hm Jul 14 14:02:35 actually it's not working Jul 14 14:02:53 solved my own problem and it was widget layout min size Jul 14 14:03:36 i have a broadcast receiver that updates the notification when it gets a message Jul 14 14:03:49 but the notification isn't updating if the app is suspended Jul 14 14:05:21 pfn: Syzygy_: thanks for the pointers, the problem is actually the activity animation, the spinner progress indicator is visible during the animation, but does not start to animate until after the transition is complete Jul 14 14:05:42 i can fix this by disabling the animation or using postDelayed Jul 14 14:05:52 pfn: why no one here runs it? Jul 14 14:06:17 do you have a different set of sanity tests? Jul 14 14:06:48 meital, because no one here develops android Jul 14 14:07:22 pfn: you're all about assumptions are't you :) Jul 14 14:08:09 catphish, that's what happens when you're vague and oblique Jul 14 14:08:21 I made a simple map activity, just to show a map. But it keeps crashing. http://pastebin.com/8TP80yAn Jul 14 14:08:27 can someone help? Jul 14 14:09:13 Papaecho91: have you been following a tutorial? Jul 14 14:09:21 It looks like you haven't included google play services Jul 14 14:09:24 yes Jul 14 14:09:37 catphish: Assumption is the mother of all fuckups ;) Jul 14 14:10:15 Papaecho91: which? https://developers.google.com/maps/documentation/android/start#getting_the_google_maps_android_api_v2 ? Jul 14 14:10:24 is there an irc channel for people who do develop android? Jul 14 14:11:05 Which? I did all Jul 14 14:11:19 hold on Jul 14 14:11:23 I mean, which tutorial? ^ that one? Jul 14 14:11:25 meital: the closest you're likely to find is the folks at #cyanogenmod Jul 14 14:11:56 but it's a pretty specialist subject sadly Jul 14 14:12:49 catphish: ok, thanks! Jul 14 14:12:52 i suspect i'm not going to be able to run animations during the activity transition :( Jul 14 14:16:43 catphish, you won't, animations work with a static snapshot for the most part, dunno how video players do it differently Jul 14 14:17:36 pfn: i think some apps use a single activity and animate fragment around Jul 14 14:18:54 but to do that would be a serious departure from the normal process, and i'm not that experienced yet Jul 14 14:19:11 thanks though, i won't waste time trying Jul 14 14:26:44 hi all Jul 14 14:26:59 i've imported a my project on a new pc with eclipse adt Jul 14 14:27:13 but i have many error Jul 14 14:28:00 for example: package com.example.test -> The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files Jul 14 14:44:14 Alfreda: where did you import from? Jul 14 14:48:22 Estel: it was necessary delete android support v4 from my project Jul 14 14:48:23 :) Jul 14 14:49:05 Does GPS on android use power if the screen is off an no application is actively using it? Jul 14 14:49:10 Like keeping a lock or something... Jul 14 14:49:14 no Jul 14 14:49:21 it only uses power when it's being used Jul 14 14:49:58 unfortunately, current play services seems to ping gps location pretty often :-/ Jul 14 14:50:38 Can I disallow play services to use gps and stick to wifi and tower db? Jul 14 14:50:58 you would disable gps to google apps altogether Jul 14 14:51:28 Ok. And when GPS is used, does it always show the icon on the statusbar? Jul 14 14:51:30 I've seen a few articles about doing just that... should be pretty easy to bing that Jul 14 14:51:32 or only when it is fixed? Jul 14 14:53:22 i've imported a my project in an other pc but when i open layout.xml i have this error: Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V Exception details are logged in Window > Show View > Error Log Jul 14 14:53:29 Janhouse, anytime it's in use Jul 14 14:53:41 some tips for me? Jul 14 15:06:09 thzx Jul 14 15:32:40 Is there anyway that you can revert back to a stable build in android studio? I've just starting learning and didn't realize it was auto saving. Jul 14 15:33:02 I have the debug version of the app on my phone if that means anything lol. Jul 14 15:33:51 you can follow this http://stackoverflow.com/questions/3593420/is-there-a-way-to-get-the-source-code-from-an-apk-file Jul 14 15:34:13 ctrl + z until you're back. Jul 14 15:34:15 i had the same problem some months ago Jul 14 15:34:50 if you're working in git or your files are located in dropbox it should be easy Jul 14 15:35:11 At least a local git repo is always a good idea Jul 14 15:35:18 for exactly that case. Jul 14 15:35:43 yeah I tried ctrl + z, but I've already gone too far. Jul 14 15:35:45 (or dropbox if you forget to commit anyway) Jul 14 15:36:12 does dropbox allow you to revert to old states? Jul 14 15:36:12 that m4dfry.. I decompiled the apk originally... but couldn't figure out how to get the java files Jul 14 15:36:57 and yeah.. I'm gonna start a local git repo. Jul 14 15:37:06 you have to use dex2jar Jul 14 15:38:03 you lost comment and some line, but you can safely trace changes and revert sources in the originale project Jul 14 15:46:35 danijoo, kindoff, you need to do it on the website and per file Jul 14 15:46:47 ouch Jul 14 15:46:56 better than nothing Jul 14 15:47:51 if only my work stuff wouldn't take up 15gb on my dropbox :( Jul 14 15:48:01 yeah that why we have real vcm Jul 14 15:49:59 I use git as well :D Jul 14 15:50:23 the 15gb are non code Jul 14 15:50:46 from documents to assets and design concepts Jul 14 15:51:49 Lol yeah.. so I finished following a guide and pushed it to my phone. Mostly everything worked except one or two things. I tried to be fancy and fix it. Ended up with errors all over the place. Jul 14 15:52:11 Most of the apps I've been starting with have been simple so they were easy fixes. Jul 14 15:52:28 I guess I just assumed Android Studio had a fail safe. Jul 14 16:07:40 Why mCameraParameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH); work me only from the second time? Jul 14 16:20:15 someone? Jul 14 16:24:51 Apparently "Beginning August 1st 2014, all updates and new apps uploaded to the Play Store must use the Android advertising ID for any advertising purposes". Jul 14 16:25:08 The example shows how to get it, but not how I am supposed to use it Jul 14 16:25:14 https://developer.android.com/google/play-services/id.html#example Jul 14 16:37:05 WHen you create a android project, you cna specify what type of activity it should be. How do I get the Map Activity there? I have installed google servides Jul 14 16:37:08 services* Jul 14 16:39:15 Papaecho91: that may depend on which development environment you're using Jul 14 16:39:37 Eclipse ADT, or what do you mean? Jul 14 16:51:49 Anyone know what cause this problem? Jul 14 16:53:41 what Papaecho91 Jul 14 17:07:49 i am trying to update a progressbar using a for loop function but i see the progress only when it reaches 100%. the for loop is inside a thread and i am using runonuithread to update the progressbar Jul 14 17:08:08 This cries AsyncThread. Jul 14 17:08:20 s/Thread/Task Jul 14 17:08:59 ? Jul 14 17:09:13 Have you read up on the threading model of Android? Jul 14 17:09:45 yes Jul 14 17:10:03 So you do know that processing on the UI thread blocks redrawing? Jul 14 17:10:18 no Jul 14 17:10:24 Well... it does. Jul 14 17:10:37 thank you flan3002 Jul 14 17:10:51 :) Jul 14 17:11:18 but how can i use asyntask ? i have to use it inside the tread ? Jul 14 17:11:22 i have never used it Jul 14 17:11:32 Google for it. Jul 14 17:11:43 There's loads of material on the internet. Jul 14 17:12:02 ok but should i use it inside a thread ? Jul 14 17:12:26 something last Jul 14 17:12:27 It creates a new thread, so no... Jul 14 17:12:50 Look at example code and read the AsyncTask source code. Jul 14 17:13:24 And the documentation of course. Jul 14 17:14:18 if i create a thread that updates a progressbar within 100seconds and turn off the screem after for example 20sec the progress is halted and resumed when i turn the screen on Jul 14 17:14:46 any suggestion on how to procced with that ? Jul 14 17:17:13 Eclipse shows me the following warning: "BarRenderer is a raw type. References to generic type BarRenderer should be parameterized" from the line: 'BarRenderer renderer = (BarRenderer)plot.getRenderer(BarRenderer.class);'. Here is info on BarRenderer: http://androidplot.com/javadoc/0.6.0/com/androidplot/xy/BarRenderer.html . How should I fix this warning? Jul 14 17:18:01 jesperj: Without looking at the code: You shall supply a type parameter, like BarRenderer. Jul 14 17:18:12 I am trying to grasp this generics/raw type stuff but I haven't so far <_<. Jul 14 17:18:29 flan3002: Yeah I tried to do that but I couldn't find any type that was accepted Jul 14 17:18:56 jesperj: You don't just... try. Let me look at the code. Jul 14 17:19:06 razlept0: http://stackoverflow.com/questions/6005689/keep-ui-thread-running-when-screen-is-off# Jul 14 17:19:51 flan3002: This is at the limit of my java understanding... I know I have to grasp this stuff, it's essential. Jul 14 17:20:06 jesperj: Well, obviously your type must extend BarFormatter. Do you have such a type? Jul 14 17:20:33 Someone used that lib? Jul 14 17:23:52 flan3002: I tried BarRenderer renderer = (BarRenderer)plot.getRenderer(BarRenderer.class); which gets rid of that warning but gives me "Unchecked cast from XYSeriesRenderer to BarRenderer" Jul 14 17:25:39 I've probably got some reading to do in order to solve this Jul 14 17:26:01 Uhm... yeah, you should. Jul 14 17:26:41 flan3002: got any recommendation based on what I'm dealing with? Jul 14 17:30:00 jesperj: It's basic stuff, you should really just learn about Javas fake generics. :) Jul 14 17:30:15 ok :) Jul 14 17:30:43 damn these generics. so far I haven't grasped it. *goes back to reading about it* Jul 14 17:30:56 When creating a List with a fixed size like new ArrayList(5) do i use add or set afterwards? Or it doesn't matter? Jul 14 17:46:29 it doesn't matter Jul 14 17:46:32 ArrayList will always grow Jul 14 17:46:49 although, you'll need to use add Jul 14 17:46:57 and only set after you've added Jul 14 17:50:42 JakeWharton There's an example on the Picasso project page of adapter re-use and it has a getView method with a void return type. Which adapter's getView returns void? Jul 14 17:50:50 none Jul 14 17:51:06 i think someone fixed it I just haven't re-deployed the site in a while Jul 14 17:51:39 JakeWharton ok cool thanks Jul 14 17:51:45 just redpeloyed Jul 14 17:51:57 Also, for some reason I'm now seeing that my 0th view doesnt seem to have the image loaded Jul 14 17:52:05 whereas if I just setImageDrawable, I see it Jul 14 17:52:24 the rest of the list displays fine, but the 0th item doesn't seem to draw correctly when loading with a url Jul 14 17:54:50 Anyone here have experience with an Android Facebook submission? Jul 14 17:55:14 LuxuryMode: can't speculate without seeing code Jul 14 17:55:59 JakeWharton this is really it: http://take.ms/u2KxF Jul 14 18:00:02 hey, how do I get started with android app development? Jul 14 18:00:23 Hello, anyone got any recomendations for automated unit testing? Jul 14 18:01:10 Was looking into roboelectric but it can only target 18, not 19 Jul 14 18:02:08 JakeWharton looks like a caching hiccup. I cleared the app data and it works. Jul 14 18:02:17 Just emphasizes the need for a placeholder :-) Jul 14 18:05:27 haha indeed Jul 14 18:25:38 anyone familiar with service testing? specifically - does the instrumentation/testing code run in the same process as the service, or is the test code a separate application (and thus separate process) that simply uses the Binder IPC to control the service? Jul 14 18:26:09 sarbs I did it via the activity2 Jul 14 18:33:14 sarbs: same process Jul 14 18:33:46 yeah i was wigging out for a sec - i have a weird setup that i was trying to work within, instead of stepping back and refocusing Jul 14 18:34:05 right now i'm instrumenting a manual test app, that IPCs to the services app i want to test Jul 14 18:34:09 need to just instrument the service apk Jul 14 18:42:31 Mavrik: hey, today I discovered EventBus wich is 100x better than Otto Jul 14 18:44:25 was kinda hoping rpi b+ would have a faster processor :| Jul 14 18:44:44 gdrc, mhm. Jul 14 18:44:45 :) Jul 14 18:45:37 g00s, considering the dev time that went into original... expecting a new SoC was probably too optimistic :) Jul 14 18:46:20 I did see one comment that saying this *isn't* raspi 2.0 was a suggestion that such a thing is coming Jul 14 18:46:43 g00s: I'm waiting for microsoft send me the board with intel galileo Jul 14 18:47:10 gdrc oh nice Jul 14 18:48:26 How can I get the path to a txt file in my assets folder? this.getAssets().openFd("name.txt") ? I am trying to use a method I already have to read a file and return the contents as a string. It takes a full path. Jul 14 18:48:51 g00s: that was free on windowsondevice.com Jul 14 18:50:33 gdrc how long ago did you order it ? Jul 14 18:51:01 deadmund, getAssets.open("name.txt") will give you inputstream. Jul 14 18:51:09 I ordered it on thursday Jul 14 18:51:15 note that assets themselves are not files (they're not unpacked from apk) Jul 14 18:52:14 gdrc i dont think thats the right domain Jul 14 18:52:33 windowsondevices.com Jul 14 18:52:45 yeah, that link :) Jul 14 18:53:36 Yes I'm sorry, I forgot an s Jul 14 19:05:24 I changed to Eventbus because of sticky events :D Jul 14 19:08:20 sticky events are @Produce in Otto Jul 14 19:13:22 stupid stupid question a while ago when i was making the app in android studio i made something like this "android:onClick="TEST"/>" Jul 14 19:13:28 I forget where would the "TEST" string be listed Jul 14 19:13:41 nvm found it Jul 14 19:14:31 jonc-1: I like EventBus becouse of posting in different thread. Jul 14 19:14:38 becAuse Jul 14 19:19:10 for gods sake does anybody here knows how to change resolution on android-x86 ??? im running it on vmware and i need to change the resolution because im sick of it rotating to portrait everytime i open an app Jul 14 19:19:14 lol Jul 14 19:19:16 guys help Jul 14 19:22:04 you should probably ask in #android-x86 Jul 14 19:25:15 ty frankdrey Jul 14 19:35:21 SImple fragment question... http://pastebin.com/dZJqSUQi Jul 14 19:35:41 I am just trying to click a button and swap to a new fragment... Jul 14 19:37:16 IrishGringo i suspect things start going wrong on line 44 Jul 14 19:37:56 the context isn't ready until onCreate, so put that stuff in there Jul 14 19:38:06 FragmentTransaction ft = fm.beginTransaction(); Jul 14 19:39:13 halp Jul 14 19:39:20 i put android L on my nexus 7 Jul 14 19:39:23 and now its borked Jul 14 19:40:40 drej try #android-root Jul 14 19:40:54 download factory image, boot to fastboot, reflash with factory image. for more detailed on any of those steps, google, since here isn't really the place. Jul 14 19:40:54 I tried L for 3 hours then I flashed back kitkat Jul 14 19:42:17 did you dislike it? Jul 14 19:42:18 hey dragorn Jul 14 19:42:31 g00s: cheers Jul 14 19:42:41 hm, according to this, to reliably wipe my device i should enable encryption before giving it away, and then reset / wipe Jul 14 19:43:56 g00s: yup Jul 14 19:44:18 meh, how do I make ignores persistent in hexchat Jul 14 19:44:19 g00s: but really only because enabling encryption writes to every block of the device (well, every block in use) Jul 14 19:44:25 g00s: afaik, that's recommended because some devices don't implement the secure block erase correctly, or something like that. Jul 14 19:44:45 JesusFreke, no devices implement secure block erase, maybe that new blackphone will Jul 14 19:44:47 g00s: whereas a reformat just does a format, usually, which can leave empty space empty Jul 14 19:44:57 format just writes superblocks Jul 14 19:45:08 pfn: not in v1 it can't, but we strongly steer users towards encryption Jul 14 19:45:14 dragorn is the key recoverable ? Jul 14 19:45:24 factory reset is specifically meant to erase all data (not just reformat) Jul 14 19:45:27 dragorn, of course, prior to encryption, anything that was deleted won't necessarily be unrecoverable Jul 14 19:45:33 and I'm pretty sure it does on newer nexus devices, at least. Jul 14 19:45:43 JesusFreke, and as far as I understand, it's generally implemented on android as remove partition, re-create Jul 14 19:45:57 g00s: default android behavior is to lock the complex key w/ the pin of the device Jul 14 19:46:22 g00s: so your chance of cracking the real encryption key, slim. your chance of cracking the pin in an offline attack, pretty good Jul 14 19:46:53 arguably you shouldn't be able to extract the file w/ the passphrase on a boot-locked device Jul 14 19:46:53 ok, i feel retarded, but anyone hit this with android-maven-plugin? java.lang.ClassNotFoundException: Didn't find class "android.test.InstrumentationTestRunner" when trying to run some instrumented tests. i feel like i must have forgotten something in my manifest. Jul 14 19:47:26 dragorn ok, pardon my ignorance - but even after encrypting storage, is the key recoverable (after cracking the pin) after a factory reset - or is all that securely removed Jul 14 19:47:29 in reality, apple does it better than anyone, but they control their hw chain 100% Jul 14 19:48:49 b/c they can have non-write-leveled storage in flash for highly sensitive data, plus their flash controller does mandatory encryption at all times, incidentally making it faster in general since it's smearing your data to a more entropic mean instead of writing a predominant quantity of 0 or 1 in a lot of cases Jul 14 19:49:02 g00s: in theory once you trash the keyspace on the encrypted partition, it's toast Jul 14 19:49:16 dragorn ok, thats nice to know :) Jul 14 19:49:27 g00s: it's toast for all practical purposes, of course you could face further attacks against the write-leveling system, etc Jul 14 19:49:49 g00s: but if you're targetted that specifically, I'd argue you don't want to be carrying anything on a device like a phone Jul 14 19:50:45 g00s: really, attacks against live data via exploits / malware apps / etc are what you have to worry about. Secondarily, attacks against data at rest via unlocked bootloaders, etc. Jul 14 19:51:30 How is developing for Android on Ubuntu? No probs? Jul 14 19:51:43 bingo, uses-library is a child element of application, not manifest Jul 14 19:51:56 pcdroid: works fine Jul 14 19:52:03 pcdroid: you need the multiarch ia32 libs Jul 14 19:52:24 pcdroid: maybe some udev rules Jul 14 20:03:55 I'm working on an API where a developer has to pass in an implementing class to get a callback for some features of the API. Problem is, I'm worried a developer might make their implementing class their adapter or something based on an activity context... What's the best way to handle this? Have them pass in the callback implementor each time they make a call? Use a weak reference to reference their callback implementor? Jul 14 20:04:23 or just tell them how to use it right and if they fucked it up completely, too bad Jul 14 20:05:12 yeah ;p Jul 14 20:05:28 i'm all for defensive coding Jul 14 20:05:41 but if your major hangup is finding ways to keep a developer from being dumb, eventually, you'll lose Jul 14 20:11:45 Anyone working on an a compat library for material? Jul 14 20:12:02 I tried and I failed. Jul 14 20:13:51 oh support lib 20 release notes are up Jul 14 20:14:26 hm, doesn't mention those 2 new widgets Jul 14 20:17:03 lasserix you shouldn't have to worry about these problems. But, unfortunately, Java. Enough said. Jul 14 20:25:35 lasserix i think some of the android apis see if the passed in thing is a context; specifically a anonymous inner class of a context. they enforce that it is static Jul 14 20:26:10 i guess it kinda makes sense from the android apis; but for my own internal projects i'd just put it in the javadoc ;) Jul 14 20:27:23 yeah, i think ill just put it in the java doc, if theres a memory leak its probably cause they are causing it: the problem is it makes sense for some of the callback implementors to be like adapters Jul 14 20:27:37 there's also a stop call so i can do clean up there Jul 14 20:27:49 lasserix if you use WeakReference, you have to let people know about it (i think). Jul 14 20:27:56 so it becomes a leaky abstraction Jul 14 20:28:19 yeah i was thinking of doing that, but i'd rather not use it in an api, personal projects fine :p Jul 14 20:28:20 if you use weakRef, and somebody passes an Anonymous inner class, it can get garbage collected Jul 14 20:28:27 right Jul 14 20:28:28 and then stuff just stops working :) Jul 14 20:28:42 and if the activity gets ondestroyed, it might be not null, but not useful Jul 14 20:33:07 Anyone here have experience with an Android Facebook submission? Jul 14 20:33:18 I'm having an issue setting up a proper Test User. Jul 14 20:36:34 hey guys what would be the best way to learn how to connect php or mysql to a web application to create login screens like facebook or instagram, where the first activity is a mainscreen Jul 14 20:37:06 like a login screen...might be a confusing explanination Jul 14 20:37:17 I think what I would need to do is connect it to a mysql database or someone suggested using parse and using parse libraries Jul 14 20:37:22 would that also work? Jul 14 20:39:11 I prefer .Net stuff + SQL Server but php + mysql is ok. You can also learn ruby+sinatra Jul 14 20:39:25 What do you think is the best method/most secure/recommended. Jul 14 20:40:03 Hello guys! Jul 14 20:40:10 Hiya Bavilo Jul 14 20:40:12 welcome to the party. Jul 14 20:40:18 Could someone help me out with some android code? Im clueless... Jul 14 20:40:39 Psil0Cybin: I would suggest Web Api + SQL Server. (C# is very similar to Java) Jul 14 20:40:49 Here is my app code, I´ll explain what the problem is... Jul 14 20:40:50 http://pastebin.com/4xzJ07hN Jul 14 20:41:06 when the app is run, a bluetooth device is found through ACTION_FOUND Jul 14 20:41:14 then it detects that teh device is paired... Jul 14 20:41:26 after that Device found is run again. Jul 14 20:41:35 now it says device is unpaired. Jul 14 20:41:44 how can the device be paired and unpaired at the same time? Jul 14 20:42:00 im guessing my entire code is just messy...:( im new to android coding. Jul 14 20:42:52 JakeWharton you have been given the title "Almighty". https://medium.com/@rotxed/dex-skys-the-limit-no-65k-methods-is-28e6cb40cf71 Jul 14 20:43:47 gdrc, alright thank you I have a lot to learn now :) Would it be hard to learn Web Api just for this task, or is it like a complicated setup Jul 14 20:51:16 Psil0Cybin: really simple, microsoft tutorials are well done Jul 14 20:52:34 lovely. Jul 14 20:52:35 thanks Jul 14 20:53:03 anyone that can help me out? Jul 14 20:54:07 In regards to RxJava, if the original source of my User object is from the web, but the User can be modified on the app (user updates their profile) how are you supposed to broadcast that? You should have a client that sits between the Web and your app that has a GET and SET for User, right? So where/how do you pump the update to the observers? Jul 14 20:56:01 Psil0Cybin I will start groing shrooms soon for the first time.. do you think it's worth it ? Jul 14 20:56:41 rhapsody`, ;) Yea do it. Jul 14 20:56:55 easier to grown then pot thats forsure. Jul 14 20:57:32 not sure it's easier, i mean all that sterilazation and stuff Jul 14 20:57:45 mattblang: that's a good read Jul 14 21:01:16 rhapsody`, it is easier., Jul 14 21:01:17 trust me Jul 14 21:01:25 does not need light, really...4 Jul 14 21:01:44 once you grow you can keep the same batch for ever. Jul 14 21:02:52 i'm not worried about it being hard to grow.. I'm worried of the effect, i don't wanna meet leviathan or fucking satan.. aka a bad trip :D Jul 14 21:03:10 thanks mattblang for posting that, especially the bit about play service strip.conf Jul 14 21:05:05 JakeWharton, g00s no credit to me, I just found it. but yeah, it's something I havent thought much about until this, and Jake's post on Play Services 5. About to run a count on my app now out of curiosity. Jul 14 21:06:54 mattblang as the article mentions, play services bloat isn't even acknowledged by google, i think thats weird Jul 14 21:07:04 i thought by now they would have unbundled some things Jul 14 21:07:31 yeah, that is very strange Jul 14 21:08:35 it's acknowledged Jul 14 21:09:05 hello? :D Jul 14 21:30:47 is there a way to scan only for ONE mac address, and ignore all others? Jul 14 21:39:17 Bavilo: I believe in 16+ there is, but don't quote me on that Jul 14 21:39:39 Bavilo: There should be a way to filter by manufacturer, whose MAC addresses have specific prefixes. Jul 14 21:39:55 Which would effectively perform that filtering. Jul 14 21:42:22 android-maven-plugin users: is there a way to get it to respect ANDROID_SERIAL (or something like it)? i know about -Dandroid.device=<...> but i don't want to have to type that every time. Jul 14 21:47:08 AS creates new classes in build folder if you invoke it from quick fix >_< Jul 14 21:49:54 the onCheckedChanged event is called when I change the state by code? Jul 14 21:50:06 for a checkbox Jul 14 21:50:10 Suchorski wgich widget? Jul 14 21:50:17 hmm Jul 14 21:50:39 its not consistent, some do, some dont Jul 14 21:51:12 Switch calls its listener even when invoked programmatically, for example Jul 14 21:51:23 hey all, i'm trying to show an activity from a notification. i've noticed sometimes it shows with FLAG_UPDATE_CURRENT and sometimes it doesn't Jul 14 21:56:53 my problem is that when ACTION_FOUND is run and it goes through BOND_BONDED and BOND_NONE it will apply this for all found BT devices, Jul 14 21:57:07 I need all of this done for only ONE certain mac address Jul 14 21:57:11 how can I do this? Jul 14 22:08:55 JakeWharton dagger q if you've got time Jul 14 22:09:15 go Jul 14 22:09:53 i've got a test apk that's using dagger to override a few of the injections with mockito mocks. the original module is possibly a bit unorthodox, it requires a Context in its constructor Jul 14 22:10:28 the test module thus can't include it (to my knowledge) because there's no 0-param ctor, so i removed the include and build the new graph using plus() Jul 14 22:10:59 however when it runs that, i get NoClassDefFound errors trying to instantiate InjectAdapters for the tested-package classes Jul 14 22:11:47 have i got my build configuration screwed up still (been fighting junk like this all day but thought i finally had it sorted) or am i using dagger in an unsupported fashion? Jul 14 22:13:53 hmm Jul 14 22:14:00 well you're right that you can't includes= it Jul 14 22:16:00 what makes me think it might be build config is that the cause of the NCDF is "IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation" Jul 14 22:16:09 instead of an invalid dagger config Jul 14 22:16:20 anyone used HTC's IR APIs before? Jul 14 22:16:21 apparently documentation is kinda nil Jul 14 22:16:30 that usually means you have duplicate dependencies in the test apk and real apk Jul 14 22:16:54 are you including the dagger runtime twice? Jul 14 22:17:00 MohammadAG htc development support was pretty responsive when i worked with them (admittedly several years ago) Jul 14 22:17:45 JakeWharton no, i exclude all the dagger bits from my real-apk dependency in the test project, then in order to get to build i re-include them with "provided" scope Jul 14 22:18:26 it is unfortunately not telling me which class it's resolving unexpectedly Jul 14 22:18:43 oh Jul 14 22:18:44 nm Jul 14 22:18:55 logcat did.. volley Jul 14 22:19:02 i'll go thru my build deps yet again Jul 14 22:19:52 I was using onSaveInstanceState to save my app's state. But i figured out that onRestoreInstanceState is not called after when the activity pauses. What can i use instead? Jul 14 22:20:06 SharedPrefs? Jul 14 22:20:12 hey all, im showing a notification that launches an activity when tapped. it works sometimes and othertimes its like the app crashes but i dont see anything in the console logs Jul 14 22:20:16 any ideas? Jul 14 22:24:11 oh bingo. i just changed the scope of the apk-under-test to provided Jul 14 22:24:20 no more exclusions needed, no transitive deps pulled thru, nothin. Jul 14 22:25:41 gradle and library question. so I am looking into using .aar format and have the the library in a separate project. Now the challenge is how to have the most upto date aar for the application without needing to manually manage the aar whenever I make a change in the library. Before the library module being in a dependency list, all I need to do is to rebuild the whole project. it seems that with aar approach, I have to copy over the freshely compiled aar to t Jul 14 22:27:07 aunn when you mean "using .aar format" you mean separating the builds so that your library is no longer build alongside your application? Jul 14 22:27:19 sarbs: correct Jul 14 22:28:05 the "best practice" way of doing that is to publish the aar to a maven repository, then. if it's proprietary, mavenCentral won't be the best option - an internal maven repo would be better Jul 14 22:28:19 gradle supports pulling from and publishing to maven repos quite well Jul 14 22:30:05 the "not so best" practice is to point the configurations at each other enough that your aar build spits out the binary to some predefined location, and the apk build knows to pull from it. that's essentially what maven does for you, however. Jul 14 22:30:36 hmm, quick question, how can I get the 'preview' effect for my notification? ie. like the one where hangouts msg body is being show scrolling on the status bar Jul 14 22:32:18 sarbs: I am not that familiar with maven. Having said that, isn't it the case that there is a maven cache? How would application know if there is a fresh build and pull the fresh build instead of using the cache? Jul 14 22:32:30 why would tapping a notification crash the app but not print a stack trace Jul 14 22:32:33 or at least an exception? Jul 14 22:33:49 aunn: magic... i honestly have no idea how it knows, but it does know. i imagine it's basically http caching with If-Modified-Since Jul 14 22:34:53 I see. thanks sarbs! it's good enough information for me to do my own due diligent. Thanks again! Jul 14 22:35:35 of course Jul 14 22:37:56 nvm me, .setTickerText was what I was looking for Jul 14 22:42:34 JakeWharton dunno if it's been brought up before but a neat addition to dagger would be the ability to override specific graph nodes on the fly - enabling stuff like mObjGraph.override(mock(AccountManager.class)); Jul 14 22:43:35 really just syntactic sugar around modules, i know, but i think it'd be neat Jul 14 22:49:54 stay away from syntactic sugar unless you want diabitlies Jul 14 22:54:53 anyone succeeded in using any uml plugin in android studio? Jul 14 23:00:44 g00s i`ll make two checkboxes, when i check the first i need to enable the second Jul 14 23:01:49 but this first checkbox will be clicked by user and sometimes will be activated programaticly Jul 14 23:02:21 programmatically* Jul 14 23:02:30 JakeWharton: Did you change the way you use RxJava after the "leaked" Activity issue was opened? Gladly this issue caught more attention recently. Jul 14 23:02:37 no Jul 14 23:02:48 Was it never a problem for you? Jul 14 23:02:58 didn't seem to be Jul 14 23:03:15 Suchorski what you may need to do is make mySetChecked () { unregister listener, set state, re-regsister listener } Jul 14 23:03:30 Do you users just not rotate as much or do you not bind to Activities? Jul 14 23:03:31 we certainly haven't seen anything as a result of it (OOMs, etc.) Jul 14 23:03:45 we never bind to activities and only one app supports rotation Jul 14 23:03:48 g00s i need to use the listener Jul 14 23:04:06 No rotation? zomg, insta-uninstall!!111 Jul 14 23:04:23 when i start the app the first checkbox will be checked or not programmatically Jul 14 23:04:35 kakazza wut? i never had a problem with rx leaking anything. of course, you have to know what you are doing :) Jul 14 23:04:58 there is great potential to leak stuff i suppose Jul 14 23:05:02 i need to enable the second checkbox if the first is checked programmatically Jul 14 23:05:25 i just need to know if it will be or i need to implement Jul 14 23:05:30 i have no resources to test it now Jul 14 23:05:43 that is why i`m asking and not testing Jul 14 23:06:12 g00s: https://github.com/Netflix/RxJava/issues/1292 Only 58 comments to catch up! Jul 14 23:09:19 kakazza hmm, reading Jul 14 23:15:14 kakazza is this a newish bug that just popped up in 0.19.x ? Jul 14 23:15:29 i don't think i've observed this myself, wonder what i am doing differently Jul 14 23:19:11 Reporter used 0.18.4 Jul 14 23:19:28 I think he was in here and Jake asked him to report it. Jul 14 23:20:21 hm. i have a tendency to do most of my rx stuff in services; and use BehaviorSubject as a bus between service / fragment Jul 14 23:20:45 but i don't really do any long running rx things in the fragments / activities Jul 14 23:21:28 "No idea if this change will help ... as per the ongoing discussion ... but I've merged in the change and will release in 0.19.7" O.o Jul 14 23:35:06 how can i access a partially shown row of a listview? Jul 14 23:36:43 g00s, any ideas? Jul 14 23:37:14 access a partially shown row of a listview ? Jul 14 23:37:50 the issue is that getChildAt will return null for a row at the edge of the screen whose bottom is cut off Jul 14 23:39:08 heya, whats news? Jul 14 23:39:16 why would you use getChildAt with an adapterView ? Jul 14 23:39:47 g00s, i want to cancel an animation on all currently shown rows Jul 14 23:39:59 oh, sorry. i don't know Jul 14 23:40:34 whomp: what are you doing? something like listView.getChildAt(listView.getChildCount() - 1)? Jul 14 23:40:43 jjnye, yeah Jul 14 23:41:01 Hey, maybe someone can help me with the google client api. I build the GoogleClientApi object with the builder, and then when i try to use client.connect() the onConnect listener is never called indicating that the client never actually connects (no matter how long I wait). There is no error in the console to guide me and I was wondering if other people experience similar problems? Jul 14 23:46:45 Anyone? GoogleApiClient? Jul 14 23:52:58 What are peoples thoughts on using the rest API for implementing leaderboards with Google Game Services? Jul 14 23:58:16 hey, im trying to set up adt for the first time, and extracting the .zip, even to my home directory, is not working due to filenames that are too long Jul 15 00:18:31 What interface does android use to determine what storage is available to it(as seen in Settings->Storage)? Jul 15 00:18:51 Hey, maybe someone can help me with the google client api. I build the GoogleClientApi object with the builder, and then when i try to use client.connect() the onConnect listener is never called indicating that the client never actually connects (no matter how long I wait). There is no error in the console to guide me and I was wondering if other people experience similar problems? Jul 15 00:18:56 You know, how does it know which block device is an sdcard, and which is USB OTG? Jul 15 00:22:19 anyone know of this file path too long error? seems to be only with the new version, but i cant seem to find any old complete packs Jul 15 00:27:36 How can I include .jar files from another project in an Android Library bundle (.aar) instead of them being listed as a dependency? Jul 15 00:38:28 does View.clearAnimation() call cancel() on animations or end()? Jul 15 00:49:57 neither Jul 15 00:50:42 ah, it calls end() via a hidden detach() method on the Animation object Jul 15 00:51:24 line 16801: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/view/View.java Jul 15 00:51:27 line 316: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/view/animation/Animation.java Jul 15 01:11:28 hey guys. i'm trying to run tests and am getting the error "Test running failed: Unable to find instrumentation info for: ComponentInfo{com.demoproject.test/com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner}". the instrumentation tag is in AndroidManifest.xml and i'm trying to use intellij to run them. any suggestions? Jul 15 01:12:00 answering my own question: if tthe new version of the sdk doesnt extract properly on windows, use 7zip Jul 15 01:16:27 capella http://arstechnica.com/tech-policy/2014/07/obama-administration-says-the-worlds-servers-are-ours/ Jul 15 01:17:09 wtf? Jul 15 01:17:26 team america - world police Jul 15 01:17:57 ya no, he'll lose in court again Jul 15 01:18:28 D9 i never saw that movie heh Jul 15 01:18:50 well if you like that article you should :P Jul 15 01:19:13 Hey Jul 15 01:19:16 hi Jul 15 01:19:26 So...when I try to run the NDK's compiler it just says "bash: no such file or directoy" Jul 15 01:19:45 But the funny thing is that i can do ls -al /path/to/compiler and it shows it, but then when I try to run it, "NO such file or directory" Jul 15 01:19:59 That's the NSA creeping up on us again ... and by "us" I mean everyone Jul 15 01:20:12 case 'terrorism Jul 15 01:20:18 *cause Jul 15 01:20:20 svm_invictvs maybe permissions, or need ia32 libs ? Jul 15 01:20:57 Oh no Jul 15 01:21:08 is storage_list.xml something you have to recompile to modify? Jul 15 01:21:15 let me see Jul 15 01:21:16 Because I can't find it on the actual device Jul 15 01:22:55 g00s: I bet .25c the Irish Supreme Court wins that round Jul 15 01:25:19 okay better question then Jul 15 01:25:34 In "The device-specific storage_list.xml configuration file, typically provided through a frameworks/base overlay", what is a frameworks/base overlay? Jul 15 01:26:37 should I develop for android L, android 4.4W, or android 4.4.2? Jul 15 01:26:52 capella i'd like the EU's 'right to forget' feature here :) Jul 15 01:26:54 witheld: an overlay in that context is a set of device-specific resources that override the default values provided by the framework Jul 15 01:27:17 I drink to forget ;) Jul 15 01:27:17 witheld: and yes, I believe it would be compiled as a resource into framework-res.apk Jul 15 01:27:53 JesusFreke: oh wait, so is it possible to just pull the resources out of an apk and then remake the apk? Jul 15 01:27:56 however, this is really more of an #android-root discussion :) Jul 15 01:28:05 yes. apktool :) Jul 15 01:28:05 ah, okay Jul 15 01:28:09 sorry Jul 15 01:28:15 Thank you Jul 15 01:28:47 I'm just trying to use an sdcard as the entire /data, and as you might imagine, everything exploded Jul 15 01:29:19 yeah, definitely #android-root material :) Jul 15 01:29:52 i don't understand this from https://github.com/google/iosched Jul 15 01:30:03 "We're updating the I/O app with material design and the Android L Developer Preview! Source code for the updated I/O app is coming soon but you can get a sneak peek .. " Jul 15 01:30:09 isn't it done already ? Jul 15 01:30:26 quick question; should I develop for android L, android 4.4W, or android 4.4.2? Jul 15 01:30:31 i thought what i saw was L-ish material-ish stuff Jul 15 01:31:30 g00s: https://github.com/google/iosched/blob/master/README.md Jul 15 01:31:36 that was 18 days ago :) Jul 15 01:32:29 JesusFrekei guess where i am confused "Download the I/O app APK for Android L Preview" Jul 15 01:32:38 I have created aar and used "compile files('...')" but I cannot reference resources from the aar in my application xml. it is giving "No resource found that matches the given name (at 'background' with value '@drawable/....')." error Jul 15 01:32:41 hehe, I almost put JesusFrekel Jul 15 01:33:18 JesusFreke "To run this APK, you will need a device/emulator set up with the Android L Preview system image." Jul 15 01:33:41 so , it sounds like they are updating it again, for L Jul 15 01:34:10 so I guess the one i had was Material stuff, as a preview Jul 15 01:34:26 no, ugh nm Jul 15 01:35:13 I have other aar which does not get referenced for the resources and they work fine. Jul 15 01:35:54 does aar only allow to package the resources for its own usage but not for external referencing ? Jul 15 01:37:09 anyone know of a lib that monitors crashes but doesn't need modifications to AndroidManifest.xml or an Application subclass? Jul 15 01:37:22 Crashlytics is close, but requires an API key in AndroidManifest.xml Jul 15 01:37:35 ACRA requires a subclass of Application Jul 15 01:44:33 How can I include .jar files from another project in an Android Library bundle (.aar) instead of them being listed as a dependency? Jul 15 01:46:45 MohammadAG, why are either a restriction? Jul 15 01:47:27 pfn I'm using Xposed Jul 15 01:47:30 and Acra doesn't really require an application subclass Jul 15 01:47:52 just init on getApplicationContext Jul 15 01:48:20 and you can configure the reporter manually instead of using the annotation Jul 15 01:48:31 hmm Jul 15 01:48:40 I'll see if what I did works Jul 15 01:49:09 and why do so many people use xposed seems like such a waste of effort Jul 15 01:49:56 pfn how come? Jul 15 01:50:13 I see using smali as a waste of effort Jul 15 01:50:20 (legal issues aside) Jul 15 02:07:29 what legal issues? Jul 15 02:22:52 Leeds posting modified APKs Jul 15 02:23:10 I realize most XDA users don't give a shit though Jul 15 02:38:19 capella http://www.forbes.com/sites/ianmorris/2014/07/14/googles-chrome-web-browser-is-killing-your-laptop-battery/ Jul 15 02:38:33 although chrome kills my laptop battery on mac too Jul 15 02:39:16 heh - FF Rules Jul 15 02:42:34 JesusFreke can you play flaming bagpipes when riding your unicycle ? http://digg.com/video/monty-python-and-the-holy-grail-performed-with-flaming-bagpipes-and-a-unicycle Jul 15 02:43:09 g00s: nope, but I know of that guy :) Jul 15 02:43:22 the unipiper Jul 15 02:43:29 hah Jul 15 02:43:35 I'm more of the flaming didgeridoo on a unicycle type Jul 15 02:45:30 if its got fire, +1 Jul 15 02:45:35 lasers, +2 Jul 15 02:46:50 * capella likes Jul 15 02:51:49 g00s: well, I do have an arctic blue laser that I could throw on a didgeridoo real quick :p Jul 15 02:52:29 JesusFreke would green light up in fog ? that would be cool ! Jul 15 02:52:41 maybe red would too, not sure Jul 15 02:52:44 oh, it's plenty visible without fog **** ENDING LOGGING AT Tue Jul 15 02:59:59 2014