**** BEGIN LOGGING AT Sun Mar 08 02:59:58 2015 Mar 08 03:07:44 Hi, how is it possible to register my service to listen for unlock and lock event? Mar 08 03:10:23 lasserix: It thinks it's added as a dependency but I can't import it and it won't render, like it didn't actually add it to the classpath or something. Should I have to manually fix up some lib path or something in addition? Mar 08 03:10:42 umm Mar 08 03:11:22 would just doing a 'build' after adding that dep cause it to be fetched? It didn't store it within the project, so I'm guessing there's something like ~/.m2/repository equivalent that i jus tdon't know where it is Mar 08 03:11:31 did you sync? Mar 08 03:11:50 good idea, didn't seem to help Mar 08 03:12:12 oh wait you probably mean 'gradle sync' ... I see that now, let me try that Mar 08 03:12:42 hmm it didn't give me an error but it's still not seeing it Mar 08 03:12:50 CanyonMan: `you have to add the core Mar 08 03:12:56 oh I do? Mar 08 03:12:57 not just the plot, but the one with -core Mar 08 03:12:57 yeah Mar 08 03:13:00 oh okay Mar 08 03:13:01 http://androidplot.com/docs/quickstart/ Mar 08 03:13:17 just add it like i said--dont worry about instructions on that page Mar 08 03:14:12 is gradle kind of like grunt? Mar 08 03:14:18 I think I need to wrap my head around gradle better Mar 08 03:14:19 i believe so Mar 08 03:14:26 just a build script Mar 08 03:15:58 Should I develop for an api version higher than one I have Mar 08 03:17:10 I just went throgh that exact same conversation in my head 2 days ago and decided that I wanted 5.0 Mar 08 03:17:20 then if the project is a failure I don't have to learn old crap Mar 08 03:17:32 and if it's wildly successful I won't mind so much backporting to 4.4.something but NO FURTHER Mar 08 03:18:22 the line must be drawn here This far, no further! Mar 08 03:18:28 it's sage advice, take it to heart! Mar 08 03:19:45 I wonder how important the 6.9% of gingerbread users is Mar 08 03:20:16 i don't know, but you're going to make me sad about my touchpad being on cm9 now :( Mar 08 03:30:00 not important Mar 08 03:30:17 sigh never again ! will i try as android noob to just try and uprgade to custom rom :') Mar 08 03:30:42 managed to brick it in few hours after been given it for free Mar 08 03:30:56 sd-gpu wrong channel Mar 08 03:31:16 for sympathies go to #android-root Mar 08 03:31:30 oh no it's fixed again don't need help :P or that Mar 08 03:31:45 your response was enough to show you do cared Mar 08 03:31:54 even if it was in the negative Mar 08 03:32:00 we care so little, its in our topic Mar 08 03:32:29 the topic is so big it doesnt even fit on screen nor do i care if you or anyone else cared Mar 08 03:34:17 weird assertion error in preview Mar 08 03:34:34 heh Mar 08 03:34:38 hey g00sey Mar 08 03:34:42 hey Napalm Mar 08 03:34:47 does it make it better if id say i thought to be smart and upgrade from api 10 to 19 ? Mar 08 03:35:19 then it's at least channel related Mar 08 03:41:55 no Mar 08 03:45:09 Is hosting from github easy Mar 08 03:46:22 YungDaVinci: https://pages.github.com/ < what do you thinl Mar 08 03:46:27 *think Mar 08 03:47:11 neat Mar 08 03:50:21 cannot resolve symbol IProjectCallback Mar 08 03:50:30 I think i better read those instructions after all, I am sitll probably missing deps Mar 08 03:58:38 JakeWharton, any thoughts on creating a lib like React that uses kotlin instead of javascript? Mar 08 03:59:21 what parts of react are you interested in? the DOM diffing? Mar 08 03:59:45 my primary concerns are spamming the heap (and the subsequent GC) of a ton of short-lived objects Mar 08 04:00:07 to be honest, i'm not that familiar with React's workings Mar 08 04:01:25 i'm not either, so i'm mostly just responding to the hype from the fb machine, er... react.js conf. some of it was very convincing, imo. but in an android context, i prefer kotlin to js as a declarative language. Mar 08 04:02:19 so if i can implement something that is language agnostic for my various DBs, i could use a kotlin/react hybrid for my DOM needs b/w web and mobile apps Mar 08 04:04:50 com.android.ide.common.rendering.api Mar 08 04:04:52 i need that Mar 08 04:04:56 and somethign called ninepatch Mar 08 04:05:44 :| Mar 08 04:08:16 Napalm how hard do you think it would be to write your own BLE Apis to replace the Android *Java* bits which talk to the BT Service ? Mar 08 04:08:52 i think the bluetooth service is OK, its just the framework bits which i'm thinking about tossing Mar 08 04:09:25 meh, then i would have to track api changes across android versions Mar 08 04:09:48 g00s: you like giving me the big questions Mar 08 04:10:00 big questions for smarties :) Mar 08 04:10:02 g00s: hard is not really the right question Mar 08 04:10:11 its not going to be 'that' hard Mar 08 04:10:21 its just going to need time and lots of testing Mar 08 04:10:57 I dont have any real BT use.. so I'm no good.. but I like your idea.. replace the front end of the stack and fix the issues Mar 08 04:11:03 yeah if the bt service contract changes in some future version i would have to know that Mar 08 04:11:30 I can obviously help write it, but testing for me is only whatever i can do locally Mar 08 04:11:44 BT headset and a few other basic applications Mar 08 04:12:01 oh this is just BLE parts. the BLE stuff is very minimal Mar 08 04:12:18 so you mean the Gatt side Mar 08 04:12:28 there are only 3-4 files, mostly with stiupid getters / setters Mar 08 04:12:30 yeah Mar 08 04:12:37 ok lets do it Mar 08 04:13:24 lets see what dave thinks about the concurrency problem. if it turns out to be as bad as i think, then yeah i'm for it Mar 08 04:14:26 I wonder if we can get traction to call it Android Gatt Support * and get it in the support lib :D Mar 08 04:15:28 we could setup the xml for Android SDK Manager to use a github as the source of an installable m2 repo package Mar 08 04:15:31 Napalm the funny thing, if you look at BluetoothGatt - it would almost be easier to talk directly to the Service than going through the framework shim Mar 08 04:15:43 :O Mar 08 04:16:04 then stick that on the github page and everyone gets it and updates for it :D Mar 08 04:16:16 \o/ Mar 08 04:16:25 im liking this idea.. sooo.. when do we start? Mar 08 04:16:56 let me write up the bug report and get dave's feedback, and cedric said he may be able to look at it also :) Mar 08 04:17:22 o_O Mar 08 04:17:57 we should get together a google group of BT experts Mar 08 04:17:57 :D Mar 08 04:18:03 i want a project with traction Mar 08 04:18:27 hey cbeust_.. whats with the face Mar 08 04:18:31 dont you like a challenge? Mar 08 04:18:41 BLE is very important because of the ecosystem it enables around the phone, its a shame google foobarred this Mar 08 04:18:55 I love challenges. BLE looks more like a death trap. Mar 08 04:19:17 you dont need your hair.. its fine :D Mar 08 04:19:20 well, yeah ultimately we are at the mercy of bluedroid Mar 08 04:20:41 hmm, i wonder if theres a way to setup a little daemon to monitor a git repo and any code changes to a java package will invoke a script to post the git commit a google group Mar 08 04:20:56 that would be handy to monitor changes within the android AOSP code-base Mar 08 04:34:21 Hi, how is it possible to register my service to listen for unlock and lock event? Mar 08 04:34:52 you mean lock and unlock the phone? Mar 08 04:35:12 Napalm: No, I want to have a listener that is called when the phone is locked or unlocked Mar 08 04:35:41 :| Mar 08 04:35:43 you mean yes Mar 08 04:35:45 http://developer.android.com/reference/android/content/Intent.html#ACTION_SCREEN_OFF Mar 08 04:35:51 and ACTION_SCREEN_ON Mar 08 04:36:13 I had a look at that but apparently it isn't solely for unlock events Mar 08 04:36:27 for example, if the user press the lock button and the screen comes on but they don't actually unlock the phone. Mar 08 04:45:47 Sorry, back. Did you say anything Napalm? Mar 08 04:47:17 g00s you should present a paper for the canadian android conference on bt Mar 08 04:47:29 mett jakewharton and mikewallacedev Mar 08 04:47:47 canadian android conference on bt ? Mar 08 04:49:55 where is canadiancow Mar 08 04:50:11 no Mar 08 04:50:12 just android Mar 08 04:50:27 you mean droidcon Mar 08 04:50:49 http://www.droidcon.ca/ Mar 08 04:50:51 http://www.droidcon.ca/#papers Mar 08 04:51:49 ah Mar 08 04:59:24 Any ideas on how to create a listener for unlock and lock events? Mar 08 05:00:18 is there any good standalone emulator which works on ARM architecture Mar 08 05:00:40 genymotion isn't helping and I don't like the default emulator in the sdk Mar 08 05:05:20 whats the best way to make a 1 row gridview? Mar 08 05:16:45 does adb sync keep a cache of files that are changed? Mar 08 05:31:12 lasserix: a 1 row GridView is a LinearLayout with horizontal orientation Mar 08 05:32:08 ** oops , i mean ListView not LinearLayout Mar 08 05:42:38 listview dont have horizontal orientation Mar 08 05:55:26 hi, i'm having a very difficult time getting write permission on /system on my xperia z2. wp_mod.ko and sbin/ric keep it from ever allowing either to change. i can't think of any work around. are there any new ways to get around them ? Mar 08 05:55:44 vagweif7 wrong channel, see topic Mar 08 05:56:04 thank you g00s Mar 08 05:56:56 hi is there any way to make a DrawerLayout to have sort of fade in rather than sliding in. i.e., to override the enter an exit animation of the children. Mar 08 06:07:16 i am adding views after a linearlayout has been set in a scrollview to the linearlayout why would the scrollview not scroll? Mar 08 06:08:58 zomg Mockingjay Pt 1 was awful Mar 08 06:09:51 g00s: eh, it was alright Mar 08 06:10:00 JesusFreke nothing happened ! Mar 08 06:10:23 they made some propaganda films and rescued a few people Mar 08 06:10:23 was there to build tension Mar 08 06:10:34 heh Mar 08 06:10:57 and didn't you see the dome come falling down Mar 08 06:11:14 the pivotal moment in the whole series, the epitomy of the prevailing order coming to an end. Mar 08 06:11:35 that was the second movie though, right? Mar 08 06:11:38 oh Mar 08 06:11:43 hehe maybe Mar 08 06:11:54 yeah pt 1-2 were ok Mar 08 06:12:03 i mean movie 1-2 Mar 08 06:12:04 so are you going to submit a paper to do a presentation on bt? Mar 08 06:12:19 i was thinking about it, but so little time. about a month Mar 08 06:15:51 Hey folks, what is the most appropriate way to implement an item click listener for a recyclerview? Mar 08 06:18:37 I see varying opinions strewn across stackoverflow on the right way to do it Mar 08 06:19:49 desmin88 programming android is kinda like finding consensus on SO Mar 08 06:20:31 if i remember even jacobtabak answered one of those Mar 08 06:20:53 http://stackoverflow.com/questions/24471109/recyclerview-onclick/26196831#26196831 Mar 08 06:20:56 found it Mar 08 06:20:58 thanks Mar 08 06:21:16 "Pretty sure Google have competitions to see how they can turn the most simplest of things into the most convoluted solution possible." Mar 08 06:21:19 heh, thats for sure. Mar 08 06:23:20 book 3 is pretty weak from a movie perspective Mar 08 06:23:33 splitting it into 2 movies is a total money grab Mar 08 06:24:23 yeah Mar 08 06:24:40 a big criticism for pt 1 is what you said g00s, not enough 'action' Mar 08 06:25:10 kinda like gradle documentation, very long but no content Mar 08 06:25:13 desmin88: any way you want Mar 08 06:25:28 you can use framelayout with overlay Mar 08 06:27:36 * pfn hasn't bothered to watch Mar 08 06:28:36 they spent 5 minutes looking for a cat Mar 08 06:28:56 lol Mar 08 06:29:15 i want to read the books first... but i've been saying that since the first movie came out :/ Mar 08 06:29:25 i think the whole plot of 'organically' getting a reaction from katniss on film was just stupid Mar 08 06:30:38 but i'll miss philip seymour hoffman :( i can't imagine he's in the last one Mar 08 06:31:10 i think he is Mar 08 06:31:23 iirc they shot pt 1 and pt2 almost concurrently Mar 08 06:31:30 so all they needed was a few more scenes which were cgi'ed Mar 08 07:02:10 i hate undocumented error codes :| Mar 08 07:02:32 once in a while onSearchComplete returns 129 Mar 08 07:08:10 #define GATT_INTERNAL_ERROR 0x0081 Mar 08 07:08:27 they should have exposed these codes in the java apis Mar 08 07:08:52 android just chucks some stupid int error code and all you can do is decide whether its not 'success' Mar 08 07:09:21 these devs should never be allowed to write any more code for as long as they live Mar 08 07:10:27 eeyup Mar 08 07:10:29 anyone know of a snapping horizontal scroll view? Mar 08 07:10:30 just like with camera Mar 08 07:17:20 lasserix:L Mar 08 07:17:23 ugh Mar 08 07:17:25 whats the use case? Mar 08 07:18:33 got textviews all the same width want it to snap to eacg one on scroll Mar 08 07:18:52 you can use a viewpager Mar 08 07:18:57 no Mar 08 07:19:07 needs to scroll not page Mar 08 07:19:17 ahh i see what you mean Mar 08 07:20:34 could you not just modify the horizontalscrollview Mar 08 08:10:47 g00s_: ! Mar 08 08:12:59 thepoosh: ! Mar 08 08:13:13 desmin88: wanna see the douchiest post ever? Mar 08 08:13:16 https://plus.google.com/u/0/+LinusTorvalds/posts/CGRGbUXYUDw Mar 08 08:13:27 anything from linus torvalds is douchey Mar 08 08:13:35 generally a self-absorbed prick, he is Mar 08 08:13:50 true dat Mar 08 08:13:55 but this is special Mar 08 08:14:22 its not loading for me Mar 08 08:14:25 is it the one about calendar? Mar 08 08:14:35 just loaded, it is Mar 08 08:15:02 lol Mar 08 08:15:15 how did you know it will be about calendar? Mar 08 08:15:51 http://i.imgur.com/1ipgbfg.gif Mar 08 08:24:17 i wish i wasnt such a night person and that i could get good work done not late at night Mar 08 08:31:58 desmin88: I've met Linus at the 2015 Australian Linux Conference, and read several of his posts, and seen several videos of him. He is actually quite mild tempered. Mar 08 08:32:47 I saw him harassed by one woman for over half an hour and he was quite calm and not aggressive in any way Mar 08 08:33:17 she should go and nag reiser instead Mar 08 08:33:38 he's in prison, last I heard Mar 08 08:34:00 eeyup Mar 08 08:35:05 Linus is generally only rude to people who should know better, like a maintainer breaking things and not accepting responsibility... Mar 08 08:38:34 I've read posts were he was quite cutting about himself releasing a kernel that was obviously broken, so he is can put himself down harshly - best not to take what he says too much to heart Mar 08 08:39:05 more on topic... Mar 08 08:40:53 I notced Android 5.1 uses a 3.10 kernel rather than a 3.4v one, but strangely not seen any article picking up on the significance! Hint, it is more than just a big number in the second position! Mar 08 08:42:13 hehe thepoosh he seems drunk Mar 08 08:42:26 he's not drunk, just an asshole Mar 08 08:43:30 strangley over the top post for like the calendar? Mar 08 08:43:35 like did he miss a hot date or something? Mar 08 08:45:16 Was this about Linus complaining about Google's Calendar app? Mar 08 08:47:25 I love unit testing. It turns complexity into simplicity. Mar 08 08:47:35 Outsourcing our thinking to the machines. Mar 08 08:49:01 I have a love hate relationship with adapters of all kinds. Mar 08 08:53:11 I kinda hate Adapter.getView. It's two methods in one. Mar 08 08:56:07 i dont like that my adapter needs a context or that it inflates a view Mar 08 08:56:32 Does it need a Context? Mine need only a LayoutInflater. Mar 08 08:56:48 Then again, I guess it could need a Context for Context.getResources or whatever. Mar 08 08:57:03 wow reiser is a bastard man Mar 08 08:57:11 That's the guy who killed his wife, right? Mar 08 08:57:20 that's some f-cked up stuff Mar 08 08:57:24 espicially with the kids Mar 08 08:57:25 yeah Mar 08 08:57:33 TacticalJoke: how would you load an image in your adapter? generally youll need a context Mar 08 08:57:51 desmin88: I love adapters Mar 08 08:57:56 they make perfect sense Mar 08 08:58:15 theyre pretty bad when it comes to separating view from model Mar 08 08:59:08 theyre both a view and model piece and decoupling is hard Mar 08 08:59:09 nope! Mar 08 08:59:15 they are just fine! Mar 08 08:59:39 wat Mar 08 08:59:59 thepoosh is very adaptable. Mar 08 09:00:07 exactly! Mar 08 09:00:10 desmin88: just a sec Mar 08 09:00:16 looking for a good post from facebook Mar 08 09:00:36 * desmin88 waiting Mar 08 09:01:12 https://code.facebook.com/posts/879498888759525/fast-rendering-news-feed-on-android/ Mar 08 09:01:15 good post! Mar 08 09:01:36 besides, adapters make perfect sense to me in the sense of how they communicate with the listview Mar 08 09:01:40 i really like them Mar 08 09:02:11 if your adapter is supposed to supply your model data into a view Mar 08 09:02:15 why does it have to create the view as well Mar 08 09:02:53 because that is the exact way of trasfering data to the view Mar 08 09:03:24 shouldnt it just be supplied with a view already made and set its content Mar 08 09:03:26 and if the controller (the activity) is implementing the onItemClickedListener it's breaking everything as well Mar 08 09:03:31 that would be proper mvvm Mar 08 09:04:05 never seen mvvm in android Mar 08 09:04:13 it's always mvc or mvp Mar 08 09:04:16 or crap Mar 08 09:04:18 exactly Mar 08 09:04:46 hmmm Mar 08 09:05:11 all i know is that i started designing my app better about a year in and i'm paying the price now Mar 08 09:05:12 :( Mar 08 09:05:19 :ai Mar 08 09:05:21 Oops. Mar 08 09:05:26 after i need to support about 5 million users Mar 08 09:05:27 Paying the price for making it better?* Mar 08 09:05:28 :S Mar 08 09:05:30 Oh. Mar 08 09:05:34 what is your app? Mar 08 09:05:37 glide Mar 08 09:05:44 well, not mine Mar 08 09:05:48 Just act like Linus. You'll lose them soon enough. Mar 08 09:05:53 but i've been working here since day one Mar 08 09:05:58 LOL Mar 08 09:06:16 i have stock options, it's counter my intentions Mar 08 09:06:18 hey thepoosh . was that calendar thing an un-feature or a bug ? Mar 08 09:06:26 dunno Mar 08 09:06:37 i was completely oblivious to this thing Mar 08 09:06:43 just saw a link to his post last night Mar 08 09:06:50 and thought he was a complete twat Mar 08 09:06:58 Android studio ftw: http://gyazo.com/e978181d66e92c6f98c50774a51ca444 Mar 08 09:07:10 I'm surprised Linus even uses Android. Mar 08 09:07:22 I always kinda imagined him as another RMS: terrified of anything new or shiny. Mar 08 09:07:27 But I guess Linus has never really been like that. Mar 08 09:07:40 TacticalJoke: he;s waiting for the Ubuntu device to come out Mar 08 09:07:44 Ah. Mar 08 09:07:57 this.mPostHandler ;o Mar 08 09:08:11 ? Mar 08 09:08:37 m = this Mar 08 09:08:55 im anal at times about this Mar 08 09:09:31 TacticalJoke: m == mine! Mar 08 09:10:44 I just say "postHandler". If I need to disambiguate, it's this: this.postHandler = postHandler; Mar 08 09:10:51 It's literally 'this'. :D Mar 08 09:11:11 thePostHandler Mar 08 09:11:14 ftw Mar 08 09:11:51 Why 'the'? Mar 08 09:11:58 aParticularPostHandler Mar 08 09:11:59 setHandler(Handler theHandler) Mar 08 09:12:08 so handler = theHandler Mar 08 09:12:10 setTheHandler Mar 08 09:12:25 if it is parameter argument add the so avoid this. Mar 08 09:14:24 I just call them tmp for the_mPostHandler Mar 08 09:14:29 :P Mar 08 09:14:40 this.the_mPostHandler Mar 08 09:15:24 thepoosh me too (ubuntu device) ... i dont think android is well positioned in multi-screen experiences that include larger form factors Mar 08 09:15:45 ios and WP are, WP10 is probably the closest with their univeral binaries Mar 08 09:16:06 ubuntu touch was supposed to have this originally, but i think they dropped it - the most interesting thing about it Mar 08 09:16:26 my opo just arrived Mar 08 09:21:38 it'd be cool if subclasses of View would implement specific listeners with their return type Mar 08 09:21:49 i.e imageview.onclicklistener would have onClick(imageview) Mar 08 09:24:02 Kotlin is nice here. You can just say this: if (view is ImageView) { view.loadBitmap(...); // no need to cast } Mar 08 09:24:13 neat Mar 08 09:24:17 Then again, that is still kinda annoying in the case you talk about. Mar 08 09:24:31 Should be able to just say "view.loadBitmap(...);", I guess. Mar 08 09:24:31 TacticalJoke they told you about M11 Mar 08 09:24:41 anywhere i can read about it? Mar 08 09:24:58 Oops, that should be "setImageBitmap". Mar 08 09:25:14 g00s_: Not sure. lol. I looked really quickly and didn't see much. Mar 08 09:25:20 I found some forums or something. Mar 08 09:26:29 they said m11 was next week Mar 08 09:27:44 God dammit. I have a bug in my code, but no unit test will reproduce it. :D Mar 08 09:27:47 It's like it doesn't exist. Mar 08 09:27:53 I swear it exists! Mar 08 09:28:46 It's because my accessors are so OCD that they basically hide the buggy behaviour. Mar 08 09:28:55 Do not try and reproduce the bug. That's impossible Mar 08 09:29:01 instead, try and realize the truth Mar 08 09:29:06 there is no bug. Mar 08 09:29:25 your jedi mind tricks will not work on OCD Mar 08 09:29:58 Then you'll see it's not the bug that reproduces.. it is only yourself. Mar 08 09:31:29 I can expose the first bug by creating a second bug. So I have either zero bugs or two. Mar 08 09:31:36 There is no "one". Mar 08 09:31:46 this is goofy https://www.youtube.com/watch?v=dF8ojPeSo3s Mar 08 09:32:09 TacticalJoke take a break, watch time flow backwards in that video Mar 08 09:32:45 * JesusFreke wonder what happens if you play the music backwards Mar 08 09:32:45 This clicking sound is having a weird effect on me. Mar 08 09:32:52 Reminds me of that ASMR thing. Mar 08 09:33:06 JesusFreke: You get Satan's direct communication. Mar 08 09:34:09 that barn is like a piece of software Mar 08 09:38:18 heh. I love when you find a great new band/album/song, and just listen to the heck out of it Mar 08 09:38:30 http://www.last.fm/user/JesusFreke/tracks?page=1 :p Mar 08 09:39:27 This is so awesome: http://youtu.be/rEGOihjqO9w I listen to it every day. Mar 08 09:39:43 (Rach 2.) Mar 08 09:42:46 TacticalJoke: that is intens Mar 08 09:42:53 *intense Mar 08 09:42:58 :) Mar 08 09:43:02 How to use onFling? Mar 08 09:43:44 so I made a "snapping" horizontal scroll view by checking diff of getScrolX() relative to all the childrenlefts of a horizontal lienarlayout that is the child of the horizontalscrollview and smoothscrolling to the nearest left Mar 08 09:43:53 which works fine, except flinging Mar 08 09:44:15 ahh i guess i can just do it via scrolllistener Mar 08 09:58:07 rxjava join is super hairy Mar 08 09:58:17 but awesome :) Mar 08 10:01:04 explain! Mar 08 10:03:37 g00s_: Mar 08 10:04:59 thepoosh its one of the operators that work on "sequences of coincidence" like buffer and window. i'm thinking about using it to join a BLE request & response Mar 08 10:05:19 the response can only be joined if it occurs within a timeout window Mar 08 10:05:30 man i love rx Mar 08 10:06:14 but i'm probably going to be learning it for at least a few more years :| Mar 08 10:11:03 :S Mar 08 10:11:19 g00s_: start writing your blog, I need to learn it as well Mar 08 10:12:07 there are a few books coming out, but they are by typesafe guys in scala :( Mar 08 10:12:34 this is the next on my toread list: http://www.androiduipatterns.com/2015/01/how-we-created-scalable-ui-case-study.html Mar 08 10:12:40 hmmmm Mar 08 10:12:48 there is also the RX papers on .NET Mar 08 10:13:42 nice thepoosh Mar 08 10:14:01 yeah, nice. i'm still trying to get my tabs to look material :| Mar 08 10:14:21 we have a GDC guy here who suggested it Mar 08 10:14:30 to our product team Mar 08 10:15:01 thepoosh what did he suggest ? Mar 08 10:15:11 he sent out the post Mar 08 10:15:16 i didn't write that Mar 08 10:15:20 oh he suggested the blog article Mar 08 10:15:22 it's on my read list Mar 08 10:15:25 oh Mar 08 10:15:29 how do you make tabs look material? Mar 08 10:15:46 @_@ Mar 08 10:15:47 lasserix_: Z index! Mar 08 10:16:01 i think i screwed up my primarycolor or something Mar 08 10:16:06 what does that translate to as far as a visual aesthetic? Mar 08 10:16:09 i hate all the stupid attributes Mar 08 10:20:10 Anyone know how to to tell when a scrollview has stopped scrolling? Mar 08 10:23:33 Anyone? Mar 08 10:23:40 Beuller? Mar 08 10:24:16 lasserix_, https://github.com/ksoichiro/Android-ObservableScrollView Mar 08 10:24:33 this has a scrollview implemenation with scrolllistener Mar 08 10:25:17 nothing for scroll stop Mar 08 10:26:01 I'm currently using https://github.com/jpardogo/PagerSlidingTabStrip but I just found the SlidingTabsBasic Sample from Google should I use that instead? Mar 08 10:26:07 thanks tho Mar 08 10:26:19 memorion: whatever is easier for you to use Mar 08 10:26:24 so if it is working why switch? Mar 08 10:27:35 styling the tabs in the library is pretty weird I think and I had to set a textPrimary color which messes up other layouts Mar 08 10:28:42 memorion, may i give you another alternative? https://github.com/JakeWharton/ViewPagerIndicator Mar 08 10:29:52 last commit in 2012 and it references actionbarsherlock a lot Mar 08 10:30:39 last commit 2012 doesnt mean it got worse since then ;) Mar 08 10:31:14 but actionbarsherlock? whats is it? 2014? Mar 08 10:31:26 no of course, but the screenshots are a little demotivating and it would require more manual styling I'd assume Mar 08 10:31:57 afaik its the most used viewpagertab lib Mar 08 10:33:12 they seem to work pretty much exactly the same way, the one I'm using is a fork of https://github.com/astuetz/PagerSlidingTabStrip Mar 08 10:41:24 then use this if you are more confortable with it ;) Mar 08 10:44:56 https://github.com/jpardogo/PagerSlidingTabStrip/issues/78 if this wasn't the case I'd be comfortable with the one I'm using Mar 08 10:45:34 fix it :p Mar 08 10:48:28 hmmm, maybe it's this? https://github.com/jpardogo/PagerSlidingTabStrip/commit/ea94cdddb0d36d5b7bdecaa678e6828e3126cf9d :D Mar 08 10:54:32 is there an easy way to verify what version of a library gradle built my project with or is it ok to assume if a specify a version that version defintely got used? Mar 08 11:04:30 unless you're using sonatype stuff what you specify is what you get Mar 08 11:05:40 memorion, if you specified the version, that version got used. Mar 08 11:06:06 ok thanks Mar 08 11:06:08 Hello Mar 08 11:06:21 How can I compile libsuperuser from command line? Mar 08 11:06:23 Any ideas? Mar 08 11:08:21 memorion, gradle throws with errors if the version you specify isnt available. there no such thing as fallback versions Mar 08 11:08:55 Mah ha ha ha!!! it works! Mar 08 11:09:00 its ALIVE! Mar 08 11:09:05 oh yes Mar 08 11:09:07 :) Mar 08 11:09:15 :D seems like someones code is finally working Mar 08 11:09:44 implements Power, CallbackToHell Mar 08 11:09:46 :) Mar 08 11:10:30 is there a way to inherit the attributes of Theme.AppCompat.Light.DarkActionBar but use your own toolbar in the layout? currently I'm using Theme.AppCompat.Light.NoActionBar + my toolbar Mar 08 11:16:08 memorion, you can set a default style with or disable the default bar by setting to true Mar 08 11:18:52 maybe setting toolbar style to @style/Theme.AppCompat.Light.DarkActionBar then does what you want Mar 08 11:20:16 memorion: yes just set it on the view Mar 08 11:20:34 memorion: add app:theme="@style/Theme.AppCompat.Light.DarkActionBar" Mar 08 11:20:44 to your Toolbar view in layout Mar 08 11:21:34 maybe theres also a toolbarStyle tag to make it global? Mar 08 11:21:36 dunno Mar 08 11:21:42 just tried hat and now the title in the toolbar is black instead of white, but darkactionbar standard is white isn't it? Mar 08 11:21:49 danijoo: i just answered him Mar 08 11:22:00 oopsy Mar 08 11:22:09 i ment the theme overlay Mar 08 11:23:27 memorion: app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" Mar 08 11:25:24 hmm that get's me the right toolbar textcolor but I think I need to apply that more globally because I want the white menu with black text Mar 08 11:25:56 nope Mar 08 11:25:58 thats another one Mar 08 11:26:07 pp:popupTheme="@style/ThemeOverlay.AppCompat.Dark" Mar 08 11:26:10 app Mar 08 11:26:57 oh I thought darkactionbar had a white menu, sorry and thanks! Mar 08 11:48:51 Hello! I'm totally new to Android stuff, but I have this game idea I really wanna see happen Mar 08 11:49:01 Would anyone help me out? Mar 08 11:49:48 are you looking for someone to code it for you? Or do you want to learn to code it? Mar 08 11:49:55 Sorta both Mar 08 11:49:59 Heavily guided assistance. Mar 08 11:50:07 Of course money would be involved. Mar 08 11:57:07 Ekki: Read the topic "No bots, and no advertising please, jobs or otherwise" Mar 08 11:59:45 hi, I'm trying to use .so files in an android project as per this SO answer: https://stackoverflow.com/questions/25491743/using-libpd-in-android-studio however I think you need to do more than just drop in the files. please could someone point me to some up to date documentation on how to achieve this? Mar 08 12:01:49 "As of Android Gradle 0.7.2 you can put your native libraries in src/main/jniLibs and they'll be packaged correctly. Sample : github.com/commonsguy/sqlcipher-gradle/tree/master/src/main/… – Riyaz Mohammed Ibrahim Jun 11 '14 at 6:28" Mar 08 12:02:18 just followed the stackoverflow comments, hopefully that works for you Mar 08 12:04:54 oops, I broke the link, here's the sample https://github.com/commonsguy/sqlcipher-gradle/tree/master/src/main/jniLibs Mar 08 12:05:49 I have tried to call a function contained in the so and i get a 'cannot find symbol' error Mar 08 12:06:10 autopilot, look at https://github.com/syncthing/syncthing-android/, uses different .so files for arm and x86 Mar 08 12:06:19 with jniLibs Mar 08 12:08:15 Moter8: i don't think the problem is the architecture, it's that i'm not telling studio how to find the symbol Mar 08 12:08:38 if you put it in jniLibs folder it should work Mar 08 12:08:43 look at its gradle file ^^ Mar 08 12:14:03 I'm not sure what I need to put into my build.gradle though Mar 08 12:14:17 doesn't look like i need sourceSets, it's already named correctly Mar 08 12:16:06 maybe preBuild { dependsOn 'buildNative' } ? Mar 08 12:17:42 memorion: adding this causes the project sync to fail Mar 08 12:18:08 ah Mar 08 12:18:12 oh I see that they wrote the buildNative thing themselves, I assumed that was built in Mar 08 12:18:15 i need to add buildNative {} to? Mar 08 12:18:42 I don't think that's it sorry Mar 08 12:19:56 https://gist.github.com/Moter8/9cfc191434d1989d86be#file-windows-build-gradle-L46-L50 Mar 08 12:20:03 Something like this Mar 08 12:20:37 O.o Mar 08 12:20:53 okay, even after reverting, my project sync is still failing Mar 08 12:21:21 autopilot, can you please explain a bit more what you're trying to do? You have a compiled .so library you want to use in an Android app? Mar 08 12:21:25 (sorry, just came) Mar 08 12:22:43 I'd like to use libpd in my project, they provide prebuilt .so's but I'm having trouble figuring out how to use them in studio Mar 08 12:22:53 their projects only work in eclipse Mar 08 12:23:00 those are just editors. Mar 08 12:23:13 you're looking at the wrong place. Mar 08 12:23:18 what did you do until now? Mar 08 12:23:39 i'm not trying to build those projects, just took their .so's and I've called libPd() inside my own app Mar 08 12:24:04 ok, where did you put the libraries? Mar 08 12:24:30 inside app/src/main/jniLibs/armeabi Mar 08 12:24:48 wihtout calling their functions, it packages fine Mar 08 12:24:59 it's when i try call initPd() that it complains Mar 08 12:25:39 of course, because before that it's not interacting with it. Mar 08 12:25:49 did you override the native library path by any chance? Mar 08 12:25:54 does your output apk have those libs inside? Mar 08 12:27:15 I've unzipped my apk and found the libs Mar 08 12:27:30 not sure how to override native lib path Mar 08 12:27:42 ok, if the libs are inside the APK, then gradle configuration is right Mar 08 12:27:50 they should be in lib/armeabi right? Mar 08 12:27:56 btw, are you testing in genymotion or something? Mar 08 12:28:29 also, you don't get UnsatisfiedLinkError, but just missing symbol? Mar 08 12:28:59 yes, it's in lib/armeabi Mar 08 12:29:07 don't even know what genymotion is Mar 08 12:29:17 just missing symbol error Mar 08 12:29:36 genymotion is a commercial android emulator Mar 08 12:29:43 ah Mar 08 12:29:52 it's x86 that's why I'm asking Mar 08 12:29:55 many people use it, it's simply faster Mar 08 12:30:05 autopilot, ok, so Gradle configuration is ok, your library supposedly loads Mar 08 12:30:21 autopilot, to basically the issue is that the function call doesn't exist in .so when libpd tries to call Mar 08 12:30:26 i've just got my phone plugged in so I'm assuming that when i click run it'll build and load striaght to my phone Mar 08 12:30:38 hmm Mar 08 12:30:44 so either the .so libraries don't match the java libs (and the functions were renamed) Mar 08 12:30:44 i'll check my so's for it Mar 08 12:30:48 or the whole JNI glue layer is missing Mar 08 12:30:54 if you do a dump of calls in .so Mar 08 12:31:18 you should see bunch of symbols named java_package_name_method_name Mar 08 12:33:15 Mavrik: is there a better way than using strings to see them? Mar 08 12:33:33 objdump or nm or whatsit on linux Mar 08 12:33:37 which OS are you using? Mar 08 12:34:29 ah okay, this is embarrasing Mar 08 12:34:47 the call doesn't actually exist in the so's Mar 08 12:35:09 i've not implemented my app correctly Mar 08 12:37:53 anyone with experience with the hierarchy viewer here who can tell me if http://imgur.com/Cr55TfK looks ok? or is there something obviously wrong? Mar 08 12:38:27 the layout I marked is the first I manually created Mar 08 12:39:35 okay i think I need to do a lot more before I can use libpd... I've put some import lines in and studio can't resolve the symbol 'puredata' in "import com.puredata.core.PdBase" Mar 08 12:41:32 i think i need to add it to my manifest Mar 08 12:43:24 nah that's not it - can anybody tell me how I can import my so's? Mar 08 12:46:19 Everytime I launch my app in the simulator, it has the "tutorial" crap on (overlays explaining how to use Android). Any way to not have it do this every time? Mar 08 12:47:39 autopilot, you don't import .sos Mar 08 12:47:42 autopilot, you use JNI. Mar 08 12:52:47 Mavrik: Okay, but I'm a bit lost now. I've got CircleOfFifths project open (pd-for-android), trying to use that as a template but I don't know what to look for Mar 08 12:54:06 dcorbin_: Which simulator? Mar 08 12:54:08 i am animating a view with TranslateAnimation - if I do nothing at the end, the view returns to it's starting point. If I listen for the end of the animation and then set the position, it flashes "away and back" at the terminus point. Mar 08 12:54:41 autopilot, sorry, I've never used the projects you're using Mar 08 12:55:01 But you can't just import a native function from an .so in Java Mar 08 12:56:07 Mavrik: yeah i'm probably asking the wrong thing.... I'm completely new to android and I don't know any of the terminology... joining in on this in the middle of the eclipse>studio switch isn't helping Mar 08 12:56:33 TacticalJoke: "emulator64-x86" ? I'm no OS X. or possibly you mean "HAX"? Mar 08 12:57:05 autopilot, well, that's actually Java concept Mar 08 12:57:13 nothing really to do with Android Studio, Eclipse or Android :/ Mar 08 12:57:18 it's how Java interacts with native code. Mar 08 12:57:25 Okay. Hmm, it shouldn't show the tutorial every time. Are you creating a new image every time? Mar 08 12:57:28 autopilot: what does libpd provide to you? Mar 08 12:57:31 Also, are you restarting the emulator every time you run your app? Mar 08 12:57:45 Perhaps you'd be best finding a java equivalent. Mar 08 12:58:41 TacticalJoke: I'm just clicking the "run button". The emulator is in fact getting restarted many times. Not sure about everyttime. Mar 08 12:59:20 dcorbin_: it's Pure Data (audio engine) Mar 08 13:00:00 The emulator shouldn't be restarting. It should stay open no matter how many times you run your app. Mar 08 13:00:46 TacticalJoke: It's possible I'm closing the window. I'll have to pay closer attention to be sure. Mar 08 13:03:14 Also, it's way easier to test with devices. Mar 08 13:03:42 TacticalJoke: the Emulator is better than the one device I have (trust me). Mar 08 13:06:16 I am not having a good time with androidchart Mar 08 13:06:51 Can I ask which device you have? Just curious. Mar 08 13:07:03 I take your word; just wondering how bad things are. :D Mar 08 13:07:44 Is it possible to get Flexible Space on pre-L devices ? Mar 08 13:08:13 Hello, I want to make android apps. Should I use eclipse or android studio? Mar 08 13:08:20 You should use android studio. Mar 08 13:08:54 Also I'm guessing it's good to have knowledge in java? Mar 08 13:09:00 yeah Mar 08 13:09:02 I'd say so Mar 08 13:09:07 autopilot: Pure Data looks like a programming language - are you trying to port it, or use it on an android device? If the latter, Either one looks like a very large project. Mar 08 13:09:07 Thanks Mar 08 13:09:15 Mavrik: can i reword my problem to you - if i had a .so with like an empty function call, and I wanted to be able to reference that call from inside studio, what would i have to do? Mar 08 13:09:20 current android studio is Idea IntelliJ Mar 08 13:09:50 I find IntelliJ's features that give code hints and stuff (intellisense or whatever they call it) to be a lot more robust than eclipse's Mar 08 13:09:58 learn how to use JNI. But even then, you're subject to having .so' s that are compiled for the correct processor. Mar 08 13:10:09 autopilot do you know about the jni? http://stackoverflow.com/questions/5659068/jni-tutorial-for-android Mar 08 13:10:09 Is there JNA for android too Mar 08 13:11:09 memorion: thanks for the link Mar 08 13:11:38 Because I've always wanted to make my own game for android. And it's good just to have the knowledge. Should I read the official documentation or are there better resources than that? Mar 08 13:14:17 I searched some tutorials for android development on YouTube and there seems to be nice tutorials there. They might be outdated though. Mar 08 13:21:40 Anyone ever used this library ? https://github.com/ksoichiro/Android-ObservableScrollView Mar 08 13:31:02 I guess I'll just learn from the documentation, it's probably more up to date Mar 08 13:36:40 How would I go about updating my UI when all the users in a table have submitted an entry. Mar 08 13:37:05 There multiple users in a table that can come and go. Mar 08 13:37:35 But when each user in the table has submitted his/her entry, i would like to update each client's UI Mar 08 13:37:51 only when all of the users have submitted an entry. Mar 08 13:41:23 basically, I want to update the repsective users' UI when certain criteria is met on a database, which can be any time. Mar 08 13:45:37 I don['t quite get Mar 08 13:46:04 i don't quite get how my ListFragment is supposed to send the notification to the Detail View fragment that the selected items have changed. Mar 08 13:46:28 CanyonMan: Use the Activity as the middle-person. Mar 08 13:46:57 ohhhhh okay Mar 08 13:47:29 Normally people use the 'listener' pattern to call back to the Activity, and the Activity notifies the other Fragment. Mar 08 13:48:27 The idea is to keep the fragment as ignorant of everyone else (the activity and the other fragment) as possible. This keeps things simple and flexible. Mar 08 13:55:20 I wish there were a keyword for package-private accessibility. It looks weird just not using a keyword. Mar 08 13:58:40 Yeah, I never liked that about java Mar 08 13:59:46 Something like "internal" would be nice: private int foo; internal int bar; Mar 08 14:00:33 Ah, Kotlin uses 'internal'. Didn't know that. Mar 08 14:01:31 so the sample code it generated does this: Mar 08 14:01:40 in onItemSelected() when you change, Mar 08 14:01:50 it actually seems to create an entirely new detail fragment, Mar 08 14:01:57 then use the fragmen manager to .replace() the existing one Mar 08 14:02:00 Is that sane? Mar 08 14:02:22 I guess it's user interface so maybe it's fast enough that way. Mar 08 14:03:18 Hmm, I've not yet done master/detail with fragments, but I would've thought in some cases it'd make more sense to keep the fragment and just update its UI. Mar 08 14:03:33 Note that both ways are gonna be super-fast; I'm just talking about concepts. Mar 08 14:04:11 yeah Mar 08 14:04:25 I have not done master/detail at all. What I did was right click add activity master detail, and i'm building on it Mar 08 14:04:37 If the new content is very similar to the old, I think I'd keep the existing fragment, personally. Mar 08 14:04:43 If it's a whole new screen, I'd create a new fragment. Mar 08 14:04:44 I think for the sake of generating complete examples and templates this whole environment generates kind of a ton of code Mar 08 14:05:10 In this case, their out of the box concept seems to be when you do a master/detail they make a large format and small format version by default Mar 08 14:05:17 CanyonMan: Are you referring to the code auto-generated by Android Studio? Mar 08 14:05:22 yessir Mar 08 14:05:34 So what android studio made was: a single Activity that's the entry point; Mar 08 14:05:54 Ah, okay. If you're learning, I would definitely advocate starting from a blank slate and doing it all manually. Though it's interesting to see what it generates too. Mar 08 14:05:58 it in turn decides do I want one or two panes (depending on the device size) ... so that's an additional two layouts it makes Mar 08 14:06:24 and then it creates a common "detail fragment" that can be used by one of those two (side-by-side or whatever the small screen one does) Mar 08 14:06:46 so when I first saw it I was like I'm doing this for a tablet, screw phones ... and I was tempted to just delete it all Mar 08 14:06:50 Yeah I hear what youa re saying. Mar 08 14:07:26 When I actually get this working their way, I am going to think about what you are saying and maybe piece one together manually (or from a blank activity generator then build up) just to see if I can simplify this some. Mar 08 14:08:40 Yeah, I've never been a fan of wizards, personally. Too boilerplate-y for me. Even for new activities I do it manually (I hate how the auto-generated code wants to touch my strings.xml and so on). Mar 08 14:10:02 Yah, same. But I'm feeling like such a n00b/clod here I'm not ready to let go quite yet Mar 08 14:13:20 how do i get a device out of the hashmap returned by UsbManager.getDeviceList() when I have no idea what the name of the device i want is ? Mar 08 14:17:42 ok, selecting the right deail is working great, just like you said Mar 08 14:17:51 going through the activity which then (for now) just replaces the detail Mar 08 14:18:06 so I have to decide to either give up on androchart or make it work Mar 08 14:19:22 i actually mean androplot not chart Mar 08 14:21:00 CanyonMan this chart library looks nice https://github.com/PhilJay/MPAndroidChart Mar 08 14:21:47 yeah. I'll look at that as a fallback Mar 08 14:21:52 Those look good but basic Mar 08 14:24:31 hi !!! Mar 08 14:24:58 what is the difference between using 'android.app.Fragment' and 'android.support.v4.app.Fragment' Mar 08 14:25:01 ? Mar 08 14:25:25 you can't use the app.Fragment on old api levels but the support one works Mar 08 14:28:18 that's all ? Mar 08 14:28:25 so what's the point of using "android.app.Fragment" ? Mar 08 14:28:30 code lisibility ? Mar 08 14:28:39 or risk of being depracated ? Mar 08 14:29:35 yeah there's not really a reason to use the app.Fragment unless you specifically don't want to use the support library Mar 08 14:29:55 that's entirely answer my question :-) thanks :) Mar 08 14:31:11 I can't wait to get my nexus player on tuesday Mar 08 14:31:16 I am so excited Mar 08 14:31:23 blusky: There are loads of good Google results on this question. Mar 08 14:31:35 Well, there are some. Mar 08 14:32:21 TacticalJoke: you're probably right, should have performed that before asking Mar 08 14:34:20 Well, maybe, but I didn't really mean it like that. Just pointing out that this is a slightly big topic and Google has a lot of info. :) Mar 08 14:34:41 ok, so i'll check it now then :) Mar 08 14:34:53 (before rushing into 'android.support.v4.app.Fragment') Mar 08 15:05:47 Is there a way to go to next album, enable suffle, using MediaController from API 21? Mar 08 15:06:37 there are sendCommand and TransportControls.sendCustomAction , but I can't find a list of commands Mar 08 15:11:31 Does a new APK get built for the app each time we run it? Mar 08 15:12:10 If there's no change, I wouldn't expect a new APK to be built. Mar 08 15:12:13 Though I haven't checked. Mar 08 15:14:46 Thanks TacticalJoke Mar 08 15:14:53 I gotta go now, will you be on later? Mar 08 15:16:04 Yeah. Mar 08 15:16:20 Ok, cool. Talk to you then Mar 08 15:17:58 ok. Off to best buy to get a cheap stand for this tablet. I have a broken shoulder and so reaching for it is exremely painful. Mar 08 15:18:40 argh. Does Lollipop do this to you: doesn't connect to adb when battery is low? Mar 08 15:20:38 drose379, TacticalJoke you sound logical, but I think it DOES rebuild. I say "think" because, like you, I don't think it should. But it does do "something" if you build twice in a row Mar 08 15:21:20 I get annoyed when it does that, but not annoyed enough to actually check what it's doing :D Mar 08 15:25:07 What could i use/do to update a client's UI only when certain criteria in the DB is met, which can be at any random second of time Mar 08 15:27:58 ? I don't understand the question. Check the criteria, then update the UI :P Mar 08 15:29:04 Hi how do you start to add StickyScrollViewItems on https://github.com/emilsjolander/StickyScrollViewItems , I have added compile 'se.emilsjolander:StickyScrollViewItems:x.x.x' on the build.gradle dependencies, but when i compile it says Failed to resolve: se.emilsjolander:StickyScrollViewItems:x.x.x Mar 08 15:30:36 Krisg, show me the code :) (That was said like Gerry McGuire) Mar 08 15:34:01 MikeWallaceDev: but that would require checking the criteria every second? Mar 08 15:34:24 Why every second? I guess you could pick a sensible time value. Mar 08 15:34:25 profligacy, no, it would require you to check it when YOU update it Mar 08 15:34:28 is there any better mechanism to get the data only when the criteria has been met Mar 08 15:35:02 MikeWallaceDev: i have a table with multiple users. when each user has submitted an entry, i want all the users to be prompted with a poll, so that they could vote on which entry was best Mar 08 15:35:04 profligacy, check the criteria when you update the db... Mar 08 15:35:33 so if first user submits entry, it checks db, criteria is not met Mar 08 15:35:40 exactly Mar 08 15:35:48 keep going until it is. Mar 08 15:35:54 when last user submits entry, it checks db, criteria IS met, and UI is updated for just that user Mar 08 15:35:58 What tutorials should I look at if I want to start making android apps? The official documentation? Mar 08 15:36:07 but first user UI is still not updated Mar 08 15:36:07 pardelkat, yes Mar 08 15:37:07 MikeWallaceDev: ^ Mar 08 15:37:16 I saw Mar 08 15:37:54 check the data on update. Mar 08 15:42:16 My new motto : http://uppix.com/f-ShowMeTheCode54fc6d9900187af1.png Mar 08 15:43:28 lol MikeWallaceDev Mar 08 15:45:36 :D Mar 08 15:45:51 Forgot to sign it :( Mar 08 15:46:10 http://uppix.com/f-ShowMeTheCode54fc6e9600187af3.png Mar 08 15:47:40 MikeWallaceDev: but that doesn't help the other users Mar 08 15:47:49 3 users on a table Mar 08 15:48:09 user 1 submits entry, criteria is still not met on DB, no UI update Mar 08 15:48:18 user 2 submits entry, criteria is still not met on DB, no UI update Mar 08 15:48:35 where do the users submit the entries to? Mar 08 15:48:46 user 3 submits entry, criteria is met on DB, UI updates on user 3's client, but not the other 2 Mar 08 15:48:53 memorion: to the db Mar 08 15:49:06 yeah but where id the db? Mar 08 15:49:08 is* Mar 08 15:49:31 profligacy, you update the UI anyway. Saying "please wait for the others" Mar 08 15:50:03 but how will user 1 know when the others have completed Mar 08 15:50:18 How do you hide the underline of the edittext in searchview? Mar 08 15:50:25 how do the users get access to the poll? Mar 08 15:50:45 memorion: the db is an oracle db Mar 08 15:51:08 so it's on a server somwhere? Mar 08 15:51:18 yeah exactly memorion Mar 08 15:51:44 then you have to send a message to all connected client each time a client submits something Mar 08 15:52:13 memorion: makes sense, how do i go about doing that though Mar 08 15:54:09 sorry I'm not familiar with writing backend code, how are your users chosen? I is there only one poll for everyone or are there groups or something? Mar 08 15:54:30 groups of users Mar 08 15:55:13 profligacy, do you have to update state only when the app is open? Mar 08 15:55:28 Your server presumably has gcm tokens for all your clients and sends them a push notification when the criterion is met Mar 08 15:55:39 Indeed. Mar 08 15:55:56 If you only need updates when app is running, using XMPP instead of GCM makes a bit more sense Mar 08 15:56:08 so you have a service / thread keeping connection open with server and receiving updates Mar 08 15:56:21 then you just send update events over a messagebus to update app ui / datastructures Mar 08 15:57:13 GCM is probably simpler to implement. Mar 08 15:59:11 I can just imaging the blank stare.... Mar 08 15:59:27 CedricBeust: gcm tokens? Mar 08 15:59:29 O_O Mar 08 15:59:40 O_O Mar 08 15:59:51 profligacy: the mechanism Google uses to send push notification to Android devices Mar 08 15:59:55 google could messanging Mar 08 15:59:59 ? Mar 08 16:00:06 yes Mar 08 16:00:10 that honestly now reminded me of http://static.fjcdn.com/pictures/Ie_3a116d_4628175.jpg Mar 08 16:00:13 so i need to make use of that Mar 08 16:00:31 And I'm gonna stop confusing the poor guy :) Mar 08 16:00:52 HAHAHAHAHAHAHAH Mar 08 16:01:03 =/ Mar 08 16:01:05 profligacy you could also use https://parse.com/ Mar 08 16:01:08 no i stepped away from tho laptop Mar 08 16:01:32 i want to learn Mar 08 16:01:34 so that's fine Mar 08 16:01:39 is there a huge learning curve to gcm Mar 08 16:02:06 It's pretty easy to set up, pretty much boiler plate Mar 08 16:02:11 does anyone know how i can set up android studio to recognize bluestacks Mar 08 16:07:27 CedricBeust: do you know a good tutorial resource for me to get acquianted with gcm Mar 08 16:08:38 profligacy: https://developer.android.com/google/gcm/gs.html Mar 08 16:08:46 thanks CedricBeust Mar 08 16:08:55 lmgtfy Mar 08 16:09:28 sorry, just wanted to know which was best Mar 08 16:09:44 don't be sorry man. :) Mar 08 16:10:15 Most of the people here just expect you to do a bit of work before asking questions Mar 08 16:10:24 I'm saying that to help, not be mean Mar 08 16:10:51 Got you. Mar 08 16:10:57 cool :) Mar 08 16:11:29 How long have you been coding mate? Mar 08 16:12:09 It seems to me like you are biting off more than you can chew. Again, saying that with all due respect. Mar 08 16:13:22 hey MikeWallaceDev Mar 08 16:13:38 i've had to mute on on Google+ Mar 08 16:13:52 sorry Mar 08 16:14:02 ?? Mar 08 16:14:07 What did I do now? Mar 08 16:14:17 it always feels like a i get a shit-ton of shares from you Mar 08 16:14:24 i must be in the "everyone" circle Mar 08 16:14:24 lol Mar 08 16:14:34 shares or notifications? Mar 08 16:14:41 I share to public Mar 08 16:15:01 just to public? Mar 08 16:15:05 besides, you didn't have to tell me, I never would have known! :D Mar 08 16:15:14 hmm.. maybe i will have to demote you my side Mar 08 16:15:16 pretty much, unless it's personal Mar 08 16:15:20 well i was hoping we could work it out Mar 08 16:15:31 that's nice of you mate :) Mar 08 16:16:04 https://plus.google.com/u/0/+MikeWallaceDev/posts/j7PWYj7foEG Mar 08 16:16:06 lulz Mar 08 16:16:26 If you only want "Android tech stuff" then join my community. That's where I only post my blog and strictly tech stuff. Mar 08 16:16:46 link Mar 08 16:16:49 please Mar 08 16:17:02 wait a sec, I don't know it by heart :D Mar 08 16:17:34 https://plus.google.com/u/0/communities/117491415562681238810 Mar 08 16:17:56 I don't know why not! That's an easy url to memorize! Mar 08 16:18:11 I can never remember if it's 8810 or 8801 Mar 08 16:18:16 that's just what, like 3 phone numbers? Mar 08 16:18:53 :D Mar 08 16:19:02 But you don't get notified, right Napalm ? Mar 08 16:19:05 when's the last time you memorized a phone number ? =p Mar 08 16:19:15 MikeWallaceDev the link in http://androiddevcorner.blogspot.ca/2015/01/a-script-to-safely-manage-your-android.html is dead Mar 08 16:19:16 haha. fair point :) Mar 08 16:19:26 wallace, you ever make screencasts? Mar 08 16:19:38 I memorize plenty of numbers!!! Mom is 1+enter. Sister is 2+enter Mar 08 16:19:41 i dont even know my OWN phone number [reliably] Mar 08 16:19:57 lol MikeWallaceDev yep thats about it Mar 08 16:20:07 I honestly had to look up my own number in the phone book once. I never call myself!! Mar 08 16:20:10 phone numbers are obselete just like i gotta pee addresses Mar 08 16:20:18 MikeWallaceDev i have to do that all the time Mar 08 16:20:32 mikedg, what about screencasts? Mar 08 16:20:39 yet i still remember the phone number i grew up with Mar 08 16:20:57 i was thinking about doing some, but want some tips Mar 08 16:21:05 memorion, ?? I just clicked on your link, worked. Mar 08 16:21:37 MikeWallaceDev: I've been coding for some time now, but just at the university level. Mar 08 16:21:38 is there a way to force reset all settings for a certain play store update? Mar 08 16:21:40 BitViper, Ha! Me too!! 514-274-4508!! (That was 36 years ago!) Mar 08 16:21:45 ps: typo on your bio, and there is a dead link Mar 08 16:21:46 Jaycob: I think you would just have to delete the local preferences yourself Mar 08 16:21:48 MikeWallaceDev I get a 404 from bitbucket Mar 08 16:21:48 MikeWallaceDev, ^ Mar 08 16:21:54 oh! Mar 08 16:22:16 * JesusFreke calls MikeWallaceDev's parents Mar 08 16:22:23 hahaha Mar 08 16:22:25 MikeWallaceDev: I've put together web apps in java using jsps Mar 08 16:22:33 WE moved 36 years ago :D Mar 08 16:22:34 i've made use of spring frameworks Mar 08 16:22:35 JesusFreke: yeah ok, so set some kind of flag preference "hasUpdatedToNewSystem" so it only gets done once? Mar 08 16:22:39 haha :) Mar 08 16:22:44 Jaycob: yea Mar 08 16:22:56 that's what I feared lol Mar 08 16:22:57 memorion, weird, I would think that link would ALWAYS work Mar 08 16:23:06 "https://bitbucket.org/risesoftware/scripts/src/master/addkey.sh" Mar 08 16:23:50 I thought it would always point to master HEAD Mar 08 16:23:58 anyways Mar 08 16:23:59 https://bitbucket.org/risesoftware/scripts/src/4c028e35afea13cba1868bc340c3df540365de75/addkey?at=master Mar 08 16:24:12 that one works Mar 08 16:26:34 hmm, so how do I post a link that always refers to the latest version? (HEAD) Mar 08 16:27:01 oh, this seems to work Mar 08 16:27:03 https://bitbucket.org/risesoftware/scripts/src/HEAD/addkey?at=master Mar 08 16:27:18 yep Mar 08 16:28:25 I modified the link in the blog, thanks ! Mar 08 16:28:45 MikeWallaceDev: using master instead of the sha worked for me Mar 08 16:29:01 e.g. https://bitbucket.org/JesusFreke/smali/src/master/NOTICE?at=master Mar 08 16:29:43 MikeWallaceDev: oh, it's because you don't have an addkey.sh :) Mar 08 16:29:48 re: the /master/ url Mar 08 16:30:06 https://bitbucket.org/risesoftware/scripts/src/master/addkey works Mar 08 16:30:12 that seems a little weird JesusFreke ... you have master twice.. I figure at=master means which branch. So HEAD instead of the sha seems to make more sense, no? Mar 08 16:30:44 yeah, the param just controls which branch is shown in the dropdown, I think Mar 08 16:30:45 right! I renamed the file. ok, that's interesting to know! Mar 08 16:30:52 yepper Mar 08 16:32:01 ok, got what you meant, that indeed my original SHOULD have always worked, but I renamed the file. Mar 08 16:32:13 so it's all good. Mar 08 16:32:19 right Mar 08 16:32:54 I really should post more often, I'm just so damn busy coding... Mar 08 16:33:21 heh Mar 08 16:34:37 the crap that I've seen recently deserves posts... Theming preferences is a pile of crap Mar 08 16:35:01 and by pile of crap, I really mean a fucking pile of shit. Mar 08 16:35:51 Yep, roll your own. Mar 08 16:36:16 Yep, that's what I said too. Mar 08 16:36:34 But, by the time you find it that it's faster to roll your own, it's too late! Mar 08 16:42:04 hi, I've just recently started using android studio and I'm wondering why I can't create a package under a directory ? Mar 08 16:42:56 Under a directory? Mar 08 16:43:00 I have a setting which changes something in my mainactivity, if I go to settings, change it use "up" to get back the setting is applied, if I use back it isn't, what's the most straightforward way to make it always apply? Mar 08 16:43:05 saapas, ? you can Mar 08 16:43:42 memorion, that's weird, it should always apply Mar 08 16:43:45 TacticalJoke, MikeWallaceDev , well, if I open the context menu on a directory, there is no 'Package' option in the New menu Mar 08 16:43:59 memorion: Is your "up" thing causing MainActivity.onCreate to happen again? Mar 08 16:44:01 memorion, are you using PreferenceActivity? Mar 08 16:44:27 no I use an actionbaractivity with a preferencefragment Mar 08 16:44:37 TacticalJoke probably yeah Mar 08 16:44:49 TacticalJoke, MikeWallaceDev, the src/main/java directory is blue and it's possible to create a package there, and only there. other directories are brown Mar 08 16:45:02 are you applying in onBack()? Mar 08 16:45:20 I'm using getSupportActionBar().setDisplayHomeAsUpEnabled(true); for the up button Mar 08 16:45:36 and declared the parent in the manifest Mar 08 16:46:35 TacticalJoke, MikeWallaceDev, oh and I'm trying to have two flavors of my app so that both of them have a directory on the same level as the 'main' directory. is this correct or wrong? Mar 08 16:46:51 saapas: I'm not sure, but switching to the Android view might help you figure this out. Mar 08 16:47:01 saapas, seems correct Mar 08 16:47:04 That should simplify stuff. Mar 08 16:47:15 MikeWallaceDev, thanks Mar 08 16:47:32 seems! from what you wrote. :) Mar 08 16:48:53 TacticalJoke, in Android view the top element is 'app' that is a module -- and that is mapped to the filesystem directory app/src/main >_< Mar 08 16:49:31 and? Mar 08 16:49:32 maybe I have to create another module? Mar 08 16:49:35 no. Mar 08 16:49:47 The module is the app. Mar 08 16:49:52 So your module has flavors. Mar 08 16:49:56 ok Mar 08 16:50:14 You're almost entirely dealing just with the app module Mar 08 16:50:23 unless you assemble your app from multiple other module Mar 08 16:51:44 so is there a "right" solution for my problem or should I just put an intent extra that something changed or something like that? Mar 08 16:52:23 so I create directories for each flavor in the Android view .. on what level should they be, then? Mar 08 16:52:49 I have directories manifests, java and res right under app Mar 08 16:53:56 saapas, the locations are actually configurable Mar 08 16:54:04 saapas, but by default they have to be in src next to main Mar 08 16:54:05 so you have Mar 08 16:54:13 flavor1/ main/ flavor2/ etc. in that folder Mar 08 16:54:22 main being the common code Mar 08 16:55:27 yes that's what I'm trying to :) just can't figure out how to Mar 08 16:56:13 I do have a directory for flavor1 next to main that is visible in Project view but not in Android. sigh. Mar 08 16:57:23 And? Mar 08 16:57:32 Did you tell AS that you're building that flavor? Mar 08 16:57:45 Does that code build? Mar 08 16:58:45 Hi, how can i fix "Error:Could not find property 'allJava' on source set main." ? Mar 08 16:59:43 Mavrik, it does build Mar 08 17:00:05 Mavrik, I ran the assembleFreeRelease task Mar 08 17:04:25 memorion: What is the exact problem? Mar 08 17:06:40 MainActivity -> SettingsActivity, change setting, go UP -> Mainactivity, settings applied, and from change Settings, go BACK -> Mainactivity, settings not applied Mar 08 17:07:43 And is it because MainActivity.onCreate is running again when and only when you click Up? Mar 08 17:07:58 I assume so yeah Mar 08 17:08:24 You could check with 'Log.d("memorion", "onCreate");' in onCreate. Mar 08 17:08:52 I'll check Mar 08 17:10:19 yes, up calls onCreate again Mar 08 17:12:46 Hmm, it might be simplest to disable that default behaviour (e.g., by setting launchMode="singleTop") and manually restarting the activity when they come back from the preferences (whether they clicked Up or Back). Mar 08 17:13:44 when using in a xml layout file, how shoul I cast it when retrieving it with "findViewById()" ? Mar 08 17:14:15 then I would always recreate the activity wouldn't I? Mar 08 17:15:47 ok, find it :) Mar 08 17:16:02 You could use onActivityResult or something. Mar 08 17:16:30 yeah and check a boolean extra if anything changed? Mar 08 17:16:35 I tried to set directory app/src/flavor1/java as a source folder, but that's not allowed. Mar 08 17:16:42 or anything ui related at least Mar 08 17:20:01 i wanted to get previous date but i cannot get it shows me the present date, using getter and setters. here is the short code any guide people ?http://paste.ubuntu.com/10563304/ Mar 08 17:25:00 oook what is this sorcery. I created flavor1/java and NOW that too is blue. Mar 08 17:27:41 now I have what I wanted, I only wish I knew what I did different :) Mar 08 18:07:32 I love AssertJ's isGreaterThanOrEqualTo method. Mar 08 18:07:40 For int-related assertions. Mar 08 18:08:44 So much simpler than >= Mar 08 18:09:08 not simpler, but gives more meaningful error ;) Mar 08 18:10:08 Yeah, it gives something like this: "Expecting <20> to be greater than or equal to <100>" Mar 08 18:11:37 Yeah I understand the appeal, I just resisted the requests to add support for this to TestNG to remain agnostic Mar 08 18:12:46 agnostic? Mar 08 18:13:29 Neutral Mar 08 18:13:35 * ScalaWilliam Scala... Mar 08 18:13:36 * ScalaWilliam Test Mar 08 18:13:39 JUnit made the mistake of shipping with HamCrest and regretted it for years Mar 08 18:13:44 * ScalaWilliam o~/ Mar 08 18:16:06 tracker.stopSession() no longer needed in Google Analytics v4? Mar 08 18:18:08 On a side note, I can't stand Hamcrest. So... ugh. Mar 08 18:18:20 I want to end the session onDestroy Mar 08 18:18:25 but the method is gone Mar 08 18:27:43 What's Hamcrest? Sounds like what the piggy bank in Toy Story uses to brush his teeth. Mar 08 18:28:08 Someone says this works to stopSession: Map hit = new HitBuilders.ScreenViewBuilder().build(); hit.put("&sc", "end"); tracker.send(hit); Mar 08 18:28:20 Anyone here use something like that? Mar 08 18:28:25 It's an anagram of "matchers". Mar 08 18:28:42 It's basically an assertion framework that makes your unit tests hard to read. :D Mar 08 18:29:11 sounds lovely Mar 08 18:29:18 yep, very hard to read Mar 08 18:29:47 Quacked: That's called the builder pattern and this style of code is often referred to as "fluent" Mar 08 18:29:57 hmmmm Mar 08 18:30:21 forces you to write totally unreadable code in form of onView(withId(R.id.pspdf__fragment_password)).check(matches(isDisplayed())); Mar 08 18:31:17 not always Mar 08 18:31:18 oh god Mar 08 18:31:28 reminds me of Scheme. argh Mar 08 18:31:30 CedricBeust, but the only other way of telling GA that user has stopped session is to use reportActivityStop, and that is noop before api 14. Google is weird... Mar 08 18:31:30 if you think of NotificationBuilder ot AlertDialogBuilder Mar 08 18:31:35 they are kinda fine Mar 08 18:32:22 so perhaps I shouldnt report to GA at all that user is inactive and just rely on sessionTimeout Mar 08 18:33:03 MikeWallaceDev, yep Mar 08 18:33:08 haven't seen a better alternative Mar 08 18:33:28 CLISP Mar 08 18:33:42 I couldn't handle Scheme (for Gimp plug-ins) moved to Python. Mar 08 18:33:45 i actually enjoyed it in college Mar 08 18:34:06 LISP and it's bastards are nice enough Mar 08 18:34:11 the fan club is what I can't stand tho Mar 08 18:34:16 worse than Apple fanboys Mar 08 18:34:26 yes Mar 08 18:34:33 because they are all professors Mar 08 18:35:21 Mavrik do you remember eric naggum? Mar 08 18:36:00 not really Mar 08 18:36:02 <-- bad with names Mar 08 18:36:55 * thepoosh thinks there is a better way of writing that... Mar 08 18:37:54 https://github.com/lsjwzh/MaterialLoadingProgressBar Mar 08 18:38:12 now sure what is more amuzing - (1) somebody wrote this or (2) its missing from the support library Mar 08 18:38:45 am i cursed to piece to gether a dozen of these shitty little libraries to get something modern looking Mar 08 18:38:56 hmm Mar 08 18:38:57 looks really clunky Mar 08 18:39:00 :) Mar 08 18:39:03 it's probably in some random gist of a google employee Mar 08 18:39:09 I have NIH syndrome. I hate having to piece together this stuff. :[ Mar 08 18:39:24 Mavrik looks like the swipe to refresh one Mar 08 18:39:48 I know :) Mar 08 18:40:13 g00s, where are you using that? Mar 08 18:40:16 g00s: did you mean this: https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html Mar 08 18:40:17 ? Mar 08 18:40:21 v4 / widget / MaterialProgressDrawable.java Mar 08 18:41:00 Mavrik yeah i was using swipe to refresh, but i have mixed thoughts about it Mar 08 18:41:15 did you see my link? Mar 08 18:41:22 it's a good class Mar 08 18:41:27 i like it! Mar 08 18:42:45 thepoosh yeah i use that Mar 08 18:43:00 so Mar 08 18:43:06 what seems to be the issue?! Mar 08 18:43:47 the drawable is in v4.widget but you can't access it yourself Mar 08 18:43:56 anyone used monkeyrunner? Mar 08 18:47:38 memorion: it's open sourced, you can copy the code Mar 08 18:47:39 https://chromium.googlesource.com/android_tools/+/882ee91503f28d1fd60ba939c5b37db6b9d4ad29/sdk/extras/android/support/v4/src/java/android/support/v4/widget/MaterialProgressDrawable.java Mar 08 18:48:01 I know, but you shouldn't have to Mar 08 18:48:10 yes Mar 08 18:48:15 that is bad practice Mar 08 18:48:29 a lot of very useful android code is scattered in random gists and g+ posts Mar 08 18:48:38 What's the best way to animate a view along a complex path? Mar 08 18:48:43 but what is the difference between taking that or taking a crappy lib? Mar 08 18:48:57 hey guys, how accurate is the google maps api? (few meters radius?) Mar 08 18:49:00 yes, damn Google for not just writing your app for you Mar 08 18:49:09 memorion yeah, thats been pretty annoying for a while - instead of improving the docs i had to look through google+ Mar 08 18:49:12 supay, depends on quality of location from sensors Mar 08 18:49:32 Mavrik: assuming you're on a mobile network in India (2g/3g) Mar 08 18:49:35 take the support library, chris banes was basically butting stuff on SO instead of documentation (asking and answering his own questions) Mar 08 18:49:39 g00s, yeah, but then you learn that looking into Android source doesn't hurt :P Mar 08 18:49:43 s/butting/putting Mar 08 18:49:49 and suddenly you can do more awesome stuff faster ;) Mar 08 18:49:55 Mavrik: or do you mean the quality of the location from the gps sensors? Mar 08 18:49:57 supay, that really doesn't say enough Mar 08 18:49:59 supay: it doesn't depends on network Mar 08 18:49:59 Mavrik obviously no every component needs to be in the support library but some really should Mar 08 18:50:13 supay, the location will be as accurate as sensors from the device can determine Mar 08 18:50:18 TGMCians: would it depend on the code/actual hardware? Mar 08 18:50:21 supay, it's collected from network, wifi and GPS Mar 08 18:50:28 Mavrik: i see, interesting perspective you gave me Mar 08 18:50:31 it depends on location of the person Mar 08 18:50:33 i didn't think about that. Mar 08 18:50:39 weather, hardware, etc. :) Mar 08 18:50:43 no wifi.. only gps and moible networks Mar 08 18:50:44 ah Mar 08 18:50:57 has anyone tried this micro testing thing? https://usercontent.irccloud-cdn.com/file/tkibOnGb/Screenshot_2015-03-08-14-50-14.png Mar 08 18:51:04 I wouldn't know for India, but GPS is accurate to about 15-50m when you're outside Mar 08 18:51:19 inside it's significantly worse, but wifi/network usually at least locks you to 150-200m or so Mar 08 18:51:31 (also note that GPS can take up to 10 minutes to startup) Mar 08 18:51:37 ah, great! thanks Mavrik and TGMCians! :) Mar 08 18:51:46 whoa, so many things i didn't know Mar 08 18:51:49 lot to read up on Mar 08 18:52:29 memorion, *shrug* Mar 08 18:52:46 I prefer platforms which have lively 3rd party ecosystems Mar 08 18:53:17 it's more nitpicking than real complaining, I'm enjoying android development for the most part Mar 08 18:54:18 i dont understand how monkeyrunner works, does it run on the dev machine? or on the phone? Mar 08 18:54:35 I start my SettingsActivity with StartActivityForResult but the result code is -1, I want it to alway be RESULT_OK where do I need to set that? Mar 08 18:55:04 I think I just have Stockholm syndrome already. Mar 08 18:55:22 Nick-S, it connects to a device (emulator or actual device) Mar 08 18:55:25 Are you sure you care about RESULT_OK, memorion? I think you'll only need to care about the requestCode. Mar 08 18:55:33 memorion, wherever in your code before the activity exists Mar 08 18:55:39 memorion, that is in the settingsactivity Mar 08 18:55:56 Mavrik: ok, and how is it used does it has anything to do with junit tests? Mar 08 18:56:03 I set setResult(RESULT_OK) in oncreate and I still get -1 somehow Mar 08 18:56:16 Nick-S, no, it's just a tool that randomly clicks on everything Mar 08 18:56:22 Nick-S, it's not really connected with unit tests Mar 08 18:56:34 Mavrik: i want to write a test which installs apks and removes them Mar 08 18:56:34 Nick-S, if you're using an actual device to test, don't forget the switch to limit it to a single app Mar 08 18:56:38 before it calls all your friends Mar 08 18:56:43 TacticalJoke why? I want a result wheter a setting changed or not, but for now just always the something changed one Mar 08 18:56:54 Oh, I see. Mar 08 18:57:09 Mavrik: i thought the way to go is monkeyrunner, as the junit instrumentation stuff doesn't really let you Mar 08 18:57:48 oh Mar 08 18:57:53 You're calling setResult in SettingsActivity.onCreate? Mar 08 18:57:56 sorry, I mixed up the monkey tester and monkeyrunner Mar 08 18:57:57 0)0 Mar 08 18:57:59 -_- Mar 08 18:58:11 ignore me. Mar 08 18:58:12 TacticalJoke yes Mar 08 18:58:38 https://github.com/orhanobut/wasp Mar 08 18:58:42 blaahhhhh Mar 08 18:58:47 don't like this Mar 08 18:59:21 thepoosh you reading androidweekly too :D Mar 08 18:59:34 g00s: i told you about it!!! Mar 08 18:59:35 memorion: It works fine here. Mar 08 18:59:42 thepoosh oh yeah XD Mar 08 18:59:47 hm my setResult works I set it to -99 and I log -99 Mar 08 19:00:11 RESULT_OK is -1. Mar 08 19:00:11 I was just curious, how do you guys get ideas for apps? From friends? Randomly from your head? Mar 08 19:00:16 g00s: i dislike this library Mar 08 19:00:19 this is a funny one https://www.infinum.co/the-capsized-eight/articles/the-past-present-and-future-of-android-development Mar 08 19:00:24 RESULT_CANCELED IS 0. Mar 08 19:00:26 it's trying too hard Mar 08 19:00:30 TacticalJoke well that explains it Mar 08 19:00:39 i have it open for later Mar 08 19:00:50 -1 is success! Mar 08 19:01:06 so only my view.invalidate() doesn't refresh the ui Mar 08 19:01:32 Chainfire: any hint when http://usbhost.chainfire.eu/ will be up onine ? Mar 08 19:07:44 so, new question, how do I call onCreate again? or should I pull the view stuff from onCreate into its own method and just call that? Mar 08 19:08:11 I think Activity.recreate is the way. Mar 08 19:08:47 That does this: mMainThread.requestRelaunchActivity(mToken, null, null, 0, false, null, false); Mar 08 19:08:49 yep works, thanks! Mar 08 19:08:52 Dem parameters doe. Mar 08 19:08:57 :D Mar 08 19:11:31 I think Linus was right about Google Calendar. Mar 08 19:11:44 +1 Mar 08 19:12:02 In fact, I kinda like that he said it. So many Android apps have insanely stupid UIs. Mar 08 19:13:10 Can anyone help me understand errors? I’m new to android development. Here is my error log: http://pastebin.com/TXdmH4fx basically im getting a parent view is not a text view and a nullpointerexception in my main and an error trying to connect to camera Mar 08 19:13:19 I have the permissions set in my manifest Mar 08 19:13:46 TacticalJoke i think devs have gone overboard with the material bling and animation; too often the apps have no substance and just bling Mar 08 19:13:52 Yeah. Mar 08 19:14:12 reddit news for example Mar 08 19:14:18 Gormandy: Can you paste the code? Mar 08 19:14:22 for some reason or another, beside some notable efforts, android seems to be plagues with mainly stupid toy apps Mar 08 19:14:31 When I try to buy my IAP I get ERROR Authentication is required, You need to sign into you Google Account Mar 08 19:14:43 Performance Question: If I tell an item in a RelativeLayout to fill the space between two items i.e. |a<-----b----->c| does that take the same number of measurements for Android to lay out as using a LinearLayout and weighting it? Mar 08 19:14:56 I think it's harder to create a sucky iOS app than a sucky android app, since the barrier to entry is lower Mar 08 19:15:37 TacticalJoke: I just added my layout here: http://pastebin.com/LCH5uDRV I have the rest of the code on my github (though it’s not completely up to date as in its missing a permission) here: https://github.com/stuffandthings/ColorPicker Mar 08 19:15:54 Ankhwatcher, probably similar Mar 08 19:16:14 until you start nesting weighted linear layouts Mar 08 19:16:35 then relative outperforms Mar 08 19:16:43 pfn: that's what I was thinking Mar 08 19:16:58 just created a new project in Android studio and the 'drawable' folder doesn't seem to have any subdirectories.. what happened to drawable-ldpi, drawable-hdpi and the rest? Mar 08 19:17:13 the performance of RL can decline as the dependency cycle graph gets deeper Mar 08 19:17:20 supay: the icons are now automatically put into mipmap folders Mar 08 19:17:28 Ankhwatcher: ah, nice! Mar 08 19:17:36 supay: you'll have to create your own drawable fodlers Mar 08 19:17:41 my accelerometer started working again for no reason... Mar 08 19:18:03 Ankhwatcher: would that be needed? i thought a single drawable folder was to simplify the process? Mar 08 19:18:15 pfn did you get off the couch :P Mar 08 19:18:22 g00s: what's the dependency cycle graph? Mar 08 19:18:49 Ankhwatcher RL has a graph of rules for each of its child views, thats why you see the warning the graph can not have cycles Mar 08 19:19:07 it can become computationally expensive to compute that, multiple times Mar 08 19:19:28 Gormandy: I'm guessing the problem is this: https://github.com/stuffandthings/ColorPicker/blob/7e12e16d802c5201a2fe8ad6816d9e6f43ce1d40/app/src/main/java/stuffandthings/omar/colorpicker/Viewer.java#L110 Mar 08 19:19:44 That exception handler which is probably hiding the real exception from you. Mar 08 19:19:45 g00s: ah, so the graph is what I'm adding rules to when i say ViewB must to the right of ViewA and the left of ViewC Mar 08 19:19:51 yes Mar 08 19:20:17 still cheaper than weighted layouts Mar 08 19:20:32 TacticalJoke: So that’s copied straight from the google docs on using the camera, I’m not entirely sure what to do after catching that exception? Mar 08 19:20:36 complex layout is complex layout Mar 08 19:20:49 Well, if that method returns null then you'll get this NullPointerException. Mar 08 19:21:04 pfn: true that, I'm trying to compile some performance tips for the people doing my Android Fundamentals Study Jam Mar 08 19:21:08 I've never used the camera APIs so I don't know what's best, but it doesn't seem like a good idea to crash with an NPE. Just confusing. Mar 08 19:21:34 At least crash from *that* method. :D Mar 08 19:22:03 I think "don't put stuff on the right of your list row unless you absolutely have to" is perhaps a better tip than "RelativeLayout will fix everything" Mar 08 19:22:22 hm yeah… wait I think I might have caught what’s going on, I’m using mCamera which is just null and while I open the camera I’m not opening it in mCamera, just in a variable c… think this is where I’m going wrong Mar 08 19:22:47 oh wait nvm, i am Mar 08 19:22:48 hm Mar 08 19:22:54 You're saying "mCamera = getCameraInstance();". Mar 08 19:22:55 Yeah. Mar 08 19:22:58 It's just null, I guess. Mar 08 19:24:29 Haha. The documentation for Camera.open(int) says it throws "RuntimeException". Mar 08 19:24:32 Awesome. Mar 08 19:25:04 Who writes this stuff? Mar 08 19:25:21 is there a google play services freenode room? Mar 08 19:25:24 thats better than the BLE apis burping up 127 or so undocumented error codes Mar 08 19:25:38 Oh, man, that stuff sounds painful. Mar 08 19:25:46 last night i got error code 129 Mar 08 19:26:02 i thought, wtf does that even mean. i had to go digging through bluedroid Mar 08 19:26:13 and who knows, the constants there have changed over android versions Mar 08 19:26:30 eep Mar 08 19:26:31 so its not even safe to rely on them being the same across android versions Mar 08 19:26:37 Gormandy: I'm guessing the best course of action is to catch that RuntimeException (eww) and show an error TextView or something. Mar 08 19:26:38 idiots man ! Mar 08 19:26:50 g00s: Dayumn. Mar 08 19:26:53 Dayum* Mar 08 19:27:20 so would that mean I’d need to restart the app every time I can’t get the camera? Or should I try to like sleep and try again or something? Mar 08 19:27:57 Hmm, not sure. Would a Retry button make sense? Haven't really thought much about camera stuff. Mar 08 19:28:02 i guess i should really be using the newer camera api, camera2 i think… I just couldn’t find similar documentation for it and i was rather confused by it, this seemed simpler Mar 08 19:28:21 but camera2 is api 21+ Mar 08 19:30:15 That Camera.java has code like 'throw new RuntimeException("Face detection is already running");'. Mar 08 19:30:25 Not sure if just laziness. Mar 08 19:30:44 memorion: I’m not really limiting myself to api constraints, I’m just trying to get my first app in for experience :P Mar 08 19:30:53 TacticalJoke: lol Mar 08 19:31:02 Gormandy: API 21 means you need Android 5.0 to run it. Mar 08 19:31:10 oooooh Mar 08 19:31:11 we officially hate the camera resource Mar 08 19:31:17 and it's our bread and butter Mar 08 19:31:22 :[ Mar 08 19:31:24 meh Mar 08 19:32:01 and if you depend on the additional functionality camera2 api brings.. guess what it's not always there :D Mar 08 19:32:23 Gormandy: The documentation says the exception is thrown "if opening the camera fails (for example, if the camera is in use by another process or device policy manager has disabled the camera)". So I guess it *could* be a temporary condition. Mar 08 19:32:57 my app fails to launch every time though, stops immediately Mar 08 19:33:06 textView.setText("Can't open the camera. Try again later. kthxbai."); Mar 08 19:33:07 I’ve been trying for a few hours and have reset the phone etc. Mar 08 19:33:51 Gormandy: Failing with that NullPointerException? Mar 08 19:34:02 yep Mar 08 19:34:17 happens here: mCamera.setPreviewDisplay(holder); Mar 08 19:34:20 does any one here know how to use a "cawc-camera" ? I can't find how to detect when the user is taking a picture Mar 08 19:34:20 It's easy to fix. Mar 08 19:34:23 mCamera is null. Mar 08 19:34:40 Just don't proceed in Viewer.java is the return value is null. Mar 08 19:34:51 s/is/if/ Mar 08 19:35:02 I tried to overrid "saveImage()" on a SimpleCameraHost, but it's never called Mar 08 19:36:32 Gormandy, be careful about the fact Mar 08 19:36:37 Gormandy, that if you hose the camera driver once Mar 08 19:36:41 (e.g. forget to release camera= Mar 08 19:36:48 it'll stay hosed until reboot of the device Mar 08 19:37:02 So to save yourself some time do reboot the device / emulator ;) Mar 08 19:37:29 oh, thanks for that. Yeah I’m not release the camera anywhere, mostly because i havent succeeded to open it yet Mar 08 19:38:07 the surfacedestroyed method has the comment // empty. Take care of releasing the Camera preview in your activity. Mar 08 19:38:22 it makes sense to release the camera in surfacedestroyed though, not sure where in the activity to release? Mar 08 19:39:13 oh the satisfaction of releasing updates for two apps on the same day Mar 08 19:39:42 twice the pirating :) Mar 08 19:39:57 Quacked, elaborate? Mar 08 19:41:10 Also, these are being shown as errors: 03-08 15:31:45.577 10339-10339/stuffandthings.omar.colorpicker E/dalvikvm﹕ >>>>> Normal User Mar 08 19:41:10 03-08 15:31:45.577 10339-10339/stuffandthings.omar.colorpicker E/dalvikvm﹕ >>>>> stuffandthings.omar.colorpicker [ userId:0 | appId:10031 ] not sure what to make of that Mar 08 19:41:52 is this a permissions thing? Mar 08 19:42:43 "To access the device camera, you must declare the CAMERA permission in your Android Manifest." Mar 08 19:43:01 yeah its declared Mar 08 19:43:16 Mar 08 19:43:21 "Also be sure to include the manifest element to declare camera features used by your application." Mar 08 19:43:31 and Mar 08 19:43:38 how do i copy file from /system/bin to sdcard Mar 08 19:43:44 Does that last one need to be in the lower case? Mar 08 19:43:51 Mar 08 19:43:53 Or maybe it doesn't matter. Mar 08 19:44:02 ill confirm Mar 08 19:44:38 anyone Mar 08 19:45:02 oh yeah, lowercase! that fixed the permission error now im gonna work on the null Mar 08 19:45:18 actually there’s also the case of the “03-08 15:44:30.237 12582-12582/stuffandthings.omar.colorpicker E/MoreInfoHPW_View﹕ Parent view is not a TextView” Mar 08 19:45:29 which is arguably an easier fix? layout stuff im sure Mar 08 19:45:47 That's coming up a lot in Google. Mar 08 19:45:57 Is that a Samsung? Mar 08 19:46:28 yeah, stackoverflow says just ignore Mar 08 19:46:31 great :P Mar 08 19:49:49 hm yeah i got the app to launch, just not creating a camerapreview if camera is null and seemingly camera is just always null Mar 08 19:50:26 I think I'd try what Mavrik said, personally. Mar 08 19:50:57 hmm Mar 08 19:51:06 camera should practically never be null :) Mar 08 19:51:06 yeah, im figuring out where to close the camera in the activity before I move on Mar 08 19:51:32 Maybe the NSA is using your camera. :) Mar 08 19:51:34 you really want to release the camera when the surface is destroyed Mar 08 19:51:47 hahaha Mar 08 19:52:01 yeah, the google documentation says handle it in the activity =/ Mar 08 19:52:16 it makes sense in surfacedestroyed though… just gonna do it there Mar 08 19:52:57 um Mar 08 19:54:41 yeah resetting didn’t change anything my camera is still being null :| Mar 08 19:56:56 Is there a way to use lua in android apps? I don't want to make the entire app in lua, just parts of it. Mar 08 19:57:36 pardelkat, Mar 08 19:57:37 https://code.google.com/p/android-scripting/ Mar 08 19:57:54 pardelkat you might be able to get luaj working, although don't know about performance Mar 08 19:59:22 if i recall, there are 2 ways to use it: you can use one way were it creates bytecode dynamically Mar 08 19:59:26 *can't Mar 08 19:59:54 "Great project. The included luajava library is compatible with Android." Mar 08 20:00:20 im always wondering why people dont use a language that natively runs in the vm... Mar 08 20:00:22 if you try it, i'd be curious about your experience - i was going to use it as an extension mechanism to one of my apps Mar 08 20:02:51 gcm still doesnt let us do a broadcast to everyone right? Mar 08 20:03:01 everyone except mikedg Mar 08 20:03:46 oh awesome, my airline reservation time in passbook is off by an hour Mar 08 20:04:46 Is using static factory methods inside enums insane? Mar 08 20:05:12 so when i use monkeyrunner for testing i write my tests in python? Mar 08 20:11:04 monkey runner dont give a fuck Mar 08 20:12:45 g00s, didnt you use kotlin? Mar 08 20:12:48 He takes that banana and runs. Mar 08 20:13:33 gdrc i'mlooking at it, but i don't have any kotlin code yet. problem is most of my app is already written Mar 08 20:13:48 write a new one :) Mar 08 20:15:05 there are some areas of kotlin i need to know more about, specifically where using shiny feature X impacts performance, or whatever. i'm most uneasy about concurrency which i spent a lot of time trying to understand in java - sure i guess we can use some of the same things like blokcingqueues but i don't know what i don't know in that area Mar 08 20:16:34 for example, this is one of their lock primitives http://jetbrains.github.io/kotlin/versions/snapshot/apidocs/index.html Mar 08 20:16:49 so there is some adjustment in the concurrency area for me, and thats got me worried basically Mar 08 20:17:18 I think your link is wrong :) Mar 08 20:17:40 (frames on page, you gave us top level link) :) Mar 08 20:17:51 thats weird, withLock points there Mar 08 20:18:01 ah Mar 08 20:18:16 xD Mar 08 20:18:17 looks like "synchronized" equivalent for me :) Mar 08 20:18:22 yeah Mar 08 20:18:27 hey guys again its me Mar 08 20:18:36 i didnt know android roms are very secure Mar 08 20:18:49 but concurrency is the hardest part for me to think through, its going to take time for me to feel safe in kotlin in that area Mar 08 20:18:56 i thought you can hack in the rom once you flash it Mar 08 20:19:31 http://kotlinlang.org/api/latest/jvm/stdlib/kotlin/synchronized.html Mar 08 20:19:45 can someone recommend me how i can import subtitles into my video view... i want to make a custom class for that purpose. do you have an idea how the logic is working with the timing Mar 08 20:19:55 i still dont understand how monkeyrunner is used, and for what purposes Mar 08 20:20:07 is there some good tutorial how i can do that on particular time to display particular string Mar 08 20:20:07 woo! got it, permissions errors… the permissions were under the application instead of the manifest. The only issue I have now is that my image isn’t being overlayed on top of the camera preview Mar 08 20:20:11 is it used seperately than unit tests? Mar 08 20:21:07 g00s, I see. In the last weeks, I start developing on android in c# with xamarin Mar 08 20:21:21 gdrc how do you like it ? Mar 08 20:22:19 Gormandy, surfaceview.setZOrderOnTop(false) Mar 08 20:22:31 Xamarin <# Mar 08 20:22:32 <3 Mar 08 20:22:34 Mavrik: cool, thanks Mar 08 20:22:38 Way too expensive but still <3 Mar 08 20:23:43 g00s, I love c# and I like xamarin Mar 08 20:25:37 Oh, man, Java enums are so funky. Mar 08 20:25:41 Though I like it. Mar 08 20:25:45 can I load a serialized file with my android app, if I do not have read permissions for the filesystem? Mar 08 20:25:48 TacticalJoke: You mean "awesome"? Mar 08 20:25:55 :D Mar 08 20:25:59 gdrc i was reading an article about MWC and seems oems are itching for something else beside android to try - i guess they weren't excited about WP 8.1 but thats changed with 10. so maybe i'll try my hand at c# / WP if it can get maybe 10% share Mar 08 20:25:59 tokam, from assets Mar 08 20:26:00 Maybe I could export the serialized file somehow? Mar 08 20:26:13 Yeah, they do seem really good. I'm just totally not used to such powerful enums. Mar 08 20:26:16 how can I do that? Mar 08 20:26:27 tokam, from assets or sd? Mar 08 20:26:31 I've realised I can remove one of my static-member-only classes by putting two factory methods into two enums. Mar 08 20:27:28 I wonder why C# didn't copy Java enums? Mar 08 20:27:43 Java enums came after C# (if memory serves) Mar 08 20:27:46 g00s: WP8 has ~10-15% share in some markets. Mar 08 20:27:49 Ah, okay. Mar 08 20:27:55 I think we released enums in 2005 Mar 08 20:27:57 One of the reasons why we’re doing a WP port of our app now. Mar 08 20:27:59 C# is what... 2003? Mar 08 20:28:04 from assets danijoo Mar 08 20:28:16 WP says "appeared in 2000". Mar 08 20:28:24 Though I dunno how they're defining 'appeared'. Mar 08 20:28:39 What appeared in 2000? Mar 08 20:29:16 C#. Though it says that 1.0 was in 2002. Mar 08 20:29:36 We started working on enums about 2 years before java 5 came out I believe Mar 08 20:31:14 g00s, here in Italy lumia are very popular Mar 08 20:31:19 tokam, context.getAssets() Mar 08 20:31:48 http://developer.android.com/reference/android/content/res/AssetManager.html has methods to access the files Mar 08 20:31:49 gdrc: Italy is a weird stronghold for WP. I wonder why that is? Mar 08 20:32:32 I am going to try to load a serialized file this way. The last time when I tryed to load an image I did not make it. Mar 08 20:36:03 jfpoole, Nokia is very famous and lumia are cheap. with 90 euro you get a nice phone. Mar 08 20:37:55 I really hope Nokia makes an android device when they are allowd to make phones again Mar 08 20:38:18 memorion: You saw the rumored Nokia 1100? Mar 08 20:38:22 ? Mar 08 20:38:39 tokam, maybe u did it wrong ;) Mar 08 20:38:43 when they are allowed? Mar 08 20:38:46 jfpoole no Mar 08 20:38:51 2016 I believe Mar 08 20:39:01 They were banned? Mar 08 20:39:10 why? Nokia is Microsoft Mar 08 20:39:25 memorion: http://www.androidheadlines.com/page/2 Mar 08 20:39:39 Whoops, I meant this: http://www.androidheadlines.com/2015/03/new-generation-nokia-1100-appears-geekbench-site.html Mar 08 20:39:44 no Microsoft only bought a part and the rest of nokia isn't allowed to make phones until 2016 Mar 08 20:40:06 jfpoole nice! Mar 08 20:40:23 oh Mar 08 20:40:37 they are still allowed to make tablets however: http://n1.nokia.com/en Mar 08 20:41:52 gdrc jfpoole what i like about ios/WP is that id you want to engage your users on desktop you have easier time sharing code between mobile/desktop on those platforms Mar 08 20:42:12 so devs are looking to desktop as another monetization area Mar 08 20:43:17 g00s: If you’re clever you can share a lot of code between Android/iOS/WP. Mar 08 20:43:26 All three support C and C++ Mar 08 20:43:36 jfpoole yeah ... there was apresentation MS did about how they ported office to all 3 Mar 08 20:43:51 Even if Google treats C++ (and the NDK) as a bastard stepchild they’d rather ignore :-/ Mar 08 20:44:32 C++ support actually significanly improved in the last months Mar 08 20:44:40 it's now fully compatible Mar 08 20:44:48 i thought ios was c# Mar 08 20:45:13 ios is objective-c Mar 08 20:45:19 Mavrik: How so? Mar 08 20:45:27 jfpoole, hm? Mar 08 20:45:32 oh snap Mar 08 20:45:38 it's actually pronounced c sharp Mar 08 20:45:53 ios is objctive shit Mar 08 20:46:00 jfpoole, since they added LLVM/Clang, you get their STL lib Mar 08 20:46:06 Mavrik: Ah. Mar 08 20:46:08 jfpoole, which has a sane license and it's fully featured Mar 08 20:46:11 why do java programmers dont program in .NET? because they cant C# Mar 08 20:46:13 ba dumm tss Mar 08 20:46:14 not the bastard crap they had Mar 08 20:46:18 -_- Mar 08 20:46:33 also C++11 is pretty much fully supported with gcc-4.8 Mar 08 20:46:43 4.9 actually Mar 08 20:46:58 Mavrik: Has Clang ARM code generation gotten any better? Last time we measured performance Clang 3.3 lagged significantly behind gcc 4.8. Mar 08 20:47:07 I haven't tested it Mar 08 20:47:18 I use Clang 3.5 to develop for the great static analyzer and actually sane messages Mar 08 20:47:41 and then just do release build with GCC 4.9 Mar 08 20:47:44 Yeah, Clang is pretty nifty. ARM codegen is my only significant complaint at the moment. Mar 08 20:47:56 OTOH GCC 4.9 does some pretty stupid things for AArch64. Mar 08 20:48:09 really? Mar 08 20:48:18 I didn't really test that besides functionality Mar 08 20:48:27 Should really do performance testing 4.8 vs. 4.9 one of these dats Mar 08 20:48:29 *days Mar 08 20:48:53 Yeah. We had a case where 4.9 would handle register overflow by using the floating point registers rather than the stack. Mar 08 20:48:57 Absolutely killed performance. Mar 08 20:49:13 hmm, need to check that, thanks for the warning Mar 08 20:49:32 the Tegra in Nexus 9 was killing it performance wise when whe tested that Mar 08 20:49:35 that chip is fast Mar 08 20:49:44 wonder why OS itself runs like ass Mar 08 20:49:49 This was only an issue on the A53 and the A57. Mar 08 20:50:00 The Tegra K1 handled the crappy code without complaint. Mar 08 20:50:21 I *think* if you tune for A57 you avoid some of the worst issues. Mar 08 20:50:34 Might be worth trying on your codebase to see what the performance delta is like? Mar 08 20:50:41 yeah, will do Mar 08 20:54:33 hello Mar 08 20:55:51 I have a problem Mar 08 20:56:02 ~ Mar 08 20:56:08 just one? Mar 08 20:56:39 I have an app that uses MediaPlayer to play a music stream Mar 08 20:56:53 its an mp3 stream btw Mar 08 20:57:15 when I use wifi it works perfectly. on 3g it crashes on .play Mar 08 20:57:28 is there a simple way to get the last frame from my camera preview? or should i be using like an opencv library for that Mar 08 20:57:30 java.lang.NullPointerException Mar 08 20:57:50 any idea? Mar 08 20:57:53 NPEs are easy. Look at the stack trace, find the issue, fix the issue. Mar 08 20:58:06 whats null? debug the code Mar 08 20:58:11 Unless it's an NPE in framework control that you have little or no control over. Then it's not so easy. Mar 08 20:58:17 code* Mar 08 20:58:18 fyi: I use MediaPlayer.create to create the player Mar 08 20:58:24 onitemclick with recyclerview is just a pita Mar 08 20:58:33 theres no good way to do it Mar 08 20:58:37 thing is I can't reproduce it reliably Mar 08 20:59:34 What does the stack trace say? Mar 08 20:59:57 lemme paste it Mar 08 21:00:07 Android 5.0 also shows what exactly was called to cause the NPE. Mar 08 21:01:16 ok Mar 08 21:01:18 I see Mar 08 21:01:21 desmin88: At least with ListView, I tend to have the activity give the adapter a callback, and the adapter takes care of making sure that this callback fires when the relevant click happens. Mar 08 21:01:55 yeah but theres no easy way to set up a click listener Mar 08 21:01:57 it seems the error only occures when the phone is connected to mobile (wifi disabled) and only when the app it launched manyally Mar 08 21:02:00 you can bind it in viewholder creation Mar 08 21:02:05 or do some nasty gesture detection shit Mar 08 21:02:13 *manually Mar 08 21:02:24 not using android studio Mar 08 21:02:40 Yeah, that gesture thing looks ugly as heck. Mar 08 21:02:51 MDTech-us_MAN: It's easy. Just read the stack trace. :p Mar 08 21:02:56 one comment says it also is clunky with delayhs Mar 08 21:03:49 what does service call servicename 4711 do Mar 08 21:03:50 http://pastebin.com/z8PjaX8J Mar 08 21:03:54 can someone help Mar 08 21:04:07 like I said it stopps on MediaPlayer.play Mar 08 21:04:17 I know where it stops Mar 08 21:04:24 I need to know WHY it stops Mar 08 21:05:03 do you define your onClick in the xml? Mar 08 21:05:41 memorion can you help Mar 08 21:05:46 desmin88: On a side note, someone was talking about using onClick in XML with a ListView adapter. Said it worked perfectly. Mar 08 21:05:59 Seems weird to me, but I tried it and it did in fact work. Haven't tried with RecyclerView, though. Mar 08 21:06:30 interesting Mar 08 21:06:35 very weird Mar 08 21:07:20 why does google like to complicate things Mar 08 21:07:26 how can I get the activity from inside an OnSharedPrefereneChangeListener? there is getCallingActivity but it returns a ComponentName?! Mar 08 21:07:56 MDTech-us_MAN: Just look at com.rastfm.mdtech.rastfmandroid.MainActivity.onRadioPlay(MainActivity.java:131). Mar 08 21:08:04 memorion Mar 08 21:08:05 I know Mar 08 21:08:08 I did Mar 08 21:08:09 past some code Mar 08 21:08:18 it is mediaPlayer.start Mar 08 21:08:25 code: http://pastebin.com/3Z0XYT3y Mar 08 21:09:00 desmin88 https://gist.github.com/anonymous/b1c8e7d9440a19178585 Mar 08 21:09:52 if your in a settings activity Mar 08 21:09:57 cant you just get the activity? Mar 08 21:10:04 SettingsActivity.this.doStuff() memorion Mar 08 21:10:31 you can always get a reference to the outer class from an anonymous inner class with ClassName.this. Mar 08 21:10:50 ok, thanks! Mar 08 21:11:38 MDTech-us_MAN: Is MediaPlayer.create returning null? Mar 08 21:11:51 Uri.parse("some stream") Mar 08 21:12:18 well, it obviously is an actual stream that works Mar 08 21:12:23 see above Mar 08 21:12:25 Obviously. Mar 08 21:12:27 it works on wifi Mar 08 21:12:40 It's so obvious that you don't know why you're getting a NullPointerException. :D Mar 08 21:12:52 that is obvious too Mar 08 21:13:23 try { ... } catch (Exception e) { } [solved] Mar 08 21:13:33 is there a way to attach debugger to a running app? Mar 08 21:13:34 maybe the server denies 3g access? Mar 08 21:15:12 ok Mar 08 21:15:14 found it Mar 08 21:15:26 i attached the debugger Mar 08 21:15:45 mediaPlayer is not null Mar 08 21:17:07 and the error didn't happen... Mar 08 21:17:41 Hey TacticalJoke Mar 08 21:18:00 Hey. Mar 08 21:18:09 How you doing? Mar 08 21:18:35 yeah now I know if the user changed ui related settings an can refresh the ui <3 thanks for all the help Mar 08 21:18:44 Okayish. How 'bout you? Mar 08 21:19:11 Not bad, I got a question for you Mar 08 21:19:22 I just can't reproduce it anymore... Mar 08 21:19:27 wtf? Mar 08 21:22:53 The adverse effects of Android programming: https://www.youtube.com/watch?v=HS5ZkPXkto0&t=137 Mar 08 21:23:11 TacticalJoke, you know how I have several new Fragments? Since I started using them Mar 08 21:23:20 Like 5 dialog fragments Mar 08 21:23:22 Yeah. Mar 08 21:23:24 3 regular fragments Mar 08 21:23:30 5 dialog fragments? Mar 08 21:23:38 I want to organize them, can I put them in packages? Mar 08 21:23:55 Yeah. Mar 08 21:24:09 Ok, cool. Moter8, yes Mar 08 21:27:16 Ok so I need to make a method accessable from outside the package Mar 08 21:27:22 But its a static method Mar 08 21:27:47 Oh, just add public Mar 08 21:27:53 heh Mar 08 21:28:43 https://gist.github.com/Moter8/a6afa973485c2ad60d05 < how my DialogBuilder helper class looks like Mar 08 21:29:23 Ugh, Parse is nice but lacks tiny details Mar 08 21:29:38 Can't even get a random row from a class Mar 08 21:30:27 Moter8: Looks reasonable. Personally, I prefer to keep the variant code simple, e.g. “title = R.string.error_generic.title; message = R.string.error_message; and then create the dialog at the end. Just a stylistic preference Mar 08 21:31:43 Im not following Mar 08 21:32:00 TacticalJoke so I have one main package, where everything is stored Mar 08 21:32:07 Then within that package, I created another package. Mar 08 21:32:36 When I am in a file that is just in the master package, and I want to instantiate a new class of something that is in a sub-package Mar 08 21:32:43 Do i have to use new packageName.className() Mar 08 21:32:46 Or just className Mar 08 21:32:52 cbeust_, isnt context.getString(id) the only thing I can do? Not sure what you are saying Mar 08 21:32:59 Moter8: http://pastebin.com/PH0LMfAr Mar 08 21:33:16 ah. Mar 08 21:33:29 drose379: You have to import (or fully qualify). Mar 08 21:33:40 Moter8: Just an extreme form of “don’t repeat yourself" Mar 08 21:33:40 ohh import the package Mar 08 21:33:57 haha yeah Mar 08 21:34:15 I whish there were "code aliases" Mar 08 21:34:40 Nevermind, im dumb Mar 08 21:34:43 TacticalJoke so if I want to use a class that is in the same package as mine, I dont need to import it Mar 08 21:35:06 Mhmm. Mar 08 21:35:13 cbeust_, Oh right. I can omit all return new lines Mar 08 21:35:13 Cool, thanks. Mar 08 21:35:40 TacticalJoke you gonna be around later? Might want to have someone test the apk? Mar 08 21:38:52 Oh, I'll be unconscious pretty soon (if all goes well). Mar 08 21:38:54 Le petit mort. Mar 08 21:39:00 La petite mort Mar 08 21:39:05 Oops. :D Mar 08 21:39:07 (although this usually refers to something else entirely) Mar 08 21:39:20 Doesn't it always refer to sleep? Mar 08 21:39:24 Oh, damn. Mar 08 21:39:26 Just googled it. ;o Mar 08 21:39:29 Hardly ever Mar 08 21:39:54 Good for you, enjoy yourself Mar 08 21:39:58 Weird. Over here, people always use it to mean 'sleep'. But that's not reflected on Google. Mar 08 21:40:34 hehe Mar 08 21:40:58 Okay, I'll change it to "je vais dormir". Mar 08 21:41:03 "C'est tout." Mar 08 21:41:26 Hoping that also isn't some weird euphemism. Mar 08 21:41:44 hehe Mar 08 21:43:00 😂 Mar 08 21:44:42 https://gist.github.com/Moter8/08dab52e07e482c02ebb yep that is cleaner Mar 08 21:45:01 AS gist integration is awesum Mar 08 21:48:41 Moter8: Looks good. I also like to use the AS support annotations to make sure I pass the resources of the correct type, but that’s extra pedantic Mar 08 21:48:54 should i have different subfolders for the different sizes in drawable Mar 08 21:49:58 yep YungDaVinci, eg http://i.imgur.com/Ryi0heI.png Mar 08 21:50:13 (drawable/ is empty) Mar 08 21:51:50 So each folder is a crap ton of images Mar 08 21:51:52 ? Mar 08 21:56:36 pretty much, yeah. Mar 08 21:56:54 There is a plugin to getting these drawables resized automatically iirc Mar 08 21:56:58 and also a website Mar 08 21:57:28 Or, just use the largest files you have. The device will have to resize them at runtime though Mar 08 21:58:31 there is an android studio plugin which does it for you Mar 08 21:59:57 Implementing an endless scroll view with a scroll listener is just no bueno. you cant scroll if you have no list content Mar 08 22:02:06 ok so the android tut on the dev site is calling a function called openSettings() Mar 08 22:02:12 which I never declared Mar 08 22:02:17 how is this supposed to work Mar 08 22:02:53 show the tutorial Mar 08 22:02:55 :) Mar 08 22:03:02 http://developer.android.com/training/basics/actionbar/adding-buttons.html Mar 08 22:03:24 you are aware of the fact that that's just a placeholder example code? Mar 08 22:03:31 you fill in with the action you want to happen? Mar 08 22:03:36 ;_; Mar 08 22:04:00 trying to understand jackson. Got this code http://pastebin.com/m4NfEya9 Mar 08 22:04:11 seems that jackson doesn't "jump" through classes Mar 08 22:04:24 how to specify to resume "json deserialization" in some classes ? Mar 08 22:05:13 blusky, you're going to have to explain more elaborately what you're asking :/ Mar 08 22:05:55 have you look into the pastebin ? (don't wanna copy / paste in the chan) Mar 08 22:07:09 I have a json "tree", and want to deserialize it with Jackson. But it seems Jackson doesn't parse "sub tree" if the sub classe isn't defined within the first class Mar 08 22:08:10 I think I need to make a Jackson annotation for line 6 (in the pastebin), but can't find which one Mar 08 22:09:34 blusky, so jackson just leaves the field empty? Mar 08 22:09:47 in this case, yes Mar 08 22:10:10 Hello Everyone. Mar 08 22:10:15 oh Mar 08 22:10:17 my bad ... Mar 08 22:10:24 server's response is also empty ... Mar 08 22:10:30 * blusky gonna hang himself Mar 08 22:11:22 :)) Mar 08 22:11:33 blusky, otherwise, you can use @JsonProperty("bar") Mar 08 22:11:47 which lets you have field names that are different from keys in JSON Mar 08 22:12:30 Google sent me Mar 08 22:14:25 So every implementation of endless scrolling using a scroll listener, how do they manage the fact you cant scroll at all unless you first have some data to begin with? Mar 08 22:15:00 desmin88, well you do have to load first page of data Mar 08 22:15:32 right, but then would mess up the scroll listeners internal state of what page it thinks its on etc Mar 08 22:16:16 em no? Mar 08 22:16:23 I mean, unless it's broken Mar 08 22:16:55 Take for example this: https://gist.github.com/ssinss/e06f12ef66c51252563e Mar 08 22:17:02 implementing endless scrolling is just if (listSize - scrollposition < safeDifference) { loadMoar! } Mar 08 22:17:10 wait Mar 08 22:17:48 Mavrik: ok, working fine now, thx :) Mar 08 22:19:59 Mavrik: im dumb, disregard previous comments. Mar 08 22:20:18 Although I wish I could just tell the scroll listener to load the first page without manually doing it Mar 08 22:20:37 Hey, can someone help me with compass calculations? My users are having issues with my app which I can't reproduce no matter what I try, and the issues seem to be specific to certain smartwatch models Mar 08 22:21:23 This is the code: https://github.com/culmor30/cgeo-wear/blob/master/locationUtils/src/main/java/com/javadog/LocationUtils/LocationUtils.java#L94 and this is the issue my users have, though it behaves correctly for me: https://github.com/culmor30/cgeo-wear/issues/13#issuecomment-74433905 Mar 08 22:23:36 anyone done any gradle plugin dev? for some reason i can't access any of the imports behind com.android.ddmlib.* and i can't figure out why Mar 08 22:34:55 Opinions? http://gyazo.com/a23809f4b2a1590b9927a7e5f39c11dc trying to follow material Mar 08 22:35:19 looks good Mar 08 22:35:21 It says limit card actions to 2 + overflow, but if i only have 3 actions total, whats the purpose of the overflow if not to just show the additional action in a menu? Mar 08 22:36:17 I think at 3 your solution is better Mar 08 22:36:27 thx Mar 08 22:36:29 these are guidelines not laws Mar 08 22:36:42 true Mar 08 22:38:32 intent.putExtra("mode", radioModeButton.getText()); Mar 08 22:38:41 String message = intent.getStringExtra(MyActivity.mode); Mar 08 22:38:47 should i get it out like that Mar 08 22:39:59 if MyActivity.mode is the String "mode" I think that should work Mar 08 22:41:27 timx4, you need to add it to your dependencies, of course Mar 08 22:43:03 Forgive the intrusion; But ive been searching high and low - for if anyone can recommend and obscure rom that might be heavy with network tools/binaries/drivers - for an optimal User mode Linux VM? Mar 08 22:43:35 no Mar 08 22:44:17 A successor to BotBrew? Mar 08 22:44:34 see topic Mar 08 22:44:38 no Mar 08 22:44:51 intrusion was not forgiven. Mar 08 22:45:16 oh I see it now. Apologies, and ty. Mar 08 22:46:40 Hello I am trying to update a play/stop button on a notification. where i have added a remoteview. I am trying to do this, mNotificationRemoteViews.setInt(R.id.controller, "setImageResource", resource); where resource is int value of an resource. anyone have sugestions ? Mar 08 22:47:22 or another aprotch to updating a notification Mar 08 22:47:36 whats even the question Mar 08 22:48:50 fanno, there's a specific api for setting image, use it Mar 08 22:49:16 pfn: can you point me to the api ? Mar 08 22:52:48 uh, look at the doc for remote views Mar 08 22:52:54 desmin88: was that for me ? if so. i am trying to change the image of a "ImageButton on the fly" i have tried verious functions and Mar 08 22:54:01 pfn: i have tried verious functions on the remoteview.. have tried setImageViewResource /setBitmap / setImageViewBitmap none of them seems to be working Mar 08 22:54:24 it works fine Mar 08 22:54:31 you're doing it wrong Mar 08 22:54:49 how do i go about sending data from my application to a db Mar 08 22:54:54 *on a server Mar 08 22:55:06 you know you have to re post the notification, right? Mar 08 22:56:07 pfn: hmm if i do that it cause the notification to "blink" Mar 08 22:56:37 only way it can be done Mar 08 22:57:01 pfn: how do other music player apps do it? Mar 08 22:57:18 they blink Mar 08 22:57:43 inflater.inflate(R.menu.main_activity_actions, menu); Mar 08 22:57:53 What is R.menu.main_activity_actions supposed to be Mar 08 22:58:15 an xml menu declaration Mar 08 22:58:18 pfn: the music app dont blink when play/pause button is pressed Mar 08 22:59:03 menu declaration? Mar 08 22:59:07 like Mar 08 22:59:10 ? Mar 08 22:59:21 damned if I know what you're doing wrong, it works fine for me Mar 08 22:59:53 pfn: but yours blinking? Mar 08 23:00:00 no Mar 08 23:00:37 oh i get it Mar 08 23:01:16 fanno: are you making an audio player ? Mar 08 23:01:34 shmooz: a chromecast stream app Mar 08 23:02:13 ok Mar 08 23:02:24 but I have notifications for all kinds of shit, works fine Mar 08 23:02:28 shmooz: just trying to improve it by adding a notification controller but i am having problems updating it Mar 08 23:02:37 irc client, chromecast, etc Mar 08 23:03:13 no flickering Mar 08 23:03:20 pfn: Do you ever update images?? Mar 08 23:03:27 yes Mar 08 23:04:49 pfn: hmm Mar 08 23:06:04 pfn: how do you update the notification ? Mar 08 23:06:24 by posting it Mar 08 23:06:25 if i use mNotificationManager.notify(NOTIFY_ME_ID, notification); it blink Mar 08 23:06:41 pfn: is "posting it" some other method ? Mar 08 23:06:45 no Mar 08 23:06:50 that's it Mar 08 23:07:17 pfn: are the notification ongling ? maybe thats the differance ? Mar 08 23:07:29 yes, ongoing Mar 08 23:07:42 fanno maybe the button needs some sort of refreshing before reposting ? Mar 08 23:07:44 pfn: hmm other options you are using ? Mar 08 23:09:39 shmooz: what do you mean ? if i do mNotificationManager.notify(NOTIFY_ME_ID, notification); the image on the button is correct but the notification blinks everytime a update happens Mar 08 23:10:37 no idea Mar 08 23:10:56 how do i go about sending data from my application to a db on a server Mar 08 23:11:26 profligacy: You'd want to look into a restful web service Mar 08 23:11:39 and then use a library like okHttp or async-http Mar 08 23:21:49 as a small project, i'd like to layer an AI on top of a simple game (think tic-tac-toe) i've been playing Mar 08 23:21:59 what tools would you use for this? Mar 08 23:22:18 pfn: just curious when you create your notification to you cann .setWhen(0) when building the notification '? Mar 08 23:22:30 cann = *call Mar 08 23:22:55 I found UiAutomator. Can that be packaged into an app? Mar 08 23:29:34 how do i install a 3rd party sdk (single jar file) into android studio, all i see is how to add an external repository to the sdk manager Mar 08 23:30:38 compile fileTree(dir: 'libs', include: ['*.jar']) means that if you have a libs folder the jars should get compiled into your project Mar 08 23:30:54 if you put them in the libs folder of course Mar 08 23:31:54 (a) i want this library available to all projects, not just the current one (not sure if your statement would do that or not) (b) no idea where the studio files are Mar 08 23:32:36 for reference, im a long time programmer, but total newb to android Mar 08 23:32:52 and its kicking my ass so far >.< Mar 08 23:33:23 I don't thin you can have it globally available for all android projects, if you use a .jar you have to copy it into the libs folder Mar 08 23:34:33 =( so for any project i need to use it in, id have to copy it from whereever i stash it to the project manually, no way to copy it into a global stash eh ? so i just need to figure out where studio is keeping my project files yes ? Mar 08 23:34:55 I'm trying to run my app from my phone Mar 08 23:34:59 but it won't work Mar 08 23:35:14 After I try to run it, my phone changes from installer to media device Mar 08 23:37:46 When an activity starts, what "event" can I use to identify when the views in the activity have finished laying out their children? Mar 08 23:37:57 BitViper yes, but why would you need it in every project in the first place? your projects are by default in User/AndroidStudioProjects or something similar Mar 08 23:38:26 dcorbin_ maybe onPostCreate? Mar 08 23:38:37 I got a 411 HTTP Error, uploading with "okhttp" (A request of the requested method POST requires a valid Content-length), any idea why ? Mar 08 23:38:54 probably because there's not a Content-Length Mar 08 23:39:13 memorion: I'm seeing layout "stuff" happening awell after that. In fact, after postResume Mar 08 23:39:33 JakeWharton: is it standard behaviour ? Mar 08 23:39:48 dcorbin_ well where do you do you do your layout stuff? Mar 08 23:39:50 i wouldnt need it in every project, but would be nice to have it available to be used by any project like the standard libs so i dont have to keep a copy of it somewhere separate to copy into any given project. and i found where my projects are at. im guessing i need to put the 3rd party jar in ../app/libs yes ? Mar 08 23:40:01 yes Mar 08 23:40:05 JakeWharton: my code is very simple though: http://pastebin.com/vW5tixNT Mar 08 23:40:21 memorion ok thanks =) Mar 08 23:40:22 memorion: in sub-views. Mar 08 23:41:16 memorion and then just add an import line as for the standard libs right ? Mar 08 23:41:34 BitViper that should work yes Mar 08 23:41:37 kewl Mar 08 23:42:00 dcorbin_ but you do your findviewbyid stuff all in oncreate? Mar 08 23:42:52 memorion: yes. Mar 08 23:43:35 dcorbin_ well then it should be done once onCreate finished I think Mar 08 23:44:57 hmmm, so when is Android Diabetes going to released? before or after Android Toe Amputation? Mar 08 23:45:06 s/to/to be/ Mar 08 23:45:13 memorion: what I want to do, is trigger a visual effect. But I can't do it in onCreate() (or any of the other "onX" that I have tried), because it's not yet laid out. Mar 08 23:45:15 well D was Donut Mar 08 23:46:25 dcorbin_ I get that but I also don't understand why your layout isn't laid out after onCreate, sorry not a pro yet! Mar 08 23:48:22 i think the code for native sbs support will be included in future versions of android Mar 08 23:48:34 so that you can enable it without rooting Mar 08 23:50:15 memorion: I'm not sure either... Mar 08 23:51:36 t0astt: can i use jdbc? Mar 08 23:54:13 how do i go about sending data from my application to a db on a server Mar 08 23:54:53 where should I go after completing the beginner tutorial on the android site? Mar 08 23:55:17 any idea why okhttp wouldn't send content-length ? Mar 08 23:55:53 blusky you probably have to set that yourself Mar 08 23:56:13 really ??? Mar 08 23:56:40 well content-length sounds a lot like it depends on you know, the content Mar 08 23:57:02 but the content is generate by okhttp Mar 08 23:57:09 (using my parameters, though) Mar 08 23:57:16 but I can't predict it Mar 08 23:57:17 memorion : does not seem to work duplicating the sample code for the include and the variable creation. studio says cant resolve the library name in the import. also tried restarting studio but no change. do i need to explicitly register that jar with studio somehow ? Mar 08 23:58:48 BitViper your build.gradle has compile fileTree(dir: 'libs', include: ['*.jar']) in it and you put it in the libs folder? Mar 09 00:00:30 gradle yes, and the jar is under myprojectname/app/libs/3rdparty.jar Mar 09 00:03:32 BitViper try to resync the project with the gradle files Mar 09 00:03:43 if it helps, this is the sdk in question http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=230&pcid=41 Mar 09 00:03:46 how do i resync ? Mar 09 00:04:21 BitViper Tools -> Android -> Sync Mar 09 00:05:05 looks like that did it \o/ Mar 09 00:05:32 much thanks memorion Mar 09 00:05:41 BitViper happy to help Mar 09 00:07:50 fanno, set when is irrelevant, perhaps your image is a different size, forcing a layout Mar 09 00:09:01 that would force it to blink Mar 09 00:10:01 Is it possible to have a Toolbar, but instead of replacing the normal ActionBar with it, replace the ActionMode CAB? Mar 09 00:17:26 JakeWharton: ok... I was using okhttp 2.2, with 2.1 it's working Mar 09 00:17:41 I know it's not a good solution... but .... don't know what else to do for the moment :/ Mar 09 00:18:13 ok a new one for the room, seems like i saw reference somewhere that i cant find that there's a way to connect a real [usb] device plugged into my pc to an emulated virtual device in android studio, anyone know how ? Mar 09 00:19:59 blusky: what's wrong with just using URL or URI classes? Mar 09 00:20:49 phix: what ? don't understand the link Mar 09 00:31:38 Anyone know how to determine when a scrollview has stopped scrolling? Mar 09 00:38:58 Kitkat 4.4.4. Android Studio. ADB (often) stops logging after tens of minutes with a "Error: Unexpected EOF" log. Suggested causes or debug methods anyone? Mar 09 00:39:22 Does it stop logging if you reduce the logging? Mar 09 00:39:33 I get the feeling sometimes it gets overwhelmed and gives up Mar 09 00:41:10 Sounds about right - it may be doing it less since I cut down on logging. I'm not not logging so much now though. Mar 09 00:41:58 lasserix: register an onscroll listener Mar 09 00:42:16 does not exist for horizontalscrollview Mar 09 00:42:36 lasserix: what are you trying to do exactly? Mar 09 00:42:48 want snapping horizontal scrollview Mar 09 00:43:22 omg Mar 09 00:43:26 good luck with that Mar 09 00:43:45 CanyonMan: Thanks. I'll see if I can cut down more logging. Mar 09 00:44:01 Napalm: almost have it but just have to make it work with fling Mar 09 00:44:06 lasserix: what are you trying to snap to? Mar 09 00:44:17 left of nearest child left Mar 09 00:44:35 one moment, let me dig through some code Mar 09 00:44:36 why not viewpager then Mar 09 00:44:43 doesn't scroll Mar 09 00:45:04 lasserix: RecyclerView Mar 09 00:45:06 ? Mar 09 00:45:07 it can Mar 09 00:47:32 how to make scrolling viewpager? Mar 09 00:47:49 let it fling Mar 09 00:49:05 ahh that is work Mar 09 00:49:13 guess ill just wait for further spec on this Mar 09 00:51:51 androidchart wants me to call seriesformat.configure(getApplicationContext(), cfg) Mar 09 00:51:55 what is getApplicationContext() ? Mar 09 00:52:07 I'm in a Fragment, a Fragment doesn't have that Mar 09 00:52:16 Do I need to get it somehow from the fragment's ... ....... activity? Mar 09 00:55:36 yeah that's it getActivity :) Mar 09 00:56:03 sorry, i should have tried harder to figure it out Mar 09 01:05:43 YAY! I finally have a graph (androidchart) !!! Mar 09 01:05:52 And it renders in the layout preview too !!! Mar 09 01:06:02 congrats! Mar 09 01:06:07 :D :D :D Mar 09 01:07:01 When I put the graph in the layout at first it used a lot of settings like "@dimens/tick_width" Mar 09 01:07:11 They should have all worked but for some reason it couldn't find them Mar 09 01:07:38 I googled and other people had this problem too and I couldn't figure out how to fix it so I just replaced them as a test Mar 09 01:07:40 everything works Mar 09 01:07:59 so I'll go back now and see if I can somehow figure out the problem, for the purpose of reusability Mar 09 01:08:13 The file they're in is actually res/values/dimens.xml Mar 09 01:08:49 Has anyone used proguard/minify with a project using a common module in it? I'm getting "Caused by: java.io.InvalidClassException: ie.appz.playbackstarter.common.models.MediaTargetListSerializable; Incompatible class (SUID): ie.appz.playbackstarter.common.models.MediaTargetListSerializable: static final long serialVersionUID =7255842380478905902L; but expected ie.appz.playbackstarter.common.models.MediaTargetListSerializable: static final long serialVe Mar 09 01:08:50 * CanyonMan looks for docs on how the res/ dir actually works Mar 09 01:10:16 I\ve tried setting the serialVersionUID in my shared models but it doesn't seem to make any difference. Mar 09 01:12:35 yeah it doesn't work. In res/values/dimens.xml it is 20dp and in the fragment it's androidPlot.titleWidget.labelPaint.textSize="@dimen/title_font_size" Mar 09 01:12:48 and it won't find it during render Mar 09 01:27:19 Can somebody explain to me something about styles? Mar 09 01:27:29 If a view says style="@style/chris" Mar 09 01:27:56 is it as if all the in that