**** BEGIN LOGGING AT Mon Nov 30 03:00:50 2015 Nov 30 03:16:34 Where is application.mk? Nov 30 03:30:32 Nvm, found it. Nov 30 03:32:06 I'm kind of confused here... fatal error: map: No such file or directory androidtest3.cpp /Test3/jni line 2 C/C++ Problem Nov 30 03:32:14 this was just #include Nov 30 03:51:36 im trying to implement an animation similar to relay for reddit when populating a recycler view of item views. ive looked at ItemAnimator, Recycler.setAnimation, doing animations inside the adapter but nothing seems to fit the bill Nov 30 03:52:22 i would prefer to use an ItemAnimator as it wraps up all the state inspection i would probably end up having to do if i went with one of the other approaches Nov 30 03:53:32 i also looked at LayoutAnimationController too but that didn't work as expected either Nov 30 03:54:05 basically im trying to stagger item added animations in a recycler view Nov 30 03:54:20 rather than having everything animate in together in a giant view munge Nov 30 04:25:41 I'm getting this error: 11-29 23:24:18.006: E/AndroidRuntime(15932): java.lang.UnsatisfiedLinkError: No implementation found for void net.rpnx.test3.MainActivity.hello() (tried Java_net_rpnx_test3_MainActivity_hello and Java_net_rpnx_test3_MainActivity_hello__) Nov 30 04:26:27 I have this file, and it compiles, but it doesn't seem to work? http://pastebin.com/Cvracc5C Nov 30 04:32:23 I made a new project and it said Gradle build running for 58 minutes. I tried stopping it and it's been "Stopping - Gradle build running" for 15 minutes. How do I stop it? Nov 30 04:32:30 android studio 1.5 Nov 30 04:44:59 duncannz: Kill the AS process. Nov 30 04:55:13 I'm trying to get my app to display a Search icon on the keyboard like gmail does. I added android:imeOptions="actionSearch" to my editText with no luck. Any ideas what gmail might be using instead? Nov 30 04:58:21 eghdk: a custom icon perhaps Nov 30 04:58:49 wyoung: you can put a custom icon on a keyboard? Nov 30 04:59:02 *shrugs* Nov 30 04:59:04 you're so wyoung Nov 30 04:59:39 squirrel: that's me name Nov 30 04:59:51 vigilancer, you can add android.library.reference.1=path in project.properties Nov 30 05:00:27 vigilancer, and a project is identified by base directory, not build.sbt, latter is just an arbitrary file name Nov 30 05:01:46 aha. to get the search icon on the keyboard I had to add android:inputType="text" along with imeOptions="actionSearch" for everything to work. Badass! Nov 30 05:06:53 lol, toyota's code contains 10000 global variables ?! Nov 30 05:09:45 g00s: I bet it's fast though :) Nov 30 05:11:43 wyoung yeah, can't get it to slow down :P Nov 30 05:13:28 :) Nov 30 05:23:43 In butterknife 6 I would use @Optional @InjectView(R.id.might_not_exist) . What is the equivalent in butterknife 7 (@Optional is not defined) Nov 30 05:33:23 I just picked up an ASUS Zenfone 2E, I am having problems trying to use ADB with it. Nov 30 05:33:26 I just picked up an ASUS Zenfone 2E, I am having problems trying to use ADB with it. Nov 30 05:33:28 I just picked up an ASUS Zenfone 2E, I am having problems trying to use ADB with it. Nov 30 05:33:50 I just picked up a ASUS Zenfone 2E Nov 30 05:33:56 I just picked up a ASUS Zenfone 2E, cant make ADB work with it Nov 30 05:35:02 having problems with irc too :) Nov 30 05:39:36 lol seemingly Nov 30 06:24:36 Is it possible to trigger all list/recyclerview items using an otto or eventbus event? Nov 30 06:24:58 napster that didn't make sense Nov 30 06:25:53 g00s: I have custom views for some of my recyclerview items. I want them to be subscribers of a specific event. Nov 30 06:26:08 napster ah , yeah you can do that Nov 30 06:26:26 Tried doing that? Nov 30 06:26:49 yeah i did that with rxjava Nov 30 06:27:33 rxjava is too hard for me to learn, I'm lazy as hell... :) Nov 30 06:29:04 Do you have some code or something that I can look into anyway g00s Nov 30 06:29:38 na, i'm lazy too :( Nov 30 06:29:45 awesome! Nov 30 06:30:10 just unregister your listener in a recyclerListener Nov 30 06:31:29 g00s that is not possible in this case. These custom views are a part of an SDK which I develop. The recyclerview, the adapter and everything else is managed by the developer who includes my SDK. Nov 30 06:32:05 I provide something like an adview, which a developer can insert between their own content items. Nov 30 06:39:13 * g00s shrugs Nov 30 06:40:25 ok, never mind... :) Nov 30 06:40:32 :D Nov 30 06:43:43 https://github.com/square/otto/issues/99 this has some pointers... Nov 30 07:13:03 does instant run work with kotlin ? for some reason when I change code in adapter, it restarts whole activity Nov 30 07:14:00 ah, ok it doesnt work when changing adapter code Nov 30 07:45:59 anyone here use a value exchange ad service? if so which one and what is the average pay per video? Nov 30 08:54:47 hello! I've got two modules in my project. One of them have a custom view, but I can't import the schema. I've tried with http://schemas.android.com/apk/res/com.mydomain.shared - but it complains about always using res-auto... should I use res-auto also when the custom view is in another module? Nov 30 08:55:30 yes Nov 30 08:57:03 thanks :) Nov 30 09:17:56 When a reference to the Activity is needed from a Fragment and I need to make sure the Activity exists, what is the best way to check, whether the Activity exists? getActivity(), isAttached() or isAdded()? Nov 30 09:23:50 barq, well if you need the reference Nov 30 09:24:08 then getActivity() is the obvious candidate - after all you're concerned if that call will return null or not right? :) Nov 30 09:26:42 In a custom view, if the attribute format is "reference", can I cast it to whatever I want directly? How does it work? Nov 30 09:53:23 If I create a Dialog using AlertDialog.Builder, is it OK to do this from within a POJO class or should I always extend DialogFragment? Nov 30 10:30:37 Hi, is there an easy way to report volleyError to server using a different API? I don't want to change my ErrorListener code everywhere. is there a way to change the ErrorListener of a request object? Nov 30 10:41:06 any help, guys? Nov 30 10:42:43 Whats up astroduck Nov 30 10:43:17 drose379: See my message above^ Hi, is there an easy way to report volleyError to server using a different API? I don't want to change my ErrorListener code everywhere. is there a way to change the ErrorListener of a request object? Nov 30 10:43:37 Oh, not sure about that, sorry astroduck Nov 30 10:44:00 drose379: No problem :) Nov 30 10:44:13 Good luck astroduck Nov 30 10:47:05 what's the name of this? https://i.imgur.com/bTaDhbr.png Nov 30 10:47:39 the like small list selector for "Rotate the contents of the screen" and "Stay in portrait view". I want something like this in my app Nov 30 10:49:27 If I set an alarm via the AlarmManager, is that persistent over app restarts? phone restarts? Nov 30 10:51:51 i think it wont survive reboot Nov 30 10:52:30 hmm... :/ Nov 30 10:56:03 duncannz that looks like a custom preference with a PopupMenu. Nov 30 10:56:29 Does it make sense to have several systembootreceivers or should I handle everything in one? Nov 30 10:58:11 thanks napster Nov 30 10:58:29 np Nov 30 11:16:56 This Youtube Player API will kill me Nov 30 11:17:51 does play store allow gpl apps? Nov 30 11:19:03 ntio: yes Nov 30 11:19:52 great! Nov 30 11:20:26 would an optional paid backend-as-a-service be a reasonable monetization plan? Nov 30 11:24:29 ntio: I think so - people paying for infrastructure costs + markup Nov 30 11:24:36 they can implement their own backend ;) Nov 30 11:24:38 if I call calendar.add(Calendar.MONTH, 13), will that increment the year? Nov 30 11:25:16 p_l: yea, in theory :) Nov 30 11:31:00 YouTubeAndroidPlayerAPI﹕ YouTube video playback stopped due to unauthorized overlay on top of player. The YouTubePlayerView is obscured by android.support.v7.widget.ActionBarContainer Nov 30 11:31:03 Seriously Nov 30 11:31:12 I juste don't understand how this works Nov 30 11:41:53 apparently it doesn't :P Nov 30 11:45:15 Anyone know best plugin to generate class relation diagrams for android studio? Nov 30 11:45:31 My Question do i need something like cloud platforum to use sqlite in my android app? Nov 30 11:46:07 Hey Ribesg Nov 30 11:46:16 Hi Nov 30 11:48:07 :) Nov 30 11:49:06 This qestion about the sqlite been bug me i not sure if i need anything for my sqlite in my app. Nov 30 11:49:31 Sorry if it a newbie question:) Nov 30 11:51:21 hithere Nov 30 11:52:01 bolovanos,What you mean? Nov 30 11:52:22 I found a SO question matching my problem, but it was deleted Nov 30 11:52:34 Damn Nov 30 11:52:45 I am taking large amount of screenshots and I would like to change naming of saved files automatically - now it is "device-date" and I want it to be something like - "AVD code-date" Nov 30 11:52:59 of course in AS Nov 30 11:53:42 perlsyntax, What you mean by "What you mean?"? Nov 30 11:54:07 bolovanos, You mean my question? Nov 30 11:55:11 I mean i like to know if i need Cloud platforum service ifor my apps or can i do with out it? Nov 30 11:55:33 Sorry just abit tired still wakeing up:) Nov 30 11:55:38 I'm not entirely sure what AlarmManagers RTC_WAKEUP does. The doc states "will wake up the device when it goes off." But does that mean turned off or just screen off? Nov 30 11:56:29 bolovanos,I just bit new to android :D Nov 30 11:57:19 Syzygy: what? Nov 30 11:57:26 it will turn screen ON Nov 30 11:58:13 so the alarm will not turn the device on(or at least ring) if it's turned off, right? Nov 30 11:59:01 i take no one use cloud platforum for the android apps? Nov 30 11:59:43 I'm not sure if regular alarms do that nowadays, but I recall that at some point my phone's alarm went off even when the phone was turned off. Nov 30 12:03:19 bolovanos,Is that what you mean about my question? Nov 30 12:05:21 i need to understand, intents are handled as a queue, meaning when you send a broadcast receiver from within a broadcast receiver, it won't be executed until after the calling receiver has exited, right? Nov 30 12:06:02 perlsyntax, never mind - do not know answer to your question. Btw - look at time stamp of me entering channel and your question... Nov 30 12:07:14 bolovanos,I that np i was just worry i have to get google cloud platforum to use datebase. Nov 30 12:08:54 never mind i do some google i guest to hard of question. Nov 30 12:15:48 Anyone know how to customize "code iris" diagrams? Nov 30 12:24:17 What is the best way to pass a result back from an AlertDialog to the host fragment. If I were using an Activity as a host I would cast getActivity() to the interface, but how can I do this with a Fragment? Nov 30 12:26:23 hello guys ! If i wanted to do some integration testing, what is a good lib to use? Nov 30 12:26:49 i'm looking fr something like Sleenium for web browsers Nov 30 12:27:01 I described my problem here, hope I'll get some help from the youtube guys... http://stackoverflow.com/questions/33998568 Nov 30 12:27:03 or Coded UI tests in .NET Nov 30 12:28:08 i'm using JUnit , but it only tests units of code Nov 30 12:28:15 i want something that can act as a user Nov 30 12:28:18 and click a button Nov 30 12:31:15 UiTests using Espresso or UiAutomator. Nov 30 12:32:52 Or should I use onActivityResult instead of an interface to get the Dialog's result back to the host fragment? Nov 30 12:33:28 if I want to emulate the attribute, for example, imeOptions in a custom view, which type should it have in styleable? Nov 30 12:35:03 soLucien: espresso Nov 30 12:43:45 I'm inside a custom view. I do the following: View v = getRootView().findViewById(nextFocusId); (where nextFocusId is not 0 nor -1, but a positive number). No matter what, v == null. What's the correct way to get a neighbour view? I've got two of these custom views one as sibiling to the other, but I can't "see" them each other... thanks Nov 30 12:47:24 maybe it's because I try to get it when I create it and it's still not being created? Nov 30 12:47:40 Does somebody have an idea how to fix the issue on http://stackoverflow.com/a/31116079/1723525 I don't want to set the adapter again Nov 30 12:47:52 I found that it also works when I do a notifyDataSetChanged instead of a notifyItemRemoved Nov 30 12:54:56 gordon_ found it, espresso, thanks a lot ! Nov 30 12:57:59 I've got a custom view which extends RelativeLayout. I've referenced it as nextFocusDown. I've overridden onFocusChanged, but it's never called. Do you have any idea? Nov 30 13:00:32 Can anybody please steer me in the direction of how to just get a string of data after calling a URL.. ALL I want is to get the data that the page responded with when I called it... Example: I have a link that will retrieve a page with JSON on.. I want to just be able to get the JSON. No fancy parsing etc Nov 30 13:00:45 Simple HTML request Nov 30 13:03:32 cart_man: check out http://lmgtfy.com/?q=java+URLConnection+get+content+as+string Nov 30 13:05:54 i am trying to have a broadcast receiver for WIFI_STATE_CHANGED_ACTION it seems to be working for version 4 but not 5 Nov 30 13:07:08 anyone still using eclipse? Nov 30 13:08:07 yes but not for android dev :P Nov 30 13:08:12 :P Nov 30 13:08:28 I heard of it yesterday. Switched and like it so far... Nov 30 13:08:33 MikeWallaceDev_, did you ever get a script/* to use class visualizer with AS? Nov 30 13:10:05 what i miss about AS is that you cant just create a plain java project to test stuff at least not without dirty hacks Nov 30 13:10:11 Try 2: Good Morning/Afternoon/Night - I'm been asked by a team of developers to build them an environment that builds android apps ... yes, those four words, are all that left thier lips - shortest spec/requirements sheet ever! - What type of pipeline do you guys use when building your apps? Nov 30 13:15:23 itguru - explain more? I use Android studio but it looks like you're going to need code generation here. It depends really if you're going for generation of any app or like...generation of say news apps where you could put in a url and create a news reader for each site (for example) Nov 30 13:19:51 Taios: Hello :) Nov 30 13:20:29 Basically, I have access to their source code - They expect me to take the source code, and return an apk Nov 30 13:21:11 Napalm: Thanks dude ! Nov 30 13:21:29 Given how I was requested to do the work, I'm assuming that they don't have much background in building a toolchain to do this automatically. In my head - this thing should take no less than a week to build, (so I expect it to take me a month!!) Nov 30 13:21:42 =) Nov 30 13:22:35 Anyone knows of a good Email2SMS gateway. I haven't found any. I'm knocking one up right now but perhaps there is something good already? Nov 30 13:23:07 @itguru oh :). So, just use Android studio after loading in the source and once it's built it spits out an apk...there are command line things you can use also I believe. Nov 30 13:23:16 Does seem like a very strange thing to be asked. Nov 30 13:23:18 I'm thinking that I check out their source code from GIT, run some tests on the code, and then build it - I've built a vagrant instance that has jenkins, the android and sonarqube Nov 30 13:23:42 Taios: Oh - Did I forget to mention? It has to be in the cloud :) - No desktops involved, they make too many mistakes Nov 30 13:24:03 Oh, that makes much more sense now :). Nov 30 13:24:45 Does this help? http://developer.android.com/tools/building/building-cmdline.html Nov 30 13:26:37 Calling "notifyDataSetChanged()" in ViewPager adapter after removing fragments still has that swipe effect (Initally I had two fragments, I deleted second. The viewpager still had that swipe effect to switch to second fragment). Need help on this. Nov 30 13:28:21 Calling "notifyDataSetChanged()" in ViewPager adapter after updating underlying fragments should efficiently refresh viewpager, right? Nov 30 13:37:08 I'm trying to get a handler for the UI thread, but 'Handler is abstract; cannot be instantiated' Nov 30 13:38:14 I'm following this tutorial http://developer.android.com/training/multiple-threads/communicate-ui.html and the line looks like this: Handler uiThread = new Handler(Looper.getMainLooper()); Nov 30 13:42:36 So, the viewpager still has the items there but it's empty? Nov 30 13:46:15 using google api maps and it works fine on an emulator but i cant see the map on a real device... Nov 30 13:46:20 API key is correct,etc Nov 30 13:57:21 is it possible to view genymotion VM on vnc ? Nov 30 14:01:53 @taios did you use notifyDataSetChanged()? Nov 30 14:03:16 Not with viewpager but i've always had nigly issues with it. Sometimes I've overrided notifyDataSetChanged to do it myself. Nov 30 14:04:40 what does page count return? Nov 30 14:04:41 I.e is it saying there's still 2 items there and there's not? Nov 30 14:07:19 @muro (sorry I keep forgetting to tag) Nov 30 14:09:47 ah hell, how do you refer to a user when you're speaking to them again? Not used irc in donkey years.. Nov 30 14:10:16 huh, Taios ? Nov 30 14:10:26 Like that =) Nov 30 14:10:35 just say the name Nov 30 14:10:35 no @ Nov 30 14:10:47 o Nov 30 14:11:02 =) Nov 30 14:11:12 hahah! Nov 30 14:11:12 :) Nov 30 14:11:17 @taios which pageradapter are you using? Nov 30 14:11:17 you did it right btw Nov 30 14:11:17 i'm at work, so i sometimes forget to check back Nov 30 14:11:18 Different client, cheers =) Nov 30 14:11:43 No worries, i'm a pro now =P Nov 30 14:13:09 thornekey can i see the line of code where you're initializing the map Nov 30 14:13:41 'sup folks? Nov 30 14:13:42 muro FragmentStatePagerAdapter I think. There's some examples in the android templates/source code example thingy under animation. Nov 30 14:13:42 muro, sure :) Nov 30 14:14:00 muro, what pastebin do you prefer? Nov 30 14:15:32 thornekey i'm partial to gist, but pastebin is fine Nov 30 14:16:10 taios, have you checked out this SO question? http://stackoverflow.com/questions/10849552/update-viewpager-dynamically Nov 30 14:20:12 taios, the answer to that question seems to address notifyDataSetChanged() acting wonky and does a manual implementation of it Nov 30 14:20:12 *manual implementation of getItemPosition() to fix it Nov 30 14:20:13 muro, http://pastebin.com/qKMHWvCA line 111 Nov 30 14:21:54 Yeah that makes sense :) Nov 30 14:22:30 Does it work with destroyDrawingCache() ? Nov 30 14:22:57 muro, another issue is that it doesnt put a marker in the users location, when it should Nov 30 14:22:57 (also referenced in the stack overflow) Nov 30 14:24:17 thornekey are you sure this is setup properly with api keys? I've had problems before where it worked on my device but not when I put it in the app store for example. Is the Mapview there it's just...blank with no map? Nov 30 14:25:22 Taios, well, i put my API key into the approp place, and also it does work on multiple emulators Nov 30 14:25:22 taios, i'm not sure, i'm guessing notifyDataSetChanged() is what interacts with the UI at some level Nov 30 14:25:45 i believe the map view is there because its a greyed out view Nov 30 14:26:03 its just not loading correctly it seems Nov 30 14:27:01 probably silly question, but I have an app with min version 15 and target 21 that uses appcompat v7 and design library with the new toolbar and tabs and all that. but I can't find if I should use fragmentmanager or supportfragmentmanager. any tips? Nov 30 14:27:34 (that is, I'm trying to take the toolbar and new tabs and all that in use...) Nov 30 14:31:23 Eplebit http://stackoverflow.com/questions/27837676/appcompat-v7-should-i-use-framework-fragmentmanager-or-supportfragmentmanager Nov 30 14:32:19 Eplebit why version 15 btw? Only 3.3% of devices use that Nov 30 14:40:48 for most apps, 14-18 all are about the same Nov 30 14:40:59 14-19 even Nov 30 14:43:58 Taios: What minSdkVersion would you suggest? Nov 30 14:44:14 good question. when we started 15 was popular Nov 30 14:44:23 guess at least going to 16 wouldn't be a problem today Nov 30 14:44:38 think we have 10% users on 16, though Nov 30 14:45:21 of course I'm not a houndred percent sure how the statistic works with discarded phones and such... Nov 30 14:48:20 Eplebit, IMO, it doesn't matter until you run into bugs or missing api for that particular version Nov 30 14:49:20 Anyone bored? Nov 30 14:54:38 pfn: ok... they know how to make a confusing api :) Nov 30 14:54:56 it's not confusing Nov 30 14:56:06 pretty much always use support fragments Nov 30 14:57:43 ok Nov 30 15:03:17 barq I always work it out from using this http://developer.android.com/about/dashboards/index.html Nov 30 15:07:55 My android studio gradle gets stick downloading facebook-android-sdk.4.8.2.aar Nov 30 15:08:20 It's been downloading for like 17 mins now, is the file that big? :/ Nov 30 15:08:50 Whoop.. Nevermind, it just unstuck-ed itself and moved onto the next file.. i think the file was that big :P Nov 30 15:15:25 Ahraz: it's like 8mb ? Nov 30 15:15:51 gordon_, yeah.. still took 25 min to download apparently. network usage was at 2mb/s, shit's weird Nov 30 15:16:07 it's facebook Nov 30 15:16:12 dont expect miracles ;) Nov 30 15:24:44 I've added a custom view from another module in Android Studio's layout editor, but it complains "the class could not be found". It compiles fine, but I need the editor to check something graphically. What's the problem? Nov 30 15:25:32 I've got the other module as dependency obviously Nov 30 15:43:20 gordon_, too true man ;) these docs are a turd Nov 30 15:50:26 so this is a little weird... in Android 2.0 preview, my I'm pretty sure my code was working last week. But today, I can't build my project because my subscribe method calls are throwing argument mismatches (Action1> cannot be converted to Action1) Nov 30 15:51:04 anyone else seeing that or have an idea what might be going wrong? Nov 30 15:52:54 joshkovach: Android 2.0 is pretty old Nov 30 15:53:03 joshkovach: also code or it didn't happen Nov 30 15:53:07 Seeing that on all of my subscribes Nov 30 15:57:45 https://gist.github.com/shekibobo/2ad465cd6e8e985b6ba6 Nov 30 16:07:47 Where do you guys usually get your launcher icons from? Do you design them yourselves? Nov 30 16:07:55 yeah :D Nov 30 16:14:00 that's why most icons suck Nov 30 16:14:30 says the Sculptor :D Nov 30 16:14:38 What are you suggesting Sculptor Nov 30 16:14:51 to take design classes Nov 30 16:14:54 Sculptor its not just the icons, most apps suck altogether ;) Nov 30 16:14:57 or read a book about design Nov 30 16:15:03 touch'e Nov 30 16:15:37 g00s, would you try my app and see if you think it sucks? Nov 30 16:15:48 drose379 .. i have no time now, sorry Nov 30 16:15:53 Thats alright Nov 30 16:15:56 (and who cares what i think:) Nov 30 16:16:14 like i said, you have to get feedback from your users Nov 30 16:16:14 Some may Nov 30 16:16:23 also, didn't steve jobs say: good artists copy, great artists steal Nov 30 16:16:26 if you haven't, its almost guaranteed to suck Nov 30 16:16:49 So you think just release and refine Nov 30 16:16:53 With feedback from users Nov 30 16:16:55 steve jobs was an ass Nov 30 16:16:59 g00s, if your gui is not eye candy, you will have no users to get feedback from Nov 30 16:17:24 Sculptor, wanna check out my gui? Nov 30 16:17:29 just use the default icon, it's great and unique Nov 30 16:17:32 no thanks Nov 30 16:17:35 yawkat lol Nov 30 16:17:58 I actually need to figure out my icon situation Nov 30 16:22:06 Is there any tools to make them online? Nov 30 16:22:57 do you want to upload a pic? Nov 30 16:23:24 A pic of what? Nov 30 16:23:41 your icons Nov 30 16:23:44 a screenshot Nov 30 16:23:47 I dont have an icon, thats the issue Nov 30 16:23:51 I have the app, need the icon Nov 30 16:23:59 you can use free tools like ikscape to make your icons Nov 30 16:24:06 inkscape Nov 30 16:24:35 say: https://androidcookbook.com/Recipe.seam?recipeId=2549 Nov 30 16:25:30 Gonna check out some youtube tutorials Nov 30 16:25:44 you do that Nov 30 16:27:35 If you want to look at some screenshots, I'd love to show you the actual app Nov 30 16:33:09 sory, i'm about to go to the post ofifce Nov 30 16:33:13 sorry Nov 30 16:33:42 Not a problem man Nov 30 16:33:49 gradle can no longer sync in android studio 2.0 preview... Nov 30 16:38:23 Anyone know how to sort out being able to open an app from google now? Sooo, I have an app lets say "textswitcher" and instead it will google "open textswitcher" instead of opening it. Nov 30 16:44:01 does Camera#setPreviewCallbackWithBuffer not work when using Camera#setPreviewTexture ? Nov 30 16:44:39 DIsabling the new "all test artifacts" setting lets gradle go back to syncing Nov 30 16:46:16 what does this syntax mean? java.lang.NoClassDefFoundError: javax.mail.internet.MimeBodyPart$MimePartDataHandler Nov 30 16:46:24 does $ indicate an inline class or what? Nov 30 16:46:44 dokma nested class Nov 30 16:46:56 thanks Nov 30 16:54:34 Probably the laziest question ever, there isn't an online service that can convert java code to an layout in xml? Nov 30 17:01:39 dersand whut Nov 30 17:03:45 g00s, already migrated to 2.0? Nov 30 17:03:56 danijoo AS 2.0 ? Nov 30 17:04:01 yep Nov 30 17:04:06 no , i only use stable these days Nov 30 17:04:36 g00s you make some LinearLayout and add a couple of textviews, doesn't matter what, in java however. But what i'm asking if there is some tool that could convert that java-linear layout to a layout.xml file Nov 30 17:04:43 im scared since the last try broke my stable. I wait it to be g00s-approved now :p Nov 30 17:05:04 dersand, dont do that in java in the first place :p Nov 30 17:05:08 danijoo its not g00s approvied :D Nov 30 17:05:25 danijoo, well that's easy to say now :( Nov 30 17:05:39 i'm actually playing around with Xcode Nov 30 17:05:50 been a long time sine i saw it last, like Xcode 3 :P Nov 30 17:07:20 dersand: why can't you do it by hand? Nov 30 17:07:59 alexfu i could, but aren't programmers supposed to be lazy? Or have i learned completely nothing about this life? Nov 30 17:08:18 uh Nov 30 17:08:22 no Nov 30 17:08:38 dersand, but you are only doing this mistake once. so everyone is too lazy to write a tool for it :p Nov 30 17:08:39 being lazy and re-using code are not the same thing Nov 30 17:11:02 I can no longer compile my code, Android Studio 2.0 complains that my Rx subscribe methods have an argument mismatch on any of my retrofit calls: https://gist.github.com/shekibobo/2ad465cd6e8e985b6ba6. Only thing new seems to be Android Studio 2.0, but it was working fine in AS2.0 last week. Expanding from lambdas to anonymous classes doesn't fix it. Nov 30 17:13:46 i'm a little worried about the rxjava project Nov 30 17:14:16 twitter feed is slowing down, ben disappeared, david karnok is off on his own doing shit Nov 30 17:14:37 joshkovach: what happens when you don't use lambdas? Nov 30 17:15:10 same error if I use anon interfaces Nov 30 17:32:49 Whats the best way to give the click effect on imageviews in a toolbar? Nov 30 17:35:44 hello guys ! Anyone ever used Visual Studio for Android development? Nov 30 17:36:02 I'm not talking about Xamarin Nov 30 17:36:10 pure android/java Nov 30 17:36:10 Visual Studio doesn’t do Java Nov 30 17:36:14 ok , cool Nov 30 17:36:19 i'll use intellij instead Nov 30 17:36:30 use Android Studio, and save yourself a headache Nov 30 17:36:57 hmm isn't intellij Android plugin == Android Studio? Nov 30 17:37:03 nope Nov 30 17:37:05 Am I doing Toolbars all wrong? Right now to add a menu button to the toolbar I literally put an imageview of a menubutton inside the toolbar layout Nov 30 17:37:31 drose379: I’ve done that before Nov 30 17:37:43 I am missing click events on the buttons though? Nov 30 17:38:02 Know what I mean? The ripple effect when a button is clicked, I do not have tha t Nov 30 17:38:16 set the background to selectableItemBackground Nov 30 17:38:20 or something like htat Nov 30 17:38:29 What do you mean Nov 30 17:38:36 Background of the toolbar? Nov 30 17:38:37 the background of your imageview. Nov 30 17:38:56 drose379, why dont you use a menu ? Nov 30 17:39:14 A menu for what? Nov 30 17:39:20 Im talking about my toolbar Nov 30 17:39:24 me too Nov 30 17:39:29 What do you mean by a menu then? Nov 30 17:39:31 your toolbar icons Nov 30 17:39:32 you can use the built in menu system Nov 30 17:40:01 Would that work better? Nov 30 17:40:05 they have click animation built-in and save you all the boilerplate Nov 30 17:40:11 depends on your needs, but probably Nov 30 17:40:11 Hmm Nov 30 17:40:19 I would like to try what s73v3r said first Nov 30 17:40:36 I should set the background of my imageview to selectableItemBackground? Nov 30 17:42:00 Ok that kind of works but its ugly for some reason Nov 30 17:43:04 working against the system usually gives ugly results ;) Nov 30 17:43:36 Hold up Nov 30 17:43:43 Let me show a screen recording Nov 30 17:43:51 you don’t need to Nov 30 17:43:55 we know what you’re trying to do Nov 30 17:44:06 I was gonna show what its doing now Nov 30 17:44:34 try using the menu system first Nov 30 17:44:57 So for each activity I have to programatically add items to the toolbar? Nov 30 17:45:12 read up how actionbar menus work. Nov 30 17:45:25 you can use the menu.xml, exactly as you would have before Nov 30 17:46:15 does anybody know when android.permission.VIBRATE became obsolete? was it api level 21 or 23? Nov 30 17:46:57 ah nvm. its 23 because it became a ¨normal permission¨ Nov 30 17:47:17 Cant find the toolbar in the material guides Nov 30 17:48:05 material guides are about design, not about coding Nov 30 17:48:11 Hi, while running ProGuard I get this warning: [http://dpaste.com/14FCH8D] Any ideas how to fix it? Nov 30 17:48:41 I know im trying to fix the design danijoo Nov 30 17:49:38 https://www.google.com/design/spec/components/toolbars.html ? Nov 30 17:49:47 astroduck, try this in your build.gradle: android{ packagingOptions { exclude '.readme' } } Nov 30 17:50:12 danijoo: I did, didn't work Nov 30 17:50:56 worked for me Nov 30 17:53:37 danijoo: Will it cause any problem in my app if I ignore it? Nov 30 17:53:53 does it build? Nov 30 17:54:36 Yes, and is working fine Nov 30 17:54:55 so you gave yourself the answer :) Nov 30 17:54:56 Check out the toolbar button click guys, I think I got it: https://vid.me/XGN3 Nov 30 17:55:13 drose379, thats horrible Nov 30 17:55:26 the button is out of position Nov 30 17:56:05 because you dont listen when everybody is telling you to use the built-in system for that Nov 30 17:56:36 drose379: Yeah, the button should be of width 54dp and shoulf be aligned to left, correct me if I'm wrong, all other menu items on toolbar to have 48dp width, Nov 30 17:57:11 And give spacing to your list items accordingly, 16dp either side so they are aligned with arrows Nov 30 17:57:17 *arrow Nov 30 17:57:22 no need to create that button manually Nov 30 17:57:26 Where is button out of place danijoo Nov 30 17:57:31 Its 16dp margin left Nov 30 17:57:34 you just set the toolbar as actionbar and set home as up Nov 30 17:57:53 danijoo: I didn't say create it on your own, but if he wants to do it he should follow guidelines atleast Nov 30 17:57:54 But hows the button out of place Nov 30 17:57:59 drose379, +16dp the system draws Nov 30 17:58:07 Right, so 32 Nov 30 17:58:14 16 too much Nov 30 17:58:37 So no margin for the button Nov 30 17:58:39 just compare it to some other app Nov 30 17:58:47 on your device Nov 30 17:58:52 and you will see what i mean Nov 30 17:59:03 I noticed the system draws some margin automatically Nov 30 17:59:05 Is it 16? Nov 30 17:59:06 btw this is one line of code to let the system draw the button for you ;) Nov 30 17:59:10 no idea Nov 30 17:59:28 maybe 16 on every device, but 12,5 on samsung because they are like "who cares about conventions" Nov 30 17:59:57 Whats the line of code you speak of danijoo Nov 30 18:00:02 I'll give it a try Nov 30 18:00:33 http://developer.android.com/training/implementing-navigation/ancestral.html Nov 30 18:00:44 drose379: ActionBar.setHomeAsUpIndicator Nov 30 18:00:46 Thank you Nov 30 18:01:52 Ah, so I gotta change things in my manifest Nov 30 18:05:37 danijoo: shrinkResources removes my XML files. Is there a way to protect my app's resources? Nov 30 18:17:48 So rigth now my back button is not using the backstack Nov 30 18:17:56 Its just calling onCreate of the parent Nov 30 18:18:09 are you overriding onBackPressed? Nov 30 18:18:27 Which is wrong, I guess I need to try the NavUtils.navigateUpFromSameTask Nov 30 18:18:28 or finishing the parent activity as you transition to the second one? Nov 30 18:18:35 No, its the button in the toolbar Nov 30 18:18:53 Whenever I click it, it goes back to the parent, but its calling onCreate of the parent, which is causing issues Nov 30 18:19:33 check that you’re not finishing the activity when you go to the next, or that it’s somehow being stopped Nov 30 18:20:06 Im not finishing Nov 30 18:22:09 so has anyone used the new emulators in android studio 2.0? Nov 30 18:22:25 have you been asking that all weekend? Nov 30 18:22:34 uh no, i wasnt here all weekend Nov 30 18:22:35 i have a life Nov 30 18:22:43 is that a yes or a no? Nov 30 18:22:46 i know you were asking it a lot on wednesday Nov 30 18:22:57 so do you have an answer? Nov 30 18:23:05 no Nov 30 18:23:07 k Nov 30 18:23:23 and clearly no one else does, or you would have gotten an answer one of the thousands of other times you asked Nov 30 18:23:35 thousands? Nov 30 18:23:47 with that kind of accuracy, i bet you are not a very good programmer Nov 30 18:23:56 but thanks for your help! Nov 30 18:24:30 s73v3r, cant seem to figure out this issue, I dont think im finishing the activity anywhere Nov 30 18:24:35 Why would onCreate be called? Nov 30 18:24:44 cause the activity needed to be created Nov 30 18:24:58 No it should be in the backstack Nov 30 18:24:58 how is it declared in the manifest? Nov 30 18:25:21 even if it’s in the backstack, it might need to be recreated Nov 30 18:25:22 s73v3r, it should not need to be created if its coming from the backstack right? It should be resumed Nov 30 18:25:37 if it’s still in memory Nov 30 18:25:38 Hmm Nov 30 18:25:51 Well its weird because if im using the actual back button on the device, no issues Nov 30 18:25:54 or you haven’t declared it in such a way to where a new instance of it is created every time Nov 30 18:26:02 But if im using the toolbar back button, the issue occurs Nov 30 18:26:49 that doesn’t matter Nov 30 18:26:49 <_0xE2> has anyone here implemented f2fs into a kernel before? Nov 30 18:26:49 Why not s73v3r Nov 30 18:26:49 All I have in the manifest is the parentActivityName Nov 30 18:26:59 override onPause and onStop in your parent activity, and log if they are being called Nov 30 18:27:06 and onDestroy Nov 30 18:27:22 <_0xE2> oh wait, found it lol Nov 30 18:27:51 Question about VideoView. I've got it to work after the video has been loaded, but is there anyway to stream it as it is downloading? Nov 30 18:28:31 So apparently my issue with rxjava subscribe was due to type erasure happening in .compose(bindToLifecycle()) Nov 30 18:29:04 s73v3r, When I leave the parent, onPause is called, and when I use the back button, onDestroy is called Nov 30 18:29:04 Weird Nov 30 18:29:20 It destroys the existing and then creates a new one Nov 30 18:30:43 anyone know what code style android studio uses for gradle? Nov 30 18:31:24 danijoo, having some issues with the new Toolbar up button, you around? Nov 30 18:33:23 will ram actually help with the default android emulator (AS) Nov 30 18:35:10 What is the best way to work with websocket in Android? OkHTTP? Is there a better library for websocket? Nov 30 18:37:12 changing it to .compose(this.>bindToLifecycle()) fixes the issue, Looks like RxLifecycle introduced a breaking change on a patch release (yay!) that caused the type erasure: https://github.com/trello/RxLifecycle/pull/46 Nov 30 18:53:27 For anyone who uses MVM MVMP, how "active" is your viewmodel: is it more a DTO, formatted by the presenter and passed to the view which loads it, or does it obtain a view and inject its state? Nov 30 19:10:10 please let me help Nov 30 19:12:15 Hey guys, did anyone ever work with Android Studio and React Native? Nov 30 19:15:36 welp, d.android.com is down. Nov 30 19:17:26 it works Nov 30 19:18:14 well, it was reporting a 500 a min ago Nov 30 19:26:26 pfn : hi. would you please advise on how to use AutoLibraryProject to specify dependant sub-project? Nov 30 19:27:08 vigilancer, android.library.reference.1=path in project.properties Nov 30 19:28:53 pfn : is it possible to specify sub-project inside root build.sbt? without explicitly copying its settings, just knowing where dependant build.sbt lies? Nov 30 19:29:11 vigilancer, there's no such thing as "dependant build.sbt" Nov 30 19:29:17 vigilancer, a project is a directory, not a file Nov 30 19:29:35 pfn , * build.sbt of dependant project Nov 30 19:29:53 vigilancer, and yes, val subproject = project.in(file("path")) val root = project.in(file(".")).dependsOn(subproject) Nov 30 19:30:14 vigilancer, build.sbt is named that way by convention, it holds no meaning Nov 30 19:32:20 pfn : thanks, I was trying to use AutoLibraryProject(file("lib/build.sbt")) Nov 30 19:37:05 pfn : isn't it 'localProjects' purpose to hold subprojects? Nov 30 19:38:03 vigilancer, yes Nov 30 19:38:15 oh, not dependsOn, androidBuildWith(subproject) Nov 30 19:38:18 I forget about that distinction Nov 30 19:39:35 and androidBuildWith populates localProjects Nov 30 19:44:14 is it possible to use a device in android studio without usb? like over wifi Nov 30 19:44:32 eeyup Nov 30 19:44:53 i.e. https://play.google.com/store/apps/details?id=za.co.henry.hsu.adbwirelessbyhenry Nov 30 19:45:00 when an EditText gains focus it does not open the default editor (such as soft keyboard)… how can I invoke the default editor? Nov 30 19:45:17 nice, thank you Ashiren Nov 30 19:45:35 if I tap on an EditText it opens the soft keyboard, but if I RequestFocus on the EditText it does not open the soft keyboard Nov 30 19:45:44 erisco: https://stackoverflow.com/questions/5593053/open-soft-keyboard-programmatically Nov 30 19:46:01 I know there are ways to specifically open the soft keyboard but I don't want it to open on devices which do not need it (such as ones with hardware keyboards) Nov 30 19:52:21 pfn : apparently this is not enough to copy resources from dependant project in resulting apk Nov 30 19:52:27 vigilancer, what is "this" Nov 30 19:52:35 of course it's enough Nov 30 19:52:40 , androidBuildWith(subproject) Nov 30 19:53:05 vigilancer, you have to configure subproject with at least androidBuild Nov 30 19:53:34 android.Plugin.androidBuild Nov 30 19:53:34 libraryProject := true\ Nov 30 19:53:53 then it will get copied Nov 30 19:54:10 logs or it never happened Nov 30 20:06:59 well, no way, jose. Re-checed, not a trace of drawables from lib in resulting apk. but they are in resulting aar from lib Nov 30 20:07:03 pfn, http://pastebin.com/BsmkvH1X Nov 30 20:07:55 then root isn't depending on subproject (missing androidbuildwith, etc) Nov 30 20:08:00 what happens if you subproject/android:package Nov 30 20:10:15 * vigilancer lib/android:package -> This project cannot build APK, it has set 'libraryProject in Android := true' Nov 30 20:10:40 lib/android:packageAar gives me aar with resources Nov 30 20:11:42 then root doesn't depend on lib Nov 30 20:14:10 pfn : http://pastebin.com/Q3gcBQBc; guess it's because "val root" just hangs out. I suppose there is a way besides "project.in(file(".")) to address root project Nov 30 20:14:25 *hanging Nov 30 20:19:04 it doesn't hang Nov 30 20:24:28 are support libraries 23.1.1 'safe'? Im scared to update but couldnt find any severe issues in the tracker Nov 30 20:24:35 whats breaking this time? Nov 30 20:24:35 aAnyone use code iris? Nov 30 20:25:46 open the irs! Nov 30 20:27:28 safer than what came before ;) Nov 30 20:27:51 Sup g00s Nov 30 20:28:00 hello Nov 30 20:30:05 g00s, im still on 23.0.1 because I heard 23.1.0 was a complete disaster Nov 30 20:30:44 aren't they all ? :P Nov 30 20:31:01 yes but there are ups and downs Nov 30 20:31:16 or downs and verticals :D Nov 30 20:31:33 Ok so I see how to create the menu resource declaring the action buttons for the ActionBar Nov 30 20:31:43 But where do I attach the menu resource to the ActionBar Nov 30 20:32:01 read the docs.. Nov 30 20:32:12 Read through this: http://developer.android.com/training/appbar/actions.html Nov 30 20:33:06 no thanks Nov 30 20:33:15 No Nov 30 20:33:29 I meant "I read through this", not "Read through this" Nov 30 20:33:44 Anyways, I read through that and didnt see anything, just how to create the buttons Nov 30 20:33:48 http://developer.android.com/training/appbar/actions.html#add-actions Nov 30 20:33:53 try googling ;) theres another set of docs on how to use menus Nov 30 20:34:15 canvs2321, that shows how to create the buttons, not attach them to the bar Nov 30 20:34:36 hes right. Nov 30 20:34:41 but there are docs for that too Nov 30 20:34:49 you just need to google for them Nov 30 20:35:01 Yep, gonna look deeper into it now Nov 30 20:35:11 try looking for onCreateOptionsMenu Nov 30 20:35:28 Yeah thats what I found Nov 30 20:35:40 will not work for standalone toolbar though Nov 30 20:36:08 I'm doin it the right way now danijoo :D Nov 30 20:36:12 pfn : .androidBuildWith(lib) triggers subproject compilation but apk still contains neither resources nor classes from lib Nov 30 20:36:29 meh.. support library again increased by 76 methods in count. Nov 30 20:36:44 not long and this will be bigger than the whole kotlin runtime :'D Nov 30 20:37:28 vigilancer, you haven't shown anything yet Nov 30 20:37:29 I just got an ASUS Zenfone 2E and maybe I am stupid but I cannot get ADB to work. (The drivers I tried for windows did not install maybe?) Nov 30 20:37:49 did you enable usb debugging on your device? Nov 30 20:37:59 it already is :D Nov 30 20:38:21 Yes. And OEM Unlock. But my phone is not detected as an Android ADB blah blah. Just detected as a zenfone Nov 30 20:38:29 kotlin is ~ 8k methods and support is > 15k for me lol Nov 30 20:38:35 Hey danijoo I wonder if I can dynamically change the icon of a menuitem Nov 30 20:38:44 drose379, you can Nov 30 20:38:51 Sweet Nov 30 20:39:30 How do I unstall previous ADB / phone usb drivers? Nov 30 20:39:41 set some flag, invalidate the options menu and it will redraw Nov 30 20:39:48 check that flag with an if clause Nov 30 20:40:02 theunleet, on what system>? Nov 30 20:40:03 menuItem.setIcon() works just fine. Nov 30 20:40:08 Without having to invalidate everything. Nov 30 20:40:11 I used USVdView or whatever. Windows 7. Nov 30 20:40:19 pfn : http://pastebin.com/EepU2KCW Nov 30 20:40:37 Mavrik, I prefer to redraw it because I dont want to keep a variable arround :/ Nov 30 20:40:39 x64 bit. Nov 30 20:40:46 inefficient - i know Nov 30 20:42:20 vigilancer, then that would build fine, clean first then Nov 30 20:42:41 pfn : clean and cleanFIles for both ( Nov 30 20:43:20 This is a new system so I did not have ADB yet. Nov 30 20:43:41 And I do not use the SDK, I just needed ADB / FastBoot / phone drivers. Nov 30 20:43:49 vigilancer, without further data, nothing to say, but it works Nov 30 20:44:12 theunleet, i guess you can remove them from the device manager on windows Nov 30 20:44:24 if your device is plugged in you select it and uninstall drivers Nov 30 20:44:29 i removed the phone from the manager Nov 30 20:44:43 but i think it was just phone drivers and not adb Nov 30 20:47:13 pfn : https://bitbucket.org/vigilancer/sbt-test-logview Nov 30 20:49:38 i just used usbdeview to uninstall the zenfone 2e Nov 30 20:52:56 i used a command-line tool to install adb / fastboot Nov 30 20:53:05 and device drivers Nov 30 20:53:15 vigilancer, I guess there's a weird interaction when you nest build.sbt like that, under val root, add android.Plugin.buildWith(lib) Nov 30 20:53:37 vigilancer, [warn] android: 'root' dependsOn 'lib' but does not `buildWith(lib)` -- that's the hint right there Nov 30 20:53:46 So danijoo the invalidateOptionsMenu() works partially Nov 30 20:53:56 It only changes the icon after you click it again, which is an issue Nov 30 20:54:09 vigilancer, paste all messages from now on Nov 30 20:54:14 vigilancer, not just snippets Nov 30 20:54:43 * pfn wonders why androidBuildWith fails like that Nov 30 20:54:49 I may just have to save refreence to the menu and call onCreateOptionsMenu myself Nov 30 20:55:00 drose379, you cant call that yourself Nov 30 20:55:05 I can Nov 30 20:55:12 Why not? Nov 30 20:55:17 because its a system call Nov 30 20:55:28 like you cant call onCreate() yourself Nov 30 20:55:37 vigilancer, ok, final answer, has nothing to do with nesting, it's because of using androidBuildWith in conjunction with androidBuild Nov 30 20:55:43 Ok one sec Nov 30 20:55:53 you either invalidate the menu and let it recreate itself, or do what Mavrik said and hold a reference to the menu item you want to change Nov 30 20:55:58 why is this so hard Nov 30 20:55:59 vigilancer, get rid of android.Plugin.androidBuild from root build.sbt Nov 30 20:56:05 whatever works for you Nov 30 20:57:01 Hmm, hold a refrerence to the menu item... Nov 30 21:01:24 anyone Nov 30 21:02:28 my phone comes up as "Portable Device" under device manager Nov 30 21:02:42 isnt it portable ? :P Nov 30 21:02:56 danijoo, same issue, even if I have reference to the MenuItem, it doesnt change icons until the menu is redrawn Nov 30 21:03:03 because windows sucks when it comes to adding devices Nov 30 21:03:35 im sure but i dont have any of my linux devices handy Nov 30 21:03:52 drose379, how do you change it? Nov 30 21:04:01 Just do MenuItem.setIcon(); Nov 30 21:04:30 show the code Nov 30 21:05:24 danijoo, http://pastebin.com/nfWQq0b9 Nov 30 21:06:39 why are you invalidating after setting the icon? Nov 30 21:06:46 this will make if revert the change Nov 30 21:07:03 Oh, invalidate then set the icon you think? Nov 30 21:07:09 because its running through onCreateOptionsMenu again Nov 30 21:07:16 no. either set the icon OR invalidate Nov 30 21:07:34 Oh, I get the same issue when I do either Nov 30 21:07:46 If I dont call invalidateOptionsMenu, the same thing happens Nov 30 21:08:52 what thing? Nov 30 21:09:08 The icon does not change until I click it again Nov 30 21:09:27 attach a debugger and see what happens Nov 30 21:09:46 maybe getCount() == 0 on your first click and thats why it doesnt change there Nov 30 21:10:19 I thougt it might be because the entire menu needs to be redrawn when that icon changes? Nov 30 21:10:24 no Nov 30 21:10:53 Well then I dont see any other issues Nov 30 21:11:08 as I said it might be an issue in your logic Nov 30 21:11:26 ie you expect getCount() to be greater 0 but it isnt greater 0 Nov 30 21:11:29 or the opposite Nov 30 21:11:55 Either way the icon should change when the button is clicked Nov 30 21:12:02 And its not Nov 30 21:12:13 show the whole activity Nov 30 21:12:52 http://pastebin.com/xEmDxXtN Nov 30 21:14:09 (you shouldnt do database calls in onCreateOptionsMenu but thats a different story) Nov 30 21:14:15 Right Nov 30 21:14:27 i think everyone in #android-root is asleep lol Nov 30 21:15:29 it’s just usually not that populated Nov 30 21:15:41 pfn : works ok now, thanks Nov 30 21:15:58 strange tho Nov 30 21:16:03 well it would help me if someone in there fixed my problem lol Nov 30 21:16:24 don’t fuck around with root. problem solved Nov 30 21:17:08 See anything danijoo Nov 30 21:17:52 drose379, so the difference in R.menu.pet_detail_toolbar_items and R.menu.pet_detail_toolbar_favorited is just that one has ic_favorite_border_white_24dp as icon and the other has ic_favorite_white_24dp, respectivly? Nov 30 21:18:01 Yes Nov 30 21:18:59 drose379, its a problem in your logic Nov 30 21:19:06 Ok, you found it? Nov 30 21:19:20 when the button is clicked, you open a dialog to ask if the user wants to add the favourite Nov 30 21:19:25 Yes Nov 30 21:19:32 then initFavouriteStatus() at line 150 is called Nov 30 21:19:49 Well, before that, the item is either added or removed from the DB Nov 30 21:19:52 BEFORE the user clicks yes in the dialog because the method just goes on after opening the dialog and doesnt wait for it to finish Nov 30 21:20:01 Really, let me look Nov 30 21:20:12 so your initFavouriteStatus checks the database before it changes and getCount() will still be 0 Nov 30 21:20:41 Are you looking in onOptionItemSelected case R.id.favoriteIcon Nov 30 21:20:46 Or favoriteItem sorry Nov 30 21:20:46 yes Nov 30 21:21:01 initFavoriteStatus is at the end Nov 30 21:21:07 Ohhh Nov 30 21:21:08 you need to move initFavoriteState() from the end of onOptionsItemSelected to the onClickListener of the dialogs Nov 30 21:21:13 Ah i see Nov 30 21:21:14 ie to line 121 Nov 30 21:21:24 Yep, thanks man, I HAD that but commented it out! Nov 30 21:21:34 :o Nov 30 21:21:35 yw. Nov 30 21:21:45 Lemme try Nov 30 21:21:47 thats why I said attach a debugger and check what getCount() returns ;) Nov 30 21:21:58 Yep, got it Nov 30 21:22:01 Thanks again danijoo Nov 30 21:22:14 Got another question in a little while for you, if you are around :) Nov 30 21:22:50 I dont know Nov 30 21:23:12 pfn : apparently val root is not required now Nov 30 21:23:41 also wont answer this time if you havent googled and/or tried the debugger :p\ Nov 30 21:28:24 will ram help with android emulator (AS one) Nov 30 21:29:31 unlikely. if its not bottleneck, it wont help much Nov 30 21:29:40 horny-sama, depends on if RAM is your bottleneck Nov 30 21:29:44 Ashiren: coz I have 8gb of ram Nov 30 21:29:46 it likely isnt Nov 30 21:29:55 thats sufficient Nov 30 21:30:03 my workplace has 32gb of ram and it renders like a lightning Nov 30 21:30:06 check if HAXM is working and use the x86 images Nov 30 21:30:18 and whats cpu it has Nov 30 21:30:25 danijoo: I am only use x86 image when I am ubuntuing Nov 30 21:30:29 amd cpu issue Nov 30 21:30:46 danijoo: amd athlon x4 860k Nov 30 21:30:57 is the emulator gpu heavy or cpu Nov 30 21:31:06 check if your processor supports KVM Nov 30 21:31:07 cpu Nov 30 21:31:15 and if its enabled in the kernel Nov 30 21:31:23 lsmod | grep kvm Nov 30 21:31:36 Kernel-based Virtual Machine (KVM) ? Nov 30 21:31:41 yes Nov 30 21:31:50 check if this module is loaded into your kernel Nov 30 21:31:53 danijoo: not using my home machine atm Nov 30 21:32:11 vigilancer, possibly not required if you keep androidBuild and buildWith Nov 30 21:32:22 vigilancer, erm, actually, no, can't do that, you need the dependsOn Nov 30 21:32:32 vigilancer, it might work for some cases, but it won't work for every case Nov 30 21:32:43 taking https://www.udemy.com/the-complete-android-developer-course Nov 30 21:32:47 atm Nov 30 21:32:54 hopefully I can get better soon Nov 30 21:33:01 horny-sama, its about this: https://wiki.ubuntuusers.de/KVM . if kvm is loaded into the kernel, this will speed up the emulator on linux Nov 30 21:33:27 pfn : so leave val root and replace androidBuildWith with 'dependsOn' ? Nov 30 21:33:48 you might to check kvm in bios Nov 30 21:34:28 danijoo: nein deutsch Nov 30 21:35:10 horny-sama, oh didnt notice :/ sorry Nov 30 21:35:24 im too much using both languages Nov 30 21:35:31 pfn : 'cause removing val root = project.in(file(".")).androidBuildWith(lib) works fine for this example Nov 30 21:35:46 danijoo: you from germany? Nov 30 21:35:53 horny-sama, there you go https://help.ubuntu.com/community/KVM/Installation Nov 30 21:35:53 yes Nov 30 21:36:31 danijoo: cool now you guys gonna get cultural enrichment from the refugees :P Nov 30 21:36:58 vigilancer, yeah, it kind of works, doesn't work for everything though, particularly if your subproject has code Nov 30 21:37:06 thats ok. Im pro-refugee at the most part Nov 30 21:37:13 but offtopic ;)\ Nov 30 21:37:41 :O Nov 30 21:37:48 okay Nov 30 21:38:15 pfn, well, lib has one class which is used in MainActivity in root project. packaged fine and works on device Nov 30 21:38:45 vigilancer, delta builds are different Nov 30 21:40:29 Ashiren, was this :O targeted to me? ^^ Nov 30 21:40:52 vigilancer, it won't work consistently if removed Nov 30 21:41:01 pfn, uninstall from device, clean and cleanFiles for both, restart sbt, android:install - same, works fine Nov 30 21:41:31 it still won't work consistently Nov 30 21:42:06 pfn : ok. so "val root = project.in(file(".")).androidBuildWith(lib)" or "....dependsOn(lib)" ? Nov 30 21:42:33 take your pick, either android.Plugin.androidBuild and buildWith(lib) or androidBuildWith(lib) Nov 30 21:42:35 one or the other Nov 30 21:43:35 %| Nov 30 21:43:36 (and dependsOn for the former) Nov 30 21:43:50 just use androidBuildWith and drop dependsOn, androidBuild and buildWith Nov 30 21:45:41 * vigilancer wish to understand what am I doing Nov 30 21:45:58 oh, well. scala on stack than Nov 30 21:56:29 is it usually ok to do "-assumenosideeffects class org.junit.Assert { *; }"? Nov 30 21:57:12 why are you proguarding test builds? Nov 30 21:57:44 because you never know what proguard will break Nov 30 21:57:45 i.e. is that class supposed to be used only for development/debugging/testing or i can expect to find it in libraries Nov 30 21:58:17 danijoo: that's usual builds tho Nov 30 21:58:37 why would you have junit in a usual build that is not for running test methods? Nov 30 21:58:49 to fail early? Nov 30 21:58:57 wat? Nov 30 22:00:01 i just like meaningful exceptions in the beginnings of the methods Nov 30 22:00:39 and you include junit for that? :s Nov 30 22:00:56 well i can't use assert can i Nov 30 22:01:06 this was never meant to be included in releases. its for _testing_ Nov 30 22:01:18 no idea what this does with proguard sry :/ Nov 30 22:01:30 what's meant for releases, then? Nov 30 22:02:06 anyways, that proguard line breaks a library...... Nov 30 22:02:25 junit is a tool for writing unit tests Nov 30 22:03:37 danijoo: never a fan of junit test Nov 30 22:03:45 i'm not sure how else to fail early Nov 30 22:03:47 I prefer line break and print statement Nov 30 22:03:49 * horny-sama runs Nov 30 22:04:21 squirrel theres no magic in assert Nov 30 22:04:22 i fail to see how those two things are in any way related Nov 30 22:04:38 you can just do if(somethingIsWrong) throw new SomeException(); Nov 30 22:05:56 well, in other languages i'd use asserts for that. clean, readable and that's what asserts are for Nov 30 22:06:16 I don't like JacobTabak's sticky-headers-recyclerview, it's too flickery Nov 30 22:06:23 maybe I should use SLiM Nov 30 22:06:23 * squirrel shrugs Nov 30 22:06:44 hast java assert built in? Nov 30 22:06:45 not sure Nov 30 22:07:04 can you not just throw an exception? Nov 30 22:07:11 it has but they are sorta disabled in android Nov 30 22:07:39 how is it going Chainfire Nov 30 22:07:39 s73v3r, too easy :p Nov 30 22:07:49 danijoo what was your major again ? Nov 30 22:08:05 i guess, but that’s “clean, readable”, especially for languages that have them Nov 30 22:08:43 g00s, what does major mean in this context? for the non-natives Nov 30 22:08:59 s73v3r, you can write your own. its a few lines of codes Nov 30 22:09:07 danijoo university study area Nov 30 22:09:12 g00s, chemistry Nov 30 22:09:16 write my own what? Nov 30 22:09:28 more exact: biochemistry Nov 30 22:09:33 s73v3r, assert method Nov 30 22:09:43 danijoo ah yes; i just wanted to make sure. crazy article about treating brain cancer with uh, some kind of fecal bacteria Nov 30 22:09:49 i could, but I don’t see why I’d want to outside of unit testing Nov 30 22:09:58 danijoo: do you guys use the term oy vey in germany a lot Nov 30 22:10:10 s73v3r: so you got your new laptop yet? Nov 30 22:10:18 I never heard 'oy vey' in my life.. ^^ Nov 30 22:10:21 g00s, where? Nov 30 22:10:27 when did I say I was getting a new laptop? Nov 30 22:10:46 s73v3r: that was tacticalcool Nov 30 22:10:48 I think Nov 30 22:10:55 danijoo http://www.newyorker.com/magazine/2015/12/07/bacteria-on-the-brain Nov 30 22:11:09 danijoo: you speak german right? Nov 30 22:11:23 https://en.wikipedia.org/wiki/Oy_vey Nov 30 22:11:59 g00s fine thanks. my AOSP repo seems to have messed itself up merely by leaving it alone for a few weeks. happens regularly. odd. other than that, had a great vacation ignoring users :) Nov 30 22:12:16 g00s how have things been around here? Nov 30 22:12:43 actually more or less first link on google when i search for fail fast and java: http://www.martinfowler.com/ieeeSoftware/failFast.pdf Nov 30 22:12:52 around here, its been getting quieter - last week we were discussing some of the stuff from the Android Dev Summit Nov 30 22:13:33 Chainfire looks like some nice stuff in tools dept; still no mention of whats going to happen with Java 8 Nov 30 22:13:51 tools dept you mean AS ? Nov 30 22:13:53 was kind of telling when Dianne punted the question to the tools guys (for the following day) Nov 30 22:14:05 and the tools guys punted back saying it was more a framework problem Nov 30 22:14:07 horny-sama, you know yiddish is not german, do you? Nov 30 22:14:13 Chainfire yeah, with instant run and stuff Nov 30 22:14:23 g00s, thx Nov 30 22:14:28 I have updated, and it seems NDK code completion/resolution/click-to-go-to-reference and all that is working a lot better without specific Gradle NDK setup Nov 30 22:14:48 (i.e. without using their newly-even-more-retarded way to compile NDK projects) Nov 30 22:15:14 So I guess a toast to Xavier is in order. Haven't tried the instant run stuff. Is it any good ? Nov 30 22:15:48 i haven't tried either; its too new and shiny ;) i have to get stuff done so .. don't touch preview releases Nov 30 22:15:57 ah Nov 30 22:16:05 g00s, and im sitting here, trying to attach highly potent toxins to antibodys for tumor therapy just to do what a bacteria does :p Nov 30 22:16:06 Chainfire also new adb protocol Nov 30 22:16:13 I've been using preview releases the last 6 months exclusively because they kept promising better NDK support :) Nov 30 22:16:14 and new emulators coming soon Nov 30 22:16:23 new adb protocol ? Nov 30 22:16:35 Chainfire yeah, as they said, existing one was stupid Nov 30 22:16:42 :D Nov 30 22:16:59 danijoo just put some dog poop on it Nov 30 22:17:08 :D Nov 30 22:17:13 danijoo also this was interesting from today http://www.nytimes.com/2015/11/29/opinion/sunday/what-comes-out-in-the-wash.html?_r=0 Nov 30 22:18:02 danijoo: not really Nov 30 22:18:03 hmm, interesting to read Nov 30 22:18:11 not much effect for the average developer though I dare say ? Nov 30 22:18:12 g00s, yeah i heard of that before Nov 30 22:19:34 horny-sama, yiddish might sound like german for foreigners and I kinda can understand it if I read it - the same way I can comprehend dutch Nov 30 22:19:43 but its not the same language Nov 30 22:20:14 Chainfire the protocol should speed things up a bit for us. i think instant run + new adb protocol + new emu will be great for speed / productivity Nov 30 22:20:18 once it all works :D Nov 30 22:21:03 maybe google was embarrassed that MS had a better Android emulator Nov 30 22:21:51 I wonder if they're releasing the sauce for that new emu Nov 30 22:22:25 I'm still worried they'll just go "We bought Genymotion!" Nov 30 22:22:47 Google buying genymotion is a better outcome than most other companies doing so Nov 30 22:22:54 well, I've wanted to run Android inside Android for a while now Nov 30 22:22:59 so new emu code is always exciting Nov 30 22:23:12 Kinda not happy with Genymotion lately. Nov 30 22:23:15 Their support has been utter shit. Nov 30 22:23:27 so they’re a perfect fit for google? :p Nov 30 22:23:37 haha Nov 30 22:23:48 Mavrik, this could be the death for genymotion if google does it right Nov 30 22:23:54 Yeah, except that Google's emulator actually starts. Nov 30 22:24:11 Genymotions commandline tool for management is a joke -_- Nov 30 22:24:14 genymotion should just go Nov 30 22:24:30 Hi guys, i came late for the talk. Google is now using genymotion? Nov 30 22:24:41 http://prntscr.com/98vfdq Nov 30 22:24:52 I vastly prefer genymotion to the existing emulator, considering the existing one, even with HAXM, is crap (Have not tried the new one yet) Nov 30 22:24:59 it's fast when it starts but it starts about once an hour Nov 30 22:24:59 emulator 2.0 is the reason this is not clicked yet Nov 30 22:25:50 ripper93, no. but emulator 2.0 seems to implement a lot if not all of genymotions features Nov 30 22:26:00 thanks to danijoo he fixed my issue Nov 30 22:26:12 danijoo: oh, I get it. thanks Nov 30 22:26:23 make sure to write up a post or something documenting what you did, to help others Nov 30 22:26:43 good idea Nov 30 22:29:04 I have used genymotion once or twice recently. Is kinda good but I could never like that account thing Nov 30 22:29:13 same Nov 30 22:29:23 yeah. too bad they want to get paid for their work :p Nov 30 22:29:24 I feel like chained by it, you know Nov 30 22:30:07 i guess putting play services on geny is an extra step / pain in the ass Nov 30 22:30:12 danijoo, after buying 10 licenses I'm kinda not amused when their DRM just decides our CI nodes had too many license activations... for the fifth fucking time. Nov 30 22:30:26 Mavrik, oh. Nov 30 22:30:43 Which is fun because you need to upgrade VirtualBox otherwise we're getting strange crashes / freezes. Nov 30 22:30:49 danijoo: that isn't the problem, they could have two versions: one free that doesn't have the account feature and another paid for professional use Nov 30 22:30:52 It's annoying as fuck. Nov 30 22:30:57 Pardon my language. Nov 30 22:31:12 yeah same here. it seems to be broken with the shipped vb version Nov 30 22:31:33 The Android emulator was significantly more stable as a CI node, but we can't use it anymore since it's single core -_- Nov 30 22:31:41 Mavrik wow; i always thought business strategy as plugging a deficit in big company tools is always pretty risky; it was inevitable google would do something leaving geny in a hard spot Nov 30 22:32:02 g00s, well they haven't said anything :) Nov 30 22:32:08 Mavrik i though they said new emu was multi core Nov 30 22:32:28 But Google did just shell out for AS + CLion and Geny said "they have an announcement" shortly after AS2.0 landed. Nov 30 22:32:31 Might just be defensive. Nov 30 22:32:31 still kinda wondering if its based on qemu or what Nov 30 22:32:40 But honestly I strongly hope it's not Geny. Nov 30 22:32:58 hm Nov 30 22:32:59 Mavrik, I expect something comparable to instant run feature Nov 30 22:33:08 Having a good emulator that doesn't need a machine with active desktop and OpenGL GPU would fix a bunch of our CI headaches. Nov 30 22:33:26 Now we need to share nodes with those filthy iOS people :P Nov 30 22:36:52 g00s: At the same time, there’s a lag time, in which there is the time to make money Nov 30 22:38:17 s73v3r as long as it doesn't evaporate when things go into the red ;) Nov 30 22:38:45 i dunno, if Google’s offering is just as good or better, I don’t see a bad thing in winding down Nov 30 22:39:00 obviously not just disappear out of the blue Nov 30 22:40:10 google only need to do it nearly as good as and genymotion will be fucked because google is doing it for free Nov 30 22:40:57 genymotion still can't give you play services right ? Nov 30 22:41:05 you can get it in there Nov 30 22:41:18 illegally right ? Nov 30 22:41:20 g00s, its 2 drag/drops to get gps on genymotion Nov 30 22:41:23 g00s, no. Nov 30 22:41:33 i don’t believe it’s illegal Nov 30 22:41:41 its just not legal to provide the images with it preinstalled Nov 30 22:41:49 danijoo ok Nov 30 22:42:08 it’s about as legal as flashing the play services onto a rom you’ve flashed Nov 30 22:42:15 yep Nov 30 22:42:51 anyways, I don’t see what’s wrong with genymotion folding after google does it mostly as good Nov 30 22:43:17 hm so Gilad Bracha done with an official book on Dart, i wonder if its worth reading (and Dart worth learning) Nov 30 22:43:21 there was still plenty of time from when the emulator was announced and when they actually made it good for them to make some money Nov 30 22:43:33 http://www.informit.com/store/dart-programming-language-9780133429978 Nov 30 22:43:42 g00s: Cyber monday sale on Safari books subscription Nov 30 22:43:59 s73v3r hm, maybe i should get the subscription instead Nov 30 22:44:07 half off Nov 30 22:44:24 i have $300 worth of oreilly books in my cart, and another $150 informit books Nov 30 22:44:36 s73v3r link ? Nov 30 22:44:49 https://www.safaribooksonline.com/public/cm2015/ Nov 30 22:44:59 ah ok i only saw http://www.informit.com/promotions/black-friday-cyber-monday-2015-141014 Nov 30 22:45:42 you might want to double check that the stuff in your cart is on there, but I’d wager that more is on there than is not Nov 30 22:48:59 s73v3r does safari have manning ? Nov 30 22:49:27 which manning? Nov 30 22:49:43 https://manning.com Nov 30 22:50:42 they have some, but not all Nov 30 22:50:59 s73v3r read any good books lately ? Nov 30 22:51:30 not a lot. I’ve been looking at some stuff regarding data science in python Nov 30 22:52:21 oh yeah, me too Nov 30 22:52:28 s73v3r look at julia yet ? Nov 30 22:52:34 no Nov 30 22:52:34 hmmm Nov 30 22:52:39 i haven’t gotten too far into it Nov 30 22:52:42 Any good Rxjava sqlite stuff yet? Nov 30 22:52:55 Mavrik i think there are 2-3, sqlbrite is one Nov 30 22:53:09 i haven't used any of them Nov 30 22:53:30 Hrmf, don't like sqlbrite Nov 30 22:53:42 For most mobile use cases I really don't wanna deal with SQL. Nov 30 22:53:51 I'd use Realm but their migration system is dodgy. Nov 30 22:53:53 yeah, i confess to using loaders still :P Nov 30 22:54:31 anyone have experience unit testing code that uses Uri? I'd like tests to cover it so that if there are any changes we'll notice a breakage in the tests Nov 30 22:54:53 Hello guys, i'm trying to test a class which depends on Android's PointF class (using junit). Getting strange results, like PointF foo = new PointF(5, 0); assertTrue(foo.x == 5) just failing. Nov 30 22:55:16 Any ideas what the cause of my issues might be? Nov 30 22:55:29 floating point comparison Nov 30 22:55:34 dom96, it's a float :) Nov 30 22:55:44 assertEquals(foo.x, 5, 0.0001f) Nov 30 22:55:47 or somthn. Nov 30 22:58:16 Mavrik: Assertion still failing, it thinks foo.x is 0 for some reason. Nov 30 22:58:26 (It's the same in the debugger) Nov 30 22:58:38 Also what kind of tests are you running? Nov 30 22:58:42 but yeah, probably should be using assertEquals anyway Nov 30 22:58:42 Are you mocking the class? Nov 30 22:59:06 Perhaps I need to do that, why is that necessary? Nov 30 23:01:04 I guess I need to do more research instead of trying to do things quickly. Anyway, thanks for the help. Nov 30 23:02:40 hey Nov 30 23:08:23 It's still so strange though. I am literally just testing PointF foo = new PointF(5, 0); assertEquals(5, foo.x, 0.0001f); and it fails. Nov 30 23:08:56 did you print out what foo.x is? Nov 30 23:09:34 Just did "0.0". Nov 30 23:09:57 are you doing unit tests or androidTests ? Nov 30 23:10:38 unit tests Nov 30 23:10:46 the class might be mocked out in unit tests and only return some default values Nov 30 23:10:52 not sure about that Nov 30 23:14:30 Why would somebody mock a class to make it useless? Nov 30 23:14:45 because that's how testing works Nov 30 23:15:02 danijoo what if I want to have a menu button on the left before the title, is that possible with ActionBar Nov 30 23:15:35 drose379, if you do that, the material guideline police comes and arrests you Nov 30 23:15:53 Having a menu button to the left of the title? I see it all the time Nov 30 23:16:03 So I should mock PointF? I feel like I may as well write my own PointF class then Nov 30 23:16:11 drose379, only the arrow/menu burger Nov 30 23:16:21 Thats what I mean, I want the menu burger Nov 30 23:16:41 drose379, as always, read the docs :p Nov 30 23:16:45 the burger is in it Nov 30 23:16:47 For what though? Nov 30 23:16:50 ActionBar? Nov 30 23:16:55 NavigationMenu Nov 30 23:17:14 Never heard of that class Nov 30 23:17:27 NavigationDrawer, sorry Nov 30 23:17:36 Oh ok Nov 30 23:17:37 Thanks Nov 30 23:18:40 g00s, just printed the original paper of that cancer link. will be my lecture for the spare time in laboratory tomorrow. Thanks a lot for that Nov 30 23:19:33 danijoo, why would I look in NavigationDrawer for putting the berger in the toolbar? Nov 30 23:20:00 hello Nov 30 23:20:04 drose379, you know after reading the docs about it :p Nov 30 23:20:21 This? http://developer.android.com/training/implementing-navigation/nav-drawer.html Nov 30 23:20:41 yes Nov 30 23:20:44 Ok Nov 30 23:21:16 I've got android-x86 in virtualbox, and I've just mounted a disk in /mnt/sdcard - however android seems to not recognize it. In particular, an app like Gallery tells me there is no external storage available. Is there a command that I could run in a shell to force android to think /mnt/sdcard points to an sdcard or something similar? Nov 30 23:21:16 hint: what does the burger usually do in apps? ;) Nov 30 23:21:16 Open and Close with the App Icon Nov 30 23:21:20 I think I found it Nov 30 23:21:22 :D Nov 30 23:29:50 or can I perhaps get android to rescan devices, or to look at /dev/sda1, so that it mounts it where it wants and treats it as external storage? Nov 30 23:30:27 UukGoblin, http://www.android-x86.org/documents/sdcardhowto Nov 30 23:30:51 thanks! Nov 30 23:40:15 danijoo you ever used ActionBarDrawerToggle Nov 30 23:40:36 yes but I cant help you implementing it. Nov 30 23:40:48 Ok, how come? Nov 30 23:40:51 because i sleep now. gn8 ;) Nov 30 23:41:02 Night Nov 30 23:41:11 also, its all in the docs :p Nov 30 23:41:39 Running into a weird issue Nov 30 23:44:36 It doesnt make sense, the docs are telling me to do one thing, but the constructor wont accept the args Nov 30 23:46:23 s73v3r have you looked into any of the hadoop ecosystem ? Nov 30 23:51:56 Leeds only a few more hours to get your mastering emacs book for $20 Nov 30 23:52:24 no time today... Nov 30 23:52:38 vim commands taking too much time ? Nov 30 23:53:24 Anyone have experience adding the menu berger to the actionbar Nov 30 23:54:11 burger drose379 , burger ! Nov 30 23:54:16 Sorry Nov 30 23:54:55 drose379 just copy the icon from the material spec into your project Nov 30 23:55:01 their icon download Nov 30 23:55:37 use the VectorDrawable one, it will be black, change it to whatever color .. probably colorControlNormal Nov 30 23:55:52 Yeah but im supposed to use the ActionBarDrawerToggle class Nov 30 23:56:03 http://developer.android.com/training/implementing-navigation/nav-drawer.html#OpenClose Nov 30 23:56:48 oh, dunno. sorry :D Nov 30 23:57:07 No prob Nov 30 23:57:09 dont see why anyone uses that now, since the left pane is supposed to go over the toolbar Nov 30 23:57:16 but maybe i'm just confused Nov 30 23:58:31 What's easiest way to coordinate snackbar to move with the appearance of a toast? Nov 30 23:58:41 CoordinatorLayout Nov 30 23:59:04 this is part of a very complicated map view already Nov 30 23:59:21 is coordinator layout really worth it when i've seen it can be done manually? Nov 30 23:59:53 CL is a fancy framelayout, probably what you would wind up doing anyhow Dec 01 00:00:11 except worse :) Dec 01 00:00:15 can it handle multiple fabs? Dec 01 00:00:19 like if ihad 3 stacked? Dec 01 00:00:35 i'd imagine so, but ... i dont think i've ever seen multiple fabs anywhere evar so Dec 01 00:00:52 g00s: meeting my boss this morning - almost certainly last time this year, at least - then going to pick up new(ish) toy Dec 01 00:01:05 Leeds oh what new toy ? Dec 01 00:01:14 shield tablet Dec 01 00:01:14 Seeing as I could reproduce my problem in a brand new Android Project I decided to ask on Stack Overflow, if you guys want to investigate then please take a look: http://stackoverflow.com/questions/34010251/android-pointf-constructor-not-working-in-junit-test Dec 01 00:01:14 Seeing as I could reproduce my problem in a brand new Android Project I decided to ask on Stack Overflow, if you guys want to investigate then please take a look: http://stackoverflow.com/questions/34010251/android-pointf-constructor-not-working-in-junit-test Dec 01 00:01:15 Seeing as I could reproduce my problem in a brand new Android Project I decided to ask on Stack Overflow, if you guys want to investigate then please take a look: http://stackoverflow.com/questions/34010251/android-pointf-constructor-not-working-in-junit-test Dec 01 00:01:31 (Sorry about that) Dec 01 00:02:05 Xchat Azure's copy and paste is really bad. Dec 01 00:02:08 Leeds hm, for games ? Dec 01 00:02:26 mostly, yeah Dec 01 00:08:19 actually, mostly to replace my N9 Dec 01 00:20:05 Leeds anything happen to the N9 ? Dec 01 00:20:38 it's just... bad, slow, crashy Dec 01 00:20:54 and also, still a bit bigger and heavier than I'd like Dec 01 00:25:07 Leeds get a surface pro, then you can run emacs on it too :D Dec 01 00:25:18 no, no, and thrice no Dec 01 00:25:36 hehe Dec 01 00:29:55 nick butcher is updating Plaid every day, i guess he struggles getting things to work also :D Dec 01 00:30:01 (on android) Dec 01 00:30:39 any idea why I get "the apk does not exist on disk" Dec 01 00:30:47 when trying to run Dec 01 00:31:52 I get "Build APK Dec 01 00:31:52 APK(s) generated successfully. Show in Explorer" but there is no /build/output/ Dec 01 00:32:25 I want to murder AS/gradle Dec 01 00:35:00 ok so as far as i understand, in order for my tests to run, i need to setup a specific folder structure in my project Dec 01 00:35:14 i am creating a new test directory where i want to create some service tests Dec 01 00:35:26 is this the latest/recommended way ? http://stackoverflow.com/questions/16682223/how-do-i-structure-project-test-directory-in-android-studio Dec 01 00:35:35 i am using gradle plugin 1.5.0 Dec 01 00:36:01 i am a newbie when it comes to Android , but not a newbie programmer. I understand all the concepts Android implies :) Dec 01 00:36:17 just need to get started on this project my teammates left for me Dec 01 00:37:18 moving from eclipse was terribad idea Dec 01 00:38:43 http://pastebin.com/wVxvugVt Dec 01 00:38:45 halp plix Dec 01 00:42:48 Anyone know how to prevent the keyboard from opening when an activity opens Dec 01 00:56:57 drose379: It's googleable. Dec 01 00:57:09 phobik2000: I want to murder eclipse, maybe out of mutual respect we can agree not to murder each other's ides Dec 01 00:57:15 Yeah found something about it TacticalJoke Dec 01 00:57:33 soLucien: 'src/test/java' for local (JVM) tests and 'src/androidTest/java' for Android tests. Dec 01 00:59:16 g00s, of course not, adding features and fixing things doesn't mean struggling to get things to work Dec 01 00:59:20 g00s, you make everything so negative Dec 01 01:01:59 g00s, it's like you're so bad at it, you have to project it on everyone else Dec 01 01:04:45 grekkos, eclipse actually worked OTB. my experience with android studio has been nothing but madning. just even trying to run example apps or a new app template results in incomprehensible errors. Dec 01 01:05:25 TacticalJoke i have src\main\java. Any idea how i can change this template? Dec 01 01:05:36 reminds me of my undergrad experience with borland c++ Dec 01 01:06:46 why do I get this recurring feeling that technology keeps getting more and more pointlessly abstract and redundant Dec 01 01:07:47 My professor used to tell me "its just piles of crap on top of previous piles of crap" Dec 01 01:07:50 akin to windows hijacking the machines resources just to maintain itself Dec 01 01:08:14 makes me want to go outside away from computers Dec 01 01:09:05 * phobik2000 cue south park succubus song in reverse Dec 01 01:09:43 soLucien: Add 'src/test/java' alongside: http://tools.android.com/tech-docs/unit-testing-support Dec 01 01:11:24 Note: names of the test source directories are determined by the gradle plugin based on a convention. Dec 01 01:11:33 where is this convention? Dec 01 01:11:56 far far away Dec 01 01:11:57 i have a structure that i haven't seen in any tutorials Dec 01 01:12:37 (don't ask why, i have not worked on this project yet, shit hit the fan and i have 3 days to finish what my teammates can't) Dec 01 01:12:56 i've done java before Dec 01 01:13:12 i am familiar with pom.xml s Dec 01 01:13:15 from Maven Dec 01 01:13:26 gradle seems like a json-y version of maven Dec 01 01:13:27 that looked like porn.xml for a sec Dec 01 01:18:41 TacticalJoke ok found documentation on this gradle plugin. Does not say anything about a testing folder Dec 01 01:18:46 http://developer.android.com/tools/building/plugin-for-gradle.html Dec 01 01:18:51 unbelievable Dec 01 01:19:58 Testing. For most templates, the build system creates a test directory, androidTest and generates a test APK from the test sources in your project, so you do not have to create a separate test project. The build system can also run your tests during the build process. Dec 01 01:20:11 ok. But where do i write these tests _ Dec 01 01:20:14 ? Dec 01 01:20:39 A lot of the documentation is out of date. Dec 01 01:20:42 Just read that page I linked to. Dec 01 01:20:52 A lot of Android documentation is outdated or useless or both. Dec 01 01:21:38 TacticalJoke i've been reading through msdn and iOS docs, its ... a different world Dec 01 01:22:01 i work with .net Dec 01 01:22:09 i am not used to this kind of stuff Dec 01 01:22:21 i dont know if these companies encourage their devs to write docs under training from technical writers, or if they have technical writers do everything, but its much better imho Dec 01 01:22:43 i agree. It Dec 01 01:23:03 Yeah, the .NET documentation was generally miles better, from what I remember. Dec 01 01:23:05 it is the first time i do android in 3 years. last time i did something it was pre-gradle Dec 01 01:23:28 A lot of Android documentation should just be deleted. Dec 01 01:23:39 it is very confusing for me . Dec 01 01:23:51 but look .. when i do number 6 Dec 01 01:23:57 Create your test. You can do this by opening a class, right-clicking it's name and selecting "Go to > Test". Add some test cases. Dec 01 01:24:38 Wow, they actually used "it's". Dec 01 01:24:39 i think maybe they should commision reto to make his book free Dec 01 01:24:39 it will ask me where to create my test case, and it does not ask me whether i want to store it in the src/test folder Dec 01 01:24:46 I bet that almost never happens in MSDN stuff. Dec 01 01:25:02 like how MS commisioned Petzold to write the windows phone book, which was free Dec 01 01:25:27 soLucien: I don't do that; I just create a Java class. Dec 01 01:25:55 the test folder was created on my hard drive Dec 01 01:26:03 but it does not show up in my android project Dec 01 01:26:16 TacticalJoke going through the stuff from apple/ms, everything about this feels like a neglected hack Dec 01 01:26:21 i cannot seem to be able to add it Dec 01 01:26:22 You have to select "Unit Tests" in 'View > Tool Windows > Build Variants'. Dec 01 01:26:24 in comparison Dec 01 01:26:48 i have selected that Dec 01 01:26:49 soLucien, same here, dev with eclipse pre-gradle was actually doable, albeit not smooth Dec 01 01:26:50 Yeah, Android feels like an amateur open-source project in various to me. Dec 01 01:26:52 nothing happens Dec 01 01:26:55 various ways* Dec 01 01:27:08 how the hell does it stay alive Dec 01 01:27:21 cheap phones ? Dec 01 01:27:34 android will never die Dec 01 01:27:40 soLucien: Select the 'Project' view and create 'src/main/test/java'. Add a class to that. Dec 01 01:27:41 but the docs definitely have to improve Dec 01 01:27:43 unles...old dev environments, if it isn't broken don't change it? Dec 01 01:27:48 i am sad i did not choose xamarin Dec 01 01:27:58 xamarin isn't free Dec 01 01:28:11 Oops, 'src/test/java'. Dec 01 01:30:49 The plus side is that Android is open source, so when the (framework) documentation lets you down you can see what's going on under the hood. Dec 01 01:30:57 Though it's more practical to look at the source first. Dec 01 01:31:28 Or rather only look at the source (which also contains the member documentation in case that's useful). Dec 01 01:31:43 hello all Dec 01 01:31:50 im new in android dev Dec 01 01:31:58 run Dec 01 01:32:08 TacticalJoke where ? https://onedrive.live.com/redir?resid=D7D70BEEC040C834!2462&authkey=!APV4a7Dysb9MExM&v=3&ithint=photo%2cpng Dec 01 01:32:31 there is no Dec 01 01:32:33 new fodler Dec 01 01:32:43 i need some advice how can i delete data on exit with java code ? Dec 01 01:32:51 Where it says "Android" at the top left, change that to "Project". Dec 01 01:33:11 fuuck .. did not see that Dec 01 01:33:13 thanks a lot man Dec 01 01:33:37 i am so used to .net that i forgot how to use intellij stuff Dec 01 01:34:10 A lot of Android-dev stuff is insider knowledge, it seems to me. Even that -- it's undiscoverable, it's unintuitive, its value is basically impossible to predict. Dec 01 01:34:17 i have a app what stream some radio station and the data is gatering and dont delete it self how i can make automaticaly delete when the user pres the exit button ? Dec 01 01:35:05 g00s, just go fuck off already Dec 01 01:35:10 g00s, go write ios and windows apps Dec 01 01:35:12 really don't care Dec 01 01:35:17 * pfn throws onto ignore list Dec 01 01:35:44 those who can, do, those who can't, complain Dec 01 01:35:52 Ahh, what an amazing personality. Dec 01 01:36:04 this guy really hates his job Dec 01 01:36:11 I don't get it. I recall creating a new project by selecting an icon from among many for a listview template, but can't find that anymore... Dec 01 01:36:42 I just started the Android Developer training and I'm running into a problem when doing the simple UI setup. When running the program it doesn't show the textbox or button that was made. It still shows the UI from the First step of the training. Dec 01 01:38:28 ikr Dec 01 01:38:39 TacticalJoke :D Dec 01 01:38:44 This myth that capable people don't complain is dumb. Dec 01 01:38:54 It's all personality. Some people tolerate almost anything; others are picky. Dec 01 01:38:56 he's not even worth responding to Dec 01 01:39:01 I'm just doing this as a hobbie, if this was my job I'd hate it more Dec 01 01:39:27 i am doing this because i have a deadline and incompetent team mates Dec 01 01:39:48 phobik2000 it can be fun, but more if you can avoid certain apis like camera, etc Dec 01 01:40:12 just have to know what apis are pain points Dec 01 01:40:22 g00s, last time I tried it, I did some tutorials from vogella's website Dec 01 01:40:31 it was a breeze/stuff actually worked Dec 01 01:40:43 TacticalJoke also pfn is so black and white, as if you can only be android dev and not iOS too Dec 01 01:41:16 phobik yes i remember his site. this was around 3 years ago Dec 01 01:41:30 phobik2000 also check out the codepaths website Dec 01 01:41:36 I'm looking into cross platform dev, probably using phonegap Dec 01 01:41:44 i also used his site when i did stuff, with location api and stuff Dec 01 01:41:52 xamarin ! Dec 01 01:41:53 ÆD Dec 01 01:41:53 I have a chrome app to port to mobile Dec 01 01:42:04 phobik2000 lots of good tuts here https://guides.codepath.com/android Dec 01 01:42:10 still just trying this new android studio monster... Dec 01 01:42:26 can't even get hello world to work Dec 01 01:42:37 phobik2000 not many here use phonegap, this is more native app dev Dec 01 01:42:38 phobik2000: Where are you getting stuck? Dec 01 01:42:51 Oh, if it's Phonegap, I have no idea. Dec 01 01:42:57 PhoneGap* Dec 01 01:43:03 PhoneGap is just javascript right? Dec 01 01:43:09 they call it Cordova now Dec 01 01:43:19 I think it's HTML and JavaScript, yeah. Dec 01 01:43:27 And I guess CSS. Dec 01 01:43:27 then it's a breeze Dec 01 01:43:33 yeah , very simple Dec 01 01:43:50 TacticalJoke, I wish I new, am I'm not even trying to be difficult. I'm not doing any phonegap stuff yet, just trying to get any test app to run on my phone, Gradle keeps failing in ways I don0t understand. Dec 01 01:44:34 ie "the demo.apk was not found on disk" build/output folder doesn't even exists. Dec 01 01:47:29 What's the exact error message? Dec 01 01:48:58 Anyone know how to update UI on Android when using Android Studio? Strings will update but not the UI Dec 01 01:50:21 one moement Dec 01 01:50:24 TacticalJoke where do i find http://developer.android.com/reference/android/support/test/runner/package-summary.html ? Dec 01 01:50:37 i am trying to add it as dependency un Gradle Dec 01 01:50:40 but it does not work Dec 01 01:51:46 does gradle automatically build when the project is opened? Dec 01 01:55:13 Error:Failed to complete Gradle execution. Dec 01 01:55:13 Cause: Dec 01 01:55:13 Unknown command-line option '-X'. Dec 01 01:58:37 ok i got it. Was using AndroidTestCompile instead of testCompile Dec 01 01:58:42 so, TacticalJoke Dec 01 01:58:57 if i write integration tests, i have to use androidTestCompile Dec 01 01:59:03 that would run them on the device Dec 01 01:59:18 if i to interesting stuff such as Expresso Dec 01 01:59:36 i'm writing a WebSockets connector atm, nothing fancy Dec 01 01:59:44 so the JVM would be fint Dec 01 01:59:46 fine Dec 01 02:00:00 right? Dec 01 02:06:01 TacticalJoke ok i got the hang of it, thanks a lot for the help Dec 01 02:06:16 here's a gift :D https://www.youtube.com/watch?v=Lz0BGyq8Utw Dec 01 02:08:11 TacticalJoke, The APK file C:\Dev\MyApplication\app\build\outputs\apk\app-debug.apk does not exist on disk. Dec 01 02:10:37 it makes no sense http://i.imgur.com/p5WDknq.png Dec 01 02:10:55 can you post your build.gradle? Dec 01 02:11:10 i may be able to help out by comparing it to mine Dec 01 02:11:13 which is working Dec 01 02:11:18 i am having the toughest time with this ImageView in a TableRow... it's a dynamic image so I don't really know anything about it, so i'm setting the image by using ImageView.setImageBitmap ... for some reason, it's really tall and im not sure why. here's a screenshot with debugging "Show Layout Bounds" turned on https://dl.dropboxusercontent.com/u/68434403/device-2015-11-30-210547.png and heres my layout https://gist.github.com/anonym Dec 01 02:11:18 ous/fc9288c6e543c57388d6 Dec 01 02:11:27 boo, here's the layout: https://gist.github.com/anonymous/fc9288c6e543c57388d6 Dec 01 02:14:13 http://pastebin.com/tdieTqpv Dec 01 02:16:44 phobik2000 are you using Android Studio? Dec 01 02:17:20 soLucien, yes Dec 01 02:17:53 add this to the beginning of your script http://pastebin.com/TFrBS7aX Dec 01 02:25:20 phobik2000 solved the issue? Dec 01 02:49:18 nope Dec 01 02:49:19 http://i.imgur.com/zynjgiy.png Dec 01 02:50:53 phobik2000: Try setting `compileSdkVersion` to 23. Dec 01 02:52:06 TacticalJoke can i get a hand? Dec 01 02:53:48 it says there: “Exception in plugin Android Support …. Unread.” take it as an advice, unread it and go to sleep. Dec 01 02:53:54 i'm using this https://github.com/googlesamples/android-testing/blob/master/integration/ServiceTestRuleSample/app/src/androidTest/java/com.example.android.testing.ServiceTestRuleSample/LocalServiceTest.java Dec 01 02:54:04 however, i can't build Dec 01 02:55:29 should i include them both in testcompile Dec 01 02:55:34 and androidtestcompile? Dec 01 02:58:49 Just `androidTestCompile`. Dec 01 02:59:04 when i do that Dec 01 02:59:08 i can't compule Dec 01 02:59:10 compile Dec 01 02:59:15 can't compile my tests Dec 01 02:59:58 Error:(6, 28) error: package android.support.test does not exist Dec 01 03:00:05 Error:(7, 33) error: package android.support.test.rule does not exist Dec 01 03:00:35 when i add them to testCompile i get java.lang.IllegalStateException: No instrumentation registered! Must run under a registering instrumentation Dec 01 03:00:40 this is bullshit **** ENDING LOGGING AT Tue Dec 01 03:00:46 2015