**** BEGIN LOGGING AT Fri Jul 01 02:59:58 2016 Jul 01 03:00:03 I ended up building the OSI/ISO/OSI stack on a whiteboard in collaboration with my interviewer, back when I graduated Jul 01 03:00:03 because his dad ran out of food O.o Jul 01 03:00:06 Leeds: I asked kroot to ban him. Jul 01 03:00:06 g00s: really? 😉 Jul 01 03:00:15 But as you know, kroot isn't active that much. Jul 01 03:00:21 LunarEclipse120: I saw... good luck with that Jul 01 03:00:22 Leeds that sounds fun. Jul 01 03:00:43 That is basically a review of any of the "How servers work, top-to-bottom" books. :/ Jul 01 03:00:48 That's a lot of material. Jul 01 03:00:57 I think I got 1/2 points for know what it was and how it worked, but not knowing all the layers correctly :) Jul 01 03:00:57 It is Jul 01 03:01:01 Did it cover details like protocol numbers? Jul 01 03:01:15 Media types? (Physical, etc.) Jul 01 03:01:22 Leeds: if you are admin it's useful Jul 01 03:01:33 If you're not... you forget things... Jul 01 03:01:38 The layers are generally a suggestion. Jul 01 03:01:38 gordon_: it's a pretty old-fashioned model by now Jul 01 03:01:54 everything runs at layer 8 above HTTP :D Jul 01 03:01:55 * Ping_2_Ur_Pong forgot the fuck out of that info after networking in college. Jul 01 03:02:02 If your program only understands say, TCP. You don't care what network hardware you're on. Jul 01 03:02:03 Might be, I don't stalk network impending that much Jul 01 03:02:26 Implementation Jul 01 03:02:27 So they could use say, VPN. Jul 01 03:02:37 Damn you autocorrect Jul 01 03:02:38 Or Frame relay or whatever Jul 01 03:02:53 Or even a freaking dedicated telephone line with DSL. Jul 01 03:02:57 in the early days of google, wasn't one of the famous questions "Tell me everything you know about X, I'll give you 10 minutes to prepare. Ok bye" Jul 01 03:03:06 (Some security companies have that for video) Jul 01 03:03:18 g00s: that's actually a good question IMHO Jul 01 03:03:51 engineering is more about knowing what to look up, where the look and having an inner sense about what doesn't feel right. A lot of this shit is gut feeling mixed with data to prove it. Jul 01 03:03:51 A better test: How fast can you find this on Google (assuming you already search before). Hehe, like a math exam. Jul 01 03:04:25 "How do I factor this 2nd-degree polynomial?" *uses a formula* Jul 01 03:04:26 One of my Google questions was: order from slowest to fastest - context switch, memory access, disk access, register access Jul 01 03:04:53 Bonus points if you show "poly {blah blah blah}" on notes. Jul 01 03:05:12 LOL, calculators are legitimate tools for this problem. Jul 01 03:05:13 * Ping_2_Ur_Pong has a standard interview question, for 30min interviews. Look up the Sieve of Eratosthenes, now code it. Jul 01 03:05:37 Bonus points: Explain why it's useless for Mersenne primes. Jul 01 03:05:41 Hrm, so I built the APK that I can push to the playstore. I put it on my webspace, downloaded it on my device manually and it works fine. Jul 01 03:05:47 "10 million digits!" Jul 01 03:05:48 Let's hope this works on the store now as well.. Jul 01 03:05:48 most people don't know the algorithm, if you can write that which is pretty damn simple you can learn as you go, you pass. Jul 01 03:06:03 When I was a Unix sysadmin my favorite question was one I was asked once - explain a Red Hat Linux system booting up in as much detail as possible Jul 01 03:06:23 If you estimate the storage space and computing time for recursively filling a table of primes upto 10^10000000.... Jul 01 03:06:26 * Ping_2_Ur_Pong mumble something about grub and fills in the rest with bullshit Jul 01 03:06:47 hmm... Jul 01 03:06:49 Ping_2_Ur_Pong, I tried to answer it fully once and its hard Jul 01 03:07:27 I probably give a 5 minuter about it with details, but its a lot from just knowing architecture of computers. RHL specifically, fuck man .... Jul 01 03:07:30 If you start with the signal to the reset pin on the chip, and what exactly that signal is...the books and manuals aren't super clear Jul 01 03:08:22 PC loads it's ROM (optionally secure booting), that loads the hard drive sectors, that loads the kernel loader/staged bootloader(LILO/Grub/or that funky WinNT thing), which then loads the kernel, which then loads the rest of the OS? Jul 01 03:08:45 alphamule, right but in as much detail as possible Jul 01 03:08:49 Like before the ROM load Jul 01 03:08:56 Oh, so in Hex, the 55AA shit? Jul 01 03:09:03 MBR versus EFI? Jul 01 03:09:09 :P Jul 01 03:09:11 before that Jul 01 03:09:19 * Ping_2_Ur_Pong just smiles and acts like he has a fucking clue. Jul 01 03:09:23 Oh, the CPU wanting to have sane voltages? Jul 01 03:09:28 ;) Jul 01 03:09:54 *before that* Jul 01 03:09:57 There's that...but the reset sends an memory location to load to the chip..which usually isn't a memory location, but NVRAM Jul 01 03:10:12 Because you can write a freaking book on just the first few million cycles of an Intel chip's secure boot setup. Jul 01 03:10:19 that's wayyy too low level for me, I am way up the programming heirarchy. I get that question and I walkout cuz the guys just fucking with me. Jul 01 03:10:30 LOL Ping Jul 01 03:10:33 True Jul 01 03:10:57 * alphamule goes to job interview for creating a web page on houseplants Jul 01 03:11:09 *They ask about booting OS* Jul 01 03:11:13 hahaha Jul 01 03:11:46 Also, that Intel thing actually seems to reduce security. Jul 01 03:12:00 It makes it harder to audit the board's firmware. Jul 01 03:12:06 Or fix it. Jul 01 03:12:22 the vPro backdoor? Jul 01 03:12:25 Lower Jul 01 03:12:27 anyone used unity in any apps? Jul 01 03:12:46 The part where it first starts up, checks the external EEPROM. Jul 01 03:13:11 They use a chain of bootloaders after the initial bootstrapping. Jul 01 03:13:20 Each checks that the next is signed. Jul 01 03:14:04 There's a ROM inside the CPU, that you can't touch. Jul 01 03:14:30 This then loads the code for actually booting. Jul 01 03:14:40 It's evil. :-D Jul 01 03:15:06 And yeah, there's all kinds of backdoors in Intel's stuff. Jul 01 03:15:27 Doesn't mean they're all enabled. Jul 01 03:15:45 Server board is much more likely to have stuff like SMM setup over the network adapter. Jul 01 03:16:35 This is part where I'd be like: Geez dude, you writing an OS or rootkit? Jul 01 03:16:54 Because certainly not a web page. :P Jul 01 03:21:30 so any ideas? Jul 01 03:22:12 http://hastebin.com/ejosituqij.xml Jul 01 03:24:29 wyoung: what's the question? ;) Jul 01 03:26:14 10:31 < wyoung> I am listing for the following intent in a broadcast receiver: android.net.conn.CONNECTIVITY_CHANGE Jul 01 03:26:18 10:32 < wyoung> However when the wifi or bluetooth goes up or down my receiver code doesn't execute Jul 01 03:26:30 listening* Jul 01 03:26:54 gordon_: The BOOT_COMPLETED one gets fired though Jul 01 03:27:27 my question is, am I listening on the correct intent? if not which one should i be listening on? (android version is wear 2.0) Jul 01 03:36:56 ah, I dont know about wear Jul 01 03:37:08 I've done wear only once.. never again Jul 01 03:37:50 gordon_: you would think it is the same intent right? Is there a way I can listen for all intents / list all intents by device is throwing? Jul 01 03:38:03 s/by/my/ Jul 01 03:38:17 I think they're shown in logcat Jul 01 03:38:22 but I might be wrong Jul 01 03:38:50 https://stackoverflow.com/questions/4599972/showing-all-broadcast-events-on-android Jul 01 03:38:56 seems like you can Jul 01 03:38:59 hmmm, 07-01 13:38:24.731 462-545/? D/ConnectivityService: NetworkAgentInfo [COMPANION_PROXY () - 2204] EVENT_NETWORK_INFO_CHANGED, going from CONNECTING to DISCONNECTED Jul 01 03:39:22 of course it doesn't give me the full name of hte intent :\ Jul 01 03:41:18 yeah I cannot find anything either now Jul 01 03:42:45 gordon_: dumpsys activity broadcasts apparently Jul 01 04:16:56 it was done ! Jul 01 04:17:39 Yes. Thanks so much kroot. Jul 01 04:17:41 finally Jul 01 04:17:54 I requested it to be done in #android, he did it here too :D Jul 01 04:18:53 He's PMing me. Jul 01 04:19:16 Calling me a "US bastard" Jul 01 04:19:58 nice work Jul 01 04:20:22 damn yankee ! Jul 01 04:20:23 LunarEclipse120: sounds like escalation to freenode is required Jul 01 04:20:37 heh Jul 01 04:20:43 Yeah. Jul 01 04:20:59 Well my assumption is right. Jul 01 04:21:05 He is doing it to the OPs too. Jul 01 04:21:12 g00s!!! I need to dump all intents that I flying around, logcat only seems to log the ones called by launchActivity, not states like the network has gone up or down. Jul 01 04:21:37 wyoung you just have to reach out and grab them Jul 01 04:21:52 g00s: I did read something about using dumpsys activity broadcasts although i can't find that app Jul 01 04:22:06 g00s: using it with adb failed too Jul 01 04:22:18 Now he's playing mister nice guy. xD Jul 01 04:22:23 i haven't done that lately, if ever ... dunno the command line for that Jul 01 04:22:46 LunarEclipse120: Don't feed trolls :) Jul 01 04:23:16 Yeah I know Jul 01 04:23:44 g00s: ah I figured it out! the full command is abd shell dumpsys activity broadcasts Jul 01 04:23:49 He is saying how he will "die". So I said "We need a purge." then ignored him. Jul 01 04:23:51 Well, back on topic. Jul 01 04:25:12 LunarEclipse120: indeed, looks like it is throwing android.net.wifi.supplicant.STATE_CHANGE and android.net.conn.INET_CONDITION_ACTION Jul 01 04:28:35 It requires permissions android.permission.CONNECTIVITY_INTERNAL but I am asking for android.permission.ACCESS_NETWORK_STATE :\ Jul 01 04:29:36 I have no idea :P Jul 01 04:29:43 anyone have thoughts on what might be wrong in how this lib is being created ... http://pastebin.com/VacJfE4f Jul 01 04:30:20 Looks like CONNECTIVITY_INTERNAL is only allow to be given to system apps :\ Jul 01 04:33:50 pepperoni gradle-experimental, you are brave ! Jul 01 04:34:16 how long has gradle-experimental been going on for now ? Jul 01 04:34:32 g00s: i have no idea, kinda new to the android dev thing Jul 01 04:34:54 don't use. gradle experimental Jul 01 04:35:17 just use the standard gradle plugin in conjunction with ndk-build or cmake Jul 01 04:35:46 omg rejoice haha Jul 01 04:36:33 by ndk-build, do you mean Android.mk and Application.mk ? Jul 01 04:37:27 pepperoni: ndk-build consumes Android.mk and Application.mk Jul 01 04:39:03 pepperoni: ndk-build is a build tool provided by the android-ndk (someone else can probably explain that better lol) Jul 01 04:39:06 g00s: hey, I have been reading that in the latest Android APIs you will no longer beable to get the wifi MAC address. Are there any other hardware identifiers I can use to identify a device? Jul 01 04:39:39 g00s: This will be used for provisioning reasons, not user tracking Jul 01 04:39:57 teasp00n: i was using ndk-build, but every blog i read said ndk-build was going away and pushing gradle Jul 01 04:40:57 pepperoni: there has been a bit of a push recently to add first class support for compiling native code as a gradle task Jul 01 04:41:07 pepperoni: not sure if thats ready for the prime time yet Jul 01 04:41:11 wyoung: just create a random string and store it. Jul 01 04:41:12 my app is to be entirely native Jul 01 04:41:42 every blog is wrong Jul 01 04:42:13 kroot, so have you cruised. out of hk? Jul 01 04:46:19 jesseg: Is mimtf messaging you> Jul 01 04:46:26 jesseg: Don't listen to him. Jul 01 04:46:40 pfn: No, I've only gone to Macao. Jul 01 04:47:38 kroot: I would like to know the string ahead of time in order provision the device with specific settings. Jul 01 04:47:56 kroot, oh, wondered why you knew the route to the port so well Jul 01 04:48:18 kroot: I know all mac addresses that my devices have Jul 01 04:49:16 kroot: are there any APIs for provisioning a device / sending it configuration information via bootp or some other means? Jul 01 04:49:26 wyoung this could be old advice https://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID Jul 01 04:49:28 wyoung: Device Owner APIs. Jul 01 04:49:34 wyoung: mac address will only be set when the chipset is powered on. for example, if you reboot your device with the wifi off and then try get the mac address for that interface you wont get it Jul 01 04:50:00 pfn: Oh, did the cruise go well? Jul 01 04:50:26 wyoung: Are these devices you consider "fleet" devices? Jul 01 04:50:30 teasp00n: I have the mac addresses of my devices listed. sure I will turn the wifi on first before attempting to read the mac Jul 01 04:50:57 wyoung: ok all good. thought you might have been relying on it for unique ID for a device. Jul 01 04:51:06 kroot: perhaps, they will have some level of pre-configuration before being sent to a customer Jul 01 04:51:38 teasp00n: well I want to however the new Android version stops that. It returns the same MAC for all devices Jul 01 04:51:46 ciao Jul 01 04:52:03 teasp00n: I am after another way of uniquely identifying my devices ahead of time Jul 01 04:52:24 I am starting to think that I may need to roll my own Android :\ Jul 01 04:52:24 wyoung: Android for Work has some stuff where you can provision devices via NFC, etc. https://developers.google.com/android/work/prov-devices#device_provisioning_basics Jul 01 04:52:37 hi all Jul 01 04:53:44 kroot, haven't gone yet, going in November Jul 01 04:53:45 I would like to know if there google api, to manage the play store Jul 01 04:54:03 bruce-dev, there is not Jul 01 04:54:23 list app to update, update etc... Jul 01 04:54:49 :-( Jul 01 04:55:26 you can reverse engineer the play console app Jul 01 04:55:28 for security reason?... Jul 01 04:55:33 but it is not advisable Jul 01 04:55:43 it's just not a public api Jul 01 04:56:08 kroot: hmmm, so I need to creat a google work account? Any way I can provision without a google account? Jul 01 04:56:56 wtf is up with the nougat pronunciation guide, "nugget" or "nooga"? Jul 01 04:57:27 pnf thanks Jul 01 04:57:34 I've always heard it as "newgut" (candy commercials on tv Jul 01 04:57:38 ops pfn ... Jul 01 04:58:11 pfn: nooga imo Jul 01 04:58:27 pfn: but I am AU Jul 01 04:59:49 and grab this info for website play store its possible and egal? Jul 01 05:00:03 *legal Jul 01 05:00:28 only my account not other Jul 01 05:01:57 also and offtopic not exist slack group android dev? Jul 01 05:02:44 wyoung: Not that I know of. Maybe you can just send an NFC token with the phone that they can use to authorize the app the first time; if the app isn't installed it will direct them to the Google Play Store Jul 01 05:04:32 kroot: hmmm, all I have to work with is bluetooth and wifi, and looks like the new android sdk gets rid of both :\ Jul 01 05:09:22 hi guys Jul 01 05:10:44 guys, if I want to run gradlew in offline mode with --offline option, how I can specify where it finds com.android.tools.build:gradle:2.1.2 which is availble on pc from AS installation? Jul 01 05:10:53 any option? Jul 01 05:17:26 hmmm, any way to set a permissions to override Android sdk from hiding mac address of wifi device? i am getting the following: Mac address = 02:00:00:00:00:00 Jul 01 05:31:39 newest google earth for mac still doesn't have full screen mode, jesus Jul 01 06:26:03 Do any / all of the intent actions have a corresponding constant field somewhere? Jul 01 06:27:38 yes Jul 01 06:38:59 Hello. How to handle a http session activity when user puts the app to sleep then comes back 20 minutes later and the session is no longer active. How is the best way to handle this problem? Jul 01 06:41:02 your app needs to auto reconnect Jul 01 06:41:33 the server should return a specific error code then the app will attempt one or more reconnections Jul 01 06:43:25 so perform a check before every activity? In other words, a kind of autologin everytime user performs something? its not overkill? Jul 01 06:44:12 it depends Jul 01 06:45:31 I worked whit a server with an API such as any operation could just return a specific error code if session was ended, so I just make a function to check that first and reconnect if needed. All apps calls would be through that function. Jul 01 06:46:04 if you're server can't return such code for any call well then you'll stuck with checking each times yes Jul 01 06:46:43 yeah, im affraid I dont have that luxury :/ Jul 01 06:46:58 (well you could just recognize the page return of an ended section or just try reconnect everytime your call fail for good measure) Jul 01 06:47:32 if the session has ended do you recieve a http code 200 or something else? Jul 01 06:48:26 nope, working towards a very old and badly written webpage. But I can read the output of the html to regex something like "you are no longer logged in" Jul 01 06:49:37 I think I just gave myself the answer. I will perform that check everytime something gets done on the app Jul 01 06:50:56 yeah but if you can just check the http status (usualy 401 for session expired) it'd be better Jul 01 06:51:20 I'll look into it. Thanks Jul 01 06:53:30 hmm Jul 01 06:53:55 retrofit2 does call, parses json. json fails and it crashes app despite being it in background thread only :/ Jul 01 06:54:01 what am i doing wrong Jul 01 06:55:09 programing my friend :D Jul 01 06:56:17 how would i go about doing Textinput with custom buttons rather than keyboard? Jul 01 06:57:50 Ashiren: using a service would prevent the while app to crash if I recall correctly Jul 01 07:01:48 raoul11: you mean like that : http://stackoverflow.com/questions/9577304/how-to-make-a-android-custom-keyboard Jul 01 07:02:58 i dont want any hidden popup, but using a custom layout of buttons already visible, and when clicking on them jumps to the next Textinput available Jul 01 07:03:44 i am also creating the buttons dynamically, so the content/text changes everytime Jul 01 07:07:26 kajika: i found out it throws IllegalStateException which extends RuntimeException. i read it crashes app by default regardles if its in background or not Jul 01 07:10:28 kajika think ill take a diff approach from using textedit Jul 01 07:11:59 raoul11: well just make a dynamic view on top with button? (like gridlayout) Jul 01 07:14:26 from that stackoverflow i dont understand how to edit the keyboard values dynamically Jul 01 07:16:10 indeed you can't Jul 01 07:17:43 ill take the diff approach, seems a bit easier Jul 01 07:45:27 hello, i got an android one device (gm 5 plus) and i can't see my device on www.google.com/android/beta page to download Nougat preview Jul 01 07:46:00 but my nexus 5x found, any alternatives that i can download or join Nougat bet a? Jul 01 07:57:42 when i am trying to create a new AVD, it needs to choose an image and download it. It always failed after minutes of downloading with an error "SSL peer shutdown incorrectly". any solution? Jul 01 07:58:03 android-studio Jul 01 08:36:11 Anyone experience with Indoor Maps and the Directions API? Is there a way to draw a polyline from two co-ordinates INSIDE a building (without launching the Google Maps app via Intent)? Jul 01 08:37:01 I have asked on SO but it has been lost I think http://stackoverflow.com/questions/38128914/how-to-draw-polyline-from-current-location-to-co-ordinates-using-google-maps-sdk Jul 01 08:39:46 After all those other candies... they should call it Android Noteeth Jul 01 08:47:52 When the application gets compiled, does the XML code becomes Java as well or does it remain in resources? Jul 01 08:50:24 It remains in resources Jul 01 09:21:22 guys, there is a task name something like :app:prepareXXXYYYDependencies when using gradle to build app. is there any way to do a task exactly before this one? Jul 01 09:22:07 something like 'Task.withType(JavaCompile)'? Jul 01 09:25:26 hero_biz, "tasks["prepareXXXXDependencies"].dependsOn " is one option Jul 01 09:25:33 Basically you make that task depend on yours Jul 01 09:26:09 yea I wanted to use depend on Jul 01 09:26:37 but is there any easier way to find task ratherthan tasks["prepareXXXXDependencies"] Jul 01 09:27:11 like .withType(xxx)? Jul 01 09:27:23 depends on which task are you looking for Jul 01 09:28:25 there's also tasks["task"].mustRunAfter Jul 01 09:28:33 I thought to depend :app:prepareXXXYYYDependencies to compile f a library. Jul 01 09:29:07 so I could generate proper library for building each of my app flavors/ Jul 01 09:29:57 clear Jul 01 09:51:01 When following this guide (https://developer.android.com/training/appbar/setting-up.html) I instantly get this error (https://gist.github.com/anonymous/98c4a48bbe980328df133ac0be34c1da) when opening the app. What am I doing wrong? Jul 01 09:55:38 Please copy your res/drawable/abc_ic_ab_back_material.xml file Jul 01 09:56:26 It's maybe the reson 'org.xmlpull.v1.XmlPullParserException: Binary XML file line #17 tag requires viewportWidth > 0' Jul 01 10:26:51 That files doesn't exist, the drawable folder is empty. Jul 01 10:26:58 *file Jul 01 10:28:20 I found that file in project/intermediates thoug: Jul 01 10:28:21 https://gist.github.com/anonymous/992454246cd781a9969d417c36a6eb50 Jul 01 10:28:38 Does anyone have the git URL for the sdkmanager? Jul 01 10:31:34 <_0xbadc0de> how can I make netbeans recognise .smali files? Jul 01 10:46:05 Flaghacker, could it be proguard removing it? Jul 01 12:03:02 Hi all. Does somebody has experience with the Google Vision API for face detection? Jul 01 12:05:19 azgul, What is proguard? Jul 01 12:06:13 Flaghacker A software that removes unused classes and method and may minify you code if you want to. Jul 01 12:06:20 Nvm I searched it and turns out it's disabled in my project Jul 01 12:06:27 SO that is probbly not it. Jul 01 12:07:02 We should have ~ commands as in java channel Jul 01 12:07:36 Good morning Jul 01 12:07:43 TO me? Jul 01 12:10:10 Am I supposed to have that file in my own source? Do I have to write that myself? Jul 01 12:11:29 Flaghacker are you talking about Proguard ? Jul 01 12:12:14 No, said it could be res/drawable/abc_ic_ab_back_material.xml thta's missing, I'm talking about that. Jul 01 12:13:45 Flaghacker hey I got same error yesterday. maybe I could help Jul 01 12:14:06 wviana, Nice! Thanks in advance. Jul 01 12:14:33 So do you have the gradle file ? Jul 01 12:15:31 I tried almost every thing. In the end I updated my buildTools and the support libraries Jul 01 12:15:47 This is my gradle file: https://gist.github.com/anonymous/76b70de1648f1855b9c4e502aca9ef9c Jul 01 12:16:43 I downloaded the support tools yesterday, so it would be strange if they are already outdated. Jul 01 12:16:47 But I'll try Jul 01 12:18:46 The support library is called "Android Support Repository" in the SDK manager, right? Jul 01 12:19:28 yes Jul 01 12:19:48 classpath 'com.android.tools.build:gradle:1.2.3' Jul 01 12:19:51 now that's old ;D Jul 01 12:20:04 Autogenerated by my ide :) Jul 01 12:20:08 I'll udate that too Jul 01 12:20:53 you probably need the newest one or one for android N Jul 01 12:21:03 if you wanna use 24 reo Jul 01 12:21:05 *repo Jul 01 12:24:03 The newest what? Jul 01 12:25:07 Guys I'm terribly sorry but I have to go :( Jul 01 12:25:09 Flaghacker sorry I had to to a meeting Jul 01 12:25:40 Flaghacker here it is, maybe it'll work Jul 01 12:25:41 https://gist.github.com/wviana/7423c5b2f22e44a84f4c346d63b856ba Jul 01 12:26:18 I'll try that later today Jul 01 12:26:24 Thanks again! Jul 01 12:26:32 (sorry again) Jul 01 12:26:54 Flaghacker for your case probably just add vectorDrawables.useSupportLibrary = true into defaultConfig will sove it Jul 01 12:28:10 gradle plugin Jul 01 12:53:44 for multiple retrofit(2) instance is it advisable to use separate httpclients or just one for everything instances? Jul 01 13:08:25 Hi. Anyone who is using Firebase, Could you please tell me what backend are you using? Jul 01 13:16:14 Lelouch9: #firebase Jul 01 13:25:05 hello all o/ Quick question, I have an app, that enables to create some user tags (ex ##123#AZE##). Would it be possible to overwrite other apps, in order to transform occurances of those tags (in TextField, Labels, ...) by a clickable action ? Jul 01 13:54:11 hey guys, when you start using string translations, how do you keep track of which strings need an update? For example I change an english string title_new from "Fresh" to "New", how can I mark title_new as needing a new translation again? Jul 01 13:54:41 Hi guys! I'm trying to check for camera permission in my app with checkSelfPermission() method, but in Manifest.permission.CAMERA statement "CAMERA" can not be resolved. Jul 01 13:55:03 How else should I request for camera permission? Jul 01 13:57:53 blusky I don't think so, maybe a really big hack that will need root and that probably wont apply to all TextFields as some apps could use different widgets to display content. Jul 01 13:58:51 wviana: one idea was to transform tags into url ... Jul 01 13:59:06 but it will kill the feature on desktop Jul 01 14:42:42 I’m trying to start an intent with the am utility from a .apk where I’ve used the applicationId gradle feature to produce multiple package names from the same source. Jul 01 14:44:14 I pass the package name to am with -p [com.my.package] and the activity name with -n [com.my.classname/.MyActivityName] Jul 01 14:45:30 If I don’t use a / in the -n argument, am complains. Things work fine if com.my.package and com.my.classname are the same, but when I’m trying to invoke MyActivityName from a package where I’ve overridden the package name with a different applicationId in gradle, am can’t find the activity. Jul 01 14:46:43 Am I doing something wrong, or is this a bug in am? Anyone know where I can find the am source to enlighten myself? I’ve poked around in the Android repo, but I don’t have an entire repo downloaded right now to look. (Downloading all the android source takes a day for me) Jul 01 14:55:30 Hello. Does anyone know how to make a request to the Google Custom Search Engine API providing an API key with restrictions? My API key has restrictions based on the android package name and the sha1 fingerprint. Jul 01 14:56:46 I managed to send the package name with the "X-Android-Package" HTTP header and it seems to be taken into account, judging by the error message I get. Bu t I can't find a way to send the sha1 fingerprint. Should I send it in a HTTP header as well? If so what's its name...? Jul 01 14:58:35 blusky, yes, you could do it from an accessibility service Jul 01 14:59:35 pfn: can you provide me some keywork to google it ? :) Jul 01 15:00:29 I already gave you 2 keywords Jul 01 15:01:41 ok, gonna try that :) Jul 01 15:17:41 What does it mean "package R doesn't exist"? Jul 01 15:18:02 I can't use R.layout.main.. Jul 01 15:18:11 purplex88: you're probably trying to access R from a subpackage, R exists in the main package Jul 01 15:18:26 Should it be auto-generated? Jul 01 15:18:34 purplex88: it is, but in the main package Jul 01 15:18:46 purplex88: so you need to import it from there in subpackages, at least that's what i do Jul 01 15:19:46 purplex88: import com.yourdomain.appdomain.R; Jul 01 15:20:22 sub-package? Hm, it's a sample project i downloaded from android developer site Jul 01 15:20:54 purplex88: well you know, google doesn't know what it's doing most of the time Jul 01 15:21:13 purplex88: wouldn't be surprised if you have to debug their examples Jul 01 15:22:06 So a package is simply a folder right? Jul 01 15:22:43 purplex88: coming from c++ before java but i'd say yes, don't take my word for it Jul 01 15:23:46 so i see a package com.android in java folder Jul 01 15:24:11 it has java files which can't find R Jul 01 15:24:27 normally they do it Jul 01 15:25:41 without importing R Jul 01 15:27:13 maybe Android Studio does something, I use Vim, breakfast time for me, bbl Jul 01 15:29:30 guy, I finally found a hacky way for setting a compile flag for a ndk in 'dependent' library based on app's flavor. Jul 01 15:29:33 http://stackoverflow.com/questions/38115425/conditional-build-of-dependant-ndk-with-gradle Jul 01 15:29:55 Idiotic way,but somehow worked... Jul 01 15:30:22 What's the best way to animate a background's color? With a SurfaceView in the background? Jul 01 15:30:28 im getting back into coding apps after a 2 year break Jul 01 15:31:44 pifon: world changes a lot in 2 years.. :D Jul 01 15:31:47 okay it says R is in com.android.example.R but i changed the package to com.android Jul 01 15:31:56 thats why it cannot find R Jul 01 15:34:02 how can i change the path of R file? Jul 01 15:34:08 you don't Jul 01 15:34:16 why would you change the package to "com.android" Jul 01 15:34:24 its in wrong package Jul 01 15:34:31 where it shouldn't be Jul 01 15:34:37 it's exactly where you put it Jul 01 15:34:43 set your package name correctly Jul 01 15:34:50 i can't refer to it from java file Jul 01 15:35:41 my java files are in package com.android but R is in com.android.example Jul 01 15:35:58 then set your package name correctly Jul 01 15:36:11 and com.android is a bad package name Jul 01 15:36:51 ahhh Jul 01 15:36:59 had to change that in manifest Jul 01 15:37:56 pfn: I fonally sent flag from app to library in a hacky way :) Jul 01 15:37:58 http://stackoverflow.com/questions/38115425/conditional-build-of-dependant-ndk-with-gradle Jul 01 15:39:07 what is the i understand the and Jul 01 15:40:04 going afk Jul 01 15:40:24 purplex88, use the google Jul 01 15:40:54 hero_biz, yeah, pretty much how it would work Jul 01 15:41:20 hero_biz, although, I wouldn't have thought you would do it that way Jul 01 15:41:33 ah ok Jul 01 15:42:10 hero_biz, but yeah, that is a terribly hacky approach Jul 01 15:43:09 works only because the build order is weird (can read the flavor selected for app project before library project is built) Jul 01 15:43:29 this approach also breaks if you move the library project into a completely separate build Jul 01 15:52:40 thank god its raining Jul 01 15:55:29 Ok, so I managed to animate my background, but the thing is that it flashes colors at random very fast Jul 01 15:55:34 Anyone know what's wrong? Jul 01 15:56:22 Using AnimatorSet and loading an XML file Jul 01 15:59:37 is the "very fast" consistent across devices? Jul 01 15:59:56 lasserix: lemme try on another device Jul 01 16:02:54 lasserix: works on my phone Jul 01 16:03:22 But on my tablet, it just flickers a lot of colors very fast Jul 01 16:05:18 It's a Samsung SM-T111 with android 4.2.2 Jul 01 16:22:19 i would have to see the code Jul 01 16:22:32 what is it supposed to do? Jul 01 16:24:18 lasserix: I just ran an 4.1 emulator and the same thing happens Jul 01 16:24:36 lasserix: my phone has 5.1 and it works, so it seems to be because of the version Jul 01 16:24:54 i would have to see the code Jul 01 16:25:08 oh it is probably something to do with the ripple effect? Jul 01 16:27:37 lasserix: http://pastie.org/private/mbrryachh9i2tmtoj57rog Jul 01 16:27:49 lasserix: the animation xml and the method in which I'm calling it Jul 01 16:28:52 I think this is a bug in am. Jul 01 16:29:39 duboisj: am? Jul 01 16:29:49 the command-line am utility Jul 01 16:29:56 “/system/bin/am" Jul 01 16:30:20 oh it could also be you are doing this on a surfaceview, which has very special ways of being drawn Jul 01 16:30:51 what you might do is overlay the surfaceview, do your animation and on animation end callback switch to the surfaceview Jul 01 16:31:33 since it's a surfaceview, for instance, there's no reason you couldn't subclass it and just add background color transition as a load method instead of using the animator Jul 01 16:32:04 am uses ComponentName.unflattenFromString() to set the Intent’s ComponentName from the -n argument. But that doesn’t provide a way to separate the package name from the fully qualified class name, afaict Jul 01 16:33:03 So if you have class com.my.path.MyActivity inside package com.my.custompackagename, you can’t launch that activity with am. Jul 01 16:33:49 Sure you can Jul 01 16:34:06 SimonVT: launch such an activity with the am utility? Jul 01 16:34:21 AS uses am when launching an app Jul 01 16:34:24 lasserix: hmm. I'm still not getting it. Jul 01 16:34:50 lasserix: on what kind of view should I do this? I just want a simple background color change of the layout Jul 01 16:35:05 you want some color transition? Jul 01 16:35:10 I can’t figure out what command line I could use. Jul 01 16:35:12 what is the surfaceview being used for? Jul 01 16:36:02 Create a test project in AS, run it.. AS shows you the commands it uses in the Run window Jul 01 16:36:20 SimonVT: if I have com.my.path.MyActiivty inside an app packaged as com.my.path, that’s fine. But if I repackage as com.my.customPackage, it fails. Jul 01 16:36:36 lasserix: wanted to use it only for this simple background change :D Jul 01 16:36:42 What are the chances of a nexus brand tango device this year? wouldnt that be nice. I know they have ther dev tablet. but with the new lenovo phone, it gives me hope Jul 01 16:36:50 Hmmm … maybe I can try a test app with AS. I’m using command line gradle to switch the applicationId … I’ll have to learn to do the same with AS, not sure whether that’s easy Jul 01 16:37:49 If you're just after the am command there's no need to do that Jul 01 16:38:01 why not? Jul 01 16:38:03 lasserix: what should I use instead? Jul 01 16:38:07 Why? Jul 01 16:39:11 I can invoke an activity with am just fine, so long as the fully qualified classname and the package name share the same root. If they don’t, I can’t get am to create the correct ComponentName. Jul 01 16:39:33 How would I use AS to show me a commandline that would do that without a test project? Jul 01 16:39:59 "I’m using command line gradle to switch the applicationId … I’ll have to learn to do the same with AS" Jul 01 16:40:06 If you're just after the am command there's no need to do that Jul 01 16:40:07 MisterGadfly, just use a "View" Jul 01 16:40:30 surfaceview is a special view used for things that need to be redrawn at "real time" rates (like games, or video) Jul 01 16:40:41 SimonVT: How would I get the correct am command without doing that? Jul 01 16:41:04 lasserix: ViewStub? Jul 01 16:41:21 If I use am directly from teh command line, I get “Activity class {com.my.path/com.my.path.MyActivity} does not exist. Jul 01 16:41:32 You just need a project where the applicationId and Activity package are different Jul 01 16:41:39 … which is true, because it should be com.my.custompackage/com.my.path.MyActivity Jul 01 16:41:40 lasserix: I'm not seeing and basic "View" Jul 01 16:41:44 *any Jul 01 16:41:53 SimonVT: Oh, Ok. fair enough. Jul 01 16:42:52 Hrmm … this is wth 5.1. I suppose something could have changed in a later version. Jul 01 16:46:17 Aha! It worked. I had a slash in the wrong place. passing componentname com.my.custompackage/com.my.path.MyActivity does indeed work, and you don’t need the -p option to specify package at all Jul 01 16:47:02 MisterGadfly, um i have no idea but just change SurfaceView to View Jul 01 16:47:13 MisterGadfly, if all you are using it for is a color transition Jul 01 16:47:32 you can use whatever it turns into and then just add a animation end hook to init whatever comes next Jul 01 16:48:27 but using a surfaceview just for this is insane. like literally, just insane. you've found a cold fusion reactor and use it for the cool blue lighting to give your bathroom atmosphere Jul 01 16:49:28 lasserix: thanks :D Jul 01 16:50:33 lasserix: using a TextView gives me the same result Jul 01 16:54:41 lasserix: managed to do it this way https://stackoverflow.com/questions/11097693/android-objectanimator-animate-backgroundcolor-of-layout Jul 01 16:58:05 from manning: Today only: Half off all MEAPs Save 50% on all MEAPs until midnight tonight! Jul 01 16:58:20 android devs might like Grokking RxJava, Kotlin in Action Jul 01 16:59:14 and 'Hello, Swift!' haha, j/k Jul 01 17:00:04 * gordon_ whispers - or functional programming in scala ;) Jul 01 17:00:49 i see functional programming in Java Jul 01 17:01:02 maybe the scala one is already completed Jul 01 17:01:15 https://www.manning.com/books/functional-programming-in-scala Jul 01 17:01:29 yeah it's ready Jul 01 17:02:11 here is the meap list https://manning.com/meap-catalog Jul 01 17:02:44 gordon_ i'm sure you want 'electron in action' Jul 01 17:02:47 FPiS is what… a couple of years old. It’s being discounted all the time. Jul 01 17:05:06 g00s: always Jul 01 17:08:19 g00s: [-5,-2,-4,-6,1,3].sort() Jul 01 17:08:21 [-2, -4, -5, -6, 1, 3] Jul 01 17:08:25 that's all I have to say about JS Jul 01 17:09:56 gordon_ does typescript have that problem ? Jul 01 17:10:06 from what i hear its pretty decent Jul 01 17:11:05 Anders Hejlsberg is a smart guy Jul 01 17:12:54 gordon_ https://github.com/NoriakiHoriuchi/scalajs-electron Jul 01 17:13:46 gordon_ happiness awaits! http://bchazalet.github.io/2015/07/19/scalajs-electron-skeleton/ Jul 01 17:14:19 scalajs rocks Jul 01 17:15:15 :D Jul 01 17:23:06 seriously Jul 01 17:40:37 gordon_ what fuck ? why it does it ? Jul 01 17:42:14 hm/ Jul 01 17:53:18 hello Jul 01 17:58:41 why? because you don't have to write javascript to target javascript clients Jul 01 17:59:18 was there a split? Cause I’m getting like a third of the conversation here Jul 01 18:00:44 wow, never knew that about sort on a list in javascript Jul 01 18:00:58 but yeah, fuck javascript Jul 01 18:05:47 no split that I know of, maybe because it was an hour ago Jul 01 18:16:42 anyone here use fastlane? Jul 01 19:40:26 has anyone installed Muzei on their device? Jul 01 19:48:55 So, I have an issue. Jul 01 19:49:03 And maybe I can get help here. Jul 01 19:49:33 ? Jul 01 19:50:07 So, the issue is the following: I have a list of entries, of which I cache a few at a time. I can load more entries from a server, which would be appended at start or end. Jul 01 19:50:19 additionally entries can be pushed by the server. Jul 01 19:50:37 Imagine a huge amount, so I’d want to cache them on the disk somehow. Jul 01 19:50:54 worse, I need to display not the actual entries, but a filtered list of them on screen Jul 01 19:51:35 Retrofit, and RxJAva would handle all the above for you rather easily. Jul 01 19:51:50 And if the user scrolls down, load more from disk, if he scrolls up, load more until the 0th message is reached, then load more from server. If user is at bottom, and we receive messages from the server, further scroll down automatically Jul 01 19:51:56 (basically, a chat client with caching) Jul 01 19:52:11 Ping_2_Ur_Pong: Retrofit not really, we use a custom binary protocol. Jul 01 19:52:36 And I want it to be performant, so the filtering by type probably shouldn’t be in the application side of the code. Jul 01 19:53:40 Ping_2_Ur_Pong: and RxJava doesn’t support cursor access over a list while at the same time broadcasting modification events easily Jul 01 19:54:44 * Ping_2_Ur_Pong askes that justJanne explain the entire scenario so that an articulate answer can be stated as opposed to giving 2% of the information. Jul 01 19:55:03 ie... if you want an answer that makes sense give enough information so people can understand the scenario. Jul 01 19:55:17 Simple: Chat client. Server can push messages to the client, client can request messages from a specific time from the server. Jul 01 19:55:34 * Ping_2_Ur_Pong questions why a custom protocol, but w/e... Jul 01 19:55:40 because of history. Jul 01 19:55:44 client exists since 2006 Jul 01 19:55:55 android-version is a very recent addition Jul 01 19:56:11 backwards compatibility, because users host it themselves (it’s an IRC bouncer, to be more specific) Jul 01 19:56:27 but I think explaining the issue to you might have already solved it for me Jul 01 19:56:37 it usually does Jul 01 19:59:10 basically, I require a cursor adapter, kinda, with a changing dataset that backs it Jul 01 19:59:40 a simple way to display SQL items, with the ability to modify (a) the filters of the select clause, and (b) add elements to the backing dataset Jul 01 20:16:10 what is this called? is there a name for this 3 tab option feature? http://stackoverflow.com/questions/36449037/android-tab-like-toggling-button-selector-instead-of-spinner Jul 01 20:16:43 nvm i think it's called custom radio button Jul 01 20:17:33 My app is crashing due to Picasso loading an image into a view which is scrolled out of the recyclerview Jul 01 20:17:38 How should I handle this Jul 01 20:17:38 ? Jul 01 20:18:33 I don't see how that would cause a crash Jul 01 20:18:54 It crashes saying Target must not be null. Jul 01 20:19:44 Does that mean the view is already null before the Picasso call happens? Jul 01 20:19:45 Cancel the request Jul 01 20:20:09 Depends where the crash is Jul 01 20:20:35 If your target is null then that's your application code screwing something up Jul 01 20:20:47 The stack trace goes to the ".into(" line of code so I think I'm doing it wrong. Jul 01 20:21:29 Sounds like you're passing null to the into method then Jul 01 20:22:12 Following the stacktrace would tell you if that's the case Jul 01 20:22:14 Yeah sorry it was me, fixed it Jul 01 20:22:18 Thanks Jul 01 20:24:48 Picasso has saved me so much agg Jul 01 20:26:49 Ping_2_Ur_Pong: I might just look into Realm, this looks actually really useful Jul 01 20:26:51 thanks :D Jul 01 21:28:01 justJanne what solution will you use for your data storage ? Jul 01 21:29:19 hi can someone help me out here? I have a quick question. Jul 01 21:29:30 just ask it Jul 01 21:29:57 if someone can help you, they’ll respond Jul 01 21:31:02 theajnin: Don't ask to ask, just ask. Someone will help if they can. Follow these guidelines http://catb.org/~esr/faqs/smart-questions.html. Jul 01 21:32:23 okk. I currently developing an e-commerce app in which I have two seperate instances of fragments attached to the viewpager (men/women) products which you can add to a global arraylist which is used to display in the cartview. Everyhing works great but I would like an option in which when i add a product to the global arraylist and if that arraylist already contains the product, it doesnt show a different row, rather I update Jul 01 21:32:26 of the product Jul 01 21:42:59 g00s: I’ll use Realm.io. They support threadsafe insert, threadsafe transactions, async updates, etc Jul 01 21:43:09 and there’s a bunch of libs to work with that, too Jul 01 21:43:26 did you benchmark vs sqlite ? Jul 01 21:43:56 nope, and I don’t care. Jul 01 21:44:05 the development effort is far more important atm Jul 01 21:44:10 if it works, I can make my own later on Jul 01 21:44:30 I haven’t seen anything that says Realm is worse than SQLite Jul 01 22:01:39 o/ Jul 01 22:08:47 I'm looking for a dead simple persistent storage for android. I'm working with NDK btw Jul 01 22:14:43 develCuy: open a file, write to the file? Jul 01 22:15:28 justJanne: how about handling parallel writing from multiple processes? Jul 01 22:15:43 you said "dead simple persistent storage" Jul 01 22:15:49 that’s not dead simple anymore ;) Jul 01 22:24:48 justJanne: you are right, perhaps a need a process... Jul 01 22:25:33 somehow I thought there was something small that is not as big as sqlite (yeah, it is too much for me) Jul 01 22:41:11 develCuy even sqlite for multiple processes isn't so great ... Jul 01 22:41:43 can you have one process babysit the sqlite db, maybe use IPC from the others to talk to the first process Jul 01 22:42:37 oh, IPC, wondering how to do it with NDK. Java is not my friend Jul 01 22:43:06 oh shit, yeah NDK hrmf Jul 01 22:48:06 IPC? Jul 01 22:48:10 Use pipes Jul 01 22:49:47 develCuy well, there is stuff you have to do in java, so i hope you are navigating the java / native partition properly Jul 01 22:50:29 justJanne: I would if I know how to Jul 01 22:50:48 g00s: I'm not using java at all right now, only ndk and deploying to a rooted device :) Jul 01 22:50:51 Well, that's another issue then. Jul 01 22:51:21 If you don't know how to use POSIX stuff, and don't know how to use Java, development will be problematic Jul 01 22:52:53 well POSIX may not be of help if this app needs to be ported to windows and iOS Jul 01 22:53:13 so doing my best for cross-platform support Jul 01 22:55:58 iOS is built on BSD, which is POSIX compliant Jul 01 22:57:12 But iOS isn't Jul 01 22:57:32 IPC is one of the things that are different on most platforms Jul 01 22:57:34 Surprisingly Jul 01 22:57:43 hello Jul 01 22:57:49 Module MVC : invalid item '< Android 4.2.2 Platform >' in the dependencies list Jul 01 22:57:51 Module MVC : invalid item 'com.android.ide.eclipse.adt.DEPENDENCIES' in the dependencies list Jul 01 22:57:54 how do i fix these two problems? Jul 01 22:58:04 i set the sdk in the project properties but it's not working Jul 01 22:58:42 my approach is to open a port, have a web view commnunicate via http, so is client-server, backend is mostly for storage, also the backend is Lua which is cross-platform Jul 01 23:02:36 i fixed it nvm Jul 01 23:03:23 develCuy that is ... interesting :) Jul 01 23:05:49 damn Jul 01 23:05:57 is it the case that you cant run x86 emulator on linux Jul 01 23:06:02 if u have amd cpu? Jul 01 23:34:39 ne1: you still can Jul 01 23:35:10 it's just that the x86 version is called intel atom x86 image Jul 01 23:35:15 even if it works on amd Jul 01 23:35:33 just like the Intel x64 processors are still amd64 processors Jul 01 23:35:45 ok i see Jul 01 23:41:12 how do u get the emulator to work? Jul 01 23:41:23 i fixed all the errors but now the device is not coming onoine Jul 01 23:41:27 online Jul 01 23:41:31 it's been 3 minutes now Jul 01 23:41:45 [1095873] WARN - run.EmulatorConnectionListener - Emulator not ready yet, dev.bootcomplete = null Jul 01 23:41:49 thats what the console says Jul 01 23:42:11 power button on the emulator does nothing Jul 01 23:47:08 well Jul 01 23:47:10 7 minutes now Jul 01 23:47:12 still nothing Jul 01 23:47:48 is it normal to take this long? Jul 01 23:47:52 even with the new version? Jul 01 23:49:13 10 minutes now Jul 01 23:50:30 presumably you're running virtualised, because why wouldn't you? Jul 01 23:50:54 yes ? Jul 01 23:51:07 but it's still not starting? Jul 01 23:51:10 12 minutes now Jul 01 23:51:45 it is actually booting? Jul 01 23:51:54 no Jul 01 23:51:56 black screen Jul 01 23:52:01 because if not, it's not going to - kill it, fix your settings, start again Jul 01 23:52:04 click on power button and nothing happens Jul 01 23:52:27 what settings do i need to change? Jul 01 23:53:10 it has 1536mb ram Jul 01 23:53:23 well, you need to find what you're doing wrong and fix it Jul 01 23:53:35 I can't tell you what that is Jul 01 23:54:17 what OS are you running, for example? Jul 01 23:54:33 debian stretch Jul 01 23:54:51 i set sd card to 5gb Jul 01 23:55:05 [1898257] WARN - run.EmulatorConnectionListener - Emulator not ready yet, dev.bootcomplete = null Jul 01 23:55:08 and you're sure it's using kvm? Jul 01 23:55:09 i only see this right now Jul 01 23:55:20 yeah, I have no idea where you're seeing that or what's generating it Jul 01 23:55:32 just try running it from the command-line Jul 01 23:55:48 whats the command? Jul 01 23:56:01 im not sure about kvm where do i check Jul 01 23:56:20 i dont see error message about kvm Jul 01 23:58:33 the command is emulator... Jul 01 23:59:41 ./emulator -avd Nexus_7_API_23 -netspeed full -netdelay none Jul 01 23:59:51 still blackscreen Jul 01 23:59:55 no errors though Jul 02 00:01:49 dunno *shug* Jul 02 00:03:24 thanks anyways Jul 02 00:05:04 is there a support forum? Jul 02 00:06:16 not really one where I'd expect to get much more than you get here Jul 02 00:06:49 you need to a) get better at providing context and b) think about timezones, possibly Jul 02 00:11:09 what context did i miss? Jul 02 00:11:53 i know it's 2 in the uk so thanks for staying with me Jul 02 00:11:56 maybe you said things like the OS you were running on before I joined the channel, what Android image you were using, etc. Jul 02 00:12:07 and I'm a very long way from the UK :) Jul 02 00:12:26 android 6.0 Jul 02 00:12:31 api 23 Jul 02 00:12:47 the project was for api 17 Jul 02 00:12:58 host CPU, virtualised platform? Jul 02 00:13:16 x86 Jul 02 00:13:58 32-bit? Jul 02 00:14:15 http://dpaste.com/08VYYSS Jul 02 00:14:18 64 bit host Jul 02 00:14:23 thats my /proc/cpuinfo Jul 02 00:14:33 32bit guest ig uess Jul 02 00:14:35 only 1gb ram Jul 02 00:16:24 https://i.gyazo.com/b570644884ad6f4c9baa0ddc55b342c1.png Jul 02 00:16:29 https://i.gyazo.com/f3eee48986384fc4fec7f5e1813d356e.png Jul 02 00:16:55 oh apparently x86 isnt supported amd... Jul 02 00:17:10 damn... Jul 02 00:17:38 let me try with arm... Jul 02 00:17:59 but it should work on linux right? Jul 02 00:18:55 it should work on an amd chip as long as you've got kvm working Jul 02 00:19:08 it definitely should work with an arm image, but it'll be slow Jul 02 00:19:28 It's funny - 10 years ago I would have avoid Intel like the plague. Now I'm running a (recycled on eBay) Dual Xeon. :-D Jul 02 00:20:19 Yeah, ARM emulation is painfully slow until AMD or Intel come up with a better emulation solution (which conflicts with their virtualization solution). Jul 02 00:21:16 but will it get the emulator to boot up at least? Jul 02 00:26:07 * g00s still wondering how that rpi3 port is going ... Jul 02 00:28:51 the arm looks ok Jul 02 00:28:58 at least i see the android logo Jul 02 00:33:35 friday eve reading https://www.reddit.com/r/programming/comments/4qrd7p/how_oracles_business_as_usual_is_threatening_to/ Jul 02 00:37:43 i'm still wondering though, even if oracle abandons JEE, if that has any impact at all ... either (1) JEE becomes legacy in data center, devs use it less, and it has a souring effect on the whole ecosystem or (2) JEE isn't necessary, new trends / patterns are superior and it should go away any how Jul 02 00:38:51 the last thoughtworks radar had app server containers on 'hold' with plain apps + embedded http servers as better solution Jul 02 00:54:05 arm failing as well Jul 02 01:36:35 Anyone know how I can get the onResume to stop being called durring a thread call? Jul 02 01:39:45 Example here http://pastie.org/10897024 <-- shows in log that the onResume gets called durring the thread call Jul 02 01:46:33 Is there an Android dev chatroom for topics not related to development and for casual discussion? Jul 02 01:46:45 DrYucatan|Ru: #android Jul 02 01:46:52 Thank you Jul 02 01:57:50 crash1hd, you might get better advice if you explained why you want to do that. Jul 02 02:08:46 haha, an android dev chatroom that's not an android dev chatroom? Here I think I found a dry cup full of water there Jul 02 02:13:56 timemage, well truth is I dont want the onResume to trigger when the thread is called, but I resolved it by adding a quick boolean check :) Jul 02 02:15:08 crash1hd, that sounds more like a restatement rather than an explanation as to why. but nice that you found something. Jul 02 02:16:11 :) well i honestly wouldnt have expected calling a thread to call the onResume of the ui thread Jul 02 02:17:17 jesseg: Was mimtf messaging you? Jul 02 02:17:29 crash1hd, i'm not sure there as related as you think. Jul 02 02:18:44 oh howdy there LunarEclipse120, don't worry about me - I've been on IRC for about 2 decades and I've seen about all there is to see from just about all angles. Jul 02 02:19:24 jesseg: Oh no problem. The thing is mimtf was finally banned. But he was messaging everyone to unban him. I just wanted to make sure he won't bother you. Jul 02 02:19:44 ahh thanks Jul 02 02:22:02 timemage, Thats why i created this example to show that they are, http://pastie.org/10897024 Jul 02 02:24:56 crash1hd, it sounds like you're trying to draw some causal connection between what goes on in your thread and lifecycle of your activity. i just don't see it. it's normal for activity to be resumed after it's created. it's a tossup whether or not the scheduler will start your thread before or after the main thread gets around to calling resume. Jul 02 02:29:04 timemage, ahh Im fairly new to threading, what I am actually trying to do is work on an application that requires bluetooth to auto connect on open / resume / disconnect etc... and I have it for the most part Jul 02 02:29:39 timemage, the first problem I ran into was a major delay of the ui thread opening if the device that the bluetooth was connecting to was not available, so I threaded it Jul 02 02:31:01 timemage, which resolved that except that having it call the bluetooth connection on resume to verify that its still connected or reconnect if its disconnected but calling the thread would call the onResume. Jul 02 02:32:38 timemage, so the only solution I could think of was to have a boolean enable and disable the onResume code Jul 02 02:32:41 crash1hd, some of that may make more sense to do in a service also. i'm particularly good with android development, but one thing i can say is that it takes a while to get used to android way of doing things. even being familiar with java and threading the path of least resistance wasn't really apparent until i'd hit some critical point after reading and watching enough tutorials. Jul 02 02:33:39 timemage, I figured a service would be best but being fairly new to android I was trying to go for the quickest build with the least resistance if that makes sense Jul 02 02:34:23 timemage, hopefully I will have time to move it to a service later, any good service related tutorials would be awesome if you know of any. :) thanks for the help so far Jul 02 02:35:04 crash1hd, well, that's why i said what i did above. i tried to do things by learning only what i thought i needed to. that didn't pan out well. in the end it was easier to go through series. there was an android bootcamp video series youtube that was pretty good for that sort of thing. i dunno whether or not they've updated it. most of it is still relevant though. Jul 02 02:36:10 timemage, cool :) feel free to share the link I will definitly give it a watch :) Jul 02 02:36:33 timemage, cause I still have a long way to go. I have only begun Jul 02 02:37:22 crash1hd, just search youtube for android bootcamp. these circa 2012. half on watching them is just knowing that certain things exist and what they're used for. i don't think you necessarily need to follow all of them closely. Jul 02 02:38:09 timemage, awesome thanks :) yeah I have a tendancy to watch java and c# videos all the time to just understand logistics Jul 02 02:40:08 timemage, found 4 different series will watch them all :) Jul 02 02:40:29 crash1hd, i'm thinking more in terms of the features of the android api. i'd been using java off and on for a long time prior, so it wasn't the language that posed the greater problem when i started in on android. Jul 02 02:43:15 timemage, makes sense (I am coming from a C# / Objective C background. I have also done some dabbling in Java mostly jsp but that was years ago so this is definitly different and fun. Jul 02 02:57:48 c# to java is really easy **** ENDING LOGGING AT Sat Jul 02 02:59:57 2016