**** BEGIN LOGGING AT Sun Feb 05 03:00:01 2017 Feb 05 03:02:01 g00s, regulations not the issue there, fighting straw men is : "possible, but tough-to-detect migration of oil and other toxic minerals into aquifers or water supplies" Feb 05 03:02:09 possible Feb 05 03:02:27 next article? Feb 05 03:02:51 capella you libertarians are so funny Feb 05 03:02:55 wanna talk about earthquakes associated with fracking? Feb 05 03:03:12 or Standing Rock? Feb 05 03:03:52 Or Saudi leadership as recently demonstrated in Opec direction? Feb 05 03:04:12 oh yeah, poor OK going from 2 earthquakes a year to 1000 ... hoping that pruitts office would have fallen into one Feb 05 03:04:22 Or the attacks on Pacific Northwest electricity infrastructure? Feb 05 03:05:40 capella did pigs overrun the power station? Feb 05 03:05:53 No, guys with rifles Feb 05 03:06:22 it's ongoing and they're moving around substations Feb 05 03:06:31 link ? Feb 05 03:06:41 i haven't heard anything at all Feb 05 03:06:58 Also, waste water injections not fracking proper https://earthquakes.ok.gov/faqs/ Feb 05 03:07:42 https://www.google.com/url?q=http://www.wsj.com/articles/SB10001424052702304851104579359141941621778&sa=U&ved=0ahUKEwjEr8yE_ffRAhUEyGMKHfWsDiQQFggLMAA&sig2=_AleDTzA8h1FkkQEBEZrEQ&usg=AFQjCNHUYitEYFr9fgKlDhHy9bheTY3wxQ Feb 05 03:08:09 attacks - - - ^ maybe need a subscription Feb 05 03:08:20 heh, more later in pm Feb 05 03:10:41 well then Feb 05 03:10:46 oh that was 2014 Feb 05 03:11:23 capella are you guys still in drought? they could just take the wastewater and ship it up to you Feb 05 03:13:25 yah, kinda sandy :) Not sure if TX in a drought I just got here โ˜บ๏ธ Upstate NY had a thing as I moved Feb 05 03:15:00 capella :D https://phys.org/news/2017-02-epa-oklahoma-curb-earthquakes.html Feb 05 03:15:46 scott pruitt doesn't care; he got money from the energy industry Feb 05 03:18:44 is there some way I can get android-studio to stop running adb Feb 05 03:18:52 many energy / security conscious politicians do receive support, but not from Soros Feb 05 03:18:58 I ended up doing chmod -x adb and this works but the ide sure doesn't like it Feb 05 03:19:53 or Tom Steyer Feb 05 03:20:38 wsit6, stop running? Feb 05 03:20:58 er, "wait" Feb 05 03:21:05 yes Feb 05 03:21:22 how does adb get in your way? Feb 05 03:21:34 I have a system-wide adb of a newer version than the one in my sdk installation, and when I launch that one it kills the sdk version and then they fight to see who can bind the port first Feb 05 03:22:46 capella watch out for soros, he's quite the boogeyman ! Feb 05 03:23:06 oh, uninstall one isn't an option :/ Feb 05 03:23:44 chek i've never seen that O.o Feb 05 03:23:47 alternatively if there's some way I can launch adb as a system service such that it won't exit on its own Feb 05 03:23:49 not boogeyman, world dominatrix Feb 05 03:24:02 lulz Feb 05 03:25:39 every time there is a protest the right is like 'soros!' , man how come he won't pay me to do that Feb 05 03:26:41 and the left is like 'kochs!' Feb 05 03:27:21 * capella is gonna kick that Harry Reid right in the nuts o/ Feb 05 03:27:41 oh, heh, enthusiasm got me Feb 05 03:28:04 capella i'm not letting you off the hook ! so Harold Hamm runs Pruitts' relection campaign, mr "Every time we canโ€™t drill a well in America, terrorism is being funded" ... hamm doesn't believe injection causes earthquakes, pruitt does nothing, and then all these people in OK have houses damaged .. please help me understand the libertarian response to all this Feb 05 03:30:12 Oklahoma earthquakes are real and manageable part of waste management, alternatives exist, fracking has drastically changed the global energy equations ss the US is now exporting, and has been safely employed in Texas for 80 years Feb 05 03:30:32 also running an emulator always gets me this "sh: lspci: command not found" Feb 05 03:30:43 not sure what's that's about really, why would it need lspci Feb 05 03:31:06 I don't focus on the politics, just the tech and asset valuations but security and politics are valid also Feb 05 03:37:03 I'm getting this error spammed on my log and I don't know why: Feb 05 03:37:04 Ignoring pointerId=0 because ACTION_DOWN was not received for this pointer before ACTION_MOVE. It likely happened because ViewDragHelper did not receive all the events in the event stream. Feb 05 03:38:24 so you press to drag a thing in some app but nothing happens Feb 05 03:38:34 :/ Feb 05 03:38:45 and.... ? Feb 05 03:38:47 In my app, I'm looking only for ACTION_DOWN and ACTION_UP events Feb 05 03:38:51 it works fine Feb 05 03:39:08 the user presses the screen and holds it; after they let go, a timer starts Feb 05 03:39:12 when they tap the screen again, it stops Feb 05 03:39:34 When I start the app and do the whole process once, it's fine Feb 05 03:39:54 The next time it outputs that message a bunch for the first ACTION_DOWN and ACTION_UP events (the ones to start the timer) Feb 05 03:39:59 It works fine though other than that Feb 05 03:41:37 so you're missing intervening motion events... a cancel perhaps Feb 05 03:42:06 ? Feb 05 03:43:24 What does that even mean? Feb 05 03:43:29 And, more importantly, how can I fix it? Feb 05 03:44:34 for (int i =0; i< i++;) Feb 05 03:44:34 Button b = new Button(); Feb 05 03:44:34 b.setText(property.getKikName); Feb 05 03:44:34 LinearLayout.addView (b); Feb 05 03:44:41 oops Feb 05 03:44:57 how would i get that to work, for new Button(comtext) Feb 05 03:45:11 This is inside an adapter? Feb 05 03:45:20 You should have some sort of context to use -- try `getContext()` Feb 05 03:45:27 i < i++ Feb 05 03:45:29 what Feb 05 03:45:51 hm yea Feb 05 03:45:54 right Feb 05 03:46:09 what Feb 05 03:46:14 `i` will never be less than `i++`, actually Feb 05 03:46:18 wait Feb 05 03:46:48 i was originally using list.length but i didn't want that Feb 05 03:47:18 and getContext was no luck Feb 05 03:47:33 capella, any clue what I'm doing wrong? Feb 05 03:47:55 unexpected variable declaration Feb 05 03:48:58 is this in an activity Feb 05 03:49:14 yes Feb 05 03:49:30 looks like you should be able to do new Button(this) if that's the case Feb 05 03:49:49 not without code hactarce, and for that I'd need 'bout tree-fiddy Feb 05 03:50:16 :/ Feb 05 03:50:23 well thanks anyway Feb 05 03:50:30 (chek) Feb 05 03:50:32 oops Feb 05 03:50:44 what happens if you do new Button(this) Feb 05 03:50:58 still unexpected variable declaration Feb 05 03:51:03 i don't think its that Feb 05 03:51:18 what can i do about for() Feb 05 03:51:27 where is the unexpected variable declaration Feb 05 03:51:43 I'm trying to get it to add a button to the layout with everyone i put Feb 05 03:52:10 everyone? Feb 05 03:52:15 I don't know what you mean, every one of what Feb 05 03:52:24 what are you actually trying to loop over Feb 05 03:52:34 for (int i =0; i that should work Feb 05 03:52:50 unless i has already been declared somewhere else in the method Feb 05 03:53:00 Yah syntax usually does ;) Feb 05 03:53:48 I actually think it's just a typo in channel Feb 05 03:54:37 iix, did you mess up a basic code pattern? Feb 05 03:54:52 wym Feb 05 03:55:19 ๐Ÿ‘€ Feb 05 03:55:22 that did fix the button prob Feb 05 03:55:51 but now addView Feb 05 03:55:54 what is the other problem Feb 05 03:55:58 oh Feb 05 03:56:04 there is no set reference here Feb 05 03:56:15 LinearLayout.addView Feb 05 03:56:18 that's not going to work Feb 05 03:56:21 ohp Feb 05 03:56:37 you need a reference to an instance of a linear layout, not the LinearLayout class itself Feb 05 03:57:16 ok Feb 05 03:57:20 (sorry off-topic) capella, where are you getting all those emojis? mobile keyboard? Feb 05 03:57:43 g00s... Oh Harold Hamm ofc :) When you said ham I flashed on how Jon Stewart always used to represent Karl Rove as a boiled whole canned ham wearing glasses Feb 05 03:58:17 gactarce yah! SwiftKey keyboard Feb 05 03:58:22 capella how can this be happening? http://www.usatoday.com/story/money/business/2017/02/01/nations-bacon-reserves-hit-50-year-low-prices-rise/97327794/ Feb 05 03:58:32 er, hactarce Feb 05 03:58:41 bacon reserves Feb 05 03:58:45 doesn't bacon perish? Feb 05 03:58:50 wouldn't that be more like a bacon buffer? Feb 05 03:58:53 salted Feb 05 03:59:04 all these pigs are running around Feb 05 03:59:24 g00s, Chinese consumption Feb 05 03:59:28 kewl, gapella :) Feb 05 03:59:41 Actually you should be xapella Feb 05 03:59:44 They bought into us producer couple year back Feb 05 03:59:46 That sounds cooler Feb 05 04:00:08 to secure their pipeline so to speak Feb 05 04:00:38 on Feb 05 04:00:42 er, Feb 05 04:01:35 hactarce, in my super hero identity I'm known as "The Polariton"... I fight cyber crime Feb 05 04:04:04 Well whatever I did I'm not getting that error any more :) Feb 05 04:04:19 I take that back Feb 05 04:04:30 When I move my finger I get the error four times for each move Feb 05 04:06:05 had to reset wifi Feb 05 04:08:29 That might be a Steven Colbert joke w/Karl Rove as ham w/glasses Feb 05 04:10:03 i wonder what the adoption has been like for rxjava2. i'm still using 1 Feb 05 04:10:19 HactarCE: Wait, what's happening? Feb 05 04:10:25 hactarce you can paste a link to your code Feb 05 04:10:30 Okay, one sec Feb 05 04:11:14 http://pastebin.com/gNnMPbMZ Feb 05 04:11:21 I'm creating the fragment, and that's all well and good Feb 05 04:11:53 My mom: "How can it (software on her laptop) download when you close it (the laptop lid)?" Feb 05 04:11:57 But when I drag my finger, I get this error (4x per drag event): E/ViewDragHelper: Ignoring pointerId=0 because ACTION_DOWN was not received for this pointer before ACTION_MOVE. It likely happened because ViewDragHelper did not receive all the events in the event stream. Feb 05 04:12:02 yes Feb 05 04:12:03 those are fun Feb 05 04:12:19 > how can I run a server on my pc so it says up when i turn my pc off Feb 05 04:15:13 HactarCE: Have you tried simply logging ACTION_DOWN, ACTION_CANCEL, ACTION_MOVE, ACTION_UP, etc.? That code isn't very simple (async stuff firing all over the place). Feb 05 04:15:32 It's also curious that you're not handling ACTION_CANCEL. Feb 05 04:16:25 Note this from the documentation (note both parts): "Views should always be prepared to handle ACTION_CANCEL and should tolerate anomalous situations such as receiving a new ACTION_DOWN without first having received an ACTION_UP for the prior gesture." Feb 05 04:16:43 What is ACTION_CANCEL? Feb 05 04:16:49 if the pointer moves off the view? Feb 05 04:17:23 Oh dang, I really should be handling that Feb 05 04:17:24 one sec Feb 05 04:18:23 Also all of the AsyncTask scariness is in onCreate so I can show a "please wait" dialog while loading a large file; after that it's all single-thread Feb 05 04:19:01 It's been a while since I've thought about `ACTION_CANCEL`, but as far as I remember it's usually when a parent ViewGroup takes over that gesture (could be moving away from something, long-pressing, scrolling, or something else). Feb 05 04:19:26 AFAIR, though, you really should be handling it. It's like a soft ACTION_UP. Feb 05 04:20:09 Phase-change memory... cool! "The crystalline and amorphous states of chalcogenide glass have dramatically different electrical resistivity. The amorphous, high resistance state represents a binary 0, while the crystalline, low resistance state represents a 1." Feb 05 04:20:19 HactarCE: Single-threaded doesn't mean synchronous, though. You can operate after a delay (and thereby have asynchronicity). Feb 05 04:22:36 Furthermore, it seems that Timer does use a new thread. Feb 05 04:22:56 Not saying that's a bad thing; just being pedantic. Feb 05 04:23:38 that's true, you're right Feb 05 04:24:46 Well I'm handling onCancel now, so that's cool Feb 05 04:24:52 I'm going to try logging the events like you suggested Feb 05 04:25:02 You mean ACTION_CANCEL? Yeah, try logging all of the above. Feb 05 04:25:27 A lot of Android development is just figuring out how the heck the framework is behaving (or misbehaving). Feb 05 04:26:11 Interesting... Feb 05 04:26:29 If there is a quick MOTION_UP event right after MOTION_DOWN, my app logs the event but does not react properly Feb 05 04:26:36 Lemme see what I can do about that... Feb 05 04:27:33 Can I force Android to let me finish handling one event before sending another? Feb 05 04:27:42 Or should that be the case anyway? Feb 05 04:28:56 What do you mean? You won't get called back about the next event until you've finished processing the current one. It sounds like your async code is an issue. Feb 05 04:29:12 If you were to say `Thread.sleep(5000);`, you wouldn't get another event for five seconds. Feb 05 04:29:38 At least, I think (I haven't thought about this stuff in forever). Feb 05 04:29:45 one sec Feb 05 04:29:46 Maybe test that. Feb 05 04:30:02 I'm going to have it log when it's finished handling the down event Feb 05 04:30:20 Nope, it's behaving as it should Feb 05 04:30:56 Oh, found that problem Feb 05 04:31:35 Dragging still throws a quadrillion errors Feb 05 04:32:04 gtg, thanks for the help Feb 05 04:32:09 Do those errors happen anyway? I've seen similar stuff in code that does basically nothing. Feb 05 04:33:11 what is TacticalJoke Feb 05 04:33:19 is that TacticalJoe Feb 05 04:34:26 hello, I have a question about making http requests Feb 05 04:34:59 it seems from my searching that the recommended way to make an asynchronous http request such that it doesn't crash the app when the orientation is changed or w/e Feb 05 04:35:11 is to use an IntentService and ResultReceiver Feb 05 04:35:24 you could use Aysnc as well Feb 05 04:35:42 well from what I saw async would crash when the orientation is changed Feb 05 04:35:46 is this not the case? Feb 05 04:35:52 i have not heard this Feb 05 04:35:53 asynctask? how would you get the instance from one activity instance to the next Feb 05 04:36:09 from what I've seen you can't stick references into bundles, only serializable stuff Feb 05 04:36:53 right Feb 05 04:37:23 that is the problem as I, in my limited experience, understand it Feb 05 05:02:27 zf: You could use AsyncTask, and it wouldn't necessarily crash. Feb 05 05:02:53 I wouldn't generally use a Service for a GET request, personally. Maybe for an important POST/PUT/whatever. Feb 05 05:03:40 alright, I'll try then Feb 05 05:04:40 By "wouldn't necessarily", I mean "if done right". Feb 05 05:06:45 zf: It's hard to advise here as this is a horribly unnecessarily complicated part of Android development. Feb 05 05:07:08 I can tell Feb 05 05:07:47 Probably the simplest way (which doesn't involve some library) is to use an AsyncTask/Thread/whatever and completely separate it from the Activity. Feb 05 05:07:50 I'll admit I'm confused, I thought that making HTTP requests would be a very common operation Feb 05 05:08:10 The Activity subscribes to it in onCreate and unsubscribes in onDestroy. Feb 05 05:08:11 TacticalJoke i had interview Q "how do you write a byte to disk" (with eexpected discussion of gatchas, threads, lifecyces, etc) Feb 05 05:08:13 but then again, this is the language that takes seven lines of code to read a file Feb 05 05:08:22 lol i can't imagine that being an interview Q in iOS Feb 05 05:08:24 g00s: Oh gawd. Feb 05 05:09:19 http://pastebin.com/q4dG5G08 Feb 05 05:09:22 if you guys could Feb 05 05:09:37 how can i make the variable"i" temp Feb 05 05:10:13 because i cant modify i++ because int i =0 needs to be final Feb 05 05:10:18 Note that the Activity has to conditionally unsubscribe in onDestroy (`if (thing.listener == this) { thing.unsubscribe(this); }`; that kinda thing). This is because you can get onDestroy in a weird order. Feb 05 05:11:25 iix: You could say `final int foo = i;`, though personally I'm not a fan of this entire approach. Feb 05 05:11:53 hmm Feb 05 05:11:54 ok Feb 05 05:12:52 Note that, under the hood, that code will be compiled down so that `foo` is a field in a separate class. Feb 05 05:13:07 Or rather a new field is assigned the value `foo`. Feb 05 05:13:42 You could replicate this by using a field yourself instead of a final local. Feb 05 05:19:28 zf: What HTTP requests are you making? Something like Retrofit might be able to take care of all this boilerplate: https://square.github.io/retrofit/ Feb 05 05:20:50 I'm trying to get it to add buttons that go to specific links programmatically Feb 05 05:21:10 Or even just an AsyncTask/Thread/whatever with an event bus (e.g., greenrobot). Feb 05 05:21:13 so I can put it in a pastebin and update it Feb 05 05:21:14 There's also RxJava. Feb 05 05:22:09 just being able to grab a remote file and read it as text is all I need Feb 05 05:22:17 what way did you prefer Feb 05 05:23:02 iix: With what? Feb 05 05:23:27 adding buttons with onclick programmatically Feb 05 05:24:49 I'd probably use ListView or something. Feb 05 05:25:00 What you're doing now is just a wannabe ListView/RecyclerView. Feb 05 05:25:07 I think. Feb 05 05:25:47 i was doing that originally Feb 05 05:26:08 Why did you switch? Feb 05 05:26:11 but i couldn't get the onClick to work with a custom adapter Feb 05 05:26:22 because my partner prefers it be buttons Feb 05 05:26:41 but he said whatever i am able to figure out Feb 05 05:26:43 You can use Buttons in a ListView. Feb 05 05:27:10 i know, but he figured buttons would work out easier Feb 05 05:27:19 iix: What is the ultimatea problem you're solving? Feb 05 05:27:21 ultimate* Feb 05 05:27:30 if you know how to set an onclick to an adapter then im all set, the listview is all done Feb 05 05:28:10 Try using a `final` local variable and assign it in the View.OnClickListener you instantiate inside Adapter.getView. Feb 05 05:28:28 that would be adding a button/listview with an onclick programatically Feb 05 05:28:46 I thought you wanted conceptually unlimited buttons in listItem Feb 05 05:28:55 nonono Feb 05 05:28:56 You have to do it programmatically with ListView. Feb 05 05:29:32 i couldn't figure out how to add on click listeners to separate .add listviews Feb 05 05:29:36 Actually, you probably can use the XML thing, but it'd be extremely limited and hacky. Feb 05 05:30:44 what? Feb 05 05:30:52 The XML `android:onClick` thing is a complete hack in itself. Feb 05 05:31:09 I wouldn't recommend using it here (or probably anywhere). Feb 05 05:31:10 it has to be java only, thats the problem Feb 05 05:31:36 it's going into a pastebin so i can edit and add buttons to it without updating the apk Feb 05 05:34:37 What's going into a pastebin? Feb 05 05:34:59 The code for adding the buttons (or listview) Feb 05 05:35:20 because the buttons or listview need an onclick to go to a download link Feb 05 05:37:01 and the final variable in onclick Listener was a no go Feb 05 05:37:38 java.lang.RuntimeException: Unable to start activity ComponentInfo{kstore.button/kstore.button.MainActivity}: java.lang.NullPointerException: Attempt to read from null array Feb 05 05:38:16 iix: You just gotta learn Java. Feb 05 05:38:33 Trying to take on Android without knowing Java sounds very painful. Feb 05 05:38:57 really is :( Feb 05 05:39:14 ill go back to listview ig Feb 05 05:39:56 it's painful even if you do know java Feb 05 05:41:06 http://2ykov18qyj81ii56523ib0ue.wpengine.netdna-cdn.com/wp-content/uploads/2015/01/crystal-rodriguez_18.jpg Feb 05 05:42:35 https://a2-images.myspacecdn.com/images02/57/82eebaf2643649a79b6f8b12ffda25ab/300x300.jpg Feb 05 05:44:51 okay Feb 05 05:45:03 m kay Feb 05 05:45:30 http://imgur.com/a/PLxaZ Feb 05 05:48:03 we see what google is about Feb 05 05:50:19 new to the net? Feb 05 05:50:25 ;p Feb 05 05:50:50 I am 12 and what is this. Feb 05 05:51:12 :) Feb 05 05:51:30 butters told me they're squishy down there! ๐Ÿ™ Feb 05 05:51:48 *QUOTES SOUTHPARK* Feb 05 05:52:09 where? Feb 05 05:52:10 < knows southpark *shit* Feb 05 05:52:26 Mr. Hanky? Feb 05 05:52:49 u triggered my google neural network Feb 05 05:53:13 next week in the news, googles lie detector Feb 05 05:53:23 do you watch porn? "no!" "liar." Feb 05 05:53:34 we saw ur android history Feb 05 05:54:10 doesnt matter if u use firefox or chrome twat, Feb 05 05:54:25 " * " Feb 05 05:55:39 http://www.breitbart.com/big-hollywood/2017/02/03/south-park-planning-less-trump-criticism-following-election/ Feb 05 06:04:23 lol breitbart, they should have gone out of business but the mercers had to rescue them Feb 05 06:05:16 ended up using new Button and setId Feb 05 06:07:43 TacticalJoke this looks interesting, coming march http://www.informit.com/store/adaptive-code-agile-coding-with-design-patterns-and-9781509302628 Feb 05 06:08:20 Looks good. Feb 05 06:29:11 how could i parse a pastebin link to be used as code instead of a string? Feb 05 06:42:41 i'm using an image that's 700k in an image view, but when i run the app i can see it run memory allocation on my emulator up to around 40mb and the app crashes and the OOM error is thrown, if i replace it with the stock android launcher icon it drops down to 8mb allocated. why the ballooning allocating for a 700k image? Feb 05 06:44:41 i dont read breitbart much but surely its a good thing it exists Feb 05 06:45:03 i'd hate to only be able to read the equally nutty hoffington post Feb 05 06:45:17 Didn't that fold? Feb 05 07:07:38 Hi, Can someone help me please. Yesterday I upgraded my Honor 8 to Nougat OTA. After that I thought I root my phone. At the time when I tried to install SuperSU with TWRP I actually couldnt because I couln't mount /data partition. So at the moment the only thing my phone can do is boot in TWRP or boot in recovery mode where are three options "shut down" "reboot" and "download the system and recovery" on wifi but it always fail in connecting the Feb 05 07:07:38 server. Please help me fix my phone! Feb 05 07:08:47 #androit-root ? Feb 05 07:09:24 thanks Feb 05 07:26:28 Can someone show me a link for a Honor 8 Nougat firmware? Feb 05 08:03:57 can i use url connections and input streams to parse raw pastebin data as code Feb 05 08:14:04 iix: wait what Feb 05 08:14:25 You want to parse raw pastebin pastes.. as actual code? Feb 05 08:14:46 yes Feb 05 08:14:56 so I can update the code in pastebin Feb 05 08:15:02 without having to update apk Feb 05 08:57:45 https://gist.github.com/TheOpenDevProject/26b5e5a8a47729f8e92fa9e2931c6be4 << What am i missing, no debug errors, also no location output Feb 05 09:02:56 u get this line in console Log.d("GPS Connected","Location Services API Connected"); ? Feb 05 09:03:58 Yep Feb 05 09:04:00 Connection happens ok Feb 05 09:04:33 try to check if the currentlocation is null Feb 05 09:04:38 if so, make another request Feb 05 09:04:42 Ok Feb 05 09:05:38 Which class is providing the currentLocation? Feb 05 09:05:48 Im fairly new to Andro dev Feb 05 09:06:01 ill show u somecode Feb 05 09:06:10 Cheers Feb 05 09:07:55 TheHackOps: http://pastebin.com/YZYcgs6C Feb 05 09:08:27 the else part mainly Feb 05 09:09:24 Ah ok Feb 05 09:09:28 My access pattern is a bit off Feb 05 09:10:51 do that from the onConnected Feb 05 09:11:44 query that getLastLocation isnt returning null, if it does - setup another location request with a listener Feb 05 09:12:00 also are u testing on an emulator? Feb 05 09:21:21 nah Feb 05 09:21:24 Galaxy S5 Feb 05 09:26:44 raoul11, Cool Feb 05 09:26:57 ? Feb 05 09:27:43 Works Feb 05 09:27:55 Just need to work it into my own needs now Feb 05 09:28:13 (: Feb 05 09:28:59 Soo Feb 05 09:29:03 Some questions about the API Feb 05 09:29:28 setNumUpdates is a fixed number of polling times? Feb 05 09:29:31 times to poll* Feb 05 09:32:36 huurm Feb 05 09:32:51 ok I think i need to place this job on a worker thread anyway Feb 05 09:32:55 if you only need to request the location just once Feb 05 09:32:58 Since i need to be constantly polling Feb 05 09:33:00 Nah Feb 05 09:33:00 specify it Feb 05 09:33:07 This is for action sports Feb 05 09:33:10 fast moving Feb 05 09:33:13 https://android.googlesource.com/platform/frameworks/base/+/master/location/java/android/location/LocationRequest.java Feb 05 09:33:15 over large distances Feb 05 09:33:56 O.op Feb 05 09:34:04 Why aren't you using FusedLocationProvider? Feb 05 09:34:31 Uh Feb 05 09:34:35 Mavrik, Put it this way Feb 05 09:34:48 I'm brand to new to android dev with maaany years programming Feb 05 09:34:55 Im doing the classic read through the docs Feb 05 09:34:57 learn the apis Feb 05 09:34:59 deal Feb 05 09:35:34 Whats the typical request pattern for the GPS Feb 05 09:35:51 GPS doesn't really work that way Feb 05 09:36:00 Hmm Feb 05 09:36:05 You register for location updates and then you wait for GPS to give you a location. Feb 05 09:36:11 Since you're dependant on current conditions. Feb 05 09:36:22 The end goal is, I need to get the GPS every 50 meters Feb 05 09:36:23 u dont have to state the numupdates if you want continous ones Feb 05 09:36:26 Of course, GPS isn't the only source of the location on the phone - you also have other providers. Feb 05 09:36:42 Mavrik, Acknowledged Feb 05 09:36:54 but, this will be used in mountain conditions Feb 05 09:36:56 at high speeds Feb 05 09:37:04 TheHackOps, I suggest you use the Fused API, which is preferred to the raw Android things: https://developers.google.com/android/reference/com/google/android/gms/location/FusedLocationProviderApi Feb 05 09:37:17 LocationRequest setSmallestDisplacement ? Feb 05 09:37:20 It merges location sources on the phone and gives you the most accurate one. Feb 05 09:37:37 Ok Feb 05 09:37:39 Remember, GPS itself may not even work inside or between tall buildings / trees Feb 05 09:37:51 Its likely I will never be able to use phone towers Feb 05 09:38:01 You create a LocationRequest with your options Feb 05 09:38:18 And then register for updates and the data will come streaming when available. Feb 05 09:38:21 Mavrik, this is experimental ofc, I have to go and actually test it all :D Feb 05 09:38:24 (and IF available) Feb 05 09:38:37 If i used the old method Feb 05 09:38:42 is there any advantage? Feb 05 09:39:06 FusedLocationApi is part of Google Play Services so it's not available on phones without Play Store. Feb 05 09:39:20 apart from that> Feb 05 09:39:25 No. Feb 05 09:39:30 Righto Feb 05 09:39:32 Sounds good Feb 05 09:39:38 FusedLocation uses those APIs and puts a same API and algorithms on top of it. Feb 05 09:45:29 Righto, so step one is you build a GoogleApiClient to use the LocationServices API? Feb 05 09:46:44 I need to call .connect on the gac? Feb 05 10:05:43 Do I have to implement all those method for the FusedLocationProviderAPI? Feb 05 10:05:46 To get a GPS fix i mean Feb 05 10:11:31 hi guys, I have a simple CoordinatorLayout with an AppBarLayout and a recyclerview showing CardViews vertically... but as soon as I set the layout_behavior to scrolling on the recyclerview, the cards are not shown at full width anymore... Any ideas? Feb 05 10:12:26 http://pastebin.com/mWkv4pjD this is my layout Feb 05 10:17:53 it works only if I wrap the recyclerview into a NestedScrollView, but that shouldn't actually be necessary Feb 05 10:18:07 Melatonina: hi there Feb 05 10:22:30 Mavrik, Do I need to re-poll the FusedLocationAPI every n(sec) Feb 05 10:22:43 as I explained, you don't poll GPS. Feb 05 10:22:56 You register for updates and handle them when they come in via the listener. Feb 05 10:23:09 what is the prefered way to stop my observable as soon as no observer are subscribing? currently ive getStuff> getStuff() { return Observable.just(1).map(v-> getstuff()).repeatWhen(c->c.delay(2,TimeUnit.Seconds)); but this wont stop onec its started. IT should stop as soon as no subscriber are subscribing Feb 05 10:25:19 Mavrik, Welp I registered my callbacks Feb 05 10:25:38 and I only get an update when the onConnect method is invoked Feb 05 10:25:43 onConnected* Feb 05 10:26:23 Did you actually move after that? Feb 05 10:26:28 Yep Feb 05 10:26:31 But ill try again Feb 05 10:26:33 brb :D Feb 05 10:26:36 Like... 100m+? :P Feb 05 10:29:27 Can confirm is not updating Feb 05 10:29:29 But Feb 05 10:29:35 Automagically i meqn Feb 05 10:29:47 If i go back to the previous activity Feb 05 10:29:51 then go back to the one with the gps Feb 05 10:29:55 It changes Feb 05 10:30:03 brb forgot my phone walking around Feb 05 10:30:15 If you're walking around inside the house it won't work :P Feb 05 10:30:28 You only get updates when GPS location actually changes for more than what you set in LocationRequest. Feb 05 10:30:38 And you're not going to get any kind of GPS accuracy inside a house. Feb 05 10:31:15 BUUT it does change Feb 05 10:31:25 when i essentially re-create the screen Feb 05 10:31:32 Re-construct i should say Feb 05 10:31:39 No, you reregister. Feb 05 10:31:58 Which gives you the last known position immediately (so you don't have to call it manually)./ Feb 05 10:32:10 And then you get stream of updates IF location actually changes. Feb 05 10:32:14 OHH Feb 05 10:32:24 With the granularity of what you set in LocationRequest :) Feb 05 10:32:29 Wait i bet the displacement val has a lot to do with this Feb 05 10:32:29 I suggest testing that in emulator Feb 05 10:32:33 Because there you can fake the location Feb 05 10:33:10 Displacement, interval, etc. Feb 05 10:33:26 But still, if you're inside the house you won't have good enough GPS reception for it to really give you updates. Feb 05 10:33:32 Yeh good idea] Feb 05 10:33:52 hhhhhhhhhhhh libGl the bain of my lifeuuu Feb 05 10:35:07 Mavrik, You ever been to japan, I got Rock melon flavored poki Feb 05 10:35:10 So weird Feb 05 10:35:12 so good Feb 05 10:37:55 Mavrik, Nope Feb 05 10:38:13 In the emulator if i move the GPS saay 100+ lat Feb 05 10:38:17 still does not update Feb 05 11:00:16 Mavrik, ah fixed it Feb 05 11:03:10 https://github.com/axaluss/power-mode-intellij-plugin man i laughed (won't install tho) Feb 05 11:28:37 hello, I have an activity with onTouchListeners for drag & drop actions, but noticed that having multiple drags simultaneously doesn't work, how can I implement this? Feb 05 11:31:26 why does it not stop even when getEnableLightsHeartBeat() returns false? http://pastebin.com/UHuhkCFJ Feb 05 12:04:17 heh power mode Feb 05 12:04:21 straight outa atom editor Feb 05 12:09:29 eeew VirtualBox and Android VM are both fighting over KVM Feb 05 12:09:47 welp there goes my Emulatorino Feb 05 12:10:29 lol Feb 05 12:10:35 all of the react native devs at work Feb 05 12:10:41 have recently needed to test on android Feb 05 12:10:44 all of them have virtualbox installed Feb 05 12:10:46 :P Feb 05 12:11:07 Should really be fixed hey. Feb 05 12:11:10 Bloody HAXM/VBox. Feb 05 12:11:58 Has anyone ever actually called this number Feb 05 12:11:58 (650) 555-1212 Feb 05 12:12:10 doesn't look australian Feb 05 12:12:11 so unlikely Feb 05 12:12:25 Whats an Australian Feb 05 12:12:33 it's a fake country Feb 05 12:12:43 Yeh yeh nah righto gotcha mate Feb 05 12:13:13 Who's the President? Malcom Trumble?? Feb 05 12:14:32 https://www.youtube.com/watch?v=ZtnWk07Pe0s Feb 05 12:14:53 tx, When you got mad respect for trumble Feb 05 12:15:14 no thanks Feb 05 12:21:54 TheHackOps: Why the phone number? Feb 05 12:23:53 Lvl4Sword, If you look in the Andro emulator its the number that ships with the software Feb 05 12:23:55 weirdly.. Feb 05 12:24:16 interesting Feb 05 12:24:50 looks like http://www.siltalin.com Feb 05 12:25:00 http://law.stanford.edu/wp-content/uploads/sites/default/files/child-page/548679/doc/slspublic/Sample%202L%20Resumes%20-%20Updated%20July%202014.pdf Feb 05 12:25:06 it points to here as well Feb 05 12:25:58 weird. Feb 05 12:32:04 hows that location updating workin for u TheHackOps ? Feb 05 12:33:14 raoul11: hello! Feb 05 12:33:18 ohi mela Feb 05 12:33:25 longtimenosee Feb 05 12:34:20 Yeah, I'm mostly removing bugs and refactoring my app and reading about natural language processing basics so I didn't write much here Feb 05 12:35:40 bbs Feb 05 12:36:00 raoul11, Perfect Feb 05 12:36:00 ty Feb 05 13:44:59 * raoul11 thepooshes thepoosh Feb 05 13:49:40 omgomgomgomg raoul11 Feb 05 13:49:41 HAI Feb 05 13:49:47 been looking for you all day Feb 05 13:50:25 lies Feb 05 13:53:24 u coming today thepoosh ? Feb 05 13:54:23 don't think so Feb 05 13:54:36 gotta get some sleep for the superbowl Feb 05 13:54:44 fuk dat Feb 05 14:02:29 fuk you! Feb 05 14:02:39 raoul11: next thursday I'm having a boy! Feb 05 14:02:44 I mean my wife is Feb 05 14:02:49 I'll just kinda be there Feb 05 14:02:55 u both are Feb 05 14:03:12 how do u know its next thursday thepoosh Feb 05 14:03:19 week 40? Feb 05 14:04:52 nope, the baby is butt first, we went today to try and flip it Feb 05 14:05:16 no success so they scheduled an epidural based flip that will turn into a c section if fails Feb 05 14:05:25 and to an induced labour if it does Feb 05 14:06:20 some mixed up pm and public channel Feb 05 14:09:50 adq: you jelly? Feb 05 14:09:55 :') Feb 05 14:12:03 AS is going mad again: http://i.imgur.com/uviK4Vn.png Feb 05 14:12:06 on 0 Feb 05 14:12:17 defuq Feb 05 14:12:21 not cool lint Feb 05 14:12:27 why is it showing up as an error? Feb 05 14:12:29 instead of prompting me to cast the third param into (int) Feb 05 14:12:44 because third param should be an int (it's a float atm) Feb 05 14:12:56 craziest IDE ever Feb 05 14:13:30 well, it's based on a super cool IntelliJ IDE Feb 05 14:13:34 i would invalidate cache & restart, but i'm in the middle of heavy changes Feb 05 14:13:43 so it's super awesome no matter what you think Feb 05 14:13:45 :S Feb 05 14:13:58 sound highly biased, but yes IDEA is a nice ide Feb 05 14:14:11 for me, it's like OS, pro & con everywhere, i'm not fanboy Feb 05 14:14:15 i'm no* Feb 05 14:53:08 Well I've figured out my problem, FWIW Feb 05 14:53:53 glad to be helpful Feb 05 14:54:27 There's a RelativeLayout that receiving touch events, and it spits out that error whenever an ACTION_MOVE happens while it's animating Feb 05 14:55:08 I guess whenever it goes to the next frame of the animation, the visual part of it gets deleted and recreated, and Android freaks out Feb 05 14:55:30 because it doesn't know what to do with the ACTION_MOVE event Feb 05 14:55:34 But I'm still getting the event, so... Feb 05 14:56:23 Are here devs from Google? Feb 05 14:56:52 used to be Feb 05 15:00:56 probably still some lurkers Feb 05 15:01:03 there are AOSP devs here which is close enough Feb 05 15:03:34 AFAIK kroot is still a Googler, but he's not here very much... Feb 05 15:04:06 a better thing to do Feb 05 15:04:15 would be to just ask ya question :) Feb 05 15:04:34 lots of knowledgeable people here, not just about development using the SDK but about the android OS / system itself too ;) Feb 05 15:20:09 ? Feb 05 15:20:20 raoul11: I might come after all Feb 05 15:20:25 you'll see me if I'm there Feb 05 15:20:29 at around 20:30 Feb 05 15:20:45 buzz me of whats if u do Feb 05 15:20:55 hope ill get a front row seat /: Feb 05 15:21:08 sweet meet you guys there Feb 05 15:21:24 what Feb 05 15:28:30 tx yer in todays ta meetup? Feb 05 15:29:03 no Feb 05 15:29:12 it's 2AM and I am in an office in sydney, au Feb 05 15:29:19 u cant still make it Feb 05 15:29:23 can* Feb 05 15:29:51 yeah? Feb 05 15:30:09 1 hour and 30 mins till it starts /: Feb 05 15:30:25 warp 1.2 should be sufficient Feb 05 15:32:53 Hello, any bored fellow to help me with android native code? Feb 05 15:53:36 hi, I'm getting the R class not exist error, after running NBandroid for first time. Feb 05 15:54:42 what funny is, it looks very common issue on android development platform. How to actually solve this issue? Feb 05 15:56:51 import it wherever it says it doesn't exist Feb 05 15:59:00 okay, now I added import android.R Feb 05 15:59:35 but still, the problem still exist. I checked AndroidManifest.xml, and compare each package declartion, and both are identical. hmm Feb 05 16:04:17 Your build might be failing Feb 05 16:04:26 which is preventing the generation of the resources file (R) Feb 05 16:04:55 Okay, I got this error actually - Feb 05 16:05:39 but I'm not sure, if aapt is the problem here. Feb 05 16:07:34 How could I make a recycler view smoothScrollToPosition but do it faster if the position is farther away? Feb 05 16:08:38 I have a recyclerView with a potentially very long list Feb 05 18:49:30 i'd like to produce an overlay app for a game i'm interested in Feb 05 18:49:50 the most successful such applications i've seen on desktop do in-memory parsing of the target Feb 05 18:49:56 is this at all possible on android? Feb 05 19:00:29 From my brief experiments with wifidirect (via WifiP2pManager) over a pair of nexus devices, it seems... fairly fragile (peers don't seem to consistently discover/connect to each other.) Any pointers to resources that have tips about common issues/workarounds? Feb 05 19:15:56 bah, text selection in yaaic is bad, my samsung edge may or may not be the problem :/ Feb 05 19:46:41 Hello. you probably don't know anything about android-studio accessibility for screenreader users for non windows platforms? linux in this case Feb 05 20:00:25 can non-root android devices support usb otg for ethernet devices??? Feb 05 20:01:06 if so can you use ncat to connect to it? or do you need to build a network socket into your java program???? Feb 05 20:07:18 https://forum.kontalk.org/t/translation-updates-for-4-0-0-release/173 Feb 05 20:07:26 oops Feb 05 20:07:32 sorry guys wrong channel Feb 05 20:07:50 damn xchat opening channels tabs whenever it wants Feb 05 20:09:07 hexchat masterace Feb 05 20:12:45 raoul11, ?????? Feb 05 20:12:59 ? Feb 05 20:14:24 ! Feb 05 20:21:09 omilu, not sure but that might be related: https://developer.android.com/guide/topics/connectivity/usb/host.html Feb 05 20:21:18 basically you can provide a user-land driver Feb 05 20:21:51 but not all devices, nor android versions/roms support it, i know some use-cases with usb midi audio for example Feb 05 20:22:04 even the cable matters for otg Feb 05 20:22:49 thanks for the link adq! Feb 05 20:23:13 omilu, also nc is agnostic to that, and yeah you can always do your networking stuff in a regular java android app for sure Feb 05 20:25:41 so do you chain together programs in android like would would on unix Feb 05 20:25:44 ?? Feb 05 20:26:25 can i write an android program to read/write stdin/stdout, and have nc do all the hard socket stuff??? Feb 05 20:27:11 yes Feb 05 20:27:16 I did what I needed to do on a pi and it took like 5 mins, would like to do samething but replace the pi with android Feb 05 20:28:29 Hi. Do you think it is possible to connect from 2 to 8 devices throught internet without using a server? Feb 05 20:29:28 I mean, it's possible if they know each others IP. But they would have to send it to each other. Maybe by using Facebook or other messaging app. Feb 05 20:29:44 But wouldn't I have to change a firewall rule? Feb 05 20:31:46 karkoon set up a server using dig ocean or something Feb 05 20:32:03 you would have all your device connect to this server Feb 05 20:32:10 omilu: it isn't free Feb 05 20:32:13 then xconnect on the server with a simple script Feb 05 20:32:48 you can use your own server if you can connect to from internet Feb 05 20:32:59 inbound from internet obviously Feb 05 20:33:42 crap didn't see the part of your question about "without a server" doh, Feb 05 20:34:22 yeah you can do something with twitter for exchanging that kind of config info Feb 05 20:34:39 I don't have a server either. Maybe I could use one of the devices as a host and then have it give an IP adress for other devices to connect to. So there would be one device needed. Feb 05 20:34:44 i've used twitcurl lib works a champ Feb 05 20:35:16 I'm not sure if verizon etc support inbound connections Feb 05 20:35:41 like you couldn't do it from your home network because cable companies and NAT block inbound traffic Feb 05 20:36:14 you need to initiate the traffic and connect to internet reachable server to get around this problem Feb 05 20:36:14 Yeah, they would need to use mobile network. Feb 05 20:36:53 I've never tried with mobile, but I'm sure same situation other wise there would be security issues Feb 05 22:05:11 hello im looking to be able to get, read and collect a set bit of data from a json file, the json file is at https://www.radiobeacononline.com/assets/js/shows.json it is set out so each array is a day and a time i.e if i want monday at 2 pm i would get from array [1][14] the day and time is set sunday-saturday and midnight to 11pm. i need this to be able to find the time in utc time and then get the right data how would i do this? Feb 05 23:03:20 Im starting to really love the monkey runner for android that can just spam my app with user input in an attempt to crash it. I guess this isnt the right place to ask, but have any of you ever used something similar for iOS? The ones i've found i couldnt actually get to work Feb 05 23:16:34 Dammit pocmo Feb 05 23:46:22 how do I package a project to copy to someone else? I've just zipped the entire project dir and, without the android-mockable, it's still 14Mb! :( Feb 05 23:46:50 In my button click event I want to switch to another activity. I'm executing these lines: Intent myIntent = new Intent(getApplicationContext(), AlarmDateTime.class); Feb 05 23:46:50 startActivity(myIntent); but I'm getting a force close crash Feb 05 23:46:51 do a clean Feb 05 23:48:34 Is that the right way to invoke an intent ? Feb 05 23:49:08 devslash: maybe your other activity isn't in the manifest? Feb 05 23:49:35 thanks bankai_ . Still 7Mb though. It's a single activity demo app. Is that as small as it goes? Feb 05 23:50:15 Hmm, were you talking to me at all? I wonder :) Feb 05 23:50:46 yes Feb 05 23:51:14 :) ok, thanks bankai_ . Is 7Mb as small as can be expected, then? Feb 05 23:52:42 exclude ... .idea and .git Feb 05 23:54:53 Hmm, no .git (it's just a demo project, for a bug report), and removing .idea seemed to make no difference at all :( Ah well, these days I don't s'pose that's very big Feb 05 23:56:14 Nexsoftware that was the problem Feb 05 23:58:39 MarkRS You can minify your code which will decrease size. Feb 05 23:59:00 Though 7mb isnt a large app by any means Feb 05 23:59:10 MarkRS just delete build and intermediates Feb 05 23:59:52 app/build Feb 06 00:00:44 sasser: the whole of app/build? (that's the only place I've got an "intermediates", having cleaned) Feb 06 00:01:08 ya id prolly delete that Feb 06 00:01:16 ok, thanx Feb 06 00:02:22 yay, that did it! Less than half a meg now :) Feb 06 00:02:29 Makes me feel better about posting it Feb 06 00:02:44 remove .gradle .idea .iml all build/ folders etc Feb 06 00:02:45 thanks all Feb 06 00:02:48 you will find many guides online Feb 06 00:03:08 np lol Feb 06 00:03:14 I did look adq, couldn't see anything obvious. Perhaps it's just late on Sunday night :/ Feb 06 00:03:40 well, you will get used to it, at beginning it makes sense to have no idea what to exclude Feb 06 00:04:04 tbh, i don't even polute my project folders with build and .gradle, they're all in a ramdisk, win win Feb 06 00:05:00 MarkRS: http://stackoverflow.com/questions/36540676/build-intermediates-res-resources-anzhi-debug-stripped-ap-specified-for-prope Feb 06 00:05:29 would be curious to test shrinkResources Feb 06 00:07:48 shrink resources is only for your apk, and requires minify Feb 06 00:08:11 does that make the code less readable? Feb 06 00:08:24 no but adq does Feb 06 00:08:26 lol Feb 06 00:08:32 hah! Feb 06 00:09:03 seriously it's not much 7MB for your project sources Feb 06 00:09:50 when i have 1mb upload a 16mb apk can be a killer Feb 06 00:09:57 Still seemed rude to upload that much to a bug report, but I take your point, thanx Feb 06 00:10:06 then theres bugs, and im like crap why did i post that ~15 mins later Feb 06 02:47:27 Am I missing something? "android create project" doesn't seem to create the same sort of gradle build script that Android Studio creates (and also seems woefully out of date.) Is there a new recommended way to generate a boilerplate thing from the command line? **** ENDING LOGGING AT Mon Feb 06 03:00:01 2017