**** BEGIN LOGGING AT Thu Oct 16 03:00:00 2014 Oct 16 03:03:56 yup Oct 16 03:04:10 no one ever rationalizes themselves as "evil." Oct 16 03:04:17 they all have a story that sounds good. Oct 16 03:04:53 heh, sorry I could not help myself, its a classic problem Oct 16 03:04:59 you just have to trust yourself I guess. Oct 16 03:06:42 lasserix also, too vague. def capitalize :| Oct 16 03:07:35 ...Ireland to close corporate tax loophole used by Google and Apple , thats good Oct 16 03:07:45 aww saw that Oct 16 03:09:46 "The maneuver involves a company's setting up two Irish subsidiaries. One collects profits and routes them through a second that has its headquarters for tax purposes in an even lower-tax nation, such as Bermuda, which has no corporate taxes." Oct 16 03:09:55 oh Google Oct 16 03:10:17 i didn't realise how many corps were doing it, pretty smart really Oct 16 03:10:45 privatize gains, socialize losses ;) Oct 16 03:12:56 bankai_au did you ever write a custom rx Shceduler ? Oct 16 03:13:01 *Scheduler Oct 16 03:13:01 does the app angine support downloading.uploading files? Oct 16 03:13:44 ah, the double Irish - sounds like more fun than it is, but that's accountants for you Oct 16 03:14:11 could i upload.download images to an app i develop.release? Oct 16 03:14:47 g00s: i did yes Oct 16 03:14:54 i needed restful server for app idea i had, was going to putit off butif i can use appengine to get started... Oct 16 03:15:21 bankai_au i'm confused :| suggest any good examples? i'm looking at the rx Schedulers but not quite sure ... Oct 16 03:16:01 did you see my ios one ? Oct 16 03:16:16 it's VEEERRRYYY basic Oct 16 03:17:08 looking Oct 16 03:18:07 who is this ashley character :) Oct 16 03:19:51 yeah i still don't get it. hmm Oct 16 03:22:15 lasserix, just use appengine, it's mostly free and scales affordably Oct 16 03:22:54 need blob store for files, but it's still free, but requires that billing be enabled Oct 16 03:27:35 I would love to see what a first-party reddit app looks like Oct 16 03:27:46 Since all third-party ones are sub-par Oct 16 03:27:57 JacobTabak: where's that bug I told you to file? Oct 16 03:28:11 you think im yo bish? Oct 16 03:28:23 i was busy making a pull request that will be ignored for a few days :P Oct 16 03:28:49 Not my project (despite having done most of the work)... but I'll take a look. Oct 16 03:28:56 I haven't been at a computer since you created it. Oct 16 03:29:01 it's ugly Oct 16 03:29:03 copy pasta Oct 16 03:30:18 Yeah I glanced on my phone. Oct 16 03:32:55 Is anyone using build flavours with GCM push notifications ? Oct 16 03:34:29 Do you specifically mean with manifest merging of the permissions stuff? Oct 16 03:35:59 yes Oct 16 03:36:04 manifest is my problem... Oct 16 03:36:28 push notifications doesnt work on android 2 then Oct 16 03:38:06 it works on 2.2+... Oct 16 03:39:11 pfn: with build flavours ? Oct 16 03:39:23 I don't know, I don't use gradle Oct 16 03:39:46 ah, sbt Oct 16 03:39:54 I should try too Oct 16 03:40:59 I don't have a flavors specific solution, but it's quite easy to setup a multi project build that works like flavors Oct 16 03:41:15 well, quite easy if you're familiar with sbt Oct 16 03:41:22 absolutely confusing if not Oct 16 03:43:50 pfn: does standard scala libs work on android ? Oct 16 03:44:14 i.e. if I write some lib on desktop and use nothing but scala, create a jar and put it as dependency in android project, will it work ? Oct 16 03:44:19 it should but.... Oct 16 03:47:04 I don't understand why you keep referencing gradle Oct 16 03:47:12 the build system doesn't affect the runtime Oct 16 03:47:21 you either have problems with manifest merging, or you have problems with GCM Oct 16 03:48:49 JakeWharton: sorry if I confused you. Indeed, Gradle doesn't matter here Oct 16 03:48:58 I got only one manifest file Oct 16 04:02:14 is there a way to set stroke to be inner? Oct 16 04:02:18 ie i am drawing a circle Oct 16 04:02:27 wanting it to fill the canvas, Oct 16 04:02:55 isn't there an easy way to set stroke so that i don't have to do some calculation to offset the radius to account for the stroke width? Oct 16 04:03:50 nice, appcompat-v7 with material support https://twitter.com/romannurik/status/522490559571570689 Oct 16 04:04:42 we knew that from I/O Oct 16 04:05:18 yeah, dunno why roman had to tweet that Oct 16 04:05:27 so android 2.3.+ will get material design too ? Oct 16 04:06:46 also https://plus.google.com/+ChrisBanes/posts/gmAV3n2wmXs Oct 16 04:07:38 2.1+ Oct 16 04:08:04 wonder how all these old devices will handle that animations and stuff but.... Oct 16 04:08:11 they won't Oct 16 04:08:16 it's progressive enhancement Oct 16 04:08:38 well, they should die already Oct 16 04:08:48 i'm surprised they are still going down to 2.1 Oct 16 04:09:44 hello all Oct 16 04:09:47 g00s: no choice Oct 16 04:09:51 yo peeps Oct 16 04:09:52 hey QubeZ Oct 16 04:10:11 hey g00s Oct 16 04:10:39 baby qube yet ? Oct 16 04:10:57 in the hospital now on WiFi... born this afternoon 7lbs 7 oz baby boy Oct 16 04:11:00 mom and baby are well Oct 16 04:11:13 QubeZ goot to hear, congrats :) Oct 16 04:11:14 resting and I have nothing to do at 11p so I'm on here burning time Oct 16 04:11:19 thank you Oct 16 04:12:59 gotta plan for some sleepness nights now :) Oct 16 04:13:59 for sure... been through this once already. This is my 2nd boy. Oct 16 04:14:29 :D Oct 16 04:51:19 gordon_, yes Oct 16 04:51:25 gordon_, works fine Oct 16 04:54:13 ok, thank you Oct 16 04:59:06 you can't drop it into a regular android build, but it otherwise works fine Oct 16 04:59:24 regular = ant or typical gradle Oct 16 04:59:40 but there's also a scala gradle android plugin or something now Oct 16 05:00:37 can't imagine it being any good taking several minutes to build each time, though Oct 16 05:02:21 you still need to dex scala jar each time, right ? Oct 16 05:02:45 not quite, proguard first then dex Oct 16 05:03:00 it's too big to dex Oct 16 05:03:21 read that there's one option to put scala.jar on android Oct 16 05:03:28 and dont proguard it each time Oct 16 05:03:32 yeah, it's pretty useless Oct 16 05:03:43 ah, ok Oct 16 05:03:54 the time is the same ? Oct 16 05:04:19 only works for rooted devices Oct 16 05:04:37 but for development it should be good, right? Oct 16 05:04:44 (just asking, no experience with that) Oct 16 05:04:58 marginal speedup Oct 16 05:05:31 large if using gradle, I suppose Oct 16 05:09:37 from what I've heard it's the best to use sbt with scala Oct 16 05:13:18 hello all, i am on Samsung GT S5830i, and tried to flash my gingerbread and install Jellyblast.. (did this without odin) now after installing this update.zip http://forum.xda-developers.com/showthread.php?t=1645164 and jellyblast.zip ... the phone gets into boot loop Oct 16 05:13:26 i understood that i did not root my device before installing the ROM Oct 16 05:13:33 to recover from this stage - should i go ahead and remove the wipe cache partition ? Oct 16 05:15:22 gordon_, pretty much Oct 16 05:15:49 gordon_, sbt is practically a mini ide Oct 16 05:17:18 minus a debugger Oct 16 05:17:55 solofight this is for development only Oct 16 05:18:44 but id wipe all that thing and even reinstall or install aa different rom... my S3 died to the last cyanogen mod and i had to Oct 16 05:18:46 cliffreich: not getting help in #android, so thought il ask here.. didn't want to take one more wrong step and brick my device Oct 16 05:18:51 sorry Oct 16 05:20:22 i wont update my CM ever again or ill switch rom Oct 16 05:21:19 damn loop of death Oct 16 05:23:48 why doesn't g+ photos do immersive/kitkat mode already Oct 16 05:23:54 it looks like garbage Oct 16 05:25:21 solofight: #android-root Oct 16 05:25:26 cliffreich: last question - how do you wipe everything off ? Oct 16 05:25:41 thank you gordon_ Oct 16 05:26:53 i think your rom is the problem, so another rom will solve it (the install process will wipe all you need)... but better ask in there Oct 16 05:27:23 cliffreich: sure thanks Oct 16 05:29:55 damn, my app is all made of eventbus events heh Oct 16 05:30:16 I have a custom view which draws 3 circles side by side horizontally, if i make a set of 30 of these rows Oct 16 05:30:24 no matter if i use scroll view and linear layout or listview, Oct 16 05:30:28 it is not smooth Oct 16 05:30:39 there's no GC problems, etc Oct 16 05:30:55 *it is not so smooth, is there something I am missing about custom views and drawing? Oct 16 05:31:11 maybe it is an optical illusion hmm Oct 16 05:32:06 draw should only be called once and then cached in the GPU Oct 16 05:32:18 scrolling should not cause re-draw of the circles Oct 16 05:32:41 how to enable? Oct 16 05:32:48 and what if I can't use HW accel since i want to use shaders? Oct 16 05:33:26 i don't ever call invalidate explicitly Oct 16 05:35:40 is calling setDrawingCachedEnabled at the end of onDraw sufficient to enable the caching? Oct 16 05:37:22 if you have a targetSdkVersion of 14 or higher it should be enabled automatically Oct 16 05:37:57 hmm yeah i am targeting 11 or 13 right now cause dont know if the person will want 2.3 yet Oct 16 05:38:09 do you know a class i can look at for how to use it? Oct 16 05:38:58 and this only works for HW accelerated, so if I am now using hw acceleration I'm sol? Oct 16 05:43:52 you targetSdkVersion should be 20 Oct 16 05:43:58 ahh yeah Oct 16 05:44:00 sorry it is Oct 16 05:44:02 and on friday it should be 21 Oct 16 05:44:09 (maybe) Oct 16 05:44:12 how do i use setDrawingCacheEnabled and onDraw? Oct 16 05:45:08 or do i disable and enable it when its scrolling, so use onScrollListener to disable.enable drawingCache? Oct 16 05:47:32 is something like this sufficient? http://pastebin.com/B29YpErt Oct 16 05:48:05 well nope, that did not work ;p Oct 16 05:49:01 well anyone know of a class that uses drawingCache? Oct 16 05:49:52 zzz Oct 16 05:50:01 hi Oct 16 05:50:40 i wonder if my sticky recycler headers lib is gonna take off Oct 16 05:51:12 when L comes out Oct 16 05:52:06 i should move it to maven Oct 16 05:52:59 central* Oct 16 05:56:26 JakeWharton: can you point me somewhere on how to use drawing cache as you mentioned? (or are you saying it should be happening already, if my taget is 20) ? Oct 16 05:56:44 there is not one instance online i can find where people use it for anything but grabbing stuff for screenshots Oct 16 06:07:20 does anybosy know the Development of a SDK Oct 16 06:07:32 and an app which consumes the this SDK Oct 16 06:07:35 ? Oct 16 06:09:28 ahh Oct 16 06:09:32 i had HW accel disabled Oct 16 06:09:36 because you can't do shaders Oct 16 06:09:38 no wonder Oct 16 06:10:11 JakeWharton: do I have to manipulate the drawing cache in the onDraw method of the custom view, or just enable drawing cache on the linearlayout containing all the rows? Oct 16 06:10:16 yeah Oct 16 06:10:18 that worked thanks! Oct 16 06:40:02 lasserix: you there? Oct 16 06:53:24 this is strange, my custom optionsmenu items arent being displayed Oct 16 07:05:41 oh this damn thing Oct 16 07:05:43 anyone here Oct 16 07:05:58 my fragment activity wont display my menu items Oct 16 07:06:08 should i switch to regular activity Oct 16 07:13:00 there is Oct 16 07:13:02 there is Oct 16 07:17:07 I'm having problems with a share library I build for arm (v7a) android, it's using c++ stl and hence needs libgnustl, but I can only get it to link with the shared version (libgnustl_shared), and I guess that would be ok if I knew that libgnustl_shared was availible but it seems like at least some of amazon's android devices does not include that lib Oct 16 07:18:22 I get a lot of "unresloved references" when I build against the static version or using the -static-libstdc++ flag Oct 16 07:18:22 can someone help me with this Oct 16 07:18:33 http://stackoverflow.com/questions/26367706/mediametadataretriever-getframeattime-return-first-frame-only Oct 16 07:20:03 is there anyway of knowing which libraries are availible for a specific android version? Oct 16 07:34:15 hi Oct 16 07:34:44 is there a way to detect whether or not there is an nfc tag in range when my app starts? Oct 16 07:44:49 mornin Oct 16 07:44:58 morning :) Oct 16 07:45:10 Hi, does anyone know if Google fixed the OpenVPN implementation on Android L???? Oct 16 07:45:30 I heard L is coming online very soon but it seems like OpenVPN is still broken.. Oct 16 07:45:42 with L Preview's implementation of the routing tables Oct 16 07:46:34 hopefully there is a bug filed Oct 16 07:46:40 hmm Oct 16 07:46:46 there is Oct 16 07:46:47 does L support openvpn by default now? Oct 16 07:46:53 but no one seems to care?! Oct 16 07:46:57 https://code.google.com/p/android-developer-preview/issues/detail?id=346 Oct 16 07:47:38 O.o Oct 16 07:48:39 why not apply patch ? ;) Oct 16 07:49:09 where?? where's the patch? please.. any help right now is appreciated.. Oct 16 07:49:39 i'm using L2TP / ipsec Oct 16 07:50:21 Please... if anyone know of any fix regarding this.. I would really appreciate any pointers... Oct 16 07:50:34 dck28 anyhow, the bug is not related to app dev Oct 16 07:51:44 dck28 wait until the L images on friday Oct 16 07:51:47 Mmmm? I'm working on a openvpn implementation on Android.. and I'm just wondering if anyone can help me with it... Oct 16 07:52:14 dck28: I was talking about writing the patch and apply to android sources ;) Oct 16 07:52:43 Ohhhhh... yeah.. I need them to please please take a look at this... i'm starting to get a bit worried.... Oct 16 07:58:56 issue #346 ... Oct 16 07:59:10 did they run out of iDs for issues and start wrapping around back to 0 :D Oct 16 07:59:46 maybe they needed to use 'long' :) Oct 16 08:01:08 hello Oct 16 08:01:41 guys i could use some help Oct 16 08:01:56 having a hard time understanding fragments Oct 16 08:02:06 anyone is on ? Oct 16 08:04:41 ask your questions Oct 16 08:05:20 i have a fragment which works fine with all my activity but one Oct 16 08:06:18 in that activity i have two instance of the same fragment and i am passing same set of arguments to both fragments while adding them to the layout Oct 16 08:06:52 but only single instance of the fragment recives the argument Oct 16 08:07:27 i have not been able to figure out the reason for this Oct 16 08:07:46 pastebin the code where you create and add them to the activity Oct 16 08:10:37 you guise ever use this? https://github.com/47deg/android-swipelistview/tree/3a62153e08d9199c48958df345e42872ae4c070e Oct 16 08:10:48 well, without the tree :P Oct 16 08:14:03 hmm, I have three textviews in a row Oct 16 08:14:50 the one on sides easily aligned to sides using alingParentRight/Left=true Oct 16 08:15:15 android:gravity=horizontal_center not fixing the one in center :-( Oct 16 08:15:29 sorry got disconnected Oct 16 08:15:31 http://pastebin.com/QqhftkQb Oct 16 08:15:36 here is the code Oct 16 08:21:21 Odaym, the demo on google play crashed for me :p - but no, I haven't used that before Oct 16 08:21:54 why, it doesn't crash Oct 16 08:22:00 well I figured out what I wanted to ask Oct 16 08:23:03 it did crash for me on the first time Oct 16 08:23:31 nirab123, how do you figure only one of them is getting args? Oct 16 08:30:39 hmm, Android testing is broken in so many ways Oct 16 08:30:42 can someone help me with this Oct 16 08:30:47 doesn't Google use unit tests at all? -_- Oct 16 08:30:49 http://stackoverflow.com/questions/26367706/mediametadataretriever-getframeattime-return-first-frame-only Oct 16 08:31:04 my row layout http://pastebin.com/zdfCFZYn Oct 16 08:31:45 the author textview is pushing to right towards the ups Oct 16 08:32:38 Looney, what do you mean? Oct 16 08:32:50 I initially started with android:gravity=center Oct 16 08:32:59 hmm, the author textview Oct 16 08:33:07 instead of centering in row Oct 16 08:33:23 is pushed towards right side (ups) Oct 16 08:33:51 Looney, that's because you have "toLeftOf" Oct 16 08:33:59 ups and author are IDs of textviews I am using in xml Oct 16 08:34:06 Looney, "toLeftof" and "centerInParent" at once make no sense Oct 16 08:34:12 ok Oct 16 08:34:14 they give conflicting orders :) Oct 16 08:34:32 so, only layout_below is enough Oct 16 08:34:39 toLeftOf = put view touching to the left of target Oct 16 08:34:48 ok Oct 16 08:34:48 centerInParent = center view in the relativelayout Oct 16 08:35:46 is centerinparent good or I should go with good ol' android:gravity Oct 16 08:36:03 Looney, those are two different things Oct 16 08:36:22 centerInParent : put whole TextView in the center of RelativeLayout Oct 16 08:36:31 android:gravity = center text inside the TextView Oct 16 08:36:36 ok Oct 16 08:37:04 so if you have wrap_content on textView, android:gravityh probably won't do anything Oct 16 08:37:11 since TextView is the exact size of the text :) Oct 16 08:39:33 Mavrik: you are a life-saver :-P Oct 16 08:39:36 any idea? Oct 16 08:39:50 I have tried most combinations I can find Oct 16 08:40:02 but removing toLeftOf did the magic Oct 16 08:42:40 Looney, yeah, the trick is not to give RelativeLayout conflicting orders Oct 16 08:42:45 it took me a long time to really get that Oct 16 08:42:59 but you got me there quicker Oct 16 08:43:09 e.g. that when you say "toLeftOf" it really means "make right border of this view touch the left border of target view" not "put it somewher eto the left " Oct 16 08:44:22 One of my old apps has a free and a pro (paid) version since it was released before Google implemented inapp billing. Is there any efficient means of removing the pro version from the store, whilst detecting the users who bought it in the free version? Oct 16 08:45:11 sory Oct 16 08:45:20 my connection is unstable Oct 16 08:45:29 keeping on being disconnected Oct 16 08:45:48 nirab123, how do you figure only one of them is getting args? Oct 16 08:46:20 i have log statement in my fragment Oct 16 08:47:14 and i have used the data to render some customviews in my fragment Oct 16 08:47:54 well I'm going to need a testcase to be able to help you further Oct 16 08:48:58 i can share my whole code in github Oct 16 08:49:08 sure ok Oct 16 08:49:28 can some one help me, that make me crazy in last 4 days Oct 16 08:49:39 http://stackoverflow.com/questions/26367706/mediametadataretriever-getframeattime-return-first-frame-only Oct 16 08:49:56 Is there any way on Android to check whether a Tweet has been sent or cancelled? I can't seem to find any callbacks that it the Twitter app triggers or sents back to the app it was called from Oct 16 08:50:59 is there some where that help about my problem , i don't understand why this simple code don't work as expected Oct 16 08:52:29 VnM: surely youd need to use the twitter API. not expect android to register it. Oct 16 08:53:52 hi, is there an easy way to display xml? like most browsers implement it, when you open a pure xml Oct 16 08:54:02 hi! regarding these "5000 new apis" in Lolipop i keep reading about, are they refering to the added wear tv and auto or have they made a lot of changes to the mobile apis as well? Oct 16 08:55:06 derge hardly any I think, they are just getting like apple with their numbers now :) Oct 16 08:55:17 VnM, if the activity doesn't return a result to you, then no Oct 16 08:55:22 dont matter were they come from 9,995% of the time Oct 16 08:56:17 Yeah it doesn't sadly Mavrik and was afraid of that rgr, guess I'll see if twitter4j lib fixes anything, but I'm afraid that'll only work with the official twitter app and not the custom ones like Tweetdeck, Plume and the likes Oct 16 08:56:28 StingRay_: ok thanks. guessed it was something like that but was a little worried i'd have to relearn how to build android-apps since 5000 is a quite large number :) Oct 16 08:57:04 derge the only thinks that are really new is the hero helper stuff and activity transition I think Oct 16 08:57:21 res either has always been there or is just composites Oct 16 08:57:24 VnM, twitter4j will force the users to log in again in your app Oct 16 08:57:28 I doubt many will want to do that. Oct 16 08:57:32 or thats my opinion neways Oct 16 08:57:33 Yeah :/ Oct 16 08:58:48 molavy, your code has some serious syntax issues -.- Oct 16 08:58:54 Bit of a pickle there, because I have a client relying on me to send a success or cancel call for twitter functions to grey out certain areas Oct 16 08:59:11 StingRay_: saw the activity transitions on i/o, but havent heard of hero helper, do you have a link or something with more info? Oct 16 08:59:27 well no just the hero element concept Oct 16 08:59:32 I dislike social media with a passion, always some shit with Facebook or Twitter Oct 16 09:01:01 * StingRay_ loves apps that claim privacy, with FB built in :) Oct 16 09:01:09 Zharf: sorry , but just there, i fix it, my problem is about first frame return in getFrameAtTime Oct 16 09:01:21 Haha StingRay_ yeah.. but sadly client wants, client gets Oct 16 09:01:57 VnM if your client wanted ebola would you…. Oct 16 09:02:09 molavy, didn't quite fix it :) Oct 16 09:02:10 Gladly! as long as they pay Oct 16 09:02:24 pay beforehand* Oct 16 09:02:44 well, FB is worse than ebola so there Oct 16 09:02:46 :) Oct 16 09:03:18 molavy, I'm actually thinking that it only supports extracting i-frames Oct 16 09:03:26 VnM, the thing about tweets is also that they're async Oct 16 09:03:33 molavy, but that's just speculation Oct 16 09:03:35 so you don't know immediately if they were sent Oct 16 09:03:39 is there a way to detect whether or not there is an nfc tag in rage when my app starts? Oct 16 09:03:45 Zharf, it indeed does Oct 16 09:04:01 extracting non-keyframes is usually not worth dealing with :) Oct 16 09:04:28 yeah it requires decoding all the frames after the iframe Oct 16 09:09:37 StingRay_: ok, so hero elements is just the content which gets passed between activities to enable smooth animations? Oct 16 09:15:14 is there anyway that let just extract frames, (using android sdk) Oct 16 09:15:20 ? Oct 16 09:22:52 molavy easier to do a google search for that Oct 16 09:25:15 https://github.com/nirabpudasaini/WATER Oct 16 09:25:19 here is the code Oct 16 09:26:52 the problem i mentioned is in CompareActivity and SummaryFragment Oct 16 09:27:08 Zharf Oct 16 09:28:34 hai, i have an app that's just a web view, and when i change the orientation it forgets which page the web view was at Oct 16 09:28:42 can i make that not happen? Oct 16 09:30:12 no but you can use onSaveInstanceState() to remind it Oct 16 09:32:04 actually Oct 16 09:32:18 http://stackoverflow.com/a/2246555 worked better for me Oct 16 09:32:23 thanks tho :D Oct 16 09:33:56 errietta use the second answer Oct 16 09:34:00 :) Oct 16 09:34:11 yeah Oct 16 09:34:23 I mean 1st or 3rd Oct 16 09:34:28 onSaveInstanceState Oct 16 09:34:28 Yeah, not the second! Oct 16 09:34:31 Anything but that :P Oct 16 09:34:40 why not the second? Oct 16 09:34:41 like I said to begin with Oct 16 09:34:49 cause you are ignoring, not handling Oct 16 09:35:02 thats for when you want to fully control the change yourself Oct 16 09:35:12 cant just use it and do nothing though…. Oct 16 09:35:26 it's a very simple app with a webview and i don't need it to reload Oct 16 09:35:34 the web app it loads is responsive Oct 16 09:35:43 from my point of view it's handled beautifully that way Oct 16 09:35:58 errietta ok, but thats not android programming Oct 16 09:36:14 but since it's just a web page you are doing, not really an app either soo….each to his/her own Oct 16 09:36:16 :) Oct 16 09:36:32 yeah it's barely an app :p Oct 16 09:36:35 * StingRay_ thinks web apps should be clear and marked in the store Oct 16 09:36:49 so people can not waste the time in downloading and discovery ;) Oct 16 09:36:56 nirab123, had a lunch break, sorry Oct 16 09:37:06 well, unless it's a blog or personal thing Oct 16 09:37:51 No BBC Sport app for StingRay_ Oct 16 09:38:14 lol Oct 16 09:38:15 weather and news fine though ;) Oct 16 09:38:29 and better…think sport will go that way too Oct 16 09:38:30 has to Oct 16 09:38:59 It did last week actually Oct 16 09:39:09 Well, kinda Oct 16 09:39:13 the drawer is native anyway Oct 16 09:39:16 yeah, web "apps" need a new name Oct 16 09:40:21 hey guys, i'm new to android development, i downloaded android sdk and exoplayer and lin source and tried to compile it, but i get error on com.google.protobuf.X and i think i should add select library dependency. could you please help me ? Oct 16 09:40:50 You mean you want to single them out and give them some sort of mark StingRay_ so people can identify web apps from other apps? Oct 16 09:41:07 yeah 100%, little www symbol or something Oct 16 09:41:09 Do you want to bunch them up in camps afterwards? Oct 16 09:41:23 yeah, the webAppStore Oct 16 09:41:26 :) Oct 16 09:42:33 AminCX: what's the actual error? Can't find? Oct 16 09:42:46 AminCX, i thought exoplayer was already in the sdk Oct 16 09:42:52 yes, The import com.google.protobuf cannot be resolved Oct 16 09:43:25 i have an edited version of exoplayer library. Oct 16 09:43:34 When you say you linked the source, did you download the repository and try to build it, or are you including it in your own app? Oct 16 09:44:29 i just downloaded the code and selected the directory, i'm very newbie to this. Oct 16 09:50:28 nirab123, well at least one of your problems is that both your fragments are getting the exact same bundle as arguments Oct 16 09:50:30 Hi, from what directory are libraries (.so) files loaded when i use System.loadLibrary? I'm trying to integrate ZBar library to my android app and still have problem with libraries. I've already found post on stackoverflow but it didn't help. Now I'm trying to load libraris directly using System.loadLibrary. Oct 16 09:51:05 nirab123, you give a reference to a bundle to the first fragment and then overwrite whatever you put in that bundle with different data and give that to the second fragment, effectively giving the same data to both fragments Oct 16 09:51:39 nirab123, but both of them *are* getting args :) you should probably give different instance of data to each Oct 16 09:52:28 From your libs folder I believe allart Oct 16 09:52:38 Like usual libraries Oct 16 09:53:40 i have done that as well , Oct 16 09:53:43 VnM: I tried to copy files into libs, the structure is libs/armeabi/*.so but it didn't work :( Oct 16 09:53:52 so is there already some definitive page which summarizes what are new things in 5.0 from a coder's perspective? Oct 16 09:54:11 nirab123, your actual problem is related to something else though Oct 16 09:54:23 Is something giving you errors? the import? or when you're trying to call the functions inside the lib? Oct 16 09:54:30 Zharf: what is it ? Oct 16 09:54:40 VnM: also tried to copy files to jniLibs like it was in stackoverflow but still the same Oct 16 09:55:34 nirab123, I don't know yet Oct 16 09:56:01 VnM: The error message is Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1937]: 114 could not load needed library 'libiconv.so' for 'libzbarjni.so' (load_library[1092]: Library 'libiconv.so' not found) Oct 16 09:56:12 The global args is a code that i changed recently Oct 16 09:56:33 VnM: I can paste all lines to pastebin if needed Oct 16 09:56:38 trying to selected a group of widgets and just move them all down on the screen at the same time in android studio. there an easy way to do this? Oct 16 09:57:43 Zharf: previously i loaded the fragments on onclick listener for my spinners and i locally initialized args Oct 16 09:59:08 Zharf: When i comment out the code for one fragment the code works for both the framelayout Oct 16 09:59:41 Zharf: The problem is there only when there are two fragments Oct 16 10:00:54 VnM: I also found that when I use Android studio, I can't add *.so directly to the project. First, I have to create *.jar from *.so. I tried a script for gradle but it also didn't work. Now I'm lost :(. Oct 16 10:01:13 Zharf: The fragment is working perfectly in MainActivity Oct 16 10:07:22 If you're storing your libary in your libs folder, are loading the library static and are calling the methods using "native" then I'm not sure what to suggest allart Oct 16 10:08:52 how would I get a reference to a certain row in a listview so that I can set swipeDetect on it? Oct 16 10:09:41 nirab123, ok I found your problem Oct 16 10:10:17 VnM: I'm a begginer with Java and Android. I've been developing apps for more than 10 years but not in Java or Android :(. I tried both, I wanted to let it load libraries when it's the object created and when it didn't work, I also tried to load it directly using System.loadLibraries. Unfortunately it also didn't work :(. I guess I had *.so files in wrong directory but I have no idea what is the right place :(. Oct 16 10:10:47 Odaym: http://stackoverflow.com/questions/6597883/swipe-detection-for-each-row-of-listview this might be of help Oct 16 10:11:38 really bad answers Oct 16 10:14:23 Zharf: what is it ? Oct 16 10:15:16 nirab123, http://a0d8050a427a1d68.paste.se/ Oct 16 10:19:12 saved instance state ??? Oct 16 10:19:19 i dont understand Oct 16 10:19:46 read more carefully, it's doing the things in a different method and on a different object Oct 16 10:20:34 what happened with your code was that both fragments manipulated the same views on the screen because they used activity to find the view they "wanted" when they should've used their own internal view instead Oct 16 10:20:50 YUS! GSON I have vanquished youuuu Oct 16 10:20:58 so doing it in onViewCreated using the view parameter it gets will fix your problem Oct 16 10:21:08 you shouldn't use getActivity().findViewById in a fragment Oct 16 10:23:07 ok man Oct 16 10:23:11 i get it Oct 16 10:23:14 thanks a ton Oct 16 10:23:20 no problem Oct 16 10:37:05 VnM: I got it :). My code was System.loadLibrary("libiconv"); I was looking for something else and found an example where loading libraries was without lib in the name of library. The result is that System.loadLibrary("iconv"); works :). Oct 16 10:37:53 Oh awesome! Oct 16 10:38:29 There are another problems I have to solve but loading library works. Thank you! Oct 16 10:38:41 god damn it Oct 16 10:38:59 I don't think it's physically possible to implement swipe on listview items if that listview is inside a drawer! Oct 16 10:39:39 you have to lock the drawer to be able to get the swipe motion detected Oct 16 10:39:45 yep Oct 16 10:40:07 you could long click + drag maybe? Oct 16 10:40:26 I can long click and do object animator, no problem Oct 16 10:40:42 but Im asked to do swipe Oct 16 10:41:54 Hello, any specific way to handle AsyncTaskLoader while doing unit tests in JUnit. Or should I just make loader accessible in Activity and "sleep" in my Test unit while I wait and check for it to finish ? Oct 16 10:46:19 Hey, I have an issue where IntelliJ won't compile my app saying that a package doesn't exist, but it is there in the libs folder, do I need to tell the system where the package file is somehow? Oct 16 10:47:03 oh, never mind, I found that the libs folder wasn't classed as a libraries folder for the project. >< Oct 16 10:48:23 i'm trying to create a service that runs in the background of the home screen only. no activity is required. Do i need to create a bound service by extending the binder class? Oct 16 10:48:50 and somehow bind the home screen activity to my service Oct 16 10:49:07 is that possible? Oct 16 10:51:22 cerivera, what do you mean by "bind the home screen activity to my service" ? Oct 16 10:51:31 Like OS home screen ? Oct 16 10:51:34 yes Oct 16 10:51:43 what for ? Oct 16 10:51:54 building something similar to "ok google" functionality Oct 16 10:52:03 so really only needs to run on home screen Oct 16 10:52:53 so by "run on home screen" you mean just running in background all the time? Oct 16 10:53:10 well, i only really want it to work on the home screen Oct 16 10:53:18 "ok google" doesn't work within other applications Oct 16 10:53:42 so i feel like it would be pretty wasteful to be listening ALL the time Oct 16 10:54:58 You could do it with widget Oct 16 10:55:21 like, an invisible widget? Oct 16 10:55:21 I think "ok google" runs with widget Oct 16 10:55:40 ah Oct 16 10:56:05 I deleted google serach toolbar, and don't have voice option Oct 16 10:56:18 crap Oct 16 10:56:45 but i could be wrong Oct 16 10:58:04 if i make it a service, is there any way of knowing whether I'm on the OS home screen? Oct 16 10:58:12 that way I can make it run all the time and only do my magic when that's the case Oct 16 10:59:18 don't know about that Oct 16 10:59:27 alright Oct 16 10:59:30 But you can do it with widget for sure http://www.gotoquiz.com/web-coding/programming/android-development/how-to-make-an-android-home-screen-widget-update-only-when-visible/ Oct 16 10:59:49 thanks, man. I'll check it out! Oct 16 11:27:52 hey there. Tried my hand at making an app with eclipse. Question I have is that when creating a new project eclipse creates about 50 files. For a simple hello world program can't i have just one simple file that compiles to apk? Oct 16 11:30:13 creating a simple hello world app and exporting it as apk is easy enough Oct 16 11:30:23 dont mind the other files, just work in your activity Oct 16 11:34:24 just seems quite overwhelming Oct 16 11:34:57 me__ only if thats what you make it Oct 16 11:40:23 The method open() is undefined for the type Camera. Oct 16 11:40:25 hm? Oct 16 11:40:53 i'm trying to Camera.open() Oct 16 11:41:51 OverCoder wrong camera class Oct 16 11:42:10 o Oct 16 11:42:24 yea Oct 16 11:42:26 I think it would be solved if I can have a navigation drawer underneath the main view, always visible Oct 16 11:42:33 it wouldn't be detecting swipe gesture by default Oct 16 11:42:40 the main view would (the view hiding that drawer) Oct 16 11:42:41 the ide automatically imported android.graphics.camera Oct 16 11:43:17 OverCoder well, at the point of typeing "Camera" you should have a drop down with the options of graphics/hardware Oct 16 11:43:39 yes it should but i just don't know why it didn't prompt that Oct 16 11:43:58 anyway i'm very new to android, intermediate java, so i might be stupid a bit :P Oct 16 11:46:12 Is it possible that com.android.support.appcompat-v7 has min sdk version 20 and if so, does that make any sense? Oct 16 11:46:32 Oh, sorry, cardview-v7 I mean Oct 16 11:49:33 marrrk, have you tried setting the targetSdk to 19/20 and minSdk to 15 or so? Oct 16 11:49:59 19/20 being 19 or 20, not "19/20" just to be sure lol Oct 16 11:52:33 com.android.support-cardview-v7-21.0.0-rc1/AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion='20' Oct 16 11:53:44 i'm probably doing something wrong. Oct 16 11:53:48 Hmm, maybe this is relevant marrrk http://www.reddit.com/r/androiddev/comments/297xli/howto_use_the_v21_support_libs_on_older_versions/ Oct 16 11:54:25 I think I have to use this autobuild thing. Oct 16 11:54:34 or you could just wait until tomorrow Oct 16 11:55:26 Ah Oct 16 11:55:30 will they release it tomorrow? Oct 16 11:55:31 very good Oct 16 11:56:31 * StingRay_ can't wait for all apps suddenly to look the same… there will truly be 1000 apps duplicated 100,000 times on the store :) Oct 16 11:56:51 :D better go hide in your cave StingRay_ Oct 16 11:56:57 Is that sarcasm or what? Oct 16 11:57:03 just saddens me Oct 16 11:57:12 when getApplicationContext() doesn't exist, and this won't work, how can i print a Toast? Oct 16 11:57:21 hi everybody... is tehre a good way to find out where and why a Bitmap gets recycled? I am trying to do some bugfixing on an external project which crashes and says that canvas is trying to use a recycled bitmap... Oct 16 11:57:40 CameraPreview extends SurfaceView implements SurfaceHolder.Callback Oct 16 11:57:48 and I am not really sure on how to find the source of the bug, because I don't know where and why the bitmaps get recycled... Oct 16 11:57:50 this is the class i'm printing the toast from Oct 16 11:58:01 (the bug also only happened on a Nexus 4 so far) Oct 16 11:58:23 evident, use your IDE Oct 16 11:58:32 open Bitmap class and use "find usages" on recycle() method Oct 16 11:59:40 I'll have a look Oct 16 12:01:49 OverCoder, think you'll need to pass the context to that class or your text to a class that does have the context Oct 16 12:01:53 well in my code I am only calling recycle() once for the decoded resource itself... It loads a Bitmap using BitmapFactory.decodeRecource(...), then creates a scaled bitmap and only saves the scaled one. The original one is being recycled... Oct 16 12:02:45 And the whole code works fine for almost all devices... except the Nexus 4 on 4.4.2 ... so I am wondering whether the bitmap gets recycled by the system somehow? Oct 16 12:02:59 no, it doesn't. Oct 16 12:03:16 evident, it's entirely possible that scale returns the same bitmap back to you though Oct 16 12:03:19 it's documented in the call. Oct 16 12:03:56 ahh ok and if I recycle it then, I will recycle the one I want to use... Oct 16 12:05:47 mhm Oct 16 12:06:00 evident, note that recycling bitmaps isn't needed after 4.x anymore really Oct 16 12:06:01 that makes sense... it's a fruit clicking game with images ordered in a grid... and the error only occurs on medium difficulty... on higher difficulty, there are more fruits in the grid, ergo they are smaller Oct 16 12:06:53 yeah unfortunately it's a customer project so it needs to support 2.2+ as until now Oct 16 12:07:04 but your tip helps me a lot to find the bug though :) Oct 16 12:08:33 So will tomorrow's release bring backwards compatibility for Material "stuff"? Oct 16 12:09:13 hmm Oct 16 12:09:20 what material sutff ? Oct 16 12:09:22 :) Oct 16 12:09:33 stuff* Oct 16 12:09:39 Buttons! Oct 16 12:09:47 android has button Oct 16 12:09:53 already :) Oct 16 12:10:08 Does it have a button that animates a circle where you press? Oct 16 12:10:15 if you mean an animated circle on a touchEvent bound to the inside of a button view then …we already have that too Oct 16 12:10:40 Where is it, where is it? Oct 16 12:11:05 it onDraw() and a circle in a custom drawable Oct 16 12:11:14 takes like, 10 min to do Oct 16 12:11:35 Ah Oct 16 12:11:39 So we don't have it! Oct 16 12:12:01 well, you have everything you need to do it Oct 16 12:12:09 but no, no1 has done it for you yet Oct 16 12:12:22 Do I have to make custom subclasses of all the widgets that I want to have it? Oct 16 12:12:33 no, it's just a drawable Oct 16 12:13:34 Mavrik: your tip solved it... Before recycling, I am now doing a check to see if the scaled bitmap is the original one... if so, I won't recycle it and everything works Oct 16 12:15:53 why are the spinner & edit text not showing? http://pastebin.com/vNMY1BzR Oct 16 12:16:55 android:orientation="horizontal" Oct 16 12:17:13 Yeah your LinearLayout is horizontal and the edittext takes up all the space Oct 16 12:17:14 it complained that I have to put it there Oct 16 12:17:25 although in another view it is not needed Oct 16 12:17:35 or to answer your question exactly android:orientation="horizontal" and Oct 16 12:17:36 android:layout_width="match_parent" Oct 16 12:17:58 We're talking about the LinearLayout that contains all your content, not the nested one Oct 16 12:18:18 yeah oh okay I can put vertical too Oct 16 12:18:24 so line 10 and 15 is the answer Oct 16 12:18:27 :) Oct 16 12:19:49 hmm, so why is it not needed here: http://pastebin.com/1QrpS0Ly ? Oct 16 12:20:24 absence = default Oct 16 12:20:50 default is vertical i guess, not that I ever dont specify Oct 16 12:21:11 cant I have a navigation drawer that appears below the main host activity? Oct 16 12:21:16 on the wrong before it complained and said horizontal is default Oct 16 12:21:39 Odaym you can have what you want Oct 16 12:21:58 it's all just views :) Oct 16 12:22:18 but if you use androids one, you maybe have lots of constraints Oct 16 12:22:41 hmm very confusing...but thanks folks :) Oct 16 12:23:20 I mean to simply set a property like "gravity" for the content of the drawer Oct 16 12:23:40 and then magically the drawer would push the host view to the left instead of popping over it Oct 16 12:23:51 Is it bad form to show a toast from an Application subclass? Oct 16 12:24:00 I wanna conditionally show an error message when the app first launches. Oct 16 12:24:23 Ideally, I'd do this from the Activity, but then I have to worry about whether the Activity is showing for the first time, etc. Oct 16 12:25:48 TacticalJoke kinda a odd question, answer is do what you want Oct 16 12:25:59 little things like that are your own decisions really Oct 16 12:26:07 hi Oct 16 12:27:19 Okay. Oct 16 12:27:21 Hi, h4k1m. Oct 16 12:28:35 TacticalJoke: could you please explain to me why activity.getFragmentManager().findFragmentByTag is returning null Oct 16 12:29:18 here is my problem: I need to access fragment from inside a service (I haven't developed it btw) Oct 16 12:29:58 On a side note, I hate my shiny laptop screen. Oct 16 12:30:04 Who ever thought that'd be a good idea?! Oct 16 12:31:02 Steve Jobs? Oct 16 12:31:36 well, I think dell did it 1st Oct 16 12:31:49 here is my problem: I need to access fragment from inside a service (I haven't developed it btw) Oct 16 12:31:50 to get deeper blacks Oct 16 12:31:53 I suspect that they do it only because it looks good in the showroom. Oct 16 12:31:55 Oh. Oct 16 12:32:45 h4k1m: you haven't developed what? Oct 16 12:33:10 appel1: the service isn't mine Oct 16 12:33:14 however any artist/designer you see with a glossy screen, dont hire/use them :) Oct 16 12:33:29 um Oct 16 12:33:42 that means you don't ever hire an artist or designer? Oct 16 12:34:01 no it doesn't Oct 16 12:34:30 since like 95% of artists use mac Oct 16 12:34:33 *macs Oct 16 12:34:34 same Oct 16 12:34:41 a few of them Oct 16 12:34:42 h4k1m: so what does "access fragment from service" mean if the service is someone elses? Oct 16 12:34:42 for which Apple hasn't produced matt displays in years Oct 16 12:34:58 Mavrik hence why I dont by apple macbook no more Oct 16 12:35:06 my macbook is matte screen Oct 16 12:35:10 Can anyone pm me for some question regarding base os development Oct 16 12:35:15 my monitors are all direct/matte Oct 16 12:35:17 but noone asked what you're using Oct 16 12:35:30 well anyone who does color correction etc Oct 16 12:35:30 appel1: I meant that I haven't developed it by myself Oct 16 12:35:32 I'm asking you if you're not hiring any designers anymore due to your silly statement. Oct 16 12:35:46 appel1: it's a coupled with a sync adapter btw Oct 16 12:36:19 Mavrik well designers in professional industry that do pro color correction yeah… you cant use Oct 16 12:36:24 as in cant use gloss Oct 16 12:36:46 actually thats a lie, you can if you have the kit to deal with it Oct 16 12:37:08 h4k1m: ok, how about changing the fragment so that it registers/unregisters itself from the service when relevant so the service can call the fragment if it exists? :) Oct 16 12:37:21 but most wont have the calibrators capable of it Oct 16 12:38:05 I'm sure that's very important for designs shown on miscalibrated mobile device screens :P Oct 16 12:38:06 appel1: how do I do so? using binder I guess, but is it possible to bind a sync adapter? Oct 16 12:38:12 you're not printing those on paper you know Oct 16 12:38:38 about 5x more important is that the designer actually looks at the design on Samsung's oversaturated AMOLED Oct 16 12:38:44 Mavrik yeah, well my perception of designer is not really aligned to mobile/web design :) more compositor/3d artist/ colorist Oct 16 12:39:18 * StingRay_ still thinks in VFX terms Oct 16 12:40:20 mhm Oct 16 12:40:32 sadly alot of designers doing digital design are still stuck in printing times Oct 16 12:40:39 hmm, i successfully previewed the camera on my screen, however, it's a little bitch stretched, just like 4:3 stretched to my screen resolution, the camera's native resolution (5MP) aspect ratio is 4:3, however 3MP is 16:9 Oct 16 12:40:45 what can i do about it? Oct 16 12:40:52 i mean those vary from phone to another Oct 16 12:40:55 Mavrik most still apply Oct 16 12:41:12 as in the rules…..just the margins of consideration that alter Oct 16 12:41:16 omg Oct 16 12:41:22 i mean "bit" not "bitch" Oct 16 12:41:39 lol Oct 16 12:43:09 She's a crazy bit... stream. Oct 16 12:43:53 dont like the sound of being bitch stretched Oct 16 12:44:07 even a little bit Oct 16 12:49:29 why would activity.getFragmentManager().findFragmentById('tag') return null Oct 16 12:49:56 when inspecting activity I see that this fragment exists and have the tag I'm searching with Oct 16 12:54:40 h4k1m: It depends on the code. Oct 16 13:03:25 maybe Ive to inflate the fragment view inside the onCreate Oct 16 13:04:19 inflate ? a fragment class ? Oct 16 13:11:00 Is there a way to tell Android Studio which inspections it should use and which avoid when creating a release build? Oct 16 13:18:38 Hi, is someone located in Switzerland? :) Oct 16 13:18:46 hello Oct 16 13:19:03 hi Oct 16 13:21:32 Nah Switzerland is empty at the moment, ebola or something Oct 16 13:23:53 hmm, what do I need to do, to manually root a device? Oct 16 13:24:03 without a custom rom or a recovery? Oct 16 13:24:25 If you enable all the Eclipse warnings, you get warned for accessing a private outer member from an inner class. Oct 16 13:24:26 as in, does su binary need some special permissions, etc? Oct 16 13:24:30 Isn't that part of the point of having an inner class? Oct 16 13:24:34 @VnM lol... :) we are in the middle of Europe Oct 16 13:24:36 crap, sorry, wrong channel Oct 16 13:25:28 @VnM In fact Ebola is in Europe... just saw that some cases are in France, and in US too. Oct 16 13:27:22 This is what I'm talking about: http://stackoverflow.com/questions/1086255/java-inner-class-visibility-puzzle Oct 16 13:27:51 why this is disconnecting.. >.> Oct 16 13:28:07 anyway, i can't get up with a way to make camera "fit" the screen, or in another mean, stretch the height to match the height of the screen and show black color in the left width space Oct 16 13:29:04 OverCoder do you not control the view that the preview is being show on ? Oct 16 13:29:45 no i don't control it but i can Oct 16 13:29:55 well that means you do then Oct 16 13:30:00 if you can, you do Oct 16 13:30:01 lol Oct 16 13:30:09 * OverCoder facedesks for 2.5f hours Oct 16 13:30:32 and the answer was layout parameters Oct 16 13:30:34 ? Oct 16 13:30:42 hmmm Oct 16 13:30:53 so change layout parameters to match camera's resolution? Oct 16 13:31:00 no Oct 16 13:31:19 change them to match the aspect of the particular preview size you a grabbing Oct 16 13:31:30 o Oct 16 13:31:33 o right Oct 16 13:31:35 hmm Oct 16 13:31:38 * OverCoder went to code Oct 16 13:31:39 unless 1:1 pixel correlation is important in this preview :) Oct 16 13:32:24 i mean i just want a simple preview i and i won't be using the camera to capture anything, it's just for the user Oct 16 13:32:35 stop saying simple Oct 16 13:32:39 NOTHING IS SIMPLE Oct 16 13:32:48 hmmm Oct 16 13:36:52 Eclipse is so cool, supporting Ctrl+W, Ctrl+Shift+W, and so on. Oct 16 13:37:10 pro IDE Oct 16 13:37:15 even right click, bro Oct 16 13:37:17 "Cool" as in "edgy; one of the big kids". Oct 16 13:37:38 you can select all, deselect, copy...the list is just endless Oct 16 13:37:49 you can even navigate cursor Oct 16 13:37:53 IDEs used to require stuff like Alt+F4 to close the current tab. Oct 16 13:37:54 I clicked Alt+Shift+R twice last night! Oct 16 13:38:02 Ctrl+F4* Oct 16 13:38:46 Odaym: You kinda missed my point. Oct 16 13:38:56 Ctrl+W and Ctrl+Shift+W aren't really "standard" shortcuts. Oct 16 13:39:01 they are for Mac Oct 16 13:39:06 since long ago Eclipse had them Oct 16 13:39:14 nothing praise worthy Oct 16 13:39:15 I was sarcastically calling Eclipse cool and edgy for supporting this. But, at the same time, I am glad it does support this. Oct 16 13:39:24 oh yea, then me too Oct 16 13:39:26 :) Oct 16 13:39:56 it's better than any software I'd write in a million years, but still, can't get myself to praise it Oct 16 13:40:24 Work with enough, and you'll get Stockholm Syndrome like the rest of us Oct 16 13:41:04 I'd use Android Studio, but I work on large projects, and the build speed difference between Eclipse and AS is big enough to not switch, just for that Oct 16 13:41:19 * danijoo leans back to watch another AS vs intellij vs eclipse debate Oct 16 13:41:36 popcorn? Oct 16 13:41:52 MAN AS SUCKS BROOO Oct 16 13:41:54 lol danijoo Oct 16 13:41:54 haha Oct 16 13:42:07 Chainfire: Yeah, I have Stockholm Syndrome regarding Eclipse Oct 16 13:42:08 . Oct 16 13:42:10 netbeans! Oct 16 13:42:11 Hi everybody I'm having a problem with fragments I created this fragment : http://pastebin.com/BriDVzeg and I'm doing this http://pastebin.com/8kRf9c4b on my Activity to show the fragment unfortunatly it doesn't show anything Oct 16 13:42:13 (a challenger appears!) Oct 16 13:42:14 I've started saying "Eclipse isn't that bad". Oct 16 13:42:20 I rock at Eclipse, there is NOTHING I cannot make it do Oct 16 13:42:29 And I, too, am stuck on Eclipse while waiting for Android Studio not to suck so much. Oct 16 13:42:35 Build times, JVM unit testing, ... Oct 16 13:42:37 wish my problems were more IDE than development Oct 16 13:42:38 lol Oct 16 13:42:50 not to mention that project management is easier with eclipse Oct 16 13:43:07 wathek: your fragment has no view to show Oct 16 13:43:12 could you please tell me what I'm doing wrong ? Oct 16 13:43:26 you dont call onCreateView Oct 16 13:43:42 aside from those things, I'd love to use AS, but it seems build speed is just not a priority for the devs Oct 16 13:43:48 "onCreaView" Oct 16 13:43:52 (hint) watch your spelling Oct 16 13:43:57 Chainfire: I think they're working on it. Oct 16 13:44:05 Build times. Oct 16 13:44:10 and use @Override annotation to dont make this errors Oct 16 13:44:29 danijoo: Right. Even intellisense (e.g., Ctrl+Space between methods in Eclipse) to automate the whole situation. Oct 16 13:44:43 If I'm not mistaken, right now, AS doesn't support incremental building. Oct 16 13:44:54 And, if I'm not again mistaken, AS is gonna support it. Oct 16 13:45:19 last I heard that was a Gradle issue, and Gradle is working on fixing that, and as long as they haven't, AS is going to be slow Oct 16 13:45:29 then again, I know nothing of AS or Gradle, so that may be complete nonsense Oct 16 13:45:30 TacticalJoke, oh ! Oct 16 13:45:45 sorry Oct 16 13:45:50 wathek: use @Override, then you get an error message on things like that Oct 16 13:46:03 danijoo, ok thank you gonna try Oct 16 13:46:42 I'm hoping AS is gonna be awesome. Oct 16 13:46:45 Chainfire, hmm, we've been using IDEA / AS for awhile and they did make significant improvements lately Oct 16 13:46:49 Right now, for me, Eclipse is simply better Oct 16 13:46:49 . Oct 16 13:46:57 especially by adding Gradle daemon the builds are actually bareaable now Oct 16 13:47:03 thank you so much guys ;) Oct 16 13:47:04 (on SSD equipped machine) Oct 16 13:47:20 Mavrik that's good to hear... maybe I should give it another spin soon then Oct 16 13:47:21 In AS, every time I build a project, it seems to do a complete build. Even with zero changes. Oct 16 13:47:23 Kinda weird. Oct 16 13:47:35 It's like going back in time. Oct 16 13:47:36 Anyone done junit testing ? Oct 16 13:47:41 vegetablesalad19: Yeah. Oct 16 13:47:47 Damn has anyone seen ravilov on recently, or did his PlayStore customers get to him? Oct 16 13:47:48 Chainfire, you might wanna hold back on migrating projects until you need a Gradle feature, but for new projects it's kinda ok now Oct 16 13:47:48 In Eclipse, though. Oct 16 13:48:07 TacticalJoke, might wanna enable incremental builds then ;) Oct 16 13:48:17 and not do a full clean every time :P Oct 16 13:48:19 Mavrik: It's an option? Oct 16 13:48:58 https://www.dropbox.com/s/xu4r760awa8sr0h/Screenshot%202014-10-16%2015.48.55.png?dl=0 Oct 16 13:49:23 cool Oct 16 13:49:24 new? Oct 16 13:49:27 TacticalJoke, Quick question, I set it up as new Configuration in Android-Studio - with RUN ALL IN MODULE. I have two Activity tests that work great, now i added third one and it just gets ignored. Any ideas ? Oct 16 13:49:30 yeah, newish Oct 16 13:49:31 I guess "blank" means "false". Oct 16 13:49:49 TacticalJoke,or do you set up your tests with gradle? Oct 16 13:49:53 vegetablesalad19: No idea; sorry. I don't use AS. Oct 16 13:50:04 also as I said, putting "org.gradle.daemon=true" in gradle.properties helps ALOT Oct 16 13:50:15 vegetablesalad19: Are you doing instrumentation tests or Robolectric tests? Just checking. Oct 16 13:50:17 because you don't have to wait for JVM restart for each gradle operation Oct 16 13:50:29 TacticalJoke, instrumentation Oct 16 13:50:33 Okay. Oct 16 13:50:55 on the other hand, code coverage with instrumentation tests is still broken beyond repair as of tools 20.0.0 -_- Oct 16 13:50:56 I'd probably know the answer if I used Android Studio. :D Oct 16 13:51:40 to have incremental builds is a gradle feature btw, not an AS one Oct 16 13:52:02 you can set it by adding dexOptions { incremental true } Oct 16 13:52:34 I'm hoping this'll be enabled by default when AS is released. ;| Oct 16 13:53:39 You know, I'm not really seeing how IntelliJ is so awesome compared to Eclipse. Oct 16 13:53:48 I've read so much praise for IntelliJ, and so much criticism for Eclipse. Oct 16 13:53:59 I've not used the former much, but from what I've seen it's so similar, feature-wise. Oct 16 13:54:00 TacticalJoke, getting my pitchfork :) Oct 16 13:54:55 Yeah, I've been IntelliJ fanboy since I lived through an adjustment period Oct 16 13:54:55 * TacticalJoke unsheathes a sword Oct 16 13:54:57 :D Oct 16 13:54:59 Just kidding. Oct 16 13:55:00 it just... makes more sense. Oct 16 13:55:17 I will slay all the Eclipse haters! Oct 16 13:55:23 For I am a victim of Stockholm Syndrome. Oct 16 13:56:07 Mavrik: Is there any particular feature that IntelliJ has which Eclipse doesn't? Oct 16 13:56:17 Iv been using intellj for some 5y now, started it as replacement for FlashCS IDE for AS3 Oct 16 13:56:17 hmmm Oct 16 13:56:33 TacticalJoke, I haven't used Eclipse for long enough time that I don't really remember Oct 16 13:56:40 I guess we could talk about Gradle integration, but I'm not liking Gradle much right now. :[ Oct 16 13:56:41 cool thing is that you can use it for almost everything not only java Oct 16 13:56:54 I switched initially because it worked faster and it supported Android Maven projects out of the box Oct 16 13:56:56 Hi, how do I define a HttpPatch request (apache httpclient)? Oct 16 13:57:21 android studio doesn't recognize HttpPatch keyword and givees a syntax error! Oct 16 13:59:40 ashemark: http://stackoverflow.com/questions/12207373/http-patch-request-from-android Oct 16 13:59:58 TacticalJoke thanks, just found it Oct 16 14:00:28 Google is always #1. Humans are always #2. Oct 16 14:00:40 That sounds weird out of context. Oct 16 14:01:50 The exception seems to be medical science, but maybe the Google of the future will be better than doctors, too. Oct 16 14:03:28 TacticalJoke, found my problem. Missed that all test methods have to start with "test" ! Oct 16 14:05:12 JUnit 3 sucks. ;| Oct 16 14:05:24 TacticalJoke, do you know how to set them up in custom order ( Classes )? Oct 16 14:05:27 vegetablesalad19: Personally, I never do instrumentation tests. They're so slow. Oct 16 14:06:30 TacticalJoke, I'm all ears for something better, perhaps you have some good article to read? This is my 2nd day discovering unit tests, I don't know how I'v been living without them my whole life :| Oct 16 14:07:18 vegetablesalad19: You can use Robolectric for unit-testing Android-specific stuff, and plain JUnit tests for everything else. Oct 16 14:07:27 The problem is that Android Studio doesn't really support this. Yet. Oct 16 14:07:42 vegetablesalad19: Instrumentation tests are slow and clumsy. Proper unit testing is instant and simple. Oct 16 14:08:01 It kinda sucks that your first exposure to unit testing is via Android instrumentation tests. Oct 16 14:08:15 hey guys. 'silly' question but I want to ask. I have an app on the market which needs an update. Right now it's still using the old Admob SDK. I understand that I must update it to use Google's latest ad platform to be able to upload it to the market. Would you say it's a "complex" conversion or should it be simple to implement? Oct 16 14:08:18 Unit testing is totally awesome. Oct 16 14:13:40 Here are some JVM unit tests I'm currently writing: http://pastebin.com/7Hh0TDHE Oct 16 14:13:45 I rarely enjoy unit testing Oct 16 14:13:50 It's so simple compared to instrumentation tests. Oct 16 14:14:09 integration testing is always what I really care about Oct 16 14:17:42 anyone? Oct 16 14:18:31 easy Oct 16 14:18:38 :) Oct 16 14:18:49 hmm Oct 16 14:19:05 Maybe (probably) I'm just too lazy Oct 16 14:19:13 Why do you even ask, instead of just doing it? Oct 16 14:19:22 see above :p Oct 16 14:20:00 So? Oct 16 14:20:08 I'll do it. Oct 16 14:20:16 I guess Oct 16 14:20:21 simple. Oct 16 14:20:28 I don't really have another option. Oct 16 14:20:43 I should look at getting robolectric working again Oct 16 14:20:48 Does the new ad platform generate better revenue or about the same Oct 16 14:21:21 I love unit tests. Oct 16 14:21:26 So detailed. :D Oct 16 14:21:33 Pedantry in action. Oct 16 14:21:51 The_Coolest: What has revenue to do with the sdk? Oct 16 14:22:03 its the same ad, just another api Oct 16 14:22:46 I see. I dunno, the way google was sending emails about it, sounded like it could improve things Oct 16 14:23:14 i dont get one.. Oct 16 14:23:30 I really keep the ads there so that more people buy the full version due to the annoyance factor. I made like 30 cents a day from the ads :( Oct 16 14:23:43 The only one i got was that they kick my ass if I dont upgrade to the new billing sdk until 27. january Oct 16 14:23:58 oh Oct 16 14:23:59 lol Oct 16 14:25:12 The_Coolest: Why not make it harm their device until they upgrade? Perhaps by deleting key files. Hold them to ransom. Oct 16 14:25:26 lol Oct 16 14:25:56 well I use a static banner, it's no like it has popups or adware. Oct 16 14:26:02 everyone uses that Oct 16 14:26:36 TacticalJoke that's a good business plan for the short term (till you get busted) Oct 16 14:29:59 Joking aside -- does showing ads to get people to upgrade really work? Oct 16 14:30:10 I've never seen any data here. Oct 16 14:30:22 define "work" Oct 16 14:30:30 For me, an app just feels "meh" when it has ads. Oct 16 14:30:46 Hey. How can I get the string in the top of the backstack of fragments? Oct 16 14:30:50 I doubt I'd ever feel motuvated to pay after being hit with ads. Oct 16 14:31:10 That I add with fragmentTransaction.addToBackStack("coolText"); I want to get the last fragment text.. Oct 16 14:31:39 I have just released and app. All my in app purchases are showing up in Yen for users around the world Oct 16 14:31:54 I'm in Japan so Yen is the default currency, but I have converted them though http://i.imgur.com/FC6fK3M.png Oct 16 14:32:02 I'm a bit stumped Oct 16 14:33:21 changes might take time to occur jonjons Oct 16 14:33:54 ok thank you danijoo, I just now got report that its working for one user Oct 16 14:34:18 thats why it always says "changes take time" in the top bar after a change btw :p Oct 16 14:35:10 hehe but I did this like months ago but only live today, so was not expecting that to be an issue Oct 16 14:35:35 oh okay. with time I meant hours not days. mh Oct 16 14:38:47 I got critized for auto-connecting Google Game Play Server without asking on first launch, is that considdered bad etiquette? Oct 16 14:39:11 is that not forceful usage of their google account ? Oct 16 14:39:24 yep it is Oct 16 14:39:38 cause I would KILL YOU!! O O Oct 16 14:39:43 ok, its standard in iOS so I just assumed incorrectly Oct 16 14:39:55 is it that bad? Oct 16 14:40:15 jonjons: dont make overworking hours too much ;) Oct 16 14:40:48 launched today after 2 years, its a drop in the bucket :p Oct 16 14:41:24 The_Coolest: What if you removed the ads and just told them, on first run, "You can upgrade and support development [and get other features]" or whatever? Oct 16 14:43:19 I don't know how typical I am, but I almost never use an app that shows ads. Oct 16 14:43:31 With me, I'd end up ugrading only if the free version didn't have ads. Oct 16 14:43:57 Yup, same here. Oct 16 14:44:09 TacticalJoke example of that kind of app ? Oct 16 14:44:13 that you have done that with ? Oct 16 14:44:16 Well, not completely strict about that, but mostly. Oct 16 14:44:20 StingRay_: Scramble with Friends. Oct 16 14:44:36 Phone screens are tiny. Ads in Android apps are kind of ridiculous. Oct 16 14:45:08 not the nexus 6 screen Oct 16 14:45:11 :/ Oct 16 14:45:13 lol Oct 16 14:45:34 I think the only time I'd use an app with ads is if it's some kind of background thing, where I don't have to look at the screen much. Oct 16 14:45:37 Such as a music player. Oct 16 14:46:15 Even then, the fact that it used ads would make me refuse to ever pay for an upgrade, in principle. If I were willing to pay for such an app, I'd try to find another that doesn't show ads. Oct 16 14:46:45 TacticalJoke ok do you know why there are no ads in that Oct 16 14:46:50 I do now :) Oct 16 14:46:58 just read the privacy policy Oct 16 14:47:04 When my app is brought to the foreground, will "onResume" on ALL my fragments be called? Oct 16 14:47:21 Yeah, I've not used it in a long time. I wouldn't be surprised if they steal your soul or eat your children for breakfast. Oct 16 14:49:56 why dont we all give our apps free and without ads? Oct 16 14:49:59 :) Oct 16 14:50:06 Give me all your apps danijoo Oct 16 14:50:11 That'd be an option... Oct 16 14:50:25 Not free, but I think showing ads kinda spoils the image of the app. Oct 16 14:50:29 VnM: free but full of evil ads! Oct 16 14:50:38 Every time I see an ad from an app, I think "Okay, this sucks. Let's try something else". Oct 16 14:50:49 The thing is... Oct 16 14:50:58 People just *assume* that showing ads is a way of getting people to upgrade. Oct 16 14:51:03 ads + premium gives the user 2 options of "paying" you for your work. Oct 16 14:51:05 On what evidence? Oct 16 14:51:06 I mean... I downloaded JuiceSSH, tried it, considered it useful and bought it to support it, not because I /needed/ the features desperately. Oct 16 14:51:29 flan3002: yes but what percentage of people actually do that Oct 16 14:51:31 It wouldn't surprise me to see a negative correlation between ads and upgrades. Oct 16 14:51:34 far below 10% Oct 16 14:51:38 far far Oct 16 14:51:57 Well, that's a point. :) Oct 16 14:52:13 I've paid for apps when the developer was simply awesome. Oct 16 14:52:19 TacticalJoke: And It wouldnt suprise me to see a negative correlation between income and no ads + upgrade option ;) Oct 16 14:52:27 When they simply were honest and said "Paying would help support future development". Oct 16 14:52:48 yes but thats not the majority of users Oct 16 14:53:00 most people just want to use and will never support Oct 16 14:53:09 so the only way of getting some income is ads Oct 16 14:53:16 Okay. But is showing ads really profitable in such cases? Oct 16 14:53:31 that depends on the app Oct 16 14:53:44 there are cases where ads are by far more rentable than payment Oct 16 14:53:55 ohh the good old ads vs. inapp vs. revenue discussion :) I love it Oct 16 14:54:08 i usually see ads as the way of getting income, but let users chose to buy themselves out faster Oct 16 14:54:22 evident: not as good as AS vs intellij though :( Oct 16 14:54:28 eclipse * Oct 16 14:54:30 definitely :D Oct 16 14:54:56 well the problem is ads is how annoying they are... just a banner at the top, that no one notices or clicks on? Oct 16 14:55:20 I wish we had the ability (without rooting) to refuse to let apps connect to the Internet. Oct 16 14:55:22 or an interstition with a tiny close button? or even videos that you have to watch and then click away the interstitial... Oct 16 14:55:26 That'd be great for security, too. Oct 16 14:55:49 TacticalJoke: whats your opinion on a "please upgrade, i need money!" on every app startup? :D Oct 16 14:56:02 Oh, that's too annoying. lol Oct 16 14:56:18 for example I've already uninstalled apps that suddenly introduced video ads... they had simple interstitials now or then, now they stop and i ahve to watch a 30 second video Oct 16 14:56:31 Video ads are the word. My god. Oct 16 14:56:38 and sometimes a game itself only takes a minute until game over... and another video... Oct 16 14:56:39 danijoo: But totally valid if done in Winrar-style! :P Oct 16 14:56:39 yeah videos are the greates evil.. Oct 16 14:56:45 so I uninstalled the app... Oct 16 14:56:45 because you cant stop then.. Oct 16 14:56:55 flan3002: : D Oct 16 14:57:21 id love to see winrars free vs donated usage statistics xD Oct 16 14:57:26 So there are other apps nowadays, that go pack to the paid app system... like "Alone" Oct 16 14:57:41 doesn't cost much, but is ad-free... and makes a lot of fun Oct 16 14:58:05 disadvantage is that you have to bring users to pay before they have played... Oct 16 14:58:08 problem is that actually buying apps isnt that common in android Oct 16 14:58:15 in iOS this is easier Oct 16 14:58:25 definitely Oct 16 14:58:26 it's getting more common Oct 16 14:58:41 pfn: yeah. since they introduced all those payment options Oct 16 14:59:03 back in the past when they only allowed credit card .. nobody uses credit cards here in germany Oct 16 14:59:10 nobody? Oct 16 14:59:14 and a lot of other european countries Oct 16 14:59:19 well.. not nobody Oct 16 14:59:22 I think what many developers are doing wrong now is that they offer in-app purchases that save you time... that don't offer any more features or benefit... just to avoid the artificial slowing down of the game Oct 16 14:59:23 but its not like in the US Oct 16 14:59:36 what do you use if not credit cards... Oct 16 14:59:46 pfn: yeah a lot of people don't have a credit card here Oct 16 14:59:52 (in germany) Oct 16 14:59:56 bank pin? Oct 16 15:00:00 you just pay cash for everything? Oct 16 15:00:02 Bitcoin. >_> Oct 16 15:00:06 pfn I dont know if there is something similar in the US Oct 16 15:00:09 beaver skins Oct 16 15:00:10 its called direct debit Oct 16 15:00:12 no we just use our normal banking card with pin Oct 16 15:00:19 debit cards Oct 16 15:00:25 we have direct debit, but they dont give you any rewards Oct 16 15:00:30 debit cards exist in the US, but they transact exactly like credit cards Oct 16 15:00:41 well, you can use them with a PIN or like a credit card Oct 16 15:00:43 yeah all debit cards have a cred card number Oct 16 15:00:47 or you can use your debit pin Oct 16 15:01:01 yeah. but debit cards arent supported by most pay with card internet stuff Oct 16 15:01:12 our are Oct 16 15:01:17 because they all have credit card numbers Oct 16 15:01:18 and it has taken google forever to offer Play Store gift cards over here... so much lost revenue... Oct 16 15:01:27 TachyonDev: where is "our"? Oct 16 15:01:27 all the kids spending their pocket money... ;) Oct 16 15:01:30 US Oct 16 15:01:30 mine doesnt have Oct 16 15:01:31 sorry Oct 16 15:01:34 yes. US :) Oct 16 15:01:36 not in europe.. Oct 16 15:01:41 crappy europe Oct 16 15:01:50 we have those debit cards which arent credit cards Oct 16 15:01:51 Not to mention everybody uses credit cards here to get rewards Oct 16 15:01:54 or direct debit Oct 16 15:02:12 I get 200,000 frequent flyer miles a year or something with my card Oct 16 15:02:24 TachyonDev: for selling your soul :p Oct 16 15:02:26 Yeah, not having a credit card is annoying. I actually walk to the gas-station every time I want to 'refill' my prepaid credit, which I also use to pay in Play. Oct 16 15:02:29 pff Oct 16 15:02:33 i pay off my credit card every week Oct 16 15:02:52 thats not what i mean with selling soul ;) Oct 16 15:03:00 oh .. supporting Mastercard & Visa? Oct 16 15:03:08 but you can get credit cards over here much easier now... there are some banks that give you a free VISA card... in others you have to pay an annual fee, that's why a lot of people don't get one.... and of course because you mostly don't need them... Oct 16 15:03:29 the annual fee can be worth it if you play the game right Oct 16 15:03:43 what do you mean by play the game right? Oct 16 15:03:45 evident: yeah but still its not very common Oct 16 15:04:08 evident: As long as you stay in Germany, sure. But otherwise, no way... Even signing up to Play as a developer required a credit card. (borrowed one) Oct 16 15:04:10 no not really... but at least there are the Gift cards now... :D Oct 16 15:04:22 i mean .. getting more money out of the credit card than you put into it Oct 16 15:04:28 now you can pay in play store with your mobile phone bill or paypal. this will attract more app buys i think Oct 16 15:04:30 I know a lot of people who never ever purchased an app, just because they don't have a credit card Oct 16 15:04:31 whether it is cash back, miles, points, etc Oct 16 15:05:01 ohh ok you usually don't get those rewards for German credit cards Oct 16 15:05:23 the europe credit card system is a lot diffrent from the US one Oct 16 15:05:51 yeah .. because for every person like me, there are 100 who dont pay off their bill every month Oct 16 15:05:53 europe card system sucks :p Oct 16 15:05:59 pfn: true. Oct 16 15:06:10 Hello friends, kindly help me... i'm developing an application that will make use of the data inside the sd card of android, please how can i encryt the data inside android, to make it invisible or unable for the user to access but my app will be able to work with the folders, store more files, read from it. Please, appreciate any idea Oct 16 15:06:26 eh Oct 16 15:06:31 use DiskLruCache? Oct 16 15:06:31 external sd card Oct 16 15:07:00 DiskLruCache stores in a journal file right? Oct 16 15:07:02 encrypt? ^^ Oct 16 15:07:14 so encrypt/decrupt the journal file? Oct 16 15:07:29 want to encrypt the folder where all my document reside Oct 16 15:07:31 encrypt what? if you save it as binary it will be unusable for *most* users Oct 16 15:07:36 right Oct 16 15:07:40 i don't want any user to have access to the materiels Oct 16 15:07:43 but i wouldnt use that for credit card information :pp Oct 16 15:07:46 no need for encryption then Oct 16 15:07:49 lol Oct 16 15:07:51 good Oct 16 15:08:02 how do i do that i binary Oct 16 15:08:04 hackable: Who are you protecting against? Oct 16 15:08:10 hackable: https://github.com/JakeWharton/DiskLruCache Oct 16 15:08:13 or a simple rot13 Oct 16 15:08:31 Nah, better flip bits. :P Oct 16 15:08:34 and with that you get the added benefit of disk cleanup Oct 16 15:08:42 just convert all values to octal Oct 16 15:08:46 lol Oct 16 15:08:49 i'm protecting it from copy write Oct 16 15:08:54 -_- Oct 16 15:09:04 paste erase Oct 16 15:09:06 Uhm... I don't think 'copy write' is a person. Oct 16 15:09:32 maybe another of those bad names from film star children.. Oct 16 15:09:34 ^^' Oct 16 15:09:43 i am developing a software and the data will be on external sd card, which will be given to the user separately, so i don't want the user to be able to copy the data or manipulate the content inside. want to secure it Oct 16 15:09:51 uh Oct 16 15:09:53 good luck Oct 16 15:10:24 hackable: Who are you protecting against? Oct 16 15:10:24 sounds like bad app design *duck* Oct 16 15:10:45 make a custom version of Android a encode the sdcard file system Oct 16 15:10:49 done, next Oct 16 15:10:58 and encode* argh Oct 16 15:10:59 just write to it obfuscated any way you want Oct 16 15:11:15 pfn: but he doesnt want people to be able to copy data off the sd card Oct 16 15:11:18 it's always hackable, though Oct 16 15:11:21 yeah Oct 16 15:11:25 Just don't store or transmit the data to the users device, then it's secure Oct 16 15:11:38 just include a hammer with every app purchase Oct 16 15:11:49 you can allow it to be copied off, just encode it in relation to the device ID Oct 16 15:11:50 thanks for helping me, i'll appreciate more contribution Oct 16 15:11:55 or an install-based UUID Oct 16 15:11:56 pretend to save but dont save at all. thats really secure Oct 16 15:12:27 i'm protecting it against the users Oct 16 15:12:36 flan3002 Oct 16 15:12:42 flan3002: i'm protecting it against the users Oct 16 15:13:05 You don't say... Are all your users going to copy files out of your app? Oct 16 15:13:23 is there a best practice to instantiate a baseadapter with a list that might take a while to load? Oct 16 15:13:26 just use asynctask? Oct 16 15:13:43 Just don't instantiate it until you have the data Oct 16 15:14:50 SimonVT, hmm so just show a progress bar and load the list, then instantiate the adapter? Oct 16 15:15:06 Yep Oct 16 15:15:16 No, not all my user but against those user who might decided to copy the content instead of buying their own Oct 16 15:15:35 wth Oct 16 15:15:47 what kind of contant are we talking about here? O.o Oct 16 15:15:53 Now we're getting closer. Scrap that, it's going to be hard. Do server-side validation of the app license? Oct 16 15:15:54 the app will be on android while the content to communicate with will be on sd card, student are meant to by the sd card Oct 16 15:15:55 Oh okay, I was hoping for something like incremental loading Oct 16 15:16:05 Thanks! Oct 16 15:16:11 You can instantiate an adapter with an empty list if you want Oct 16 15:16:12 SimonVT: Wouldn't one still need an AsyncTask or similar? Oct 16 15:16:13 buy the sd card? Oct 16 15:16:16 ebooks, videos, lecture notes, etc Oct 16 15:16:17 Then update the list as you got your data Oct 16 15:16:27 But the other approach is better Oct 16 15:16:31 that sounds like a funny business idea.. Oct 16 15:17:03 danijoo: yes... because the data will be too large, i decided to separate it from the app.. that's why the data will be on sd card Oct 16 15:17:05 TacticalJoke: You always need a thread to load your data, yes Oct 16 15:17:22 SimonVT, yeah it'll be easier to migrate to that too since I already have an asynctask in the adapter constructor to load the list and notify data set change Oct 16 15:17:31 Oh, okay Oct 16 15:17:31 . Oct 16 15:17:50 Especially because the list isn't coming from my code :( Oct 16 15:19:01 Is it true that stock Android doesn't have a firewall? If so, isn't this a security issue? Oct 16 15:19:15 Especially because many devices are stuck on old Android versions, with no update available. Oct 16 15:19:38 hackable, if students have access to the sdcard they can always copy it... Oct 16 15:20:14 hackable: but whatever encryption you chose, i will still be able to copy the whole sd card Oct 16 15:20:29 take sdcard out, plug into computer Oct 16 15:20:31 presto, copied Oct 16 15:20:41 also lot of devices these days are released without sd Oct 16 15:20:58 and some have iomega zip drives Oct 16 15:21:05 pfn: that what i don't want. i want to find a way to hide and encript it, its only my app that will able to decrypt and communicate with the materials inside the sd card Oct 16 15:21:14 YOU CAN'T Oct 16 15:21:21 thats not possible Oct 16 15:21:28 if you don't understand that you can't take the sdcard and plug it into a computer Oct 16 15:21:30 you can always dd a whole card Oct 16 15:21:31 Data on external storage is always awailable to the user Oct 16 15:21:32 this problem is beyond your solving Oct 16 15:21:38 Actually, that sounds possible to me. :/ Oct 16 15:21:40 s/can't/can/ Oct 16 15:21:55 If you encrypt it, your app must be able to decrypt it. To do that, the decryption key must be within your app. Oct 16 15:21:57 (Protecting against the majority of users) Oct 16 15:22:08 * TachyonDev hands hackable a book labeled "Computers for Dummies" Oct 16 15:22:12 So anybody could decompile/look inside your app to get the key Oct 16 15:22:21 JuiceSSH: yes... Oct 16 15:22:21 JuiceSSH, if they sdcard itself is sold to the user, then it's not really protectable either way Oct 16 15:22:24 JuiceSSH: Or you could have per-app keys, no? Oct 16 15:22:33 *per-install Oct 16 15:22:42 if the data is sold to the user on a side-channel that isn't managed by the app Oct 16 15:22:46 then it's not possible to protect Oct 16 15:22:54 If the data is on a users device, always assume the user has access to it Oct 16 15:23:01 ^^ Oct 16 15:23:04 keys, data, ivs everything. Oct 16 15:23:27 Running GDB on a app will get u keys regardless of if its native or java Oct 16 15:24:51 for instance, i'll take sd card, copy materials inside it and encrypt it. build application that will communicate with the materials whenver they've the sd card inserted. i think what JuiceSSH can be possible Oct 16 15:25:13 anyway, not going to explain anything to you anymore, it's not going to work Oct 16 15:25:22 your mind isn't capable of understanding Oct 16 15:25:29 So I take the decryption key from your app, decrypt the contents myself and resell/post them online Oct 16 15:25:42 (*I* wouldn't, but as an example!) Oct 16 15:25:48 pfn: i understand you. okay! Oct 16 15:26:02 you don't even need to do that Oct 16 15:26:06 just take the sdcard out, plug into pc Oct 16 15:26:08 Thanks JuiceSSH Oct 16 15:26:08 copy to other users Oct 16 15:26:09 done Oct 16 15:26:27 I knew ssh is a tool for hackers, connecting to 7 proxies and typing stuff in the matrix on a black screen Oct 16 15:26:48 Yeah sorry I was assuming per-install keys as mentioned above Oct 16 15:26:48 Client side encryption ONLY protects against third party snooping. It can NEVER protect against user snooping Oct 16 15:26:54 then i think using device id or server side validation will be a better option Oct 16 15:27:27 Server side validation won't stop users stealing your content and using it outside of your app though Oct 16 15:27:57 it'll stop the majority of easy copying Oct 16 15:28:06 it won't stop the dedicated hacker Oct 16 15:28:12 that's really the best you can ever do Oct 16 15:28:14 Any software (or even hardware) implementation of anything is reversible. Oct 16 15:28:15 Which is about the best you can aim for Oct 16 15:28:17 :) Oct 16 15:28:19 Yes... dedicated hacker! Oct 16 15:28:27 The best you can do is make it not worth their time. Oct 16 15:28:40 AKA. profit from hacking < time spent Oct 16 15:29:49 yeh..... if someone can view information on their phone/computer, they can find a way to copy what they can see Oct 16 15:29:51 no problem, i suggest of having the contents within the app to the management but they refused because of the materials, is large Oct 16 15:30:15 how is that even relevant Oct 16 15:30:28 the app manages the content on sdcard Oct 16 15:30:30 and also, it will cost more when a device come with 16gb compare to 4gb Oct 16 15:30:30 pretty easy... Oct 16 15:30:35 Regardless. As soon as the App has the data in either unencrypted form or encrypted with the keys Oct 16 15:30:37 its flawed Oct 16 15:31:25 Crypto is a very advanced topic, if you dont know what ur doing, its not worth doing Oct 16 15:32:45 Hey everyone - Q on runOnUiThread(Thread)… is run() called by runOnUiThread() Oct 16 15:32:46 ? Oct 16 15:32:55 well, thanks everyone that've contributed. appreciate Oct 16 15:33:02 myThread.run() Oct 16 15:33:09 or start() Oct 16 15:33:31 tricknology you dont pass it a thread… you pass it a runnable that it will execute Oct 16 15:33:49 what if the thread executes a runnable? Oct 16 15:34:04 I have a peripheral that is doing this in their SDK and it’s weird to me Oct 16 15:35:19 runOnUiThread(new Thread(new Runnable(){…})); Oct 16 15:35:42 Runnable only has one method, that's what's being called Oct 16 15:36:18 so the thread wrapper is basically useless? Oct 16 15:36:30 it actually makes it not working i think ^^ Oct 16 15:36:45 are you talking about asynctask? Oct 16 15:36:55 I try to read a asset, but my problem is, that there is no assets directory in my project folder. I find no info about where or how to create it. any help? Oct 16 15:37:38 doev: eclipse or android studio? Oct 16 15:37:52 TachyonDev, netbeans Oct 16 15:38:30 * TachyonDev jumps out the window Oct 16 15:38:30 TachyonDev no, just threads and runnables Oct 16 15:38:58 did he just say netbeans? Oct 16 15:39:05 Tachyon, I prefer eclipse for now, maybe AS or IntelliJ soon Oct 16 15:39:18 i think so. Oct 16 15:39:32 netbeans is for the kind of people who got a Zune Oct 16 15:39:36 As far as I'm concerned, if you are't developing in Android Studio, you aren't a real Android developer Oct 16 15:39:48 * TachyonDev obviously jumped back in the window Oct 16 15:39:48 But it’s beta.. Oct 16 15:39:51 lol Oct 16 15:39:53 EVERYTHING IS BETA Oct 16 15:40:09 intellij is not. Oct 16 15:40:11 A thread is runnable folks Oct 16 15:40:23 thanks dcow Oct 16 15:40:38 Gradle and IntelliJ alone should be enough to switch Oct 16 15:40:57 but would it make sense to wrap a runnable in a thread only to use runOnUiThread()? Oct 16 15:41:09 no Oct 16 15:41:24 is there some magic that happens as to why someone would do it that way? some dark corner of the code perhaps? Oct 16 15:41:35 Nope Oct 16 15:41:41 tricknology: people do things because they figure out that it works .. not because its correct Oct 16 15:41:49 Thread#run just calls Runnable#run Oct 16 15:41:51 Using IntelliJ with Gradle is definitely "beta" or below. Oct 16 15:41:54 java lets you do a lot of very wrong things Oct 16 15:41:57 No way you can call that release quality. Oct 16 15:42:01 didn’t think so. Tachyon, that’s what it’s loking like lol Oct 16 15:42:11 I can get IntelliJ + Gradle to crash repeatedly just by creating a "Hello, world" app. Oct 16 15:42:13 TacticalJoke: Dude I've been using it for a year solid .. it is amazing Oct 16 15:42:15 runonuithread takes a runnable and executes it. if it’s wrapped in a thread it will run on its own thread. it actually sounds like the opposite of what you want, tricknology Oct 16 15:42:20 TachyonDev: You're doing it wrong Oct 16 15:42:29 lol Oct 16 15:42:33 wow 2 Tacs.. Oct 16 15:42:38 change your first 3 letters if im going to argue with you Oct 16 15:42:42 haha Oct 16 15:42:51 even the same length Oct 16 15:43:02 "if it’s wrapped in a thread it will run on its own thread" <- nope Oct 16 15:43:27 they just wrapped it to make it go into the runOnUiThread method Oct 16 15:44:00 oh snap Oct 16 15:44:04 SimonVT: that’s dumb Oct 16 15:44:19 so they really have no idea what they’re doing Oct 16 15:44:25 I'll move to Android Studio when it's ready (fast builds and JVM testing). Oct 16 15:44:37 it goes.. new Thread( new Runnable ( … activity.runOnUiThread(new Thread( new Runnable()) Oct 16 15:44:39 wow Oct 16 15:44:42 TacticalJoke: Seriously though, I have zero imported source code, its all pulled in automatically with gradle, with debug and release versions of 3 different builds selectable at compile time Oct 16 15:44:54 Yeah, but how slow is Gradle? Oct 16 15:45:03 And how much does it suck not to be able to do proper unit testing? Oct 16 15:45:03 allmywhat.jpg Oct 16 15:45:09 it faster than most things Oct 16 15:45:21 TacticalJoke it has built in testing modes Oct 16 15:45:25 Gradle sounds like Girdle Oct 16 15:45:28 For instrumentation tests, which suck. Oct 16 15:45:28 that is all Oct 16 15:45:34 just add a testing configuration Oct 16 15:45:39 and put the test code in androidTest Oct 16 15:45:43 You can't (easily) do JVM testing in AS. Oct 16 15:45:53 it works fine for us? Oct 16 15:46:03 litterally select the other configuration option Oct 16 15:46:06 TachyonDev: Are you doing instrumentation tests with JUnit 3? Oct 16 15:46:07 and it fires all the unit tests Oct 16 15:46:12 and runs all the tests on the phone Oct 16 15:46:18 Yeah, that's not "proper unit testing". Oct 16 15:46:42 It's slow and annoying. Unit testing should be about speed and simplicity. Oct 16 15:46:43 No, proper unit testing means you isolate units of code. It does not define where those are run. Oct 16 15:47:11 Yes it should be fast but if you use the x86 emulator you’re basically there. Oct 16 15:47:20 You just have to wait for the test package to install. Oct 16 15:47:23 no but, instrumentTestCompile 'junit:junit:4.10' ? Oct 16 15:47:27 That's no way to do unit testing. Oct 16 15:47:35 Some might argue Robolectric family of tests are not proper unit testing Oct 16 15:47:38 I run my unit tests whenever I build. They finish instantly. Hundreds of them. Oct 16 15:47:46 I don't need devices or emulators. Oct 16 15:47:52 So do I. Oct 16 15:47:58 yes, that is unit testing Oct 16 15:48:02 a proper build should have passing tests Oct 16 15:48:06 we have both unit tests and device tests Oct 16 15:48:13 and our build server runs them all too Oct 16 15:48:22 but you can’t say “because you have to run them on a “device” it’s not unit testing" Oct 16 15:48:24 TachyonDev: But you can't (simply) do the former with Android Studio. Oct 16 15:48:24 wish I had them... Oct 16 15:48:26 it’s just slow unit testing that sucks Oct 16 15:48:42 TacticalJoke: robolectric ? Oct 16 15:49:05 i cant believe how many people run from android studio because its just different Oct 16 15:49:07 gordon_: Not (easily) with Android Studio. Oct 16 15:49:17 TachyonDev: It sucks because you can't do JVM unit testing. Oct 16 15:49:23 yes you can Oct 16 15:49:24 It will stop sucking when they fix this and speed up Gradle. Oct 16 15:49:34 Gradle is plenty fast Oct 16 15:49:36 Sorry, it sucks because it lacks basic features right now. Oct 16 15:49:40 like what? Oct 16 15:49:44 JVM unit testing. Oct 16 15:49:48 you can do that Oct 16 15:49:51 I use Eclipse for a lot of shit.. Python, Java, FORTRAN, PHP, Apache test server.. Oct 16 15:49:51 How? Oct 16 15:49:52 with robolectric Oct 16 15:49:57 on top of Android dev Oct 16 15:49:57 gradle plugin Oct 16 15:50:01 its like the 4th discussion on that today.. Oct 16 15:50:03 can AS do all that? Oct 16 15:50:06 robolectric? Oct 16 15:50:17 TacticalJoke if you have your code structured well enough that you have pure java business logic you can most certainly put that code in a different source set and run it in a vanilla JVM Oct 16 15:50:25 gordon_: Nope. https://code.google.com/p/android/issues/detail?id=65186 Oct 16 15:50:31 http://blog.blundell-apps.com/android-gradle-app-with-robolectric-junit-tests/ Oct 16 15:50:51 I can literally run an entire server, front and back end as well as app in Eclipse.. Oct 16 15:51:10 eclipse is a disaster Oct 16 15:51:15 "You could use J Whartons Gradle Android test plugin" <--- which he says "don't use". Oct 16 15:51:25 It does what I need it to do Oct 16 15:51:25 http://blog.blundell-apps.com/android-gradle-app-with-jvm-junit-tests/ Oct 16 15:51:28 TacticalJoke: I got it working so... Oct 16 15:51:36 gordon_: How? Oct 16 15:51:41 TacticalJoke: http://blog.blundell-apps.com/android-gradle-app-with-jvm-junit-tests/ Oct 16 15:51:43 I’m not trying to use 2 IDE’s at the same time Oct 16 15:51:43 with gradle plugin Oct 16 15:51:51 Gradle is very very powerful Oct 16 15:51:54 still it's slow Oct 16 15:52:06 because gradle needs to check whole build Oct 16 15:52:11 before run robolectric tests Oct 16 15:52:16 gordon_: we had this later here Oct 16 15:52:20 gradle has incremental build Oct 16 15:52:25 TachyonDev: I highly doubt that works. Oct 16 15:52:28 all you have to do is enabling it Oct 16 15:52:28 so it's like running normal android tests Oct 16 15:52:31 TachyonDev: See this bug: https://code.google.com/p/android/issues/detail?id=65186 Oct 16 15:52:39 I am sending GCM pushes and the response says success, but the device never receives it. Where should I start to debug at? Oct 16 15:52:40 danijoo: where ? Oct 16 15:52:58 If JVM unit testing were as easy as you two are suggesting, then the above bug would be closed. Oct 16 15:53:00 I probably got it ;) Oct 16 15:53:04 And people in this channel wouldn't have said stuff they *have* said. Oct 16 15:53:18 And I wouldn't have spent hours jumping through hoops to get this working. Oct 16 15:53:25 module settings Oct 16 15:53:26 dude, happens all the time Oct 16 15:53:31 and then i thing its facets -> incremental dex Oct 16 15:53:41 think* Oct 16 15:53:44 The entire Twitter team thinks Android Studio is the worst IDE ever created.. Oct 16 15:53:47 blows my mind Oct 16 15:53:48 TacticalJoke: the issue is when you have android deps Oct 16 15:53:59 TachyonDev: When did they say that? Oct 16 15:54:07 at a talk a couple weeks ago Oct 16 15:54:11 all you need for jvm testing is a seperate gradle module Oct 16 15:54:17 still its only an opinion. Oct 16 15:54:24 dcow: right Oct 16 15:54:24 but most people aren’t that structured Oct 16 15:54:30 The twitter team made the twitter app.. Not sure I'd trust them Oct 16 15:54:34 lil Oct 16 15:54:37 lul* Oct 16 15:54:37 dcow: https://code.google.com/p/android/issues/detail?id=65186 Oct 16 15:54:40 but with all those libs and stuff.. Oct 16 15:54:43 It's a work-in-progress. Oct 16 15:54:47 also, testing activities and binding ? Oct 16 15:54:50 everything is a work in progress Oct 16 15:55:02 TacticalJoke: that’s IN THE SAME MODULE Oct 16 15:55:06 yes it’s annoying Oct 16 15:55:13 before you know it you have 3 years of experience in eclipse instead of studio and now you are behind Oct 16 15:55:14 ha.. I take otu the Janky Thread logic and it freezes the UI. Oct 16 15:55:16 but that’s an android gradle plugin issue Oct 16 15:55:22 NOT an AS issue Oct 16 15:55:26 TachyonDev: google WONT support robolectric Oct 16 15:55:27 dcow: I spent hours trying to get this working in different modules. It wouldn't. Oct 16 15:55:27 or intellij Oct 16 15:55:41 The Android-Gradle thing is the heart of AS. Oct 16 15:55:44 either way, not even looking at android, IntelliJ >>>>> Eclipse Oct 16 15:55:57 well you have to import your business logic module into your android project Oct 16 15:56:09 dcow: Xavier has said, in talks, that they will implement the ability to do this via a new module. Oct 16 15:56:14 Suggesting that it's currently impossible. Oct 16 15:56:17 (A new Java module.) Oct 16 15:56:28 then how come I have projects that do it? Oct 16 15:56:48 I have robolectric in the same project Oct 16 15:56:49 he was probably speaking in terms to make it easier for people .. not possible for people Oct 16 15:56:51 You mean that the code to be tested needs to be in its own module? Oct 16 15:56:56 top-level gradle with multiple modules one android one vanilla java Oct 16 15:57:13 yes Oct 16 15:57:16 http://blog.blundell-apps.com/android-gradle-app-with-robolectric-junit-tests/ Oct 16 15:57:20 http://blog.blundell-apps.com/android-gradle-app-with-robolectric-junit-tests/ Oct 16 15:57:21 which I agree is super annoying Oct 16 15:57:23 dcow: Oh, sorry. I thought you meant the unit tests themselves. Oct 16 15:57:24 Okay. Oct 16 15:57:35 yeah. it’s a work around, albiet shitty Oct 16 15:57:48 TachyonDev: That article recommends a plugin that has been deprecated by its author. Oct 16 15:57:48 thats the fun part of gradle, it lets you work around a lot of limitations Oct 16 15:57:49 although an architect might argue it’s acutally better Oct 16 15:58:02 TacticalJoke: I know, but my point is that these things are possible Oct 16 15:58:05 because you should treat your framework as a plugin … uncle bob Oct 16 15:58:09 TachyonDev: That article doesn't prove that it's possible. Oct 16 15:58:10 TacticalJoke: https://github.com/robolectric/robolectric-gradle-plugin Oct 16 15:58:20 Only perhaps that it was possible at one point (before an update broke the plugin in question). Oct 16 15:58:23 yeah robolectric is the go-to for this for some time Oct 16 15:59:21 gordon_: If that works, I'm not sure whether it'll continue working. Oct 16 15:59:27 The point is that AS sucks because you can't do this (yet). Oct 16 15:59:28 danijoo: can I enable incremental build in gradle.properties ? Oct 16 15:59:43 When AS allows users to do this without jumping through hoops, and when Gradle isn't slow as heck, I will come in here and say "AS is awesome". Oct 16 15:59:47 you know what sucks ? Oct 16 15:59:56 jars in repository Oct 16 16:00:01 Right. Oct 16 16:00:06 gordon_: its a project settin Oct 16 16:00:11 But that sucks less than no JVM unit testing and extremely slow builds. Oct 16 16:00:11 you can enable it in build.gradle Oct 16 16:00:18 And it's not even necessary. One can use Maven in Eclipse. Oct 16 16:00:20 you know what else sucks? Android library projects Oct 16 16:00:33 And non-version controlled source imports Oct 16 16:00:42 Yes, those suck. Oct 16 16:00:50 dexOptions{ incremental true } Oct 16 16:00:56 in buildConfig i think Oct 16 16:00:56 ok found Oct 16 16:01:04 what's jumbomode ? Oct 16 16:01:10 no idea ^^ Oct 16 16:01:16 "JAR" sounds so weird when you say it out loud. Oct 16 16:01:25 jar jar Oct 16 16:01:25 For some reason. Oct 16 16:01:26 TacticalJoke: pirates? Oct 16 16:01:29 :D Oct 16 16:01:33 Or Rastafarians. Oct 16 16:01:35 star wars Oct 16 16:02:06 "There's a new flag to force "jumbo mode" for dex which allows a larger number of strings in the dex files; " Oct 16 16:02:14 According to someone in #android, Android replies to ICMP pings by default. Oct 16 16:02:18 That's crazy if true. Oct 16 16:02:25 Tactical, are you from the UK? Oct 16 16:02:26 A security weakness. Oct 16 16:02:27 Yeah. Oct 16 16:02:29 England. Oct 16 16:02:36 yea it would sound weird.. Oct 16 16:02:40 Jaaah Oct 16 16:02:45 Googling brings up nothing. Oct 16 16:02:48 RasTaFarI Oct 16 16:03:00 uh Oct 16 16:03:07 why would responding to ping be a security issue? Oct 16 16:03:24 jahhh brahhh Oct 16 16:03:31 It makes us discoverable. Some kind of attack may follow. Oct 16 16:03:40 Maybe a DoS. Maybe a remote-code-execution try. Oct 16 16:03:43 everybody /ping mavrik Oct 16 16:03:49 TacticalJoke: disable it then Oct 16 16:03:52 How? Oct 16 16:03:53 DoS is exactly why Oct 16 16:04:13 The question is of why stock Android doesn't come with a firewall. Oct 16 16:04:14 attacker can spoof IP and make host send larger packets than needed Oct 16 16:04:25 Is ther just one fragment manager or one for each activity? Oct 16 16:04:47 you're never exposed directly to the world on a mobile network Oct 16 16:05:04 but yeah, in those few cases where you're exposed on the outside via wifi that could be an issue Oct 16 16:05:08 marrrk there are 0 fragment managers if you don’t use fragments Oct 16 16:05:11 seems like it's not enabled Oct 16 16:05:15 Mavrik: So Android just assumes that someone else we're connecting via is using a firewall? Oct 16 16:05:30 marrrk: its per activity afaik Oct 16 16:05:37 of "per context" Oct 16 16:05:41 It just seems weird that an OS in 2014 doesn't ship with a firewall. Surely I'm missing something. Oct 16 16:05:44 something like that Oct 16 16:05:44 TacticalJoke, it has little to do with firewalls. Oct 16 16:05:59 One FragmentManager per Activity instance Oct 16 16:06:01 TacticalJoke: your missing that firewalls are usually useless Oct 16 16:06:04 ip tables ! :D Oct 16 16:06:05 Whether you use Fragments or not Oct 16 16:06:06 TacticalJoke, and what exactly would firewall on an Android device bring to the security? Oct 16 16:06:08 They block ICMP and stuff. Oct 16 16:06:19 Mavrik: Blocking listening sockets by default, for example. Oct 16 16:06:29 Per Activity instance, okay thanks. Oct 16 16:06:32 How does that improve security? Oct 16 16:06:37 I think I will have two activities then. Oct 16 16:06:51 I mean, if you have nothing listening on the socket, there's no point. Oct 16 16:06:53 Prevents discoverability, remote-code-execution attacks, etc. Oct 16 16:06:56 If you HAVE something listening on the socket... Oct 16 16:07:01 then you have to let it through? Oct 16 16:07:18 Android isn't your desktop OS where stuff can randomly sit in background listening on the socket Oct 16 16:07:25 It'd not respond to pings. Oct 16 16:07:28 TacticalJoke firewalls just make things harder, they don’t prevent the real exploit Oct 16 16:07:51 Again, what security benefit you'd get from blocking a standard behaviour of a networked device? Oct 16 16:07:53 Firewalls can be the difference between getting hax0red or not. Oct 16 16:07:54 Man, Material design looks really good! Oct 16 16:08:04 google.com responds to ping ;) Oct 16 16:08:05 You could run a remote-administration tool if you were safely behind a firewall. Oct 16 16:08:11 It'd not be able to touch the network. Oct 16 16:08:25 huh? what does android have to care about connectors having a firewall Oct 16 16:08:29 TacticalJoke how many firewalls and networks have you configured? Oct 16 16:08:38 and a firewall is overrated if there's nothing listening Oct 16 16:08:56 *Firewall does nothing if nothing is listening. :) Oct 16 16:08:57 There must be something listening if that guy is correct that Android responds to ICMP pings. Oct 16 16:09:14 pings are part of the network stack, what's your point Oct 16 16:09:16 Hey, pfn, since you're there. Do you know of a trick to run cardview-compat-7 with your plugin? Oct 16 16:09:22 do any googlers hang out in these channels anymore? Oct 16 16:09:22 TacticalJoke: and it might have a sense that there is something listenning Oct 16 16:09:39 marrrk, by adding it as a librarydependency? Oct 16 16:09:40 They make devices discoverable, whereafter attacks (e.g., DoSes) may happen, as I said above. Oct 16 16:09:42 google is not like "let it respond to pings to make it vulnerable!" Oct 16 16:09:52 pfn: Sorry, I should have specified with the min sdk version not being 20 Oct 16 16:09:58 TacticalJoke, uh, ddos isn't a problem Oct 16 16:10:03 marrrk, disable manifest merging Oct 16 16:10:12 TachyonDev: they mostly don't speak anymore Oct 16 16:10:18 android is only discoverable over wifi Oct 16 16:10:24 and if you ddos someone on your wifi Oct 16 16:10:26 well, you're stupid Oct 16 16:11:06 perfect, thanks, pfn Oct 16 16:11:16 What if that guy is right and Android devices are responding to ICMP pings *anywhere*, not just "over Wi-Fi"? Oct 16 16:11:35 then it's your network provider's problem, really Oct 16 16:11:44 TacticalJoke, how would that work? Oct 16 16:11:47 Surely it's Android's responsibility. Oct 16 16:11:55 for a ddos Oct 16 16:12:00 TacticalJoke, how does a device that is isolated on a network respond to ping? :) Oct 16 16:12:01 Leeds: Wow haven't talked to you in a minute Oct 16 16:12:02 I'm not just talking about DoSes. Oct 16 16:12:10 Being discoverable is a security problem. Oct 16 16:12:19 but you're not discoverable Oct 16 16:12:23 only if you're running internet accessible services Oct 16 16:12:24 because that's the network layer problem Oct 16 16:12:26 TachyonDev: er? Oct 16 16:12:34 TacticalJoke, even if you DO NOT respond to ping, someone can DOS your mobile line Oct 16 16:12:38 TacticalJoke: why are you discoverable atm? Oct 16 16:12:39 TachyonDev, leeds isn't a googler Oct 16 16:12:41 that's why we do isolation on telco network layer Oct 16 16:12:43 I know Oct 16 16:12:48 not stupidity on phone layer :) Oct 16 16:12:56 but he has been here as long as any of us, no? Oct 16 16:13:05 whois gives your ip and location. oh oh.. Oct 16 16:13:21 Leeds: How long you been in #android/#android-dev Oct 16 16:13:21 TacticalJoke, the mobile network will not allow packets that aren't part of your outbound connecitons to reach your phone Oct 16 16:13:22 You could port-scan my computer. Every port is closed. No response. Oct 16 16:13:27 But if you port-scanned my phone? I'unno. Oct 16 16:13:33 why don't you portscan it and see Oct 16 16:13:42 you /don't/ know Oct 16 16:13:48 TacticalJoke: have you nmap'ed your phone already? Oct 16 16:13:53 I'm not sure of the legality of that. And I don't know how to do that locally. Oct 16 16:13:53 TachyonDev: my logs for #android go back to November 2008, for #android-dev to May 2009 Oct 16 16:13:59 sounds about right Oct 16 16:14:06 though I think I was DJTachyon back then Oct 16 16:14:35 You're not sure if port scanning your own phone is legal? Where do you live, north korea? Oct 16 16:14:35 Leeds: Where you working these days? Oct 16 16:15:17 same as I've been for years, working full-time freelance for one guy, but doing very little at the moment, mostly because he's busy with other things Oct 16 16:15:34 full time freelance? paid doing nothing? Oct 16 16:15:34 nice Oct 16 16:15:47 If I went via the Internet, I could potentially be breaking the law. Not sure. Oct 16 16:15:55 I'm too out of practice to remember how to do this locally. Oct 16 16:16:17 i think here in germany its actually against law to portscan own phone :D Oct 16 16:16:25 Hackerparagraph! Oct 16 16:16:30 yep. Oct 16 16:16:34 wardial bro Oct 16 16:16:38 its even illegal to have a tool to do it Oct 16 16:16:39 pfn: I'm legally a freelancer, but I'm essentially full-time with one 'client' Oct 16 16:16:40 Wait, I have visited ShieldsUp on my phone. Oct 16 16:16:49 danijoo: Uh, really? Oct 16 16:16:52 yep Oct 16 16:17:07 No response, although I was either connected via a router with a firewall or the mobile service provider (who, I guess, use a firewall). Oct 16 16:17:11 Leeds: Been doing android since 2008/9 as well? Oct 16 16:17:13 danijoo, last we did that on CCC, the locals determined that it's legal... did german laws change in last year? Oct 16 16:17:15 danijoo: Hast du eine Quelle für mich? :P Oct 16 16:17:20 TachyonDev: on and off, yeah Oct 16 16:17:25 weird.. remember my horrible threading problem? well it turns out that that’s the only way it works.. Oct 16 16:18:06 Thread(runnable(runonUiThread(Thread(runnable)) Oct 16 16:18:06 Leeds: I remember you being around while we were all trying to learn android from sanmehat, jsharkey, and romainguy Oct 16 16:18:13 flan3002: $202c Strafgestzbuch Oct 16 16:18:21 I'm doing it again. Oct 16 16:18:25 Shields Up via my mobile connection. Oct 16 16:18:28 flan3002: http://www.gesetze-im-internet.de/stgb/__202c.html Oct 16 16:18:31 All service ports. Oct 16 16:18:42 danijoo, marrrk: Danke! ;) Oct 16 16:18:45 I remember when romainguy was like, having trouble with threading? Here look at my books app, I wrote an AsyncTask. Oct 16 16:18:54 never version of Android, it was in the OS Oct 16 16:19:04 its a definition thing though. depends on the courts definition of "vorbereiten" Oct 16 16:19:08 Isn't he one of the Android developers? Oct 16 16:19:14 yes Oct 16 16:19:15 was Oct 16 16:19:15 TachyonDev: all long gone... Oct 16 16:19:25 sanmehat wrote the tethering code Oct 16 16:19:28 he is gone too Oct 16 16:19:44 i met him a couple times on trips to CA .. cool guy Oct 16 16:19:52 so basically nmap is illegal here Oct 16 16:20:04 danijoo: But... how does this forbid portscanning? Can they prove I was preparing to hack someone-elses phone by portscanning my own? Oct 16 16:20:19 thats the problem and criticismn on that Oct 16 16:20:20 danijoo: And any host of nmap... Oct 16 16:20:50 danijoo: Like... mirrors for repositories and stuff... Wow. Oct 16 16:20:54 you *could* see portscanning as step #1 for spying out passwords Oct 16 16:20:56 though tons of Romain Guy's photos are on chromecast Oct 16 16:20:58 Okay, I did a scan. No reponding ports even when connecting via mobile Internet. Oct 16 16:21:01 yeah, san was cool Oct 16 16:21:04 he is photo crazy Oct 16 16:21:22 im friends with him on facebook actually heh Oct 16 16:21:29 danijoo: Great idea, I'm going to spy myself! *facepalm* But seriously, that's just stupid... Oct 16 16:21:32 it all depends on your aim of portscanning Oct 16 16:21:32 raising a couple nerdy kids Oct 16 16:21:34 *spy on Oct 16 16:21:36 danijoo, yes, but other legal practices work on establishing intent Oct 16 16:21:43 and what a lawyer makes out of it Oct 16 16:21:48 OMG I found it Oct 16 16:21:50 https://code.google.com/p/shelves/ Oct 16 16:21:51 danijoo, like for any other dispute: the imporant question being if you had malicious intent or not Oct 16 16:21:58 yep Oct 16 16:22:03 Everybody, This is where AsyncTask came from: https://code.google.com/p/shelves/ Oct 16 16:22:13 Mavrik: What if my mobile provider didn't have a firewall, though? Couldn't my devide be insecure? Oct 16 16:22:15 danijoo, e.g. last year some guys did a survey of mobile network security by sniffing mobile network traffic and trying to decrypt it Oct 16 16:22:25 What if my phone's Android version has a remote-code-execution vulnerability? Oct 16 16:22:36 and it was deemed legal becase they took care that they did so only on their own traffic Oct 16 16:22:39 (And I can't update Android any more.) Oct 16 16:23:04 TacticalJoke, firewalls do not help you against remote code exectuion in any way Oct 16 16:23:14 if you think that you should REALLY reasses your security practices Oct 16 16:23:27 TIL downloading nmap is illegal here. -.- Oct 16 16:23:29 and no, no telco ever exposes devices over networks due to how mobile networks work Oct 16 16:23:37 They protect against services that have a vulnerability who've opened listening sockets. Oct 16 16:23:44 Bingo, Found It, It was called UserTask, look familiar? Oct 16 16:23:45 https://code.google.com/p/shelves/source/browse/trunk/Shelves/src/org/curiouscreature/android/shelves/util/UserTask.java Oct 16 16:23:53 Mavrik: Remember the Blaster worm? Oct 16 16:23:55 On WinXP? Oct 16 16:24:02 TacticalJoke: RED ALERT! Oct 16 16:24:05 Mavrik: yeah but still its a bad law because depending on what the lawyer says, it can become "illegal aim" Oct 16 16:24:11 Hi Oct 16 16:24:13 WinXP boxes connecting to the Internet without a firewall got owned in about two minutes. Oct 16 16:24:16 A firewall stopped this. Oct 16 16:24:27 This is just the basics of how a firewall works. Kinda jaw-dropping that you're questioning this. Oct 16 16:24:39 TacticalJoke, if you think firewall was the main reason for stopping that, you have a severely lacking understanding of security Oct 16 16:24:43 Firewalls can and do protect against remote-code-execution vulns. Oct 16 16:24:49 danijoo, yeah, I see how that could be an issue Oct 16 16:24:50 That's, in fact, one of the key benefits. Oct 16 16:25:05 Mavrik: I and Microsoft thought that. Oct 16 16:25:08 And it was demonstrated. Oct 16 16:25:49 Microsoft had a page up stating "If you're connecting without a firewall, on an older version of Windows XP, your computer will be compromised by the blaster worm. Enabling Windows Firewall will prevent this". Oct 16 16:25:52 Can anybody help me and take a look on my code. I try to make a random integer between 1-10. first time it gives the number I want. second time it give a integer outside the range. http://pastebin.com/Kf4t95jU Oct 16 16:26:16 It's amazing that you're seriously questioning that a firewall can close an open port through which a remote-code-execution attack can happen. Oct 16 16:26:26 Microsoft had a page up stating "If you're connecting without a firewall, on an older version of Windows XP, your computer will be compromised by the blaster worm. Disabling internet will prevent this". Oct 16 16:27:38 peyam:Is that java code? If so where do you define your variables? Oct 16 16:27:58 This page still shows a similar message about enabling a firewall to protect from the remote-code-execution attack related to Blaster: http://support.microsoft.com/kb/826955 Oct 16 16:28:19 "To prevent this virus from infecting your computer, follow these steps: Turn on the Internet Connection Firewall [...]" Oct 16 16:28:30 It's not really a virus (it's a worm), but they dumb down their terminology. Oct 16 16:28:45 marrrk, you want to see my whole code? I want to save some time. I will now http://pastebin.com/a6qHcpxK Oct 16 16:29:22 peyam: do you come from a c# background? :) Oct 16 16:29:30 danijoo, yes Oct 16 16:29:33 :p Oct 16 16:29:34 "symantec Client Firewall has a default System-Wide rule to block inbound TCP and UDP on local port 135 (Default Block EPMAP), which is utilized by W32.Blaster.Worm. To block the W32.Blaster.Worm, you will need to do the following: * Verify that Default Block EPMAP is enabled * Create a blocking rule for port 4444 * Create a Default Block EPMAP rule (if needed)" Oct 16 16:29:47 Wow, both Microsoft and Symantec were mistaken about firewalls blocking worms and stuff. Oct 16 16:29:55 danijoo, how did you know? is it something I shouldnt done? Oct 16 16:29:59 And Mavrik, a guy from IRC, knows more than those big companies. Oct 16 16:30:01 Pretty impressive. Oct 16 16:30:05 ( http://www.symantec.com/business/support/index?page=content&id=TECH100426 ) Oct 16 16:30:25 I am not sure how attacking me personally helps your case. Oct 16 16:30:26 peyam: uppercase method names. java-programmers usually have them lower case :) Oct 16 16:30:38 I'm showing that you're wrong. Oct 16 16:30:49 By linking to Microsoft and Symantec pages. Oct 16 16:30:52 TacticalJoke, you know nothing about my qualifications, experiences or anything else so I would kindly ask you that you do not attack me personally. Oct 16 16:30:58 danijoo, haha. I never though about it. you are actually right Oct 16 16:31:04 Mavrik: Showing that you're wrong is attacking you? Oct 16 16:31:17 TacticalJoke, you have also misread the articles you posted and are interpreting them wrong. Oct 16 16:31:25 Mavrik: You made a statement. Unless I misinterpreted what you said, it was a false statement. I'm now proving to you that it's false. Oct 16 16:31:29 Omg. Oct 16 16:31:33 Seriously? Oct 16 16:31:38 danijoo, Can you please look at my code. why the Level1() second time gives a number outside the range? Oct 16 16:31:46 Okay, believe that the moon is made out of cheese. I give up. Oct 16 16:32:56 finally. Oct 16 16:33:09 TacticalJoke, dealing with a controlled mobile operating system on a mobile network vs. a desktop operating system which may or may not run random socket services is different from security standpoint. You're trying to apply things from desktop OSes to (designwise) different mobile OSes. Oct 16 16:33:10 peyam: what do you mean with outside the range? Oct 16 16:33:13 The fact was that Blaster worked because a Windows service had a RCE vuln, and so many people didn't have a firewall enabled. Fixing this was as simple as **enabling a firewall that blocked inbound connections**. That's it. This is what firewalls do. Oct 16 16:33:20 danijoo: got that enabled Oct 16 16:33:37 Yes, It has also rendered that service nonoperable. Oct 16 16:34:06 peyam: you mean greater then 10? Oct 16 16:35:20 Okay peyam I would suggest improving the scope of your variables Oct 16 16:35:51 And also if min and max are constants, make them final. Oct 16 16:35:57 marrrk: Level1() makes me guess its for a game Oct 16 16:36:04 danijoo, no. between 1-10 Oct 16 16:36:09 so having all those variables outside might be good to prevent GCV Oct 16 16:36:11 GC Oct 16 16:36:16 danijoo, yes Oct 16 16:36:28 Im a newbie danijoo Oct 16 16:36:49 peyam: well if I count: max-min+1 is always 10 Oct 16 16:36:58 why would you want to prevent GC of two ints? Oct 16 16:37:20 the biggest number r.nextInt(10) gives you is 9 Oct 16 16:37:29 so it should never return somethin greater 10 Oct 16 16:37:36 marrrk, i dont know what GC is and danijoo yes. but i saw Random numbers works like that Oct 16 16:37:46 GC is Garbage Collection Oct 16 16:37:49 marrrk: well yeah.. for ints thats not really true :) Oct 16 16:38:02 didnt thought about it Oct 16 16:38:02 Why are you declaring all your variables as class fields? Oct 16 16:38:05 That makes code very difficult to read. Oct 16 16:38:18 And it introduces possible bugs. Oct 16 16:38:22 danijoo, well it gives sometimes 56, 60 an so one Oct 16 16:38:40 Well Oct 16 16:38:46 that's the scoping issue Oct 16 16:38:47 TacticalJoke, how do you mean? Oct 16 16:38:48 s/class/instance/ Oct 16 16:38:50 once you instantiate level 2 Oct 16 16:38:53 min is set to 10 Oct 16 16:38:55 and max is set to 100 Oct 16 16:38:58 marrrk, yes Oct 16 16:39:08 and since all levels refer to the same min and max values Oct 16 16:39:09 peyam: For example, "MediaPlayer mp;". Oct 16 16:39:15 That should be inside the method, not available to the whole class. Oct 16 16:39:16 you probably get unexpected behaviour Oct 16 16:39:19 It's used only in one method. Oct 16 16:39:29 marrrk: if he instantiace Level1 then it should be reverted to 1 and 10 Oct 16 16:39:49 Maybe Oct 16 16:39:50 but i agree its hard to debug like it is now :/ Oct 16 16:39:51 TacticalJoke, ahaa. thanks. will edit it Oct 16 16:39:54 but it's super hard to reason about Oct 16 16:39:58 just don't make anything mutable Oct 16 16:40:12 Declare variables as close to their first use as possible. This maximizes readability and minimizes defects. Oct 16 16:40:22 I want to get list of numbers in contact list, and then check which devices in that has installed a certain app. Is it possible to do in Android Oct 16 16:40:39 That's what I tried to say from the beginning, I need to brush up on my English, I guess. Oct 16 16:40:46 you should do something like that: http://pastebin.com/yWnVvLfc Oct 16 16:40:49 and use the result Oct 16 16:40:50 TacticalJoke, thanks for the tip Oct 16 16:41:07 dont set dozens of object variables that arent needed Oct 16 16:41:28 danijoo, but it wont fix the problem right? Oct 16 16:41:45 i dont understand why it doesnt work Oct 16 16:42:02 it seems like min/max is set to something other then 1 , 10 sometimes Oct 16 16:42:11 are you sure you are calling Level1 and not Level2? Oct 16 16:42:20 yes. I see it from the code. Oct 16 16:42:34 as far as Point is less than 5 it should go to level1() Oct 16 16:42:50 How do you know what the random thing returns? Oct 16 16:43:10 marrrk, I tried it on my phone Oct 16 16:43:26 Oh, sorry I didn't see the textView bit. Oct 16 16:44:01 in the way its currently written down it should call Level1 only once the activity starts Oct 16 16:44:08 and should always return something between 1 and 10 Oct 16 16:44:18 peyam: What does result = num1 + num2 do? Oct 16 16:44:34 Doesn't that assign a number to an EditText? Oct 16 16:44:40 peyam: did you programm in unity before android? :) Oct 16 16:45:07 that is the actuall value of num1+num2 Oct 16 16:45:11 at the moment result does nothing but being an unused value Oct 16 16:45:20 oh no, there is result and Result. Oct 16 16:45:26 danijoo, no. c#, C++ and matlab Oct 16 16:45:43 result is a int, and Result is a mathod Oct 16 16:45:46 your code looks so much to unity scripting ^^ Oct 16 16:45:47 textview Oct 16 16:45:51 sorry Oct 16 16:45:57 wrong peyam Oct 16 16:46:13 result is an int, Result is a textview :) Oct 16 16:46:25 java is case sensitive Oct 16 16:46:31 and you defined both Oct 16 16:46:45 Yeah, it is. Seems like I'm not. Oct 16 16:46:53 if you want to set it to the textview it must be Result.setText((String) num1 + num2) Oct 16 16:46:55 :P Oct 16 16:47:26 and replace (String) with "" + Oct 16 16:47:32 (String) is nonsense Oct 16 16:48:11 danijoo, the thing is. i give two random numbers. you write ur resulkt in the edittext and I check it your answer is true with the button Correct() Oct 16 16:48:27 and for each correct answer you will get a point Oct 16 16:48:32 ah ok Oct 16 16:48:45 and if you get 5 points you go to level 2 which the random numbers are between 10-100 Oct 16 16:48:55 give me a second Oct 16 16:50:22 okay Oct 16 16:50:23 peyam Oct 16 16:50:30 marrrk, yes Oct 16 16:50:34 in your tests did you ever press on correct? Oct 16 16:50:47 when you created new random values? Oct 16 16:51:44 its really hard to debug anything in there with those variables Oct 16 16:51:52 try to move them into method scope Oct 16 16:51:58 peyam Oct 16 16:51:59 you want Oct 16 16:52:00 else if Oct 16 16:52:04 in your correct method Oct 16 16:52:10 oooh :D Oct 16 16:52:12 yeah marrrk Oct 16 16:52:13 are you should? Oct 16 16:52:16 yes Oct 16 16:52:17 thats the problem Oct 16 16:52:18 im sorry Oct 16 16:52:31 if (point > maxPoint1 || point < maxPoint2) triggers Level2() doesn't it? Oct 16 16:52:48 yes Oct 16 16:53:03 yep Oct 16 16:53:22 on every correct you are currently triggering Level1() and immediatlym after that Level2() Oct 16 16:53:31 which is why you get higher numbers Oct 16 16:53:57 awkeii thank you very much Oct 16 16:53:58 but really do what danijoo said about making a function for your levels. Oct 16 16:54:09 one more question Oct 16 16:54:10 instead of level2 and level3 Oct 16 16:54:46 everytime you have to write the same code more then once, its a design problem *thumbrule* Oct 16 16:55:02 thumbrule haha Oct 16 16:55:16 that laugh makes me think its not the same in english... ^^' Oct 16 16:55:23 the Back method. at the end of the code. since I want some information to go to the Menu class but dont want to make a intent. is it the right way to do that? Oct 16 16:55:39 well I think it's close, I'm German as well, it just sounds very German to me (rule of thumb?) Oct 16 16:55:56 marrrk: yeah ^^ Oct 16 16:55:59 peyam: no. Oct 16 16:56:02 http://pastebin.com/zqzB0Bn6 Oct 16 16:56:03 that wont work Oct 16 16:56:13 read about intents and bundles Oct 16 16:56:14 this is the menu Oct 16 16:56:38 you need to add those variables level, point to the intent Oct 16 16:56:42 and then grab it out of it Oct 16 16:57:29 yes. but the is a problem. the menu intent come before the game. and there is a button in the play class that direct you to the menu class. since Score button needs a input Oct 16 16:57:52 the first time you use the application it wont open the score page. becouse there is no info Oct 16 16:59:35 has anyone setup integrated Monkeytalk with an application that uses Dagger? Oct 16 16:59:42 i'm having trouble getting AspectJ and dagger to play nicely Oct 16 17:00:32 ajc doesn't seem to like SOURCE_OUTPUT Oct 16 17:00:45 StandardLocation define that dagger uses to write the sources it generates Oct 16 17:01:45 peyam: the first time you use the application the intent bundle will be empty Oct 16 17:01:50 * StingRay_ wonders if apple are going to screw up the live steam again :) Oct 16 17:01:51 you can check for that Oct 16 17:02:10 nice. thanks danijoo you saved my day Oct 16 17:02:12 im not sure what you want to do but you should read more on android lifecycle and intents i think Oct 16 17:16:32 Hi all. Running the Android avd manager on Mageia Linux x86-64 5/Cauldron gives me this - http://www.shlomifish.org/Files/files/text/android-crash.txt Oct 16 17:29:40 oh yeah there is an apple event Oct 16 17:33:08 yeah, seems like it's a sitcom for retards more than a tech pres. Oct 16 17:33:14 g00s you watching ? Oct 16 17:33:22 no Oct 16 17:33:35 i never watch this stuff; just wait until summaries are up :) Oct 16 17:42:02 Using android studio. I get an error that "gradle project sync failed" The messages view says "could not find method compile() for [com.android.support:support-v4:+] and suggests I install the android support repository from the SDK manager. But that repo is already installed! Oct 16 17:43:23 wat do Oct 16 17:43:29 I ask you, "wat" Oct 16 17:43:57 does it work from commandline? Oct 16 17:43:58 if not Oct 16 17:43:58 fix Oct 16 17:44:00 do again Oct 16 17:44:26 What should I do on the command line specifically? Oct 16 17:44:29 pfn: ^^ Oct 16 17:44:35 uh, run the gradle build Oct 16 17:44:43 pfn: I'll look up how to do that. Oct 16 17:46:20 I have a boolean field 'fileLoadFailed'. What should I call the accessor? 'didFileLoadFail'? Oct 16 17:47:35 can I ask, what's the difference between writing Activity.this as opposed to just this? Oct 16 17:47:41 I guess I could call the field 'fileLoaded' and use 'isFileLoaded', but I'm not sure whether that works well. Oct 16 17:49:21 MartialLaw: A qualified this (e.g., "ClassName.this") is used in inner classes to reference the "this" of the outer class. Oct 16 17:49:54 Is your question motivated by writing an event handler? Oct 16 17:51:04 TacticalJoke: use checkLoadFailed() returning true if failed false if not Oct 16 17:51:26 Hmm, that's a good idea. Oct 16 17:51:52 :-) Oct 16 17:52:17 I'm gonna use that. Thanks. :D Oct 16 17:52:26 what I want to know is the standard/accpted/most widely used notation for vars… some_var or someVar Oct 16 17:52:57 In Java? Camel case is the accepted naming convention. Oct 16 17:53:02 someVar is function notation but I always see members written like that Oct 16 17:53:03 For variables and fields. Oct 16 17:53:33 but it depends on the language Oct 16 17:53:47 Pascal uses CamelCase, microsoft camelCase Oct 16 17:53:53 i prefer camel_case Oct 16 17:53:53 Yeah. snake_casing is popular in C and stuff. Not sure how the numbers compare overall. Oct 16 17:54:06 snake_case that’s it Oct 16 17:54:14 http://en.wikipedia.org/wiki/Snake_case Oct 16 17:54:20 pfn: Thanks! I figured out I had two projects (one in my eclipse workspace and one in .AndroidStudio in my home folder with a slightly different but similar name) Oct 16 17:54:28 it’s just obvious what this var_is Oct 16 17:54:42 I like train-case. Oct 16 17:54:42 deadmund.. I hate when taht happens Oct 16 17:54:51 what error were you getting? Oct 16 17:55:20 lol Oct 16 17:55:22 choo choo Oct 16 17:56:03 lol Oct 16 17:56:11 Requesting feedback reg'd SSH on Android @ https://gist.github.com/niftylettuce/2439764ad97f1d215c5b Oct 16 17:56:24 AKA spinal-case and kebab-case. Oct 16 17:56:26 According to WP. Oct 16 17:56:35 Oh, Train-Case might need caps. Oct 16 17:56:54 That does look surprisingly like a train. Oct 16 17:57:13 wha tlang uses Tran-Case? Oct 16 17:57:47 I think Lisp does. Oct 16 17:57:47 Java would freak out for sure Oct 16 17:57:55 Also, CSS. Oct 16 17:58:02 then what about subtraction? Oct 16 17:58:03 I guess XML can use it. Oct 16 17:58:18 I'm not sure about Lisp. In general, you could require whitespace around binary operators. Oct 16 17:58:30 I'd be happy with that, personally. Oct 16 17:58:36 I never type x=a-b; Oct 16 17:58:39 ah not bad Oct 16 17:58:41 x = a - b; // FTW Oct 16 17:58:41 nor do I Oct 16 17:59:08 I did once and my prof got on me for doing it. Oct 16 17:59:17 Whitespaceissooverrated. Oct 16 17:59:30 Okay, that's not the best analogy ever, but it's fun. Oct 16 17:59:37 I did it the rest of the year though because he wouldn’t let me skip some unnecessary assignments Oct 16 17:59:54 I hate when people write Python code like this: someverylongidentifier = someotherverylongidentifier Oct 16 17:59:56 Eww! Oct 16 18:00:16 have you seen that gnarly obfuscation that removes all unnecessary whitespace? Oct 16 18:00:22 Is there any way I can "ping" and android device by phone number, and get location of the device Oct 16 18:00:25 entire class is 1 line Oct 16 18:00:33 I've seen the obfuscated code contests. :D Oct 16 18:00:41 Hell no subhojit777 Oct 16 18:00:55 can you even do that in Java? Oct 16 18:01:00 you have to override operators.. Oct 16 18:01:17 I mean I’m aware of obfuscation by renaming Oct 16 18:01:43 subhojit777: not jsut any phone number I should say Oct 16 18:01:57 I think Java is rather limited here. Oct 16 18:01:58 subhojit777: but if you had client/host apps sure Oct 16 18:02:01 Gladly. Oct 16 18:02:19 tricknology, ok.. thanks Oct 16 18:02:20 subhojit777: there are many apps that will request a friends location and send it to you if they accept it Oct 16 18:02:35 subhojit777, I want to build one Oct 16 18:02:48 subhojit777: I have built one, I could help you Oct 16 18:03:24 subhojit777: but you need the app installed on the client and the host Oct 16 18:04:38 tricknology, so.. I want to build an app where user selects some range, then the app points the location of devices by numbers of user's contact list. Yes, the tracked user should have that app installed Oct 16 18:06:40 tricknology, so I was thinking of maintaining a database to store the relation of user and numbers (as users) in his contact list Oct 16 18:20:42 Will the Material theme: @android:style/Theme.Material be available only to phones running L or is it possible to backport it? Oct 16 18:21:28 God, I just tried to name a field "itemListFileReadFailureNotificationActive". Oct 16 18:21:33 There's something wrong here. Oct 16 18:21:51 marrrk: https://plus.google.com/+ChrisBanes/posts/gmAV3n2wmXs Oct 16 18:21:53 marrrk: Not sure. I'd expect it to be back-ported. Oct 16 18:22:09 what is "Resolution" of a sensor? Oct 16 18:22:24 Okay, SimonVT I have that already actually, I didn't know if that included resources. Oct 16 18:22:54 Well not "okay", but "thank you" Oct 16 18:22:59 sounds like appcompat is geting extensive overhaul :) Oct 16 18:23:19 It's no fun using AppCompat from Eclipse. :| Oct 16 18:23:21 You'll see tomorrow Oct 16 18:23:27 yup Oct 16 18:23:27 I don't want to wait until 17th October in San Francisco or wherever. Oct 16 18:23:31 t2mkn, how often or how fine the readings are. or both Oct 16 18:23:38 It's no fun using Eclipse Oct 16 18:24:15 I suppose that there will be no way in the old versions to change the colour of the status bar and soft buttons. Oct 16 18:25:57 marrrk: Is using IntelliJ + Gradle fun? Oct 16 18:26:06 I don't know Oct 16 18:26:18 ObrienDave: got it. so how the value is used. say one sensor is returning 20.0 and in other device its returning 0.009 Oct 16 18:26:30 I just know that using IntelliJ is more fun than using Eclipse. Oct 16 18:26:52 marrrk, the theme itself is only available in L Oct 16 18:26:56 marrrk, but there should be an appcompat theme Oct 16 18:27:13 TacticalJoke, just don't use eclipse Oct 16 18:27:13 duh Oct 16 18:27:20 using just about any library these days is painful from eclipse Oct 16 18:27:24 Yeah, and use pfn's plugin Oct 16 18:27:32 Yeah, but doing JVM unit testing is painful from Android Studio. Oct 16 18:27:36 Building is also painful-ly slow. Oct 16 18:27:36 And then everything becomes fun :) Oct 16 18:27:40 ObrienDave; does it mean in one device units changed is 20+ and in other its 0.009+ but its not happening in my observation Oct 16 18:27:52 I *wish* I could switch to AS. :[ Oct 16 18:28:08 * pfn shrugs Oct 16 18:28:09 Is there any reason to use AS over IntelliJ? Oct 16 18:28:20 TacticalJoke why can't you ? Oct 16 18:28:26 StingRay_: JVM unit testing and slow builds. Oct 16 18:28:52 TacticalJoke does your company all use eclipse ? Oct 16 18:28:52 What is JVM unit testing? Oct 16 18:29:01 I'm just a lone developer. I'm on Eclipse for now. Oct 16 18:29:04 running pure Java unit tests Oct 16 18:29:07 as opposed to Andorid unit tests Oct 16 18:29:08 marrrk: I mean "unit testing on the Java virtual machine". Oct 16 18:29:13 TacticalJoke would rather stay with eclipse than just use the regular instrumentation testing on genymotion / haxm Oct 16 18:29:19 Right. Oct 16 18:29:20 much faster cuz they can run in the JVM Oct 16 18:29:37 TacticalJoke your crazy, but entitled to your craziness Oct 16 18:29:39 :D Oct 16 18:29:40 anyway, unit tests are overrated, my bugs are 99% of the time in integration Oct 16 18:29:43 not in unit code Oct 16 18:29:46 JVM-unit-testing master race represent. Oct 16 18:29:59 both levels of testing are vital Oct 16 18:30:04 my bugs are 99% of the time in android XD Oct 16 18:30:08 g00s: haha Oct 16 18:30:19 so they aren't technically my bugs :) Oct 16 18:30:19 g00s: Do you use GenyMotion or whatever for unit tests? Oct 16 18:30:22 pfn: And how do you test those? Oct 16 18:30:31 TacticalJoke yeah Oct 16 18:30:32 marrrk, instrumented tests do all the integration I need Oct 16 18:30:43 g00s: So you have to use JUnit 3? *sadface* Oct 16 18:30:53 I see. I have just given up on testing on Android altogether. Oct 16 18:30:54 you can write a junit 4 runner in junit3... Oct 16 18:31:06 marrrk: I would've, if not for JVM testing. Oct 16 18:31:09 I'm surprised no one's done that Oct 16 18:31:17 With JVM testing, I just write regular JUnit 4 tests. Oct 16 18:31:20 TacticalJoke, e.g. your paste before, such trivial tests Oct 16 18:31:29 Yes, very simple ones. Oct 16 18:31:34 TacticalJoke the guy who wrote testNG used to be on the android team :) Oct 16 18:31:41 those kinds of tests are the ones that are never valuable to me Oct 16 18:31:42 Interesting. Didn't know that. Oct 16 18:31:47 pfn: Those are vital. Oct 16 18:31:51 cbeust left because it never got any better Oct 16 18:31:53 I tried getting around JUnit but I couldn't make the instrumentation tests use ScalaTest. Oct 16 18:32:01 marrrk, yeah, that would be painful Oct 16 18:32:24 TestNG's annotations are atrocious Oct 16 18:32:29 g00s: Are you using TestNG? Or JUnit 3? Oct 16 18:32:52 marrrk, you'd have to write your own runner that would adapt junit3 to scalatest, it takes some work Oct 16 18:32:58 but nothing I've ever been interested in doing Oct 16 18:33:03 (Might be a false dichotomy.) Oct 16 18:33:06 I have been interested but not qualified. Oct 16 18:33:17 I don't even know where I would need to start reading to get anywhere close. Oct 16 18:33:47 I wondered the other day what Google would do with Android if JakeWharton didn't fix half of it. Oct 16 18:34:21 I don't see much benefit of TestNG over JUnit 4. Oct 16 18:34:25 Even though JUnit 4 sucks. Oct 16 18:34:31 e.g., parameterized tests are awful. Oct 16 18:34:40 junit4 fixed just about everything that testng tried to address Oct 16 18:34:42 NUnit was so much better. Oct 16 18:34:55 Apparently specs2 is good too, but I've never used that. Oct 16 18:35:09 specs2 is good for purely functional code Oct 16 18:35:23 if you want good unit tests, specs2 is where it's at Oct 16 18:35:39 Do you folks use AssertJ? Oct 16 18:35:42 Sounds good. Oct 16 18:35:45 I heart AssertJ. Oct 16 18:36:06 TacticalJoke: use burst! Oct 16 18:36:06 Though it's far from perfect. Oct 16 18:36:09 for sure Oct 16 18:36:32 Oh, for parameters? I'll check it out. Oct 16 18:36:33 but yeah, JUnit 4 is atrocious Oct 16 18:36:37 never look under the hood Oct 16 18:36:52 (everything's atrocious today, apparently) Oct 16 18:36:54 JUnit 4's documentation is also horrible. Oct 16 18:37:01 It's like the writer has schizophrenia. Oct 16 18:37:09 pfn: And your instrumentation tests do you run them on the device Oct 16 18:37:10 ? Oct 16 18:37:15 marrrk, of course Oct 16 18:37:24 No offence to anyone who does. It could just make documentation odd. Oct 16 18:37:24 yeah i was going to say, almost everythin is atrocious these days. looking at the source for rxjava ... Oct 16 18:37:41 so which testing framework is preferred by you guys/ Oct 16 18:37:41 rxjava is just complicated Oct 16 18:37:46 junit is just bad Oct 16 18:37:52 It's slower for me to run on device than genymotion. Oct 16 18:37:54 It's a shame, because NUnit is very good. Oct 16 18:38:01 It has basically everything it should have. Oct 16 18:38:08 Including decent parameterized tests. Oct 16 18:38:16 the only redeeming quality of JUnit 4 is @Rule Oct 16 18:38:21 And good(ish) documentation. Oct 16 18:40:00 It seems noobody is using Robolectric. Oct 16 18:40:08 Maybe it doesn't matter, but isn't it weird that JUnit 4 doesn't have assertEquals(int, int)? Oct 16 18:40:17 Not that I use 'assertEquals' ever. Oct 16 18:40:28 marrrk: I think many are. Oct 16 18:40:38 marrrk: thousands are. tens of thousands. Oct 16 18:40:59 Alright. I meant here, now the people who gave their opinions. Oct 16 18:41:05 i use it Oct 16 18:41:11 unit test all the things Oct 16 18:41:29 The moment I, upon coming to JUnit 4 for the first time, found that it didn't have "assertEquals(int, int)", I just knew it was gonna suck. Such a weird decision. Oct 16 18:41:30 That's another thing I could sadly not get to run. Oct 16 18:42:15 A wild Wharton appears Oct 16 18:42:19 marrrk: Why couldn't you get it to run? Because you're using Android Studio? Oct 16 18:42:27 Or are you doing some Scala voodoo. Oct 16 18:42:33 The latter. Oct 16 18:43:39 JakeWharton: TacticalJoke is staying away from Android Studio due to complications with JUnit and the speed of Gradle. Thoughts? Oct 16 18:43:41 pfn: This cracked me up today: https://github.com/pfn/android-sdk-plugin/issues/115 Oct 16 18:43:52 ug Oct 16 18:44:06 TachyonDev: no, it's because of "Scala voodoo" Oct 16 18:44:29 hah Oct 16 18:44:34 girlfriend or whatfriend i should say Oct 16 18:44:47 Scala voodoo is marrrk. :D Oct 16 18:45:04 oh Oct 16 18:45:07 search blundell robolectric Oct 16 18:45:08 do that Oct 16 18:45:15 lol i already linked him Oct 16 18:45:28 feel free to scroll up :P Oct 16 18:45:30 JakeWharton i'm somewhat confused about the rxjava artifacts on maven central; should i be using netfix or reactivex ? Oct 16 18:45:37 latter Oct 16 18:45:40 That says "You could use J Whartons Gradle Android test plugin or the Novoda Gradle Android test plugin." Oct 16 18:45:41 ok, thanks Oct 16 18:45:44 The former is deprecated, right? Oct 16 18:45:51 don't use any plugin Oct 16 18:45:52 they all suck Oct 16 18:45:55 Right. Oct 16 18:45:56 +1 Oct 16 18:45:59 the nextflix one just got updated again 0.20.6 Oct 16 18:46:41 Should I replace a (potentially) long ListView with a RecyclerView? Oct 16 18:46:55 g00s: .7 Oct 16 18:46:58 oh Oct 16 18:47:02 i thought you were talking about 1.0 Oct 16 18:47:12 marrrk: not unless there is clear benefit Oct 16 18:47:19 otherwise don't waste your time Oct 16 18:47:24 JakeWharton: Would it be better to do this blundell thing or just wait for JVM unit tests in AS? Oct 16 18:47:53 i don't know. if you can wait, wait. this isn't really that hard to setup though Oct 16 18:47:56 I am just loading a list of facebook friends, and I wasn't sure how Picasso handles the pictures. I was worried for crazy people with 5000 friends this could become a problem. Oct 16 18:47:58 Okay. Oct 16 18:48:10 blundell has the junit guide too Oct 16 18:48:23 Even for non-crazy people with 5000 facebook friends Oct 16 18:48:50 I'll just try it out Oct 16 18:49:16 marrrk: as long as you dont put those images into memory all at the same time its fine Oct 16 18:49:41 Well that much I figured. Oct 16 18:49:45 Wait, that's talking about separating my app into an Android module and a Java module. Seems kinda restrictive. Oct 16 18:50:49 If, one day, I make a class Parcelable, it might have to jump from the Java module to the Android module. Not sure I like the sound of that. Oct 16 18:51:53 marrrk, clear benefit: Built in support for item animations Oct 16 18:52:08 SimonVT: The recyclerview has? Oct 16 18:52:20 yes Oct 16 18:52:22 I love animations. Oct 16 18:52:27 Cool, I'll just try it out. Oct 16 18:55:23 and all the work ive done already to make our app look like material before material was out .. sigh Oct 16 18:55:59 TachyonDev what have you done ? Oct 16 18:56:04 TachyonDev: Does this solution require that I put all my app's Java-only code into its own module? Oct 16 18:56:46 StingRay_: trying to make the app look similar too all the google apps, figuring they were going to release designs around them, google music, etc Oct 16 18:56:52 (The app code, not the unit-test code.) Oct 16 18:56:58 btw : anyone needing app promotional vid ? I'm thinking of firing Maya up and doing a template sting ,,, may make it available to others if needed Oct 16 18:57:19 TachyonDev you knew that would happen though :| Oct 16 18:57:27 TachyonDev: Not sure, we don't implement our apps that way, we use mockito and android studio with AS configurations and build variants Oct 16 18:57:34 i think lots of people jumped the gun there, trying to get all fancy making their app material ... Oct 16 18:57:40 when the guidelines aren't even solidified Oct 16 18:57:56 thats what we call "scrap and rework", or inventory ;) Oct 16 18:58:00 g00s: yeah, its the price you pay .. doing everything by hand with custom loaders and shadows and whatnot Oct 16 18:58:02 *dont do that* Oct 16 18:58:08 now you just get a z axis variable Oct 16 18:58:10 TachyonDev material design (pastel color and shadow) is ok, but the fluff stuff I really dont think it is… I have stopped using some of the google apps due to what they have done Oct 16 18:58:36 i meant dont get me wrong, i havent gone crazy, just took design inspiration Oct 16 18:58:46 TachyonDev: Why is having done that a problem now? Oct 16 18:59:04 marrrk: which? Oct 16 18:59:05 JakeWharton: This blog post seems to suggest that either I create a Java module for my app's Java code or I run tests from the command line. I don't feel that this blog post gives a solution to the issue, really. Oct 16 18:59:24 TachyonDev: You trying to make your apps follow Material design. Oct 16 18:59:44 i mean it was previous to all the new apis and classes to help you do it Oct 16 18:59:53 RecyclerView, etc Oct 16 19:00:11 * hackkitten runs for cover at the mentioning of people putting fire to her @_@ Oct 16 19:00:38 Oh maya is still around too, haven't see you forever Oct 16 19:00:41 Okay, but you probably have a much clearer idea of what you want now at least. And what works and what doesn't. I think people are taking these Google guidelines too seriously anyway. Oct 16 19:00:54 oh for sure Oct 16 19:01:08 my designer and I definitely took some liberties Oct 16 19:01:20 im just glad I have a designer that understand Android is it's own beast Oct 16 19:02:19 What do you mean by that? Oct 16 19:02:32 marrrk: Not trying to copy iOS over to Android Oct 16 19:02:37 TachyonDev: still here, just lurking. Life is being busy to me @_@ Oct 16 19:02:45 Somebody who's read this: http://developer.android.com/design/patterns/pure-android.html ? Oct 16 19:03:04 hackkitten: yeah seems life just keeps moving faster Oct 16 19:03:38 marrrk: and listens to his Android developer ;) Oct 16 19:03:51 That article always annoyed me because of how patronising it is. Don't make it look like iOS. They don't tell you why, though. Oct 16 19:04:47 marrrk there are no rules… just do what is justified and correct for both user and purpose as all design is Oct 16 19:05:02 That's what that article should say. Oct 16 19:05:02 if that happens to be an iOS thing fine, if not equally fine Oct 16 19:05:31 StingRay_: Depends on the size of your team as well .. if you have 20 Android developers, you can write all the iOS cloning custom widgets you want and maintain them through Android release cycles Oct 16 19:05:55 And if your users are happy with that, maybe that's what you should do. Oct 16 19:06:07 yup .. all depends on the situation, team size, application, etc, etc Oct 16 19:06:13 TachyonDev well tbh it also depends on either your design skill or access to a designer….because if both are zero…ffs follow the guides to the letter Oct 16 19:06:14 :) Oct 16 19:06:21 hah fair Oct 16 19:06:40 they were created to combat programmer visual designs Oct 16 19:07:13 and they have done a good job, but for others that either know design or have a designer… they are mostly irrelevant …depending on context Oct 16 19:07:30 cant believe ive been at this startup for 15 months .. went by so fast Oct 16 19:08:56 TachyonDev: Can I see any of your Material Design stuff? Oct 16 19:09:35 marrrk: search for getlua on the play store Oct 16 19:10:14 nice set of permissions Oct 16 19:10:24 marrrk: business bro, business Oct 16 19:10:39 we are B2B Oct 16 19:10:52 at least you can make money, then Oct 16 19:11:03 heh indeed Oct 16 19:11:17 is the width of the login elements supposed to be that wide without any padding or margins? Oct 16 19:11:44 you on a tablet or something? Oct 16 19:11:56 That weird emulator thing Oct 16 19:11:59 oh Oct 16 19:12:01 yeah it's like a phablet, I guess. Oct 16 19:12:07 yeah the designer wanted it Oct 16 19:12:25 looks a little odd on larger form factors though Oct 16 19:12:30 Looking at the Screenshots now. They are nice. Why is the vertical ellipsis in the People tab squares? Oct 16 19:12:48 mini-overflow .. pulled from Google Music type things Oct 16 19:12:56 there is a screenshot showing the dropdown Oct 16 19:13:03 The rest is really nice, in my opinion. Oct 16 19:13:15 yeah we are featured on the android wear store right now :) Oct 16 19:13:37 https://play.google.com/store/apps/collection/promotion_3000cf4_android_wear_all Oct 16 19:14:12 also if you click on "Browse suggested apps" in the Android Wear app, and click on communication, we are right there Oct 16 19:14:41 thanks for the complement btw Oct 16 19:14:44 Out of laziness, I will believe you. Oct 16 19:14:48 ;) Oct 16 19:20:36 15 months? Oct 16 19:20:42 damn, how long were you at msft? like 2 months? Oct 16 19:21:06 lol Oct 16 19:21:11 a year Oct 16 19:23:09 crashlytics is starting to piss me off…there is an example of aesthetics over function Oct 16 19:25:35 StingRay_, that's what I've told you for the longest time Oct 16 19:25:38 ive been pissed at bugsense since the buyout Oct 16 19:25:41 it just /looks/ good Oct 16 19:25:49 or should I say Splunk MINT Express Pro Oct 16 19:26:04 pfn well yeah I know you have… and at a basic level it works for a noob/non-pro like me Oct 16 19:26:06 We just switched to crittercism Oct 16 19:26:09 just of late…ugh!!! Oct 16 19:26:29 acralyzer would be nice, if it ran on appengine Oct 16 19:26:52 I don't want to have to deal with managing a full vps Oct 16 19:28:17 TachyonDev: I'm still kinda annoyed at my job, though. I was hired as a mobile dev yet this year I have done pretty much only Java servlet fluff >.> Oct 16 19:28:23 it's enough to drive a kitten to drink ;_; Oct 16 19:28:53 At least you got to do programming. Oct 16 19:31:06 doh Oct 16 19:31:13 I think most of us already drink Oct 16 19:31:42 hello guys, I have a menu for settings, and a label called settings, that I want to open a fragment, somone can tell me how I do that Oct 16 19:31:45 I mean I have two craft microbrews on tap in the basement calling my name Oct 16 19:31:54 * StingRay_ dont drink, ffs dont even smoke now :( whats left Oct 16 19:32:07 StingRay_: Borderlands? Oct 16 19:32:17 the game ? Oct 16 19:32:23 yeah I could play that I suppose Oct 16 19:32:26 yeah the new one came out yesterday Oct 16 19:32:30 err tues Oct 16 19:32:41 my wife and I got 3 hours in already Oct 16 19:32:41 Once Android Studio is released, will we be able to JVM-unit-test our projects without breaking our projects up into Java modules and Android modules? Doing this is hugely limiting. Oct 16 19:32:44 prefer arma 3 wasteland Oct 16 19:32:49 released? lol Oct 16 19:32:59 Oh I'm playing Wasteland 2 right now Oct 16 19:33:08 since they did two big patches and fixed a ton of crap Oct 16 19:33:27 hackkitten: Just say no to java servlets Oct 16 19:33:30 TachyonDev get arma 3…meet me on wasteland server Oct 16 19:34:19 StingRay_: lol what right now? Oct 16 19:34:45 TachyonDev naa…I wish… need to fix some crap in my crappy app crap sh*t Oct 16 19:34:53 yeah im trying to get this release out ;) Oct 16 19:35:27 pretty sure I'm fighting android bugs though Oct 16 19:36:30 pfn: Sometimes intellij gets confused about some some dependencies (they are there but gen-idea doesn't seem to add them), I never really know what to do so I do some funny combination of clean, run, gen-idea. Is there a more obvious way to do this? Oct 16 19:37:14 Do you folks ever show toasts from an Android subclass? Oct 16 19:37:18 Application* Oct 16 19:37:28 It also always lies about failed downloads. Oct 16 19:38:32 TachyonDev: I know, but I have to make my hours to get paid :( Oct 16 19:38:42 * hackkitten shakes a fluffy paw at an uncaring world~ Oct 16 19:38:55 on the other hand I'm moving more towards hardware designing Oct 16 19:39:00 FPGA stuff and such Oct 16 19:39:10 yay career change~ Oct 16 19:39:42 TacticalJoke as we've said before you can show toats from any place that you have an application context Oct 16 19:39:45 toasts* Oct 16 19:40:56 and i don't see why it matters if you show them from an application subclass or anywhere else where you use the application context Oct 16 19:41:08 (which is almost every injected dependency in my applications) Oct 16 19:41:19 JacobTabak: You know that solution you suggested the other day, for JVM-unit-testing in AS? Did that require breaking our app into Java modules and Android modules? Just wondering. Oct 16 19:41:21 hehe Oct 16 19:41:23 JacobTabak: Okay. Oct 16 19:41:27 I started in FPGA/CPLD/DSP stuff Oct 16 19:41:30 ended up in Android Oct 16 19:41:33 because there is more money Oct 16 19:41:42 though hardware was very fun Oct 16 19:41:43 TacticalJoke it doesn't not require it but it is highly recommended Oct 16 19:41:49 I don't get to make things smoke with Android :( Oct 16 19:41:51 if you dont' use separate modules you have to use the robolectric plugin Oct 16 19:42:01 I see. Oct 16 19:42:03 which forces you to sacrifice control over your build process Oct 16 19:42:26 I hope they finally fix AS so that we can just test our projects on the JVM (regardless of whether our code is touching Android). Oct 16 19:42:32 Eclipse can do this. Oct 16 19:42:35 any encountered this http://pastebin.com/hbYtfeTh happens on an activity (styled as dialog) that message is repeated indefinite when keyboard pops up and window is attempting resize Oct 16 19:42:43 subhojit777: you would want to do that on a backend then, so that your devices can update their locations in the db and others can see those locations Oct 16 19:42:49 TacticalJoke i don't see how they can do it Oct 16 19:42:59 how could you test a content provider for example? Oct 16 19:43:03 thought the resize doesn't complete and stays behind the keyboard Oct 16 19:43:10 JacobTabak: Mock it? Oct 16 19:43:13 JacobTabak: Isn't that what Robolectric does? Oct 16 19:43:16 subhojit777: would you be interested in working on the project I am updating? Oct 16 19:43:17 Via mocking, right. Oct 16 19:43:25 so what if you didn't have a mocking framework? Oct 16 19:43:27 subhojit777: it sounds very similar. Oct 16 19:43:31 get one? Oct 16 19:43:31 what would happen? Oct 16 19:43:40 You'd get that "Stub!!!" thing. Oct 16 19:43:43 right Oct 16 19:43:50 which isn't really that elegant Oct 16 19:43:57 robolectric, mockito, junit is so crude Oct 16 19:43:59 i think the issue is there's not really a good solution Oct 16 19:44:03 and yes it's their fault Oct 16 19:44:08 I'm just saying that I hope that they don't release AS with the limitation that you have to break your app up into Java/Android modules in order to unit-test it. :/ Oct 16 19:44:18 i don't see why that's a limitation Oct 16 19:44:20 That's so restrictive. Oct 16 19:44:28 if they could enhance the tooling jsut a little bit Oct 16 19:44:30 it would be fine Oct 16 19:44:30 meh you guys go ahead and support each other :) Oct 16 19:44:39 we're not supporting eachother, we disagree on everything Oct 16 19:44:43 JacobTabak: What if I have a class in my "Java" module" that one day starts to implement Parcelable? Oct 16 19:44:48 Then it has to go from "Java" to "Android". Oct 16 19:44:58 And it can no longer be tested. But that's crazy. Oct 16 19:45:00 stop using junit? Oct 16 19:45:16 TacticalJoke why would you need your test class to implement parcelable? Oct 16 19:45:34 Not the test class, but the class being tested. Oct 16 19:45:52 I don't mind putting my unit tests into a Java module. Oct 16 19:46:03 But I don't like the idea of breaking my Android app up into "Java" and "Android" modules. Oct 16 19:46:16 i don't follow Oct 16 19:46:20 none of my app is in a java module Oct 16 19:46:23 Oh. Oct 16 19:46:26 although some of my libraries are built in java Oct 16 19:46:35 and built to jars Oct 16 19:46:52 So you were saying that only **unit tests** would have to go into a Java module? Oct 16 19:46:57 yes Oct 16 19:47:03 Oh, I don't mind that. In fact, I like that idea. Oct 16 19:47:12 here is my project structure - app (main/test) robolectric (test) Oct 16 19:47:18 But you can't do that with AS right now, right? I think it requires breaking the *project* into Java/Android modules. Oct 16 19:47:24 no Oct 16 19:47:28 this setup works fine Oct 16 19:47:30 it's just tricky to set up Oct 16 19:47:33 Okay. Oct 16 19:47:36 and works better in intellij Oct 16 19:47:37 I'm glad that works. Oct 16 19:47:42 because of the way AS dumbs down the gradle sync Oct 16 19:47:45 I see. Oct 16 19:47:53 one issue is that Oct 16 19:47:59 if i change my app code, i have to compile to get the tests to recognize it Oct 16 19:48:06 Okay. Oct 16 19:48:09 and also debugging doesnt take me directly to the source Oct 16 19:48:14 sometimes i have to reatttach sources Oct 16 19:48:16 which is annoying Oct 16 19:48:18 Do you think they'll fix this so that it all just works? Oct 16 19:48:20 Before releasing. Oct 16 19:48:25 probably not Oct 16 19:48:28 Really? ;o Oct 16 19:48:36 But so many people do JVM unit-testing. Oct 16 19:48:38 i think their emphasis is on attracting new developers Oct 16 19:48:42 next generation Oct 16 19:48:45 Surely they'll fix it eventually. Oct 16 19:48:52 well, the way i see it Oct 16 19:49:14 is that the community that needs testing is resourceful enough to come up with their own solutions Oct 16 19:49:19 https://code.google.com/p/android/issues/detail?id=65186 Oct 16 19:49:32 TacticalJoke: that is not what the blog says at all Oct 16 19:49:58 what blog Oct 16 19:50:02 it creates a java module that pulls the classpath from the application module which facilitates using the normal unit test infrastructure that is already in place Oct 16 19:50:25 TacticalJoke i dont' believe they're prioritizing testing because look at this issue (lol) https://code.google.com/p/android/issues/detail?id=65445 Oct 16 19:50:43 JacobTabak: http://blog.blundell-apps.com/android-gradle-app-with-jvm-junit-tests/ Oct 16 19:51:00 yea thats how my project is set up now Oct 16 19:51:09 but there are problems with it as i mentioned above Oct 16 19:51:28 not to mention that your builds require proguard/release signing Oct 16 19:51:34 if you follow those instructions Oct 16 19:51:56 JacobTabak: Hmm. Strange. Oct 16 19:51:56 btw, he ignored me when i reached out to him with the problem and my fix for it (jerk!) Oct 16 19:52:14 whats wrong with proguard/release signing? Oct 16 19:52:20 but i've got a workaround for that particular issue. the only issues i have now are with attaching the source and having to rebuild the main project manually Oct 16 19:52:44 TachyonDev most people dont put their release signing credentials in source control, so CI will fail Oct 16 19:52:53 That article talks about running your tests via the command line. Oct 16 19:52:57 ./gradlew test Oct 16 19:53:06 yep that works fine Oct 16 19:53:10 and also works fine from the IDE Oct 16 19:53:11 and CI Oct 16 19:53:25 So you have to open the Gradle Tasks thing from the IDE to run tests from the IDE? Oct 16 19:53:35 JacobTabak: so write a blog post so I can stop linking his Oct 16 19:53:42 i dont have a blog :O Oct 16 19:53:51 so write a gist so I can stop linking his blog Oct 16 19:53:53 This is crazy. It should be so easy to do what I'm after. Eclipse does it Oct 16 19:53:53 ! Oct 16 19:53:54 haha Oct 16 19:54:01 i will make a blog Oct 16 19:54:07 JacobTabak: right, we put the key on an encrypted partition where our CI is done. It's not in the source with it. Oct 16 19:54:07 Bob Loblaw's Low Blog Oct 16 19:54:09 Android apps are compiled to Java bytecode. They should be JVM-unit-testable. Oct 16 19:54:13 At that point in time. Oct 16 19:54:19 s/apps/classes/ Oct 16 19:54:19 TachyonDev we use travis! hehe! Oct 16 19:54:21 Or whatever. Oct 16 19:54:32 Transfusion: Java bytecode and the JVM are very different things Oct 16 19:54:48 you cannot make that blind correlation Oct 16 19:54:59 er, TacticalJoke Oct 16 19:55:05 JakeWharton plus i don't feel like my blog post would contirbute anything unless i figure out the detached source issue, ie refactors don't carry through to my tests Oct 16 19:55:30 Maybe one of you two should write a complete essay on this topic. Oct 16 19:55:33 It's mind-bending in a way. Oct 16 19:55:49 jake can't post anything without it being canonicalized Oct 16 19:55:57 hes' gotta be careful about what he says Oct 16 19:55:58 haha Oct 16 19:56:04 (is that a word) Oct 16 19:56:18 canonized? Oct 16 19:56:29 JakeWharton: Just out of interest, do you agree with JacobTabak's prediction that Android Studio will *not* support JVM unit testing (however we're defining "support JVM unit testing") when it's released? Oct 16 19:56:40 no Oct 16 19:56:44 also, what is "released" Oct 16 19:56:47 TacticalJoke i think your mistake is that you think it will be released Oct 16 19:56:53 Eye sea. Oct 16 19:56:54 how long was gmail in beta Oct 16 19:57:16 BTW, why can't I correlate Java bytecode with the JVM? I thought the JVM ran Java bytecode? Oct 16 19:57:16 i predict that they won't prioritize it Oct 16 19:57:19 K. Oct 16 19:57:30 TacticalJoke: it does, but Android doesn't link against the JDK's rt.jar Oct 16 19:57:55 it links against android.jar and requires the framework.jar runtime Oct 16 19:58:00 yeah exactly .. people keep saying "I'm not switching to Studio because its in beta" Oct 16 19:58:22 I have met with the tools team twice and gotten a firm commitment to unit test support as a first-party offering both times Oct 16 19:58:30 Oh, cool. Oct 16 19:58:34 internal teams at Google are unable to switch to AS because of the lack of this Oct 16 19:58:35 And that's JVM unit-test support, I assume. Oct 16 19:58:45 Interesting. Oct 16 19:59:10 I would guess it's likely device-based unit testing. Oct 16 19:59:14 but *shrug* Oct 16 19:59:29 it isn't Oct 16 19:59:34 that already exists and works fine Oct 16 19:59:44 ah Oct 16 19:59:48 The current state of affairs is a good argument against the existence of a benevolent god. Oct 16 20:00:41 software is proof that there exist one or gos and most of them hate us! :-)\ Oct 16 20:00:50 gods Oct 16 20:01:33 JakeWharton: So do you think JVM unit testing will, at some stage, be as simple in AS as it is in Eclipse (e.g., something like creating a Java module for unit tests, and just clicking "Run")? Oct 16 20:01:51 And thereby testing our Android code on the JVM. Oct 16 20:01:58 it won't be a java module, it will be src/test/java/ Oct 16 20:02:09 Okay. Even better. Oct 16 20:02:18 testing Android code on the JVM isn't Google's problem although we've talked about approaches to it Oct 16 20:02:30 but you can keep @RunWith(RobolectricTestRunner.class) and be fine Oct 16 20:02:50 that damn class Oct 16 20:02:53 What about stuff that doesn't use Robolectric? I'm guessing that'll just work, too. Oct 16 20:03:11 In other words, POJOs. Oct 16 20:03:36 <3 POJOs Oct 16 20:03:38 correct Oct 16 20:04:16 JakeWharton: POJOs + Retrofit is so good Oct 16 20:04:37 TachyonDev: yes. it will be normal unit testing and normal runners. Oct 16 20:04:44 TacticalJoke* Oct 16 20:04:49 rename yourselves already Oct 16 20:04:51 K. That's good to hear. Oct 16 20:04:58 haha Oct 16 20:05:13 TacticalJoke here you go buddy https://jobs.lever.co/reddit/bedd3052-e070-4148-a42a-421ba64019a9 Oct 16 20:05:25 JakeWharton: lol dude look at the history, before i started talking to him about his unit testing and AS, I told him he would have to rename himself before I would start arguing with him Oct 16 20:05:26 'Tac' namespace collision. Oct 16 20:05:56 TachyonDev he likes to argue with anyone who will respond to him :D Oct 16 20:06:09 ah ha Oct 16 20:06:41 Nice, JacobTabak. lol Oct 16 20:06:43 Regarding that job. Oct 16 20:06:49 you should apply Oct 16 20:06:51 send them your code Oct 16 20:06:54 be like look, im halfway done! Oct 16 20:06:54 I argue about only stuff I'm extremely passionate about. Oct 16 20:06:57 haah Oct 16 20:06:58 is #SquareStack a trend yet? Oct 16 20:06:58 haha* Oct 16 20:07:18 oh speaking fo that, is Tape any good? Oct 16 20:07:20 Even if they're making a client, I will probably still make mine. Their AMA app wasn't amazing. Oct 16 20:07:29 I need something that will handle large amounts of image uploads in a service Oct 16 20:07:34 including retrying failures Oct 16 20:07:41 ive been meaning to use tape for upload queuing Oct 16 20:08:17 we are already using okhttp, retrofit & picasso Oct 16 20:08:47 though we went with eventbus over otto :P Oct 16 20:08:54 JacobTabak: no Oct 16 20:09:01 no it's not good? Oct 16 20:09:09 it's fine, but don't use it Oct 16 20:09:11 ha Oct 16 20:09:20 just roll my own? Oct 16 20:09:33 couldn't you just use sql? Oct 16 20:09:49 keeping references to wherever they are Oct 16 20:09:56 JacobTabak: if it's a homogenous, linear queue then it'll work fine Oct 16 20:10:00 it is Oct 16 20:10:16 ah Oct 16 20:10:19 TachyonDev i just want to easily handle the case where more items are queued while uploads are in progress Oct 16 20:10:34 i dont like custom code Oct 16 20:10:41 "custom" ? Oct 16 20:10:47 i dont like writing my own code Oct 16 20:10:51 lol Oct 16 20:11:02 id much rather use an open source thing that hundreds/thousands use Oct 16 20:11:05 There's no reason to write code if you can avoid it Oct 16 20:11:18 lol Oct 16 20:11:24 path of least resistance Oct 16 20:11:36 path of having other people fix the bugs before you even think about them Oct 16 20:11:42 + Oct 16 20:11:47 today I faced something like this Oct 16 20:12:03 I need a nav drawer, but not like the out of the box one, I needed one that pushed the view out and was revealed Oct 16 20:12:09 oh the pain Oct 16 20:12:12 +1 to not writing code Oct 16 20:12:17 of course.. i pull in other peoples zoomable imageviews, horizontal listviews, etc Oct 16 20:12:26 Odaym that is pretty easy custom code though Oct 16 20:12:30 i'd rather write that myself than use a lib Oct 16 20:12:31 i roll very very few custom views/widgets Oct 16 20:12:43 i mean, once you've done it before Oct 16 20:12:51 writing code is for peasants Oct 16 20:12:56 and what do you do, JacobTabak ? Oct 16 20:13:00 real people copy paste from stackoverlof Oct 16 20:13:04 *stackoverflow Oct 16 20:13:12 just add a drawer listener and set the translationX of the content frame Oct 16 20:13:15 what I did was place the view on the screen with a translationX being minus, then objectanimator on it and the contentview Oct 16 20:13:42 seems like an overly complex approach, unless i'm not understanding what you're trying to do Oct 16 20:14:16 you just place it hidden first, when the button is pressed you push it out to show it and push out the view that it's supposed to be "pushing out as it's being revealed" Oct 16 20:15:01 there is no drawer, the drawer will behave like any Android drawer out there, coming out ontop of its host view Oct 16 20:15:15 you need to reveal the drawer (actually just expandablelistview) under the host view Oct 16 20:15:29 hmm... download 7sage lsat real quick and tell me if thats what you're talking about Oct 16 20:15:38 Slack <-- Oct 16 20:15:39 does it Oct 16 20:16:04 34 mb man Oct 16 20:16:07 ok Oct 16 20:16:16 slack with teh hashtag icon? Oct 16 20:16:20 yea Oct 16 20:16:27 im not signing in or creating an account P: Oct 16 20:16:31 oh Oct 16 20:16:35 thought you'd already have it Oct 16 20:16:39 marrrk, just gen-idea and restart intellij Oct 16 20:16:40 never heard of it Oct 16 20:16:42 it's Slack Oct 16 20:16:46 marrrk, intellij 14 adds native support for my plugin Oct 16 20:16:51 Why is RecyclerView.onMeasure throwing a null pointer exception? Oct 16 20:16:56 pfn: Woah, is that usable? Oct 16 20:16:58 because you dont have a layoutmanager marrrk Oct 16 20:17:03 marrrk, it should be available in EAP Oct 16 20:17:10 https://youtrack.jetbrains.com/issue/SCL-6273 Oct 16 20:17:18 odaym the large download is lots of audio for the proctor Oct 16 20:17:20 srry bout that Oct 16 20:17:28 I can even switch tab during an in-place rename refactoring in Eclipse. Oct 16 20:17:33 That's pretty hardcore. Oct 16 20:17:37 very nice cover picture Oct 16 20:17:50 i didnt design it, just ported from ios Oct 16 20:17:55 but is that hte drawer functionality you're talking about? Oct 16 20:18:03 oh it isn't down yet :P Oct 16 20:18:06 just a sec Oct 16 20:18:50 yea that's it Oct 16 20:18:56 Im..writing that myself Oct 16 20:19:08 yea its just 1 or 2 lines of code Oct 16 20:19:13 you can get that done from a Drawer? the one we use? Oct 16 20:19:17 yes Oct 16 20:19:22 how? I looked a lot Oct 16 20:19:28 sec ill pastebin Oct 16 20:19:43 pfn: Have you tried it out? Oct 16 20:20:16 man I spent all day trying to write something like that Oct 16 20:20:25 I did eventually, but I had to do the drag tomorrow Oct 16 20:20:34 cause right now only triggering it from the toggle Oct 16 20:21:09 http://pastebin.com/KvfJx3EF Oct 16 20:21:30 theres also some code for the parallax effect Oct 16 20:21:32 accelerometer Oct 16 20:21:44 should be able to ignore Oct 16 20:21:47 the stopping at the end? Oct 16 20:21:49 Hi all -- I am a student and was wondering if someone could assist me. I'm trying to set an actionlistener to an edittext field however it does not seem to be working. some help would be greatly appreciated; as I feel like a neanderthal at the moment. Oct 16 20:22:01 just open the drawer and move hte phone around Oct 16 20:22:05 there's a little ios7 motion effect Oct 16 20:22:17 right Oct 16 20:22:34 let me try Oct 16 20:23:35 i like it when i look at my code months later Oct 16 20:23:39 and still think its good Oct 16 20:23:40 haa Oct 16 20:24:07 Anyone able to help? Oct 16 20:24:17 mikestudent Oct 16 20:24:25 you mean you want the enter/done button to do something? Oct 16 20:24:42 May I message you to avoid spamming the chat? Oct 16 20:24:46 noo Oct 16 20:24:50 thats the point Oct 16 20:24:50 okay Oct 16 20:24:56 alright well it looks fine, but I wouldn't know how to use this Oct 16 20:25:07 I have an expandablelistview that has to sit inside the drawer Oct 16 20:25:14 Yippieh, now it is a recyclerView. It looks exactly the same. Oct 16 20:25:14 my 'app' is a simple temperature converter Oct 16 20:25:20 and that has an adapter and everything Oct 16 20:25:24 mikestudent skip the context :P Oct 16 20:25:28 lol Oct 16 20:25:38 I have a textfield that I would like to be able to .getText() on an enter key Oct 16 20:26:20 I've googled for solutions, and google tells me an anony. inner class seems to be one of the standard ways of doing so Oct 16 20:26:26 yep Oct 16 20:26:27 however, it does not seem to be working for me Oct 16 20:26:39 edittext.setOnEditorActionListener(...) Oct 16 20:27:14 and return true from your 'onEditorAction' method Oct 16 20:27:57 what is the argument that the method takes? Oct 16 20:28:05 Just use intellisense. Oct 16 20:28:08 Ctrl+Space or something. Oct 16 20:28:14 You shouldn't have to type and remember this stuff. Oct 16 20:28:22 yep Oct 16 20:28:24 That obviously doesn't work Oct 16 20:28:29 it does work Oct 16 20:28:33 i don't remember anything like that ever Oct 16 20:28:38 Type "new " + Ctrl+Space. Oct 16 20:28:44 ya Oct 16 20:28:48 high 5 TacticalJoke Oct 16 20:28:57 We're finally agreeing on something. lol Oct 16 20:28:58 that CardView thing doesn't fit with all the rest of material, it seems to me Oct 16 20:30:11 I'm already that far, thats what I was trying to say. but I appreciate the help anyways, thank you. Oct 16 20:30:40 what doesnt work Oct 16 20:30:44 is your code executed Oct 16 20:30:58 we're trying to say that this is how you do it and trying to help you figure out what your'e doing wrong Oct 16 20:31:08 but you haven't shown us code or said anything other than "it doesnt work" Oct 16 20:33:04 I know jacob, thank you Oct 16 20:33:17 It's a bit embarassing showing code at my level of prg Oct 16 20:33:30 Don't worry; we were all noobs once. Oct 16 20:33:41 I've seen some of the worst code you could (n)ever imagine. Oct 16 20:35:19 mikestudent use pastebin Oct 16 20:35:33 just paste the one method (setting the editor action listener) and the anonymous inner class you're using Oct 16 20:36:07 anyone here familiar with disabling animations? Oct 16 20:36:10 This is really bad code (from someone who's not even new to programming): http://jeff-relf.me/DirectX.CPP Oct 16 20:36:12 i'm confused Oct 16 20:36:30 you need to explicitly grant the permission with ADB, and then does it stay forever? or how does that work? Oct 16 20:36:36 that doesn't even look like C++ Oct 16 20:36:47 that code you gave is 80% missing Oct 16 20:36:57 thanks for the willingness to help though! Oct 16 20:37:00 lol Oct 16 20:37:18 Odaym what is missing? Oct 16 20:37:27 okay -- I think its throwing a nullpointer exception Oct 16 20:37:38 ok those are easy to fix Oct 16 20:37:44 do you know how to use the debugger/breakpoints? Oct 16 20:37:48 no idea what getMotionHelper does Oct 16 20:37:55 Odaym that's what iw as telling you to ignore Oct 16 20:37:59 that's for the accelerometer Oct 16 20:38:06 and parallax effect Oct 16 20:38:11 which i assume you're not interested in Oct 16 20:38:20 Why did they put NullPointerExceptions into Android? Oct 16 20:38:29 Oh, gawd, look at this: http://Jeff-Relf.Me/X.CPP Oct 16 20:38:29 http://pastebin.com/28PhbXg0 Oct 16 20:38:30 What a nightmare. Oct 16 20:38:45 thats way too much Oct 16 20:38:50 just send us the one line and the anon inner class Oct 16 20:38:57 ppl aren't gonna sort through your whole file Oct 16 20:39:14 that class works fine Oct 16 20:39:14 oh wow, that is horrible Oct 16 20:39:19 It's Celsius not Celcius Oct 16 20:39:25 how do i debug with android Oct 16 20:39:32 what IDE mikestudent Oct 16 20:39:35 marrrk: It's more like a "null-reference exception". Oct 16 20:39:36 eclipse Oct 16 20:39:44 TacticalJoke can help you with eclipse lol Oct 16 20:40:05 do you know how to make a breakpoint? Oct 16 20:40:07 mikestudent Oct 16 20:40:14 yup Oct 16 20:40:19 yes Oct 16 20:40:22 just hit 'debug' instead of 'run' Oct 16 20:40:25 and it should stop there Oct 16 20:40:54 You should be able to left-click the editor left-margin thingy. Oct 16 20:41:04 I have Visual Studio key bindings, so I press F9 for a breakpoint. Oct 16 20:41:32 anyone here familliar with "android.permission.SET_ANIMATION_SCALE" permission? Oct 16 20:42:06 not familiar but whats prob Oct 16 20:42:14 why would you want to alter a sys property ? Oct 16 20:42:15 Imagine having to maintain this code: http://jeff-relf.me/X.CPP Oct 16 20:42:15 lol Oct 16 20:42:26 StingRay_ you need to disable them for reliable tests Oct 16 20:42:38 really ? Oct 16 20:42:42 yes Oct 16 20:42:46 why ? Oct 16 20:42:46 unless you want to put sleep() everywhere Oct 16 20:43:18 StingRay_ i'm trying to figure out if I need to explicitly grant the permission with ADB or if there's a way to do it programmatically Oct 16 20:43:34 I want my circle animation now on a tap on an item in my recyclerview. Oct 16 20:44:11 StingRay_ FYI https://code.google.com/p/android-test-kit/wiki/DisablingAnimations Oct 16 20:45:06 also i'm wondering how people go about re-enabling the animations when not testing Oct 16 20:45:18 like a gradle task Oct 16 20:45:21 which is one route i've seen Oct 16 20:45:23 just want to get opinons Oct 16 20:46:27 so why do I have to send the params like you did, I changed the constructor to remove those last 3 params but the super got me Oct 16 20:46:45 everything that's sent to it, I already have constructed beforehand Oct 16 20:46:59 just to reduce coupling Oct 16 20:47:18 the view is there with everything inside it, just waiting to be displayed; so all I need is to send the activity and the drawer layout, and then.... Oct 16 20:47:49 you need to pass those parameters to ActionBarDrawerToggle Oct 16 20:47:57 this class extends that class Oct 16 20:48:11 show how you use it in main activity Oct 16 20:50:26 marrrk, I haven't, no Oct 16 20:50:46 I'll give it a while, I'm quite happy with my current setup. Oct 16 20:51:51 anyone ever see this in a listView thats housed in a dialog type activity ? W/View﹕ requestLayout() improperly called by android.widget.LinearLayout happens when keyboard is opened Oct 16 20:52:24 like some recursive layout request to individual items and children Oct 16 20:52:35 it just doesn't stop either and only on kitkat Oct 16 20:52:53 is it beer o clock yet? Oct 16 20:53:03 Odaym http://pastebin.com/BJxMWHQq Oct 16 20:53:25 ah, so it's a listener Oct 16 20:53:30 through the toggle Oct 16 20:53:51 and how does it know to slide... Oct 16 20:53:58 ah right right Oct 16 20:54:02 cause navigation drawer Oct 16 20:54:05 ya Oct 16 20:54:31 Is it weird to use an Application subclass as a global-variable holder and maintainer. Oct 16 20:54:34 s/./?/ Oct 16 20:55:04 not really Oct 16 20:55:08 nah Oct 16 20:55:12 just make sure you're holding the right things Oct 16 20:55:14 and not the wrong things Oct 16 20:55:16 and it's ok Oct 16 20:55:38 I guess you mean "not holding Activities" and stuff. Oct 16 20:55:47 Yeah, I'm just holding one global: an instance of my data class. Oct 16 20:56:01 i use application for that Oct 16 20:56:12 only for non-trivial objects like sokcets Oct 16 20:56:43 sockets are bad, since they should have a lifecycle independent of your application Oct 16 20:57:05 Should they be held in a service? Oct 16 20:57:15 So it's called ripple... Oct 16 20:57:29 marrrk_, I haven't cared to try because I don't use EAP stuff Oct 16 20:57:36 the new highlight on touch? yep Oct 16 20:57:41 alright, well it's toggling and everything, but the dimens are all wrong Oct 16 20:57:50 ahh right, i hold sockets in service Oct 16 20:57:57 plus don't you have already a background with shadow on the main content view to make it look like one's ontop of the other? Oct 16 20:58:04 i meant non-trivial like something more than parcelable Oct 16 20:58:36 I much prefer using an Application subclass for globals than making various classes singletons, BTW. Oct 16 20:58:38 Singletons are evil. Oct 16 20:58:46 not really Oct 16 20:58:56 application is a singleton, in any case Oct 16 20:58:57 "Singletons are bad, so let me use this singleton instead" Oct 16 20:59:13 pretty much Oct 16 20:59:14 This is one centralised singleton, if we're gonna call it that, rather than 10 hidden singletons. Oct 16 20:59:16 so are services Oct 16 20:59:22 dagger? Oct 16 20:59:23 everything is singleton Oct 16 20:59:31 We know exactly in which order objects will be instantiated. Oct 16 20:59:36 dagggger? Oct 16 20:59:40 is the right answer for this Oct 16 20:59:46 I'm talking about the singleton design pattern ("getInstance()" and so on). Oct 16 21:00:07 dagger? Oct 16 21:01:11 yea Oct 16 21:02:12 depency injection, etc etc Oct 16 21:02:26 this is exactly how I did it Oct 16 21:02:27 lol Oct 16 21:02:31 as someone once said, if you don't know what it is, i can't explain it, but when you hear it enough times you'll go figure it out Oct 16 21:02:34 So is this ripple in any of the support libraries? Oct 16 21:02:38 * Odaym is reassured Oct 16 21:02:44 marrrk ripple will probably be in appcompat Oct 16 21:02:49 or something like it Oct 16 21:02:49 you just made it in a class Oct 16 21:02:51 But it isn't now? Oct 16 21:02:58 L isn't even out yet Oct 16 21:03:32 https://plus.google.com/u/0/+ChrisBanes/posts/gmAV3n2wmXs Oct 16 21:03:47 it's out today Oct 16 21:03:48 17th Oct 16 21:03:58 eh ? Oct 16 21:04:04 i'm pretty sure they mean the 17th, USA time zone Oct 16 21:04:14 thought it was a dev preview ? is full release today ? Oct 16 21:04:20 yea SDK 17th Oct 16 21:04:28 They just don't give a flying fuck about Australians. Oct 16 21:04:32 i think appcompat will be following later Oct 16 21:05:06 That's gonna be fun, importing that into Eclipse. ;| Oct 16 21:06:19 friends dont let friends eclipse Oct 16 21:06:28 dont get him started on jvm unit tests Oct 16 21:06:29 plzzz Oct 16 21:06:35 he already did Oct 16 21:06:36 all day Oct 16 21:08:58 What's the easiest way to make a picasso image circular? Oct 16 21:09:11 search gists for picasso circle transform Oct 16 21:09:35 TacticalJoke, JacobTabak: http://media-cache-ec0.pinimg.com/736x/97/d3/ba/97d3ba93d9a90ee127e0e6b59197be73.jpg Oct 16 21:09:49 * JacobTabak is not amused Oct 16 21:10:12 It feels to me that theses gists are using heavy machinery but maybe that's stupid. Oct 16 21:10:25 marrk you just add a class Oct 16 21:10:31 and then do setTransform() on your request Oct 16 21:10:33 marrrk: picasso even put out an example circle transform Oct 16 21:10:34 it's 1 line Oct 16 21:10:47 though its not compatible with gingerbread Oct 16 21:10:48 :P Oct 16 21:11:01 Where is that? Oct 16 21:11:06 there should be words that kickban you automatically Oct 16 21:11:09 like "gingerbread" Oct 16 21:11:09 lmgtfy? Oct 16 21:11:26 JacobTabak: dude I've been doing this since Gingerbread was "coming soon" Oct 16 21:11:33 you dont get to kb me :P Oct 16 21:11:51 it just always leads to teh same discussion Oct 16 21:11:52 well honestly ive been doing it since Android was coming soon .. but yeah Oct 16 21:11:55 I'd be very thankful if you googled that for me. Oct 16 21:12:20 grateful? Oct 16 21:12:24 It's getting late Oct 16 21:12:49 marrrk: http://bit.ly/1sY8bNT Oct 16 21:13:14 the first thing is by Julian Shen Oct 16 21:13:17 is that a Picasso Guy? Oct 16 21:13:32 sigh Oct 16 21:13:44 I hope you are trolling Oct 16 21:14:00 the picasso guy is IN THE HOUSE Oct 16 21:14:26 It's Pablo himself. Oct 16 21:14:33 Okay, so I guess I Oct 16 21:14:37 will port and use that thing. Oct 16 21:16:52 JacobTabak I'm messing with the dimensions here because my drawer is to the right, so I'm setting mDrawerWidth to be a negative value Oct 16 21:17:03 no Oct 16 21:17:07 but it's messing up, I don't know how it could do all of what it's doing with only 2 values changing Oct 16 21:17:15 mDrawerWidth and ContentOffset Oct 16 21:17:25 don't change those values Oct 16 21:17:32 I dont have them to begin with Oct 16 21:17:39 keep them positive Oct 16 21:17:49 stay positive, drawer! Oct 16 21:17:53 what do oyu have them as? Oct 16 21:18:05 I realized that drawerWidth was going to say the same from the declare in XML Oct 16 21:18:17 300dp for it (as in XML for the expandableListView) was too much Oct 16 21:18:18 the code i pasted adds or subtracts that value Oct 16 21:18:22 just change it to do the opposite Oct 16 21:18:37 this is not hard :p Oct 16 21:19:09 ok just a moment Oct 16 21:20:13 nah man, there is no subtraction or addition in anything but drawerSlide Oct 16 21:20:25 the open and close rely solely on the beginning values of offset and width Oct 16 21:20:26 ok you'll be fine Oct 16 21:20:36 try -1 * value Oct 16 21:20:45 that's just for sliding manually though Oct 16 21:21:02 ah it's triggered when you toggle too? Oct 16 21:21:20 JakeWharton u2020 doesnt actually change the animation scale, eh? do you change the system property reflectively in your real apps? or just multiply the value in your code for animation duration? how do you deal with disabling/reenabling animations for your espresso tests? i can disable them just fine but i'd like them to come back every time I run a non-test build Oct 16 21:21:43 it changes it in process Oct 16 21:21:53 Hello everyone! I'm completely new to Android development, but was assigned a task to build a small library for Android so that developers can easily integrate our REST API into their app. I was looking on Facebook SDK as an example, and I'm curious why they use both tag in AndroidManifest.xml and strings.xml to setup Facebook app id property? Oct 16 21:21:58 could you link me to an example of how to do that? Oct 16 21:22:00 there's a static factor on ValueAnimator or something Oct 16 21:22:02 or tell me what to google Oct 16 21:22:04 oh i see Oct 16 21:22:06 thanks Oct 16 21:22:16 so what about re-enabling the system animations for espresso when you're not testing? Oct 16 21:22:18 so when the process dies and comes back up it's reset to 1 Oct 16 21:22:21 oh wait Oct 16 21:22:21 nm Oct 16 21:22:24 yo udont do activities Oct 16 21:22:28 hello guys Oct 16 21:22:34 that, too. although i think we still have a thing for it Oct 16 21:22:47 i'm leaving for a few hours, i'll send it over when i get back Oct 16 21:22:56 cool, if you get around to it Oct 16 21:24:18 kluyg the manifest should reference the strings value in their library Oct 16 21:24:19 he guys i got webview in a browser , in the html there are like 10 selectbox when i click on selectbox it open and immidatly closed , so i can not choose a value. this trigger immidiatly after it opens onDetachedFromWindow, the thing is , if i fight with the selectbox and keep clicking sometime it eventualy open. what do u think? Oct 16 21:24:25 it shouldn't be two separate values Oct 16 21:25:08 i think you shouldnt use webviews Oct 16 21:25:22 BUT I DO Oct 16 21:25:28 i use cordova Oct 16 21:25:30 sorry for capslock Oct 16 21:25:34 sry bud Oct 16 21:25:43 so what do u think? Oct 16 21:25:49 i told you what i think Oct 16 21:26:18 and what is that? Oct 16 21:26:34 JacobTabak so Facebook SDK does it wrong for some reason? Oct 16 21:27:12 kluyg facebook has metadata in the manifest that references a string value in your string resources Oct 16 21:27:32 yes, so that is the right way? Oct 16 21:27:36 you could hard code the value in the manifest if you want Oct 16 21:27:36 Jacob? Oct 16 21:27:37 it doesn't matter Oct 16 21:27:46 Tomashe i think you shouldnt use webviews Oct 16 21:27:50 that is what i think Oct 16 21:28:07 yes but i do use it so much be another way u can think Oct 16 21:28:12 or to track the issue Oct 16 21:28:14 you're asking the wrong guy Oct 16 21:28:19 there is 1 person in this chat who uses cordova and hes not here Oct 16 21:29:15 JacobTabak is there a downside of hard-coding a value like some_api_access_token in the manifest? Oct 16 21:29:20 ok bro Oct 16 21:29:39 kluyg if you have it in your string resources you can easily swap it out in different variants, ie, debug/release Oct 16 21:30:05 kluyg it would make no difference to you (the API developer) if a developer had the string hard coded or not Oct 16 21:30:34 but it would be wise to recommend the users to put the value in string reosurces because that's a best practice Oct 16 21:30:55 I see, thanks! Oct 16 21:35:51 what's an emulator that can't be detected as an emulator? Oct 16 21:37:48 to get to the other side? Oct 16 21:37:57 lol Oct 16 21:39:04 yes Oct 16 21:46:06 "Gradle" is such a weird name. Oct 16 21:46:14 "The name came from Hans Docter (Gradle founder) who thought it sounded cool." Oct 16 21:46:17 http://forums.gradle.org/gradle/topics/where_does_the_name_gradle_come_from Oct 16 21:46:35 it's a combination of a grail and a ladle Oct 16 21:46:47 a cup with a big long handle Oct 16 21:47:42 it's the holy gradle of build systems... ;) Oct 16 21:50:25 Aleksey Shipilëv says Gradle sucks: https://twitter.com/shipilev/status/438366911127359488 Oct 16 21:52:53 Hello Everyone. I work in a project that has a lot of ListViews. Now I've searched a lot and couldn't find but, just to be shure, can you have a button inside a ListView that Responds to the Click, or is always the row of the ListView Which will respond to the click? Thanks Oct 16 21:56:14 My one and only app that has been live for 3 years and is paying my bills just got suspended from Google Play. I don't think they even read my appeal. Has anyone had that happen before and can give some guidance? Oct 16 21:56:20 man, line 33 does nothing Oct 16 21:56:32 Here is the email, my appeal, and their final rejection: http://pastebin.com/Ag4TF59J Oct 16 21:56:42 whether you set 100000 or zero, the drawer is going to slide out to its given XML size and that's it Oct 16 21:56:58 the only thing that's changing is the translation of the contentvie Oct 16 21:57:50 doth not compute! Oct 16 21:58:12 hey guys, how can i disable the clicking of a listview cell, including the sound that is made Oct 16 21:58:27 ive tried just about everything i can think of and it stubbornly refuses to yield Oct 16 21:58:52 tahooie: You could post on Reddit, I guess. Oct 16 21:59:06 http://programming.reddit.com/ Oct 16 21:59:29 TacticalJoke: Thanks, worth a try Oct 16 22:00:42 to disable the click you can set to transparent, correct me if i'm wrong. the sound i don't know Oct 16 22:00:54 If you google "We have reviewed your appeal and will not be reinstating your app.", you'll find a few results. Oct 16 22:01:14 BTW, I was recommending posting to Reddit to create outrage, mostly. Oct 16 22:02:36 Damn, your app **seems like** spyware. Wow. Though I realise it's not. But damn. Oct 16 22:06:06 Also consider http://www.reddit.com/r/androiddev/ . Oct 16 22:08:21 lol what Oct 16 22:08:32 your app is obviously meant for people to spy on others Oct 16 22:08:51 you're delusional if you think that's ok Oct 16 22:08:59 let me borrow your phone and install this app real quick. Oct 16 22:09:11 for jealous wives to install on their husbands phones? Oct 16 22:10:04 how did you see it? Oct 16 22:10:10 just reading what they said about it? Oct 16 22:10:18 yea, then i just googled it http://www.everaccountable.com/ Oct 16 22:10:24 damn it Jacob Oct 16 22:10:29 lol Oct 16 22:10:57 wat Oct 16 22:12:16 yea that thing should stay off the store Oct 16 22:12:23 i mean its true, you market it pretty well tahooie Oct 16 22:12:39 you playing ceiling cat, tahooie ? Oct 16 22:12:41 but unless there's a persistent status bar notification, its spyware Oct 16 22:12:50 (is there?) Oct 16 22:13:25 oh, i just reread the letter "and the app should provide regular or persistent notifications that it is tracking device location or activity" Oct 16 22:13:32 why wouldn't you have that? Oct 16 22:13:49 seems like a constant reminder in your status bar would help you avoid pornography more than someone else being notified Oct 16 22:13:54 maybe he just wanted to be as unobtrusive as possible Oct 16 22:14:06 it's a question of motive Oct 16 22:14:14 if there's no notification, is spyware Oct 16 22:14:20 seems cut and dry to me Oct 16 22:14:36 If it's installed by anyone other than the user of the phone...illegal access/spying Oct 16 22:14:47 and i can imagine that's the use case for a lot of people Oct 16 22:14:52 (as in "possibly criminal court case") Oct 16 22:14:53 specifically, jealous wives Oct 16 22:15:11 ugh this just upsets me thinking about it Oct 16 22:15:23 just glad my wife isn't like that Oct 16 22:20:11 well I'm getting closer, I can now make them move exactly as if the sidebar pushed out the content, so they move together Oct 16 22:20:13 OH, this is really cool, the amazon app store has a web-based android emulator and you can "test out" apps before you downloadl Oct 16 22:20:21 but not like the revealing that happens on 7sage Oct 16 22:20:33 I think it's got to do with the way you've defined the drawer in XML Oct 16 22:20:50 my drawer is pushing out to its full width regardless what I do or change in that class Oct 16 22:20:58 let me look Oct 16 22:21:06 at the XML? Oct 16 22:21:11 yea Oct 16 22:21:17 i think i am doing something Oct 16 22:21:53 http://pastie.org/9654409 Oct 16 22:22:15 im not doing anything special Oct 16 22:22:33 once you say drawer layout and give it a width and that's it, there's no way it can behave like 7sage, the drawer has to popout on menuItem press (r.id.drawertoggle) > drawer.open() Oct 16 22:22:36 u need to set your gravity doaym Oct 16 22:22:41 Odaym* Oct 16 22:22:49 it's set, to right Oct 16 22:22:53 nm Oct 16 22:23:08 define the width in dimen so you can reuse it in the drawer toggle class Oct 16 22:23:40 yea I've just repeated the value now Oct 16 22:23:52 but look at your paste, line 33, with or without it there's the same behavior Oct 16 22:23:57 are you converting it to DP? Oct 16 22:24:07 over there it's in dimen Oct 16 22:24:23 so I can just reference it from the width property when defining the expandablelistview Oct 16 22:25:20 all the logic is in onDrawerSlide Oct 16 22:25:23 that's not how you define your drawer, your drawer seems to be always sitting in the background Oct 16 22:25:25 yea I know Oct 16 22:25:39 mine seems to have translation way out of the screen at first and then pops up full Oct 16 22:25:48 Odaym its just a shadow that makes it look like its behind Oct 16 22:25:51 your drawer barely moves Oct 16 22:25:58 the content is what pops up Oct 16 22:26:14 yea that's based on mDrawerContentOffset Oct 16 22:26:18 it starts at -40dp Oct 16 22:26:23 mDrawerContentOffset = mDrawerWidth - resources.getDimensionPixelSize(R.dimen.drawer_offset); Oct 16 22:26:38 r.dimen.drawer_offset = -40dp Oct 16 22:26:47 sorry Oct 16 22:26:49 i should've told tyou that before Oct 16 22:26:57 in my IDE it replaced the diemn value with -40dp so i forgot to mention it Oct 16 22:27:40 regardless of that, line 33 does not do anything Oct 16 22:27:49 I just removed it, same behavior; how Oct 16 22:28:02 my line #s are different Oct 16 22:28:04 can u send me link? Oct 16 22:28:08 nah the paste Oct 16 22:28:14 i dont have htat url anymore Oct 16 22:28:21 http://pastebin.com/KvfJx3EF Oct 16 22:28:38 only 34 takes effect Oct 16 22:28:58 hmm that line should definitely do something Oct 16 22:29:20 i mean you need to change it to work for your right-gravity drawer Oct 16 22:29:50 true but I completely removed it and nothing changed, drawer still pops out as if you've implemented a fresh navigation drawer from the doc Oct 16 22:29:53 docs* Oct 16 22:30:01 all I've been able to mess with is the contentview Oct 16 22:30:29 i dont think i understand what you're talking about Oct 16 22:30:36 you're not referring to the shadow, are you? Oct 16 22:30:58 no, I'm referring to make the drawer move Oct 16 22:31:01 making* Oct 16 22:31:04 derp Oct 16 22:31:08 thats my xml layout that you asked about before Oct 16 22:31:11 that i said nothing was unique about Oct 16 22:31:20 dont be mad at me Oct 16 22:31:27 that isn't it, no Oct 16 22:31:32 it is Oct 16 22:31:33 i promise Oct 16 22:31:35 here's what you need Oct 16 22:32:35 http://pastebin.com/FYeKrvrP Oct 16 22:32:40 you're saying that the effect im seeing in 7stage is just cause of XML? Oct 16 22:32:47 and that that line is executing? Oct 16 22:33:16 ah Oct 16 22:33:19 well THAT is different Oct 16 22:33:24 sorry buddy Oct 16 22:33:28 i forgot how i implemented it Oct 16 22:33:45 you can ignore drawer/background with the -30dp margins Oct 16 22:33:59 but i have a framelayout within the drawer framelayout that I translate around Oct 16 22:34:08 which should probaly fill in the gap right? Oct 16 22:34:15 so that drawer_list is where my expandable should go Oct 16 22:34:18 yea Oct 16 22:34:30 you can probably also ignore the drawer_shadow Oct 16 22:34:39 unless you want a shadow there too Oct 16 22:35:04 its going to look like its under it if the content moves much faster and the drawer much slower Oct 16 22:35:16 sure, should be no problem just adjust that offset value Oct 16 22:36:15 i'm really sorry Odaym i probably just wasted a lot of your time, hopefull it pays off in the long run though Oct 16 22:36:36 nah it's fine Oct 16 22:36:55 probably go to SO and get rep for it, when it works Oct 16 22:36:57 HA Oct 16 22:36:59 no Oct 16 22:37:58 just dont ask me for my accelerometer/parallax effect :P Oct 16 22:39:10 what would you do if you think that you have an original idea, but feel terrible as a programmer? Oct 16 22:39:21 nothing Oct 16 22:39:24 ideas are cheap Oct 16 22:39:37 unless you have business skills Oct 16 22:39:43 well, I have a proof of concept Oct 16 22:39:44 and feel like you can market it, get funding, hire a programmer Oct 16 22:40:20 ^ Oct 16 22:40:25 and don’t ask them to work for equity Oct 16 22:40:31 it's a simple idea... the problem is that doing something requires much more than simply programming Oct 16 22:40:36 and I have exactly $0 Oct 16 22:40:43 #no1curr Oct 16 22:40:58 guess I'll have to do some effort... Oct 16 22:41:20 are you good at marketing? Oct 16 22:41:23 if so find investors Oct 16 22:41:25 VC's Oct 16 22:41:29 take your proof to them Oct 16 22:41:34 nah Oct 16 22:41:34 they’ll throw money at you Oct 16 22:41:39 hire programmers Oct 16 22:42:15 I was where you were pepee, about 4-5 years ago Oct 16 22:42:27 had a great idea, no money, no programming skills Oct 16 22:42:33 so I learned Oct 16 22:42:38 still learning Oct 16 22:42:40 if you live in SF or NY Oct 16 22:42:43 that can happen Oct 16 22:42:43 lol Oct 16 22:42:50 this idea = a feature I haven't seen implemented Oct 16 22:43:00 what is your idea Oct 16 22:43:08 he’ll never tell Oct 16 22:43:08 social network for social networks! Oct 16 22:43:12 HAHA Oct 16 22:43:13 and if it's so secret that you can't say Oct 16 22:43:15 BAM! Oct 16 22:43:16 you're worthless Oct 16 22:43:17 ideas are cheap Oct 16 22:43:20 lol Odaym Oct 16 22:43:32 JacobTabak, OK Oct 16 22:43:42 @Ello is feeling depressed Oct 16 22:44:06 Honestly, popee Oct 16 22:44:08 pepee Oct 16 22:44:12 what/who is @Ello? Oct 16 22:44:21 People hear I know how to program and they start throwing ideas at me Oct 16 22:44:25 and then they want a piece Oct 16 22:44:32 heh Oct 16 22:44:41 half of them are silly, some of them will never work Oct 16 22:44:48 a lot of the time they have 0 idea of what is involved Oct 16 22:44:57 “hey you, program this and we’ll split it” Oct 16 22:45:39 “make it call an uber" Oct 16 22:45:54 “that should be easy, right?" Oct 16 22:46:03 / rant Oct 16 22:46:05 well, I can program... but then, I also need to know how to design and market it Oct 16 22:46:14 you need a TON of things, man! Oct 16 22:46:32 a giga of things Oct 16 22:46:41 seriously, and I didn’t even realize until I started working fultime, what all goes into it Oct 16 22:46:49 these people you hear about are like 0.00001% Oct 16 22:46:53 pepee the successful people aren't the ones who have the ideas Oct 16 22:47:01 they're the ones who implement it the best Oct 16 22:47:04 fulltime graphic design, pr, marketing, customer support Oct 16 22:47:04 cool story, JacobTabak Oct 16 22:47:06 if you have a good idea it will be ripped off and done better than you Oct 16 22:47:11 except that's wrong Oct 16 22:47:16 yea, go do it man Oct 16 22:47:20 go make whatsapp Oct 16 22:47:28 code will break your SOUL! Oct 16 22:47:32 HAHAHA Oct 16 22:47:42 we’ve gone to that dark place again.. Oct 16 22:47:48 successful people are those who know a lot about marketing ans simply buy/steal from someone else :P Oct 16 22:48:05 without a PERFECT product, all the marketing in the world can't get you $$ Oct 16 22:48:11 it needs to be flawless Oct 16 22:48:15 ^ Oct 16 22:48:22 AND useful so much that people love it Oct 16 22:48:25 like facebook? Oct 16 22:48:39 some people claim fb was ripped off Oct 16 22:48:39 people will put up with something that isnt flawless if they love it Oct 16 22:48:43 but who did the leg work? Oct 16 22:48:51 how you gonna make something people love Oct 16 22:48:54 what do people love.. Oct 16 22:48:57 so basiaclly you need to have an idea for an app that people love to use every day Oct 16 22:49:00 and program it awesome Oct 16 22:49:08 and make it shiny as hell Oct 16 22:49:10 sounds like an app i know :) Oct 16 22:49:33 watch how to start a startup series on Youtube, you'll get an idea of what you need Oct 16 22:49:37 people love themselves Oct 16 22:49:51 So tahooie could reupload the app with a persistent notification and it wouldn't get removed? Oct 16 22:49:57 a botload of $$ and 80 hour work weeks Oct 16 22:50:19 ppl only work 80 hrs a week because they want to and enjoy it Oct 16 22:50:25 in this field Oct 16 22:50:33 Sorry guys, been building a reddit post and didn't see your comments Oct 16 22:50:51 dude the app is not coming back Oct 16 22:50:53 lol Oct 16 22:50:55 they said its final Oct 16 22:51:01 Yes, I can republish the app - and loose all my reviews and history Oct 16 22:51:14 tahooie: Does the current app show a persistent notification? Oct 16 22:51:16 yea but it'll be totally new I mean Oct 16 22:51:19 Something like "Recording"? Oct 16 22:51:19 Those reviews were better than my competitors! Oct 16 22:51:37 no, it doesnt Oct 16 22:51:39 Or "Monitoring". Oct 16 22:51:41 that was their complaint in the takedown Oct 16 22:51:48 it should but it doesnt so its spyware and needed to go Oct 16 22:51:52 It has a notification, but also the ability to disable the notification (same as my competitors have) Oct 16 22:51:55 JacobTabak has spoken! Oct 16 22:52:18 Is the notification on by default? Oct 16 22:52:46 it is on by default Oct 16 22:53:02 Hmm. So it violates their policy only because the notification can be disabled, I guess. Oct 16 22:53:13 But the current version of android lets you remove notifications on any app anyway, I'm just making it easier for non-savvy people Oct 16 22:53:56 does it let you remove persistent notifications? Oct 16 22:53:56 The notification is my best guess. It hasn't changed in years, but maybe I just got stuck with a reviewer who is having a bad day Oct 16 22:53:58 i've never tested that Oct 16 22:54:33 Gosh, my app has made them tens of thousands of dollars through their 30% share, you'd think they be willing to at least work with me! Oct 16 22:54:53 tahooie if there's a chance that an app can be installed on my phone without me being aware of it and reporting disreputable activity, i don't think it should be allowed in the store. it's as simple as that, if that's not their policy it should be Oct 16 22:54:55 Tell me what their deal is and I'll fix it! Oct 16 22:55:08 wait.. someoen wanna run me down on what’s going on? Oct 16 22:55:08 yea Larry Page is waiting for your money in his bank account Oct 16 22:55:11 notifications? Oct 16 22:55:17 i fel like gandalf.. Oct 16 22:55:29 he wrote an app that lets your wife install an app on your phone and report your porn browsing to her without you knowing Oct 16 22:55:38 and is surprised it got removed Oct 16 22:55:40 are you kidding me? Oct 16 22:55:40 no, with you knowing Oct 16 22:55:46 haha Oct 16 22:55:48 but you can disable the notification Oct 16 22:55:50 but you can turn off Oct 16 22:55:51 hahahaha Oct 16 22:55:52 It sends an email to the registered account holder Oct 16 22:55:53 Though the intention was that the user wants others to know if he or she slips up. Oct 16 22:55:57 are you in the UK? Oct 16 22:56:21 I really tried to keep people from using it for porn. Someone would have to register an account on your device in order for you to not receive the email Oct 16 22:56:24 I'm in the US Oct 16 22:56:43 s/using it for porn/using it for spying/ Oct 16 22:56:50 tahooie there's also social implications Oct 16 22:56:55 like someone could be pressured into installing it Oct 16 22:57:19 and perhaps legal depending on where you are Oct 16 22:57:31 it's like the police saying, "if you have nothing to hide, why can't i search your car?" Oct 16 22:57:33 JacobTabak: Are you saying that no apps like this should be allowed? Oct 16 22:57:37 I looked, and there are quite a few. Oct 16 22:57:37 You could make the same argument for parental monitoring apps. People want to keep thier kids safe Oct 16 22:57:50 but the parents have guardianship over their children Oct 16 22:58:02 you can put a chip in them if you want Oct 16 22:58:12 (at least in florida, i think) Oct 16 22:58:16 Just ask the NSA for a daily report. Oct 16 22:58:17 if you wanted ot keep your kid safe you'd just block the content Oct 16 22:58:25 that’s a damn interesting idea tahooie Oct 16 22:58:27 yes there are quite a few. And people appreciate these apps! If someone doesn't want it, I try to tell them it is there so they can uninstall it. I really do my best to not let it be used, except for someone who wants it. Oct 16 22:58:28 not email you and let them continue to loko at it Oct 16 22:58:29 how did you think of that? Oct 16 22:59:04 So if tahooie reuploaded the app with no way to disable the notification, and the notification was clear, would the app stay this time? Oct 16 22:59:08 everaccountable.com, read the story. Thats how I thought of it, but it turns out that other people thought of it before I did, mine just has (had) better reviews. Oct 16 22:59:12 so.. it wasnt designed for porn.. Oct 16 22:59:26 no, it is to help those who are sick of looking at porn Oct 16 22:59:27 SEE Oct 16 22:59:30 where’s that other guy.. Oct 16 22:59:31 If the notification was "Ever Accountable is running. Phone activity is being logged and sent to ". Oct 16 22:59:43 abotu the ideas and stuff Oct 16 22:59:46 i just hate this Oct 16 22:59:55 tahooie: Are you Tyler? Oct 16 23:00:06 I think I'm going to make the notification mandatory, then try my luck again Oct 16 23:00:10 Yes I'm Tyler Oct 16 23:00:24 how often do you think men install this app and ask their wives to support them Oct 16 23:00:25 How tall are you? Just curious. Oct 16 23:00:26 dumb irc handle I know :) Oct 16 23:00:32 You look around 6'2". Oct 16 23:00:33 rather than their wives catching them and pressuring them into it Oct 16 23:00:36 no way man no way your app is working for this purpose you are saying Oct 16 23:00:39 thanks, I'm about 6' Oct 16 23:00:39 what man would do this Oct 16 23:00:43 Okay. Oct 16 23:00:59 Many men cringe at the idea of this app and that is fine - they aren't my customer Oct 16 23:01:02 its all about pressure from the wife/church and not doing something that you clearly want to because someone tells you its wrong Oct 16 23:01:06 JacobTabak: The reviews of similar apps suggest that it really happens. Oct 16 23:01:08 Though I dunno. Oct 16 23:01:13 But check out the nofap movement. There are a lot of guys who are sick of this and want to change. Oct 16 23:01:15 True. Oct 16 23:01:16 these guys are always putting on a show Oct 16 23:01:25 have to present an image Oct 16 23:01:26 nofap is between nofappers on Reddit Oct 16 23:01:33 if my future wife ever finds this app, tahooie I’m coming after you :P Oct 16 23:01:36 haha Oct 16 23:01:39 they dont hire a PI with an app to hold them accoutnable for it Oct 16 23:01:46 well I dont know, you will know more i guess Oct 16 23:01:49 you have the users Oct 16 23:01:50 haha tricknology, don't tell her Oct 16 23:01:53 oooh so this is for men who WANT to stop looking at porn but can’t or would like someone else notified if they do Oct 16 23:02:02 nofap is just a test of ones own will, it doesnt have any marriage/religious implications though Oct 16 23:02:03 tricknology: Sounds like a fantasy thing. lol Oct 16 23:02:10 yea exactly Oct 16 23:02:14 "I've been so naughty!" Oct 16 23:02:16 right. Also for parents who wouldn't otherwise trust their teenagers with a phone Oct 16 23:02:17 nofap is like something between you and yourself Oct 16 23:02:23 so SPYING! Oct 16 23:02:23 i understand nofap Oct 16 23:02:40 half or us are probably in le reddit army Oct 16 23:02:42 * tricknology snickers Oct 16 23:02:43 lol Oct 16 23:02:46 heh i guess my point is Oct 16 23:02:52 We are all gentlesirs with fedoras. Oct 16 23:02:53 Right, this is for people who want more help. Oct 16 23:02:56 i would be against any app that someone could install on my phone and spy on me Oct 16 23:02:57 end of story Oct 16 23:03:03 tahooie: What about electric-shock treatment? Oct 16 23:03:06 I'm not saying you should get it! Only if it is something you want. Oct 16 23:03:10 self flaggelation app Oct 16 23:03:12 tahooie that's the point though isn't it? Oct 16 23:03:13 and some people do. Oct 16 23:03:20 if someone were to install it on my phone and disable the notification Oct 16 23:03:21 yeah but i guess the problem is that jealous girlfriends could get ahold of it Oct 16 23:03:23 i'd have no choice in the matter Oct 16 23:03:34 and thats why they removed it Oct 16 23:03:37 It's weird, though... Oct 16 23:03:39 i took a feature out of my location app because it was too creepster Oct 16 23:03:41 Who looks at porn on their phone? Oct 16 23:03:47 public school teachers Oct 16 23:03:49 in the staff bathroom Oct 16 23:03:54 So what if I automatically send an email to every registered account on the device when it gets set up? Then even if they turn off the notification, you will still be told about it. Oct 16 23:04:06 it would be awesome if the feature was there.. but some people like privacy, and the feature could be used for bad, so I left it out Oct 16 23:04:15 tahooie: Yeah, be as transparent as possible. Oct 16 23:04:18 That’s much better Oct 16 23:04:19 And make sure the notification is clear. Oct 16 23:04:30 Send it to the e-mail registered on the play store Oct 16 23:04:32 thanks JacobTabak, it worked Oct 16 23:04:38 The notification is already clear, but I'll take out the ability to remove it Oct 16 23:04:38 The notification could also say "Sick of being watched? Consider watching porn on your laptop instead". Oct 16 23:04:41 awesome Odaym Oct 16 23:04:46 night is long, but experience ++ Oct 16 23:04:56 buuut, that won’t stop crazy from deleting it if she already has access to the phone.. Oct 16 23:05:06 but, 1 step closer, hey? Oct 16 23:05:17 tahooie you can see that disabling the ability to remove the notification probably hurt your product Oct 16 23:05:21 tahooie: So are you an /r/nofap person? Oct 16 23:05:27 Okay, it was hard to type that. Oct 16 23:05:34 I'm asking some guy whether he... Oct 16 23:05:35 I tried that, I got the reddit plugin too Oct 16 23:05:37 Though I know the answer. Oct 16 23:05:42 So why ask? I don't know. Oct 16 23:05:44 a) because it's annoying, b) because if you show anyone else your phone, they might ask what it is, c) because you can't easily spy on your spouse Oct 16 23:05:52 really awesome plugin, no porn through reddit, not even things that are NSFW Oct 16 23:05:57 TacticalJoke:You can ask, I don't answer personal questions like that :) Oct 16 23:06:08 youfap.. Oct 16 23:06:10 Imagine the hypocrisy if the answer was 'no'. lol Oct 16 23:06:20 yeaaaaa you fap Oct 16 23:06:21 tahooie got over his addiction Oct 16 23:06:23 Scandal: The creator of a no-fap app is not a no-fapper. Oct 16 23:06:27 I know I’m not helping the situation but… /r/60fpsporn Oct 16 23:06:31 Yeah, I read on his site. Oct 16 23:06:34 with the help of evervigilant Oct 16 23:06:36 I'm just joshing. Oct 16 23:06:38 everfaithful Oct 16 23:06:41 everingodslight Oct 16 23:06:44 :D Oct 16 23:06:53 ever gone-from-the-blasted-store Oct 16 23:07:07 but seriously, sorry about your hard work being f'ed over by google Oct 16 23:07:12 this sucks! Are they going to shut down the active subscriptions too? Oct 16 23:07:13 just wish i agreed with the concept of the app Oct 16 23:08:02 Google is ruthless. Oct 16 23:08:11 "We are not gonna respond to any futher e-mails about this." Oct 16 23:08:14 It's like a break-up. Oct 16 23:08:14 what about the people who pay Oct 16 23:08:35 tahooie: Are you posting on Reddit? Oct 16 23:08:41 This could be an awesome thread. Oct 16 23:08:44 reddit will not be sympathetic Oct 16 23:08:46 i hope you realize that Oct 16 23:08:47 almost ready, have to put up a blog post first Oct 16 23:08:48 this is the internet Oct 16 23:08:49 They often do. Oct 16 23:09:00 tahooie: Which subreddit? /r/programming or /r/androidev? Oct 16 23:09:02 androiddev is not that good on reddit Oct 16 23:09:06 not programming Oct 16 23:09:16 ./r/programming might sympathise. Not sure. Oct 16 23:09:20 no... Oct 16 23:09:20 God, this IRC client is lame. Oct 16 23:09:23 its off topic Oct 16 23:09:35 maybe /r/android Oct 16 23:09:35 I've seen a few posts about this there in the past. Oct 16 23:09:37 Though not often. Oct 16 23:09:42 Yeah, that'd do, I guess. Oct 16 23:10:05 Oh good point, I was going to post this on my company page. I don't want my customers to see all the nasty reddit comments Oct 16 23:10:51 You'll probably get sensible comments. Oct 16 23:10:52 Maybe I should cancel posting on reddit Oct 16 23:10:56 Though there might be some drama. Oct 16 23:10:56 You should post to both.. Oct 16 23:10:58 you won't get sensible comments Oct 16 23:11:06 Devs are sympathetic to this. Oct 16 23:11:07 I've seen it before. Oct 16 23:11:16 They are getting more and more shocked by Google's harshness. Oct 16 23:11:16 Do you think they can actually help? Oct 16 23:11:16 in programming, def Oct 16 23:11:23 not in /r/circlejerk Oct 16 23:11:27 In programming or in android? Oct 16 23:11:34 x-post? Oct 16 23:11:39 Yeah, all three. Oct 16 23:11:42 The third being /r/androidev. Oct 16 23:11:44 Raise Hell! Oct 16 23:12:03 anyone have the link for the chat logs? Oct 16 23:12:13 Which chat logs? Oct 16 23:12:19 these chat logs Oct 16 23:12:31 (i hope you know that this chat is being logged) Oct 16 23:12:42 i googled something and a log of this chat came up Oct 16 23:12:47 new preview images tomorrow? Oct 16 23:13:01 Oh. Not sure. Oct 16 23:13:53 here is #java Oct 16 23:13:54 http://li18-187.members.linode.com/logs/%23%23java/2012-03-13 Oct 16 23:14:23 Here goes nothing! http://www.reddit.com/r/programming/comments/2jgrqk/google_removed_my_app_my_livelihood_after_years/ Oct 16 23:15:21 tahooie: Okay, it worked. You're not spam-blocked on there. Oct 16 23:15:31 (It's in the "new" queue.) Oct 16 23:15:52 upvoted for visibility Oct 16 23:15:58 thanks! Oct 16 23:16:02 I feel bad for you. Oct 16 23:16:04 Srsly. Oct 16 23:16:07 same Oct 16 23:16:17 i mean I understand both arguments Oct 16 23:16:19 It feels like Google dun goofed. Oct 16 23:16:27 this is one of those shitty situations Oct 16 23:16:27 I wish your feelbads could affect google Oct 16 23:16:50 I love it when you get an SDK for a device and it doesn’t work… Oct 16 23:16:56 I bet they'll soften up eventually, sucks for me though! Oct 16 23:17:01 tahooie: Twice, in your blog post, you use "it's" instead of the correct "its". Oct 16 23:17:40 JacobTabak, do you have any idea when I first asked about this? Oct 16 23:17:41 "It's" = "it is" / "it has" / whatever. "Its" = "belonging to it". Oct 16 23:17:54 I need to set a number here of time spent Oct 16 23:18:18 log doesn't go that far back :\ Oct 16 23:18:20 tahooie: Multi-post that ish. Oct 16 23:18:25 To other subreddits! Oct 16 23:18:46 I'm definitely going to remove any nasty comments on the blog page Oct 16 23:19:14 I need to manage these comments, but also save enough time to frantically update my app! Oct 16 23:21:22 Odaym, you find the logs? Oct 16 23:21:34 hm? Oct 16 23:21:37 no Im asking about something else Oct 16 23:21:54 ooh Oct 16 23:22:02 thought you were talkign about these chat logs Oct 16 23:22:08 yea Oct 16 23:22:23 there's a time when "7stage lsat" was mentioned Oct 16 23:22:28 just like that Oct 16 23:22:33 if you can find that and give me the time? Oct 16 23:22:54 "7sage lsat" Oct 16 23:22:56 not 7stage Oct 16 23:23:32 Here is another: http://www.reddit.com/r/Android/comments/2jgste/google_removed_my_app_and_isnt_giving_me_a_valid/ Oct 16 23:23:50 on android. Any ideas for other subreddits I should post to? Oct 16 23:24:00 ./r/androiddev Oct 16 23:24:19 who mentioned it and were you in the chat? Oct 16 23:24:25 Hi there.. can anyone tell me if there is an approval process for publishing apps in the play store like for iTunes? Oct 16 23:24:38 JacobTabak did, yea he was talking to me Oct 16 23:24:40 It doesn't seem like it, in everything I googled. Oct 16 23:26:24 God, the Gradle website is bad. Oct 16 23:26:31 So long and boring and unfocused. Oct 16 23:26:52 like life! :D Oct 16 23:26:53 weeeeeeird Oct 16 23:26:56 :D Oct 16 23:27:39 the lgos are gone Oct 16 23:27:44 ill search my history maybe.. Oct 16 23:28:13 tahooie how did the app work ? Oct 16 23:28:25 nahh it aint that important, probably 2 hours ago Oct 16 23:28:28 thanks Oct 16 23:29:23 tahooie: You could report your competitors. Muahahaha. Oct 16 23:29:28 Chainfire: I primarily use accessibility to see the activity in other apps Oct 16 23:29:30 found them Oct 16 23:29:31 http://logs.nslu2-linux.org/livelogs/android-dev/android-dev.20140922.txt Oct 16 23:29:37 TacticalJoke:thought of it :) Oct 16 23:29:41 tahooie to track website urls and such ? Oct 16 23:29:45 http://logs.nslu2-linux.org/livelogs/android-dev/ Oct 16 23:29:50 this is the root: http://logs.nslu2-linux.org/livelogs/android-dev/ Oct 16 23:29:53 "Are you ready to live a life free from pornography?" Oct 16 23:29:58 Chainfire: yes. And content inside facebook, youtube, etc. Oct 16 23:30:02 I don’t think I am... Oct 16 23:30:10 then you aren't my customer Oct 16 23:30:11 Sounds like a boring life. lol Oct 16 23:30:14 Odaym ^ Oct 16 23:30:22 tahooie /r/pornfree Oct 16 23:30:36 exactly your target demographic, I would say Oct 16 23:30:55 ofcourse, the app is actually spying, but you use it of your own free will... so I find it an odd removal Oct 16 23:30:56 that's sep 21 Oct 16 23:31:01 Maybe tahooie can be the man who takes down the system. Oct 16 23:31:36 right Chainfire Oct 16 23:31:44 What’s the chrome command to search through a website Oct 16 23:31:47 like youtube: Oct 16 23:32:02 they might be willing to kick up a bit of dust Oct 16 23:32:20 tricknology: Depends on settings. Oct 16 23:32:58 You got comments on /r/programming: http://www.reddit.com/r/programming/comments/2jgrqk/google_removed_my_app_my_livelihood_after_years/ Oct 16 23:33:02 This looks promising. Oct 16 23:33:10 Oh, you've seen. Oct 16 23:33:28 I mean "promising" in the "potential drama" sense. But that's not what you want. Sorry. Oct 16 23:33:40 Damn, that second comment is harsh. Oct 16 23:33:44 searchterm site: http://website.com Oct 16 23:34:37 hey Odaym, what else were you talking about? Oct 16 23:34:46 cant find 7stage Oct 16 23:34:48 I find the removal a bit concerning, the accountability system is a valid tool in beating addictions ... Oct 16 23:34:58 I corrected that, it's 7sage Oct 16 23:35:02 I do, too. Oct 16 23:35:24 I can't believe some of the Reddit comments. Damn. Oct 16 23:35:26 Talk about harsh. Oct 16 23:35:31 yeah TacticalJoke, there are some jerks on the webs :) Oct 16 23:35:32 guys i need some help, im doing some hybrid cordova app , not i got some issue, looks like when i click on seelectbox , itopen the native option and immidiatly close , not leting me to select the value. wondering if there is some code i can use to trace the issue. the thing is that if i fight click several times eventually it stays open Oct 16 23:35:36 any ideas/ Oct 16 23:35:36 wah wah Oct 16 23:35:38 http://www.reddit.com/r/androiddev/comments/2jgu16/after_years_in_the_store_google_shuts_down_my_app/ Oct 16 23:35:39 no 7sage Oct 16 23:35:46 but the logs are all here http://logs.nslu2-linux.org/livelogs/android-dev/ Oct 16 23:35:54 thats #3. I posted that from my personal account because of the one nasty comment about using the company account Oct 16 23:36:59 Odaym. those logs go back to 2008 Oct 16 23:37:06 yea I saw Oct 16 23:37:12 you probably werent logged on when this happened Oct 16 23:37:22 doesnt matter Oct 16 23:37:25 i used this Oct 16 23:37:41 in google Oct 16 23:37:41 7sage site:http://logs.nslu2-linux.org/livelogs/android-dev/ Oct 16 23:37:48 copy that Oct 16 23:38:04 or just put whatever search term in front of “site:http://website” Oct 16 23:38:19 ugh, who logs these channels? Oct 16 23:38:20 ah ok Oct 16 23:38:21 well thanks Oct 16 23:38:26 I don’t even know Oct 16 23:38:46 tahooie: I feel bad for suggesting Reddit now. Oct 16 23:38:49 Some of those replies are terrible. Oct 16 23:39:01 Talk about kicking a man when he's down. Oct 16 23:39:05 nslu2-linux.org ask them Oct 16 23:39:14 chainfire Oct 16 23:39:21 Hey, I've advertised on reddit. I knew what I was getting myself into! Oct 16 23:40:03 damn guys anyone can please try to help me ? Oct 16 23:40:14 If I have to go get another day job it will suck but I can do it. And hey, maybe this publicity can help in the long run! Oct 16 23:40:39 tahooie: What'll you do? Oct 16 23:40:42 Tomashe: not many Cordova people here Oct 16 23:40:55 i dont think its cordova issue, thats why im nere Oct 16 23:40:59 here* Oct 16 23:41:13 it must be some native thing im missing Oct 16 23:41:20 republish it. Lose my reviews. I copied them before it went down though, so maybe I'll post them in a separate site. Oct 16 23:41:29 i just awnted to know what i should look for on the native part Oct 16 23:41:33 Maybe I'll contact a news agency after I get the app back up Oct 16 23:41:48 That's an idea. Oct 16 23:44:47 Estel: anyone u know that u can direct me to? Oct 16 23:45:22 No, sorry. It's hard to understand your problem though. If you have a stacktrace you should consider posting that. Oct 16 23:47:57 http://pastie.org/private/dxfq1g5fhhlryxiokjwg Oct 16 23:48:53 tomashe there is a guy who comes in here... agamamnon or smoething Oct 16 23:49:00 he does that stupid stuff with webviews Oct 16 23:49:15 hmm Oct 16 23:49:42 i dong see him here now Oct 16 23:49:51 but what do u think about what i posted ? Oct 16 23:49:51 ya Oct 16 23:49:53 lol Oct 16 23:49:59 i told you waht i think and i wont repeat myself Oct 16 23:50:05 I'd be surprised if that's a native issue rather than a Cordova issue Oct 16 23:50:32 ok what should i look in the cordova native generated files that controling the onDetachedFromWindow c ode Oct 16 23:51:38 Are smart watches even worth it? Oct 16 23:51:46 for who? Oct 16 23:51:53 the two i got for free were worth it Oct 16 23:52:09 Yeah, the free ones have been great Oct 16 23:52:26 i like being able to open my garage door with the flick of a wrist when i'm walking my dog Oct 16 23:52:30 Do you wear them? Oct 16 23:52:37 yes Oct 16 23:52:37 Wow, that's the futureee xD Oct 16 23:52:43 http://onmilwaukee.com/buzz/articles/garagedoorapp.html huhu Oct 16 23:52:54 I've worn one every day since IO. Don't think I'd buy one. Oct 16 23:53:03 Even the 360, which is wayy nicer than the other two Oct 16 23:53:17 i'd buy one Oct 16 23:53:22 being able to dismiss emails is amazing Oct 16 23:53:34 or archive them Oct 16 23:53:56 "DO I care about that buzz just now? Nah, feck off" Oct 16 23:54:49 Why do y'all get them for free? Oct 16 23:58:04 because we can write apps for them! Oct 17 00:00:30 hi. does anyone know where i could get a list of devices that support the TYPE_STEP_COUNTER sensor? Oct 17 00:14:53 i procrastinated so long updating my mbp ro 10.9, 10.10 actually came out ! \o/ procrastincation ftw Oct 17 00:15:56 hopefully this one doesnt break the emulator Oct 17 00:16:02 and make your computer hard crash Oct 17 00:16:05 that was a good time Oct 17 00:16:08 One friend suggested I take legal action because they took down my app. HAH, thats a good one, me vs GOOGLE! Oct 17 00:16:31 technically i should procrastinate a bit longer until 10.10.1 Oct 17 00:16:54 Well it's a weekend of updates.. Oct 17 00:17:17 I havev so much work tonight, but I'm fallling asleep D: alarm set for stupid early I think Oct 17 00:17:29 i'm glad its not named after a cat. i was getting confused with all the animal names Oct 17 00:17:43 Like Mavericks? :P Oct 17 00:18:17 "The requirements for Yosemite are the same as those for OS X 10.9 Mavericks, the current operating system for Mac." Oct 17 00:18:50 that great, 2009 MBP still has life Oct 17 00:19:06 unless i want to run AS, that kicks it in the ass Oct 17 00:19:23 I'm been trying to implement a multi-touch app and I think I am realizing that the specific behavior I want is not possible. I want the user to be able to draw a line on a canvas (using onTouchEvent / ActionEvent) with one finger, and, at the same time, draw a second independent line with a second finger. In other words, place finger 1 down, place finger 2 down, move finger one left, move finger one right, both fingers should draw independent lines. I Oct 17 00:19:23 s that possible? Oct 17 00:20:15 yes Oct 17 00:20:17 g00s, This is offtopic and anecdotal but, if you install the newer mac OS (OS X or iOS) on an older apple device, you will notice that it is slower. Oct 17 00:20:21 JacobTabak, Talking to me? Oct 17 00:20:22 yes.. Oct 17 00:20:25 deadmund yes Oct 17 00:20:37 deadmund oh noes Oct 17 00:20:58 maybe i should put 10.9 on after all Oct 17 00:21:11 you can track multiple "pointers" in touch events Oct 17 00:21:27 JacobTabak, Should I use on_pointer_down and on_pointer_up ? It seems that I cannot get the correct pointer for these events. Supposedly getActionIndex() gives the index of the finger, but it is always returning 0 Oct 17 00:21:39 I will post some code. Maybe you can find the problem. Is that ok? Oct 17 00:21:46 i won't be able to help you much Oct 17 00:21:52 haven't done stuff like that Oct 17 00:21:56 but i'm familiar with the APIs Oct 17 00:21:57 g00s, Estel ^^ Oct 17 00:23:25 so this is dumb, if you have animation scale set to 0, the fragment method "onEnterAnimationComplete" method is called BEFORE the view is created. Oct 17 00:23:33 infuriating actually Oct 17 00:23:42 i wonder how many apps would break with animations turned off because of that Oct 17 00:24:58 How hard is it to use Kotlin for Android programming? Oct 17 00:25:44 is there any way to figure out which devices might support a specific feature or sensor from the API? is that documented anywhere? Oct 17 00:26:33 actually I retract my previous statement Oct 17 00:26:51 onAnimationComplete is called after onCreateView, but before onViewCreated Oct 17 00:28:32 Are you guys gonna move to Kotlin? Oct 17 00:28:40 lol Oct 17 00:28:44 you're so funny Oct 17 00:29:16 Serious question. Oct 17 00:29:33 :D Oct 17 00:29:41 my timehop just told me Oct 17 00:29:47 4 years ago today I bought my HTC G2 Oct 17 00:30:17 Isn't Kotlin just better than Java? Oct 17 00:30:43 I hear that JetBrains is replacing Java with it internally. Oct 17 00:31:07 if you want to learn a new language, increase the learning curve for other people joining hte project, and not be able to have others who don't know the language review your code Oct 17 00:31:16 and deal with any additional complexities it adds to your tooling Oct 17 00:33:45 So many people are talking about it lately. Oct 17 00:34:04 BTW, why is it "IntelliJ IDEA" and not "IntelliJ IDE"? Google isn't telling me anything. Oct 17 00:34:18 this is horrible ! http://www.everaccountable.com/blog/2014/10/16/out-of-the-blue-google-shut-down-ever-accountable Oct 17 00:35:19 http://www.reddit.com/r/programming/comments/2jgrqk/google_removed_my_app_my_livelihood_after_years/ Oct 17 00:35:22 http://www.reddit.com/r/Android/comments/2jgste/google_removed_my_app_and_isnt_giving_me_a_valid/ Oct 17 00:35:43 He got downvoted to -2 for "No, don't be hesitant to learn programming, its an awesome career that is largely shielded from junk like this. I put myself on the firing line when I started a business. Running a business is a lot messier than programming :)". Oct 17 00:35:45 Crazy. Oct 17 00:36:53 whats the most frustrating about this, it seems when you appeal its a total sham Oct 17 00:37:09 the same algorithm that got you in jail the ifrt time rejects your appeal Oct 17 00:37:39 Yeah. I googled that first sentence. Loads of people are getting the exact same message. Oct 17 00:37:41 It seems. Oct 17 00:45:28 i remember back in the day, being able to call MS for questions about their APIs. press 1 for MFC. press 2 for ActiveX Oct 17 00:45:38 i think when you bought the compiler, you got 2 or 3 free calls Oct 17 00:46:05 press 3 for BSOD Oct 17 00:46:11 thats what google should do, in some way. devs should be able to talk to a person when they remove their app from the store and it is appealed. Oct 17 00:46:21 the appeal should first be on the phone in person Oct 17 00:47:22 i sell stuff on amazon and i can easily talk to a human Oct 17 00:47:37 Yeah. Oct 17 00:48:48 Xavier's accent is so strong. It's like a caricature. Oct 17 00:57:17 tahooie oh its you ! Oct 17 00:57:56 tahooie i would also try talking to androidPolice Oct 17 00:58:35 good idea g00s Oct 17 00:59:02 Someone suggested hackernews, but that one isn't getting traction https://news.ycombinator.com/item?id=8468766 Oct 17 00:59:53 The same guy had a good idea to directly contact google developer advocates on linkedin. I've emailed 3 of them now. Oct 17 01:01:49 Just saw your comment about talking to a real person g00s, and yes! They have numbers you can call if your phone isn't working, how much more should their developers be able to talk to someone, rather than have their whole livelihood shut down with nothing more than a threat to not do it again, whatever you did. and they aren't saying what that is. Oct 17 01:03:12 there really should be two different processes - one for taking down obviously-malicious stuff, and one for, let's say, educating real developers Oct 17 01:03:51 right. I'm happy to adjust it if they tell me to. Oct 17 01:04:28 but you get the same automated process as an outright spammer Oct 17 01:05:12 I know. They are treating their developers this way. They pay those advocates to woo us, shouldn't they give us the time of day?!?! Oct 17 01:05:22 tahooie you are tempting me to write an email for you Oct 17 01:05:28 even though i hate your app Oct 17 01:05:37 i hate seeing your hard work get screwed over Oct 17 01:06:10 btw is it true that your app doesnt even have a holo theme Oct 17 01:06:19 thanks man and hey, even though you don't like my app, raising a riot might one day help your app - or other apps you do like Oct 17 01:07:05 probably not though Oct 17 01:07:09 JacobTabak: it did use that theme, I recently switched to a webview for the account setup. I am still looking for a bootstrap theme that looks like holo light Oct 17 01:07:11 because i wouldn't make a questionable app Oct 17 01:07:26 in fact i wouldn't start a business lol Oct 17 01:07:32 unless its being paid to write apps for other people Oct 17 01:07:59 lol @JakobTabak & the holo theme Oct 17 01:08:20 well when i opened the app it said 'checking subscription status 'in the classic themed dialog P: Oct 17 01:08:24 JacobTabak why do you hate the app ? its a very common practice in social groups to hold each other accountable in this way. its just a modern / technological expression of that Oct 17 01:08:59 wow Oct 17 01:09:01 g00s because i think more than half the people that have it installed are pressured into it Oct 17 01:09:02 just like an app that sends a message to a good circle of friends, that you slacked off on your exercise Oct 17 01:09:04 people don't like updating Oct 17 01:09:14 I messed up a bit Oct 17 01:09:19 Made too many updates Oct 17 01:09:24 ah so you mean the people that installed it didn't want to install it Oct 17 01:09:28 heh Oct 17 01:09:38 only 17% of my users have the most recent updated version of my game Oct 17 01:09:50 Agamemnus... how many updates did you push and in what time span? Oct 17 01:09:51 and a lot of that pressure comes from deep rooted "values" that I don't believe in, i think it's up to an individual to decide whether or not they want to do something, not family values or pressure from a partner Oct 17 01:09:56 some people are just lazy... Oct 17 01:10:15 a lot. mostly because updates kept doing the wrong things and I kept messing up Oct 17 01:10:21 my update process was too complex Oct 17 01:10:23 JacobTabak yes that is fine you don't subscribe to those values, but I can see this kind of thing being popular say, in some kind of bible study group Oct 17 01:10:32 JacobTabak, I see your point but I don't think he wrote it for that Oct 17 01:10:38 I have 10 different versions taking 91% of the base Oct 17 01:10:43 g00s so if its "popular" and everyone in the group is doing it, it would be easier for someone else to be pressured into it Oct 17 01:11:02 JacobTabak well then i just wouldn't install it Oct 17 01:11:02 what are your choices? either say no, and basically admit to looking at porn, or saying yes, and having people know whenever you want to do it from your phone Oct 17 01:11:11 what if your wife pressrued you into it? Oct 17 01:11:17 because the pastor mentioned it at church? Oct 17 01:11:18 dump her Oct 17 01:11:21 isn't that between you and your wife though ? Oct 17 01:11:34 why not just install gps tracker apps Oct 17 01:11:37 so you know where eachother is all the time Oct 17 01:11:42 then you wouldn't have to worry about your partner cheating Oct 17 01:11:45 these are all sociological problems, the technology is just the medium Oct 17 01:11:57 g00s the bigger issue is that you can install it on your partners phone without htem knowing Oct 17 01:12:05 +1 Oct 17 01:12:16 i just hate the idea of it because it puts one person in a relationship in a position of power Oct 17 01:12:21 i believe peoples secrets should be their own Oct 17 01:12:33 JacobTabak but ... i can do all kinds of dumb things to your phone if you give it to me Oct 17 01:12:35 if your wife asks you to install this app Oct 17 01:12:38 you can't say no Oct 17 01:12:44 and if you say yes, you lose your freedom Oct 17 01:12:47 except what happens in ehre JacobTabak Oct 17 01:13:02 it's my choice to come here lol Oct 17 01:13:03 i mean, if the app runs invisisble some how so that its not meant to be detected, thats weird Oct 17 01:13:09 a lot of people are in f*ed up marriages Oct 17 01:14:13 tahooie when you install the app, is it clear the app is there ? Oct 17 01:14:25 he said earlier theres a notification but you can turn it off Oct 17 01:14:33 and now he wants to change it so its permanent and resubmit it and hope it doesnt get removed again Oct 17 01:14:44 can't you disab;e notifications from the settings app, for any app anyhow ? Oct 17 01:14:52 i'm not sure if you can for persistent notifications Oct 17 01:14:54 never tested it Oct 17 01:14:56 g00s yes. And it sends an email to the account owner Oct 17 01:15:06 tahooie thats a moot point because its too late Oct 17 01:15:11 s/account owner/one of the registered accounts on the phone/ Oct 17 01:15:18 can you even make an app that doesn't show up in installed apps? Oct 17 01:15:28 it isn't too late. I'm going to resubmit if I can't do anything else. Oct 17 01:15:30 tricknology yes you can Oct 17 01:15:44 or, you could Oct 17 01:15:54 not sure if you can anymore Oct 17 01:15:55 I'm not hiding this app Oct 17 01:16:03 once again, moot point Oct 17 01:16:08 your intentions don't matter Oct 17 01:16:09 hey Oct 17 01:16:14 does anyone have the Note 4? Oct 17 01:16:31 they messed up the settings menu and i can't find it anywhere Oct 17 01:16:54 they replaced it with the middle menu and the middle menu now goes to google voice search Oct 17 01:17:00 hey Agamemnus Tomashe was looking for you Oct 17 01:17:11 what did s/he say? Oct 17 01:17:21 he wanted to talk about the glories of cordova with you Oct 17 01:17:28 i see Oct 17 01:17:32 pulling my leg are you Oct 17 01:17:37 oh yes, i have one like this.. that runs silently but i'm talking about one that doesn't have an icon Oct 17 01:17:43 no, not pulling your leg Oct 17 01:18:01 i see Oct 17 01:18:03 ok, thanks Oct 17 01:18:06 i sent them a message Oct 17 01:18:17 Agamemnus, like the S5? Oct 17 01:18:29 not just my intentions JacobTabak, every shread of marketing material and every bit of the app too. Oct 17 01:19:10 tahooie you may have a point Oct 17 01:19:23 i mean Oct 17 01:19:29 as i said before, im sympathetic, and think its not right Oct 17 01:19:41 but i am personally against it for the reasons mentioned above Oct 17 01:19:47 i don't like the social/religious implications associated with it Oct 17 01:19:50 yes. I think they should handle it better, give me a chance to fix it, etc. Oct 17 01:20:13 not that i disagree with teh religious beliefs, but I feel that a lot of people were raised with them, and may not agree with teh whole doctrine Oct 17 01:20:38 and be pressured into things they dont necessarily agree with Oct 17 01:24:41 afaik, you are responsible for your own device. if you install it, you want it. if you don't want it, don't install it. if its not hiding or doing anything nefarious, it should be OK Oct 17 01:24:46 I have to go. Let us know how you get on, tahooie! Oct 17 01:24:48 Later. Oct 17 01:25:19 g00s I'm afraid I have to disagree Oct 17 01:25:45 g00s if your wife or partner asks you to install it, you are forced to have a confrontation Oct 17 01:25:49 if you don't want to install it Oct 17 01:26:04 amen Oct 17 01:26:07 JacobTabak srry, but Android is spyware Oct 17 01:26:14 it doesnt email your wife though Oct 17 01:26:38 but again, you would have to set that up! Oct 17 01:27:09 sigh Oct 17 01:27:22 yeah Oct 17 01:27:24 * g00s sighs Oct 17 01:27:51 I personally hold the belief that pornography is not harmful to a marriage Oct 17 01:28:19 thats not the issue tho. the app could be 'negative punishment' for any behavior Oct 17 01:28:24 and if someone chooses not to disclose his browsing habits, thats his choice Oct 17 01:28:32 his or her, of course Oct 17 01:29:33 and as i said before, you shouldn't be asked things like, "if you have nothing to hide, why can't I install this on your phone? Oct 17 01:30:21 what do you mean 'negative punishment'? Oct 17 01:31:03 JacobTabak http://psychology.about.com/od/operantconditioning/f/negative-punishment.htm Oct 17 01:31:20 it could be for any behavior, alcoholism, etc Oct 17 01:31:21 yes this is a good argument for my point exactly Oct 17 01:31:31 there's a picture of a dad scolding a kid Oct 17 01:31:37 lol Oct 17 01:31:44 if you're an adult, you should not be subject to this Oct 17 01:31:54 JacobTabak there are no adults Oct 17 01:32:10 not sure what your angle is Oct 17 01:32:19 i can do anything I want and don't answer to anyone other than the man Oct 17 01:32:53 luckily, i'm not trapped in an oppressive relationship like the guys whose wives imposed this app on them Oct 17 01:32:59 lets say you have a alcohol problem, and sign up for AA. thats your choice. they ask you to install their app, so that whenever you feel the urge to drink, you can get in contact with a counselor right away Oct 17 01:33:13 these are all your choices Oct 17 01:33:45 except the difference is that alcoholism is dangerous and fatal and generally people who go to AA do so because they know its right for them Oct 17 01:34:16 i believe this app is imposed upon people due to pressure from jealous spouse/religious values that the individual may not necessarily agree with Oct 17 01:34:56 and that's my problem with it, i can't see how you can argue with it Oct 17 01:36:36 so i guess tomorrow we get 5000 apis :D Oct 17 01:37:02 did i get that number right, i thought i read it Oct 17 01:37:11 i need to update my recyclerview lib Oct 17 01:37:11 clearly because apple says we have 10000 new apis Oct 17 01:37:29 wait, what? Oct 17 01:37:51 tricknology eh, Lollipop is supposed to have 5k new apis Oct 17 01:38:11 thats probably 'lines of diff' Oct 17 01:38:23 woo. when will L release to devices? Oct 17 01:38:30 image available tomorrow Oct 17 01:38:31 lol Oct 17 01:38:39 may not be 'official' Oct 17 01:38:42 but probably RC Oct 17 01:39:01 where can i read le source? Oct 17 01:39:04 usually official images come a few weeks after nexus release Oct 17 01:39:13 but this is the first time they did preview Oct 17 01:39:46 git? Oct 17 01:39:56 nexus 6 Oct 17 01:40:00 such disappointment Oct 17 01:40:29 jug6ernaut i hope they keep the n5 and reduce the price Oct 17 01:40:45 as far as i can tell they are keeping it Oct 17 01:40:51 i haven't heard anything of a price drop tho Oct 17 01:40:57 i would have loved a chipset refresh tho Oct 17 01:41:26 !MOTD Oct 17 01:41:47 !PLING Oct 17 01:42:16 !PLING Oct 17 01:42:17 ? Oct 17 01:42:27 what android api is it when Google totally changed how one does maps? Oct 17 01:42:31 if you have to ask Oct 17 01:42:37 API 2 Oct 17 01:45:58 dinglebarry!!!!!!! g00s Oct 17 01:49:02 lazyweb: can i put a ViewPager in a drawer? Oct 17 01:49:12 yes! Oct 17 01:49:49 can i put a drawer in a ViewPager? Oct 17 01:50:00 good question Oct 17 01:50:09 probably Oct 17 01:50:14 i was obligated to ask that one Oct 17 01:50:14 i don't really care Oct 17 01:50:23 yeah probably Oct 17 01:50:29 but perhaps only on the "ends" Oct 17 01:50:55 can I put a drawer in a drawer? Oct 17 01:51:00 haha Oct 17 01:51:01 why not Oct 17 01:51:06 like a hidden drawer Oct 17 01:51:12 that only comes out when the inner drawer is expanded Oct 17 01:51:43 i want to make a game that looks like an app but its actaully a puzzle Oct 17 01:51:50 and involves activating the right ui controls at the right time Oct 17 01:51:54 recursive drawer Oct 17 01:52:04 on open listener lazily inflates the drawer contents from the same layout Oct 17 01:52:23 im gonna go ask if tahts possible on stack overflow Oct 17 01:52:58 http://img.pandawhale.com/98541-monkey-sigh-rimshot-gif-Imgur-7K6T.gif Oct 17 01:52:58 make sure you pitch it as something you actually want Oct 17 01:53:19 i love gifs that you dont even need to click on Oct 17 01:53:25 because you can identify it from the url Oct 17 01:53:36 "My navigation is populated from JSON from the server that can be arbitrarily nested. Can I make a drawer that inflates another drawer inside of itself?" Oct 17 01:54:17 oh Oct 17 01:54:35 what if you had a drawer layout inside another drawer layout that has a translation X = widht of containing drawer Oct 17 01:54:45 I also like questions that start with "How come" Oct 17 01:55:35 i'm bad at stack overflow Oct 17 01:55:42 i should sit on there instead of in here Oct 17 01:55:45 it would be much more rewarding Oct 17 01:55:46 i'd get points Oct 17 02:07:11 ugh its so hard to write tests for an app with no tests Oct 17 02:07:37 its like everything you do is a dive down a rabbit hole Oct 17 02:07:58 like every test you write leads to 5 more Oct 17 02:09:52 is there a way get dagger to automatically return spies for every dependency in a test build? without redefining them in an override? Oct 17 02:10:07 not really Oct 17 02:10:08 mockito spies, that is Oct 17 02:10:12 that seems like it would be useful Oct 17 02:10:12 subclass ObjectGraph maybe Oct 17 02:10:19 another rabbit hole Oct 17 02:14:21 I meant from google API Oct 17 02:14:34 hmm i could add DependencyWrapper param for all my dependencies Oct 17 02:14:51 and the implementation of that in the test build would wrap it with a spy() Oct 17 02:14:54 and do nothing in non test builds Oct 17 02:15:01 I think the Google APIs were in paralle with android's and then the maps api got moved to the play services Oct 17 02:17:26 is this a good use case for a static injection? Oct 17 02:20:49 nah, prly not Oct 17 02:22:12 how can i boost the max volume of my auxiliary output? Oct 17 02:22:47 haven't messed with android in a while, but I thought on my old phone there was a *.prop file related to the volumes Oct 17 02:24:58 found some source code for a volume booster app, but it seems phone-dependent to his model Oct 17 02:43:21 Anyone recomend a file picker library? Oct 17 02:45:41 I have an Android game that doesn't support inputs from a physical keyboard. Rather input events are produced by touching several regions on the touch-screen. Oct 17 02:47:00 Now I have a problem. The in-game onscreen buttons are at fixed locations, now, I'd to know if there is a way for me to map certain regions of the screen for invoking/reproducing the touch event Oct 17 02:47:53 sure Oct 17 02:47:56 use some rects Oct 17 02:48:05 then you can do rect.contains(point) Oct 17 02:49:10 I'm not really sure if this is the right place to ask, but is there any way to take a .bin from say a JTAG extraction of a phone and boot that .bin in the SDK or in a VM of sorts? Oct 17 02:49:36 basically clone my phone into a Virtual Machine of sorts? Oct 17 02:51:18 hi lasserix_ I am not familiar with android development, does your solution require that I have access to the source code of the game? It's not my game. I just want to see if there is a way for me map certain regions of the screen to a keycap key, that way I can fire the touch event through a real key. Oct 17 02:52:20 is there any issue with defining my own IRI scheme Oct 17 02:52:22 you have to somehow get the buttons Oct 17 02:52:27 positions, Oct 17 02:52:34 so you can see if they contain the touch event, Oct 17 02:52:37 then look up your key Oct 17 02:52:56 URI* Oct 17 02:54:34 lasserix_ the good thing is, the position of each key is fixed. Can you please help me out by steering me in the right direction (e.g. the things that are involved)? Oct 17 02:55:23 I can't find much help on google, most of the results are about keyboard remapping, which is not what I want, as you can see. ^^ Oct 17 02:56:35 areyour buttons actual views or they just bitmaps rendered? Oct 17 02:57:46 lasserix_ what do you mean by actual views? Oct 17 02:58:36 are they their own objects or are they just rendered bitmaps? **** ENDING LOGGING AT Fri Oct 17 03:00:00 2014