**** BEGIN LOGGING AT Fri Apr 01 02:59:58 2016 Apr 01 03:02:07 is there a good threading library on android to do stuff like grand central or tbb? Apr 01 03:03:42 Elaborate what these do Apr 01 03:04:12 basically a way of throwing a bunch of tasks at a threadpool Apr 01 03:04:26 (amongs other things) Apr 01 03:04:52 Well, there's Executors. If you want something more sophisticated, there's Rx (but that goes way beyond just threading) Apr 01 03:05:26 throwing a bunch of tasks in a thread pool requires no libraries at all Apr 01 03:05:48 is it built in? Apr 01 03:06:01 If you're going to go with just Executors, make sure you also look up ExecutionCompletionService Apr 01 03:06:16 future/promise? Apr 01 03:06:18 And yes, these two are in the standard library Apr 01 03:06:27 bolts for that. i prefer Rx tho Apr 01 03:06:36 never heard of Rx Apr 01 03:07:07 its different then "promises" but depending on what you want to accomplish, bolts is fialry straight foward and easier to grasp then Rx Apr 01 03:09:14 i think i have a situation that doesn't require promise Apr 01 03:10:57 than* Apr 01 03:11:05 is there any news on whether android will ever adopt more recent versions of java? Apr 01 03:11:24 Plenty of news in that area these past couple of weeks, yes Apr 01 03:11:55 cool! (i dont really pay attention) Apr 01 03:12:17 we might one day get lambdas Apr 01 03:12:44 for better or worse i suppose Apr 01 03:13:00 java lambdas suck :p Apr 01 03:13:04 ^ Apr 01 03:13:25 DrBenway you can have lamdas now you know with retrolamda if its important and what you're use to Apr 01 03:13:42 im using runnables right now Apr 01 03:13:48 it's sort of like a lambda Apr 01 03:14:29 i'm not too sure whats the deal with capturing data closure style Apr 01 03:14:53 it has to be final? and is it always by ref? Apr 01 03:15:17 every object in Java is by ref Apr 01 03:15:39 even ints? Apr 01 03:16:00 ints are not objects Apr 01 03:16:19 ah right Apr 01 03:16:39 i was thinking that grabbing a ref to a stack objects that might not exist would be dangerous Apr 01 03:16:47 but i forgot that java kept ref counts Apr 01 03:17:17 java doesn't keep ref counts Apr 01 03:17:26 how does it track? Apr 01 03:17:38 and what's the relationship with pennyw95 Apr 01 03:17:41 reachability Apr 01 03:17:59 it's not the same a keeping a ref count? Apr 01 03:18:07 no Apr 01 03:18:12 fair enough... Apr 01 03:18:26 ref counting does not work for gc Apr 01 03:18:44 you can use phantom or weak reference Apr 01 03:18:50 i figure whatever keeps track for the gc would keep track of how many refs were pointing at it Apr 01 03:18:57 it's not the same as ref counting Apr 01 03:18:58 to keep track when it no longer exists Apr 01 03:19:02 but you're somewhat counting refs Apr 01 03:19:08 the count is irrelevant Apr 01 03:19:22 you're looking for 0 Apr 01 03:19:28 nope Apr 01 03:19:37 circular references Apr 01 03:19:46 alright, i should just go read on how gc work and come back to talk about it Apr 01 03:19:57 circular ref = memory leak no? Apr 01 03:20:09 only if you're ref counting Apr 01 03:20:18 not in any proper gc Apr 01 03:20:37 how does a gc know whether it should delete a circular ref? Apr 01 03:20:53 reachability Apr 01 03:20:56 if its not reachable anymore i believe Apr 01 03:21:07 yeah that sort of make sense Apr 01 03:21:09 then it gets GCd Apr 01 03:21:55 excluding threads. thats slightly different but i dont know all the finer talking points as to why Apr 01 03:22:20 gc root. Apr 01 03:22:31 threads and classloader Apr 01 03:24:21 DrBenway there is also this thing, i haven't used it yet https://github.com/yigit/android-priority-jobqueue Apr 01 03:24:29 maybe when it hits 2.0 final Apr 01 03:25:07 pfn The Kotlin Android announcement with the lambda explanation of how Kotlin does lambdas (much better than Java for inlined ones) was very interesting Apr 01 03:25:40 CedricBeust, yes, it compiles to inline primitives if interop isn't required Apr 01 03:25:46 it's a neat optimization Apr 01 03:25:50 ah yeah, thats petty much what i needed Apr 01 03:26:16 is there a concept of lockfree queue in java? Apr 01 03:26:26 can it be done? Apr 01 03:26:48 single producer single consumer Apr 01 03:26:59 Of course it can be done Apr 01 03:27:24 any production ready license friendly projects out there? Apr 01 03:27:40 "Perhaps instead of "we must get better at estimates" we should try "let's become less dependent on fortune telling." ah that was good Apr 01 03:31:03 maybe I should become a web developer instead Apr 01 03:31:15 android apps are so time consuming Apr 01 03:31:19 http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html Apr 01 03:31:37 for what they do anyway. You can have a website up and running in no time with a framework like rails Apr 01 03:32:10 DrBenway check out RxJava and RxAndroid Apr 01 03:32:31 rxjava is very cool Apr 01 03:32:43 dont worry about learning the entire API either. shit gets wild Apr 01 03:32:55 but it has really simplified my development Apr 01 03:33:48 thx Apr 01 03:34:35 check out android weekly too if you havent already. every week lately has tons of good information and examples with Rx Apr 01 03:34:35 still figuring out how unit tests with rxjava work Apr 01 03:34:46 CedricBeust, I don't see how it would work without breaking java interop, unless it's an optimization for lambdas created and consumed only within a single compilation unit Apr 01 03:35:20 have you seen windows 10 with bash? Apr 01 03:35:23 holy shit I want that Apr 01 03:35:39 the fixation on bash is really really weird Apr 01 03:35:43 windows is not exactly dev friendly Apr 01 03:36:17 its not just bash. The unix tools are really useful in a lot of cases Apr 01 03:36:26 yeah Apr 01 03:36:28 RustyShackleford, yes, that's entirely how I work on windows Apr 01 03:36:29 it's not even unix tools... Apr 01 03:36:47 being able to grep :) Apr 01 03:36:56 CedricBeust, but yeah, it works how I expect, inlining method and lambda at call site Apr 01 03:37:00 it's native support for Linux/x86_64 ELF binaries on a Windows kernel Apr 01 03:37:05 pfn: google it. Windows is going to provide native support Apr 01 03:37:16 I think it's more an impressive technical achievement than a practical one. Practically, I've been using bash on my Windows laptops for years and it works beautifully. Apr 01 03:37:31 way better than any of the attempts at a linux/unix shell on windows hopefully Apr 01 03:37:47 Windows even has decent consoles now, with sane copy/pasting mechanisms, resizable and reflowing text, etc... Apr 01 03:37:52 I worked on essentially the identical project for Solaris, 12ish years ago... Apr 01 03:38:09 RustyShackleford, won't be any better Apr 01 03:38:24 conemu + msys Apr 01 03:38:47 pfn: Using something close to that but yes, a lot of combinations work just great. Pick the one you prefer. Apr 01 03:39:07 there was a bug related to cleaning a project that uses Timber Apr 01 03:39:22 so I'm on ubuntu for the time being. (windows only bug) Apr 01 03:39:43 i definitely miss the polish of windows Apr 01 03:42:12 RustyShackleford yeah pretty much anything is polished compared to linux :P Apr 01 03:42:17 meh Apr 01 03:42:24 Slackware 4 life Apr 01 03:42:34 but all the linux fanboys claim it just works. Not my experience Apr 01 03:43:06 somehow I buy hardware with bad linux support every time. Apr 01 03:43:20 yey ndis wrapper ! Apr 01 03:43:29 b43-fwcutter Apr 01 03:43:58 also amd graphics drivers Apr 01 03:44:24 bad times man Apr 01 03:58:04 are jack / jill written in java ? Apr 01 04:03:18 " the original IBM JVM was written in Smalltalk " whoa Apr 01 04:38:39 let's play a game of: what stupid thing am I forgetting to do? Apr 01 04:38:46 i'm using retrofit and rxjava Apr 01 04:39:38 i create the observable from the API call, then subscribe to an IO thread and observe on the main thread Apr 01 04:39:54 then, lastly, i call subscribe on that final observable Apr 01 04:40:06 but i keep getting NetworkOnMainThreadExceptions Apr 01 04:40:15 so, i'm forgetting to do something here.. what is it? Apr 01 05:36:47 so quiet :) Apr 01 05:36:58 so is everyone ditching AS for xamarin studio :D :D :D Apr 01 05:47:26 yeah... right Apr 01 05:48:20 https://github.com/mono/mono/blob/master/PATENTS.TXT Apr 01 05:51:17 unless you plan on suing MS for a patent in mono ... i don't think anyone cares Apr 01 05:56:20 pfft Apr 01 05:56:40 microsoft is just trying to look like the good guy while they fund SCOs new patent assults on linux again Apr 01 05:58:57 w4ffles_ there are no good guys Apr 01 05:59:00 not even google Apr 01 05:59:09 im pretty nice Apr 01 05:59:19 only pathological corporations :) Apr 01 05:59:21 but im not so sure about oyu now Apr 01 05:59:25 lol Apr 01 05:59:29 :O Apr 01 06:01:26 g00s: I'd rather avoid MS if I can Apr 01 06:01:40 so I dont plan on using xamarin ;) Apr 01 06:01:58 not mentioning what Icaza did for gnome Apr 01 06:02:11 there's no linux version of xamarin studio so im SOL Apr 01 06:02:30 it would be kind of neat to write something in F# though Apr 01 06:03:42 gordon_ what did he do to gnome? i know he was one of the founders of the project but not much beyond that Apr 01 06:03:49 you can use mono develop or vs code afaik Apr 01 06:05:07 putting mono in gnome ? Apr 01 06:05:21 or in linux Apr 01 06:07:39 https://www.phoronix.com/forums/forum/phoronix/general-discussion/34778-miguel-de-icaza-leaves-linux-for-apple-os-x Apr 01 06:07:42 enjoy comments ;) Apr 01 06:09:35 gordon_: why no xamarin Apr 01 06:09:39 just wondering Apr 01 06:09:53 why should I ? Apr 01 06:10:07 well.. f# might be good Apr 01 06:10:17 but stallman will be mad at me ;P Apr 01 06:10:44 I have used xamarin before, it's pretty neat Apr 01 06:10:52 but then I'm a .net guy primarily Apr 01 06:11:01 I'm just in the last month learning native android Apr 01 06:11:08 I was using .net Apr 01 06:11:14 but this time is gone Apr 01 06:12:18 I mean it's different now.. used to be, you must pay thousands of dollars for a visual studio+xamarin stack Apr 01 06:12:27 now you can be completely pennyless and have it Apr 01 06:12:38 and it's pretty obvious why Apr 01 06:12:50 to create windows mobile apps Apr 01 06:13:04 is windows phone still a thing Apr 01 06:13:12 in europe ? Apr 01 06:13:20 it has more market share than ios ;P Apr 01 06:13:29 in some countries Apr 01 06:13:29 Ashiren: I'm kind of a biased person, I have had a nokia phone since the mid 90's Apr 01 06:13:30 they stil want software for their desktop store Apr 01 06:13:33 several windows phones Apr 01 06:14:00 today I have lumia 1520 Apr 01 06:14:19 my guess is they want to get as many people on to their platform as possible and theb push their hardware more or something Apr 01 06:14:36 today nokias and nokias 10 years ago are very different Apr 01 06:15:13 MS is playing a good guy now Apr 01 06:15:21 still getting money from android on patents Apr 01 06:17:27 so hang on, dont use it Apr 01 06:17:34 and let them disappear ;) Apr 01 06:17:50 or they will change win NT kernel Apr 01 06:17:52 for linux kernel Apr 01 06:18:03 ms linux? Apr 01 06:18:33 aint happenin' but.. Apr 01 06:19:42 android on the front end is really easy to deal with compared to windows phone front end Apr 01 06:19:50 on the development side Apr 01 06:20:20 no idea Apr 01 06:20:26 thought that xaml would be nice Apr 01 06:20:45 I am not a big fan of xaml, wpf, universal apps, metro, etc Apr 01 06:21:08 I use more winforms, mvc, wcf Apr 01 06:21:10 xna Apr 01 06:21:19 xna is dead afaik ? Apr 01 06:21:39 xna is fully supported in visual studio 2015 and windows 10 Apr 01 06:21:43 and windows phone Apr 01 06:21:59 StatusDiscontinued Apr 01 06:22:03 I think the xbox side is dead Apr 01 06:22:03 https://en.wikipedia.org/wiki/Microsoft_XNA Apr 01 06:22:38 monogame is pretty much xna isnt it? Apr 01 06:23:01 it's pretty close I guess yeah Apr 01 06:23:14 "According to an email sent on 31 January 2013, XNA is no longer actively being developed" Apr 01 06:23:32 did microsoft say they were killing robovm? Apr 01 06:23:49 gordon_: they are not making any new versions beyond xna 4 no, however patches are available for visual studio Apr 01 06:23:58 ok Apr 01 06:24:05 so you can develop and deploy xna with vs2015 Apr 01 06:24:15 cool Apr 01 06:24:25 do you still have to wait 40+ minutes to install vs ? Apr 01 06:24:34 of course! Apr 01 06:24:46 android studio takes a while too right Apr 01 06:24:47 so nothing changed :D Apr 01 06:24:53 yeah Apr 01 06:24:56 like... 1 minute Apr 01 06:25:13 they fixed that one install bug witrh visual studio where visual studio searches every network drive folder for something Apr 01 06:25:34 lol Apr 01 06:25:43 its kind of lame xamarin bought roboovm, closed the open source portions then sells to microsoft Apr 01 06:25:44 so my 40 minutes wasnt bad in the end ? :D Apr 01 06:25:54 what Apr 01 06:26:02 xamarin's bought robovm ? Apr 01 06:26:12 gordon_: Your install time with visual studio 2010 would take like 20 times longer if you haveb network drives Apr 01 06:26:34 gordon yup in like october last year Apr 01 06:26:39 :( Apr 01 06:26:47 while it's search, some file is growing, so if you have small hdd, it'd fill it up Apr 01 06:26:49 ahh memories :D Apr 01 06:26:50 so now microsoft owns it :/ Apr 01 06:27:01 so... cross fingers for scala on llvm ;) Apr 01 06:27:58 microsoft is like the new oracle, they just buy everyone now Apr 01 06:28:13 most big companies are like that Apr 01 06:51:10 Hey, I need to create a project with new gradle experimental in android studio. Not getting how to do so. Apr 01 06:52:14 wouldnt changing the project's build.gradle as well the app's build.gradle suffice Apr 01 06:53:29 Anyone here worked on a project using any framework/architecture other than the conventional way? Apr 01 06:53:57 Ashiren, apply plugin: 'com.android.model.application' in place of apply plugin: 'com.android.application' and many more stuff I am needing to do mannually. So I was thinking if there is any proper way of this Apr 01 06:54:34 ah Apr 01 06:55:56 Oooh interplanetary distribution, interesting Apr 01 06:56:21 Ashiren, is there any problem between 'com.android.tools.build:gradle-experimental:0.4.0' and AppCompatActivity ? Apr 01 06:56:55 It shows errors after changing to it Apr 01 07:01:23 woah.. android is dropping java and going with xamarin Apr 01 07:01:40 thats what you get if you dont check date Apr 01 07:01:48 haha Apr 01 07:02:05 happy april fools droids Apr 01 07:02:27 LegendThinker: i dont think so Apr 01 07:04:01 Hi Apr 01 07:04:23 guys, I need some help with exoplayer .. I have a webm video that won't start playback, it gets stuck in prepared state Apr 01 07:04:37 weird thing is video works fine in the stock player Apr 01 07:09:43 gordon_ that link didn't work for me https://www.phoronix.com/forums/forum/phoronix/general-discussion/34778-miguel-de-icaza-leaves-linux-for-apple-os-x Apr 01 07:09:52 is it so old even the internet doesn't care ? Apr 01 07:11:14 it worked hour ago Apr 01 07:11:25 the moronix is down Apr 01 07:14:16 g00s: you broke it Apr 01 07:14:20 are you using mac ? Apr 01 07:16:01 why gradle doesnt see my support library dependency in android library... Apr 01 07:18:00 gordon_ no scala Apr 01 07:19:38 my friend Apr 01 07:19:54 please dont make me mad ;) Apr 01 07:20:18 hehe Apr 01 07:27:07 http://fossbytes.com/microsoft-buys-canonical-kills-ubuntu-linux-forever/ Apr 01 07:27:08 ;) Apr 01 07:32:15 also some space things happen when i entered play developer console :v Apr 01 07:33:04 hm, i'm trying to call myBottomSheet.setState() but getting Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object reference Apr 01 07:33:21 yeah Ashiren but... they somehow burnt it a week ago: https://plus.google.com/+MarcinStepienDev/posts/gTgYWH7FkK1 Apr 01 07:33:26 partially at least Apr 01 07:34:23 g00s, you need to use post Apr 01 07:34:55 or wait your bottomsheet is properly built and visible, setState directly in oncreate will fail like you described Apr 01 07:34:57 adq quality stuff Apr 01 07:35:00 there are a few tickets iirc Apr 01 07:35:25 or you don't setState :') Apr 01 07:36:59 ok. well, my bottom sheet is hidden and i can't seem to pull it up, hmmm Apr 01 07:37:09 well there is another bug Apr 01 07:37:15 oh ffs Apr 01 07:37:44 if you use setstate programmatically, you cannot pull it again without the peekheight or something Apr 01 07:38:03 adq they don't test this shit at all do they Apr 01 07:38:07 no :( Apr 01 07:38:15 it's full of alpha stuff named beta or stable Apr 01 07:38:20 and they rely on us for free testing Apr 01 07:38:32 and they do constantly a/b things it seems Apr 01 07:38:33 i'd get a fucking F if this was a uni homework assignment Apr 01 07:38:50 lol Apr 01 07:38:52 but its OK when you're a multi billion dollar corp Apr 01 07:42:26 Stop. Using. Google. Libs. Apr 01 07:52:48 adq so, if I have 2 views in a CoordinatorLayout, the bottom one gets app:layout_behavior="@string/bottom_sheet_behavior" Apr 01 07:53:04 does the top one also need app:layout_behavior="?" Apr 01 07:53:36 https://www.youtube.com/watch?v=QdmkXL7XikQ Apr 01 07:55:32 nope g00s Apr 01 07:55:52 only the parent view group of your bottom sheet needs it Apr 01 07:56:23 it's like "tell coordinator this is the bottom sheet so it can behave like it should" Apr 01 07:56:32 yeah Apr 01 07:56:42 modulo the bugs :> Apr 01 07:57:18 hm, so maybe NavigationView just can't be a bottom sheet Apr 01 07:57:30 its based on RecyclerView which would have NestedScrollingChild Apr 01 08:09:00 damn.. gradle is shit Apr 01 08:12:14 everything is shit Apr 01 08:12:25 everything is awesome Apr 01 08:12:34 ok, anyone developed android library before ? why it doesnt see my dependency to support library ? Apr 01 08:18:41 Hey, am saving custom events into device Calendar using ContentResolver Apr 01 08:19:01 but restarting the device, all events i've stored well be erased Apr 01 08:19:07 what am missing? Apr 01 08:28:23 ok my bottom sheet works now, i had to put it in NestedScrollView Apr 01 08:28:33 even though NavigationView is based on RecyclerView Apr 01 08:28:45 i guess because its in a ScrimInsetFrameLayout Apr 01 08:28:55 whata bunch of bullocks, who designed this pile of shit Apr 01 08:34:18 haha Apr 01 08:34:43 the views and the view groups and the layouts and the fragments and the activities and the view holders and the view binders and the cursor loaders Apr 01 08:38:36 to the front, to the back, to the left, to the right Apr 01 08:42:35 Can anyone tell me a reliable way to open the keyboard and focus is on one of my text inputs? For some reason my current solution is unreliable and sometimes doesnt work. Apr 01 08:48:51 Wow, why does the soft keyboard stays open when leaving my app? :( Apr 01 08:50:16 does it not automatically bring up Apr 01 08:50:23 i mean when the focus is on text Apr 01 08:50:56 I fixed the first problem by using view.requestFocus() but for some reason when the Keyboard is open and I leave my app, the keyboard stays open n the system screen... Apr 01 08:51:19 I wouldve expected the system to close the keyboard opened by an app Apr 01 08:55:36 why would it Apr 01 08:55:48 you just "left" your app, you didn't destroy the activity where the keyboard started in Apr 01 08:56:47 Hi all. How can you have a camera preview that matches the surface width & height and keep the aspect ratio of the camera? Apr 01 08:57:16 Odaym: Still makes no sense, why woud the keyboard stay open when the user is outside of the app that used it? Apr 01 08:57:27 makes no sense to you cause you don't know Apr 01 08:57:35 read up on activity lifecycle Apr 01 08:57:58 No I mean, it doesn't make no sense to me at all. Whats the use case of this behaviour? Apr 01 09:06:14 how did you leave the app Apr 01 09:07:19 So im starting Camera for the user to capture a Video like this : startActivityForResult(intent, RECORD_VIDEO); Apr 01 09:07:44 Later onActivityResult() I have : case RECORD_VIDEO: // intent etc Apr 01 09:08:06 how im gonna have another case for not recording a Video ? Apr 01 09:08:31 something like : case RECORD_ERROR ? Or just default is ok for this purpose ? Apr 01 09:09:21 result code == result ok Apr 01 09:09:40 or result canceled Apr 01 09:09:56 request code == record video Apr 01 09:10:04 right. thanks Apr 01 09:18:09 Developers console on Google Play is working for u? Apr 01 09:28:18 yea Apr 01 09:40:16 Is there a channel for espresso testing? Apr 01 09:50:14 Odaym: tnx now works also for me Apr 01 10:17:27 is there anyway to debug generation of R file Apr 01 10:17:29 ? Apr 01 10:17:41 seems like mine isnt generated for library project Apr 01 10:53:37 hi, anyone had an issue with inflating menu items in onCreateOptionsMenu method and getting this exception? java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.support.v7.view.menu.MenuView$ItemView Apr 01 10:56:45 my parent view of the layout is a linearlayout, but besides the toolbar there are 2 framelayouts in it Apr 01 11:07:44 depends on what you did Apr 01 11:07:53 shouldn't happen, maybe you're grabbing the wrong id Apr 01 11:12:44 hm, i dont think so Apr 01 11:12:48 checked it a few times Apr 01 11:14:11 tried to change framelayouts to relative ones…but doesnt change anything either…i dont get why there is a classcastexception. Apr 01 11:18:30 defuex: https://android.googlesource.com/platform/frameworks/support/+/jb-mr2-release/v7/appcompat/src/android/support/v7/internal/view/menu/MenuView.java Apr 01 11:18:46 defuex: MenuView$ItemView is not a subclass of View Apr 01 11:19:12 defuex: nor does *Layout implement it Apr 01 11:19:24 defuex: so that cast is never going to work Apr 01 11:19:38 defuex: alternative explanation: ItemViews are 'special', not regular views Apr 01 11:19:57 you can't just stick a regular view in a toolbar Apr 01 11:21:48 at least, not in that way Apr 01 11:41:59 Hey. I'm trying to achieve something like this: http://imgur.com/HBwhcVg using GridLayout. So far I've managed to get one piece of TextView besides the circular Image. But it's the part of making the remaining textfield go underneath the first one that I can't work out. code: http://pastebin.com/SWYTZRVD Apr 01 12:02:28 Hello, I am trying (and failing) to force the modification date of a file with function : File.setLastModified(0); But it doesnt works, and always returns false Apr 01 12:02:41 Am i missing something or this function just doesnt works ? Apr 01 12:03:04 why can't i put a regular item view in the toolbar like getMenuInflater().inflate(R.menu.item_done, menu); return true; ….i thought this is a standard procedure and it normally works Apr 01 12:03:26 and im not putting a random view in it Apr 01 12:03:52 *Layout is a subclass of ViewGroup, which in turn is a subclass of View Apr 01 12:04:14 you can only inflate menuitems into a menu Apr 01 12:04:17 not view hierarchies Apr 01 12:04:54 http://developer.android.com/guide/topics/resources/menu-resource.html Apr 01 12:05:20 what does your menu resource file look like? Apr 01 12:06:53 https://gist.github.com/DeFuex/3e2bd32cbda123f2b858a854adca9c4a Apr 01 12:08:27 ahh, I misunderstood, I guess Apr 01 12:08:59 hmm, can't tell without seeing all the code Apr 01 12:09:10 can i show you? Apr 01 12:09:14 sure Apr 01 12:09:24 the layout, the activity Apr 01 12:09:29 use a pastebin Apr 01 12:11:53 Did anyone used successfully File.setLastModified() function ? Apr 01 12:20:21 I can't really see anything wrong with the code you posted Apr 01 12:20:40 maybe, clean and rebuild Apr 01 12:20:46 i try that again XD Apr 01 12:20:59 possibly, or have a closer look at the stacktrace of the error Apr 01 12:21:30 how do you know it is associated with onCreateOptionsMenu in the first place? Apr 01 12:21:43 does it crash during getMenuInflater().inflate(...)? Apr 01 12:21:48 yes Apr 01 12:23:38 and i don't know. isn't it a standard life cycle procedure? Apr 01 12:35:49 seems like butterknife cannot be used in library project ? Apr 01 12:50:45 Ok so I created this GridView: http://pastebin.com/MNthHrg3 and the preview is showing me all these items and subitems in the gridview. But how do I actually fill those items with my own stuff? Is it possible to do in XML ? I'm very confused by the documentation Apr 01 13:19:26 hi! Apr 01 13:19:42 anyone here? Apr 01 13:24:23 yeah. what's up? Apr 01 13:35:09 Hey, Can anyone suggest me a few books for learning android. At present I am already having 1 year with android but a lot of holes in my knowledge. Apr 01 13:36:05 so do everyone Apr 01 13:37:41 Ashiren, No nice reference book is available? Well its obvious not to expect that with so quick change in tech Apr 01 13:38:02 But loosing confidence repeatedly Apr 01 13:38:06 i dont use books Apr 01 13:38:36 ok, thanks :) Apr 01 13:51:04 LegendThinker: Maybe try the Big Nerd Ranch Guide Apr 01 13:51:37 they just released a 2nd edition which has been updated for many recent developments Apr 01 13:52:10 But books obviously have a hard time keeping up with the pace of development Apr 01 13:53:12 cabbage2, for any one it will be hard. :D . I think thats why not so much of famous books on it Apr 01 13:54:25 haha, yes, there's just too much data, not just android or programming, to process in today's world Apr 01 13:54:39 but we do our best Apr 01 13:54:57 Not able to find a free download for it. Can you please point me. Apr 01 13:58:19 http://pastebin.com/YxPpQbCc can i define in this way? Apr 01 14:03:16 does the camera have some specific aspect it only supports? for some of the "supported" preview sizes the aspect ratio is way off Apr 01 14:28:15 4:3 and 16:9 only Apr 01 14:29:09 rhcake, depends on camera chip completely. Apr 01 14:29:14 Don't rely on it :) Apr 01 14:30:03 so some previe sizes are really useless? :/ the 16:9 supproted sizes all look wrong Apr 01 14:30:09 preview* Apr 01 14:30:37 what are they that they look wrong Apr 01 14:30:38 Do you have them rotated the wrong way? Apr 01 14:32:20 Who gets an invite to Google I/O? Apr 01 14:32:24 for* Apr 01 14:33:31 i set up the dispaly orientation as in the example, and the preview texture is also the correct size, yet the image is either just a bit stretched or squashed Apr 01 14:33:53 1280x720 looks terrible, 1600x1200 is fine Apr 01 14:34:24 For an api call, I have to submit todays date in the format of 2016-04-01, I'm terrible with Date/Calendar classes, and I know there are some popular data libraries. I only need it for this one api call, so what's the best way get the date in that format? Apr 01 14:43:02 SimpleDateFormat Apr 01 14:44:23 so, I made a WebView, and in my webview I am just doing a simple resolution check, but I don't get full resolution reported Apr 01 14:44:27 any ideas why that might be? Apr 01 14:44:32 Galaxy Tab 4 Apr 01 14:45:01 specs say 1280x800 but I only get 1280x775 and googling for various things doesn't turn up any results, like when I use 775 I get basically everything except results that are relevant Apr 01 14:45:31 hiding the status bar doesn't seem to affect anything resolution wise, which is also odd Apr 01 14:46:06 Do you have a padding? Apr 01 14:46:48 nope Apr 01 14:46:58 margin: 0; padding: 0; Apr 01 14:47:23 Not CSS padding silly. Apr 01 14:47:25 View padding. Apr 01 14:47:28 Or margin. Apr 01 14:47:37 oh, hmm, ok I'll have to check I guess Apr 01 14:48:42 Also, you're probably doing something wrong with trying to get screen resolution this way anway Apr 01 14:49:12 well, I mean, the resolution is reported correctly when I use e.g. chrome developer tools to "virtualize" a mobile resolution Apr 01 14:50:05 1280x720 is absolutely perfect Apr 01 14:50:10 that's 16:9 Apr 01 14:52:23 pfn, 775 not 720 Apr 01 14:52:37 (in my case) Apr 01 14:54:39 that's what your display reports as usable Apr 01 14:54:41 so what Apr 01 14:54:51 either upscale to fit or pad Apr 01 14:55:55 yeah, I mean I'm contemplating probably just targetint 720p and padding Apr 01 14:56:12 but still, was hoping to hit that nice exact 1280x800 which the specs say the device should have Apr 01 14:56:33 also, it's a bit bothersome to my OCD to not know why it's not reporting the full 800 Apr 01 14:56:47 does view appear to fully cover the display Apr 01 14:57:32 Zharf, yep, I check that a few times with e.g. a sewing needle to make sure that the screen edges of the app were flush when I hit the home screen button to exit and my home screen is the same size as far as I can tell Apr 01 14:58:05 I'll investigate the view padding thing, maybe that's it Apr 01 15:00:36 flappynerd, huh Apr 01 15:00:52 You're actually designing UI exactly to a fixed resolution? O.o Apr 01 15:01:02 (web designers...) Apr 01 15:03:31 Mavrik, well, ideally no, but for a first pass we may limit/target only specific resolutions Apr 01 15:03:46 and only one resolution actually Apr 01 15:03:48 That approach will hurt you. Apr 01 15:03:51 It will hurt you a lot. Apr 01 15:03:52 probably Apr 01 15:04:09 If you're not going to build flexible UI from the start. Apr 01 15:04:23 And you'll do funny stuff like detect resolutions instead of positioning items relatively. Apr 01 15:04:40 You'll never recover from fixed UI and be able to make it work on other devices elegantly (and without serious rewrites) Apr 01 15:05:08 Point is to design UI in a way that fits the current screen (e.g. you define fixed element sizes and have a flexible part of UI) Apr 01 15:05:15 aight, well I suppose then it's time to take a more serious dive back in to my original approach Apr 01 15:16:27 my viewproperty animator won't work on my android 4.4 Apr 01 15:16:31 any reason? Apr 01 15:17:02 you did it wrong Apr 01 15:17:21 #1 reason Apr 01 15:17:51 works on my 5+ phones Apr 01 15:17:58 not 4.4 Apr 01 15:18:08 any reason? Apr 01 15:18:14 hello, cardview radius problem pre lolipop devices(a white border and image not clipped), any workaround ? Apr 01 15:20:22 workaround is to clip and roundit yourself Apr 01 15:20:41 you did it wrong Apr 01 15:20:43 #1 reason Apr 01 15:20:43 there is a flag in xml for removing the padding (white border i guess for you) Apr 01 15:20:52 compat something Apr 01 15:21:13 app:cardPreventCornerOverlap="false" app:cardUseCompatPadding="false" Apr 01 15:21:19 yeah something like that Apr 01 15:21:24 no effect :/ Apr 01 15:21:25 pfn: fuck off dude Apr 01 15:21:34 they said they don't round on preloli due to performance Apr 01 15:21:44 does viewpropertyanimator work below 5? Apr 01 15:21:51 yes Apr 01 15:22:00 again, you did it wrong, #1 reason Apr 01 15:22:25 MartialLaw, it was added in API 12 according to doc Apr 01 15:22:36 and stay polite, please Apr 01 15:23:01 alright, confirmed, only 4:3 preview sizes look normal >_> wtf is up with that Apr 01 15:36:03 hmm, so... probably a good idea to make ABI splits when releasing stuff that uses opencv and ffmpeg... Apr 01 15:39:10 Can anybody advice good Rsync library for Java/Android? Apr 01 15:46:11 http://www.hastebin.com/ocomoqerid.avrasm I am trying to animate a card flipping over and turning into another card. The exact instance is the top block, the abstracted to the issue is the bottom. I am kind of loss anyone have a clue? Apr 01 15:47:49 The animations aren't crashing when I try to create the animation through xml and use the views startAnimation(animation) but, I am having issues rotating around the y axis through xml Apr 01 15:49:55 adq, hmm, have you done anything with opencl? cl code looks very similar to renderscript Apr 01 15:50:04 Looks like something weird is happening with OpenGL during the 3d rotation, but I don't really have a clue why. If I can't figure out this issue ill futz around with the 2d solution. But, this one is much clearner and looks better. Apr 01 15:50:23 pfn, nope :x but indeed they kept more or less same prototyping from i have read Apr 01 15:50:59 yeah, not quite the same though Apr 01 15:51:28 * pfn is just fucking around with opencv right now Apr 01 15:53:01 so opencv uses opencl, noice Apr 01 15:53:03 pfn: that is what i am fucking with for past 2 months. :D Apr 01 15:53:11 mbarisa, you get protify working? Apr 01 15:53:19 pfn: yeah :) Apr 01 15:53:25 mbarisa, I'm screwing around with it for the past day... Apr 01 15:53:40 javacpp makes it easy to work with Apr 01 15:53:43 "easy" Apr 01 15:54:00 don't have to deal with jni, don't have to enhance protify to support ndk :) Apr 01 15:54:10 what exactly are you working with opencv? Apr 01 15:54:11 pfn, just curious, what do you process with opencv? Apr 01 15:54:31 experimenting with hand tracking and gestures Apr 01 15:54:43 i work with java as well, there is not a lot performance degradation on what i am using Apr 01 15:54:57 there's some old demos that do that already, but want to come up with something unique with it to submit for the androidexperiments thing Apr 01 15:55:12 eheh Apr 01 15:55:33 so first thing's first, figure out opencv ;-) Apr 01 15:55:50 it is quite mouthfull :D all those crazy Mat's :D Apr 01 15:56:17 MatOfPoint, MatOfFloat, MatOfPoint2f, MatOfMatOfMatOfMatOfMat :D Apr 01 15:57:25 I know this is an android dev chat so don't flame me... but I'm looking for a php environment that's like android studio... where I can layout sites in a similar way Apr 01 15:57:35 phpstorm Apr 01 15:57:50 going to jetbrains would have solved that Apr 01 15:58:27 pfn, Does it have something for graphical layouts etc? Apr 01 15:58:30 dunno Apr 01 15:58:34 don't particularly care Apr 01 15:58:38 graphical layout tools suck Apr 01 15:59:15 pfn, the thing is I get it.... not the graphical layout designer thing in android studio.... Apr 01 15:59:25 But the text view with a preview at the site... Apr 01 15:59:41 get phpstorm, try it Apr 01 15:59:49 not going to go any further, you're asking the wrong place Apr 01 15:59:51 there's #php for a reason Apr 01 16:00:56 I did but in php.... they don't know android studio so i think this was a better place. I'll try phpstorm Apr 01 16:02:29 TinFury: or WebStorm Apr 01 16:02:48 k thanks I'll take a look Apr 01 16:08:56 is kotlin ever becoming a mainstream thing? Apr 01 16:09:46 pfn: how to add module to protify? because build on some more complex project doesn't work.. it is a library module fyi Apr 01 16:10:03 mbarisa, if you're doing a gradle build, it should work automatically Apr 01 16:10:16 mbarisa, as long as it's defined properly in settings.gradle and have the dependency in your project Apr 01 16:10:38 it crashes on runtime, because it cannot find a class from that library module Apr 01 16:10:47 but without protify it worked fine Apr 01 16:11:38 mbarisa, pastebin the 00-gradle-generated.sbt Apr 01 16:12:28 2 sec Apr 01 16:12:48 and the error, of course Apr 01 16:12:54 along with what your project structure should be Apr 01 16:14:40 pfn: http://pastebin.com/Cbd84Zq7 Apr 01 16:14:47 i will send error as well, 1 min Apr 01 16:15:32 so you have keenClientAndroid and app Apr 01 16:16:21 pfn: yes Apr 01 16:16:31 and keenClientAndroid breaks Apr 01 16:16:33 mbarisa, where's the library module? Apr 01 16:16:39 in root of project Apr 01 16:16:41 or is that keenClientAndroid Apr 01 16:16:51 that keenClientAndroid is library module Apr 01 16:17:01 so you're saying it can't find keenClientAndroid? Apr 01 16:17:35 pfn: http://pastebin.com/dhsR9FVD Apr 01 16:18:50 pastebin the build log, too, ; clean ; app/android:run Apr 01 16:19:02 ; clean ; app/android:run ; app/protify Apr 01 16:20:33 am i constantly dc'ing from irc? i use a znc bouncer and my client is constantly disconnecting, but i can't tell if it's just client <-> znc, or znc <-> irc that's breaking Apr 01 16:20:59 sarbs, if znc were disconnecting, you'd get a message from *status Apr 01 16:21:15 so it's probably your client Apr 01 16:21:26 * pfn hides join/part/quit Apr 01 16:21:31 that's what i thought.. k Apr 01 16:21:33 yeah, i do too lol Apr 01 16:24:52 pfn: will let you know in a minute, maybe we figured it out Apr 01 16:25:01 ? Apr 01 16:25:39 mbarisa, oh, and integrating this into android studio isn't hard, I think I have step-by-step in the readme Apr 01 16:26:21 https://github.com/pfn/protify#full-intellij-idea--android-studio-integration Apr 01 16:26:48 *sigh* Apr 01 16:26:56 I wanna beat Android gradle team with a stick. Apr 01 16:27:01 Mavrik, sbt ;-) Apr 01 16:28:58 * sarbs coughs https://buckbuild.com/ Apr 01 16:29:06 yeah, 'cept buck is invasive Apr 01 16:29:14 sbt/protify work without modifying existing builds Apr 01 16:29:42 and without having to duplicate a separate build Apr 01 16:30:01 Mavrik what gradle version are you using ? Apr 01 16:30:05 you can set up buck to not proscribe a file structure, if that's what you mean Apr 01 16:30:17 1.3.1 for releases, 2.1.0-alpha4 for development Apr 01 16:30:36 sarbs, I mean, for the fast-build stuff, you need to setup exopod crap, and then you have to setup the entire build file, duplicating the build directives Apr 01 16:30:44 hm i think i've been on 1.5.0 for months Apr 01 16:30:44 as far as buck is concerned it's just a bunch of BUCK files at various points in a tree, the code can live anywhere Apr 01 16:30:59 Was looking at buck but rewriting scripts is a lot of hours -_- Apr 01 16:31:17 The tools name is Buck, and it likes to .... Apr 01 16:31:21 build Android apps Apr 01 16:31:22 ah, perhaps i'm not familiar enough with how sbt/protify work then Apr 01 16:31:29 depending on how complex your build is, adding sbt is a 5 minute affair Apr 01 16:31:31 sarbs, I don't see support for proguarding test APKs there either. Apr 01 16:31:40 s/is/can be/ Apr 01 16:32:05 sarbs, I've written it to import gradle build definitions automatically Apr 01 16:32:19 Mavrik i'm no expert on its build rules but i would imagine you could apply proguard to a test jar just like you could to a library jar.. it def supports proguard Apr 01 16:32:20 sarbs, so however you have your gradle project setup (minus custom tasks); is reflected automatically in sbt Apr 01 16:32:34 pfn ahh, gotcha Apr 01 16:32:41 Mavrik, ah, someone else here was complaining about that, s73v3r maybe Apr 01 16:32:48 my solution: include tests in debug apk Apr 01 16:32:51 yes, buck does definitely not support automatic migrations afaik Apr 01 16:33:19 sarbs, https://github.com/pfn/android-sdk-plugin/tree/master/sbt-test/gradle-build Apr 01 16:33:25 all of those are plain gradle projects Apr 01 16:33:27 with no modification Apr 01 16:33:37 and they build with minimal sbt machinery Apr 01 16:33:48 u2020 being the exception with needing a little help: https://github.com/pfn/android-sdk-plugin/blob/master/sbt-test/gradle-build/u2020/build.sbt Apr 01 16:33:53 Also fuck the dipshit Apr 01 16:33:59 Who included Guava in Espresso. Apr 01 16:34:12 Why would you include a 20k+ library in that -_- Apr 01 16:34:23 17k methods, last I heard Apr 01 16:35:04 Whatever. espresso-core is 20k+ according to counters Apr 01 16:35:07 Which is awsum :) Apr 01 16:35:25 but yeah, I include it in my main apk and proguard it all together Apr 01 16:35:28 makes life much easier Apr 01 16:35:28 the more methods the better :D Apr 01 16:35:36 and can multidex it altogether Apr 01 16:38:04 * pfn uses guava in all his java projects anyway Apr 01 16:38:05 * pfn shrugs Apr 01 16:38:18 then you can exclude it from your test apk Apr 01 16:38:38 Mavrik, for that matter, test apk supports multidex if you use the multidextestrunner Apr 01 16:38:51 No it doesn't, it only supports multidexing of main APK. Apr 01 16:39:02 well, dunno about the gradle plugin Apr 01 16:39:03 And I'm having issues with test APK right now Apr 01 16:39:06 but there is a multidextestrunner Apr 01 16:39:09 pfn: works now, but there are some anomalies, we had to add a try catch to handle runtime exception, and we don't get that exception with just running in android studio :D i will try to explain better when i figure it out :D Apr 01 16:39:30 Mavrik, http://developer.android.com/reference/com/android/test/runner/MultiDexTestRunner.html Apr 01 16:39:43 unless I'm mistaken, I assumed that was for the test apk Apr 01 16:39:58 but I suppose it could be for the main apk Apr 01 16:40:01 in which case, fucking dumb :P Apr 01 16:40:05 that's what I thought as well Apr 01 16:40:07 buuut Apr 01 16:40:07 https://developer.android.com/tools/building/multidex.html#testing Apr 01 16:40:10 Note: Use of multidex for creating a test APK is not currently supported. Apr 01 16:40:10 yeah Apr 01 16:40:25 Mavrik, well, you can try sbt and have it proguard for you :) Apr 01 16:41:07 and/or multidex Apr 01 16:41:49 weird, this opencv faced detector works so much better on my nexus 9 than my 6p Apr 01 16:42:50 camera quality difference? Apr 01 16:42:58 shouldn't be Apr 01 16:43:07 especially since the image is subsampled anyway Apr 01 16:43:20 any crappy quality difference gets sampled out Apr 01 16:46:27 lens difference? Apr 01 16:46:58 unlikely, looking at the resulting image it's processing from Apr 01 16:55:02 is it the same image, loaded from a file? Apr 01 16:55:59 it's from camera, doing live detection, not an image Apr 01 16:56:17 anyway, face detection isn't what I'm after, using other methods should do what I want better Apr 01 16:56:38 if it were face detection, I'd just use gms mobile vision Apr 01 16:57:28 is it cat detection you’re after? Apr 01 16:58:47 Hello. I am trying to make a cordova plugin that checks whether mock locations are enabled on the device. Here is my code: https://github.com/RashadSaleh/cordova-check-mock-locations-enabled-plugin/blob/master/src/android/CheckMockLocationsEnabled.java However, I am getting the error: cannot find symbol "getActivity()". Apr 01 16:59:10 I have minimal experience with native android development so any help would be greatly appreciated. Apr 01 17:00:14 I also tried "this" instead of getActivity() and I got another error. Apr 01 17:06:13 Is anyone using the Gallery widget? I'm thinking of doing an acitvity with images 3 cells x 6 rows that are scrollable vertical. Like scrolling through a profile on Instagram basically. Can I use Gallery for this? Or is it better just create a Scrollview and fill it with the images ? Apr 01 17:16:51 OK I solved the previous error by using "this.cordova.getActivity().getContentResolver()" which worked; but now I am having the error: "error: package Settings does not exist" Apr 01 17:17:06 For the snippet: "Settings.Secure.ALLOW_MOCK_LOCATION" Apr 01 17:17:11 Can I do this? In one file I have DrawerLayout -> CoordinatorLayout -> FrameLayout (holds fragments). In another file (fragment_layout) RelativeLayout -> RecyclerView & FAB. Can I have the FAB reference the CoordinatorLayout in the other file? The reason I ask is because I simply cannot get the ScrollAwareFABBehavior to work... Apr 01 17:17:16 What should I import to solve this problem? Apr 01 17:20:29 with retrofit 2.0.1, if I'm testing for HTTP errors using a MockWebService, how would I go about firing an error? I have delegate and behavior fields on my mock service Apr 01 17:20:37 I get using delegate.returningResponse().myMethod() which is awesome Apr 01 17:20:42 OK solved it through import android.provider.Settings; Apr 01 17:21:56 either throw an IOException for network error, any RuntimeException for converter error, or return a non-200 Response object Apr 01 17:22:16 actually maybe you pass the error to the delegate Apr 01 17:22:19 not throw Apr 01 17:22:51 yeah. Calls.failure() Apr 01 17:23:17 hahaha Apr 01 17:23:39 this application managed to make art abort Apr 01 17:24:36 http://d7a6f6d28bd3b2a1.paste.se/ beautiful Apr 01 17:25:55 Hey, my IRC is being weird.. can anyone see this? Apr 01 17:26:01 no Apr 01 17:26:17 Guess not then.. Apr 01 17:26:58 JakeWharton: Attempting... Apr 01 17:27:40 problem might have been that I tried returning a Result instead of a Response Apr 01 17:30:00 JakeWharton: am I right or butterknife cannot be used in android library project ? Apr 01 17:30:12 also, long time no see! Apr 01 17:32:16 jimmies = rustled. the camera reports a supported preview size of 1280 by 720, when i set the view to those dimensions the image is stretched/squashed Apr 01 17:32:35 Anyone know where to declare ads on/off in the play store developer console? Apr 01 17:32:47 if i completely ignore the reported height and recalculate that myself (in this case to 960 to make the iamge 4:3) Apr 01 17:32:52 then the preview looks fine Apr 01 17:32:55 gordon_: correct Apr 01 17:36:36 Wow, I wish someone told me that when you modularize layouts for material design, each module should have it's own coordinatorlayout Apr 01 17:38:25 before I go down this dark and expensive road, if my app only connects to servers that I own, can I just use self-signed certificates and add them to a custom android keystore inside my app?? Apr 01 17:40:09 sure why not Apr 01 17:40:16 you could, but why not use Let’s Encrypt? Apr 01 17:40:33 cuz you don't even need a trusted third party if you already trust Google Play? Apr 01 17:41:04 right, but the reason usually is cause signed certs cost money, and Let’s Encrypt is free Apr 01 17:41:30 IggyGee yeah i wondered about that, if you have a few fragments and the need coordinatorlayout, do you put CL in each fragmant or just make sure there is one at the top of the view hierarchy somewhere ... Apr 01 17:41:52 but some things seem to require CL be immediate parent Apr 01 17:42:08 JakeWharton: Awesome, that worked! delegete.returning(Calls.failure(new IOException())) for network errors, delegate.returning(Calls.response(Response.error())) for http errors, returningResponse(casted object) for successes Apr 01 17:42:11 If anyone was wondering about the issue I mentioned earlier. https://code.google.com/p/android/issues/detail?id=191935 Apr 01 17:42:12 not just "up there somewhere" in the view hierarchy Apr 01 17:42:22 missingno: how would that work? I want to be able to talk to some REST servers over ssl -- how does google play help? Apr 01 17:42:32 the problem ssl solves Apr 01 17:42:50 is getting a trusted certificate down to the client without a MITM attack replacing it and intercepting all following communication Apr 01 17:42:58 meh Apr 01 17:43:01 since the download of the APK is presumably down of SSL by google play Apr 01 17:43:08 they basically take care of delivery for you Apr 01 17:43:30 I'll just send these patches to the owner of this application in an email and tell him that this application leaks like hell and I'm going to start rewriting it from scratch Apr 01 17:44:15 so, build the certificates into the apk? Apr 01 17:44:53 Zharf: Just do the pull request. It’ll be the easiest way to actually get your improvements into the app Apr 01 17:44:56 kommunicate, yes. Apr 01 17:45:06 You can just embed it into a String if you want. Apr 01 17:45:14 And then set it on SSLFactory and what's it. Apr 01 17:45:24 s73v3r, I don't care about the app anymore, it's impossible to fix Apr 01 17:45:56 awesome, thanks folks Apr 01 17:45:57 g00s: I guess I found out... after 3 or so hours Apr 01 17:46:41 also I still won't do github :p Apr 01 17:48:30 there is absolutely nothing wrong with github. It’s a site for people to collaborate on software. that’s it Apr 01 17:49:03 But but hipster cred. Apr 01 17:49:19 I don't do people either Apr 01 17:49:41 bring back clear case Apr 01 17:49:44 you’re doing that right now Apr 01 17:49:50 kommunicate lol Apr 01 17:49:53 kommunicate: you go to hell. you go to hell and you die Apr 01 17:50:08 lol Apr 01 17:50:14 i think ibm said 1 CC admin for every 20 or so users Apr 01 17:50:28 the great debate: clear case vs source safe? Apr 01 17:50:39 clear case Apr 01 17:50:57 or.. swallow strychnine? Apr 01 17:51:09 despite the huge pain in the ass it was, it didn’t regularly commit the cardnial sin of a VCS Apr 01 17:51:27 which was losing your stuff :P Apr 01 17:52:09 yup. with clear case, if you lost your stuff, it at least was because you fucked up. VSS would lose your stuff even if you used it as you were supposed to Apr 01 17:52:42 s73v3r you could usually find pieces of it in the directories AA - ZZ :P Apr 01 17:53:04 in the form of hawking radiation Apr 01 17:58:29 gradle goes on top of ant?, it's a completely different thing, isn't it? Apr 01 17:58:30 view with bottom sheet behavior should be able to take something like app:state="expanded" Apr 01 17:58:46 guanche totally different Apr 01 17:58:52 does anyone know of a really good example of authenticating and managing multiple user accounts requiring remote login in an android app? Apr 01 17:58:53 gradle is like ant + maven Apr 01 17:59:00 there's no need to use ant if you're using gradle Apr 01 17:59:09 guessed so, are there any bits to push to obtain command-line output? Apr 01 17:59:24 or care to explain your own setup for managing user accounts and logins for an app? Apr 01 17:59:26 guanche: what do you mean? Apr 01 17:59:40 gradle runs aapt, dex, etc, doesn't it? Apr 01 18:00:04 I'm using Authenticator in the SDK, and it just feels.... awful. Apr 01 18:00:22 I want to know how it does it, same as ant would show if requested Apr 01 18:05:11 ./gradlew assembleDebug --info Apr 01 18:11:06 You probably can't access header information in the a retrofit mock service, can you? Apr 01 18:11:56 what header information? Apr 01 18:12:04 Authentication token Apr 01 18:12:16 your implementing the interface Apr 01 18:12:18 you're Apr 01 18:12:42 your implementation of the interface doesn't run anywhere beyond being called directly, that is, it never goes through the HTTP client Apr 01 18:13:45 right, so there's a design flaw in my api, then :( Apr 01 18:18:30 inject the thing which stores the token into the mock implementation and just look at it directly Apr 01 18:19:53 guanche: if you're using android studio you can see the gradle output in "gradle console" window Apr 01 18:20:01 hey guys Apr 01 18:20:10 do you add keywords to your AdMob ads? Apr 01 18:20:34 If I leave it blank: can't google better decide what this user want to see? Apr 01 18:23:34 I think I did spot a text-field allowing to pass it extra arguments, but I prefer a terminal, than the ide kommunicate Apr 01 18:23:57 i'm still not sure what you're trying to do Apr 01 18:24:25 my goal is to get rid of it, and of the xml files, and build an app using autoconf/automake Apr 01 18:24:32 don't do that Apr 01 18:24:35 that's not a good idea Apr 01 18:25:15 I achieved that, but it seems that as long as I extend my main activity with AppCompatActivity, adb logcat says it can't find my main activity Apr 01 18:25:44 and the app stops with a popup on my mobile Apr 01 18:26:20 that could be caused by code or build issues Apr 01 18:26:31 why even go through the hassle though? Apr 01 18:26:56 i'm blown away that you even got your app to build at all using automake and autoconf instead of gradle though Apr 01 18:27:02 but I'm already noticing gradle packs the appcompat-v7, v7, impl, in a class, I was doing it through aapt Apr 01 18:27:04 that's seriously impressive Apr 01 18:27:36 it doesn't have anything of impressive, I'm limited to a single class per java file, which for me is not a problem, but Apr 01 18:28:19 compile times overall are 10 times smaller Apr 01 18:29:41 on my laptop, which is a dual-core 64 bits, android studio is so low that's close to unusable Apr 01 18:29:51 Do I need a separate class for every function I want to run asynchronously (if I want to use AsyncTask)? Apr 01 18:29:56 and that is with an operating system compiled from scratch Apr 01 18:30:51 it's java.. compile times aren't going to be nearly as much of an issue as the time you spend managing dependencies Apr 01 18:30:57 Currently I have a data fetch helper-class that can fetch various types of data (people, animals) and then pass them to a listener when the data is ready. Apr 01 18:31:16 My plan was to.. somehow keep an instance of that class in a separate thread, and then just talk to it when needed, but apparently it isn't quite that easy Apr 01 18:32:14 w0bni: that would be a service Apr 01 18:33:24 I'm new to android, but it seems too bloated and overcomplex for the score Apr 01 18:33:30 s73v3r: hm yeah, that does look like what I want Apr 01 18:34:34 guanche: try Instant Run - an even more complicated way to try to speed things up Apr 01 18:34:38 so having a service communicating with my server and utilizing a combination of callbacks and return values to communicate with my activities is a viable solution? Apr 01 18:35:14 (I currently plan on returning an ArrayList immediately from cache if possible, and then passing a new list through a callback if the service determines that the data has changed) Apr 01 18:36:17 another incompatibility for a great future Apr 01 18:36:26 guanche there are some guides on tuning As but yeah, bloated java ftl Apr 01 18:36:34 why not use existing standars? Apr 01 18:37:12 what existing standards? Apr 01 18:37:35 the first ones that have served over 40 years? Make is one Apr 01 18:37:59 a well used make, not like the guys at adobe do with their flash player Apr 01 18:38:13 make isn't really used for java tho Apr 01 18:38:21 there is a reason why make has been superceded Apr 01 18:38:25 even as suck as Ant was, it replaced make Apr 01 18:39:01 If someone could spare some time to help me figure this out, I'd really appreciate it. I’ve got an android toughie (for me) here. A gridview class receives a bundle from an intent. Then I set up an onItemClickListener that, if the one bundled string is == “Categories”, Apr 01 18:39:04 make <3 Apr 01 18:39:10 it starts an intent that changes the overwrites the bundled string and passes it again to the same gridview activity(that populates another grid with different items based on the new string), else if the bundled string == “Items” it starts a separate new activity. Apr 01 18:39:16 The problem is that I don’t think the onItemClick is getting the bundle Apr 01 18:39:25 http://pastebin.com/qnuwEauv Apr 01 18:40:55 more reasons to not use pastebin.com, they do their jokes with comic sans Apr 01 18:41:59 I've posted to stack, reddit, #learn-programming, and no one has been able to help so far. I'm feel like I'm setting this whole thing up incorrectly Apr 01 18:42:11 any idea why the adview shows at the top (instead of bottom) ? Apr 01 18:42:12 https://www.dropbox.com/s/xarjriq4zsr4rxg/Screenshot%202016-04-01%2020.41.55.png?dl=0 Apr 01 18:42:13 I feel like* Apr 01 18:44:27 JavaN00B: I don’t think you want to use the application context in your intent Apr 01 18:44:47 also, why do you implement onItemSelected if you don’t do anything with it? Apr 01 18:45:40 that's for later, ignore the empty areas for now Apr 01 18:45:41 have you set a breakpoint in the onItemClick to see what’s going on? Apr 01 18:47:00 I have no idea what that is haha Apr 01 18:47:27 you’re better off going to learn java, then Apr 01 18:48:40 Good thing I don't have comic sans installed, pastebin looks normal to me Apr 01 18:49:21 lucus16, minor victory I guess, no one should be using pastebin.com anyway :) Apr 01 18:58:29 so what is the recommended paste solution? Apr 01 18:58:45 pastebin or somethingliek that Apr 01 18:59:06 but Zharf just said people shouldn’t be using pastebin Apr 01 18:59:29 I use paste.se Apr 01 19:01:34 pastebin can save yo stuff Apr 01 19:01:43 kinda insecure Apr 01 19:02:44 0bin is encrypted Apr 01 19:03:04 0bin.net Apr 01 19:05:46 if you use android studio how do you select the test directory when creating a test with ctrl-shift-T? Apr 01 19:06:27 oh so i'm supposed to set the camera picture size to a size with the same aspect ration as my preview >_> Apr 01 19:06:37 ratio* Apr 01 19:07:52 I get a "choose destination directory" window but that only lets me select folders in app/build/generated/source/... Apr 01 19:12:20 lol best boat ever http://imgur.com/a/9VYcL Apr 01 19:14:20 nice Apr 01 19:14:31 mfw when I'm suffering for 2 hours trying to get images to cache properly, and then i discover that picasso will do it all for me... Apr 01 19:16:38 dragorn its too damn hot, bring back winter :D Apr 01 19:19:19 stop it, winter bad Apr 01 19:20:44 noo, winter awesome Apr 01 19:24:05 IggyGee, heh Apr 01 19:26:35 seriously though, Picasso is a godsend, I just eliminated like 300 lines of code and replaced it with just 1 Picasso line.... Apr 01 19:26:50 I'm about to just dedicate a week to study all of the libraries Square provides Apr 01 19:27:13 IggyGee, I love most of them Apr 01 19:27:22 at least it's not networkimageview *shiver* Apr 01 19:27:38 Retrofit 2.0, Otto Apr 01 19:27:47 otto is deprecated Apr 01 19:27:48 also other stuff Jake wrote :) Apr 01 19:27:50 yea Apr 01 19:27:58 Zharf, because RxJava Apr 01 19:28:00 but meh Apr 01 19:28:09 That doesn't prevent it from working Apr 01 19:28:16 Ok, so in my onClick my if statement isn't recognizing (parseClass != "Items"){} Even though I places a Log.i("AppInfo", parseClass); inside of it that shows that it is actually getting "Items" Apr 01 19:28:22 sure, but I don't like things that say deprecated :p Apr 01 19:28:27 and eventbus now supports annotations so that's an option Apr 01 19:28:28 hey JakeWharton :D Apr 01 19:29:05 Zharf, but it was deprecated because RxJava does a better job at it (RxAndroid) Apr 01 19:29:16 not because it has flaws Apr 01 19:29:40 anyone have any ideas? Apr 01 19:29:49 I can see on gradlew's output linking all the jars together but no how it ends up being `X-release-unsigned.apk' Apr 01 19:30:09 I still see no reason to use it, if I want to use rxjava, I don't need otto, if I don't want to use rxjava, I can use eventbus :p Apr 01 19:30:23 not saying that there's something wrong with it Apr 01 19:30:47 You're just a deprecationist Apr 01 19:31:03 :p Apr 01 19:33:10 only reason I didn't like to use eventbus back when I looked at the options was that it didn't have annotations and instead used ugly method names Apr 01 19:33:12 heh Apr 01 19:33:12 nice https://github.com/mikepenz/FastAdapter Apr 01 19:33:16 but that changed recently Apr 01 19:33:46 Same Apr 01 19:34:12 Naming convention-based callbacks were always a good laugh Apr 01 19:34:30 yeah Apr 01 19:35:14 well both does the same job, either is good :) Apr 01 19:38:44 g00s, nice Apr 01 19:53:59 g00s, the example usage doesn't really show me how it's supposed to be faster than just recyclerview.adapter Apr 01 20:08:47 Its been a long time since I frequented here! Apr 01 20:08:59 its been lovely Apr 01 20:09:01 * Ashiren hides Apr 01 20:25:28 How do you get logcat in terminal to pprint out the package name? Apr 01 20:25:46 What magic is android studio pulling to add that information to Android Monitor's logcat?? Apr 01 20:26:09 Click the gear under the Android Monitor Apr 01 20:26:20 How do I do that using "adb logact" Apr 01 20:26:43 Also, the gear is for options on the view, not Logcat Apr 01 20:27:24 http://developer.android.com/tools/debugging/debugging-log.html#outputFormat Apr 01 20:28:10 I think one of those would do Apr 01 20:28:14 THey don Apr 01 20:28:54 either that or they check the pid against the process list Apr 01 20:29:00 hmm yeah, not sure in terminal Apr 01 20:29:00 mmm Apr 01 20:31:12 Zharf good catch .. that's probably what happens Apr 01 20:40:27 Have u been reading about MVP in android. Do you use it ? I'm development of a huge app. I'm just getting how my life would be easier with this. Apr 01 20:42:54 ok Apr 01 21:02:49 "I am pleased to announce that Red Hat, JetBrains and Unity have agreed to join Microsoft on the .NET Foundation Technical Steering Group." Apr 01 21:03:29 Oh look, another “open source company joins Microsoft” April fool joke. Apr 01 21:04:13 jaana March 31 :) Apr 01 21:04:35 is there a way to disable the submenu header in a navigationview? Apr 01 21:04:53 Sixmsj yeah i noticed even if you don't have a view there, there is some padding Apr 01 21:04:57 which is kinda annoying Apr 01 21:05:18 :( g00s Apr 01 21:05:43 OH you mean the all caps text header Apr 01 21:07:15 something like this g00s http://hastebin.com/fodolufune.xml Apr 01 21:07:27 where i want to hide @string/t header Apr 01 21:08:16 Sixmsj i kinda worked around that by putting stuff in another group Apr 01 21:09:40 you change another group’s visiblity instead of using the nested menus? Apr 01 21:12:31 Sixmsj its not that flexible, if you want like expanding items Apr 01 21:13:09 the NavigationView code just flattens everything out as it iterates through your menu.xml file Apr 01 21:14:03 Sixmsj if you really want nested menus that collapse, take a look at the big nerd ranch expandable recyclerview, and just copy the theme attributes from NavigationView so it looks right Apr 01 21:14:12 or use that MaterialDrawer project maybe Apr 01 21:15:03 yeah Apr 01 21:15:56 whats a good library for adding text overlays to an existing mp4 video? Apr 01 21:19:59 dont wanna use ffmpeg due its license Apr 01 21:22:48 hey Apr 01 21:22:56 i have a problem where Apr 01 21:23:03 when I back press Apr 01 21:23:10 my app Apr 01 21:23:13 it crashes Apr 01 21:23:18 attached i the log trace Apr 01 21:24:07 https://dpaste.de/nJYb Apr 01 21:24:20 any pointers on what i am doing wrong? Apr 01 21:24:25 that site is unsecure Apr 01 21:24:54 mwenda, did you read the stack trace you posted? Apr 01 21:25:35 it is? Apr 01 21:25:47 let me share elsewhere? Apr 01 21:25:51 not sure why Apr 01 21:26:02 in your case its insecure Apr 01 21:27:18 here Apr 01 21:27:19 https://gist.github.com/jmwenda/857e4e7424bba4c0f2d431f071fa69d5 Apr 01 21:27:40 same thing: Did you read the stack trace? Apr 01 21:27:57 still in secure Apr 01 21:28:06 yea the stack trace says Apr 01 21:28:28 java.lang.NullPointerException Apr 01 21:28:34 on MapActivity Apr 01 21:28:45 not only that, it gives you a line number Apr 01 21:28:51 .onconnected Apr 01 21:29:01 yep Apr 01 21:29:05 says 383 Apr 01 21:29:12 so go look there Apr 01 21:31:18 seems to be this Apr 01 21:31:21 mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); LatLng latLng = new LatLng(mCurrentLocation.getLatitude(), mCurrentLocation.getLongitude()); Apr 01 21:31:38 this is only when I press the return button Apr 01 21:31:56 well, your stack trace is saying something in there is null Apr 01 21:45:26 Hey guys. Anyone have any info on how I can 'debug' my device? Specifically, I want to watch for bluetooth events and find out which process they are going to. Apr 01 21:55:43 not sure if i should ask this here or in #html… I have a chat application(that sits in the browser) I want a little sound to play when you get a message and not looking at the chat to let you know you have a message waiting for you… is this possible? Apr 01 22:03:11 Is there a MediaStore debugging app that lets you query and inspect MediaStore? Something useful to debug apps that interact with MediaStore. Apr 01 22:09:37 i guess there will be a moto E 2016 Apr 01 22:09:48 ^H^H^HLenovo E 2016 Apr 01 22:11:17 votz . MediaStore can be accessed with an SQLite application Apr 01 22:11:23 depends what you want to do Apr 01 22:12:23 Gryd3: Oh really. How so? Apr 01 22:12:50 http://stackoverflow.com/questions/3592497/android-mediastore-sqlite-db-location Apr 01 22:12:53 hello Apr 01 22:13:30 how can i downgrade libpng to 1.5. in android studio read this answer in which file i have to make the change Apr 01 22:28:14 how can i downgrade libpng to 1.5. in android studio read this answer in which file i have to make the change Apr 01 22:28:45 i really need a solution there are lots of images in project i cannot change them and i have no time Apr 01 22:30:13 votz . sorry . I stepped away, but it looks like you found it... I used to to untag the 'music' property on all of my ringtones... Samsung screwed the pooch on modifying their mediascanner behaviour Apr 01 22:30:33 Mediascanner only updates new files, so any edits you do will persist until a full rebuild is done on the mediastore Apr 01 22:30:58 Gryd3: That would explain it. How can that behavior be overridden? Apr 01 22:31:45 That is, what clever things can we do to rescan an MP3 whose ID3 metadata changed? Apr 01 22:31:56 I used a short query that untagged the 'music' property for any file that had 'ringtone' in it's path Apr 01 22:32:17 ahh.. That' Im unsure about.. other than clearing the datastore and letting it rescan Apr 01 22:32:58 I don't believe it would rescan if you externally adjusted metadata, but it should if you use an Android application to edit the data Apr 01 22:33:30 many of those applications will either trigger a re-scan , or update the datastore with new info if it updates the file Apr 01 22:33:34 We tried a number of things, like renaming the modified MP3 (foo.mp3 -> foo.mp3.orig), creating a 0 bytes foo.mp3 file in the original path and scanning it, then renaming foo.mp3.orig back to foo.mp3 and rescanning that, too Apr 01 22:34:09 Gryd3: Right -- that's what I'm curious about: as the app, what can the app do to trigger a rescan of an individual MP3 whose ID3 tags were changed? Apr 01 22:35:48 Honestly been a while since I've looked at the source code for the media scanner... if you find it, you can easily determine what comparisons are done to determine if a file exists in the datastore already. If you rename a file, you typically have to do a reboot, and although apps *can* trigger a rescan of the mediastore, I'm not sure what the mechanism is that they use Apr 01 22:36:19 Is this to resolve a problem or to correct an app behaviour you are working on ? Apr 01 22:36:21 Yeah. The trick is not to trigger a rescan of the entire system, but just one file. Apr 01 22:36:55 yeah... rescan of the entire system can take a while. Time to dig into methods that can directly alter the mediastore Apr 01 22:37:14 Calling scanFile() on the MP3 after the app has changed the MP3's ID3 tags does not update MediaStore Apr 01 22:37:15 http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Context, java.lang.String[], java.lang.String[], android.media.MediaScannerConnection.OnScanCompletedListener) Apr 01 22:37:36 The latter: to correct behavior in an app we're working on Apr 01 22:38:03 The fundamental premise is simple: update MediaStore after the app edits an MP3s ID3 tags Apr 01 22:40:34 I have made an app with Tasker that automatically locks my screen, but when it does I can't unlock using my fingerprint. Any clue why this is? Apr 01 22:41:52 Hi, I have some Java experience but not expert. I need to create a App that just virtualizes the ScrollLock Key on a Keyboard, for some reasons its not on the wireless keyboards app Apr 01 22:49:29 atom's project switcher plugin is great. i have atom up full screen with a bunch of projects i browse / consult for my android dev work Apr 01 22:49:48 * g00s <3 atom even if its a little slower / bloated still Apr 01 23:02:56 o__O Apr 01 23:39:41 finally Apr 01 23:40:46 hii Humorousone Apr 01 23:41:42 hello anyone could lend a hand to a noob? Apr 01 23:42:39 what's up? Apr 01 23:43:08 whoops Apr 01 23:43:13 sorry panda, just opened this cha Apr 01 23:43:15 chat Apr 01 23:43:42 " im trying to turn on the cam led, which works but i want to do it better" Apr 01 23:43:46 from #android Apr 01 23:43:55 Humorousone: yes. its about programing. im tried this and worked http://www.mkyong.com/android/how-to-turn-onoff-camera-ledflashlight-in-android/ Apr 01 23:44:07 i tried this http://www.mkyong.com/android/how-to-turn-onoff-camera-ledflashlight-in-android/ Apr 01 23:44:25 So what exactly are you trying to accomplish? Apr 01 23:44:48 Are you trying to achieve this in a different way? Apr 01 23:44:57 it works but since it declare camera = Camera.open(); in the main activit the cam is locked while the app is running even if i turn off the led Apr 01 23:45:40 hmm Apr 01 23:45:41 i want to have the app running but dont locking the all the time just when i need to turn on the led Apr 01 23:45:58 dont lock the cam all the time* Apr 01 23:46:23 yep Apr 01 23:46:30 I think I understand what you want Apr 01 23:46:35 I'm googling ;) Apr 01 23:46:37 how do you know what the latest (installed) SDK tools version is? Apr 01 23:47:11 so i tried declaring camera = Camera.open(); in a function that is called when i pess a button. that worked to turn on the led but then i cant turn it off Apr 01 23:47:55 wait, you can't turn the camera off? Apr 01 23:48:07 https://stackoverflow.com/questions/6068803/how-to-turn-on-camera-flash-light-programmatically-in-android Apr 01 23:48:34 " cam.stopPreview(); Apr 01 23:48:34 cam.release(); " should turn it off :/ Apr 01 23:49:38 give me a sec Apr 01 23:50:11 no worries Apr 01 23:50:16 just so you know, I'm going soon Apr 01 23:50:21 it's almost 1am here Apr 01 23:50:42 it crashes the app Apr 01 23:50:57 ok i will tr an example qucik Apr 01 23:51:03 alright Apr 01 23:51:14 I'll stick around until you're done ;) Apr 01 23:51:58 What did you say the camera object was called? Apr 01 23:52:04 just 'Camera'? Apr 01 23:54:32 i try this now. it turn on the led but whrn i press again the switch to turn it off it crashes http://dpaste.com/2BPK8QB Apr 01 23:55:05 i try this now. it turn on the led but whrn i press again the switch to turn it off, it crashes http://dpaste.com/2BPK8QB Apr 01 23:55:24 the app. gosh my grammar is horrible tonight Apr 01 23:55:38 dw Apr 01 23:55:42 we've all been thar Apr 01 23:55:43 *there Apr 01 23:55:44 ;) Apr 01 23:55:53 adb logcat will tell you why you crash Apr 01 23:56:06 I'm just looking .release() Apr 01 23:57:01 yeah, which line does it say the exception occured? Apr 01 23:57:13 if i left camera.realse(); there the led turn on a second and turn off again Apr 01 23:57:44 so added the // to commented that line Apr 01 23:58:19 welll Apr 01 23:58:20 is "commented" the right word in english? Apr 01 23:58:29 that's correct Apr 01 23:58:35 but Apr 01 23:58:38 ok :p Apr 01 23:59:05 .release() completely closes the connection to the camera, and releases resources Apr 01 23:59:46 mmm i dont know how to "save" the "camera" object to call it again later instead of declaring it again Apr 01 23:59:56 Declare it in a higher scope? Apr 02 00:00:13 i cant without locking the camera Apr 02 00:00:37 what do you mean by 'locking' the camera? Apr 02 00:01:06 that even if the led is off i cant open the camera with any other app. Apr 02 00:01:29 ohh, alright Apr 02 00:01:45 yeah, as soon as you call .open() it will lock the camera Apr 02 00:02:02 so we'll have to take this using a different method I think Apr 02 00:02:13 yep. and the constructor od the camera class uses the .open() DX Apr 02 00:02:13 unless someone more qualified than me can suggest anything.... Apr 02 00:02:14 ;) Apr 02 00:02:38 mmm it would be easy with a C pointer i think Apr 02 00:04:16 pandaR: Hmm.. To be honest I'm not completely sure it's possible using this kind of code Apr 02 00:04:23 I might be wrong (and someone can correct me) Apr 02 00:04:58 like for example Apr 02 00:05:07 if you use the default flashlight in android Apr 02 00:05:12 via the top drop down menu Apr 02 00:05:28 and if you then try to use the camera Apr 02 00:05:33 the led turns off :/ Apr 02 00:05:34 sounds like what you need is to hold the camera in a service Apr 02 00:05:46 ^^ listen to him Apr 02 00:05:51 xD Apr 02 00:05:53 there's also a bunch of open source flashlight apps out there you can look at for reference Apr 02 00:06:15 but if you need something to survive past an activity, you want a service Apr 02 00:06:28 mmmm Apr 02 00:06:47 you give me an idea. maybe i could use a thread Apr 02 00:07:29 you have a link to a simple service example dragorn plz :3 Apr 02 00:07:45 not offhand, but developer.android.com has examples Apr 02 00:07:49 you don't want a thread Apr 02 00:07:51 you want a service Apr 02 00:08:18 this could be interesting http://www.informit.com/store/android-concurrency-9780134177571 Apr 02 00:08:22 a service is a special lifecycle that persists while the activity doesn't. Apr 02 00:08:43 I'm going to go to sleep now Apr 02 00:08:48 so goodnight everyone Apr 02 00:08:50 g00s <3 Apr 02 00:08:55 good luck with this project pandaR Apr 02 00:08:58 hey Anthaas Apr 02 00:09:00 see you Humorousone Apr 02 00:09:06 I came back into this room after god knows how long, first thing I did was look for you and you werent on! Apr 02 00:09:07 and thanks Apr 02 00:09:13 I assumed you'd gone off to pastures new! Hows it going Apr 02 00:10:06 Anthaas ah ok, things have changed a bit since you were on Apr 02 00:10:20 openjdk 8, some new tools coming soon, etc Apr 02 00:10:23 good stuff Apr 02 00:10:25 Nice :D Apr 02 00:10:33 Yeah - Im going to be getting back into Android stuff soon Apr 02 00:10:51 Might even try my hand at Kotlin - although if Java 8 comes that won't be happening! Apr 02 00:11:02 otoh seems nobody can agree on how to do MVP on android in 2016 still haha Apr 02 00:11:06 I have published my first open-source project though! Apr 02 00:11:29 Have you heard of Parboiled? Apr 02 00:11:30 Anthaas you may want to read their latest kotlin roadmap blog Apr 02 00:11:42 yeah, parboiled is a PEG parser Apr 02 00:11:46 It is! Apr 02 00:11:48 Yes, even with Java 8 around the corner, Kotin still makes a lot of sense Apr 02 00:11:50 Then you may have heard of Grappa? Apr 02 00:12:11 Anthaas no - i wanted to use the old parboiled , but it wouldn't work on Android Apr 02 00:12:15 whats a peg parser? Apr 02 00:12:15 Ahh Apr 02 00:12:20 i just heard the new one came out Apr 02 00:12:24 Parse Expression Grammar Apr 02 00:12:24 i think its in scala Apr 02 00:12:29 g00s, Take a look at Grappa Apr 02 00:12:36 It is Parboiled with Java in mind instead of scala Apr 02 00:12:46 Its literally a fork of it, but rebased for Java Apr 02 00:13:02 Anthaas the same person? the old one did dynamic bytecode generation though Apr 02 00:13:11 Nah, its a different guy Apr 02 00:13:13 Francis Galiegue Apr 02 00:13:22 It also does bytecode generation unfortunately. Apr 02 00:13:26 thats why lol Apr 02 00:13:29 oops Apr 02 00:13:48 https://github.com/fge/grappa Apr 02 00:14:25 If you look under the first two projects of "Projects Using Grappa" :P Apr 02 00:14:42 Although they are still works in progress Apr 02 00:15:04 I've been working quite closely with the guy who develops Grappa - he is going to be using -parsetree for his work project! Apr 02 00:15:29 I've noticed there is a fair bit of stuff to be reading up about with Android though Apr 02 00:17:33 the more things change, the more they stay the same :D Apr 02 00:17:54 Haha Apr 02 00:18:07 I always used to hate networking with Android >.< Apr 02 00:18:09 you could start new project with minSdk=21 and watch I/O 2014 material videos Apr 02 00:18:11 I could never decide how to do it haha Apr 02 00:18:23 Yeah - I was thinking about doing something like that Apr 02 00:18:29 Nothing more recent? Apr 02 00:18:46 there was an android dev summit in 2015 Apr 02 00:18:50 some videos there Apr 02 00:19:00 ny and large, stuff is just scattered to the wind though ... Apr 02 00:19:19 you'll have to cherry pick all the new stuff from googlers medium / google+ / stack overflow posts Apr 02 00:19:44 Yeah - I figure it won't be easy - Ill probably watch a few videos, see whats on the d.android.com website, and then go from there. Apr 02 00:19:50 While sitting in here and seeing what others are doing Apr 02 00:32:45 How would I convert a decoded bitmap into an image so I can populate an ImageList? Apr 02 00:35:12 So you have a bitmap object and you need to show it on the screen or...? Apr 02 00:35:14 gcq: Apr 02 00:35:15 ? Apr 02 00:35:55 I have a bitmap image and I want to fill a gridview Apr 02 00:36:17 *multiple images Apr 02 00:45:20 hi, i am just getting started with android studio and i'm wondering if someone can answer a basic question Apr 02 00:45:40 what is the include structure? i added two files to my project Apr 02 00:46:00 one uses a class defined in the other. they are from a tutorial so i think they are supposed to work without adding an explicit include line Apr 02 00:46:19 can someone point me to info on what is included in the project or how to add things to the include hierarchy? Apr 02 00:52:48 hwrdprkns: what I've done is I've compressed a bitmap image, converted and uploaded the byteArray ParseFile, and now I'm trying to pull it back so I can populate the gridview Apr 02 00:53:28 great haha, he left Apr 02 00:56:35 meh, totally killed my nexus 9's battery screwing with opencv, heh Apr 02 00:56:40 usb port can't charge it fast enough Apr 02 00:58:43 yeah i remember hearing about that Apr 02 00:59:17 for most devices, when screen is on the charger is not going 100% Apr 02 00:59:23 more like 40% or so Apr 02 00:59:39 waaaa something went crazy in my pc Apr 02 01:02:25 anyone using mvp. if so, what are your tboughta whwn business logic that requires android specific things like context Apr 02 01:03:05 should it be in a fragment/activity or the presenter. im running into issues writing unit tests for certain things Apr 02 01:24:04 ho gosh what im doing worng :S Apr 02 01:24:13 can i make an stupid question? Apr 02 01:26:14 pandaR: just ask lol Apr 02 01:27:01 why i cant complike this? Apr 02 01:27:10 gonna paste a few lines. is ok? Apr 02 01:27:57 why i cant compie this? http://dpaste.com/2VEACER Apr 02 01:28:05 compile* Apr 02 01:28:58 i delace lock as public, private, final. none let me compile Apr 02 01:29:04 declare* Apr 02 01:29:55 pandaR: what's the error? Apr 02 01:31:40 Error:(25, 5) error: illegal start of expression Apr 02 01:32:38 pandaR, you did not close onCreate with } Apr 02 01:32:51 nor your class Apr 02 01:33:02 your IDE should warn you about that Apr 02 01:33:17 I assumed that was just a bad paste... Apr 02 01:33:22 oh. i paste just a part of the code. it crashed when i add that function Apr 02 01:34:41 don't be lazy and paste it all, especially around line 25 Apr 02 01:36:27 http://dpaste.com/2HCJZMS Apr 02 01:37:04 its messy. i have just 3 days with android. and im trying a lot of thins in this guineaPig app Apr 02 01:37:11 move line 24 & 25 outside of oncreate Apr 02 01:37:17 then proceed to next error Apr 02 01:37:37 you need to properly enclose onCreate with { } Apr 02 01:37:53 and put inside what should be inside, thus not line 24 & 25 Apr 02 01:39:16 oh my. didnt notice i was putting a lot of code into that function. mm it ok that the buttoins declarations are inside onCreate? Apr 02 01:39:48 yes, this is where you reference them (they should match the xml file you set in setContent) Apr 02 01:40:17 oh thanks you very much! Apr 02 01:40:23 * pandaR hugs everyone Apr 02 01:40:35 pandaR, what IDE are you using? Apr 02 01:40:43 android studio Apr 02 01:40:56 damn, i would have thought he would complain about it Apr 02 01:42:12 inow i have to check if i declare other things in the wrong place Apr 02 01:42:15 :3 Apr 02 01:45:06 it work nicely now YEAH! Apr 02 01:46:37 so i guess with xamarin you can use F# for android dev Apr 02 01:46:44 interesting Apr 02 01:48:43 thanks! led is working with the help of a thread. Apr 02 01:48:43 http://imgur.com/a/ayPKp still working in it, 3:48AM -_-". The ribbon with the price is not that great with the gridlayout manager, ui wise i mean Apr 02 01:48:47 thanks guys Apr 02 01:49:01 better leave pc for a while. byes Apr 02 01:50:25 adq what if you put the gridlayout and ribbon in FrameLayout Apr 02 01:50:43 just set ribbon gravity Apr 02 01:50:52 looks very nice though :D Apr 02 01:51:08 well problem is the major black bg of the thumbnail, does not match well the color of the ribbon Apr 02 01:51:15 what do you "in framelayout"? Apr 02 01:51:19 do you mean* Apr 02 01:51:28 oh sorry, thought you meant gridlayout Apr 02 01:51:40 this is in recyclerview presumably Apr 02 01:51:43 yep Apr 02 01:52:13 there is like 3 listeners in cascade :x from activity to fragment to adapter Apr 02 01:52:20 km/miles of code Apr 02 01:53:19 also i spent quite a while looking the material design site pseudo spec, it's crazy how many things are missing Apr 02 01:53:28 or misworded (padding vs margin, for example) Apr 02 02:09:52 adq i seriously wonder what matias duarte does these days ... Apr 02 02:10:05 animated gif on G+ ? :') Apr 02 02:10:20 lol i remember when they hired him, what his mission was ... Apr 02 02:12:14 animate gifs? Apr 02 02:12:49 jug6ernaut you know, like bring gifs back from the dead Apr 02 02:13:19 its kinda amazing how prevalent they are on the web these days Apr 02 02:13:49 anyone here have a pixel c & recommend or dont recommend getting it? Apr 02 02:18:06 if you want a tablet, hard to go wrong with a pixel c Apr 02 02:19:29 i really wish google would make a 2016 nexus 7 Apr 02 02:19:36 ribbon fixed: http://imgur.com/BM2HwzM Apr 02 02:19:44 much better by reusing the cardview bg Apr 02 02:19:45 jug6ernaut yeah there were some rumors of one ... Apr 02 02:20:26 it would make sense Apr 02 02:20:28 i tried to put it in the overlay (where the title & subtitle stand) if that what you mean earlier with framelayout g00s Apr 02 02:20:35 but "nope" Apr 02 02:20:47 adq lol, well it looks nice, congrats Apr 02 02:21:02 took me _only_ 30 minutes Apr 02 02:21:14 jug6ernaut i read somewhere HTC may be doing all the nexus devices for next 3 years ... Apr 02 02:21:24 hmm Apr 02 02:21:28 yeah :D Apr 02 02:21:28 i'm afraid some currency might take a bit more space Apr 02 02:21:41 ive lost faith in HTC Apr 02 02:21:48 & the nexus devices imo have been subpar Apr 02 02:21:56 adq yeah like, 120,000 canadian acorns Apr 02 02:22:05 i have an old htc desire hd (2011) laying around, it's crazy how robust it is Apr 02 02:22:11 still working Apr 02 02:22:22 and i overuse it for testing Apr 02 02:22:46 i really liked my m7 actually Apr 02 02:23:05 what nexus devices have been subpar Apr 02 02:23:57 nexus 7 vs nexus 7 2013 , nexus 9 had all kinds of display issues Apr 02 02:24:17 adq desire hd was a rebranded hd2 right? Apr 02 02:24:33 i think so, they plan to make a new one with same no? Apr 02 02:24:45 i try to not follow much these kinds of thing tbh Apr 02 02:25:19 idk Apr 02 02:25:19 i'm not really their target (and i certainly don't want to be one), it's the irony of dev for android Apr 02 02:25:49 jug6ernaut didn't the n7 2013 have pretty crappy flash storage ? Apr 02 02:26:04 i baby mine, just use it for development Apr 02 02:26:11 i think that was the 2012 one Apr 02 02:26:16 not sure tho Apr 02 02:26:22 2012 had problem with TRIM support Apr 02 02:26:30 yeah thats it Apr 02 02:26:40 but the 2013 had cheap grade flash chips Apr 02 02:26:54 ah Apr 02 02:27:04 what issues did that cause? Apr 02 02:27:05 asus had to cut corners :) Apr 02 02:27:13 jug6ernaut oh the nand flash fails early Apr 02 02:27:25 :\ Apr 02 02:27:27 gonna try the old #A4C639 android green, instead of blue Apr 02 02:27:45 still think google should have kept motorola, and had them do nexus devices Apr 02 02:27:47 g00s if the nand fails in any real time frame its early lol Apr 02 02:27:57 haha indeed Apr 02 02:28:33 yeahhh they didnt take advantage of moto at all Apr 02 02:29:02 I wonder how strong a "don't compete with your partners" pushback they got from people like Samsung Apr 02 02:29:44 google and samsung , frenemies for lyfe ! Apr 02 02:30:33 lol Apr 02 02:30:39 it worked out well for MS... :) Apr 02 02:31:00 with? Apr 02 02:31:10 against? :') Apr 02 02:31:18 Nokia Apr 02 02:31:23 i still think MS is the one to watch. apple is getting pretty boring Apr 02 02:31:42 they bought xamarin, they must be desperate Apr 02 02:31:43 MS definitely is trying hard Apr 02 02:31:56 windows phone OS is pretty awesome imo Apr 02 02:32:06 I don't think there's anyone who didn't think they were going to buy Xamarin sooner or later Apr 02 02:32:17 it was pretty much Xamarin's reason for existing, to get bought by MS Apr 02 02:32:37 eheh, they announced few things related to android on their latest event Apr 02 02:32:38 lol Apr 02 02:32:43 not a bad business plan tbh Apr 02 02:32:58 yeah i'm sure nat friedman is doing pretty well ;) Apr 02 02:33:02 Miguel had wanted to work for MS for a very very long time :) Apr 02 02:33:08 i tested their emulator (with hyper-v) few times, it works as well as genymotion Apr 02 02:33:12 nexus 9 is fine Apr 02 02:33:47 Leeds i dunno, MS told miquel he should join them long ago. but he didn't Apr 02 02:33:55 pfn the few i have seen all had pretty bad light bleed issues. Sure not an issue for most ppl, im ocd about that stuff tho :\ Apr 02 02:34:00 I once randomly ended up at a dinner with Miguel in Brussels, quite a while back... manic mad Mexican :) Apr 02 02:34:56 know what i hate, sites that role their own video players... Apr 02 02:35:04 * jug6ernaut looks at theverge Apr 02 02:38:38 jug6ernaut, that doesn't make it subpar Apr 02 02:38:55 and both the nexus 7 devices were superb at their pricepoints Apr 02 02:39:18 yeah for $200 they were great Apr 02 02:39:55 I'm still pretty impressed by the Shield K1 for $200 - it's a little chunkier than the N7 style, but good value Apr 02 02:40:04 i dont think the n7 is getting N though Apr 02 02:40:35 it does seem to struggle a bit with 6 though, animations are janky Apr 02 02:40:47 pfn they were, but i wish they were a little bit more $$ to be a little more high end Apr 02 02:41:33 jug6ernaut: hence pixel C ;) Apr 02 02:41:36 i have never understood the move to make nexus devices super cheap Apr 02 02:41:48 Leeds lol true Apr 02 02:41:49 now 25% off! Apr 02 02:42:01 now if only it was a 7-8" device :P Apr 02 02:42:07 i wonder if the pixel is a good dev device Apr 02 02:42:18 yeah, I think the N9 is already slightly too big for most use Apr 02 02:42:49 the keyboard does make it desirable for me though Apr 02 02:43:09 whatever piece of HW google introduces, i think to myself ... google will stop supporting this in 18 months Apr 02 02:43:22 so yeah, $200 is OK ... more is not :D Apr 02 02:43:28 lol Apr 02 02:43:32 idk Apr 02 02:43:40 the n5 stayed around for a long time Apr 02 02:43:47 I've ended up with 1 phone and 2.5 tablets in regular use... it's a bit silly Apr 02 02:44:02 :| Apr 02 02:44:07 2.5 tablets O.o Apr 02 02:44:16 lol Apr 02 02:44:38 the .5 is the N9, which I keep around, and maybe use a couple of times a week for streaming video stuff, but mostly don't use that regularly Apr 02 02:44:56 only thing i was using my tablet for is read Kindle books , but those fuckers are putting adds in the book reading activity now Apr 02 02:45:08 all these companies just suck ass Apr 02 02:45:22 advertisements are a plaque on the earth Apr 02 02:46:04 plague :P Apr 02 02:46:27 yeah, i got extra pissed because (1) there is no way to dismiss the add (2) the BUY is right under the action items in action bar Apr 02 02:46:28 i would say a cancer Apr 02 02:46:48 and i just paid for the fucking book, and they have the balls to show me ads Apr 02 02:46:49 tho, plague's do eventually kill themselves, we can hope the same for ads lol Apr 02 02:46:57 yes :D Apr 02 02:47:01 g00s: are you saying you get ads in the middle of a book? You read page 172, you turn the page, you get an ad, you turn the page again, you get page 173? Apr 02 02:47:16 Leeds the book reading activity has ads you can not dismisss Apr 02 02:47:27 :\ Apr 02 02:47:28 they are not in the book content like interstitial Apr 02 02:47:34 but they are below the action bar Apr 02 02:47:45 this is in kindle? Apr 02 02:47:52 so you read in full screen mode, no ads. you come out of immersive mode and there are ads Apr 02 02:47:58 that sounds like an *excellent* justification for ripping the DRM right out of there and using another reader Apr 02 02:47:58 jug6ernaut yeah Android Kindle app Apr 02 02:48:28 can u get the epub from kindle and use your own ebook reader? Apr 02 02:48:33 i would be OK if the ads were just on the home screen for the app, like suggestions and stuff Apr 02 02:48:41 jug6ernaut i could try ... Apr 02 02:48:55 idk, if i pay for content i better never see an ad Apr 02 02:49:08 and if the 'buy audible upgrade' ad could be dismissed, i'd almost be OK with that too Apr 02 02:49:19 but you can't dismiss the fucking thing, and I'll never buy the uadible version Apr 02 02:49:29 i love audio books Apr 02 02:49:34 but audible is not worth the cost Apr 02 02:49:41 in any way shape or form Apr 02 02:50:10 u can buy the ebook and then spend like $2 more for the audio book, why would u never not do that Apr 02 02:52:44 just switched from one nexus 6p to another. FI refuses to activate, i contact support, they want me to remove all my accounts, sim, turn off, remove sim, turn on, add account for fi, try and activate fi, then add the others. Apr 02 02:53:05 im fine doing it, but i cant see a regular customer going through that process lol Apr 02 02:53:13 Fi isn't for regular customers Apr 02 02:53:28 it's a hack to get around the crappy US carrier situation Apr 02 02:53:48 probably true Apr 02 02:55:34 g00s: I don't know what you're talking about, I have an ad-supported Kindle and the only ads I ever see are on the lock screen Apr 02 02:56:18 he means kindle app, not kindle reader Apr 02 02:56:22 CedricBeust the Kindle Android app, not the device Apr 02 02:56:36 Same, never seen an ad while reading. Apr 02 02:56:36 yeah , if you buy the device, you can pay i think to disable special offers Apr 02 02:56:47 I didn't pay anything to disable anything. Apr 02 02:56:58 for the app, when you go under device management there is nothing for disabling special offers Apr 02 02:57:01 I have never seen any ads while reading, Kindle or Android phone Apr 02 02:57:08 CedricBeust well, it could be pretty new . Apr 02 02:57:16 I was reading on my phone just toda Apr 02 02:57:18 y Apr 02 02:57:46 * pfn uses google books Apr 02 02:57:49 * pfn shrugs Apr 02 02:57:52 CedricBeust there are a bunch of complaints on the kindle forums Apr 02 02:58:04 so maybe you didn't get the new version with 'ux improvements' :D Apr 02 02:58:44 pfn same Apr 02 02:58:54 CedricBeust if you go to read a book, tap the screen to exit full screen mode ( so you see the action bar, seek bar for position, etc). see anything ? Apr 02 02:59:06 CedricBeust also , it could be that the book you were reading did not have an audible upgrade Apr 02 02:59:15 Maybe Apr 02 02:59:23 pfn yeah for epubs i buy from oreilly, i just put those in Play Books Apr 02 02:59:48 sometimes the azws render better in Kindle than epubs in Play books though **** ENDING LOGGING AT Sat Apr 02 02:59:58 2016