**** BEGIN LOGGING AT Sat Feb 06 02:59:58 2016 Feb 06 03:18:36 anyone else here that might be able to help? Feb 06 03:19:37 just ask the question and see D: Feb 06 03:40:15 I am opening a project in Android Studio created on a different computer. My app debug configuration has a red X. It says Default Activity not found. The Manifest.xml is underlined in red though I've compared it to other projects and all appears fine. Any ideas on what is wrong? Feb 06 03:52:14 monroe, in my experience, using any of the higher level framework tools is a lot of pain for little gain. Feb 06 03:52:49 i'd much prefer to work with canvas etc compared to watching people beat their heads against the keyboard on menuItems etc. Feb 06 03:56:45 @ Anchac - perhaps you are missing namespaces and the likes? Sometimes cleaning + building the project initially helps, too Feb 06 03:57:12 guys, with a shared element transition, like lets say a ImageView, do you also need to set a source on the second ImageView? Or does the transition kind of "set" it for you? If that makes sense Feb 06 03:59:34 Aoi: I have invalidated the cache, cleaned the Project, resynced Project with Gradle, and rebuilt to no avail. What namespaces would I check (where would I look)? Feb 06 04:00:26 I'd check the AndroidManifest.xml Feb 06 04:00:50 also - if you try to build with gradle - does it work as expected? Feb 06 04:02:57 Aoi: I have checked AndroidManifest. I've even compared it to other projects that do work. With obvious minor differences (different labels) it is the same. Strangely, the keyword manifest at the very top is underlined in red. It isn't even getting into the mechanics of the file. Feb 06 04:03:54 I think it should state what the problem is when building or trying to - or does it work as expected? Feb 06 04:04:04 sometimes I get random classes being underlined during build Feb 06 04:04:28 I'd suggest to manually empty the app/build folder of your project (outside of the IDE) Feb 06 04:05:18 I haven't had this problem with android, but I did have it at work (working with JEE stuff there) Feb 06 04:05:47 I get a message: Cannot read packagename from ....\path\AndroidManifest.xml. But the package name meshes with other references in the project. Feb 06 04:06:27 your manifest is wrong then Feb 06 04:07:10 hmm.. well - double-check it outside of the IDE.. if you are using Android Studio (though I have experienced it in Eclipse), it sometimes gets out of sync Feb 06 04:07:41 just check the package name and check whether the files and folders (on hard drive) correspond to it Feb 06 04:08:17 it's really hard to guess what it could be.. but even if it was a missing dependency, you'd get a different error message I believe Feb 06 04:08:38 also check whether the proper android sdk is included and is displayed as a valid dependency Feb 06 04:09:14 Aoi: I understand it is hard to guess...particularly just based on a description of the problem without seeing it as a whole project. Feb 06 04:09:38 gradlew assembleDebug Feb 06 04:09:43 pastebin output Feb 06 04:10:14 @pfn I still haven't found where to exactly write those commands in AS Feb 06 04:10:36 unless they are meant to be written in bash / command prompt Feb 06 04:11:17 Aoi: There's a Terminal link at the bottom where you can type it in...just found it. Feb 06 04:11:32 ah - cool Feb 06 04:16:33 Essentially it keeps coming back to AndroidManifest and not being able to read the packageName. Build failed. I'll keep playing with it. Feb 06 04:35:38 Okay--you guys win. Missing angle bracket after theme property in application tag. Only read that stupid file ten times... :o) Feb 06 04:37:41 heh.. happens Feb 06 04:37:44 good job! Feb 06 04:37:50 (of finding it) Feb 06 04:37:51 Thanks for the help! Feb 06 04:38:07 hehe haven't really been of help.. but happy it works now for you :) Feb 06 04:38:28 I am about to go for some "fresh air" for the last time before I crash Feb 06 04:38:35 good night! Feb 06 04:38:39 Actually...you (and pfn) kept telling me it was in Manifest. Have a good night. Feb 06 05:38:11 hey Feb 06 05:38:17 anyone here? Feb 06 05:39:23 no Feb 06 05:39:28 oh Feb 06 05:41:36 Well, I suppose if you aren't you had better go back to not being, or you might get in trouble with the powers that don't be. But seriously, I am trying to download my apk from the google play dev console because then maybe I can fix it to not have the forbidden playhaven library/sdk in it. Feb 06 05:41:44 Is there any way to get it? Feb 06 05:42:24 wut Feb 06 05:43:32 I need something I uploaded previously as I don't have the original files Feb 06 05:46:44 don't lose the files next time Feb 06 05:50:13 didn't do it on purpose dummy Feb 06 05:52:39 AegNuddel i'm not convinced you are a developer, or are trying to recover something you wrote. if you were a developer, you would not be asking such a question ;) Feb 06 05:52:49 good luck Feb 06 05:53:26 You're just an ass. Feb 06 05:53:35 I'm in my console. Feb 06 05:54:15 you can't fix the apk directly Feb 06 05:56:07 I saw something about a de-copiler but there sems to be an issue where it changes the keystore Feb 06 05:56:10 seems Feb 06 05:56:33 next time, don't submit an app that contains malware Feb 06 05:56:42 write a new app Feb 06 05:57:43 pfn, it's not malware. It's just that GameMaker Studio used to automatically contain an ad library in even games that have no ads (how does that even make sense?) Feb 06 05:59:17 then it doesn't matter Feb 06 06:00:10 You'd think, but I am getting a warning on Google Play Feb 06 06:00:42 We have determined that your app uses a library or SDK (v2.com.playhaven.configuration) that is in violation of the Developer Program Policy. Please note that beginning Aug 1st, 2014 the Developer Program Policy requires all updates and new apps uploaded to be compliant with the advertising ID provision of the Developer Program Policy. Apps in violation may be subject to permanent removal from the Store. Learn more. Feb 06 06:01:35 AegNuddel do you have the signing key ? Feb 06 06:02:53 I don't think I do... the hard drive I had it on died and I didn't have a backup as I had to keep moving things around (and couldn't afford to buy backup at the point) Feb 06 06:03:09 if you don't have the signing key, there is nothing you can do Feb 06 06:03:32 you could remove the app, decompile it, try to reconstruct it, and upload a new version with a new key and package Feb 06 06:03:49 consider it lost Feb 06 06:03:52 rewrite it Feb 06 06:05:26 I have that option yes... was trying to avoid it if possible... Feb 06 06:05:44 it is lost, period, that's the whole point of signing keys Feb 06 06:08:21 :/ Feb 06 06:10:46 you can try to decompile and submit a new app Feb 06 06:11:23 I am just trying to GET the apk Feb 06 06:12:59 AegNuddel and you don't have it on your phone ? Feb 06 06:13:53 I don't even have one right now Feb 06 06:16:30 sounds like you've had some bad luck... Feb 06 06:16:57 yes Feb 06 06:22:42 so i'm seeing stuff on amazon , that says 'only available for prime members' now Feb 06 06:22:57 i put that in my cart - didn't say that before Feb 06 06:23:01 lust a mouse Feb 06 06:23:05 *just Feb 06 06:37:00 huh Feb 06 06:37:12 o prime has become a secret club? Feb 06 06:37:15 so Feb 06 07:21:21 how much storage would you get with your 6P? Feb 06 07:21:32 32 gigs is probably enough Feb 06 07:27:20 when did i want install the android studio on ubuntu I get this error:"Error:Connection refused".what is the problem? Feb 06 07:30:10 any people don't know? Feb 06 07:30:33 pull the cable otu and put it back in. Feb 06 07:30:41 cable out Feb 06 07:32:00 :-/ Feb 06 07:32:10 adb and the debugger in a confused state a talking to different purposes.. Feb 06 07:32:43 used to happen far more frequently with bada than it does with android Feb 06 07:33:47 I need a listview or recyclerview example for expanding lists… I tried the big nerd ranch example but quickly got confused… Feb 06 07:34:48 regan, it's a gradle error.do you know? Feb 06 07:35:24 I don't understand what I do!!! Feb 06 07:36:02 oh, gradle… um carefully check the location what you specified and attempt to access it… could be a network problem… otherwise… shrug. Feb 06 07:37:59 regan,you don't think I should install adb? Feb 06 07:39:20 you don’t have it installed … O.o Feb 06 07:39:40 Now I’m confused Feb 06 07:39:54 graddle and adb are separate things Feb 06 07:40:30 : I need a listview or recyclerview example for expanding lists… I tried the big nerd ranch example but quickly got confused… Feb 06 07:41:26 regan,I should install it? Feb 06 07:42:39 It should be part of the SDK you already installed.. it might not be in your path. Feb 06 07:44:27 watch this.maybe understand any thing:http://paste.ubuntu.com/14907872/ Feb 06 07:52:42 regan,underestand any thing? Feb 06 08:06:23 There is your problem right there: java.lang.IllegalStateException: Android SDK missing Feb 06 08:06:50 https://bbs.archlinux.org/viewtopic.php?id=165810 Feb 06 08:07:41 I’ve been using Linux since 1992 but I do Android development on OS-X and Windows so I can’t help you further Feb 06 08:09:19 regan,thanks Feb 06 09:06:12 Hello, I'm quite new with Android developpment. I'm wondering to make a dynamic menu by adding some animations. My question is the following : "Should I create the buttons with OpenGL or should I use OpenGL only for create the animations ?" Feb 06 09:38:09 just use animations Feb 06 09:38:13 no need for that fancy opengl Feb 06 09:38:17 (at least not directly) Feb 06 09:46:47 rememberYou, i would stay away from using opengl for non-game apps, its not worth it Feb 06 09:52:39 ktwo: I'm trying to make a game, that why I'm using it. Feb 06 09:53:50 Ashiren: Ok, because I saw that some games have a dynamic menu with really nice buttons so I though that they did that with OpenGL also. So I suppose that I will draw my buttons only with Java and custormize the menu with GLSurface and GLRendering. Feb 06 09:55:16 if youre making pure game with graphics and whatnot, you might be interested in game libs Feb 06 09:55:24 like libgdx or andengine Feb 06 10:08:18 Ashiren: I will, thank you for the advice. Feb 06 10:08:28 how I solve "Gradle sync failed: Connection refused" in ubuntu? Feb 06 10:10:25 any Idea? Feb 06 10:12:04 rememberYou, yea if your game uses opengl for the in-game graphics, just go with it to do everything Feb 06 10:20:28 ??? Feb 06 10:54:51 Hi, guys. I have the gridview and I need fill it on screen Feb 06 10:54:54 Like http://i60.tinypic.com/2duh85v.png this Feb 06 10:55:34 use tablelayout for that. not gridview Feb 06 10:55:52 Why not? Feb 06 10:56:51 GridView is scrolling, tablelayout isnt Feb 06 10:57:10 Tablelayout makes it easier to set same height to all items Feb 06 11:11:43 morning :o Feb 06 11:12:06 morning :> Feb 06 11:13:10 today is the day I dare to add a new activity :D.. then again that's never a problem.. the problem is to get it to behave the way I want - but I am sure I can do it! hehe Feb 06 11:13:25 good luck :p Feb 06 11:13:38 thanks.. knowing me I'll need it Feb 06 11:32:04 hello guys, I recently updated my compile and target sdk to 23, Now I keep getting this error each time I try to build "failed to find target with hash string 'android-23'" Feb 06 11:32:20 donaldepig, install 23 Feb 06 11:32:35 I have done that already Feb 06 11:32:50 but it error still persist Feb 06 11:33:18 show your gradle file Feb 06 11:34:45 thanks danijoo, just a sec Feb 06 11:38:10 http://pastebin.com/XQaFSNaM Feb 06 11:38:29 thats my build.gradle Feb 06 11:40:16 looks ok. show a screenshot of your installed packages in the sdk Feb 06 11:40:22 I bet theres something missing Feb 06 11:41:19 will do Feb 06 11:45:15 i link to my snapshot http://1drv.ms/1K4mSsI Feb 06 11:46:20 sdk 23 has been installed as well as latest build tools Feb 06 11:46:56 are you sure your AS uses that sdk? Feb 06 11:47:03 and not some internal one? Feb 06 11:50:57 this is a link to the same sdk from the AS interface http://1drv.ms/1K4mSsI Feb 06 11:51:12 it does Feb 06 11:51:36 well the suggestions are to go through all your gradle build files and ensure compileSdkVersion is set to 23 Feb 06 11:52:10 hm... it should build :/ Feb 06 11:52:22 another one states that project.properties might contain a "target" key where the value is set to a hash string (e.g. "android-23" Feb 06 11:52:27 ) Feb 06 11:52:43 no it must be only 23, not android-23 Feb 06 11:53:00 Hello guys, where can I ask questions about Android Studio? My Android Studio doesn't resolve classes anymore. If I write Log.d(), the Log class can't be resolved, it's very frustrating. Maybe it sounds familiar to you? Feb 06 11:53:04 have you tried building from console to see if its an AS bug? Feb 06 11:53:05 are you sure? some of the SO things say otherwise Feb 06 11:53:34 also try gradlew assemblyDebug or something .. maybe that can tell you where exactly it's breaking Feb 06 11:53:38 yes. because thats in my gradle right now :) Feb 06 11:54:14 I would try that now Feb 06 11:54:45 but could it be that a separate module is causing the error? Feb 06 11:55:54 well I am too new to AS to tell @ donaldepig, but from what I have seen is: if a library you are using fails due to SDK version, it usually issues a rather clear error I think.. Feb 06 11:56:03 donaldepig, i dont know your other modules.. Feb 06 11:56:14 what you have seems to relate to project configuration :X Feb 06 11:56:20 if one has a wrong setting, yes. but you can see in the logs which module causes it Feb 06 11:57:30 Sorry I was disconnected. Feb 06 11:57:31 @ Number5 - no idea.. did you check your gradle files? or uhm your project dependencies? Feb 06 11:57:54 i just checked my project.properties file, I noticed target was set to 'android-20' Feb 06 11:58:13 i changed that to 23 I still get the same error Feb 06 11:58:17 I bet it should be android-23 or 23 like danijoo says Feb 06 11:58:22 try android-23 Feb 06 11:58:33 Aoi, the problem is not that it doesn't recognise the classes, the problem is I can't auto add the beloning import. Feb 06 11:58:45 android-23 was when it was beta iirc Aoi Feb 06 11:58:47 Now I have to manually import those classes. Feb 06 11:58:47 also perhaps you have to gradle sync the workspace.. Feb 06 11:58:48 now its just 23 Feb 06 11:58:59 it still says android-23 for me I believe Feb 06 11:59:01 Aoi, how to do that? Feb 06 11:59:04 donaldepig, check the logs if it happens in main or submodule Feb 06 11:59:38 i checked that, its happens in my main module Feb 06 11:59:58 Number5 - open your build.gradle and it should say "dependencies { ... classpath ... } Feb 06 12:00:27 or the app/build.gradle in case of application dependencies Feb 06 12:01:45 Aoi, I already did to have Volley working. Now my volley classes are recognised, but I have to manually add import. Man, this Android Studio as frustrating as Xcode. Feb 06 12:02:15 hm idk it works for me for the most part Feb 06 12:02:31 did you check the project settings / dependencies tab? Feb 06 12:03:19 also I believe in order for logcat to work, you should make sure the external libraries list contains < Android API xx Platform > as well as your JDK Feb 06 12:03:37 (Project view from the dropdown) Feb 06 12:03:54 Aoi, dependency has only to do with compiling the project, dude. Feb 06 12:04:33 never hurts to ensure they are there Feb 06 12:05:16 Now I manually added import android.util.Log; and the error is gone. But Android Studio should do this for me, or I better start to program in Vim. Feb 06 12:05:17 if there's one thing I learned about java - it's: the error you get, is not necessarily the error you have Feb 06 12:05:55 donaldepig, did you check if its a submodule? Feb 06 12:05:59 Aoi, thnx anyway buddy. I appreciate your help. Feb 06 12:06:54 its straight out of my main module, it says "failed to configure [my main module]" Feb 06 12:07:08 have you looked into the submodules? Feb 06 12:07:39 I have, everything seems all right with those Feb 06 12:07:43 sorry Number5 D: if only it was JEE / Eclipse - I have been working with that and a set of frameworks at work for over 6 years now.. Feb 06 12:07:58 perhaps I'd been able to help you out there better.. I am terribly new to AS Feb 06 12:08:17 danijoo, I observed that when I made the compile version change, my gradle version was updated Feb 06 12:08:34 could it be the gradle version Feb 06 12:08:44 what is your gradle version Feb 06 12:09:13 my gradle version currently reads gradle:2.0.0-alpha9 Feb 06 12:09:26 on my root build.gradle Feb 06 12:09:28 you are on android canary? Feb 06 12:10:46 I am not so conversant with the version name but my AS is 1.5.1 Feb 06 12:11:19 if your AS is 1.5.1, dont set gradle version to some alpha version. set it to 1.5.0 Feb 06 12:11:48 i dont know if the alpha gradle conflicts tbh, but it could Feb 06 12:12:05 ok, I would try that Feb 06 12:14:09 wow, it seems to have gotten past "configuring projects" Feb 06 12:18:49 I got a question for you guys: how would I go about having a dynamic nav drawer? Should I do it programically or with the XML files? Feb 06 12:18:51 Aoi, I solved it by going to File->Invalidate Caches and click on Invalidate+Restart. After restart, sync the complete project. Feb 06 12:19:19 How to fill tablelayout programmatically? Feb 06 12:19:20 HACKhalo2, if its xml, how can it be dynamic? Feb 06 12:19:48 danijoo: by switching out the different xml files for the drawers I want Feb 06 12:19:50 daanijoo, BUILD SUCCESSFUL! Feb 06 12:20:16 HACKhalo2, whatever is easier for you i think Feb 06 12:20:18 That gradle version was the problem Feb 06 12:20:30 dont use alpha stuff ;) Feb 06 12:21:29 the truth is, it didnt set that version by myself Feb 06 12:21:57 if you say so ;) Feb 06 12:21:59 danijoo: issue is I don't know how to do it correctly though. If I use different xml files, I assume I would have to use different activities (one for pre-login, one for post-login) whereas doing it programically I only need one activity i believe Feb 06 12:23:11 HACKhalo2, if(something) setContentView(view1) else setContentView(view2) Feb 06 12:23:46 Thank you so much danijoo Feb 06 12:23:55 it's seriously that easy? Feb 06 12:24:02 HACKhalo2, why not Feb 06 12:24:22 Honestly, I don't know Feb 06 12:24:34 just expected something more i guess Feb 06 12:39:59 I have tablelayout 4*4 imageviews. How to fill it to all screen size? Feb 06 12:52:16 Can anyone help me? Feb 06 12:55:13 Ozymandy, what have you tried? Feb 06 12:55:36 Wait. I paste on pastebin Feb 06 12:55:40 id use a combination of weight and column stretch Feb 06 12:56:47 danijoo: http://pastebin.com/Q9mqn8he Feb 06 12:58:04 try to set width to fillparent on tablerows Feb 06 12:58:17 and height to 0dp Feb 06 12:59:06 danijoo: layout_width and layout_height? Feb 06 12:59:15 yes Feb 06 12:59:24 but keep the weight Feb 06 13:01:02 danijoo: Doesn't work Feb 06 13:04:33 This is probably a really dumb question but i've been googling for a while, probably for the wrong thing. Feb 06 13:04:48 I'm adding a drawable xml and an icon to that drawable @android:drawable/ic_btn_speak_now Feb 06 13:04:57 how dod I change it's color in the xml? ost examples are doing so programatically Feb 06 13:05:05 android:color and android:tint make no difference Feb 06 13:21:50 danijoo: Can you help me? Feb 06 13:27:25 what do you have so far/ Feb 06 13:28:31 danijoo: Code? Or on the screen? Feb 06 13:28:35 both Feb 06 13:28:40 Wait Feb 06 13:30:44 danijoo: http://pastebin.com/7PMKqkus code Feb 06 13:31:01 hello, I have this https://gist.github.com/octohedron/16a834fdac67eee632bf and i'm calling it from a for loop and it doesn't work, it works with a single image, i checked and the URL is fine but somewhere in line 8 fails BitmapFactory.decodeStream(input), any idea what could be the problem? the images are slightly larger now, but below 200kb, JPG Feb 06 13:31:42 Twirl use picasso :p Feb 06 13:32:00 i already have everything set up like this Feb 06 13:32:08 danijoo: http://imgur.com/QCLLM7f Feb 06 13:33:01 Ozymandy, add shrinkColumns=¨*¨ to tablelayout Feb 06 13:33:09 Ozymandy: u porting GTA V to android? Feb 06 13:33:31 Twirl: no, lol. It's just for studying and it's pics Feb 06 13:33:45 danijoo: shrinkColumns=¨*¨???? Feb 06 13:33:50 yes Feb 06 13:33:57 i hate how good AS fonts render on windows Feb 06 13:34:15 danijoo: B¨ Feb 06 13:34:19 Twirl, try it on linux and you will see really bad fonts :D Feb 06 13:34:37 danijoo: clearly you didn't understand what i said, read it again Feb 06 13:35:17 Twirl, hmm Feb 06 13:35:24 Twirl, I'd do full download before attempting to decode Feb 06 13:35:28 danijoo: Tell me clear values for shrinkColumns Feb 06 13:35:38 Ozymandy, * is a clear value Feb 06 13:35:39 Twirl, I'm not sure if all Android's image parsers are streaming parsers :) Feb 06 13:36:33 danijoo: It works! Thank you so much. I tried to implements this for one day Feb 06 13:36:56 Ozymandy, shrink+stretch = equal width in android Feb 06 13:36:59 good to hear : Feb 06 13:39:08 Mavrik: alright, so i can store the data into a new variable and then pass it to the bitmap factory Feb 06 13:41:47 or make it one line of code by using Picasso :p Feb 06 13:42:35 just sayin´ :p Feb 06 13:43:20 *Glide Feb 06 13:43:20 :P Feb 06 13:47:14 alright Feb 06 13:49:54 hm. im correntyl replacing a loader with Rx. I have an observable emitting on edittext changes that should filter a list in the fragment Feb 06 13:50:32 by mapping it to a cursor and swapping that cursor into an adapter. where would you subscribe to that observable? onResume or onStart? Feb 06 13:59:05 is it possible to change app icon programatically? Feb 06 13:59:13 thanks in advance Feb 06 13:59:21 no Feb 06 13:59:33 its set in stone in the manifest Feb 06 14:00:24 how can acheive this any idea or suggestion? like (mail count) Feb 06 14:00:56 its not possible. Feb 06 14:01:07 http://stackoverflow.com/questions/1103027/how-to-change-an-application-icon-programmatically-in-android Feb 06 14:01:12 this is what you are looking for Feb 06 14:01:41 ugly hack :/ Feb 06 14:02:55 well its a workaround, since the sdk doesnt really provide this feature. It can be refactored a bit, I agree Feb 06 14:03:37 @jvrodrigues is this link work for you? Feb 06 14:03:47 ? Feb 06 14:05:03 this question ask 6 year before? Any functionality will introduce recent Feb 06 14:05:22 thanks @jvrodrigues Feb 06 14:05:41 not that im aware Feb 06 14:05:47 but I never really had to implement such a thing Feb 06 14:05:58 thankfully Feb 06 14:06:06 ok Feb 06 14:06:06 im sure that day will arrive though Feb 06 14:06:17 people seem to want to copy everything facebook does Feb 06 14:23:55 I have ArrayList urls, and url = "http://site.com/hello.jpg", i'm trying urls.add(url); and getting null pointer exception? why? Feb 06 14:24:26 You're getting NPE where? Feb 06 14:24:37 Twirl, first initialize your arraylist Feb 06 14:26:03 Mavrik: in urls.add(url); Feb 06 14:26:44 well, then urls is null. Feb 06 14:27:28 or ArrayList Feb 06 14:27:50 nvm. i need to learn read Mavrik Feb 06 14:27:51 :p Feb 06 14:27:53 :P Feb 06 14:31:25 that worked, ty Feb 06 14:46:20 hmm, does anyone know if BT broadcasts anything when it's on and not in discoverable mode? Feb 06 14:52:15 Does anyone here look at open sourced apps to learn how to integrate features into their app? Feb 06 14:53:04 That's what I usually do when trying to figure out how things work. Not a big fan of the tutorials on the Android dev site because I'd rather see and have access to full source code to gain an understanding of how things work Feb 06 15:10:20 ofc, there really is no better way to learn than to read source code Feb 06 15:11:20 yep Feb 06 15:11:30 Even though, documentation is critical for understanding how API behaves. Feb 06 15:11:47 (I see way too many people just blindly copy pasting shit without understanding all implications.) Feb 06 15:13:30 What's the best way to show lock screen notifications below Lollipop? Feb 06 15:33:27 Anyone has a nexus 7 2013? Feb 06 15:34:20 i want to know if there are image for developer for it? Feb 06 15:35:00 huh Feb 06 15:36:22 like developer mode? Feb 06 15:37:30 mentazoom: create a lock screen widget that shows your notifications. or a replacment lockscreen for even older versions. Feb 06 15:38:24 No i mean the image for the nexus 7 so i can install like android 6 and other android os for testing:) Feb 06 15:38:48 so you want to unlock the bootloader Feb 06 15:38:54 i think it call flash the image HACKhalo2 Feb 06 15:39:12 I was think of get a nexus 7. Feb 06 15:39:23 try xdadevelopers Feb 06 15:39:34 they usually have images like that Feb 06 15:39:40 or even Google's site Feb 06 15:40:01 as long as your nexus supports 6, then it should be there Feb 06 15:47:47 You mean long it support nexus 6 the nexus 7 google 2013 will work right. Feb 06 15:51:48 how can you lock the screen for emulator on linux? Feb 06 15:52:00 i use the mac Feb 06 15:52:09 i bad Feb 06 15:52:20 i not sure. Feb 06 15:53:51 Why is my android adb connection dying every few seconds? Feb 06 15:53:53 (venv)~/code/CTFs/shafir2016 07:55:08$ adb shell Feb 06 15:53:55 shell@A0001:/ $ su Feb 06 15:53:57 root@A0001:/ # /data/local/tmp/frida-server Feb 06 15:54:03 oops Feb 06 15:54:22 but anyway, i connect to the shell and it just dies within a few seconds Feb 06 15:54:33 return code 0 Feb 06 15:55:43 with su? Feb 06 15:58:30 both Feb 06 15:58:37 trying to run a debug server Feb 06 15:58:43 and it keeps getting disconnected also Feb 06 15:58:56 though on the phone 'usb debugging' never goes away Feb 06 15:59:38 might be silly but kill the adb and run adb as root (PC root) Feb 06 16:00:26 ok trying Feb 06 16:06:09 seems to be doing better Feb 06 16:06:20 why would it work intermittently without su? Feb 06 16:06:50 dunno Feb 06 16:07:01 maybe permission stuff or some timeout settings Feb 06 16:08:45 nevermind it just died again Feb 06 16:12:41 grazfather, try a different USB cable Feb 06 16:14:55 i think it might actually be a host issue. when is disconnect the device doesn't show up on lsusb, but y have tried two usb ports and two cables Feb 06 16:35:28 why is my fragment above everything else? grr Feb 06 16:40:23 ah, it was in the wrong XML file Feb 06 17:01:39 I would have bought a 6P last night but the gold ones are out of stock Feb 06 17:02:05 its not much of a sale if they're all gone Feb 06 17:02:07 thats a sign Feb 06 17:02:10 get the 5x :p Feb 06 17:02:22 I thought you were on the 6P bandwagon lol Feb 06 17:02:49 doing some quick math, I don't think the insurance is worth it. What do you think? Feb 06 17:02:56 im from the fraction of people who like their phones to fit in their pocket ;) Feb 06 17:03:07 $79 up front, $79 deductible Feb 06 17:03:16 its buy I 4x if this would exist. Feb 06 17:03:23 id* Feb 06 17:03:40 its too bad there aren't any flagship phones that are small Feb 06 17:03:42 RustySha1kleford, insurance? you mean like you drop the phone and they pay it? Feb 06 17:03:49 yeah accidental damage Feb 06 17:04:02 hm. I never had one Feb 06 17:04:14 I'm pretty careful. I keep a case on the phone, and I've never shattered a screen Feb 06 17:04:27 And if I would count together 80 $ insurance for every phone I had, I could probably buy 4 new phones from that Feb 06 17:04:30 I did drop my s4 in a giant puddle. Worked fine after I dried it out Feb 06 17:06:54 I know someone who dropped his 3 mini into the toilet and it still worked after drying Feb 06 17:07:07 that was a year ago and its still working. Feb 06 17:08:00 I could just get the 5X I guess Feb 06 17:08:03 danijoo sounded like he was trying to flush the bloatware down the toilet :P Feb 06 17:08:14 All of the sudden I had my heart set on the 6P Feb 06 17:08:15 g00s, too big. didnt fit :D Feb 06 17:08:28 and they're out of stock lol. I wonder if there is more arriving Feb 06 17:09:44 I love my 5x. I would even love it more if I could use it for developing Feb 06 17:11:09 why can't you? Feb 06 17:11:59 hello Feb 06 17:12:06 anyone online ? Feb 06 17:12:14 someone at LG thought its not required to bundle an USB 3 adapter in it :P Feb 06 17:12:38 so I have to wait for my type C to type A adapter from amazon to arrive before I can connect it to computer and Root it ^^ Feb 06 17:12:49 damn.. I hardly realise that I have been disconnected by the server Feb 06 17:12:55 wait the usb C cord doesn't plug into usb 2/3? Feb 06 17:13:07 RustySha1kleford, nope. its usb type c on both sides Feb 06 17:13:21 with a power adapter that can only be used with type c Feb 06 17:13:29 yep, you need a converter Feb 06 17:13:31 so be prepared and get some A-C cables ! Feb 06 17:13:46 well shit Feb 06 17:14:03 how many amps can the 5X pull while charging? Feb 06 17:14:16 might need a new car charger too Feb 06 17:14:42 RustySha1kleford, just get a cable that has USB 2 and c on the other end Feb 06 17:14:54 I bought a couple of those for car, power bank etc Feb 06 17:15:05 but they wont arrive -_- Feb 06 17:15:26 Don't get one of those that fries your device, though. Feb 06 17:15:38 good advice :P Feb 06 17:15:55 necroing the old conversation, I left my phone on top of my car once and it flew off going 60, still works like a charm to this day Feb 06 17:15:56 There's that guy from Google, Benson Leung, who's been testing them for spec compliance and leaving detailed Amazon reviews. Feb 06 17:16:05 Best Buy is supposed to have some Nexus devices next week. I might just wait until I can play with both of them to decide Feb 06 17:16:28 I need to see how much better the 6P is, and how friggin enormous it really is Feb 06 17:16:46 my friend left his iphone on his car roof, backed up, rode over it, crushed it, and got a new one from apple w/o applecare Feb 06 17:16:51 you remember those old laptops that were like 4 inches thick? Feb 06 17:17:02 the 6P is nothing like that Feb 06 17:17:22 it's still bloody huge though Feb 06 17:17:49 isn't it pretty bendable too ? :P Feb 06 17:18:02 even if its not bain :) Feb 06 17:18:03 I have issues getting my studio X in my pocket sometimes and the 6P is not much bigger then that Feb 06 17:18:04 only if you set it on fire Feb 06 17:18:44 yeah I'll need to take all my pants in to get tailored Feb 06 17:18:45 6P felt pretty similar in size to the 6, and I got used to 6 surprisingly easily. Feb 06 17:18:56 install some extra large pockets lol Feb 06 17:19:06 impress all the ladies Feb 06 17:19:25 Is that a Nexus 6P in your pocket, or are you just happy to see me? Feb 06 17:19:45 it's an iPhone 6+, thanks for noticing Feb 06 17:19:50 it's only bendable if you destroy the screen Feb 06 17:20:11 I wear relatively tight pants, the 6p is not large at all Feb 06 17:21:42 Hey guys, I have an ap idea but I need to know the correct term to search on the subject Feb 06 17:22:01 I want to develop an app that correct the pronunciation of the user Feb 06 17:22:18 by matching prepared voice models Feb 06 17:22:32 does anyone know any good reference for this Feb 06 17:22:37 any help will be appreciated Feb 06 17:25:03 Installing Studio 2.0 beta on Mac, does it install parellel to 1.x or replace it? Feb 06 17:33:04 abuahmed: thats sounds like a difficult task Feb 06 17:33:20 I don't know of any speech processing libraries but you will probably need one Feb 06 17:34:39 * g00s hates it when libraries have methods like setChartLabel(String) w/o a counterpart taking resource IDs Feb 06 17:36:29 RustySha1kleford, Can you help me with the scientific term for this? Feb 06 17:36:46 I tried voice modleing and voice matching but didn't come up with anything Feb 06 17:36:55 modeling* Feb 06 17:37:54 abuahmed: sorry dude, I don't know much about this at all Feb 06 17:38:03 speech processing? Feb 06 17:38:49 abuahmed probably voice synthesis Feb 06 17:39:11 but yeah sounds like PhD level stuff Feb 06 17:41:19 abuahmed: yeah I mean no offense, but you might be in over your head Feb 06 17:41:43 you probably need a team of very smart people to implement this Feb 06 17:42:43 I would search for a book Feb 06 17:42:47 oh, he's gone Feb 06 17:43:15 well, you've just destroyed his dream Feb 06 17:46:24 haha not my intention, it's a cool idea Feb 06 17:47:31 MS research has been working on Skype translate for a while ... Feb 06 17:47:46 its pretty amazing, and yeah super difficult Feb 06 17:49:04 I read a little bit on speech processing. In one ear out the other lol Feb 06 17:49:09 something about syllables Feb 06 17:49:38 and from there you need to match consonant and vowel sounds Feb 06 17:50:03 its also complicated because we all have different speaking voices, accents, word choices, etc. Feb 06 17:50:33 and thats about where I gave up on my speech processing project Feb 06 17:53:57 Rosetta Stone does something similar Feb 06 17:54:28 not very well but there are probably articles that talk about how its DSP works Feb 06 17:54:51 Trying chat client from android device :) Feb 06 17:54:58 Signal processing? Feb 06 17:55:02 Feels good to be connected :) Feb 06 17:55:48 another rediculously hard topic hah. I spent a good three months trying to implement something that would decode p25 digital modulation Feb 06 17:56:01 hah I did a lot of reading, hardly any writing code Feb 06 18:01:44 the term was "formant" Feb 06 18:02:08 RustySha1kleford: Feb 06 18:02:11 he made the right choice in leaving, this has nothing to do with android Feb 06 18:02:18 Doing pronunciation stuff isn't that hard. Feb 06 18:02:23 and if he is not able even to find the appropriate word... good luck Feb 06 18:02:39 If you restrict yourself to simple languages, with clear pronunciation. Feb 06 18:03:05 Japanese is very easy to handle, and German still acceptably well. Feb 06 18:03:38 AS is making me crazy, i've restricted myself to submit 1 ticket per day, max Feb 06 18:03:44 A common task for programming class in high school here is to build a text-to-speech system ;P (speech to text is also possible, but harder) Feb 06 18:04:33 the problem is the latter for pronunciation Feb 06 18:05:02 today AS was able to corrupt my sdk tool dir, "EmptyThrowable: Old dir was moved away, but new one failed to be moved into place. Trying to move old one back." Feb 06 18:05:05 this is new :) Feb 06 18:05:31 (spoiler: AS was not able to move old one back) Feb 06 18:05:54 adq noticed today AS is red underlining stuff in XMLs that uses Percent support libs for not using android:width :P Feb 06 18:06:26 man, sometimes i admit i make mistake for sure, like yesterday with the app: field Feb 06 18:06:37 but all i notice... it's... uhhhhhhh ffgfgnngfnfngf Feb 06 18:08:41 pfn: yes, but if you at least have a standard, and no one insists that their dialect is standard, too, you can do it a lot easier. Feb 06 18:09:23 The only issue then is that not every sound maps to the same letter — v, ph and f are the same, pf almost, too Feb 06 18:09:41 that doesn't make the problem easy Feb 06 18:09:50 But o maps to Ã¥ and o. Feb 06 18:10:04 Well, it makes it easier than with English. Feb 06 18:10:20 In English you have to parse on word-level or even sentence level for pronunciation, Feb 06 18:10:27 but it isn't easy Feb 06 18:10:32 German works on syllable level (except for one single word) Feb 06 18:10:51 And syllable-level is so small that you can just use lookup tables for that. Feb 06 18:10:53 Easy to do badly, and hard to do well, like many things. Feb 06 18:14:49 I've tried several pronunciation analysis engines in my native languages and none of them work well Feb 06 18:15:26 pfn they had hard time with scala ? :P Feb 06 18:28:05 so I somehow screwed up my preview window in android studio and it won't pin to the IDE anymore Feb 06 18:29:41 ah I fixed it Feb 06 18:42:05 Error:(4, 5) No resource found that matches the given name: attr 'colorAccent1'. Feb 06 18:42:12 Anyone know how to solve this? Feb 06 18:42:23 I've been checking the target SDK version which is 23 Feb 06 18:42:37 Everything in gradle is targeting the latest version Feb 06 18:43:32 colorAccent Feb 06 18:43:37 no 1 Feb 06 18:43:40 duh Feb 06 18:44:02 I'm sorry what? Feb 06 18:44:11 read Feb 06 18:44:54 I have Feb 06 18:44:58 finally my Type C cable arrived.. Feb 06 18:45:16 It doesn't make sense Feb 06 18:45:29 I have colorAccent1 in my colors.xml file Feb 06 18:45:39 learn to read Feb 06 18:46:03 read what you pasted Feb 06 18:46:51 Can you please explain what you mean? Feb 06 18:46:56 I don't know what you're hinting at Feb 06 18:47:17 Considering this was working fine until I edited the styles.xml file but the colors which are being referenced are still the exact same values Feb 06 18:48:06 the error is extremely clear Feb 06 18:48:37 No resource found that matches the given name: attr 'colorAccent1'. Feb 06 18:48:51 I have colorAccent1 though Feb 06 18:48:53 read it word by word Feb 06 18:49:00 Can you just point it out Feb 06 18:49:02 that is not a real Attribute Feb 06 18:49:12 How isn't it? Feb 06 18:49:26 because you didn't define it Feb 06 18:49:39 I told you I already did Feb 06 18:49:59 you did not Feb 06 18:50:04 thats mean pfn ^^´ Feb 06 18:50:13 a resource entry is not an attribute Feb 06 18:51:35 Does anyone have a good gradle method to autoincrement build.gradle (maybe with time) that doesnt fuck with git (should not write latest code to a file) Feb 06 18:51:52 Okay so why is the color 'colorPrimary' and 'colorPrimaryDark' found then pfn? Feb 06 18:51:53 err autoincrement versionCode is what i mean Feb 06 18:52:13 markyosullivan, because they are defined by app compat Feb 06 18:53:26 danijoo, git rev-list --count HEAD Feb 06 18:53:49 pfn I've redefined them as a different color though? Feb 06 18:54:05 pfn, thats a neat idea Feb 06 18:55:49 markyosullivan, nope Feb 06 18:56:02 danijoo, I prefer calculating it from versionName Feb 06 18:56:32 pfn can you please explain why this isn't working and what I need to do to get it to work? Feb 06 18:56:40 danijoo, https://github.com/pfn/qicr/blob/master/build.sbt#L8 Feb 06 18:56:48 do something similar in gradle Feb 06 18:57:05 because commit count is fucking impossible to read in play console Feb 06 18:57:30 its only 1135 for me :) Feb 06 18:57:36 Oh no Feb 06 18:57:41 oh hell no Feb 06 18:57:50 I'm a idiot Feb 06 18:57:54 *an idiot Feb 06 18:57:54 Did you spot the 1? Feb 06 18:58:54 pfn, I thought about deriving from versionname too, but i want it mainly for not having to edit something for publishing beta builds to crashlytics Feb 06 18:58:54 pfn colorAccent1 doesn't exist and so you can't give it a different value in styles.xml unlike colorPrimary which already exists within Android Feb 06 18:59:13 git is perfect Feb 06 18:59:29 Git is life Feb 06 19:02:48 I first tried currentTimeMillis/1000 but thats a bit rediulous Feb 06 19:06:56 if somebody cares, this does the job: https://gist.github.com/danijoo/6a17e039cf6da045eac7 Feb 06 19:10:42 pfn & danijoo: I just use BUILD_VERSION from my CI for the versioncode ;) Feb 06 19:12:06 auto-increment, standardized, can be read and understood by users, is helpful for everyone trying to reproduce bugs, etc Feb 06 19:12:27 im too lazy to setup CI for just me Feb 06 19:12:52 a simple jenkins setup is half an hour, and makes building and deploying super simple Feb 06 19:13:03 well, if you don’t use google play anywhere. Feb 06 19:13:18 cant be simpler then pressing the build button in AS :p Feb 06 19:13:33 and getting a coffee Feb 06 19:13:56 well, building with proper keys, producing the reproducable builds for F-Droid, deploying to your own server and the other app stores, etc... Feb 06 19:14:02 that all takes time Feb 06 19:14:09 yeah well.. I only deploy to gps Feb 06 19:14:13 and your server can be faster than your own computer when building Feb 06 19:14:24 and automatically test everything, Feb 06 19:14:32 give the test results to allure, Feb 06 19:14:34 etc. Feb 06 19:14:45 i test in production :p Feb 06 19:15:54 i see the pros of CI and thought about setting one up multiple times Feb 06 19:16:01 but nah.. Feb 06 19:17:08 I still haven’t set up allure, or UI unit stuff either Feb 06 19:17:17 I only test a bunch of serializer stuff, Feb 06 19:17:23 but it’s weird, Feb 06 19:17:37 retrolambda + junit + android = KABOOM Feb 06 19:21:16 guys, any here who has used FusedLocationProvider API ? Feb 06 19:35:33 suhas_sm, you're more likely to get an answer if you ask an actual question. Feb 06 19:35:45 People aren't going to run out of the woods just to tell you they've used a piece of popular API -_- Feb 06 19:36:13 Heh :) I was wondering how setMinDisplacement works ? Feb 06 19:36:36 I removed setInterval and only set min Displacement Feb 06 19:36:51 recieved no location updates Feb 06 19:37:06 even when i was on the move Feb 06 19:40:46 *shrug* Feb 06 19:40:57 Never used that, judging by the internets it's a bit unreliable. Feb 06 19:43:56 Yep, read similar things on stack overflow Feb 06 19:44:14 How they release such a half baked feature ? :| Feb 06 19:44:42 Or is the documentation and the way it should be used is not clear ? Feb 06 19:48:10 danijoo, the problem isn't that it's a big number, the problem is that you can't immediately correlate a version name from a count Feb 06 19:48:38 suhas_sm, how are you using it? Feb 06 19:48:47 Since documentation is explaning it just as a filter. Feb 06 19:49:10 Which means that without interval it would make sense you don't get updates? Feb 06 19:49:44 I used it without the interval, i want updates only if the device in motion Feb 06 19:49:59 I have tablelayout. How to set onclicklistener on element of the table? Feb 06 19:50:07 There are image views Feb 06 19:50:31 I tried table.setOnClickListener, but it doesn't work Feb 06 19:50:57 set it on the ImageViews directly Feb 06 19:52:21 danijoo: on every imageview? Feb 06 19:52:58 serious question? Feb 06 19:53:30 if you want to click them, yes Feb 06 19:53:47 every second wont work ;) Feb 06 19:54:03 suhas_sm, so set both. Feb 06 19:54:06 Yes, but I thought I can make generic listener for every imageview Feb 06 19:54:13 danijoo: every second? Feb 06 19:54:27 what? Feb 06 19:55:58 danijoo: >every second won't work Feb 06 19:56:01 I don't get Feb 06 19:56:19 its ok.. ignore it.. Feb 06 20:39:40 anyone knows how to create an AVD from android studio without the annoying skin and right sidebar with the DPAD and basic controls? Feb 06 20:43:35 ? I've never had that sidebar. Ever since i first used android studio it was just the phone/tablet and didnt have any controls Feb 06 20:43:45 I think usually it emulates a nexus 4/5? Feb 06 20:44:21 Does anyone have any advice for this issue? http://stackoverflow.com/questions/6763876/onclick-not-triggered-on-linearlayout-with-child Feb 06 20:45:51 i am facing the same thing but the fixes suggested aren't working. my layout if a linear layout with 2 linear layouts inside it, each inner-linearlayout has an imageview and a textview. essentially i just want the whole outer-linearlayout to be like a clickable button Feb 06 20:46:17 Akayllin: i only seem to be able to have the right sidebar with the controls or the device frame Feb 06 20:46:20 extremely annoying Feb 06 20:46:36 I'm starting to consider free genymotion Feb 06 20:56:42 had no idea i could add a drawable to a textview. so now its just a linear layout with 2 textviews inside it, no 2 inner layout and no image views. same problem though Feb 06 20:57:06 android just registering the "ACTION_DOWN" event but nothing happens Feb 06 20:58:56 the emulator emulates no specific device Feb 06 20:59:00 just android Feb 06 21:04:17 How can I get R.drawable from Imageview? Feb 06 21:04:40 Imageview has src:r.drawable.logo for example and I need get it Feb 06 21:10:06 Are keylines in android just...design things or can they actually be programatically applied? Feb 06 21:10:07 Taios Feb 06 21:10:09 I.e are they just suggested margins? Feb 06 21:11:57 mImageView.getId() Feb 06 21:12:01 Ozymandy ^ Feb 06 21:12:26 ventura: I know id of the view, but I need imageresource Feb 06 21:12:34 For example R.drawable.logo Feb 06 21:15:00 Ozymandy: http://stackoverflow.com/questions/7266836/get-associated-image-drawable-in-imageview-android Feb 06 21:17:22 Um, okay I am creating some activity, that activity has to build it's layout in onStart depending on data provided by a service, and then it will register a broadcast receiver to receive any changed data from the service, now, how am I going to do that initial data transfer from the service? Feb 06 21:17:31 How can I query the data from the service into my activity Feb 06 21:19:25 Why would you register receiver "then" when you can register it immediately and fire off the service? Feb 06 21:20:05 ? Feb 06 21:20:08 What does that even mean? Feb 06 21:21:00 That you can use the same mechanism for first data retrieval as you use for updates. Feb 06 21:21:10 Actually, I am making and IRC client, and when I open the ChatActivity, I want the activity to request the data from the service, so it builds up the server/channels list and puts in the already-received messages, and then it will register the broadcast receiver, the service calls that receiver to update the data in the activity Feb 06 21:21:11 It just an update. Feb 06 21:21:36 No it's not an update, the initial data are different from the update Feb 06 21:37:10 ventura: You gave me link, but my pc fall down. Can you resend? Feb 06 21:38:03 startService runs the service or marks it to be run? Feb 06 21:38:11 http://stackoverflow.com/questions/7266836/get-associated-image-drawable-in-imageview-android Feb 06 21:56:14 I have 16 imageviews. How to set for them same onClickListener? Feb 06 21:56:38 If I try to findbyid every imageview it crashes Feb 06 22:06:52 soooooo im stupid because the issue wasnt even with my onclick method it was that i forgot to add a dialog.show() call on my dialog class -__- Feb 06 22:16:37 http://pastebin.com/jbtbBL64 What is wrong? It doesn't swapping imageview drawable Feb 06 22:21:46 hi, i'm fairly new to android and I have a question that may be silly Feb 06 22:22:02 if I want to make an app which has a list of some places in town Feb 06 22:22:08 what would be the best way to store the places? Feb 06 22:22:43 would be better a List or a database, or even another option? Feb 06 22:24:37 yapme either sqlite, or realm.io if thats your thing Feb 06 22:25:34 ok g00s_ ty, but for curiosity, why would be better to store the data on a database instead of a List? Feb 06 22:26:24 yapme you need to save the places to a file, right? consider sqlite a substitute for fopen() Feb 06 22:26:58 if you don't need to save anything, List is fine Feb 06 22:27:20 all I really want is to show some info about the places Feb 06 22:27:35 I don't think I need to save anything to a file Feb 06 22:28:11 ah , then in-memory list is fine then Feb 06 22:28:47 thank you g00s_ Feb 06 22:30:13 using a list vs database is unrelated, you use a database if you need persistence Feb 06 22:30:27 use a list to represent it in memory Feb 06 22:31:30 Can I save any value in imageview? For example int value Feb 06 22:50:14 Ozymandy: What do you mean "save"? Feb 06 22:50:51 VonRath: If it's textview it's android:text Feb 06 22:51:00 I need the same in imageview Feb 06 22:51:12 You need to put text into an ImageView? I don't understand. Feb 06 22:52:01 To set a drawable in an ImageView you'd use android:src="@drawable/ozymandy_img" Feb 06 22:52:27 VonRath: Yes, text in imageview Feb 06 22:53:11 Like this Ozymandy? http://stackoverflow.com/a/8271134 Feb 06 22:53:41 No. I need it for algorithm, not for interface Feb 06 22:54:41 Can you tell me more about what you're trying to accomplish Ozymandy? Feb 06 22:55:36 Well, it's bad idea. I will try use hashmap Feb 06 22:58:24 Okay, without more context I might suggest you use a WeakReference or SoftReference. Feb 06 23:06:17 hello! i’m new to android development (but not to programming) and i'm trying to do this: http://developer.android.com/training/basics/firstapp/starting-activity.html Feb 06 23:06:43 and it's probably me but I can't get it working... Feb 06 23:06:58 This Activity already has an action bar supplied by the window decor Feb 06 23:07:13 Ofcourse I googled but no luck yet Feb 06 23:23:19 the tutorial is not perfect… android studio produces something else then what is listed at doiing it withoud android studio Feb 06 23:23:40 *without Feb 06 23:48:02 How to get drawable id of imageview? Feb 06 23:52:50 any way to add a close button to AlertDialog ? Feb 06 23:54:56 Ozymandy: It seems that ImageView doesn't expose its `mResource` field. You'll have to manage this yourself (one way is to use View.(set|get)Tag). Feb 06 23:55:00 looks like setButton is deprecated Feb 06 23:55:53 Twirl: Use AlertDialog.Builder. Feb 06 23:56:24 TacticalJoke: yes i'm using it Feb 06 23:57:16 TacticalJoke: what do i do Feb 06 23:57:32 Try this: Type "builder." and then type "button". Feb 06 23:57:42 You'll see all the button-related methods for AlertDialog.Builder. Feb 06 23:58:00 (Where `builder` is an instance of AlertDialog.Builder.) Feb 06 23:58:06 yea i know Feb 06 23:58:13 it's asking for an id Feb 06 23:58:19 do i have to make a hidden button or something? Feb 06 23:58:38 or create a button or what? Feb 06 23:59:26 i think it used to be setPositiveButton or setNegativeButton Feb 07 00:00:01 This is just a case of pressing Ctrl+P inside the parentheses or googling "AlertDialog.Builder" and reading the documentation for `setNegativeButton`. Feb 07 00:00:30 it's asking for int id, char sequence text and message Feb 07 00:01:23 If you follow the instructions I gave above, it won't ask for three parameters at any point. Feb 07 00:02:03 there is 2 set button methods and one get button that accepts an id Feb 07 00:02:19 It seems like your instance is of AlertDialog, not AlertDialog.Builder. Feb 07 00:02:51 no, it's an AlertDialog.Builder Feb 07 00:03:07 AlertDialog alertDialog = new AlertDialog.Builder(mActivity.this).create(); Feb 07 00:03:36 `alertDialog` is an AlertDialog, not an AlertDialog.Builder, because of the `.create()` part. Feb 07 00:04:17 mh what do i do then Feb 07 00:04:46 everything works i just need to add a close button or an x at the top tht would be great Feb 07 00:09:11 `AlertDialog dialog = new AlertDialog.Builder(whatever).setNegativeButton(android.R.string.cancel, null).create();` Feb 07 00:09:18 Though you really need to learn Java. :s Feb 07 00:09:58 what does java have to do with this?? Feb 07 00:10:01 this is android Feb 07 00:10:09 You're using the Java programming language. Feb 07 00:10:14 java is the easiest language i've used Feb 07 00:10:31 all of those are android methods and classes Feb 07 00:10:43 java is the language not the classes the language is really easy Feb 07 00:10:54 You had an AlertDialog and thought you had an AlertDialog.Builder. It's basic Java, and very little Android-related. Feb 07 00:12:30 yep, my bad Feb 07 00:13:14 i didn't pay attention, at a glance i thought it would return an AlertDialog.Builder instance Feb 07 00:13:36 but it couldnt because it should be AlertDialog.Builder builder = new AlertDialogBuilder.. etc Feb 07 00:13:46 i've been a software engineer for 15 years Feb 07 00:13:51 :p Feb 07 00:14:12 but yea, didnt read that srry man Feb 07 00:17:39 It's all good. I guess the builder pattern is easy to trip up on, as it's kinda weird in that some methods return the instance while others (e.g., AlertDialog.Builder.create) may return something else entirely. Feb 07 00:18:06 just watched the Android Dialogs with Jesse Wilson, history of okhttp is pretty interesting Feb 07 00:18:13 I think, in Kotlin, the builder pattern is no longer needed for two reasons: 1. The `apply` function. 2. Named parameters. Feb 07 00:18:15 JW has to stop saying "like" though Feb 07 00:19:37 Actually, now that I think of it, `apply` doesn't offer the same regarding invariants. Feb 07 00:20:11 how do you guys debug native code on osx? lldb server, ida, gdb server? i'd like to avoid having to cross compile the server Feb 07 00:20:30 gdb server is already on my phone but i don't have a client on my osx that can connect Feb 07 00:22:42 same guarantee* Feb 07 01:16:44 TacticalJoke see this? pretty amazing http://www.roadtovr.com/first-look-unreal-engine-will-soon-let-you-build-vr-inside-vr/ Feb 07 01:17:17 wonder some day, if we'll be in a VR code environment Feb 07 01:18:03 for development of non - VR related software Feb 07 01:18:42 I bought a new cardboard yesterday - at the Chinese New Year fair Feb 07 01:18:56 That looks awesome. Feb 07 01:20:05 I gotta run. Feb 07 01:31:33 g00s_ - for sure .. if the VR dev environment adds to development speed / quality / experience Feb 07 01:39:11 smartphones are getting too friggin big lol Feb 07 01:39:13 http://i.imgur.com/duQKXgo.gifv Feb 07 01:44:31 RustySha1kleford looks like bendgate again :) Feb 07 01:45:40 I like the shot where the guy takes snaps a picture in landscape mode Feb 07 01:48:59 RustySha1kleford waiting for layout-xxxxland Feb 07 02:04:35 hm, so if i want to use the date / time pickers on api 19; i guess appcompat would not theme those ... **** ENDING LOGGING AT Sun Feb 07 02:59:58 2016