**** BEGIN LOGGING AT Fri Jan 13 03:00:02 2017 Jan 13 04:26:01 i've been trying to change initrd, however I'm having problems when I finally flash the img file. it concerns bootimg.cfg (seems like I need to proper change values like ramdiskaddr, kerneladdr, but I couldnt find anything regarding how I can calculate these numbers, do you have any hints? Jan 13 07:54:04 Hey guys, I would like to get some information about the implementation details of adb, I am currently reading the code by myself, but it's pretty difficult to me. Jan 13 07:54:38 I googled for internals of android adb, but found nothing except for two youtube talks. Jan 13 07:55:02 And I have watched them both. Jan 13 08:05:03 I need to store an array of "favorites". Is shareprefs the way to go? Jan 13 08:05:40 sure Jan 13 08:05:46 <3 sharedpref Jan 13 08:48:31 ayyyyyyy Jan 13 08:48:49 I have a fragment in a scrollview, a map fragment Jan 13 08:49:16 how can I catch the scrolling in the fragment and disable the scrolling in the scrollview for that time? Jan 13 08:49:37 is there something like event.StopPopulate() Jan 13 09:19:04 I have an app for internal purposes that is constantly running. I was wondering if there are ways I can either force an update automatically and restart the app from remote. Jan 13 09:21:07 changes like changing out a class. Jan 13 09:21:14 or activity Jan 13 09:21:26 Syzygy: adb could do that Jan 13 09:21:44 assign a static ip and enable adb over network Jan 13 09:22:09 they're connected via cellular network Jan 13 09:25:07 Simple string array. Why is this not equal to ? https://glot.io/snippets/em51rkmdk4 Jan 13 09:26:52 Sourcey, first of all, why are there two fors? they both iterate over i, so that's the first issue Jan 13 09:27:32 also, use a debugger and step through to see what actually happens. Jan 13 09:32:18 Syzygy: i dont think you can do this over cellular, maybe you can sideload via adb over vpn, but im not sure about that Jan 13 09:32:40 you cant force the playstore to update Jan 13 09:33:00 actually it seems you kind of can, the question is if the app will start again then. Jan 13 09:33:11 if so, how? Jan 13 09:33:17 but I would prefer not having to quit out of the app. Jan 13 09:33:29 http://stackoverflow.com/questions/19244305/force-update-android-app-when-new-version-available Jan 13 09:33:29 oh that will be hacky Jan 13 09:33:51 i like hackey :D Jan 13 09:34:05 i dont even think ide's support hot swapping code at the moment Jan 13 09:34:19 at least eclipse and android studio didnt last time I checked Jan 13 09:34:56 -> or go to Google Play Store to upgrade the app. Jan 13 09:34:59 gotcha Jan 13 09:35:06 I thought it had to be full automatic Jan 13 09:35:23 well, google play does automatic updates as well... Jan 13 09:35:54 (also i think android studio allows hot swapping now) Jan 13 09:36:30 and starts the app again in the following case: User closed app -> playstore starts download -> user opends app, while playstore is still downloading -> playstore kills app to install update -L playstore starts app again Jan 13 09:36:55 TotallyNotKim did u figure out that map fragment inside the scrollview? Jan 13 09:37:00 yep Jan 13 09:37:17 figuresd out i didnt need to have the user to interact with the map at all Jan 13 09:37:26 so i disabled gestures all togehter Jan 13 09:37:44 mhm Jan 13 09:37:46 it's more like a preview, clicking on it will open the map intent with a route setup Jan 13 09:37:54 think ill need some interaction with mine Jan 13 09:38:08 exactly the same problem? Jan 13 09:38:20 i havnt implemented it yet, but ill need to Jan 13 09:38:53 scrolling left and right works, but the scrollview catches the events for up and down Jan 13 09:39:01 oh maybe it works the other way arround in android Jan 13 09:39:09 might just take your approach and have it open the entire map fragment Jan 13 09:39:21 the ios dude managed to implement it Jan 13 09:39:34 so ill need to dig on that Jan 13 09:40:23 i found this android:descendantFocusability="blockDescendants" Jan 13 09:40:33 let me try that out real quick Jan 13 09:45:06 nope Jan 13 09:45:11 maybe some event hacking Jan 13 09:45:31 catch the drag event on the fragment and disable the scrollview? Jan 13 09:48:05 Does someone know in which cases the play store updates apps automatically? Jan 13 09:48:50 When autoupdates are enabled, phone is charging and the app doesn't request new permissions (pre-6.0, not relevant after) Jan 13 09:49:40 Syzygy: https://stackoverflow.com/questions/33117198 Jan 13 09:49:56 TotallyNotKim, that's not for me. Jan 13 09:50:05 whhhhhhhhhhups Jan 13 09:50:18 sry 'bout that. raoul11 see above Jan 13 09:51:05 But not if the app is running I assume? Is there a way to make sure that this happens in a timely manner? Jan 13 09:57:14 @Mavrik, thanks for the info. Jan 13 10:01:22 What is the best way to make regions of a drawable clickable? E.g. an image of a person where the head and feet should behave as 2 separate buttons. My initial idea was to split it into multiple drawables and fiddle with linearlayouts until it looks right and scales correctly. Is there a better way? Jan 13 10:02:29 liefer, an overlay would make sense, but it could be hard to have it in the correct location on all devices. Jan 13 10:02:55 (overlay could be transparent but still react to clicks Jan 13 10:02:58 ) Jan 13 10:03:10 yeah i think thats easier to ensure if i have multiple drawables/imageviews instead Jan 13 10:03:25 although it is a bit difficult to make it look perfectly right Jan 13 10:03:38 head/body is obviously easy but for more complex setups... Jan 13 10:04:41 or get x/y locations of the touch event and cross reference it to the width/height if it's within the face or leg area. should be the most accurate, but I'm not sure if you can get x/y from a touch event Jan 13 10:05:03 i would assume that i can Jan 13 10:05:11 hmm Jan 13 10:05:15 thats an interesting suggestion Jan 13 10:05:36 yeah, set an onTouch listener, from the motion event you can do event.getX() and y Jan 13 10:06:20 it doesnt seem very easy to scale that approach to different screen sizes though Jan 13 10:06:53 should be easy if you can get the displayed pixel width of an image Jan 13 10:07:32 how would it be easy? I would need to be able to calculate the clickable regions in percentages/factors of eachother Jan 13 10:08:13 latest android studio still seems like have some bugs... Jan 13 10:18:26 Hello Jan 13 10:18:54 i have this adapter, but when i create in the list, i get a small area to click and i want to be able to click in the all area Jan 13 10:18:58 http://dpaste.com/353Q3N4 Jan 13 10:19:03 how can i do that? Jan 13 10:20:08 sorry solved it Jan 13 10:29:05 liefer, well, the math is simple. Jan 13 10:29:55 i dont care if its simple or complex, easy or hard Jan 13 10:30:02 i care about how long it will take and how maintainable it will be Jan 13 10:30:21 couple of minutes and very maintainable. Jan 13 10:30:30 no Jan 13 10:31:02 if ur so sure, show me, because i think u are way off Jan 13 10:33:34 well, you calculate a scale factor by doing scaleFactor = newWidth/oldWidth, then you apply that scale factor to the box by doing newTLCorner = oldTopLeftCorner * scaleFactor, newBRCorner = oldBRCorner * scaleFactor. (x only, you have to do the same for y) Jan 13 10:33:41 done Jan 13 10:35:10 lol Jan 13 10:35:22 What is the best way to make regions of a drawable clickable? E.g. an image of a person where the head and feet should behave as 2 separate buttons. My initial idea was to split it into multiple drawables and fiddle with linearlayouts until it looks right and scales correctly. Is there a better way? << just handle the x and y touch event coordinate yourself Jan 13 10:35:49 if the regions are rectangle it will be very easy Jan 13 10:38:07 circles are also easy. Jan 13 10:38:59 have either of you ever actually done this? i feel like you are making a lot of assumptions Jan 13 10:39:04 yes Jan 13 10:39:06 yes Jan 13 10:39:17 ok i believe adq :) Jan 13 10:39:19 thanks Jan 13 10:39:40 he said pretty much the same things i did... Jan 13 10:41:11 marketing Jan 13 10:42:08 I'm trying to update an app that's supposed to run constantly without human interaction (app for internal purposes). Can anyone suggest an approach? Jan 13 10:42:19 Here are my thoughts so far: http://stackoverflow.com/questions/41632353/how-can-i-force-remote-updates-or-remote-hotswap-code-without-human-interaction Jan 13 10:42:39 you cannot Jan 13 10:43:22 there will be at least one human interaction, it will ask if the user wants to replace the apk Jan 13 10:43:37 adq, play store can update apps automatically. Jan 13 10:43:58 the playstore app is signed with google key which gives a lot of priviledge Jan 13 10:44:07 and allow those platform permissions you cannot use Jan 13 10:44:42 again, the playstore can update apps - not apps by google, but all apps deployed via the playstore - automatically. Jan 13 10:44:55 the playstore app is signed with google key which gives a lot of priviledge Jan 13 10:45:09 and all its subcomponents.. Jan 13 10:45:50 it also updates all apps downloaded via the playstore if you have enabled that setting Jan 13 10:46:31 including apps from peasant developers like myself. Jan 13 10:47:00 Syzygy: is the internal app already distributed by playstore? Jan 13 10:47:08 i think you don't get how permission works and what provide protection level of signatureOrSystem Jan 13 10:47:33 shmooz, currently I'm using the play store to deploy it as a beta app. Jan 13 10:48:58 adq, then how does my phone automatically update apps like uber, facebook or some random video game? Jan 13 10:51:33 i just told you Jan 13 10:52:00 the packagemanager & other app responsible to install, remove, update etc your apps are signed with a key giving lot of priviledges Jan 13 10:52:11 you focus on google, but it's the same with amazon or other store Jan 13 10:52:44 they are responsible to do those tasks Jan 13 10:52:48 just rtfm ffs Jan 13 10:53:48 adq, but the play store does all that, as long as my app is deployed via the playstore my app gets updated by the playstore. Jan 13 10:53:59 -_-" Jan 13 10:54:13 i cannot help you more Jan 13 10:54:50 you will see what ppl brings in stackoverflow Jan 13 10:54:56 (and this question is a duplicate) Jan 13 10:55:42 maybe we're misunderstanding each other... are you saying that there's no way to automatically update an app or that the play store (or other stores) handle the updating and it's left to them if and when they do it? Jan 13 10:56:26 no i'm saying you will have at least 1 user interaction without massive amount of priviledges Jan 13 10:56:59 installing an apk is a simple intent, but it asks for user confirmation (and might need those settings in dev options like allow unknown sources) Jan 13 10:57:15 you can try mocking the user interaction by hacking it somehow ;) Jan 13 10:57:21 except if you are a packagemanager and have priv Jan 13 10:59:09 I've never had to interact with my phone for automatic app updates via the play store - which is a package manager. Deploying via the playstore is an option for me, so I don't understand why you keep saying that there's the user interaction. Jan 13 10:59:39 because "[...]remote-updates-or-remote-hotswap-code-without-human-interaction" Jan 13 10:59:41 It does sound like you'd prefer MDM though? Jan 13 10:59:59 sounds like a strong requirement you asked for Jan 13 11:00:01 Syzygy: you said if you check some auto update setting in playstore it won't ask the user anything, so you need to tell the devices you are deploying to check the same option Jan 13 11:00:09 anyway, we discussed enough of it together, try with someone else now Jan 13 11:01:06 Mavrik, I'll look into MDM, sounds promising Jan 13 11:02:42 the devices are still in the office, so I can send them out with auto updates enabled. The approach I'm considering is sending a push notification to tell the app that there's an update, so it will close itself. With a broadcast receiver I would listen for the app update and then restart it again. Jan 13 11:02:51 @shmooz, Jan 13 11:03:04 Yeah Jan 13 11:03:18 But still, consider enrolling them into something like Android for Work or any other software if you have the ability and funds. Jan 13 11:03:41 It's how most corporations manage large amount of devices - I think all MDM systems allow you to deploy apps and updates remotely. Jan 13 11:04:21 Why i am getting the INDEX IN GAME log message before the log messages i have in MainMenu.ChangeLevel() ? http://dpaste.com/32V1NAC Jan 13 11:06:34 whats in MainMenu.ChangeLevel Jan 13 11:11:11 Mavrik, I think we actually had something like that enabled until 2 days ago, but the Google Apps Device Policy app would cause a crash on the devices. Jan 13 11:11:20 ahh Jan 13 11:13:35 under what process the toolbar runs? Jan 13 11:13:42 System UI? Jan 13 11:31:01 Ashiren, http://dpaste.com/0VR37FR Jan 13 11:31:03 a dialog Jan 13 11:32:05 tsousa: the log is in onClickListener Jan 13 11:41:51 Good morning, mates! Jan 13 11:52:09 Mavrik, so I'm trying to force install an app via g suite, but it seems like I can only do that for chrome apps, not for android apps. Jan 13 12:20:00 why cant i store some values in the widget? Jan 13 13:13:06 My device keeps going offline after a few seconds (still connected but adb shows it as offline) Jan 13 13:13:11 any idea what might cause that Jan 13 13:13:39 netwrok or usb? Jan 13 13:14:18 usb Jan 13 13:14:29 hmmmm Jan 13 13:14:35 windows? Jan 13 13:14:58 usb power saving maybe? Jan 13 13:15:16 windows, was working fine yesterday, same connector, same calbe, same phone Jan 13 13:15:28 reboot? Jan 13 13:15:49 i'll try that in a second Jan 13 13:17:04 heh has a windows problem all of the sudden, didn't tried to reboot :P Jan 13 13:17:19 soooo Jan 13 13:17:47 I'm doing stuff in a thread which gets started in OnCreate() Jan 13 13:17:53 not every problem on windows is a windows problem. Jan 13 13:18:03 but a reboot fixes most of them. Jan 13 13:18:23 hello Jan 13 13:18:31 can someone help with my android project, i'm having a weird bug Jan 13 13:18:37 i've tried almost everything :< Jan 13 13:18:41 http://stackoverflow.com/questions/41630316/textview-not-scrolling-on-async-call << here's the code Jan 13 13:19:21 back to the problem, doing stuff in a thread, and at the end there should be an adapter assigned to a listview. I'm doing this via runonuithread, however the items do not show up Jan 13 13:19:26 the data is there tho Jan 13 13:19:40 setting the counter textview works Jan 13 13:30:16 Does anyone have any tips for optimizing gradle's memory use for a cheap laptop with only 4GB of RAM? I'm using linux with swappiness set very low, so the swapping is what I'm trying to avoid. Jan 13 13:37:55 PresidentNotSure, there are plenty of tips online but 4GB is really not much, among all those tips, what you could do to help a bit is use gradlew to build in CLI and put android studio in power save mode Jan 13 13:39:37 adq, gradlew in CLI? Would that really be more memory-efficient than just using AS' interface for it? Jan 13 13:40:09 well, some ppl code with vim or emacs you know, you could even bypass all the ram android studio is taking Jan 13 13:40:23 but you won't have all the features provided by AS Jan 13 13:41:01 adq, I see. I can't abandon AS right now. Jan 13 13:47:21 @adq http://stackoverflow.com/questions/41630316/textview-not-scrolling-on-async-call here's some more code, can you please take a quick look at it Jan 13 13:48:08 will an app's broadcast receiver trigger for the ACTION_PACKAGE_REPLACED work for the apps own package? Jan 13 13:52:24 Limona: I did but thats way too much code for a so question and for me to look at at the moment Jan 13 13:52:35 thats qhy you got no answers there too Jan 13 13:53:14 TotallyNotKim the problem is, less code could mean something else might be the reason, i could try to clean it a bit Jan 13 13:54:35 true, but most of us try to help while at work or in our free time and two huge code blocks need some time to be fully understood Jan 13 13:54:46 so try to get really get relevant code Jan 13 13:54:57 or try to reproduce the problem in a small example Jan 13 13:55:18 Limona: actually I read the question and I felt the same as TotallyNotKim: it's too much and too little at the same time Jan 13 13:55:40 alright, let me clean the irrelevant code Jan 13 13:56:25 by removing the irrelevant code, you may end up identifying the problema (and the solution) by yourself Jan 13 13:56:52 if that doesn't happen, your problem will be more clear for other people Jan 13 13:59:00 i spent quite some time reviewing questions on so and almost every unanswered question has exactly the problem above Jan 13 13:59:27 maybe they should add a text to code quality indicator or something :P Jan 13 14:00:11 bo Jan 13 14:00:18 there should be collapsable text Jan 13 14:00:21 that would fix it Jan 13 14:00:29 nah Jan 13 14:00:36 that would make the problem look better Jan 13 14:00:38 but not fix it Jan 13 14:01:06 if you need collapsable text/code something is wrong Jan 13 14:02:24 i the meantime I ended up throwing a referencemap together because we cant pass objects by reference to new activitys -_- Jan 13 14:07:13 @TotallyNotKim http://stackoverflow.com/questions/41630316/textview-not-scrolling-on-async-call there, threw 80% of the garbage code out Jan 13 14:08:15 define scroll? Jan 13 14:08:18 Scrollbar? Jan 13 14:08:24 no, textscrolling Jan 13 14:08:39 as in text moving from left to right Jan 13 14:08:44 erm vice versa Jan 13 14:08:49 so you cant actually scroll the textview Jan 13 14:08:52 ah gotcha Jan 13 14:12:53 TotallyNotKim, the issue earlier seems to have been caused by a cable. Jan 13 14:13:04 cables are obsolet Jan 13 14:13:06 which is kind of weird because it was working fine yesterday Jan 13 14:13:13 mhmm Jan 13 14:13:18 was it an original one Jan 13 14:13:25 or some cheap chinaware (c) Jan 13 14:13:47 the phone is cheap china ware Jan 13 14:13:53 oh well Jan 13 14:13:54 haha Jan 13 14:14:46 Limona: try setting android:scrollbars = "horizontal" on the textview and textview.setMovementMethod(new ScrollingMovementMethod()); in the activity Jan 13 14:15:25 also check the textview size Jan 13 14:15:32 textview size is ok Jan 13 14:15:34 assign a backgroundcolor or something Jan 13 14:15:35 arleady changed that Jan 13 14:15:36 or good Jan 13 14:15:40 ok* Jan 13 14:16:35 the iphone is chinaware too. It's just more shiny and advertised Jan 13 14:16:36 extViewTitle.setHorizontallyScrolling(true); Jan 13 14:17:39 Limona: what do you want to say us with that line Jan 13 14:17:54 try setting android:scrollbars = "horizontal" Jan 13 14:18:11 it's already set Jan 13 14:18:13 ^^ Jan 13 14:18:32 did you try setting the scrollmethod eg after rotation? Jan 13 14:19:12 hmm? Jan 13 14:21:17 added movement method Jan 13 14:21:20 didn't change anything Jan 13 14:21:50 i think the problem is that it's in processfinish Jan 13 14:37:41 Hello, I'm developing app with Android Auto support. That app is paid and uses google's licensing library. But i can't get the app through google's review process: "Your app requires licensing purchase in order to use. We're unable to test the app due to this." How to solve this? Jan 13 16:03:16 Hey Jan 13 16:03:25 in a android project which files can i delete? Jan 13 16:03:29 the build folders? Jan 13 16:08:53 yes, you can always delete the build folders Jan 13 16:34:08 Hello everyone. I would like to backup the pixel launcher settings, i.e. favorites apps and their position on the homescreen. Jan 13 16:34:35 I have not much experience with android development and my java's pretty rusty. Jan 13 16:35:42 It seems that the launcher code references Provider.config.AUTHORITY https://android.googlesource.com/platform/packages/apps/Launcher3/+/android-7.1.0_r5/src/com/android/launcher3/LauncherSettings.java#319 Jan 13 16:36:26 Which path on the system would that translate to though. Jan 13 16:39:08 jottr, that's a content provider, not a path on the settings. Jan 13 16:39:12 Sooo... hard to say. Jan 13 16:39:28 Also you're looking at the source of Launcher3 (the AOSP default launcher), not the actual closed source Pixel launcher. Jan 13 16:39:38 Mavrik: I know. Jan 13 16:39:51 I was hoping this might help me hunt down the config path Jan 13 16:40:05 The application settings are stored on most devices in /data/data (or /data/user/) even though that may vary per device Jan 13 16:40:25 Then again, if you have Android 6+, the autobackup should work rather well. Jan 13 16:40:57 Mavrik: What's autopbackup? Jan 13 16:41:10 Android's backup provider. Jan 13 16:42:32 Hm. Not sure what to do with that info. ;) Jan 13 16:45:08 is it possible to dynamically clone something in my layout.xml file ?? i.e. a FrameLayout Jan 13 16:46:48 i figured something like FrameLayout xx = new (FrameLayout) findViewById(R.id.frameLayout); Jan 13 16:47:11 No, that's not possible Jan 13 16:47:20 k Jan 13 16:47:22 You can inflate the layout again Jan 13 16:47:32 what does that do Jan 13 16:47:47 Turn the layout xml into java objects Jan 13 16:48:00 but i can't clone the object once inflated ? Jan 13 16:48:05 No Jan 13 16:48:10 can? Jan 13 16:50:07 anyone got experience with PlaceAutoCompleteFragment? trying unsuccesfully to catch its edittext events Jan 13 16:58:29 have a nice weekend dudes and dudiens Jan 13 17:00:18 samt 2u TotallyNotKim Jan 13 18:18:39 hey all Jan 13 18:19:29 I am trying to delete an item in a firebase database that I added with push() (to get a unique key). How can I get a reference on that unique key? Jan 13 18:20:28 this is the database structure: http://pastebin.com/cRta3fsn Jan 13 18:21:03 I am starting out with a ref on the "artikel" key Jan 13 18:24:02 if I call "dataSnapshot.getRef().getParent().getKey()" it jumps one level and returns "einkaufsliste" Jan 13 19:42:36 Ologn https://news.ycombinator.com/item?id=13392885 Jan 13 19:44:20 Hi Jan 13 19:44:55 I'm trying to run a custom skin for AVD Jan 13 19:45:17 but it won't detect my custom skin in my android sdk/platforms/android-19/skins folder Jan 13 19:45:22 not sure why? Jan 13 19:45:39 I'm using this tutorial: http://developer.samsung.com/technical-doc/view.do?v=T000000095 Jan 13 19:59:56 "WhatsApp backdoor allows snooping on encrypted messages" wonder whats going to happen with Signal Jan 13 20:14:49 g00s: they throw rocks at each other side, recently announced telegram is decyphered Jan 13 20:15:41 3 days ago. Has Russia cracked Telegram Messenger? : crypto - Reddit Jan 13 20:26:07 Probably not much is going to happen with Signal because Signal is run and devved by guys who caree Jan 13 20:26:10 er care Jan 13 20:30:34 no point using 'encrypted' oraz 'safe' IM if its not open source Jan 13 20:45:34 Another point in Signal's favor Jan 13 20:45:51 g00s, i remember a vr buzz that happened in 99 or 00 Jan 13 20:46:20 Hey. Anyone know how to get 32bit color depth working in Android Studio's emulator? Jan 13 20:46:40 what do you mean by 32 bit color depth? Jan 13 20:46:44 That should be the default Jan 13 20:46:52 16 is the default for any configuration I create Jan 13 20:47:05 What makes you say that? Jan 13 20:47:20 because that's what's in hardware-qemu.ini Jan 13 20:47:21 g00s, here we go again? well, not for me, certainly. at almost 40, i think i prefer going out there Jan 13 20:48:14 Mine always seem to be 32 without issue Jan 13 20:48:20 Perhaps you managed to break something in QEMU somewhere Jan 13 20:48:46 it's just the default nexus 10 profile Jan 13 20:48:58 setting hw.lcd.depth=32 doesn't work, it gets rewritten to 16 Jan 13 21:02:05 I'm seeing stuff that hints the emulator itself might only do 16 bits, but those discussions were from 2010 Jan 13 21:03:55 What object is used to trigger a refresh of available chromecast devices? Jan 13 21:05:49 Plex for Android's media route selection dialog has a refresh button that works super well Jan 13 21:06:27 It's using 32bit for the screenshot tool so I figured it'd support that... Jan 13 21:07:40 g00s, I saw the VR thing Jan 13 21:07:54 I reply in that thread, I think Jan 13 21:35:22 Cik tgabjs Jan 13 21:35:24 woops Jan 13 22:52:48 What other kinds of things do I need to do other than copying back the application data in /data/data to trick the app into thinking that nothing has changed/ Jan 13 22:53:27 I swapped my ROM with something else and I copied some application's /data/data/ data, I restored it, but the application keeps on detecting new changes Jan 13 22:59:34 this sounds like more of an XDA or #android-root question Jan 13 22:59:45 Dagmar the issue would be if jeff sessions (anti crypto) would force them to have a back door Jan 13 23:00:33 i don’t know if it’s been determined that the US Government has that kind of power Jan 13 23:00:45 or at least the Executive branch Jan 13 23:01:44 They don't even have to do that directly Jan 13 23:01:59 All they have to do is have an insider willing to ignore a flaw that they can pay to be told about Jan 13 23:02:25 yeah, but that’s another situation entirely Jan 13 23:02:32 If the US gov't were to acutally _order_ a backdoor to be put into something their chances of their not being a massive shitstorm are near to zero Jan 13 23:05:27 although I would think the situation you’re talking about would be more NSA/CIA stuff Jan 13 23:06:07 It only takes one of them Jan 13 23:06:19 They're allowed to collude among themselves via "fusion" operations and centers Jan 13 23:06:47 trump already got on tim cooks case about the iphone's security. and we're dealing with a period in our history where our prez is practicing to be dictator; traditional norms have been thrown out the window (trump would violate constitution on 1st day w/o congress waiving Article 1 Sec 9 specifically for him) Jan 13 23:07:09 he got on his case, but Cook didn’t back down Jan 13 23:07:17 he's not president yet Jan 13 23:07:32 even the president doesn’t have total power Jan 13 23:07:41 in fact, the president has quite a lack of power Jan 13 23:07:47 of course Jan 13 23:07:52 I eagerly look forward to his impeachment Jan 13 23:08:01 but personnel == policy Jan 13 23:08:01 the worst Trump could do is make one of his snarky tweets to try and tank apple stock Jan 13 23:08:12 which if he does, i would slurp it up Jan 13 23:09:26 no, the president should not be singling out individual companies for plus or minus Jan 13 23:09:38 like, his last tweet on l.l. bean lol Jan 13 23:10:04 if you look closer at it, it seems he wrote that because he wanted people to try to protest LL Bean Jan 13 23:12:28 andy rubin is back https://www.bloomberg.com/news/articles/2017-01-13/andy-rubin-nears-his-comeback-complete-with-an-essential-phone Jan 13 23:13:08 "Armed with about a 40-person team, filled with recruits from Apple Inc. and Alphabet Inc.'s Google, Rubin is preparing to announce a new company called Essential" Jan 13 23:13:28 will be interesting who leaves google for this Jan 13 23:14:03 i’m sure some will Jan 13 23:24:01 lol this article Jan 13 23:24:21 mixing AI... and bezel Jan 13 23:24:58 i don't know what i would do without you g00s, i've never read nor found those things by myself Jan 13 23:32:02 I get a popup saying unfortunately my app has stopped, with no error message in the console. Jan 13 23:32:09 no NPE, no nothing Jan 13 23:33:01 Click around the window and make sure you didn't tell it to filter out the stack trace from the app exiting Jan 13 23:34:24 is there a way to revert any commits after repo sync? Jan 13 23:35:45 adq yeah i scratch my head, maybe rubin is getting bored or something. i can't see it ending well Jan 13 23:36:15 g00s, http://waitbutwhy.com/2015/01/artificial-intelligence-revolution-2.html read it if you never did Jan 13 23:36:22 I'm guessing you've all seen this: http://blog.cleancoder.com/uncle-bob/2017/01/11/TheDarkPath.html Jan 13 23:36:24 much more interesting than following what rubin does Jan 13 23:36:32 I think Bob Martin is losing it a little. Jan 13 23:36:34 ahhh uncle bob Jan 13 23:37:11 without reading, i'm already 100% ok with what he says Jan 13 23:38:16 He argues that writing tests for non-nullability is better than the compiler enforcing non-nullability. Jan 13 23:38:40 I'm usually a fan of Uncle Bob, but this blog post is absurd. Jan 13 23:39:05 i will read it, thx Jan 13 23:43:36 i guess it depends on how that is enforced Jan 13 23:44:10 is it actually done with non-nullable types, like in Kotlin and Swift, or is it done with annotations, like in Java? Jan 13 23:44:26 s73v3r: He's arguing against Kotlin and Swift's implementation. Jan 13 23:45:01 yeah, i know he is Jan 13 23:45:51 i can’t say I liked that post much either, but he usually does have a pretty good idea of what he’s talking about Jan 13 23:50:24 Dagmar: Thank you, I was looking at the wrong process in the console. I needed to switch over to my service process. Jan 13 23:51:52 i guess i do kinda agree with his overall point, that more devs should do more testing of their stuff, instead of just throwing things together Jan 13 23:52:07 but I can’t really get on board with not having the compiler do as much as it can Jan 13 23:55:38 can anyone tell me how can i revert the commits with repo command? Jan 13 23:56:19 with mercurial (hg) it's forbidden to touch the history but you can use mq extension, but most ppl use git anyway Jan 13 23:57:04 what you ask does not seem related to androiddev, maybe ask in the appropriate channel Jan 13 23:57:36 or a quick google or stackoverflow search if you're not that lazy ;) Jan 13 23:57:58 adq, thx for info Jan 13 23:58:40 adq: History mutation is very common in the Mercurial world nowadays, and MQ is deprecated. Jan 13 23:58:48 :> Jan 13 23:59:09 "This extension is often considered for deprecation, but there's no consensus yet." Jan 13 23:59:12 Hmm, actually, MQ isn't appearing to be deprecated anymore. :E Jan 13 23:59:24 Yeah, they changed the notice. Jan 13 23:59:48 it will take 10 more years until it happens lol Jan 13 23:59:54 I think it's because so many Mozilla employees use it. It's probably politically incorrect to call it deprecated. Jan 14 00:01:22 Hmm, even the MDN recommends not using it now, though: https://developer.mozilla.org/en-US/docs/Mozilla/Mercurial/Queues Jan 14 00:01:29 "It is strongly recommended that new users adopt a bookmark-based workflow and do not use MQ." Jan 14 00:02:05 mq is too dangerous Jan 14 00:02:43 i rarely used it tbh Jan 14 00:03:07 I used to use it, but it was such a pain when patches wouldn't apply cleanly. Jan 14 00:03:29 do you use mercurial with android studio TacticalJoke? Jan 14 00:03:44 I tried AS's integration, but personally I much prefer the command line. Jan 14 00:03:50 because sometimes i have to get out of AS to commit, I got weird bugs in AS Jan 14 00:03:54 So I disabled that plugin. Jan 14 00:03:58 ok Jan 14 00:04:05 Ahh, yeah, I never tried actually committing with AS. Jan 14 00:04:25 I'm not necessarily a command line fan, but version control is one place I still prefer it. Jan 14 00:04:29 99% of time it's ok, but i had issue few times, forgot to remove some cache folder or something Jan 14 00:04:38 and then it started to behave very badly, not finding files Jan 14 00:04:43 and refusing to commit Jan 14 00:04:50 but outside of AS, no issue Jan 14 00:04:56 no clue what the vcs is doing Jan 14 00:05:28 also this optimize import before commit... i hate that Jan 14 00:05:31 Does the Version Control tool window show everything? I looked at that once. Jan 14 00:05:56 nothing appears missing to me, i really enjoy the coloration too Jan 14 00:06:23 just need to fix colors with darcula... Jan 14 00:06:53 but a gui for things like bisect would be pretty cool, but it's too much to ask Jan 14 00:08:11 I've run into a very strange issue Jan 14 00:09:11 http://pastebin.com/uxfC46tq ... this is supposed to create 2 image buttons and 2 labels.. the issue at hand is such: two imagebuttnos are created but displayed on the same "left" (x) even though they have two different values. Jan 14 00:09:22 meaning displayed on top of each other Jan 14 00:10:56 any ideas? Jan 14 00:11:31 bubbely: Is your question "Why is `view.getLeft();` return something other than `n` after `view.setX(n);`? Jan 14 00:11:35 returning* Jan 14 00:12:07 TactialJoke; my question is, why does an imagbutton with "left" or "x" set to 128 shows it as 0 ? Jan 14 00:12:52 bubbely: The "left" property and the "x" property are two different things. "x" is, as far as I remember, just its *visual* position. Jan 14 00:12:58 The "x" thing is useful for animation. Jan 14 00:13:00 ok one moment Jan 14 00:13:31 You shouldn't be using View.setX for basic layout. Jan 14 00:13:44 You gotta use the LayoutParams system. Jan 14 00:14:33 layoutparams doesn't have an x/y Jan 14 00:15:21 Yeah, the ViewGroup determines the positions. Jan 14 00:15:45 In this case, RelativeLayout. Jan 14 00:16:04 Can't you use ListView/RecyclerView/... for what you're doing? Jan 14 00:16:24 I mean, it's certainly possibly to do this positioning manually, but it's often a bad idea. Jan 14 00:16:30 oh Jan 14 00:16:32 yeah i guess Jan 14 00:16:35 ill use a listview Jan 14 00:16:44 actually Jan 14 00:16:54 I'm already almost done with this so ill keep it.. help please =) Jan 14 00:17:12 Maybe even a LinearLayout would be simpler. Jan 14 00:17:32 Otherwise the solution is to use the correct RelativeLayout rules for positioning these children. Jan 14 00:23:31 RelativeLayout RIGHT_OF doesn't work either Jan 14 00:26:52 It might be easier to create a mock layout in XML first, check it works with the preview, and then copy the idea into Java code. Jan 14 00:27:28 Though if you're laying out views in a line then it's questionable whether RelativeLayout is the right choice. Jan 14 00:29:08 I'm trying to line up buttons next to each other Jan 14 00:29:28 Why not use LinearLayout? Jan 14 00:30:16 one moment Jan 14 00:30:36 i thought i can't add to a linear layout live ? Jan 14 00:31:20 You could have an empty LinearLayout defined in XML. Jan 14 00:31:36 But you can create any View at run time. Jan 14 00:32:45 Oh, I misread. Yeah, you can add children to a LinearLayout at run time. Jan 14 00:33:51 Then again, it's all at run time, whether in XML or not. Jan 14 00:43:18 does LinearLayout wrap to the next line? Jan 14 00:44:05 No. Jan 14 00:44:20 is there a layout type that' does Jan 14 00:45:31 Not AFAIK. Jan 14 00:45:36 hey TacticalJoke Jan 14 00:45:37 like some sort of grid? Jan 14 00:45:44 bubbely do you want FlexBoxLayout ? Jan 14 00:45:48 Hey, g00s. Jan 14 00:46:04 checking g00s Jan 14 00:46:14 its by a googler on github Jan 14 00:46:23 i use it often Jan 14 00:46:42 oh Jan 14 00:46:48 https://github.com/google/flexbox-layout Jan 14 00:46:51 ill switch to this momentarily, if this issue can't be resolved Jan 14 00:46:55 maybe u can help? Jan 14 00:47:22 hm, i probably can't b/c i'm forgetting everything lol Jan 14 00:47:29 Couldn't you have a vertical line of buttons? Jan 14 00:47:49 i want horizontal buttons that wrap vertically Jan 14 00:48:04 Also look at http://stackoverflow.com/questions/2961777/android-linearlayout-horizontal-with-wrapping-children Jan 14 00:48:08 yeah that layout should do the trick. see the demo Jan 14 00:48:37 i still haven't used ConstraintLayout Jan 14 00:48:57 Yeah, the flexbox thing looks good. Jan 14 00:49:04 i can never find a use case, with all the nonsense of AppBarLayouts and CoordinatorLayouts and stuff Jan 14 00:49:18 so many rules on who needs to be a child of what Jan 14 00:50:09 That stuff is so complicated Jan 14 00:50:20 g00s, can i use this flex box on a scrollview ? Jan 14 00:50:26 all the rules and conventions seem so brittle Jan 14 00:50:46 bubbely you mean scrollview inside flexbox? Jan 14 00:51:07 or that Jan 14 00:51:15 hm not sure Jan 14 00:51:16 g00s, can i add an image to the buttons in flex box? Jan 14 00:51:23 yeah Jan 14 00:51:31 ok Jan 14 00:51:32 im gonna try this out Jan 14 00:51:44 flexbox is simple, its just a wrapping / packing mechanism Jan 14 00:52:12 i don't know what the top of an xml is called but,, sometims its ScrollView etc, do i need flex box as that part or can i have it within a linearlayout Jan 14 00:52:23 g00s: Did you see the Uncle Bob thing? Jan 14 00:52:41 TacticalJoke i saw, but didn't read - Jan 14 00:52:42 bubbely: The root element. Jan 14 00:52:57 bubbely: No idea. Jan 14 00:52:58 yes the root elment Jan 14 00:53:08 g00s? Jan 14 00:53:41 g00s: I think our dear uncle has lost his mind. Jan 14 00:53:45 you can put flexbox anywhere Jan 14 00:55:10 TacticalJoke haven't been reading much about programming; more about stats and R, etc Jan 14 00:55:22 i kind of like it, because there is less opinion. its just math Jan 14 00:56:10 seems like older i get the only thing i see trustworthy is math in the end lol, everything else is lies! Jan 14 00:56:33 Yeah. Jan 14 00:56:57 bubbely: It might be sensible to explain what you want to achieve at a high level. Jan 14 00:57:33 TacticalJoke maybe bertrand russell said that first Jan 14 00:58:03 g00s: That's one thing that's cool about chess, but even there people release snake-oil books (and get tons of praise). Jan 14 01:06:17 this looks like so much fun http://newatlas.com/christini-ii-track-snow-bike/47384/ Jan 14 01:06:25 but ,,, where will snow exist soon ? Jan 14 01:07:01 I have a birthday coming up in about a month Jan 14 01:07:07 no, wait, those are usually f**king ice storms Jan 14 01:07:51 That back wheel looks terrifying. Jan 14 01:08:20 * Leeds will be in snow in 2 weeks Jan 14 01:08:35 probably not enough time to source one of those... Jan 14 01:09:11 Thank god their limited number will provide a natural limit on the number of idiots who'll eb able to get one Jan 14 01:11:03 Frankly I'm thinking "f**k that" since it doesn't have a third point of contact with the ground Jan 14 01:11:23 A snow trike would be a ton more manageable Jan 14 01:12:06 Lacking any kind of gyro whatsoever, that ice bike says "I will fall over, and quickly" Jan 14 01:12:37 that's why you have to drive it really quickly Jan 14 01:12:42 also, to get away from bears Jan 14 01:12:50 So you can leave the longest red smear? heh Jan 14 01:13:20 Leeds yes this would be good in siberia Jan 14 01:13:37 Assuming you already know how to ride a bike Jan 14 01:13:54 how do i use my root xml item to addview Jan 14 01:14:03 nah, never ridden a (motor)bike... but I'm sure it's easy Jan 14 01:14:08 lol Jan 14 01:14:23 _Sort of_ Jan 14 01:14:33 and hey, snow is soft when you fall off, right? Jan 14 01:14:50 There are some very crucial differences between riding a bicycle and a motorcycle, and speed has very little to do with it Jan 14 01:15:11 Those differences put people on the street with a quickness Jan 14 01:15:59 anyone? Jan 14 01:16:22 bubbely: Try being more specific Jan 14 01:16:55 the top of my xml file is this.. to .addView Jan 14 01:17:06 how do i convert that to a FluxBoxLayout Jan 14 01:17:13 Mainly you just get a reference to the whatever like usual, and then call .addView(otherThing). Jan 14 01:17:24 yeah how do i get a reference to that Jan 14 01:17:32 findViewById just like usual Jan 14 01:17:38 you give it an id Jan 14 01:18:22 this cat is parcelable ! https://i.imgur.com/c0wopJO.gifv Jan 14 01:18:31 fits right into that bundle Jan 14 01:19:03 looks like more serializable (a bit heavier than parcel :p) Jan 14 01:19:07 Anything/everyting in an XML layout that you want to address from code is going to need an id parameter Jan 14 01:19:35 g00s can't .addview to fluxbox Jan 14 01:19:38 hehe Jan 14 01:19:55 You can addView to anything that's a container Jan 14 01:19:59 nm Jan 14 01:20:01 bubbely should work, its a regular viewGroup Jan 14 01:25:18 I think bubbely is kinda new with all those layouts, he would better stick to the traditionnal ways first, and learn how it works, later on it will be crystal clear what he needs to use Jan 14 01:26:06 http://pastebin.com/HakQAEPt only one image shows for some reason ? Jan 14 01:26:33 oh Jan 14 01:26:35 i got it Jan 14 01:38:22 can an image button have a text field ? Jan 14 01:51:05 bubbely a textView can have a DrawableTop/Left/Right/Bottom Jan 14 02:39:07 can i use a Picture with a regular Button ? Jan 14 02:49:18 bubbely: Why do you want to? Google can answer this anyway. Jan 14 02:58:14 would this be the right place to ask a question regarding re-packing a boot.img? Jan 14 02:59:46 This is just for app development. I think #android-root (or some web forum) would be the place. **** ENDING LOGGING AT Sat Jan 14 03:00:00 2017