**** BEGIN LOGGING AT Fri Oct 28 03:00:00 2016 Oct 28 03:02:38 hi Oct 28 03:03:01 Hello homa_. Oct 28 03:03:10 hi LunarEclipse120 Oct 28 03:03:22 Hi, when I try to install the NDK toolchain I get a successful message with no actual directory created Oct 28 03:03:54 Yet I get a message saying the toolchain has been installed to the specified directory Oct 28 03:04:51 Can someone help me out here? Oct 28 03:05:06 What IDE are you using? Oct 28 03:05:48 Linux command line Oct 28 03:06:04 To install the NDK? Oct 28 03:06:10 Why don't you use Android Studio or something? Oct 28 03:06:41 android-ndk-r13b/build/tools/make-standalone-toolchain.sh \ Oct 28 03:06:41 -install-dir=android-25-toolchain --ndk-dir=android-ndk-r13b --arch=arm Oct 28 03:06:50 is the command I'm running Oct 28 03:07:04 Melatonina You still here? Oct 28 03:11:21 backnforth: did it ignore one of those args and createa tar.gz? Oct 28 03:11:51 no Oct 28 03:11:54 it created nothing Oct 28 03:16:43 I don't understand what is missing here Oct 28 03:17:09 Now if I create the install directory then run the command Oct 28 03:17:15 I get an error saying the directory already exists Oct 28 03:37:10 bash -xv it, see what it's doing Oct 28 05:30:41 all MEAPs @ manning 50% off today :) Oct 28 05:34:33 can you recommend something specific Oct 28 05:35:08 https://www.manning.com/meap-catalog Oct 28 05:37:05 https://www.manning.com/books/coreos-in-action Oct 28 05:37:20 typo in part 2.3 Oct 28 05:37:27 :) Oct 28 05:43:56 squ ones that may be of interest https://www.manning.com/books/kotlin-in-action Oct 28 05:44:07 https://www.manning.com/books/google-cloud-platform-in-action Oct 28 05:44:17 About the author Oct 28 05:44:17 JJ Geewax is a Software Engineer at Google working specifically on Google Cloud Platform, and has been using cloud services since 2008. Oct 28 05:44:26 https://www.manning.com/books/grokking-reactive-user-interfaces Oct 28 05:44:41 since I switched from Parse to Google Cloud and Firebase :) Oct 28 05:45:08 https://www.manning.com/books/grokking-reactivex Oct 28 05:45:51 gordon_ i think you will like this! https://www.manning.com/books/electron-in-action Oct 28 05:46:12 what we need is flutter in action :D Oct 28 05:46:44 meap means you can buy unfinished book? is it cheaper than buying complete book? Oct 28 05:47:00 MEAP is like unfinished book Oct 28 05:47:10 the pub dates are on the right Oct 28 05:47:10 Desktop applications are great, but it’s painful and time consuming to use different languages and frameworks for each platform. You could build web applications, but they can't access file systems or native APIs. Electron can help. Electron is a framework for building cross-platform desktop applications with web technologies. Oct 28 05:47:18 Electron can help :) Oct 28 05:47:41 gordon_ angular dart on electron ! Oct 28 05:48:06 lol this is sad, compared to android even JS stuff looks sexy to me Oct 28 05:53:51 android upsets me, they not used any of available technology, but pushed new to us including their own ide studio Oct 28 06:21:47 Hi. Can someone help me with NumberPicker? I am trying to use one in a Dialog but it looks like it is missing any theme. it looks like follows: https://p.styler2go.de/2244263/ Oct 28 06:46:48 anyone ever used NumberPicker? Oct 28 07:34:01 hey, anyone familiar with rxjava? how do I run a DB insertion in the BG, but ignore whether its successful or not? Oct 28 07:40:40 hello boomber Oct 28 07:40:45 hey Oct 28 07:41:00 you can ignore the return Oct 28 07:41:45 so I can't pass in a void function into Observable.from() right Oct 28 07:41:47 what would I use instead? Oct 28 07:44:11 Observable.defer(rx.functions.Func0) Oct 28 07:44:21 integer is what insert returns Oct 28 07:45:01 inside Func0 blocking call to .insert Oct 28 07:45:09 what is rx.functions.Func0? Oct 28 07:45:18 I think I lost you on the part after defer... lol Oct 28 07:45:26 I'm kinda new to RxJava so forgive the dumb questions :S Oct 28 07:45:39 I have a void method in my class I want to call Oct 28 07:45:39 that system is complicated Oct 28 07:45:50 voidMethod1 Oct 28 07:45:51 I'm learning too Oct 28 07:45:54 ah Oct 28 07:46:08 and they made RxJava 2, which all methods renamed Oct 28 07:46:16 bleh Oct 28 07:46:26 yes bleh, I agree with you :) Oct 28 07:46:27 i wish there was a good resource that explained all of this Oct 28 07:46:46 I can show you how I done it, maybe it will be easier Oct 28 07:46:52 sure Oct 28 07:46:56 then wait Oct 28 07:54:05 hm Oct 28 07:54:10 maybe it just doesnt make sense to use rxjava for this use case Oct 28 07:58:48 boomber: http://i.imgur.com/fEVm1GM.png Oct 28 07:59:31 sleep is there just to be sure it doesn't block main thread Oct 28 08:19:23 Heyo Oct 28 08:19:31 Anyone online? Oct 28 08:20:21 yes Oct 28 08:20:27 just ask, don't ask to ask Oct 28 08:22:24 well he just asked Oct 28 08:22:44 oh, well. true. Oct 28 08:22:50 Lol so I am just starting out in this dev community. And was wondering if what I currently have now is robust enough to build AOSP from source. Just upgraded from a crappy Acer laptop to a MacBook pro. Oct 28 08:24:43 16 GIgabytes of RAM, 2.5 Ghz, 512 GB of space. As well as a 1TB SSD Oct 28 08:25:00 anything >=8GB will be fine Oct 28 08:25:22 Great! Oct 28 08:25:53 I've been trying to ask a dev for a few days. Thanks for answering that for me. Oct 28 08:26:36 infinitexloop: https://www.youtube.com/watch?v=ib-T51UpgK8&index=5&list=PLl-K7zZEsYLkkCFs6T9mlqG8v6NCs38pA Oct 28 08:26:50 all android devs from google use macbooks :) Oct 28 08:27:05 no chromebooks? scrsm Oct 28 08:27:06 but put stickers to hide apple logo :) Oct 28 08:27:18 Then I abandoned windows for a goooood system then Oct 28 08:27:24 how can you tell its macbook if logo is hidden Oct 28 08:27:29 look videos in that playlist, they all use macs Oct 28 08:27:30 :) Oct 28 08:27:46 so your macbook will be fine Oct 28 08:27:51 I just got sick of my acer freezing whenever it felt like it Oct 28 08:29:34 styler2go: if they choose to chrome web developer technologies for android development, then chromebooks could be used :) Oct 28 08:29:41 8 Gigabytes of RAM and quad core. Lol it felt like it was struggling just to use YouTube ... It was pretty demented. Froze when I started a Windows 8 Start menu search Oct 28 08:30:04 Every single time lmao Oct 28 08:30:29 So.. has anyone ever used a NumberPicker? Oct 28 08:30:32 And Windows 10 made it much more problematic. But thank you guys! Oct 28 08:31:04 styler2go: it looks like you are trying to copy old ios 4 style pickerview with gradients Oct 28 08:31:10 styler2go: this is not the way to go Oct 28 08:31:49 I did not copy anything.. i just pasted the NumberPicker in the designer drag and drop and it was like that Oct 28 08:32:16 http://stackoverflow.com/questions/40299804/numberpicker-has-no-theme?noredirect=1 Just made a stackoverflow, there is all informations bundled Oct 28 08:40:57 Are the margins part of a view's height? (getHeight()) ? Oct 28 08:44:14 https://www.youtube.com/watch?v=-03R4Fj79_E Oct 28 08:44:18 flutter is first Oct 28 08:44:39 fluttershy? Oct 28 08:44:47 yes Oct 28 09:08:54 are they using ios simulator Oct 28 09:08:55 :) Oct 28 09:09:21 what if apple ban them :) Oct 28 09:10:21 yet another cross platform system Oct 28 09:12:38 http://i.imgur.com/naW5GWq.png Oct 28 09:29:20 Is there any boilerplate code for Android background service that would send some data to remote server? Oct 28 09:33:36 The libraries will probably take care of that. Oct 28 10:05:18 hi Oct 28 10:05:49 hello Oct 28 10:06:33 hi guys Oct 28 10:07:05 https://developers.google.com/android/reference/com/google/android/gms/maps/CameraUpdateFactory.html#newLatLngBounds(com.google.android.gms.maps.model.LatLngBounds, int, int, int) Oct 28 10:07:06 ohai Oct 28 10:07:30 Is padding really in independent pixels? Oct 28 10:08:12 it says paddingadditional size restriction (in px) of the bounding box Oct 28 10:08:19 so no Oct 28 10:10:03 how can it be done with android wear, that the screens of a picker op down left right are animated when navigating smaller than the middle element of the screen Oct 28 10:10:07 hi it is my DbHandler class http://kopy.io/uJy2W and it is my main activity http://kopy.io/UFnEw i need to retrive from sqlite how can i show my data in the activity Oct 28 10:10:20 or different asked: how do I find that out Oct 28 10:16:05 What's the best way of storing data temporarily between activities? I don't really want to have to use intents. I have an SQLite DB, I could store it in, but that feels a little more permanent than I would require. Oct 28 10:16:34 if its simple datatypes, sharefpref Oct 28 10:16:53 raoul11: yeah, just text values Oct 28 10:17:10 are they cleared out when the app closes/reloads? Oct 28 10:17:15 whats defference between shared prefrences and sqlite in storing data Oct 28 10:17:37 I don't want any persistence of data, other than to a point that a specific activity is opened, and the data read. Oct 28 10:18:38 hi it is my DbHandler class http://kopy.io/uJy2W and it is my main activity http://kopy.io/UFnEw i need to retrive from sqlite how can i show my data in the activity Oct 28 10:20:22 hmmm, in the shared prefs it says about using getActivity, but that doesn't wanna work in the onCreate() do I not need to worry about that as I'm in the activity alreayd? Oct 28 10:23:40 linuxlove: what are you asking about? you have the list of shops, just stash them in a recyclerview ? Oct 28 10:25:33 xorgate, im in doubt about storing data because after inserting when i click on select button i see nothing Toast.makeText(MainActivity.this,shop.name,Toast.LENGTH_LONG).show(); Oct 28 10:26:14 i dont get any error when i insert Oct 28 10:26:42 i changed version to 3 because i got error from version 1 Oct 28 10:27:34 linuxlove: first figure out whether the insert happens properly Oct 28 10:29:41 is it possible to create a class that extends a view or activity and make your own view or activity by that? Oct 28 10:30:52 xorgate, whats wrong with this shop.setName(name.getText().toString()); Oct 28 10:31:21 linuxlove: i don't know. do you know how to debug values? Oct 28 10:31:32 honigkuchen: certainly Oct 28 10:31:33 no Oct 28 10:31:50 linuxlove: do you know what a breakpoint is Oct 28 10:32:10 xorgate, and no again Oct 28 10:32:32 but why i cant set in shop from edittext Oct 28 10:32:52 linuxlove: ok, they are basic programming concepts. your program is basically a long list of instructions being executed. you 'step' through them and see the updated state of your app Oct 28 10:33:20 xorgate, okay Oct 28 10:33:30 linuxlove: highly recommended to learn it Oct 28 10:33:46 the name 'debug' is not randomly chosen :) Oct 28 10:34:29 in AS, set a debug by clicking in the 'gutter' left of the code (it will become a red dot) Oct 28 10:34:36 then start the app using 'debug' from the run menu Oct 28 10:34:46 it will stop running at the line of code Oct 28 10:34:54 then you can mouse over variables and see what they are Oct 28 10:35:29 and actually you can run code on the current state with 'evaluate expression' so for example 'name.getText().toString()' Oct 28 10:35:29 okay Oct 28 10:37:12 linuxlove: it looks like this http://imgur.com/a/t8XCS Oct 28 10:38:29 xorgate, the link you have sent i cant open that Oct 28 10:38:58 :v Oct 28 10:39:28 it is filtered in my country Oct 28 10:39:54 xorgate, can you show me somewhere else Oct 28 10:43:25 linuxlove: in your code just go to the line you want to look at and click next to the line number Oct 28 10:43:35 then you should see a red dot, thant means the breakpoint is enabled Oct 28 10:43:52 also what country filters imgur? Oct 28 10:44:03 xorgate, Iran Oct 28 10:44:14 aha Oct 28 10:44:30 can you see youtube? Oct 28 10:44:53 https://www.youtube.com/watch?v=VdBsUv4lnm4 Oct 28 10:46:23 xorgate, im trying that Oct 28 10:46:54 linuxlove: what you want is to figure out the first thing that goes wrong. could be related to the edittext, could be related to the db, quite a few things Oct 28 10:47:17 with debugging it becomes easier to determine that something does not go the way you expect it Oct 28 10:47:48 xorgate, thanks for video Oct 28 10:48:15 debug, step, evaluate expression. these things are your friends Oct 28 10:49:24 i saw that name is set before inserting second button from debugging Oct 28 10:49:52 before running second button ^ Oct 28 10:57:44 Hi Oct 28 10:57:58 can I see the exception an apk is throwing using adb? Oct 28 10:58:27 adb logcat Oct 28 10:58:44 squ: Is there any tutorial I can read? Oct 28 10:59:02 no Oct 28 11:00:41 Hi, I'm facing an issue, I've two apps and I would like them to share a user, I added the following attribute 'android:sharedUserId="com.elearnsecurity.maspt.jamesbond' in the application element in AndroidManifest.xml in the two applications, however when I run these two applications they run under different users, any idea what's going on? Oct 28 11:01:56 they both are signed with the default debug certificate from android studio Oct 28 11:05:16 hi all Oct 28 11:05:23 anything better than device farm out there Oct 28 11:05:28 thoughts please Oct 28 11:18:43 Hi all. I have an Android device with a custom rom. When I enter the 'adb devices command', the device isn't listed. USB Enabled is on Oct 28 11:19:15 any advice? it's also not possible to install an app by transferring an apk to the device. Looks like it's blocked in the custom rom. Oct 28 11:19:33 is there a way to force install an app? :) Oct 28 11:20:09 usb debugging on? Oct 28 11:20:25 drivers ok? Oct 28 11:20:34 developer mode Oct 28 11:20:42 any dialog showing when you plug in usb Oct 28 11:22:01 I have a 'Usb debugging connected' notification Oct 28 11:34:27 any one about my issue? Oct 28 11:49:30 soulisson: did you sign your application with the same certificate? Oct 28 11:50:29 Melatonina: I used the one provided with android studio, and I generated as well one for the release, in both cases, it didn't work Oct 28 11:54:05 Melatonina: For the releases I checked the apk files with jarsigner -verify -certs -verbose and the same certificate is displayed Oct 28 11:55:55 soulisson: sorry. I don't have any other suggestion Oct 28 11:58:10 Melatonina: ok, np, I'm probably missing something but I don't know what :) Oct 28 11:58:43 soulisson: life is all like that Oct 28 11:58:52 you miss something but you don't know what Oct 28 11:58:56 :) Oct 28 12:00:05 lifehacksbymelatonina.org Oct 28 12:00:29 So, I have the ability to open an app from a URL using the intent-filter in android manifest Oct 28 12:01:06 in the URL, I use get variables to pass in some data, however, if the app is already openb, the onCreate method doesn't pull them in Oct 28 12:01:12 how can I get them if the app is already open? Oct 28 12:01:19 would that be in onResume()? Oct 28 12:01:34 onNewIntent Oct 28 12:01:49 ah ok Oct 28 12:02:22 top two android dev books one must have? Oct 28 12:03:44 does that need an @Override SimonVT ? Oct 28 12:05:39 it does Oct 28 12:06:08 sdousley: if yer on android studio, and u dont wanna handwrite each override method, click ctrl+o and it will open up all the available methods Oct 28 12:06:47 how do u like that lifehack Melatonina? Oct 28 12:12:19 raoul11: I'm on IntelliJ, but that keyboard shortcut does exactly that anyway :) Oct 28 12:12:41 jetbrains ftw Oct 28 12:13:00 yeah, I'm a web dev that does php, and used phpStorm Oct 28 12:13:04 so IntelliJ feels like home Oct 28 12:13:38 i did python so coming from pycharm and sliding to AS was easy and clear Oct 28 12:13:38 What happens if you don't put @Override before the method? Oct 28 12:13:47 :) Oct 28 12:13:50 pycharm is JB too? Oct 28 12:15:51 hmmm, I added a Log.d("AA", "onNewIntent"); in the onNewIntent method, but I don't see that log at all when I hit the link from a browser :( Oct 28 12:16:40 oh wait, I think it's hitting onCreate now Oct 28 12:17:13 you can always dump it on onResume Oct 28 12:19:58 ok, it's working in onCreate now Oct 28 12:21:29 Ie "if(a==2) { break; }" Oct 28 12:21:38 How do I get Android Studio to show how far a "break" will affect in Java-based language? I have tried to search the web but answers revolving around debug breakpoints overwhelm the results. Oct 28 12:22:22 I'm thinking I might not have updated the emulator with the updates in onCreate Oct 28 12:23:11 mihalybak: I don't understand your question Oct 28 12:24:01 A break statement will break out of an enclosing loop. Oct 28 12:24:10 OK, so next thing, sharedprefs are storing fine. but when I change activity, they are no longer there. Oct 28 12:24:24 pduin: In Eclipse if I select a "break;" in the code, it will show which loop is terminated, for when using nested loops. I want this is Android Studio too if posible Oct 28 12:24:25 It only breaks out of the first one, if it's a nested loop Oct 28 12:24:47 unless I'm pulling them wrong Oct 28 12:25:10 pduin: yea, I know the simple logic behind it but would like the ide to help me Oct 28 12:25:33 Ah, I see. That, I do not know, sorry Oct 28 12:26:08 I am starting to think that this feature does not exsist in IntelliJ/Android Studio Oct 28 12:27:26 pduin: does android/java break work like PHP for example break 2; will break 2 nested loops Oct 28 12:27:56 I don't think that's valid synctax in java Oct 28 12:28:01 syntax* Oct 28 12:28:53 You can use goto to jump out of a nested loop Oct 28 12:29:41 ah ok Oct 28 12:30:10 The first answer in this SO-page explains it pretty clearly: http://stackoverflow.com/questions/26430630/how-to-use-goto-statement-correctly Oct 28 12:30:48 ah ok that makes sense :) Oct 28 12:31:25 What's the difference between apply() and commit() with shared prefs? Oct 28 12:31:40 oh, apply does it in the background, commit does in UI thread Oct 28 12:31:56 so considering that I want them accessible in another Activity, apply is fine. Oct 28 12:33:21 http://pastebin.com/efGL6UUY - I have 2 activities, in the initial one that gets called by the intent, we store some shared prefs, in another, we call them, but for some reason, I'm just getting the default value (56) Oct 28 12:33:51 Read the documentation on getPreferences Oct 28 12:34:51 Oh, I want getSharedPreferences not getPreferences Oct 28 12:35:49 I usually use PreferenceManaget#getDefaultSharedPreferences Oct 28 12:36:25 But always read the documentation before asking questions Oct 28 12:52:56 hi Oct 28 12:53:06 whats this error android.database.CursorIndexOutOfBoundsException: Index -1 requested Oct 28 12:57:10 linuxlove: If I remember correctly, Cursors start on index -1. Advance the cursor once before you start querying its results. Oct 28 12:58:37 pduin, you mean i should start from -1 Oct 28 13:01:05 pduin, it is my main http://kopy.io/1kvMP Oct 28 13:01:07 Call moveToFirst() to set let the Cursor point to the 0th row of it's result set, instead of it's default -1 Oct 28 13:02:54 pduin, thanks Oct 28 13:02:56 First thing you need to know is that a Cursor is some kind of a pointer to a two dimensional result set Oct 28 13:03:32 pduin, i got result when i called movetoFirst Oct 28 13:03:41 Use the moveToNext-like methods to loop over the individual results (in this case Shops) Oct 28 13:04:16 Use the getString() method to access the result fields of a shop Oct 28 13:06:21 pduin, if i need to see content od listshop? Oct 28 13:06:31 of^ Oct 28 13:07:18 Your code does not loop over the individual shop results Oct 28 13:07:54 It just grabs a few values from the columns of a single shop Oct 28 13:08:07 yess let me send right one Oct 28 13:10:19 pduin, http://kopy.io/YGiAy Oct 28 13:11:32 pduin, i just need to see content of shoplist now Oct 28 13:12:18 listshop^ Oct 28 13:12:30 Not sure what you mean by that Oct 28 13:12:51 i mean see them as alist in activity Oct 28 13:13:40 with two column name:address Oct 28 13:13:44 In that case, you will probably want to familiarise yourself with the RecyclerView Oct 28 13:14:42 Google a bit, read some guides on how to use it Oct 28 13:15:11 pduin, okay thanks for moveToFirst help Oct 28 13:16:20 You're welcome Oct 28 13:17:12 pduin, if i want to see content of listshop in toast for test how can i do that Oct 28 13:18:44 Create a string, create a toast, show it Oct 28 13:22:28 Concat every field of every shop into a single string and use the toast to show it, I guess Oct 28 13:36:55 no log it in logcat Oct 28 13:39:42 can i enable adb over wifi without root? Oct 28 13:39:47 and without any cablr? Oct 28 14:07:29 No Oct 28 14:11:37 when i use starTActivity(intent) can i somehow get a callback when the intent is finished? Oct 28 14:11:45 or do i have to make this on my own? Oct 28 14:12:08 startActivityForResult Oct 28 14:12:13 nice thanks Oct 28 14:19:47 Melatonina: Oh my god, I want to jump, instead of putting the attribute in I put it in , the worst part is I read the documentation several times :) Oct 28 14:20:04 Maybe i can ask again.. Has anyone ever worked with NumberPicker? Oct 28 14:21:28 soulisson: I did that too. The problem is that misplaced tags and attributes are just ignored in order to improved compatibility across APIs thus you don't get any feedback. Oct 28 14:22:31 Melatonina: indeed, maybe I could have guesses it because android studio wasn't providing any completion Oct 28 14:23:42 what do you need with NumberPicker? Oct 28 14:24:55 I have no design on it and it's background is just transparent Oct 28 14:25:43 :o Oct 28 14:41:45 im developing an app for both phones and tablets. i have a menu which is being inflated for/from the left fragment and it is blocking partial elements of the ui when its inflated in two pane mode (tablet) how could i fix this? Oct 28 14:42:55 i should add that on start, the menu is not blocking, it is only when the right fragment is replaced by clicking an element in the left fragment Oct 28 15:24:08 hi Oct 28 15:26:13 this is my code to show array in a list view i get this error ArrayAdapter requires the resource ID to be a TextView and code is http://kopy.io/IIEI5 Oct 28 15:34:46 heh nick butcher calls appcompat the "giant mountain of hacks" Oct 28 15:36:02 what else could it possibly be Oct 28 15:36:32 Yeah, that sounds about right Oct 28 15:57:16 hi my friends Oct 28 16:01:37 hi homa_ Oct 28 16:01:49 hi linuxlove Oct 28 16:04:25 hey guys, when I launch an android emulator with a different port setup, I seem to never be able to connect to it, or see it with `adb devices` Oct 28 16:04:30 " ANDROID_ADB_SERVER_PORT=5815 “ and “emulator.exe -engine classic -ports 5790,5791 -avd ci-Nexus -no-snapshot-load -no-snapshot-save” Oct 28 16:04:57 but despite me seeing the emulator, and all going well with it, `adb devices` shows up empty Oct 28 16:20:58 Is there an android-sdk channel that might have an actual answer for my question somewhere? Oct 28 16:21:39 Been here asking idling for about 2 days now trying to solve my problem https://gist.github.com/chamunks/987cc23716d2bbb56a35bad5e11acf2e Oct 28 16:21:48 Seems that even following the license export process I'm getting nowhere. Oct 28 16:24:15 are you fetching the right components? I didn't immediately see platform 24/build-tools 23.0.2 in the update sdk step, but maybe I missed it Oct 28 16:25:53 (based on /root/.jenkins, I take it this needs to work in an unattended fasion... sort of looks to me it might be some tweaks needed for the update sdk selection) Oct 28 16:27:39 chamunks, why aren't you installing the missing components in the first update call_ Oct 28 16:27:41 ? Oct 28 16:28:01 Mavrik thats a good question. Oct 28 16:28:14 Not 100% familiar with this badboy. Oct 28 16:28:41 I'm used to building just maven java projects on jenkins or just running scripts. Oct 28 16:29:21 Mavrik is there something that I'm missing that tells me more about what I need to install to make this happen? Oct 28 16:29:40 The error message it telling you which components it's trying to install. Oct 28 16:29:47 You either need to preapprove the license Oct 28 16:29:53 Or just download those components in the first place Oct 28 16:30:13 I've set jenkins to do something like "( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk -u --filter platform-tools,android-19" Oct 28 16:30:17 In the prebuild Oct 28 16:30:48 > You have not accepted the license agreements of the following SDK components: Oct 28 16:30:49 [Android SDK Platform 24, Android SDK Build-Tools 23.0.2]. Oct 28 16:30:57 I don't see those in your command. Oct 28 16:31:03 indeed Oct 28 16:31:47 chamunks: android update sdk -u --all --filter 19 is the line that selects the components. android list sdk --all will list all available selections, you probably need to replace the 19 with the correct numbers. Oct 28 16:32:04 ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk -u --all --filter 19 Oct 28 16:32:23 Thats the other pre build step. Oct 28 16:34:20 actually, using the identifiers from android list sdk --all --extended will probably avoid the next sap who needs to debug this some trouble ;-) Oct 28 16:35:39 For the most part I don't really touch the code just providing the jenkins to help a friend out. Oct 28 16:35:40 So I definitely am a bit green. Oct 28 16:37:39 kbs, so something like "android update sdk -u --all --filter android-24 Oct 28 17:00:02 kbs and Mavrik thanks again for the help. Oct 28 17:14:43 cmon google, push an update that fixes the previewer + recyclerviews ... pos Oct 28 17:14:59 i don't think that thing has worked reliably for me for at least 6mos now Oct 28 17:15:46 it must be some crappy code, always one thing or another breaking it Oct 28 17:15:50 so brittle. so sad Oct 28 17:18:04 "Your devout prattle is no more than farts in the wind, next to the power of this ring!" -- man, who comes up with this stuff Oct 28 17:18:26 pfn lol that sounds bot generated Oct 28 17:18:42 it's from a game Oct 28 17:18:45 haha Oct 28 17:18:54 a bad guy's line Oct 28 17:19:26 'all your bases are belong to us :D' Oct 28 17:20:20 actually kinda beautiful up to "," not sure what the second phrase means. guess you have to be playing the game Oct 28 17:20:42 pfn, dafuq are you playing Oct 28 17:20:47 ffbe Oct 28 17:20:47 heh Oct 28 17:21:21 Ugh. Oct 28 17:23:17 Mavrik, it's pretty great if you're a ff fan Oct 28 17:23:49 I believe you. I've never played FF a lot, campy Japanese story telling, bad writing and even worse english translations did it for me :) Oct 28 17:30:32 "Touch Bar runs watchOS, and macOS sends it framebuffer data over USB. This presumably then relays multitouch events back to macOS." O.o Oct 28 17:35:00 interesting Oct 28 17:35:18 i kinda want to play around with making a touchbar app Oct 28 17:49:48 I am having a hard time recieving response as string in retrofit. Anyone else got into this? Oct 28 17:53:27 The following packages are not available: - Package id sources;android-25 . How do I attach sources to android studio for 7.1? Oct 28 17:57:28 they aren't available yet Oct 28 17:58:01 So can I configure Android studio to use 7.0 documents? It was the same when developing for 7.0 preview, and I hated it. Oct 28 17:59:04 Sircle: add the scalars converter Oct 28 17:59:33 yoavst: copy android-24 to android-25 in SDK/sources/ and restart AS Oct 28 18:00:15 Thanks, I'll try! will it break things when there will be official sources? Oct 28 18:04:46 remove it and download the sources when they become available Oct 28 18:07:10 JakeWharton: cant find a proper example Oct 28 18:07:49 JakeWharton: this? https://github.com/square/retrofit/tree/master/retrofit-converters/scalars if so, any example code? Oct 28 18:12:22 JakeWharton: Do you have any tips for presenting code on slides? Oct 28 18:17:25 s73v3r: on my blog Oct 28 18:17:38 Sircle: look in samples/ maybr Oct 28 18:32:32 backnforth: did you mess up your copy/paste of that command line (the make-standalone-toolchain.sh)? Oct 28 18:33:08 It's `--install-dir` (two leading dashes), and `--ndk-dir` isn't supported Oct 28 18:33:15 (it was never necessary) Oct 28 18:33:47 Huh, though as you said, it doesn't actually create the directory Oct 28 18:33:50 File a bug? Oct 28 18:34:02 (as a workaround, use make_standalone_toolchain.py) Oct 28 18:37:57 backnforth: Ugh, that script is hiding errors. If you pass an explicit `--platform=9` (or whatever level) it should work fine Oct 28 18:38:04 I'll have a fix up in a bit Oct 28 19:24:45 architecture spitball time Oct 28 19:25:11 I’ve got a RecyclerView adapter that just takes an array of strings and displays them in a simple view Oct 28 19:25:19 I use this in a couple places Oct 28 19:25:47 Now I have a situation where I need that same functionality, but for one item, I need to add an image to the side of the text Oct 28 19:26:18 I’d like to keep this basic adapter generic Oct 28 19:28:27 Maybe I could pass in a closure/class to the adapter that would configure the cell? Oct 28 19:29:04 do like ArrayAdapter Oct 28 19:29:43 you could use an object to configure it as well, yes Oct 28 19:30:23 what does array adapter do? I don’t have it in front of me Oct 28 19:30:40 well, all it does is toString and let you specify a layout file plus the textview ID Oct 28 19:31:18 doesn't really work well for more complex objects, but you could do something similar, otoh, all of this logic can be encapsulted in the viewholder/binding Oct 28 19:31:33 onBindViewHolder(vh) { vh.bind(domainObject) } Oct 28 19:34:02 This adapter wouldn’t be for complex objects. Just strings Oct 28 19:37:15 i could modify it to take an array of icons to use as drawableLefts, but that seems wasteful Oct 28 19:40:31 Hmm.. I am using a DatePickerDialog but when i select as month it's always -1. Like, when i select october i get 9. is this common or is something wrong? Oct 28 19:41:33 I think if you don’t need per-cell customization, like you don’t have cells where some have icons and some dont, then the ArrayAdapter method would be the way to go. Oct 28 19:50:32 this is harder than I thought... Oct 28 19:51:16 Contrary to my expectation the items of my RecyclerView have each the size of the whole screen. This is the the layout file: https://gist.github.com/anonymous/81480b48f98c2cd50ff086fca70bc742 Oct 28 19:51:50 layout_height is wrap_content Oct 28 20:00:08 so I add a LinearLayout that I set a background color. then I add a ListView to it, and add a margin to it. Oct 28 20:00:32 which makes the background color on the LinearLayout go transparent Oct 28 20:00:39 Melatonina: How tall are your images? You are still wrapping them Oct 28 20:00:51 You may need to set an explicit height Oct 28 20:01:10 they are 1/3 of the screen height Oct 28 20:01:31 the items are mostly empty Oct 28 20:01:38 and the image is centered vertically Oct 28 20:02:30 Melatonina: You can use the layout inspector to see what exactly is expanding that you don't expect Oct 28 20:06:43 same with Relative layout? Oct 28 20:06:50 this is odd. Oct 28 20:08:01 nug700: You can also use the layout inspector to see what exactly is doing stuff you don't expect :) Oct 28 20:08:30 it shouldn't be behaving this way. Oct 28 20:10:36 nug700: If you can get good enough details about the bug with the Android classes, then b.android.com is the place to file a ticket Oct 28 20:12:05 hello, in this example: https://android.googlesource.com/platform/development/+/master/samples/Support7Demos/src/com/example/android/supportv7/widget/AsyncListUtilActivity.java how to refresh data with a button click ? Oct 28 20:12:14 I have a listener for onClick, but inside... what to call ? Oct 28 20:12:34 I'll try RelativeLayout and the inspector in a minute Oct 28 20:15:21 uhm, work with mAdapter.mAsyncListUtil.refresh();............ but mAsyncListUtil is private... is accessible anyway? Oct 28 20:16:15 yiati: the Inspector shows that there is nothing unespected but both the LinearLayout and the ImageView are the size of a screen Oct 28 20:32:49 how do I install SDK API 25? Oct 28 20:34:36 Settings/Android SDK Oct 28 20:35:11 check the API 25 box and click "apply" Oct 28 20:37:07 you are welcome Oct 28 20:39:48 thanks! Oct 28 20:40:03 also does this chat have a guide on how to get started? Oct 28 20:40:24 (didn't find it in the topic) Oct 28 20:41:23 create a project from a template and go on from there Oct 28 20:42:01 Official docs > develop > training Oct 28 20:42:51 if you are a nerd, follow SimonVT's suggestion Oct 28 20:43:37 if you are an action-oriented PWAC disciple, follow my suggestion Oct 28 20:44:16 PWAC? Oct 28 20:44:45 yeah I'm more action-oriented, have a specific app I gotta make Oct 28 20:44:50 Programming Without A Clue Oct 28 20:45:17 It's an extreme form of Agile development Oct 28 20:46:40 I'll do thhat Oct 28 20:56:58 just went to update to ConstraintLayout beta 2, in the AS SDK updater - I get 'installed failed' - anyone else see that ? Oct 28 21:01:41 Hi, if I keep my key pair but I generate a new certificate will my new application version be considered a different application? Oct 28 21:02:40 (on the play store) Oct 28 21:04:34 Can't change signing cert for existing apps Oct 28 21:05:36 SimonVT: even if I keep the same public/private key pair? Oct 28 21:06:34 Not sure I follow what you're trying to do. You can't change your certificate, and you can't generate the same certificate from scratch Oct 28 21:07:23 and you have to have unique package when republishing with new certificate Oct 28 21:07:49 SimonVT: I can generate a new certificate bound to the same key pair, for instance I can change the CN field or the expiration date, but the public key will remain the same Oct 28 21:11:38 Pretty sure you can't Oct 28 21:32:52 SimonVT: It seems google play doesn't care about the private key, it checks the certificate Oct 28 21:33:36 Google doesn't have access to your private key Oct 28 21:38:01 SimonVT: indeed, I thought the process was different, it checks the signature and then compare the certificate with the previous one, if they match it's ok, otherwise ko, I think the same logic is used for application that share the same user id, they could have checked if the same private key was used by using the public key in the previous certificate Oct 28 21:41:51 or simply check if it's the same public key in the SubjectKey field :) Oct 28 21:47:45 you can never keep the same public key Oct 28 21:47:50 what kind of security auditor are you??? Oct 28 21:50:37 pfn: what? Oct 28 21:51:16 you claimed to be an auditor before... Oct 28 21:51:43 pfn: yes, this is the first sentence that bothers me, in what context we can't keep the same public key? Oct 28 21:53:39 oh, you still have your keypair Oct 28 21:53:48 then ok, generatea new cerficate from your keypair Oct 28 21:54:01 should conceptually work Oct 28 21:54:39 the certificate fingerprint will likely change, won't it? Oct 28 21:54:48 kbs: yes Oct 28 21:55:28 I don't recall whether the play store/android insists on the same fingerprint for upgrades (vs key material.) Oct 28 21:55:40 technically apk is signed with the private key from the generated keypair Oct 28 21:56:19 yes, the signature will validate; but whether it will upgrade is where I'm kinda wondering - not sure Oct 28 21:56:37 Hi, is dynamic object creation a bad idea? Oct 28 21:56:41 https://developer.android.com/studio/publish/app-signing.html & https://source.android.com/security/apksigning/index.html Oct 28 21:57:14 it's all explained there Oct 28 21:57:21 kbs: well, that was my question, as well for applications with the same user id, from what I understand it relies on the whole certificate and not just the public key Oct 28 21:59:12 https://developer.android.com/studio/publish/app-signing.html#considerations Oct 28 22:00:03 soulisson: yep; good question - per adq's links, it sort of sounds like it does look at the whole certificate rather than just the key material Oct 28 22:00:26 adq: thanks Oct 28 22:00:29 kbs: indeed Oct 28 22:01:35 I think they just embed the cert containing the pub key to verify the signature of the whole thing + use it as fingerprint, process id & few other stuff Oct 28 22:03:33 sign(apk+cert) can be verified with the pub key from cert, and cert must matches in order to allow playstore update, etc Oct 28 22:05:06 In the first link adq gave there is this sentence where they seem to talk about the public key rather the certificate, ". If the certificate (or, more accurately, the public key in the certificate) matches the key used to sign any other APK on the device, the new APK has the option to specify in the manifest that it will share a UID with the other similarly-signed APKs. " Oct 28 22:06:25 yeah, that's rarely useful but one of the use case is you have 2 different applications (different packagename) and for some reason you want the same pid/gid Oct 28 22:06:41 could be for accessing sharedpreferences from one app to the other, or process com, etc Oct 28 22:06:42 right - it looks like the logic for UID sharing is a bit different for upgrades. Oct 28 22:07:01 s/pid/uid/ Oct 28 22:08:12 kbs: I guess the way to check this is to generate a new certificate but keeping the same key pair, I'm not used to keytool I don't how I can do it Oct 28 22:10:04 sadly, not a keytool expert - but curious about any results you actually discover :) Oct 28 22:11:31 kbs: this is a little bit late for me today, I'm going to sleep but I'll try to explore this tomorrow, if you're here and I find any thing interesting I'll inform you Oct 28 22:12:49 good night every one Oct 28 22:38:48 backnforth: FYI: https://android-review.googlesource.com/c/296939/ Oct 28 22:39:04 (won't be in a release for quite some time, but you can apply the patch locally) Oct 28 22:42:29 Is there a simple way to animate the addition or removal of fragments to a ViewPager's adapter? Oct 28 22:43:13 Eg, when calling adapter.notifyDataSetChanged(), it animated the changes Oct 28 22:44:41 Hey! I am using a SwipeRefreshView from the v4 support library. While it's refreshing, the back button can be pressed to disable the refresh animation, however this is causing problems with my backstack implementation Oct 28 22:44:50 Is there any way to change this? Oct 28 23:42:13 so there's this hello world app Oct 28 23:42:21 but I can't see "hello world" anywhere? Oct 28 23:42:25 where is it hidden? Oct 28 23:54:48 like Oct 28 23:55:08 shouldn't there be something like System.out.println("hello world"); somewhere? Oct 28 23:55:43 you’d have to post your code Oct 28 23:56:39 it's just the "no activity" preset Oct 28 23:56:48 like I just opened android studio Oct 28 23:57:01 and the app shows hello world, so it must be somewhere right Oct 28 23:57:12 logcat? Oct 28 23:57:19 but i have no idea what that looks like Oct 28 23:57:26 what that preset looks like Oct 28 23:58:23 it's this Oct 28 23:58:24 http://paste.ubuntu.com/23395204/ Oct 29 00:05:40 it's a string resource that's applied to a text widget Oct 29 00:08:53 pfn, you mean this line: setContentView(R.layout.activity_main); ? Oct 29 00:20:18 that's part of it Oct 29 00:38:54 I see Oct 29 00:39:05 R stands for relative layout right? Oct 29 00:47:01 no Oct 29 00:47:11 resource Oct 29 01:01:49 so that accesses your xml files Oct 29 01:02:00 which say what goes where, and contain all the pics Oct 29 01:07:30 Hey guys Oct 29 01:07:40 How are you doing? Oct 29 01:10:13 Hey Melatonina o/ Oct 29 02:47:27 bummer, rxjava 2 is back up to 9000 methods Oct 29 02:48:34 well, can't blame them, not just android library Oct 29 02:58:20 Hi danalbert, how do I actually go about building the patched ndk? **** ENDING LOGGING AT Sat Oct 29 02:59:59 2016