**** BEGIN LOGGING AT Sun Nov 27 02:59:59 2016 Nov 27 03:00:50 g00s: I don't think I'm gonna get an answer on my SO question: http://stackoverflow.com/questions/40824528/why-dont-touch-events-stop-when-a-dialog-shows Nov 27 03:01:03 Maybe a framework engineer will tackle it. :S Nov 27 03:01:26 I think (though I haven't checked) that the same happens with RecyclerView. Nov 27 03:03:16 I just can't see why Android continues with a touch gesture when the original window loses focus. Seems like a bad idea. Nov 27 03:17:13 TacticalJoke with each passing day i become less and less interested in android's "quirks" :D Nov 27 03:18:24 Yeah, it's kinda like someone telling you about their abusive relationship. The only ultimate advice you have is "leave". Nov 27 03:30:02 TacticalJoke maybe tomorrow it will be better :P Nov 27 03:30:56 Maybe if I stop trying to do unusual things then Android will stop hurting me. Nov 27 03:38:11 TacticalJoke nope Nov 27 03:38:58 i try to stay on the straight and narrow, still get cut :) Nov 27 03:44:03 * capella TIL Dr. John on PBS :) Nov 27 03:44:53 TacticalJoke use ConstraintLayout yet ? Nov 27 03:45:00 wonder what the verdict is Nov 27 03:45:03 Not yet. Nov 27 03:45:59 Apart from FrameLayout (for activities), I'm using custom ViewGroups and Views a lot in my app. Nov 27 03:46:13 oh my Nov 27 03:46:18 i stick to stock everything Nov 27 03:47:05 "Computer science is the science of moving cats (or images of cats) from one location to another" lol Nov 27 03:47:29 is it bad if my application causes a segmentation fault in libc? Nov 27 03:49:59 shouldn't Java take care of preventing that stuff? Nov 27 03:50:31 If I wanted to deal with segmentation faults I would program in C Nov 27 03:50:50 Melatonina well some stuff like strings are native code anyhow Nov 27 03:51:01 Java String == C++ string ;) Nov 27 03:58:10 TacticalJoke looks like MS is sharing windows 10 telemetry data with 3rd parties ... Nov 27 03:58:28 i'm really like what MS has been doing - but not this Nov 27 04:05:59 :S Nov 27 04:13:35 What would you do with something like this? https://gist.github.com/anonymous/7c23417e219cddfc7eefd3fdf940fd3d Nov 27 04:14:21 "Fatal signal 11 (SIGSEGV), code 1, fault addr 0x10 in tid 12047 (AsyncTask #1)" Nov 27 04:18:50 Melatonina: Does this happen every time, occasionally, or very rarely? Nov 27 04:18:58 every time Nov 27 04:19:12 When I perform a Retrofit call Nov 27 04:19:24 Response response = call.execute(); Nov 27 04:19:34 that's the last line that is executed Nov 27 04:21:04 Hmm, is any of these relevant? https://www.google.co.uk/search?q=retrofit+sigsegv Nov 27 04:21:41 Not Retrofit's fault or problem Nov 27 04:22:10 Yeah, I'm wondering whether he's doing something with Retrofit that's causing this. Nov 27 04:22:40 the request has to convert a java object to json to create the body (the parameter of the API call is passed in the body) Nov 27 04:22:50 maybe there is a problem in that conversion Nov 27 04:23:00 I'll try to convert an object manually Nov 27 04:23:04 It's not Retrofit, but something beneath Nov 27 04:23:20 Thanks Nov 27 04:23:50 http://stackoverflow.com/questions/28110943/retrofit-native-crash-fatal-signal-11-sigsegv Nov 27 04:24:02 That was a Gson problem Nov 27 04:24:29 Gson can't cause a sigsegv Nov 27 04:32:53 I had to check it because otherwise I wouldn't know what to do. Nov 27 04:33:14 Anyway, no problems with the serialization of the request parameter Nov 27 04:33:44 When did this SIGSEGV start happening? I presume stuff was working fine before. Nov 27 04:35:32 no. I created the Web API and the services behind it. Tested it with Postman. Now I'm trying to invoke the API from the Android app. It's the first time I invoke this API. I use retrofit in other places. This is my first retrofit call where the parameter is passed as body, too Nov 27 04:39:44 unless it's in the deserialization of the answer. It takes a bit of time before the segfault happens. Nov 27 04:45:02 Yes, the problem is in the deserialization of the answer. The API is being invoked and the requested service is performed! Nov 27 04:45:28 I made my Android application talk with my services!!! wOoot!! ! ! ! Nov 27 04:45:32 :D Nov 27 04:46:03 Ok, I'm a noob Nov 27 04:46:08 it shows Nov 27 04:47:52 So what exactly caused the SIGSEGV? Nov 27 04:48:15 I still don't know. Now I'll try to change the format of the response Nov 27 04:48:23 To see if the problem persists Nov 27 04:48:43 you aren't allowed to walk away until you know why Nov 27 04:49:26 I'll take a pause and test that Nov 27 05:10:57 * TacticalJoke calls security. Nov 27 05:11:13 "He must not leave the building." "Yes, sir." Nov 27 05:11:54 * g00s hears fire alarm go off Nov 27 05:17:18 TacticalJoke saw this book list on HN https://sivers.org/book Nov 27 05:17:38 pretty good, he's read more than i have Nov 27 05:17:49 but i will catch up ! Nov 27 05:20:58 This looks good: https://sivers.org/book/NotFuck Nov 27 05:23:29 Ok. There is a mismatch between the API actual response format and the retrofit interface declaration. I'm going to fix that now Nov 27 06:10:03 Hey. Is it possible to have tags in a string? I know it's possible to have b, i and u tags Nov 27 06:10:41 I basically have a help dialog and right now it's pure text and I have something like "Press the MODE button to...", but I'd like to change it to "Press the *insert button image here* to..." Nov 27 06:11:34 Faizan: I guess that you can't but just try Nov 27 06:12:09 I mean I've tried but i'm not sure if I'm getting the source from the drawable folder correctly Nov 27 06:12:22 i'm doing Nov 27 06:13:02 AFAIK the tags allowed are not documented Nov 27 06:13:08 you should reference to the source code Nov 27 06:13:14 Hmm Nov 27 06:13:33 What would be the advised way of doing what I want to do? Just a series of text/imageviews in a layout? Nov 27 06:14:02 Yes Nov 27 06:14:15 booooo Nov 27 06:14:16 There are properties to align with the base line of text Nov 27 06:14:42 Or use an WebView Nov 27 06:14:48 Hmm Nov 27 06:14:53 let me check webview out Nov 27 06:15:06 you want HTML, use a view designed for that Nov 27 06:15:33 Well I don't necessarily want html, I just have more web developing experience than android experience so tried to use that kind of solution :D Nov 27 06:15:44 If textviews with imageviews are the standard way then I'll do that Nov 27 06:16:43 Faizan: http://daniel-codes.blogspot.it/2011/04/html-in-textviews.html Nov 27 06:16:44 what would the root layout be? relativeLayout I guess? Nov 27 06:17:01 yes, I guess RelativeLayout would be a good choice Nov 27 06:17:07 Oh nice Nov 27 06:17:13 " Note: you have to include an ImageGetter to handle retrieving a Drawable for this tag)" Nov 27 06:17:24 I guess that's what I was missingf Nov 27 06:17:31 I'll look into that, thanks! Nov 27 06:17:37 your google game is much stronger than mine :D Nov 27 06:18:16 Faizan: http://stackoverflow.com/questions/21144227/whats-the-difference-between-alignbaseline-and-alignbottom-in-android Nov 27 06:18:44 yeah that stuff is similar in web dev Nov 27 06:20:26 g00s: the segmentation fault was caused by an attempt to de-serialize something like { "videoId": 12 } as in Integer. I adjusted the retrofit API interface declaration and now it works correctly Nov 27 06:20:53 so, it's actually possible to cause a segmentation fault with Gson Nov 27 06:23:16 JakeWharton: actually, misusing Gson can cause a sigsegv. I'm a living proof of it Nov 27 06:31:22 Melatonina still unsatisfactory answer, you still can't leave :D Nov 27 06:31:50 :( Nov 27 07:23:01 where does one go to find android developers? :( Nov 27 07:25:04 er... Australia! Nov 27 07:35:55 Can someone here tell me, if you catch an American incoming number in your app, does it come in a string without spaces and dashes ? Nov 27 07:36:57 lets say the number is "+1 787 111 2222" will the string be without the spaces ? Nov 27 07:37:15 I cant test this since i'm outide the US without a US phone number. Nov 27 07:38:42 Would someone in the US give this number a missed call for me so I can see what happens ?: +27790996334 Nov 27 07:39:14 Working on an app which needs to process incoming numbers. Nov 27 07:41:05 so, uh, you know it's some time between the middle of the night and Sunday morning, on a holiday weekend, in the US? :) Nov 27 07:41:49 also, you can probably get a US number from Skype-or-similar if you can't get anyone to call you Nov 27 07:41:57 I really DO need a nice sun clock globe thingy. Nov 27 07:42:10 I forgot that they are sleeping. Nov 27 07:42:19 thanks for the heads up. Nov 27 07:42:31 "OK Google" "beep" "time in New York" Nov 27 07:43:14 I'd like a nice floating hologram showing the earth with where the sun is shining and some times. Nov 27 07:46:22 I'm wondering if a skype call would be intercepted by the phone state listener and if it makes out part of the telephony stuff. Nov 27 07:49:54 I don't mean Skype->Skype - it does (or did?) VoIP->POTS Nov 27 07:52:18 anyway, time to go shamble away from zombies and window-shop for USB batteries Nov 27 07:54:01 have fun Nov 27 07:58:11 thepoosh http://i.imgur.com/Kk8BpvX.gif Nov 27 07:58:22 HEROIN! Nov 27 07:58:35 what's news raoul11 Nov 27 07:59:49 deploy in 1-2 days Nov 27 07:59:54 finaaaaaaly Nov 27 07:59:57 omgomgomgomg Nov 27 07:59:59 then Heroin Nov 27 08:00:01 so excited Nov 27 08:00:09 are you really? Nov 27 08:00:23 guessed so. Nov 27 08:00:47 yeah, I've been following your work for about 6 months now Nov 27 08:01:53 \: Nov 27 08:01:56 stalking even Nov 27 08:02:25 well... Nov 27 08:02:25 it was more 5.6% work, 94.4% imgur Nov 27 08:02:47 just liek u CORP do it Nov 27 08:08:50 raoul11: do you think that adding TreeObserverListener listeners causes memory leaks? Nov 27 08:09:23 noidea Nov 27 08:18:10 mostly its anonymous class, isnt it Nov 27 08:21:39 raoul11: what kind of game are you going to release? Nov 27 08:25:12 Ashiren: nope, the listeners themselves are usually built as anonymous classes Nov 27 08:25:24 but we saw some leaks on 5.x devices Nov 27 08:25:28 which sux Nov 27 08:49:04 raoul11: https://www.reddit.com/r/photoshopbattles/comments/5etd1l/psbattle_a_frog_with_snails_on_its_head/ Nov 27 08:50:17 cute Nov 27 08:51:46 found another bug thepoosh Nov 27 08:51:48 hurray Nov 27 08:52:06 ? Nov 27 08:52:16 some shit in my algo Nov 27 08:52:34 didnt made sure that a precondition is actually honored Nov 27 08:53:48 thepoosh i made a hipsterish icon like u wouldnt blv it Nov 27 08:53:54 u gonna h8 me for life Nov 27 08:55:42 raoul11: we have worse things Nov 27 08:55:48 so I can't hate you Nov 27 08:56:29 i know that deep inside you under that lil yamaka, there's a hipster waiting to emerge thepoosh Nov 27 08:56:40 hell to the no Nov 27 08:57:00 one of my bosses was on http://hasidorhipster.tumblr.com/ Nov 27 08:57:24 nsfw that plz Nov 27 08:57:38 infact, nsfl. Nov 27 09:00:55 raoul11: [NSFL] https://www.instagram.com/p/WsI0UwJyEr/ Nov 27 09:00:58 my boss Nov 27 09:01:24 lol Nov 27 09:01:32 tough to tell Nov 27 09:01:35 so? hipster or Hassid Nov 27 09:01:36 bettin jlm hipster Nov 27 09:01:51 the type that hangs at the hatulot square Nov 27 09:02:04 ha Nov 27 09:02:05 while cryin bout glutten food Nov 27 09:02:14 co-founder of Glide Nov 27 09:02:18 amirite? Nov 27 09:02:41 that old dude you gave the presentation is the other? Nov 27 09:02:46 +with Nov 27 09:02:53 no, he's not a co-founder of glid Nov 27 09:02:54 glide Nov 27 09:02:58 but he's the CTO Nov 27 09:03:51 for me yer the real CTO Nov 27 09:04:02 not the hero we want, but the hero we need. Nov 27 09:05:53 oh you Nov 27 09:06:11 raoul11: I wouldn't want to stick long enough to become the villan Nov 27 09:06:27 villane Nov 27 09:07:39 right Nov 27 12:08:46 hey guys, I have a problem with drawing text on screen Nov 27 12:09:15 I have a certain edit text that appears on the screen when the user presses something, they can drag the edit text around and it's in a box, and it's resizable and all that Nov 27 12:09:43 whenever they do enter some text into it and confirm I want that text to be drawn on the image in the place where the edit text was sitting, and the edit text now disappears Nov 27 12:09:56 http://pastie.org/10971022 Nov 27 12:10:38 line 23, if I feed drawText() the string, and then zero and then zero, it does paint the text but at the top left of the image Nov 27 12:10:52 the way it is now is not drawing, it's out of bounds somewhere being drawn, for sure Nov 27 12:14:37 now if I say 200 200, it draws at almost the middle of the screen Nov 27 12:14:56 so the thing is working, I just don't know how to calculate where exactly the edit text is, given its getX and getY Nov 27 12:16:31 seems there's a function called getLocationOnScreen Nov 27 12:17:17 hi, i have relativelayout + scrollview + textview, if i do textview.setText() its not possible to scroll to bottom? fullScroll + scrollTo doesnt work on scrollview :/ Nov 27 12:19:53 seems getLocationOnScreen is way more precise Nov 27 12:19:57 or at least it's meant for this Nov 27 12:31:24 asturel: http://stackoverflow.com/a/3310376 Nov 27 12:32:34 well i did that way https://bpaste.net/show/83afd96dbc24 Nov 27 12:34:17 asturel: http://stackoverflow.com/a/3310376 Nov 27 12:35:28 ahhhh, thnks Nov 27 12:35:58 np Nov 27 12:42:15 well its a bit annoying thats its bumping down... :D Nov 27 12:43:04 I decompiled an apk file to see how a layout is made i like, but in the xml there is something like this: app:visibility but it show up as red in Android Studio, what to do to get it work? :) Nov 27 12:43:39 add that namespace Nov 27 12:44:21 may its because it always 'redraws' because i return POSITION_NONE in getItemPosition : FragmentPagerAdapter ? Nov 27 13:30:26 Hi Nov 27 13:30:52 good afternoon Nov 27 13:31:25 I would like to know why do we want to use synchronised in methods and blocks in Bluetooth Chat application ?... Nov 27 13:31:59 I have create a bluetooth chat application without synchronised anywhere in the code... And it works fine Nov 27 13:41:26 well do you know what syncchronized do Nov 27 13:42:30 yeah it locks the object in case of more than one threads. Nov 27 13:46:59 methods inside the ConnectThread and ConnectedThread classes which extends Thread class are not synchronised. But the object of ConnectThread class is synchronised Nov 27 13:48:37 why is it so ?... Synchronising a method in which the object is used is as same as synchronising the methods of the object. Am I right ? Nov 27 13:51:10 hi Nov 27 13:52:02 I've got some display issues with my test widget for the app I'm developing. I've placed a file called test_widget.xml into res/layout directory. This file has a relative layout parent. I'm trying to figure out why the widget is bad displayed. This is test_widget.xml: http://pastebin.com/vcRvQZjZ and this is the screen with my widget: http://imgur.com/a/WUKcm Nov 27 13:52:17 the textview is contained into a relativelayout, inside the widget, I've tried to reduce the size but it's not working. How could I fix the xml in order to get the test widget with the same size (height and width) than the left widget? Nov 27 13:52:21 Any ideas? Nov 27 13:57:40 Hi, is it a bad idea to change type of _id in BaseColumns from integer to text? I am using mongodb at backend and it returns string id, so should i create new column for it or change _id? Nov 27 13:57:42 reduce the red area ? Nov 27 13:57:57 raoul11: I've tried, no effects Nov 27 13:58:12 im asking if thats what you're trying to do Nov 27 13:59:11 raoul11: this is the issue. If I try to reduce the size (width and height) from 40dp to lower values, it has no effects Nov 27 13:59:38 you're matchin the textview height/width to its parent Nov 27 13:59:42 and I show the red square always big Nov 27 14:00:32 raoul11: I've reduced the widget size Nov 27 14:01:05 so, if the parent reduces itself, also child should do, theoretically Nov 27 14:01:22 have you tried changing the width and height of textview ? Nov 27 14:01:34 (I've acted to the widget size) Nov 27 14:01:59 but the relativelayout also match its parent height and width Nov 27 14:02:18 Gowtham: I should try again. but if it matches parent, it should be equal to fill parent Nov 27 14:02:32 (that looks like obsolte) Nov 27 14:02:36 *obsolete Nov 27 14:02:44 match and fill are the same Nov 27 14:02:50 yeah Nov 27 14:03:15 raoul11: yeah, the widget contains the relative layout Nov 27 14:03:39 I'm not talking about match/file try something lower like some 20/30dp for both width and height. Nov 27 14:03:41 whats does your tree looks like? Nov 27 14:03:44 fill* Nov 27 14:04:22 raoul11: Gowtham http://pastebin.com/SgJeAN0r Nov 27 14:05:03 this is testwidget_info.xml Nov 27 14:05:30 the previous paste was test_widget.xml, instead Nov 27 14:06:11 why do i lost the focus when i do editText.getText.clear() ? either setText cause focus lost.. https://bpaste.net/show/892885720bad Nov 27 14:06:52 raoul11: Gowtham any ideas? Nov 27 14:07:07 never used AppWidgetProvider Nov 27 14:07:20 @cristian_c : in the previous paste you have given match_parent for width and height in the TextView right ? Nov 27 14:07:21 not even sure what it does Nov 27 14:07:27 it's the class needed to create widgets Nov 27 14:07:49 Gowtham: yes Nov 27 14:08:16 try changing both of the values to 20 or 30dp. Nov 27 14:08:34 Gowtham: I'vemtriedmwith several values Nov 27 14:08:42 *I've tried Nov 27 14:09:07 Gowtham: I can try also with your values, but I'll get the same result: no effects Nov 27 14:09:17 for all values you have the same output ? Nov 27 14:09:23 yes Nov 27 14:09:29 as I said before Nov 27 14:11:18 Gowtham: I cpuldmprovidemthe simple java widget code Nov 27 14:11:25 *I couldmprovide Nov 27 14:12:20 Gowtham: I don't know if needdd here (using paste service) Nov 27 14:15:34 @cristian_c : Can I see you complete code. Nov 27 14:15:39 Java alone Nov 27 14:16:18 Gowtham: manifest also Nov 27 14:16:22 *manifest file Nov 27 14:16:34 yeah Nov 27 14:16:42 ok Nov 27 14:19:36 Gowtham: androidmanifest: http://pastebin.com/sW8eNsEf Nov 27 14:22:01 Gowtham: http://pastebin.com/FLcKHz2w Nov 27 14:22:13 https://developer.android.com/guide/practices/ui_guidelines/widget_design.html Nov 27 14:22:16 TestWidgetProvider.java Nov 27 14:22:29 @cristian_c : have you tried changing dp to sp in the textview Nov 27 14:23:34 Gowtham: I've made a search about dp, sp, etc..... and I know dp is used in general by who develops Nov 27 14:24:34 Gowtham: I can try, but I'm not very sure it will do the trick Nov 27 14:24:36 :( Nov 27 14:25:04 sp is for text because user can adjust text size in settings Nov 27 14:25:36 cristian_c, it has been weeks now (if not monthes) that you still ask about the same thing Nov 27 14:26:05 yes... but while the user is specifying the font size then it's recommended to use sp Nov 27 14:26:06 don't you get it, your minwidth and minHeight are obviously lower than a 1x1 grid size Nov 27 14:26:49 https://developer.android.com/images/widget_design/widget_terms.png Nov 27 14:28:25 It is a good practice to be conservative with minWidth and minHeight, specifying the minimum size that renders the widget in a good default state. For an example of how to provide a minWidth and minHeight, suppose you have a music player widget that shows the currently playing song artist and title (vertically stacked), a Play button, and a Next button: Nov 27 14:30:12 ... the relevant part is in bold: When your widget is added, it will be stretched to occupy the minimum number of cells, horizontally and vertically, required to satisfy its minWidth and minHeight constraints. Nov 27 14:30:31 exactly Nov 27 14:31:07 in the screenshot, it's next to anpther widget Nov 27 14:31:17 *another Nov 27 14:31:37 a more little widget Nov 27 14:31:57 they probably added some padding or margin on a transparent bg Nov 27 14:33:33 adq: also wifi/bt/sync standard widgets have got a lower height size Nov 27 14:33:40 than my test widget Nov 27 14:33:53 are you even reading or are you another markov chain bot? Nov 27 14:34:20 https://developer.android.com/images/widget_design/widget_terms.png << make it fit your example on the left of your previous img link Nov 27 14:34:47 adq> they probably added some padding or margin on a transparent bg <- so , it's then also for android standard widgets Nov 27 14:35:46 ok, it refers to 'margins' Nov 27 14:36:00 these widgets are not really there anymore anyway since api 21 or below (i don't remember when exactly) Nov 27 14:36:02 in order to get widget less fat Nov 27 14:36:20 the widget on your pic looks like android 2.3 to 4.4 Nov 27 14:36:22 not sure too Nov 27 14:36:29 you could look the source Nov 27 14:36:31 4.2.2 Nov 27 14:37:31 I'll try to work with margins also in the test_widget, though I've tried in past also with the real widget Nov 27 15:05:39 the terror returns Nov 27 15:12:41 urban terror Nov 27 16:06:29 I would like to know why do we want to use synchronised in methods and blocks in Bluetooth Chat application ?... Nov 27 16:06:42 I have create a bluetooth chat application without synchronised anywhere in the code... And it works fine Nov 27 16:06:49 created* Nov 27 16:27:58 JakeWharton who are all those dogs ... some yours? Nov 27 16:44:29 Hi folks. Can I run an AVD using my system qemu instead of the qemu binary that is packaged with the tools? Nov 27 16:48:34 Peste_Bubonica google qemu is modified .. so guessing no Nov 27 16:49:34 its a shame.. its linked with qt, qtwidgets and some other libs that I didn't installed Nov 27 16:50:41 they test on ubuntu Nov 27 16:55:07 g00s, I will try. I'f didn't succes, I will build this libs to resolve the links. Nov 27 16:55:44 g00s, its linked with x86 versions too. I will need to compile 32bit version of qt, and everything else too :) Nov 27 16:56:35 Peste_Bubonica, or use another solution like genymotion (virtualbox under the hood) Nov 27 16:57:12 adq, thanks for the tip. I didn't know genymotion Nov 27 16:57:13 i find it weird they don't provide the required dependency with AVD Nov 27 16:57:27 Peste_Bubonica, it's much better than AVD anyway Nov 27 16:57:51 until proven contrary (has been years, still not happening but i admit recently google stepped up their game a bit) Nov 27 16:59:15 adq, about android you mean? Nov 27 16:59:26 nope, about AVD vs genymotion Nov 27 16:59:42 AVD was really obnoxious in the past Nov 27 17:00:02 so gross Nov 27 17:13:14 YO everyone Nov 27 17:13:20 * DelphiWorld is back after a long time Nov 27 17:13:36 guys what do this mean? #FFFFFF Nov 27 17:14:54 Primary text color for the style? Nov 27 17:24:46 adq, I agree. It gets better with X86 images and KVM Nov 27 17:25:22 Melatonina: :P Nov 27 17:25:23 in fact, it can't run with a normal qemu.. -avd option missing Nov 27 17:25:56 I will have to build qt, puse or apulse, and with 32bit support.. =/ Nov 27 17:31:43 DelphiWorld: hi :) Nov 27 18:31:28 raoul11: I'm @ google Nov 27 18:31:53 naice Nov 27 18:31:58 say hello to fontaine Nov 27 18:33:41 she ain't here Nov 27 18:33:55 think I'm going for a burger on Karlebach after Nov 27 18:33:58 wanna join? Nov 27 18:34:46 \: Nov 27 20:35:47 hi Nov 27 20:35:49 i want to add something to my app that will check a remote server every, say, 5 minutes. it should do this even if the user has not opened the app in a long time and it should not wake up the device if the user is not using it. Nov 27 20:35:51 and i want to make sure i do it the rightest way Nov 27 20:35:58 what's the correct way to do it? i'm looking around and seeing a lot of different ways to run tasks in Android Nov 27 20:38:52 theres lib for job scheduling Nov 27 20:39:33 what do you recommend? main thing is this is just a utility app, i don't want it to be waking up the phone or anything that would cause undue battery drain Nov 27 20:39:51 https://developers.google.com/android/reference/com/google/android/gms/gcm/GcmNetworkManager Nov 27 20:40:06 but it might be a bit deprecated, now there should be something fcm based Nov 27 20:40:52 maybe this https://github.com/firebase/firebase-jobdispatcher-android Nov 27 20:40:55 i haven't seen this before, i'll give it a look Nov 27 20:41:30 oh that looks ideal from the README Nov 27 20:41:39 well you can schedule things and provide some requirements like dont fire on low battery or only when wifi on Nov 27 20:42:08 thanks man i think looks like what i need Nov 27 20:42:26 the more direct, AlarmManager and JobScheduler become more pain in the ass lately Nov 27 20:42:30 with doze mode and whatnot Nov 27 20:42:34 yeah i was looking at those Nov 27 20:42:50 +1 to the "pain in the ass" assessment Nov 27 21:01:27 Ashiren I like that, "a bit deprecated" Nov 27 21:59:41 if i want my app to connect to an external mySQL database Nov 27 21:59:50 should i be working with SQLite? Nov 27 22:00:14 or is there another/better way to do it? o: Nov 27 22:00:29 i just realized the tutorial i was following was from 2011 :/ Nov 27 22:06:20 am I really gonna need to use php for this? http://stackoverflow.com/a/12805436/4733382 Nov 27 22:07:50 hexagonSun_ that Q has been asked, and answered, since 2009 Nov 27 22:08:05 yes, you need a service or something Nov 27 22:09:56 i'm sorry g00s, i'm new, could you recommend me a good tutorial or information base on how to? i know i can google it myself and i am doing it, but i always get a better link asking here than on google :/ Nov 27 22:10:37 i don't always realize right away what API the example is working on since i'm laking experience Nov 27 22:14:26 for instance, this one is from 2012 http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/ how can i quickly now if there's some sort of deprecated function or something? Nov 27 22:21:47 hexagonSun_ use google to search for stuff from this year O.o Nov 27 22:23:23 hexagonSun_ also google tutorial for retrofit Nov 27 22:23:29 from this year :P Nov 27 22:24:44 ok g00s i will, thank you :) Nov 27 22:26:01 hexagonSun_ https://www.google.com/advanced_search Nov 27 22:26:22 you can specify "last update: this year" Nov 27 22:26:51 thanks Nov 27 22:27:22 what's your opinion on JDBC tho? it seems a little bit easier than the whole LAMP stuff D: Nov 27 22:29:59 nevermind, both use LAMP Nov 27 22:30:22 so, PHP+JSON vs JDBC? hmm.. Nov 27 22:31:17 can't use JDBC Nov 27 22:32:35 security issues? Nov 27 22:32:39 hexagonSun_ if you used postgresql, you could use postgrest http://postgrest.com/ Nov 27 22:33:02 hexagonSun_ no, JDBC isn't workable for wan Nov 27 22:37:13 it's mySQL specifically :/ Nov 27 22:37:25 i'll do the whole php/json workaround on LAMP Nov 27 22:37:29 ughhhh Nov 27 22:44:44 i'm sorry to bother you so much g00s, but would you better recommend me to use straight up retrofit or do the old php/json thing? (I'm working with API 19) Nov 27 22:45:30 hexagonSun_ you have to learn about web services ! Nov 27 22:45:45 your questions indicate confusion ;) Nov 27 22:46:22 i do, ok thank you g00s Nov 27 23:19:50 How can I fix "source code does not match bytecode" ( https://code.google.com/p/android/issues/detail?id=225199 ) in AS 2.2.2? Need to step through AbsListView.java in the debugger but can't. Nov 27 23:20:17 I've tried reinstalling but it seems to be an IntelliJ bug. Nov 27 23:26:56 ListView is quite surprising. In some cases, it actually scrolls from `onInterceptTouchEvent` (rather than `onTouchEvent`). Nov 27 23:27:12 TacticalJoke its a monster Nov 27 23:27:21 LV and TextView ... incomprehensible Nov 27 23:27:44 Yeah. I ended up making a TextView replacement, one which is way simpler. Nov 27 23:28:42 oh man, apply to google ! Nov 27 23:28:56 TextView shouldn't have to do too much, since android.text.Layout does much of that hard work, but TextView still ends up doing everything you could ever want. Nov 27 23:32:21 g00s: This view is really simple. It just displays text (and allows link clicking). :D Nov 27 23:33:51 Not enough to impress Google overlords. Nov 27 23:51:25 Hi guys, has anybody used this lib https://github.com/h6ah4i/android-advancedrecyclerview ? Nov 27 23:51:35 Was it successful? Nov 27 23:53:20 Is it worth trying? I tried to introduce it to the existing project I'm currently working on, used the code from teh very basic example and it crashes with one of the errors reported in issues. I see it's quite popular but at the same time has 93 open issues and crashed on the very first attempt to use it... Nov 27 23:53:35 But it has so many cool features... Nov 27 23:54:02 I'm wondering if it worth trying to use it in a commercial product Nov 27 23:56:36 I've never opted for a 3rd party recyclerview. It's usually a fairly large part of an application, and it's rather easy to implement and customize. Nov 27 23:57:15 But if you find a nice supported one, just make sure its MIT licensed and go with it. Nov 27 23:59:28 orbyt_ thx for advice! I also think it might be dangerous to rely upon 3rd party solution... It's just that lib has really cool swipe features which thb I just don't want to implement myself :) Nov 28 00:01:10 If's it's licensed correctly you can always fork it and maintain you're own version. Nov 28 00:18:40 are PopupWindows supposed to be declared on Manifest like activities? Nov 28 00:23:20 hexagonSun_: No, only application components (activities, services, etc.) are declared there. Nov 28 00:24:41 https://developer.android.com/guide/components/fundamentals.html#Components Nov 28 00:25:09 damn my app is crashing and i don't know why ToT Nov 28 00:25:42 Cmd/Alt + 6 > LogCat. That's where you'll find crash info. Nov 28 00:26:16 is immersive mode preventing my damn popup window to show? hmm Nov 28 00:31:09 any ideas how to fix or silence the error "warning: Ignoring InnerClasses attribute for an anonymous inner class"? i tried adding "-keepattributes EnclosingMethod" to my proguard-rules.pro but it didn't work. i'm not sure if it even reads the proguard-rules.pro... i have cleaned the project but i'm not sure if i have to do something else too Nov 28 00:31:26 offtopic have you seen there is some support to postgres in parse server? Nov 28 00:35:56 abax: Why aren't you sure if it reads `proguard-rules.pro`? Your build.gradle should contain `proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'`, in which case it will read it. Nov 28 00:36:12 Or the optimized one. Nov 28 00:37:07 ok, it is there. so it reads it Nov 28 00:38:19 abax: For a start, why are you getting this error? Nov 28 00:40:12 TacticalJoke: because i'm using this library: https://github.com/ampiri/ampiri-android-sdk Nov 28 00:41:42 i tried compiling their example and it gave the same error. then i put some settings to the proguard-rules.pro, but i'm not sure what i exactly did because i tried multiple different things, and it suddenly started working. but when i tried to do the same thing with my own project i got the same error again and could fix it Nov 28 00:44:52 couldn't* Nov 28 00:51:30 i guess i'll ask from those guys who made the library Nov 28 01:09:27 TacticalJoke have you seen this http://shop.oreilly.com/product/0636920047391.do Nov 28 01:10:25 https://www.amazon.com/Programming-Beyond-Practices-More-Monkey/dp/1491943823 Nov 28 01:10:43 i think i'll get it based on michael feather's review, he's pretty famous too Nov 28 01:15:53 assuming MF == MCF Nov 28 01:16:32 Looks interesting. Hadn't heard of it before. Nov 28 01:22:30 g00s: I feel way more productive with my new laptop. I can happily keep the emulator open for hours, for example. Nov 28 01:23:45 i can't use the emus. they don't have latest version of GMS Nov 28 01:23:50 total incompetence Nov 28 01:24:05 or more likely, 'not giving a fuck' Nov 28 01:24:59 i've never seen a company botch up their tooling / dev stuff so badly Nov 28 01:27:19 Oh. In any case, the developer experience is a lot nicer with the new computer. Nov 28 01:27:38 Builds are faster, autocomplete is faster, ... It all feels easier. Nov 28 01:28:36 My Google Play updates happen in less than 10 minutes lately. Nov 28 01:29:38 I wonder whether they and I have reached "an understanding". Nov 28 01:32:30 I suspect that after awhile we just have our relataive threat-level downgraded Nov 28 01:32:48 Either that or they're now caching the results of the last heuristic analysis and only looking at changed classes. Nov 28 01:33:17 Last year I got used to updates taking 6-10 hours to roll out. Nov 28 01:33:34 Lately it's been less than two hours, and a hair over one hour twice Nov 28 01:33:41 Yeah, mine were taking hours only a few weeks ago. Nov 28 01:33:49 Just now, it took around two minutes. Nov 28 01:34:03 Sweet Nov 28 01:51:45 Are any of you guys familiar with Android Studio? Nov 28 01:52:31 never heard of it Nov 28 01:52:45 Really? .-. Nov 28 01:52:45 Do they do group photo shoots? Nov 28 01:53:19 How have you never heard of Android Studio, but you're in the "android-dev" channel Nov 28 01:53:34 Is that similar to Visual Studio? Nov 28 01:54:06 How did you come to #android-dev thinking we wouldn't be using it? Nov 28 01:54:11 Seriously. Nov 28 01:54:17 Ask the actual question already Nov 28 01:54:49 Why is the java code so different from other java coding? Nov 28 01:55:01 tassilo_tazz: You have the best questions. :D Nov 28 01:55:08 lul .-. Nov 28 01:55:21 It's just so different from Eclipse. Nov 28 01:55:36 With normal Java coding, you have to zig. On Android, you have to zag. Nov 28 01:55:49 And I can't manage to find a good tutorial series or a place to learn it that goes in-depth. Nov 28 01:56:11 there was one on reddit a few days ago Nov 28 01:56:41 It's just that it's very different from coding in Eclipse Nov 28 01:57:17 New IDE, new SDK. Why would it be the same? Nov 28 01:57:25 New platform. Nov 28 01:57:37 Meh, true, but it's still supposed to be Java, right? Nov 28 01:57:55 Java language, JVM-like platform. Nov 28 01:58:32 How'd you guys learn how to Program in android Studio Nov 28 01:58:47 by using it... Nov 28 01:59:16 Ok.... Nov 28 01:59:42 My other question is, is it necessary to learn XML? Nov 28 01:59:50 lol Nov 28 01:59:59 you can't spare ten minutes? Nov 28 02:00:05 tassilo_tazz maybe app inventor would be better choice for you ? Nov 28 02:00:06 ? Nov 28 02:00:13 nonnonnonn Nov 28 02:00:26 I know Java. I don't need to use a block dragging program Nov 28 02:00:29 Does one even *learn* XML? Nov 28 02:00:41 Maybe technically. Nov 28 02:00:59 In other words, do I need to know it TacticalJoke Nov 28 02:01:06 Yes. Nov 28 02:01:13 ok Nov 28 02:01:21 But I doubt you have to put in effort to learn it. Nov 28 02:01:47 Unless you're writing an XML parser. Nov 28 02:02:03 True, but what's more confusing is the .java file because the code isn't like the java im used to lol Nov 28 02:02:29 anyways I think you guys had enough of my stupid questions so cya I guess lol Nov 28 02:02:46 it can't possibly be 'that' different, it's still java... Nov 28 02:03:42 tassilo_tazz: please more stupid questions Nov 28 02:03:56 lol Nov 28 02:05:02 tassilo_tazz is tonights entertainment :D Nov 28 02:05:26 but it's midday ... Nov 28 02:05:43 it's evening Nov 28 02:05:44 in the sticks maybe ... Nov 28 02:05:53 i think my clock is upside down again Nov 28 02:06:02 2:05am crew represent. Nov 28 02:08:57 I can't wait till tassilo_tazz learns about the Activity life-cycle. Nov 28 02:09:43 I already know that, isn't an Activity a new "screen" Nov 28 02:10:48 I'll take the silence as a yes Nov 28 02:11:09 til: orbitons... I guess relativistic quantum puters will beat out adiabatic Nov 28 02:11:49 tassilo_tazz: I used to think that. Nowadays, I'm leaning towards "An activity *has* a screen". Nov 28 02:11:54 activity is the code behind a view Nov 28 02:12:14 an activity is like a void main() Nov 28 02:12:17 O Nov 28 02:12:40 So the activity is the code behind the screen, got it. Nov 28 02:13:38 view... it's a magic word Nov 28 02:13:40 Sweet, I just found this awesome course on Udacity. Hopefully in no time I'll be an expert :D Nov 28 02:54:37 lol this statistics book on amazon, 832 pages long, has warning "CHOKING HAZARD -- Small parts. Not for children under 3 yrs." **** ENDING LOGGING AT Mon Nov 28 03:00:00 2016