**** BEGIN LOGGING AT Tue Sep 02 02:59:59 2014 Sep 02 03:02:58 can i run a scriptable web server in my app? Sep 02 03:03:00 aftermath2: watch video Sep 02 03:03:22 how can I list dependency tree in gradle ? Sep 02 03:03:25 like maven tree ? Sep 02 03:11:16 there should be a page "What is Polymer?" Sep 02 03:11:48 all i saw was some dushy video of a presentation at google Sep 02 03:11:58 http://www.polymer-project.org/ Sep 02 03:23:25 looking Sep 02 03:25:51 i have a requirement to have complex data editing and viewing controls and my app needs to work on the web and on mobile like android/ios... I can make a native app, but I dont want to re-vuild all the controls... is polymer for that? Sep 02 03:25:59 to have different outputs of a control Sep 02 03:26:05 one for web, one for android, etc.. Sep 02 03:26:27 maybe fone for java for old phones Sep 02 03:26:30 one for * Sep 02 03:26:38 #define old phones Sep 02 03:26:44 dont develop for android 2 Sep 02 03:26:47 please Sep 02 03:26:54 just old phones that have their own OS Sep 02 03:26:57 like Nokia Sep 02 03:27:06 they run java apps Sep 02 03:27:08 dont know if anyone uses it... Sep 02 03:27:25 or blackberry Sep 02 03:30:21 aftermath2 does sound more and more like just do a mobile website and give them the link Sep 02 03:30:38 that would manage expectations Sep 02 03:30:58 StingRay_: it needs to work offline Sep 02 03:31:11 thats why i want to make a native app with a webview Sep 02 03:31:24 and host the html files and store the html in the apps assets Sep 02 03:31:26 native app != webview Sep 02 03:31:44 yes but anyway, that wont work if they are offline Sep 02 03:32:05 native app with a webview is still a native app Sep 02 03:32:09 no Sep 02 03:32:11 its nt Sep 02 03:32:20 yes it is Sep 02 03:32:26 is a webview a native control? Sep 02 03:32:33 dont argue this Sep 02 03:32:45 an app with only a webview that displays html trying to look like native ui Sep 02 03:32:48 isnt a native app Sep 02 03:32:52 native is UI,Functions etc all by the system Sep 02 03:33:38 anyway, StingRay_ that wouldn't work if they are offline Sep 02 03:34:08 aftermath2 just sounds like with what you want, having a non-native UI structure is going to fail from a user standpoint Sep 02 03:34:48 like how? Sep 02 03:35:06 nobody will want to use your app Sep 02 03:35:40 aftermath2 well I have yet to find a webapp that is anyting other than a simple page of nothingness that I would consider keeping Sep 02 03:35:45 I get what you want, but hearing more, I would go native on all platforms and do a simply layout/tag/property structure that can be shared Sep 02 03:36:15 standards like JSON, HTML, XML are quite well supported on all platforms Sep 02 03:36:53 but you dont have to use a webview, you can create native views that will work better from the info within these formats Sep 02 03:36:57 just a thought Sep 02 03:37:01 * StingRay_ goes for coffee Sep 02 03:37:28 StingRay_: can I use html controls in a native app? Sep 02 03:38:03 like I have a html control that shows heirarchy of people (a geneology) and I don't want to re-code it for diff platforms Sep 02 03:38:12 right now its just html and havascript Sep 02 03:38:22 specifically its made with AngularJS templates Sep 02 03:38:33 javascript * Sep 02 03:38:34 aftermath2: who is your targeted userbase Sep 02 03:39:13 desmin88: users of my web site (the site is actually a web app.. and I want to bring that web app offline into the users phone so they can use it offline and then sync their data when they are online again) Sep 02 03:39:22 yeah Sep 02 03:39:24 so I just want to copy all the html/javascript into a app Sep 02 03:39:25 nobody will like it Sep 02 03:39:26 just saying Sep 02 03:39:30 and show it in a webview Sep 02 03:40:05 why because it will be slow? Sep 02 03:40:06 aftermath2: yes you can Sep 02 03:40:26 because it wont be native Sep 02 03:40:41 user won't even notice Sep 02 03:40:48 with carefully made html Sep 02 03:40:54 yes Sep 02 03:40:55 they will Sep 02 03:41:08 with html and javascript... it will be a single page app Sep 02 03:41:11 no page loading or anything Sep 02 03:41:17 users will notice Sep 02 03:41:18 just loads the main page once Sep 02 03:41:20 and dislike y our app for it Sep 02 03:42:22 gordon_: hoe? Sep 02 03:42:24 gordon_: how? Sep 02 03:42:28 polymer? Sep 02 03:42:32 nah Sep 02 03:42:37 just checked Sep 02 03:42:44 you need chrome-webview for polymer Sep 02 03:43:38 which is not so common ;) Sep 02 03:44:13 seems like they use shadow-dom Sep 02 03:50:32 https://groups.google.com/forum/#!topic/polymer-dev/dVXnc16U5to Sep 02 03:51:30 seems interesting Sep 02 03:58:12 im not very interested in ploymer Sep 02 03:59:21 probaby wind up like YUI Sep 02 03:59:34 excapt they will call it spring cleaning, ha ! Sep 02 04:01:23 i have windows xp running in vmware on my macbook (with OSX running as main OS) just so I can use Firefox in XP.. Sep 02 04:01:36 so I can get not anti-aliased fonts Sep 02 04:01:40 i hate font smoothing Sep 02 04:02:03 it should be called headache-causing-nausiating-font-smoothing Sep 02 04:02:34 seems like once in a while somebody has a massive problem with it, but usually turns out to be some font configuration issue Sep 02 04:02:53 but if subpixel AA is working seems pretty smooth to me :| Sep 02 04:03:03 greyscale, pretty ugly yeah Sep 02 04:03:10 at least on low dpi screens Sep 02 04:03:26 i dont like any type of font rendering where there's half-opaque pixels Sep 02 04:03:42 makes my eyes guess "is there a pixel there or not??" Sep 02 04:03:46 also the webfonts AA seems kinda weird sometimes, like its not hinted correctly Sep 02 04:03:50 just uber annoying Sep 02 04:05:05 #mac_problems Sep 02 04:05:50 well its not a problem anymore Sep 02 04:06:06 it was until i found out its impossible to disable it in mac Sep 02 04:06:33 thats the only thing XP can do right Sep 02 04:06:40 render font Sep 02 04:06:43 aftermath2 you decided the way to go with your app ? Sep 02 04:07:01 StingRay_: I'm going to try to use webview Sep 02 04:07:16 for now Sep 02 04:07:24 probably best bet to head over to something like #phonegap then, they do more webstuff Sep 02 04:07:33 or better to get answers for things you may need Sep 02 04:09:12 I'd love to see app on old nokia phone with phonegap :D Sep 02 04:09:26 it must be super fast Sep 02 04:09:31 so fast Sep 02 04:20:49 crap, seem to have run into https://code.google.com/p/android/issues/detail?id=61639 Sep 02 04:21:00 weird though it worked all this time and now stopped working with 0.8 Sep 02 04:23:02 maybe i will use something called Ionix Sep 02 04:23:03 Ionic Sep 02 04:25:09 g00s: java.lang.RuntimeException: Stub! Sep 02 04:26:11 hm, so i don't understand this ... main.java.srcDir += "${buildDir}/source-generated" doesn't work any more ? Sep 02 04:26:17 i thought this was very basic DSL Sep 02 04:26:29 seems like now i have to use variant.addJavaSourceFoldersToModel(sourceFolder1, sourceFolders2,...) Sep 02 04:28:15 what build tool is that Sep 02 04:28:27 gradle ? Sep 02 04:28:39 ah yeah, gradle Sep 02 04:29:11 ah yeah, gradle Sep 02 04:29:13 damn sorry Sep 02 04:40:49 does that freedom thing still work ? Sep 02 04:41:40 the free in app purchases Sep 02 04:42:08 huh, guess I'll try… can hardly ban me from my own app :) Sep 02 04:47:19 hello. anyone here doing ibeacon app? how was the experience on android os? Sep 02 04:48:47 i'm doing one for my company. i hope the sdk are all ready for android. i'm using Radius Network's SDK for the ibeacon library. Sep 02 04:49:25 not sure if estimote's are better but I'm gonna try both anyways. Sep 02 04:49:47 br0mahn it would be good to make sure they fixed that BT service crashing bug Sep 02 04:49:56 the 1900 limit one Sep 02 04:50:54 alright thanks for the info g00s. So far I don't have any issues cuz i just started writing it. Sep 02 04:50:58 i /think/ its fixed in 4.4.4, but not < 4.4.2. And you can't exclude (using minSdk) 4.4.2 so... Sep 02 04:51:09 ahh i see Sep 02 04:52:00 br0mahn this one https://code.google.com/p/android/issues/detail?id=67272 Sep 02 04:52:30 gimbal / radius / ibeacon do the same thing Sep 02 04:52:46 i think there is a blog on radius website explainging a hack Sep 02 04:52:52 good luck Sep 02 04:53:11 okay thanks! Sep 02 04:53:51 ugh, I hate the requirement for no arg fragment ctors Sep 02 05:08:43 Is there a way to slide an actionbar logo to the left while a sliding drawer is opening? Sep 02 05:09:15 Can I force renderscript to use the GPU? or does it determine by some algorithm that it should do so itself? Sep 02 05:12:35 Can I determine that a device / hardware supports GPU renderscript or not? Sep 02 05:13:22 renderscript always gpus? Sep 02 05:14:10 Got it working. nevermind. Sep 02 05:15:33 lasserix: no Sep 02 05:15:49 lasserix: from my tests it chooses to render on the CPU for some devices Sep 02 05:46:02 Nexus 10 is the first device to support Renderscript Compute, aka GPU support Sep 02 05:46:13 starting from Android 4.2 Sep 02 05:48:36 Hey guys I am doing if statement and I want to use one string to give output on the if statement, I started method like this public void test (String str){ if(tru){ str = "yes";}else{str = "no";}} and I was wondering how can I print the output from that method? hopefully this made sense. Sep 02 05:48:55 CodePulsar i thought 10 meant 10" but I think it means 10 sold Sep 02 05:49:25 Demon_Jester basic java, string.equals() Sep 02 05:49:40 g00s: screen inches but you don't refer to the inches when you say the device name :-) Sep 02 05:49:59 string.equals()? so.. str.equals() in my case? Sep 02 05:50:04 Demon_Jester thats just basic java and android, so 1. read the docs, 2. done paste in channel 3. do as g00s said and use Log class Sep 02 05:50:11 You don't say "Nexus ten inches" you say "Nexus ten" Sep 02 05:50:43 man I hope the next nexus (flounder) has a better aspect ratio than the n7 Sep 02 05:51:16 4:3 > 16:9 Sep 02 05:53:11 * StingRay_ wishes someone would do a 4:3 with 1920x1440 or 3840x2880 cause they just dont seem to get it Sep 02 05:53:34 everyone does odd res or odd aspects Sep 02 05:53:48 no point watching HD films on my tablets :( Sep 02 06:02:33 Has anyone used Renderscript through the Android NDK? I see that the Renderscript.h and the other headers are only present in android-19 but not on older platforms, i.e only in android-ndk-r10/platforms/android-19/arch-arm/usr/include/rs/ but not in anything below 19 API level. And according to https://developer.android.com/about/versions/kitkat.html#44-renderscript I can use Renderscript through the NDK on any device running Android 2 Sep 02 06:02:33 .2 or higher. But if I don't have the headers on those platforms HOW can I use Renderscript when targeting anything below Android 19 API level? Should I just copy the headers from from android-ndk-r10/platforms/android-19/arch-arm/usr/include/rs to all the platforms I want to target? Sep 02 06:03:56 From what I see the libRSSupport.so has all the symbols for linking but the compiler needs the headers Sep 02 06:21:12 ugh how long has the gradle plugin been in development Sep 02 06:21:52 hey g00s how was your day? Sep 02 06:21:56 just came into work Sep 02 06:22:45 hey thepoosh , ugh for some reason my builds stopped working with the last update of AS or the gradle-plugin - not sure which , i think I updated them both at the same time Sep 02 06:23:04 arrrrg Sep 02 06:23:09 aha, had to add android.libraryVariants.all { variant -> variant.addJavaSourceFoldersToModel(outputDir) } Sep 02 06:24:03 its cool when it works :| but sometimes just feels so brittle Sep 02 06:24:43 the reason why i don't like that, is that its just to satisfy AS. the command line builds were working just fine before that Sep 02 06:24:50 why the fuck does my build have to know about AS ? Sep 02 06:25:15 we only build gradle from the commandline Sep 02 06:25:21 we still use eclipse here Sep 02 06:25:27 im using expandablelistview to show parent objects and their children objects. i dont really neeed the list to be expandable, as i want them always to show and i dont want the expand icons. is there something else i can use? Sep 02 06:26:12 use a listview? Sep 02 06:26:16 thepoosh only way one would know about variant.addJavaSourceFoldersToModel() is to notice the release notes, its not even in the docs Sep 02 06:26:41 ive read its not advisable to nest a listview inside a list item Sep 02 06:26:45 I also feel like gradle is one of the most unfriendly plugins there is Sep 02 06:26:47 i think they have had enough time to get this stuff done Sep 02 06:27:00 it's either read the entire fucking manual or go fuck yourself Sep 02 06:27:35 aaearon: instead of the expandablelistview just use a regular listview with a custom item layout Sep 02 06:27:44 yeah ... i feel that way too; i hate fucking with this stuff. it usually just works (hopefully) but when it doesn't - lots of shit to know, big API surface area, groovy, gradle, gradle plugin, etc Sep 02 06:27:49 well, its nice when it works Sep 02 06:27:50 listen to him, he's a wise man Sep 02 06:28:05 that is true Sep 02 06:28:16 the gradle build script made my life so much better Sep 02 06:28:28 however, I have no desire to change anything now Sep 02 06:28:39 so I might be doing some stuff very, very wrong Sep 02 06:29:59 anyone know in AS, what a blue (source) folder with a propeller means O.o Sep 02 06:30:05 wtf is the propeller Sep 02 06:30:40 lol Sep 02 06:31:08 g00s: I imported our projects to AS, and the plugin told me it cannot run because something is outdated Sep 02 06:31:17 but it fucking works in the command line! Sep 02 06:31:33 oh maybe you need the correct build tools Sep 02 06:33:42 i'm looking through an IKEA catalog - ican't believe most of these photos are CG Sep 02 06:33:47 so they aren't photos :) Sep 02 06:34:16 g00s been that way for ages now Sep 02 06:34:37 i just read the article last week Sep 02 06:35:04 maybe, ages since they started but now its like 80% of the pictures or something like that Sep 02 06:35:13 jewellery did it first …as a CG/Catalog Type sale before the 1st is even rolled Sep 02 06:35:15 kitchen shots are amazing Sep 02 06:35:28 then car manufacturers Sep 02 06:35:33 and now everyone Sep 02 06:35:34 :) Sep 02 06:36:15 i'd like to learn blender. thats free so i can afford it :) Sep 02 06:36:27 blender is not all that good Sep 02 06:36:34 special for rendered output Sep 02 06:36:34 yeah i know, but its good for free Sep 02 06:36:51 not like i'm going to buy maya Sep 02 06:37:08 * StingRay_ looks at his 10 license usb key Sep 02 06:37:10 :) Sep 02 06:37:24 actually think its 12…cant remember Sep 02 06:37:50 hey, is autodesk getting into photo effects? i noticed they had an iOS app called pixlr or something Sep 02 06:38:03 always been in it Sep 02 06:38:17 you watch movies right ? :) Sep 02 06:38:19 for some reason never noticed; just their cad / 3d stuff Sep 02 06:38:44 if you do, you see autodesk ™ photo effects :) Sep 02 06:38:58 i meant, photography stuff like Topaz, etc Sep 02 06:39:16 Nik, etc Sep 02 06:39:30 well you are just talking about 2d filters there Sep 02 06:39:38 tone mapping etc Sep 02 06:39:51 so yes, they have always had strong libs for such things Sep 02 06:40:10 i wonder how much longer Google is going to hold onto Nik Collection Sep 02 06:40:17 thats so ... not Google stuff Sep 02 06:56:38 dont know about blender Sep 02 06:56:50 but from what I've heard sometimes they use blender and sometimes maya Sep 02 06:56:54 depends on what they need to do Sep 02 06:57:12 erm, the two are night and day Sep 02 06:57:20 and who is "they" ? Sep 02 06:57:39 they, y'know, like 'them' Sep 02 06:57:51 :) Sep 02 06:59:41 they -> people in CG Sep 02 07:00:23 gordon_ watch out for StingRay_ , he's not a developer Sep 02 07:00:40 he writes php ? Sep 02 07:00:47 well, haha Sep 02 07:00:49 gordon_ that is a very odd statement…people in CG Sep 02 07:01:19 thats like saying people that edit photos Sep 02 07:01:19 I told you some time ago Sep 02 07:01:25 I can be *odd* dont care Sep 02 07:01:29 use either MS paint or Photoshop Sep 02 07:01:31 :) Sep 02 07:01:34 no Sep 02 07:01:38 everyone uses photoshop Sep 02 07:01:45 because they want to be *pro* Sep 02 07:01:49 ok erm, gimp then Sep 02 07:01:55 better Sep 02 07:02:07 anyways the statement was ….crazy tis all Sep 02 07:02:22 sorry for being crazy Sep 02 07:02:29 cause blender is not to maya what gimp is to photoshop :) Sep 02 07:02:31 didnt take my drugs today Sep 02 07:03:17 hi, i have to open a ballon tip when user select an item in ListView. how can i know when i have open top or bottom item. There is an example https://www.dropbox.com/s/2e9p2i53wlofgm0/context.png?dl=0 Sep 02 07:03:42 oh noes, overwhelming CG talk in here! Sep 02 07:04:06 devuser space ? most space = where you should open ? Sep 02 07:04:18 ravilov: not at all Sep 02 07:04:34 StingRay_: are you politician ? Sep 02 07:04:40 sounds like one Sep 02 07:04:45 ?? Sep 02 07:04:46 really ? Sep 02 07:04:46 how can i know when i have open top or bottom item Sep 02 07:05:07 Hi Sep 02 07:05:08 StingRay_, i don't understand.. space? what space? Sep 02 07:05:09 ravilov: that was just few sentences, better to drop it Sep 02 07:05:14 lasserix I think he means open above or below the clicked item Sep 02 07:05:17 how can i know when i have open top or bottom item what do you mean? Sep 02 07:05:27 lasserix or based on last comment,.. no then :) Sep 02 07:05:43 i have 5,6 item in listview, every item can have 4,5 square Sep 02 07:05:54 devuser: pick a convention and stick to it Sep 02 07:05:56 don't switch Sep 02 07:05:57 I have yet to see someone in here that sounds like a politician Sep 02 07:06:08 ipinionated techie hothead, maybe Sep 02 07:06:08 I'm trying to use Parse as a backend to my app. In its installation process it asked me to put a Parse.initialize code in the onCreate method of my Application class, what is the Application class ? where is it situated? Sep 02 07:06:15 but a politician... Sep 02 07:06:24 opinionated* Sep 02 07:06:29 shmoon_: you make one Sep 02 07:06:34 how can i know when item is bottom or top in scroller Sep 02 07:06:50 shmoon_: like an activity Sep 02 07:06:54 shmoon_: it would be your main activity Sep 02 07:06:58 ravilov oh on CG I probably am opinionated, comes with 20 years doing it Sep 02 07:07:11 so see what you mean, but would not call that political Sep 02 07:07:12 lasserix: hm, how any article on that in the docs? Sep 02 07:07:17 shmoon_: look at the first two sections, essentially what you need to do http://www.intertech.com/Blog/androids-application-class/ Sep 02 07:07:19 shmooz: oh MainActiviy#onCreate ? Sep 02 07:07:24 then add the parse initialize clode to the oncreate Sep 02 07:07:34 shmoon_: yes Sep 02 07:07:44 StingRay_, that was more of a general statement, aimed at no one in particular ;) Sep 02 07:07:45 lasserix: ok checking Sep 02 07:08:00 (and at the same time, at everyone :p ) Sep 02 07:08:05 how can i know when item is bottom or top in scroller what does this mean? like relative to the window? Sep 02 07:08:40 StingRay_, I am no exception, I can be very opinionated at times Sep 02 07:09:00 relative listview Sep 02 07:09:41 devuser: your description is totally useless Sep 02 07:09:47 what do you want to happen? Sep 02 07:10:36 sorry... i can speak a bad english Sep 02 07:10:45 i 'd like avoid this https://www.dropbox.com/s/icbf6cxvttm1g8k/context2.png?dl=0 Sep 02 07:10:59 so Sep 02 07:11:05 you want to place the bubble somewhere Sep 02 07:11:16 and your question is, how to figure out where to put the bubble? Sep 02 07:11:22 yes Sep 02 07:11:26 so Sep 02 07:11:28 i would say Sep 02 07:11:35 pick one way to placing the bubble and ONLY use it Sep 02 07:11:38 do not confuse the user Sep 02 07:11:38 user select a square and i have open near square Sep 02 07:11:41 so Sep 02 07:11:49 i would recomend, ALWAYS put the bubble above the square Sep 02 07:12:02 and therefore you must add some padding at the top Sep 02 07:12:13 so the first row will always have enough room for the bubble Sep 02 07:12:30 ok but square in bottom ? Sep 02 07:12:37 just put it above it Sep 02 07:12:41 like every other square Sep 02 07:13:12 how can i know when i put above square near end scroll? Sep 02 07:13:29 always put above Sep 02 07:13:40 when they click one that is near the edge Sep 02 07:13:46 just scroll the scrollview down Sep 02 07:13:57 the same amount of height as the bubble Sep 02 07:14:25 i can't do.... Sep 02 07:14:38 devuser: smoothScrolltoPosition() will make the listitem stay within screen boundaries Sep 02 07:15:29 IMHO it doesn't really matter where the bubble is, that's why it's got that pointy taily thingy, it is not likely to confuse users; bubbles in comics also appear everywhere and yet it's not confusing Sep 02 07:15:39 i can scroll automatically ListView Sep 02 07:15:55 ravilov: no that is bad advice Sep 02 07:15:57 devuser: list.getChildAt(X).getTop(); will give you the top position of the itex X Sep 02 07:16:14 that is like saying you can arbitrarily switch OKAY and CANCEL positions and it won't be confusing or irratate your user Sep 02 07:16:15 ah ok.. Sep 02 07:17:32 the bubble could appear in different locations as long as it is consistent, (ie, at top it goes below at side it goes in, at bottom above anywhere else above or whatever,but then that's very arbiratiry and just stinks of bad UX) Sep 02 07:18:03 better to stick to one convention that a user can rely on espicially if they interact with this bubble thing often Sep 02 07:18:05 lasserix, no, not quite the same really; not to mention google has done exactly that (switch ok and cancel on >=11 vs. before, and they got away with it ;) Sep 02 07:18:17 but yes, I do see your point - consistency Sep 02 07:18:21 lasserix, i ageee but UX is a copy of iOS ux :( Sep 02 07:18:30 yeah and if you notice not only users but devs complain Sep 02 07:20:08 ahh yeah that's when you just make it and if the boss says no sorry must be like iOS you just go fucking idiot when you go back to your office, sigh Sep 02 07:20:12 anyways ;p Sep 02 07:20:34 ehhe Sep 02 07:20:56 hang on, havent google just set all their new guidelines inline with ios ? :) Sep 02 07:21:37 so really as a design statement there isn't that much between Sep 02 07:22:32 nah thats when you go fuck the standard it sucks but you make it anyways then you have a preference in your preferences activity called "smart UI mode" where you implement what actually makes sense and notice how many people comment about your app how they love the smart UI mode Sep 02 07:22:51 *option Sep 02 07:22:59 and that's how we can evolve ;p Sep 02 07:23:16 instead of making more and more grandiose fart apps made of imitation plastic Sep 02 07:23:20 anyways i should go to sleep Sep 02 07:23:23 adios! Sep 02 07:27:37 this is driving me fucking nuts! Sep 02 07:28:01 if i have only variant.addJavaSourceFoldersToModel(sourceFolder), this makes AS happy ... Sep 02 07:28:17 but i still need to add it to the sourceSet, which neither the docs or examples mention Sep 02 07:28:35 and its stupid to boot Sep 02 07:30:20 i have a library I want to use for an android app Sep 02 07:30:27 namely, zxing Sep 02 07:30:29 g00s, <3 gradle right :P Sep 02 07:30:44 the documentation is a disgrace for a tech company Sep 02 07:30:45 how do I do this? I've got to compile it to a .jar? Sep 02 07:31:01 or can I drop the repo inside my project and include it as part of the build? Sep 02 07:31:02 Mavrik yes, i agree with you - i think they should fire the whole tools team Sep 02 07:31:35 well, the leadership anyhow Sep 02 07:31:43 sorry Xav Sep 02 07:34:55 RustyShackleford have you tried google ? Sep 02 07:35:20 seems like it would be something that has been asked and done before ? maybe :) Sep 02 07:35:54 RustyShackleford, which build system is your app using? how is the library packaged? Sep 02 07:36:10 android studio, so gradle i guess? Sep 02 07:36:19 i've found instructions for eclipse Sep 02 07:36:50 if you use gradle then check if the library is available on maven central Sep 02 07:36:59 and just add dependency, no need to download anything Sep 02 08:15:22 does retrofit work with espresso ? Sep 02 08:27:44 Should i make a bot that can provide quick references to the android design docs and java docs? Sep 02 08:27:52 referencing * Sep 02 08:28:05 and perhaps useful libraries, tutorials, etc? Sep 02 08:41:24 Kevel: lol Sep 02 08:43:00 honestly Kevel not a bad idea Sep 02 08:49:39 Hey there. I'm trying to port an application from iOS to android, and therefore i need to do some animation. Using the property animation framework i didn't find a solution for a specific requirement which the CAReplicatorLayer solves on iOS. Sep 02 08:50:42 what animation are you trying to do? Sep 02 08:50:50 Kevel: you'll need to talk to an op. take a look at the topic :) Sep 02 08:51:18 (re: the bot) Sep 02 08:51:37 There are a lot of rectangles which need to be drawn, (iOS: http://o.hella.info/frontale2014/img/screens/screen_04.png) and i want the animation to translate those rectangles downwards, for example Sep 02 08:52:13 is there something similar to the CAReplicationLayer on android? Sep 02 08:52:40 JesusFreke: im sure it shouldn't be a problem Sep 02 08:52:46 ill pm him - thanks Sep 02 08:53:33 Yeah, I'm not sure who made that policy originally, or the reasoning behind it Sep 02 08:54:18 I'm looking into NFC in android. Is it true that you cannot make an android phone act like a NFC tag? Sep 02 08:54:36 but it's been that way since I've been in the chan (somewhere around the g1 days) Sep 02 08:54:48 who even is the op for this channel Sep 02 08:55:32 I'm having a mediaplayer that accepts streams. Now it works with online URL's, but when I want to use my own mamp localhost it fails. Anyone an idea? Sep 02 08:57:24 Click66 find out why it fails :) Sep 02 08:57:41 StingRay_: the prepare fails. Sep 02 09:03:00 well, I would suggest investigating it Sep 02 09:03:11 seems like you have no info currently Sep 02 09:03:19 so thats not a good starting point I dont think Sep 02 09:08:29 with Picasso - is it possible to make it retry with a downsampling load if OutOfMemory so we get _something_? Sep 02 09:10:40 android is not a terrible platform to develop for Sep 02 09:10:52 It could be worse... Sep 02 09:10:53 the documentation is pretty great actually Sep 02 09:11:05 and the GUI tools are pretty to use too Sep 02 09:11:24 *pretty easy Sep 02 09:18:46 Hello everyone. The documentation says: "When you build an app that uses the RenderScript through the NDK, you can distribute it to any device running Android 2.2 or or higher, just like with the RenderScript support library available for framework APIs.", but the C++ include files for RenderScript are only available in API 19 and higher. How can I use the RenderScript C++ API when my APP_PLATFORM := android-9 in Application.mk? Sep 02 09:19:48 Bladerunner: there is a renderscript support library called render-v8 I believe Sep 02 09:21:03 I use "renderscript-v8.jar" when I want to access RenderScript through Java Sep 02 09:21:12 Bladerunner: sorry that was for balzss Sep 02 09:22:35 but I want to use RenderScript API's only from the native side, without import android.support.v8.renderscript APIs.. Sep 02 09:23:16 NDK is not as supported when it comes to backward compatibility Sep 02 09:25:37 balzss: here is a similar issue https://code.google.com/p/android/issues/detail?id=64110 seems it was solved with build tools 19.0.2? Sep 02 09:28:25 I saw that issue, but for me is unclear how they compiled for Android 4.3, because the RenderScript.h include file is only for platform-19 in ndk Sep 02 09:29:25 what I tried so far is that I've modified the HelloComputeNDK sample to use APP_PLATFORM := android-9 and I've linked with libRScpp_static.a (which is in android-ndk-r10/platforms/android-19/arch-arm/usr/lib/rs) Sep 02 09:29:29 and it worked Sep 02 09:29:55 but I don't know if this is a hack of can be used in an app for the market? Sep 02 09:30:35 *or Sep 02 09:31:29 balzss: I've only used renderscript from java so I can't say Sep 02 09:32:43 ok , maybe somebody knows the answer :) Sep 02 09:39:29 wow gradle is awesome Sep 02 09:39:50 or maven? I'm not totally sure but this library just installed itself Sep 02 09:40:10 sounds like good idea from 90's Sep 02 09:40:35 isnt that what dependency managers do? Sep 02 09:40:49 shhhh Sep 02 09:40:52 dont tell anyone Sep 02 09:41:12 i've spent way too long compiling C++ libraries for Visual Studio Sep 02 09:41:20 can someone explain to me the formatting of the output from adb install? Sep 02 09:41:30 i really appreciate when libraries install easily haha Sep 02 09:41:39 specifically: I'm trying to use it in a script, but I can't match the last line Sep 02 09:41:43 RustyShackleford: well... you should use linux then ;) Sep 02 09:42:05 and cmake Sep 02 09:42:32 i eventually found cmake. it can still be frustrating Sep 02 09:42:54 and linux doesn't have visual studio Sep 02 09:42:59 when I try to delimit it (to spot errant whitespace), a single end delimeter is ignored, and more than that WRAP and overwrite the beginning of the line Sep 02 09:44:18 eg result="$(adb install ${apk} 2>1 | tail -1)" Sep 02 09:44:52 echo ${result} -> Failure [INSTALL_FAILED_ALREADY_EXISTS] Sep 02 09:45:11 echo ${result}I -> Failure [INSTALL_FAILED_ALREADY_EXISTS] Sep 02 09:47:02 my bad. that is actually Sep 02 09:47:05 echo ${result}I -> Iailure [INSTALL_FAILED_ALREADY_EXISTS] Sep 02 09:47:39 adding more delimeters (to the end) just overwrites more Sep 02 09:48:42 karrboloaded: does it give a return code? Sep 02 09:48:52 if i add more than the length of the string, it goes to the next line Sep 02 09:48:57 karrboloaded, you have a trailing CR before the LF Sep 02 09:49:01 thta's what's causing this Sep 02 09:49:11 Leeds, as far as I can tell, it returns 0 for everything. that's why i'm making a script, basically :) Sep 02 09:49:20 pity Sep 02 09:49:29 ravilov: thanks! how do i get rid of that? Sep 02 09:50:02 i can ues ${result%...} Sep 02 09:50:07 depends on your use case, you didn't even specify what OS you're on, let alone what interpreter you're using for your script... so how am I supposed to help? :) Sep 02 09:50:18 but i don't know what to match. what's the escape char for CR? Sep 02 09:50:33 in un*x shell a common workaround is "command | tr -d '\r'" Sep 02 09:50:42 ravilov: fair enough. bash on linux. using mate-terminal, fwiw :P Sep 02 09:51:09 you should also ALWAYS quote any shell vars Sep 02 09:51:24 eg. echo "${var}" instead of echo ${var} Sep 02 09:52:03 hi all Sep 02 09:52:37 ravilov: thanks. i have done that in the script Sep 02 09:52:47 I would like to extract the linux kernel running on my Samsung device. Does anyone have any idea? Sep 02 09:53:10 why would you ask that in here? Sep 02 09:53:19 does that have something to do with app development? Sep 02 09:54:22 Yes , but according to your question, I thing that, it's not the good place .... :( Sep 02 09:54:36 correct Sep 02 09:56:12 but, I'm tryin to write a guideline for secure andrdoid app developpement. Does this paper already exist? Sep 02 09:56:25 no idea Sep 02 09:57:14 Do you have an idea to this purpose? Sep 02 09:57:15 what does the kernel running on one particular device have to do with writing secure apps running N levels above that kernel? Sep 02 10:01:45 kr4sh: are you aware of this: https://whispersystems.org/ Sep 02 10:02:11 i don't know if they've published such a guide, but they're working on android security problems Sep 02 10:10:33 with the code here http://pastebin.com/siVJeSCW due to list item recycling, i am getting dynamic textviews that i shouldnt after i scroll up and down. how should i handle this? Sep 02 10:11:41 aaearon you have had this answered Sep 02 10:11:48 dont create them if the exist Sep 02 10:11:55 of ffs, stepping through this code and somehow it steps into an if, goes through a few statements and then goes to the else statement :( :( Sep 02 10:13:04 aaearon but to save you another day and about 5 minutes of learning … DONT create if convertView != null Sep 02 10:13:18 any good video tutorials, free or paid, that explain how databases work with android? Sep 02 10:13:52 StingRay_: I found the problem. I'm so stupid today. I was using localhost as url on an emulator. LOL :p Sep 02 10:14:10 LighterFluid: I don't know for sure, but check out Coursera Sep 02 10:14:24 Click66 glad you solved it :) Sep 02 10:15:18 ah shit StingRay_ thanks man. it didnt click until you said the answer and i changed the code and saw the result Sep 02 10:15:42 aaearon want me to guess your next question ? Sep 02 10:15:53 sure :P Sep 02 10:16:01 im not sure if ive gotten that fair however haha Sep 02 10:16:20 how do I access textView that are dynamically created in my getView (if the view is recycled) Sep 02 10:16:22 :) Sep 02 10:17:22 Hi, if scanning for AccessPoints in the Background with AlarmManager, which is an appropriate interval to not use too much battery? I would need to scan in short intervals, so is all 3 minutes ok? Sep 02 10:17:28 aaearon answer is you can "tag" the view, with a static string name or something… then use findViewByTag Sep 02 10:17:39 aaearon but thats when you come round to asking it Sep 02 10:17:40 :) Sep 02 10:17:54 ok thanks for the head start :) Sep 02 10:25:06 Don´t be sad Estel Sep 02 10:27:56 byt89, why don't you let the user decide that? ie. make some UI where the user can decide on the interval Sep 02 10:35:24 "Decide for me but let me have the final say" Sep 02 10:35:53 Don´t use finally then Sep 02 10:37:14 VnM_: I never did! xD Sep 02 10:39:26 Bah, connection not happy today Sep 02 10:39:37 But yeah, lies Estel Sep 02 10:39:41 final Decision immutable = Decision.MAYBE; Sep 02 10:40:04 Maybe means yes Sep 02 10:51:14 hello Sep 02 10:51:19 hi Sep 02 10:51:21 hi Sep 02 10:53:22 Hey Sep 02 10:53:27 Can i set conditions for min length,max length,editable or not for a field through code? Sep 02 10:55:04 niru: yes Sep 02 10:55:19 simple_textfield.setMaxLines(5)? Sep 02 10:55:25 d.android.com Sep 02 10:55:29 is your best friend here Sep 02 10:55:37 But I am able to enter even more lines though I have set it to 5 Sep 02 10:55:49 Nah for max length I think you need to define an InputFilter and add it to your EditText Sep 02 10:56:12 VnM__: this way or the other, there is a way to do it in Java Sep 02 10:56:28 Oh yeah I know Sep 02 10:57:01 I was replying to the setMaxLines comment maxLines != maxLength Sep 02 10:57:01 thanks Sep 02 11:00:36 i made custom DialogPrefence. it closes on orientation change, while default dialog preferences keep open Sep 02 11:00:41 what should i add Sep 02 11:07:03 Does anyone know if the Google Drive app is using FragmentBreadcrumbs? Sep 02 11:07:09 or something more custom Sep 02 11:10:58 Ashiren: http://developer.android.com/guide/topics/resources/runtime-changes.html#RetainingAnObject Sep 02 11:14:58 thepoosh: this is dialog preference, not dialog fragment Sep 02 11:15:19 anyone know the relationship between an ImageView scaleType and Picasso - will it respect it or ignore it, or sometimes one or the other? Sep 02 11:15:32 you need to catch the orientation change and manage to recreate everything back to the same state Sep 02 11:26:36 hi all. Is it possible to add menu items to other app activity? For example, there is a messaging app called Messaging in stock Android. And I want to add a choice for dialog that shows up when user long tap a thread. Sep 02 11:30:01 sikurus: you can change the source code of that app (which is a topic for #android-root). if you want to change it from inside of an app you are developing, the answer is no Sep 02 11:36:54 hey guys. does anyone here use NetBrains IntelliJ? I can't get this silly facebook SDK to work with my project. I add dependancies to the JARs but the program doesn't compile claiming that com.facebook namespace doesn't exist. Sep 02 11:37:39 The_Coolest: gradle? Sep 02 11:37:51 what's gradle? Sep 02 11:38:10 a build tool for android. Sep 02 11:38:24 are there .gradle files in your application folder? Sep 02 11:38:32 I've used IntelliJ before, on the same project and had no issues. but something got FUBAR in the time I didn't touch it. Perhaps I moved it to another folder on my PC Sep 02 11:39:55 no .gradle in my project folder Sep 02 11:40:03 worked fine without them in the past Sep 02 11:40:05 Cant help then :/ Sep 02 11:40:14 didnt work without gradle for a long time. Sep 02 11:40:34 The_Coolest: Did you add the dependencies to the modules as well? Sep 02 11:41:37 i went to file, project structure, modules, dependancies tab and added the jars in the fb sdk Sep 02 11:41:47 to each of my modules Sep 02 11:43:53 The FB project itself is the one you add to YOUR project as dependency, not just the jar files inside the Facebook project Sep 02 11:45:26 So open up the Facebook project as a whole in your IDE, make sure it´s seen as a Library project, I don use IntelliJ here but in Eclipse it´s under Properties->Android theres a checkbox that says ¨Is Library¨ Sep 02 11:46:11 Then go to the properties of your own project and add the Facebook project as library Sep 02 11:50:11 I dunno Sep 02 11:57:41 danijoo: oh okay. thanks :) Sep 02 12:07:38 Is there any way to change colors of native elements without sacrificing a small child and extending the elements xml? Sep 02 12:08:20 what do you mean. a views background? Sep 02 12:08:35 the switchviews active color Sep 02 12:08:37 view* Sep 02 12:08:39 yes Sep 02 12:08:40 views Sep 02 12:09:26 like android:activeBackgroundColor="color" Sep 02 12:09:31 on the switch view Sep 02 12:09:55 the switch is platform specific though right ? Sep 02 12:10:05 platform? Sep 02 12:10:10 for the little switch thumb color you can create a selector and set it to android:thumb="yourSelector" Sep 02 12:10:10 version Sep 02 12:10:40 We are only building for 4.0+ Sep 02 12:11:08 so you are referring to a holo switch ? Sep 02 12:11:14 Yes ofc Sep 02 12:11:18 this might help for the holo switch: http://stackoverflow.com/questions/10118050/how-can-i-style-an-android-switch Sep 02 12:11:22 and you want to change the blue ? Sep 02 12:11:25 yes Sep 02 12:11:29 to orange Sep 02 12:12:28 seems like you have to do it with drawables. maybe its also possible to have a colorfilter *somehow* Sep 02 12:12:33 well if you do your own statelist like in that link danijoo just posted, you can do as they say… or you can use a matrix filter to change the blue color Sep 02 12:12:57 StingRay_: yeah. that was my second though :) Sep 02 12:13:03 Yeah.. Sep 02 12:13:51 Is it just me or is styling in android pretty inconvenient? Sep 02 12:14:53 why? You can do that all in a style.xml and apply it -> profit Sep 02 12:15:58 Mrdarknezz I agree Sep 02 12:16:01 terrible Sep 02 12:16:19 I think all the xml styles were a reaction to iOS looking way better Sep 02 12:16:39 and programmers on android that were one man band did horrid design and use of existing Sep 02 12:16:48 http://www.android-holo-colors.com/ ftw when styling android components Sep 02 12:16:53 android from a looks point was getting a big slaughtered Sep 02 12:17:05 yeah this is great Zharf Sep 02 12:17:06 Zharf: Yeah i'm using that Sep 02 12:17:44 It's not that it's impossible to make something nice, however it takes so much time to get it the way the designer want it Sep 02 12:18:20 That might be partly due to your designed though. :) Sep 02 12:18:28 Not arguing it feels clumsy. Sep 02 12:18:39 flan3002: Well yeah but still Sep 02 12:21:44 flan3002: The designmodel for views feels like it belongs in the previous decade Sep 02 12:22:10 thats where its from :D Sep 02 12:22:23 I like Views. On the other hand, the other GUI system I used was Swing... Sep 02 12:26:11 Whats the story with creating an AsyncTask along the lines of this : "AsyncTask a = new AsyncTask() {... etc etc implement methods};" - It just falls over with no error or logcat here (Intellij) . If I farm out the anonymous class to a concrete inner class e.g "class MyAsync extends AsyncTask { ... etc etc implement methods}; myAsync a = new MyASync(); it works. Some sort of Java thing Im not aware of or likely to Sep 02 12:26:11 be something more local to my code? Sep 02 12:26:16 Hi all, I have FragmentA with activity title "A", then I add FragmentB and activity title is "B", when I press the back button, I want that the title is "A" again, how can I do this? Currently I set getActivity().setTitle("A") in onCreateView of FragmantA Sep 02 12:26:54 set it in onResume Sep 02 12:27:40 hey guys Sep 02 12:27:42 flan3002: :D Sep 02 12:27:54 does anyone here know gradle Sep 02 12:28:09 like pro know it Sep 02 12:28:10 hateftadayon: #gradle they do. Sep 02 12:28:20 im currently there Sep 02 12:28:23 no answer Sep 02 12:28:29 51 members but dead silent Sep 02 12:28:39 dont ask if anyone knows. Just ask your Q and paste a link to your code in pastebin. Sep 02 12:28:54 sorry new to this Sep 02 12:29:26 I know gradle like a novice beginner artist pretending to be a programmer…. if that help Sep 02 12:29:28 :) Sep 02 12:29:41 i have an app and three different languages on the app Sep 02 12:29:46 Hey everyone. Sep 02 12:29:50 in java is there an opposite method of super()? I mean something that instead of calling the parent's method from father I can call a son method. Sep 02 12:30:37 lets say english, german and spanish Sep 02 12:31:15 the way gradle does it now is that it takes the system language and maps it to the strings that it has Sep 02 12:31:22 danijoo: I tried it but onResume isn't called Sep 02 12:31:46 is there a way to override this so i only have the english for the people downloading from the uk play store and german play store etc Sep 02 12:32:48 i tried copying with a task but it happens to late Sep 02 12:33:20 mcmaur: firstly ##java for that but .... the java language calls something like that polymorphism and does it for you e.g obj.f() the "sons" (to use your terminology) f() would be called. It would be VERY bad practice for you to be able since how the hell should a superclass have any notion of what the subclass can do? Sep 02 12:34:29 danijoo: Is this a good/bad solution for my needs? http://stackoverflow.com/a/18752763/1723525 Sep 02 12:36:48 FrancescoV: what API are you targetting? Sep 02 12:37:19 rgr: target 19, min 14 Sep 02 12:38:37 mcmaur: Parents are not supposed to call on children Sep 02 12:40:28 Mrdarknezz: its not a parent child relationshsip. Its a superclass and subclass relationship. Different things. Parents call methods on children all the time. But in this case no he cant and shouldnt have what he is asking for. Sep 02 12:41:38 superclasses cannot know about subclasses. but you can use abstract methods for what you want Sep 02 12:42:31 I have multiple class extending AyncTask pretty similar. I would like to do a parent class that extends aynctask and that calls the "son" not extendiing async Sep 02 12:44:10 mcmaur, ok? Sep 02 12:46:28 what is ok ravilov? :) Sep 02 12:46:42 what is your issue with that? Sep 02 12:47:42 from parent (the only one with doInBackground method) I can't call the right method (which is different for every son) Sep 02 12:48:20 son? parent? Sep 02 12:48:25 this is not a family... Sep 02 12:48:51 (it is normally called a "child" btw, why son?) Sep 02 12:51:41 also I still don't see an issue here, it seems pretty straightforward and simple Sep 02 12:52:49 hi guys i have a list view animation implemented from this site http://kylewbanks.com/blog/Implementing-Google-Plus-Style-ListView-Animations-on-Android . But the animation happens even when i have a long item click/ an item is selected. how can i fix this Sep 02 12:53:19 sounds like he is trying to call a method that the superclass does not have. Sep 02 12:54:12 sounds like he doesn't know how to implement a simple class/superclass relationship :) Sep 02 12:54:16 CheckItOut how are you triggering the anim ? Sep 02 12:54:46 it's done in the getView of my list adapter Sep 02 12:55:32 is getView and that anim trigger on longPress ? Sep 02 12:56:41 StingRay_: sorry can you rephrase that? i don't under stand. Sep 02 12:56:57 I asked where do you trigger the anim…as in "play" Sep 02 12:57:03 you said in getView Sep 02 12:57:24 then I asked onLongPress does getView get called Sep 02 12:58:52 StingRay_: it must, if the animation is playing. Sep 02 12:59:07 really, why is it doing that ? Sep 02 13:00:30 StingRay_: because of the contextual menu Sep 02 13:00:58 ok, so you have 2 options Sep 02 13:01:13 a play once… which means you track the state of play :) Sep 02 13:01:46 or detect that it's a longpress and not play it Sep 02 13:02:01 or thats what I see based on what you said Sep 02 13:02:06 could be wrong though :) Sep 02 13:02:46 One guys in the comments said the following "Just had to change one thing. In my case the animation got triggered when a view got selected or when I opened the navigation drawer by clicking (swiping was no problem oO). I just put the lastPosition in my viewholder, so it gets only triggered when I'm scrolling (when the position of the same view changes)." Sep 02 13:03:23 what does he mean by, "i just put the last position in my view holder.." Sep 02 13:04:31 dunno, I presume myViewHolder.position = position; Sep 02 13:04:39 as in stores current position Sep 02 13:04:47 thats a diff question Sep 02 13:05:17 it seems like he solved the issue I'm having, by doing that somehow Sep 02 13:06:11 why would you choose IntentService over AsyncTask? Sep 02 13:06:40 cause it is it's own context Sep 02 13:07:10 headless, triggered with no app/ui Sep 02 13:07:14 many reasons Sep 02 13:07:21 CheckItOut yeah, so thats what he does Sep 02 13:07:25 hm Sep 02 13:07:29 CheckItOut you do the same Sep 02 13:07:44 StingRay_: but how does that resolve the issue Sep 02 13:07:54 like he says Sep 02 13:08:02 if the position is different Sep 02 13:08:04 plays it Sep 02 13:08:08 if not doesn't Sep 02 13:08:35 well, tell a lie, if the position is different plays it and sets the position Sep 02 13:08:46 if it is the same….do nothing Sep 02 13:08:54 thats more accurate :) Sep 02 13:10:23 pretty sure everything has its purpose, not sure why is using IntentService so surprising Sep 02 13:17:35 is there a way to animate multiple instances of the same object in the android property animation? They should only have some offset... Sep 02 13:18:19 StingRay_: a favour? Please dont use the return key as punctuation. Type longer lines. The our own clients can fornat it as we like. As it is all I can see in my irc buffer is 25 lines of 3 word sentences. Thank you for considering it ;) Sep 02 13:18:28 Saabzero, assign the same animation to all of them? Sep 02 13:19:57 ravilov: so i need to create an object for every animation? Sep 02 13:20:16 huh? Sep 02 13:20:41 i need a lot of rectangles which need to be animated Sep 02 13:21:33 this is the iOS version, developed with a CAReplicatorLayer: http://o.hella.info/frontale2014/img/screens/screen_04.png Sep 02 13:22:27 rgr: I read that in a very passive aggressive voice Sep 02 13:22:32 the rectangles are representing the movement of a shutter Sep 02 13:24:23 i want to avoid creating an instance for every rectangle, because there are so many (sry for my bad english...) Sep 02 13:24:32 Saabzero, why don't you put them all in some sort of container viewgroup and animate that? Sep 02 13:28:02 ravilov: i tried to use a relative layout, but adding the same object multiple times is not possible (The specified child already has a parent.) Sep 02 13:28:15 oh Sep 02 13:28:21 yeah tough Sep 02 13:28:40 you'll simply *have* to create as many views (ie. rectangles) as you need Sep 02 13:29:03 there are many ways to do this but one way or another it has to happen, I see no other way Sep 02 13:29:19 ravilov: okay, i'll try it. hopefully the performance is good enough... Sep 02 13:29:58 the iOS app uses the CAReplicationLayer where the object animation can be replicated very efficiently Sep 02 13:30:07 thanks for the help anyway Sep 02 13:30:23 that really means nothing to me, I have never touched anything ios (nor do I intend to) Sep 02 13:30:51 Is there a simple way to simulate low bandwidth either on a real device or in Genymotion? I seem to remember there was something in Developer Options but can't find it.. Sep 02 13:31:13 official emulator has this option, yes Sep 02 13:31:15 snowpong: DDMS, no? Sep 02 13:31:42 when it comes to 3rd party options, you're on your own Sep 02 13:31:47 CLI options probably as well... Sep 02 13:32:20 flan3002: I'd rather stay away from their default emulator :) Sep 02 13:32:27 tough Sep 02 13:32:33 snowpong: It's not that bad. Sep 02 13:32:52 snowpong: As long as you use x86 images and HAXM/KVM. Sep 02 13:32:58 flan3002: OK Sep 02 13:32:59 so you choose to NOT use the official supported software... well then I guess you're SOL Sep 02 13:33:54 ravilov: if it's the best way to simulator poor network I'm flexible Sep 02 13:34:01 * ravilov has no problems with either ARM images/emulator or the android-x86 project running in vbox, both run just fine Sep 02 13:34:39 snowpong, I don't know if it's the best or even the only way, I know the official emulator has that option, I don't know (or care) about genymotion or anything else 3rd-party Sep 02 13:44:27 When using an ArrayAdapter and a custom layout xml for the items. How can I change the height of the view in my custom adapter without creating a custom arrayAdapter? isn't possible, right? Sep 02 13:46:58 FrancescoV, set the height in the xml for the list item view? Sep 02 13:47:17 i can't be the first one to want this so i thought i should ask before i implement this myself: i want to have a log-window in my app. just a window that hovers above everything else where i can add lines to. i test my app a lot while driving around and i don't always have a laptop on the passenger seat to check log cat. anyone know about an open source project for this or if not what would be the quickest solution? Sep 02 13:47:47 kevel_: impossible, height must be calculated (1/4 of the listview height) Sep 02 13:47:59 also toasts are too volatile... Sep 02 13:48:11 FrancescoV, ah i see Sep 02 13:48:20 FrancescoV, implement a view binder? Sep 02 13:48:50 kevel_: never used that, example somewhere? Sep 02 13:51:01 you can use it to bind values to views without overriding an adapter Sep 02 13:51:34 you could probably just alter a view's height in there for the first view's id that it tries to bind data to Sep 02 13:51:42 Thanks, I will check it out Sep 02 13:52:26 Morning all. Does anyone know if Android Stuido is going to be the industry standard anytime soon? Sep 02 13:52:51 I know it’s still in beta. But I was wondering if it was worth getting used to now, or waiting until release. Sep 02 13:52:54 Besides proguard or dexguard, is there a (new?) way to store API tokens/keys inside an .apk in a safe manor? Maybe something that was added in more recent API levels? Sep 02 13:53:21 tricknology: it should be, but java might not :) Sep 02 13:53:52 wait.. what? Java? Sep 02 13:55:25 http://cyrilmottier.com/2014/06/12/shaping-the-future-of-android-with-dart/ Sep 02 13:59:16 Hah Sep 02 13:59:21 the_fog wonder how many times that has been said though Sep 02 13:59:29 I think we would see python first Sep 02 13:59:56 true. it would be a major shift alright, and java still plugs on.. Sep 02 14:00:11 all those poor devs... Sep 02 14:02:00 tricknology: to answer your Q. 100% AS/Intellij will get more "market share" or usage - Android is google's and them developing a fork of Intellij can only suggest one outcome. And it far out strips Eclipse imo for usability and consistency. Sep 02 14:02:58 rgr: agreed. even in beta, is now almost the de facto IDE for android Sep 02 14:03:14 coupled with genymotion of course Sep 02 14:03:38 used genymotion, not all that impressed over normal Sep 02 14:03:51 lacks too many things… or did when I used it Sep 02 14:04:06 it's awesome Sep 02 14:04:11 really! what was missing? Sep 02 14:04:18 This is not something I should be learning at work... Sep 02 14:04:43 the_fog latest api, google api… Sep 02 14:04:59 StingRay_: yeah please. Lets hear what its missing over normal. Sep 02 14:05:23 StingRay_: paid version offers those features Sep 02 14:05:28 does it ? Sep 02 14:05:55 StingRay_: and workarounds for free version Sep 02 14:05:57 you get ddms like controls with paid too ? Sep 02 14:06:38 actually google play is not supported on Genymotion - but it can be installed via hacks Sep 02 14:06:52 what do you mean? Sep 02 14:06:56 Looks like I will not be getting intellij for some time Sep 02 14:07:31 this is not about intellij, it's a discussion on genymotion Sep 02 14:07:53 go for intellij:) Sep 02 14:08:01 you won't be sorry! Sep 02 14:08:19 so, it's not missing what I said if you pay for it ? Sep 02 14:09:39 why not use HAXM if you want a faster emulator? no intel chip? Sep 02 14:09:54 wow subscription based … and what is this Pixel Perfect Sep 02 14:10:20 I don’t know if my company will spring for a paid IDE when there are loads of free ones Sep 02 14:10:28 StingRay_: i'm starting to doubt myself now... i read somewhere that those features were removed from the paid version, but snowpong said that Play is not supported, so not sure now Sep 02 14:10:51 yeah not sure gonna touch genymotion looking at that list and their model Sep 02 14:10:56 dont see the worth Sep 02 14:11:08 i myself use the free version with this hack http://forum.xda-developers.com/showthread.php?t=2528952 Sep 02 14:11:13 the_fog: google play services and google play store is not installed or supported with the latest genymotion images - probably license shit - but you can install it via http://stackoverflow.com/a/20137324/1666063 Sep 02 14:12:36 is it worth all the trouble to find these workarounds and hacks? Sep 02 14:12:38 I'm trying to understand the difference between cts and tradefed. Can anyone please help me understand? Sep 02 14:14:21 tricknology: Android Studio is free Sep 02 14:15:07 so is intellij CE Sep 02 14:15:22 someone needs to do their homework ;) Sep 02 14:15:47 whatever anyone says, eclipse+ddt+original emulator are still *official* tools, coupled with the fact they work fabulously well for me, personally I really have no reason to look at anything else Sep 02 14:15:51 just my 2 cents Sep 02 14:15:56 er Sep 02 14:16:01 adt, not ddt Sep 02 14:16:02 and a company that wont cough up 200 bucks for a top quality IDE for their staff IF they need it isnt a company worth working for. its peanuts and tax deductible. Sep 02 14:17:35 pretty much agree, minus adt Sep 02 14:17:53 original emulator is absolute garbage. Sep 02 14:17:56 hmm, polymer looks pretty cool, gonna mess with that some Sep 02 14:19:32 thanks ravilov Sep 02 14:19:32 Hi All. Is there a way to know which git tag was used to build the compiled libs in $NDK/platforms/android-19/arch-arm/usr/lib ? I know it would be some 4.4.x tag, but I'd love to know the right tag so that I can attach the sources in gdb and have the write line numbers for stepping Sep 02 14:20:13 err...have the "right" not "Write" Sep 02 14:30:35 hi Sep 02 14:30:58 can I pass an OnClickEvent on, as to not stop the traversal Sep 02 14:33:14 right now, the touch event is not received by the other views overlapping with the clicked view Sep 02 14:33:36 when it returns false it goes further Sep 02 14:34:25 is there any site where i can buy templates of apps? Sep 02 14:34:31 other than codecanyone? Sep 02 14:34:34 other than codecanyon? Sep 02 14:40:16 twiceaday probably hire someone on the freelance sites Sep 02 14:40:21 best bet I would tink Sep 02 14:40:38 think*, or look at the open source projects floating around Sep 02 14:45:38 Ashiren: thanks Sep 02 14:46:08 I have a GestureDetector that detects a fling and onFling it changes a TextView. I want to make it so the user can fling again and change the TextView again, after the inital fling...how can I do this? Sep 02 14:46:31 ...basically allows another onFling Sep 02 14:46:40 counter var? Sep 02 14:48:02 Ashiren: wait, onClick returns void.. Sep 02 14:49:19 oh Sep 02 14:49:28 ontouchevent returns boolean Sep 02 14:53:06 i bet you have onClickListener on Button when you want to go further Sep 02 14:53:35 other than extending button and overriding onTouchEvent i dont see other solution Sep 02 14:54:41 jesus this is even more annoying than it not scrolling the viewpager Sep 02 14:55:58 it's called "event bubbling" btw Sep 02 14:56:50 right Sep 02 14:57:03 I need to find the sweet spot between clicking and dragging.. Sep 02 14:59:20 there is actually a system value you can use Sep 02 14:59:50 Hello, Google Play Store, when I try to install any app gets me "could not be downloaded due to an error (941)" clearing cache, reinstalling Play Store updates didnt help. Sep 02 15:00:48 I want to send exactly n bits over the WiFi connection. Do I have to use a socket directly or can I use some higher / easier Android networking API? The actual n bits are just random data. Sep 02 15:01:07 ravilov, I don't think so Sep 02 15:01:25 ravilov: here people have implemented something similar in a touch event http://stackoverflow.com/questions/4324362/detect-touch-press-vs-long-press-vs-movement/16485989#16485989 Sep 02 15:01:29 c03, ViewConfiguration.get(context).getScaledTouchSlop(); Sep 02 15:04:21 Any suggestions how to fix 941? Sep 02 15:04:45 kristijonas-mob, try #android, this channel is for app dev Sep 02 15:05:08 SimonVT: He did. Extensively. Sep 02 15:05:17 SimonVT, #android didnt help me. Sep 02 15:06:02 kristijonas-mob: Try again later then Sep 02 15:06:55 (what's 941 though?) Sep 02 15:07:47 Hi. anyone here with samsung galaxy s4+ or htc with sense? can someone post the result of adb shell (root!) command: Sep 02 15:07:47 sqlite3 /data/system/locksettings.db "SELECT * FROM locksettings"? You can remove any _private_ data; it doesn't help me though :) Sep 02 15:08:40 SimonVT, i believe that's an issue that should be looked upon in more detail then user-level, dont know why you suggest #android. Sep 02 15:09:22 lordgreg, -> #android-root Sep 02 15:09:26 kristijonas-mob: Sure, by Google Sep 02 15:09:39 kristijonas-mob: Because it is not our job to fix problems with the Play store. I agree it shall be fixed, it annoys me too, but please, talk to someone who actually can fix it. Sep 02 15:09:54 Ravilov: when I try to install any app from Google Play Store, the error I get is: x app could not be downloaded due to an error (941) Sep 02 15:10:19 oh right, that thing Sep 02 15:10:32 yeah still not right for this channel Sep 02 15:11:17 flan3002: what is that SOMEONE who actually can fix it? Sep 02 15:11:56 it means NOT IN HERE Sep 02 15:12:28 Ravilov: then where? Sep 02 15:13:05 dude, seriously? Sep 02 15:13:14 got dc'd Sep 02 15:13:16 sqlite3 /data/system/locksettings.db "SELECT * FROM locksettings"? You can remove any _private_ data; it doesn't help me though :) Sep 02 15:13:29 if anyone has sgs or htc one or similar with sense ui Sep 02 15:13:47 lordgreg, again, take it to #android-root Sep 02 15:13:57 ah.. sorry... and thank you for info ;) Sep 02 15:14:12 I'm trying to implement ActionBar.TabListener to my FragmentActivity but it keeps saying ActionBar can not be resolved to a type...why? Sep 02 15:14:15 ravilov, yes. #android says they are not Google as well and they cant help me Sep 02 15:15:10 Yeah, and who is Google? Sep 02 15:15:20 kristijonas-mob, you were told by several people to take it elsewhere, are you saying you will still keep annoying people in here unless told specifically where to go? Sep 02 15:15:31 what, are we your search engine? Sep 02 15:15:46 ravilov: dont feed him.. Sep 02 15:15:47 Don't wonder after wandering around in channels that have no google employees, that they are not Google. Sep 02 15:16:44 New blog post: http://android-developers.blogspot.co.uk/2014/09/beautiful-design-collection-summer-2014.html Sep 02 15:18:50 ravilov, i'll not annoy YOU, not people in here, as speak for youself, not other people IN HERE. But i think it's silly to tell me to go somewhere else, and not specifying the place which you help me with the issue I got. Sep 02 15:22:30 he already trolled in #android and made the users mad.. now he's here.. Sep 02 15:26:12 he's not here anymore :p Sep 02 15:42:37 Why would cancel() on a ViewPropertyAnimator still end up calling onComplete? Sep 02 15:46:14 because some of it did complete? :) Sep 02 15:46:42 is there anyway to check if an animator was canceled? Sep 02 15:47:25 set a flag at the same time as calling cancel() and check for it? :p Sep 02 15:53:35 is there any way to use proguard's shrinking in a blacklist (only shrink com.google.gms.whatever) instead of whitelist sort of way? i really don't want to figure out how to get dagger and friends working with it Sep 02 15:57:36 for some reason on 1 device the animation plays fine, on the other it "completes" immediately Sep 02 15:57:45 which then calls another animation Sep 02 15:58:13 which ends up causing a stack overflow Sep 02 16:01:02 My actionbar has many tabs in it. When I start my activity the first tab is selected, I want "tab3" to be initally selected. how can i do this? Sep 02 16:02:26 setSelectedNavigationItem? Sep 02 16:04:11 pretty much Sep 02 16:04:28 Did you try it? Sep 02 16:05:43 yes but it gives me an invalid index Sep 02 16:06:08 try with a different index? Sep 02 16:06:26 just as proof of concept Sep 02 16:06:58 it says size is 1 even though I have 11 tabs Sep 02 16:07:10 yes i tried tho Sep 02 16:07:30 you must be doing something wrong Sep 02 16:08:09 hmm lemme see.. im using an enhanced for loop to add the tabs, dunno why that should be a problem Sep 02 16:08:52 at the point of you setting the index they dont exist in that array Sep 02 16:08:58 guessing Sep 02 16:10:28 MartialLaw: take the guessing out and put your snippet in a pastebin.. Sep 02 16:11:14 will do Sep 02 16:11:56 error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Menu'. styles_base.xml /android-support-v7-appcompat/res/values-v14 line 84 Android AAPT Problem Sep 02 16:11:59 :( Sep 02 16:12:25 http://pastebin.com/beNtj9Wd Sep 02 16:13:15 MartialLaw: are you sure it isn't crashing on the setSelectedNavigationItem that's in the for loop? Sep 02 16:13:26 Because the one /in/ the for loop will definintely crash Sep 02 16:14:10 it is not in the for loop Sep 02 16:14:23 Yes, it is. Sep 02 16:14:27 On line 14 of that pasted code. Sep 02 16:14:46 ah 1 second Sep 02 16:15:12 thnx brah i dunno why i didnt see that Sep 02 16:15:42 * MartialLaw feels dumb Sep 02 16:16:11 told you you're doung something wrong :p Sep 02 16:16:15 doing* Sep 02 16:16:27 :* Sep 02 16:16:33 can i get notified every time someone downloads my app_ Sep 02 16:18:27 Can a service be optionally bindable? I want it to display a result to an activity if it's still present. Sep 02 16:19:01 MartialLaw: stepping through with the debugger would have showed you that in 3 seconds ;) No need for printf or Log.d etc etc. A great tool to master. Sep 02 16:19:17 Clicking the line in the stacktrace would have told him that Sep 02 16:19:18 skulltower, no but you can check if the service is running before binding Sep 02 16:21:01 ravilov, umm to clear something up, if I start an unbound service from an activity and that activity is killed the service survives right? Sep 02 16:22:01 no, if the service is started by binding, it is supposed to terminate as soon as the last bound client disconnects Sep 02 16:23:13 But what about a service that is not bound? Does it die with the application close? Sep 02 16:23:58 shouldn't Sep 02 16:24:02 Everything dies when the application does. An Activity is not an Application Sep 02 16:24:28 that is why I normally statService() and then bindService() if I want to have it keep running after I'm done Sep 02 16:28:42 Ugh it's so unclear Sep 02 16:29:11 What if I want to run a service in the background even when the app is closed i.e. removed from the recent apps? Sep 02 16:29:36 But I still want to make the service bindable to activity if one is present. Is that even possible? Sep 02 16:31:10 As in an update task that runs in the background, and if an activity is bound to it then it displays a message on that activity otherwise it just finishes quietly\ Sep 02 16:39:35 skulltower, app running and the recent apps list have nothing to do with the application being active Sep 02 16:39:50 also, as far as I know any running service is bindable Sep 02 16:39:59 it's really not that complicated... Sep 02 16:40:24 So once any service is bound and then unbound it's destroyed? Sep 02 16:40:52 you should read my explanation again Sep 02 16:40:57 short answer: no Sep 02 16:43:29 That's what I don't understand, docs say "Once there are no clients bound to the service, the system destroys the service" Sep 02 16:47:13 "A service can be both started and have connections bound to it. In such a case, the system will keep the service running as long as either it is started or there are one or more connections to it with the Context.BIND_AUTO_CREATE flag. Once neither of these situations hold, the service's onDestroy() method is called and the service is effectively Sep 02 16:47:13 terminated" Sep 02 16:47:30 https://developer.android.com/reference/android/app/Service.html#ServiceLifecycle Sep 02 16:49:15 Ahh me nab. Sep 02 16:49:33 Thank you SimonVT, dunno how I missed that :| Sep 02 16:51:00 using setProgressDrawable for ProgressDialog I set it to an AnimationDrawable (an animation-list)but it doesn't animate. I do call start on the animation drawable and in the main ui thread. Is this my messing up or a known limitation of a progressDialog instance? Sep 02 16:55:07 skulltower, exactly ;) Sep 02 16:55:45 * skulltower cries Sep 02 16:57:38 anyone ever see this warning from AS in the gradle sync window "warning: source folders generated at incorrect locations" Sep 02 16:58:06 this is using variant.addJavaSourceFoldersToModel Sep 02 17:00:09 * g00s cries Sep 02 17:00:32 g00s: I had soemthing similar with using symlinks. I now dont use symlinks. Sep 02 17:01:19 rgr hm, my argument is the same as the exampe: "${buildDir}/customCode/${variant.dirName}" Sep 02 17:02:48 not using symlinks though Sep 02 17:03:35 not sure what argument you mean. I had my andrdoid projects symlinked from my HOME and after a few hours Id have duplicates - some with physical path some with symlink path. Nightmare and really really frustrating. So I had to give up on symlinks. Sep 02 17:04:29 rgr ah, the complete gradle call is variant.addJavaSourceFoldersToModel("${buildDir}/customCode/${variant.dirName}") Sep 02 17:05:11 which i just grabbed from getFolderApi example Sep 02 17:07:29 without googling and while you#re here how do I force AS/Ij to link to the proper javadocs? Its not pickinp up for ProgressDialog for some reason. All SDKs and doc libs installed. Sep 02 17:08:10 ah i haven't tried that Sep 02 17:08:18 dragorn http://www.welivesecurity.com/2014/08/28/android-security-2/ Sep 02 17:10:04 "Its American manufacturer boasts that the handset has a “hardened” version of Android which removes 468 vulnerabilities from the OS." wohoo ! Sep 02 17:10:33 i wonder if the towers are like the ones in the image with microwave backhauls ha Sep 02 17:12:40 wow thats interesting, so this phone somehow protects / monitors its baseband processor Sep 02 17:14:15 has anyone had an issue where animations sort of finish immediately? Sep 02 17:14:39 Don't have an issue on an S4 or galaxy tab, but the Asus Transformer is blowing up Sep 02 17:14:54 no errors in logs other than an eventual stack overflow Sep 02 17:18:15 I am running the installDebugTest task (intelliJ+groovy), I am getting device not found error. How can I connect to an emulator ? Sep 02 17:18:35 rsz at least make sure 'adb devices' shows it Sep 02 17:19:06 will keep it brief as it's a tech channel: please contact me if you offer android development services in germany (daily rate in eur before tax) i have a project i can pass as another one has become available (which is longer/better for me) Sep 02 17:20:40 maroloccio: No advertising, jobs or otherwise Sep 02 17:23:31 take that back then. sorry. accept hand being slapped and apologise for that. will try some other avenue Sep 02 17:23:57 g00s: I just moved to gradle, earlier the project was totally dependent on intelliJ... would the earlier defined emulator be not available? Sep 02 17:27:32 hi Sep 02 17:27:42 how i can put vimeo video in my android application ? Sep 02 17:28:03 vimeo doesn't even work in the browser half the time (for me at least) Sep 02 17:36:31 hi Sep 02 17:38:42 In my Fragment I have function that takes service instance as a paramter and processes UI further. Service is passed just after Fragment creation, so onCreateView isn't yet initialized and NullPointerException is raised. How to deal with such situations? Sep 02 17:43:18 yacek19: Is the NullPointerException on the Database in your Custom LinearLayout class? Sep 02 17:43:40 no, Views arent created yet and they are null Sep 02 17:47:17 So don't use variables that are null Sep 02 17:48:49 yacek19: initialise them in onCreate maybe. Set a breakpoint with the debugger and follow the lifecycle. Sep 02 17:51:34 Also, why are you passing around Service instances.. Usually you wouldn't have access to that from your activity.. And if you do, you're probably leaking instances somewhere Sep 02 18:01:35 g00s: yeah I saw that Sep 02 18:03:31 hi logging works in the activity but when the activity refers to a java class logging inside that java class doen't work Sep 02 18:03:35 nothing happens Sep 02 18:03:44 only the log of the activity works Sep 02 18:10:32 JakeWharton: how hard would 8t be to adapt Hugo for all gradle Java projects not just android? Sep 02 18:11:16 Easy Sep 02 18:11:55 Replace Log.d with your favorite logging facade Sep 02 18:12:01 In the runtime. Sep 02 18:12:06 JakeWharton: would it be basically (beside the logging side) just altering the plug in? Sep 02 18:12:48 ? Sep 02 18:12:50 Yeah. You just need to find all JavaCompile tasjs Sep 02 18:12:57 Tasks Sep 02 18:13:19 Cool. Will look into that later today. Sep 02 18:13:24 Thx Sep 02 18:14:47 private NewClassInAPI19.Listener mListener = null <- this seems fine even when running on phone pre-API19. Can someon explain why? Sep 02 18:17:50 can I add in a android project normal java classes? Sep 02 18:20:52 honigkuchen: of course Sep 02 18:24:40 hello Sep 02 18:25:48 snowpong: because you never touch the field Sep 02 18:26:05 i am trying to enable a search view in my dialogfragment. I am trying to do this by sending a message from my fragment to my activity to initialize the search view. But i can't find which function (i.e. onCreateView..etc) the search view will be inflated/not be null. Sep 02 18:26:29 SimonVT: so it is safe to rely on this feature for example when writing backward compatible code? Sep 02 18:27:33 the zxing library has two packages, core and SE Extensions Sep 02 18:27:40 i'm not sure what the difference is Sep 02 18:27:52 PRoblem sovled Sep 02 18:27:57 I had to restart eclipse Sep 02 18:28:00 then it worked Sep 02 18:28:10 logging is shown Sep 02 18:28:30 snowpong: yep :) Sep 02 18:28:49 Except if you support 1.6 .. Then it might blow up Sep 02 18:29:55 honigkuchen: if you use Eclipse you have no one to blame but yourself Sep 02 18:32:25 I have tabs and they bring up fragments..how can I get the text of the tab that was clicked within the fragment? Sep 02 18:33:55 hang on. I cant assign an ID to a FrameLayout and thus control its visibility? Sep 02 18:34:43 anyone familiar with the zxing barcode scanning library? Sep 02 18:34:48 SimonVT: not going back that far - thanks for the info Sep 02 18:34:59 I can't seem to find the com.google.zxing.integration package Sep 02 18:35:16 other parts of the library are being found, but for some reason not that one Sep 02 18:35:26 (i installed it through maven) Sep 02 18:35:27 The tab must have a concept of currenttab. With no code , no idea what APIs you're using who knows. Paste your code or check the API for the classes you're using. Sep 02 18:38:42 When i use notify data set changed the entire listview refreshes and goes back to the top. Sep 02 18:38:49 Can i update a listview without having to do that? Sep 02 18:39:55 notifyDatasetChanged does not do that by itself Sep 02 18:40:02 if that happens that means that Android thinks all your items are new Sep 02 18:40:15 Does anyone have information on subclassing an android application within an Activity to build a 3rd party library's implementation of a webview? Sep 02 18:40:28 ooh so im donig something else wrong along the line Sep 02 18:40:33 thansk Sep 02 18:40:49 AKK9 maybe you are setting a new adapter Sep 02 18:41:25 AKK9, see getItemId on adapter, make sure you're not actually replacing the adapter Sep 02 18:45:13 g00s, Mavrik, okay i checked. its not actually doing what i said, but it replays an animation on all of the views in the listview Sep 02 18:45:46 in getView in the adapter i play an animation on a progress bar an the view Sep 02 18:46:02 so it visually grows on each item in the list Sep 02 18:46:18 setNotifychangewhatever makes all of those play again Sep 02 18:48:20 yes, because Android will call getView on each visible view again Sep 02 18:48:56 is there a way to play the animation on the first views in the list view ONLY on the first time it is shown. Sep 02 18:49:21 casue right now when i scroll the list the animation plays on every getView and it looks a bit silly Sep 02 18:49:37 yes there is a way Sep 02 18:49:43 but it's up to you to implement it no? Sep 02 18:49:51 would be nice if the user can open the activity, and the visbilty items they see will animate. but the list will scroll normally without animtations. Sep 02 18:49:55 i hope you eunderstand what i mean Sep 02 18:49:56 if you trigger the animation every time getView is called then you get behaviour you now see Sep 02 18:51:02 yeah i suppose, ill try. Sep 02 18:51:23 so i need to figure out which views are showing when the listview has populated Sep 02 18:51:26 and then animate those only Sep 02 18:52:05 if you had to make a recommended, woudl you recommend i try to solve this inside the adapter, or inside the activity (outside the adapter) Sep 02 18:52:06 ? Sep 02 18:52:40 A lot of apps are getting a tad too much animation.... :) Sep 02 18:52:58 Why are you playing an animation on only the first item? Sep 02 18:53:36 rgr, yes, its not a over the top animation. i have horizontal progress bars on my rows and i just want them to grow, once. Sep 02 18:53:56 SimonVT, i dont mean the first item. i mean the first 5 or so items that are displayed in the list. Sep 02 18:54:07 and then when the user scrolls, subsequent items are NOT animated Sep 02 18:54:24 not so good with words Sep 02 18:54:36 that's usually better to do outside the adapter Sep 02 18:54:43 set content, run animation form outside on first 5 items Sep 02 18:55:33 Why do only the first 5 items need a progress bar? Sep 02 19:01:16 SimonVT, sorry i mean the ALL the items have a progress bar. but i only want the first visible items to animate Sep 02 19:02:34 Why don't the rest? Sep 02 19:02:58 well i have that currently and i think it looks a bit over the top Sep 02 19:03:12 Having a progress bar on all items sounds over the top Sep 02 19:03:35 not if its a download indicator its not and they're visible. Sep 02 19:03:59 Play has download indicators on everything its updating Sep 02 19:04:11 they stay indeterminate until actual DL though Sep 02 19:04:15 maybe im not explaining it very well but the progress bar itself doesnt look bad Sep 02 19:04:23 Play also crashes 5 times before it manages to start download. Sep 02 19:04:40 Anyway, I fail to see how questioning the design will help AKK9 solve the issue. Sep 02 19:04:45 Mavrik heh, well mine just freezes and doesn't download anything Sep 02 19:05:08 I just see service restart a few times, sometimes even 2-3 times before it manages to download updates Sep 02 19:05:19 and that's consistent over several devices Sep 02 19:06:36 Play Store has a pretty design, but the implementation has always sucked Sep 02 19:07:02 can anyone confirm in AS 0.8.+, Preferences -> Compiler -> Use in-process build (checked) still results in an external gradle daemon running ? Sep 02 19:07:14 (after the first build, on startup it isn't) Sep 02 19:07:54 this stupid thing has a memory leak and starts taking more memory than AS itself Sep 02 19:08:08 so i'm alwats killing it after it reaches about 800mb Sep 02 19:09:23 prior to AS 0.8 i don't recall seeing this child jvm / daemon running continuously, maybe after a gradle sync or something weird Sep 02 19:13:57 thats not available in the latest EAP build for intellij for some reason. I guess it will filter back. Sep 02 19:24:00 Sorry for the noob question, but I couldn’t find an answer. If I’m developing for API 15, but running KitKat (API 19/20), which SDKs do I need to install? Sep 02 19:24:29 develop for 19, solved Sep 02 19:25:18 put targetSdk=19, install 19 api, and just test on 15 (assuming minSdk=15) Sep 02 19:25:40 Gradle needs to support incremental building Sep 02 19:26:44 google needs to get that damn thing done, its been long enough Sep 02 19:27:13 companies have developed whole operating systems in the time its taken them to get semi stable build system up Sep 02 19:27:40 Also. Why does the Android plug in it support src/test unit tests and testComplile dependencies Sep 02 19:27:51 g00s_: lol yeah Sep 02 19:28:07 Not support& Sep 02 19:28:09 * Sep 02 19:28:19 jug6ernaut i think its because they keep butting band-aids on cancer, while being very smart seemingly not enough to simplify things Sep 02 19:28:50 Lol Sep 02 19:29:13 I am starting to really like gradle, but on non android projects I won't be using it Sep 02 19:29:33 maven was fine for me on plain java projects yeah Sep 02 19:29:40 Same Sep 02 19:30:15 That n I still prefer convention over configuration Sep 02 19:31:19 I got a phone from Google, where they recommended me connecting my AdMob account with Analytics but I don't exactly see what's the point? Sep 02 19:31:19 yeah, me too. i think its important with such a flexible build system - google's gradle docs need to be complete (1) user guide (2) reference for DSL and (3) cookbook recipes "I would like to add a code generation step to my project" Sep 02 19:36:59 you got a phone from google? cool! which nexus is it? Sep 02 19:38:14 I mean a call Sep 02 19:38:22 english not my first language Sep 02 19:39:29 ravilov, iswydt Sep 02 19:40:11 Can someone please point me to how to set up and render to an RGBA4444 surface? Sep 02 19:43:40 isn't that deprecated or something? Sep 02 19:45:12 perhaps; but I have a need for it, due to some rather arcane hardware. Otherwise I will have to grab the 8 bit values and dither them down to four bits myself. Sep 02 19:50:14 How do I change the font weight for the Android Studio editor? Sep 02 19:50:36 I want Input Mono Condensed ExtraLight, but it only lets me select Input Mono Condensed Sep 02 19:55:08 you probably have to have that weight registered as a font in your system fontconfig. AS doesnt invent fonts - it queries the system ones. Sep 02 19:55:45 rgr: How do I do that? Other apps can see it just fine. Sep 02 19:56:02 It doesn’t even show regular vs. bold vs. italic Sep 02 19:56:16 This is on OSX if it matters Sep 02 19:59:18 any idea on why a mapview would work in one part of an app but not another? Sep 02 19:59:25 Hello, how can I bring my app to frong giving an event received with a subclass of BroadcastReceiver? Sep 02 20:00:16 Phoon: no idea. I use Linux. I would suggest asking Android Studio group/forum. Sep 02 20:00:24 Where’s that? Sep 02 20:00:29 google it Sep 02 20:01:44 I have. Sep 02 20:02:50 in which method (i.e. onCreateView...) will a fragments TextView not be null? Sep 02 20:02:51 isn't getBaseContext() in android.content.ContextWrapper? Sep 02 20:04:18 Great. Sep 02 20:06:16 oh, because my class doesn't extends from an Activity :( Sep 02 20:07:40 ? anyone Sep 02 20:08:13 Between onViewCreated and onDestroyView a Fragments View will exist Sep 02 20:11:02 SimonVT: then why does this final SearchView searchView = (SearchView) getActivity().findViewById(R.id.dialogSearch); return null on onStart() Sep 02 20:11:44 I thought you wanted to use the Fragments View Sep 02 20:12:28 SimonVT: it's apart of the fragments view Sep 02 20:12:45 Then why are you not using onCreateView/onViewCreated to find it? Sep 02 20:12:53 You have access to the fragments view directly Sep 02 20:14:05 how? like container.getchild? Sep 02 20:14:25 Well, in onCreateView you're inflating the View.. Sep 02 20:14:32 why is findviewbyid null thouhgh Sep 02 20:14:35 And in onViewCreated the View is a parameter Sep 02 20:16:04 If calling findViewById on those doesn't return a SearchView with the id dialogSearch, then it doesn't exist in the Fragments view Sep 02 20:22:35 oh i think it's because I'm using support SearchView..let's see Sep 02 20:25:57 yep.. that was the reason haha Sep 02 20:50:35 Is it possible to cast a android WebView as something like a ChromeView? Sep 02 20:51:33 kfluff: You mean cast as in (chromeview) webview? lol Sep 02 20:51:37 when writing tests for a library module, do the robolectric tests need to be against the application, or can they be written just against the library? Sep 02 20:51:42 yeah Sep 02 20:51:48 no you cant do that cast Sep 02 20:52:02 I'm trying to use this library Sep 02 20:52:15 what library Sep 02 20:52:16 https://github.com/pwnall/chromeview Sep 02 20:53:16 you have to use chromeview Sep 02 20:53:18 not webview Sep 02 20:53:20 in your app Sep 02 20:53:23 yeah Sep 02 20:53:26 but i mean Sep 02 20:53:28 that usage line Sep 02 20:53:46 about casting the find view Sep 02 20:53:53 findViewByID Sep 02 20:54:02 what about it Sep 02 20:54:13 i can't put a chromeview in the xml Sep 02 20:54:17 for layout Sep 02 20:54:24 yes you can Sep 02 20:54:33 i get an inflation class error Sep 02 20:54:34 when i do Sep 02 20:54:47 show me your xml and stacktrace Sep 02 20:54:58 Does anyone know of any JVM languages that generate Java 6 bytecode? Sep 02 20:55:21 Sep 02 20:55:21 android:id="@+id/webview" Sep 02 20:55:21 android:layout_width="fill_parent" Sep 02 20:55:21 android:layout_height="fill_parent" Sep 02 20:55:31 kfluff please use a paste service. Sep 02 20:55:37 oy Sep 02 20:56:33 Non-framework classes need to be fully qualified in xml Sep 02 20:56:55 is what you need Sep 02 20:57:20 and then you should be able to cast Sep 02 20:57:50 hmmm Sep 02 20:58:09 ok Sep 02 20:58:18 lemme try Sep 02 21:01:49 well Sep 02 21:01:53 i'm getting new errors now Sep 02 21:01:57 so i guess that's good Sep 02 21:02:11 seems like that did the trick Sep 02 21:02:40 thanks desmin88 Sep 02 21:02:54 SimonVT helped too Sep 02 21:03:01 but yw Sep 02 21:03:05 thanks simonvt Sep 02 21:03:38 How do I get a view from a listview Sep 02 21:03:38 ? Sep 02 21:04:20 I want to get the view for a given item position Sep 02 21:05:36 like getItemAtPosition, except getViewAtPosition Sep 02 21:05:56 cause i need to convert position to the view number which will be low Sep 02 21:05:58 onItemClickListener gives View as argument Sep 02 21:06:36 im tyring to get all visible views in a listview and loop through them Sep 02 21:07:04 maybe listview.getChildAt() Sep 02 21:11:31 thank Sep 02 21:36:52 im not good at maths please help Sep 02 21:37:02 if i have a list of 20 things Sep 02 21:37:09 but i have 5 views in my listview Sep 02 21:37:42 how do i convert the item position to the view position Sep 02 21:37:59 e.g. item 15 might actually be view 5 in the list of views Sep 02 21:41:51 wat Sep 02 21:42:09 ravilov, it doesnt make sense? Sep 02 21:42:13 this channel is not a very good substitute for googling Sep 02 21:42:30 googling was my first idea Sep 02 21:42:34 this is plan b Sep 02 21:43:05 and no, it doesn't make more sense - why would you ever need to manage absolute item positions yourself? Sep 02 21:43:44 ravilov, im not managing anything, i just want to be able to get a view from an item position Sep 02 21:44:00 position for view 15 is 15 Sep 02 21:44:27 no but view position for item 15 might be 3 or 4 or 5 etc Sep 02 21:44:41 no it can't Sep 02 21:44:45 or else you're doing it wrong Sep 02 21:44:59 ravilov, maybe im wording wrong Sep 02 21:45:15 Well how about storing the relation between view and item? Sep 02 21:45:25 ravilov, the listview might have 5 child views. Sep 02 21:45:26 You want to get the view of an item Sep 02 21:45:34 but the adapter may have 1000 items Sep 02 21:45:46 so your item gets an indicator which view it has to load Sep 02 21:45:55 the position you get is the position in the adapter, not the list Sep 02 21:46:08 at least as far as I know Sep 02 21:46:17 not that I worked with lists that much Sep 02 21:46:17 I do this in my application to refresh a view if the item is currently displayed in the list Sep 02 21:46:18 yes what im asking is how can i convert that position to a view position? Sep 02 21:46:19 its a bitch t odo Sep 02 21:46:37 desmin88, do you mind sharing how you manage to do this? Sep 02 21:46:43 AKK9: First off, if your item currently isn't displayed, there is no view for it. Sep 02 21:46:45 AKK9, oh dear, you want to convert absolute to relative, not the other way around Sep 02 21:46:45 ive been scratching my head for a while Sep 02 21:46:51 my question is still... why?!? Sep 02 21:46:56 that just seems wrong Sep 02 21:47:07 So if you want to get the view for item 15 and listview is showing item 20-30, you cant Sep 02 21:47:25 AKK9, this is not how lists work or are meant to be used Sep 02 21:47:26 maybe im doing this all wrong Sep 02 21:47:49 i want to loop through all visible views in my listview and make a change Sep 02 21:47:54 ravilov: In my use case I get the view for an item if it is currently displayed and update it Sep 02 21:48:20 http://pastie.org/9522528 Is how i do it roughly Sep 02 21:48:25 make a change to each view Sep 02 21:48:48 desmin88, wouldn't View.getVisibility() tell you that? Sep 02 21:48:58 how do you get the view Sep 02 21:49:05 AKK9, I think you'd be better off implementing your own view Sep 02 21:49:20 instead of making changes "externally" Sep 02 21:49:34 AKK9: What change are you making Sep 02 21:49:55 triggerring an animate on a horizontal progress bar in the view Sep 02 21:49:58 animation Sep 02 21:50:46 implement your own view and override onDraw()? Sep 02 21:51:02 (then call super.onDraw() and do whatever else you want) Sep 02 21:51:50 maybe decide if you want to do other stuff based on View.getVisibility() Sep 02 21:52:09 em Sep 02 21:52:21 AKK9, getChildAt() on a listView will give you visible views which you can use for animation Sep 02 21:52:41 the index in there is the actual VISIBLE index (e.g. getChildAt(0) is going to be the first visible item on screen) Sep 02 21:52:58 how to know up to what index to go? Sep 02 21:53:04 Mavrik, thanks Sep 02 21:53:07 to convert from "absolute" position you use in adapter use getFirstVisiblePosition Sep 02 21:53:13 i didn't knwo it was the visible index Sep 02 21:53:24 i assumed it was different Sep 02 21:53:27 I used that in alot of places to do animation Sep 02 21:53:32 thank you man Sep 02 21:53:56 i should have just tried it... Sep 02 21:54:13 also, getChildAt() will trigger adaper getView which is useful if you have to update a single listview item with best performance Sep 02 21:54:29 like so: http://pastie.org/9522528 Sep 02 21:54:56 anyone here worked with samsung knox sdk? Sep 02 21:54:57 yeah, that code redraws visible items on screen if I see it correctly Sep 02 21:54:57 do you keep that URL permanently in your clipboard? :) Sep 02 21:55:08 or generally samsung's special mdm sdk? Sep 02 22:03:10 Hello what can i use to do testing for non-binded remote services? Sep 02 22:05:16 I cloned a project from Github with Android Studio, this project was created with Eclipse. Android Studio has created an entire copy of the project in a new folder named 'app' - I notice that only changes to those copies affect the deploymentof the app. What's up with the copies? Sep 02 22:11:44 hi, could someone talk JUnit .. and androidTest project ?.. when I create a project in Android Studio, it auto creates the androidTest project, which I assume allows me somehow to setup JUnit tests.. I just can't figure out how Sep 02 22:11:54 and I can't find guides adressing androidTest Sep 02 22:11:57 dunno if its something new ? Sep 02 22:17:21 hello .... o.... o.... Sep 02 22:19:26 http://developer.android.com/tools/testing/index.html Sep 02 22:20:03 How can I know that a listview is finished populating? Sep 02 22:20:19 that doesnt mean anything AKK9 Sep 02 22:20:45 if i check getChildCount its always 0 Sep 02 22:21:58 i do adapter.setNotifychnageset you know, and then i do getChildCount Sep 02 22:22:00 but always 0 Sep 02 22:22:08 but stuff is clearly inside the listview Sep 02 22:23:16 i think i need to wait for the listview to update its view, and then getChildCount. Sep 02 22:23:32 i think im doing it too fast Sep 02 22:23:57 hm, my .iml file has but IDE is not picking that source folder up. Sep 02 22:25:07 there is no - this used to screw things up in previous releases Sep 02 22:28:12 in service's onCreate, how can i tell if the service was started by activity or by the system? Sep 02 22:28:24 add an intent Sep 02 22:28:30 when you star tit from your activity Sep 02 22:28:35 check if it exists Sep 02 22:28:50 desmin88, this is quite awkward also because i have header and footer views which dont have corresponding items Sep 02 22:28:56 so i need to ignore them aswell Sep 02 22:28:59 is there a more easy way :| Sep 02 22:29:24 how much easier do you want it to be Sep 02 22:29:38 i'd have to delete the intent afterwards Sep 02 22:29:42 and that's just messy Sep 02 22:31:21 I have two versions of a layout.xml with different fragment components : one in res/layout and one in res/layout-sw720dp. The issue I'm having is that the layout-sw720dp one is loading on my nexus 4 as well as my nexus 7. isnt the sw parm the correct one to use here since they are both officially xhdpi devices from what I can discern. Sep 02 22:31:39 i thought i'd use onStartCommand() but apparently it's called either way (WHY) Sep 02 22:32:10 Hey guys, how you doing? Im trying to achieve a fullscreen video kinf of view like the one on this gif > https://dl.dropboxusercontent.com/u/5636920/Login.gif < but im having trouble with the aspect ratio and such. Can someone point me a link or something, which can explain how to be able to achieve this? I cant seem to find an example using VideView component, I read maybe SurfaceView could be the way to go but I wanted someone more Sep 02 22:32:11 experienced to point me where to go. Thanks! Sep 02 22:33:25 I want the video to maintain the aspect ratio at all times, and resize accordingly. If the screen resolution is bigger than the video, it can be resized and leave a portion of the video out of the screen with no problem at all. Sep 02 22:35:26 Where's the code you have already done? Sep 02 22:35:49 That gif tells i nothing at all. Sep 02 22:36:47 squirrel: you thought you would use onStartCommans()? What do you mean its called either way? Sep 02 22:37:14 it's called when os starts the app Sep 02 22:37:48 well, first try was with a simple method like this one http://hastebin.com/ijojijevul.avrasm Sep 02 22:38:03 I mean why you "thought youd use it". Give some information. Sep 02 22:39:07 i've read somewhere on SO that it's only called when activity starts the service Sep 02 22:39:14 by startService or whatever Sep 02 22:39:51 Sorry. Maybe Im confused. I thought you were asking a question. Sep 02 22:40:43 but you dont have to believe SO. http://developer.android.com/reference/android/app/Service.html#onStartCommand%28android.content.Intent,%20int,%20int%29 Sep 02 22:42:03 oh. wait. i think i'm retarded Sep 02 22:43:19 kroot is groot Sep 02 22:43:20 still, "Called by the system every time a client explicitly starts the service" Sep 02 22:43:44 but i see the call even when client doesn't explicitly starts the service Sep 02 22:45:21 hello all Sep 02 22:45:57 perhaps it uses the old intent Sep 02 22:45:59 I'm trying to follow the in-app billing tutorial on Google and it appears I have to upload an APK before I can add the billing items? Thats fine, I understand the logic behind this but I dont want that new APK build I'm testing with to be available to my users to accidently update to it Sep 02 22:46:00 sigh Sep 02 22:50:24 QubeZ you can upload an apk without publishing it Sep 02 22:51:36 hello Sep 02 22:51:38 ok the wording is wierd bceause the console says upload new apk to production Sep 02 22:52:33 yeah, just don't publish it and you'll be fine Sep 02 22:52:44 hello Sep 02 22:53:17 sarbs: thanks, wording was worryng me. I got a Save Draft option it appears. Sep 02 22:53:44 Is anyone good with app develpment? Sep 02 22:53:56 -_-# Sep 02 22:54:30 no, absolutely no one in this channel is good or has even developed an app Sep 02 22:54:40 i mean "good" Sep 02 22:54:58 here's the deal, i'm looking to automate UI creation Sep 02 22:56:39 you're gonna have to be a lot more specific Sep 02 22:56:47 on both what "good" means, and what "automate UI creation" means Sep 02 22:57:51 Fair enough. Sep 02 22:58:02 I'm doing multiplatform application development. Sep 02 22:58:22 i don't like where this is going already Sep 02 22:58:43 I manage to reuse most of the layers (entities, client, business, presentation, etc) on all 3 platforms (Windows, iOS, Android). I'm now looking to automate a lot of what is manually done in the UI. Sep 02 22:58:50 bankai_au: How come? Sep 02 22:59:20 UI stuff should be delicately produced specifically for each OS Sep 02 22:59:34 aoeu html5 already exists for that, and does it very, very well Sep 02 22:59:51 bankai_au the link you showed me, is just like I said.. about unit testing.. seems outddated Sep 02 23:00:03 you can use css to tailor the look to each platform while retaining the same model Sep 02 23:00:54 in general i'm in agreement with bankai_au, i prefer native UI developed specifically for each platform, but if cross-plat development is what you want, then use an html5 engine. Sep 02 23:01:26 meh it'll never be right Sep 02 23:01:40 bankai_au http://developer.android.com/tools/testing/testing_android.html#TestAPI .. tells me to create a test project preferably in the same root folder as src Sep 02 23:01:59 yet when I create a project I get a androidTest folder, inside the src instead, which the guide does not address Sep 02 23:02:59 sarbs: HTML5 doesn't do it very well. Unless I'm wrong, the UI looks exactly the same on all OSes. I like native-looking UI. Sep 02 23:03:20 bankai_au: I agree. But I don't see how it's incompatible with UI generation. Sep 02 23:03:33 aoeu it looks the same if you style it the same, sure. that's what CSS was invented for. Sep 02 23:03:49 you can 'generate' something that 'looks' the same, but it's not going to work the same and generally just look shit everywhere Sep 02 23:03:52 sarbs: It still never really feels native. Sep 02 23:04:01 aoeu well.. it's not ;) Sep 02 23:04:45 P3nnyw1se: in something something version it was moved to another directory for some weird reason Sep 02 23:04:46 sarbs: So I'm looking for a native look and feel, without having to manually create the UI on each platform. Sep 02 23:05:02 i'm not aware of any projects that take a UI model and generate platform-specific native UI layouts/elements. the differences are too many between the platforms, and html5 already accomplishes 90% of that very easily. Sep 02 23:05:13 sarbs: Again, customization and tweaking will be necessary. But in most cases, the UI should just be generated and at least be functional and not-ugly. Sep 02 23:05:31 I dont have any JUnit experience which is why this is annoyning when the guides dont fit.. I was hoping someone knew updated documentation Sep 02 23:05:43 sarbs: There are. Xamarin does that already. Sep 02 23:05:43 I don't logically assume that stuff is moved or renamed Sep 02 23:05:57 often not just the user *interface* but the user *experience* paradigms are different enough that it would be very difficult to encapsulate the varying interactions inside a single model. Sep 02 23:06:11 aoeu ah. haven't used xamarin at all Sep 02 23:06:42 P3nnyw1se: i keep all my stuff in the same project and use the typical java style src/main/... src/test/... Sep 02 23:06:43 anyway.. what are you after, then? seems like you're fairly knowledgeable on the subject Sep 02 23:06:51 project... i mean module Sep 02 23:08:02 sarbs: I'm looking for insigts, different point of views, technologies, patterns. I'm fairly new to this, and I don't want to reinvent the wheel. I'm sure some of you understand why it's not a good idea to automate UI, or can enlighten me about why it's so difficult Sep 02 23:08:22 ahh gotcha, ok Sep 02 23:08:55 I'm convinced it's doable, and not _that_ complex, but I might be wrong. I'm just looking for reasons for not doing it if that's a bad idea, or resources that will help me avoid repeting mistakes if we conclude it's not a completely bad idea. Sep 02 23:09:30 i don't bother with windows, but i find it easier to make the UI for each OS(iOs and android) separately. it's generally not "too" difficult, just time consuming Sep 02 23:09:34 the general wisdom has been that's bad on two levels, both of which are slowly becoming less and less relevant Sep 02 23:10:34 1. html-based UI's (historically the only way to accomplish this) are inevitably slower and less responsive than native UIs, and don't take advantage of most of each platform's unique UI elements Sep 02 23:11:08 2. UX paradigms between the different platforms were different enough that making a UI wasn't simply relocating and re-skinning different elements Sep 02 23:11:47 #1 is going away as html5 engines become faster and faster, though they will *always* be some measure slower, simply by the fact that they're another layer of abstraction Sep 02 23:12:26 aoeu https://www.tbray.org/ongoing/When/201x/2014/01/01/Software-in-2014 Sep 02 23:12:38 #2 is going away as each platform slowly migrates toward UX patterns that are organically growing from popular apps, and integrating each other's innovations Sep 02 23:13:00 see "The client-side mess" and "Mobile sucks" Sep 02 23:13:43 g00s_: thank you, reading it Sep 02 23:14:32 sarbs: I agree. I don't want to rely on the fact that apps can look similar on different platform. I want apps to be truly native, use the latest paradigms and design patterns. Sep 02 23:14:59 sarbs: Especially with Android L coming, multiplatform UI is out. Sep 02 23:15:28 Well, UI that looks similar on multiple platform. My dream of automatically generating UI is not dead. Sep 02 23:15:57 well, from my standpoint (not having used something like xamarin and not being particularly interested in it), your "truly native" and "multiplatform UI is out" statements seem contradictory Sep 02 23:16:13 but, if you solve it, you will become one of the richest people in the world :) Sep 02 23:17:12 multiplatform+native=multinative Sep 02 23:17:21 eh Sep 02 23:18:20 nevermind going to sleep Sep 02 23:19:01 has anyone successfully gotten robolectric to run in android studio with gradle? Sep 02 23:20:27 hey JakeWharton so I'm messing with Hugo, i got the output to show that its woven the classes but when i rom them they don't appear to have been modified. I had to remove the -bootclasspath param from ajc, could that have anything to do with it? Sep 02 23:21:01 sarbs: I'm curious why you're not more interested by Xamarin. Something against Microsoft perhaps? Sep 02 23:21:42 sarbs: I don't see why it's not possible. I don't understand why it's not done. But I'm probably missing an important reason for that. Sep 02 23:22:07 are you the same guy from yesterday? Sep 02 23:22:33 desmin88: I am not. Sep 02 23:22:44 desmin88: Last time I came here was in 1999. Sep 02 23:22:48 web apps shouldnt even be discussed in this channel Sep 02 23:22:51 And by that I mean 6 months ago. Sep 02 23:23:17 desmin88: I'm talking native apps. Not strictly Android, but Android still. Sep 02 23:23:35 Just wondering how people here do multiplatform development. Sep 02 23:23:36 if by native all you mean is 1 webview that loads your web app Sep 02 23:23:36 no. Sep 02 23:23:51 desmin88: 0 webview. Sep 02 23:23:55 WebViews are the devil. Sep 02 23:23:57 if i were developing my own apps i'd probably be more interested in it, but the work i currently do is relevant only to android Sep 02 23:24:02 I think we can all agree about that. Sep 02 23:24:21 i'm sure i'd be interested in it academically if i wanted to spend spare time tinkering with it, but, i just don't Sep 02 23:24:40 sarbs: What are you interested in? Sep 02 23:25:18 that's a pretty general question, lol Sep 02 23:25:56 dev-wise i find most things interesting and like i said, i probably would fine xamarin fascinating, but i don't have the time to dedicate to getting into it so i haven't looked at it at all Sep 02 23:26:05 s/fine/find/ Sep 02 23:26:51 How does one compile ? mm doesn't seem to work, as it takes me to the top dir. See: Sep 02 23:27:30 robotbrain: try mma Sep 02 23:27:34 robtow you haven't built libgtests yet Sep 02 23:27:54 mm only builds the current module, mma like JF said builds the current module and all its dependencies Sep 02 23:27:59 sarbs - ah. What is the correct sequence of build commands then? Sep 02 23:28:06 mma? Sep 02 23:28:13 yeah, mma should work, I think Sep 02 23:28:21 Thanks! :-) Sep 02 23:32:53 hi. I'm trying to run a python script in my android app. I'm running the android devices as emulators. In order to run the python script, I should use ProcessBuilder but is the command correct? ProcessBuilder pb = new ProcessBuilder("python set_redir.py 10000"); I have the .py script in the src folder along with the code I've written. Sep 02 23:33:01 Im using eclipse ifthat helps Sep 02 23:34:35 That worked. Second question... wwhat is the ultimate executable? I am interested in , but it doesn't seem to be an apk.... must be linked into something else - anyone know what the end result of the opengl test is? Sep 02 23:37:42 It's not immediately obvious. Sep 02 23:38:03 I cloned a project from Github with Android Studio, this project was created with Eclipse. Android Studio has created an entire copy of the project in a new folder named 'app' - I notice that only changes to those copies affect the deploymentof the app. What's up with the copies? Sep 02 23:40:55 robtow at the end of teh build it should say something like "Installing to ".. that's the end product of that module Sep 02 23:41:12 if it doesn't say "Installing" then that module is designed to be used as a static library Sep 02 23:43:28 Ahhhhhh....... "Install: out/target/product/panda/system/bin/test-opengl-tritex> Sep 02 23:43:32 Thanks. Sep 02 23:44:29 np Sep 02 23:45:42 for android build system questions i haven't really found a great irc channel, btw.. this one is generally app-development specific. #android-root seems (or seemed i should say, last time i acually went there was last year) to be populated with xda kiddies Sep 02 23:46:15 the closest i've found to an android-os building channel is #cyanogenmod-dev, but it can be pretty quiet and often isn't terribly interested in supporting aosp builds Sep 02 23:47:18 does anyone know what is wrong with my ProcessBuilder command? Sep 02 23:47:23 guys trying to make this work --> http://developer.android.com/reference/junit/framework/TestCase.html ... here is my code --> http://pastebin.com/bC8gPAN9 Sep 02 23:47:50 errors on line 14 .. says I cant give a String arguement to ApplicationTest .. which makes sense to me Sep 02 23:47:53 but thats what the guide does right ? Sep 02 23:48:35 cyberspace009 you haven't offered up an error Sep 02 23:49:30 remove the constructor and rename your test method to testMathExample (or something starting with 'test' Sep 02 23:49:30 java.io.IOException: Error running exec(). Command: [python set_redir.py 10000] Working Directory: C:\Users\Ariel\Documents\Workspace\SimpleMessenger\src\edu\buffalo\cse\cse486586\simplemessenger\ Environment: [ANDROID_ROOT=/system, LOOP_MOUNTPOINT=/mnt/obb, ANDROID_BOOTLOGO=1, LD_LIBRARY_PATH=/vendor/lib:/system/lib, EXTERNAL_STORAGE=/storage/sdcard, ANDROID_SOCKET_zygote=9, ANDROID_DATA=/data, Sep 02 23:49:30 PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ANDROID_ASSETS=/system/app, ASEC_MOUNTPOINT=/mnt/asec, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar: Sep 02 23:49:30 /system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar, ANDROID_PROPERTY_WORKSPACE=8,49152, ANDROID_STORAGE=/storage] Sep 02 23:49:41 P3nnyw1se how well do you understand java? on line 14 you're trying to construct a new instance of your class, inside the constructor for your class. Sep 02 23:50:02 sarbs.. I'm just attempting to follow the guide, being uncritical about it Sep 02 23:50:16 java.io.IOException: Error running exec(). Command: [python set_redir.py 10000] <---------- Is this suitable? Sep 02 23:50:19 yeah, i don't mean to be critical either, was just curious :) Sep 02 23:51:01 dont matter much.. I can take that instantiation and put it anywhere.. it won't allow me to pass a value and why should it Sep 02 23:51:06 but thats what the guide does.. or am I blind? Sep 02 23:51:10 cyberspace009 that's an error at least :) doesn't tell me anything about why it failed however. paste (to gist or pastebin, you'll get banned if you paste in here) more of the logcat Sep 02 23:51:23 P3nnyw1se: read what i just said Sep 02 23:51:25 ok Sep 02 23:51:45 ahh sorry didn't highlight me Sep 02 23:51:58 P3nnyw1se i think i see what you're trying to do.. bankai_au is correct. jUnit tests you don't "run" yourself Sep 02 23:52:20 the test runner uses reflection to find all methods that start with "test", and then it calls those for you. each method is its own entry point. Sep 02 23:52:37 then open the guide I'm linking too Sep 02 23:52:42 and tell me thats not exactly what they do Sep 02 23:52:50 http://developer.android.com/reference/junit/framework/TestCase.html Sep 02 23:52:54 P3nnyw1se: read the text surrounding the examples Sep 02 23:53:18 oh, i see your confusion Sep 02 23:53:25 you don't need to write a TestCase Sep 02 23:53:45 you probably want to extend ApplicationTestCase Sep 02 23:53:53 judging by your naming Sep 02 23:54:56 I got here by scrolling down here and reading the 'JUnit' section Sep 02 23:54:56 http://developer.android.com/tools/testing/testing_android.html Sep 02 23:55:38 yeah Sep 02 23:56:06 i see how you could get confused by the TestCase docs, but the steps it's talking about are more for people writing Test Runners Sep 02 23:56:19 android provides you a testrunner that runs all the cases you write, automatically Sep 02 23:57:13 I'm not overly excited at these docs at the moment... could you just point me where to read and start. if allI wanna do is do some simply JUnit testing... on a small project I made/am about to make Sep 02 23:57:14 all you have to do is extend from TestCase somehow and name your tests testSomethingOrOther and you'll be fine Sep 02 23:57:34 http://www.vogella.com/tutorials/JUnit/article.html Sep 02 23:57:57 thx will try this out and be back to whine Sep 03 00:08:20 Hey people, I wanted to be able to play a video on a TextureView and I made it work. It works wonderfuly to be honest. The only problem I have left to solve is how to scale the video without losing the aspect ratio. I dont care if some part of the video is lost out of screen as long as it mantains aspect ratio on every screen. My fragment is the followgin: http://hastebin.com/misuvoluqa.avrasm Sep 03 00:08:31 Could anyone lend me a hand over here? I would appreciate it very much :) Sep 03 00:08:48 here it goes: http://pastebin.com/rWDhPy6a Sep 03 00:10:02 yeah, see your problem cyberspace009. C:\Users\Ariel\ doesn't exist on your emulator. or any device. you need to package the .py file into your apk, copy it out onto the device and then run it from there Sep 03 00:10:28 overall i think you would be better served by simply looking at what the .py file is doing, and then reimplementing its code into java code and running that directly. Sep 03 00:11:07 ok Sep 03 00:12:44 well, i have the .py file in the src folder. Do i need to move the .py file else where for making the .apk package? Sep 03 00:12:53 im using eclipse btw. Sep 03 00:14:22 I have many apps (currently 2 but eventually half a dozen or more) that are all going to use the same custom AccountManager but I can’t know which will be installed first, and there will be more than one installed in many, but not all cases. How do I handle this situation? Sep 03 00:15:28 cyberspace009 you're barking up the wrong tree, i promise you. android doesn't even have python, anyway. Sep 03 00:16:35 how old is everyone in here.. honestly interested in knowing Sep 03 00:17:04 Can anyone help me out a little with the texture scaling? Sep 03 00:18:19 P3nnyw1se i'm 29 Sep 03 00:18:34 i'd guess most are 20's and 30's Sep 03 00:18:45 darn it. I thought android can run python. I guess I need to use another method. Sep 03 00:19:01 judging by the speed of android.. deprecated methods etc.. I've been working while studying as IT support, also doing a bit of backend Sep 03 00:19:13 we got a guy ther 55 now.. who has know idea what he is doing anymore Sep 03 00:19:16 does that never concern you ? Sep 03 00:20:23 no.. it's a fast-moving industry, it takes effort to stay current Sep 03 00:20:47 the sharp edge of any employment pool is going to be the people that spend that effort to keep up with what's new Sep 03 00:21:33 I know, but it must be difficult as you get older, first of all you simply don't learn as fast anymore, and get stuck in routines easier, thats just facts... Sep 03 00:21:45 you might get families, kids, stuff that take your time outside of work Sep 03 00:22:00 just wondering, if I'm the only one who ever thinks 'man.. this is gonna be demanding for many years to come' Sep 03 00:22:38 P3nnyw1se it only becomes unfun, mostly because new technologies are just the "same old shit" rebundled Sep 03 00:23:12 its good to be Curious though :) Sep 03 00:23:16 well, by the time i'm 55, these mobile devices will be as obsolete as LaserDisc Sep 03 00:23:38 thats the thing,, you will have to comlpetely reinvent yourself,,, maybe 2-3 times in this buisness Sep 03 00:23:44 if youre a plumber... youre a plumber Sep 03 00:24:01 25 years ago, DOS was the dominant OS Sep 03 00:24:38 yeah but it's not a revolutionary change, it's a series of evolutionary ones Sep 03 00:25:35 its good to mix practical with theoretical. the latter won't age so fast and carries over to other areas often Sep 03 00:27:01 its demoralizing, dunno if thats correctly spelled, english is a second language. .... to come in here, and have everyone know so much about programming Sep 03 00:27:11 I've been attempting java for a year.. and I still make stupid mistakes Sep 03 00:27:29 heh Sep 03 00:27:37 i've been programming for 18 years and i still make stupid mistakes Sep 03 00:28:00 the only thing that changes is the speed with which you recognize them Sep 03 00:28:07 I can mixup commen statements like... is this a class variable or a class constant.. Sep 03 00:28:25 the terms have annyoed me a lot.. so many terms.. well anyways enough whining Sep 03 00:29:03 say you get hired as a junior programmer.. what level would you expect from that person?... is it even possible to explain on paper what level.. Sep 03 00:30:38 http://changelog.ca/log/2013/08/09/software_engineer_title_ladder Sep 03 00:31:45 ahhh Sep 03 00:31:49 accepted as an idiot.. good to know Sep 03 00:31:55 lol Sep 03 00:36:40 Hi Sep 03 00:37:12 anybody using dagger got an injected null in android 2.3 but not in > 3? Sep 03 00:39:17 what's your provider method? are you sure it's not providing null? Sep 03 00:40:53 mmm Sep 03 00:41:04 I think I have been able to track it a bit further Sep 03 00:41:08 the provider is ok Sep 03 00:41:16 I have a fragment using it and it works fine Sep 03 00:41:38 the problem is when I use the same injected value afterwards in a fragment that I add programmatically Sep 03 00:41:46 so I must be doing something wrong there Sep 03 00:45:49 its getting very late here so sorry if this is obvious Sep 03 00:45:52 http://pastebin.com/dqiBXuVq Sep 03 00:46:00 "error: package org.junit does not exist" Sep 03 00:46:40 not sure about that one.. that's a build configuration error. what environment are you using? Sep 03 00:47:08 Android Studio Sep 03 00:47:10 but, your test won't work either. in order to test orientation, you should extend from ActivityInstrumentationTestCase2 Sep 03 00:47:29 then do assertTrue(getActivity().evertyhingElse()) Sep 03 00:47:43 oh ok, well thats another thing.. this is weird though the AndroidTestCase suggested the @Test annotation itself Sep 03 00:47:50 and the import of org.junit.Test Sep 03 00:47:53 and now its like it can't use it Sep 03 00:47:55 oh, actually you don't need that import line at all Sep 03 00:48:00 nowhere do you use Test Sep 03 00:48:07 nm you do Sep 03 00:48:08 i lied Sep 03 00:48:24 i wouldn't worry about that @Test annotation, i've never seen it Sep 03 00:49:02 but but but.... the guide you gave me :D Sep 03 00:49:03 "Typically a JUnit test is a method contained in a class which is only used for testing. This is called a Test class. " Sep 03 00:49:12 To write a test with the JUnit 4.x framework you annotate a method with the @org.junit.Test annotation. Sep 03 00:49:16 @Test Sep 03 00:49:17 ah Sep 03 00:49:25 android doesn't use Junit 4, it uses JUnit 3 Sep 03 00:49:34 that's right Sep 03 00:49:35 would be very nice if it used 4, but sadly it doesn't Sep 03 00:49:58 if I shot my brains out and my face landed on the keyboard it would looke like this Sep 03 00:50:02 sfioemfawåhjf Sep 03 00:50:28 for JUnit 3 (and thus all Android tests) all you have to do is write methods with the pattern "public void test*()" and house them inside a class that has TestCase as an ancestor Sep 03 00:51:41 for in-app billing, I uploaded my new billing/test APK now it shows 2 version (my current prod version and another in draft prod mode). Is this normal? Sep 03 00:51:51 i need to wait 2-3 hrs now to test my code? Sep 03 00:53:23 sarbs thx I removed the annotation and found that this test worked Sep 03 00:53:29 assertTrue(true) Sep 03 00:53:36 I had my suspicion it would be false.. but turned out true Sep 03 00:53:40 so .. days over for me Sep 03 00:53:45 P3nnyw1se congrats ;) Sep 03 00:54:32 thx.. and just to be clear.. why couldn't I get orientation the way I attempted ? Sep 03 00:55:57 new HomeActivity() will fail in many weird ways, because Activities and most other framework objects are only meant to be instantiated by the system Sep 03 00:56:36 keep it to one instantiation Sep 03 00:56:38 ActivityInstrumentationTestCase2.getActivity() creates the Activity for you and runs it through all the expected lifecycle events (including literally displaying it onscreen) before giving it to you Sep 03 00:57:00 oh hmmm that sounds nice Sep 03 00:57:33 for any test that involves a UI component, you will most likely want ActivityInstrumentationTestCase2 Sep 03 00:57:54 for business-logic stuff only, i commonly use TestCase or AndroidTestCase Sep 03 01:00:02 so would you do a class for each way. androidtestcase.. activityinstrumationtestcase ? Sep 03 01:00:48 i do one class for each component under test Sep 03 01:01:01 for each of my Activities i have a AITC that runs them through UI exercises Sep 03 01:01:33 for each of my data objects i have a TestCase that puts them through parcelable tests, various sanity checks, etc Sep 03 01:02:30 sounds a bit ahead of me, but I get the point especially with the last part Sep 03 01:02:34 reuse the enviroment setup Sep 03 01:02:38 yeah but do you have unit tests for your unit tests? Sep 03 01:02:51 I can test your unit Sep 03 01:02:53 ! Sep 03 01:03:36 desmin88 actually, i seriously have written those ;) but then, the components i was working on were the test framework itself Sep 03 01:04:19 and then dont forget to have a testing framework for your testing framework Sep 03 01:04:52 ALL THE THINGS Sep 03 01:05:26 I solved the problem with dagger Sep 03 01:05:35 don't forget to inject a TestingFrameworkTestProviderFactory Sep 03 01:05:38 Papipo what was it? Sep 03 01:05:48 I was injecting in onCreate, and I should do that in the constructor (I am talking about a fragment) Sep 03 01:06:02 so when I needed an injected var, it wasn't there yet Sep 03 01:06:03 ;D Sep 03 01:06:08 JesusFreke they deprecated the constructor, now it's TestingFrameworkTestProviderFactory.Builder Sep 03 01:06:29 hmm, variant.registerJavaGeneratingTask(task, sourceFolder1, sourceFolders2,...) is adding sourceFolder1/2 to the sourceSet, but variant.addJavaSourceFoldersToModel(sourceFolder1, sourceFolders2,...) is *not* ... is this a bug ? not like there is much documentation Sep 03 01:06:51 another day wasted fucking with stupid shit Sep 03 01:07:16 g00s still having issues with the source folders? Sep 03 01:07:30 desmin88 well, yeah :| Sep 03 01:07:37 actually onAttach might be better Sep 03 01:07:49 i mean source folders for generated source code. stuff was working until the last AS update Sep 03 01:07:56 but, anyway, it was just that my call to inject() was in the wrong place Sep 03 01:09:13 is this generated source from annotations or what Sep 03 01:09:21 no, from a custom task Sep 03 01:09:25 o Sep 03 01:09:42 just a simple Exec task Sep 03 01:09:59 what does your build.gradle look like Sep 03 01:10:26 i'm in the process of experimenting so its a mess Sep 03 01:10:36 i like messy Sep 03 01:10:37 desmin88 have you used registerJavaGeneratingTask ? Sep 03 01:11:46 not in any of my projects Sep 03 01:11:51 but i know what it is Sep 03 02:13:57 jug6ernaut: i have no idea Sep 03 02:14:05 the whole library was just me experimenting with stuff Sep 03 02:22:54 JakeWharton: lol Np. Got past that issue but ran into another one with aspectj. Not including the modified Hugo class. But I'll figure it out. **** ENDING LOGGING AT Wed Sep 03 02:59:59 2014