**** BEGIN LOGGING AT Tue Jan 17 03:00:03 2017 Jan 17 03:07:51 Disregard, fixed it by writing with a BufferedWriter rather than a DataOutputStream like so: BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(dos, "UTF-8")); writer.write(body); Jan 17 03:25:51 YouCallItFar: what bug? Jan 17 03:26:43 (if there hasn't been one filed, please file one; it won't get fixed if we don't know about it: https://github.com/android-ndk/ndk/issues/new) Jan 17 04:04:54 While flashing the latest factory image with flash-all.sh it did the 'sending 'bootloader'' and writing, then rebooting into and the nexus 5x just went dark and sits there. Let it sit for 30 minutes or tried various ways to power up. Does nothing with power, volume+power in either direction, but linux sees the qualcomm USB modem when it attaches but adb and fastboot see nothing and the devices shows Jan 17 04:05:00 no signs of anything. Any suggestions on a way to, it would seem, reflash the bootloader at this stage? Jan 17 04:07:30 bankai_ has twodogs Jan 17 04:07:47 * g00s has 0 dogs :( Jan 17 04:08:34 heh Jan 17 04:09:56 Jake no longer with us? Jan 17 04:13:25 I just downloaded hello-jni from ndk samples Jan 17 04:13:34 I'm unable to find Android.mk and Application.mk Jan 17 04:13:49 I can't find the jni directory, in fact. Jan 17 04:14:00 Has it been moved elsewhere, to some other name? Jan 17 04:16:07 capella nope Jan 17 04:21:31 sorry g00s, was hoping you'd just had to give him away Jan 17 04:21:50 capella almost made it to 15, almost Jan 17 04:22:25 yah, the ex's is pushing it too :-/ Jan 17 04:27:30 but old dogs are the best dogs ;) Jan 17 05:04:43 dudes? have a stupid question. have odroid c2 with android onboard. i can connect this to my pc via usb and use "adb install". can i get the same via ssh? Jan 17 05:16:30 hey guys, what's your CI setups? Jan 17 05:19:36 how do you guys store images users use in your app? Jan 17 05:20:05 boomber: you want to use the `assets` folder Jan 17 05:20:13 oh wait Jan 17 05:20:18 I meant like they can click a button to upload an image Jan 17 05:20:25 from gallery/photos Jan 17 05:20:39 and these are associated with a model Jan 17 05:21:08 right now I'm compressing the bitmap and storing it as a BLOB in a db, but that seems really inefficient Jan 17 05:21:17 not to mention the compression takes significant processor time Jan 17 05:21:27 few things there 1) permissions to view/capture photos (duh) 2) intent to select photo 3) background task/service to upload photo bits Jan 17 05:21:36 no! Jan 17 05:21:49 why don't you store the URI of the image? Jan 17 05:22:02 because I didn't think of it :P Jan 17 05:22:06 ah :) Jan 17 05:22:07 but lets say Jan 17 05:22:12 user uploads image from their gallery Jan 17 05:22:20 then deletes that image from gallery Jan 17 05:22:31 the app no longer has the image, correct? Jan 17 05:23:08 yup Jan 17 05:23:23 I suppose thats fine behavior for now Jan 17 05:23:39 once I get firebase set up I could probably upload the image there, and if the URI is missing download the image Jan 17 05:24:04 sure ... Jan 17 05:24:32 thanks for the help, I'll go with the URI option :D Jan 17 05:25:19 good luck boomber! Jan 17 05:25:44 btw, you can use Retrofit to upload files Jan 17 05:26:02 yeah, im planning too :) have a ways to go before integrating with a service though Jan 17 05:26:23 you're on the right track! Jan 17 05:30:32 is there an easy way to upload an image to gallery on an emulator Jan 17 05:30:40 havent figured out a way to do that yet, been using a real device for now Jan 17 05:31:07 nah dude, I stay away from the emulator :/ Jan 17 05:31:54 haha, dont blame you Jan 17 05:37:22 I have an older Nexus 5 for testing w/ ICS Jan 17 05:37:33 if my code works on that, it's ready to ship! Jan 17 05:39:54 great nick then shipit ! Jan 17 05:40:04 hehe thanks g00s :) Jan 17 05:40:19 how've you been man? Jan 17 05:43:13 I noticed something in Android Universal Image Loader's default sample Jan 17 05:43:47 they forgot to use Picasso :p Jan 17 05:43:51 They create a View for no reason Jan 17 05:44:33 https://github.com/nostra13/Android-Universal-Image-Loader/blob/master/sample/src/main/java/com/nostra13/universalimageloader/sample/fragment/ImageGridFragment.java#L99 Jan 17 05:45:11 So everything you load gets the convertView passed in plus needs the creation of a new View Jan 17 05:45:25 They stopped replying to issues like a year ago though... Jan 17 05:45:25 no Ologn, look at it again Jan 17 05:45:29 it's just a reference Jan 17 05:46:04 when convertView is null, it inflates a new view, it returns a valid view reference in both cases Jan 17 05:48:18 oh yaa Jan 17 05:51:05 It still looks wasteful, but at least it's not making a whole new View... Jan 17 05:51:27 shipit doing ok, and you ? Jan 17 05:51:54 g00s: likewise -- bidding on projects, fun stuff. Jan 17 05:52:00 Ologn i think you are one of the few people using that thing (AUIL) Jan 17 05:52:09 seems the defacto now is glide Jan 17 05:52:16 yes Jan 17 05:55:15 I have been going on interviews Jan 17 05:55:39 They keep asking about threading so I've been reading up on Executors etc. Jan 17 05:55:42 Ologn how're they going? Jan 17 05:56:34 Ologn lol noooo Jan 17 05:57:28 They're going ok...I just have to read up on stuff I've been punting on Jan 17 05:57:48 spend some time on hackerrank.com Jan 17 05:58:05 I've been asked what a 9-patch drawable is twice...I finally found an explanation on the net which makes sense to me Jan 17 05:58:19 oh man i hate those things Jan 17 05:58:28 f'in- Jan 17 05:58:31 f'in-a Jan 17 05:58:36 the 9-pathch editor was so ghetto Jan 17 05:58:38 shipit, I'll check it out Jan 17 05:59:08 anyhow, these days seems kinda obsolete for most things, since we use vectors Jan 17 05:59:44 yeah, FTW! Jan 17 06:00:06 Most of the docs on services say use jobscheduler instead but there's not a lot of docs on that...I'll look into it Jan 17 06:00:16 executors, 9-patch - sounds like interview out of 2010 Jan 17 06:00:22 y ... Jan 17 06:00:45 Ologn oh man, there lies great fragmentation Jan 17 06:01:53 Ologn here is Joanne's thingy on medium https://medium.com/google-developers/scheduling-jobs-like-a-pro-with-jobscheduler-286ef8510129 Jan 17 06:02:20 man, i wonder whats going to happen to all the android docs of medium folds, lol Jan 17 06:02:30 I had an interesting talk with someone in San Francisco today who contacted me, not vice versa...it sounds really cool, the only downside is it is in SF...although long term maybe that's a plus Jan 17 06:02:32 they might have to - uh - put them on the official website :D Jan 17 06:02:47 g00s - contact Jason Scott! Jan 17 06:02:58 who is that? Jan 17 06:02:59 Jason organizes a lot of rescues... Jan 17 06:03:05 textfiles.com, archive.org... Jan 17 06:03:12 oh Jan 17 06:03:17 I'm sure he's on the case already Jan 17 06:03:40 I think he tried to rescue geocities pages etc. Jan 17 06:03:56 well since these are from google engineers, they should know better Jan 17 06:04:22 dunno if updating d.android.com is just to much pain, or what Jan 17 06:04:58 I've been watching a lot of these Google Developer Youtube videos recently..."Perf matters" etc. Jan 17 06:06:32 The thing I learned over many years of being on both sides of an interview table... Jan 17 06:07:30 ...is tech interviews follow a normal distribution of a Gaussian function in terms of skill... Jan 17 06:08:06 ...one of six is one standard deviation below the mean, one of six is one standard above (or more), and most people, the other four, are average... Jan 17 06:09:04 ...so unless you have an in, someone at the company who vouches for you, being average and competent is not enough...you have to be that one standard above to distinguish yourself from the other six... Jan 17 06:09:31 ...which means you should usually answer most questions fully and competently, because thats what those one in six do. Jan 17 06:09:51 ...and if you're not doing that, you're not prepared Jan 17 06:09:58 you also might need some botox after 35 for SF :) Jan 17 06:10:35 hehe g00s Jan 17 06:11:04 I told him I would travel, but I wouldn't move until a few months in when we both were happy Jan 17 06:11:34 Actually me thinking of moving to San Francisco is a negative indicator for tech stocks and investment Jan 17 06:12:06 Because the last time I seriously was considering that was December 1999 to February 2000 Jan 17 06:13:07 One reason I didn't was it seemed like all everyone did all day was code and I wanted to hang out Jan 17 06:13:25 But nowadays I'd rather just code and try to make some money Jan 17 06:13:27 you man cocaine fueled sex parties ? Jan 17 06:13:43 dang, I always miss the good stuff! Jan 17 06:14:03 If there's a place where you can both code and hang, it's SF Jan 17 06:14:08 yeah man, can't let the guys on wall street have all the fun Jan 17 06:14:21 g00s - you mean like this? http://abcnews.go.com/US/prostitute-injected-tech-exec-heroin-left-die-yacht/story?id=24483851 Jan 17 06:14:46 oh i remember that without clicking on it Jan 17 06:15:00 wasn't that a googler ? Jan 17 06:15:03 yaa Jan 17 06:15:30 google does really have best food n hookers Jan 17 06:16:03 Ologn isn't that whole thing getting ready to slide into the ocean ? Jan 17 06:16:27 Well I don't have an offer yet...but what they're doing sounds cool Jan 17 06:18:53 One thing tying me to NYC is I have two more classes to get a BACS. With five additional classes that would be a BSCS. Jan 17 06:20:22 Two of those additional five would be CS classes which would be easy and fun Jan 17 06:21:33 Ologn you might be able to negotiate better pay if you get those Jan 17 06:22:12 g00s, probably. More importantly it would be easier to work in the Fortune 500 or what have you if needed. Jan 17 06:22:45 Although I've worked at two F1000 companies without a Bachelors...although at Morgan Stanley it was as a consultant Jan 17 06:23:20 Ologn otoh - and just my little prediction, is that we'll return to the bush-era economics with trump, and we'll see another recession - and thats a good time to go back to school. work now when things are still ok :) Jan 17 06:24:00 Yes I want to save some money up Jan 17 06:24:01 every time repubs have house, senate, and prez things go *really badly* (see past history) Jan 17 06:25:13 I watch the news and they say how the country is divided, partisan, this or that...the country is not divided at all Jan 17 06:25:20 The civil war was divided Jan 17 06:25:37 i'd say its polarized Jan 17 06:25:42 Germany from WWI to the enabling act was divided Jan 17 06:26:33 noam chomsky sees some interesting parallels between 1938 germany and 2017 US Jan 17 06:27:01 he was alive back then ! Jan 17 06:27:06 dude is getting old Jan 17 06:27:07 In 1956 the largest political party in France was the communist party...the communists won 1/3 of the vote in Italy in 1976, with Gladio stuff going on, that's divided Jan 17 06:27:23 I saw Chomsky speak a few years ago near Columbia U. Jan 17 06:27:53 i thought the largest political party in italy was the mob Jan 17 06:28:13 I sent him an e-mail once about behavioral modernity. I assumed he thought there was a big change 50,000 years ago, but he wrote me back and said he thought the brain changes were more gradual Jan 17 06:28:13 well maybe things are a little better ;) Jan 17 06:28:33 Ologn cool you heard back from him ! Jan 17 06:29:13 One thing I've noticed over the years Jan 17 06:29:47 Is very prominent smart people will usually get back to you if you have something semi-intelligent to say Jan 17 06:30:16 Like I ported probably two dozen apps to Android Jan 17 06:30:43 The only person who got back to me in a real way was Jamie from XScreenSaver...who is also busy running two nightclubs and other things Jan 17 06:31:09 So the person you'd think would be the one too busy to engage was the one who did engage Jan 17 06:34:22 Ologn does the company already have some remote workers? maybe you can be there for a while, and then once trust is earned they'll let you go back to nyc - then you can finish the classes Jan 17 06:34:45 i think a lot of remotes start off as on-site, as long as you're doing well Jan 17 06:35:07 g00s, yes they already have remote workers...we'll see. The main distinguishing thing is they called me, not vice versa. And they like what I've been doing. Jan 17 06:35:07 but if the co has no remotes they probably don't have the tooling, and its a hassle Jan 17 06:35:24 cool Jan 17 06:36:53 I went to Verizon today to try to see Pixel and Daydream but their Pixel charge had run out Jan 17 06:41:23 aren't the pixels having some hw problems ? Jan 17 06:42:33 oh the cameras have some optical distortions Jan 17 06:42:39 light bleeding Jan 17 06:42:46 audio too Jan 17 06:42:56 'lens flair', technically Jan 17 06:43:24 I've seen the rift and the vive, so now I want to see this Jan 17 06:43:35 i dunno what the hell i'm going to do; i'm not paying $600 for a device that will be supported for 18 mos or so Jan 17 06:43:44 and no more nexus ... Jan 17 06:44:21 1+ uber alles Jan 17 06:44:45 +california Jan 17 06:51:08 Ologn see this about nyc? http://www.cnbc.com/2017/01/09/new-york-city-wants-more-information-on-where-youre-going.html Jan 17 06:51:49 "At each crossing, and at structurally sensitive points on bridges and tunnels, advanced cameras and sensors will be installed to read license plates and test emerging facial recognition software and equipment." Jan 17 06:52:41 I need to download the apk a previous dev uploaded on the play store, i can't find an option to do that, help? Jan 17 06:53:04 i have access to the developer screen Jan 17 06:54:34 i don't recall an option either Jan 17 06:55:23 hmm, i don't have the signing certificate to upload a new version of the app but i have the passwords he used to sign it Jan 17 06:55:36 The only other thing I need are the certificate details he filled in it right? Jan 17 06:56:17 ull need the same keystore Jan 17 06:57:39 is that the same thing as the public key i can see in the services&apis screen on developer console? Jan 17 06:58:37 or am i totally stuck unless he mails me his jks file? Jan 17 06:58:46 nope, thats the license key Jan 17 07:00:41 sooo, no way the app can be updated without his private cert even if he tells me pwds and details? Jan 17 07:01:39 dont think so Jan 17 07:01:50 ok thanks Jan 17 07:03:42 nukeu666 Your private key is required for signing all future versions of your app. If you lose or misplace your key, you will not be able to publish updates to your existing app. You cannot regenerate a previously generated key. Jan 17 07:04:24 https://developer.android.com/studio/publish/app-signing.html Jan 17 07:04:53 cool thanks Jan 17 07:21:45 sweet, "the taco cleanse" on sale @ amazon; thats a cleanse i could get behind Jan 17 07:43:12 Hi. I'm a little confused about themes. I have set a theme for my app (a "light" one). I also have a custom style for TabLayout (also light). However, if I were to change my app theme to "dark", my TabLayout would still be light. I.e. there is no connection between my app theme and my custom TabLayout theme. Is there any way to make this "connection"? Jan 17 07:44:45 Hello. Im using a viewpager with custom Adapter extending FragmentStatePagerAdapter. From what I can read online this fragmentStatePager is suppose to get rid of the fragments not visible. Not true in my case. It keeps two fragments in memory. How to fix? Jan 17 07:46:51 normally it keeps 3 - one visible, one left, one right Jan 17 07:47:07 so you can smoothly swipe between them Jan 17 07:47:50 hmm, maybe I should use something else than viewpager Jan 17 07:49:33 ViewPager has setOffscreenPageLimit() but i doubt it will allow 0 Jan 17 07:50:04 emimu: so you have only one custom TabLayout theme? Jan 17 07:51:44 Ashiren: I have two :) but if I were to change my global app theme, I would still have to manually change my xml files where I apply the TabLayout theme, to either light or dark. It would be nice if my global app theme also defined which of my TabLayout theme to use. Is that possible? Jan 17 07:52:51 oh Jan 17 08:03:49 Ah, I have to use attributes. Got it! :) Jan 17 08:23:18 * thepoosh smooches raoul11 Jan 17 08:23:26 thepoosh OHI Jan 17 08:23:44 thepoosh do u use a custom circleimageview or a small lib? Jan 17 08:23:53 we customized it Jan 17 08:24:26 i see a nice package hdodenhof:circleimageview Jan 17 08:24:46 but i also see a circledimageview on the support package? Jan 17 08:51:11 hey fellas Jan 17 08:51:23 I think that can be my trademark now, "hey fellas" Jan 17 08:51:26 I say it enough Jan 17 08:55:47 Is there a udacity course on dialogs? Jan 17 08:57:20 hi all Jan 17 09:00:35 on dialogs purplex88 ? Jan 17 09:00:43 I don't think it's that broad.. Jan 17 09:00:56 Odaym: butters? Jan 17 09:01:17 Odaym: i want to learn how make input dialogs, how can i? Jan 17 09:01:39 you mean something that pops up and has a textfield which allows input and an "OK"? Jan 17 09:02:55 Odaym: yes! Jan 17 09:03:15 i want to enter a text value Jan 17 09:03:37 well there's this https://developer.android.com/guide/topics/ui/dialogs.html Jan 17 09:03:40 normally it would be some DialogBuilder.setView(editText); Jan 17 09:04:46 will i need to create my own custom dialog? Jan 17 09:05:06 you create your own XML layout, you feed it to the view of the Dialog you create Jan 17 09:05:12 it starts to look like you want Jan 17 09:10:03 when should i use dialogfragment over alertdialog? the guide seems to always recommend using dialogfragment? Jan 17 09:11:28 if you use fragments overall then yes Jan 17 09:11:45 dialogfragment is more like wrapper for the inner alertdialog anyway Jan 17 09:30:25 So, I want to add some audible notifications of outcome of something to the user of our app. I'm tempted to do one of 3 things, but not sure what the best is Jan 17 09:30:37 1) someone records the message and we use that Jan 17 09:30:47 2) we use android TTS and just pass it a string Jan 17 09:30:58 3) We just use some generic sounds to identify success/failure Jan 17 09:31:39 ask your UX guy Jan 17 09:32:08 you're asking about how you can technically send the message, but you need to know what the message should contain Jan 17 09:32:16 what the String is Jan 17 09:32:32 I know what the message will be, it'll be one of 2 things - Authorised or Declined Jan 17 09:32:35 I probably should have mentioned that Jan 17 09:32:49 I don't envisage any possibility of extra notifications Jan 17 09:32:50 just use the TTS Jan 17 09:32:56 OK :) Jan 17 09:33:04 or you have to hire an actor Jan 17 09:33:08 lol Jan 17 09:33:34 Ah, we'd get one of our customer services people to do it, she did the voice recordings on our (can't remember it's proper name) phone menu Jan 17 09:33:39 IVR that's it Jan 17 09:34:02 I guess TTS allows for adding new notifications later without having to re-record stuff Jan 17 09:34:20 my main concern was with the permissions/availability of TTS. Is it something you can rely on being available on every phone? Jan 17 09:35:33 and I presume TTS will use the "Media" volume on the device? Jan 17 09:37:14 wouldn't know, you have to check its docs and whatnot Jan 17 09:37:57 Ah, that's the other thing I need to consider - is TTS possible in iPhone. Jan 17 09:38:04 if not, I'd have to use generic sounds/record smething Jan 17 09:38:10 in which case, I might as well do that in Android as well Jan 17 09:50:56 sdousley: considering both offer a text to speech operating aid, they have to in some kind Jan 17 09:51:12 or most of them Jan 17 09:51:32 custom roms may not have that Jan 17 09:52:16 TotallyNotKim: ah yeah, I don't think our user base will be using custom rom's anyway Jan 17 09:53:24 hi all Jan 17 09:53:51 can I somehow use IPC Messenger thing to communicate between an android service and a Unity app on Android? Jan 17 09:54:15 because I can't write Java codes in Unity, only Javascript and C# Jan 17 09:54:25 My AndroidStudio isn't showing anything in the Build Variants windows. What is wrong? Jan 17 09:58:57 thepoosh, am on waitlist Jan 17 09:59:00 sonogo Jan 17 10:00:26 sonogo Jan 17 10:01:22 he was looking for our first date Jan 17 10:03:23 maybe yes(?) Jan 17 10:03:25 who knows Jan 17 10:03:28 I'll be ther Jan 17 10:03:30 already in RMG Jan 17 10:07:22 sabich for lunch thepoosh ? Jan 17 10:10:19 nah, never went to Ovad's Jan 17 10:11:49 is he worth it? Jan 17 10:11:56 raoul11: Jan 17 10:12:17 if u never been u shud go at least once Jan 17 10:12:34 the best sabich in RMG is on Haroe street Jan 17 10:13:04 oO Jan 17 10:15:37 mkay Jan 17 10:25:14 do i have to use dialogfragment now? it seems using alertdialog is deprecated is it true? Jan 17 10:27:31 onCreateDialog(int id) was deprecated. Jan 17 10:31:24 purplex88: I think BottomSheetDialogFragment uses setupDialog(Dialog, int) to make the dialog Jan 17 10:31:46 extends on AppCompatDialogFragment Jan 17 10:34:29 guys Jan 17 10:34:36 how the hell do you reliably hide the keyboard? Jan 17 10:35:01 my current way is using the InputMethodManager with window token Jan 17 10:35:13 and it does not actually work Jan 17 10:35:31 does it have to do with the manifest tags? alwaysHidden, hidden, etc.? Jan 17 10:42:21 astroduck: bottomsheetsialogfragment? Jan 17 10:42:49 sounds complicated for me Jan 17 10:43:18 But ffs... I've made a Gradle task "pleasePublishDebug" that dependsOn 'clean', dependsOn 'assembleDebug', dependsOn 'publishDebugApk' and Gradle decides to change the order and run: assemble, clean, publish which is of course a bad idea Jan 17 10:43:40 hmmm Jan 17 10:43:45 i should learn to do gradle tasks Jan 17 10:44:41 So should I, obviously. Jan 17 10:45:00 Gradle is really, really weird. I just can't wrap my brain around it. Jan 17 10:45:55 purplex88: Its a class in appcompat, but i mean google's dialog work like that. So you can also use setupDialog function Jan 17 10:49:30 heres my complete program: http://pastebin.com/vvQd3Ysc it says showDialog deprecated Jan 17 10:50:34 how can i make it comply with modern API? Jan 17 10:56:55 purplex88: Did you read its docs? It saus use "DialogFragment" Jan 17 10:57:28 Here's a start http://www.androidbegin.com/tutorial/android-dialogfragment-tutorial/ Jan 17 11:01:02 thx i thought i could avoid dialogfragment and just use alertdialog Jan 17 11:39:41 #Gradle is such a weird place. Jan 17 11:39:41 Anyone here know a better way of writing a Gralde task that needs to run a series of tasks on a particular order: clean, pullStrings, testStrings, assembleDebug, uploadDebug other than this bloated rubbish: http://pastebin.ubuntu.com/23815914/ Jan 17 11:47:09 Zta77: https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:task_rules Jan 17 11:54:01 Hi, do you guys know some app with a material design restaurant menu? I'm having trouble on how to make all the nesting work UI-wise. For example: Menu > Food > Main Dishes > Noodles > Spaghetti Napoli > Details. For some of the hierarchy levels I have solutions, but in general it's so deep and nested... Jan 17 11:56:51 I found some ok solution, but it's not very material design :) Jan 17 11:57:17 thepoosh: Thanks. So I can do: dependsOn: a,b,c.. still order is important. Jan 17 11:57:29 I'm probably going about this gradle thing the wrong way Jan 17 11:57:51 you can make each one depend on the one before it Jan 17 11:58:00 and then run the last one Jan 17 12:21:11 Can someone make a guess why RelativeSizeSpan is not working in this http://dpaste.com/3YN7K21 Jan 17 12:24:38 thepoosh: The next problem is that I can't dependOn 'assembleDebug' because that appears to be a task that's generated dynamically Jan 17 12:37:20 assemble is an internal task Jan 17 12:45:50 Android Studio told me this after I tried to import a project and tried to run on my device: Instant Run performed a clean build and install since the installation on the device does not match the local build on disk. Jan 17 12:45:54 what the hell does it mean? Jan 17 12:46:13 it means turn off instant run Jan 17 12:47:23 Zharf: where to turn off that? Jan 17 12:47:40 settings, search for instant run Jan 17 12:47:49 https://developer.android.com/studio/run/index.html#instant-run Jan 17 12:48:13 open studio settings and query instant Jan 17 12:48:43 This is maybe not a question for this channel but has anyone used AppsFlyer Jan 17 12:48:45 ? Jan 17 12:55:54 Zharf: Android studio says it's DEAD, and the app closes after start Jan 17 12:55:59 Zharf: very quickly Jan 17 12:57:27 Zharf: 01-17 13:52:10.105 27183-27208/com.good.great.test01 E/BlobCache: unflatten: not enough room for cache entry headers Jan 17 13:39:08 hello, im tryin to create a developer account for play store but the account name already taken, can i find account owner ? There is no published app btw Jan 17 13:45:29 Hi. Can apps with different applicationId (as set in build.gradle) but same package name (as set in AndroidManifest.xml) be installed in the same device? Jan 17 13:47:39 any UI examples of 2 or 3 choices with big buttons? I have 2 app modes which are very distinct, so I want to ask right away: cat or dog mode? Jan 17 13:47:57 uhm doesnt gradle override the package name in manifest Jan 17 13:47:58 I now used big round buttons, but that's against material design principals :) Jan 17 13:50:32 Ashiren, thats's what I thought, but if I change the applicationId I get an erro (app with same name already installed). So it recognizes that it's a different app (doesn't try to overwrite the existing one), but still refuses to install Jan 17 13:50:59 Still, I don't want to rename the package, refactoring everything Jan 17 13:52:32 pl, you're mixing up things, first you cannot have 2 differents applications with the same packagename on your device (but you can have 2 activities having the same packagename in your launcher for example --- application != activity) --- secondly, applicationId is responsible to inject the manifest which will populate the packagename of the manifest of your application Jan 17 13:53:14 usually, you need different applicationId when you handle variants/flavors, for example if you want to have a free app and a paid app Jan 17 13:53:41 which results (if you followed) into generating 2 applications where each of them have a different packagename Jan 17 13:54:15 if you still don't get it, i can only recommand that you read and read and read more about it in the documentation and online (probably many ppl desmystified that in some tutorials) Jan 17 13:55:20 Thank you adq. I'd like to fork an app, and I want my fork to be installable together with the original app. The original app sets package="..." in AndroidManifest, that according to the documentation also sets the applicationId Jan 17 13:55:23 documentation = https://developer.android.com/studio/build/application-id.html Jan 17 13:55:51 I tried to explicitly set applicationId = "some.thing.else" in build.gradle, but I still can't install the forked app together with the original one Jan 17 13:56:00 then just override applicationId Jan 17 13:56:04 don't touch the manifest Jan 17 13:56:09 that's what I did, I think Jan 17 13:56:15 or that's what I was trying to do at least Jan 17 13:56:56 and indeed it worked, somehow, as the forked app doesn't try to overwrite the original app. So android recognizes the app is different. But still, it says: app with same name already present, can't install. Jan 17 13:57:04 and this is where I get confused Jan 17 13:57:52 paste your gradle config and your manifest in pastebin or somewhere, if someone wants to help you more they will, i don't know more :) Jan 17 13:58:10 thanks anywya Jan 17 13:58:12 way Jan 17 13:58:22 (and also paste gradle original config and yours, so they can compare) Jan 17 13:59:21 * Odaym holds adq, pl, squ and stretches their god damn names to at least 5 more characters Jan 17 13:59:36 it's like watching assembly instructions whizzing through, man Jan 17 13:59:42 3-letters nick club, forbidden to you Jan 17 13:59:42 put some characters in there Jan 17 14:03:58 what you could also do pl, to figure it out by yourself, is take a hello world sample, play with changing the applicationId to have 2 differents applications installed at least, and check what might differ Jan 17 14:04:11 usually it's more easy to spot when you have a good and a bad example side by side Jan 17 14:04:52 adq, thanks Jan 17 14:05:10 anyway, it *should* work changing the applicationId, right? Jan 17 14:05:33 yes it should, but who knows what's inside the project you fork Jan 17 14:05:45 it could be something related to the manifest merger but i don't want to misdirect you in case it's not that Jan 17 14:06:16 could also come from an old eclipse project and the import assistant mixed thing Jan 17 14:06:23 no idea tbh Jan 17 14:06:38 good luck cause i'm going afk Jan 17 14:18:12 is it possible to have in a recylcerview (vertical scrolling) an item that is listview/imageview with horizontal scrolling? Jan 17 14:23:04 to have one of the parent recycler view items be another recyclerview which scrolls horizontally? Jan 17 14:25:30 yes Jan 17 14:26:14 that item is part image part text, the image could be a number of images which i need to scroll horizontally Jan 17 14:26:33 you want that to be set on only 1 item from all the parent items in the recyclerview? Jan 17 14:26:45 you're going to have to render a different layout for that specific item when you reach it (in the adapter) Jan 17 14:26:49 on all items on the recyclerview Jan 17 14:26:50 and it's going to get very messy Jan 17 14:26:52 oh Jan 17 14:26:58 I have a pageviewer that opens different classes with case 0: etc... however, it seems to open multiple fragments even though they have not been called? Jan 17 14:27:02 a recyclerview of recyclerviews Jan 17 14:27:09 yea sure you can do that, im certain Jan 17 14:27:13 yeah, or some other easy widget Jan 17 14:27:25 that i can drop and loads images horizontally Jan 17 14:27:31 magically Jan 17 14:27:38 no i dont think there's such a lib Jan 17 14:27:48 the design itself is not very advisable Jan 17 14:28:00 because you're going to have trouble scrolling vertically Jan 17 14:28:13 ios dude managed to achieve it quite good Jan 17 14:28:25 but how does he scroll vertically Jan 17 14:28:33 isnt the event caught by the horizontal scrolling view? Jan 17 14:28:40 nope Jan 17 14:28:50 but they dont have that concept of RV's Jan 17 14:29:00 ah so he places his finger on the inner scrollview (horizontal), and the device knows that he doesnt mean to scroll horizontally Jan 17 14:29:06 so he is able to scroll vertically Jan 17 14:29:36 detects the swipe movement, if theres more images on that specific item, he can swipe left/right Jan 17 14:29:50 otherwise its a bit funky Jan 17 14:29:52 say there are specific items Jan 17 14:29:58 and it detects that Jan 17 14:30:04 yet he doesnt want to scroll horizontal Jan 17 14:30:06 you get them dynamically Jan 17 14:30:07 he wants to scroll down Jan 17 14:30:09 what happens then? Jan 17 14:30:14 which direction does it go? Jan 17 14:30:18 it scrolls down Jan 17 14:30:27 but you said if there are more items it goes left/right Jan 17 14:30:32 how will it know? Jan 17 14:30:36 if you swipe left/right Jan 17 14:30:45 but I just placed my finger Jan 17 14:30:48 im ABOUT to do something Jan 17 14:30:58 and there are swipeable pictures to the left Jan 17 14:31:15 nothing happens until u swipe to the right or up/down Jan 17 14:31:24 and at that very instant, the device knows Jan 17 14:31:42 well yea there are events for swipe up or down in Android Jan 17 14:31:44 you can use those Jan 17 14:31:47 but the design is shitt Jan 17 14:32:08 but what would i use as a container for those images Jan 17 14:32:16 a horizontal listview? Jan 17 14:32:31 you just said you wanted recycler inside recycler Jan 17 14:32:36 you use another recycler for the images inside Jan 17 14:33:10 i want A solution, whether its a fancy widget or a recylerview Jan 17 14:33:25 oh Jan 17 14:33:28 nah it's not like that in here Jan 17 14:33:29 or a listview or whatever to implement it best Jan 17 14:33:33 gotta be more specific I think Jan 17 14:33:39 there's no "what's the best way to" Jan 17 14:33:54 best way for me, for example, is to think of another design in this scenario Jan 17 14:34:08 so i dont know, sorry Jan 17 14:35:39 thats ok Jan 17 15:01:25 is there a way to make gradle exclude certain files from assets? using "exclude" on the assets source set or in the packagingOptions doesn't seem to have any effect Jan 17 15:10:58 hey, i just re-opened android studio and received Error:java.lang.NullPointerException (no error message) , last time i had my project open there was no errors Jan 17 15:11:07 google doesnt have a valid solution to this problem based on what ive found Jan 17 15:57:17 Hello to everyone. I have a activity with google map's fragment inside. Then, when i click in a Marker, i open a fragment from down to up showing more information about the marker.The problem is, when i touch over the new fragment, the event's are pass to map's fragment. For example the expand map. I need pause the fragment when i open the new fragment o something like that? Jan 17 15:57:51 show code? Jan 17 16:00:58 i find this answer and work for me, http://stackoverflow.com/questions/10389620/fragment-over-another-fragment-issue thanks anyway Jan 17 16:01:37 yay Jan 17 16:18:25 https://play.google.com/store/apps/details?id=com.excelliance.multiaccount&rdid=com.excelliance.multiaccount Jan 17 16:18:31 any idea on how this works? Jan 17 16:19:00 apparently it runs another instance for example of whatsapp with different data Jan 17 16:21:05 How can one get user selected text in a webview from java? I have seen many solutions online but all are for older versions of android that do work on my 6.0.1 device. Jan 17 16:21:18 do not work* Jan 17 16:25:12 So I have a custom ListAdapter for my ListView. I populate 3 TextFields with string values. I want to be able to check if a specific value in one of the TextViews is present in the list. Howdidodat ? Jan 17 16:25:41 So I don't pupulate the list twice with the same name. Jan 17 16:28:39 A simple non custom List with only one String in it is easy to check. items.indexOf("stringvalue"); Jan 17 16:29:56 Am I going to have to iterate ? Jan 17 16:41:36 looks like i'm going to have to iterate through the list then. Jan 17 16:41:38 oh well. Jan 17 16:43:22 done. Jan 17 16:43:28 Thanks for listening . hehe Jan 17 16:44:08 I was suppose to be done with this little program yesterday. Jan 17 16:47:51 Can textview be edited by the user? I thought it was just a label. Jan 17 16:48:44 Tooltip says: "Displays text to the user and optionally allows them to edit it" Jan 17 16:53:14 Thats new. Jan 17 16:53:25 wt Jan 17 16:53:45 purplex88: You can modify a TextView in such a way that it can be edited, but it's not editable not by default. Jan 17 16:53:58 er, it's not editable by default Jan 17 16:58:59 anyone know why my breakpoint here is invalid? http://imgur.com/NDUJFRA Jan 17 16:59:18 direct link to image http://i.imgur.com/NDUJFRA.png Jan 17 17:01:47 truckcrash: it's because of the "fabulousFAB" lame pun. There is an inspection against that kind of stuff. You should disable it Jan 17 17:02:40 what is the name of the inspection? Jan 17 17:03:08 or wait... are you trolling me? Jan 17 17:03:09 you are. Jan 17 17:06:04 truckcrash: I was joking to make your development activity a little lighter. That's not trolling. Jan 17 17:06:47 I didn't mean it in a bad way. I chuckled. Jan 17 17:08:00 :) Jan 17 17:10:19 kiekiekie Jan 17 17:14:03 is it necessary to use loaders with a firebase db? Jan 17 17:14:17 or is that something firebase takes care of by itself? Jan 17 17:18:23 nvm, think i found my answer Jan 17 17:24:47 Is the firebase ui library something I would need for my project using firebase, or would I manage fine without? Jan 17 17:30:40 For an app to be listed in google play, is it enough to publish it production in play store console? Jan 17 17:30:43 Or is there something more to it? Jan 17 17:30:59 Because I can find my app by accessing the url, but not with searching for it in the store. Jan 17 17:31:03 that's it Jan 17 17:31:22 it won't index it for a while to be included in the top search Jan 17 17:31:34 how long in average? Jan 17 17:31:37 play with the app description Jan 17 17:32:17 not sure ... but definitely wait for a 3-5 days Jan 17 17:32:27 I see Jan 17 17:32:28 thanks Jan 17 17:32:32 raoul11: where are you?!?!?! Jan 17 17:32:45 squ: still here? Jan 17 17:32:48 it'll be faster if you search for your own/co name Jan 17 17:33:06 i got issue with my keyboard in Nougat... http://imgur.com/a/IHfeZ someone know why? Jan 17 17:33:35 the 1st is on nougat and the 2nd from mm Jan 17 17:33:52 what has changed? Jan 17 17:34:12 board you've written? Jan 17 17:53:46 Why can't I get EditText at line #27 http://pastebin.com/D91Nh6GK ? Error is: mydialog needs to be final. Jan 17 17:53:53 but if i make that final then how will create the dialog at line #48? Jan 17 17:58:47 they’re not the same reference Jan 17 17:58:58 on line 27, it’s in an internal class Jan 17 18:00:43 s73v3r: mydialog? Jan 17 18:02:19 hey, i just re-opened android studio and received Error:java.lang.NullPointerException (no error message) , last time i had my project open there was no errors Jan 17 18:02:23 google doesnt have a valid solution to this problem based on what ive found Jan 17 18:02:30 if i make it final then error becomes 'mydialog' may not have been initialized. Jan 17 18:03:32 so the whole thing is inside a button’s onClick listener? Jan 17 18:03:34 don’t do that Jan 17 18:04:08 but, if you want to refer to the dialog inside the dialog’s listener, it has to be final Jan 17 18:05:07 also, you never actually give the listener to the builder Jan 17 18:05:14 nevermind Jan 17 18:05:47 its set on lines 122 and 125 Jan 17 18:05:53 i see that Jan 17 18:06:10 ops 43 and 46 Jan 17 18:06:34 so can i fix it? Jan 17 18:06:53 yes Jan 17 18:07:20 is this channel logged? I think someone maybe replied to my question but my history apparently doesnt go far enough back Jan 17 18:07:25 this was my question : Anyone here with a rooted Xperia X Performance (or Compact) or a XZ that can check if they have the following file? /sys/devices/virtual/input/clearpad/glove Jan 17 18:08:12 that’s not the kind of question that would be answered here. This is app dev, not root dev Jan 17 18:08:23 busted Jan 17 18:08:36 after making it final, why does it say 'mydialog' may not have been initialized? Jan 17 18:09:11 s73v3r, even when the reason being I need to know if it supports my app? Jan 17 18:09:15 ok maybe because it wasn't initialized at top. Jan 17 18:09:36 you have to intialize it with the output of builder.create()_ Jan 17 18:10:03 yes but it comes at very end. Jan 17 18:10:10 i know Jan 17 18:11:45 you can get a reference to the EditText outside of the listener Jan 17 18:12:05 you can declare that final without worry Jan 17 18:13:13 so you inflate the dialog’s view, get a reference to the field you care about, and then you set that view on the builder Jan 17 18:18:24 checking it now. Jan 17 18:21:34 yes it works I got the field from View. Jan 17 18:22:56 I knew you could call findViewById on activity and view but haven't used the view method until now Jan 17 18:59:46 whats teh common reason for cannot resolve symbol R Jan 17 19:00:04 malformed xml Jan 17 19:00:21 or typo/error in gradle Jan 17 19:00:29 what does the error say? Jan 17 19:01:36 my compile error says this Error:java.lang.NullPointerException (no error message) Jan 17 19:01:49 if i hold the mouse over the R it just says cannt resolve symbol Jan 17 19:01:49 restart AS :/ Jan 17 19:02:11 and/or try File > Invalidate Caches and Restart ... Jan 17 19:02:17 looks like AS NPE'd Jan 17 19:02:18 i did that alread Jan 17 19:02:20 already Jan 17 19:02:23 shit Jan 17 19:02:25 NPE'd ? Jan 17 19:02:31 im restarting it right now Jan 17 19:02:36 null pointer exception ... Jan 17 19:02:44 =/ Jan 17 19:02:47 how do i fix this Jan 17 19:02:54 re-install ? Jan 17 19:03:00 no no Jan 17 19:03:05 what was the last change you did? Jan 17 19:03:15 nothing, i just re-opened my laptop this morning and it didnt work Jan 17 19:03:24 :( Jan 17 19:03:26 stack trace? Jan 17 19:03:51 ./gradlew --stacktrace? Jan 17 19:03:55 run a gradle build from the command line Jan 17 19:04:19 that should give you more info Jan 17 19:05:23 should i type in gradlew Jan 17 19:05:57 ./gradlew assemble Jan 17 19:06:12 if you want, you can do ./gradlew assemblen --stacktrace Jan 17 19:08:27 * What went wrong: java.lang.NullPointerException (no error message) Jan 17 19:09:32 <_abc_> I had problems running the emulator on an amd athlon cpu before, there is something about certain emulator accelerated features only being available on intel cpus. Can someone please elaborate on this? I tend to run such machines headless under linux, ... Jan 17 19:09:37 <_abc_> ... i.e. graphics are not relevant. Jan 17 19:10:09 shipit, s73v3r? Jan 17 19:10:44 did you run ./gradlew from command line as s73v3r suggested? Jan 17 19:11:18 yea Jan 17 19:11:19 i pasted the error Jan 17 19:12:51 paste more Jan 17 19:13:04 read above the error, it should give you some context Jan 17 19:13:23 <_abc_> So the best way to emulate is to get a real droid device? Or so I read? Jan 17 19:13:30 nothing that makes sense Jan 17 19:13:47 http://pastebin.com/qTGKgFMx Jan 17 19:14:13 dang bubbely, wtf Jan 17 19:14:15 so do what it says Jan 17 19:14:22 ? Jan 17 19:14:35 it tells you what the next steps you should take are Jan 17 19:15:02 bubbely line #56 Jan 17 19:15:10 under *TRY Jan 17 19:15:35 <_abc_> Is bluestacks a recommended emulator "alternative"? Jan 17 19:15:55 not particulary Jan 17 19:16:05 _abc_: you’re going to need a device Jan 17 19:16:13 <_abc_> Well what IS recommended? The emulator under linux is dog slow Jan 17 19:16:29 the emulator is always slow. it sucks Jan 17 19:16:29 <_abc_> s73v3r: just any device chosen by low cost? Like a tablet? Jan 17 19:16:53 ideally a few devices representative of the ones your market would be using Jan 17 19:17:03 <_abc_> I can get a $60 tablet with bluetooth and wifi and camera, cheap cheap cheap Walton made. Jan 17 19:17:14 those are going to be frustrating as all hell Jan 17 19:17:16 <_abc_> Are those low end devices relevant for emulation? Jan 17 19:17:16 https://hastebin.com/idijometon.sql Jan 17 19:17:17 get a regular phone Jan 17 19:17:24 <_abc_> Why frustrating? Jan 17 19:17:32 cause they usually run like shit Jan 17 19:17:40 s73v3r: looked into HAXM? Jan 17 19:17:42 <_abc_> Quad cores all, not too shabby Jan 17 19:17:49 this is hte output to ./gradlew assemble --info Jan 17 19:17:58 <_abc_> HAXM is windows and intel only, right? Jan 17 19:17:59 shipit: HAXM has always run like crap for me on OS X Jan 17 19:18:09 _abc_, you have an AMD CPU? Jan 17 19:18:12 <_abc_> Oh osx too? Jan 17 19:18:20 s73v3r: I once got it to run really well Jan 17 19:18:21 <_abc_> Mavrik: I have an older amd machine I am about to toss. Jan 17 19:18:25 ah Jan 17 19:18:30 good luck running emulators on that Jan 17 19:18:33 bubbely: Try with --stacktrace Jan 17 19:18:34 <_abc_> Mavrik: unless I make it work again. Jan 17 19:18:42 <_abc_> Mavrik: it runs but unaccelerated and is slow Jan 17 19:19:14 i’d recommend getting at least one phone to use. doesn’t have to be the latest gen Jan 17 19:19:58 <_abc_> I did some tinkering with an older samsung, 4.4 or so, did not like the process at all Jan 17 19:20:09 tinkering? Jan 17 19:20:12 <_abc_> I tend to run zombie farms meaning headless machines on ethernet, with remote display Jan 17 19:20:19 <_abc_> s73v3r: load app, test, repeat Jan 17 19:20:42 honestly, that’s the best way to get an accurate picture of how it’s going to behave Jan 17 19:20:46 <_abc_> And I would like the droid devel to run on such a machine Jan 17 19:21:03 <_abc_> s73v3r: yes but the process of loading the app with gdb is grotty. At best. Jan 17 19:21:15 <_abc_> Maybe the phone was too old, I don't know. I will try something newer. Jan 17 19:21:18 it’s not if you’re using Studio Jan 17 19:21:36 <_abc_> Meanwhile I have like 4x core GHz cpus here and I would like to see them move that emu. Jan 17 19:21:38 or even gradle Jan 17 19:21:53 <_abc_> s73v3r: iirc I used the default gui load process from studio Jan 17 19:22:03 <_abc_> With phone attached by usb Jan 17 19:22:21 <_abc_> And it was quite grotty. As I said, could have been the old phone. Jan 17 19:22:53 s73v3r https://hastebin.com/uxaxedehuq.vbs Jan 17 19:23:12 <_abc_> I am sure it can be better with the right combination of devel machine and emulator or device. Jan 17 19:23:38 bubbely: try —debug. But it’s looking like something is wrong in one of your resource files Jan 17 19:23:47 _abc_: maybe, but I wouldn’t bet on it Jan 17 19:24:09 <_abc_> :) Jan 17 19:24:21 <_abc_> So android devel is slow and painful, like bitcoin mining? Jan 17 19:24:23 bubbely: it's failing at compileDebugAidl -- do you have a .aidl? Jan 17 19:24:37 _abc_: kinda, but you are trying to make it harder on yourself Jan 17 19:24:42 <_abc_> Heh. Jan 17 19:24:43 no... i dont know what an aidl is Jan 17 19:25:00 <_abc_> The easyest for me is to treat the zombie machine which wakes on lan and runs linux like a docker container. Jan 17 19:25:04 see if there's one under src/main/aidl Jan 17 19:25:12 <_abc_> s73v3r: think of it as the cloud under my desk/behind me Jan 17 19:25:12 but that’s not the easiest for Android dev Jan 17 19:25:25 <_abc_> Well what is, then? Jan 17 19:25:37 just running studio on your local machine, with a phone plugged in Jan 17 19:25:51 s73v3r: https://hastebin.com/camokiyipu.pas Jan 17 19:25:53 <_abc_> That is not a good idea. Laptop already busy with other things, and not top of the line Jan 17 19:25:55 shipit, no i dont have a .idl Jan 17 19:25:57 <_abc_> It's the slowest option Jan 17 19:26:07 it’s the path of least resistance Jan 17 19:26:16 <_abc_> s73v3r: Too slow. Jan 17 19:26:22 it’s how dev was designed to be Jan 17 19:26:31 <_abc_> I pity those who do this. Jan 17 19:26:37 i don't Jan 17 19:26:56 i pity people who try and do strange things with the dev environment, and run into issues that no one else does Jan 17 19:26:59 <_abc_> Running the studio+emu as single task on another machine which is dedicated to it makes it about 5 times faster than a normal laptop around here Jan 17 19:27:08 not here Jan 17 19:27:18 bubbely: try ./gradlew --info --stacktrace Jan 17 19:27:29 <_abc_> It's not strange, the dev env works fine, but the docs are really cryptic wrt what platform is best/preferred for accelerated emu Jan 17 19:28:02 <_abc_> How bad is Andy? Jan 17 19:28:04 which is why using an emu isn’t suggested Jan 17 19:28:23 <_abc_> I never saw that anywhere? Quote an official doc? Jan 17 19:28:40 there’s not an official doc. I’m echoing the sentiments of the developer community Jan 17 19:29:03 <_abc_> Ok. Jan 17 19:29:51 shipit: https://hastebin.com/awanayariw.pas Jan 17 19:30:14 if you’re running VMs, you can try to pass through the phone plugged in on the local machine to the VM, but I don’t know how well that’ll work Jan 17 19:30:45 Hi I try to build executables (console programs) from raspbian to use on my android device. Only when I build it as static does it run? What libraries are missing and how can I know to add them? Jan 17 19:31:00 <_abc_> It's not a vm, it is a dedicated machine, like a dedicated server is in hosting Jan 17 19:31:33 <_abc_> And yes the phone was attached to that. Don't worry about this, it's simply like a machine which has it's graphics card on another machine. The network is lan and handles this Jan 17 19:31:55 bubbely: oops, you did want to assemble, so: ./gradlew assemble --info --stracktrace Jan 17 19:32:15 bubbely: actually before you do that, try ./gradlew clean Jan 17 19:32:32 do ./gradlew clean —refreshDependencies Jan 17 19:37:39 <_abc_> http://craigthomas.ca/blog/2014/06/06/android-emulator-vm-acceleration-on-amd/ s73v3r relevant to what I said: skip to Verdict if curious Jan 17 19:37:53 i don’t run the emulator Jan 17 19:37:56 <_abc_> Note the guy had a nice Phenom II with 6 cores and this was in 2014. Jan 17 19:37:58 shipit: https://hastebin.com/ugoxeyosor.sql Jan 17 19:38:03 <_abc_> Ok, just saying. Jan 17 19:38:28 <_abc_> 30 seconds booting is quite fast even for a real device Jan 17 19:38:31 bubbely: have you tried updating your stuff? Jan 17 19:38:40 ya Jan 17 19:38:47 is there a way to control+f through an entire project Jan 17 19:38:47 _abc_: yeah, but I don’t turn my devices off Jan 17 19:38:51 and not just open documents Jan 17 19:39:00 so boot time doesn’t mean a whole lot to me Jan 17 19:39:07 <_abc_> Point Jan 17 19:39:24 bubbely: shift+ctrl/cmd/+F Jan 17 19:40:08 oh Jan 17 19:40:36 doesnt work Jan 17 19:40:58 Edit->Find->Find In Path Jan 17 19:41:38 How would one go about highlighting user selected text in a webview? Jan 17 19:47:15 =[ Jan 17 19:48:10 shipit, s73v3r? Jan 17 19:48:18 i have no ideas Jan 17 19:49:25 I'm trying to reuse Bitmap instances in my app, but I'm getting this warning in M and higher: "Am seeing a warning of "Called reconfigure on a bitmap that is in use! This may cause graphical corruption!" Jan 17 19:49:48 Glide seems to think it's chill, but I can't find the actual code where the warning is generated Jan 17 19:49:59 I'm seeing this in logcat Jan 17 19:52:00 bubbely: try updating AS, tools etc -- something is not connecting and hard to tell from the trace ... :/ sry dude Jan 17 20:08:32 <_abc_> http://www.dailymail.co.uk/news/article-4129424/Father-63-died-jumping-house-blaze.html just what exactly can catch fire in the back of a fridge anyway? I've only seen small electrical fires in fridges, and they died out quickly. And they are rare. Jan 17 20:08:39 <_abc_> Sorry wrong channel Jan 17 20:09:07 I was going to be like: there's an app for that? Jan 17 20:33:48 guys, someone who had worked with keyboardview? Jan 17 20:52:32 bourbon, https://github.com/bumptech/glide/issues/743 first link when you search for it -_- Jan 17 20:52:50 i had it too i can remember, but did not bother Jan 17 21:03:38 adq: kinda tempted to just let it slide since glide does Jan 17 21:03:40 saw that, too Jan 17 21:04:00 can't for the life of me find the place in the android source this error is generated Jan 17 21:04:15 what's the error — sorry missed it Jan 17 21:04:49 https://github.com/bumptech/glide/issues/743 Jan 17 21:05:05 less error, more warning Jan 17 21:07:29 that issue links the source of the error Jan 17 21:07:45 s/error/warning/ Jan 17 21:09:38 https://github.com/android/platform_frameworks_base/commit/ae2e8b4891491e8e89bed5f2c9626415adee09cb Jan 17 21:09:41 herriojr: what line in what file does this come from? Jan 17 21:10:02 thanks Jan 17 21:11:42 np Jan 17 21:14:01 aw man... Jan 17 21:14:09 this is more crazier than I had realized Jan 17 22:16:48 aw yissss Jan 17 22:17:14 herriojr: adq: the solution, for me, was to use BitmapRegionDecoder instead of BitmapFactory to make my Bitmap instances Jan 17 22:17:32 but Jan 17 22:17:42 it avoids the #reconfigure call Jan 17 22:17:43 what are the consequences of this warning for you? Jan 17 22:17:50 is it just to remove a Log.w from android platform? Jan 17 22:17:53 sometimes, bitmaps are corrupted Jan 17 22:17:59 oO Jan 17 22:18:00 ok Jan 17 22:18:01 easier to replicate in the emulator Jan 17 22:18:06 I was kinda kludging Jan 17 22:18:08 emulator is unreliable, be careful Jan 17 22:18:23 I have images I was instantiating for tiles Jan 17 22:18:34 images on the bottom and right edge were undersized, so they had to be padded Jan 17 22:19:14 but when calling BitmapFactory.createBitmap with BitmapFactory.Options#inBitmap, the bitmap would be resized with #reconfigure Jan 17 22:19:30 if the image being created wasn't a full tile but one of the edges that ends up too small Jan 17 22:19:46 so I just use BitmapRegionDecoder with an oversize region Rect Jan 17 22:20:09 ok ok Jan 17 22:20:46 have you set any policy on glide? Jan 17 22:21:11 I'm not using glide Jan 17 22:21:14 oh ok Jan 17 22:21:19 i thought it was an issue coming from glide Jan 17 22:21:25 from using glide* Jan 17 22:21:58 i probably mixed up things when you said: Glide seems to think it's chill, but I can't find the actual code where the warning is generated Jan 17 22:22:01 so ignore all i said Jan 17 22:22:07 here's my sauce: https://hastebin.com/ituvecupog.java Jan 17 22:22:47 it provides tiles for this lib: https://hastebin.com/ituvecupog.java Jan 17 22:22:51 oops Jan 17 22:22:58 https://github.com/moagrius/TileView Jan 17 22:23:20 point was mostly that if you're using BitmapFactory.Options#inBitmap, make sure that you're creating a bitmap of the *exact same size* Jan 17 22:23:22 else, it'll warn Jan 17 22:24:12 in my specific case, I actually want Bitmap instances of all the same height/width, so using BitmapRegionDecoder guarantees uniform dimensions, even for tiles that are under-sized Jan 17 22:24:32 i see you don't use decodeResource since you switched to regiondecoder Jan 17 22:24:39 you might be careful on that Jan 17 22:24:45 https://developer.android.com/training/displaying-bitmaps/load-bitmap.html < just in case Jan 17 22:25:14 usually a good way is to do it in 2 pass, first for getting the right size to avoid waste of memory Jan 17 22:25:20 and secondly to generate it Jan 17 22:25:47 anyway, good for you if you solved your issue Jan 17 22:26:01 i prefer to not do it anymore manually and rely on Glide or Picasso Jan 17 22:26:12 (still avoiding the facebook lib doing that, but it's a third option) Jan 17 22:26:25 I use picasso for most stuff Jan 17 22:26:47 these tiles are being rendered out of an ad-hoc data format that's idiosyncratic to the app Jan 17 22:27:02 (not my call) Jan 17 22:27:33 so the InputStream is created to point to a part of a file somwhere arbitrary Jan 17 22:27:40 vOv Jan 17 22:28:17 ^^ Jan 17 22:31:37 wall-of-text'd the Glide issue in case it helps Jan 17 22:37:27 any ideas why admob with a customeventbanner holding a webview might have a bunch of warnings and never refresh ads? adb logs https://gist.github.com/bfrog/3cc9fd79f7404c4802c519367dcc0cb2 Jan 17 22:37:30 so confused Jan 17 22:38:20 you should cuss-out the AdMob support line Jan 17 22:38:29 I want to, so bad Jan 17 22:38:43 they change and break this shit every damn time I look away for a minute Jan 17 22:39:08 How can I find where the app crashes from this error: android.content.res.Resources$NotFoundException: String resource ID #0xffffffff ? Jan 17 22:39:12 wait, they have a support line, with real humans? Jan 17 22:41:10 Could anyone help me with why shared element transitions are not working for me? I have made a slimmed down project with just the issue. You can find it here. https://git.io/vMPti There are only two small classes, and two small layout files in the project. Jan 17 22:57:13 purlex88: 0xffffffff is -1 so that may help Jan 17 22:57:32 purlex88: you should get a line where the code tries to load -1 as a resource Jan 17 22:58:05 purplex88: it is also possible that in XML you're setting android:src="@color/white" Jan 17 22:58:47 purplex88: (i.e. loading a color as a resource, white == 0xffffffff == -1 Jan 17 22:59:36 explodes: It's a network app, i think it only crashes when network is not available on app startup. Jan 17 22:59:52 uses HTTP Jan 17 23:00:00 ok. Jan 17 23:00:24 Resources$NotFoundException happens when you getText(invalidId) or getDrawable(invalidId) Jan 17 23:00:52 if you have no network access, you have a branch that is running getText(invalidId), or setting id = invalid Jan 17 23:01:13 so, find the line (in the stacktrace) where you're trying to get a bad resource Jan 17 23:01:20 that will tell you where your code has broken Jan 17 23:01:38 [the stack trace will tell you exactly where you need to look, stack traces are wonderful like that] Jan 17 23:02:24 i see yes maybe i am not handling http request correctly if theres no network Jan 17 23:04:00 I have transcribed my issue out to an SO question. I have to log off now, but if anyone is able to look at my question there, it would be great to sort this issue out. Jan 17 23:04:01 Thanks Jan 17 23:04:04 link: https://stackoverflow.com/questions/41708595/shared-element-transition-not-working Jan 17 23:04:08 Excepting under certain circumstances which will be appropriately maddening when they occur. Jan 17 23:07:47 explodes: can't tell line from a project file from this though: http://pastebin.com/8654Gdnu Jan 17 23:08:22 the 3rd thing down Jan 17 23:08:47 its in your onPostExecute Jan 17 23:09:50 I’m betting you’re trying to use a String resource, but you’re not doing R.string.mystring? Jan 17 23:10:52 That seems very likely, considering that the resource ID showing is 0xffffffff and a bit laughable Jan 17 23:12:51 I think it could here: Toast.makeText(MainActivity.this, HTTPResponse.u, Toast.LENGTH_SHORT).show(); Jan 17 23:13:02 HTTPResponse.u is -1 for error. Jan 17 23:13:15 yeah, that second parameter is supposed to be a string Jan 17 23:13:31 Yeah, while Log is really good about serializing things into something readable, Toast cares not for your petty human whims. Jan 17 23:13:31 it thought it would be converted to string Jan 17 23:13:38 nope Jan 17 23:13:43 that doesn’t happen Jan 17 23:13:48 this isn’t JavaScript Jan 17 23:13:51 ...at least not automagically. Jan 17 23:14:09 plus, there’s an override ffor that which takes an int, so you can pass it a String resource Jan 17 23:14:17 add .toString() to the end of it Jan 17 23:15:08 and the line just above postexecute in stracktrace is "at android.widget.Toast.makeText(Toast.java:265)" Jan 17 23:15:42 that shows that it’s your problem Jan 17 23:15:52 yes that fixed it Jan 17 23:44:56 s73v3r use ConstraintLayout yet ? Jan 17 23:46:15 no Jan 17 23:46:59 i’m working on a small demo app for something, but I don’t think it’s a good exercise for Constraint Layout. It’s just a list of text, with a FAB for adding a new item Jan 17 23:54:22 and you g00s? :) Jan 17 23:57:02 playing with it. don't like the editor in AS Jan 17 23:57:24 the xml is ... pretty uggly Jan 17 23:58:54 dang Jan 17 23:59:09 need to find a joke like instant-ruin for instant-run but with contraint-layout Jan 17 23:59:57 first world problem Jan 18 00:02:30 it constrains you into using the visual editor Jan 18 00:04:37 maybe cons-trains layout Jan 18 00:07:08 s73v3r: are you a Android teacher? Jan 18 00:07:15 no Jan 18 00:08:35 I played with WearableDrawerLayout and new stuff for android wear 2.* earlier, it's pretty cool, but.. it's part of a support lib (com.google.android.support:wearable:2.0.0-beta1) but it targets api23 min -_-" Jan 18 00:09:10 and there is nothing too fancy, they could have made it for 21 so all (even old wear device) could benefit from it, but nope :x Jan 18 00:18:41 "“I spent half my money on gambling, alcohol and wild women. The other half I wasted.” lol thats the best Jan 18 00:21:19 adq i think i should put minsdk=21 Jan 18 00:21:42 unrelated Jan 18 00:21:54 ^ see @TargetApi(23) Jan 18 00:21:54 public class WearableDrawerLayout extends FrameLayout implements OnLayoutChangeListener, NestedScrollingParent, FlingListener { Jan 18 00:22:32 it crashes hard on api 22 anyway Jan 18 00:22:53 (and i have min sdk 21 ofc for the wear part) Jan 18 00:23:27 one way would be to copy the decompiled class into my project, but i'm too lazy Jan 18 00:24:58 adq you are probably one of 10 people developing for wear ;) Jan 18 00:25:07 yeah but it's fun ;) Jan 18 00:26:45 sounds it Jan 18 00:46:56 I'm struggling to determine the best way to store sensitive info, like oauth tokens. So far it looks like the best way is to create a key in Keystore and use that to access an encrypted token stored in sharedpreferences. Does that sound reasonable? Jan 18 00:54:12 Fleeno, accept that once a device is rooted, it cannot be held securely Jan 18 00:54:32 you can store a key using a hardware token if available on device.... Jan 18 00:54:39 but do you really need to protect your data that badly? Jan 18 00:56:58 hi. my R is suddenly cannot resolve symbol and i get the error msg Error:java.lang.NullPointerException (no error message) i ade no changes this randomly happened. help Jan 18 00:57:37 clean, build Jan 18 00:58:41 build failed Jan 18 01:00:05 other ideas pfn ? Jan 18 01:00:15 gradlew app:assembleDebug Jan 18 01:00:18 read error, fix Jan 18 01:00:34 it’s the guy from this morning with an AIDL error Jan 18 01:00:44 bubbely don't forget the 'fix' part Jan 18 01:00:57 pfn: we went through this earlier today with them. Jan 18 01:01:13 none of us could point to anything it was Jan 18 01:03:12 pfn : https://hastebin.com/vororifeku.vbs Jan 18 01:03:46 garbage gradle Jan 18 01:04:16 should i delete my gradle folder Jan 18 01:06:02 pfn: ideas ? Jan 18 01:11:46 no, I don't gradle, get it to produce actual output Jan 18 01:13:29 bubbely: i think he means try to run the command that gradle is choking on. the one that gradle is running when it tries to build Jan 18 01:13:47 ohhh Jan 18 01:13:50 how can i do that Jan 18 01:13:52 i would say, though, if you haven’t tried already, revert your repo by a couple of commits, clean, and try to build that first Jan 18 01:14:00 read through the logs and look for what it’s doing Jan 18 01:19:10 pfn: how Jan 18 01:33:11 pfn u there? Jan 18 01:34:08 bubbely, --stacktrace Jan 18 01:35:25 https://hastebin.com/qufijodivo.sql Jan 18 01:35:29 do u mean, assemble --stacktrace Jan 18 01:36:02 no, I mean whatever the message tells you to do Jan 18 01:36:08 gradlew --stacktrace app:assembleDebug Jan 18 01:37:23 https://hastebin.com/erorowevom.vbs Jan 18 01:39:48 bubbely looks like you're going to have to format your hd and reinstall the OS Jan 18 01:40:02 are you joking Jan 18 01:40:40 g00s ? Jan 18 01:41:18 bubbely what versions of things are u using ? Jan 18 01:41:50 gradle 2.2.3 Jan 18 01:42:49 plugin ? Jan 18 01:43:05 where do i find that Jan 18 01:43:22 anyhow, 2.2.3 is ancient. update to 3.3 Jan 18 01:43:35 and update gradle plugin to latest stable Jan 18 01:44:08 Why does Google play require your address for a merchant account? Is there a way around this? Jan 18 01:44:45 orbyt_ because you are the seller, not android - required by other countries tax codes Jan 18 01:44:58 in contrast, with apple, they are the seller and they cut you a commission Jan 18 01:45:07 Right, but they send your address to all buyers Jan 18 01:45:10 Which is nuts Jan 18 01:45:14 yup! Jan 18 01:45:18 so you can get a po box Jan 18 01:45:59 i just put in my state and country and it seems to be ok Jan 18 01:46:26 although they updated city, so i guess the must have pulled from data in my merchant account Jan 18 01:46:55 What did you put as your street address? Jan 18 01:48:49 Business is now located at 1 Mars Way, Mars City. ¯\_(ツ)_/¯ Jan 18 01:49:32 whatever fields you decide to put, put accurately Jan 18 01:49:43 you're not lying if you leave stuff out ;) Jan 18 01:50:01 if try getting away with just the country first Jan 18 01:50:12 The street address is required Jan 18 01:51:15 oh i guess they changed that then Jan 18 01:51:32 Note this is for the public business info Jan 18 01:51:41 The legal business info is all accurate **** ENDING LOGGING AT Wed Jan 18 03:00:00 2017