**** BEGIN LOGGING AT Mon Feb 27 03:00:02 2017 Feb 27 03:47:35 meh, chat.freenode angry... hobana loves me Feb 27 04:17:57 tesla breaks record @0-60 in 2.275 Feb 27 04:18:19 go elon go elon Feb 27 04:19:51 Stupid cool thing has an actual ludicrous speed button Feb 27 04:23:21 * capella . o O ( bet that's 8 cores of good 'merican steel powered by super hydrogenated Java) Feb 27 04:30:51 Can the emulator be used to check performance or do I need to use an actual device for that? Feb 27 05:00:04 What is your opinion of making Android apps with Xamarin? https://www.visualstudio.com/xamarin/ Feb 27 05:00:05 Will it be significantly limiting compared to what I can do with native apps with the default tools? Feb 27 05:02:24 hsk3: Android Studio Masterrace Feb 27 05:03:56 ok.. Feb 27 05:16:32 I'm a lot more comfortable with Java than I am with C# Feb 27 05:25:23 oh noes, this nokia 3310 only works on 2G Feb 27 05:25:34 * g00s still waiting for Android One in US Feb 27 07:50:32 I'm trying to cover the lower half of the screen with an overlay fragment. Feb 27 07:50:45 but it fills everything Feb 27 07:53:13 https://gist.github.com/Syzygy2048/575c7b676427ddf0a2973815cceaef7e Feb 27 09:15:28 I am setting a custom progressbar drawable and tinting it, tinting works well with default drawable but my drawable is completely colored, even the background layer. Here it is [http://dpaste.com/25J0WP0] Feb 27 09:36:02 How can i pass some data to service so service can get it without running application, which starts this service? Feb 27 09:43:10 Kwest: pass it in constructor? Feb 27 09:43:22 Or if its a log, db? Feb 27 09:43:24 *lot Feb 27 09:44:48 constructor - you mean onStartCommand? Feb 27 09:46:26 previously i used intent and sent data throw intent.putStringExtra Feb 27 09:47:58 but now there is a situation, where activity, which put this extra will be closed and service will start without this data Feb 27 10:36:11 how to delete R.java in studio? Feb 27 10:40:12 Kwest, things you put into an intent are kept until the service is started Feb 27 10:40:17 are you maybe trying to read the wrong intent? Feb 27 10:47:57 nevermind Feb 27 11:24:05 Mavrik, at first time - it's all working, but when app closed by os, service will be restarted after, because it's sticky, and nobody puts these things into intent Feb 27 11:26:26 now im using sharedpreferences for it, looks like a reinvented bicycle, but works just fine for now Feb 27 11:28:35 I want to set content-type: application/JSON in my GET request header. How do I do this in Volley? My code: http://pastebin.com/DS0EqJ9k Feb 27 12:38:29 Is there a nice introduction to android layouts? Feb 27 12:38:50 I'm trying to to work with dynamic text and it's quite difficult :). Feb 27 12:39:26 Currently trying to keep one column of text at full length and wrap another text in the next row when it gets too long Feb 27 12:39:41 plus some complicating nestings Feb 27 12:41:22 is there a better practice to update a layout when a user changes the language? Feb 27 12:41:28 i do it via recreate() Feb 27 12:41:43 and override attachBaseContext Feb 27 12:44:31 Hello all, I'm trying to use fiddler to capture my android traffic which is going okay except for the fact that the response does not appear to be sent back to the phone. Has anyone used fiddler for this before? Feb 27 12:44:37 I'm running on debian Feb 27 12:49:03 nalum, if possible maybe you can try a 'cleaner' and less problematic way like transparent capture on router side (wireshark) Feb 27 12:54:38 Can I make 1/2 width layouts just with layout weight, without any percentage voodoo? Feb 27 12:55:07 with voodoo I mean PercentRelativeLayout Feb 27 12:55:32 I want to do 3rds if there are 3 items, and 1/2 if there are 2 Feb 27 12:55:43 ktwo: that's what I was originally using but the client requested that I use Fiddler :( Feb 27 12:56:46 I also need to intercept the HTTPS and decrypt it so I'm using the proxy of Fiddler with the Fiddler Cert installed on my device Feb 27 12:57:06 anotheryou: Use LinearLayout and layout_weight Feb 27 12:57:21 SimonVT, hm. I'm trying :) Feb 27 12:57:35 SimonVT, the inner divs refuse to inflate Feb 27 12:57:48 that would be possible with wireshark as well Feb 27 12:58:15 SimonVT, I mean refuse to get wide enough to fill the parent Feb 27 12:58:44 You're probably doing it wrong Feb 27 12:58:50 probably... Feb 27 12:59:05 SimonVT, there as nothing like the chrome inspector for native android, no? Feb 27 12:59:30 SimonVT, there is a second dev plugging the views together, so I'm not sure everything as alright there either Feb 27 12:59:39 There's Hierarchy Viewer if you'd like to inspect your layouts at runtime Feb 27 13:00:35 SimonVT, ah, I tried that before but just got these errors: http://malea.lacerta.uberspace.de/up/76b1e55f-fad1-486d-891d-456037f6bbd8.png Feb 27 13:00:58 Doesn't work on stock devices, try the emulator Feb 27 13:01:21 SimonVT, ok. I'm rooted and running LineageOS though, if thhat helps Feb 27 13:01:52 I'll try the emu. thanks! Feb 27 14:05:09 ktwo: I know, but they refused the data sent in wireshark format so I'm being forced to work with fiddler Feb 27 14:32:50 thepoosh Feb 27 14:33:05 u sneaky sneaky pucker Feb 27 14:33:42 raoul11: why u calling me names? Feb 27 14:33:53 u no say hello Feb 27 14:34:02 HAI Feb 27 14:34:05 hi thepoosh Feb 27 14:34:10 u coming today? Feb 27 14:34:38 no man, I have a newborn Feb 27 14:34:59 USUCK Feb 27 14:35:01 k Feb 27 14:35:31 it really sucks because today will be awesome Feb 27 14:36:08 hope so Feb 27 14:36:17 yeah Feb 27 14:36:23 coz i have to take the bus, and busses makes me sick Feb 27 14:36:48 go F yourself, I drive for over an hour each way Feb 27 14:36:54 and you complain about busses?! Feb 27 14:36:59 take a friggin cab Feb 27 14:37:35 do i work for glide Feb 27 14:37:36 that i can afford cabs? Feb 27 14:42:01 raoul11: https://youtu.be/LH-i8IvYIcg Feb 27 14:42:34 meanie Feb 27 14:43:07 thepoosh: do u have some lang switcher in glide? Feb 27 14:55:36 long switcher? Feb 27 14:55:38 lang Feb 27 14:55:41 no we don't Feb 27 14:55:52 if the user changes the language on their device they get a new language Feb 27 15:00:45 yer Feb 27 15:00:52 i implemented it correct thepoosh Feb 27 15:01:00 yay you! Feb 27 15:01:03 but for refreshing i use recreate on the base activity Feb 27 15:01:05 and it sux Feb 27 15:01:07 like u Feb 27 15:01:28 it shows a nasty black screen for bout half a second Feb 27 15:01:46 :S Feb 27 15:02:07 you can override the getResources method in the Application file and force a language maybe Feb 27 15:02:15 without killing the activity Feb 27 15:02:21 *not sure it will work Feb 27 15:02:52 the way i am setting the lang is super.attachBaseContext(LanguageContextHelper.wrap(newBase, locale)); Feb 27 15:03:02 which happens when the activity creats Feb 27 15:03:18 its just a wrapper that does some static checkups Feb 27 15:53:26 How do I stack shapes? I have a button that needs a white background with clipped corners: http://malea.lacerta.uberspace.de/up/9312e70e-0bfe-422b-a998-acbb10b25936.png (here in red, should only fill in the "i") Feb 27 15:53:53 i basically just want the "i" to be white Feb 27 15:54:17 maybe I better change the drawable? Feb 27 15:58:47 Layer List Drawables Feb 27 16:10:47 thanks Feb 27 16:11:07 can I hope for such a ticket to be fixed soon? Or should I rather look for a fix myself? https://code.google.com/p/android/issues/detail?id=227147 Feb 27 16:11:27 open since Nov 2016, but at least already assigned Feb 27 16:14:40 fix it yourself Feb 27 16:16:15 How could I make the default 'app' configuration in Android Studio run instrumentation tests before deploying the apk? Feb 27 16:20:34 adq, ok :/ Feb 27 17:39:09 Redrield, deploying an apk is required prior to running instrumentation tests Feb 27 18:00:00 What is your opinion of making Android apps with Xamarin? https://www.visualstudio.com/xamarin/ Feb 27 18:00:00 Will it be significantly limiting compared to what I can do with native apps with the default tools? Feb 27 18:04:52 hsk3: You're far better off sticking with Android Studio for now Feb 27 18:05:46 The only reason that platform still exists is that Microsoft is desperate to not completely disappear from phones Feb 27 18:06:21 eh, C# is a reasonable upgrade from java Feb 27 18:06:29 and there's plenty of .NET talent that can leverage it Feb 27 18:09:31 Just the same... The mmajor selling point for that stuff is that it can deploy to Android, iOS, and Winows Mobile at the same time... except Windows Mobile is _fucking dead_ Feb 27 18:09:44 I do not expect they'll continue to support that for very much longer Feb 27 18:11:31 deploying to android and ios transparently is still a strong suit Feb 27 18:12:47 I'm not shelling out the money to Apple year after year Feb 27 18:13:23 that's because you're not an ios developer Feb 27 18:31:29 I don't know why this is so tough. I have an image 320px wide. If the screen is large enough, it should be left-aligned in the parent and all 320px wide. If it is not, it should fill the width of the screen and scale vertically to maintain ratio Feb 27 18:31:44 Why are ImageViews such a weird pain in the ass in Android Feb 27 18:32:04 maxWidth 320 doesn't seem to be respected. Feb 27 18:34:22 Have you set the correct scaling type? Feb 27 18:35:05 Wait, wrap_content wrap_content seems to do the trick... Feb 27 18:35:11 W/o settings scale type Feb 27 18:42:07 haha wow Feb 27 18:42:18 I was blinded by the complexity here Feb 27 18:42:35 boom Feb 27 18:42:59 i'm learning about u-boot.bin files today :/ trying to build my own Feb 27 18:44:15 good luck Feb 27 19:01:31 how do getScaleX and Y work? I always get 1. I set an image resource in an imageView and .setScaleType(ImageView.ScaleType.FIT_XY). The view size doesn't match the image I'm showing and it's obviously stretched, but getScale still return 1. I'm confused Feb 27 19:02:48 setScaleX is a View property, not image Feb 27 19:03:41 sorry, can you elaborate, I don't get it Feb 27 19:14:09 hmmm so if this is an inherited property from View and it doesn't work like I think for images in imageViews... I have to manually calculate how much the image was scaled by inquiring image size and imageView size? Feb 27 19:18:32 if you don't want the image to be stretched, use something like FIT_CENTER Feb 27 19:21:09 I do want it stretched Feb 27 19:24:34 why? It’ll look terrible Feb 27 19:26:44 hi. I have an asyncTask and its method doInBackground.. Within that there is a try{} in order to establish a socket connection.. there is also a while loop where the inputStream associated with the socket is read.. The problem is that doIBackground does not exit properly (somehow it stays in that while loop) and therefore onPostExecute doesnt get called) Feb 27 19:27:19 * capella sounds familiar? Feb 27 19:29:57 inputStream.read() -> if the end of the stream is reached it returns a -1 Feb 27 19:30:16 sounds like your while condition is not correct Feb 27 19:30:28 right.. Feb 27 19:31:10 but concerning the ionputStream.. when is the end of the inputStream reached? what does it mean? do I need to terminate the string I am sending somehow? Feb 27 19:31:31 the end is reached when there’s no more data in it Feb 27 19:31:40 ugh.. Feb 27 19:32:44 I expect it to reach the end when I stop sending to that socket (I am sending with a prog called SocketTest which runs as the server) Feb 27 19:33:20 and while its going through, are you logging what the stream grabs? Feb 27 19:33:29 is it getting the data you expect it to grab? Feb 27 19:33:30 But after sending some chars and terminating them with r\n\ my java code, inespecially the loop in which the inputStream is read, does not terminate Feb 27 19:33:39 yes it si getting the data I am sending Feb 27 19:33:55 are you sending more data after that? Feb 27 19:34:27 I do have a breakpoint and am watching the buffer.. hmm, actually I am not monitoring the inputStream itself Feb 27 19:34:45 no I do not send more, however the connection is not terminated Feb 27 19:36:10 the condition fo rthe while loop looks like this: while((bytesRead = inputStream(buffer)) != -1){} Feb 27 19:36:55 response entity didn't do a final consumeConrent() Feb 27 19:37:52 @capella, do you address my problem ? :] Feb 27 19:38:27 maybe, I had an issue back awhile... socket locked Feb 27 19:38:54 hm, I must admit I do not understand what you say :/ Feb 27 19:39:10 consumeContent() ? Feb 27 19:40:12 not so terrible, aspect ratio of device doesn't vary that wildly... I managed to calculate manually using the view size and drawable's getIntrinsicWidth/height... I just hope these will always return the original picture size... Feb 27 19:40:41 stowoda: That’s the wrong condition Feb 27 19:40:58 You want it to while bytesRead > 0 Feb 27 19:41:42 Hi! I have a fragment with a com.google.android.gms.maps.MapView inside. I created an api key and added it to the manifest. But neither on the device nor on the emulator the map is visible, just a blank area... Feb 27 19:41:46 hm, sounds logically.. Ill give it a try Feb 27 19:43:59 ok I am just to new to this stuff. seems like I need to take more time :/ Feb 27 19:44:02 but thx so far Feb 27 19:44:11 er, yah my issue was with gracefully closing HttpURLConnection during try/catch Feb 27 19:45:43 hey guys... a material design question: how would you set the margins on a layout with vertical cards? Is the left 16dp keyline supposed to be the keyline for the card content or the left edge of the card? Or other way to say it: would you set a card margin of 16dp and padding of 8dp until text starts or 8dp margin and 8dp padding so that the text is along the 16dp keyline Feb 27 19:46:05 I can't figure out what I like more and what is actually what the design guidelines recommend? Feb 27 19:47:36 If i set the background color of the mapview to red, the whole screen is read, so the view is definitely visible Feb 27 19:47:40 ok, some basic question: the method doInBackground is called once and then "new Socket()" is called. Then, when the server is sending some chars, It seems that this method is called again, but now just the while loop. I do not understand the sequence of events here.. Feb 27 19:47:41 http://pastebin.com/01BmP4Vn Feb 27 19:47:42 when that situation comes up, I generally just download a few other apps that I like and think follow the guidelines well, and do what they do Feb 27 19:48:37 I would expect it to run all over again, begninning in line 17 Feb 27 19:48:50 i don’t see anything that would cause this to be called twice Feb 27 19:49:00 unless you’re doing that where you actually call it Feb 27 19:51:26 let me post the content of main activity: Feb 27 19:51:56 http://pastebin.com/6eBmnMmu Feb 27 19:52:16 s73v3r: yeah that's the thing... a lot of apps do it differently... ;) Google keep has 8dp and 8dp to content, so text is at 16dp... Google Home uses 8dp margin and 16dp padding, so text isn't even at the keyline... Feb 27 19:52:18 again, I’m not seeing anything that would cause that to happen Feb 27 19:52:35 hm. even stranger to me :D Feb 27 19:53:22 Ahh well I'll have to compare and see waht I like more... apparently it's more of a personal decision :D Feb 27 19:56:38 ok, does AsyncTask not intend to run asynchronously to the UI? Feb 27 19:56:56 it does Feb 27 19:57:24 do you know if your activity gets destroyed and recreated while you’re trying to run it? Feb 27 19:57:24 so if once executed by execute(), so I understand, it runs forever until terminated Feb 27 19:57:32 like, if you rotate? Feb 27 19:57:44 it runs until it’s done Feb 27 19:58:07 it runs until its done.. ok, that would describe the behaviour I am experiencing now... Feb 27 19:58:39 btw, I do not think that my main activity gets destroyed.. however I do not have the evidence as for now Feb 27 19:59:11 honestly, unless you’re doing something on purpose, it’s probably not Feb 27 20:00:22 I mean, It would be obvious if it got destroyed since then I would see it dissapear from the screen and would see it beeing reloaded again.. something like that.. Feb 27 20:01:30 yup Feb 27 20:02:41 Anyone know how much Mozilla paid for Pocket? Feb 27 20:03:02 seems like that code sample is written in a way to let the asyncTask receive sth on the inputStream until the -1 condition is reached and then it is terminated. Somehow it needs to be started again Feb 27 20:03:07 i didn’t hear that happened. Feb 27 20:03:29 why would it need to be started again? Feb 27 20:04:00 I got it from here: http://androidsrc.net/android-client-server-using-sockets-client-implementation/ if you are interested Feb 27 20:04:40 why would it? hm, is my understanding so far Feb 27 20:04:54 not necesserly right.. Feb 27 20:04:58 however Feb 27 20:04:58 i honestly don’t think it is Feb 27 20:06:20 Pocket? It's evil! Heh, I'm a ReaderMode/ReadingList fan Feb 27 20:07:16 for me it seems like clicking on the "connect" button gets the socket and then receives from inputStream until -1 and then terminates... but as I write it, that deos not make any sense :/ Feb 27 20:08:32 are you absolutely sure that -1 is the return value that the method will return Feb 27 20:08:45 are you sure that it will not simply say that it read 0 bytes? Feb 27 20:08:48 why it should expect me to click on the "connect" button each time the server wants to send me sth. Feb 27 20:09:01 because that’s what you’re telling it to do Feb 27 20:09:28 you don’t open the AsyncTask until you click the button, and your AsyncTask tells it to read data until there’s no more Feb 27 20:09:39 If you want something constantly running in the backround, you want a Service Feb 27 20:09:58 to be quite honest, even for what you’re doing, an AsyncTask is probably not the proper thing to do Feb 27 20:10:46 ok what you write suits my purpose which is: I want to send commands via TCP to the server and am expecting some ACK form the server.. Feb 27 20:11:27 you probably would be better off with a Service Feb 27 20:11:54 ok, need to read about that.. Feb 27 20:12:10 especailly because, right now, you don’t seem to be handling the issue of your AsyncTask and activity recreation Feb 27 20:12:58 "A Service is an application component representing either an application's desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use" Feb 27 20:13:31 what makes me wonder if that is really the right "tool" to use.. because it states: "longer-running operation" Feb 27 20:14:36 in my case it is following use case: user klicks a button to send a command and in turn receives a response from the server which gets displayed in some textfield Feb 27 20:14:52 in general, a web connection falls under “longer-running operation" Feb 27 20:14:57 no "longer-running operation" at all Feb 27 20:15:02 hehe :D Feb 27 20:15:07 expected that Feb 27 20:15:25 ms is long then :D Feb 27 20:15:34 throttle the connection down to crap network speeds Feb 27 20:15:38 hehe Feb 27 20:15:40 evil Feb 27 20:15:58 not evil, just a fact of life Feb 27 20:16:02 yes Feb 27 20:16:24 but since it runs async to UI it deos not block it at all... Feb 27 20:16:56 a timeout timer reacts if a threshold is reached Feb 27 20:17:07 thats my idea.. Feb 27 20:18:04 ok, maybe not to be solved on my first days of java and android experience :D Feb 27 20:18:14 but thanks for the help anyway Feb 27 20:25:07 ok, sth else concerning atocomplete in Android SDK... Ii I let the IDE autocomplete a method and in it then creates braces ().. how to jump out of them? Feb 27 20:25:21 now I am using arrow key right.. but thats annoying Feb 27 20:42:21 autocomplete is evil Feb 27 20:45:19 really? Feb 27 20:51:11 heh, I shove this stuff into muscle memory as I type, stupid computer on autocomplete is basically interrupting my train of thought Feb 27 20:51:31 * pfn ponders image recognition algorithms Feb 27 20:55:04 true... Feb 27 20:55:21 ok, have a nice day/night whatever your timezone is Feb 27 20:58:28 I'm having trouble figuring out how to draw using Canvas in a custom view. Feb 27 20:58:47 In onDraw(Canvas canvas) I can call drawing routines, but if I try to call any of them at any other time, I get a SEGV. Feb 27 20:59:03 I'm having trouble finding docs/examples for how canvas can actually be used. Feb 27 21:00:09 I'm saving the canvas that gets passed in during onDraw, and using it later; is that the problem? Feb 27 21:06:55 My simple DrawView class: http://shallowsky.com/tmp/DrawView.java Feb 27 21:45:35 what’s the most elegant way of having a listview with a bunch of text and images above that should scroll too? Feb 27 21:45:50 ? Feb 27 21:46:07 you’re gonna have to show an example of what you want Feb 27 21:46:10 a scrollview with a bunch of imageviews and textviews in there? Feb 27 21:46:36 "bunch of imageviews" sounds like recipe for disaster Feb 27 21:46:48 to give some insight; i want a scrollable tracklisting Feb 27 21:46:57 above that track listing there should be images and text Feb 27 21:46:59 yeah. The answer to your issue is to just do that. The answer to the overall thing is to rethink your ui and not do that Feb 27 21:48:57 hmm, so how would you do it then? Feb 27 21:49:09 i would not have all those things on the same screen Feb 27 21:49:20 it’s supposed to show information about a certain (ancient) game and then the tracklsting underneath Feb 27 21:49:44 hmm, maybe that’s why the implemented it like that in google play Feb 27 21:49:57 *music Feb 27 21:50:16 recent activity first Feb 27 21:50:29 pull the bottom up to a new screen with information about the track/album Feb 27 21:50:49 and then another button to get yet another window with tracks Feb 27 21:52:43 ok maybe i’ll do that Feb 27 21:54:41 when pressing the playlist button in google play music you get this smooth transition to the playlist overview Feb 27 21:54:54 is this something that is easy to create? Feb 27 21:58:03 give it a shot Feb 27 22:04:49 pagetransformer was the term is was looking for.. Feb 27 22:12:23 Yo why is there two directories in my $HOME... 'Android' and 'AndroidStudioProjects'? Also, where the actual executable? Feb 27 22:15:35 what system? Feb 27 22:15:53 and which executable are you looking for? Feb 27 22:15:53 ubuntu Feb 27 22:16:01 the exe that starts the IDE Feb 27 22:16:42 ~/.Android is going to hold thing related to android, like the emulator images, and the repository libraries. Feb 27 22:16:45 hey guys Feb 27 22:16:53 probably Android holds the android sdk stuff Feb 27 22:17:10 Should I mv Android to /usr/local or something? Feb 27 22:17:16 NO Feb 27 22:17:17 No Feb 27 22:17:23 :O Feb 27 22:17:50 and the 'exe' would be at anrroid studio path/bin/studio.sh Feb 27 22:18:29 Yeah :) Feb 27 22:18:32 I've got a very straight forward question. I have an activity A which has a FrameLayout inside it used to switch out Fragments, very nice and snazzy Feb 27 22:18:55 I place LoginFragment into it, and from LoginFragment if the login is successful, I replace (from inside LoginFragment) with HomeFragment Feb 27 22:19:27 now there's a nice logout button inside HomeFragment, Im going to be using it to logout and show the LoginFragment again, hiding the HomeFragment, it always gets pasted above HomeFragment, HomeFragment is not removed... Feb 27 22:19:39 and I'm using replace()... Feb 27 22:21:52 Odaym, still waiting for the question, but imagining one: you use the same tag for both home and login frag? Feb 27 22:21:54 You got like 700 ppl waiting... Feb 27 22:22:06 tag? I don't tag either of them Feb 27 22:22:16 the question is why isnt HomeFragment disappearing Feb 27 22:22:26 they're appearing literally ontop of each other Feb 27 22:23:18 the quick and dirty fix is to put a background on the login fragment Feb 27 22:23:34 but that’s a band-aid fix at best Feb 27 22:23:44 it's too lengthy to do that even Feb 27 22:23:50 get a reference to the old, find the view...... Feb 27 22:25:49 I'm even adding `remove(this)` in the transaction when replacing them :P Feb 27 22:26:56 Odaym i wouldn't bother, just put both fragments in the container and have them there at all times. show / hide the one you wan Feb 27 22:26:57 *want Feb 27 22:27:23 Google Keep does this with like 15 fragments ... i'd probably not do that myself, but whatevs Feb 27 22:27:27 you're still going to have to do the hiding with a transaction Feb 27 22:28:34 'appearing ontop of each other' .. something else is going on then Feb 27 22:28:58 wow, amazing https://www.youtube.com/watch?v=-7xvqQeoA8c&feature=youtu.be Feb 27 22:30:06 arf just saw it few seconds ago g00s Feb 27 22:30:10 looks like it's viral Feb 27 22:31:49 ok works Feb 27 22:31:51 thanks guys Feb 27 22:32:01 you're always there Feb 27 22:32:46 thing is, as I suspected, the handle to which fragment manager, if you grab a fragmentManager from the wrong place, the reference is lost to where you want to place your shit, or it's mixed up with the fragmentManager available to every Fragment Feb 27 22:32:50 if that makes sense Feb 27 22:34:44 It does not. Feb 27 22:35:27 I was grabbing the fragmentmanager from tasf;,a;sldfasl;df, Feb 27 22:35:32 it works now Feb 27 22:43:44 lol "Where Node.js Shouldn’t Be Used:" "SERVER-SIDE WEB APPLICATION WITH A RELATIONAL DATABASE BEHIND" Feb 27 22:43:50 isn't that like 90% of stuff Feb 27 22:45:36 lots of stuff is nosql now, so... Feb 27 22:45:45 because webscale Feb 27 22:46:15 oh yeahwebscale Feb 27 23:09:12 Ologn https://adtmag.com/articles/2017/02/27/qualcomm-vr-sdk.aspx Feb 27 23:24:10 How do I document that the function might return null? Feb 27 23:24:14 isn't there an annotation for that? Feb 27 23:25:27 @Nullable Feb 27 23:25:36 or, better yet, return an Optional Feb 28 00:04:12 Hi all, I'm trying to get my first Android program working using Ecere IDE with Android Studio, but it's giving me the following error when I try to build the project: Feb 28 00:04:14 processing obj/release.linux.arm64/classes/./com/ecere/hello/hello.class... Feb 28 00:04:14 PARSE ERROR: Feb 28 00:04:14 unsupported class file version 52.0 Feb 28 00:04:14 ...while parsing com/ecere/hello/hello.class Feb 28 00:04:14 1 error; aborting Feb 28 00:04:16 Fatal Error: child process terminated unexpectedly Feb 28 00:04:26 Does anyone have any idea what might be causing this? Feb 28 00:05:45 CaptainBlackton the ecere guy sometimes pops in .. but its pretty rare. You are definitely way out in left field, you'll be alone. forever alone Feb 28 00:06:05 52.0 is java 8 isn't it? Feb 28 00:07:49 Yes, it is. See https://en.wikipedia.org/wiki/Java_class_file Feb 28 00:08:03 I'm not sure, but "java -version" tells me that I'm running java version 1.8.0_121 Feb 28 00:08:44 I think that was the newest version I found online though, so I'm not sure how to get version 8 Feb 28 00:08:53 The rule of thumb is major version - 45 = java version. Feb 28 00:09:14 1.8.0 is generally referred to as Java 8 for marketing reasons Feb 28 00:09:27 CaptainBlackton your JDK is ok, you probably just need to tell ecere to compile for Java 7 Feb 28 00:10:18 kroot: I think your rule of thumb is off by one. Feb 28 00:10:56 Yes, I had a horrible thumb accident. Feb 28 00:11:09 Oh, so "java 1.8" is actually "java 7?" Feb 28 00:11:22 what did you do to find that version? Feb 28 00:11:23 I meant major version - 44 = java version :) Feb 28 00:11:47 CaptainBlackton: Java 1.7.0 = Java 7, Java 1.8.0 = Java 8 Feb 28 00:12:38 OK, I'm just wondering why I should tell it to compile for java 7 if I have java 8 installed? Feb 28 00:13:01 are you sure you have the Java 8 JDK installed? Feb 28 00:13:11 I’m betting you have the Java 8 RUNTIME installed, but not the JDK Feb 28 00:13:24 CaptainBlackton you;ll have to look at the ecere docs, you need to pass something like "--source 1.7" to the compiler Feb 28 00:13:28 $ java -version Feb 28 00:13:28 java version "1.8.0_121" Feb 28 00:13:28 Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Feb 28 00:13:28 Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) Feb 28 00:13:38 that’s the runtime Feb 28 00:13:46 type javac -version Feb 28 00:14:14 or, just download the Java JDK from oracle anyway Feb 28 00:14:19 $ javac -version Feb 28 00:14:19 javac 1.8.0_121 Feb 28 00:14:23 if you already have it, the installer will tell you Feb 28 00:15:00 So this means I do have jdk 8, right? Feb 28 00:16:18 It looks like thate PARSE ERROR might be coming from Unity? Feb 28 00:16:43 So you are compiling using Java 8, but something later on in the build process can't read Java 8 class files. Feb 28 00:17:25 CaptainBlackton did you see http://ecere.org/community/ Feb 28 00:18:47 It looks like their install instructions say to use JDK 7: http://ecere.org/android/ Feb 28 00:19:55 OK, I'll try that. We found this link that also seems to say the same thing: http://stackoverflow.com/questions/37902840/got-unsupported-class-file-version-52-0-after-including-a-module-to-a-project Feb 28 00:20:38 Well, they said it's a "JDK vs. Android SDK version incompatibility" Feb 28 00:21:40 this is an argument against using 3rd party tools for app dev Feb 28 00:22:37 the BB says it has 111 users; i think my app has more than that :D Feb 28 00:24:50 HI all - anyone here !? Feb 28 00:25:31 and the channel fels quiet Feb 28 00:26:50 g00s: Huh?? Feb 28 00:28:20 so I finally fixed that damn Bit Byte issue - the damn string converter was padding it with 0s BUT counting to 8 (that's from a zero index) so I was getting an extra 0 in there :) Feb 28 00:28:56 fels we've had a few OBOs in here lately Feb 28 00:29:44 g00s: you gonna have to forgive me - whats an 080 :) Feb 28 00:29:54 off by one Feb 28 00:29:55 Hello! I'm trying to get a project I've been given to compile and it seems to be laid out weirdly. The source code I've been given included an AndroidManifest.xml, Android.mk, jni/, jniLibs/. I think its a n NDK project because of these flies and directories. I tried using ndk-build to compile it, but it says there are no modules... The Android.mk has "include $(BUILD_PACKAGE)". The Android.mk file is here https://gist.git Feb 28 00:30:28 The gist also includes the output from command prompt. Feb 28 00:30:47 And the url got cut off... https://gist.github.com/anonymous/94b3f1370d55830516aee507fe9c9665 Feb 28 00:33:13 How can I make instrumentation tests run before deploying a debug apk to my device? Feb 28 00:42:35 ok - so now I am trying to get my head around the way the layout s and UI designer works - Feb 28 00:51:10 Hey so I have Jenkins which is pushing builds to a Raspberry Pi 3 but the gradle.properties that is pulled from git has heapsize-toobig Feb 28 00:51:12 Have you tried LSD? Feb 28 00:51:21 how do I lower that heap size just for the RPI builds? Feb 28 00:51:37 gitignore gradle.properties? Feb 28 00:51:42 put it in the gradle.properties Feb 28 00:51:49 that’s not a file that should be checked in Feb 28 00:51:59 I do but every time Jenkins triggers a build it overwrites it Feb 28 00:52:15 also, RPI RAM is only 1GB :( Feb 28 00:52:25 i have a feeling it's gonna be rough seas Feb 28 00:52:43 thanks s73v3r Feb 28 00:52:59 i can’t imagine it’s very effective as a build server Feb 28 00:54:13 Someone? Feb 28 00:56:23 just messing around.. Feb 28 00:56:31 I think I'll use this laptop directly in the future Feb 28 00:56:48 but the idea was to delegate the builds to all the pi's to run tests Feb 28 00:56:54 to cover multiple devices at once Feb 28 00:57:25 but actually the pi might be best the other way around Feb 28 00:57:28 as a master Feb 28 00:57:42 maybe Feb 28 00:57:59 you could also get an RPi 3, or something similar with more ram Feb 28 00:58:18 I do have one Feb 28 00:58:21 maybe it has 2GB Feb 28 01:03:46 brian_petersen: if it has BUILD_PACKAGE it's actually an AOSP project, not an NDK one Feb 28 01:04:16 Meaning it would need to be built in an Android platform tree Feb 28 01:04:38 i.e. http://source.android.com/source/requirements.html Feb 28 01:18:46 OMG StackOverflow is on maintenance mode! I can't program anymore! Feb 28 01:23:39 No one is helping me ;-; Feb 28 01:23:45 Tricknology lol you need a Ryzen for android builds, not RPI Feb 28 01:24:19 LOL Feb 28 01:24:30 and LN2 to cool it? Feb 28 01:25:28 Well.. if they ever get rid of me I'm taking the build server with... since I bought it Feb 28 01:27:31 Tricknology: i solved the issue I had with the bits reading Feb 28 01:27:37 oh nice Feb 28 01:27:39 what was it? Feb 28 01:30:57 the conver to string functino was padding it with 0s on the left - but counting upto 8 not 7 (0 index) Which meant 0001 0011 was coming out as 00001 0011.. so i was 1 position off Feb 28 01:31:15 i thought it had something to do with the padding.. Feb 28 01:31:31 cause 011 was the only way you were going to get 3 from that Feb 28 01:31:59 0 = 8, 0 = 4, 1=2, 1=1 Feb 28 01:32:04 0011 Feb 28 01:32:07 =3 Feb 28 01:32:19 that sensor string bit manipulation issue again? or new / special ? (forget who I talked to) Feb 28 01:33:55 it was actually only 0, 1 or 2 but yes same issue as I was counting from 1 position more Feb 28 02:10:50 capella2 you do remember the name of that mozilla tech that lets browsers communicate p2p Feb 28 02:11:05 its early stage Feb 28 02:11:34 webrt? Feb 28 02:11:47 no ... Feb 28 02:12:26 the "talk" app? not sure what you refer to Feb 28 02:14:51 capella2 found it https://flyweb.github.io/posts/2016/11/01/introducing-flyweb.html Feb 28 02:15:04 * capella2 reads Feb 28 02:17:05 ... but still, "mozilla" ;p Feb 28 02:17:30 * capella2 not beating that horse still Feb 28 02:23:43 g00s, so, you mention this why? Feb 28 02:24:18 genl tie in with raspi and esp8266 from prev? Feb 28 02:33:38 capella2 thought you would know it, being moz and all Feb 28 02:33:52 google fu was failing Feb 28 02:36:07 heh, moz contributors seemed to weigh less than interns Feb 28 02:36:43 more expendable than star trek red shirts on a landing party Feb 28 02:38:16 i can't pass this Fb captcha :( **** ENDING LOGGING AT Tue Feb 28 03:00:00 2017