**** BEGIN LOGGING AT Mon Jul 25 02:59:58 2016 Jul 25 03:00:02 Leeds: the link is for developers doing the source code who are wanting to do the UI test.. is my understanding correct ? Jul 25 03:00:22 tamarind: you know what channel you're in, right? Jul 25 03:01:10 Leeds: actually i was looking for a way to test/automate the UI of a completed application. Jul 25 03:01:13 Leeds https://www.reddit.com/r/programming/comments/4ud6xk/vim_80_changelog_async_io_jobs_timers_packages/ Jul 25 03:01:22 Is there a way i can make shortcuts to 3rd party applications where i can configure to click button "ok".... and it will go to www.somewebsite.com -> type user name and password -> click login -> clicks on dashboard -> pending items -> "OK" Jul 25 03:01:38 Websites opened via browser, native applications ^ Jul 25 03:01:40 looking like the AAR stuff is really meant for gradle and might be more pain than it's worth otherwise: http://stackoverflow.com/questions/23777423/aar-in-eclipse-ant-project Jul 25 03:02:10 of course all the discussion around that centers on eclipse :( Jul 25 03:02:14 Leeds: but thanks for the reply and your time Jul 25 03:02:46 Leeds linux 4.7 stable is out, android is still using 3.4.0 - do you know whats going on there? why id google so **far** behind Jul 25 03:03:18 tamarind: you can apparently use it to control one app from another... I haven't really worked out how, I ended up using a PC-based testing tool instead Jul 25 03:03:45 g00s: linux went 2->3->4 pretty quickly though Jul 25 03:04:21 Leeds: which pc based testing tool do you use ? Jul 25 03:04:35 anyone have cardboard experience? it looks like their tutorial https://developers.google.com/vr/android/get-started is saying to copy the AARs into your project; is it on maven/jcenter? Jul 25 03:04:45 g00s: 3.10 on N :D Jul 25 03:07:36 tamarind: started with appium, currently using a combination of random python-based testing libraries Jul 25 03:07:56 https://github.com/xiaocong/uiautomator mostly Jul 25 03:10:03 I'm hacking a thing together, and it (mostly) meets my needs Jul 25 03:18:30 anyone ever have issues using Glide in RecyclerView whereby the Images randomly start appearing in additional views? Jul 25 03:20:00 doubt it, glide + RV is pretty common Jul 25 03:20:36 works fine in my other recyclerviews.. but this one is behaving differently Jul 25 03:20:47 it's the only recyclerview where not all the children have images Jul 25 03:21:35 huh, android sdk 24 generates a build.gradle that doesn't work with current gradle plugin Jul 25 03:25:38 hello Jul 25 03:26:16 Im about to reformat/reinstall windows. I've done this before, but never with android stuff. is there anything in particular that I am supposed to back up? Jul 25 03:26:17 man, since the last security update my n7 has been behaving weird. could be coincidence, maybe its the newest GMS Jul 25 03:26:45 kael03 your private keys if you published to Play ... Jul 25 03:27:11 otherwise, you can probably just download everything again - except your projects of course :D Jul 25 03:27:17 i've havent published to the playstore yet Jul 25 03:28:41 does my app generate a private key, even if i haven'y published to the playstore? Jul 25 03:28:48 if so, do i need to back those up? Jul 25 03:28:51 no Jul 25 03:29:00 you get debug keys, but those are disposable Jul 25 03:29:15 you have to make your own private keys Jul 25 03:30:03 awesome. thank you Jul 25 03:30:09 <_genuser_> hey people. what's shaking? Jul 25 03:30:41 <_genuser_> anybody using the wifi debugging? I'm trying to figure out why I end up having to reset the phone, plug in usb, jiggle the thing few times before wifi goes on. Jul 25 03:31:29 each time you reboot your phone, you need to do 'adb tcpip 5555' etc Jul 25 03:31:35 which is lame imho Jul 25 03:32:03 <_genuser_> g00s: I find after having done adb tcpip 5555, (a few hours or so later), it just doesn't respond. Jul 25 03:32:22 meh i've seen that too Jul 25 03:32:23 <_genuser_> then I have to reset the phone, plug in usb cable, just basically do stuff on it. Jul 25 03:32:24 adb sucks Jul 25 03:32:47 <_genuser_> just sort of defeats the purpose. I figure "wifi", no cable needed. Jul 25 03:40:07 Is it possible to upload an image to a server without base64 encoding it? Jul 25 03:46:35 GhostChilli: Sure, depends on what the server expects Jul 25 03:47:14 When I test my app (phonegap) on mac, it uploads a base 64 encoded image and works correctly. The exact same code on android instead sends the file directory. Jul 25 04:20:43 "7-Eleven deploys donut delivery drone" Jul 25 04:30:34 g00s: ah they android based? Jul 25 04:32:00 wyoung they are a little late, should be 'nugget delivery drone' :) Jul 25 04:32:31 * g00s predicts sudden rise of Donut in play store stats Jul 25 04:43:59 hey , I just installed android studio and tried to run the defualt app , it says" gradle failed to build " Jul 25 04:44:10 emulator is running fine though Jul 25 04:44:29 Any idea , what I should do , google is not of much help Jul 25 04:59:23 killer: too less info Jul 25 05:02:35 too little? Jul 25 05:02:48 it may be too little ;) Jul 25 05:02:50 thanks Jul 25 05:03:09 I failed in the language of english.. people :P Jul 25 06:15:43 weee http://stackoverflow.com/documentation/android/topics Jul 25 06:31:09 I'm attempting to write my own progress bar (extending the ProgressBar) class.. does anyone know of a good walk through vid/tutorial? Jul 25 06:35:00 hello in retrofit is it possible to get the parameters passed inside onResponse, I need to get Requested parameters inside onSuccessfull callback Jul 25 06:47:14 basically I need my pathsegments from call.request() object Jul 25 06:54:22 yes solved it... sorry guyz Jul 25 06:54:30 it was so easy :) Jul 25 07:54:43 Hi all, I just got an email saying my app has been suspended for metadata policy. Jul 25 07:54:55 I can't believe they would suspend it for a description and not ask me to change it. Jul 25 07:57:50 dvass, what was the app for? Jul 25 07:58:03 Pokemon Go Jul 25 07:58:10 Is there any way I can speak to Google directly? Jul 25 07:58:12 Via Phone or something Jul 25 07:59:23 I dont think there is. Are you sure that your description was not luring people to think it was some official app? Jul 25 07:59:27 I assume they're checking pretty carefully for knock-off pokemon go apps right now, since it's the obvious target Jul 25 07:59:28 no Jul 25 07:59:32 yea.. Jul 25 07:59:36 we had a full disclaimer at the bottom Jul 25 07:59:39 stating we had nothing to do with it Jul 25 07:59:47 unless you've got millions of users, you're not going to get any phone support Jul 25 07:59:48 Is there any chance they will accept the appeal and let us change it Jul 25 08:00:05 dvass: were you using an icons or images which you might not own? Jul 25 08:00:26 or, say, the trademark "Pokemon"? Jul 25 08:03:45 I'll take that as a yes... Jul 25 08:05:00 https://androiduiux.com/2016/03/23/designprotip-keyline-pushing-app-layout-bound/ Jul 25 08:17:55 I'm trying using appium to press Time picker dialog. It fails, sometimes works only on one. I've tried the same test in UIAutomator and it works. Jul 25 08:18:11 Any idea why I can't press the OK button using appium? Jul 25 08:18:24 driver.find_element_by_android_uiautomator('new UiSelector().resourceId("android:id/button1")').click() Jul 25 08:53:09 hello i have major issue in my application and got stuck I have an API which giving me array of contents like id and title after fetching this I am displaying on my list view Inside onBindViewHolder I am loding content coresponsding to that id..but when we are scrolling content not showing correctly Jul 25 08:53:52 how to solev this issue.. can anyone help me on this Jul 25 09:07:15 Sorry back Jul 25 09:07:20 OK so is there anyway to contact google? Jul 25 09:07:29 We need to urgently resolve this, we have around 4000 concurrently active users Jul 25 09:07:43 Is anyone here able to help us get in touch? Jul 25 09:07:48 We are begging to find any medium of communication Jul 25 09:12:54 dvass: https://support.google.com/googleplay/android-developer/answer/2477981 Jul 25 09:13:16 TheSchaf: I have done that but it says response with 72 hours Jul 25 09:13:29 We are getting around 100k new users per day Jul 25 09:13:39 We need some way to get in touch with them faster :/ Jul 25 09:14:02 who here is with Google? Jul 25 09:14:34 anyone with special knowledge of secret phone numbers? Jul 25 09:14:37 Bueller? Jul 25 09:17:41 Do build variants help minimise the size of your app? Jul 25 09:19:57 kroot: :/ Jul 25 09:19:59 anyone? Jul 25 09:20:08 Surely there is some communication channel for something like this? Jul 25 09:23:45 yes, the appeal requests at the website you found Jul 25 09:24:14 That's not sufficient though, surely. Jul 25 09:24:50 Google deliberately goes out of their way to not have support or care about these issues. Jul 25 09:24:51 Can anyone here briefly explain why build variants are a good idea? I've never used them before Jul 25 09:27:00 markyosullivan, they're a good idea when you need several variants of your app :/ Jul 25 09:27:11 Not sure what you're asking or why do you think you need them right now :) Jul 25 09:28:24 dvass: so you weren't using any trademarks, images, icons, anything which have belonged to someone else, possibly someone who is aggressively protecting themselves right now? Jul 25 09:28:37 Leeds: Not to my knowledge! Jul 25 09:28:37 Mavrik: Why would you need several variants of your app? Like what scenarios? I just feel like I haven't used them and perhaps I should have been Jul 25 09:28:40 We even wrote at the bottom Jul 25 09:28:51 that we are not an offical app and a disclaimer that they are the owners of their own trademarks Jul 25 09:29:01 markyosullivan, for example we have a "demo" and a "full" version of our SDK Jul 25 09:29:12 you don't get to use someone else's trademarks, particularly not commercially, just by saying you don't own them Jul 25 09:29:20 Where the first one is time limited with a watermark and the full one requires a license key. Jul 25 09:29:22 if you had to declaim the trademark use... Jul 25 09:29:56 Leeds, of course, Google's bots will kill off your app even if you have the permission to use a trademark and you add proof to the field they require Jul 25 09:30:24 Mavrik: pretty clear in this case that dvass doesn't have any permission for anything Jul 25 09:30:31 Leeds, *shrug* Jul 25 09:30:45 I kinda stopped caring about defending multibillion company scum :) Jul 25 09:31:10 Mavrik: wait, would the bots target *Public Domain* photos off of Wikipedia too? Jul 25 09:31:14 Leeds: Well I didn't use any trademarks that wasn't fair use Jul 25 09:31:19 You can say 'for so and so' Jul 25 09:31:20 VerbalKint, depends on your luck Jul 25 09:31:26 and as long as you state you're not affiliated should be ok Jul 25 09:31:29 dvass: you didn't mention Pokemon at all? Jul 25 09:31:30 VerbalKint, usually not, but I've seen several bullshit takedowns Jul 25 09:31:36 They use the same broken system like YouTube ContentID Jul 25 09:31:45 Damn it Jul 25 09:32:23 I've seen people have their app banned 3 times even though they sent contracts with the license holders to Google and license holders explicitly sent permission to Google support people asking for it :P Jul 25 09:32:32 Bot just came back and deleted it again :P Jul 25 09:33:03 Mavrik: X_X Jul 25 09:36:15 This is really bad for my app as I intend to use a lot of Public Domain stuff Jul 25 09:37:08 But wouldn't "Logo Quiz" apps also be targeted? They seem quite popular despite their obvious copyright infringement Jul 25 09:37:56 VerbalKint, for now they mostly check descriptions and screenshots Jul 25 09:38:00 So store listings. Jul 25 09:38:08 Leeds: I did Jul 25 09:38:09 Mavrik: oh. Good to know! Jul 25 09:38:10 but that's ok Jul 25 09:38:12 many do Jul 25 09:39:13 many haven't been 'caught' yet... as it were Jul 25 09:40:12 dvass: maybe show us a screenshot of your app description Jul 25 09:41:19 Don't have it Jul 25 09:41:20 it's down Jul 25 09:41:25 Just really need to talk to google Jul 25 09:41:31 I would love to change it to comply with whatever htey need Jul 25 09:41:36 dvass: the only real 'solution' you're going to find is to lawyer up Jul 25 09:41:41 https://play.google.com/intl/en/about/storelisting-promotional/metadata/ Jul 25 09:42:38 make sure to read that Jul 25 09:44:25 so your app was suspended? not rejected or removed? Jul 25 09:44:47 you could try to make a new, compliant version Jul 25 09:47:09 TheSchaf: Yes suspended Jul 25 09:47:14 that isn't very good option either Jul 25 09:47:22 as we were doing well on rankings Jul 25 09:47:24 and with number of users Jul 25 09:47:41 Leeds: doesn't the ToS say that we'll "respect" Google's decision of suspending or rejecting apps? Jul 25 09:47:42 all of that is gone when your app is suspended... Jul 25 09:48:08 "Once your app is suspended, you forfeit the users, statistics, and ratings of the removed application." Jul 25 09:49:40 Yikes Jul 25 09:51:17 dvass: think about this - would your app have thousands of users, and be doing well on rankings, if not for pokemon go? if it did exactly the same thing, but with no references or similarities? Jul 25 09:53:42 Mavrik: What's the difference between the "demo" and "full" version of your app? Jul 25 09:55:40 dvass: what was the name/package of your app? Jul 25 10:10:18 markyosullivan, I kinda explained it in the next sentence :P Jul 25 10:10:36 Oh Jul 25 10:10:38 Sorry! Jul 25 10:10:49 I'm not sure if I need build variants Jul 25 10:11:14 Can anyone explain how to remove log calls? I see it's recommended to do that before you publish it to the store Jul 25 10:11:24 Like there must be a quick way to remove them all :p Jul 25 10:12:20 ctrl f log backspace Jul 25 10:12:47 http://stackoverflow.com/questions/2446248/remove-all-debug-logging-calls-before-publishing-are-there-tools-to-do-this Jul 25 10:14:02 markyosullivan: use proguard to remove the logs Jul 25 10:14:47 Ashiren: I've never used proguard, will they be removed only for the APK or from the project as well? Jul 25 10:22:07 markyosullivan: when you build release version, they will be removed from final apk, as if you didnt add the logs Jul 25 10:22:26 yet you can still use them in debug mode Jul 25 10:24:05 What's the difference between the debug variant and the release variant? Is there none until the APK is produced for being uploaded to the store? Jul 25 10:28:43 Mostly debug flags are set and whatever you configure in gradle. Jul 25 10:28:50 Also debugger can be attached to the process. Jul 25 10:29:00 The debug/release variants are signed with different keys. Jul 25 10:29:05 By default Jul 25 10:47:58 Okay when you debugging your app, you're using the debug variant then? Jul 25 10:55:02 Any googlers here? Jul 25 10:55:19 Yes I use Google Jul 25 10:55:27 :D Jul 25 10:55:32 :P Jul 25 10:57:55 all googlers are busy taking down pokemon go apps :D Jul 25 11:04:53 I should have been more on the ball and released a pokemon app, just too lazy :p Jul 25 11:13:22 API level *24* for freaking CALENDAR functionality?! My opinion of Google is going down dramatically Jul 25 11:14:52 I have an EditText in each row of a RecyclerView, but in the TextWatcher attached to it, onTextChanged is called with an empty string when the EditBox’s row gets recycled. Jul 25 11:14:58 This means my code saves an empty string as the supposed value of the EditBox so it then puts that empty string back when the row is loaded again, effectively wiping the value from the cell. I really don’t understand how to differentiate between the user clearing the cell and the internals doing it. Jul 25 11:15:24 Oh wait, I'm supposed to use the Java API Jul 25 11:17:54 lads, when you are demarshalling list from parcels Jul 25 11:17:57 VerbalKint: Why would you need API level 24? Jul 25 11:18:05 can you know if it was null or empty ? Jul 25 11:18:13 at time of marshalling Jul 25 11:18:24 markyosullivan: for Google's Calendar API. But I'm supposed to use Java's API. Jul 25 11:19:23 That's strange that you have to use API 24 :D Jul 25 11:24:56 Uh oh Jul 25 11:25:02 My app looks different for API 19 Jul 25 11:25:59 suprise surprise Jul 25 11:26:24 I take it API 19 can't use the MaterialDrawerTheme? Jul 25 11:27:33 How can you get more Android versions to show up in the Android Studio previews? Jul 25 12:07:40 which version past API10 had the drastic change to themes? Jul 25 12:08:46 probably 21 Jul 25 12:09:35 thx Ashiren Jul 25 12:10:16 And 10 Jul 25 12:10:19 Er. Jul 25 12:10:22 11 :) Jul 25 12:10:26 And then again 14 Jul 25 12:10:32 i mean this is when they introduced material design Jul 25 12:10:44 well in 11 fragments were introduced :v Jul 25 12:11:15 And holo. Jul 25 12:11:25 Which was then improved in 14 when it switched to phones. Jul 25 12:11:53 is this here the right channel about question related to ndk? Jul 25 12:12:39 eeyup Jul 25 12:12:51 although expect less feedback ~ Jul 25 12:13:05 you mean ndk related? Jul 25 12:16:01 yaakuro, as close as it gets :) Jul 25 12:16:31 :), well then maybe i just ask. Jul 25 12:17:00 what is the "correct" way creating a apk package using command line tools Jul 25 12:17:28 want to automate as much as possible, so no ide Jul 25 12:18:18 ./gradlew assembleRelease ? :) Jul 25 12:18:57 i am totally new to ndk :D sorry Jul 25 12:19:09 It's not an NDK thing. Jul 25 12:19:13 so gradlew is the correct way? Jul 25 12:19:18 ic Jul 25 12:19:26 NDK will build the .so files Jul 25 12:19:29 so to create android package Jul 25 12:19:45 And then Gradle (the build system used in modern apps) will take them + any other Java and Android code and package it into code. Jul 25 12:19:52 (Also sign it if you configure it like that.) Jul 25 12:20:25 so i have to copy the gradlew to my local project folder? Jul 25 12:20:37 You should already have gradle and skeleton of the app created. Jul 25 12:20:41 By Android Studio. Jul 25 12:20:55 i have gradle, so what is gradlew? Jul 25 12:21:00 it is a script Jul 25 12:21:06 It's a wrapper that automatically downloads the proper gradle version and uses it. Jul 25 12:21:18 And applies JVM configuration and whatnot. Jul 25 12:21:29 (Usually you don't use system gradle for Android due to rather hard version dependencies) Jul 25 12:21:41 And empty project should have the gradlew scripts, gradle directory and top-level build.gradle folder. Jul 25 12:22:01 so do i copy gradlew by hand? Jul 25 12:22:11 as i said, i don't like to use ide Jul 25 12:22:11 how did you create your project? Jul 25 12:22:15 me neither :) Jul 25 12:22:29 well atm i didn't create at all Jul 25 12:22:33 but it may be useful to create the project with android studio Jul 25 12:22:35 i have a huge c++ project Jul 25 12:22:40 which i could compile using ndk Jul 25 12:23:31 now i like to create for example using the native-activity example to use those and pack it into a apk Jul 25 12:24:32 the internet is full of infos but everyone is using different things and i am getting more confused :D Jul 25 12:25:19 How does your project do UI? Jul 25 12:26:29 well it is different projects, one is a "cross platform" c++ framework, the other a small game engine i wrote Jul 25 12:26:33 using egl Jul 25 12:28:14 I'd use Android Studio, create and configure the project. It should leave you with a Gradle environment which does not depend on the IDE Jul 25 12:28:29 I have no suggestions if you really do not want to use and IDE Jul 25 12:29:55 the thing is, i want to provide a packing method for android for my small game engine Jul 25 12:30:14 without anoying people opening some ide to package their game using a ide Jul 25 12:30:22 That's ok. Jul 25 12:30:25 "It should leave you with a Gradle environment which does not depend on the IDE" Jul 25 12:30:37 yaakuro, thing is that currently Android doesn't have a command-line way of creating new projects. Jul 25 12:30:48 yaakuro, Android Studio projects however will build only in command-line without an IDE Jul 25 12:30:59 So bootstrap it from AS and then just build it with gradle from commandline. Jul 25 12:31:15 ok, mean i need just gradle Jul 25 12:31:21 .. means ... Jul 25 12:31:27 Gradle and the NDK yes. Jul 25 12:31:36 Actually, Gradle + SDK + NDK to build everything. Jul 25 12:31:45 i have hear a copy of the nvidia gameworks tools Jul 25 12:32:00 so there is the ndk, sdk gradle, ant etc. Jul 25 12:32:11 And AS if you want to save a ton of time Jul 25 12:36:43 Mavrik: pduin raatmarien thx for the help, i will check from the point using gradle to create the android project files :D Jul 25 12:37:13 NP. Good luck! Jul 25 13:13:27 How do you override the button style for API 19? Jul 25 13:16:00 I've written a style for buttons so it'll use my custom button but it doesn't work for API 19 Jul 25 13:16:48 it worked fine for API 23 + 24 Jul 25 13:20:57 Nevermond Jul 25 13:21:00 *nevermind Jul 25 13:21:18 Found out that because I used the android: prefix it stopped it from working Jul 25 13:21:27 android:buttonStyle -> buttonStyle Jul 25 13:23:33 Anybody here? Jul 25 13:25:01 Is there a way to change audio input source from incoming call Jul 25 13:26:55 I mean what Samsung S bike mode will be using for their implementation Jul 25 13:27:06 /join #linuxdistrocommunity Jul 25 13:27:08 oops Jul 25 13:30:05 Does any Android apps change the default color of the snackbar? I'm only asking because my main background color is the exact same color as the snackbar color :| Jul 25 13:30:22 Or maybe I should just stick to Toast messages Jul 25 13:30:53 Is there way to click button in other android app?, I want to macro some action Jul 25 14:05:48 Does anyone know why butterknife needs the apt plugin? Jul 25 14:11:42 Am I doing something wrong if I'm using GregorianCalendar instead of Calendar? Jul 25 14:13:10 Can I have two different models for same request in retrofit? Like, one model for successful responses and different one for errors? Jul 25 14:13:57 So in case i have !isSuccessful(), I could get my error object just from errorBody()? Jul 25 14:20:49 you’re doing something wrong if you aren’t using joda time imo Jul 25 14:22:41 hi Jul 25 14:22:44 hello Jul 25 14:23:24 http://antonioleiva.com/swiperefreshlayout/ i need something like this <--- Jul 25 14:23:24 but when i add it i see a circle pull to refresh Jul 25 14:23:24 really why? Jul 25 14:30:54 asgharpolo: AFAIK the pull to refresh in the support library is circular. Like the gmail app. Jul 25 14:31:13 There may be a flag to have it be a horizontal bar maybe Jul 25 14:31:20 so how can i make rectangle, and what about above link? Jul 25 14:31:43 Don't know. Not sure if the support library has an option for it. If not... just look for another library. Jul 25 14:32:09 eghdk, i searched alot in android offical developer and i did not find any flag Jul 25 14:32:25 eghdk, ok! thanks man! Jul 25 14:32:25 asgharpolo: Then maybe it doesn't exist. Jul 25 14:32:34 Maybe the old version had it but it doesn't anymore. Jul 25 14:32:40 asgharpolo: Try looking here: https://android-arsenal.com/tag/78 Jul 25 14:41:36 asgharpolo: why do you want to use the old holo version of the refresh when the material design version is available? Jul 25 14:42:32 raatmarien, i think that it is more beautiful than new version Jul 25 14:43:41 aha Jul 25 14:43:56 if I were you, I'd just use the new version though for consistency with other apps Jul 25 14:44:29 I read that butterknife null checks your views for you. What does that even mean? Will it not inject the view if it doesn't exist? Jul 25 14:45:49 Holo is so ugly... Jul 25 14:46:26 it was way better than the mess before 3.0 though Jul 25 14:47:50 eghdk, From the docs: Optional Bindings Jul 25 14:47:50 By default, both @Bind and listener bindings are required. An exception will be thrown if the target view cannot be found. Jul 25 14:48:31 Hm. Okay. carcrash do you use butterknife? Jul 25 14:48:42 I do Jul 25 14:48:50 Do you use it in fragments? Jul 25 14:48:52 not extensively though Jul 25 14:48:57 no Jul 25 14:49:35 Hm. Yeah. I'm confused why you need to unbind views in fragments... is that something I should be doing even if I'm not using butterknife? Jul 25 14:50:37 Yes Jul 25 14:51:44 i have three buttons that i set disabled/enabled state in onCreate these states change when i press the buttons but when i rotate display it resets to starting state, what's the simplest solution to this? Jul 25 14:52:10 is it wrong to disable buttons in oncreate? Jul 25 14:53:34 When you rotate your phone, the activity is recreated, so onCreate is called again. You have to implement onSaveInstanceState and onRestoreInstanceState Jul 25 14:53:57 So when your app is rotated, onSaveInstanceState is called, then the activity goes through the destroy cycle Jul 25 14:54:58 Then it goes through the create cycle and onRestoreInstanceState is called, which should be where you restore your button state to what it was before the activity was recreated Jul 25 14:55:34 Fragments are (kind of) the same thing.; Jul 25 14:56:05 Is there an easy way to set the color of progressBar's in Android 4.x without having to do it programmatically? It seems like it's the only solution Jul 25 14:57:02 thought there would be some from of automatic state restore which i broke because i did things wrong :P Jul 25 14:57:17 onSaveInstanceState and onRestoreInstanceState are only required if you need to save state beyond what android already provides - yes. Jul 25 14:57:33 Jidoor, why not set the state in XML and let android handle the rest Jul 25 14:57:38 ill try that Jul 25 14:57:48 It wouldn't work I guess, since onCreate is called again Jul 25 14:58:19 There is where setContentView is called Jul 25 14:58:20 XML would be reset Jul 25 14:58:50 markyosullivan I guess using colorPrimary in styles Jul 25 15:00:59 yea those buttons still reset when i set them in xml instead of in onCreate Jul 25 15:01:14 casadogg: It uses colorAccent in 5.x + Jul 25 15:01:18 shouldnt android automatically save button state? Jul 25 15:01:43 Does it matter what anyone thinks it should do? Jul 25 15:01:48 JakeWharton: Really? I should null out my views in a fragment onDestroyView? Jul 25 15:02:20 Why have I been using fragments since forever and not known that =( Jul 25 15:06:37 well i added those onSave and onRestore functions now it works Jul 25 15:13:32 oh nice the support-sqlite ticket got assigned , so at least its semi-acknowledged ;) Jul 25 15:45:38 hi there Jul 25 15:45:43 As per Jidoor's question earlier, how can I determine what will be saved by the android framework for me on a rotation or other recreation event? I had thought that enabled/disabled state of a button was one of them (I was wrong). Seemingly arbitrarily TextView changes are not preserved either, but EditText changes are? Jul 25 15:48:06 truckcrash: Yep, just have to know. There might be some articles out there Jul 25 15:49:17 could someone coock an modified kernel? Jul 25 15:49:32 huh. interesting there isn't a more uniform rhyme or reason to it. Thanks yiati Jul 25 15:50:03 truckcrash: I'm sure there's underlying reasons for each of them Jul 25 15:50:40 got another problem with that rotation too, i'm binding a gps service that stores state this state persists when the activity goes in background but it resets when i rotate activity not sure why this would effect the service Jul 25 15:51:57 Do AlertManagers show up as services? Jul 25 15:52:57 Nevermind. Jul 25 15:53:13 Jesus, I always do this. First ask something and THEN I check on google. Jul 25 15:53:57 Reiny: cock a kernel? Jul 25 15:54:09 Reiny wrong channel, see topic ;) Jul 25 15:54:24 yiati, It would be nice to know what those reasons are. I dont even know where I'd look though Jul 25 15:54:52 im on adroid-dev or not? where to go else with that? Jul 25 15:56:39 I want to know how you cock a kernal Jul 25 15:56:51 but not here, right... not anywhere on IRC, really Jul 25 15:57:14 true story leeds Jul 25 16:00:21 truckcrash: You can always quickly test it yourself, and you could also read the source Jul 25 16:00:51 truckcrash: But there also is probably 20+ articles on exactly this if you search for the right thing Jul 25 16:07:17 has anyone else used the new project structure dialog to automatically update dependency versions? I click update, but it doesn't actually do anything :\ Jul 25 16:09:08 joshkovach: I don't/can't use any dependency stuff in the project structure dialog, because I'm using the ext field for my dependencies, and it can't find them Jul 25 16:09:37 Gradle intelligence in AS is not the best :( Jul 25 16:09:51 yeah, had that problem, moved away from using that technique. still no good. looks like they're gonna fix it in 2.3 :( https://code.google.com/p/android/issues/detail?id=211493&q=project%20structure%20update&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened Jul 25 16:12:23 joshkovach: Nice, yeah I just kept using ext field. So much better to use compile dep.whatever imo that I don't mind not being able to use AS project structure gui Jul 25 16:12:38 it's so annoying that windows 10 doesn't have a2dp sink support... Jul 25 16:12:50 that was one of the features that made windows worthwhile to use over osx for me :( Jul 25 16:46:00 Finally running proguard to build a release apk Jul 25 16:46:24 Is there any thing I should add or is it fine running proguard-android-optimise.txt? Jul 25 16:52:29 I am trying to run a simple Snackbar test but keep running into errors Jul 25 17:20:32 raoul11: what's news Jul 25 17:36:57 Anyone know how to make my app bar actually fit the top of the screen rather than sort of floating in the middle of my screen? http://imgur.com/a/b7XvF Jul 25 17:47:13 set the margins and padding on it correctly Jul 25 17:47:18 or use a layout that puts it where you want it Jul 25 18:27:39 Hello, I'm very new to android studio and making a simple puzzle app. I have a tabbed Activity, how would I manage many different tabs (e.g 50+) They will all have the same objects (textview, editText, imageView, button etc), just different values. Jul 25 18:32:33 you’d use something like a viewpager Jul 25 18:32:58 although i’d suggest rethinking your UI, as 50+ tabs is going to be a pain Jul 25 18:36:38 Ok. At the moment I'm storing the puzzle questions/answers in strings.xml. Is that a good idea? Jul 25 18:38:47 I think it’s fine, although it does make it more difficult to add more questions later Jul 25 18:39:57 ideally you’d probably want to pull that list from a webserver, so you can change and add more questions without having to update the app itself Jul 25 18:45:25 Yeah I was thinking of implementing that later when I'm a bit more experienced Jul 25 18:45:56 And also, how would I access a string via an int? e.g string number 5 Jul 25 18:46:17 you would have to put them into a string array Jul 25 18:46:33 load the array, and then access it by index Jul 25 18:46:48 day 2, still can't compile. Project seems shot Jul 25 18:47:39 ah ok thanks. I'll have a look at that, Thanks for the help :D Jul 25 19:05:43 Is the Retrofit library built using reflection or annotation processing? Jul 25 19:05:55 Didn't look at it's code but it looks like reflection Jul 25 19:11:15 Why do you think it uses reflection? Jul 25 19:16:16 Hi all, I’m having problems refreshing my UI. After the user clicks the sellButton my textview does not get set to the right quantity. but i can see the quantity being updated correctly in the database table. so when i exit my app and go back i can see the textview is updated. how do i fix this so that I dont have to go out of the app and go back in again? here is my code: http://pastebin.com/XdKft15H Jul 25 19:17:11 Try calling invalidate() on the textview Jul 25 19:17:23 https://developer.android.com/reference/android/view/View.html#invalidate() Jul 25 19:19:42 thanks I called invalidate like this but it did not work: if (qty > 0) { qty = qty - 1; } controller.updateRow(rowId, qty); textQty.invalidate(); textQty.setText(String.valueOf(qty)); Jul 25 19:20:33 do I call it inside the setOnclickListenener? Jul 25 19:20:38 yes Jul 25 19:21:11 is this textview inside a listview? Jul 25 19:21:27 Invalidate after you set the text Jul 25 19:21:48 well, call bindView again Jul 25 19:22:04 how do you expect the textview to know what the new value is? Jul 25 19:22:54 ok thanks let me try that Jul 25 19:24:42 my onclick looks like this now but it still did not work: Jul 25 19:24:43 public void onClick(View view) { DatabaseController controller = new DatabaseController(view.getContext()); int qntity = controller.getRow(rowId); if (qntity > 0) { qntity = qntity - 1; } controller.updateRow(rowId, qntity); textqntity.setText(String.valueOf(qntity)); textQty.invalidate(); Jul 25 19:25:31 why aren’t you using the cursor from up above? Jul 25 19:26:12 how do you mean by using cursor? Jul 25 19:26:44 you mean change this to cursor "qntity" Jul 25 19:26:50 your bind view is getting the initial quantity value from the cursor. why isn’t the onClick doing it? Jul 25 19:29:10 thanks im using cursor in onCLick now like this but its still not working: public void onClick(View view) { DatabaseController controller = new DatabaseController(view.getContext()); int qty = controller.getRow(rowId); if (qty > 0) { qty = qty - 1; } controller.updateRow(rowId, qty); quantity[0] = curso Jul 25 19:30:56 DroidAce, dont post code in the chat. Please use a pastebin site such as pastie.org, hastebin.com or one of the many others available Jul 25 19:32:27 ok here is my new code : http://pastebin.com/4F92ZWQM Jul 25 19:33:53 hm why is there no github api for android.. Jul 25 19:33:58 only one there is deprecated Jul 25 19:34:34 they have a rest api Jul 25 19:47:57 do any of you develop on linux? i hear installing genymotion or any other android emulator can screw with existing vbox installations Jul 25 19:48:05 just wondering what all y'all's experiences were Jul 25 19:49:06 i has no problems. it just added new virtual machine in virtualbox machine list Jul 25 19:49:57 is that performant? is there a reason to use genymotion over doing that? Jul 25 19:56:47 i used genymotion before they muchly improved the android emulator Jul 25 19:56:59 which was very... meh Jul 25 19:57:05 nowadays there shouldnt be much difference Jul 25 19:57:32 ah, okay. maybe i'll give it a try Jul 25 19:57:52 I still havent tried to improved emulator :/ I just got so used to testing on real devices for every change Jul 25 19:58:09 i use real device anyway Jul 25 19:58:43 The new emulator is very usable Jul 25 20:05:54 ugh, can't use same ssh key across diff github accounts Jul 25 20:08:21 wow that's still a thing Jul 25 20:45:36 Does anyone know how I would fix an editView textbox being hidden behind the onscreen keyboard when it opens? Jul 25 20:46:23 DaedalusK: Perhaps move the edittext upwards when the onscreen keyboard opens? Jul 25 20:47:41 Use setOnFocusChangeListener and in it detect the screen position of the edittext in question, and move it if necessary Jul 25 20:49:01 aah ok, I'll try do that, thanks! Jul 25 21:06:11 is anyone here familiar with transferring data through sound? if so, can you help me understand how it works? Jul 25 21:07:15 You mean like modems worked? Jul 25 21:08:01 http://stackoverflow.com/questions/4976213/data-to-audio-and-back-modulation-demodulation-with-source-code ? Jul 25 21:13:32 Mavrik: yes, shit. i wish i understood modems better. thanks! :D Jul 25 21:18:10 Mavrik: wouldnt the surrounding noise be an issue for such communication? Jul 25 21:19:30 that’s why you use ultrasonic, and filter out everything below your range Jul 25 21:19:41 i believe it’s what the chromecast does Jul 25 21:19:48 smarthphones can into ultrasound? Jul 25 21:20:30 maybe not ultrasound, but it’s a fairly high frequency Jul 25 21:20:55 https://support.google.com/chromecast/answer/6109297?hl=en Jul 25 21:20:59 i guess it is ultrasound Jul 25 21:21:15 Ashiren: yes, i believe they can Jul 25 21:21:41 ive used apps that can generate high-frequency sounds to disrupt my boring college classes :P Jul 25 21:21:59 and they could go beyound 20k hz iirc Jul 25 21:22:11 s73v3r: wouldnt it be insecure? Jul 25 21:22:35 i don’t think so, if you’re only using it for pairing Jul 25 21:22:41 you can always encrypt it, I guess Jul 25 21:22:51 hm, yes, that makes sense Jul 25 21:23:10 this is very interesting! Jul 25 21:39:41 Hello everyone. I am trying to download Android Studio from this link, yet it re-directs me to "nothingness" https://developer.android.com/sdk/index.html Jul 25 21:39:45 Am I doing something wrong? Jul 25 21:42:55 huh Jul 25 21:43:17 what os, what browser Jul 25 21:49:47 ugh, how do I make git pass ssh options only for 1 repo... Jul 25 21:54:23 I think this is why I usually use https auth with github Jul 25 21:54:57 retarded question Jul 25 21:55:19 so im thinking about modding an apk file Jul 25 21:55:45 is there a way i can decompile for the .java files and then recompile or should i learn smali? Jul 25 21:56:45 1). Don’t talk like that here, 2) modding APK files is generally a bad idea Jul 25 21:57:18 sorry Jul 25 21:57:39 is it even possible to get the .java file and then recompile with the edits i made? Jul 25 21:58:35 it’s possible to decompile. but it’s generally a bad idea considering that if it’s your APK, you probably have access to the source and don’t need to, and if it’s not yours, you really shouldn’t be doing it to start with Jul 25 21:59:10 alright Jul 25 21:59:28 How scared should I be of patent trolls when posting apps on the google play store Jul 25 21:59:36 moralfags Jul 25 21:59:58 BasedGob: Not very Jul 25 22:00:38 I've released a few apps before but in the future I plan on actually trying to market my app and hopefully get to like 10k downloads Jul 25 22:00:52 So I'm a bit worried about getting the attention of patent trolls Jul 25 22:01:38 i wouldn't Jul 25 22:01:55 unless you’re blatantly ripping someone else off Jul 25 22:02:27 I'm not ripping anyone off, that would be an actual patent law suit and not just a troll :) Jul 25 23:29:46 Good morning all. Jul 25 23:31:23 I've got a custom view widget... and I want to be able to set values in the XML is there a way to get values inside the class Jul 25 23:51:49 re-ask.. is there a way to get the xml that "creates" a view from within the view class/object Jul 25 23:52:26 yes, you can Jul 25 23:52:38 or rather, at least the set of attributes Jul 25 23:53:10 https://developer.android.com/training/custom-views/create-view.html#customattr Jul 25 23:53:13 cool Jul 25 23:53:36 Yeah. that has a style file. Jul 25 23:53:47 Not what I'm looking for. Jul 25 23:54:23 I want to set the text that will show up in the view.. I'm overriding the ondraw. Jul 25 23:54:36 then create a custom attribute for that text Jul 25 23:55:14 in the main layout xml? Jul 25 23:55:21 no, in the style file Jul 25 23:55:28 err, in the attrs file Jul 25 23:55:29 but its data.. not style. Jul 25 23:55:33 doesn’t matter Jul 25 23:55:43 it’s an XML attribute of a custom view Jul 25 23:55:49 it gets defined in attr.xml Jul 25 23:56:07 But that means that I'll have to have dozens of these files. Jul 25 23:56:15 no, you have one attr.xml Jul 25 23:56:19 or dozens of nodes in the file. Jul 25 23:56:24 yup Jul 25 23:56:50 I was hoping the could live in the place where I set the text for standard elements. Jul 25 23:57:04 that would be in a system attr.xml file. you don’t have that Jul 25 23:58:03 you can try to look at the source of the TextView, and see how they fetch the text that gets passed through xml Jul 25 23:58:05 Is there a way to read the values from the layout XML.. not an attr. Jul 25 23:58:07 that might help you Jul 25 23:58:13 that is an attr Jul 25 23:58:43 when you go that’s an attr Jul 25 23:59:38 in my layout file I've got this. Jul 25 23:59:48 yes. that is what I meant Jul 25 23:59:51 and that is an attr Jul 26 00:21:28 lol, nintendo stocks plummet after investors realize they didn't write the game Jul 26 00:21:43 guess investors are dumber than i thought Jul 26 00:22:15 What do you mean g00s Jul 26 00:23:21 pokemon go was created by Niantic, not nintendo Jul 26 00:23:28 Nintendo shares are still much higher than they were pre Pokemon GO release Jul 26 00:23:28 Right, knew that part Jul 26 00:23:29 To run dex in process, the Gradle daemon needs a larger heap. Jul 26 00:23:30 It currently has approximately 4551 MB. Jul 26 00:23:30 For faster builds, increase the maximum heap size for the Gradle daemon to more than 5120 MB. Jul 26 00:23:30 lol Jul 26 00:23:55 So why are investors dumb g00s Jul 26 00:24:24 pfn thats weird i have dex in process Jul 26 00:24:50 with much less; org.gradle.jvmargs=-Xmx2048m Jul 26 00:24:57 * pfn shrugs Jul 26 00:25:02 hope they didn't change it again for 2.2 plugin or something Jul 26 00:25:24 this is with 2.1.0 Jul 26 00:25:32 yeah thats what i'm using Jul 26 00:26:48 need to fix sbt-android-gradle to be able to import this project... Jul 26 00:26:56 running gradle ftl Jul 26 00:27:45 I finally picked up a firetv Jul 26 00:27:49 it's pretty nice Jul 26 00:29:56 So I have two android studio projects in one private repo. Maybe this seems unusual but the two apps are closely tied to each other. I want to reuse some UI code between the two apps. What should be my best approach? Jul 26 00:30:11 I have a couple of options: 1. Move both apps into one project Jul 26 00:30:44 2. Add a third project with a library module. Though I'm not sure how to then use this module from either app Jul 26 00:31:39 also for 1: I'm not sure what the cons of this option is Jul 26 00:32:37 is it possible to synthesize microphone input? i want to transmit an audio clip in a phone call Jul 26 00:53:38 is it just me or are fonts in AS blury? Jul 26 00:55:31 njcomsec what platform ? Jul 26 00:57:42 windows 10 Jul 26 00:57:57 only lucidia sans typewriter size 12 looks sharp Jul 26 00:59:15 ok, asked b/c os x + java 8 had some "interesting" issues Jul 26 01:00:30 could someone look at this... firebase rules question Jul 26 01:00:32 http://stackoverflow.com/questions/38578618/writing-to-google-firebase-from-android-app-not-working Jul 26 01:04:17 need help with Gradle + Google Play using Eclipse & Libgdx Jul 26 01:31:29 i have a dark theme, but when the vurtual keyboard comes up its jarring with a white background. i don't suppose there is any way to fix this ... Jul 26 01:32:17 googling virtual keyboard just brings up apps for me Jul 26 01:32:27 virtual keyboard + android + theme Jul 26 01:33:53 I always love when the official docs are wrong Jul 26 01:36:58 get a themable keyboard Jul 26 01:37:03 ezpz Jul 26 01:53:04 need help with Gradle + Google Play using Eclipse & Libgdx Jul 26 01:53:44 so, if you want Android to show you a picker for ringtones, you use RingtoneManager.ACTION_RINGTONE_PICKER intent. You can tell it what kinds you want, like TYPE_ALARM. But if you use RingtoneManager.getCursor(), i don't see a field which lets you do the same (filter by type) Jul 26 01:54:11 and the returned cursor, doesn't seem to have a field either ... what gives ? Jul 26 01:59:42 hm, looks like i need to create a Ringtone object for each row, and then getAudioAttributes() maybe Jul 26 02:00:53 he whispers to himself Jul 26 02:00:57 ;p Jul 26 02:07:56 hello Jul 26 02:07:58 in json Jul 26 02:08:03 if there is an element like this Jul 26 02:08:21 "vars" : [1,2,3] Jul 26 02:08:31 how do i get each element of the [1,2,3] Jul 26 02:08:40 it's not a jsonarray or a string Jul 26 02:08:48 well it could be a string Jul 26 02:10:27 haven't used jsons in a long time Jul 26 02:10:53 Its a jsonarray ne1 Jul 26 02:11:17 You can go from string to JsonArray Jul 26 02:11:21 Then parse that Jul 26 02:11:25 ok how do u get position Jul 26 02:11:27 in a for loop Jul 26 02:11:56 of each element Jul 26 02:12:08 o getInt Jul 26 02:12:10 thx Jul 26 02:21:10 need help with Gradle + Google Play using Eclipse & Libgdx Jul 26 02:57:58 JavaLava: so a) you need to actually ask a question... and b) not many Eclipse users around anymore, I think **** ENDING LOGGING AT Tue Jul 26 02:59:58 2016