**** BEGIN LOGGING AT Tue Mar 31 02:59:59 2015 Mar 31 03:22:16 anyone else checking out moshi? Mar 31 03:22:25 what differentiates this from gson? Mar 31 03:22:41 less documentation Mar 31 03:22:50 :D Mar 31 03:24:45 CedricBeust i'm surprised my /r/androiddev submission on Svetlana's video on Kotlin + Android got so downvoted :| Mar 31 03:24:55 wtf did i do ! Mar 31 03:25:12 Link? Mar 31 03:25:23 http://www.reddit.com/r/androiddev/comments/30ujc1/mce_2015_svetlana_isakova_kotlin_the_swift_of/ Mar 31 03:25:42 Why do you say it got downvoted? Mar 31 03:25:52 its got 0 votes :) Mar 31 03:26:38 well 50% upvoted. i mean, i don't care about what i submit - but i put it out there as a barometer to guage consensus Mar 31 03:26:43 Well, it didn't get upvoted then, which is par for the course for androiddev Mar 31 03:27:10 poor lady did sound a bit nervous though Mar 31 03:47:07 hm, this is pretty interesting about java 9 modularity stuff http://www.javaworld.com/article/2878952/java-platform/modularity-in-java-9.html Mar 31 03:49:03 glad to see oracle is giving OSGi a front row seat Mar 31 03:50:22 i wonder if any of this could spill over into android somehow. i've never used any of these, like osgi Mar 31 03:50:48 jigsaw i think kept getting postponed - kicked down the line for the next release Mar 31 03:51:25 my company does a lot of custom eclipse plugin development, so we deal with it a lot Mar 31 03:51:35 make it crazy easy to swap things in and out Mar 31 03:51:36 oh, equinox ? Mar 31 03:51:38 makes* Mar 31 03:52:47 Jigsaw has advanced quite a bit, past the point of no return. The odds of seeing it in the next version of Java are pretty high in my opinion Mar 31 03:53:11 that and some work on felix too Mar 31 03:54:49 mrfu can you swap any jvm-language "thing" in and out ? Mar 31 03:55:37 in other words, is it just as easy to write osgi scala components , kotlin compoenents, etc ? Mar 31 03:55:43 I know that group has a few scala and hadoop people Mar 31 03:56:20 so probably? don't quote me Mar 31 03:57:37 I'm the lowly junior mobile dev looking over the fence haha Mar 31 03:57:45 :D Mar 31 04:08:11 CedricBeust in the video, the presenter used a feature in AS + kotlin plugin that converted the file from java to kotlin. have you used that, how did it work out ? Mar 31 04:16:07 I haven't used it but it's been in IDEA for a very long time Mar 31 04:16:14 I suspect it works quite well based on the forum Mar 31 05:10:52 anyone have any luck using mediaplayer to play streaming video via an m3u8 file? Mar 31 05:24:41 it works Mar 31 05:24:50 pfn @ me? Mar 31 05:24:52 not well, but works Mar 31 05:24:56 yes Mar 31 05:25:10 so i have tried mediaplayer and even using native, no luck Mar 31 05:25:23 is this the result of maybe the remote server not encoding the file properly/ Mar 31 05:25:55 dunno what no luck means Mar 31 05:26:01 hey has anyone had the provlem of a keyboard removing/moving a view? Mar 31 05:26:15 the peoblem is that it’s moving the view and not the whole layout.. Mar 31 05:29:08 oops keep getting netsplitted, anywayss, my question was it does not appear to be working which seems a common problem. could this be a result of improper encoding of the m3u8 file on the server end? Mar 31 05:29:29 the thing is i also have rstp link, which also fails Mar 31 05:30:26 any advice on trying to debug this issue? Mar 31 05:35:21 I shouldn't have to manually parse the m3u8 file? Mar 31 06:39:19 hi is there any mistake in my code here http://pastebin.com/hT9PDz7F Mar 31 06:39:58 I am able to add 0,1,2,3 indexed items only and if it crosses 4 it shows arrayindexoutofbounds exception Mar 31 06:40:28 arrayindexoutofbounds length=4;index=4 Mar 31 06:41:56 niru, how big is m_options Mar 31 06:42:17 hmm Mar 31 06:44:53 lemonxah: I have 6 elements in that Mar 31 06:45:03 when I had 4 it is working Mar 31 06:45:30 niru: You're hidging a lot of the code and hiding the exact error message and line too Mar 31 06:45:35 hiding* Mar 31 06:46:13 either way, put a break point and inspect m_options, should be trivial to solve Mar 31 06:46:18 also, use better Java conventions Mar 31 06:46:35 mOptions, optionsArray, ... Mar 31 06:46:40 ok that is a multiselect window dialog box Mar 31 06:47:20 and never use printStackTrace() Mar 31 06:47:21 ok let me try Mar 31 06:51:11 niru, why is this in the loop: items = options_array.toArray(new CharSequence[options_array.size()]); ? Mar 31 06:51:44 and why do you new String(obj.toString) if obj is String anyway? Mar 31 06:53:14 iprime: yes you are correct Mar 31 06:53:27 toString is unnecessary Mar 31 06:59:25 You can reference a private identifier by using @*android:id/somePrivateId. Is there a way to reference an id in com.android.internal.R? Mar 31 07:12:54 I'm using Jackson stream-parsing for its low memory overhead. Will Moshi be a contender here? Mar 31 07:16:01 test? Mar 31 07:16:35 you cant optimize without having measurements Mar 31 07:18:07 TacticalJoke, your down or someone elses data? Mar 31 07:18:11 data* Mar 31 07:18:25 deebo: That assumes that Moshi is settled (implementation-wise). I have no idea whether this is the case. Mar 31 07:18:34 Someone else's. Mar 31 07:23:32 hi i published an app in play store but when i try to donwload i have notification error: "Authentication is required. You need to sign into you account..." Mar 31 07:24:55 do sign in Mar 31 07:26:57 iprime: reddit gives an enormous JSON response. The memory pressure can get very high Mar 31 07:27:29 eh, its not that bad Mar 31 07:27:30 So API clients have to work around this. Mar 31 07:27:45 :) Mar 31 07:27:50 It's the biggest I've seen. Lol. Mar 31 07:28:11 really? Mar 31 07:28:17 yarly Mar 31 07:28:21 its not that bad imo Mar 31 07:28:36 parse it on your server to proto buffers Mar 31 07:28:54 Umm... Mar 31 07:29:35 :) Mar 31 07:29:57 the actual objects arent too bad. if i was going to do something with them id probably pick them off and leave the rest of the garbage (which is not too) to be gc'd. you also can probably pick what you want out of those important objects, since some fields are dups/unused Mar 31 07:30:18 Yeah, I pick what I need. Mar 31 07:30:19 but thats just if i was going to do something with them vOv Mar 31 07:30:29 Lol. Mar 31 07:30:32 :) Mar 31 07:30:54 This message will self-destruct in T - 10. Mar 31 07:31:27 how is your app coming, TacticalJoke ? Mar 31 07:31:43 It's doing well so far. Mar 31 07:31:50 nice Mar 31 07:32:37 I feel like there has to be an issue at some point. Stuff seems deceptively (?) simple so far. Mar 31 07:33:02 isnt that always the case with client apps? Mar 31 07:33:05 I haven't done the new logins yet. ;o Mar 31 07:33:09 Yeah. Mar 31 07:33:15 im pretty excited to see what youve been working on Mar 31 07:33:49 I might use WebView for the new login thing (as Sync for reddit does). Mar 31 07:33:59 Hi all. I have a Location object (lat lon) and a List like a boundingbox. Does somebody know how I can check if one location is in the bounding box (list) ? Mar 31 07:34:10 Even though this totally defeats the purpose of it. :D Mar 31 07:34:20 TacticalJoke: for the oauth? i think you have too Mar 31 07:34:25 Yeah. Mar 31 07:34:26 reddit is fun does the same thing Mar 31 07:35:19 Is it easy to implement all this? Mar 31 07:36:19 TacticalJoke: fundementally, yes. and we're happy to help if you get jammed. Mar 31 07:36:27 Thanks. :D Mar 31 07:36:41 I suspect it'll be easy, but the thought scares me. Lol. Mar 31 07:36:44 Not sure why. Mar 31 07:37:03 i hope to make it easier on android in the future, of course Mar 31 07:37:11 had anyone this issue - camera auto flash on samsung trend 2 not working when its dark Mar 31 07:37:13 I think it's because I read a message from years ago in which someone said they had just given up trying. Mar 31 07:37:24 while other camera app works Mar 31 07:37:41 the oauth stuff is relatively new. and were actively moving clients over to it, so its on us to help you guys out. Mar 31 07:37:45 i tried different parameters (i.e. scene mode sport disables flash) Mar 31 07:37:49 :) Mar 31 07:38:24 I hope it's just a case of listening for the URL change in WebView. Mar 31 07:39:14 p much Mar 31 07:39:18 K. Mar 31 07:39:20 youll see when you implement Mar 31 07:39:31 and if you have trouble just ping me Mar 31 07:39:36 Thanks. Mar 31 07:39:54 and either ill help you or ill get kemitche to help you out (he did the implementations, he can help you out in his sleep) Mar 31 07:39:56 FrancescoV, have you looked at the new location services? Mar 31 07:40:02 maybe this would be of interest https://developer.android.com/training/location/geofencing.html Mar 31 07:40:04 :) Mar 31 07:42:31 TacticalJoke: whats your username on reddit? Mar 31 07:42:38 (pm if you dont want everyone here to know) Mar 31 07:49:28 anybody worked with the remoteviewsfactory, i am a bit unclear about hasstableids and getitemid Mar 31 07:50:05 iprime, thanks a lot! Mar 31 07:53:37 hi! i have an activty and a home screen widget that should use the same business logic, so i'm extracting the logic from the activity into a service Mar 31 07:54:10 my question is if i should look at the bound service or the "started" type? Mar 31 08:04:54 I can guess the answe rI'm going to get in here, but to somebody who has developed for ios and android: Which do you prefer, and why? Mar 31 08:05:25 And have you found any (easy) strategies for code sharing? Right now I'm looking at NDK and C++, but the JNI bindings are so verbose and unfriendly. Mar 31 08:08:32 flight18: have you checked out djinni? Mar 31 08:10:50 dbrosyth, I have for about 5 minutes and couldn't manage to get it working out of the box Mar 31 08:11:00 Haven't had more time to look into it any further Mar 31 08:12:43 hm, well thats all ive really played with :\ Mar 31 08:13:27 flight18 microsoft has a presentation on how they do cross platform with c++ Mar 31 08:20:29 dbrosyth, do you find it works well once you get it set up? Mar 31 09:10:26 oh noes is stack overflow dead Mar 31 09:10:33 woo end of work today Mar 31 09:12:02 Hi, I'm using Ubuntu for android dev, and I noticed my Home directory has ".AndroidStudio", ".AndroidStudioBeta", "AndroidStudioPreview1.2" . Is it normal to have multiple instances? Mar 31 09:13:40 Sophomore, probably not, my user dir under windows does as well, try moving the beta and preview ones and see what happens when you start it Mar 31 09:14:03 Ashiren, works here Mar 31 09:14:34 asperon, alright let me try doing that. Mar 31 09:15:41 Sophomore, yes it's normal Mar 31 09:15:49 beta/canaries have separate settings Mar 31 09:16:09 Mavrik, ah I see. Mar 31 09:19:30 you probably only care about one of them, the rest are leftovers Mar 31 09:20:18 any good tip on improving performance for a 3dFlip ViewFlipper animation? Mar 31 09:20:50 get a faster device? :p Mar 31 09:20:59 running on nexus 6 Mar 31 09:21:11 plenty fast imho Mar 31 09:22:12 ravilov, So I can delete the .AndroidStudioBeta one? It takes around 2.4 GB! Mar 31 09:23:06 you can delete all but one (heck you can delete all of them if you don't mind losing your settings and stuff) Mar 31 09:23:14 you should probably just move them at first to make sure Mar 31 09:23:45 Alright. Thanks ravilov :) Mar 31 09:23:50 like Mavrik said, each variant of AS has its own settings and it doesn't care about any other variant's settings, so yeah Mar 31 09:27:16 Did you guys see the latest RMS mini-drama? http://thread.gmane.org/gmane.emacs.devel/184155/ Mar 31 09:27:22 Stupid question ahead regarding Android Studio: In the AVD, does the Snapshot feature work automatically? It is activated in that particular device's options, but when I closed & started it there was no snapshot Mar 31 09:30:11 What's the drama? TL;DR Mar 31 09:30:34 Stallman basically reveals that he's unwilling to learn new technology. Mar 31 09:30:37 People get annoyed by him. Mar 31 09:31:13 I think it's about a Git Emacs plugin. He wants the default behaviour of the plugin to treat Git as if it's a centralised revision-control system. Mar 31 09:31:52 Lorenz9: I'm struggling to understand your question. What do you mean by "work automatically"? Mar 31 09:32:17 I mean if it will automatically save the snapshot when i close the emulator Mar 31 09:32:35 or if I have to command it to somehow Mar 31 09:32:52 i believe you have to press a key Mar 31 09:34:36 according to some, it should be automatic Mar 31 09:34:53 http://stackoverflow.com/questions/4842612/how-do-you-save-android-emulator-snapshot#answer-4842876 Mar 31 09:37:26 Just double-checked, the option is activated, maybe it's because I closed it with alt+f4? Well I guess I'm alone on this one, so I'll have to experiment although it takes like an hour to mount. Mar 31 09:39:17 Maybe I should start it from somewhere else Mar 31 09:39:36 Does anybody in here use Quinny898's PersistentSearch? Mar 31 09:54:25 I'm trying to put an AnimationListener on to the SearchBox.hideCircularly() method of PersistentSearch and not really sure where to start, any ideas? Mar 31 09:58:24 fork the project :) Mar 31 09:58:28 @CSI Mar 31 09:58:53 Fork the world! Mar 31 09:59:14 yeah! Mar 31 09:59:20 Earth 2.0 Mar 31 09:59:25 or Universe 2.0 Mar 31 10:00:02 CSI, if you read the code you'll see that the animation duration is 500 ms Mar 31 10:02:34 Ah, thank you iprime. Mar 31 10:02:42 I missed that Mar 31 10:10:22 hi, is there a way to define a function inside of BuildConfig.java (generated)? Mar 31 10:19:36 avinashrbhat, why would you do that? Mar 31 10:21:56 witness the horror: http://dpaste.com/39ZE4Q0 Mar 31 10:22:07 i should probably stop giving java and android advice to anyone Mar 31 10:28:39 iprime, I am having two variants of the application, and the adapters differs from each other. So I use dagger for injecting them. Up until now, I was using a buildConfigField to construct the module-list. Now I need to be able to pass the context(activity) to the creating adapter. Mar 31 10:31:30 So if there was a way to create a function that returns a list, my issue will be solved. Otherwise the only other way is to create a proxy for each module which can do this. Mar 31 10:31:34 does the package name for getPreferredActivities always return "android" if there is no preferred activity? Mar 31 10:32:52 knapper_tech, quoting the doc "outActivities A list in which to place the component names of all of the preferred activities, or null for none." Mar 31 10:52:57 Hi guys, Are there someone ever run "adb" via Runtime.getRuntime().exec() in app ? Mar 31 10:53:03 I set adbd listen on tcpip, and hope to connect it in app then debug device it self. Mar 31 10:54:52 It success in terminal emulator, after run "adb start-server", system should prompt a dialog to allow authentication, and I can connect it just like connect it from PC. Mar 31 10:55:28 But in my app, I can't got the authentication prompt to allow it. Mar 31 10:57:11 danijoo: you here ? Mar 31 11:02:01 sometimes Mar 31 11:02:55 i started creating my sync adapter and i was having problem but ive just fixed it nvm :D Mar 31 11:03:24 romber, why u want that? Mar 31 11:04:37 danijoo, to capture screen of any app without root Mar 31 11:06:06 android is linux. Mar 31 11:06:10 just execute the command Mar 31 11:06:19 afaik u dont need adb for that Mar 31 11:06:36 only Exec Mar 31 11:08:49 well Android app have permission to capture screen? Mar 31 11:09:12 try it Mar 31 11:10:21 yes I ever try to get screenshot from screencap, but it can only run by root or adb. Mar 31 11:13:13 if you have an Android 5.0 device you can use the new android.media.projection api for screen capture. Mar 31 11:14:25 hmm, i have a preferencefragment and when i press the back/up button in the action bar all values on the previous activity are cleared, but when i press back button on the device all values are still there Mar 31 11:14:46 how can i get the action bar button to behave like the standard back button? Mar 31 11:16:21 spots, looks like you are recreating the injected fragment while pressing the back button rather than removing the current item from the fragment backstack. Mar 31 11:17:32 i have an activity containing the preferencefragment for the settings, and i call it with an intent Mar 31 11:17:54 romber, you want to run the adb command from the device itself? this is all backwards Mar 31 11:17:55 spots can you show some code? Mar 31 11:17:55 why the different behaviour? isn't it supposed to be independent from the other activity? Mar 31 11:18:06 what code do you need? Mar 31 11:18:15 ALL OF IT Mar 31 11:18:19 ALL THE CODE Mar 31 11:18:32 spots, how the fragment is injected into the activity Mar 31 11:20:04 http://pastebin.com/SKBc2ykA Mar 31 11:21:16 will make -j16 take a long time? Mar 31 11:21:26 my processor is i53570k Mar 31 11:21:58 or should i just give make Mar 31 11:22:08 why don't you try? Mar 31 11:22:41 i just wanted to know if 32 is going to stress my cou too much Mar 31 11:22:44 cpu* Mar 31 11:24:44 spots, you are recreating the fragment in the onCreate over and over. Mar 31 11:25:15 ? Mar 31 11:25:16 you need to check if the fragment is already is available with the fragment manager or not. Mar 31 11:27:12 that shouldn't be a problem since the fragment has its own activity Mar 31 11:27:31 clear Mar 31 11:27:53 ravilov, yes, actually it need to connect under tcpip mode Mar 31 11:28:03 how can I make the focus of an EditText persistent? I don't want it to get unfocused when tapping outside of it Mar 31 11:28:32 spots,check http://stackoverflow.com/questions/26855848/why-do-you-check-for-savedinstancestate-null-when-adding-fragment Mar 31 11:29:02 the values of the activity that called the preferences are gone Mar 31 11:29:12 all values in the edittexts, ... Mar 31 11:29:53 Then I can run /system/bin/screencap under debug permission Mar 31 11:29:53 spots, that's because you are creating the fragment everytime the onCreate is called. Mar 31 11:30:13 spots, you should check for savedInstanceState == null before creating the fragment. Mar 31 11:30:46 that doesn't make sense at all :/ Mar 31 11:31:32 Does the Google Cast API support devices such as Samsung Smart Tvs? Mar 31 11:31:35 then why is the back button working? Mar 31 11:31:39 Or is it chromecast only? Mar 31 11:31:45 This is a workaround/hack to capture screen via app without root Mar 31 11:32:46 spots, http://pastebin.com/AX2r0aP9 Mar 31 11:33:52 spots, back button works if you have specified the parent activity. Mar 31 11:34:52 i added it and nothing changed Mar 31 11:36:07 hmm Mar 31 11:36:15 how do I start an activity with OpenGL tracer that requires extras? Mar 31 11:46:31 how can i check if internet is really available ? i am connected to wifi but it has no internet but application think the network is present. Mar 31 11:46:34 TacticalJoke Mar 31 11:47:21 I'm not sure. Would you have to do the network stuff and respond to an IOException in that case? Mar 31 11:49:25 Hi! I was animating leftMargin of a view, but its not working. The view is shown with correct final margin but I don't see any animation. But ValueAnimator works fine. [https://dpaste.de/fpGw] Mar 31 11:49:51 I need animation as I need to use the Interpoaltor Mar 31 11:51:39 I am doing this animation inside a fragment of a viewpager, if that matters Mar 31 11:52:52 TacticalJoke i just want a boolean that tells me if internet is really available Mar 31 11:54:53 s9iper1: well actually you cant Mar 31 11:54:57 all you can is try to ping Mar 31 11:55:35 ok Mar 31 11:59:22 anyone familiar with sync adapter ? Mar 31 12:05:02 Ummm, anyone? help! Mar 31 12:07:24 might be that the animation changes the view, but it doesn't update the view Mar 31 12:07:48 but that's just guessing. It's essentially a tween animationn you want? Mar 31 12:12:28 astroduck, what is the value of hte left margin initially? and what's your min sdk? Mar 31 12:13:23 astroduck, btw, that params.leftMargin = 120 doesn't make sense Mar 31 12:14:59 Changing margin is a really bad way to animate views Mar 31 12:15:08 Change translationX instead Mar 31 12:15:36 that's not supported in all androids, that's why i've asked him about the min sdk Mar 31 12:16:02 he could also just set x depending on his logic Mar 31 12:16:15 hmmmm, where can I get a support library that has PreferencesFragment? Mar 31 12:16:47 ValueAnimator wasn't added until HC either, so I'm assuming he has checked min api levels Mar 31 12:16:52 I would really like to keep gingerbread support for another year or so Mar 31 12:17:37 still, why use Animation if ValueAnimator is supported Mar 31 12:18:28 I don't follow Mar 31 12:18:56 view.animate().translationX(float) if you want to move your views, don't change margins Mar 31 12:21:18 SimonVT, in his code he's subclassing android.view.animation.Animation, I thought he cannot use the newer animation apis.. Mar 31 12:23:18 iprime: its margin is set in java, equal to parent.getwidth(), min sdk is 10 Mar 31 12:23:52 astroduck, 'params.leftMargin = 120' doesn't make sense, you should interpolate that somehow Mar 31 12:24:40 hi guys. is there a smooth way to handle onKeyDown() events in a fragment? Mar 31 12:25:05 iprime: Oh, I thought it takes final value and calculates all values based on the AccelerateInterpolator provided Mar 31 12:25:22 no Mar 31 12:25:32 iprime: Also, this animation clears topMargin, any idea why? Mar 31 12:25:44 the interpolator would still yield something between 0 and 1 Mar 31 12:26:04 what you need is to calculate the new margin yourself Mar 31 12:26:33 if you animate from 0 to 120, you have to interpolatedTime * (120 - 0) Mar 31 12:26:36 that's your margin Mar 31 12:27:04 For legacy devices, there's TranslateAnimation Mar 31 12:27:04 iprime: Ok, got it. Any idea why topMargin is cleared? Mar 31 12:30:04 SimonVT, using TranslateAnimation wouldn't necessarily be equal to changing the left/top margin, the view might have some constraint (toRightOf etc) Mar 31 12:31:01 astroduck, no idea Mar 31 12:32:54 You know enough about your layout to account for that Mar 31 12:33:13 Changing margins is horribly expensive compared to translate animations Mar 31 12:33:36 And considering this is for old devices.. Mar 31 12:37:38 Anyone there? Mar 31 12:37:54 no we all ran away when you came online Mar 31 12:38:05 Ok good! Mar 31 12:38:08 * lemonxah is running and hiding Mar 31 12:38:21 so how can we cheat you today? Mar 31 12:38:46 * fritzcola needs help Mar 31 12:38:57 dont ask to ask just ask Mar 31 12:39:00 http://pastebin.com/bqPb0U4q Mar 31 12:39:50 fritzcola, it tells you exactly what the error is Mar 31 12:39:56 in line 7 + 8 Mar 31 12:40:42 I know but i mean the error at the very first Mar 31 12:40:52 i dont have such a folder ! Mar 31 12:41:01 called android-visualizer_intermediates Mar 31 12:41:09 thats the very first error Mar 31 12:41:40 ^ Mar 31 12:41:48 * fritzcola means this one http://pastebin.com/SDjY9ALL Mar 31 12:42:05 you're trying to build omnirom? try https://omnirom.org/get-involved/ Mar 31 12:42:16 just fix the error in line 7 + 8 and see what happens Mar 31 12:42:17 hello! I'm wondering, if I can use my NFC phone as a bank card... how can I solve it? As I think, Google Wallet has this feature, but I'm not from US, I can't install it from Play. On #android they said, that they don't know an app... - someone knows one here? Mar 31 12:43:26 antivirtel, this is not the right channel for that Mar 31 12:43:32 if u are not from the US, theres no store that supports NFC paying anyways :p Mar 31 12:43:43 we help with programming questions Mar 31 12:43:51 I read canada has a lot of nfc terminals Mar 31 12:43:52 lemonxah Mar 31 12:43:52 its in line 426 right! Mar 31 12:43:58 well it does in south africa Mar 31 12:44:06 fritzcola, is it your code that you are compiling? Mar 31 12:44:15 ? Mar 31 12:44:24 that error you showed us Mar 31 12:44:39 yes Mar 31 12:45:14 it is this line: adnRecords = iccIpb.getAdnRecordsInEfForSubscriber(subId, efType); Mar 31 12:45:51 SimonVT, i wasn't saying animating margins is good, just that using a translate animation might not always be a direct equivalent of animating a margin Mar 31 12:46:06 lemonxah is that right? http://pastebin.com/NUiWPY39 Mar 31 12:54:46 guys? is there a smooth way to handle onKeyDown() events in a fragment? Mar 31 12:55:37 define "smooth" Mar 31 13:00:08 hi everybody Mar 31 13:00:32 anyone knows a good tutorial for beginners? Mar 31 13:03:34 http://pastebin.com/2DjLLdpj Mar 31 13:03:40 New error! Mar 31 13:03:52 Dont have this fodler! Mar 31 13:06:37 thomaslnx, google :) Mar 31 13:11:12 thomasinx - there is a good, free tutorial on Udacity. Takes you through building an app. Mar 31 13:11:44 amugofjava: thanks... Mar 31 13:12:12 np :) Mar 31 13:21:01 fritzcola, are you compiling the omni rom? Mar 31 13:21:53 Yep Mar 31 13:22:00 #omni Mar 31 13:22:12 best ask in #android-root or #omni or something Mar 31 13:22:16 I alredy asked there! Mar 31 13:22:34 unfortunately we dont deal with roms Mar 31 13:23:29 Oh sorry! Mar 31 13:23:49 also, no point in asking in multiple channels, the channels have their name and purpose for a reason Mar 31 13:24:09 we help app developers not rom developers :) Mar 31 13:24:24 no, we obviously hate rom devs :p Mar 31 13:24:43 why would you say we hate rom devs? Mar 31 13:24:49 not following that :) Mar 31 13:28:13 hey, i created a relativelayout compund, how can i caclulate the width&height of the compund by his parent width? Mar 31 13:33:16 Hi, I have an animation issue with Fragments like this post, http://stackoverflow.com/a/15017771/1723525 is this the best answer or does somebody know a better solution? Mar 31 13:46:08 Okay, I have a ListFragment which lays out the view with an adapter, each row has separate clickable things (for example an ImageButton and some other thing), of which events I try to catch on ListFragments onListItemClick(), but I cannot. I am suspecting there is some kind of event hierarchy (that prevents the ImageButton's onClick being registered on each ListRows onclick) but I haven't found it yet, or don't know if I am trying Mar 31 13:46:09 something that is impossible. Mar 31 13:46:52 I am doing this because separate clickable things will do separate things. Mar 31 13:50:51 claint what you have to do is in your adapter setup your onclick listeners for each clickable item when you draw them Mar 31 13:53:12 lemonxah: right, but how do you tie them to the fragment above? Mar 31 13:53:54 who do you want to tie them to the fragment? Mar 31 13:55:29 lemonxah: well, one of them will be tied to fragment, so that it can tie it to the MainActivity (via custom interface) which will open a drawer kind of thing in the future. Mar 31 13:55:58 in the adapter you can tie it up Mar 31 13:56:13 pass in context to the adapter context being the activity Mar 31 13:56:28 and then let that button call a listener on the activty Mar 31 13:59:31 I thought passing Activity to an adapter could be harmful. Mar 31 13:59:41 use a weak reference Mar 31 14:01:55 Wouldn't you still leak, for example, an Intent? Mar 31 14:03:05 weakreference wont let it leak cause it doesn't keep it Mar 31 14:03:34 http://docs.oracle.com/javase/7/docs/api/java/lang/ref/WeakReference.html Mar 31 14:10:18 So there is no mechanism for a ViewGroup to pass events from its children by using that regular Android event mechanism? Mar 31 14:10:49 * by using regular Android events, that is... Mar 31 14:11:51 not that i am aware of Mar 31 14:12:31 claint: Are you asking about the same thing as yesterday? Mar 31 14:12:37 (I missed most of the chat.) Mar 31 14:13:05 no, this one is different, I got the "clean" version working yesterday. Mar 31 14:13:31 This one is a bit different, since there are 2 different clickable things in each row, that I need to tie to different things. Mar 31 14:13:55 once you set a onclick listener on a child object it takes precedence Mar 31 14:14:11 you cant bubble it up after consuming it Mar 31 14:14:16 is there a way to get the screen width in onMesaure method? Mar 31 14:14:37 why are you wanting to do that? Mar 31 14:14:58 so i can calcualte the view width Mar 31 14:15:11 joroci, http://stackoverflow.com/questions/4743116/get-screen-width-and-height Mar 31 14:15:15 that might be of use Mar 31 14:15:24 use the size of the parent Mar 31 14:15:35 (which can take the whole size of the screen, or not) Mar 31 14:16:38 Is there a way that one of multiple developers can sign a release build with their own individual key and for it to still work? Mar 31 14:17:03 the parent width is 0 Mar 31 14:17:09 lemonxah: by that logic, perhaps I could disable the onclick listener on the child object, so that I can catch it with regular row's onclick event? Mar 31 14:17:14 Syzygy_, no it is ont possible Mar 31 14:17:31 Syzygy_, you can share a key between the developers Mar 31 14:17:34 lemonxah i saw that, but i'm not sure how do i get getWindowMangaer? Mar 31 14:17:41 getContext() doesn't work Mar 31 14:18:52 claint, you wont know which of the children was clicked if you use hte row that was clicked Mar 31 14:19:07 what context are you in joroci ? a custom view? Mar 31 14:19:15 yes it's a custom view Mar 31 14:20:19 extending relativelayout Mar 31 14:20:47 you can pass in the display metrics to your custom view Mar 31 14:20:49 http://stackoverflow.com/questions/8244558/get-values-of-display-metrics-in-custom-class Mar 31 14:21:02 but i am not sure if that is the best solution i have not used that before Mar 31 14:22:32 joroci, uhm, you certanly SHOULD NOT be using screen width Mar 31 14:22:40 well there you go Mar 31 14:22:41 joroci, you're geating the measure specification in onMeasure Mar 31 14:22:57 which specifies you how big you're supposed to be Mar 31 14:23:52 i know but it's not the size i'm expecting Mar 31 14:24:13 the parent width is match parent which is the screen width but i get 202... Mar 31 14:24:29 1.) You WILL get multiple onMeasure passes Mar 31 14:24:39 what you expect doesn't matter since you have to make do with what the measure spec is Mar 31 14:25:16 if you can't fit, set a larger dimension and the parent will adjust Mar 31 14:32:13 mavrik i'm not sure how is it possible i'm getting 230px width? Mar 31 14:32:36 every time Mar 31 14:33:48 joroci, no idea, are you actually using MeasureSpec class to decode measurespecs passed? Mar 31 14:33:55 yea Mar 31 14:34:08 MeasureSpec.getSize(widthMeasureSpec); Mar 31 14:35:30 joroci, and which mode do you get passed? Mar 31 14:36:54 do i need to set the mode> Mar 31 14:36:55 ? Mar 31 14:38:45 or i'm not sure what do you mean Mar 31 14:43:33 I am looking for a bar graph lib which can do the following: zoom in on x (and or y). When zooming in on x, the x values must be change like, zoomed out = 'jan', 'feb', 'mar', zoomed in = '1', '2' etc. Any suggestions? Mar 31 14:44:24 I am looking for a bar graph lib which can do the following: zoom in on x (and or y). When zooming in on x, the x values must be change like, zoomed out = 'jan', 'feb', 'mar', zoomed in = '1', '2' etc. Any suggestions? Mar 31 14:44:50 After someone who can repeat questions in chat for me 1 minute apart. Mar 31 14:47:32 Hi all. I have a banner ad in my app that is causing my listview scrolling to be kind of slow. Should I be using AsyncTask for the ad or is there another way to multi thread it to get my app scrolling smoothly again? Mar 31 14:47:38 can someone help me figuring out how to load data from an arbitrary property file in gradle? Mar 31 14:49:31 @liuwenhao you should never do any network operations on the UI thread Mar 31 14:50:29 aayushranaut: so AsyncTask is the way to go? I don't know much about threading (android newbie) Mar 31 14:50:41 Yup Mar 31 14:50:48 You could take a look at Volley too Mar 31 14:51:07 it’s a lib by google which takes the pain out of networking in android Mar 31 14:51:18 Alright, thank you! Mar 31 14:51:27 Threading isnt just for Android Mar 31 14:53:36 One more question. Should I just be putting my entire advertisement code into doInBackground()? Mar 31 14:53:54 Not necessarily Mar 31 14:53:57 nope Mar 31 14:54:04 Do in background is for the part of the code that needs to be asynchronous Mar 31 14:54:29 Updating UI, therefore, obviously cannot go in doInBackground. Mar 31 14:55:59 I take it there are no sources available for anything in GoogleApiClient? Mar 31 14:56:22 MooGoo: Yes? Mar 31 14:56:25 What are you after? Mar 31 14:56:27 oh Mar 31 14:56:39 I thought it might be propritery Mar 31 14:56:53 I'm looking to get the sources for GoogleApiClient.Builder Mar 31 14:57:17 I have this in a stack trace: Mar 31 14:57:19 at com.google.android.gms.common.api.GoogleApiClient$Builder.(Unknown Source) Mar 31 14:58:10 Oh source code. Mar 31 14:58:11 Not sure. Mar 31 14:58:18 Also, that doesnt say the error Mar 31 14:58:35 the error msg was Mar 31 14:58:37 java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Looper android.content.Context.getMainLooper()' on a null object reference Mar 31 14:58:52 and the googleapiclient line was at the top of the stack trace Mar 31 14:59:05 your context is null Mar 31 14:59:12 Ahh, are youi calling .addOnConnectionFailedListener(this).addApi(Plus.API, null) on your builder? Mar 31 14:59:47 I need to rewrite/update keepshare to use the new gms apis instead of the hacked up shit I did before... :-/ Mar 31 14:59:54 yes well, I am calling addOnConnectionFailedListener, and a few addApi's Mar 31 15:00:17 Change it so it says .addOnConnectionFailedListener(this).addApi(Plus.API) //The null has been removed Mar 31 15:00:30 this happens after an orientation change, so it makes sense that the context might be null, but I can't figure out why Mar 31 15:00:59 yea I'm not using the null argument on any addApi Mar 31 15:01:29 pfn: You wrote KeePass? Mar 31 15:01:37 Anthaas|afk, keepshare Mar 31 15:01:50 pfn: Ahh nice Mar 31 15:02:11 Just searched it to see what it was and I saw KeePass Mar 31 15:02:14 Took a guess Mar 31 15:02:25 Anyway - afk now :D love you all xoxoxox Mar 31 15:06:09 danijoo: hey ? :D Mar 31 15:08:11 any advice for this? http://stackoverflow.com/questions/29371921/android-bar-chart-library Mar 31 15:08:47 there's graphview Mar 31 15:09:50 this thing: http://www.android-graphview.org/ Mar 31 15:10:35 I was just playing around with MPAndroidChart last night and its pretty awesome, https://github.com/PhilJay/MPAndroidChart Mar 31 15:11:08 Hi, any ideas how can I make Toolbar black programmatically? Mar 31 15:11:12 quinnjn, that one looks great Mar 31 15:11:23 its super customizable too Mar 31 15:11:50 docs aren't /that/ good though, better luck at peeking at the example app and code Mar 31 15:11:50 SneakerXZ, setBackground/Color? Mar 31 15:12:09 i used grpahview a couple of years ago for a project Mar 31 15:12:11 iprime: Tried that but it is not black, it is kind of black shade Mar 31 15:12:15 MPAndroidchart looks better Mar 31 15:12:33 maybe it has alpha? Mar 31 15:13:55 iprime: maybe, but even when I set alpha to 1 it still not black Mar 31 15:14:03 woah Mar 31 15:14:37 thanks for the advice! Mar 31 15:16:12 guinnjn, also possible to change the values from (month values to day values)? Mar 31 15:16:52 FrancescoV, s/g/q/ Mar 31 15:17:13 FrancescoV, the text values can be any string Mar 31 15:17:18 it completely ignores color I set for Toolbar in code Mar 31 15:18:07 quinnjn, yes but when zooming in, can the x values change from months to days in the month for example? Mar 31 15:18:16 hey i have a few interfaces which listen if datas sent to server succesfully or downloaded.I'm doing this using an acvitiy which implements 4 listeners. Mar 31 15:18:20 SneakerXZ did you add false to your style? Mar 31 15:18:31 AayushRanaut: yeah Mar 31 15:18:32 FrancescoV, im not to sure, i didn't play with it that much. Mar 31 15:18:48 it was pretty easy to setup though if you want to take a peek Mar 31 15:18:49 now i have to do this with sync adapter,i was using a lot of asyn task.Do i need async tasks in a sync adapter ? cause it works on background already Mar 31 15:19:15 ok thanks! Mar 31 15:22:23 if I set the color in xml then it works Mar 31 15:22:27 but I cannot change it from code Mar 31 15:23:12 hmm, SneakerXZ what is your minSDK Mar 31 15:23:15 are you using the support toolbar? Mar 31 15:23:23 16 Mar 31 15:23:24 I am Mar 31 15:23:32 i've tried setting the color to black, worked just fine Mar 31 15:23:36 min/target=21 tho Mar 31 15:23:53 why don't you try setting a colordrawable as a background Mar 31 15:24:33 how are you setting it? Mar 31 15:24:43 I also tried colordrawable Mar 31 15:24:46 no difference Mar 31 15:25:13 findViewById(R.id.toolbar).setBackgroundColor(Color.BLACK); Mar 31 15:27:06 oh Mar 31 15:27:18 I was using R.color.black :D Mar 31 15:27:25 and it expects ARGB... Mar 31 15:27:28 What is the best way to query the DPI for a canvas view? I want to be able to change how thick lines are draw to the screen based on DPI. Mar 31 15:27:33 iprime: thanks Mar 31 15:28:57 SneakerXZ, if you want a colour from a resource use Resources,getColor (iirc), Context has it too Mar 31 15:32:13 Oh SneakerXZ Mar 31 15:32:20 yeah yours was but an id Mar 31 15:34:22 so I was getting color from id:) Mar 31 15:34:49 fairly common mistake Mar 31 15:34:56 too easy to make as well Mar 31 15:39:50 yeap Mar 31 15:40:11 SneakerXZ, what are you building? Mar 31 15:40:29 I loaded a properties file earlier with def signingProperties = new Properties() Mar 31 15:40:29 file("..\\signing\\signing.properties").withReader { signingProperties.load(it) } Mar 31 15:40:58 and now, when I change that file, the changes aren't loaded into gradle anymore. any idea how i could refres the file? Mar 31 15:41:07 oh you silly windows people, why even bother with backslashes? Mar 31 15:41:10 I even deleted the build and gradle folders in my project Mar 31 15:41:12 iprime: It is internal :) I cannot disclose anything at this moment, sorry. Mar 31 15:42:34 ravilov, and that is relevant how? Mar 31 15:43:04 SneakerXZ, or you're gonna have to kill me... i get it :D Mar 31 15:43:11 just helping you not have a messy code, Syzygy_ Mar 31 15:43:56 might even solve your problem, you never know! Mar 31 15:44:21 well, it doesn't. Mar 31 15:44:42 oh well, shame Mar 31 15:49:05 what is 5 seconds in long ? :d Mar 31 15:49:47 what Mar 31 15:50:12 73 ounces Mar 31 15:50:24 5L seconds. Mar 31 15:50:41 Whats the deal with Maven and stuff, only causes sadness and sorrow Mar 31 15:50:44 ok 5L :D Mar 31 15:50:58 maven <3 Mar 31 15:51:35 you will probably have to elaborate on that weird statement Mar 31 15:51:58 maxflax: Y u no use Gradle? Mar 31 15:52:33 ravilov: Im using a 3:d part SDK and adding that will give me loads of [Fatal Error] support-v4-22.0.0.pom:2:10: Already seen doctype Mar 31 15:53:04 and Checksum missing at http...... Mar 31 15:54:41 I ignored it but today after upgrading google play services and google repository then my app compiles but it won't start with a java error Mar 31 15:56:13 I know that it is some kind of error telling me that the dependency is already stated in the maven repo but I wan't to use my own version and tried with exclude in the gradle file. didn't do anything Mar 31 15:57:36 TacticalJoke: Yes I use gradle. Mar 31 15:57:54 seems like an utter mess Mar 31 15:58:23 I don't understand this... i can change the filename, load the new file. and still the old string is loaded Mar 31 15:58:30 how is this possible? Mar 31 15:58:33 ravilov: Yes, so why can't I exclude the ones from the maven I wonder. Mar 31 15:58:38 TacticalJoke:5L works every minute http://paste.ubuntu.com/10712903/ Mar 31 15:59:22 I hope you realise that "5L" was a joke. :D Mar 31 15:59:29 That's just 5 as a long. Mar 31 15:59:56 :O Mar 31 15:59:57 your question lacked context or sense Mar 31 16:00:42 that was a really tactical joke Mar 31 16:01:42 It was a correct answer, though. You ask for 5 as a long, so I gave you 5L . Mar 31 16:02:05 the problem with your question is that any number can be made to represent 5 seconds Mar 31 16:02:14 and long is just a number Mar 31 16:02:55 sci-fic: Should we guess that you're asking for five seconds in milliseconds? Mar 31 16:03:45 :D its just long SYNC_FREQUENCY for sync adapter frequency Mar 31 16:07:17 sci-fic: I can't tell what you're asking. Please ask a specific question. Mar 31 16:07:30 In fact, I can't tell whether you're asking a question. :D Mar 31 16:09:07 yeah nevermind,here is my other question, i have some methods which are currently asynctask, and im getting them to sync adapter. i think they don't have to be async task anymore, are they ? Mar 31 16:09:59 sci-fic, android life cycle methods should never be blocking Mar 31 16:10:11 sci-fic, unless explicitly documented to allow it Mar 31 16:11:14 pfn:i mean if i use sync adapter-which works in background already- Mar 31 16:11:24 pfn, you piqued my curiosity which ones can be blocking? Mar 31 16:11:47 MikeWallaceDev, eg intent service on handle Mar 31 16:12:39 that's not blocking, it's already in a thread. But I think I see what you mean. Mar 31 16:12:41 sci-fic, life cycle methods and callbacks must never block unless explicitly allowed Mar 31 16:14:06 can generics only be specified at the class level? there's no way to get a method signature with the same generic class? since that's compile-time in java and this isn't C++ yea? Mar 31 16:14:09 i dont get what you say, sorry english is not my native language Mar 31 16:14:10 sorry still a java noob Mar 31 16:15:41 sci-fic, if the documentation doesn't say that it runs in a background thread then you must spin one up yourself Mar 31 16:16:43 myke: https://docs.oracle.com/javase/tutorial/extra/generics/methods.html Mar 31 16:16:56 https://gist.github.com/fkspro/3ebedb0e1c40529c6d7d, lines 15 and 51 Mar 31 16:17:25 this works but gross, looking for a cleaner way (and not "throw that horrible junk out and use Retrofit") Mar 31 16:17:40 throw that horrible junk out and use Retrofit Mar 31 16:17:44 i havent read something about that so i must continue to use asyn task ? Mar 31 16:18:02 Ashiren: thanks! Mar 31 16:18:03 JakeWharton: Any insights on the new JSON thing? Or is it a "wait and see" situation. Mar 31 16:18:18 abstracts are for classes Mar 31 16:18:21 sci-fic, yes, or use abstractthreadedsyncadapter Mar 31 16:18:27 JakeWharton: you're right but i'm still not Mar 31 16:18:38 you cant have abstract methods in full class Mar 31 16:18:38 TacticalJoke: like what kind of insights? Mar 31 16:18:56 im using it pfn Mar 31 16:19:07 I'm curious of what its goals are (e.g., super-efficiency, a super-nice API, etc.). :) Mar 31 16:19:08 it says it uses a thread... Mar 31 16:19:09 Ashiren: yeah that's a bummer because it would be nice to have a blended entity like that Mar 31 16:19:11 that's quite explicit Mar 31 16:19:26 parental advisory.. Mar 31 16:19:31 i want an activity to be entirely encapsulated Mar 31 16:22:29 TacticalJoke: reasonable reflection-based efficiency (it's based on Okio so other Okio-using libraries can zero-copy data) and breaking bad, old Gson APIs and conventions. Mar 31 16:22:51 myke, use a non-java language Mar 31 16:23:14 does kotlin support mixins? Mar 31 16:24:50 Ashiren: ah but i can't override generic methods yea? Mar 31 16:25:22 god, I'm hating smart lock, can't wait 'til my phone upgrades to 5.1 so that stupid devicepolicymanager thing is fixed Mar 31 17:11:42 Oh god look at this terrible job posting: http://www.indeed.com/cmp/Xcellent-Life/jobs/Android-Application-Developer-3f7c0310b4a61d31 Mar 31 17:11:49 I need a shower after reading that Mar 31 17:14:06 nashville tn ehh Mar 31 17:15:19 meh - startup Mar 31 17:17:34 no salary. but the chance to work in a company that might go bankrupt in a few month Mar 31 17:17:38 where do i have to sign?? Mar 31 17:18:14 Hey... I know many multi-millionaire devs that started that way... Mar 31 17:18:33 Though they knew the founders. Not an ad on the web. Mar 31 17:18:42 maybe you can offer the job to some of them Mar 31 17:18:50 they dont need the money anymore :@D Mar 31 17:19:27 Who was it that was looking for a good solution for resizing windows based on keyboard? Mar 31 17:19:57 I wish I could resize windows based on how cold it is outside. Mar 31 17:20:17 lol Mar 31 17:20:33 haha Mar 31 17:20:45 no problem like that here Mar 31 17:22:27 what is that unicode delete char? Mar 31 17:22:45 looks like the mac delete Mar 31 17:22:48 but the other way.. Mar 31 17:23:01 ⌫ Mar 31 17:23:04 that one.. Mar 31 17:23:15 Anecdote: So I walk into a convenience store with one of the founding developers and the lottery tickets are displayed. 15 Million grand prize. The lady asks me if I want one. No thanks. I turn to my friend "How about you? Oh, right, becoming a millionaire once today was enough" :D Mar 31 17:25:49 Hello! Using OkHttp, I'm implementing a way to use OAuth's refresh token. In my OkHttpClient, I add an Authenticator. The plan is that the Authenticator will make a request out that POSTs to /oauth/token to get a new token, save the credentials (for Retorfit's adapter, the RequestInterceptor adds Bearer credentials) Mar 31 17:27:08 I don't feel like I'm doing it correctly, because the OkHttpClient isn't readily available to me. Also, what request am I going to return after I've acquired new credentials? Mar 31 17:28:02 haha srsly MikeWallaceDev? Mar 31 17:28:13 tricknology, true story. Mar 31 17:28:38 damn that’s funny Mar 31 17:28:54 It was surreal. One day he was "Jocelyn" my friend that I go camping with and has a crappy car. The next he's a multi-millionaire. Mar 31 17:29:07 what did he do? Mar 31 17:29:17 And I got a $4000 bonus cheque. :-/ Mar 31 17:29:32 ha, sick Mar 31 17:29:41 better than zilch Mar 31 17:29:49 Did he make/sell something? or inherit? Mar 31 17:29:50 Anyone have any expirience debuggin why streaming video via rstp does not work? Mar 31 17:29:53 Hardware engineer. He was actually under me in the hierarchy, I was director of software engineering... Mar 31 17:30:04 oh, invention? Mar 31 17:30:46 He was a founder at Avantas (Bought by EXFO). We made SONET network test equipment Mar 31 17:31:18 The company was based on Hardware. My team made the OSS that controlled it all. Mar 31 17:31:20 cool gig Mar 31 17:31:28 it was. Great place. Mar 31 17:31:31 Yup, wrong stuff. OkHttp's Interceptor is what I want :P Mar 31 17:32:14 Our own gym, our own cafeteria, parking, pool table... It was a great place to work. We did some cool stuff. Mar 31 17:32:39 I need million dollar founding money shits Mar 31 17:32:52 seriously. I hear you pfn Mar 31 17:32:59 I'm tired of startups though, too much work for very little chance of making money Mar 31 17:33:02 actually, I'd accept just rent. Mar 31 17:33:24 in aggregate, it's really just a lottery Mar 31 17:33:26 yeah, it's tough, but that the thing, you're taking a chance... Mar 31 17:33:51 well, yes and no... If you know the founders record, chances are good. Mar 31 17:34:43 there's plenty of places where recruiters call me and talk about the founders (whom I know/aware of/etc) and funders and they go nowhere Mar 31 17:35:15 yeah. I should have said "well, yes, and less yes" :D Mar 31 17:35:16 many places get acquired at amounts that turn into small bonuses Mar 31 17:35:26 rather than life changing amounts Mar 31 17:36:11 jocelyn, a guy's name? wtf Mar 31 17:36:20 his parents must have really hated him Mar 31 17:36:23 or really wanted a girl Mar 31 17:36:34 yeah. It actually does sound masculin in French. Mar 31 17:36:42 thats a lie Mar 31 17:36:51 nothing sounds masculin in french :p Mar 31 17:37:24 its like a very manly poodle Mar 31 17:37:25 it's not pronounced Joceleen, it's..errr..that sound doesn't really exist in English.. Mar 31 17:37:44 joss-leng(nasal sounding) Mar 31 17:37:53 doesn't really feel masculine to me either Mar 31 17:37:57 no g at the end Mar 31 17:38:07 closest approximation to being nasal sounding Mar 31 17:38:17 yeah, that's correct Mar 31 17:38:19 since the ng ending sound has a nasal component in english Mar 31 17:38:39 Plot twist: Jocelyn was award $5.5 million in damages after a lifetime of name mocking. Mar 31 17:39:10 Anyway, it's a French name, and it's fine in French :D Mar 31 17:39:41 still unfortunate Mar 31 17:39:48 good thing he's not american and grew up here then Mar 31 17:40:56 yeah, I don't know how english people would say it. I'm in Montreal, we're very bilingual, people call me Mike when we're speaking English, and Michel when speaking French. But Jocelyn, no, that's always said in French :D Mar 31 17:41:01 It's just too French. Mar 31 17:41:29 like how it's spelled, joss-lin, or jos-u-lin Mar 31 17:41:57 my name sucks in english too :< Mar 31 17:42:20 Yeah, the Joce part does sound like joss. But the lin part, I just can't find an English example for it... Mar 31 17:42:43 like lynn Mar 31 17:42:55 not close Mar 31 17:42:59 talking english Mar 31 17:43:02 not frog Mar 31 17:43:03 :p Mar 31 17:43:39 the closest I can find, if that help, is "plain" but drop the last part of the 'n' Mar 31 17:43:59 *helps Mar 31 17:44:21 I know what it sounds like in french Mar 31 17:44:52 but not 'play' you need half of that 'n' just not the long nnnn at the end Mar 31 17:45:05 you said you don't know how you would say it in english Mar 31 17:45:06 you do? Cause it sounds nothing like Lynn. Mar 31 17:45:08 I described it exactly Mar 31 17:45:31 You described it, but totally incorrectly :D Mar 31 17:45:43 in english, and not incorrectly Mar 31 17:46:11 in french, it sounds like joss-leng where it's more of a soft-g, to an english speaker, the french nasal tone is very g-like Mar 31 17:46:16 Well yeah, if you just read the word in English, but it's not an English word.. Mar 31 17:46:55 sure, until you mean americans that are named jocelyn Mar 31 17:46:58 and they are exclusively female Mar 31 17:47:02 s/mean/meet Mar 31 17:47:23 I think it's with an i here Mar 31 17:47:26 for males Mar 31 17:47:45 the french female version is Joceline. Mar 31 17:48:10 the spanish male version is Jose Mar 31 17:48:50 shmooz, don't troll. Mofo. Mar 31 17:48:51 :D Mar 31 17:49:15 http://en.wikipedia.org/wiki/Jocelyn; anyway, of the names in the first list, if they're not french, they're predominantly female Mar 31 17:49:16 the english version is Mike Mar 31 17:50:31 man, I hate the google cast companion library... Mar 31 17:50:44 and the next line says that in french it's exclusively male :D Mar 31 17:50:52 MikeWallaceDev, in /french/ Mar 31 17:50:59 that's my point Mar 31 17:51:04 you said you can't imagine it being spoken non-french Mar 31 17:51:14 so i've got a class file from a larger android project that i want to compile. Mar 31 17:51:17 I pointed out that outside of french, it is almost exclusively female Mar 31 17:51:25 it's got no dependencies on the rest of the project, so oughta compile standalone. Mar 31 17:51:36 what's the quickest way to do that on osx? Mar 31 17:51:43 pfn, oh, I know that. I was just trying to explain the sound. Mar 31 17:51:55 like, what's the right args to feed javac so it can find the sdk jars? Mar 31 17:51:55 and I said I already know what the sound is like :p Mar 31 17:52:17 well there's not just you in the channel :P :D Mar 31 17:52:17 Okay, so I compiled with the new google-play-services.jar, but now my game is crashing. The logcat says that Google Play Services was not found, but it's right there. Mar 31 17:52:57 and then I get this error: Mar 31 17:52:58 E/AndroidRuntime(32440): FATAL EXCEPTION: AsyncTask #1 Mar 31 17:53:08 assuming anyone develops on osx anymore Mar 31 17:53:11 E/AndroidRuntime(32440): Process: [my game's process], PID: 32440 Mar 31 17:53:15 E/AndroidRuntime(32440): java.lang.RuntimeException: An error occured while executing doInBackground() Mar 31 17:53:21 Any ideas, guys? Plz Mar 31 17:53:55 Agamemnus: are you doing java now ? Mar 31 17:54:09 It's still Cordova. Mar 31 17:54:12 congratulations :) Mar 31 17:54:14 don't need to spit out a signed apk or anything, just want a .class file Mar 31 17:54:16 doh! Mar 31 17:54:31 oh shit Mar 31 17:54:36 I see the problem I think Mar 31 17:54:42 Wrong value in the effing meta data Mar 31 17:55:34 doug : label it a library and use gradlew to generate an aar and check in the build directory for the class files. Mar 31 17:55:51 or whatever you're using to compile. Mar 31 17:56:34 fingers crossed..... Mar 31 17:56:35 doug, -classpath $ANDROID_HOME/platforms/android-.../android.jar Mar 31 17:56:36 doug, done Mar 31 17:56:40 IT WORKZ! Mar 31 17:57:26 pfn++ Mar 31 17:57:30 exactly what i wanted Mar 31 17:57:46 not quite as magical as i was hoping for, but does the job. Mar 31 18:00:48 That side swipe bar menu thing, what is it called? Mar 31 18:01:06 The thing you swipe from the left of your screen inwards to expand. Mar 31 18:01:08 navigation drawer? Mar 31 18:02:16 Might be, one sec Mar 31 18:03:17 Think so, thanks. Mar 31 18:05:36 yes Mar 31 18:05:40 navigation drawer Mar 31 18:13:26 doug, why would you need magical, it's. just a single file Mar 31 18:14:45 i want the appropriate libraries found without explicit specification. npm has spoiled me. Mar 31 18:15:59 no such thing in java Mar 31 18:16:36 using maven, gradle and similar are the closest you get Mar 31 18:17:36 i also want my programs to write themselfs :) Mar 31 18:18:05 Wonder what April Fools jokes we'll get tomorrow. Mar 31 18:18:13 "Kotlin 1.0 has been released!" Mar 31 18:18:30 Speaking of April Fools and releases Mar 31 18:18:45 I have found that Android 5.0.1's memory issues are very severe, especially for me. Mar 31 18:19:38 TacticalJoke, you already fooled me. because I glanced to irc and just saw "kotlin 1.0 has been released!" :D Mar 31 18:20:09 Google Maps has a Pacman thing already. Mar 31 18:20:11 hey, in Android Studio, is there an easy way to find concrete implementations of methods in an abstract class? Mar 31 18:20:16 danijoo_: Haha. Sorry. Mar 31 18:20:27 s73v3r: Just click the dots on the left. Mar 31 18:20:35 :/ NavigationDrawer requires AppCompat Mar 31 18:20:37 Booo Mar 31 18:21:14 what wrong with appcompat? Mar 31 18:22:10 Nothing I guess haha Mar 31 18:22:24 Means my activity must use AppCompat themes :/ Mar 31 18:22:29 Thanks Mar 31 18:23:01 appcompat -21 was this years april fool Mar 31 18:23:04 just released to early Mar 31 18:34:38 A user goes into Settings and makes changes. He comes back to main activity and sees those settings changes reflected back in main activity. Do I want to use startActivityForResult() in this case? Mar 31 18:35:24 i thought this is going to be.. "a user goes into a bar..." :) Mar 31 18:35:29 you could set a result code in the settings activity if the user changed anything and if he did refresh the activity Mar 31 18:35:36 donniezazen, depends on how your settings are implemented Mar 31 18:36:21 donniezazen, unnecessary Mar 31 18:36:30 donniezazen, just reload settings on resume Mar 31 18:36:41 you can do stuff onresume and use fragments Mar 31 18:36:41 donniezazen, or use a pref change listener Mar 31 18:37:00 iprime: It's a PreferenceFragment. I am going to save everything in sharedpreferences. Mar 31 18:37:12 Anthaas|afk, nav drawers doesn't require appcompat, wtf Mar 31 18:37:17 then what pfn said, those prefs have a listener Mar 31 18:37:25 ah okay. thanks. Mar 31 18:37:31 donniezazen, why a new activity? Mar 31 18:37:56 Nope, it doesn't, you are right. Mar 31 18:38:08 It was a mistake - I should read more resourced. Mar 31 18:38:11 my bad Mar 31 18:40:02 iprime: What do you mean? At this stage I a have a MainActivity showing results. A user goes into Settings (which is in its own SettingsActivity) via overflow menu to set some variables and comes back to MainActivity. Mar 31 18:41:32 does your logic happen in the main activity or in a fragment hosted by the main activity? Mar 31 18:42:27 iprime: logic happens in main activity. I just have a separate SettingsActivity. I suppose just to keep things clean and separated. Mar 31 18:42:40 oh, so no fragment in main act? Mar 31 18:42:45 no Mar 31 18:42:52 ah, got it Mar 31 18:43:19 This is my first app. I am not planning to use Fragments for now until I have better understanding of how they work. Mar 31 18:43:37 yet you use preference fragment ) Mar 31 18:44:21 The documentation says I should use that for devices 3.0 and above. It doesn't seem to affect any other part of the app. Mar 31 18:44:37 I suppose I could PreferenceActivity and save a few lines. Mar 31 18:45:14 nah, go with preferencefragment Mar 31 18:45:28 i prefer fragments over activities Mar 31 18:46:47 I am still learning. I haven't chosen one over the other. Mar 31 18:47:37 not that fragments are perfect Mar 31 18:47:41 A lot of people avoid Fragments as much as possible. Mar 31 18:48:11 Like the plague Mar 31 18:48:19 i put all my fragments in the notification area Mar 31 18:48:20 (for me) Mar 31 18:48:25 i think plague inc doesnt use fragments Mar 31 18:52:04 fragments are a neat idea but how they are implemented in android kinda sucks Mar 31 18:53:04 90% of my problem with fragments are the same as activities, which is just inconvenience of concurrency ouliving the lifecycle of its context Mar 31 18:54:32 we all know how to get around it for the most part, but it just makes things so pita Mar 31 18:56:04 Hi. I'm looking for a framework to do audio stream over the internet ( WiFi and 3/4G ). Can u guys recommend me at least one? Mar 31 18:56:15 Yalion: what about icecast? literally webradio Mar 31 18:56:44 Hi all, quick question. Can recyclerview be used with Android 4.0+? or is it 5.0+ only Mar 31 18:56:58 liuwenhao its in the support lib Mar 31 18:57:46 boxmein but it's a one way communication correct? Mar 31 18:57:48 Alright, so would I just need to add the support library to my gradle config to be able to use it in 4.0? Mar 31 18:57:57 yes Mar 31 18:57:59 Yalion: also, stuff like Subsonic / Ampache can basically do that Mar 31 18:58:02 Thank you g00s Mar 31 18:58:14 lol ampache. cute Mar 31 18:58:31 dunno I literally used google Mar 31 18:58:38 someone should make an Ohmegle Mar 31 18:58:48 guys, I have a question ... just how advanced can live wallpapers be? As in ... can I for example create one that changes the animation depending on hour or just randomly? Mar 31 18:58:55 hey, I'm doing coursera's android dev course and there's this thing I'm having issue with Mar 31 18:59:15 when I build and run the app on my device I get INSTALL_FAILED_DEXOPT, and the internet stays silent on the issue Mar 31 18:59:20 One more question g00s: is there any reason to use a listview over recyclerview other than compatibility reasons? Mar 31 18:59:51 I use android studio but the project was made on eclipse/ADT, the import converted some library into a ref or something, I'm not sure Mar 31 19:00:06 the code is fairly simple too, and it compiles fine Mar 31 19:00:08 liuwenhao well, LV is more conveninent often times , especially for sqlite Cursors. RV usually requires a bunch of boilerplate to do basic stuff but it is more flexible Mar 31 19:00:28 liuwenhao: what compatibility reasons do you speak of? Mar 31 19:00:36 g00s, in amazed by s6 Mar 31 19:00:50 *I'm Mar 31 19:00:53 why? Mar 31 19:01:04 I wish they would kill TouchWiz Mar 31 19:01:07 boxmein, i believe that means that the install failed and now a corrupt files exists on the device that aren't being overwritten. Wipe the emulator and try re-install Mar 31 19:01:26 gdrc samsung s6 ? Mar 31 19:01:35 quinnjn: lol I ran it on my personal device, let me see if some files are left Mar 31 19:01:46 quinnjn: I did delete /data/data/packagename though Mar 31 19:02:00 Alright g00s thanks. desmin88: I just meant for old versions of Android, I could see someone not wanting to have to bundle the support library if they don't need it Mar 31 19:02:08 tricknology, very beautiful great materials, best camera quality and speed and smooth as fuck Mar 31 19:02:26 liuwenhao you only grab support:recyclervier , its just one piece Mar 31 19:02:47 boxmein thanks. Actually I was thinking about webrtc, but it's only have support in webview in Android 5+. Mar 31 19:02:51 hopefully there isn’t a bendgate, they bit apple so hard Mar 31 19:03:14 tricknology i wouldn't be surprised if that curved glass is actually stronger Mar 31 19:03:20 can’t argue with camera, nexus 6 is a little lacking in that dept Mar 31 19:03:33 it’s ot that the glass is strong or not Mar 31 19:03:36 damned redguards with their curved glass Mar 31 19:03:40 it was the case being too thing Mar 31 19:03:52 PS, how are cases going to work? Mar 31 19:03:56 #shattergate Mar 31 19:04:02 you see those phones from samsungfell? they got curved glass. curved. glass. Mar 31 19:04:16 kek Mar 31 19:04:33 S6 egde droptest http://v.youku.com/v_show/id_XOTIxMDIxMTg4.html obviously anecdotal evidence but still Mar 31 19:05:01 she has under period Mar 31 19:05:47 memorion: holy shit Mar 31 19:06:29 liuwenhao, always use support-v4 Mar 31 19:06:41 haha Mar 31 19:06:44 liuwenhao, doesn't matter if you don't want it, always use it Mar 31 19:06:45 She needs to install flash Mar 31 19:06:57 https://www.youtube.com/watch?v=gdkPKeOVOrk here's another Mar 31 19:06:59 but damn that thing took some abuse Mar 31 19:07:08 lol, is that website in china? did i just involuntairly ddos github Mar 31 19:07:25 i am displaying multiple notifications in a day by setting them with alarm manager but i am getting a problem notifications are comming at wrong time ... any clue ? Mar 31 19:07:29 yes it is china Mar 31 19:07:58 ah i had that issue once s9iper1 Mar 31 19:08:03 I forget what it was though Mar 31 19:08:13 maybe the app was closed when the alarm was supposed to go off Mar 31 19:08:18 I quit that project though Mar 31 19:08:37 you might want a service to wake up your app when it’s alarm time Mar 31 19:08:46 ok Mar 31 19:08:51 so I've noticed that async tasks have a pretty bad rap, are there any instances where you actually should be using them? Or is finding an alternate pattern/library generally always worth it. Mar 31 19:08:59 thanks tricknology Mar 31 19:09:27 mrfu asynctask is just executor + handler, so if that meets your needs ... Mar 31 19:09:31 I've tried the Samsungs with the curved eges. Mar 31 19:09:32 edges* Mar 31 19:09:36 mrfu, sure there are.. like sending data to servers Mar 31 19:09:38 They're really neat to swipe in from the sides. Mar 31 19:09:41 otoh they aren't easily composable, and dealing with errors, etc kinda messy Mar 31 19:09:57 mrfu, eventbus Mar 31 19:10:37 it's always better to find an alternative pattern to async task Mar 31 19:10:40 concurrency still applies Mar 31 19:10:50 rx is one approach Mar 31 19:11:09 I wrote a future's library for java/android, it works well Mar 31 19:12:00 TacticalJoke see this? lol https://ma.ttias.be/obsessive-efficiency-disorder/ Mar 31 19:13:31 g00s: I made an Either class if I dealt with asynctasks since it can only return one type of value Mar 31 19:13:35 g00s: so that was fun Mar 31 19:14:00 guys, I have a question. Just how advanced can android live wallpapers get? I mean can I make one that for example changes the animation at certain times or randomly ? ... just an idea Mar 31 19:14:14 luci1093: I bet there are time-sensitive animations eg moon phases, so sure Mar 31 19:14:31 luci1093, yep, you do pretty much anything... Mar 31 19:14:39 Interesting. I find myself thinking like that. The idea of wasting time while waiting for some blocking task is so unappealing. :D Mar 31 19:14:41 damn, nice Mar 31 19:14:56 luci1093: it's basically everything, as long as you communicate with the android.service.wallpaper.WallpaperService Mar 31 19:15:05 luci1093: hell, you could make one that shows your facebook feed Mar 31 19:15:08 and I can use just the sdk for that or I have to use an external library like AndEngine or smth? what do you guys recommend? Mar 31 19:15:18 luci1093 https://play.google.com/store/apps/details?id=haydenTheAndroid.liveWallpaper.pixelZombies if this is possible most stuff should be possible Mar 31 19:15:55 still say memorion is a google bot Mar 31 19:16:34 I wanted to use Either the other day, but it was a place where the extra objects created would've become significant. :[ Mar 31 19:16:44 It was in some kind of tight loop. Mar 31 19:17:02 I wish we didn't have to worry about loads of little objects. Mar 31 19:17:04 god why are avds so incredibly slow lol Mar 31 19:18:08 MikeWallaceDev how should I disprove that? Mar 31 19:18:27 fail a captcha? Mar 31 19:18:28 :D Mar 31 19:18:36 wait no Mar 31 19:18:40 we can't give him recaptchas Mar 31 19:18:43 those would be also google Mar 31 19:18:53 I'm so disappointed by RMS now: http://thread.gmane.org/gmane.emacs.devel/184155/focus=184297 His attitude is basically such that he is unwilling to learn new technology. Mar 31 19:18:55 make a crappy image with aliased neon lines and some obviously readable text Mar 31 19:18:56 MikeWallaceDev http://www.theverge.com/2014/4/16/5621538/google-algorithm-can-solve-recaptcha-almost-every-time Mar 31 19:19:07 I know :) Mar 31 19:19:11 :D Mar 31 19:19:34 It's adapt or die in this field. Why doesn't he know that by now. Mar 31 19:19:42 hah a RMS/ESR slapfight? awesome Mar 31 19:19:55 Yes. lol Mar 31 19:20:04 TacticalJoke well when you get old enough, most tech seems to be just some pooly re-implemented hipster junk Mar 31 19:20:11 True. Mar 31 19:20:21 True. Mar 31 19:20:27 neat Mar 31 19:20:28 it started Mar 31 19:20:28 :O Mar 31 19:20:40 Yeah, I still say git is just a poorly reimplemented VSS. Mar 31 19:21:42 JesusFreke: Not sure if srs. ;D Mar 31 19:22:02 TacticalJoke: I said that with my most serious look Mar 31 19:22:09 and then died laughing :p Mar 31 19:22:12 lol Mar 31 19:22:22 VSS was just data shredding app marketing incorrectly Mar 31 19:22:30 Bring back the days of CVS! Mar 31 19:23:44 I only program on my abacus Mar 31 19:26:25 hello, i am having some issues with Http(s)URLConnection.getResponseCode() == -1 is there any known buts that you know off ? i can't recreate it on my own phone. or in emulator Mar 31 19:27:21 When is it -1? Mar 31 19:27:29 The documentation says "-1 if no valid response code". Mar 31 19:28:29 fanno, connection hasn't been opened yet... Mar 31 19:28:45 and damnit, Costco doesn't have gel eye drops any more Mar 31 19:29:55 BitmapFactory.Options is such a mess. A bunch of 'in' and 'out' fields. Srsly? Mar 31 19:30:02 Just take parameters to methods or something. Mar 31 19:30:15 pfn: hmm http://pastebin.com/XdjWAgR3 Mar 31 19:30:34 pfn: something wrong with that ? Mar 31 19:30:38 fanno: s/responce/response/ Mar 31 19:31:07 TacticalJoke: yes yes i know my spelling sucks Mar 31 19:32:10 pfn walmart had decent proces on those Mar 31 19:32:16 *prices Mar 31 19:33:05 i like systane gel drops Mar 31 19:33:26 God, I wish I had extension methods. Mar 31 19:34:44 Hi! How can I access an element of parent fragment by its ID? Mar 31 19:35:29 I can get parent fragment by getParentFragment(), but it doesn't have a findViewById method Mar 31 19:36:19 Oh, wait. Found this, getParentFragment().getView.findViewById() ... Does this work? Mar 31 19:36:37 it should Mar 31 19:37:01 you can even use R.id.whatever Mar 31 19:37:04 in the Mar 31 19:37:21 no wai Mar 31 19:37:43 :P Mar 31 19:37:58 The fragment that'll be using this is inside a viewpager inside the parent fragment, is there a chance that getView() will give null, like the warning I get in studio? Mar 31 19:38:13 there is achange Mar 31 19:38:16 a chance Mar 31 19:38:18 <_genuser_> tmobile sends me a text that they're moving up to 3GB and it's no charge. Mar 31 19:38:23 <_genuser_> comes the bill, 10 extra /mo. Mar 31 19:38:28 lol Mar 31 19:38:35 stil got that text? Mar 31 19:38:42 or is it in tax and service fees Mar 31 19:38:44 lol Mar 31 19:38:47 <_genuser_> probably, didn't delete it. Mar 31 19:38:50 _genuser_, german? Mar 31 19:38:52 I’d rage Mar 31 19:38:58 I am so against data caps Mar 31 19:39:08 <_genuser_> no, they're saying the plan was grandfathered in, and now it's not supported anymore. so they're adding it as extra service. Mar 31 19:39:13 <_genuser_> danijoo_: US. Mar 31 19:39:22 the ONLY reason why I’m still with sprint.. in fact I’m lucky if I can get 3GB with Sprint because I never have 4g Mar 31 19:39:26 barely food 3G Mar 31 19:39:27 they did the same here in german ^^ Mar 31 19:39:29 good Mar 31 19:39:33 maybe i should check my bill Mar 31 19:39:38 <_genuser_> tricknology: well, they already transferred me to the "loyalty" dept and he said why don't you move up to 60/mo plan with everything truly unlimited. Mar 31 19:39:41 <_genuser_> no caps. Mar 31 19:39:50 tricknology: So any better way to deal with this? Mar 31 19:40:02 how do you decide between using a ContentValue object and the insert() method and execSQL() when doing non cursor returning calls on a sqLite db? They seem like they do the same thing Mar 31 19:40:03 everything was unlimited before they started capping everything Mar 31 19:40:07 that’s a huge step back Mar 31 19:40:12 <_genuser_> danijoo_: meanwhile the persident is all over the tV saying he's really giving free data. Mar 31 19:40:23 astroduck using something like getParentFragment() no probably not Mar 31 19:40:31 but you could pass the parent fragment into your child Mar 31 19:40:34 <_genuser_> tricknology: I don't really understand the caps. it's not like the networks are a max capacity (from what I understand). Mar 31 19:40:38 via constructor Mar 31 19:40:42 tricknology what happens if you exceed the cap in the US? Mar 31 19:40:47 ^^ genuser exactly Mar 31 19:40:48 it’s BS Mar 31 19:40:52 you get charged Mar 31 19:40:58 i forget if its per kb or MB Mar 31 19:41:11 <_genuser_> I told him the walmart family plan is like 40/mo and truly unlimited everythign from what my coworker said. Mar 31 19:41:14 oh wow, in Germany you only get slowed to a crawl but still have data Mar 31 19:41:17 <_genuser_> so I might move. that didn't freak him out at all. Mar 31 19:41:33 They know you have literally no choice Mar 31 19:41:36 <_genuser_> memorion: same in US. so you can do maps, etc. but youtube is impossible. Mar 31 19:41:44 you choose between great data and dropped calls and caps Mar 31 19:41:51 or great calls but caps and shit data speed Mar 31 19:42:02 basically choose 2.. sometimes 1 Mar 31 19:42:03 <_genuser_> I barely use the phone. I really use this as my mobile youtube player. Mar 31 19:42:29 <_genuser_> get in teh card, put on a 1hr long dance/trance/hardcore/dubstep whatever mix and just drive. Mar 31 19:42:32 <_genuser_> *car Mar 31 19:42:57 astroduck, pass the parent fragment to your child as constructor. have a public function in parent fragment getView(int resId) Mar 31 19:43:07 call parentFragment.getView(R.id.whatever) Mar 31 19:43:19 also in onViewCreated you can put a global gView = view; Mar 31 19:43:57 then use return gView.findViewById(resId); in getView(int resId) of parentFragment Mar 31 19:44:01 voila Mar 31 19:44:02 tricknology: This^, or use the Activity to exchange data using an interface, like 2 fragments communicate? Mar 31 19:44:11 sure whatever you want Mar 31 19:44:20 I do what i described using interfaces Mar 31 19:44:24 instead of the ref to parent Mar 31 19:44:47 viewController.getView(R.id.whatever) Mar 31 19:45:12 tricknology: Ok, cool. I'll try that. Thanks :) Mar 31 19:45:16 viewController is an interface that is implemented in my parent fragment Mar 31 19:45:24 soon its looking like it wil be an abstract class Mar 31 19:45:30 extended by parent fragment Mar 31 19:45:38 because so much view control stuff going on Mar 31 19:46:00 about 4-600 lines worth Mar 31 19:46:14 I do the same kind of thing in activity, as I have a lot of data exchange happening b/w fragments. I read that on Android Docs Mar 31 19:46:28 yeah It’s a good pattern Mar 31 19:46:38 better than a message/handler Mar 31 19:46:48 because there you can run into problems with switch/case becoming too long Mar 31 19:47:37 back to the caps argument.. I can’t wait until 5G comes up and they have to change the caps to 100gb Mar 31 19:47:43 because content has become so large Mar 31 19:47:48 Thankfully I'm not there yet. Let;s worry about it when that problem arrives. No pre-optimization :P Mar 31 19:48:12 then it will be like WTF? why couldn’t you do that earlier? “we didn’t have the technology" Mar 31 19:48:29 np astroduck, best of luck! Mar 31 19:50:22 I rarely break my 1GB cap Mar 31 20:01:43 While we're on the cap topic, I don't even use 3G, I have WiFi connection nearly 90% of the time, so I guess I am just lucky Mar 31 20:01:58 astroduck same here, home and university :D Mar 31 20:03:14 Yep! Also, There's wifi now in nearly every mall/shopping mart, and I don't need to use maps Mar 31 20:03:17 but that's why I'm fine with my 1GB cap for 8€ per month Mar 31 20:03:26 a misunderstanding I'm trying to clear out Mar 31 20:03:39 do I need permissions to say, take images just to fire a "take picture" intent? Mar 31 20:04:40 no Mar 31 20:04:55 I don't think so, but maybe you'll need storage read permission to get that picture Mar 31 20:11:56 If a maven repository gives me "[Fatal Error] support-v4-22.0.0.pom:2:10: Already seen doctype." How do I fix it? Mar 31 20:15:38 give up, throw your hands up in the air, and run around screaming Mar 31 20:15:46 see if that helps any Mar 31 20:17:14 have you tried turning it off and on again? Mar 31 20:18:20 and how many times? Mar 31 20:27:04 Hey all, just wondering if someone could help me with a logcat Mar 31 20:27:38 is it sick, or not eating? Mar 31 20:27:58 whatitis: lol, could you seriously help me? Mar 31 20:28:04 ask the real question Mar 31 20:28:07 How to pause f-cking logcat in as? Mar 31 20:28:15 lasserix click on a line Mar 31 20:28:17 just click it Mar 31 20:28:31 markyosullivan, have you tried turning it off and on again? Mar 31 20:28:34 yeah that did work , but fails now Mar 31 20:28:37 just keeps scrolling Mar 31 20:28:37 to resume i just press enter to bring it back down Mar 31 20:28:47 maybe click and press up/down arrow Mar 31 20:28:52 danijoo_: I tried turning it off and on again but it seems like it has a mind of it's own Mar 31 20:28:54 http://pastebin.com/bzGnh52N Mar 31 20:29:08 Anyone know of a tutorial covering exoplayer with hls? Mar 31 20:29:33 Being serious though, I'm trying to get a wizard working which was originally created by Roman Nurik Mar 31 20:29:39 https://plus.google.com/+RomanNurik/posts/6cVymZvn3f4 Mar 31 20:29:47 markyosullivan, did you import your library correctly? Mar 31 20:30:10 it can't find StepPagerStrip so check how you have it implemented Mar 31 20:30:10 whatitis: I'm guessing I did, because gradle isn't complaining about any errors Mar 31 20:31:29 For some reason all*.exclude group: 'com.android.support', module: 'appcompat-v7' does nothing Mar 31 20:31:55 https://developers.google.com/cast/docs/release-notes Mar 31 20:32:03 so, wtf is the corresponding play-services version... Mar 31 20:32:35 whatitis: mStepPagerStrip = (StepPagerStrip) findViewById(R.id.strip); Mar 31 20:32:37 I don't /really/ want to upgrade to gms 7.0 Mar 31 20:32:49 Can't see the purpose if it doesn't exclude Mar 31 20:32:57 whatitis: oh fuck Mar 31 20:33:25 whatitis: just realised the id in my xml isn't correct Mar 31 20:34:19 pfn : play-services-cast Mar 31 20:34:28 maxflax, version, not component Mar 31 20:35:35 whatitis: can't believe that was the only reason why it wasn't working, thanks! Mar 31 20:35:47 pfn : play-services-cast-7.0.0 Mar 31 20:35:52 Cool! Google released Google Panda a day in advance! Google Panda Product Launch 2015: https://youtu.be/lI9Qb4PuiOU Mar 31 20:36:22 google panda :? Mar 31 20:36:36 MikeWallaceDev_: it's 6:30am in Japan on April 1st Mar 31 20:36:43 is it antivirus thing Mar 31 20:37:30 maxflax, again, that isn't a corresponding version Mar 31 20:37:46 I wonder whether the death rate is higher on April Fools day. Mar 31 20:37:47 JakeWharton, I know :P Mar 31 20:37:58 "I'm having a heart attack." "Haha. Good one, Jim." Mar 31 20:38:09 hahaha Mar 31 20:38:15 maxflax, 7.0.0 is simply the /newest/ version Mar 31 20:39:02 I cringe so much when companies put a lot of effort into April Fools gags. Mar 31 20:39:06 pfn: ok, so what version do you want then? Mar 31 20:39:28 maxflax, what play services versions correspond to each cast sdk version Mar 31 20:39:33 maxflax, exactly what I said to begin with Mar 31 20:39:50 TacticalJoke, it's funny you mention that, I thought they went to far with this one. a 5 minute video? Mar 31 20:39:58 That guy is like "I don't get paid enough to put up with this bullshit". Mar 31 20:40:06 Yeah, it's weird. Mar 31 20:40:19 not to mention that it's not that far fetched of an idea... Mar 31 20:40:33 pfn: ok, that I don't know. Mar 31 20:40:49 maxflax, exactly; stupid docs don't say Mar 31 20:41:42 pfn: Im struggling myself with stupid maven dependencies and non working gradle excludes. Mar 31 20:41:56 I actually read that a lot of adults take teddy bears to bed. Mar 31 20:42:42 Hello guys. Mar 31 20:42:47 According to one study, 1 in 5 adults in the UK do. Mar 31 20:43:45 I'm new at Android programming and have questions regarding window sizes at apps, which I couldn't solve through Google Mar 31 20:44:04 Foreshadowing Nexus 5 and Nexus 6!! :P Mar 31 20:45:06 Does anyone have time to look on my PC through TeamViewer, so I can show him my problem? Mar 31 20:45:20 TyreZe: That escalated quickly. Mar 31 20:45:47 What do you mean mate? Mar 31 20:46:12 You know could upload code or screenshots to a website instead. Mar 31 20:46:35 Okay I'll upload a screenshot mate Mar 31 20:46:39 TyreZe = Peter923812 from #Android. If you don't help him he will start calling you out on your bad marriages or being single. You've been warned Mar 31 20:46:44 hi guys! Mar 31 20:47:15 TyreZe, you like to live dangerous, dont u? Mar 31 20:47:33 A bit Mar 31 20:47:40 TacticalJoke, and other 4 adults go to sleep with their tablets? :P Mar 31 20:47:44 please give me ur teamviewer then :D Mar 31 20:47:56 You scared me now :D Mar 31 20:48:04 A buddy of mine has a tablet from work. It is an Android, but it can run only one app. Once you boot it - it asks for a login and then it takes you to the app landing Activity. How can I develop such an app? Mar 31 20:48:06 I actually have my phone lying down beside me in my double bed. :D Mar 31 20:48:10 Im pleased to help you >:) Mar 31 20:48:14 It has its own pillow. Mar 31 20:48:24 what kind of app is that? Where to read about such apps Mar 31 20:48:29 Will you let my computer explode? :P Mar 31 20:48:56 HikaruBG, you could register the app as a launcher Mar 31 20:48:58 what is this thing called "Adult" Mar 31 20:48:59 Hey, is it possible to setup using gradle different app names for different flavours? I know I can create different strings.xml files for each build... but that's too messy... Mar 31 20:49:10 then its opening instead of the default launcher Mar 31 20:49:21 viran, yes Mar 31 20:49:22 My app: http://i.epvpimg.com/Zk6Fe.png Other APPS: http://i.epvpimg.com/ceR0g.jpg Mar 31 20:49:26 when i scroll a file in AS it seems to have some rendering issues. Anyone else get this? Mar 31 20:49:33 How can I change the screen size like that? Mar 31 20:49:33 how danijoo_ ? Mar 31 20:49:38 danijoo_, and a launcher is an app, that will ask for a login on a boot? Mar 31 20:49:52 HikaruBG, yeah you can do that Mar 31 20:49:54 HikaruBG, see screen pinning APIs: https://developer.android.com/about/versions/android-5.0.html#Enterprise Mar 31 20:50:00 quinnjn, not that i recall. blah blah "update video drivers"? Mar 31 20:50:02 for Enterprise provisioning Mar 31 20:50:19 HikaruBG, the mode that app runs in is usually referred to as "Kiosk mode" Mar 31 20:50:44 viran, this question has been asked 100 times on stack overflow Mar 31 20:50:47 google it! Mar 31 20:51:17 TyreZe: You're asking how to go from Landscape mode to Portrait mode in BlueStacks App Player? Mar 31 20:51:44 Exactly, Mavrik, I wasn't sure how is that called Mar 31 20:51:45 TacticalJoke the app does it automaticly Mar 31 20:51:52 I have, it's never answered on SO...... Mar 31 20:51:57 Thank you! I know what to look for now! :) Thanks Guys! :) Mar 31 20:51:58 How can I set that for my app? Mar 31 20:52:05 it's been asked, but left unaswered.. Mar 31 20:52:12 HikaruBG, note that before Android 5.0 people had to use different hacks and workarounds to get that behaviour Mar 31 20:52:15 Maybe the app is locked to Portrait? I'm not sure. Mar 31 20:52:31 How can I lock it? Mar 31 20:52:34 viran, different string.xml files for different flavours Mar 31 20:53:06 I don't know; try googling "android lock portrait". Mar 31 20:53:19 I just googled that and got answers. No idea whether they're good ones. Mar 31 20:53:20 Thank you I didn't know that something like that exists Mar 31 20:53:27 android:orientation="portrait" in manifest, TyreZe Mar 31 20:53:54 Mavrik, so Android 5 has classes to use to get that behaviour? Mar 31 20:53:59 system updates seem to have fixed it :) Mar 31 20:54:00 Behavior* Mar 31 20:54:02 viran, you can override the package name via applicationid in your flavor stanza, version via versionname and versioncode in the same place, and activity names are controlled by strings.xml which can be merged per-flavor the same way it can be controlled per build, just making a second high-level dir next to 'main' and populating it appropriately (mirror your src/res/etc) Mar 31 20:54:05 and handle orientation changes manually if i remember correctly Mar 31 20:54:58 viran, and it will merge your flavor and build res on top of your main res so you only have to override the strings you're changing Mar 31 20:57:10 thanks danijoo! Mar 31 20:57:30 so it's possible to merge string.xml files instead of creating a replacment for every build? Mar 31 21:00:20 thanks dragorn Mar 31 21:01:41 Hey, how do I upgrade my gradle? saw something about this command ./gradlew --version Mar 31 21:03:06 viran, you just put the strings you want to override in each flavor or build Mar 31 21:03:08 maxflax, you update the distributionUrl in gradle/wrapper/gradle-wrapper.properties Mar 31 21:03:13 viran, and it takes the rest from main Mar 31 21:03:31 http://i.epvpimg.com/Zk6Fe.png ;,, does anyone knows how to remove the title there Mar 31 21:03:36 thanks, I was sure it does not merge the string.xml file :) Mar 31 21:03:59 TyreZe: the action bar? Mar 31 21:04:24 viran, so if you want to just override the name, just put that one string in your src/flavor/res/values/strings.xml and the rest comee from src/main/res/values/strings.xml Mar 31 21:04:30 s/comee/come/. derp. Mar 31 21:04:30 I don't know if it's called the action bar, basically where the title is Mar 31 21:04:41 either getActionBar().hide() Mar 31 21:04:50 or globally theme something something NoActionBar Mar 31 21:04:50 viran, you can also merge your manifest Mar 31 21:05:24 viran, and put activities in some flvors and not in others. The only things it can't cleanly do is manipulate stuff like setting attributes like systemid and whatnot, which you'd only use in some situations anyhow, and can work around Mar 31 21:05:53 I'm starting to like Android Studio :) Mar 31 21:06:13 :O Mar 31 21:06:15 TyreZe, the text "...entures"? if erasing the text is enough, you could try setTitle(""); after you've got the ActionBar object Mar 31 21:06:37 hi Mar 31 21:06:47 ohai Mar 31 21:06:57 viran, look at uh... u2020, jakewhartons demo project, he does cool stuff with merging and flavors and build types there Mar 31 21:06:58 TyreZe, or setDisplayShowTitleEnabled(false); on the ActionBar. Mar 31 21:07:28 dragorn: I'll take a look, thanks :)\ Mar 31 21:07:30 Anyone already using Robolectric in android studio ? Mar 31 21:08:01 Mavrik: How do i do that? Shoudn't there be a automated way so I don't need knowing the url and such? Now it's in hat file. distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip Mar 31 21:08:24 Should there be an automated way? Mar 31 21:08:33 A question about resolution: For example I want to set a picture for the main menu, can I just not pick a full hd picture, which he scaled automaticly down? Mar 31 21:08:45 Gradle 2.2.1 is the latest supported for the Android plugin Mar 31 21:09:49 Mavrik, so maybe I need to upgrade the plugin. It's on version 1.1.0 Mar 31 21:10:06 that's also the latest. Mar 31 21:11:31 TyreZe, ugh I reckon that android is able to scale it down. but if you're going to release an app with said picture, I recommend you shrink the picture in area to minimize the disk space your app requires Mar 31 21:12:51 I'm really over-whelmed by how it handles the resolution since every phone has a different resolution, I don't really know how to handle it Mar 31 21:13:38 TyreZe, what do you mean, how to handle it Mar 31 21:13:47 maxflax actually 1.1.3 is the latest, but whatever Mar 31 21:14:24 I mean, I can't do a picture for every resolution, it would be easier if I could get a full hd picture and Android fits it automaticly in the screen Mar 31 21:15:11 g00s: So is there a command for updating it or just change the numbers. Thought the SDK manager took care of all this thing. Mar 31 21:15:33 the gradle plugin - hm, just edit your build.gradle file Mar 31 21:15:54 i usually do "1.1.+" or "1.2.+" etc Mar 31 21:16:02 yeah, don't do that Mar 31 21:16:03 :) Mar 31 21:16:18 unless you want to have fun fixing random bugs instead of actually working :P Mar 31 21:16:29 dynamic version for the minor is ok Mar 31 21:16:47 yeah, not with Google stuff. Mar 31 21:16:51 heh Mar 31 21:17:31 TyreZe, oh ok. (well, you can, but.. :) ) well if you're targeting all possible screen resolutions android devices have, I see you have two options: 1) automate the size shrinking, 2) shrink the picture in quality. 1) would result in quite many builds thou. Mar 31 21:17:42 Anyone already used robolectric ? Mar 31 21:18:32 saapas would that not make the app bigger if I shrink the picture in quality for every resolution rather than automate the size shrinking Mar 31 21:18:47 nuBento: I think you can answer that question. Mar 31 21:19:08 475 people in #android-dev. What are the chances that one of them has used Robolectric? Mar 31 21:19:18 I'd say around 100%. Mar 31 21:19:47 ok TacticalJoke Mar 31 21:20:29 TyreZe, for your source directory, yes. but for a single build, no Mar 31 21:21:17 TyreZe, by bringing down the quality I meant to have just that one fullHD picture used for every resolution Mar 31 21:21:43 I have one problem when try run my tests…I start test and he starts download dependencies in sonatype but unfornatelly I get that error: WARNING] Unable to get resource 'org.robolectric:android-all:pom:4.1.2_r1-robolectric-0' from repository sonatype (https://oss.sonatype.org/content/groups/public/): Specified destination directory cannot be created: /Apache-Maven-3.2.1/repository/org/robolectric/android-all/4.1.2_r1-robolectric-0 Mar 31 21:22:42 I change the permissions directory to write but didn’t work Mar 31 21:23:01 Oh okay, thank you saaps Mar 31 21:23:28 no problem TyreZe Mar 31 21:24:49 saapas is there a list with all phone resolutions, and how do I set that he should use the specific picture for another build / resolution? Mar 31 21:28:41 ohai Mar 31 21:29:00 I'm about to run a bunch of tests for a coursera-provided app that I just imported into android studio Mar 31 21:29:01 TyreZe, I don't know if such a list exists. I also don't know a thorough answer to that. maybe you should study the few different *dpi screen sizes (or densities?) Mar 31 21:29:14 the test suite can't find the actual app's activity Mar 31 21:29:32 dunno how to propagate the references or whateer either Mar 31 21:32:10 TyreZe, I do know that android can - without any configuration or programming - pick the correct layout from the correct folder depending whether the screen is in landscape or portrait. maybe it's smart elsewhere, too Mar 31 21:35:55 saapas I could use that way to do what I want but the app would be damn big Mar 31 21:37:36 TyreZe, picture for every resolution? yeap I can imagine, but it's just the source folder so only one version of the picture would be in a single build Mar 31 21:38:08 saapas thought android pick the correct layout from the correct folder? Mar 31 21:39:44 TyreZe, oh, that.. no, that's not the solution for your problem :) Mar 31 21:41:46 Damn, what's the solution then :D Mar 31 21:43:19 TacticalJoke what do you think of this? https://northconcepts.com/blog/2013/01/18/6-tips-to-improve-your-exception-handling/ Mar 31 21:43:45 collapsing custom exception classes down some, and putting enums in them for error codes Mar 31 21:44:08 i guess the enum could have a R.string id, which can then be shown in a snack / toast Mar 31 21:44:19 since getMessage() isn't really localized Mar 31 21:45:56 its pretty easy to find tips on exception handling in general, but i haven't found much on designing custom exception hierarchies / classes Mar 31 21:47:22 Hmm. Is it common to expose the exception message to the user? Mar 31 21:47:56 the information is irrelevant to the user Mar 31 21:48:59 hey all Mar 31 21:49:56 i Mar 31 21:50:56 i've got a (probably stupid) question about image sizing for different screen sizes, can anyone help me out? Mar 31 21:54:30 TyreZe, bring down the quality of the original picture but not the resolution. use the resulting picture for all. Mar 31 21:55:39 saapas how do I do that Mar 31 21:55:47 and what should I use as base resolution? Mar 31 21:56:11 I kinda feel that those ideas make exceptions disobey the single-responsibility principle: not only are they tasked with representing an error state, but they are required to hold data that links the error state to a user-visible string. Mar 31 21:56:32 TyreZe, the fullHD resolution, no? use any image editing software you have. Mar 31 21:56:44 satt: If you don't answer the question, nobody will be able to help you out. Mar 31 21:56:52 Unless they are psychic. :D Mar 31 21:57:09 is this the same question TyreZe has? :D Mar 31 21:57:44 TacticalJoke what question?? I don't expect anyone to be psychic :D Mar 31 21:57:47 Also, I think there's a correlation between the stupidity of a question and how easy it is to answer a question. Mar 31 21:57:50 yup, but which resolutino you preffer though as base resolution for all phone res Mar 31 21:58:22 TyreZe, I don't think this matters if you just lower the quality? Mar 31 21:58:24 satt: s/answer/ask/ Mar 31 21:58:49 s/answer/ask/ Mar 31 21:58:52 ? Mar 31 21:58:54 Or maybe this is some weird channel where people asking questions don't get answers: they get questions back. Mar 31 21:59:04 answering questions with questions Mar 31 21:59:12 nah, not in my experience Mar 31 21:59:13 what do you mean with lowering the quality? if you use a fullhd picture on a full hd res or 480p res the quality wont be lower Mar 31 21:59:17 why should you lower it Mar 31 21:59:42 satt: Search for 'answer' and replace it with 'ask' in my message. Mar 31 22:00:00 haha damn I clearly need some coffee Mar 31 22:00:14 I'm trying to size images to fit the user's screen - but i need to keep the differences in scale. Images vary in size from 15px - 192px high, 31px - 234px wide Mar 31 22:00:21 TyreZe, I'm saying keep the resolution, don't change it. lower quality == higher compression ratio. Mar 31 22:00:52 TyreZe, but then again, does android use any other image format than png? because png only has two compression options. Mar 31 22:00:53 satt: Can't you just display them in an ImageView with the default scaleType? Mar 31 22:01:26 TyreZe, I don't know what the base resolution should be, if you wish to go with one Mar 31 22:01:30 yeah you can use jpg Mar 31 22:01:40 TyreZe, ok cool -b Mar 31 22:01:42 and I understood you know Mar 31 22:01:52 *now Mar 31 22:01:57 excellent Mar 31 22:02:14 I need that small images, like a 15x31px image, to be smaller on screen than a larger image like 150x200px. Mar 31 22:02:36 but I also need images to stay within the imageview bounds Mar 31 22:02:50 no scaling basically Mar 31 22:03:23 saapas I guess it will scale it down automaticly on smaller resolutions Mar 31 22:03:30 saapas, so scaleType="center"? Mar 31 22:03:32 eh Mar 31 22:03:36 satt, :) Mar 31 22:03:50 TyreZe, I trust it will, but have a try with an emulator Mar 31 22:03:51 Mavrik: yup that's what i'm using Mar 31 22:04:04 so what seems to be the issue? :) Mar 31 22:04:26 I'm scaling all the images up by 3.5 Mar 31 22:04:31 I am following instructions for including exoplayer in an app but i get Error15,0 Plgun with id 'bintray-release`not found Mar 31 22:04:55 and some of my users are reporting the image being cut off/extending past the bounds Mar 31 22:05:11 How about centerInside? Mar 31 22:05:34 full hd is bad for portrait mode though, anyone knows a better res Mar 31 22:05:54 TacticalJok I'll give that a try Mar 31 22:06:06 thx, back in a bit Mar 31 22:06:12 IIRC, that'll make sure it doesn't get bigger than the view (but won't change it if it's smaller or equal in size). Mar 31 22:10:12 Anyone use exoplayer in a gradle project? I am getting an error 'bintray-release' not found Mar 31 22:13:05 hmm well just deleting it seemed to fix it Mar 31 22:14:27 anyone know how to get the current surface of a surfaceview? Mar 31 22:15:51 through the SurfaceHolder Mar 31 22:16:44 yup: http://developer.android.com/reference/android/view/SurfaceHolder.html#getSurface() Mar 31 22:22:46 TacticalJoke Mar 31 22:25:36 guys, i hope this isnt against the TOS of this chat Mar 31 22:25:44 but can anyone PM me any google play dl bots? Mar 31 22:26:13 using vbox or something? Mar 31 22:28:02 we don't do those Mar 31 22:28:18 and yes you are probably going to at least be frowned upon Mar 31 22:31:23 anyone have expireince with exoplayer demo code? Mar 31 22:31:55 mavrik/adq er how to get bitmap of that surface, i mean Mar 31 22:32:14 you dump the canvas Mar 31 22:36:13 Is there any reason to ever disable hardware acceleration in the android manifest xml? Mar 31 22:36:23 For some reason I had mine disabled, but I can't for the life of me remember why Mar 31 22:36:40 liuwenhao hmm, sometimes its buggy Mar 31 22:36:50 on emulator? or on an actual device Mar 31 22:37:03 device Mar 31 22:37:22 lasserix, http://stackoverflow.com/a/18299259/1373568 something like the content of public void TakeScreenshot Mar 31 22:38:10 I spent the past few hours tweaking my listview array adapter and pulling my hair out because it was scrolling so laggy, only to realize i had disabled the hardware acceleration. After I turned it back on it's smooth as butter Mar 31 22:38:20 I must have disabled it when I was using the built in emulator last year, before I switched to genymotion Mar 31 22:38:53 oh man that is ugly Mar 31 22:38:59 probably takes too long too Mar 31 22:41:51 Guys whenever I set the position of my text it results at a different position on my phone, do I set the position wrong? Mar 31 22:50:17 I just imported a project into android studio from an older sdk. anyone have any tips? external sdks are not properly detected Mar 31 22:51:41 It cannot resolve basics like ActiionBarActivity Mar 31 22:53:28 TheKarlBrown, did you convert it to gradle? Mar 31 22:53:36 I am not sure how to do that Mar 31 22:54:21 TheKarlBrown did you download the SDK from SDK manager? Mar 31 22:54:33 Yes Mar 31 22:55:39 Do you have a build.gradle file in the project? Mar 31 22:56:11 No, I do not Mar 31 23:01:00 hello, anyone already had problem used robolectric in gradle? Mar 31 23:01:35 I have that warning: [WARNING] Unable to get resource 'org.robolectric:android-all:pom:4.1.2_r1-robolectric-0' from repository sonatype (https://oss.sonatype.org/content/groups/public/): Specified destination directory cannot be created: /Apache-Maven-3.2.1/repository/org/robolectric/android-all/4.1.2_r1-robolectric-0 Mar 31 23:02:04 because of this gradle didn’t download the dependencies Mar 31 23:02:13 Guys whenever I set the position of my text it results at a different position on my phone, do I set the position wrong? Mar 31 23:03:33 TyreZe can you clarify? how are you setting the position? Mar 31 23:04:08 satt I use layout:margin Mar 31 23:04:33 satt android:layout_marginTop="300dp"/> Mar 31 23:04:50 oh man that is ugly <- totally lol Mar 31 23:05:08 plus i feel like it is overcomplicated Mar 31 23:05:16 i understand you can't just rip a surfaceview like any other view Mar 31 23:05:23 but what he recomends seems flawed Mar 31 23:05:47 TyreZe can you post the layout xml on pastebin and link me/ Mar 31 23:05:49 ? Mar 31 23:06:11 saat, Yup thank you Mar 31 23:07:23 satt http://pastebin.com/fsHywGeL Mar 31 23:08:34 cool Mar 31 23:09:07 looks fine, whats the problem you're having exactly? the text is somewhere else when you open it on your phone? where exactly? Mar 31 23:10:12 Somewhere at the top Mar 31 23:10:36 Lemme screenshot satt Mar 31 23:12:03 cool Mar 31 23:13:31 satt http://i.epvpimg.com/dJRge.jpg Mar 31 23:14:07 I see Mar 31 23:14:28 is that a tablet on the right? Mar 31 23:14:34 looks like i Mar 31 23:14:35 t Mar 31 23:14:52 i'd say it probably has something to do with using dip Mar 31 23:15:31 yeah, you can't realy fix the position like this, 300dp is totally different on a tablet Mar 31 23:15:53 so what I have to do Mar 31 23:15:56 I'm no layout guru but TyreZe you want the text to be between the dudes hands? Mar 31 23:16:04 roughly Mar 31 23:16:24 satt yup Mar 31 23:16:43 try changing to a relative layout Mar 31 23:17:08 hmm I'm not sure what the best way to go about this is actually Mar 31 23:17:46 should I try relative layout then Mar 31 23:18:01 maybe set it programmatically, take the screen measurements and do a little math Mar 31 23:18:31 oh yeah! Mar 31 23:18:35 that's even better Mar 31 23:18:37 measure the percentage of the screen the text needs to be offset from the top Mar 31 23:18:48 yeah you don't need a relative layout really Mar 31 23:19:09 ok Mar 31 23:19:11 looks like about 75% of the screen down Mar 31 23:19:41 so I have to get the screen resolution, then calculate x, y right Mar 31 23:19:57 x shouldn't matter, since you want it in the center Mar 31 23:20:10 I'm finally starting to play with animations, and of course I've set myself up for a kinda complicated one to start with :| anyone have any suggestions on e.g. how to choreograph an animation through (typically two or more) layout events? or know of any decent blog posts / etc on managing animations? Mar 31 23:20:28 take the screen res, get 75% of the height and use that as the top margin Mar 31 23:20:50 groxx: are you using animators? Mar 31 23:20:58 groxx http://www.androiddesignpatterns.com/ Mar 31 23:21:03 ahhhh gotta go afk, back in a bit Mar 31 23:21:04 myke: yeah, API 14+ Mar 31 23:21:10 can you move a variable in an xml though? satt Mar 31 23:21:30 not sure what you mean Mar 31 23:21:47 memorion: thanks, skimming Mar 31 23:22:28 groxx not sure if there's more than the shared element transitions :/ Mar 31 23:22:39 nm I'll try it thanks mate sat Mar 31 23:22:46 TyreZe check out displaymetrics and layoutparams : http://stackoverflow.com/questions/3416087/how-to-set-margin-of-imageview-using-code-not-xml Mar 31 23:22:52 afk now, back soon Mar 31 23:25:10 memorion: yeah, which isn't the same thing :) but there are other posts, and some look interesting anyway Mar 31 23:26:35 groxx his g+ feed is full of animation stuff maybe that helps Mar 31 23:26:53 memorion: doesn't look like anything normal-animation specific though. my main complication here is that I'm animating transitions between the keyboard coming up and going and changing sizes, and that can cause (and does) cause multiple layout passes. so I can't "just" animate from A to B and cancel if there's already an animation, because it may go A, A, Mar 31 23:26:53 B, B, and then I'd be killing the B animation. Mar 31 23:27:44 at the moment I'm thinking of having all my (relevant) view state in two objects, for "current" and "destination", and always animating towards the destination, since it changes semi-predictably. but I'm not sure if there are surprises / easier ways. Mar 31 23:29:38 groxx sorry, that's out of my league Mar 31 23:29:52 memorion: his G+ is pretty interesting, yeah. thanks :) Mar 31 23:30:25 TyreZe: you don't have to set padding manually if you want to always have some element say at 75% down Mar 31 23:30:56 icedp I want dynamic xy coordinates Mar 31 23:31:12 TyreZe: put Space with weight 3, your element, Space with weigh 1 in vertical LinearLayout Mar 31 23:31:12 memorion: that's kinda why I'm having trouble finding anything :) animating from A to B when they're very strictly defined, and small and fast and you don't care all that much if it's interrupted: seems relatively easy. big animations that look awful if they're even slightly broken, and are in a semi-hostile environment: D: Mar 31 23:31:24 icedp means the x y coordinates are the same at every dpi Mar 31 23:31:38 TyreZe: x y in what? Mar 31 23:31:47 Tee_Pee: px, dpi, %? Mar 31 23:31:50 TyreZe: Mar 31 23:31:52 Tee_Pee: sorry Mar 31 23:32:11 is there not a x y setting for that? Mar 31 23:32:18 pixel Mar 31 23:32:55 or dpi it doesn't matter, just something which is same for every dpi Mar 31 23:34:09 groxx yeah, most of my knowledge is from lurking here and on g+, not that much animation stuff going around Mar 31 23:35:04 icedp can I set the x y coordinates in pixel somehow? so I could get the screen resolution and do a calculation, I hate to work with dpi Mar 31 23:36:25 TyreZe: it does matter because pixels has different physical size on different screens.. so.. why do you need them? just set 100dp or something Mar 31 23:36:57 icedp because this happens http://i.epvpimg.com/dJRge.jpg Mar 31 23:37:40 android has "dp", density-independent pixels Mar 31 23:37:47 so then you only need to know the size of your display Mar 31 23:38:02 TyreZe: so set marginBottom not marginTop Mar 31 23:38:32 icedp what's the difference? Mar 31 23:38:33 does anyone know good source code showing how to use exoplayer besides the demo? Mar 31 23:38:57 TyreZe: distance from top of the screen and bottom of the screen.. Mar 31 23:40:07 icedp so how's that gonna solve my problem Mar 31 23:41:09 icedp the text behaves differently at different phone dpi's Mar 31 23:41:19 icedp: left one is the IDE and right one the emulator Mar 31 23:41:45 TyreZe: what do you want to achieve exactly again? Mar 31 23:41:55 the text doesnt behave differently, tablets just have more dp Mar 31 23:42:43 TyreZe: do you want text on the same place on the image? or the same distance from bottom? Mar 31 23:42:50 memorion: ha, yeah, a good chunk of mine is too :) and there seems to be a relative paucity of in-depth articles on android. Mar 31 23:42:56 can anyone point me to a good algorithm for choosing the largest camera size (getsupportedpicturesizes) that is as close to 4:3 as possible Mar 31 23:43:07 I can’t really find a good example Mar 31 23:43:10 memorion, icedp: that's what I don't want, I want that the text is at the same position for every dp Mar 31 23:43:32 TyreZe don't use dp then Mar 31 23:43:44 TyreZe: the same positing in what? the position defined in % or dp or pixels are different positions Mar 31 23:44:00 memorion: what else can I use Mar 31 23:44:04 icedp he wants it between the hands Mar 31 23:44:12 why can't he say it then Mar 31 23:44:36 TyreZe not sure what's the easiest way, does the text change? if not just put it into the image Mar 31 23:44:46 between hands means you need to define position in proportionally Mar 31 23:45:00 so Space I mentioned earlier can help Mar 31 23:45:27 just create Space with weigh 3, TextView, Space with weight 1. it would be always 75% down from the top. Adjust weight Mar 31 23:46:02 icedp but I would like to use coordinates Mar 31 23:46:18 memorion: yeah Mar 31 23:47:07 groxx I finally started my first app a week or so ago, after ~4 years of lurking and a mix of demotivation and being intimidated by all the complaining Mar 31 23:47:22 lol Mar 31 23:47:38 memorion: how's it going? Mar 31 23:48:31 groxx better than expected, started a project with two friends from university that helps a lot although I'm the only android guy Mar 31 23:48:35 memorion , icedp : there may be another way, if I can set the pixel programitcally by calculating it, so how can I access to the element outside the xml and change his position? Mar 31 23:50:48 I am trying to write a custom lock screen similar to the way the system lock screen works. I've managed to create a system alert window that covers all activities and does not allow the user to pass it. This is working perfectly. However, much like the system lock screen, I'd like to create a way for the user to perform an emergency dialer Mar 31 23:51:09 I've added a button on my system alert window to perform an emergency dial, however, it is covered by my lock screen Mar 31 23:51:21 is there a way to force that activity to be on top of my system alert window? Mar 31 23:51:33 I've used this for reference: http://stackoverflow.com/questions/4481226/creating-a-system-overlay-window-always-on-top Mar 31 23:51:37 for creating the system alert window Mar 31 23:53:03 Hello, I'm a Java and Android development beginner. I'm having an issue where my AVD upon start is located at the top left corner of my screen and is not movable. I've tried editing emulator-user.ini to no availablity. Anyone got an idea? It looks like this http://imgur.com/OGWoxkC Apr 01 00:01:01 memorion lol, lurking for 4 years ? Apr 01 00:04:35 g00s well not in here, I wanted to develop apps since 2.1, but then even my normal java was pretty bad, in school I was one of the best but realizing that doesn't mean anything was pretty disheartening Apr 01 00:07:20 maetthew: you got multiple moniters? Apr 01 00:07:28 lasserix, Yes I do Apr 01 00:07:34 dual Apr 01 00:07:44 try dragging left or right hande side to other moniter Apr 01 00:07:48 it should push it down Apr 01 00:07:49 groxx have you used google analytics or crashlytics ? Apr 01 00:08:32 g00s: both, though they're a bit different in purpose (and/or crashlytics appears to be an infinitely less useful than google analytics for analytics) Apr 01 00:08:38 lasserix, I can't move it at all. I even tried alt+space and selecting "Move". Doesn't move at all Apr 01 00:08:38 sleepster: can't you just detect if touch is somewhere then use kiosk mode on your activity to dial? Apr 01 00:08:42 It's stuck Apr 01 00:08:45 in the upper left corner Apr 01 00:08:46 maetthew: hehe Apr 01 00:08:52 you can't resize it? Apr 01 00:08:59 lasserix, Nope Apr 01 00:09:24 maetthew: close it Apr 01 00:09:26 goto avd Apr 01 00:09:28 groxx sure, quick question. lets say you want to log exceptions, but have a good breakdown of each type - can you do that based on the message or is it easier to have them as different types ? Apr 01 00:09:29 select it, goto edit Apr 01 00:09:38 and change the res Apr 01 00:09:42 or if you have adb Apr 01 00:09:47 you can do adb emu window scale 0.6 Apr 01 00:09:59 http://stackoverflow.com/questions/5349817/android-emulator-avd-window-size Apr 01 00:10:13 g00s: ah. I've always done different types, messages don't typically cause separate rollups. Apr 01 00:10:42 though I think both split by stack trace too, so as long as they're coming from a different location it doesn't make a difference Apr 01 00:10:54 groxx ok, and secondly lets say i have MyException with an emum Kind { a , b , c } ... is there a way to bin based on Kind ? Apr 01 00:11:21 so Kind is a field in the exception Apr 01 00:11:48 next stable AS comes along, I will not switch to canary after it Apr 01 00:11:50 holy crap so slow Apr 01 00:13:16 lasserix, By "avd" you mean AVD Manager? Can I change the resolution without changing hardware definition? Apr 01 00:13:25 yeah Apr 01 00:13:31 but adb is the best way to do it Apr 01 00:13:42 g00s: hmmm. I suspect not... crashlytics at least includes log messages (via crashlytics.log) that were before the exception, so you can add metadata like that, but I don't think they provide anything for binning by it. Apr 01 00:14:15 groxx ok thanks Apr 01 00:14:32 lemme check. they do have "keys", which might work. Apr 01 00:15:44 g00s: you can search on keys, fwiw. not 100% the same, but something. Apr 01 00:15:46 lasserix, Well. Nothing worked by editing. Created a new one and now it opens a bit from the left (about 800-900 pixels). Still stuck to top and unmoveable. Gonna try with adb, need to install it again though Apr 01 00:15:53 groxx thanks :) Apr 01 00:16:13 maetthew: figure out how to add adb to your path and use that Apr 01 00:16:17 or just navigate to your sdk Apr 01 00:16:29 tools or platform tools, open a terminal in that directory Apr 01 00:16:30 and type Apr 01 00:16:32 g00s: I haven't used keys yet though, not sure what's possible. I don't see any specific UI for it though. Apr 01 00:16:38 adb emu window scale 0.6 Apr 01 00:16:55 g00s: ah, and I can verify: crashlytics does _not_ bin based on message. I just paged past a couple different errors coming from gplay services. Apr 01 00:18:08 lasserix, window scale did nothing at all. I can see the emulator with "adb devices" Apr 01 00:20:29 maetthew: you are just cursed sorry Apr 01 00:20:29 groxx hm, ok Apr 01 00:20:58 lasserix, I guess so. I'm beginning to suspect a bug. I just discovered Genymotion, gonna try that instead. Saw someone else with the same problem that had to use that instead Apr 01 00:21:13 Thanks for trying though Apr 01 00:22:51 genymotion is nice Apr 01 00:24:35 so sad it doesn't have play services yet Apr 01 00:24:57 g00s you can drag and drop the gapps onto it can't you? Apr 01 00:25:27 in theory. last time I tried it failed, never bothered to figure out why Apr 01 00:32:23 <_Auron_> I couldn't get gapps to work on it when I tried, but I didn't try much. it was far too tedious being on an amd processor Apr 01 00:39:09 just tried it and it seems to work Apr 01 00:39:45 memorion play services ? Apr 01 00:40:31 yes, got some erros google+ wasn't installed correctly but I just disabled it through settings and now it doesn't complain and all the gapps are there Apr 01 00:41:41 ah, i dont care about the gapps, i want play service :) Apr 01 00:41:56 so analytics, etc should work Apr 01 00:42:05 I use genymotion with google play services, was a bit of a pain to setup Apr 01 00:42:06 but it works Apr 01 00:42:11 google services are running too according to settings Apr 01 00:43:18 I just downloaded these gapps https://basketbuild.com/dlgate/gapps?dl=gapps-lp-20150222-signed.zip dragged the .zip onto the running genymotion emulator, it asked if I want to flash the .zip and done Apr 01 00:44:37 these are for lollipop* Apr 01 01:22:48 has anyone else experienced an issue where, if the app is launched in in landscape mode, the toolbar title/icon alignment is kind of off? Apr 01 01:23:15 someone should help me make my app's icon because this is horrible so far Apr 01 01:23:24 launched in portrait mode the title is centered with the icon, in landscape the title is too low Apr 01 01:24:04 DadFoundMy, fiverr.com ? Apr 01 01:24:28 pro-top -- make your app icon from compositing one or more freely available ones Apr 01 01:24:35 DadFoundMy you decided on a name? Apr 01 01:28:12 poutine: does fiverr take bitcoin? Apr 01 01:28:16 memorion: no :( Apr 01 01:28:42 What about AutoAgend? Apr 01 01:28:57 because it has a feature that automaticly sorts your assignments Apr 01 01:29:25 or what about "AutoAgend: Automatic School Planner" Apr 01 01:29:33 DadFoundMy what's the current icon? Apr 01 01:29:49 and AgendAuto? :P Apr 01 01:29:57 Agentudo? Apr 01 01:30:01 Agentudor! Apr 01 01:30:12 Afzal: keep in mind it's a first draft buttt http://imgur.com/p4WiHEU Apr 01 01:31:47 <_< bro, DadFoundMy get on my level http://www.androidpolice.com/wp-content/uploads/2015/03/nexus2cee_an-150x150.png Apr 01 01:32:25 Afzal: already am! just finished a quick project for my computer science class with that icon! Apr 01 01:32:28 honestly, just modify that ^ and tranform the android body into a good :p Apr 01 01:32:54 \s\good\book Apr 01 01:33:12 I mean s/good/book >_< Apr 01 01:33:16 goddamn syntax Apr 01 01:37:03 hah, get on my level http://imgur.com/TvOq2eR Apr 01 01:37:34 not the app icon though, just a placeholder in the app Apr 01 01:48:38 Hey guys Apr 01 01:48:49 Anyone here ever interviewed a Junior Developer? Apr 01 01:49:27 drose379: By definition, we all did at some point Apr 01 01:49:56 Ok, applying for an internship kinda looking for someone to look over the stuff I wrote on my resume Apr 01 01:49:57 CedricBeust: I think you inserted "as" before "a" Apr 01 02:04:08 Is there a way to get inotify or (FileObserver) working with root (for directories my app does not have read access to)? http://developer.android.com/reference/android/os/FileObserver.html Apr 01 02:08:18 https://developer.android.com/reference/com/google/android/gms/drive/query/Filter.html Apr 01 02:08:21 fucking really google? Apr 01 02:09:02 pfn: "resolved: obsolete" Apr 01 02:09:22 but yeah, that's even worse than normal, lol - nice find! Apr 01 02:10:41 my app name is 1 char too long :( Apr 01 02:11:10 I would like it to be "AutoAgend: Automatic School Planner", but it is 6 chars too long, any sugestions? Apr 01 02:11:21 pfn do you want https://developer.android.com/reference/com/google/android/gms/drive/query/Filters.html Apr 01 02:11:57 DadFoundMy get rid of the vowels :D Apr 01 02:12:13 pfn: I'm guessing you've seen e.g. https://developers.google.com/drive/android/queries ? google api docs generally live outside the developer.android.com docs, in my experience Apr 01 02:12:20 g00s, yes, I already found that, but implementing one's own filter is shitty Apr 01 02:12:26 if one wanted Apr 01 02:12:51 g00s: tgnd Stdnt Plnnr Apr 01 02:12:53 i like it Apr 01 02:13:05 pfn: can you implement your own? Apr 01 02:13:20 groxx, probably not, but yeah, I found the filters in any case Apr 01 02:13:21 ah, nvm, it does say "customPropertyKey" Apr 01 02:13:49 it would be nice if people could up/downvote doc pages by classes / method Apr 01 02:13:57 heh Apr 01 02:14:06 * groxx still hopes for a wikipedia-like clone Apr 01 02:14:54 hey guys I have an application that authenticates via OAuth and wanted to store the token securely. What's the best practice approach on Android? Apr 01 02:15:17 https://developer.android.com/reference/android/accounts/AccountManager.html Apr 01 02:15:58 memorion: ty Apr 01 02:16:30 fb|: or store it on disk somehow, but make sure it's in your internal folders somewhere. Apr 01 02:16:41 the application sandbox should be enough, unless you know why it's not. Apr 01 02:16:47 would SharedPreferences be a viable option then? Apr 01 02:16:56 snapchat does that Apr 01 02:17:18 fb|: yeah. or personally I tend to just use whatever cookie-storage-persistence thing my networking lib uses, which saves locally somewhere. Apr 01 02:17:34 that sounds good, pretty straightforward Apr 01 02:17:35 (if you use cookies. makes things easy if so) Apr 01 02:18:14 accountmanager has some benefits and drawbacks, but is worth looking into too :) Apr 01 02:18:30 definitely more complex than sharedprefs though Apr 01 02:18:59 yeah i'm looking at the overview right now :-| Apr 01 02:19:02 it's kind of daunting Apr 01 02:19:13 do most of you work on your apps solo or in teams? Apr 01 02:19:15 that's usually my conclusion too. Apr 01 02:20:20 oh boy, accountmanager. gird up your loins Apr 01 02:20:28 lol Apr 01 02:24:40 one thing I really don't understand about AccountManager: why in the world does it require a permission? why can't you just get / set / interact with your accounts based on package + signing certificate, for free? Apr 01 02:25:10 it's okay the play store hides away all those scary permissions Apr 01 02:25:22 you can request all their contact,s phone and location and make it seem like you didn't ask for anything at all Apr 01 02:25:42 interesting Apr 01 02:26:13 i'm still disappointed that google didn't keep their promise of adding a public interface to AppOps Apr 01 02:26:27 they make their money on data mining anyway :/ Apr 01 02:27:16 yeah :\ the new permissions stuff is a big step backwards. I _really_ wish I could just get the built-in system dialog at times, that one is at least pretty clear. Apr 01 02:27:28 yeah permissions / appOps is a sore spot with me too. i think breaking changes are needed, but how can they do that when updates are so slow to come. Apr 01 02:27:42 meanwhile, xprivacy... Apr 01 02:31:52 interesting MS, positions the Surface 3 against iPad. buut ... what can you do with windows on 2G ram :| Apr 01 02:32:20 if base came with 4G, available 8G that would seem more interesting Apr 01 02:32:26 hey guys, i'm using RadioGroup and RadioButtons and for some reason they're rendering first half grey text, and the rest as black Apr 01 02:32:33 anyone with the same issue? Apr 01 02:34:28 Hello! Apr 01 02:36:19 I had a really noob question: I created 2 model classes (using http://www.jsonschema2pojo.org/) and one cannot resolve the symbol Class -- how do I make it so that the one model can know that the other model class exists? Apr 01 02:38:10 this is a basic java question Apr 01 02:38:15 not really android specific Apr 01 02:40:17 Perhaps I'm not googling it correctly -- if i have 2 newly created model classes (and one references the other) in the same directory, what would be the top statement to put in? (example: "package com.myapp.simplechatapp.models;" Apr 01 02:40:50 the 2 classes are GovernmentJobsData and JobsData Apr 01 02:41:05 vinsy: how long you have being coding in java anyway? Apr 01 02:41:11 1 month Apr 01 02:41:24 this is my first time programming an app Apr 01 02:41:36 sorry, i know it's really basic Apr 01 02:42:09 vinsy: you should learn how to programming in java first, not in android API Apr 01 02:42:21 <_genuser_> geez google, you're seriously pissing me off. Apr 01 02:42:44 <_genuser_> who remembers when the last time was when I logged into a seldom used account? Apr 01 02:42:47 Is there a way to get inotify or (FileObserver) working with root (for directories my app does not have read access to)? http://developer.android.com/reference/android/os/FileObserver.html Apr 01 02:42:55 <_genuser_> I mean, I remember the exact dates, right? Apr 01 02:46:04 <_genuser_> jeez why can't you just mail the reset password link to the already configured address instead of asking dumb questions... argh Apr 01 02:46:19 hey all.. I am trying to implement Gestures and.. well.. they’re not working in my fragment.. which has child fragments. going by this: http://stackoverflow.com/questions/21882251/how-to-handle-touch-events-on-a-fragment the onTouch event is not being fired Apr 01 02:46:52 this is in the onViewCreated Apr 01 02:47:06 sorry, onCrateView Apr 01 02:47:48 wow, can't for the life of me, position the up and ActionBarDrawerToggle on my Toolbar properly :/ Apr 01 02:48:01 they seem to demand a certain height and don't respect gravity Apr 01 02:48:21 why position it? Apr 01 02:48:24 isnt it already positioned? Apr 01 02:49:48 tricknology https://www.dropbox.com/s/d5kdzeqz9l9wajy/2015-03-31%2022.48.19.png?dl=0 Apr 01 02:49:58 I want a larger toolbar to move that text box in there Apr 01 02:50:04 EditText* Apr 01 02:50:24 oh gotcha Apr 01 02:50:45 I looked at that and thought “FML, that sucks” Apr 01 02:50:50 lol Apr 01 02:51:01 it will turn out well once I'm done. Apr 01 02:51:04 love how something so simple can be a day;s work Apr 01 02:51:24 right? I thought I'd just flesh out that whole screen today Apr 01 02:51:33 “thought I’d just…” Apr 01 02:51:36 famous last words Apr 01 02:51:45 I thought I’d just add some gestures.. Apr 01 02:51:51 onTouch is not getting called.. Apr 01 02:51:53 lol, the only just that works fast is Observable.just Apr 01 02:51:54 no idea why Apr 01 02:51:59 oh, wtf Apr 01 02:52:00 lol Apr 01 02:52:28 i’m trygin to set onTouchListener() of the main View of the fragment Apr 01 02:52:35 to I can implement gestureListener Apr 01 02:52:40 maybe it's not in focus? Apr 01 02:52:53 (if it needs to be) Apr 01 02:52:55 does it need to be? Apr 01 02:53:05 it’s jsut the main parent view Apr 01 02:53:10 this guy said it does, http://stackoverflow.com/questions/13083871/method-ontouchevent-not-being-called Apr 01 02:53:32 hmm, his was an EditText though Apr 01 02:54:00 oh damn Apr 01 02:54:10 did it work? Apr 01 02:54:17 well this parent view has children.. didnt try Apr 01 02:54:21 ah Apr 01 02:54:33 those children are framelayouts containing fragments Apr 01 02:54:50 but I didn’t know this part: when android handles touch events each event goes from child to parent, so first it's handled Apr 01 02:55:07 maybe it’s getting returned as false somewhere Apr 01 02:55:11 somewhere deep? Apr 01 02:55:32 oh yeah, that there was the whole issue with dealing with buttons/switches in listview items Apr 01 02:55:50 you had to enable or disable that setting on the listview, I forget Apr 01 02:56:28 …. here we go Apr 01 02:56:32 a day;s work Apr 01 02:56:47 I think gestures will be a feature.. Apr 01 02:56:53 for the future Apr 01 02:57:02 doubt it, too confusing Apr 01 02:58:08 :{ Apr 01 02:58:44 Reminds me of Opera though **** ENDING LOGGING AT Wed Apr 01 02:59:58 2015