**** BEGIN LOGGING AT Sat Dec 05 02:59:58 2015 Dec 05 03:00:37 if I want to handle when the AlertDialog is exited in any way other than pressing one of the buttons on it (e.g. tapping off it, pressing back button) should I be using onCancelListener or onDismissListener? Dec 05 03:04:40 dismiss sounds choice, as cancel would mean someone pressed button. where you askin this issue similar earlier, like last night? Dec 05 03:17:52 canvs2321-: yeah maybe haha if I did I forgot the answer Dec 05 03:18:02 thanks though Dec 05 03:22:16 Hi, I'm try to make a custom App bar using these instructions http://developer.android.com/training/appbar/setting-up.html Dec 05 03:22:32 but it's not coming out right Dec 05 03:22:34 =http://imgur.com/62wwEZu Dec 05 03:22:37 http://imgur.com/62wwEZu Dec 05 03:23:06 The toolbar is not replacing the default app bar it just appears below it Dec 05 03:23:13 and idea what's wrong? Dec 05 03:24:13 Use `Theme.AppCompat.[Light.]NoActionBar`. Dec 05 03:27:04 TacticalJoke, pretty sure I did Dec 05 03:30:56 TacticalJoke, here's my manifest http://paste.ofcode.org/ECW6i7R7J2ixW4x55fDVRQ Dec 05 03:31:17 AddAlarmActivity is where I'm try to create the app bar Dec 05 03:34:06 Squeegee: What code are you trying? Dec 05 03:34:25 oh I think I figured it out wait a minute Dec 05 03:35:18 okay yeah I made a mistake in the layout file that was causing it Dec 05 03:36:34 still has that strange off white color, though Dec 05 03:41:22 Here are the instructions for running AS with the JetBrains JRE as I found last night: https://www.reddit.com/r/androiddev/comments/3ve3z1/android_studio_subpixel_antialiasing_on_os_x_with/ Dec 05 03:54:55 TacticalJoke, that guide doesn't make it clear how I associate the menu xml file with the toolbar Dec 05 04:29:15 hello all :) Dec 05 04:29:38 have you built any apps frinfernoo? Dec 05 04:29:56 I'm currently working on my first app dreddyG ;) Dec 05 04:30:03 you? Dec 05 04:31:33 2 or 3 of them nothing major Dec 05 04:31:58 want me to test it? Dec 05 04:33:24 ill use a x86 virtual machine incase the code isnt compiled right and maliscous Dec 05 04:33:46 or bluestacks Dec 05 04:34:56 I actually came here with a question: in my onStart(), I'm using a PaletteTransformation to generate a Palette from an image loaded from Picasso, and then I have a list adapter, which is doing the same thing in order to style a view in the row. the problem is, only one of those Picasso calls happens. if I don't call the one in the list, it works fo Dec 05 04:34:56 r the onStart() call, but if I do, I have to restart the activity to see the effect. also, it only works on the last visible row, until I restart the activity or scroll. what's going on? can I reuse the Picasso call instead of calling it every row? Dec 05 04:35:11 and dreddyG, its not ready for testing even lol Dec 05 04:40:44 screen shot imagure? Dec 05 04:45:44 dreddyG, hold on Dec 05 04:48:00 lol I meant freddyG Dec 05 04:48:09 I'll have to do a video so you can see Dec 05 04:48:47 ugh, I have to delete drawable-anydpi-v21/*.xml Dec 05 04:48:57 can't ship with vectordrawable for notification icons because it breaks moto display :( Dec 05 04:51:23 pfn always so negative. look at the bright side, its not web dev Dec 05 04:55:02 im no professional but i will try to help you Dec 05 04:57:02 anyone is welcome to help ;) I'm putting up my video along with a commit of the current code lol Dec 05 04:58:35 so this is the class with the code: https://github.com/drinfernoo/Cuber/blob/master/app/src/main/java/com/blango/cuber/CubeDetailActivity.java Dec 05 04:58:46 relevant calls at lines 85 and 244 Dec 05 04:58:59 few more seconds for the video Dec 05 04:59:14 https://youtu.be/uwonV2ZcCjw Dec 05 05:03:36 zip file, there's other issues, and I may just be using Picasso in a stupid way lol this one is bugging me though Dec 05 05:03:44 *zip file Dec 05 05:03:46 take me 3 hours i could probly make it happen Dec 05 05:03:49 dammit lol Dec 05 05:04:11 not readily apparent what I'm doing wrong though? Dec 05 05:06:19 how did you record your screen do you have root using asc Dec 05 05:08:03 I have root, but I used Rec Dec 05 05:08:30 https://play.google.com/store/apps/details?id=com.spectrl.rec Dec 05 05:09:14 i have stuff i paid for that doesnt work , at least i think i paid for it Dec 05 05:10:02 play store search isnt working Dec 05 05:11:57 I sent a link ;) Dec 05 05:13:01 whoops lol Dec 05 05:17:49 ugh the internet at my work suuuuucks Dec 05 05:49:00 I've been spending ages trying to work this one out: I have an adapter (class that extends BaseAdapter) and in its getView I inflate a layout and then alter it (standard stuff I think). But I also have an empty in that layout (assigned to colorStrip) that I want to update the color of. I've been trying colorStrip.setBackgroundColor(ContextCompat.getColor(context, R.color.color_orange)) but it doesn't change that view's Dec 05 05:49:01 color. Dec 05 05:53:28 oh never mind - it's that the view isn't actually visible at all. I had already tested it by setting the background color in XML and looking at the design tab and that background did show, but it seems like the actual device is different Dec 05 06:02:47 ContextCompat.getColor(Context, int)... jebus, at this rate, in 3 years support-v4 will be over 65k methods. Dec 05 06:06:31 hello world will need multi dex :( Dec 05 06:10:39 Hello guys Dec 05 06:11:23 Has anyone dealt with this issue with Google Play Services? (The installed version of Google Play services is out of date android studio) Dec 05 06:11:47 *(The installed version of Google Play services is out of date) - just that. Dec 05 06:12:43 IO.delete(res / "drawable-anydpi-v21") Dec 05 06:12:44 ya like every other week Dec 05 06:12:46 I guess that will have to do Dec 05 06:19:25 @pfn are you talking to me? Dec 05 06:19:34 no Dec 05 06:19:36 ok Dec 05 06:19:55 Does anyone know how to solve that issue? the one I mentioned. Dec 05 06:21:31 ranguro, where/when are you seeing this message? Dec 05 06:21:46 so there's a deep link to a fragment in your app from an email or mobile broswer Dec 05 06:21:58 how can I see the Intent that opens your app Dec 05 06:23:04 At the OnConnectionFailed Listener Dec 05 06:23:24 sounds about right. It's not working Dec 05 06:23:41 it used to, supposedly Dec 05 06:24:12 surf2b1 Dec 05 06:24:36 ranguro, when running in the emulator? Dec 05 06:24:47 Yes Dec 05 06:24:50 http://stackoverflow.com/a/30432482/1048340 Dec 05 06:24:58 I tried all the stackoverflow solutions Dec 05 06:25:21 I didn't understand that solution Dec 05 06:25:24 what he was referring to Dec 05 06:25:31 So you are using the latest emulator and Google Play Services is up-to-date on the device? Dec 05 06:25:35 It should be working on Marshmallow Dec 05 06:25:44 Well Dec 05 06:25:55 The error message says that it is not up to date. Dec 05 06:26:03 In this moment Im using the latest emulator Dec 05 06:26:08 on Marshmallow Dec 05 06:26:43 And I'm using the latest version of play services in Graddle. Dec 05 06:27:54 sounds like you're stuck too Dec 05 06:28:10 I forgot, programming sucks Dec 05 06:31:28 ranguro i think you need (in your app) to verify device has version of play services you need, and if not, then redirect to play store ... uh, maybe thats old advice Dec 05 06:32:07 then the user (you) will have to update play services Dec 05 06:32:16 on the emu Dec 05 06:33:53 i always hated this huge blob, and its version dependencies on you app Dec 05 06:33:55 I'm using the emulator g00s Dec 05 06:34:04 no other platform has this problem Dec 05 06:34:28 how do I update the play services in my virtual device? Dec 05 06:36:10 hm seems x86 emu has greyed out update button Dec 05 06:37:34 ranguro: You have to install it. Dec 05 06:37:49 I think I cant Dec 05 06:37:52 https://code.google.com/p/android/issues/detail?id=189036 Dec 05 06:38:08 ranguro: You can... But I don't think google provides it for free like that. So you probably can't. ;) Dec 05 06:38:26 ranguro: There are other app markets though. Dec 05 06:38:37 ranguro: f-droid is one I am aware of. Dec 05 06:39:19 eh, this is what i hate about android development - google creates these stupid problems by not designing this right Dec 05 06:39:46 and if you depend on play services, like most people do, its a HUGE pain in the ass Dec 05 06:40:07 lets say you want to test api 22. or api 21. god knows what GMS versions are on those emus haha Dec 05 06:42:02 kitkat emu probably has GMS 3 Dec 05 06:43:23 g00s ranguro, Pretty sure genymotion comes w/ GPS Dec 05 06:43:37 no it doesn't ... Dec 05 06:43:42 I think genymotion is one solution. Dec 05 06:43:57 I mean to the problem with play services Dec 05 06:44:05 now that I remember Dec 05 06:44:16 it actually lets you to update play services. Dec 05 06:45:10 g00s, oh, right. Looks like you can flash gapps though. http://stackoverflow.com/questions/20121883/how-to-install-google-play-services-in-a-genymotion-vm-with-no-drag-and-drop-su Dec 05 06:46:06 its comically ridiculous, the whole thing Dec 05 07:05:47 Hi, I have a design question, I connect with the android application to another device via bluetooth, and as a part of my initialization, I query the device for it's HW and FW version, but since the connection to the device is done in an async task, sometimes I might query the device while it's not connected Dec 05 07:06:24 So, is it a bad design to branch out the querying of the device into an other async task and adding a busy-wait loop until the device is conencted? Dec 05 07:15:33 nadav, Are you listening for bluetooth events in a BroadcastReceiver? Dec 05 07:22:23 Nope, I have a callback that the SDK calls when the answer arrives from the device Dec 05 07:22:32 (Using Microsoft Band SDK) Dec 05 09:01:11 nadav, why do you want to loop if theres a callbackk Dec 05 09:06:37 genymotion has gps Dec 05 09:06:42 even the free version Dec 05 09:21:27 Why is passing parameters to Fragments through the constructor not recommended? Dec 05 09:22:30 autrilla: because it can get killed, and then restored, and then you dont have those params anymore Dec 05 09:22:35 hence the bundle workaround Dec 05 09:22:37 autrilla, because the fragment manager might destroy the fragment at some time and restore it Dec 05 09:22:47 and needs an emtpy constructor for that Dec 05 09:27:16 osxorgate: I don't think you can bundle a callback, right? Dec 05 09:27:28 you shouldn't :) Dec 05 09:27:58 what are you trying to achieve Dec 05 09:28:42 Not having my activity/parent fragments implement tons of interfaces Dec 05 09:28:55 I prefer passing them an anonymous function Dec 05 09:29:22 autrilla, you could also use a bus Dec 05 09:29:23 them means "child fragments" there Dec 05 09:29:46 danijoo: it is essentially the same thing Dec 05 09:36:31 i have a square custom view, that draws a bitmap of equal size in onDraw(). Can i use Matrix to rotate this bitmap 90 degrees in the draw? Dec 05 09:36:38 not quite sure what happens down the hood Dec 05 09:37:49 danijoo, good point, I mistakingly thought that the callback is called from the backgrond thread Dec 05 09:37:59 so it would forbid me of editing the UI Dec 05 09:38:03 but I'm not sure this is the case now Dec 05 09:38:11 osxorgate, i think so Dec 05 09:38:47 or maybe its better to rotate it once and keep a reference to the rotated one to reduce the computation time Dec 05 09:39:19 i wonder if it internally just uses different coords to read from the texture or something Dec 05 09:47:01 is there a way to let gradle import vector assets automatically if they changed? Dec 05 09:47:11 instead of doing it manually Dec 05 09:49:07 danijoo: not sure what you're doing but gradle should be able to detect changes if you place the output in a certain dir.. check danlew's blogpost on gradle plugin Dec 05 09:50:54 osxorgate, i have a bunch of vector assets i create vector drawables from. Right now if i edit them i have to ¨import¨ them into AS every time to compile vector drawables from them Dec 05 09:51:07 it would be nice to have gradle do that as part of the build Dec 05 09:54:57 should be possible Dec 05 09:55:24 looking for a plugin right now. Dec 05 09:55:55 http://blog.danlew.net/2015/04/27/victor/ Dec 05 09:56:16 also matrix.setRotate(90, mBitmap.getWidth()/2, mBitmap.getHeight()/2); \o/ Dec 05 09:56:17 nice. thanks! Dec 05 10:10:26 osxorgate: You could also try one of the setRotation methods on View.. No idea if that's more or less efficient tho Dec 05 10:11:58 SimonVT: i will try it, maybe it will automatically rotate the touch events as well, which would be 2 birds with 1 stone for me Dec 05 10:12:25 im making a game with a square board, where i want to keep track of 1 gamestate, and rotate the view 180 degrees for the opposite player Dec 05 10:12:38 instead of rotating the internal gamestate, which will be a hassle Dec 05 10:13:20 on the other hand.. it will also flip any pawn graphics... maybe i should just rotate the gamestate.. Dec 05 10:13:51 or draw the pawns upside down :) Dec 05 10:14:00 entering shady territories.. Dec 05 10:21:34 SimonVT: it does what i want though.. gotta check out the internals though Dec 05 10:27:55 i dont see in the source how it maps the touch events.. Dec 05 10:31:59 ViewGroup handles that Dec 05 10:33:54 as in, the containing ViewGroup sees the view is rotated, and passes it transformed coords Dec 05 10:34:00 makes sense Dec 05 10:34:30 Yeah Dec 05 10:34:34 And translation, and stuff like that Dec 05 10:34:50 well this sure makes my life a lot easier, thansk :) Dec 05 10:39:19 Do the new support libraries support AppCompatButton tinting on < 21? Dec 05 11:05:22 Anyone use Retrofit+OkHttp? I have trouble caching requests and using that when a network error occurs Dec 05 11:08:51 what have u tried? Dec 05 11:12:32 danijoo: Well I can set the cache age header but that loads the cache even when no network error occurs... Dec 05 11:16:55 dimitrovskif, you can use 2 different instances of retrofit with the same okhttp instance under it. one instance ignores cache-header, the other uses it Dec 05 11:17:20 and if you get an error from #1, you try the other Dec 05 11:20:13 not very elegant but thats how i do it Dec 05 11:20:24 danijoo: there's no way to switch instances without copy pasting code on each request (unless you do a request interceptor which is going to change some global variable ughh) Dec 05 11:20:39 there is Dec 05 11:23:28 JakeWharton: how do you implement cached response for network errors only? Dec 05 11:23:56 (retrofit 2 & okhttp 2.6) Dec 05 11:27:16 dimitrovskif, you make a request, cache it and skip the cache on future request Dec 05 11:27:30 if there is an error you hit the endpoint again without skipping Dec 05 11:28:41 this can be done by manipulating Cache-Control headers with ´max-stale´ attribute Dec 05 11:29:22 danijoo: problem is, that can only be done as a request interceptor.. And that would also cache POST reqs. too right? Dec 05 11:29:46 not if you tell the interceptor to not cache posts Dec 05 11:30:41 how can i enable javadoc for play services code? Dec 05 11:31:07 I am not sure if "shouldCache(req): isGET(req)" is a smart algo... But assuming my API is RESTful, GETs should be cacheable and stateless Dec 05 11:32:23 why not? Dec 05 11:32:59 if(isGet) addCacheControlHeader() Dec 05 11:33:01 very simple Dec 05 11:44:02 Hi . How can I stop my app from going into the horizontal layout when the phone is tilted? I want the app to work in the upright position only! Dec 05 11:44:04 ? Dec 05 12:19:10 cart_man, there are dozens of SO answers about that Dec 05 12:25:08 danijoo: Hmm where though? Dec 05 12:26:18 google how to fix position Dec 05 13:07:45 What's a better place to ask about kotlin-android integration, here or #kotlin? Dec 05 13:09:12 autrilla, most of kotlin guys went from irc to slack Dec 05 13:09:21 but #kotlin is fine Dec 05 13:58:50 hi all Dec 05 13:58:54 i got android sdk for windows Dec 05 13:59:04 but confused, lot of tools in the manager Dec 05 13:59:09 what should i install? Dec 05 13:59:19 lot of api's Dec 05 13:59:26 20,21,22,23,24... lost Dec 05 14:06:54 guys? Dec 05 15:02:17 Hi, Running a thread when I press a button works, when I change so the handler runs the thread it doesnt work, toggling comment on line 90 and 91 breaks teh code http://pastebin.com/fq5LFhWU Dec 05 15:19:34 DelphiWorld: the newest Dec 05 15:19:55 gordon_: so a build for 6.0 would run for android 4 & 5? Dec 05 15:21:02 md Dec 05 15:21:04 e: Dec 05 15:21:22 DelphiWorld, you usually load multiple sdk levels for testing Dec 05 15:21:51 danijoo: so i should install 4 & 5 & 6? Dec 05 15:21:52 most people use SDK level 15 or 16 as minimal level, 23 as compile level (newest) Dec 05 15:22:05 i see Dec 05 15:22:06 supporting below level 15 is usually not worth the extra effort Dec 05 15:22:15 thanks danijoo Dec 05 15:22:25 DelphiWorld, http://developer.android.com/intl/pt-br/about/dashboards/index.html Dec 05 15:22:32 there you can see what api levels are used most Dec 05 15:22:38 daniele_athome: ;) Dec 05 15:22:46 as you can see everything below 15 is rarely used because its old Dec 05 15:24:14 anyone know of any open source podcast manager for android? Dec 05 15:24:20 specialy if in phonegap & cordova Dec 05 15:38:28 he was asking about downloading sdk Dec 05 15:38:37 afaik Dec 05 15:38:44 I have the newest only Dec 05 15:38:45 gordon_: yep cause i see many tools inside of the manager Dec 05 15:38:53 download newest tools Dec 05 15:38:53 if i'm setting up a slider with a ViewPager with fragments for each slide and a tablayout, and i only see the tablayout and i can change the tabs, the issue must be the FragmentPagerAdapter right? Dec 05 15:39:00 and put minsdk to 16 Dec 05 15:39:15 target and compile sdk to 23 Dec 05 15:39:25 thank gordon_ & danijoo Dec 05 15:45:54 dersand: your saying you only see the tablayout? Dec 05 15:46:42 orbyt_, Yeah Dec 05 15:46:55 It would be nice if you could debug it Dec 05 15:47:05 Like if there is any event handler for swiping Dec 05 15:48:36 dersand: theres listeners to detect page changes, but your original question isnt really relevant to that is it? Dec 05 15:49:20 orbyt_, no that's right. I have some dummy text in the .xml layouts for the fragments, large dummytext so it would appear Dec 05 15:49:45 dersand: ok so how are you adding the fragments? Dec 05 15:50:22 orbyt_, in the FragmentPagerAdapter? Dec 05 15:51:24 Hi all, I just bought an android phone from ebay, but radio seems having issue once in a while, here is the paste from logcat -b radio: http://pastebin.com/YJfN7br3 Dec 05 15:51:30 anyone could give me a hand on this ? Dec 05 15:52:19 dersand: yea how are you adding them to the adapter? Are you sure there being added? Dec 05 15:52:42 orbyt_, It's there now. I removed everything in my main/parent-layout and it appear and i can swipe through. Dec 05 15:53:11 dersand: nice Dec 05 15:55:45 how could i add the sdk to my path? Dec 05 16:03:53 Also, is a fragment or whatever it is "inflated" even if it's not displayed? I have two fragments and inside that PagerAdapter and inside each of them i have a LinearLayout with an id. I'm retrieving that id, but only to get a nullpointerexception when i try to removeAllViews() Dec 05 16:04:12 wow that horrible english Dec 05 16:05:02 I have two fragments inside a pageradapter. I'm setting the adapter to my viewpager, then trying to reach an id in the first argument's layout. It get's a nullpointerexception. Dec 05 16:05:20 first fragment's layout* Dec 05 16:34:06 I have a FragmentAdapterActivity that i would like to add stuff into it's Fragment's layout, how do i do this Dec 05 16:42:41 What do i need to call this: http://pastebin.com/kASjJeyG Dec 05 16:43:35 I also have a ViewPager, if that would matter. Dec 05 16:52:55 what is ~/.android/cache/? Dec 05 16:54:30 dersand: the subfragments have normal lifecycle Dec 05 16:57:50 osxorgate, sorry? Dec 05 17:00:20 cybrNaut, a cache Dec 05 17:00:31 danijoo: of what? Dec 05 17:00:54 cybrNaut, look into it :) Dec 05 17:01:58 i think its cache data of the sdk downloader Dec 05 17:02:06 dersand: the fragment will be created and then go through lifecycle stages. look it up Dec 05 17:03:25 danijoo: imo, it should be with the other caches, in $HOME/.cache/ Dec 05 17:03:44 but what I'd like to know is if it is really temporary.. something I can safely delete Dec 05 17:04:22 how long does it take for devices to enter sleep mode? ive been reading from a socket and sending it messages every minute or so and its still working an hour later Dec 05 17:04:36 and adb says no wake locks are being held by anything Dec 05 17:06:36 so I've written a custom View that draws two triangles on Canvas. I use it in a horizontal LinearLayout that contains also a few TextViews. for the TextViews, I've set layout_height to wrap_content, but for the TrianglesView I set 16dp because it matches with the text size that is set in the theme definition. how could I use wrap_content for the TrianglesView too, and have it use the text size set in the theme? Dec 05 17:08:56 Hi Dec 05 17:09:54 Is there an explanation as to why scolling is a lot better when all my view are not backed by a software / hardware layer ? Dec 05 17:10:08 Even animations are smoother Dec 05 17:10:24 as soon as a turn on hardware layers, I'm losing half my fps Dec 05 17:10:32 Is this the normal behavior ? Dec 05 17:16:13 Hey, is here anybody using the Glide Library? Dec 05 17:16:14 because there is a limit to the number of hardware layers probably Dec 05 17:16:23 go beyond the limit and the performance will suffer Dec 05 17:18:07 Is there any easy way to use fragment layout id's inside the activity? Dec 05 17:20:51 dersand, what do you intend to do with those? Dec 05 17:23:02 saapas, I have two Fragments inside a FragmentPagerActivity(it's for swiping). I want to use the layout inside these Fragments, i want to pass an ArrayList and loop through, and add content when these fragments are created Dec 05 17:24:21 stuff before the 2nd , is ok, stuff after doesn't add up Dec 05 17:25:18 squirrel, what do you mean? Dec 05 17:25:47 to put it simply Dec 05 17:25:49 wat Dec 05 17:26:20 How easy is it to send a stream of the front camera to a web server? Dec 05 17:30:14 dersand, have to say I'm not familiar with FragmentPagerActivity and I don't quite grasp what in your description requires the id's but .. setting it from Activity to the Fragments or vice versa is easy, just write setters. Dec 05 17:30:59 saapas, I only have a reference to the ViewPager and the FragmentPagerActivity, no fragments Dec 05 17:33:09 your question was bad and you should ask a better question Dec 05 17:33:31 and you should feel bad Dec 05 17:34:55 In my activity i have two references. FragmentAdapterActivity and ViewPager. Inside the FragmentAdapterActivty, two Fragments are created. Dec 05 17:35:22 With me so far? Dec 05 17:36:03 why do you have a reference to another activity inside your activity? Dec 05 17:36:17 how did you obtain that reference Dec 05 17:36:41 is ViewPager a class or an instance Dec 05 17:36:48 how are fragments created Dec 05 17:36:58 no, not with you Dec 05 17:37:16 Sorry, FragmentPagerAdapter* and ViewPager Dec 05 17:37:32 I do follow Dec 05 17:38:39 Here is inside FragmentPagerAdapter http://pastebin.com/wsUs4i6k Dec 05 17:41:34 So, inside my activity, FragmentPagerAdaper and ViewPager is referenced Dec 05 17:41:53 okay Dec 05 17:43:51 When those fragments are created, i want to execute some code inside those fragments. I essentially want to manipulate the Layout inside of it Dec 05 17:44:19 your fragments have onCreate and onCreateView, do this work there Dec 05 17:44:47 I need to get access to my fragments views, but adapter.getChildAt().getView keeps giving me a NPE Dec 05 17:44:50 Doesnt make sense Dec 05 17:45:09 perhaps you call that too early? Dec 05 17:45:38 I call it after I call pager.setAdapter() Dec 05 17:45:40 pfn, onCreateView() is returning a View Dec 05 17:46:02 return inflater.inflate(R.layout.fragment_timed_happening, container, false); specicially Dec 05 17:46:15 saapas, would that be too early Dec 05 17:47:07 dersand, so? manipulate it before returning Dec 05 17:47:12 drose379, sorry I don't know, not familiar with pagers yet Dec 05 17:47:43 pfn is inflater.inflate(R.layout.fragment_timed_happening, container, false); Inflated? Dec 05 17:47:54 of course Dec 05 17:48:01 it returns a View Dec 05 17:49:01 better question is why you think it wouldn't be Dec 05 17:50:33 I thought whoever return the fragment has to addView toit Dec 05 17:51:31 drose379: setting an adapter doesn't instantiate the fragments right away Dec 05 17:51:40 Ok, what does? Dec 05 17:52:03 But it works! Thanks a lot, saving a lot of frustrations Dec 05 17:52:07 dersand, go look at some view pager samples, there are many Dec 05 17:57:50 Is this good practice: My parent activity needs access to one of the fragments views in my viewpager, so I created a ViewCallback interface and had my Actiivty implement Dec 05 17:58:15 Then in my fragment onCreateView, just did (Interface) getActivity().callbackMethod( view ) Dec 05 17:59:45 I don't know of a better practise, and that's exactly what I do too :) Dec 05 18:00:27 saapas, you said you havent worked with pagers yet? Dec 05 18:00:51 I'd say the whole thing about activity having to access fragment views is wrong. Dec 05 18:00:55 drose379, I did Dec 05 18:00:59 You're breaking separation of concerns. Dec 05 18:01:09 Mavrik, why wrong? Dec 05 18:01:23 spaghetti 🍝 Dec 05 18:01:33 the fragment handles the views within it lifecycle Dec 05 18:01:44 it's the fragments responsibility to handle that view and noone elses Dec 05 18:01:52 pfn: alright thanks Dec 05 18:02:05 or you get 🍝 Dec 05 18:02:06 Right, but when a search button is hit in my main activity, I need to grab the selected items from the fragment Dec 05 18:02:09 drose379, but more important is the fact (that you think) the activity needs access to an object lower in the hierarchy Dec 05 18:02:50 drose379, then ask the fragment what the selected items are. Dec 05 18:03:04 Don't go touching his views, it's rude. Dec 05 18:03:12 So instead of giving a callback with this view, just get a callback of the entire frag? Dec 05 18:03:30 Plus I wouldnt be touching the views, just checking isChecked(); Dec 05 18:03:34 you can just get the fragment from the manager Dec 05 18:03:41 I cant, cause they dont have tags Dec 05 18:03:43 that's touching Dec 05 18:03:53 they have tags Dec 05 18:03:56 What are they? Dec 05 18:04:08 read the source to fragment pager adapter Dec 05 18:04:22 It gives them a tag automatically? Dec 05 18:04:25 drose379, tags are just strings. Dec 05 18:04:35 Never said they werent saapas Dec 05 18:04:38 :) Dec 05 18:04:51 I just never give them tags myself, unless they are auto generated by the adapter Dec 05 18:05:30 Looks like they are auto... Dec 05 18:05:40 Does this look right pfn: android:switcher:2131558518:1 Dec 05 18:06:05 you read the source and make that decision for yourself Dec 05 18:06:36 The source of the actual adapter? Dec 05 18:06:41 Ok, where can I find that code Dec 05 18:07:48 you can see it in Android studio Dec 05 18:07:49 Found Dec 05 18:08:17 Ok, yeah there is a method called makeFragmentName that returns this Dec 05 18:08:39 So, would it best to just give a callback to the activity of the tag, then access what I need through the supportFragmentManager? Dec 05 18:09:31 I normally just override it to create well known tags Dec 05 18:09:51 and I hate fragment pager adapter for this reason and many like it Dec 05 18:09:55 Mavrik if the x86 emu has an older version of play services than what you specify in your manifest, should it let you update it? Dec 05 18:10:08 pfn, you create a sub class of the FragmentPagerAdapter? Dec 05 18:10:18 you already are Dec 05 18:10:28 Oh, yeah.. :P Dec 05 18:10:37 g00s, that never worked for me, I usually have Genymotion with GApps for that testing. Dec 05 18:10:37 Gah, oops Dec 05 18:10:53 gapps on emu are just too broken Dec 05 18:11:13 dunno. about now, but generating the fragment tag used to be private Dec 05 18:12:05 Mavrik ok thanks Dec 05 18:12:18 basically ended up having to copy paste fragment pager adapter Dec 05 18:12:52 Why pfn Dec 05 18:13:10 because the necessary bits to override were private Dec 05 18:13:22 Ah ok I see Dec 05 18:13:35 is this the correct way to get the theme's default text size? :P theme.obtainStyledAttributes(new int[]{android.R.attr.textSize}); Dec 05 18:13:49 no Dec 05 18:14:04 you need to. resolveAttribute Dec 05 18:19:32 Hey, is here anybody using the Glide Library? Dec 05 18:19:52 ah, just thought up a fix for a bug I have in initializing stuff in application context Dec 05 18:19:53 yay Dec 05 18:20:35 receivers shouldn't cause initialization if the app isn't presently running Dec 05 18:20:45 shove that shit into a secondary process Dec 05 18:21:46 and check process name in application prior to initialization Dec 05 18:21:49 phew Dec 05 18:22:20 Jamal, ask a question about a specific issue and you might get an actual answer. Dec 05 18:26:50 looking at the genymotion site for the first time in a while, i dont see any place to d/l a evaluation copy Dec 05 18:27:13 i used to be able to do it, its probably here, but the sales funnel is strong with this one Dec 05 18:27:33 you need to login g00s Dec 05 18:27:40 adq i am logged in Dec 05 18:28:01 https://www.genymotion.com/#!/download Dec 05 18:28:22 it's hidden i agree, you have to click buy and far below there is a ridiculous link Dec 05 18:29:05 adq wow, thanks Dec 05 18:29:17 maybe they are tired of ppl using it for "clash of clans" Dec 05 18:30:13 adq so, it downloaded the premium one. is that correct ? Dec 05 18:30:35 choose your platform, Download genymotion, get genymotion Dec 05 18:31:16 i think the binaries are all the same Dec 05 18:31:20 ok Dec 05 18:31:25 the features will be enable based on your license Dec 05 18:31:48 i downloaded it not so long ago (they updated few stuff) with the same link Dec 05 18:32:17 to update the binary simply (my license is gonna to expire soon by the way, i hope they will make a xmas sale like they did in the past) Dec 05 18:32:37 https://www.genymotion.com/#!/release-notes < here the release notes if you are curious Dec 05 18:33:24 adq ok thanks; well since my app isn't free i kinda don't want to use it (or pay for it) wanted to see what state its gotten to (haven't tried it in maybe a year) Dec 05 18:33:55 still pretty decent, the indie license is very affordable Dec 05 18:34:17 i heard that "instant run" works on it, but i haven't tried it (due to the chaotic state of AS 2.0p -___-) Dec 05 18:34:41 i'll be pretty excited when the new google emus come out. hopefully they let you change the versions of GMS on them Dec 05 18:34:54 i have no hope :' Dec 05 18:35:24 has been years i'm avoiding running avd, except for android wear (because it's proprietary and now one provides android wear vm thus) Dec 05 18:35:38 how google can put devs in this position of having emus, but no control over what version of GMS is on them - is fucking mind boggling, i mean what a shitty predicament Dec 05 18:35:46 it should not be called an emulator, it's too far from a real device Dec 05 18:36:35 well, how come the ide is shipped with half of stuff eclipse supported (cf ndk, android device monitor, etc) and the ide is less and less stable over the years Dec 05 18:36:42 probably the same cause Dec 05 18:37:05 still, i don't blame the dev they make a great job, it's more above i think Dec 05 18:37:19 and how many ppl to put on solving something and some decisions makers Dec 05 18:37:28 also it's easy to criticize ;) Dec 05 18:38:37 there is no excuse for google making it so difficult to test on their own platform (wrt GMS versions in emus) Dec 05 18:39:45 most answers on SO are just 'downgrade your project's GMS version, its not worth it' Dec 05 18:40:32 theme.resolveAttribute(android.R.attr.textSize, typedValue, true); returns false every time. >_< Dec 05 18:40:40 g00s, not sure what your point is. Dec 05 18:40:49 We know, Android sucks, suck it up and move on. Dec 05 18:40:58 Not sure what the value of constant complaining is :/ Dec 05 18:46:32 obviously it helps him deal with life Dec 05 18:47:42 saapas, where exactly are you trying to pull it from Dec 05 18:48:10 Why does Android suck? Dec 05 18:48:34 it doesn't Dec 05 18:48:43 Ok Dec 05 18:48:48 some people just can't deal with writing code Dec 05 18:49:45 pfn, in my custom View's onDraw(). too early? Dec 05 18:50:08 saapas, I mean, where is that specific attr set Dec 05 18:50:27 is it in the theme that is applied to your activity? Dec 05 18:50:38 or is it a style of a text appearance, etc Dec 05 18:50:56 where it's declared determines how you resolve Dec 05 18:51:56 humm. Dec 05 18:52:40 android.R.attr.textSize is not standard attribute? Dec 05 18:52:47 typically, text views get their styling from text appearance Dec 05 18:52:48 no Dec 05 18:53:00 there is no such thing as default text size Dec 05 18:53:10 there's a default text appearance Dec 05 18:53:24 you can fetch text size. from that Dec 05 18:53:31 alright Dec 05 18:54:44 Is there some event that captures if you press home button, then press the button where it displays every activity that is run and then swiping left or right to kill it? Dec 05 18:56:35 no Dec 05 19:05:18 I’m trying to combine two observables, the first one is based around local data and should always be in the first onNext call, the second observable is remote data and this should be in the second onNext call. Observable.concat(local, remote) and remote.startWith(local) both do this, however errors from the second observable always seem to be prioritized. Is there a way to delay these Dec 05 19:05:18 errors from the second observable (for example if there’s no internet), until the first observable is completed? Dec 05 19:18:36 I would flatMap it Dec 05 19:20:03 weird, genymotion used to work fine but the emus are just hanging on startup Dec 05 19:22:24 How would flatmap help here? Iirc flatmap is used if you have observables that emit other observables, however in this case I only have two observables that emit normal items Dec 05 19:22:56 For example if you have an observable that emits user ids for which you want to use another observable to get the user images Dec 05 19:24:53 What do you guys think of this UI with ViewPager, only scrolls with Button clicks not swipe motion: https://vid.me/ATNl Dec 05 19:29:44 Is there a way I can run a some sort of poller on the main thread, to scan for changes in order to translate them to UI display? Dec 05 19:29:44 drose379, that's just normal tabs Dec 05 19:29:57 and confusing Dec 05 19:30:02 Confusing? Dec 05 19:30:18 the expectation if you have side yo s Dec 05 19:30:28 to side flipping is that it can be swiped Dec 05 19:30:47 Not if it cant be swiped Dec 05 19:31:31 yeah, and it makes for a pretty crappy ui Dec 05 19:32:22 The second view only shows if dog or cat is picked, else it skips Dec 05 19:32:25 Thing is, I have an event listener, and I register a listener to that event. but when the eventlistener is called, its on his own thread, so it can't modify the UI - any ideas how can I work some way aroudn it? Dec 05 19:32:26 So I cant let user swipe on their own Dec 05 19:33:18 then prevent swiping when it's not picked Dec 05 19:33:19 nadav: won’t runOnUiThread() do what you need? Dec 05 19:33:45 or don't show the second view when swiping if not picked Dec 05 19:34:02 any solution is better than forcing unnatural navigation Dec 05 19:34:09 They wont know to swipe without the next button though Dec 05 19:34:21 I'll read about it Dec 05 19:34:41 once the button is used once, unless it's like a wizard, the expectation is to swipe Dec 05 19:35:02 OK, well this is a wizard Dec 05 19:35:06 But im going to enable swiping Dec 05 19:36:10 nadav: you almost surely want somehting like that rather than to try and poll from the ui thread. (I’m not sure how you’d go about that.) Dec 05 19:36:33 duboisj, I figure, I set something up, trying to run it now *fingers crossed* Dec 05 19:37:56 drose379 there are wizard libraries on androidArsenal Dec 05 19:38:05 maybe just use one of those Dec 05 19:38:13 I Dec 05 19:38:22 ve gotten thus far with making my own Dec 05 19:38:33 A few tweaks and itll be good I think Dec 05 19:38:43 duboisj! Thanks! this is working Dec 05 19:38:46 woho Dec 05 19:38:59 great :) np. Dec 05 19:39:23 i think its fine drose379 . would remove the back button though Dec 05 19:39:37 let them go back by pressing the hardware back button Dec 05 19:39:47 Ok, what if I did both Dec 05 19:39:52 Back button and the hardware back Dec 05 19:40:41 why are my view's colors not updating until i restart the activity? https://youtu.be/uwonV2ZcCjw Dec 05 19:41:11 im using a palette transformation to generate the palette from the image loaded from picasso Dec 05 19:41:32 but it doesnt actually call both until i restart it Dec 05 19:58:16 whoo i guess i scared everyone away lol Dec 05 20:00:32 drinfernoo: i have no idea what's going on. but you can enable touches in developer options so other people get a better idea what's going on Dec 05 20:00:48 it like adds a circle on the screen whever you touch it. Dec 05 20:01:44 good call lol i usually use that anyway but i never turned it back on after updating to M Dec 05 20:10:27 If I want to change the contents of i.e. a RecyclerView do I set a new adapter or modify the existing one? Dec 05 20:11:17 whichever you deem better Dec 05 20:12:34 I deem the second one better Dec 05 20:20:37 HGBG, if you set a new adapter you don't get any of the animation and it's slow as arse Dec 05 20:20:50 Since everything is laid out again. Dec 05 20:21:42 Mavrik, seems I deemed correctly Dec 05 20:22:14 Kotlin seems very very very early stages Dec 05 20:22:18 You update the data in your adapter and call the proper notify* method Dec 05 20:22:24 autrilla, no kidding :) Dec 05 20:22:25 at least the android part Dec 05 20:22:41 I was excited about it, too bad it doesn't work :p Dec 05 20:22:59 autrilla: What doesn't work? Dec 05 20:23:10 Always wait until the "This tech sucks" blog posts show up. Dec 05 20:23:24 By that time enough people messed up their own product that the biggest bugs were fixed :P Dec 05 20:23:28 What are the two files you need for tabs? Dec 05 20:23:31 SlidingTabLayout.java Dec 05 20:23:33 And the other? Dec 05 20:23:34 Mavrik: isn't that a given? everything sucks Dec 05 20:23:43 TacticalJoke: Anko stuff, the layout things Dec 05 20:23:43 Because I just want the indicator, not the actual tab Dec 05 20:23:51 also, their find stuff Dec 05 20:23:52 autrilla, yes. That's why you wait until the honeymoon is over ;) Dec 05 20:23:56 autrilla: Anko is just a library. You don't have to use that. Dec 05 20:24:07 Kotlin is a programming language that exists independently of Anko. Dec 05 20:24:08 TacticalJoke: I know, but it'd help Dec 05 20:24:13 * autrilla doesn't like verbosity Dec 05 20:24:34 TacticalJoke: well considering Anko is also made by jetbrains, I kind of consider it a part of kotlin Dec 05 20:24:47 It's not. It's just an optional library. Dec 05 20:25:07 One that many Kotlin users do not (or will not) use. Dec 05 20:25:17 So if I just want the indicator for tabs, I should use SlidingTabStrip? Dec 05 20:26:05 TacticalJoke: I know, Java also has optional parts Dec 05 20:26:20 TacticalJoke: I don't really see a reason not to use it, unless you <3 verbosity Dec 05 20:26:47 autrilla: Anko is intended to be an alternative to XML layouts. Dec 05 20:26:53 I'm not sure it's worth using. Dec 05 20:26:58 TacticalJoke: there's also some handy extra stuff Dec 05 20:27:06 like button.click = { foobar() } Dec 05 20:27:17 ugh. Dec 05 20:27:23 You can do that in XML as well. Dec 05 20:27:31 It's simillarly silly :) Dec 05 20:27:32 Mavrik: it's not type safe Dec 05 20:27:36 this is Dec 05 20:28:12 It's not silly due to typesafety, it's silly beacuse it mixes in logic to the presentation definition. Dec 05 20:28:51 Mavrik: I beg to differ. MVVM works that way, for example Dec 05 20:28:57 autrilla: It's a bit unfair to say that Kotlin doesn't work with Android because of some Anko issue. From what I've seen, Kotlin works very well on Android. Anko is something entirely separate. Dec 05 20:29:22 It's like saying that Java doesn't work on Android because of some bug in AppCompat. Dec 05 20:29:31 Yeah, AppCompat is terrible too Dec 05 20:29:51 You have a point, okay. Dec 05 20:30:08 I'm not a huge AppCompat fan. I'd love to `minSdkVersion 21` all the things and nuke it from orbit. Dec 05 20:32:57 wow Java doesn't have constant references enforced at compile time Dec 05 20:33:18 now I have even less respect for it Dec 05 20:34:12 TacticalJoke, there will always be a *Compat Dec 05 20:34:17 And new minSdkVersion. Dec 05 20:34:32 Maybe they should just rip out the SDK API and offer only appcompat Dec 05 20:35:17 I see that. AppCompat just seems so buggy and hacky to me. I'd like to avoid it if I could (e.g., avoid their Toolbar, avoid AppCompatActivity, etc.). Dec 05 20:36:55 HGBG: What do you want reference constants for? Just curious. Dec 05 20:38:23 I mean references to constant data Dec 05 20:38:30 there's many reasons for this Dec 05 20:39:04 a little offtopic but how common it is to use the new-line for curly braces in java? Dec 05 20:39:17 'function { ' is just driving me crazy Dec 05 20:39:45 suppose I have an array as a private data member, and modification of said array requires a bunch of class internal code Dec 05 20:40:03 but I still want a public array interface that allows the array to be viewed Dec 05 20:40:26 nadav, I've seen it around, choose a style that suits you if it's just your project. Dec 05 20:40:40 in C++ this would be as simple as returning const array & Dec 05 20:42:03 HGBG, and in Java is simple as returning Collections.unmodifiable Dec 05 20:42:24 Bitching over a language before you know it is a sure way of lowering other people's opinion of you :/ Dec 05 20:43:27 Mavrik, that's not enforced at compile time Dec 05 20:43:35 it's inferior Dec 05 20:43:47 tell this guy he is fucking mentally ill https://www.youtube.com/watch?v=9IrZ1qXFehg Dec 05 20:43:52 *shrug* Dec 05 20:43:55 use Guava then. Dec 05 20:44:09 Or go back to hugging C++ Č= Dec 05 20:44:10 noooooo Dec 05 20:44:24 guava is like 20k methods Dec 05 20:44:41 So? Dec 05 20:44:47 well if I could develop android in C++ reasonably I would Dec 05 20:44:49 freddyG: Schizophrenia? Dec 05 20:45:43 Not sure what it has to do with Android development, though. :) Dec 05 20:47:08 how can i animate scroll back to start position, when user scroll recyclerview item less then 50%, and animate item go away if user scroll more then 50%? Dec 05 20:47:33 try making this https://www.youtube.com/watch?v=s9tVDc4l7wE Dec 05 20:48:18 a -z 1-26 alphabet rank word adder Dec 05 20:49:47 i made custom layoutmanager for recyclerview, and run animation in scrollVerticalBy method after i move view to position Dec 05 20:50:27 animation works well, and view (item) go to needed position, but it has wrong coordinates ( Dec 05 20:51:16 If i wanted to create some feedback to the user if there is a image registered to a specific object. Like those click to upload form on websites, you get a feedback on the filename that you have selected. Dec 05 20:54:16 dersand: You're asking how to display a "That input is not valid" kind of message? If so, it really depends on the details. Dec 05 20:55:18 TacticalJoke, More like if the user has attached an object to my menu Dec 05 20:55:48 dersand: You're speaking in very vague terms; it's hard to understand what you're saying Dec 05 20:55:59 TacticalJoke, I'll draw you a picture Dec 05 21:01:49 TacticalJoke, don't judge me Dec 05 21:02:01 http://i.imgur.com/nQU0BSR.png Dec 05 21:02:40 Click sends intent to the camera Dec 05 21:04:57 dersand: So what is the question? Dec 05 21:05:13 How do i best build this Dec 05 21:05:26 For some reason transparenet colors aernt working Dec 05 21:05:38 Like if I put #00 before the regular hex code, its just showing the regular color Dec 05 21:05:59 ImageView solves the drawable/image. But the text? Dec 05 21:07:14 dersand: TextView, I guess. Dec 05 21:08:50 drose379: In what context? Dec 05 21:09:03 I am setting the color in colors.xmlm Dec 05 21:09:04 xml Dec 05 21:09:11 And trying to use it as the background of a View Dec 05 21:11:37 TacticalJoke you know how there are the tabs and then the indicators under the tabs when they are selected? Dec 05 21:14:27 hi all, does this channel deal with compiling libraries with the android-sdk-ndk? I would like to compile libcurl for android Dec 05 21:21:52 Tazmain, and what seems to be the problem? Dec 05 21:31:52 having a hard time figuring out what I need to setup in the env to be able to compile. I am not that familiar with make Dec 05 21:32:12 would have been gr8 is there was a libcurl.so that was armv7 Dec 05 21:34:13 Uhh. Dec 05 21:34:34 Yeah, I guess figuring out basics of how C compilation works will help you a lot :/ Dec 05 21:35:15 but I need to invloke the ndk compiler though Dec 05 21:35:17 C is fine Dec 05 21:35:54 "NDK" compiler is just gcc or clang inside the ndk directory :) Dec 05 21:36:03 Invoked with arch parameters. Dec 05 21:36:20 really ? I though it was a javac or something Dec 05 21:48:24 If im in the main activity and I want to exit the app, finish() right? Dec 05 21:48:43 eeyup Dec 05 21:48:56 technically speaking you dont 'exit' app never Dec 05 21:49:23 So whats finish()? Dec 05 21:49:35 closes activity Dec 05 21:49:48 but if all activities are gone your app is essentially closed Dec 05 21:49:56 Got it Dec 05 21:49:57 but this is up to system to entirely wipe it out Dec 05 21:50:17 static variables etc might survive for some time Dec 05 21:50:21 Ok Dec 05 21:50:49 Ok, I need to check if my code is spaghetti-like Dec 05 21:51:00 What should I look for in the code that is a red-flag Dec 05 21:51:17 huh Dec 05 21:51:35 I wanna make sure my code is not spaghetti code Dec 05 21:52:07 it is more complex than that, so many things Dec 05 21:53:01 Ok, I'll guess Ill start by going through and making sure everything makes sense Dec 05 21:59:40 In theory now, if i have an imageview that is thumbnail size, and attaching a Bitmap that could be 1080p, will it still be thumbnail size in the layout, or will it be taking full size? Dec 05 22:02:07 In both theory and practice that depends on the imageviews layoutparams Dec 05 22:04:29 I tried it out with set width and height params, it was fixed. Dec 05 22:08:41 How can I access the system default back, forward, refresh, share buttons? Dec 05 22:09:28 Using @android:drawable/ic_menu_* I get an error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_back'). Dec 05 22:10:11 If they are not part of the public API (look up android.R.drawable in the documentation), then you can not use them Dec 05 22:10:19 They might not even be present Dec 05 22:10:37 Use https://github.com/google/material-design-icons if you need icons Dec 05 22:11:43 SimonVT: Thanks! Dec 05 22:20:27 in TableLayout, what exactly is the parent of a signle TableRow? Dec 05 22:32:24 Hello Dec 05 22:32:28 Has anyone used the HP e-print app? Dec 05 23:00:26 what's with new emulator? is it part of AS 2 or google ship it separately? Dec 05 23:00:54 they just said its coming "soon" Dec 05 23:01:35 didn't dig much about it, maybe someone did Dec 05 23:09:41 In a fragment, a cast to (AnyActivity) would be considered tightly coupled right? Dec 05 23:09:55 Because then any other activity could never use this fragment, it would have be to (AnyActivity) Dec 05 23:22:27 re Dec 05 23:28:12 Is there any way to enable SwipeRefreshLayout animation upon fragment creation? Dec 05 23:30:18 nope Dec 05 23:31:58 hmm Dec 05 23:50:59 Could I not use the libcurl.so libarary from my raspberry pi 2 install ? Its also an armv7 I think Dec 05 23:52:51 mmm aparently not, the import or LIBS won't work, I keep getting the error /home/taz/untitled/mainwindow.cpp:3: error: curl/curl.h: No such file or directory #include ^ Dec 05 23:55:33 Anyone ever see an Android Studio bug where it seems to lose focus in the editor view? It won't register any keypresses and I have to restart Android Studio to recover. Dec 05 23:57:11 SilentByte on mac ? Dec 05 23:57:50 No, Windows 10 Dec 05 23:58:10 hm ok. i see that on mac, but try killing the adb process next time Dec 05 23:58:59 Tazmain: I guess you encountered other problems, my backscroll doesn’t mention what you’re trying to do, but your pi libcurl.so may want gnu libc, which it won’t have in android (if you’re thinking of using the actual built library from your rasp. pi device) Dec 06 00:06:47 duboisj, well each time I try compile the android build from qt creator I get an error in the import, so I am guessing either the library is the issue, being x86, or the linker it not being properly set. Dec 06 00:08:24 I don’t know anything about qt, let alone with android. But I don’t think a library compiled for a rasp. pi is in general going to work on android. (If it’s the same architecture and it’s statically linked, it may) Dec 06 00:13:01 So adb and driver just doesn't want to work with my project and computer. Is there any way to use logcat on a device that i've built the .apk and transfered onto? Dec 06 00:29:46 Any ideas why SwipeRefreshLayout refuses to work (ie. swiping the screen doesn't work) when the child RecyclerView is empty? Dec 06 00:31:58 my code: https://github.com/Quintasan/KulturalnaMapaWroclawia/blob/master/app/src/main/java/me/michalzajac/kulturalnamapawrocawia/fragments/POIFragment.java https://github.com/Quintasan/KulturalnaMapaWroclawia/blob/master/app/src/main/res/layout/recycler_view.xml Dec 06 00:32:23 If I turn off the internet it displays the snackbar but I can't swipe the view Dec 06 00:33:06 (and yes, I know that onRefresh is not implemented) Dec 06 01:16:20 I have a number of ms since epoch in the UTC timezone (submissionTime) and want to convert it to number of ms since epoch in the device's timezone. How do I do this? Dec 06 01:18:09 nvm got it Dec 06 01:31:46 Quintasan : setOnRefreshListener() ? Dec 06 01:32:52 Quintasan : make it empty if wish Dec 06 01:33:28 vigilancer: Not needed. You can drag it down and the refresh circle is not going to disappear Dec 06 01:33:40 The problem was that it wasn't draggable. Dec 06 01:38:13 Mavrik: my problem with AppCompat is that, for example, AppCompatButton's backgroundTint option only works on 21+ Dec 06 01:58:16 it's funny that you would equate anko with kotlin Dec 06 01:59:13 lol Dec 06 01:59:40 ARGH Dec 06 01:59:54 why does this goddamn uparrow works differently than back button Dec 06 02:19:44 classyshark is pretty nice :D Dec 06 02:19:49 Quintasan: The Up button doesn't necessarily have the same effect as the Back button. Dec 06 02:21:16 TacticalJoke: My problem was that Up button was navigating back to the MainActivity but showing the wrong fragment Dec 06 02:21:25 ie. savedInstanceState was null Dec 06 02:21:37 pressing the Back button worked as intended Dec 06 02:22:05 I solved it by using android:launchMode="singleTop" on MainActivity, not sure it's the right approach but it works. Dec 06 02:23:46 Quintasan: AFAIR, that's the recommended way. (e.g., check out links such as .) Dec 06 02:23:57 Or you can just handle the Up button press and call `finish();` or something. Dec 06 02:24:04 Instead of using `parentActivityName`. Dec 06 02:25:29 The most confusing thing is that NavigationDrawer examples suggest using Fragments and when you navigate from the fragment to a details view and try to use Up button it navigates back correctly but the wrong Fragment is shown. **** ENDING LOGGING AT Sun Dec 06 02:59:58 2015