**** BEGIN LOGGING AT Fri Feb 03 03:00:01 2017 Feb 03 03:00:06 yeah, just wish i had different tools ;) Feb 03 03:00:11 different OS :D Feb 03 03:03:24 then get to it Feb 03 03:03:37 people who complain the most accomplish the least Feb 03 03:04:02 thereby destroying that meaning you seek Feb 03 03:27:49 TacticalJoke also good from today http://nautil.us/blog/the-key-to-good-luck-is-an-open-mind Feb 03 03:35:28 Zen Shorts ... Feb 03 03:35:51 serious ioT, do programmable bats speak Java? http://robotics.sciencemag.org/ Feb 03 03:35:55 why does the name 'runnable' means? i know it runs a thread but does tthe name have more meaning to it? Feb 03 03:37:14 g00s: Interesting. Feb 03 03:37:24 purplex88: Something that can be run. Has nothing to do with threads. Feb 03 03:39:06 nothing to do with threads? but it allows you to start a thread Feb 03 03:40:34 The Javadoc does mention thread, so I can't really say that. Seems weird to me, though. Runnable is usable in other contexts. Feb 03 03:41:19 purplex88: It doesn't allow you to start a thread. It's just an interface. Feb 03 03:42:43 capella saw that here http://newatlas.com/caltech-bat-bot/47702/ Feb 03 03:42:47 Consider `new Runnable() { @Override public void run() { System.out.println("Running"); } }.run();`. Feb 03 03:43:27 yes, but it will be called by a new thread. Feb 03 03:43:40 Not necessarily. Feb 03 03:43:58 The code I just posted is an example of using Runnable with no new thread. Feb 03 03:44:25 oh i see so anyone can use the class Feb 03 03:44:42 You could return a Runnable from a method or have a Runnable parameter. It's one way of doing functional-style programming. Feb 03 03:45:11 Though it's kinda verbose and not really comparable to functional programming in a language with first-class functions. Feb 03 03:46:25 in runnable documentation it keeps say used by thread though Feb 03 03:46:49 Yeah. I didn't realise that when I posted my "nothing to do with threads" comment. Feb 03 03:47:06 I'm not sure I agree with the documentation's threading focus. Feb 03 03:47:33 e.g run() -- "when an object implementing interface Runnable is used to create a thread" Feb 03 03:48:34 i was just wondering about its name. Feb 03 03:49:01 I agree with this answer: http://stackoverflow.com/a/9029830 Feb 03 03:49:07 The name means "Something that can be run". Feb 03 03:50:01 runnables are posted to threads / handlers Feb 03 03:50:19 you can do whatever thread mgmt you want Feb 03 03:50:42 capella: I've had methods that return various Runnables depending on input. I think that's a reasonable use case. Feb 03 03:50:44 or use them as callbacks.. the runnables Feb 03 03:50:59 a better description would be "the object oriented Java equivalent of a lambda function" Feb 03 03:54:43 guys, to send push messages to the usersof the app i need to use https://console.firebase.google.com/?pli=1? Feb 03 03:55:17 SamSagaZ: No Feb 03 03:55:37 lamda function is fancy talk for inline code Feb 03 03:55:43 ok, i was reading an tutorial and say that need to use taht :/ Feb 03 03:55:45 ☺️ Feb 03 03:55:51 capella: Except that it isn't. Feb 03 03:55:53 :-) Feb 03 03:56:14 SamSagaZ: You _can_ use that. but you don't _have_ to. Feb 03 03:56:17 right, not by Java stds Feb 03 03:56:23 nice Feb 03 03:56:54 non-global localized code block? Feb 03 03:57:03 what recommend me to use? Feb 03 03:57:06 anonymous function Feb 03 03:57:07 capella: Runnables are the closest you can get to the ‘thing’ which is a lambda function in other languages. Feb 03 03:57:22 looks like can use phonegap-plugin-push :) Feb 03 03:57:27 capella: "First-class function" is the term. Feb 03 03:57:29 looks easy to work with it! Feb 03 03:57:57 capella: better, but the key feature of a lambda function vs. just ‘function’ or ‘code block’ is that it is an object in its own right. It can be passed as an argument, assigned to variables or returned from functions. Feb 03 03:58:00 yah, :) terminology is not familiar to me but concept is 👍 Feb 03 03:58:19 TacticalJoke: Yes. thank you. Feb 03 03:59:09 SamSagaZ: The usual mechanism is the Android Cloud Messaging: https://developers.google.com/cloud-messaging/ Feb 03 03:59:55 ok will read about it, thanks loke ! hope that is not so expensive Feb 03 04:00:00 SamSagaZ: It's free. Feb 03 04:00:15 oh Feb 03 04:00:16 Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features! Feb 03 04:00:20 first class function is new also, but both are noted ;) Feb 03 04:00:24 SamSagaZ: Yeah. I saw it now. Feb 03 04:00:32 hehe Feb 03 04:00:39 looks like the tutorial is OK then Feb 03 04:01:03 capella: ‘first class’ means that it's an object just like any other object: numbers, strings, functions... Feb 03 04:03:42 sure, tight encapsulation, somewhere on the gc stack Feb 03 04:36:09 loke... snip of a bug I did for moz, involved ThreadExecutors, ExecutorServices, runnables, etc... fun! https://bugzilla.mozilla.org/page.cgi?id=splinter.html&bug=1016686&attachment=8463172 Feb 03 04:41:35 capella moz let go of a few people today ... Feb 03 04:42:09 g00s seems like only last January.... Feb 03 04:43:34 50 people in Connected Devices ? Feb 03 04:45:47 today connected devices? checking my contacts... last year hit mgrs Feb 03 04:49:59 capella https://www.cnet.com/news/mozilla-layoff-firefox-device-relevance/ Feb 03 04:50:56 * capella reading Feb 03 04:54:19 hahaha haha hahaha hahaha ha And overall, Mozilla is hiring. "People are the reason why we can get anything done -- this isn't lost on us -- and we did not make this decision lightly," Mozilla said. Feb 03 04:55:02 but I digest 😂 Feb 03 04:58:24 for those playing @home... contribute for 5 years then apply 3 times, then fill out this form https://workremotely.io/job/1950/ then call a guy I know, then go to 19 interviews... then back to the tps report Feb 03 05:09:30 capella it would be great if you could have that tps report ready sometime this morning ... Feb 03 05:10:00 I lost the cover sheet 😲 Feb 03 05:11:26 heh, I should have known when accounting took 2.5 months to process my request for taxi reimbursement Feb 03 05:12:04 net 75 on a 115$usd tab Feb 03 05:16:07 A customer of mine actually _have_ a TPS report. Feb 03 05:16:35 They create it every day during a batch run in their finance system, and it's apparently very important. Feb 03 05:18:11 daily GL balancing... close/open books Feb 03 05:18:27 first guess :) Feb 03 05:19:14 capella: Possibly. I have no idea. :-) Feb 03 05:19:24 wonder if this is any good https://www.manning.com/books/grokking-reactive-user-interfaces Feb 03 05:19:38 All I know is that there was a major issue when the TPS report was not generated correctly. Feb 03 05:21:42 well if it holds up the nightly batch, it could be any feed into GL,... they're all Ultimately important to position Feb 03 05:22:15 but that's mainframe talk... "batch runs" Feb 03 05:22:40 😱 Feb 03 05:24:46 capella lol howard stern thinks that trump is mad he won, and wants vote recount to prove hillary won so he can get out of it haha Feb 03 05:25:02 its funny because they are friends Feb 03 05:26:42 Hee... after watching fellow NY pres Trump deal with pansies like fellow NY blubbering Mr. Schumer, I can see why it might be true 😎 Feb 03 05:27:50 dang, I usually save snark for the week end Feb 03 05:28:04 i think its trumps last year as prez so they should probably not have supreme court hearing :) Feb 03 05:28:33 Bah we've gotten by on 6 before Feb 03 05:30:46 capella gengrich is always so constitutional and all, so why is he giving trump free pass on the emoluments clause? Feb 03 05:31:30 it's today's talk of h1b restrictions that I'm loving Feb 03 05:31:52 oh yeah that is good thing finally Feb 03 05:32:40 I went and applied to Goldman Sachs, and Morgan Chase Feb 03 05:34:06 Goldmans something CEO on CNBC yesterday hating @the temp travel restrictions of Obama's that Trump reinstated Feb 03 05:34:47 but he's not representative of GS so I applied anyhow :D Feb 03 05:35:11 capella once you're in GS next stop white house ! Feb 03 05:35:32 the more people you screw over, the quicker the promotion too Feb 03 05:35:55 Heh, actually kinda true this time around with the business experience leanings the electorate indicated Feb 03 05:36:09 not the screw part Feb 03 05:37:26 and emoluments as applies to Flynn? Doesn't apply to him legally Feb 03 05:37:42 Democratic sour grapes Feb 03 05:38:12 and I helped write a Rust patch today Feb 03 05:39:22 emoluments on trump, not flynn. notice the travel restrictions aren't on countries trump has business in , like saudi arabia :) Feb 03 05:39:43 capella so what do you think of rust so far ? Feb 03 05:39:59 i think one of the rust designers went to go work for apple on swift Feb 03 05:41:05 g00s that's your best legal case against trump? Feb 03 05:41:07 <_genuser_> hey devs. any of you in the U.S. and doing corp to corp? Feb 03 05:41:21 Rust is cool though Feb 03 05:41:31 some odd syntax Feb 03 05:41:45 _genuser_ corp to corp ? Feb 03 05:42:10 I do 1099 to corp Feb 03 05:42:16 capella he hasn't disentangled himself from his businesses in other countries, its a big case Feb 03 05:42:25 <_genuser_> g00s: corporation to corporation. (you get an LLC/corp/s-corp and they pay your corp using the EIN #, instead of your SS#) Feb 03 05:42:37 oh sorry Feb 03 05:42:45 preexisting and doesn't apply to President g00s Feb 03 05:43:04 <_genuser_> capella: so corp pays you directly as individual and provides a 1099 year end? Feb 03 05:43:09 capella doesn't apply only if congress approves Feb 03 05:43:32 which they will, because expediency > principle these days Feb 03 05:43:46 <_genuser_> g00s: principles are for shmucks. Feb 03 05:43:57 <_genuser_> it's so much easier to just tweet AT people. Feb 03 05:44:02 lol Feb 03 05:44:21 <_genuser_> first you insult them. and then if possible repeat every few hours. Feb 03 05:44:53 <_genuser_> from there there's two paths. If your'e democrat and don't get what you want, just burn the town down. No use being logical and saving your own town property. Feb 03 05:45:11 _genuser_ yes aaiu and have worked previously Feb 03 05:45:16 <_genuser_> if you're rebpulican, just make a law and then sue the poor people. No use letting anyone have an other opinion. Feb 03 05:45:16 i like today how sean spicer claimed iran attached a american vessel - he got that from fox news, which misreported it - what a bunch of idiots. what happens when you don't get intel briefings Feb 03 05:45:24 *attacked Feb 03 05:45:28 you pay quarterly estimates of tax Feb 03 05:45:47 and your own extra portion of employee taxes Feb 03 05:46:00 socsec Feb 03 05:46:11 capella what did you want to do at GS ? programming, something else ? Feb 03 05:46:17 <_genuser_> capella: ah, I was looking to do llc so they pay the llc instead of my ss# directly. Primarily, to remove liability. But then also to do other business ideas under the LLC liability. Feb 03 05:46:43 Oh, then more like s corp? Feb 03 05:46:47 <_genuser_> and not provide ss# every place. Feb 03 05:47:06 <_genuser_> capella: right, like a corp. LLC would in this case be covered in that corp to corp conversation. Feb 03 05:47:11 g00s... I'd rather move full financial functional Feb 03 05:47:32 hands off, project mgmt and higher Feb 03 05:47:34 <_genuser_> capella: problems arise when you need to get a sales tax permit from texas comptroller. You need to what you're selling is "goods" or "taxable service" and then collect tax. Feb 03 05:47:44 <_genuser_> capella: then remit to state quarterly. Damnit. Feb 03 05:47:57 <_genuser_> why is trump hitting immigrants so hard, instead of easing up business rules. Feb 03 05:48:26 refugees Feb 03 05:48:36 he signed a two for 1 reduction in rules! Feb 03 05:48:39 oh, because #presidentbannon Feb 03 05:48:49 <_genuser_> for all my jokes, I do like Trump. I supported him over the other candidate. Feb 03 05:49:15 ++ Feb 03 05:49:20 -- Feb 03 05:49:35 <_genuser_> I just think it's hilarious when he signs an EO, he goes to facebook like a 13yo girl. Feb 03 05:49:38 <_genuser_> and posts it immediately. Feb 03 05:49:51 i don't see how anyone could like him, he's a malignant narcissist. malignant means 'no cure' Feb 03 05:49:58 <_genuser_> or spends so much time fighting rossie oddonel. it's like pfft, dude leave it alone. Feb 03 05:50:03 Antony weiner and 13 year old girl? Feb 03 05:50:24 <_genuser_> g00s: I don't use strong language like that even for hillary or other candidates. Feb 03 05:50:34 <_genuser_> end of the day, they're all human and doing their part to fix the goverment. Feb 03 05:50:39 so yah, I just sell software services Feb 03 05:50:42 <_genuser_> thankfully, we have 8yr max for anyone. Feb 03 05:50:46 _genuser_ its what psychologists have diagnosed him with Feb 03 05:50:48 no sales tax permit Feb 03 05:51:05 8 yr max continuous Feb 03 05:51:10 <_genuser_> g00s: no professional psychologist would give a diagnosis without directly working with a patient. Feb 03 05:51:21 _genuser_ http://www.nydailynews.com/news/politics/shrinks-break-silence-president-trump-exhibits-traits-m-article-1.2957688 Feb 03 05:51:24 <_genuser_> g00s: that's what they themselves say. So I just ignore all that. Feb 03 05:51:30 he broke the rules Feb 03 05:51:48 hey its a time where everybody is breaking rules ! Feb 03 05:51:51 <_genuser_> capella: I guess for software engineering services there's not sales tax. Feb 03 05:52:10 <_genuser_> g00s: heh, I find lot of what he does funny, or somethign I don't agree with. Feb 03 05:52:22 <_genuser_> g00s: I just don't get angry at anyone in politics. It will take up all your time if you let it. Feb 03 05:52:58 <_genuser_> capella: I would also consider doing graphics artist work (if I can convince someone to give me the project). Feb 03 05:53:13 <_genuser_> capella: basically, trying to venture out of 9-5 and possibly software/IT. Feb 03 05:53:26 <_genuser_> capella: spoke with a CPA. confused me a good bit while clearing up other things. Feb 03 05:54:39 _genuser_ probably be lots of farmwork now ... Feb 03 05:54:53 picking strawberries and stuff :) Feb 03 05:54:58 <_genuser_> g00s: farmwork? for consulting? Feb 03 05:55:05 <_genuser_> g00s: eh, it has to be on the computer. Feb 03 05:55:08 :D Feb 03 05:55:16 lots of automation in the coal mines too Feb 03 05:55:22 computers there :) Feb 03 05:55:36 <_genuser_> lol, yeah. robotics. and build coal haulers. Feb 03 05:55:41 lol those huge komatsu trucks that driver themselves now are amazing Feb 03 05:56:09 all electric, dc motors in all wheels. its so weird seeing no cockpit for a driver Feb 03 05:56:37 <_genuser_> also, if star trek watchign could be billable.... Feb 03 05:56:39 those tires are like $43k a pop Feb 03 05:57:24 capella cmon, its friday you have to have more snark for me! Feb 03 05:57:34 you're mellowing out with age man Feb 03 05:57:45 <_genuser_> it's friday already? Feb 03 05:57:45 I just saw an article about that in MIT Technology Review iirc Feb 03 05:57:58 re: tires etc Feb 03 05:58:18 <_genuser_> two questions: Feb 03 05:58:27 <_genuser_> 1 - are tires really getting your guys worked up? Feb 03 05:58:32 <_genuser_> 2 - age? just how old is capella ? Feb 03 05:58:55 g00s did I already mention? I have a new shirt "my favorite animal is bacon"? Feb 03 05:59:06 capella lol Feb 03 05:59:12 <_genuser_> bacon!!! Feb 03 05:59:26 they love it in Texas 😊 Feb 03 05:59:38 <_genuser_> bacon? who doens't love bacon? Feb 03 05:59:45 <_genuser_> bacon and chicks. Feb 03 05:59:47 <_genuser_> and booze. Feb 03 05:59:52 there is a bacon shortage ... Feb 03 06:00:04 _genuser_ maybe do bacon consulting Feb 03 06:00:29 <_genuser_> g00s: hehe, "here's how to fry bacon", "here's how to slice it thin enough", etc. Feb 03 06:01:10 man, after reading the cows in texas drink from oil contaminated water ponds ... i'll take my bacon from some other place Feb 03 06:01:23 <_genuser_> oh boy. Feb 03 06:01:30 <_genuser_> BACON. DOESN'T. COME. FROM. COWS. Feb 03 06:01:45 well, i mean other animals drink it too Feb 03 06:01:51 Topic. Feb 03 06:01:52 _genuser_ lol Feb 03 06:02:10 <_genuser_> see, I don't like environmental regulation relaxation for stuff like this. I disagree with republicans on that. Feb 03 06:02:14 Gotta find a woman my age into vaping Feb 03 06:02:26 <_genuser_> but the whole, global warming, I don't quite buy into that. I'm not convinced. Feb 03 06:02:43 <_genuser_> I'm still in favor of reducing carbon footprint, just for having more breathable air tho. Feb 03 06:02:48 CedricBeust do you use rx for event streams originating from UI widgets, i've mostly just used it in services / etc ? Feb 03 06:02:50 <_genuser_> I meant who doesn't understand that? Feb 03 06:02:58 its a conspiracy _genuser to buy for more air conditioners Feb 03 06:03:00 _genuser_ capella: Topic. Feb 03 06:03:14 <_genuser_> g00s: you had to wake him up. Feb 03 06:03:37 <_genuser_> ok back to topic. Feb 03 06:03:47 oooops, heh cedricbeust Feb 03 06:03:55 <_genuser_> what about selling apps in playstore? Feb 03 06:04:06 <_genuser_> I had one free out there. few downloads. but I didn't charge anything for it. Feb 03 06:04:13 <_genuser_> so I'mn ot sure of taxes on apps. Feb 03 06:04:36 I sprinkled Rust in there Feb 03 06:05:21 * capella can't help with PlayStore entrepreneurship Feb 03 06:05:44 Leeds are you ok? Feb 03 06:05:59 <_genuser_> capella: lol, I have to finish an app first. Feb 03 06:05:59 I'm worried too Feb 03 06:06:03 you may need to get a sales tax calculator service Feb 03 06:06:05 g00s: sure! been away in Canadia Feb 03 06:06:15 Leeds oh! ? i read a billionaire was seized from HK the other day and brought back to mainland china Feb 03 06:06:30 weeks back Feb 03 06:07:01 publisher iir, and not the first recent Feb 03 06:07:08 yeah... I try not to get myself into the position of being secret banker to kleptocratic communists Feb 03 06:07:39 hows Canadia? Feb 03 06:07:55 its ok if u take illegal funds Feb 03 06:07:58 just dont get caught Feb 03 06:08:09 i recently got 50 million from africa through an email Feb 03 06:08:10 squ: cold! but with friendly people Feb 03 06:08:15 guess it belonged to a distant relative Feb 03 06:08:22 <_genuser_> sasser: funds or an offer? Feb 03 06:08:33 <_genuser_> you need to first send them a small fee. Feb 03 06:08:34 Last warning before kicks. Stop the off topic chatter. Feb 03 06:08:43 i did send them a small fee now im rich! Feb 03 06:08:55 Leeds: I've heard that too Feb 03 06:09:09 <_genuser_> CedricBeust: ok, I'm gonna take a break from the # so I don't get kicked. good night. :) And apologies for the inconvenience. Feb 03 06:12:11 blucher Feb 03 06:12:32 That's what I'll name the routine ☺️ Feb 03 06:13:30 I've named one function ‘rosenkranz’ Feb 03 06:14:39 still better than calling it function1 Feb 03 06:14:43 moz has a cool one "kungFuDeathGrip()" Feb 03 06:15:05 grabs a hard red to itself Feb 03 06:15:17 *ref Feb 03 06:15:42 prevents object gc in flight for the thread Feb 03 06:16:03 fun name ☺️ Feb 03 06:16:06 ))) Feb 03 06:24:14 trying to find the drag coeficent of a tassle on a flying carptet... intersting formulas in java Feb 03 06:26:04 Not enough precision for the physics? Use BigDecimal? Feb 03 06:27:05 yeah gotta when you get down to each strand on the tassle Feb 03 06:27:47 also have to take a lot of things into acount Feb 03 06:28:02 and make a lot of asumptions Feb 03 06:32:01 what do you do again? graphics /animation code? heh, simulating hair blowing on character attributes? :p Feb 03 06:34:04 web graphics rendering, and its more i was watching aladin the other day and kept wondering what the drag coeficent of the tassles were the whole move.... Feb 03 06:35:06 *movie Feb 03 06:42:06 so, s=strand count per tassel, r=strand radius, l=length, t=number of tassels, p=mount points, m=air moisture, v=velocity etc kinda stuff? sounds like work :/ Feb 03 06:42:52 must be using a specialized lib? Feb 03 06:43:41 no, where the fun in that... and i would love for you to find me a lib that can calculate tassle drag Feb 03 06:44:05 or you would have to use a lot of them... Feb 03 06:46:21 one for the wind, one for the thread calulations, another for paticle calulations.... etc Feb 03 06:57:57 jamie_1 I remember my buddy the optical engineer for Canon was Wes Bacon... he knew that gorilla glass stuff Feb 03 07:01:52 but I think factoring impurities of the viewing layers into your stuff is a little deep ish conceptually Feb 03 07:02:24 Bacon Feb 03 07:29:14 question: making networking calls outside an activity, as in a singleton/app class - advised to/against, and how do i intercept the listeners on the actual activities? Feb 03 07:33:46 off / alongside main thread? Or a service? Feb 03 08:16:59 Hi all, I want to use MVP for a new project (for the first time). Any advice about using a library or not? Feb 03 09:00:38 Hi, I'm getting an error "Execution failed for task ':app:prepareArm7DebugAndroidTestDependencies'. Feb 03 09:00:38 >Dependency Error. See console for details. Feb 03 09:00:38 When I try and build my project, I googled it, and found only one reference to anything similar (not the same issue though) anyone knows what can be causing this, or how I find out what causes this dependency error? Feb 03 09:18:47 http://paste.ee/p/xqece Feb 03 09:23:40 trying to see if gradlew build works now Feb 03 09:25:42 OK, well, gradlew recommends i'll increase the heap size Feb 03 09:27:57 640GB should be enough for every gradle this year Feb 03 09:28:40 :) Feb 03 09:30:24 ok, gradle build does fails, "Execution failed for task ':app:lint'" says i should try with --stacktrace Feb 03 09:40:38 Well, this is what the --stacktrace failure looks like : http://paste.ee/p/ffkDx Feb 03 09:49:18 Oooh, nice, gradle generates a flashy html error report. Feb 03 10:12:44 So far, my best bet is that this issue was caused by the latest AS update Feb 03 10:13:03 I think that's when it stopped building anyhow Feb 03 10:42:33 OK, it seems to stem from one of my tests having a @RunWith(AndroidJunit4.class), when i remove it, it builds. Feb 03 10:45:07 If an App is uninstalled, all preferences should be cleared. Am I wrong with that statement or do some samsung devices just not do that? Feb 03 10:45:40 there is android. and there is samsung Feb 03 10:45:50 OK, so the build works with gradlew, but not from AS. Feb 03 10:46:17 trying to invalidate cache/clean project... Feb 03 10:47:34 Anyway I can detect if samsung is being stupid? Because if my users uninstall the app and install it again, the intro is skipped (which takes care of setting up a few things). Feb 03 10:49:44 Nope, that didn't help :( Feb 03 10:53:58 OK, i now deleted all my tests, and commented out all of the instrumentation tests in my app's build.gradle, it now builds in AS Feb 03 11:01:58 Syzygy__: https://developer.android.com/guide/topics/data/autobackup.html Feb 03 11:04:29 ok, i changed support-annotations to 25.1.1, i think that solved the build issue... I think. Feb 03 11:32:34 Cannot use 'service call isms' to send an SMS no matter what I do. Feb 03 11:32:48 I'm using CM11 on HTC One X. Feb 03 11:33:02 Is there perhaps another way to send an SMS from CLI? Feb 03 11:35:03 more suitable for #android-root Feb 03 11:35:07 When i enable uiautomator the build fails again Feb 03 11:35:15 tx Feb 03 11:35:29 but i don't really need it yet Feb 03 11:35:41 that's a problem for future me Feb 03 11:36:03 or next team Feb 03 11:38:47 :) i'm hoping to keep this job for a while, but at this rate, i'm not sure I will :p Feb 03 11:46:40 dokma: CM11 hasn't been supported for some time. Feb 03 11:46:49 You'd be better off getting a new device or updating Feb 03 12:14:35 OK, so now i'm back to the problem i had a few days ago when i was trying to do this: Feb 03 12:14:35 Test framework quit unexpectedly Feb 03 12:14:35 when i try to debug my Instrumentation Test (even with no break points), it's not complaining about it in a normal test run, only debug Feb 03 12:14:51 thanks SimonVT that looks promising Feb 03 13:04:04 Hello, is there a way to see on which ad units was cliced from a specific country ? ( adsense ) Feb 03 13:04:09 clicked* Feb 03 13:05:01 for some specific day. Feb 03 13:06:43 Maybe under advanced reports ? Feb 03 13:09:54 hello, anyone used simple xml framework here ? i have a problem with gradle build. The problem is Warning:org.simpleframework.xml.stream.StreamProvider: can't find referenced class javax.xml.stream.XMLInputFactory Feb 03 14:50:01 I'm using jTar to create tar files in my app, but when I try to create a tar file I get this error from jTar: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/nio/file/attribute/PosixFilePermission Feb 03 14:50:11 Any ideas how to fix it? Feb 03 14:57:48 dougquaid, it's not available on android i believe Feb 03 14:58:08 part of nio is supported, but not File Feb 03 14:58:20 https://developer.android.com/reference/java/nio/package-summary.html Feb 03 14:59:00 adq: That's odd, because I imported jTar under the Dependencies tab of the Project Structure menu. jTar came up in the search Feb 03 14:59:14 Anyway, then is there another way to create a tar file on android? Feb 03 14:59:29 that's you don't read and search documentation, stackoverflow etc but ask on irc first Feb 03 14:59:38 that's odd* Feb 03 14:59:58 there are probably many ways to create a tar Feb 03 15:00:46 Why is irc here if not to use it? Of course I searched google but I also asked here. Sometimes a quick question on irc yeilds me the search terms I need to find my answer Feb 03 15:01:28 dougquaid, does it have to be a Tar? Feb 03 15:01:46 dougquaid, someone made an Android port of jTar it seems: https://github.com/draekko/android-jtar Feb 03 15:02:07 he is too lazy to even search Feb 03 15:02:09 Mavrik: Well, my end goal is to gzip compress 2 files for a quicker upload Feb 03 15:02:30 adq: Heaven forbid I ask a fellow human for help Feb 03 15:02:34 lol Feb 03 15:03:12 i found a couple of solutions, took me 3 seconds but i'm against spoon feeding Feb 03 15:03:40 usually ppl explain what they try, you just switched from a problem to another becasue in the meantime i told you it's not available + doc link Feb 03 15:04:07 dougquaid, doing tar.gz will be annoying and require libs I'm afraid... you can create a ZIP archive without any additional libraries though: http://www.jondev.net/articles/Zipping_Files_with_Android_%28Programmatically%29 Feb 03 15:04:54 Mavrik: I was thinking about that but was hoping to use gzip for better compression. Though if it truly is the pain in the ass that it seems to be, I'll probably resort to zip Feb 03 15:04:57 also tar does not compress by itself Feb 03 15:05:11 adq: No shit, that's why I wanted to gzip the tar file Feb 03 15:05:17 :) Feb 03 15:05:28 "carefully explain your problem is half the solution" Feb 03 15:05:48 any of you guys use data binding here? Feb 03 15:06:21 dougquaid, hmm, neither ZipOutputStream or GZIPOutputStream have a parameter for compression level, so I guess you should test them quickly first - not sure how good that compression is. Feb 03 15:07:13 Mavrik: Good idea, I'll try that Feb 03 15:14:09 should I use getActiveNetworkInfo or listen for CONNECTIVITY_ACTION to determine internet status Feb 03 15:14:26 I can't seem to find info on which is more reliable Feb 03 15:18:51 missingno, getActiveNetworkInfo seems to be more reliable Feb 03 15:19:14 You don't have to track it and you don't get bitten by API 24 changes. Feb 03 15:39:31 guys, static Context in the Application class? Feb 03 15:44:15 raoul11, huh, Application class itself is a Context Feb 03 15:44:42 yes Feb 03 15:47:03 if you don't close cursors, what happens Feb 03 15:47:25 Mavrik: the idea is to use resources in a non activity type of class Feb 03 15:47:29 it leaves a handle to a cursor Feb 03 15:47:37 lol Feb 03 15:47:38 without memoryleaking Feb 03 15:47:50 so no memory leak if you leave it open Feb 03 15:48:45 is it right that an app can't use storage without the user manually granting the permission in settings->apps ? Feb 03 15:49:10 "Am I correct in thinking" perhaps, not "is it right" Feb 03 15:49:53 no Feb 03 15:50:01 internal or external? Feb 03 15:50:05 either Feb 03 15:50:26 you just need WRITE_EXTERNAL perm Feb 03 15:50:33 at install level Feb 03 15:50:35 internal you can do what you want with, external is a risky permission and should be dealt with if u target 23+ Feb 03 15:50:55 I've been totally unable to do it, having bust my head for nearly two days looking, API25 and 23, even with that perm in the manifest Feb 03 15:51:38 hmm, ok, I'll use internal Feb 03 15:52:07 but even so... I've "setWritable", I've definitely got that permission (+ READ)... Feb 03 15:53:46 I don't believe you need any permissions for getExternalFilesDir(). For anywhere else, make sure you request the permission at runtime Feb 03 15:54:10 what is this request permission at runtime fad Feb 03 15:54:15 that started 3 days ago Feb 03 15:54:25 that started with 23 Feb 03 15:54:35 so 3 days ago? Feb 03 15:54:47 its a pita but was coming for ages Feb 03 15:54:51 \: Feb 03 15:56:06 mmm... pita Feb 03 15:56:11 Should have been added years earlier Feb 03 15:56:33 just unnesccary steps Feb 03 15:56:42 not like it actually improves security Feb 03 15:57:20 not the good kind of pita Leeds Feb 03 15:57:24 guttenshabas btw Feb 03 16:01:06 mmm... lafa Feb 03 16:03:42 also, shabbat shalom :) Feb 03 16:04:08 Oh hell... now you're going to wind up on a watchlist Feb 03 16:04:51 oh, I'm sure the commies are already keeping an eye on me Feb 03 16:06:38 course, u been mingeling with thepoosh Feb 03 16:06:49 that dude is dodgy af Feb 03 16:06:59 thanks all Feb 03 16:08:05 I strenuously deny any reports or rumours that I have mingled with thepoosh at any time. FAKE NEWS! and now shower time... Feb 03 16:29:25 I'm having a manifest merge issue because some library has while my app has it set to false. The error message recommends that I add tootls:replace="android:allowBackup" to my element. Feb 03 16:29:50 However this still fails. Can someone confirm that this is the correct syntax? tools:replace="android:icon, android:allowBackup" Feb 03 16:35:09 I would expect no space after the comma, though no idea if it really is that picky. Feb 03 16:37:22 I tried that as well, no difference. But I managed to find the offending library Feb 03 16:39:30 ... why does android studio show me the errors in a string file in a build folder first? ... Feb 03 16:45:52 ugh, reading the source to AssetManager, i can't understand why my resource sharding isn't working... Feb 03 16:51:23 I hate how osx doesn't let me put a regular window on top of a maximized window Feb 03 16:51:34 impossible to read documentation and work in a full screen ide... Feb 03 16:51:41 why is OSX so user-unfriendly... Feb 03 17:00:34 pfn, I use SizeUp which gives me a "maximize" like shortcut Feb 03 17:00:41 without using macos fullscreen Feb 03 17:00:47 otherwise I'd go crazy :P Feb 03 17:01:03 I mean, I like full screen, but I want to be able to refer to external shit, like terminal and browser windows... Feb 03 17:01:13 flipping back to the desktop is such a disturbing context switch Feb 03 17:05:10 W (28337) asset : Asset path /sdcard/protify-resources-02.ap_ is neither a directory nor file (type=1). Feb 03 17:05:15 ah, exactly what I wanted to find Feb 03 17:05:53 oh, oops, typo Feb 03 17:12:28 huh, weird... if I hack assetmanager manually, it is able to find my resource OK Feb 03 17:39:26 huh https://github.com/Microsoft/GVFS Feb 03 17:41:17 can I crash (not kill) an app via adb? Feb 03 17:41:25 no Feb 03 17:41:48 Alright, thanks Feb 03 17:41:52 your app needs a trigger to make it crash Feb 03 17:42:13 you can use am startactivity/service/broadcast Feb 03 17:42:16 with any amount of bad data Feb 03 17:42:24 maybe if you startactivity with a bogus activity it will crash Feb 03 17:44:10 hi Feb 03 17:45:24 am i right that android runs some special user for video? and root is not having variables for $DISPLAY? Feb 03 17:45:50 so that when i try to run stuff it gives errors that display not found Feb 03 17:45:59 android doesn't use X Feb 03 17:46:10 yes i know, but im talking about sdl Feb 03 17:46:21 same problem there, as with x Feb 03 17:46:51 i am trying to achieve fragment communication without using bundle but its crashing my app ! Feb 03 17:46:52 DISPLAY is only relevant for X Feb 03 17:47:09 jmgao: ah, okay Feb 03 17:47:41 sub_zero: post the stack trace Feb 03 17:47:52 stack trace? Feb 03 17:48:02 how to get it? Feb 03 17:48:06 it’s in logcat Feb 03 17:48:40 event log? Feb 03 17:51:12 im trying to build a simplest SDL2 app under android using gcc (no NDK or anything else). but i get this error, when i launch it: XDG_RUNTIME_DIR not set in the environment INFO Failed to initialize SDL No available video device Feb 03 17:51:46 you have no available video device Feb 03 17:51:51 error sounds straightforward Feb 03 17:54:43 but i can launch other sdl apps and they do find a screen. currently android is running. so something is wrong Feb 03 17:55:35 probably my small app doesn't know how to find a video device or doesn't know how to ask for a permission to use it Feb 03 17:58:46 i am trying to achieve fragment communication without using bundle but its crashing my app ! Feb 03 17:59:24 sub_zero: what is a fragment communication and a bundle? Feb 03 18:00:15 transfering data between frags Feb 03 18:00:37 frags of what? Feb 03 18:05:21 sub_zero: what’s the crash you’re getting? That will tell you what’s wrong Feb 03 18:10:26 is it my impression or rxjava adoption has really slowed down? Feb 03 18:10:54 ^ in android dev, i mean Feb 03 18:11:21 i dunno. i mean, I guess all of those that were going to use RxJava are Feb 03 18:11:31 why would it keep growing, it's saturated Feb 03 18:11:54 we need to train more Android devs so we can continue the high rates of growth Feb 03 18:12:05 s73v3r the error is like : Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' Feb 03 18:12:17 ok then Feb 03 18:12:21 that’s your problem Feb 03 18:12:40 what? Feb 03 18:13:09 you’re using a ListActivity or a ListFragment, and giving it a layout that does not have a ListView with that specific ID Feb 03 18:13:09 sub_zero_, read the error Feb 03 18:13:58 i gave it the listview with a id ,that's why i am asking here Feb 03 18:14:08 with that specific ID? Feb 03 18:14:29 actually i used @+id/something Feb 03 18:14:34 that’s your problem Feb 03 18:14:39 ohh Feb 03 18:14:41 ok Feb 03 18:14:59 let me change it Feb 03 18:15:02 what was confusing about that error message, though? It said exactly what you were doing wrong Feb 03 18:15:05 s73v3r, good point Feb 03 18:19:05 http://www.theverge.com/2017/2/3/14497570/google-chrome-add-to-home-screen-web-apps-android-improvements Feb 03 18:21:01 hi why if I build the kernel of my op3t I get the file Image.gz-dtb instead of usually zimage? Feb 03 18:21:56 Andrea993: Try XDA or #android-root. They’re more experienced with root issues than we are. We’re just app developers :) Feb 03 18:22:05 ok thanks Feb 03 18:23:08 s73v3r its giving error with that format Feb 03 18:23:23 always paste the error Feb 03 18:23:37 redline Feb 03 18:23:42 hey, do you guys know if it is possible to set the layout_height in XML to be max DP of screen minus a hard-coded value? Feb 03 18:23:47 syntax error Feb 03 18:24:07 and what does it say when you mouse over it? and what is the full line? Feb 03 18:24:08 boomber: You could do “match_parent” the set a fixed margin Feb 03 18:24:31 konk3r: I tried that, but it's broken for bottom sheets; I don't want there to be a top margin when the bottom sheet is in collapsed state Feb 03 18:24:47 I'm doing it programmatically atm, but just wondering if there's an XML alternative Feb 03 18:25:04 Understandable, that’s almost always cleaner Feb 03 18:26:40 s73v3r missing / Feb 03 18:26:43 https://gist.github.com/JelloRanger/c41ff49d121cab2a7792b6fec59ac373 is what I currently have Feb 03 18:26:46 but it's kind of ugly :/ Feb 03 18:27:03 Missing / more... (Ctrl+F1) Feb 03 18:27:12 Question: I what is the best way to create an asynchronous observable that can recieve multiple subscribers? In RxJava 2 the recommended way to create an asynch observable is with .fromCallable(), but that that calls the method you pass in for every subscription unstead of attaching new subscribers to the current results Feb 03 18:27:47 Should I create a subject that I pass the values to and pass that back instead of directly returning the original observable? Feb 03 18:28:06 s73v3r Missing / more... (Ctrl+F1) Feb 03 18:28:16 konk3r, is it a hot or cold observable? Feb 03 18:30:08 Mavrik: I always get those terms mixed up, but I think it’s cold. I’m running a network operation, and if it gets called again before the original call finishes I want to just connect it to the results of the original call instead of hitting the server again Feb 03 18:30:28 does getActionBar().getHeight() return pixels or dp? Feb 03 18:30:29 sub_zero_: paste your line Feb 03 18:30:31 When the call finishes, I want the observable to be completed and a new observable to be created Feb 03 18:30:33 android documentation doesn't say :{ Feb 03 18:30:48 a new observable to be created if the network call is requested again* Feb 03 18:30:48 android:id="@android.R.id.lv"> Feb 03 18:31:25 so you didn’t put the exact ID that the error told you, and you didn’t close your tag Feb 03 18:32:21 android:id="@android.R.id.listview"> Feb 03 18:32:38 just paste the entire view section Feb 03 18:33:11 konk3r, hmm, not that trivial that Feb 03 18:33:40 I guess you could use .share() to manage multiple subscriptions to the existing observable until it's completed Feb 03 18:34:13 Feb 03 18:34:32 use a paste service Feb 03 18:34:38 sorry Feb 03 18:34:42 Mavrik: my current idea is to create a PublishSubject in the callable method of the original observer, and call onComplete on it when the result returns. Then when I request a network operation I can just say, “If the observable isn’t completed, attach to it, otherwise create a new one and redo the background operation” Feb 03 18:35:35 s73v3r https://gist.github.com/anonymous/2aebe3b806bad0c328165bea54a0a17e Feb 03 18:36:04 the only problem I see with that is that you’re not using the right ID for your listview Feb 03 18:36:15 no its right Feb 03 18:36:25 not in the thing you just pasted Feb 03 18:36:37 i am using that id lv in my java file so gave it lv Feb 03 18:36:43 its just a name Feb 03 18:36:57 then there shouldn’t be any problems Feb 03 18:38:33 the syntax is wrong Feb 03 18:39:42 yes, you need @id/android.R.id.listview Feb 03 18:40:38 You really save yourself a lot of trouble by just googling your errors: http://lmgtfy.com/?q=Your+content+must+have+a+ListView+whose+id+attribute+is+%27android.R.id.list%27 Feb 03 18:40:41 Pages of solutions Feb 03 18:41:13 konk3r, won't publish().refCount() help? Feb 03 18:41:19 hey all: I am replacing a fragment and the onPause() of the old fragment is firing after the onResume() of the new fragment. Is this correct behavor? Where can I get a callback in the old fragment that will fire before an event in the new fragment? Feb 03 18:42:35 you might try onDetatch, but I don’t think any of these have a guaranteed order Feb 03 18:42:45 bitkiller: I’m not familiar with those, I’m looking them up now Feb 03 18:43:30 I don't think there are any guarantee of the order of lifecycle callbacks between fragments Feb 03 18:43:42 If I could manage this without subjects I would *really* like to Feb 03 18:43:43 I believe the order actually changed recently as well Feb 03 18:44:00 (something something transitions or other) Feb 03 18:45:53 bitkiller: What exactly would publish().refCount() do? I’m curious, it says that publish converts a normal observable into a connectable observable, and refcount converts a connectable observable into a normal observable Feb 03 18:48:58 s73v3r https://gist.github.com/anonymous/9de6bdb88c460f30ca14e34785607f2f its the whole stack Feb 03 18:49:30 Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' Feb 03 18:49:36 Right fucking there Feb 03 18:49:42 the thing I’ve been telling you the whole time Feb 03 18:50:04 i'm using them in 1.x to keep observable live while there is at least one subscriber Feb 03 18:50:04 :/ Feb 03 18:50:15 its still crashing Feb 03 18:50:24 because you have the wrong ID Feb 03 18:50:26 btw, i've got back to this code just today Feb 03 18:50:43 forgot some things about it Feb 03 18:51:34 No worries Feb 03 18:52:10 if its a wrong ID then it would have never run Feb 03 18:52:53 wrong id is a compile time error Feb 03 18:54:04 no, it’s not Feb 03 18:54:09 fix the fucking id Feb 03 18:54:23 konk3r, in fact share() body is return publish().refCount() Feb 03 18:54:30 s73v3r: Watch your language, please Feb 03 18:54:38 sorry Feb 03 18:55:00 Stop helping him if it frustrates you that much Feb 03 18:55:01 don't know why i haven't used it instead Feb 03 18:55:25 Hahaha okay, I think I’m just going to have to plug these in and see what happens Feb 03 18:56:13 And sub_zero_, just google the error already. There are multiple pages of solutions to your issue. It's good practice for the next time you run into problems Feb 03 18:56:14 The tutorial I read for fromCallable() made mention of connected observables as a workaround to re-calling the callable, but it never explained how they work Feb 03 18:57:12 New version of the Big Nerd Ranch Android book is out Feb 03 19:02:03 ah, I need to generate a resources.arsc to go into my resource shard Feb 03 19:03:03 if I make an xml resource like in res/xml, can I use things such as foo="@strings/bar" within them? Feb 03 19:03:27 or @string/bar rather Feb 03 19:05:13 hmm, is there documentation on the format of resources.arsc anywhere? Feb 03 19:06:21 and it looks like generating it will be a pita Feb 03 19:11:34 s73v3r thanks Feb 03 19:11:42 simonvt ok buddy Feb 03 19:16:40 I wonder if I can get away with copying resources.arsc into every shard... Feb 03 19:16:43 * pfn somehow doubts iet Feb 03 19:17:41 meh, it'd be nice if I could just generate a resources.arsc for a given res directory Feb 03 19:17:48 without having to know anything else Feb 03 19:30:04 Whoa, okay, thanks bitkiller, it looks like connectable observables may be exactly what I need Feb 03 19:53:18 I cant seem to find the download location for android SDK. Feb 03 19:53:34 I downloaed the linux IDE, but cant find the SDK download on that same site. Feb 03 19:54:15 i think you just scroll further down on that page Feb 03 19:54:20 it is a little hidden Feb 03 19:55:04 there's tools Feb 03 19:55:11 and in there there is an SDK manager Feb 03 19:55:23 android-studio-bundle-145.3537739-windows.exe? Feb 03 19:55:25 i think that’s what you want Feb 03 19:55:37 linux Feb 03 19:55:40 use the sdk download manager or the one inside android studio Feb 03 19:55:52 otherwise you have to parse some xml and find the direct download link yourself Feb 03 19:56:15 or you can just quit android development while at it Feb 03 19:57:38 for Linux, try this one: Feb 03 19:57:40 https://dl.google.com/android/repository/tools_r25.2.3-linux.zip Feb 03 20:04:41 your package manager might have android studio Feb 03 20:04:51 gentoo has it, for instance Feb 03 20:11:31 he just asked for the sdk download location/link, he mentionned linux ide and someone brought him the filename of windows installer (lol), then a repo link (not sure if up to date) and now someone tell him he might find AS in a linux distro packagemanager Feb 03 20:11:34 this is going too far lol Feb 03 20:14:31 guys, you should get iphones, they are pretty cool Feb 03 20:14:52 Hello. is it possible to inject input events without root? Feb 03 20:15:11 I know UiAutomation class can do this, but where to get it? Feb 03 20:15:17 as a normal android app from the play store? no Feb 03 20:16:25 mikedg: I would like to make an app to drive a non standard kind of hardware keyboard. Feb 03 20:16:33 in your own code you can for sure by crafting MotionEvent and injecting them Feb 03 20:17:04 adq: what about UiAutomation class? it works cross application. but not sure what it can do and where to get UiAutomation object Feb 03 20:17:15 no idea for that part Feb 03 20:18:08 according to documentation, it looks like a boilerplate of what i just told you Feb 03 20:18:18 "For example, performing a tap on the screen requires construction and injecting of a touch down and up events which have to be delivered to the system by a call to injectInputEvent(InputEvent, boolean)." Feb 03 20:18:47 give it a try for an hour or so, if it gets you somewhere then continue Feb 03 20:19:30 adq: the thing is this object is non constructible is it? where to get the object? the same documentation says, it works across applications. so in theory could work like I want Feb 03 20:20:34 oO i think you just have to instantiate the class, and use its object Feb 03 20:21:19 i never played with it anyway, i'm sure you will find examples online Feb 03 20:34:34 webczat: UiAutomation is not what you want. That’s meant for testing. If you’re doing a keyboard, you probably want to look at creating an Input Method Feb 03 20:37:58 s73v3r: it is a *hardware* keyboard driven by an app. so it should work everywhere if possible. for example a dialler does not show an input method at all Feb 03 20:38:31 and no, bluetooth keyboard protocol is a bad case for this Feb 03 20:41:45 bitkiller: It looks like share() worked Feb 03 20:41:55 Thanks! That’s so much less convoluted than I was expecting Feb 03 20:42:57 webczat: If you create it as an input method, the user should be able to select it wherever Feb 03 20:43:51 s73v3r: a dialer usually does not have input method, it shows it's own keyboard. same for pin code entry Feb 03 20:44:24 android:animateLayoutChanges="true" Feb 03 20:44:24 << at the root of a bottomsheet, this has some crazy sideeffects when switching visibility of its child(s), suddently it's a topShit view Feb 03 20:44:41 it's a what view? ( ͡° ͜ʖ ͡°) Feb 03 20:45:05 oops typo :p Feb 03 20:45:24 i mean, the bottomsheet suddenly moves to the top, under the toolbar even Feb 03 20:45:35 clicking on a child put it back to bottom :') Feb 03 20:52:59 config'ing android studio editor colors is a big pita Feb 03 20:56:10 why cant i launch simple c program from terminal? it says 'tmp-mksh : ./myfile: no such file or directory' but at the same place i can launch bash scripts. so it is not a permission, it is something that dies not allow to launch anything except bash scripts. what is it? Feb 03 20:58:00 dies=does Feb 03 21:04:39 bad dylibs, duh Feb 03 21:04:45 or bad linker Feb 03 21:09:19 you can't just run any random C program if you didn't build with the right toolchain/env Feb 03 21:10:56 what is the correct way to handle multiple deeplink urls? i have http and https links that i need to handle, but in the documentation it says only a single data element should be present. Feb 03 21:11:22 garit: weren't you explicitly avoiding using the NDK? Feb 03 21:11:30 Your binaries probably refer to the wrong linker Feb 03 21:12:31 danalbert: yes, you are right, my appn tries to use ld-linux apparently, i will try to fix it by building a static app (standalone?) Feb 03 21:12:35 hi, I am trying to find where DIRECTORY_MUSIC gets set in android, any pointers ? Feb 03 21:12:53 pfn yes, thank you Feb 03 21:13:06 garit: building native code without using the NDK is basically untenable Feb 03 21:13:26 Android/Linux != GNU/Linux Feb 03 21:14:03 i know that its hard =) but there should be a way Feb 03 21:14:13 why? Feb 03 21:15:13 and the way is to use the tools provided. Namely the NDK Feb 03 21:15:38 stop trying to write native C programs Feb 03 21:16:44 s73v3r: i can not use sdk from the android itself Feb 03 21:16:56 pfn what other options do i have? Feb 03 21:17:10 write a normal NDK or Java program Feb 03 21:17:24 stop trying to do things that the system was not designed to do Feb 03 21:17:39 garit, write a proper android application Feb 03 21:17:51 you can't access graphics from a self-contained C program Feb 03 21:18:15 rpd_, getExternalFilesDir(Environment.DIRECTORY_MUSIC); Feb 03 21:18:16 Even if you could, there isn't a way for users to access your game that way Feb 03 21:18:32 graphics/input depending on what you're doing Feb 03 21:18:33 s73v3r: i cant launch NDK toolset on android Feb 03 21:18:40 you’re not supposed to Feb 03 21:18:42 why would you be launching it on android... Feb 03 21:18:50 Write your programs on a normal PC, like was intended Feb 03 21:18:54 ... are you trying to use Android as a development platform? Feb 03 21:18:59 s73v3r: pfn: thats all i have now Feb 03 21:19:05 android is an unsuitable development platform Feb 03 21:19:10 Build times not slow enough yet? :) Feb 03 21:19:14 then save up and get a computer Feb 03 21:19:18 or pony up for AIDE Feb 03 21:19:51 danalbert: i was working on much slower computers=) Feb 03 21:24:19 adq: thanks, is there a way to get that from adb command line ? Feb 03 21:24:52 i don't think so, the path may vary among devices, api and roms Feb 03 21:25:33 isn't it in one of those folders, usually, in the sdcard (internal or external wahtever) Feb 03 21:26:35 adq: ok thanks, some how my default folders didnt get created so was wondering if it is set in some config files somewhere Feb 03 21:28:58 . Feb 03 21:46:54 Quick question. How to do you make it so that when someone taps the screen there is an animation played that is in a video file format and if you tap the screen before the animation is done it restarts the animation from the beginning. Feb 03 21:49:37 holy hell Feb 03 21:49:46 bottom sheets and coordinatorlayout feel like a buggy mess Feb 03 21:49:52 :{ Feb 03 21:52:29 Anyone have an idea? Feb 03 21:59:26 tassilo_tazz, this isn't #do-my-work-for-me Feb 03 21:59:40 your question requires a great deal of explanation on your part Feb 03 22:04:03 pfn, I'm asking you to steer me in the right direction. And it's not homework it's a side project and I recently started Android Feb 03 22:05:51 what exactly is it that you want to accomplish Feb 03 22:05:56 play a video, and repeat when you tap? Feb 03 22:12:27 pfn, yes that is about it.. sorry for the delayed response freenode kicked me out lol Feb 03 22:13:08 use a VideoView Feb 03 22:13:14 add a touch listener, start it over Feb 03 22:13:16 done Feb 03 22:13:21 ooo Feb 03 22:13:26 Thank you so much! Feb 03 22:15:24 live die repeat Feb 03 22:26:33 how to compile PIE code? -fPIE flag in gcc is not enough. Feb 03 22:27:32 http://stackoverflow.com/questions/30498776/position-independent-executables-and-android-lollipop Feb 03 22:27:38 second result in google Feb 03 22:28:43 right, also -pie, thanks i will search what to do with it Feb 03 22:32:09 yay, it worked, thanks s73v3r. now i have problems of missing libs Feb 03 22:45:43 so much effort for something you're never gonna really use... Feb 03 22:46:58 :) Feb 03 22:49:11 pfn its called a hobby Feb 03 22:49:36 it's not much of a hobby when you stop doing it Feb 03 22:49:40 some people even play golf Feb 03 22:51:34 attmepting to write software for a platform while ignoring every single tool that the creators of that platform put out is a hobby, now? Feb 03 22:52:12 it's not much of one, he's trying to make it our hobby Feb 03 22:53:27 s73v3r: i simply cant use other tools, they dont work on android itself Feb 03 22:57:01 uhh, another emu avd died after pressing back button :') earlier i noticed it was taking more ram than AS + gradle, still not able to get a decent uptime on those emu, while genymotion vm can last for days Feb 03 22:59:18 garit, maybe you hadn't noticed, but android platform is very far to be a creation platform compared to traditional computer (whatever OS), it's highly a consumption platform though many efforts are made and it's tending more and more to a creation platform Feb 03 22:59:45 garit: AIDE works fairly well Feb 03 22:59:48 you should get a cheap computer for android dev if you cannot afford much, cannot be worse than using android itself for developing Feb 03 22:59:55 yeah, i did notice that over the last 3 days or so Feb 03 23:00:46 adq: i have other restrictions than money to use android for now Feb 03 23:00:57 fwiw, you can actually cross compile clang/binutils/etc for Android fairly easily. bootstrapping it without a normal Linux machine is the hard part Feb 03 23:01:18 yeah, years ago, i saw ppl with a full debian inside their phone Feb 03 23:01:30 but i'm curious what those restrictions are, if it's not money Feb 03 23:01:47 The Nokia N900 or whatever it was dual booted Symbian and Debian Feb 03 23:03:24 adq its electrics =) dont ask how Feb 03 23:03:37 ok, i get an idea then Feb 03 23:04:16 you could take a laptop and go in a coffee shop all day (don't forget to order from time to time), if you're not far from a city :) Feb 03 23:04:20 otherwise, deal with it! Feb 03 23:32:25 private static ArrayList activities = new ArrayList(); Feb 03 23:32:28 * pfn sighs... Feb 03 23:33:42 adq, Kroger has my back for coffee/wifi/code etc ☺️ Feb 03 23:34:05 hey goys Feb 03 23:36:36 any JodaTime..ers? Feb 03 23:47:14 should be afternoon where you guys are at... Feb 03 23:48:55 say I have a map of days from Monday to Sunday, numbered 1 through 7 Feb 03 23:49:01 String, Integer Feb 03 23:49:33 I want a map that corresponds to how Calendar handles days (Sunday is 1, not 7) as opposed to how my "life" works where Monday is 1 Feb 03 23:49:49 setFirstDayOfWeek on Calendar has no effect Feb 03 23:50:19 else I would've resorted to that, but it doesn't. Do I have another map with the Calendar's numbers lined up correctly with the days, and I look up from one map to the other? Feb 04 00:08:04 Hi! I am trying to create an application for personal use that logs into my university website and scrapes information I need (I hate using the university website since it is very inefficient) and presents it in a quickly accessible format. I am planning on using a hidden webview to automate login and web scraping but the WebView.loadUrl method is asynchronous making it difficult to automate things in a nice way. Is there a synchronous Feb 04 00:11:15 no Feb 04 00:11:25 you can’t do network requests on the main thread Feb 04 00:11:30 so it has to be asyncrhonous Feb 04 00:15:27 s73v3r: But that's not the problem, I can spawn my own thread it need be but loadUrl will still be asynchronous making the automation difficult to program. I'll need to create handlers for each request I make to make sure the js gets executed after the page loads. Feb 04 00:16:52 http://imgur.com/a/sNSIo nice surfaceview glitch when activity is finishing :') Feb 04 00:17:21 i guess i will have to make it invisible first and delay the finish slightly (drawing thread was already stopped tho) Feb 04 00:21:47 onto: yeah, that’s the idea Feb 04 00:25:13 So, is there a way to block the webview thread until the page is loaded? Else I'll have to have a bunch of nested callbacks. Feb 04 00:27:29 no, you’ll need the nested callbacks Feb 04 00:27:33 such is the way of Android Feb 04 00:27:50 Would this work: have a flag "loaded" that is set to true onPageFinished, and after loadUrl I call a while(loaded){} Feb 04 00:28:01 that does not sound like a good idea Feb 04 00:28:03 Of course, I would launch the webview in a separate thread. Feb 04 00:28:06 you can use rxjava to avoid nested callbacks Feb 04 00:28:21 use Observables, and chain them together to get the desired behavior Feb 04 00:28:41 pfn: I haven't worked with rx*, could you point me to a few resources of this particular nature? Feb 04 00:28:52 use google Feb 04 00:32:27 g00s: Did you see the MS Git thing? That guy said MS considered Mercurial but picked Git because it's more widely used. :E Feb 04 00:41:14 boo on them Feb 04 00:41:18 hi - i am getting: open failed: ENOENT (No such file or directory) when trying to transfer a file over net Feb 04 00:41:25 where should i look for issues? Feb 04 00:41:54 "exception": "/storage/sdcard0/DCIM/Camera/1486168779625.jpg: open failed: ENOENT (No such file or directory)" Feb 04 00:42:24 maybe grab ADB and see if that file actually exists? Feb 04 00:46:58 TacticalJoke i saw it, didn't read too much ... Feb 04 01:10:17 ahah turn out the surfaceview glitch is because i don't have background at all Feb 04 01:10:43 guess overdraw does not matter there much, added a solid black behind fixed it, without this horrible useless delay hack Feb 04 01:37:40 tassilo_tazz is the guy who says he pays people to get Android help in private but the people that is supposed to have been paid say they aren't. It's also the guy that, when you help him for free nonetheless, doesn't bother saying "thanks" Feb 04 01:45:26 um, noted Feb 04 01:45:41 heh Feb 04 01:46:55 * capella shakes fist @tassilo_tazz o/ Feb 04 02:40:54 capella might work out after all! http://www.theonion.com/article/fbi-uncovers-al-qaeda-plot-to-just-sit-back-and-en-35788 Feb 04 02:45:14 (hee) I might spin the Onion article to my godmother... she's a huge progressive and might fall for the joke ;-) Feb 04 02:53:22 capella progressive (n) almost anyone that doesn't watch faux news :) Feb 04 02:54:29 just generates it? wait.. I'm lost ;-p Feb 04 02:54:29 capella this was great from fox news today "Three months ago, with the entire world watching, Donald Trump pulled off a political miracle. With America teetering on the precipice of mediocrity, wrestling with potential obscurity and up against unimaginable opposition, the master builder from New York pulled one out for mankind." Feb 04 02:54:55 Excelsior! Feb 04 02:55:08 the master builder rescuing us from mediocrity ! Feb 04 02:55:11 man bear pig dog ftw! Feb 04 02:56:36 Can he restructure Greek debt? Feb 04 02:57:05 or root my Edge? Feb 04 02:57:42 glad New York likes to pull out Feb 04 02:57:48 dont need anymore meatballs running around Feb 04 02:58:43 Yah the guys from Upstate are the worst... **** ENDING LOGGING AT Sat Feb 04 03:00:02 2017