**** BEGIN LOGGING AT Wed Jan 04 03:00:03 2017 Jan 04 05:04:31 Evening. Jan 04 05:06:33 hi Jan 04 05:07:22 So, I'm looking at this existing code. Jan 04 05:07:39 And it's pretty cluttered and crufty, the guy who wrote it was bright but this was one of his earlier projects. Jan 04 05:08:08 I understand the general concept of the role the Activity plays, in this case it's a sort of google maps type UI (using mapbox). Jan 04 05:08:48 Sorry, I guess what I'm trying to ask is, what are the usual patterns and strategies android app developers use to keep the code clean? Jan 04 05:11:28 Other than, of course, use several Activities to keep code for logically grouped behaviors distinct. Which in this case, doesn't quite work because they all have to be looking at the MapBox UI. Jan 04 05:11:50 Though I guess I could just make several Activities each with their own MapBox display, and different features one each. Jan 04 05:15:41 not sure what you're doing or what mapbox is, but if you want to add/remove detail it seems more logical to just have one activity/fragment and add 'layers' Jan 04 05:25:47 mapbox is a lib to do a google maps style interfce. Jan 04 05:26:25 It shows the location of a drone. Jan 04 05:26:32 The user uses it in one of three ways to move the drone around. Jan 04 05:26:42 1) virtual joystick to steer the drone directly Jan 04 05:26:57 2) set waypoints and the drone goes from waypoint to waypoint. Jan 04 05:27:22 3) define an area via drawing a polygon and the drone applies a pattern search to the area. Jan 04 05:27:38 Er, where "It" in this case is the app I'm looking at, not mapbox. Jan 04 05:27:43 mapbox.com Jan 04 05:28:30 I'll probably set up a separate activity for configuration management and etc... picking the drone you're working with, and loading/saving sets of waypoints. These are currently not possible in the app, but first I'm trying to clean it up and make it more stable. Jan 04 05:36:30 puff maybe just have 1 activity and switch between several fragments ? Jan 04 05:36:46 you can even use bottom navigation from the support library now Jan 04 05:36:54 give your app a fresh 2017 look Jan 04 05:36:55 :D Jan 04 05:38:02 g00s: Thanks. Jan 04 05:39:06 yuck, not bottom navigation... no.... :( Jan 04 05:40:00 bankai_: Okay :-) Jan 04 05:40:46 Currently the app is used on a tablet in landscape mode, with a menu bar down the let edge of the menu, and some sort of half-assed tab scheme. Also a few items in an upper-left corner menu. Jan 04 05:41:09 The tab thign is a button at the top of the left edge menu bar that switches between waypoint definition and area polygon. Jan 04 05:41:28 Switches the rest of the buttons in the left edge menu bar between waypoint / area polygon. Jan 04 05:41:56 I'm not too hung up on that now, though I'm planning to ask my designer friend to look at the UX aspects with me, later. Jan 04 05:42:36 puff oh, bottom nav looks kinda crappy on tablets Jan 04 05:43:34 android tablets are going extinct though, so does it matter ? :P Jan 04 07:18:30 why isnt this shit namecheap certificate works with okhttp/retrofit? throws CertPathValidatorException Jan 04 07:31:54 because you suck Jan 04 07:32:12 \: Jan 04 07:32:32 seems they use comodo so you just didnt install the fully chained version of the cert Jan 04 07:32:33 including the cert in the app seems tarded Jan 04 07:32:43 it is comodo Jan 04 07:33:19 install where deebo ? Jan 04 07:33:20 you (or whoever manages the endpoint) has to install the intermediate certificates in the chain to the comodo cert Jan 04 07:33:26 server/client side? Jan 04 07:33:50 where can i make sure they havnt done so? i can view the cert in firefox Jan 04 07:34:02 use sslpoke Jan 04 07:34:17 coz the system guy will say, oh, but it works on ios Jan 04 07:35:51 deebo: do i need to do anythin from the client side to connect to https? coz i just changed the base url from http to https Jan 04 07:37:20 sorry don't have time to help with this Jan 04 07:38:12 np Jan 04 07:39:14 I have applicationIdSuffix in both my debug buildtype and alpha flavor and both their suffix are getting applied, is there a way to override changes of debug in alpha? Jan 04 07:52:56 raoul11: ssl cert stuff can be messy... are you in control of the server-side? Jan 04 07:53:10 not me personally Jan 04 07:53:58 http://stackoverflow.com/questions/6825226/trust-anchor-not-found-for-android-ssl-connection Jan 04 07:54:03 seems like deebo was correct Jan 04 07:54:16 yeah, I have done this in the pat Jan 04 07:54:17 past Jan 04 07:58:46 Leeds, just checked with openssl, and it does report the same wrongish behavior Jan 04 07:58:58 * raoul11 launches a nuke attack on the system guy Jan 04 08:01:36 FWIW, I used the ssl labs tester to get my setup... well, better if not 100% correct Jan 04 08:05:29 wondering though why that pos cert works on ios though Leeds Jan 04 08:06:08 retrofit/okttp doesnt really need an additional configuration for ssl? tried stackoverflow https api, and it works out of the box Jan 04 08:07:01 i stumblen on ssl bug in android 4.2 so i was like "fsck it" and made the okhttp accept all certs in 4.2 Jan 04 08:07:08 pretty sure the issue isn't on the retrofit side, it's on the server Jan 04 08:07:15 it's possible ios is less strict Jan 04 08:11:32 shame on u Ashiren /: Jan 04 08:12:26 Leeds, considering it accepts SO certs without an issue, and veryfing openssl does return untrusted, its probably the server side Jan 04 08:20:35 Leeds cheap ride home! https://www.bloomberg.com/news/articles/2017-01-03/china-starts-freight-train-to-london-as-xi-promotes-trade-ties Jan 04 08:21:08 15 days or so? Jan 04 08:22:28 I'm fairly sure the whole thing is a bit of a publicity stunt, to be honest - it doesn't have the volume of sea shipping, or the speed of air, so unless it's *really* cheap it's not very useful Jan 04 08:45:16 Hello. I have made my apps in Appcelerator before and now started android studio. What i noticed is a very choppy and slow emulator. Clicking things takes 1-3 seconds to react. normal? Jan 04 08:46:24 hm? that was normal on old emulator Jan 04 08:46:27 using genymotion btw Jan 04 08:46:35 nowadays emulator is virutal machine Jan 04 08:46:39 or use genymotion Jan 04 08:48:40 yes, using genymotion Jan 04 08:49:45 hmm so maybe switch to regular android emulator Jan 04 08:50:12 the appcelerator emulator was faster? Jan 04 08:58:38 anyone using recyclerview-animators Jan 04 08:58:38 ? Jan 04 08:59:04 works on first batch of results, additional changes to the RV doesnt trigger any animation Jan 04 09:01:20 Is there a way to make mock locations relieable? It keeps jumping between the mock location and my real one. Jan 04 09:04:07 I'm using an app called "Fake GPS Location PRO" as the mock location provider, have selected is an an app for simulated locations and set my location mode to device only. But it still keeps jumping. Jan 04 09:11:07 Might be caused by an issue with nexus 6... trying a different phone. Jan 04 09:19:02 Ashiren: Sorry late reply. Yes, Appcelerator used the same emulator and it was lightning fast Jan 04 09:32:13 anyone have a code snippet or github example of performing database update operations in a background thread? maybe asyncqueryhandler or asynctask? I can't find any decent examples in stackoverflow Jan 04 10:13:09 Hi! could someone please explain me +- how to send push notifications ? Jan 04 10:13:28 Read the FCM guide? Jan 04 10:13:37 That is, firebase cloud messaging Jan 04 10:13:41 no Jan 04 10:13:54 :O Jan 04 10:14:52 i read https://developers.google.com/web/fundamentals/engage-and-retain/push-notifications/ Jan 04 10:16:04 That's for web, similar but not relevant to you Jan 04 10:16:42 so i need to install an FCM in my server ? Jan 04 10:16:49 no. Jan 04 10:16:52 go read the guide. Jan 04 10:17:50 ok Jan 04 10:21:08 i cannot use google servers to push... i need to push from own server without passing over google or any other server Jan 04 10:21:20 this is possible ? Jan 04 10:21:49 On devices running Android 6+, not really. Jan 04 10:22:01 Unless you're fine with the pushes only arriving when the device is on Jan 04 10:22:13 (screen is on I mean) Jan 04 10:22:23 right Jan 04 10:22:39 thanks for this info Jan 04 10:25:10 Mavrik: why only when the screen is on ? Jan 04 10:45:46 Hi guys, Is there a way to get live log on screen using adb while flashing zips, ROMs, etc? Jan 04 10:51:19 android-dev466: this is not a programming question, ask in #android-root Jan 04 10:52:05 @thepoosh Thanks mate, I'll do. Sorry new here, so didn't know the rules. I'll follow. Thanks again. Jan 04 10:52:11 no worries Jan 04 11:20:45 Question about NDK, .mk files and OpenCV. OpenCV.mk contains "define add_opencv_module ..."; as I understand it it's a function of sorts? And I need to "call add_opencv_module something" to invoke it from my main Android.mk to add module's libXXX.a for linker to find that lib. What's the syntax of "call something" with an argument? I get "missing separator. Stop." error :( Jan 04 11:43:47 hi all Jan 04 11:44:00 can someone recommend a remote device testing service I can use please Jan 04 11:44:12 I need to urgently test an APK on a 7" and 10" tablet selection manually. Jan 04 11:44:41 we have some 600/720dp views that are failing as the dev used 'dp' rather than 'sp' for fonts, and text is overflowing their textlayout :o Jan 04 11:45:24 samsung remote test lab? Jan 04 11:57:41 hey rops Jan 04 12:00:53 anything beyond that? Jan 04 12:14:02 michael_mbp, why don't you spawn an avd or a vm simply? Jan 04 12:14:21 otherwise there are many online services, i heard about genymotion cloud for remote vm testing Jan 04 12:35:23 Leeds, that ssl fukup was fixed on server side Jan 04 13:03:11 Hello. I am using DownloadManager for downloading a file. Everything works fine on SDK >= 21, however I get ERROR_FILE_ERROR on lower versions. Does anyone have any experience with this? Jan 04 13:04:40 this hangs: ssh shell@noa "su; input keyevent 19" Jan 04 13:04:53 but if I just ssh shell@noa and the su and the rest it works Jan 04 13:06:26 try su -c "input keyevent 19" Jan 04 13:06:36 tx Jan 04 13:06:42 yeah? Jan 04 13:06:47 :D Jan 04 13:06:56 how are you :D Jan 04 13:07:07 Not too bad. Jan 04 13:07:09 You? Jan 04 13:07:20 Ashiren: that works! Jan 04 13:07:32 tx, feeling rather thankful today Jan 04 13:07:43 nice Jan 04 13:07:44 why is that? Jan 04 13:07:53 cause Ashiren helped me Jan 04 13:07:58 wee Jan 04 13:08:11 I don't feel thankful today. Jan 04 13:08:20 Ashiren hasn't helped me yet. Jan 04 13:08:22 :( Jan 04 13:08:36 brush your teeth after every meal Jan 04 13:08:38 better? Jan 04 13:09:48 Ashiren: Thanks mate. Jan 04 13:09:53 You're a real pal. Jan 04 13:12:05 Does anyone know how I can disable the screen from timing out within my app? I tried getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); but that doesn't seem to work Jan 04 13:13:01 do I need to do it with WAKE_LOCK? Jan 04 13:15:26 oh no, I just read WAKELOCK was deprecated in API17 in favour of FLAG_KEEP_SCREEN_ON Jan 04 13:33:29 raoul11: HAI Jan 04 13:33:38 hi Jan 04 13:33:50 thepoosh Jan 04 13:33:55 i am sufferin buddy Jan 04 13:34:04 wher ya been all day Jan 04 13:34:10 na u ok Jan 04 13:34:15 you just need to code more Jan 04 13:34:15 \: Jan 04 13:34:17 and have more coffee Jan 04 13:34:38 just hade some, am set. finally figured out recyclerview on click Jan 04 13:34:50 for diff parts of the view elements Jan 04 13:34:59 raoul11: oh, they are pretty cool Jan 04 13:35:03 probably leakin allover but who cares \: Jan 04 13:35:05 but very different that listview Jan 04 13:35:27 i have seen over 300 different ways to implement it thepoosh Jan 04 13:35:48 well, it should be in the ViewHolder class Jan 04 13:35:50 and on each one theres a guy sayin: "yeah nice, but leaking" Jan 04 13:36:36 i set it under the recyclerview adapter Jan 04 13:36:43 wut Jan 04 13:37:14 yessir Jan 04 13:37:23 workin /: Jan 04 13:37:28 what do you mean? Jan 04 13:38:28 from the onBindViewHolder i set the onClickListener to a class member listener like: textView.setOnClickListener(customListener) Jan 04 13:39:09 why should it be on the holder class? Jan 04 13:39:36 Set it in your ViewHolder or onCreateViewHolder, no need to create a new listener every time you bind Jan 04 13:39:44 hmmm, the best course of action IMO is to have an onClick in the ViewHolder creation using data that is being set to the VH on every call of onBindViewHolder Jan 04 13:41:00 SimonVT has a point, you create an onCLickListener in the ViewHolder's constructor and set the relevant data for the row in the onBIndViewHolder Jan 04 13:41:14 this seems to be the cleanest way of implementing this Jan 04 13:41:57 i can set it on the ViewHolder classs Jan 04 13:42:19 you *should* be doing that Jan 04 13:42:23 ok Jan 04 13:42:26 so i will Jan 04 13:42:29 coz i respect u Jan 04 13:42:32 and SimonVT Jan 04 13:42:43 ^ bad reason. Jan 04 13:43:00 but, how do i get a refrence to that onClick on the host fragment/activity? Jan 04 13:43:04 which one Syzygy Jan 04 13:43:11 or both Jan 04 13:43:12 good code has nothing to do with respect. Jan 04 13:43:31 its pretty hard to tell from all i read today what is what Jan 04 13:43:43 raoul11: that is what every eventbus, Rx etc. system is for Jan 04 13:43:45 so don't do anything because you respect someone (except maybe sticking to some code style guidelines) Jan 04 13:43:58 Syzygy: oh you... Jan 04 13:44:11 Write nice code because it works better, is more maintainable and makes ya feel good. :) Jan 04 13:44:20 thepoosh, he should do it because it's right, not because he respects you :P Jan 04 13:44:30 well, it IS right Jan 04 13:44:32 dat dude is trippin Jan 04 13:44:35 it was a joke Jan 04 13:44:39 hehehe Jan 04 13:45:23 so on the ViewHolder's constructor thepoosh? Jan 04 13:45:34 yessir Jan 04 13:45:43 that way it's done once per viewholder Jan 04 13:48:41 thepoosh, why did u arrive so late? been at the courthouse protesting for EL-OR? Jan 04 13:52:55 what's EL-OR? Jan 04 13:54:01 nope, was talking to a google guy Jan 04 13:54:04 about big query Jan 04 14:18:20 Are there any names for tab views like you see its name on Android Studio? Jan 04 14:20:03 oh Jan 04 14:22:34 Hello. I am using DownloadManager for downloading a file. Everything works fine on SDK >= 21, however I get ERROR_FILE_ERROR on lower versions. Does anyone have any experience with this? Jan 04 14:23:26 I'm using setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, DOWNLOADS_DIR + File.separator + filename) to set the download destination Jan 04 14:25:06 what is File.separator? Jan 04 14:25:10 don't add that Jan 04 14:25:16 just use DOWNLOADS_DIR + filename Jan 04 14:25:29 make sure you don't add anything but the file name, no additional dird Jan 04 14:25:31 dirs* Jan 04 14:27:31 tx: http://stackoverflow.com/a/2417515 Jan 04 14:27:54 ya ya ya Jan 04 14:36:57 anyone has experience with http://git.linaro.org/people/semen.protsenko/mtpd.git ? Jan 04 14:41:12 Hello! Is there a way to listen for changes on every EditText (app-wide)? So I can set some kind of "formHasChanged = true" and ask the user if they want to save changes Jan 04 14:42:03 not in the way you want, you'll probably have to add a TextWatcher to all form fields Jan 04 14:42:06 and manage a flag Jan 04 14:43:22 thepoosh: I see... so I have to add TextWatcher to all of them singularly? Jan 04 14:44:02 can anyone help me with child spacing in gridlayouts? This is what my layout currently looks like: https://a.pomf.cat/rlpajt.png I want all the macro nutrients to line up, however they are currently not aligned. right now im using marginLeft with 30dp on both the protein and carb textviews (the xml: http://pastebin.com/N9ehLGE3) Jan 04 14:45:11 koichirose: you can create a custom EditText that just adds the watcher and raises a flag in the system Jan 04 14:45:24 and then make all your edittext items be that one Jan 04 14:45:35 by extending EditText? Jan 04 14:45:45 yessir Jan 04 14:46:02 and use something like SHaredPreferences to store the flag Jan 04 14:47:17 thank you Jan 04 15:03:59 Is there a way to increase the roundness of a google maps Circle marker? right now it's kind of octagonish. Jan 04 15:04:37 at least if you zoom in to the max Jan 04 15:10:01 so apparently the problem is that I'm downloading to a Downloads subdir.. If i use setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename) it works, setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, DOWNLOADS_DIR + File.separator + filename) doesn't (subdir exists) Jan 04 15:21:55 This works... setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS + File.separator + DOWNLOADS_DIR, filename) Jan 04 15:46:10 david89, first of all, use File class to composit paths Jan 04 15:46:17 what you're doing right now is just asking for trouble Jan 04 15:46:30 new File(Environment.Directory_downloads, filename).getAbsolutePath() Jan 04 15:46:48 and run "mkdirs()" on the file object to create folder structure before starting download Jan 04 15:47:07 also check for storage permission Jan 04 15:47:42 adq Jan 04 15:48:01 our devs say that it's not easy to get everything pixel perfect in the AVD. Jan 04 15:48:28 O.o Jan 04 15:48:31 I've tried it myself and say the 10" AVD vs a Samsung Galaxy Tab A 10.1" (latest) - there are slight differences. Jan 04 15:48:32 Why would you even attempt that? Jan 04 15:48:36 Too much money and time? Jan 04 15:48:51 Mavrik: well, they've done relative layouts but they've messed things up Jan 04 15:48:57 We got 600/720dp views Jan 04 15:49:17 and we are finding that some smaller devices cause text to overflow from textlayouts Jan 04 15:49:35 after 3 months dev, only today they realised they'd been specifying fonts as dp rather than sp. Jan 04 15:49:42 * michael_mbp does facepalm. Jan 04 15:50:12 Mavrik: right now, I'm trying to find an online device farm Jan 04 15:50:23 AWS doesn't have devices such as the Nexus 7 (2012). Jan 04 15:50:29 sp won't magically help you with that Jan 04 15:50:31 hey Jan 04 15:50:34 since, if anything, sp makes fonts larger Jan 04 15:50:43 Mavrik: ugh, I thought so. Jan 04 15:50:52 Any tips on how to sort this out? Jan 04 15:50:55 well Jan 04 15:50:59 what is the iOS channel called? :O Jan 04 15:51:01 leave enough space I guess? :/ Jan 04 15:51:10 or make the fonts smaller? Jan 04 15:51:11 hard to say without seeing the layouts Jan 04 15:51:16 that would also work Jan 04 15:51:19 one moment I'll take grab Jan 04 15:51:28 but then you can come up with the issue where people with accessibility enabled won't nbe able to read the text Jan 04 15:51:37 you can also truncate text if it makes sense for the entry Jan 04 15:52:50 http://imgur.com/a/bmsSj Jan 04 15:53:17 it's a 'training' app. Text in the textlayouts on the left are the ones that are overflowing. Jan 04 15:53:29 works fine here on a generic 7" and 10" Samsung though. Jan 04 15:53:31 hmf. Jan 04 15:53:50 overflowing on phones I guess? Jan 04 15:54:10 How can I find out what's the smaller display resolution device for 600dp? Jan 04 15:54:18 Mavrik: no. We only support tablets. Jan 04 15:54:30 Got a manifest entry limiting min-width to 600dp. Jan 04 15:54:34 ah Jan 04 15:54:39 michael_mbp, you probably want to check DPI then Jan 04 15:55:24 how would that work - do we restrict at the manifest level, or during say onCreate()? Jan 04 15:55:31 manifest I guess Jan 04 15:55:37 if DPI is lower that x, user a smaller font? Jan 04 15:55:39 or downsize fonts on mdpi devices Jan 04 15:55:55 aye, we are limiting to mdpi too Jan 04 15:55:57 The issue really is that the design kinda tries to stuff too much text into too little space Jan 04 15:56:11 is there a manifest constraint for xdpi too? Jan 04 15:56:18 Mavrik: the UIs get worse tbh Jan 04 15:56:22 There's also an implementation of TextView that autosizes fonts to fit Jan 04 15:56:29 we've been tasked to duplicate an iOS app. Jan 04 15:56:36 Mavrik: oooh... Jan 04 15:56:45 got any links on the autosizing Textview? Jan 04 15:57:27 not out of hand, but I remember seeing one on github Jan 04 15:57:37 was it a widget/plugin or? Jan 04 15:59:50 hey all, just curious is there any reason why a VM will not use a /etc/system/hosts file? Jan 04 16:00:22 do i need to do anything to get a Android VM to use the hosts file i just 'adb push'ed successfully to /etc/system/hosts Jan 04 16:02:57 i have a Vagrant VM w/ Bridged networking on 172.16.6.67 (a php website/webservice) and a Android VM on Bridged networking on 172.16.6.62 ... so i pushed a hosts file 172.16.6.67 drupalcmsvm.com to my Android VM. but cant see to visit that url from Android. i can ping the .67 box from Android's adb shell. Jan 04 16:04:18 (the drupal website also has a webservice built-in so the Android App should be able to do something like drupalcvmvm.com?action=getusers .... but Im just testing a Browser from Android 1st to make sure I can even reach the Drupal cms/login 1st) Jan 04 16:12:59 holy jeez figured it out. Jan 04 16:13:46 off and on been trying to get this working for a week ... all tutorials i saw had /etc/system/hosts... should be /system/etc/hosts blah! Jan 04 16:21:16 still am curious...I had to use GenyMotion to create the Android VM to setup Bridged Networking as I didnt see a way to setup NAT vs Bridged via AndroidStudio or AVDManager.exe. How can i do this without resorting to use Genymotion? Jan 04 17:08:07 hello Jan 04 17:08:33 My RecyclerView is getting drawn 2 times :? Jan 04 17:08:39 why is this happening? Jan 04 17:08:57 I am using recyclerview inside a fragment btw Jan 04 17:09:35 hi there guys Jan 04 17:09:38 I have a question Jan 04 17:09:48 bsdnoob: what does “getting drawn 2 times” mean? Jan 04 17:10:04 deadevilboy: please don’t say you have a question. just ask your question Jan 04 17:10:10 ^ Jan 04 17:10:24 bsdnoob: You can always print stacktraces to debug stuff Jan 04 17:11:26 I was building a basic service to test if start_sticky would work. So, in theory, the os should restart the service when main app is closed by the user Jan 04 17:11:37 s73v3r, yiati : look this , http://imgur.com/zst3tPB Jan 04 17:11:41 I tested it on virtual Android 7 Jan 04 17:11:59 but It doesn't work on my Asus zenfone with android 6.0 Jan 04 17:12:14 when I close the main app, the service and the app are closed Jan 04 17:12:34 bsdnoob: You likely added the fragment twice Jan 04 17:13:06 SimonVT, how? I see it only once Jan 04 17:13:17 show your activity and your layout Jan 04 17:13:18 I don't know how you did it, but you did Jan 04 17:13:53 is Android 6.0 different in that matter? I see no extra info on android dev webpage Jan 04 17:14:11 RecyclerView doesn't just randomly draw its content twice at different scroll levels, so there are two RecyclerViews. Unless your fragment is adding two RecyclerViews, then you have two fragments Jan 04 17:18:10 s73v3r, https://ghostbin.com/paste/d7bth here's my layout Jan 04 17:18:40 and your code? Jan 04 17:18:50 i’m betting that you have the fragment in your layout, and in your code Jan 04 17:19:29 do you do FragmentTransaction.add? Jan 04 17:20:43 s73v3r, https://ghostbin.com/paste/2cmm5 Jan 04 17:20:58 bsdnoob: To see what your layout looks like at runtime you can use the Hierarchy Viewer tool in DDMS https://developer.android.com/studio/profile/hierarchy-viewer-walkthru.html Jan 04 17:20:59 yup Jan 04 17:21:22 bsdnoob: either take the fragment tag out of the layout, or remove the fragment transaction stuff from the activity Jan 04 17:21:33 preferably take it out of the fragment Jan 04 17:21:34 +1 for take out of layout Jan 04 17:21:43 hmm Jan 04 17:21:50 replace that tag with just a FrameLayout Jan 04 17:22:13 ^ Jan 04 17:23:30 s73v3r, what layout id should I then pass to fragmentTransaction.add() ? Jan 04 17:23:41 the id you give to the FrameLayout Jan 04 17:23:52 Hi, I'm going crazy, I have this error from 1 week and I can not solve it. Bug is when i use proguard and i didn't find fix. I create a sample project https://github.com/giuseppesorce/proguarderroradapter Jan 04 17:23:59 you can keep the same id just fine Jan 04 17:24:12 Issue is https://github.com/giuseppesorce/proguarderroradapter/issues Jan 04 17:24:41 When app uses pro guard, Retrofit can't create a rx adapter Jan 04 17:24:49 *porguard Jan 04 17:25:54 oi "Bootloop of death bricking Thousands of Nexus 6P" https://code.google.com/p/android/issues/detail?id=230848 Jan 04 17:27:03 g00s: Are you having that issue with a 6P? Jan 04 17:27:15 yiati don't have a 69 Jan 04 17:27:19 6p Jan 04 17:28:17 meanwhile, inkscape 0.92 :D rxjava 2.0.4 Jan 04 17:29:03 s73v3r, when I remove fragment transaction stuff out , I get 'android.view.InflateException: Binary XML file line #24: Binary XML file line #16: Error inflating class fragment' Jan 04 17:29:09 can somone help me with this why is my image View in linear layout owerlaping first thing in layout Jan 04 17:29:37 http://pasteboard.co/i5DYz87yq.png Jan 04 17:30:18 how can i set how much size does intem in linear Vertical layout take or something to fix this? Jan 04 17:31:00 lol i think i fixed it Jan 04 17:31:08 i just drag and roped it agian Jan 04 17:31:10 lol Jan 04 17:37:45 ok but now have anotho issue how to add text in image View Jan 04 17:40:34 I really wish robolectric didn't have runtime dependencies Jan 04 17:40:42 or that there was an elegant out of the box solution Jan 04 17:41:27 eclipse says android.support.v7 is missing adding compile "com.android.support:support-v4:25.1.0" Jan 04 17:41:27 and compile "com.android.support:appcompat-v7:25.1.0" Jan 04 17:41:27 only added support-annotations-20.1.0 to "Project External Dependencies" and i see no appcompat_v7 in eclipse package explorer Jan 04 17:41:57 i see no appcompat_v7 project in eclipse Jan 04 17:43:43 ParkourGrip: hi Jan 04 17:43:44 did we go over why you are using eclipse yet? Jan 04 17:44:04 because my team is using eclipse Jan 04 17:44:11 I mostly bring it up because I am not sure how to check the state of your sdkmanager in eclipse Jan 04 17:44:16 tell them to stop using eclipse Jan 04 17:44:36 and did we go over saying "Hello" before asking? Jan 04 17:44:47 its my first time here so no Jan 04 17:45:02 and tell them to say "hello" Jan 04 17:46:37 I don't believe google release a library project you can use in eclipse anymore. There's just aar's you can use with gradle Jan 04 17:47:16 ParkourGrip: how are you guys using Eclipse? Do you still use Gradle, or are you using Maven? Jan 04 17:47:21 So switch to gradle and add the compile statement above Jan 04 17:48:09 im using Gradle Jan 04 17:48:25 then you should be able to just add that line in the build.gradle file Jan 04 17:48:27 Then add compile "..." to build.gradle Jan 04 17:48:44 How can I manage layouts for devices that have the same density but need different DP values for the UI? For example the Nexus 5 and Galaxy S5. Both are xxhdpi but the values on the dimens.xml must be different Jan 04 17:49:00 must they? Jan 04 17:49:03 That's how you add dependencies to gradle project, not with eclipses external dependencies or whatever Jan 04 17:49:16 that added the support-annotations-25.1.0-sources.jar but nothing else Jan 04 17:49:30 Yes, some values that work ok for Nexus are too big for the S5 Jan 04 17:51:51 birk_: search for "res/layout-sw600dp/" in https://developer.android.com/guide/practices/screens_support.html Jan 04 17:51:58 ParkourGrip yeah, moving from eclipse should be priotity #1 , high, emergency Jan 04 17:53:45 the thing is that gradle compile lines did not add all the liberaries https://dl.dropboxusercontent.com/u/102278960/only%20part%20of%20liberaries.png Jan 04 17:56:31 What do you mean it doesn't add all the libraries? Jan 04 17:57:22 I really wish Google Now supported "pay using " Jan 04 17:57:30 In a standard android gradle project, that's all you need to do. Any transitive dependencies will be pulled in by gradle Jan 04 17:57:32 from the list of actions, it doesn't :'( Jan 04 17:57:38 unless anyone knows otherwise Jan 04 17:58:02 So I'm trying to get Robolectric working with my companies CI Server + Internal Maven Repo, and I'm getting "Authorization failed: Access denied to: https://repo.mycompany.com:443/nexus/robolectric-stuff" messages Jan 04 17:58:30 So I understand that my companies maven repo requires credentials, but don't understand where the authorization should be happening that it is not Jan 04 17:59:45 I have a ~/.m2/settings.xml setup with the proper credentials and server info, which is what's causing it to even look at the correct url in the first place Jan 04 18:00:41 yiati: will take a look, thanks Jan 04 18:05:15 ahh shit the main part of the program dose not even use android liberaries this is just for the connection screen Jan 04 18:08:13 ok i come from c# but so have question how do i make a list of songs. In c# i would do List songs; but what to do here List songs or what? Jan 04 18:09:34 List name = new ArrayList<>() Jan 04 18:09:50 so List songs = new ArrayList<>() Jan 04 18:09:59 there are other types of lists Jan 04 18:10:01 ok i was not shure R.raaw is type Jan 04 18:10:07 it’s not Jan 04 18:10:10 Oh, no Jan 04 18:10:16 It's an int Jan 04 18:10:17 List maybe ? Jan 04 18:10:22 hold up Jan 04 18:10:31 first off, what are the songs? Jan 04 18:10:35 You'll want to do List<@Raw int> Jan 04 18:10:36 are they just titles, are they files? Jan 04 18:10:37 mp3 Jan 04 18:10:53 i am using media player calss to play them Jan 04 18:11:06 so you’d do something similar, in the List songs Jan 04 18:11:09 do you store links to the files or the data of files Jan 04 18:11:15 @RawRes Jan 04 18:11:21 I’m not sure exactly what the file class is, but that’s what you’d do Jan 04 18:11:46 you can store a list of R.raw using List<@RawRes int> afaik Jan 04 18:12:01 I’m pretty sure you don’t want to do that Jan 04 18:12:17 you want your list to be typed. you don’t want it of type int Jan 04 18:12:45 i just want to make a list so i can play next song ectera Jan 04 18:12:46 The rawres annotation aims to stop that Jan 04 18:13:05 although it's linter rather than types Jan 04 18:13:20 it’s not stopping it, cause it’ll allow anything in the raw res directory Jan 04 18:13:38 you want a list of audio files Jan 04 18:13:50 ye Jan 04 18:14:10 try this: http://stackoverflow.com/questions/30681002/play-list-of-mp3-file-with-mediaplayer-in-android Jan 04 18:15:39 ok will try that Jan 04 18:15:42 yes, it does use the RawRes stuff, so you’ll need to guard against accidentally passing it something that isn’t a media file Jan 04 18:16:32 my raw only has mp3 so kinda can not miss xD Jan 04 18:16:43 unfortunately the documentation doesn’t say what happens if you pass the RawRes id of say, an image file, or something not an audio/video file Jan 04 18:24:33 am back with 1 more stupit question, so how do i get number count of mp3 files in raw res Jan 04 18:25:09 so i use a for loop to add them all to list Jan 04 18:25:33 would you be able to use a for-each loop instead? that would be better for handling changes to the number of files Jan 04 18:25:59 If for some reason (most probably your own fault) a REST API call to your own service returns a 404, what kind of message would you display on screen? Jan 04 18:26:01 I am looking for a good boilerplate to start a project, I'll be using Polidea's RxAndroidBle library. I am confused between https://github.com/ribot/android-guidelines and https://github.com/hitherejoe/Android-Boilerplate Jan 04 18:26:28 Melatonina: Unable to connect to server Jan 04 18:27:05 but, as you said, that should not happen, as it’s your server Jan 04 18:27:31 i wanted to use for(int i =0; i so you should probably also send off a log to Crashlytics or whatever you’re using to altert you Jan 04 18:27:59 learnBot: that’s not really a sustainable solution Jan 04 18:28:30 ah-ehm ...I'm not using anything of that kind at the moment Jan 04 18:28:41 s73v3r: thanks Jan 04 18:28:58 you really should. crash reports with logs are quite invaluable Jan 04 18:29:34 yeah; without a stack trace you're pretty screwed for figuring out wtf the user did Jan 04 18:30:45 s73v3r: why specifically crashlytics? Jan 04 18:30:52 s73v3r: yes, I will. My application is taking shape but I'm still experimenting. But I'm aiming towards a quality result so I'll learn about a crash reporting service too Jan 04 18:31:04 that’s just the one i have most experience with right now. Jan 04 18:31:16 I’m not specifically advocating one over the other Jan 04 18:31:20 mostly because i tend to block crashlytics at the dns, what with analytics and all that. not a fan when devs do that kinda bs. Jan 04 18:31:54 you’re not a fan of when devs try to figure out how users use the application and try to make it better? Jan 04 18:32:08 or when they try to get detailed crash reports so they can fix bugs easier Jan 04 18:32:18 i'm not a fan of analytics, if that's what you mean. i'm all for opt-in, not opt-out. Jan 04 18:33:41 Users don't know enough to opt in. Those who care enough to opt out don't make up enough of the userbase to make a difference Jan 04 18:34:18 if you’re going to block that stuff, that’s your choice, but don’t be upset when your problems don’t get handled Jan 04 18:34:24 I can live with not fixing their one-off errors Jan 04 18:34:34 SimonVT: that's very anti-user though. "The user's dumb, so let's just roll with that." Jan 04 18:34:55 s73v3r: My software doesn't really have a user problem tbh Jan 04 18:35:14 i mean for stuff you use developed by others Jan 04 18:35:45 I also don't have an issue with that. I just go to Github and speak with the dev directly via e-mail. Jan 04 18:35:54 not everything is open source Jan 04 18:36:13 Well, stack trace, version, etc is needed to debug errors.. Pointless explaining that to your average user Jan 04 18:48:11 if(fields[i].getName().contains("mp3")){ Jan 04 18:48:33 but now figured out it .getName dose not return .mp3 Jan 04 18:48:40 how to get that part? Jan 04 18:49:41 need to check if its mp3 or not so i can add it to playlist Jan 04 18:50:32 whats fields Jan 04 18:51:05 fields=R.raw.class.getFields(); Jan 04 18:51:27 sorry frogot to mention xD Jan 04 18:51:44 oh Jan 04 18:52:50 i can do it idiotic way but renaming evry song with mp3 in it xD Jan 04 18:53:03 but thats kinda beh Jan 04 18:54:21 anyone? Jan 04 18:56:28 is this reflection :? Jan 04 18:56:51 sounds a poor way to solve a problem. what is the problem Jan 04 18:57:58 problem is in my Raw dir i have 11 songs Jan 04 18:58:05 and i need to make a list of them Jan 04 18:58:32 guys, any idea why start sticky service doesn't work as intended on Android 6? Jan 04 18:58:52 so my issue is how to get all songs from raw Jan 04 18:59:20 well the name wont give you much Jan 04 18:59:25 getName() retuns somesong insted somesong.mp3 Jan 04 18:59:31 http://stackoverflow.com/questions/6539715/android-how-do-can-i-get-a-list-of-all-files-in-a-folder Jan 04 18:59:46 maybe try with assets Jan 04 18:59:52 but i get INT of that Raw file so i can add it to list Jan 04 19:00:17 i think i allready looked at that Jan 04 19:00:37 ye i did that Jan 04 19:01:03 raw resources are known at compile time. why wouldnt you 'manually' filter them Jan 04 19:01:16 likely you know what files you put are mp3 Jan 04 19:01:31 Log.i("Raw Asset: ", fields[count].getName()); Jan 04 19:01:31 and i did if(fields[count].getName().contains("mp3")) Jan 04 19:01:48 ye but what if i add 200 song shoud i manuly fillter them too xD Jan 04 19:02:31 Can i do a subDir in Raw and only in that dir put songs? Jan 04 19:03:36 dunno Jan 04 19:04:41 assets might be a better place for them Jan 04 19:05:01 yep i think just read more dev documents Jan 04 19:05:44 but whatewer i just wanted to do it more proper but for 11 song can do it manuly Jan 04 19:23:42 anyone have a really good intro to Android theming and styles? Jan 04 19:26:35 s73v3r: I thought you knew everything about Android, already! :) Jan 04 19:26:52 Wish I had one Jan 04 19:27:00 Nothing that goes in depth Jan 04 19:27:01 s73v3r : android doc is the best Jan 04 19:27:10 I think there was something chris banes posted about appcompat-specific theming Jan 04 19:27:34 wait wrong person Jan 04 19:27:35 https://medium.com/google-developers/theming-with-appcompat-1a292b754b35 Jan 04 19:29:35 cool, i’ll check it out Jan 04 19:30:23 anyone know of any libraries for integrating/generating widgets? Jan 04 19:32:48 Can a ViewHolder only ever hold one View? I want to use it in a list (RecyclerView) but each list entry consists of several views in a RelativeLayout Jan 04 19:55:26 how to load R. form int Jan 04 19:56:06 ? Jan 04 19:56:22 sec Jan 04 19:57:55 https://hastebin.com/oqozuzabar.java Jan 04 19:58:07 line 36 Jan 04 19:58:35 do what the stackoverflow link i sent you does Jan 04 19:59:38 songs.get(whatever) Jan 04 19:59:43 ok just scroled up found first f it just takes int Jan 04 19:59:47 lol i am dumb Jan 04 20:00:05 i was trying R.res(song or something xD Jan 04 20:07:32 missingno: thanks. I appreciated the link too Jan 04 20:10:40 this also seems pretty good: http://blog.danlew.net/2014/11/19/styles-on-android/ Jan 04 20:20:55 fucking QT is gay man Jan 04 20:22:01 not cool, dude Jan 04 20:22:06 O.O Jan 04 20:29:30 you both have good points Jan 04 20:32:04 how do I view the results of the lint checks? Jan 04 20:36:00 the results are available as HTML and/or XML somewhere in the build folder Jan 04 20:38:49 can I open them in studio? Jan 04 20:41:26 s73v3r: you write in QT? Jan 04 20:41:33 no Jan 04 20:42:14 it sux balls Jan 04 20:42:55 I have no opinion one way or the other. There are, however, ways to express your opinion that don’t disparage an entire group of people Jan 04 20:46:44 class Spear(Object): Jan 04 20:46:45 def __init__(self, length_stat, sharpness, metal_strength) Jan 04 20:46:50 wrong chat Jan 04 20:46:55 I'm so sorry Jan 04 20:47:09 do 30 pushups as penance Jan 04 20:47:58 * thepoosh rolls his eyes to the sky Jan 04 20:53:36 Once I used to know Python very well. Now I don't remember it Jan 04 20:53:47 Same with Javascript Jan 04 20:53:53 Same with C++ Jan 04 20:54:57 I wasted my life Jan 04 21:04:39 lol Jan 04 21:05:04 i hate python whitespaces Jan 04 21:07:07 Mela do not worry continue java and its advanced concepts i started c++ before university at uni prof Taught us C# and finally i selected JAVA Jan 04 21:09:18 why do you type like this Jan 04 21:12:54 nobody is typing like that, today Jan 04 21:13:08 that Iranian guy does it Jan 04 21:14:29 ops, maybe you were replying to him. I had it on ignore Jan 04 21:15:04 sorry for bad typing it Jan 04 21:15:26 QED :D Jan 04 21:16:50 The Android view mode in AS might be useful to me if all my gradle scripts showed up in the Gradle Scripts section Jan 04 21:17:33 do you have extra gradle scripts? Jan 04 21:17:44 Mela how you are weird, you ignored me while you was impolite on me Jan 04 21:18:44 You have a distorted perception of the reality Jan 04 21:19:32 but please let's end this discussion here and do not pm me Jan 04 21:20:03 Melatonina: Having messaging problems again? Jan 04 21:20:51 I won't comment on you or otherwise reply to your messages. I wasn't aware you were typing few minutes ago Jan 04 21:21:36 * thepoosh slaps g00s Jan 04 21:21:57 Lvl4Sword: not today Jan 04 21:23:02 good to hear Jan 04 21:23:37 * Lvl4Sword backhands thepoosh Jan 04 21:23:42 [✔] REKT Jan 04 21:23:50 * thepoosh is rekt Jan 04 21:23:57 K. O. Jan 04 21:24:04 Round 2, fight! Jan 04 21:24:10 Lvl4Sword: this aggression will not stand, man... Jan 04 21:24:26 thepoosh: this is normally where i would spam the navyseal copypasta but i have more respect for you than that Jan 04 21:24:27 it doesn't not happen often. The problem is that I really pay attention to people and attempt to help them. Jan 04 21:24:43 Melatonina: i can understand how that would be a problem ( ͡° ͜ʖ ͡°) Jan 04 21:24:47 wut Jan 04 21:24:57 thepoosh: DID I STUTTER ᕙ(⇀‸↼‶)ᕗ Jan 04 21:25:10 you're referencing the wrong movie Jan 04 21:25:21 wait what Jan 04 21:25:32 what movie am i supposed to be referencing? Jan 04 21:26:48 how you like unrelated topics here ,there are a lot of room for that Jan 04 21:30:26 so does anyone know how to start an Android VM in Bridged vs NAT networking? i can do it via Genymotion in its settings, but not w/ a normal Android VM created in AVDManager.exe Jan 04 21:36:43 monk12: I have no idea but consider that there is plenty of stuff you can do with Android Emulator that you can't setup in AVD Manager. Jan 04 21:37:12 monk12: check the command line options to see if and how it can be done Jan 04 21:46:37 I’m trying to run a specific lint check on my xml files, and it’s not running Jan 04 21:46:47 or rather, it’s not catching what it should be catching Jan 04 22:01:16 Hello, I'm working on an image manipulation app and I'd like to write unit test for a class that manipulates bitmap. The thing is that this class depends very much on Bitmap, just to call its main method I need a Bitmap instance. I'm trying to mock all dependencies but I wonder I shouldn't implement an Instrumentation test instead Jan 04 22:01:33 you probably should Jan 04 22:01:43 The problem of going with instrumentation tests is that I won't have any unit test on my app Jan 04 22:01:53 that’s ok Jan 04 22:02:04 you shouldn’t have tests just for the sake of having tests Jan 04 22:02:12 you should have the tests that make sense for your app Jan 04 22:03:48 s73v3r: thanks a lot!. What's the risk or what would I miss if I've just instrumentation tests ? Jan 04 22:04:35 the only risk is just longer running tests Jan 04 22:10:47 anyone have experience running lint from the command line? Jan 04 22:15:15 ffs.. EditText only has .setError(CharSequence error) and not a .setError(@StringRes int error) ... but it has setText(@StringRes int resid) Jan 04 22:15:25 I’m trying to run the RequiredSize inspection, which makes sure that each item has layout_width/layout_height attributes. I have purposefully made something that should fail this inspection Jan 04 22:15:52 I get the red squiggly under that view, but no matter where I try to run the lint, it tells me there’s nothing wrong Jan 04 22:17:11 s73v3r: sorry, not me Jan 04 22:23:17 did u use -Wall option ? Jan 04 22:23:51 - s73v3r - Jan 04 22:23:54 i’m trying to run one specific inspection Jan 04 22:23:58 RequiredSize Jan 04 22:24:03 that’s the only thing i want run Jan 04 22:32:10 ok you have omitted RequiredSize and want test the lint can find it ? Jan 04 22:32:19 NO Jan 04 22:32:43 RequiredSize makes sure that you have layout_width and layout_height on your views Jan 04 22:32:57 know Jan 04 22:33:03 I run the inspection specifically for that check, and it’s not showing up Jan 04 22:33:19 it’s not flagging anything, even though I specifically removed one from one of my views Jan 04 22:33:20 in command ? Jan 04 22:33:38 in anything Jan 04 22:33:47 I go Analyze->Inspect, nothing Jan 04 22:33:54 I go ./gradlew lint, nothing Jan 04 22:34:04 i try to run lint, and it tells me to run it through gradle Jan 04 22:34:09 and gives me no way to override that Jan 04 22:35:26 what’s worse, is that ./gradlew lint generates an xml report. There is stuff in there. But when I tell studio to load it up, it says there’s nothing there Jan 04 22:35:40 but i have used lint for what you want with this command and it did work lint -w Jan 04 22:36:01 lint doesn’t even run, cause it tells me to use gradle Jan 04 22:36:19 and i don’t want it to run all inspections, just this one Jan 04 23:01:21 Leeds: Hi! Can I ask you how did you end up in HK? Jan 04 23:02:21 Melatonina: well, I got on a plane... Jan 04 23:02:28 :P Jan 04 23:03:06 Leeds: I meant, did you just go there for work? Did you know somebody there? Jan 04 23:03:29 Leeds: I won't get offended if you don't care to reply Jan 04 23:04:22 I was working in the UK for a Silicon Valley company, got laid off for the second time in 2005... decided to leave the UK, was planning on going to Israel - I somewhat speak the language, don't need a visa, can eat the food, know a few people, and there's lots of high tech there Jan 04 23:04:52 A true citizen of the world. Cool. Jan 04 23:05:52 at the same time, my parents happened to be doing some travel in Asia, stayed with cousins-of-cousins in HK - my mum's sister's husband's sister had married into a family here... Jan 04 23:06:40 I'd been here a couple of years earlier, passing through on the way to Australia... they asked my parents what I was doing with myself, my parents said I planning to emigrate, they offered me a job with their family business... Jan 04 23:06:58 woohoo straya! Jan 04 23:07:23 I said yes, got on a plane with a couple of suitcases, worked for them for a year until they fired me, by which point I was somewhat settled, and the rest, as they say... Jan 04 23:08:18 ok, so you were accustomed to travel and had some family there. Thanks for telling me this story! Jan 04 23:15:32 hmm, I would summarise differently: I'd say I was already planning to emigrate, and I got an unexpected and un-looked-for offer to work in HK, which I took Jan 04 23:19:45 also, I still speak better Hebrew than Chinese, and still prefer Israeli food to Chinese :D Jan 04 23:27:08 :) Jan 04 23:29:16 how can I install specific version of google-services? Jan 04 23:30:27 or com.google.android.gms? Jan 04 23:30:32 http://stackoverflow.com/questions/20982533/how-to-download-older-google-play-services+ Jan 04 23:30:56 without the trailing "+" Jan 04 23:30:57 http://stackoverflow.com/questions/20982533/how-to-download-older-google-play-services Jan 04 23:31:03 thanks Jan 04 23:31:18 np Jan 04 23:31:34 I just googled it. I know nothing about it Jan 04 23:32:53 Trying to build my app, I get this error: Jan 04 23:32:54 Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.2.0. Jan 04 23:38:15 CrowX- if you are using an emulator, they don't have latest version of GMS Jan 04 23:38:30 can't believe that shit is still going on in 2017 Jan 04 23:39:04 g00s, how do I upgrade gms? Jan 04 23:39:30 it requires some hackery, outside of google instructions Jan 04 23:39:35 May I ask for support here? Jan 04 23:39:39 best to just use your phone Jan 04 23:40:23 g00s, I'm using my phone for testing Jan 04 23:40:30 android-dev798: you can ask for help in developing apps. Other than that, you might wish to try another channel Jan 04 23:40:32 is there a way to use it for building too? Jan 04 23:40:45 Okay, thank you! Jan 04 23:40:50 CrowX- your phone should update to the latest GMS Jan 04 23:40:51 I created a default single view app with Xamarin, and am attempting to debug on an Alcatel Pixi device, but the session always seems to get killed by the ActivityManager before hitting any breakpoints in Visual Studio 2015. Jan 04 23:41:16 android-dev798 better luck trying in a xamarin place Jan 04 23:41:17 g00s, I'm getting this error on my computer when I try to build an apk Jan 04 23:41:37 CrowX- huh - make sure you have the latest google repository Jan 04 23:41:50 This may actually not be a Xamarin-specific issue. Jan 04 23:41:53 android-dev798: while we’re not experts on xamarin here, you may wish to look at your stack trace Jan 04 23:42:05 I have the logs if that's helpful. Jan 04 23:42:25 CrowX- and the latest is 9.8.0 Jan 04 23:42:28 someone in a Xamarin support channel would be better able to tell you if it’s an android or xamarin issue Jan 04 23:42:32 g00s, I ran "android update sdk" and it showed that google play services is up to date Jan 04 23:42:32 I'm not sure how to examine the stack trace. Is that supposed to be in the logs as well? Jan 04 23:42:38 it only showed some other packages needing upgrade Jan 04 23:42:51 oh, latest is 10.0.1 Jan 04 23:43:26 I just added the landscape layout for an activity. It contains a RecyclerView and I wanted it to scroll horizontally when in landscape. So I also added a landscape layout for the item view. When I detect the landscape mode I also create a LinearLayoutManager with horizontal orientation. That's the only piece that it's not automatically selected by the resource management and must be performed in code. Is there a way to do the same thing with Jan 04 23:43:27 resources? Jan 04 23:43:43 Does the ActivityManager capture the current stack trace before killing a process? Jan 04 23:44:27 if there’s a crash. like I said, someone in a xamarin support channel might be better suited to help you Jan 04 23:44:29 g00s, where can I check which version I have? Jan 04 23:44:44 from the command line, try 'gradle dependencies' Jan 04 23:45:30 Ah, it only logs on crash. I'm not yet convinced the app is crashing rather than being killed by the OS for some unknown reason. Jan 04 23:45:49 Hi there, for swift there is a thing called viper, is there one related thing for android? Jan 04 23:45:49 I'll check over at #xamarin and see if they have any thing to say. Jan 04 23:46:02 ha, that 3D tic-tac-toe game that uses different devices for each plane is clever Jan 04 23:46:22 tyoc__: you might want to explain what viper is Jan 04 23:47:16 is an architecture http://awesomeswift.com/2016/03/31/architecting-ios-apps-with-viper.swift View-interactor-presenter-entity-routing Jan 04 23:47:22 s73v3r see viper in https://medium.com/ios-os-x-development/ios-architecture-patterns-ecba4c38de52 Jan 04 23:47:22 g00s, gradle command is not found Jan 04 23:47:38 g00s, is the binary located somewhere in my ~/Android/Sdk? Jan 04 23:47:40 tyoc__: why couldn’t you use that on android? Jan 04 23:48:07 don't know, Im just wondering if I can, or if there is a "recommended" architecture for android apps? Jan 04 23:48:16 try it Jan 04 23:48:28 there isn’t, any more than a “recommended” architecture for iOS apps Jan 04 23:48:43 the various flavors of MVP are as close as you’ll get Jan 04 23:48:50 tyoc__ i haven't seen anything viper-like for android, fyi Jan 04 23:49:26 android is kinda like web development, the substrate of tech you build upon is a pile of crap, so every week somebody comes out with a new framework / lib Jan 04 23:49:43 next week there could be a biper lib when mvvm isn't cool enough :D Jan 04 23:51:38 tyoc__ this is recent, the uber guys are smart. maybe went a little overboard https://eng.uber.com/new-rider-app/ Jan 04 23:52:17 uber has 120 android devs working on 5 apps; i wonder what the other 4 are about Jan 04 23:52:33 oh maybe the rider and driver have different apps Jan 04 23:52:38 so .. what are the other 3 then Jan 04 23:53:07 "the substrate of tech you build upon is a pile of crap" -- That's the best summary of Android development I've heard. :D Jan 04 23:53:17 :D Jan 04 23:55:08 i guess this week its https://www.reddit.com/r/androiddev/comments/5lz63x/simpler_android_apps_with_flowless_10rc1_or_flow/ Jan 04 23:56:18 That guy is like one of those religious people who self-flagellate. Jan 04 23:57:05 i think all of us are, to an extent Jan 04 23:57:47 TacticalJoke flagellums gonna flagellate Jan 04 23:58:16 g00s UberEats, deliver, etc Jan 04 23:58:27 orbyt_ oh thanks Jan 04 23:58:39 still, 120 devs? Jan 04 23:58:51 yeah, according to a dev there last week Jan 04 23:58:59 120 /android/ devs Jan 04 23:59:17 that’s roughly 24 per app Jan 04 23:59:17 Theres a guy on /r/android-dev from booking.com who has been posting hiring notices every week for like 2 years Jan 04 23:59:25 if i used every lib in /r/androiddev i'd probably need 120 of me too Jan 04 23:59:26 he said they have a ton of android devs as well Jan 04 23:59:56 orbyt_, or is it a bot that is posting every week ? :p Jan 05 00:00:10 maybe they just can’t get people to work there Jan 05 00:00:11 and the bot is setup'd by booking.com Jan 05 00:00:12 I hope it is Jan 05 00:00:40 s73v3r Apparently they are very, very strict on who they hire Jan 05 00:01:06 For interacting with a database, do you guys recommend using the volley library? Jan 05 00:01:25 keur: volley is for interacting with web services Jan 05 00:01:39 and for that, i don’t think anyone outside of google would recommend volley Jan 05 00:01:56 why does medium append this stupid #ghajf567sd junk to each url, its messing up my bookmarks Jan 05 00:02:19 s73v3r, Ahh, haha, I see. What would you recommend learning? Jan 05 00:02:54 well, presumably you have your database behind web services, and not just naked out there. For interacting with that, Retrofit is nice Jan 05 00:03:02 keur Where/what is your DB? Jan 05 00:04:45 orbyt_, MySQL using phpMyAdmin. Jan 05 00:06:13 I plan to migrate to some server later, but at this stage I don't think it's necessary. And the way in which I interact with it wll generally be the same. Jan 05 00:06:16 okay, not much activity on the Xamarin channels. Jan 05 00:06:30 keur: it’s always necessary to have something in between your db and the world Jan 05 00:06:37 keur What do you mean migrate to some server? Jan 05 00:06:43 Do you not own the current server...? Jan 05 00:07:06 can someone point me to info on how to troubleshoot debugging an Android app generally? Jan 05 00:07:32 keur What you would ideally do is write a rest api that you can make calls to, which in turn will perform operations on your DB. Jan 05 00:08:55 android-dev798 if you chose xamarin, you chose to go about things alone without community support really Jan 05 00:08:57 android-dev798: well, you’d first start by going through the logs Jan 05 00:09:32 I have the logs, but not entirely sure what to make of them Jan 05 00:09:37 orbyt_, Yes, and when I look online I've seen a couple sites recommending volley to do so. Just seeing if that is *actually* a good idea, or if there are better apis to utilize for it (never done this stuff b4) Jan 05 00:09:39 would it be useful to post them? Jan 05 00:10:13 you can try, but i can’t guarantee anyone here is going to be able to make sense of them Jan 05 00:10:30 ok - http://imgur.com/a/WTGLO Jan 05 00:10:34 you can look for things like stack traces and exceptions Jan 05 00:10:37 don’t use imgur Jan 05 00:10:37 keur For interacting with an API, Retrofit as s73v3r suggested is probably the best to get started with. Jan 05 00:10:44 use an actual text pasting service Jan 05 00:11:02 I don't have the text, and VS doesn't allow copy paste from its log view. Jan 05 00:11:12 i flat out don’t believe that Jan 05 00:11:12 hmm... not sure how to get the text. Jan 05 00:11:31 orbyt_, For sure. Thank you. Jan 05 00:11:51 those are the relevant portions of the logs, at any rate. Jan 05 00:12:05 there is rather little to see since the app dies so quikcly. Jan 05 00:12:27 i don’t see anything that would help Jan 05 00:12:36 you’re gonna have to go back to the Xamarin people and ask Jan 05 00:12:46 damn :/ Jan 05 00:12:55 i’m sure they’ve got a forum on their website Jan 05 00:13:56 or, you could go to native development Jan 05 00:14:49 are people using Scala with Android dev? Jan 05 00:14:58 there are some, yes Jan 05 00:15:02 but you’ll have the same problem Jan 05 00:15:18 Lack of support, you mean? Jan 05 00:15:25 yeah Jan 05 00:16:19 ...hmm... I bet I shouldn't have taken that Xamarin update since this was working just fine before... Jan 05 00:16:25 hot dammit! Jan 05 00:16:32 oh well, thanks for your time all. Jan 05 00:19:32 I'd pick Kotlin + Android Studio over Xamarin if I wanted a better Java, personally. Jan 05 00:19:44 Kotlin is a lot nicer than C# in various ways. Jan 05 00:20:56 hello guys, anyone know why "adb logcat -c" command doesn't really work? :o Jan 05 00:21:14 you’ll have to explain what you mean by “doesn’t really work" Jan 05 00:22:54 this worthless fucking linter Jan 05 00:23:17 it has a check specifically to see if you’ve given views layout_width/layout_height Jan 05 00:23:27 it told me there were no issues of that type Jan 05 00:23:33 go to run? Boom crash Jan 05 00:23:44 why? I don’t have layout_width on a view Jan 05 00:23:57 that would have been really great to know beforehand, Android Studio Jan 05 00:29:45 google can't help. looking 2 use a .so file as a dependencie/lib in my project. help Jan 05 00:30:38 http://stackoverflow.com/questions/24357687/how-to-include-so-library-in-android-studio Jan 05 00:34:25 Having a weird issue...whenever I re-run my application to see changes, it will crash with a ResourceNotFound exception. Jan 05 00:35:21 It points to my mapView.onCreate() call Jan 05 00:35:32 any ideas why? Jan 05 00:35:42 "Instant Run" strikes again? Jan 05 00:36:28 Perhaps, let me try it without instant run Jan 05 00:40:19 It doesn't appear to happen with instant run disabled. Jan 05 00:44:16 s73v3r heh i usually have the opposite problem, AS redlines all the views missing _width _height when they are optional Jan 05 00:44:39 i think the linter said i have over 1000 problems , so i started ignoring it Jan 05 00:44:52 Why do the "for Dummies" books always repeat the same concept 3 times? Jan 05 00:45:11 i can’t get it to fucking run properly Jan 05 00:52:02 "the first Chromebooks built from the ground up for Android apps" Jan 05 00:52:08 https://blog.google/products/chromebooks/new-generation-chromebooks-designed-work-millions-apps/ Jan 05 00:52:36 because android apps went well on tablets ;) Jan 05 00:55:07 i was hoping that port extender/dock-like things would take off for phones, pity it didn't(hasn't?) Jan 05 00:55:24 Melatonina: because stupid people need things repeated several times Jan 05 00:56:30 bankai_ like windows continuum ? Jan 05 00:56:51 where the phone is the brains, you add keyboard, mouse, and display ? Jan 05 00:57:12 MS just went a bit further with that by allowing x86 apps to run on arm devices Jan 05 00:57:35 supposedly without much penalty Jan 05 00:57:46 aww yeah i saw that. i was more referring to what ubuntu phone were trying to do. there was also another one where you could slide your phone into a notebook-like device, can't remember the name of it Jan 05 00:58:41 anyone know where the linter source is? Jan 05 00:58:47 or the source of the inspections? Jan 05 01:00:03 Is it this? https://android.googlesource.com/platform/tools/base/+/master/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks Jan 05 01:00:20 looks like it might be. thanks Jan 05 01:03:50 ok, i just created a new project. running the inspection by name does nothing. running all the inspections does show it, but not on certain things Jan 05 01:04:18 also slightly odd that a template would have so many lint issues Jan 05 01:06:06 s73v3r seems android teams are understaffed. its taking years for jack / jill Jan 05 01:06:20 ms would have that shit done in 1-2 quarters Jan 05 01:07:02 what seems to happen is during i/o they announce something "coming soon" and then .. beta ... beta ... beta ... i/o.next 'ok we're almost stable' Jan 05 01:07:31 i mean lol, how long is ConstraintLayout going to take, its just a view Jan 05 01:07:36 its like 6mos now Jan 05 01:08:21 hopefully it has a built in lisp interpreter Jan 05 01:10:16 and j/j aren't even from scratch, coming from eclipse so its not like they started with zero Jan 05 01:10:32 at least jack Jan 05 01:23:02 hello guys, anyone know why "adb logcat -c" command doesn't work? Jan 05 01:23:14 I only can get it cleared with reboot :/ Jan 05 01:38:55 How could I possible emulate/test an app that uses wifi p2p? Jan 05 01:40:31 "carefully" Jan 05 01:41:59 mock out the parts that receive the messages Jan 05 01:42:45 which part of it do you specifically want to test? Jan 05 01:45:57 I mean, yeah, I will be transmitting text messages, locations, and probably images Jan 05 01:46:02 and want to make sure that's working properly Jan 05 01:47:22 you can test that your app creates them properly, and that it does the proper thing when it receives them Jan 05 01:49:46 i'm using nativeactivity and android_main function on the c++ side. i load a couple hundreds of megabytes of data at the start of the program. i just learned that when the app is destroyed, the linux process of the app is NOT destroyed but keeps running; instead just android_main() returns and will be called again when the app resumes. my question is: which way is the correct way to do it: should i keep my hundreds of megabytes of ... Jan 05 01:49:52 ... loaded data in the memory in some global variable which stays in memory even after the app has been destroyed and trust that the operating system will kill the actual linux process if it wants to get rid of the allocated memory, OR, should i clean up all the data that i've loaded when the app is destroyed and android_main() returns? Jan 05 01:50:17 Okay, that makes sense s73v3r Jan 05 01:50:42 abax: Don't use globals. Jan 05 01:56:10 Dagmar: i don't care so much what's the "correct" way to program. i just would like to keep my data in memory so i wouldn't have to load it again when the app resumes. i'm just wondering if that's perfectly allowed or i'm i expected to free all my memory when APP_CMD_TERM_WINDOW is generated and android_main() returns Jan 05 01:56:28 *if Jan 05 01:56:55 think you answered your own question abax Jan 05 01:57:17 sasser: would you care to point out what the answer was Jan 05 01:57:36 abax: are you generating this data? or is it in a file on disk? Jan 05 01:58:03 jmgao: i's in a file. mostly a couple of big .png files Jan 05 01:58:14 just mmap it then Jan 05 01:59:22 jmgao: mmap doesn't really help because i would like to keep the decoded image data in the memory and not the .png data. because it's for opengl. Jan 05 01:59:39 and decoding it takes a couple of seconds because they are 4096x4096 pixels Jan 05 01:59:42 ah, okay Jan 05 02:00:08 you could try using ashmem pinning/unpinning Jan 05 02:01:25 unpin the memory when you "exit", and when you start up again, repin it and you'll get a response of "the memory is still there" or "it's been purged" Jan 05 02:02:37 jmgao: ok that sounds quite clever. that could be one way to do it Jan 05 02:05:52 Hi! In a list (RecyclerView) of items I want to replace one of the items with another version of it so as to allow inline editing of the item. How do I do that, generally speaking? Jan 05 02:07:57 wibby: Change the model (e.g., `list.get(0).setInEditMode(true);`) and then tell the adapter that the model has changed (`adapter.notifyItemChanged(0);`). Jan 05 02:09:02 And use multiple view types. Jan 05 02:09:20 And multiple view holders, I gather? Jan 05 02:10:02 Yeah, I think so. Jan 05 02:10:11 So no removeView/addView stuff? OK, cool, thanks Jan 05 02:10:20 You could use one view holder, but I don't think that's a good idea. Jan 05 02:10:49 yeah, no problem. I just didn't know what the right approach was Jan 05 02:10:52 Manually changing a ViewGroup's children isn't great in most cases. Jan 05 02:11:00 There are some cases where it's simpler. Jan 05 02:12:00 oh, the views have different heights. any pointer on how to create a smooth animation? Jan 05 02:12:35 example: android stock clock app where you can edit alarms Jan 05 02:15:34 Hmm, not sure. It might end up easier to use the ViewGroup-manipulation technique in that case, but I'm not certain. Jan 05 02:17:05 oh. hmm. ok. I'll cross that bridge when I come to it Jan 05 02:17:23 thanks for now! **** ENDING LOGGING AT Thu Jan 05 03:00:00 2017