**** BEGIN LOGGING AT Wed Jul 27 02:59:58 2016 Jul 27 04:42:02 noticing in the Google Fit app, all the places you have to enter a #, like weight - they don't even bother using NumberPicker - just straight up EditText Jul 27 04:42:26 * g00s will too bwahaha, that was easy Jul 27 04:51:44 welp a couple days and I'll be back in charge of my embedded hardware Jul 27 04:52:02 ron_frown the android stuff ? haha Jul 27 04:52:12 the question is whether or not to actually go with android this time around Jul 27 04:52:26 its already is though, right ? Jul 27 04:53:05 yeah Jul 27 04:53:08 but believe me Jul 27 04:53:22 I've been waiting and waiting and waiting for android to turn it around Jul 27 04:53:26 and really not seeing a ton Jul 27 04:53:48 ron_frown but for an industrial controller, its usage should be pretty basic right ? Jul 27 04:54:02 i don't see how most of the crap we deal with would impact you guys Jul 27 04:54:08 critical stuff is offloaded Jul 27 04:54:11 and you have control of the HW Jul 27 04:54:13 dude just building software Jul 27 04:54:22 the gui toolkit is just assinine Jul 27 04:54:30 completely assinine Jul 27 04:54:49 lots of frameworks lots of toolkits and they do a much better job of handling diff form factors etc Jul 27 04:54:50 i guess the biggest issue as always would be device drivers Jul 27 04:55:21 and java Jul 27 04:55:35 I mean I'm betting newer version of java would make things mor epleasant Jul 27 04:55:37 but I'm over it Jul 27 04:55:40 go or c++ Jul 27 04:55:45 would be much more idael Jul 27 04:55:57 does go even have any gui toolkits ? Jul 27 04:56:59 c++ will never die :D Jul 27 04:57:06 nice Jul 27 04:57:12 go has CEF2 Jul 27 04:57:38 if you can get it to build i'd just stick with android ... Jul 27 04:57:56 esp since its not doing anything critical / real time Jul 27 04:57:57 not saying I wont use android for other stuff Jul 27 04:58:09 but Id really use something that was actually more reasonable Jul 27 04:58:10 qt Jul 27 04:58:12 or something Jul 27 04:58:33 ron_frown i can't image anyone solving those problems caring Qt vs android gui ... Jul 27 04:58:45 seems like the wrong thing to care about Jul 27 04:58:46 we manage the code 100% Jul 27 04:58:53 there is no clients building apps Jul 27 04:59:21 crap, as I iunderstand its actually feasible now to build a PURELY c++ app Jul 27 04:59:21 plus these days, probably easier to find android devs than Qt devs ha Jul 27 04:59:24 minus manifest Jul 27 04:59:32 I dont care Jul 27 04:59:38 end result is still java / andrdroid Jul 27 04:59:51 I'm that doen Jul 27 04:59:57 ude what does that say about me Jul 27 05:00:01 I'd honeslty rather write c++ Jul 27 05:00:25 the only reason i would care would be if the replacement HW was much cheaper Jul 27 05:00:44 like the OS was more efficient, so the controller could be more modest Jul 27 05:01:04 so os for os, running on same hardware Jul 27 05:01:05 mayeb pay more $$$ for parts handling higher temps Jul 27 05:01:10 win10 iot is slower Jul 27 05:01:14 I'd rather run iot Jul 27 05:01:21 because I can write apps in sane languages Jul 27 05:01:43 with sane toolkits Jul 27 05:02:03 yeah you pay for hardened hardware that has guarantees about lifetime Jul 27 05:02:14 we went through a couple memory modules in last gen Jul 27 05:02:54 I'd consider chrome Jul 27 05:03:04 but no idea what the logistics of that are Jul 27 05:03:19 is there some public repo you can kick out a build to run on x hardware? Jul 27 05:04:28 not androids fault Jul 27 05:04:42 but old boss insistend on taking a webapp designed to run on desktop Jul 27 05:04:47 and plop that in embedded webview Jul 27 05:04:51 man what a nightmare Jul 27 05:09:30 chrome would be easy enough to port to my hardware Jul 27 05:09:45 but dont know if html+js is going to be better performing than android =) Jul 27 05:10:09 ron_frown i've been using VS Code and love it :D Jul 27 05:10:19 vscode is pretty damn good Jul 27 05:10:22 even if you did nothing c# Jul 27 05:10:28 and just did web editing etc Jul 27 05:26:21 anybody active? Jul 27 05:27:06 i went for a run yesterday, does that count? Jul 27 05:28:16 how do you cancel a thread in android? pthread_cancel is not implemented Jul 27 05:28:35 do i need to cancel it? Jul 27 05:29:02 the thread is in a library. if JNI_OnUnload is called will the thread be killed already? Jul 27 05:35:53 Hey guys, new here, but familiar with custom ROM aspects. Trying to track down what might be making music players skip. The problem is, logcats don't seem to be much help, because it won't skip when it is plugged in, or when there is any other interaction with the device. Jul 27 05:36:43 When I'm trying to listen to music at work, I just wake the device, then put it back to sleep whenever it starts it, and that will usually stop it for 10-15 minutes Jul 27 05:37:40 I tried disabling deep sleep, and bumping up minimum cpu speeds, to see if that would help, but it had no effect, leading me to think that it is app related, not system/rom Jul 27 05:39:03 mark4 lol, bionic ftl Jul 27 05:45:23 yup Jul 27 05:45:50 they are never going to implement pthread_cancel Jul 27 05:47:43 so if i send a signal and a thread has initialized a signal handler for it that handler runs in the same thread right? Jul 27 05:47:50 interrupts that thread yes? Jul 27 06:31:55 Hi, where should I report a cmake issue in the last android studio 2.2 pre6 build? The provided android toolchain has CMAKE_FIND_ROOT_PATH_MODE_* set to BOTH, so it will also look on the host for all kind of librarys... Jul 27 06:59:18 I'm using assembleAndroidTest from command line to create the tests apk. However I want only 1 test to be in that apk. How do I exclude the other tests? Jul 27 07:38:10 how can i loop through all the extradata in an intent? Jul 27 07:41:49 impulse: Bundle has keySet() Jul 27 07:42:12 thanks i'll look that up Jul 27 07:47:35 hithere Jul 27 07:49:55 hey Jul 27 07:50:03 what do i need to import to use "Set"? Jul 27 07:50:25 umm Jul 27 07:50:39 the Set :o Jul 27 07:50:47 it was java.util.Set Jul 27 07:50:55 eeyup Jul 27 07:51:03 wish there was a way to find these things Jul 27 07:51:51 bpe, hi r u adq? :) Jul 27 07:57:12 impulse, like using a good IDE, perhaps even named "Android" studio? :P Jul 27 07:57:36 no thanks Jul 27 08:00:14 do i need root to pull my images through adb? Jul 27 08:02:15 you can pull files from storage and other accesible locations Jul 27 08:03:27 what about pictures in internal memory? this phone doesn't have a card slot Jul 27 08:04:22 i'm getting this from my intent: content://media/external/images/media/3075 Jul 27 08:04:30 but i can't find anything like that in the adb shell Jul 27 08:10:11 Because that's not a file URL Jul 27 08:14:04 pduin: couldn't even find . -name images Jul 27 08:15:48 Again, because that's not a file URL Jul 27 08:16:08 Not sure if you can query the MediaStore for a file URL Jul 27 08:16:13 in the shell Jul 27 08:17:01 can you please help me with understanding of this (I am not native speaker...)"We collect more limited information than you have access to as the app owner." - Do they collect something I am unable to see? Jul 27 08:17:18 pduin: is the mediastore a database? Jul 27 08:17:40 Something like that, yeah Jul 27 08:18:31 so even if i rooted my phone, i wouldn't see the pictures on the filesystem? Jul 27 08:18:51 You can Jul 27 08:18:53 pictures are stored in a SQLite database? Jul 27 08:19:00 ok so i need to root? Jul 27 08:19:07 that's why i can't see any images folder? Jul 27 08:19:12 No, references to the pictures are stored in the database Jul 27 08:19:20 i don't care about references Jul 27 08:19:27 i want to pull the file through adb Jul 27 08:19:43 Check /proc/mounts Jul 27 08:19:59 Your internal phone storage should be listed in there somewhere Jul 27 08:20:21 /dev/block/platform/msm_sdcc.1/by-name/userdata that looks promising Jul 27 08:21:48 combined with run-as Jul 27 08:21:50 should work? Jul 27 08:24:20 where can I find #android-dev logs? Jul 27 08:26:39 impulse: not sure, mount points seem to vary from device to device. You can try a few points, or you can try querying the mediastore from within an app to get the file path Jul 27 08:27:03 ok thanks Jul 27 09:05:31 bolovanos: This is IRC, unless some of the participants are logging, there are no logs. Jul 27 09:06:47 Thorbear, yes I am asking for logs of some always present bot - if there is any Jul 27 09:16:33 Hi guys, I have a weird issue .. Jul 27 09:16:53 I need to play a video from a URL, video is an mp4 Jul 27 09:17:20 this video works : http://www.sample-videos.com/video/mp4/240/big_buck_bunny_240p_1mb.mp4 Jul 27 09:17:40 this one https://crm.mifx.com/video/Kesuksesan%20Personal%20Melalui%20Networking%201.mp4 does not Jul 27 09:18:00 No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://crm.mifx.com/... typ=video/mp4 } Jul 27 09:18:15 any pointers? can it be related to the spaces in the url ? Jul 27 09:27:47 AlexandruM, what's your code for building the intent? Jul 27 09:33:05 String mp4File = "https://crm.mifx.com/video/Kesuksesan%20Personal%20Melalui%20Networking%201.mp4"; Uri uri = getUriFromUrl(mp4File); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(uri, "video/mp4"); startActivity(intent); Jul 27 09:44:04 I'd like to make an android library for an internal API, but I want to have automated build/CI stuff - what do people use for building android libraries from the command line? Jul 27 10:02:29 How would I go about setting up a timeout method which waits x seconds before stopping the process? Jul 27 10:03:31 For example, I have a connect button which I use to start the search for a specific BLE device. When the search is started, a loading indicator is shown and the screen is darkened. How would I go about returning to the screen after say 10 seconds of waiting for a connection? Jul 27 10:11:27 Is there a way to uninstall an app using UIAutomator? (without going to settings - may have different layout and text each device) Jul 27 11:10:39 Hello! I've got a bug where RecyclerView jumps up a little when switching page in a child ViewPager. scrollToPosition does the same exact jump Jul 27 11:13:31 nevermind Jul 27 11:13:34 found how to do it Jul 27 11:13:53 Used a CountDownTimer Jul 27 11:15:06 It happens only with the last position in the list Jul 27 11:49:26 As far as I can tell it has something to do with measuring item views Jul 27 12:02:44 Why don't we find fragment by its own ID rather than use its container which could contain multiple fragments? Jul 27 12:12:58 whats the equivilant of FragmentManager for an activity Jul 27 12:16:23 ActivityManager? Jul 27 13:01:47 hello Jul 27 13:11:16 we currently have a problem and i've been trying to find a solution for hours. the management of our company decided to move all development environments to windows10 hyper-v vm's. the only problem being we can't set up any local android vm's for development since we can't get inside the bios of the hyper-v guests to enable intel virtualization technology... have any of you been able to get Jul 27 13:11:22 an AVD working inside a win10 hyper-v vm? and if yes, how? Jul 27 13:12:43 i have to add that the status "windows 10 hyper-v vm" is non negotiable... yes i am already looking for a new job, but in the meantime it would be awesome if we could get this working Jul 27 13:16:00 BratwurstMitSenf: sorry, not familiar w/ hyper-v Jul 27 13:17:11 How does the open alpha testing work? Jul 27 13:37:56 markyosullivan: you upload an alpha version of your app and you can invite users via email to download that app Jul 27 13:38:30 Does anybody know why RecyclerView doesn't scroll to the last item in the list? Jul 27 13:38:44 With scrollToPosition() Jul 27 13:39:38 Does anyone have a Firebase-UI sample to implement?....the sample they provide is not clear at all Jul 27 13:39:58 I need to log people with email/facebook Jul 27 13:40:06 custom email, not only gmail Jul 27 13:41:47 loredan13: which layout manager are you using? scrollToPosition delegates to scrollToPosition of the layout manager Jul 27 13:43:17 alexfu: LinearLayoutManager, vertical Jul 27 13:43:28 Hey. I am trying to make an app from an old school project, and have a question about what should and should not be a fragment. This is the 'app' we created a while back. http://prntscr.com/by6cn5 Should I make the group of four buttons a single fragment, or should I create a fragment for each button? Jul 27 13:43:57 If you want, you can see the ápp' here: http://app.expeditie-malawi.nl/wminfo.html, just resize your window and refresh : ) Jul 27 13:43:58 loredan13: how far is it scrolling? Jul 27 13:45:42 alexfu: It shows the last item partially. It's not exactly the problem. The problem is that each item in the list has a ViewPager inside, and when I switch pages on the last item, RecyclerView jumps up Jul 27 13:46:29 alexfu: scrollToPosition doesn't get called, but when I tested, scrolling to last position makes it stop at exact same place Jul 27 13:47:30 loredan13: which probably has a different height and so the recyclerview row resizes.. i would say that's expected Jul 27 13:48:17 loredan13: sorry, first bit got chopped off... "you switch pages which probably has a..." Jul 27 13:48:34 alexfu: item consists of a ViewPager, LinearLayout with couple TextViews inside, couple more TextViews and another LinearLayout with an ImageButton Jul 27 13:49:19 alexfu: Nope, pages are simple ImageViews with centerCrop. They are the same size Jul 27 13:50:01 also, your view heirarchy sounds unnecessarily complex Jul 27 13:50:08 alexfu: And when it jumps up, it always leaves under ViewPager what looks like enough space for an ImageButton Jul 27 13:50:25 alexfu: Should I use RelativeLayout? Jul 27 13:51:11 loredan13: why do you have view pagers as recycler view rows in the first place? Jul 27 13:52:14 alexfu: they serve as image galleries for each item Jul 27 13:53:28 loredan13: how do you have the sizes of the image views defined? or rather, how is the size of the view pagers defined? fixed size? Jul 27 13:58:53 alexfu: ViewPager has fixed height of 0.6 display width Jul 27 13:59:29 alexfu: defined in onMeasure of ViewPager Jul 27 14:00:29 loredan13: when you say, "RecyclerView jumps up", you mean, it scrolls up and cuts off the bottom content? are you still able to scroll to the bottom when it does that? Jul 27 14:01:16 Any of you guys know of a good website that has good royalty free sound effects? Jul 27 14:05:43 alexfu: Yes Jul 27 14:07:42 loredan13: what does the child views in your view pager look like? Jul 27 14:08:01 alexfu: ImageView Jul 27 14:08:12 nothing else? Jul 27 14:10:15 alexfu: No, new ImageView(), setImageResource, setScaleType Jul 27 14:10:51 loredan13: what does the onMeasure of your ViewPager look like? Jul 27 14:12:26 alexfu: http://pastebin.com/aEvq0WcF Jul 27 14:12:56 alexfu: and, while we're at it, the list item: http://pastebin.com/bHUXtRuS Jul 27 14:15:17 loredan13: something is probably changing the height. i would try making all other views (expect your pager) in your list item to display none and see if it can be reproduced. Jul 27 14:17:19 I'm presuming that it's good practice to update the targetSdkVersion and compileSdkVersion in build.gradle to the latest stable version of android? Jul 27 14:17:31 At present, I'll be honest, and admit that I've just left both values at 21 because I know that works. Jul 27 14:17:49 alexfu: let me try that Jul 27 14:18:28 Does anyone know an open source app that has material design cards in it? Jul 27 14:21:02 Fyber: Google I/O app? Jul 27 14:21:51 alexfu: making everything but ViewPager gone did not help Jul 27 14:23:23 loredan13: ok, so in your onMeasure of your viewpager, i would make the height a fixed value and dont call super.onMeasure, instead call setMeasuredDimension Jul 27 14:23:45 and see if the problem can be reproduced then Jul 27 14:24:39 alexfu: making ViewPager gone with everything else visible did not help either, scroll to last position does not scroll to the bottom Jul 27 14:25:04 loredan13: something like.... int width = MeasureSpec.getSize(widthMeasureSpec); int height = 200; setMeasureDimension(width, height) Jul 27 14:26:50 alexfu: setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.getSize(heightMeasureSpec)); Jul 27 14:27:09 alexfu: I'm using fixed height spec Jul 27 14:27:54 alexfu: Still jumps up Jul 27 14:37:32 alexfu: Thanks, IRC didn't notify me until now for some reason. Jul 27 14:37:45 Is butterknife something I should be using for writing apps? Jul 27 14:38:01 Oh my flipping Jehovah, finding royalty free sound effects without attribution is so hard X_X Jul 27 14:38:08 I see it in a few open source projects, just wanted to ask for this channel's opinion Jul 27 14:38:50 VerbalKint: You have to pay for them :) Jul 27 14:39:26 I don't want to make an attribution popup X_X Jul 27 14:39:36 And most people won't give a damn about it Jul 27 14:39:44 Then pay for royalty/attribution free Jul 27 14:39:50 Fyber: hell no Jul 27 14:39:53 If you don't care then don't use it Jul 27 14:39:58 or hide it somewhere Jul 27 14:40:02 bottom of settings mabye Jul 27 14:40:50 Fyber: I'm using it pretty much everywhere Jul 27 14:41:19 Fyber: Except when it's just a couple of items in layout Jul 27 14:42:32 Any other ubiquitous things I can include to make life easier? Jul 27 14:44:02 Fyber: Not really. ActiveAndroid makes it sort of easier to work with sqlite database, but it lowers performance somewhat Jul 27 14:44:20 Fyber: Not much, as far as I know Jul 27 14:44:41 ok, I had never heard of butterknife so I was wondering if there was other stuff I was missing Jul 27 14:44:42 loredan13: replace MeasureSpec.getSize(heightMeasureSpec) with a fixed value Jul 27 14:45:13 https://developer.android.com/design/material/images/card_travel.png < I'm trying to make something that looks like this, but I can't get my cards to look like that. Jul 27 14:45:29 In the documentation it says I need to set properties, but I'm not sure where those go Jul 27 14:45:36 Fyber: pretty much everything else from Square :P Jul 27 14:45:50 g1bbs_: done :) Jul 27 14:45:55 g1bbs_: right Jul 27 14:46:02 Fyber: Retrofit Jul 27 14:46:36 That's the first thing I used, since I built the login screen before the rest of the app. Jul 27 14:47:15 alexfu: Set to 200, nothing changed Jul 27 14:47:20 Fyber: just, for the love of God, don't use AndroidAnnotations Jul 27 14:47:39 g1bbs_: what's that? Jul 27 14:47:48 That actually looks pretty good, why not? Jul 27 14:48:55 Fyber: it's great until 1) you have a new dev come on and they have to learn a whole new non-Android way to do things and 2) you get any error whatsoever so your intermediate files don't generate and you get to track through hundreds of lines of those errors before actually seing the real error Jul 27 14:49:18 #2 being much worse Jul 27 14:49:23 ouch Jul 27 14:49:28 fair enough Jul 27 14:59:02 hi guys Jul 27 14:59:17 zoraj_: hey Jul 27 14:59:26 how you doing ? Jul 27 15:00:10 How do I add something to a cardview? Jul 27 15:00:38 I tried adding a textview to it and aligning it to parent but it disappears. Jul 27 15:01:13 I'd like to put the three dot for each listview item Jul 27 15:01:23 how can I do that ? any path ? Jul 27 15:02:24 zoraj_: In Android Studio you can create the drawable with File -> New... -> Vector Asset, there is a list of predefined ones Jul 27 15:02:48 And then just add a ImageView with this drawable where you want Jul 27 15:03:33 well, let me see that thanks Jul 27 15:06:46 alexfu: so, any other ideas? Jul 27 15:10:13 alexfu: I am using 23.4.0, if that can be the reason Jul 27 15:12:31 alexfu: com.android.support:recyclerview-v7:23.4.0 Jul 27 15:22:06 Need a nice "positive" sound effect. Something Pavlovian that will trigger dopamine in their brains and rewire them in such a way that they'll want to waste more time on my app. Jul 27 15:25:15 I feel evil. Jul 27 15:31:01 hmm, is it possible to shuffle two diff' arrays [1,2,3] [x,y,z] with the same seed? Jul 27 15:37:15 VerbalKint, give away money Jul 27 15:40:12 [info] dex method count: 72413 Jul 27 15:40:15 huh? how is that possible... Jul 27 15:40:38 my counter must be busted or something Jul 27 15:40:58 oh, nevermind, I forgot, I aggregate my multidex counter Jul 27 15:41:59 pfn: what? Hell no Jul 27 15:42:29 VerbalKint: yay Jul 27 15:43:00 VerbalKint, then a sound effect alone isn't going to get you that Jul 27 15:44:04 pfn: get me what? Be considered evil? Jul 27 15:44:25 your pavlovian effect Jul 27 15:44:51 pfn: maybe, maybe no Jul 27 15:45:10 But it adds to the projection of quality surely Jul 27 16:11:14 just rip the coin sound from super mario bros Jul 27 16:11:26 that is a satisfying ding Jul 27 16:17:42 Is it just me, or has this channel been quieter the last few days? Jul 27 16:17:56 g00s is noticeably absent Jul 27 16:18:35 what is this "addTextChangedListener (TextWatcher watcher)" watcher? Jul 27 16:18:52 android is complicated that i thought Jul 27 16:18:55 than* Jul 27 16:20:54 * pfn shrugs Jul 27 16:34:04 Hey, I need serious help....does anyone know if I have to copy all the files in there to make it work? Jul 27 16:34:07 am using Facebook graph and need to get a users first name. I can get their full name but not just their first name for some reason... here is what im doing http://hastebin.com/oyajidatas.coffee anyone know whats wrong Jul 27 16:34:20 Hey, I need serious help....does anyone know if I have to copy all the files in there to make it work? https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md#configuration Jul 27 16:34:29 it seems a mega complicated structure Jul 27 16:34:43 j4f-shredder, just use gradle? Jul 27 16:35:00 didnt even click ur link, sorry, not sure what ur talking about :/ Jul 27 16:35:03 the project by itself works fine on genymotion Jul 27 16:35:11 oh hmm Jul 27 16:35:18 but when I try to integrate it to my project Jul 27 16:35:23 I don't know how to do it easily Jul 27 16:36:19 it says it exactly Jul 27 16:36:29 you add the dependency using gradle Jul 27 16:36:35 I did Jul 27 16:36:44 ok. so what’s your problem? Jul 27 16:36:51 my main question Jul 27 16:36:51 is Jul 27 16:37:11 what is the actual issue you’re seeing? What is the error message you’re getting? Jul 27 16:37:17 do I have to copy all those files? like for example, take a look at the AuthUI class Jul 27 16:37:30 if I include the dependency Jul 27 16:37:30 no, that’s what gradle is for Jul 27 16:37:36 it's supposed to let me use Jul 27 16:37:41 that class on my code? Jul 27 16:37:50 have u synced gradle Jul 27 16:37:53 yes! that’s the entire point of including the library in that way Jul 27 16:38:24 ok, I will try again my friend, thank you very much and sorry for the stupid question Jul 27 16:39:00 no question is stupid if its a real question; imo Jul 27 16:39:05 hi guys, i'd like to use an IntentService for it's higher priority with lifecycle, but there's no way for me to interrupt the background task? Do I need to use a regular Service then? Jul 27 16:39:12 thanks, I'm on primary school and I don't know any programming trying to get started Jul 27 16:39:27 maybe watch some tutes Jul 27 16:39:47 what's the best android resource? java seems ultra complicated Jul 27 16:40:01 probably not the best person to ask lol Jul 27 16:40:02 java Jul 27 16:40:07 everything with rare class names, using 10 classes for everything Jul 27 16:40:19 you don’t have to do that Jul 27 16:40:42 one more question Jul 27 16:40:59 the styles and the strings xml in that sample project Jul 27 16:41:08 will be available too if I include them with graddle? Jul 27 16:41:10 although you should split things up into multiple classes, rather than putting them all into big huge ones Jul 27 16:41:25 if they’re part of the library, yes Jul 27 16:41:36 perfect Jul 27 16:42:04 anyone used facebook graph api stuff? Jul 27 16:42:05 https://github.com/firebase/FirebaseUI-Android/tree/master/auth/src/main/res Jul 27 16:42:15 that folder Jul 27 16:46:00 hi, need a suggestion. what is best way to integrate json services? Jul 27 16:46:46 actually use urlconnection with Gson. i read some high level library but i dont know if they are stable and durable Jul 27 16:47:48 they’re fine Jul 27 16:48:35 which are most used? Jul 27 16:48:46 those are fine. retrofit is used a good amount Jul 27 16:49:00 if you already have something working, though, stick with it unless there’s a problem Jul 27 16:50:22 yes, the question is for new project Jul 27 16:51:01 the answer is both are fine Jul 27 16:51:25 volley is abbandoned, true? Jul 27 16:51:30 what does setChoiceMode do for listviews? Jul 27 16:51:42 i wouldn’t use volley, no Jul 27 16:52:28 why? Jul 27 16:52:36 cause it’s a pain in the aass Jul 27 16:52:37 ass Jul 27 16:52:54 i read about volley, retrofit and robospice Jul 27 16:53:12 never heard of robospice Jul 27 16:53:28 but play around with the ones you’re thinking of, and see which one you like more Jul 27 16:53:46 https://github.com/stephanenicolas/robospice Jul 27 16:54:10 yes, i just ask opinion Jul 27 16:54:42 didn't like volley, retrofit is much nicer Jul 27 16:54:58 I have a list of ~1000 items that I need users to select one of, is there a built in library that enables that? Jul 27 16:55:05 SInce there's so many I'll need search. Jul 27 16:55:22 you’ll probably be using a listview/recyclerview to display them Jul 27 16:55:30 and a searchview to enable filtering Jul 27 16:55:48 So I start a new activity that has this? Jul 27 16:56:08 that’s unrelated to the question Jul 27 16:56:59 I have a login screen and I need to have the user select an endpoint. I just put a button there that starts a new intent and somehow returns what the user picked? Jul 27 16:57:19 how you work it into your app is up to you Jul 27 16:57:41 I'm asking if there's a best practice way Jul 27 16:58:03 there’s not, although I would suggest splitting it up Jul 27 17:00:47 Another related question: I have a massive (1MB) json file that has this list and other relevant data. If I want to use retrofit to parse that It'll make hundreds of objects... Jul 27 17:00:55 will that significantly slow things down? Jul 27 17:02:44 gson is slow at parsing 1mb Jul 27 17:06:18 Why gson? Doesn't android have a built-in parser for that? Jul 27 17:07:14 Fyber: depends on how you do it. As far as I remember gson has 3 types of parsing Jul 27 17:07:44 no, it doesn't Jul 27 17:07:50 not a usable parser Jul 27 17:08:14 I'm not using gson directly, I'm using it through retrofir Jul 27 17:08:26 so even if it did I don't think I could choose what parse method Jul 27 17:08:49 Fyber: yes, faster method requires custom code Jul 27 17:09:18 It doesn't need to be fast, it only happens the first time the user opens the app Jul 27 17:09:24 It just needs to not die on older phones Jul 27 17:10:19 the memory issue isn't a problem Jul 27 17:11:28 s73v3r loredan13 about retrofit: some services use non json data, like specific header. can i do this to retrofit request? Jul 27 17:11:38 am using Facebook graph and need to get a users first name. I can get their full name but not just their first name for some reason... here is what im doing http://hastebin.com/oyajidatas.coffee anyone know whats wrong Jul 27 17:13:01 xan_IT: headers has nothing to do with body parsing Jul 27 17:13:23 yes, but i can access to retrofit request? or is wrapped? Jul 27 17:14:03 ok thank you everyone, I will try it the regular way Jul 27 17:14:26 xan_IT: you can access response headers with retrofit2, yes Jul 27 17:15:31 xan_IT: you just have to wrap your return in a Response object.. i.e. Response Jul 27 17:15:41 alexfu i need to put session in header and read some other header. i can do this with retrofit? Jul 27 17:16:32 xan_IT: Retofit uses OkHttp and you can configure OkHttp to do what you need via interceptors Jul 27 17:17:07 ok perfect. my fear is all http layer are wrapped and not accessible Jul 27 17:17:56 how do i make a horizontal list view? Jul 27 17:18:17 ive looked at TwoWayView but it seems the project might have stopped Jul 27 17:19:11 thornekey: you could use RecyclerView Jul 27 17:19:33 Hmm, would i have to change much from what i have ? Jul 27 17:19:43 no Jul 27 17:20:24 has anyone seen the new facebook messenger where it has the sideways scrollable thing that has ur supposedly favorite people to msg.. thats what im tryna achieve Jul 27 17:21:08 pfn, reason i ask is because i made this adapter (which i found quite hard (newb)) that fills the list Jul 27 17:21:55 changing the adapter isn't very hard Jul 27 17:21:56 use a recyclerview with horizontal linearlayoutmanager Jul 27 17:22:25 would anyone mind walking me through it :) Jul 27 17:22:56 thornekey: with recyclerview, you change the layout manager to change the way items are laid out Jul 27 17:23:03 i see Jul 27 17:23:06 Hmm Jul 27 17:23:14 adapter only supplies the view for the data Jul 27 17:24:00 layout manager determines how each row is laid out Jul 27 17:24:11 ohk Jul 27 17:24:43 so say i had only a few items in it that didnt make it need to be scrolled could i make those center in the view itself with this Jul 27 17:25:30 * Napalm sighs Jul 27 17:26:14 you could, but it wouldn’t be worth the effort Jul 27 17:26:20 ahk Jul 27 17:33:19 thornekey: if you need this horizontal list to be able to page throught items, you might be better off with a ViewPager Jul 27 17:33:43 that’s only if they want to change views Jul 27 17:33:53 if it’s a list, then a recyclerview would be better Jul 27 17:41:47 How do I manage cookies in Android? Jul 27 17:41:53 Here's my current solution http://hastebin.com/pisozasego.axapta Jul 27 17:42:00 I can't figure out why it's broke Jul 27 17:42:28 Retrofit2/OkHttp3 Jul 27 17:43:16 Fyber: cookies are usually set by the server Jul 27 17:43:33 Yup, I need to store them and send them back later. Jul 27 17:44:31 what's wrong with it? Jul 27 17:44:51 It sends the request but it doesn't send the cookies with it Jul 27 17:45:20 So either a) it can't store it and/or b) it can't retrieve it Jul 27 17:46:14 Fyber: https://github.com/square/okhttp/blob/f91f97795b6fc3ccfec3d2ec4ea46abe733012df/okhttp-tests/src/test/java/okhttp3/CookiesTest.java Jul 27 17:47:21 ph hi there Jul 27 17:47:32 Yeah, I think I'm setting them correctly, somewhere along the line it gets lost Jul 27 17:47:38 Returns or stores no cookies Jul 27 17:47:49 even though charles says it is getting cookies Jul 27 17:53:52 Fyber: have you actually checked the shared prefs file to see if it's in there? Jul 27 17:54:09 No idea how to check Jul 27 17:54:22 Fyber: adb shell Jul 27 17:54:32 eun-as YOUR.PACKAGE.NAME Jul 27 17:54:37 run-as YOUR.PACKAGE.NAME Jul 27 17:54:49 more sharedprefs.xml Jul 27 17:55:27 more: sharedprefs.xml: No such file or directory Jul 27 17:55:45 debugging 101.. adb shell into a rooted device OR an emulator and cd to /data/data/com.yourpackage Jul 27 17:56:13 then ls and you'll find the shared prefs dir/file Jul 27 17:56:42 it's not in there Jul 27 17:56:44 Fyber: ls -l Jul 27 17:56:46 no cookies Jul 27 17:56:52 yeah I figured it out :) thanks Jul 27 17:57:14 (not the cookies thing, the sharedprefs thing) Jul 27 17:57:32 I didn't need a rooted device, it let me cd into it Jul 27 17:58:04 So the issue lies with how cookies are being stored Jul 27 17:58:37 That's the one that I wrote, figures. Jul 27 17:58:40 Fyber: uh.. you're not committing/applying the shared prefs changes Jul 27 17:58:54 see, I knew it'd be something stupid Jul 27 18:04:24 has anyone ever done clustering with google maps? I see there are google-maps-utils that have clustering, but we're looking to cluster at specific distances, and I'm not sure that functionality is readily available. Jul 27 18:18:46 having to almost totally rewrite code thats been working perfectly for almost 2 years due to google pulling a rug out from under me is a major pita but therese an up side Jul 27 18:18:55 my library is about 20k smaller now Jul 27 18:19:06 tho not yet in a working state Jul 27 18:19:34 the down side is that it is probably going to run significantly slower than it did before. Jul 27 18:21:41 I need help please, I included a dependency on gradle Jul 27 18:21:42 https://github.com/firebase/FirebaseUI-Android/tree/master/auth Jul 27 18:21:57 but the constants that uses there in the example Jul 27 18:22:01 are not defined Jul 27 18:22:06 when I sync the project Jul 27 18:22:17 how can I retrieve those constants Jul 27 18:22:29 RC_SIGN_IN Jul 27 18:22:32 what constants? Jul 27 18:22:34 in the readme they use Jul 27 18:22:41 did you import the class? Jul 27 18:22:43 that constant for onActivity result Jul 27 18:23:09 I imported what android studio told me with alt+enter Jul 27 18:23:27 did you look at the code to make sure that constant was still there? Jul 27 18:23:30 and in that readme it doesn't mention any import that should be made Jul 27 18:23:42 I will check taht Jul 27 18:23:42 the readme isn’t going to mention it because it’s implied Jul 27 18:23:49 you have to import a class if you’re going to use it Jul 27 18:24:44 "Error while waiting for device: abd connection not available, or was terminated." I can build my (newly migrated to Gradle) project without errors, but when I try to run it in an EMU I get this message, I've tried many things from google nothing working so far Jul 27 18:24:54 anyone an expert at troubleshooting this error? Jul 27 18:27:19 the guy defines it in a sample consumer project of that other auth service Jul 27 18:27:19 private static final int RC_SIGN_IN = 100; Jul 27 18:27:25 j4f-shredder: i looked at the example .They’re doing that in StartActivityForResult Jul 27 18:27:33 yes. You have to define that constant in your code Jul 27 18:27:41 https://developer.android.com/training/basics/intents/result.html Jul 27 18:27:52 perfect, that is quite lame right?...cause it should be braught by the gradle Jul 27 18:28:00 no, it’s not lame Jul 27 18:28:05 they don't even mention it on the readme Jul 27 18:28:08 it’s how you use startActivityForResult Jul 27 18:28:16 they don’t mention it because they assume you know Android programming Jul 27 18:29:04 that parameter is a request code that you send with the Intent. When you get called back in onActivityResult, they give you that code back, so you can tell what result is coming back Jul 27 18:30:13 perfect Jul 27 18:30:16 that's good Jul 27 18:30:35 yeah, I know what you mean, but they could do everything much better if they documented everything Jul 27 18:30:44 at least that's the way I like it Jul 27 18:30:58 again, that’s not part of their library Jul 27 18:31:03 it’s part of Android Jul 27 18:31:13 so, this is pretty common right? Jul 27 18:31:18 having a project sample Jul 27 18:31:18 yes Jul 27 18:31:23 with the library they are presenting Jul 27 18:31:31 somewhat Jul 27 18:31:42 and a "consumer" activity that shows you how to implement it and doesn't come with the graddle Jul 27 18:32:40 it shouldn’t come with the gradle Jul 27 18:32:45 implementing this multiple credential service is hell Jul 27 18:32:55 I'm learning a lot though Jul 27 18:33:16 this is my only option, that's why I'm trying so hard to implement it Jul 27 18:33:27 but noone talks about firebase UI Jul 27 18:33:31 it's not popular at all Jul 27 18:37:50 the thing that confuses me about that library as well is that it doesn't tell you in which activity implement it....I havea login screen activity and a main activity, I guess I should put it only on the login activity and a listener in the main activity, but it doesn't say there what to do after you log in Jul 27 18:38:16 it doesn’t matter what activity Jul 27 18:38:28 the library doesn’t have an opinion on that Jul 27 18:40:34 you are good giving answers, you helped me a lot Jul 27 18:40:56 I guess I have to get used to conventions Jul 27 18:41:00 that's where I'm failing Jul 27 18:48:25 let me see if I understood correctly Jul 27 18:49:54 on an Activity you have only one onActivityResult but you can throw multiple startActivityForresult with different codes and then catch them on onActivityresult andact accordingly? Jul 27 18:50:07 yup Jul 27 18:50:26 perfect Jul 27 18:50:32 thx Jul 27 18:50:59 although i would suggest that, in onActivityResult, when you determine what result came back, you call out to a new function, rather than try to fit all of that in one big monster function Jul 27 18:52:44 s73v3r thank you sooo much dude, I could do it after a couple of days of struggling, give me your email and I'll try to ship you a bottle of wine Jul 27 18:52:55 it's workingg Jul 27 18:53:38 The API sends back "Internal Server Error" when I make a call from Android, works fine in python. The only difference syntactically is keep-alive. Jul 27 18:53:51 Does anyone know how I can use keep-alive Jul 27 18:53:56 with retrofit2 Jul 27 18:59:17 phone connected to pc, shows up in device manager, AS2.1 tells me "error running app, No target device found" Jul 27 18:59:35 tried everything listed on google that I can find Jul 27 18:59:38 nothing fixes this Jul 27 19:00:11 azv4: you're using windows? Jul 27 19:00:16 alexfu, yes Jul 27 19:00:31 azv4: did you install USB drivers for adb? Jul 27 19:00:51 alexfu, where do I get those? the phone's drivers are installed on the dev machine Jul 27 19:01:07 azv4: you read through https://developer.android.com/studio/run/oem-usb.html ? Jul 27 19:01:08 there are special drivers for Android 2.1 that weren't necessary for 1.5? because this worked fine in 1.5 Jul 27 19:01:18 how to override attribute in parent theme? say I have theme "MyTheme parent=Theme.Leanback". And I want to change attribute "defaultBrandColor" defined in parent theme "Theme.LeanbackBase Jul 27 19:01:31 alexfu, I went through that a year ago when I initally set this up in 1.5 Jul 27 19:01:43 if it was working previously, it should be fine. you restart adb ? Jul 27 19:02:11 Ive restarted abd, restarted AS, rebooted several times... Jul 27 19:03:23 I just tried to update the drivers and got, "best drivers are already installed" Jul 27 19:03:33 after pointing to the google drivers in the SDK folder Jul 27 19:05:39 no idea then Jul 27 19:06:07 Ive never gone through any process in any IDE that had so many errors that had no solutions on google Jul 27 19:06:20 im in day 4 of trying to migrate this project to newest version of AS Jul 27 19:06:24 azv4 time to re-install the os ;) Jul 27 19:06:30 and its been the most painful and annoying process I've ever seen Jul 27 19:06:35 this computer is less than 2 months old Jul 27 19:06:40 jk Jul 27 19:06:58 azv4: what does adb devices say? Jul 27 19:07:26 Anyone know of a good library for runtime permissions? Dexter seems worse than just using the raw API with no library wrapper Jul 27 19:07:29 alexfu, in device manager? "SAMSUNG Android ABD Interface" Jul 27 19:07:46 azv4: ? no.. i mean in your command line Jul 27 19:08:05 did you put the phone in to developer mode and enable USB debugging? Jul 27 19:08:15 yes did all of that Jul 27 19:08:21 the phone even shows up in Android Monitor Jul 27 19:08:38 I select it, but it says, "no debuggable applications" beside where you choose the phone Jul 27 19:08:46 and there are no other options Jul 27 19:08:59 does adb devices list it? Jul 27 19:09:06 where is that? Jul 27 19:09:12 command line Jul 27 19:09:16 you know Jul 27 19:09:18 terminal Jul 27 19:09:18 Terminal? Jul 27 19:09:26 cmd.exe Jul 27 19:09:27 power shell Jul 27 19:09:29 what is the command to check? Jul 27 19:09:33 adb Jul 27 19:09:34 adb devices Jul 27 19:09:35 devices Jul 27 19:09:56 those arent recognized commands Jul 27 19:10:02 ls Jul 27 19:10:08 you need to make sure adb is on your path Jul 27 19:10:26 step 1: uninstall Windows and install Linux Jul 27 19:10:30 They're talking about Firebase disaster on Reddit /r/androiddev Jul 27 19:10:38 I'd love to, but 95% of my dev time is in Visual Studio Jul 27 19:10:54 step 2: install a windows vm on linux Jul 27 19:10:55 Ologn: new one, or the thread from yesterday? Jul 27 19:11:01 which honestly has 10x better support and far less guess work Jul 27 19:11:10 no offense to any diehard android devs Jul 27 19:11:16 but its just my opinion from my point of view Jul 27 19:11:25 azv4: no, it doesn't Jul 27 19:11:28 yes it does Jul 27 19:11:29 it’s just that you’re new Jul 27 19:11:32 no, it doesn't Jul 27 19:11:35 again, this is a subjective conversation Jul 27 19:11:55 Ive never once google an error message related to VS and come up so dry as I do with this stuff Jul 27 19:12:16 * azv4 laughs at googling VS issues instead of Bing'ing them! Jul 27 19:12:33 funny how google search works better than bing even for M$ related topics Jul 27 19:12:42 not to get off topic Jul 27 19:12:51 I agree this probably is related to me being new Jul 27 19:13:02 I just am at a loss at this point Jul 27 19:13:06 azv4: run adb from your android sdk folder Jul 27 19:13:24 $ANDROID_SDK/platform-tools/adb Jul 27 19:13:50 pops up then disappears Jul 27 19:13:57 trying to remember how to force the term to stay open Jul 27 19:13:59 well run the adb devices command Jul 27 19:14:03 not just adb Jul 27 19:14:04 no, don’t double click it, type it into the terminal Jul 27 19:14:38 azv4: cd $ANDROID_SDK/platform-tools Jul 27 19:14:45 azv4: adb devices Jul 27 19:14:58 and in the future, you might want to add that directory to your path Jul 27 19:15:00 I just ran it Jul 27 19:15:14 what am I looking for? Jul 27 19:15:21 -l? Jul 27 19:15:25 what does it say? Jul 27 19:15:29 is your device listed? Jul 27 19:15:47 there are no devices listed, I just get about 10 miles of commands and desscriptions Jul 27 19:16:02 what exactly did you type? Jul 27 19:16:10 adb.exe Jul 27 19:16:24 you need to type adb devices Jul 27 19:16:26 adb.exe devices Jul 27 19:16:28 or adb.exe devices Jul 27 19:16:42 i feel like im on repeat Jul 27 19:16:43 adb server version (32) doesn't match this client (36); killing... Jul 27 19:16:43 * daemon started successfully * Jul 27 19:16:43 d564896a device Jul 27 19:17:36 i would adb.exe kill-server and adb.exe start-server and see if AS picks it up then Jul 27 19:18:27 hmm, seems like something different might be happening here Jul 27 19:19:13 well I officially love you guys Jul 27 19:19:20 No homo :) Jul 27 19:20:19 * azv4 beats BasedGob with a gay penguin for hate speech Jul 27 19:20:49 >.< I'm just joking around Jul 27 19:20:57 it’s still not cool Jul 27 19:20:59 I'm so stoked right now that the app (even with its mysteriously altered color scheme) is running on this phone right now Jul 27 19:22:55 What aspect of the color scheme, like the bar on the top? Jul 27 19:25:48 BasedGob, that turned blue, but the text is dark grey over black now, and white on white for comboboxes Jul 27 19:27:18 I think the old custom theme dev.old defined used an old schema that is no longer supported in this newer SDK Jul 27 19:27:30 but honestly I'm still green enough that I am not sure where these definitions even reside Jul 27 19:28:19 azv4: Mess with some of the colors in res/values/colors.xml Jul 27 19:28:30 styles.xml or themes.xml Jul 27 19:28:51 I have a styles.xml only, and it only has one entry Jul 27 19:29:16