**** BEGIN LOGGING AT Wed Aug 10 02:59:58 2016 Aug 10 05:00:06 i get "Task with path 'installDebug' not found in root project 'myProject'" when i try to execute some task that dependsOn installDebug, but `gradle installDebug` works fine. what gives Aug 10 05:02:58 oh it's fine if i put the task in the app-level build.gradle Aug 10 05:36:55 Hi Aug 10 05:38:05 Why do I get this message when starting a device emulator in Android Studio? Aug 10 05:38:07 audio: Failed to create voice `goldfish_audio_in' Aug 10 05:38:08 qemu-system-i386.exe: warning: opening audio input failed Aug 10 06:04:54 hi Aug 10 06:06:32 ah yer already here frappy Aug 10 06:06:41 yeah :D Aug 10 07:55:33 hi guys what are good and easy alternatives to Loaders? Aug 10 08:00:55 hi guys what are good and easy alternatives to Loaders? Aug 10 08:01:01 hi guys what are good and easy alternatives to Loaders? Aug 10 08:13:49 is there a broadcast for when the phone loses cell service? Aug 10 08:20:53 tx lol Aug 10 08:21:37 What happens when an activity runs out of code to execute? Aug 10 08:52:06 . Aug 10 08:59:24 We've written an SDK which uses `support-annotations`. Should we exclude the dependency from the final jar? What is the best practice to do that? Aug 10 09:24:41 Can you place input method view not at the bottom? Aug 10 09:32:38 you mean you want the keyboard not to appear at the bottom of the screen? Aug 10 09:45:34 hi guys what libraries you use to implement a login page that allows user to use their existing login such as Gmail or Facebook Aug 10 09:52:56 Does anyone know, when I have productFlavors setup, how I define which flavor gets run when installing over USB? Aug 10 09:53:22 droidace, why use a library for that its easy to implement yourself by following the api guides Aug 10 09:55:04 ktwo where is the api guide for this? Aug 10 09:57:12 https://developers.google.com/identity/sign-in/android/start-integrating Aug 10 09:57:36 https://developers.facebook.com/docs/facebook-login/android Aug 10 10:03:54 can anybody please tell me why line 5 throws an error ? --> https://dpaste.de/8PpA Aug 10 10:05:35 anybody help me ? Aug 10 10:05:44 why dont you post which error exactly? Aug 10 10:06:10 ktwo : okay Aug 10 10:06:36 "cannot resolve method setDataSource(int)" Aug 10 10:07:35 Hello people. If I want to get the location only once, how should I approach the location subsystem? Aug 10 10:07:55 superKiller, for some reason you're trying to pass an int then Aug 10 10:08:25 ktwo : i made the raw folder , put the .mp3 file in there with the same name , now i am trying to set it as the data source file Aug 10 10:10:37 ktwo : ? Aug 10 10:13:19 Good emulators for linux? I tried genymotion so far and it broke my virtualbox installation :( Aug 10 10:16:16 throstur: Just switched over to the normal emulators from the SDK after running into trouble with genymotion Aug 10 10:16:36 The regular ones perform pretty well, here on OSX at least Aug 10 10:16:54 Give them a shot, if you haven't already recently Aug 10 10:20:34 pduin: so you're using the default SDK eh? What's the API like, can you change phone orientation and gps coordinates and all that jazz in code for making test cases? Aug 10 10:21:46 throstur: I don't know Aug 10 10:22:30 fair enough Aug 10 10:38:13 throstur: I'm using linux Aug 10 10:38:20 Use the AS emulator Aug 10 10:38:35 If you're running 2.0 or later then it's good to go Aug 10 10:39:03 thanks markyosullivan Aug 10 10:39:15 have you done any scripting with android studio? Aug 10 10:40:24 What scripting you talking about? Aug 10 10:40:47 like to make test cases for various user actions such as movement Aug 10 10:41:26 like "does the app behave correctly if I move 100 meters west from the starting position" Aug 10 10:42:53 Unit tests? Aug 10 10:43:28 yea Aug 10 11:25:30 I haven't set up any Unit Tests for my current project Aug 10 11:59:54 Did r.anim.slide_in_right replace push_right_in? Aug 10 12:20:50 hard to believe these errors Im getting are so obscure I get literally 0 results on a Google search... Aug 10 12:31:37 I have the simple-xml-2.7.1.jar in my libs folder, I have import org.simpleframework.xml.Attribute; in code, but my use of @Attribute shows "Cannot resolve symbol" Aug 10 12:31:49 is there a step to import the jar that I am missing? Aug 10 12:32:10 I have this line in my build.gradle: compile fileTree(dir: 'libs', include: ['*.jar']) Aug 10 12:32:22 What could be missing? Aug 10 12:32:28 try to rebuild the project Aug 10 12:32:34 clean mayb Aug 10 12:33:00 I've done that multiple times... Aug 10 12:39:22 azv4: seems like the jar you included doesn't have the annotation support Aug 10 12:39:37 are you sure it's the same one you need? Aug 10 12:39:44 also, why not gradle dependency? Aug 10 12:39:47 ohi thepoosh Aug 10 12:39:51 I used the same one that was always used in this project... Aug 10 12:39:53 oh hi there Aug 10 12:40:06 and you're using this annotation elsewhere? Aug 10 12:40:09 thepoosh, what do you mean, "why not gradle dependency?" Aug 10 12:40:10 thepoosh: its about 76c in tlv nao Aug 10 12:40:33 azv4: why have it as a jar instead of a dependency Aug 10 12:40:41 raoul11: I told you to come work for us Aug 10 12:40:46 a looooong time ago Aug 10 12:40:48 thepoosh, well this project was in Eclipse, then I migrated it to AS1.5, and it compiled and ran fine, then when I upgraded to 2.1.2, I had major issues and have had to rebuild the project Aug 10 12:41:07 Hi everyone! Any suggestions on where I can ask android security and exploitation related questions? I'm sure this isn't the focus of #android-dev and but I couldn't really find more related channels Aug 10 12:41:22 azv4: does it throw also when building from commandline? Aug 10 12:41:24 so I think I am leaving something out, probably this "gradle dependency" you speak of... Where is that declared? Aug 10 12:41:30 wootwoot: ? Aug 10 12:41:46 azv4: in the build.gradle of the app (not the root one) Aug 10 12:42:08 compile fileTree(dir: 'libs', include: ['*.jar']) Aug 10 12:42:28 azv4: https://mvnrepository.com/artifact/org.simpleframework/simple-xml/2.7.1 Aug 10 12:42:29 its set to pick up .jar files... and the simple-xml.jar file is in /libs Aug 10 12:42:41 thepoosh I'm looking for channels with focus on android security and exploitations. Help? Aug 10 12:42:54 you should try your best to avoid adding jars Aug 10 12:43:06 ok, will try compile group: 'org.simpleframework', name: 'simple-xml', version: '2.7.1' Aug 10 12:43:34 azv4: add it to the dependency list in the gradle build Aug 10 12:43:43 thepoosh, I did, cleaning now Aug 10 12:43:58 yay, that worked! thanks! Aug 10 12:44:01 np Aug 10 12:44:12 not sure why it used to work just by adding the jar Aug 10 12:44:18 but it works now yay! Aug 10 12:45:06 thepoosh is amazing azv4 Aug 10 12:45:41 id work for him if i wasnt so shit and id drive him to suicide Aug 10 12:46:08 I wish I worked for someone that was helpful Aug 10 12:46:36 my bosses only understand "is it finished?" if not, "why didn't you finish it a day ago, it should be easy" Aug 10 12:46:48 lol Aug 10 12:46:50 oh my Aug 10 12:46:56 thats why he's the boss Aug 10 12:47:03 "asking valueable questions" Aug 10 12:47:09 #1 requirement. Aug 10 12:47:18 everything is either, "that should be easy" and "that should only take a few minutes shouldn't it?" Aug 10 12:47:50 If only you could ask him "Well, if that's the case you can do it in a few minutes because it'll take me a lot longer and maybe I'll learn something from you" Aug 10 12:47:54 now I seem to have deprecated code Aug 10 12:48:01 I have deprecated code Aug 10 12:48:13 markyosullivan, his reply, "I don't know java or AS" Aug 10 12:48:19 it makes me feel nauseous Aug 10 12:48:19 he is a VB6 master though! Aug 10 12:48:46 People who don't do Android development cannot tell us devs how long it'll take Aug 10 12:48:52 It'll be done when it's done Aug 10 12:48:56 R.anim.push_left_in Aug 10 12:49:06 [solved] Aug 10 12:49:07 or it'll be done when it's half done and full of bugs if they'd rather that Aug 10 12:49:20 azv4: I created extra animations Aug 10 12:49:35 markyosullivan, does R.anim.push_left_in appear to be a locally defined animation? Aug 10 12:49:44 I've got slide_in_left, slide_in_right, slide_out_left, slide_out_right Aug 10 12:49:48 I wonder if this is another matter of missing .xml or missing reference Aug 10 12:50:47 Tried seeing if I could use R.anim.push_left_in , doesn't seem to exist for me Aug 10 12:50:52 I appear to be missing "push_up_in, push_left_in, push_right_in, push_up_out, push_down_out, and about 7 more Aug 10 12:51:38 when I google r.anim. I only see a small limited amount of "symbols" (as AS seems to call members of a class) Aug 10 12:51:54 and no obvious path to replacing the ones I can no longer seem to use with newer version of such Aug 10 12:52:11 I guess the grey area Im having is whether or not those were locally defined in the old project Aug 10 12:52:28 or if r.anim is a library that is static and has changed since this project was made initially Aug 10 12:52:49 I noticed there was a real lack of anim so I made those ones myself which I mentioned Aug 10 12:55:08 I bet Im missing some .xml file in the new project Aug 10 12:55:46 what is name of the .xml that defines animations? Aug 10 12:55:55 that is used to assemble the R file Aug 10 12:56:06 they're in anim directory Aug 10 12:56:31 who would have thought! Aug 10 12:56:48 yey, restoring purchases nao works Aug 10 12:57:15 btw, anyone using gamesparks for leaderboards/achievements/multi as a backend? Aug 10 12:59:03 in old project (Eclipse) there is a folder willed with .class files, are these generated by AS and shouldn't be copied into new project? Aug 10 13:00:27 and bringing in the anim folder fixed that issue, yay, one step closer to a running app! Aug 10 13:00:48 down to 0 errors and 2 warnings Aug 10 13:01:11 * azv4 is about to hit the run button, which will probably reveal new errors! (crosses his fingers) Aug 10 13:02:00 and 34 new errors appear at runtime... Aug 10 13:02:07 29 minutes before owner calls me giving me hell Aug 10 13:02:12 * azv4 sighs Aug 10 13:09:40 Is it possible to detect whether a call to requestLocationUpdates() on a LocationManager's instance has been made? Aug 10 13:13:29 is response.message() the same as response.body() with retrofit? Aug 10 13:13:58 No Aug 10 13:17:24 ohk Aug 10 13:19:02 well then how do i get a json message back from my db; my callback object is Void Aug 10 13:19:03 though Aug 10 13:19:14 like im not setting any particular model object Aug 10 13:24:27 Use Response or ResponseBody or something like that instead of Void Aug 10 13:24:39 Not sure which one is right Aug 10 13:32:01 yo Aug 10 13:32:04 question guys Aug 10 13:32:11 where can i find zipalign in windows? Aug 10 13:32:17 i am looking... couldn't find it Aug 10 13:46:49 http://pastebin.com/zcNqYWgi Aug 10 13:47:04 wataf, I love this error message (well all "34" of them!) Aug 10 13:47:16 "Error:you in this endeavor. If you find that you cannot do this, then Aug 10 13:47:16 Error:that is an indication that the path you are on will ultimately Aug 10 13:47:16 Error:lead to pain, suffering, grief, and lamentation." Aug 10 13:48:00 taking over this position has been nothing but 15 months of "pain, suffering, grief, and lamentation" Aug 10 13:48:53 does this type of issue occur from a wrong java version perhaps? Aug 10 13:54:26 is jdk1.8.0_101 ok to use for AS projects?\ Aug 10 13:56:43 azv4, maybe you're using a lib that wasns't designed for android specifically? Aug 10 13:57:03 iprime, How can I know for sure? Aug 10 13:57:19 I just know it worked on the Eclipse version of the app with no warnings or errors... Aug 10 13:57:25 trying to rebuild app into AS 2.1.2 though Aug 10 13:57:26 well, what libs do yo use? Aug 10 13:57:33 simple xml Aug 10 13:57:35 that's it Aug 10 13:57:36 oh Aug 10 13:57:42 yeah that makes sense now Aug 10 13:57:59 I tried the newest simplexml and the one that was from the old project... both same results Aug 10 13:58:13 how do you inlcude it in your proj? Aug 10 13:58:45 under dependencies Aug 10 13:58:45 compile group: 'org.simpleframework', name: 'simple-xml', version: '2.6.2' Aug 10 13:58:47 you probably have to exclude some stuff from the l ib Aug 10 13:59:04 here: http://stackoverflow.com/questions/18084285/using-simplexml-with-android-and-gradle Aug 10 13:59:26 stax & co are the trouble makers Aug 10 14:01:10 any idea with this? http://stackoverflow.com/questions/38856176/tablayout-setupwithviewpager-bug Aug 10 14:01:10 iprime, well I went from 34 errors to 2 Aug 10 14:01:19 cool Aug 10 14:01:21 what else you get? Aug 10 14:01:36 Error:Error converting bytecode to dex: Aug 10 14:01:36 Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; Aug 10 14:01:53 I think I added a file into libs that didn't need to be there Aug 10 14:01:58 cleaning now with it removed Aug 10 14:02:26 I put android-suppport-v4.jar in there because it was in the old project Aug 10 14:02:33 bleh, that didn't change anything by removing it Aug 10 14:02:38 oh Aug 10 14:02:52 i'd say start a new project via the AS 'wizard' Aug 10 14:03:02 don't import the eclipse thing, maybe that 'll help Aug 10 14:03:08 that is what this project is Aug 10 14:03:14 ah Aug 10 14:03:25 you better not use any jars Aug 10 14:03:27 I went through two weeks of hell trying to clean up the imported projects from Eclipse, before starting from scratch Aug 10 14:03:30 you can include the support lib in other ways Aug 10 14:03:42 renewing an old project? Aug 10 14:03:42 how? Aug 10 14:03:45 yes Aug 10 14:04:02 it was targeting 13 with min 4 Aug 10 14:04:11 I think, might have been 8 4 Aug 10 14:04:14 you add it as a gradle dependency Aug 10 14:04:41 it is Aug 10 14:04:49 compile('org.simpleframework:simple-xml:2.6.2'){ Aug 10 14:04:49 exclude module: 'stax' Aug 10 14:04:49 exclude module: 'stax-api' Aug 10 14:04:49 exclude module: 'xpp3' Aug 10 14:04:49 } Aug 10 14:04:55 no i meant hte android support lib Aug 10 14:05:06 ahh, do I need to do that? Aug 10 14:05:21 what's your min sdk? Aug 10 14:05:28 21 now Aug 10 14:05:29 do you really need support v4? Aug 10 14:05:34 there's 7 Aug 10 14:05:38 iprime, Im not sure honestly Aug 10 14:05:41 I can try 7 Aug 10 14:06:04 too many things to consider i guess , you just try lol Aug 10 14:10:43 iprime, should I not have any android-support-vx.jar files in my libs folder then? Aug 10 14:12:13 do we know if there is another nexus device coming out/ Aug 10 14:14:16 azv4, depends on your gradle config Aug 10 14:14:48 if you gave me the project i'd set it up, i don't know what exactly i'd do, but discussing it here is probably not very efficient Aug 10 14:16:07 iprime, can I PM you? Aug 10 14:17:09 if you guys had to display a view to verify a users identity by asking them to enter their password, would you implement this view as a DialogFragment or an Activity? Aug 10 14:17:32 this view will be a full screen view, and not an actual dialog Aug 10 14:28:28 Hi, i dont have the ressource @color/colorPrimary on my app, do you know why ? Aug 10 14:29:31 like diplayed here : https://www.youtube.com/watch?v=nRxpCsbWENs&t=104 Aug 10 14:38:43 make it? Aug 10 14:39:01 make a color xml if its not there and add the resource colorPrimary Aug 10 14:40:33 Is it somehow bad to have two BillingProcessors declared in my app? I handle purchases in two different Activites, depending on what you're buying. So right now I implement and create a BillingProcessor in each of these activites. Is there a better way of doing it? Like a Singleton class or something? Aug 10 15:12:34 are you guys making apps with HTML5 and CSS for Andy? Aug 10 15:14:39 Andy beind Android? Aug 10 15:14:45 no not many people here do that. Aug 10 15:14:56 do you mean are we making native apps or web apps Aug 10 15:14:58 This is more of a channel for native development Aug 10 15:15:13 like just laying a webpage over an empty native base Aug 10 15:23:50 Work LWJGL on the Android ? Aug 10 15:31:38 Anika, probably not Aug 10 15:32:41 has anybody used anko in production? Aug 10 15:37:13 I have a LinearLayout inside a ScrollView, and I want to display a ProgressBar "above" the ScrollView, so it's centered over the layout. How can I achieve this? Aug 10 15:39:15 wrap them in another LL Aug 10 15:39:32 or depending on what you mean with 'over' maybe a RL Aug 10 15:45:25 But Minecraft use LWJGL and Minecraft work on the Android, Aug 10 15:45:38 iprime, ? Aug 10 15:46:22 how do you know? Aug 10 15:46:44 well i'm not sure, i don't know if they support opengl es, maybe they do Aug 10 15:46:56 on java channel said to me that minecraft use this engine Aug 10 15:47:05 if you're gonna build something from scratch you'd better go with say libgdx Aug 10 15:47:36 ok Aug 10 15:47:36 minecraft have nough money to fork lwjgl into some custom impl Aug 10 15:48:08 but its open source Aug 10 15:48:29 what is? Aug 10 15:48:58 BSD license hm they not must open code? Aug 10 15:49:27 They don't necessarily use the same libraries on android and desktop Aug 10 15:49:32 Or iOS Aug 10 15:49:49 Microsfot is MineCraft's owner now Aug 10 15:50:15 microsoft Aug 10 15:50:17 so why shouldn't they use open source stuff, i didn't quite get that Aug 10 15:50:57 if you use GPL then you must to open code Aug 10 15:51:00 oh wait, i thought you're saying they use lwjgl on android for sure Aug 10 15:51:05 why do you use view v though we never use it . Aug 10 15:51:36 then what SimonVT said, they probably don't use lwjgl for android Aug 10 16:10:31 I'm getting an error: `E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services.` when I'm trying to run some adopted code. I have checked and I have google-services.json in the app folder. What are some first steps I can take to debug the issue? Aug 10 16:42:07 I'm getting this weird behavior when creating an Intent to take the user to the recent Activity, when the Activity is created, it calls the onCreate multiple times, resulting in the screen "flashing" in the regular onCreate way. So it seems onCreate is called 3-5 times . Anyone had this before? Aug 10 16:47:30 It can also be seen as restarting I suppose. And I'm not doing anything with the orientation as many have suggested in other threads about this Aug 10 16:48:00 what do you mean by "to take the user to the recent Activity"? Aug 10 16:55:10 Did the Android part of AS disappear with 2.2 Beta? Aug 10 16:55:22 Or am I totally screwing something up? Aug 10 16:55:29 probably totally screwing something up Aug 10 16:55:42 Tools > Android is gone Aug 10 16:56:05 New Configuration does not have an Android option Aug 10 16:56:36 Are they treating it only as a gradle project now? Aug 10 16:58:08 I am trying to play a mp4 video using VideoView, it play in android 6 but shows an error(cant play this video) in android 5 Aug 10 16:58:17 bitkiller, well it's a gallery sort of. So when a user clicks an image it will show up in a new activity. In that new activity, when the user performs a delete function to the server and which returns the user to the "gallery" activity which they where before, where as I said, the activity is "restarted" multiple times. I logged from the onCreate and it's being printed a lot of times when the activity starts, in addition to the Aug 10 16:58:17 screen doing that onCreate animation Aug 10 16:58:18 what could be the reason? Aug 10 16:58:54 Bernzel: Why are you relaunching the Gallery activity, instead of simply returning to the existing one? Aug 10 16:59:27 s73v3r, not sure how to just "return" to it? Don't I have to create an Intent and startActivity(intent) to get to it? Aug 10 16:59:36 not if it’s already on the stack Aug 10 16:59:46 s73v3r, then how would it be done? Aug 10 16:59:55 you can just finish() the current activity, and you’ll go back to the previous one Aug 10 17:00:03 build flavors is gone? Aug 10 17:00:08 well s73v3r, the app rebuilt is seeminly complete, now running in 2.1.2 min19 target23, and it runs Aug 10 17:00:13 or you can call onBackPress() and it’ll do stuff like that for you Aug 10 17:00:20 so I just call finish() when the deleting process is finished and it should take me back to the previous activity? Aug 10 17:00:25 yeah Aug 10 17:00:34 cool, I'll tyr Aug 10 17:00:35 try* Aug 10 17:00:44 in onResume you might want to do something to remove that image if it was deleted Aug 10 17:01:09 s73v3r, good point, let's just see if finish() cures my problem first Aug 10 17:01:56 it seems it did s73v3r , thanks! Never would've guessed that. Aug 10 17:02:20 it is kinda some of the basics for navigating between activities Aug 10 17:02:51 yeah, well I recently started with vanilla Android dev, I've only used 3:rd party libraries before and never had to think about that Aug 10 17:04:20 huh got it to work by disabling the Firebase plugin which was failing, and that was causing the Android Support Plugin to fail Aug 10 17:04:26 thanks Aug 10 17:11:52 Checking to see if I understand themes and styles properly: In style.xml I can define app-wise theme in