**** BEGIN LOGGING AT Fri Feb 24 03:00:01 2017 Feb 24 04:12:08 cool http://newatlas.com/cardiosense-portable-electrocardiograph/48084/ Feb 24 04:45:20 so again, my resume seems invisible "According to the (ISC)2 2015 Global Information Security Workforce Study, more than 1.5 million cybersecurity professionals will be needed globally by 2020. An estimated 500,000 to 1 million cybersecurity jobs remain unfilled in the U.S. Companies are having trouble finding the right professional possessing practical cybersecurity defense skills." Feb 24 04:45:59 Android skills can apply! :-p Feb 24 04:46:22 invisible how? Feb 24 04:46:46 Heh, I keep applying, no love yet ☺️ Feb 24 04:47:19 guess I'm one of the half million unfilled they mention XD Feb 24 04:47:22 developer? Feb 24 04:48:13 moi? yep ;) you? Feb 24 04:48:35 hmm strange Feb 24 04:48:47 nope Feb 24 04:49:07 wonder what would happen if I posed as one though ehheh Feb 24 04:49:55 You can self identify as a dev... I approve of that message Feb 24 04:50:37 hands on is fun, hands off also but in different ways ofc Feb 24 04:52:54 i got a random google recruiter email me based off my github Feb 24 04:53:04 lots of people getting disconnected from their google accounts Feb 24 04:54:37 louipc interviewed with Google back a year, real nice recruiter but not terribly informed... be sure you ask questions of their team expectations Feb 24 04:57:12 capella: well yeah I knew he was just fishing Feb 24 04:58:47 ah k good... I talked in to a dead end / no deal, was disappointed tho! Feb 24 04:59:24 maybe I'm too picky 🙃 Feb 24 04:59:31 hi Feb 24 05:00:01 Google added one feature on Google Play Developer Console yesterday for managing release. I could not understand what is new in APKs to retain ? Feb 24 05:03:16 link it in Feb 24 05:05:17 my ref earlier was pretty good, following my iwn advice http://thehill.com/blogs/pundits-blog/technology/320496-trump-must-address-critical-cybersecurity-expert-shortage Feb 24 05:15:08 There's not a shortage so much as the stupid people are incapable of admitting that the _smart_ people actually know what the fuck they're doing. Feb 24 05:16:13 TGMCians there was a blog on that https://android-developers.googleblog.com/2017/02/publish-your-app-with-confidence-from.html Feb 24 05:17:01 Dagmar there's actually a whole book out on that now https://www.amazon.com/dp/B01MYCDVHH Feb 24 05:17:02 goos yes I have already read it but did not get.. my bad Feb 24 05:17:27 g00s: I don't really need to read a book on something I see every day Feb 24 05:17:38 lol i guess Feb 24 05:17:48 ... so you're an expert in this area :D :D :D Feb 24 05:17:53 Dagmar: shortage of competent ppl? Feb 24 05:19:00 hey guy's... so I am lost using android.support.v7.widget.RecyclerView Feb 24 05:19:25 but i have the appcompact package and it doesnt show up Feb 24 05:21:23 dar10s try sync project Feb 24 05:24:57 ohh i got it now its a separate support library... wth... how do yall keep up with this ? support libs Feb 24 05:25:24 yeah its a mess Feb 24 05:33:51 dagmar, I'm sooooooo gonna start checking I require H1b sponsorship 😉 Feb 24 05:34:20 lol Feb 24 05:35:06 Hey! Maybe establish a national "Hire me first" list... qualified Americans are supposed to go to the top Feb 24 05:40:22 capella the whitehouse lost 6 staffers because they failed their FBI background checks, why not apply there ? Feb 24 05:40:35 (how they got in to begin with, is another story) Feb 24 05:41:01 don't worry if you are unfamiliar with an important topic, you'll fit right in :D Feb 24 05:41:12 oh you didn't Feb 24 05:41:22 lol Feb 24 05:41:35 you can pass FBI check right ? right ? Feb 24 05:41:53 they won't take weed smokers... Feb 24 05:42:12 oh man sessions is going to come after you and put you in a private prison Feb 24 05:42:40 Heh, my guys think I'm a leftie commie hippie Feb 24 05:43:06 Jeff Sessions is a God ;) Feb 24 05:43:13 Ronald Reagan would be a leftie commie hippie in 2017 Feb 24 05:43:38 oh right! left coaster! "show people" Feb 24 05:43:45 😊 Feb 24 05:45:19 I vote for Rand Paul to legalize in Kentucky Feb 24 05:56:17 hrllo Feb 24 05:56:28 any suggestions for crawling the playstore for a list of available apps and their descriptions? Feb 24 06:09:03 capella have any of the security positions asked for certifications ? Feb 24 06:10:51 looks like Allo is getting a desktop app, wonder what they are writing it in Feb 24 06:11:00 I haven't asked for security specific positions... though SAIC probably involved it... not offhand g00s... most of my applications ask for PM or SDLC certs Feb 24 06:12:48 i worked with PMs that had PMI certs, they were the worst. and PMI was awful Feb 24 06:13:29 capella maybe getting security cert is worth it ... Feb 24 06:14:23 PMI as the actual thing? I'm more comfy with LBMS/JAD/CMM stuff Feb 24 06:14:41 oh man CMM lol Feb 24 06:14:44 Security certificate would be fun to pursue Feb 24 06:15:14 CMM has organizational validity... I've implemented some Feb 24 06:16:12 Just font get hung up on names like black belt green belt etc, that's the fluffy stuff for mass consumption Feb 24 06:16:36 lol 6 sigma Feb 24 06:37:49 heh, every discipline has management fads Feb 24 06:39:41 "leverage your synergies" "think outside your box" "stretch goals" Feb 24 06:42:35 capella yep; and everyone finds ways around whatever structures the disciplines provide anyhow :D https://www.sciencedaily.com/releases/2017/02/170221101016.htm Feb 24 06:43:42 i think we were all looking for ways "around the process" Feb 24 06:44:02 either that or we became 'template zombies" Feb 24 06:45:33 i think we tried to be CMM 2 Feb 24 06:45:45 CMM 1 is chaos right ? Feb 24 06:46:29 i used to read a lot of Watts Humphreys stuff Feb 24 06:46:36 Topic please Feb 24 06:46:50 Yah iir 1 is no design Feb 24 06:54:24 heh, slacker Feb 24 07:10:50 CedricBeust your build system gets some performance competition with AGP 2.5 ! Feb 24 07:11:04 which we'll see in 2025 Feb 24 07:11:04 uh? Feb 24 07:11:42 http://tools.android.com/tech-docs/new-build-system/2-5-alpha-gradle-plugin Feb 24 08:15:05 ugh https://pspdfkit.com/blog/2017/how-to-fix-a-bug-blindfolded/ Feb 24 08:15:22 "we changed the initial value from 0.0f to 0.01f – and the crash was gone" Feb 24 08:52:40 Hi all, If you use an animation for a View inside a RecyclerView-ViewHolder; is it possible to animate the view outside the frame of the ViewHolder? Feb 24 09:05:58 ok, installing ConstraintLayout and will try migrating one layout Feb 24 09:06:05 raoul11: wish me luck Feb 24 09:06:28 thepoosh Feb 24 09:06:35 goodluck Feb 24 09:06:39 thanks bud Feb 24 09:09:37 thepoosh using GUI editor or xml ? Feb 24 09:09:49 will try GUI for this one Feb 24 09:09:50 don't think AS 2.2 lets you do everythng Feb 24 09:09:56 since I don't know how to do this Feb 24 09:09:59 and 2.3 is beta - denied for thepoosh ! Feb 24 09:10:08 DENIED! Feb 24 09:12:44 So is the GUI editor a thing now? Feb 24 09:13:07 g00s: that was a one click to convert Feb 24 09:13:25 looking now at the text for damage control Feb 24 09:22:17 FrancescoV: Set clipchildren false on recyclerview? Feb 24 09:22:32 I've tried it but it isn't working 100% Feb 24 09:23:14 g00s: got a kernel panic when trying to run this Feb 24 09:23:19 not sure how I feel Feb 24 09:56:42 Will this kind of code work: if (SDK_INT >= SDK_API_CHANGE) {doX} else {doY} Feb 24 09:58:16 yes Feb 24 10:06:53 Mavrik: is that how you solve API changes when you target phones with different APIs? Feb 24 10:07:40 yep Feb 24 10:07:47 essentially Feb 24 10:08:36 if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLYBEAN) ... Feb 24 10:10:42 Is there any way for app to ask permissions on its own ? Its asking for phone call perm. But I don't make any requests Feb 24 10:14:37 Nope (not on stock android at least). Using any 3rd party SDKs? Feb 24 10:15:10 No its the newest stock android Feb 24 10:15:23 Strange Feb 24 10:15:49 And its only android 7 Feb 24 10:15:50 Then no, somewhere requestPermissions is being called Feb 24 10:15:52 its ok on 6 Feb 24 10:16:27 I commented every requestPermissions out, ok thanks, I'll keep looking Feb 24 10:25:34 is it possible to get data on basis of inserted row id received when db.insert() but the issue is i do not have any autoincrement id column in my table? Feb 24 10:32:09 You need a column to query.. Does it even return anything useful if you don't have a primary key? Feb 24 10:35:48 Mavrik: but how does that work with compilation if i compile containing code that has both API 18+ calls and API 18- calls in the same executable? will it be solved in runtime? Feb 24 10:36:08 or i mean it will check the if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLYBEAN) ... Feb 24 10:36:15 but say the wrong one is called, what happens? Feb 24 10:37:51 I would have thought that might be on basis of returning long row Id we can fetch the record from the table but now I have to introduce one Integer primary key autoincrement in my table Feb 24 10:40:03 So it means no use of returning long row id, if we dont have any primary column in our table? Feb 24 10:43:00 plantedseed, your app crashes Feb 24 10:43:09 with missing method exception usually Feb 24 11:05:54 guys is there a way to increase the allowed POST request size with OkHttp? Feb 24 11:06:03 I mean, I am forced to send base64 images through to a server Feb 24 11:06:18 and sending more than 1 image is having issues, I think it's the request size that has to do with it Feb 24 11:26:20 I don't believe there's any limit in okhttp Feb 24 11:26:40 I don't see why there would be anyway Feb 24 12:06:06 hello, can I ask a question Feb 24 12:06:13 Feb 24 12:11:25 As long as it's on topic and not easily googled Feb 24 12:13:05 I'm trying to generate an eCGI number. according to http://www.laroccasolutions.com/cgi-ecgi/ I need an eNodeB value. Where can I get that value from? I've found everything else. Feb 24 12:20:09 am having a nesting problem with json Feb 24 12:23:12 edi_, unless you go into details no one can or will help you. Feb 24 12:23:42 http://stackoverflow.com/questions/42429629/jsonwriter-nesting-exception Feb 24 12:24:28 Syzygy__, Syzygy__ Feb 24 12:24:40 http://stackoverflow.com/questions/42429629/jsonwriter-nesting-exception Feb 24 12:26:08 Once is enough. Feb 24 12:26:32 sorry I was refering to your name but i forgot Feb 24 12:27:17 at this time am stuck to this problem Feb 24 12:27:20 You probably need to give the array in your object a name Feb 24 12:27:32 Never used JsonWriter tho, it just looks like you don't Feb 24 12:27:45 I can't really help you since I haven't really done anything concerning writing jsons in ages. Feb 24 12:28:14 Consider just using gson or jackson, much easier Feb 24 12:30:27 SimonVT, I used JSONWriter Feb 24 12:30:38 I can see that Feb 24 12:31:07 i need to know where is the nesting problem Feb 24 12:31:51 edi_, as simon said, the issue is possibly that your array needs a name. Feb 24 12:32:16 which one Feb 24 12:33:03 The one in your object Feb 24 12:33:10 Each field in a json object needs a name Feb 24 12:33:18 but there are two Feb 24 12:34:29 consider this pleasehttps://developer.android.com/reference/android/util/JsonWriter.html Feb 24 12:35:04 accoording to this doc it do not need one Feb 24 12:36:08 According to this it does: https://tools.ietf.org/html/rfc7159#section-4 Feb 24 12:36:56 Your array is a value inside an object Feb 24 12:37:13 As it says, objects hold name/value pairs Feb 24 12:38:22 i know this but the array in official json writer doesnt take one Feb 24 12:38:58 I very much doubt there's no way Feb 24 12:39:06 But anyway, very likely that is your issue Feb 24 12:39:27 but how can i name the array Feb 24 12:40:05 If I had to guess, the same way you name any other value Feb 24 12:40:17 But who knows, never used it Feb 24 12:40:22 nope Feb 24 12:40:23 gson for life Feb 24 12:40:32 ah ok Feb 24 12:42:20 https://developer.android.com/reference/android/util/JsonWriter.html Feb 24 12:42:25 sorry Feb 24 12:42:52 what about logan square Feb 24 12:48:46 ye I didn't think there would be a limit either, just trying to see where I can attribute the problem to Feb 24 12:49:01 because I am able to send 1 image, just not 2, and it works on a different platform Feb 24 12:49:37 Never tried it. Just it parses json just fine tho :) Feb 24 12:50:19 Hi! I want to write some android test classes. All tests have the same setup and teardown method (opening database, ...). Therefore i made a base class with @Before and extend the test classes from the base class. But the base class's @Before is not called when running the tests. Feb 24 13:07:08 I'm trying to generate an eCGI number. according to http://www.laroccasolutions.com/cgi-ecgi/ I need an eNodeB value. Where can I get that value from? I've found everything else. Feb 24 13:14:30 replman: annotations are not inherited, you need to have the method in a/the subclass and have the annotation there. You can call the base class method from that Feb 24 13:16:42 mobidevelop: ah, that sounds good :-) Feb 24 13:16:47 I will try Feb 24 13:50:27 hey guys i have an issue when trying to run my app Feb 24 13:50:38 im getting an issue when it tries to load my activity Feb 24 13:50:45 will provide the error shortly Feb 24 13:53:58 hey guys i keep getting this when i try to run my app in debug mode Feb 24 13:53:58 14:53:32 Session 'app': Error Launching activity Feb 24 13:54:02 what does it mean please Feb 24 13:59:35 anyone around here? Feb 24 13:59:44 misterli, heyo Feb 24 14:09:24 can anyone tell me what im missing here https://dpaste.de/bKKz Feb 24 14:14:49 anyone here Feb 24 14:14:57 why are you not executing from an IDE? Feb 24 14:15:48 i am Syzygy_ Feb 24 14:15:51 android studio to be exact Feb 24 14:16:04 that is the debug window in AS that is popping up that message Feb 24 14:16:28 wasn't aware that this would show stuff like adb force stop Feb 24 14:16:59 AS on the bottom there is 5:debug if you click that that will bring up the window where im seeing what i have in the pasete Feb 24 14:17:05 I would try uninstalling the app and running it again. Other than that I don't know how to help you atm. Feb 24 14:17:35 i dont have it installed on the phone Feb 24 14:17:57 actually disregard i do have it installed O_o strange Feb 24 14:18:45 well, if it's not installed that would explain why your activity does not exist :P Feb 24 14:18:49 Syzygy_, still getting that error Feb 24 14:18:58 it installs it and gives me the error about the activity Feb 24 14:19:37 paste your activiy and your manifest. Feb 24 14:19:52 activities not existing usually mean you typoed something in your manifest - misspelled something, put or didnt put a leading '.' before the activity, have the wrong classpath in your source for what you defined the package name as, etc Feb 24 14:20:13 yeah throw that stuff on pastebin Feb 24 14:20:38 Syzygy_, and dragorn https://dpaste.de/qvS9 Feb 24 14:21:26 what free prototyping android dev is there ? Feb 24 14:21:56 eagles0513875_, you have two application definitions? That seems weird Feb 24 14:22:23 eagles0513875_, Might be something I'm not familiar with, but I don't recall seeing that before Feb 24 14:22:34 im green to android dev Feb 24 14:22:46 so you would get rid of the second one? Feb 24 14:22:54 application definition in the manifest xml Feb 24 14:23:09 I assume you wanted to have a class inheriting from Application? get rid of the second application tag, put the name in your first application tag. Feb 24 14:23:22 Akuw, i haven no idea what you want. Feb 24 14:23:35 ok Syzygy_ thanks will try it oout Feb 24 14:24:18 eagles0513875_, I would comment out the second one, yeah. If using the .AppContext name doesn't work, leave the second application tag commented out and use the .MainActivity name, I think that's the one you really want anyhow Feb 24 14:24:37 but yeah, there should only be one application tag afaik, it might be ignoring the first and finding no activity Feb 24 14:25:04 Akuw, there's a bunch of icon/window/etc sets for photoshop, etc. Some are linked from developer.android.com, otherwise google around, but none of them were amazing the last time I looked Feb 24 14:25:58 thanks guys that did it :) Feb 24 14:31:08 Any ideas why ADB has port 8000 open? Feb 24 14:37:12 dragorn: i was using evoluspencil Feb 24 14:37:27 but actually for some reason is not working well on ubuntu Feb 24 16:09:14 Hi guys, I had a problem on my custom speech recognizer class. My goal was to restart this custom speech recognition when reaching ERROR_SPEECH_TIMEOUT, but I could not receive this message any more. Feb 24 16:11:02 I had "Handler sending message to a Handler on a dead thread" warning after having this problem Feb 24 16:11:19 when following mvp, should i transform data in my model, or presenter? pulling a list of data and need to sort through it Feb 24 16:40:24 What causes android to trigger the optimising apps screen on boot? Feb 24 16:40:31 my device is doing it every time Feb 24 16:49:37 The cache partition being corrupted Feb 24 16:52:16 Kanov: You are wasting your time trying to tell me this stuff. Feb 24 16:52:17 @ Feb 24 16:53:50 If I’m creating a custom view is there any issue with just using onAttachedToWindow() and onDetach() as my create/destroy lifecycle events? Feb 24 16:58:24 I’ve also seen onFinishInflate() be used in examples Feb 24 17:04:45 Im still at work Feb 24 17:04:59 he Feb 24 17:05:03 I am leaving now Feb 24 17:05:07 have a good weekend o7 Feb 24 17:05:08 #justsaying, #yolo, #bigdreams, #smallercapabilities, #evensmallerpenis Feb 24 17:05:31 konk3r: Generally you dont’ want to tie your views to your lifecycle Feb 24 17:05:47 but onDetach() is a good place to tear things down Feb 24 17:06:10 Hey all, has anyone tried out the new BottomNavigationView from android support? I have it set up with 4 items but for some reason the last item doesn't shift and display the title like the other 3 items do Feb 24 17:08:30 Okay, cool. I’m trying to avoid it as much as possible, I just need a place to let the presenter know to unsubscribe from events. Scoop looks like it might be a nice lightweight way for me to manage that without having the view actually be managing that Feb 24 17:29:25 Hello, there. Had anyone used "realm" here? How is it in general? Feb 24 17:32:06 can it happen that a running app gets updated through play but does not get killed? i've always thought that android killed the app when updated Feb 24 17:32:47 it does Feb 24 17:39:48 anyone know why this happens? http://pastebin.com/tJxjBzJH Feb 24 17:40:16 DoITCreative: I have Feb 24 17:40:18 it's good Feb 24 17:40:33 have to mess with your objects a bit to get it to work.. adding annotations Feb 24 17:40:45 but it sure beats the manual SQL stuff Feb 24 17:41:02 ..which is good to know anyway but Realm makes life easier Feb 24 17:41:26 Tricknology, probably a wrong packagename path? Feb 24 17:41:38 i dont think so.. Feb 24 17:41:47 package is good Feb 24 17:42:16 The thing is, it builds.. when I hit the play button. but not with the ./gradlew build command Feb 24 17:42:22 lol Feb 24 17:42:29 then it's AS Feb 24 17:42:42 AAAARRRGH Feb 24 17:42:46 rand() > 0.5 ? do something: do something else Feb 24 17:42:50 ^ AS behavior Feb 24 17:43:12 lol Feb 24 17:43:46 the reason why im using gradlew anyway is to find the offending package which is conflicting Feb 24 17:43:56 something has a bouncycastle java build which is conflicting with another Feb 24 17:44:12 I want Eclipse back :( Feb 24 17:44:21 i'll take the .jars Feb 24 17:44:33 Tricknology: thanks ;) Feb 24 17:44:40 np :) Feb 24 17:45:40 Ha.. yeah adq, it's now running on my device when I hit the play button Feb 24 17:45:48 wont even build when i use gradle command line Feb 24 17:46:11 this must be disturbing Feb 24 17:49:52 With LocationManager.requestLocationUpdates(), if I call .requestLocationUpdates() again with the same provider, does it replace the old request? Feb 24 17:50:08 Or do I have to cancel the old request somehow? I can't seem to find any docs that answer that. Feb 24 17:50:33 I want to change the update interval depending on location and whether the app is in the foreground or background. Feb 24 17:51:20 super disturbing, adq as I'm really just trying to solve this issue: Feb 24 17:51:21 http://pastebin.com/ACSqq1r5 Feb 24 17:51:35 Seems like something lots of apps would want to do, but I can't find any examples -- I must be googling on the wrong terms. Feb 24 17:52:38 akk: http://stackoverflow.com/questions/2566079/specify-intervals-for-location-manager-to-broadcast-current-location-in-android Feb 24 17:53:03 the location change events will be broadcast to your listener Feb 24 17:53:08 you don't have to manually call it Feb 24 17:53:15 there is an interval param there Feb 24 17:54:48 Well, one _does_ have to manually change the interval when one wants a different one Feb 24 17:54:48 Tricknology: Sorry, I guess I wasn't clear. I'm already calling that, with interval X. I want to change the updates to interval Y. Feb 24 17:55:12 Because maybe I've just been backgrounded, or I've noticed that I'm near a grid boundary and need to update more frequently. Feb 24 17:55:22 ...and you're still subject to whether or not location services feels like telling you just then Feb 24 17:55:39 The question is, do I need to cancel the previous request, or will it automatically be replaced by my new request? Feb 24 17:56:05 I don't want to have 20 different requests registered, I want to make sure it's just one request per provider. Feb 24 17:56:22 removeUpdates() Feb 24 17:56:26 then request again Feb 24 17:56:29 with a diff interfacl Feb 24 17:56:34 interval* Feb 24 17:57:14 Thanks! that's what I needed to know. Feb 24 17:57:16 you might get an exception that you already have a listener registered if you try to just add one on top of the other. .. idk. Proper procedure is to unregister then register again Feb 24 18:00:14 So when I initially call requestLocationUpdates(), I should save the location listener I pass to it (not just pass new MyLocationListener() or whatever) Feb 24 18:00:36 so I can pass in that instance again when I call removeUpdates(mylistener) ... right? Feb 24 18:01:56 What if I request updates for multiple providers (like GPS and NETWORK) -- can I use the same listener, and will one call to removeUpdates() cancel them both? Feb 24 18:07:05 yes yo should keep a reference to it.. in scope of wherever you call remove() Feb 24 18:07:43 it will prioritize network or GPS, whichever is available. I don't think you need to set listeners for each Feb 24 18:12:07 Oh, I thought I had to handle that myself by registering two requests. If I request GPS_PROVIDER, it will give me updates from NETWORK_PROVIDER too? Feb 24 18:35:56 akk check this: v Feb 24 18:35:57 http://stackoverflow.com/questions/20210565/android-location-manager-get-gps-location-if-no-gps-then-get-to-network-provid Feb 24 18:37:04 adq: I think i fixed it.. finally.. crossing fingers as gradle builds.. Feb 24 18:37:23 good Feb 24 18:37:33 well not that bug.. that's still there Feb 24 18:37:39 but my original problem which helped my find the bug Feb 24 18:38:06 I wouldnt even kno whow to reproduce that bug.. maybe I should try Feb 24 18:38:29 holy crap it worked.. Feb 24 18:40:14 hi all am having a strange issue with LoganSquare json Feb 24 18:42:48 please see this https://github.com/bluelinelabs/LoganSquare/issues/198 Feb 24 18:43:26 please help because I am reaching deadline Feb 24 18:43:38 this is a pure github question, but I don't know how to formulate a google question for this. There is a version in my repository from before I messed something up. How do I pull that last version into my local folder? Essentially undoing everything I've done since I pushed that version up Feb 24 18:44:21 git revert Feb 24 18:44:29 and then the hash of the commit you want to revert to Feb 24 18:46:21 s73v3r: and the hash is the one with a long string like "commit 5f0b9a58666bdc20b21744a6d7533eaddebdd081" ? Feb 24 18:46:50 Tricknology: The OP in that thread indeed calls requestLocationUpdates() twice with the same listener and different providers, but never calls removeUpdates() or changes the listeners. Feb 24 18:47:03 any help for me Feb 24 18:47:31 Most of the commenters seem to use only GPS or only network, but google recommends using both in https://developer.android.com/guide/topics/location/strategies.html Feb 24 18:47:40 Yeah I would Feb 24 18:47:48 use do that in your location listener Feb 24 18:48:06 when it comes time to get location, try gps, then try network Feb 24 18:48:07 Bernzel: Yeah. But in reality, you only need the first 6 characters or so Feb 24 18:48:09 if gps fails Feb 24 18:48:26 edi_: I've never used LocanSquare Feb 24 18:48:28 why not Gson? Feb 24 18:48:38 you can take objects directly from JSON to class Feb 24 18:48:45 provided your model is exact.. like variable names Feb 24 18:48:47 I'm still not clear, though, if I request twice with the same listener, whether removeUpdates removes both of those requests. I hope so. Feb 24 18:49:04 Try and see :) Feb 24 18:49:28 How would I tell? Feb 24 18:49:47 Anyone kno whow I can mock a null body with MockResponse? Feb 24 18:49:59 probably you will get an error when switching activities Feb 24 18:50:07 I guess if I have a sequence number for updates, and it starts getting updated a lot faster, then I can suspect that I have duplicate listeners running. Feb 24 18:50:13 unless you're in a service. when you'll get an error that you didn't unregister the receiver Feb 24 18:54:10 Tricknology, Before I used JSONWriter but it throwed nesting problem, then as a beginner I selected LoganSquare Feb 24 18:54:28 I guess time to try sometihng different? Feb 24 18:54:34 why not the native JSONObject? Feb 24 18:55:59 But doesnt have any chance to get it work Feb 24 18:56:19 if it's valid JSON it will work Feb 24 18:56:26 JSONObject JSONArray Feb 24 18:56:41 maybe you should take a minute to understand JSON? Feb 24 18:56:58 https://spring.io/understanding/JSON Feb 24 18:58:10 You can see the annotation I did Feb 24 18:58:23 in github link Feb 24 19:05:25 I checked, not sure I no wwhat's goign on Feb 24 19:09:50 Tricknology, thank you for your time Feb 24 19:20:45 given a set of points on an x,y plane, what's a good way to sort the points left-to-right and then top-to-bottom? (basically, like text wrapping around, but the text isn't aligned) Feb 24 19:23:55 3 arrays? Feb 24 19:24:11 x[] y[] and xy[][] Feb 24 19:24:32 Arrays.sort(x) Feb 24 19:24:41 ??? Feb 24 19:24:42 profit Feb 24 19:25:04 please is there anybody that has experience with LoganSquare Feb 24 19:31:32 I just went through the guide for integrating FacebookSDK with my android project in every detail and now I get this strange error: http://pastebin.com/wdtDvGfu Feb 24 19:35:57 How do I add a check on EditNewPassword and EditConfirmPassword are the same in this?: http://pastebin.com/73fzTfre Feb 24 19:37:10 Convert to Strings, use .equals Feb 24 19:42:02 please is there anybody that has experience with LoganSquare Feb 24 19:44:49 Hi all. I've recently been experiencing an issue with my Pixel device running the stock, unrooted ROM. Sometimes audio will stop working, and attempts to open the video function of the camera will crash the app. Here is a small logcat paste of when I attempt to play a song through Play Music. It is accompanied by the modal error "Music temporarily unavailable. Couldn't play the stream you requested." Feb 24 19:44:52 https://i.bke.ro/r3xf3lbb.txt Feb 24 19:45:48 I'm wondering is the sound device kernel module got into a wedged state, or if AudioFlinger is similarly in a bad state. Feb 24 19:45:53 The behavior is persistent across reboots. Feb 24 19:47:12 you’re gonna have to try #android. This is just for app development, as the description says Feb 24 19:47:56 Okay, thanks Feb 24 19:50:15 Is it possible to calculate device trajectories using an accelerometer? For example, if I move my device left (i.e. pushing it from the right side), then is there any way to plot the movement, or is this something that's not possible? Feb 24 19:51:27 The error will accumulate, so the estimate of where you are will be pretty inaccurate (AIUI -- I haven't actually tried it and measured the difference). Feb 24 19:52:18 "inertial tracking" or "inertial tracker" might be good search terms to read about it. Feb 24 19:52:38 akk: That's something I thought about too - error accumulation, but what is the general approach to obtaining device trajectory? Just accumulating the readings over time? Feb 24 19:52:43 Ah okay thanks for that Feb 24 19:53:29 Accelerometer readings are acceleration, so you integrate (sum) them to get velocity and integrate again to get position. Feb 24 19:54:11 Aha okay that makes sense Feb 24 19:54:15 Thanks for the tips Feb 24 19:54:47 "You get position by integrating the linear acceleration twice but the error is horrible. It is useless in practice." :) Feb 24 20:12:18 i have a relative layout and in the previews in the studio it seems to rearrange correctly when i set things gone/visible, but when I actually run it on-device, the textview/edittext are still in the middle of the screen, they don't move up when the checkboxes are hidden. Any ideas why that might be? To test, I'm just adding/deleting the "visibility=gone" line in the layout xml, in the program i Feb 24 20:12:48 toggle it oncheckedchanged in the java. layout xml: https://www.klebes.info/bitbucket/projects/CPT-211/repos/ice-cream-shop/browse/app/src/main/res/layout/activity_order_input.xml Feb 24 20:13:02 java source: https://www.klebes.info/bitbucket/projects/CPT-211/repos/ice-cream-shop/browse/app/src/main/java/info/klebes/icecreamshop/OrderInput.java Feb 24 20:39:07 please is there anybody that has experience with LoganSquare Feb 24 20:43:56 edi_: don't ask to ask Feb 24 20:49:30 SporkWitch, I asked because so far I have not find anyone that has experience with it, here it is the error, https://github.com/bluelinelabs/LoganSquare/issues/198 Feb 24 20:49:46 i am running out of time Feb 24 20:50:02 yeah, i've no idea, but you'll get better luck if you ask the actual question, not just say "here's this general topic, read this link and help me" Feb 24 20:50:19 http://sol.gfxile.net/dontask.html Feb 24 20:52:03 hello Feb 24 20:52:39 I posted before but it seems that this is rarely used Feb 24 20:52:43 I've implemented an appwidgetprovider/broadcast receiver for a widget, so I've populated onUpdate method and I've added onReceive method Feb 24 20:52:44 unfortunately, though I've placed some log call in logcat, visual changes in my widget are not displayed Feb 24 20:52:46 I will appreciate if anyone can help me Feb 24 20:52:46 in particular, onUpdate log message ia not displayed anymore in logcat Feb 24 20:53:27 I pastebin java code: http://pastebin.com/RDNC1Gyq Feb 24 20:53:52 any ideas? Feb 24 21:00:45 What would be the best approaches in doing something along the lines of inertial tracking on an android device? Feb 24 21:01:02 Essentially want to follow the "movement" of the device, and plot the devices movement over time Feb 24 21:01:10 Something like the google tango motion tracking feature. Feb 24 21:10:21 Faizan: Tango is able to do what it does because it has special sensors Feb 24 21:11:07 Most android devices have very slow sensors (in the grand scheme of things) - a few hz at most. The pixels have very fast sensors (several hundred hz, if I recall) but I don't know that it's exposed to generic apps; the camera app uses it for stabilization however. Feb 24 21:11:11 Yeah s73v3r, understand that. I'm just thinking out loud to see whether it's fathomable to replicate what the tango can do using normal sensors Feb 24 21:11:33 Been researching for a few days and have implemented something, but as many stackoverflowers have said, the error over time is massive. Feb 24 21:11:55 yeah dead reckoning is hard Feb 24 21:12:32 Aha dead reckoning is a phrase I've not heard for a while. That's essentially what I'm trying to do Feb 24 21:12:48 May have to give up on this and ask uni to buy me a tango :D Feb 24 21:13:37 I think I would need to back up my request with facts though Feb 24 21:14:00 the error thing is pretty convincing Feb 24 21:14:07 assuming the error is a problem Feb 24 21:14:55 The error is a problem - I've drawn plots to try and explain it but my supervisor still thinks it's an implementation problem (it's worth mentioning he knows nothing about this field..) Feb 24 21:16:05 I mean you would essentially need to double integrate the linear acceleration over time and I'm pretty sure that would result in an indefinite integral Feb 24 21:19:00 what is the overall thing you’re trying to do? Feb 24 21:19:10 and what device are you currently using? Feb 24 21:19:54 I'm creating an object tracking application on behalf of our robotics lab - essentially bioroboticists want to record animals in their habitat and do some object tracking to observe behaviour. That's all implemented, but now they also want object trajectories. Feb 24 21:20:39 any help please https://github.com/bluelinelabs/LoganSquare/issues/198 Feb 24 21:20:39 Because the android device we're recording with is free-moving, calculating object trajectories is extremely tough without knowing an accurate device trajectory, so I'm trying to access device trajectories and essentially plot the devices movement on a graph Feb 24 21:21:11 like, the phone is strapped to a fox, and you’re tracking how the fox is moving about? Feb 24 21:21:12 I'm using a samsung galaxy s6 for now Feb 24 21:21:32 No, the phone is being used by a human, and the human is following the animal about Feb 24 21:21:55 https://en.wikipedia.org/wiki/Truncation_error_(numerical_integration) Feb 24 21:22:05 any help please https://github.com/bluelinelabs/LoganSquare/issues/198 Feb 24 21:22:36 The user would be following the animal, recording it, and using something along the lines of template matching to extract the object from the frame, and extracting information such as the objects current position in the frame Feb 24 21:22:56 edi_: if people can help, they will - you only asked 90 seconds ago Feb 24 21:22:59 Faizan: you could attempt to build something that attaches to the phone that has the sensors Feb 24 21:23:37 Maybe something like this: https://www.sparkfun.com/products/13613 Feb 24 21:23:45 and connect it to their 9-DOF sensor Feb 24 21:23:58 Yeah - the problem is this is a masters thesis which is due in a few weeks, and I now need to make a compelling argument to someone who doesn't work in this field and tell them it's simply not possible solely with an android device Feb 24 21:24:36 I mean, the only thing you can do is tell them that device doesn’t have the hardware Feb 24 21:24:53 He believes it can be done with the accelerometer/gyroscope Feb 24 21:25:00 then tell him to get to work Feb 24 21:25:05 (I have no idea where he got that notion from) Feb 24 21:25:15 Faizan: you should provide him a mathematical proof Feb 24 21:25:19 I need him to give me a generous mark first :D Feb 24 21:25:36 I may do that Melatonina, he has a maths background so that might be the best way Feb 24 21:25:56 that would be a top mark, IMO Feb 24 21:26:18 I mean this is an unmandatory part of my thesis, I had time so decided I would investigate Feb 24 21:26:28 And I've figured for days that it's not possible, but convincing him is tough Feb 24 21:27:02 Is there any links you guys could possibly recommend that might aid in making a compelling argument? Feb 24 21:27:13 Oh that wiki page you linked to will be interesting for him Feb 24 21:29:41 That page is very general. Your case is quite easy, actually. So you should simplify that math or find an article closer to your problem Feb 24 21:30:13 numerical integration of simple cinematic equations Feb 24 21:30:33 Melatonina: okay. So just to reiterate, the problem mostly is error accumulation when integrating? Feb 24 21:31:24 yes. It like when you create a physical simulation for a videogame. If the "step" is too big, you may - for example - fail to detect collisions Feb 24 21:31:44 Okay gotcha Feb 24 21:31:47 Thanks for the tios Feb 24 21:31:48 tips* Feb 24 21:32:00 np Feb 24 21:32:04 hi mela Feb 24 21:32:05 Also thanks to you s73v3r - I'll also suggest that hardware to him Feb 24 21:32:13 raoul11: hi! Feb 24 21:32:35 watched this talk on droidcon by this italian about rxjava Feb 24 21:32:38 funny guy Feb 24 21:32:45 :) Feb 24 21:32:49 Although s73v3r, what's the difference between their 9-DOF sensor, and an Android devices accelerometer, gyroscope and magnetometer? Feb 24 21:33:13 raoul11: why was he funny? Feb 24 21:33:19 https://www.sparkfun.com/products/14001 Feb 24 21:33:24 or how Feb 24 21:33:25 i’m not sure. Feb 24 21:33:26 donno, he just is Feb 24 21:33:30 :) Feb 24 21:33:42 https://www.youtube.com/watch?v=JCLZ55M2gVo Melatonina Feb 24 21:34:30 its not one of those anal talks Feb 24 21:35:06 oh my god no! Feb 24 21:35:27 I read his book about RxJava and it's really lame. Feb 24 21:35:52 really Feb 24 21:35:59 looks like a good intro book on rx Feb 24 21:36:35 Well, yeah. More like an extended collection of blog posts than a real book. Feb 24 21:37:02 well its packt Feb 24 21:37:08 There is nothing you can't get from the Rx site Feb 24 21:37:11 thats kinda their thing Feb 24 21:37:14 ah ok Feb 24 21:37:42 Good to know. I won't waste more time on their books. Feb 24 21:37:56 i like it Feb 24 21:38:09 Well, then they have a purpose Feb 24 21:39:01 this rx thing looks more and more like black magic Feb 24 21:39:16 There is a video by Jake Warthon in the feed Feb 24 21:39:52 ill do intro first, cause JakeWhart0n diggs deep Feb 24 21:41:07 Melatonina: is it possible to attempt what I'm doing using a phones GPS? Feb 24 21:42:01 Faizan: I was wondering that too. I have no experience. They track people running. I don't know what's your problem exactly Feb 24 21:42:30 i assumed you had tried GPS, and it wasn’t good enough or something Feb 24 21:42:51 if you just want to track the path, and don’t need to be exact, GPS all the way Feb 24 21:43:00 Melatonina: in a nutshell - I have a phone which is moving around in 3d space, and I want to track the movement of that phone, and perhaps draw a plot of the movement Feb 24 21:43:26 wouldn’t that just grab the bouncing up and down of the person holding it Feb 24 21:44:03 I'm actually not quite sure at this stage Feb 24 21:44:49 like, the GPS wouldn’t necessarily get the elevation, but unless you’re climbing tress or jumping off cliffs, that might not be important Feb 24 21:45:00 and if it is, you could overlay it on a topo map Feb 24 21:45:19 I'm not worried about elevation Feb 24 21:45:37 how finely detailed do you need the data? Feb 24 21:45:49 like, do you need every couple inches of movement? Feb 24 21:46:04 I read elevation sucks badly. Like +/- 15 m Feb 24 21:46:06 Just concerned about the basics - assume the phone is lying on the table, I push it to the left, it can extract the position and plot that movement, I push it up (away from me), it can also plot that movement Feb 24 21:46:31 but that’s a different scenario than what you’re originally asking about Feb 24 21:47:00 I'm explaining it in the most simple scenario right now Feb 24 21:47:09 yeah, but that’s a different thing Feb 24 21:47:27 How so :o Feb 24 21:47:38 i would suggest getting one of those run tracker apps, or writing your own quick GPS logger, and go out into the field and do what you’re aiming to do Feb 24 21:47:40 I may have explained it terribly the first time Feb 24 21:47:46 Faizan: http://www.andygup.net/how-accurate-is-android-gps-part-2-consuming-real-time-locations/ Feb 24 21:48:03 to me, it seems as if you just want to track the phone’s location over time Feb 24 21:48:44 Essentially, yes Feb 24 21:48:47 use strava or runkeeper or what have you, have it track you following the target, and look at what it presents at the end of it Feb 24 21:50:19 Let me download one of those apps and see what they do Feb 24 21:50:21 "!Just because the user is standing still outdoors doesn’t mean that the indicated location will stay exactly the same. It could wander over a 10 to 50 meter radius or more." Feb 24 21:50:32 O.O Feb 24 21:50:54 yes, that is possible, but generally, if you have a decent device, and a decent signal, that won’t happen Feb 24 21:50:57 Is it quite straightforward to write some code that uses the gps to track position overtime? Feb 24 21:51:05 yeah Feb 24 21:51:32 "If you have high accuracy, field-usage requirements calling for sub-meter results you should not be using a typical retail Android device." Feb 24 21:52:19 open up maps app, and see how your location jumps in a small radius, without even moving Feb 24 21:53:08 especially indoors Feb 24 21:53:21 i wonder how well the GPS watches do Feb 24 21:53:24 http://www.trimble.com/mappingGIS/pro6-Pro-Series-Receivers.aspx Feb 24 21:54:01 Endomondo, at least, will try to fix your gps points (e.g. move them to a road if they are a bit off) Feb 24 21:54:27 I assume other services do the same Feb 24 22:01:37 Sorry - so you guys think GPS is the best approach in this case? Feb 24 22:02:31 any help please Feb 24 22:03:07 i think it’s worth exploring Feb 24 22:03:37 you’d know in an afternoon if it’s a valid path to explore, and it’s pretty simple to do Feb 24 22:03:55 are there any links that could help get me started with it? I can't seem to find much Feb 24 22:05:31 there’s the gps tracking page on the developer site Feb 24 22:05:38 https://github.com/sahityakumarsuman/gps-tracking-android-sample-app Feb 24 22:06:15 This one: http://stackoverflow.com/a/5096338 Feb 24 22:07:31 https://code.google.com/archive/p/open-gpstracker/ Feb 24 22:07:55 I'll look at them thanks Feb 24 22:21:20 s73v3r: just to confirm, do you still think it's difficult to use the acceleromer/gyroscope to track the phones movement over time? Feb 24 22:21:26 As in my latest description of the problem Feb 24 22:22:08 yes Feb 24 22:22:46 Okay - again because of error accumulation right Feb 24 22:22:49 but don’t take my word for it. Download one of those apps, and take it for a test run Feb 24 22:25:08 s73v3r: Strava or RunKeeper? Feb 24 22:25:14 doesn’t matter Feb 24 22:25:18 They use GPS though, not acclerrometer/gyroscope Feb 24 22:25:29 My initial approach was to use the acceleroemter and gyroscope, not GPS Feb 24 22:25:52 how much distance are we talking about here, and how fine grained do you need the data Feb 24 22:26:08 Those sensors simply aren't designed to be used in the way that's being proposed Feb 24 22:26:12 I've always wanted to make a movement tracker using accel/gyro, but yeah, error accumulation makes it unusable Feb 24 22:26:40 Distance can be around 10 metres to half a km - depends on the size of the animal we're tracking Feb 24 22:26:43 GPS Feb 24 22:26:50 don’t think about anything else Feb 24 22:26:59 Even Samsung gave up on trying to use them to assist in fine-grained location tracking secondary to GPS Feb 24 22:27:02 okay - so try GPS only Feb 24 22:27:11 The thing is I'm not sure how to convince my supervisor otherwise Feb 24 22:27:20 show him the data Feb 24 22:27:22 It sucks that he's not knowledgable about the things he's supervising me on Feb 24 22:27:25 Oh I have Feb 24 22:27:32 I've shown him plots of error accumulation and everything Feb 24 22:27:46 honestly, at this point, if he’s not going to listen to you, tell him to do it his own damn self Feb 24 22:27:51 You'll just have to teach him _how they work_ because it's obvious at that opint Feb 24 22:28:02 I'd love to but I need to graduate first :D Feb 24 22:28:17 Faizan: https://youtu.be/C7JQ7Rpwn2k?t=23m17s Feb 24 22:28:18 just do the GPS thing Feb 24 22:28:25 and show him the results Feb 24 22:28:26 Yeah I'm looking into that now Feb 24 22:28:37 if he still doesn’t agree, then punch him in the face Feb 24 22:28:42 Melatonina: I sent him that exact video in an email just now! Feb 24 22:28:48 Lets hope this is enough to convince him Feb 24 22:29:11 the one about the parallel lines and the cat? Feb 24 22:30:04 If he has a math background either he's an idiot or he's asking your a math proof. Feb 24 22:30:24 or, at this point, he just doesn’t respect you or trust you Feb 24 22:30:45 To make that proof you just need to focus on the math for a couple of hours max Feb 24 22:31:09 it's more work than just googling but it's not rocket science Feb 24 22:32:59 s73v3r: it's because the idea of the IMU came from a research student Feb 24 22:33:14 I'm just a bachelors student so I guess he trusts someone with "more" experience? Feb 24 22:33:39 Kind of annoying because every meeting I go to I produce these results that amaze even his supervisor so I should have gained his trust Feb 24 22:33:43 but such is life. Feb 24 22:33:55 life is too short to deal with that crap Feb 24 22:33:59 Mhmm Feb 24 22:34:41 IMU may be a good idea but using an Android device as IMU may not Feb 24 22:34:59 if it was in a small space, maybe Feb 24 22:34:59 Melatonina: I've emailed him, and if he still isn't convinced, then I'll come up with a mathematical proof Feb 24 22:35:18 yeah I also mentioned in the email that if we were to use an IMU, we'd want a more accurate one with a higher polling rate Feb 24 22:35:24 and linked him to the examples s73v3r showed me Feb 24 22:35:58 keep in mind that, although SparkFun stuff is high quality, and they work hard to make sure things are easy to use, they’re generally not the cheapest Feb 24 22:36:17 so for a one off prototype, totally go with thim. for mass production, not so much Feb 24 22:36:49 Yeah, absolutely - just an example that external hardware exists as such Feb 24 22:37:13 maybe try one of the activity tracker watches? Feb 24 22:37:25 I’ve heard good things about the Garmins, but they’re far from cheap Feb 24 22:37:36 Uni won't fund me, that's the problem Feb 24 22:37:48 They gave me a crappy nexus 5 as a testing device Feb 24 22:37:57 when this app is computationally heavy Feb 24 22:38:27 those computations will probably go away if you’re just consuming GPS data :D Feb 24 22:38:42 Computations are for the image processing itself Feb 24 22:38:46 Template matching, etc Feb 24 22:39:17 hello! Feb 24 22:39:34 s73v3r: thank you for your help last nigtht Feb 24 22:39:38 adq: the same Feb 24 22:39:45 but i have yet another question :) Feb 24 22:40:02 i have a csv, am trying to read it with a scanner Feb 24 22:40:29 Oh man java is the worst for csv files lol Feb 24 22:40:29 that seems to work, however i need 2 delimiters: , and \n Feb 24 22:40:41 i would go find a library for that Feb 24 22:41:01 Scanner supports only one delimeter Feb 24 22:41:08 read it in by lines Feb 24 22:41:09 niekniek: https://commons.apache.org/proper/commons-csv/ is what I used for my project Feb 24 22:41:24 however the non android versions support multiple delimiters Feb 24 22:41:24 if you’re saying that \n can come in the middle of a record, then fuck that noise and find a 3rd party library Feb 24 22:41:33 And yeah, if you read line by line, you only need the "," delimiter niekniek Feb 24 22:41:37 no just at the end Feb 24 22:41:48 then you should be able to feed it into the scanner line by line Feb 24 22:42:14 A lot of people don’t realize just how complex a “simple” data format like CSV can be Feb 24 22:42:14 but then getnext will get the last entry + the first one the next line because delimiter is , Feb 24 22:42:28 not if you feed it in line by line Feb 24 22:42:53 if it’s only got one line, it will implicitly terminate the last entry at the end of the line Feb 24 22:43:24 niekniek: you're using a BufferedReader I assume? Feb 24 22:43:33 hmmm ok what would be a clever approach to do that? Feb 24 22:43:58 that would be the standard approach Feb 24 22:43:59 currently it’s but that doesn’t work: Scanner s = new Scanner(trackInfoFile).useDelimiter("[,\n]"); Feb 24 22:45:23 niekniek: Use a BufferedReader and read from the file one line at a time Feb 24 22:45:32 pseudocode, but for line in trackInfoFile { s.scan(line).useDelimeter(“[.]”) Feb 24 22:45:34 When you read one line, you can delimit it using "," Feb 24 22:46:01 also, if you can reuse that Scanner, it’d be good Feb 24 22:50:11 Hmm, why do your apostrophe's appear as "’", s73v3r Feb 24 22:50:23 no idea Feb 24 22:50:38 wow this doesn’t feel like very highlevel programming :) Feb 24 22:51:13 Also for niekniek - whats your keyboard layouts, out of curiosity? Feb 24 22:51:23 i didn’t copy paste :) Feb 24 22:55:29 nope, still reads first entry on next line… must be mistake on my side.. i’ll pastebin... Feb 24 22:56:08 http://pastebin.com/gixZYJQG Feb 24 22:56:33 you’re still feeding it the entire file Feb 24 22:57:05 damn i’m tired… lol Feb 24 22:57:57 great works now Feb 24 22:59:47 what would consider best for this… a GameTrack object or a multidemensional array to store this stuff? Feb 24 22:59:51 *you Feb 24 23:01:39 multidimensional arraylist that is… Feb 24 23:03:57 I could use line.split(“,”), that’ll give me an array already and store that array in a list… Feb 24 23:05:30 but i would need to create logic to recognize empty values… and http://stackoverflow.com/questions/33004572/java-performance-memory-consumption-class-vs-array Feb 24 23:05:35 so it’s going to be an object... Feb 24 23:23:45 s73v3r: Faizan: thank you, goodnight Feb 24 23:51:26 horror story time: I was out walking my domesticated dog, when suddenly, I wondered what the time was (I had an important meeting to attend to, featuring several important people in the christian rock scene). I reached into the pocket of my gray (though on the white side of the spectrum) coat, and reached for my pocket watch. But what I felt was no pocket watch, but sharp pain! When I pulled my hand out, I saw that I'd been clamped! Feb 24 23:55:55 (:V) (:V) (:V) (:V) (:V) (:V) You have been visited by the Clam of Memes! Repost this 20 times in the next 3 milliseconds or get clamped! (:V) (:V) (:V) (:V) (:V) (:V) (:V) (:V) (:V) (:V) (:V) Feb 25 00:08:03 wrong channel Feb 25 00:16:52 is glide good for putting bitmaps that are local in a imageview and handling memory and stuff or just remote images? Feb 25 00:22:25 yup it's ok thomasross Feb 25 00:29:17 adq what about remote images as well? Feb 25 00:29:25 Which is better Glide or Picasso? Feb 25 00:29:36 2 diff questions.. Feb 25 00:29:38 both are ok, just different Feb 25 00:29:53 ah ok Feb 25 00:29:55 ive been getting OOM Feb 25 00:30:01 i'm sure you will find onlinesome comparatives :) Feb 25 00:30:13 but probably due more to image size and not unbinding correctly Feb 25 00:30:21 alloc tracker Feb 25 00:34:00 I almost need another computer to bounce between while Gradle builds Feb 25 00:34:01 lol Feb 25 00:34:24 btw thanks adq Feb 25 00:35:33 uhh np Feb 25 00:54:03 is it a good idea to use glide to try to create a "collage" bitmap from a whole bunch (4) image files? Feb 25 00:55:48 i have code to draw some bitmaps to a canvas -- can I just take this answer: http://stackoverflow.com/a/31940058/2684182 and modify Generators.imageWithText do draw those bitmaps to that canvas? or is that not gonna work? Feb 25 00:55:58 * thomasross has never used glide before Feb 25 01:25:35 Hello all. I am having trouble requesting TETHER_PRIVILEGED. I registered it in my manifest, but do I need to request it at runtime? I do not see it on any dangerous permission list online. This line: wifiControlMethod.invoke(mWifiManager, config, enabled); is throwing Neither user 10180 nor current process has android.permission.TETHER_PRIVILEGED. Feb 25 01:27:12 Sorry. That was the wrong line. Feb 25 01:27:14 mWifiManager.getClass().getMethod("setWifiApEnabled", WifiConfiguration.class,boolean.class); Feb 25 01:30:00 I am trying to programmatically enable a wifi hotspot, targeting api 23 Feb 25 01:39:58 hi all - anyone here - that can help me with converting to bits etc - Feb 25 02:02:28 if I had > 00010011 and was told the value in bits 4-6 are what I need - how do i find then Feb 25 02:08:55 fels, the bit numbers are 76543210 Feb 25 02:09:35 wait ... backward ? Feb 25 02:09:49 yep Feb 25 02:10:01 is this homework or something? Feb 25 02:10:09 so if I was doing substring ( 4,7) I'd be getting the wrong thing ;;;; Feb 25 02:10:31 wait, substring? Feb 25 02:11:16 Leeds: yes - how else can i get the value of it ? Feb 25 02:11:45 AzraelPwnz: I'm pretty sure you won't get TETHER_PRIVILEGED as a non-system app Feb 25 02:11:52 fels: well, it's a number... Feb 25 02:13:41 not really -- Feb 25 02:13:54 how is it not a number? Feb 25 02:15:00 4 is a number... 71324 is a number... 0x1f5 is a number... 01010110 is a number Feb 25 02:15:55 fels, what you need is the BitSet class Feb 25 02:15:57 http://stackoverflow.com/questions/9333681/java-bitset-example Feb 25 02:16:47 https://www.tutorialspoint.com/java/util/bitset_get_index.htm Feb 25 02:17:29 i think you might have better luck also in ##java or something -- doesnt seem android specific Feb 25 02:18:54 http://stackoverflow.com/questions/18082982/java-get-bit-ranges-from-a-long sounds like this - but do'nt know anything about left right shifting .. Feb 25 02:19:05 thomasross: ok will try there as well Feb 25 02:19:40 bitset.get(4,6); Feb 25 02:19:43 done Feb 25 02:20:29 Jabo: ok let me try that Feb 25 02:23:25 lol goodby google spaces Feb 25 02:24:17 Jabo: so how do I set the value in the bitset Feb 25 02:24:30 dude, read the docs Feb 25 02:25:09 http://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html Feb 25 02:31:05 Jabo: So i have to iterate over each digit in 00010011 then do myBitSet.set(currentDigit) ? Feb 25 02:32:20 i have code to draw some bitmaps to a canvas -- can I just take this answer (to adapt it to glide): http://stackoverflow.com/a/31940058/2684182 and modify Generators.imageWithText do draw those bitmaps to that canvas? or is that not gonna work? Feb 25 02:33:30 fels, that looks right Feb 25 02:49:45 java.lang.OutOfMemoryError: Feb 25 02:49:45 Feb 25 02:49:47 i have another issue which is annoying : if i run the app - then close it and run again it crashes : Feb 25 02:50:02 if ii delete it then reinstall it runs again Feb 25 02:50:12 but seems to be only on my device Feb 25 02:54:10 g00s: typical, eh? :) Feb 25 02:55:07 Leeds i wonder whats going to be Android Things' future Feb 25 02:55:27 you mean Android@Home? Feb 25 02:56:46 they've got to kill off a couple of things every year to make room for things to announce next year and kill the year after Feb 25 02:58:03 Leeds there is only so many letters in the alphabet ! Feb 25 02:58:09 *are Feb 25 02:58:10 lol Feb 25 02:59:18 Jabo: how do i turn bitset.get(4,6) into an integer **** ENDING LOGGING AT Sat Feb 25 03:00:01 2017