**** BEGIN LOGGING AT Fri Sep 30 02:59:58 2016 Sep 30 03:37:29 wow... still no capeall Sep 30 03:37:33 *capella Sep 30 03:56:36 anyone try creating, reading, and write sqlite3 files to SAF Sep 30 03:59:28 SAF? Sep 30 04:02:34 Some Android Format Sep 30 04:03:21 Never heard of it Sep 30 04:06:37 Storage Access Framework in Kitkat Sep 30 04:06:50 lol i guess nobody uses it :P Sep 30 04:07:46 i want the documents to be sqlite3 files, which can then be opened with R or some other software. Sep 30 04:08:33 my app would create them, and possibly append more data to any sqlite3 file on SAF if necessary Sep 30 04:09:01 i guess its just a matter of getting the file descriptor, reading all the the data, saving it to a local file and then opening that Sep 30 04:43:09 http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.android.tools.build%22 Sep 30 04:43:11 oh come on Sep 30 04:43:17 2.2.0 for everything, except gradle... Sep 30 04:43:37 who the hell is running this operation... Sep 30 04:44:33 the same ones who aren't documenting it ... Sep 30 04:44:55 or forgetting the release notes Sep 30 04:45:25 it's really lame that they decided to go with jcenter... Sep 30 05:01:08 mornin' Sep 30 05:01:47 hey alex_PP Sep 30 05:02:03 what's going on in here today? Sep 30 05:02:23 G-Suite Sep 30 05:02:32 sounds so dirty Sep 30 05:03:20 sounds like 50 cent's sofa Sep 30 05:07:46 anyone used sqldelite? Sep 30 05:07:52 just about to try it out Sep 30 05:07:54 looks interesting Sep 30 05:10:46 i just do straight sql Sep 30 05:11:19 been playing around with cqrs, read and write models are different Sep 30 05:12:31 I do too, but getting bored of it Sep 30 05:13:07 yeah Sep 30 05:14:36 looks quite a bit different then when i last looked at it ... Sep 30 05:15:16 I like the idea of writing CREATEs and SELECTs and just haveing a magic java interface to it all Sep 30 05:15:36 witchcraft! Sep 30 05:19:24 I've given up trying to find a object relational mapper that doesn't blow Sep 30 05:19:43 write your own Sep 30 05:20:41 ha Sep 30 05:20:59 pretty much everyone has tried, and failed Sep 30 05:21:09 (I have previously) Sep 30 05:21:38 it's not the implementation that's the problem, its the concept Sep 30 05:31:18 If I didn't use Realm for my apps I would definitely be using sqlbrite Sep 30 05:31:42 We use it in one of our production apps for my company (one that I didn't write) Sep 30 05:31:55 cool Sep 30 05:32:19 I'll be trying it once AS has updated over the world's slowest internet connection Sep 30 05:32:35 I don't know how different sqldelight is from sqlbrite Sep 30 05:32:45 But you should look at sqlbrite if you have a chance Sep 30 05:33:27 oh, whoops Sep 30 05:33:39 Oh apparently you can use them together Sep 30 05:34:02 sqldelite is SQL to java models, bright is sql & rx stuff Sep 30 05:35:28 Are you writing an app from scratch or just updating existing database code? If you are writing from scratch, Realm is pretty amazing and v2.0 just came out a few days ago Sep 30 05:35:42 better than any ORM (but I'm biased) Sep 30 05:35:44 I'm not a fan of realm Sep 30 05:36:02 (but I forget why, looked at so many storage solutions) Sep 30 05:36:29 oh i got sqldelight and sqlbright confused, thought they were the same thing Sep 30 05:36:30 existing app, but the DB needs a major overhaul Sep 30 05:39:15 the app grew from a simple standalone widget to a fairly complex syncing one Sep 30 05:39:27 there's issues with the data model as a result Sep 30 05:39:53 migrating data is the worst ... Sep 30 05:41:23 data's all synced, so local copy's going in the bin:D Sep 30 05:41:26 TIL "google" is a TLD: https://blog.google/ Sep 30 05:47:51 wow Sep 30 05:50:33 wow, there's loads https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Brand_top-level_domains Sep 30 05:54:42 Wow, this is awful UX: https://commonsware.com/blog/2016/09/28/split-screen-not-all-homes-are-created-equal.html Sep 30 05:54:47 they really should make google.google redirect to google Sep 30 05:54:51 instead of being nothing Sep 30 05:55:01 Even as an Android programmer, I didn't notice the status-bar thing at first. Sep 30 05:56:35 " Sep 30 05:56:35 For the video players, games, and other apps that use android:keepScreenOn or setKeepScreenOn() to hold a full wakelock while they are visible… well, that wakelock stays in force, and the device continues draining the battery. Sep 30 05:56:35 This is bad." Sep 30 05:56:44 can't wait for all of the nougat battery complaint threads Sep 30 05:59:09 As far as I can tell, in order to make onStop happen, you have to bring the activity back on screen somehow (e.g., tapping the launcher icon again), tap inside the app somewhere, and then press Back. Sep 30 06:01:13 I don't understand this retarded new feature. It'll only make our jobs harder and the user won't really get much enjoyment out of it. Sep 30 06:01:17 Good luck to the general public out there. They're gonna need it. Sep 30 06:01:28 Even as a computer nerd I'm struggling to figure it out. Sep 30 06:02:01 Idiosyncratic: Yeah, it's about as bad as it gets, UX-wise. Sep 30 06:05:20 i'm trying to cross-compile a kernel for samsung galaxy on5, and am following some guides, it's been about 10 years since I cross-compiled something and written a makefile etc, but the error is not coming up on google, mintsqueaks@mintsqueaks-desktop ~/on5/kernel $ make ARCH=arm Sep 30 06:05:54 test Sep 30 06:06:02 it is more suitable for #android-root Sep 30 06:06:09 thank you Sep 30 06:07:26 Unless you're a video player it doesn't sound like it'll make your job any harder Sep 30 06:12:50 Idiosyncratic: hi. Morning. Sep 30 06:12:59 Melatonina: hey Sep 30 06:14:35 SimonVT: it seems to me that we'll have to code more for the new behavior that this feature brings Sep 30 06:15:00 Like? Sep 30 06:16:07 It's just a screen size change Sep 30 06:16:59 And depending on screen size, maybe an orientation change as well Sep 30 06:17:11 Nothing you're not already handling today Sep 30 06:18:31 SimonVT: yeah, but you're not coding for half of the size the screen that multiwindow gives right now Sep 30 06:20:41 It's just the difference between your list displaying 5 or 10 items Sep 30 06:21:01 Most wont have to do anything Sep 30 06:21:36 Same as if you switch to landscape. Less vertical space there as well Sep 30 06:22:37 SimonVT: As far as I can see, it makes the user's life quite difficult. Sep 30 06:22:53 Getting onStop to happen in this scenario isn't very simple. Sep 30 06:23:22 Not only do you have to get the app back on screen, but you also have to focus it by tapping *and* click Back. Sep 30 06:23:32 Sure Sep 30 06:23:58 But as I said, most don't need to worry about that Sep 30 06:28:04 I agree that most developers don't have to worry about this. I hope they fix the UX here, though, because a lot of users will have problems with this. Sep 30 06:28:45 They'll be calling relatives saying "I can't get this damn video to stop playing!" Sep 30 06:29:09 Or maybe they'll just switch off the device. Sep 30 06:29:40 SimonVT: I manually handle orientation and size changes in my app because of reasons. What do you think will happen when I don't actually hand the size? Sep 30 06:29:46 SimonVT: and I'm not the first one to do this Sep 30 06:29:49 *the only one Sep 30 06:31:21 Uh.. same thing that happened before multi window I guess? Sep 30 06:31:55 Oh yeah... wait Sep 30 06:32:01 I do handle the size :D Sep 30 06:32:09 Sep 30 06:34:05 Don't think I'll be using multi window tho.. at least not on my phone Sep 30 06:34:36 I'll use it to keep YouTube videos playing while switching to WhatsApp or something. Sep 30 06:34:52 Not much other than that, probably. Sep 30 06:35:11 Only time I've needed it was when using YouTube for music Sep 30 06:35:19 Instead I bought Spotify Sep 30 06:35:37 Idiosyncratic: My app disables activity recreation for all activities (so far). I just do nothing when the screen rotates or whatever. Sep 30 06:35:54 Though I have this luxury because I use the same resources for any size/orientation. Sep 30 06:36:38 (Of course, I still need to worry about saving state for background-process kills and other configuration changes. I just do this because I think the UX is better.) Sep 30 06:42:05 By "other configuration changes" I mean "configuration changes other than 'orientation', 'screenSize' etc.". Stuff like plugging a hardware keyboard in. Not sure whether to care about that. Sep 30 06:42:36 Hello..:) Sep 30 06:43:33 Can I record all gestures using overlay and pass it to the application Sep 30 06:43:36 ..? Sep 30 06:44:36 Till now I have been able to create overlay .. but it consumes the touch event and thus app does not gets the event Sep 30 06:45:32 How can I achieve the goal...? Sep 30 06:51:40 i know you can in javascript... not to sure about java... Sep 30 06:53:05 in javascript you just have to either do it through a libray or an api call. eg like adding a digtal joystick for controls of something, you actually giving the touch event to the app then the app is telling what your doing with it and where and then reacts Sep 30 06:53:33 abhishekcs10_: ^ i dont know if that helps Sep 30 06:57:42 I need to implement it in android Sep 30 06:58:53 jamie_1: any suggestions referencing to Android overlay Sep 30 06:59:13 abhishekcs10_: you mean an overlay you can interact with while in system? Sep 30 06:59:24 Yes Sep 30 07:00:10 But that overlay spans over complete screen and is made invisible to capture any gesture occuring on screen Sep 30 07:00:55 When I do this any other thing on screen does not respond to touch events Sep 30 07:01:04 abhishekcs10_: the best way to do it i would say is use a window, the only issue you will have though with not just having an object is the fact that its going to take the gesture, so you have to find a way to give it back to the device Sep 30 07:01:29 which will require root access because then you are accessing system level Sep 30 07:02:14 Any other workaround..?? Sep 30 07:02:28 no Sep 30 07:02:47 when you have an app accessing system directly you have to have root access Sep 30 07:02:54 abhishekcs10_, why do you want to do that? Sep 30 07:02:57 it's a huge security issue Sep 30 07:03:14 adq: thats what im saying... well kinda... when things are locked there is a reason Sep 30 07:03:25 inside your own app, you can do it though Sep 30 07:03:37 i mean you can do it easily* Sep 30 07:03:50 Yes in app I can do Sep 30 07:07:37 adq: the issue is he wants to hand the gesture back to the device Sep 30 07:07:52 thx despite i understood his problem Sep 30 07:08:09 i still don't know why Sep 30 07:11:54 adq: ok..I am working on a mood detection project and what it requires is to get only the gestures that user makes while typing through keyboard...as Google has restricted to access gestures on its soft keyboard due to privacy concerns , I tried to record gesture coordinates through overlay. I need them as a feature for my project Sep 30 07:12:37 it's a huge security issue Sep 30 07:12:49 why not making yourself a keyboard which track your touch? Sep 30 07:13:04 that sounds more (technically) possible to achieve Sep 30 07:13:30 abhishekcs10_: If you can see their keyboard input, you can see their passwords and so on. Sep 30 07:13:35 Like they're saying, it's a non-starter. Sep 30 07:14:56 Yes I am making an ime but was looking for other workaround Sep 30 07:18:18 curious as how you detect mood only based on gesture detection (assuming you don't detect letters input, words, etc) Sep 30 07:18:54 Through pressure and speed with which user swipes Sep 30 07:19:06 I can imagine the obvious use of tracking some sensors on the contrary to increase the probability of mood though Sep 30 07:19:34 interesting abhishekcs10_ Sep 30 07:19:56 How do you determine pressure? Aren't they using capacitive screens? Sep 30 07:21:07 recent devices can give you some info about the pressure iirc, idk the granularity or how many states there are Sep 30 07:22:15 you can detect partialy based on speed and area of pressure Sep 30 07:44:04 FYI I'm Newbie , Which is the best to use plugin for MVVM ? Robo Binding or the android default binding ? Sep 30 07:50:51 didnt touch either of them Sep 30 08:07:52 hello ? Sep 30 08:08:46 imZEH: didnt touch either of them Sep 30 08:09:00 there's presentation about it on youtube Sep 30 08:09:21 gordon_: so mostly here use the old traditional thing ? Sep 30 08:10:42 I'm referring to this findViewById(R.id.my_button); Sep 30 08:12:15 there's also butterknife Sep 30 08:12:28 or TypedResourse for scala Sep 30 08:12:36 or android kotlin extensions for kotlin Sep 30 08:18:43 ok thanks gordon_ Sep 30 08:21:50 can somebody give an explanation of this? http://pastebin.com/7sYkXTvX Sep 30 08:23:12 the list is empty Sep 30 08:23:22 try adding an element then clear again Sep 30 08:23:36 it's a NullPointerException Sep 30 08:24:18 move your this.spinnerItems.clear(); inside a method Sep 30 08:24:21 no wonder Sep 30 08:24:31 you cannot call it if not static Sep 30 08:24:40 of course it's in a method.. just basic copy Sep 30 08:24:45 the object has not yet been instantiated, but your IDE should warn you at least Sep 30 08:24:53 then you are hidding things to us Sep 30 08:24:56 good luck Sep 30 08:25:03 post more code Sep 30 08:25:23 http://pastebin.com/ADQSqhzy Sep 30 08:26:22 i don't even see the same thing now Sep 30 08:27:00 but anyway, in any case, if you have the issue above that means you spinnerItems has not been instantiated or if it has been someone nullified it Sep 30 08:27:14 well its final so its unlikely Sep 30 08:27:35 adq: it's final initialized so it can't be null.. Sep 30 08:28:03 then maybe it's not the same object Sep 30 08:29:08 the property is private, I access it with this.spinnerItems how can it be not the same object? Sep 30 08:29:27 FrancescoV: show full code Sep 30 08:29:33 ah you did Sep 30 08:30:17 he did not, the two pastebin does not even share same stuff Sep 30 08:30:19 FrancescoV: where is that NP ? Sep 30 08:30:41 there is no possible mystery with these kinds of issue anyway Sep 30 08:31:17 gordon_: npe on this.spinnerItems.clear(); Sep 30 08:32:19 http://pastebin.com/pMs5ZZXP Sep 30 08:32:28 sorry, 2nd post is a subclass copy Sep 30 08:33:14 adq: full code on 3rd pastbin Sep 30 08:33:27 are you sure the npe is in this exact line Sep 30 08:35:06 Ashiren, yes Sep 30 08:35:07 https://postimg.org/image/ry05hl45x/ Sep 30 08:36:58 any advice? Sep 30 08:37:11 looking at it now, and indeed this should not happen Sep 30 08:37:30 Instantiate the List in your constructor before you call methods on it Sep 30 08:37:40 so come to my mind 2 things, did you try to clean your project (in rare cases it's needed), and did you try to disabled instant-run if enable Sep 30 08:38:25 yeah it's better to instantiate in constructor, but shouldn't it not crash even if instantiated in members/attributes of the class? Sep 30 08:38:36 adq, already clean project + invalidate caches / restart of AS Sep 30 08:39:04 SimonVT: I'll try it out, but this NPE should never happen (i hope so..) Sep 30 08:39:07 i mean there is no way to call the method if the object has not been instantiated Sep 30 08:39:16 Final fields are initialized after the constructor for some reason Sep 30 08:39:29 wow ok, did not even know that Sep 30 08:39:42 No one does, it's not very intuitive Sep 30 08:39:54 still after object is constructed they should be instantianed if he uses methods Sep 30 08:40:21 Looks like he's using it in the constructor, not after Sep 30 08:40:30 race condition almost Sep 30 08:41:28 SimonVT: I'm not using it in the constructor.. no clue how I could do that anyway if you don't do it in the class itself.. Sep 30 08:42:22 sorry, take my words back, it could be accessed in constructor in a subclass Sep 30 08:42:50 The init methods looks like something you would call in a constructor Sep 30 08:43:27 That's what I do anyway Sep 30 08:43:34 ahh right Sep 30 08:43:38 so super calls init() Sep 30 08:43:52 but the subclass init() isnt fully initialized Sep 30 08:44:27 i remember i had some troubles with that too Sep 30 08:44:47 In the super's super, rather. So the super classes constructor isn't even done yet Sep 30 08:45:47 Which could lead to other issues down the road, you probably want each class to define their own init methods if you think you'll ever depend on the super class being done setting up Sep 30 08:46:58 the init method is protected, so you can call super.init() first before doing other things in subclasess. Isn't that a good way? Sep 30 08:48:08 Personally I'm not a fan. You probably don't guard against implementers not calling super either Sep 30 08:48:15 Subtle bugs :) Sep 30 08:49:02 how would you do it? make init() private and call another method inside init() which is protected? Sep 30 08:50:43 Now that I think about it, initializing the List in CCVSpinnerFormFieldView's constructor wont work, since the init method is called before that's complete Sep 30 08:51:03 I would just let each class decide if they want to do their setup in the constructor, or call through to a private init method Sep 30 08:52:32 (actually, not sure if final fields are initialized immediately after super or at the end of the constructor.. But either way, make sure things happen in the right order) Sep 30 08:52:37 but if you have code which must be done like Butterknife setup, that's something I don't want to do in each subclass Sep 30 08:54:00 SimonVT, thanks for the info. I didn't know final properties which are initialized directly could be null Sep 30 08:57:27 Re. ButterKnife, you can use lifecycle methods depending on how you use the View. E.g. onFinishInflate if it's only used in XML Sep 30 08:59:03 Null check in onAttachedToWindow Sep 30 08:59:09 Stuff like that Sep 30 09:11:10 how to check if the Android App running in Chromebook or Android Device? Sep 30 09:16:58 hi all does anyone know why Im getting Caused by: java.lang.NumberFormatException: Invalid long: "pets". here is full stacktrace http://pastebin.com/ejJt9bCC Sep 30 09:17:39 Becayse "pets" is not a long Sep 30 09:19:32 ah hi SimonVT are you the creator of Schematic? https://github.com/SimonVT/schematic Sep 30 09:19:36 thanks for the reply btw Sep 30 09:19:58 Yep :) Sep 30 09:22:03 wow awesome thatnks for that I use your library all the time. i have one question though in the Android Manifest how comes I always get an unresolved error on this line: but the code works fine Sep 30 09:22:31 it seems like AS cannot fine that path Sep 30 09:24:06 Authorities is just a string, shouldn't complain about that line Sep 30 09:24:21 Maybe name points to a class that doesn't exist? Sep 30 09:24:44 ah sorry Sep 30 09:24:45 wrong line Sep 30 09:24:50 it complains on this line: android:name="net.simonvt.schematic.sample.provider.NotesProvider" Sep 30 09:25:27 Yes, that's your contentprovider Sep 30 09:25:40 I assume you changed both class name and package Sep 30 09:26:36 yes i did. let me give you the source code Sep 30 09:27:43 here @ SimonVT Sep 30 09:27:43 https://github.com/udacity/StockHawk/blob/master/app/src/main/AndroidManifest.xml#L41 Sep 30 09:29:45 here is the screenshot of the error @SimonVT: https://postimg.org/image/epl5dq46r/ Sep 30 09:30:10 I tried everything including typing the fulll package name Sep 30 09:32:20 Hello Androiders, I want to add files to my Android Studio project. Files are not in my workspace. I dont want to copy files into my workspace because this is shared files, I cant change their location. Is there any way to do that, or should i stop looking for it ? Sep 30 09:34:24 Is the contentprovider actually being generated? You can check in the build folder, it should be there somewhere Sep 30 09:40:32 SimonVT I'm not able to check right now as Im using my phone. I can check later if you like Sep 30 09:40:44 maybe i'll just contact you through Github Sep 30 09:40:50 palKu: try with a filesystem link? Sep 30 09:41:07 but yes I did about 3 projects using the Schematic library Sep 30 09:41:18 and they all get that same error althought the code runs fine Sep 30 09:41:56 is there any chance that you can download that repo and run it so you can see the issue? Sep 30 09:43:22 I doubt there's anything I can do if AS doesn't pick up that it exists Sep 30 09:44:04 Make sure you're using the latest versions of android-apt, etc Sep 30 09:47:02 Melatonina: Thank you my savior Sep 30 10:03:08 How are you supposed to use the Realm examples in Android Studio? Sep 30 10:03:25 You can load them but you can't run them Sep 30 10:03:47 and the "Android" project view doesn't look like a normal project Sep 30 10:04:26 OK thanks at SimonVt so basically I should not get that error at all? Sep 30 10:04:38 I was under the impression that it was normal this whole time Sep 30 10:09:31 I'm getting this error: "Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable." Sep 30 10:09:48 but both sdk.dir and ANDROID_HOME are set correctly Sep 30 10:09:54 What can I do? Sep 30 10:10:06 I would like to run the Realm example projects Sep 30 10:10:25 Idiosyncratic: Hi. Can you help me? Sep 30 10:10:36 Melatonina: err, I'll try Sep 30 10:11:04 I'll paste in private because I just asked my question here Sep 30 10:23:04 hi SimonVT how do I troubleshoot my issue about pets not being long? should i put a break point at line 55 and debug from there? Sep 30 10:26:17 Yep, you can do that Sep 30 10:29:48 Hi, SimonVT. Could you help me to run the Realm examples? Sep 30 10:32:46 Nope Sep 30 10:32:56 Ok, thanks anyway. Sep 30 10:34:06 Trying to instal the Google API Client throguh Gradle, but for some reason, IntelliJ doesn't recognise the GoogleApiClient class as being available to import. Anyone any ideas? Sep 30 10:34:25 I added compile 'com.google.api-client:google-api-client:1.22.0' to my dependencies Sep 30 10:43:20 not sure your dependency is correct at all Sep 30 10:43:35 iirc it's part of com.google.android.gms:play-services[...] Sep 30 10:43:47 hi, adq. Do you use Realm? Sep 30 10:43:52 nope Sep 30 10:43:59 ok. thanks Sep 30 10:44:02 ask the channel if you have an issue, not someone Sep 30 10:44:15 adq: Well, that library does install (If I rename it to cient from client it fails to install) Sep 30 10:44:16 if anybody knows and is willing, you will get your answer Sep 30 10:44:24 and as per the google documentation (https://developers.google.com/api-client-library/java/) that's how you do it. Sep 30 10:45:06 OK, that did instlal, but not the GoogleApiClient class. maybe the docs I found on using that class are wrong. Sep 30 10:45:09 3Android 1.5 or higher–but if a Google Play Services library is available for the Google service you need, use that library instead of this one. The Google Play library will give you the best possible performance and experience.3 Sep 30 10:45:27 i used in several projects the google api client and never used your dependency but the playservices one Sep 30 10:45:41 however this does not prove you are right or wrong Sep 30 10:45:49 oh, the guide that uses GoogleApiClient is on the android pages. Sep 30 10:46:04 Just trying to get current location Sep 30 10:46:57 https://developers.google.com/android/guides/setup here there is a bigger list and how they cut lib into sublibs Sep 30 10:48:24 thus, maybe you just need com.google.android.gms:play-services-location:9.6.1 Sep 30 10:48:52 yeah, just about to add tat in Sep 30 10:48:53 that* Sep 30 10:49:28 not so sure that'll help with this guide tho https://developer.android.com/training/location/retrieve-current.html#play-services Sep 30 10:50:11 it should, and this page redirects to the latest i pasted regarding setup of playservice Sep 30 10:57:29 Hello, can i use an intent to supply an activity with an image? Sep 30 10:59:20 best would be you supply the path or a reference to the image, not the image (content) itself Sep 30 11:02:53 ok Sep 30 11:02:57 yea i realized it now Sep 30 11:13:24 can anyone explain to me how this is a Binatry Tree: http://pastebin.com/Y0ZXJSV8 I think the questions says its a Binary Search Tree but actually it is a Binary Tree Sep 30 11:41:43 hey all Sep 30 11:42:12 this might be a stupid question, but... could someone tel me how to change my app background? Sep 30 11:42:35 could be in theme Sep 30 11:42:51 Ashiren: in res/values? Sep 30 11:43:30 values/styles, in your AppTheme add @android:color/black Sep 30 11:43:54 Ashiren: thank you Sep 30 11:43:58 you can set per activity in xml giving the root layout background, or programmatically Sep 30 11:44:13 DelphiWorld, https://developer.android.com/training/material/theme.html < windowBackground Sep 30 11:44:30 good good Sep 30 11:44:42 avoid painting background over background over background when you can just tell globally Sep 30 11:44:56 this is a serious performance issue called "overdraw" Sep 30 11:45:00 avoid it at all cost Sep 30 11:45:05 adq, i have a " this is a play button Sep 30 11:45:39 but blind people wont have "play" caption, it's just a button with play background image on it Sep 30 11:45:44 I did not understand sorry, or maybe you did not paste the correct stuff between double quotes Sep 30 11:45:58 adq: hold on let me post my layout Sep 30 11:46:17 there is an attribute to provide text description for blind ppl, iirc Sep 30 11:46:21 on any views Sep 30 11:46:32 android:contentDescription Sep 30 11:46:38 wait... Sep 30 11:47:52 crapy pastebin.com detecting xml as a spam Sep 30 11:49:02 adq: https://dpaste.de/pYRf Sep 30 11:49:07 see the "play" image view Sep 30 11:49:37 yes Sep 30 11:49:50 the button should have the "PLAY" caption Sep 30 11:50:11 oh I see your problem, you need to use another component than ImageView Sep 30 11:50:24 because ImageView does not allow you to display text, only image Sep 30 11:50:37 what should i change it to? Sep 30 11:51:43 TextView with drawableTop maybe Sep 30 11:51:46 you could use a TextView with a drawable set to display the image Sep 30 11:51:59 hmmm, will check Sep 30 11:52:07 so i just change the ImageView to TextView? Sep 30 11:53:17 well if on the same component, you want to display text and an image you have to, and it's better than wrapping in a layout both a seperate TextView and a separate Imageview Sep 30 11:53:40 where to put the "play" caption in a text view? Sep 30 11:53:50 SimonVT told you drawableTop Sep 30 11:54:01 but it could be on left, bottom or right, that's up to you Sep 30 11:54:19 but in what context i should put the "play" text? Sep 30 11:54:22 what param? Sep 30 11:55:05 :text Sep 30 11:55:05 It's a TextView Sep 30 11:55:13 hold on Sep 30 11:55:50 hey guys remember i'm not a true developer but just a blind user trying to make itself lost in the Ocean ;) Sep 30 11:55:55 so i'm not good in any gui writing Sep 30 11:56:04 no worry Sep 30 11:56:10 thanks adq Sep 30 11:56:24 to summarize, you wanted to add text on an image and we explained it's not possible. Instead you have to put an image as a compound drawable in a regular textview Sep 30 11:56:39 you should get a medal for doing this stuff blind Sep 30 11:56:58 hey raoul11... no need for any gold crap... this is my hoby ;) Sep 30 11:57:12 seriously, i cant even imagine the efforts it takes Sep 30 11:57:24 thanks to text to speech stufs Sep 30 11:57:40 i hated android studio, but gradle made it pretty easy Sep 30 11:57:58 lol Sep 30 11:58:22 Can't even imagine reading logcat with text to speech Sep 30 11:58:34 yes you can :D :D :D Sep 30 11:59:06 SimonVT: no, it's not pocible Sep 30 11:59:20 logcat wont stop logging at all, except if i use it with grep it'll be pretty usefull Sep 30 11:59:38 I figured Sep 30 12:02:01 strange, malformed xml... Sep 30 12:02:48 if you followed on SimonVT, its text: not :text Sep 30 12:03:08 raoul11: check? https://dpaste.de/jHei Sep 30 12:03:30 actually im wrong Sep 30 12:03:42 other language kicked in Sep 30 12:03:44 Missing closing tag on line 85 Sep 30 12:04:02 you forgot to close your textview with /> Sep 30 12:04:02 SimonVT: android:padding="8dp" Sep 30 12:04:20 yer fast SimonVT Sep 30 12:04:22 Yep Sep 30 12:04:24 also do not use the background for your image, use android:drawableTop or android:drawableLeft etc Sep 30 12:04:41 SimonVT was fast ;) Sep 30 12:04:45 To be fair, dpaste highlights the next tag. That indicated something was wrong Sep 30 12:05:03 SimonVT: not only dpaste. but also aapt make me think Sep 30 12:05:34 adq: so drawableTop will also include the image? Sep 30 12:05:55 yes, it will put your image on top of the text Sep 30 12:06:05 hey, good Sep 30 12:06:07 background is not meant for that, and it will scale badly your image too Sep 30 12:06:12 what's the diference with background? Sep 30 12:06:22 adq: perfect Sep 30 12:06:25 background does not care of the image size ratio Sep 30 12:08:31 so Drawable* will auto resize it Sep 30 12:09:54 it's more that it will keep the ratio and not stretch it Sep 30 12:10:24 my app crash... Sep 30 12:10:49 boom Sep 30 12:11:30 lol Sep 30 12:12:29 ah, adq Sep 30 12:12:30 see img_ply=(ImageView)findViewById(R.id.img_play); Sep 30 12:12:36 huh Sep 30 12:12:40 should be also changed in code Sep 30 12:12:42 it's a textview now Sep 30 12:13:00 img_ply=(TextView)findViewById(R.id.img_play); Sep 30 12:13:03 am i right? :-P Sep 30 12:13:31 looks correct Sep 30 12:14:52 hey... strange Sep 30 12:15:40 singleChannelActivity.java:77: error: incompatible types: TextView cannot be converted to ImageView Sep 30 12:15:59 Change the field type as well Sep 30 12:16:17 where? Sep 30 12:16:18 img_ply=(TextView)findViewById(R.id.img_play); Sep 30 12:16:49 ImageView img_ply Sep 30 12:17:10 where's this line SimonVT Sep 30 12:17:37 Somewhere in your code Sep 30 12:18:04 img_ply lol Sep 30 12:18:11 what kind of naming is that? Sep 30 12:18:12 gdrc: lol Sep 30 12:18:24 gradle shouldn't able to build that code cause it's ugly Sep 30 12:18:26 no error at all in your life gdrc ? Sep 30 12:18:44 I'm not talking about that, red what I've written Sep 30 12:18:55 *read Sep 30 12:19:23 SimonVT: i found it Sep 30 12:19:33 it was declared as ImageView Sep 30 12:24:20 no problem but still no label Sep 30 12:24:27 maybe i should clean & rebuild Sep 30 13:01:17 hi Sep 30 13:02:56 yo Sep 30 13:04:18 n00b question, how do I add multiple input fields to an Activity? - https://developer.android.com/guide/topics/ui/controls/text.html - Tried adding LinearLayout->{ProgressBar, ScrollView}->ScrollView->LinearLayout->{TextInputLayout->TextView, TextInputLayout->AutoCompleteTextView} but the TextView shows up on the screen but can't be focussed upon Sep 30 13:05:31 Also tried having one `TextInputLayout` and putting both AutoCompleteTextView and TextView underneath, that didn't work either Sep 30 13:19:48 is anyone here familiar with smack/ejabberd? Sep 30 13:31:15 AlecTaylor, EditText, not TextView... Sep 30 13:31:59 Ahh silly me Sep 30 13:32:02 Thanks Zharf Sep 30 13:39:16 DelphiWorld: hi! Sep 30 13:39:38 Meanirelli: it's me! Sep 30 13:49:04 do anyone have an example using BottomSheetBehaviour with SwipeRefreshLayout? Sep 30 13:49:22 wb Melatonina Sep 30 13:52:30 Morning everybody Sep 30 13:53:10 How can I install stock rom on my Wiko Sunset 2 with fastboot on a Linuxbox Sep 30 13:55:11 How do I pass my whole Activity to a constructor? - I'm storing a WeakReference of it in a static class. I've tried `new ClsName(this)` and `new ClsName(ActivityClsName.this)` Sep 30 14:07:36 who is that Melatonina Sep 30 14:07:43 Hi Melatonina but I don't know who you are Sep 30 14:09:58 Meanirelli: I addressed the wrong nick. I'm sorry I disturbed you. Have a nice day Sep 30 14:41:54 Man, played this ancient history trivia and encountered 2 people that didn't know who was born on 1AD Sep 30 14:42:42 Hello.. I'm running android studio 2.2 on Fedora 23. Everything seems to be working well, except the debugger. I've tried with the avd and a physical device... in both cases the 'device' says waiting for debugger.. but android studio just says 'Unable to open debugger port (localhost:8622): java.net.ConnectException "Connection refused"' the port number varies. Any suggestions? Sep 30 14:42:56 fedora? :S Sep 30 14:43:05 install proper os please Sep 30 14:43:46 There are no firewall rules preventing the access. lsof shows nothing open on the port it complains on.. i've tried killing and restarting adb's server Sep 30 14:45:15 gdrc: a proper OS is wherever one is most efficient. I've been using redhat flavors for close to 20 years now.. its rock solid and i dont see a need to change Sep 30 14:45:24 r00twrh: this used to happen to me and I just unplugged and replugged the device and it worked Sep 30 14:46:10 Idiosyncratic: no such luck.. i've tried that - problem exists for the emulator as well as physical devices Sep 30 14:49:30 r00twrh: don't laugh but... have you turned your PC on and off after encountering this problem once to see if that'll change anything? Sep 30 14:49:31 r00twrh, are you able to at least deploy your app via the regular "run" button? Sep 30 14:49:59 r00twrh, if yes, you could try to attach the debugger after, if no: no surprise it does not work then Sep 30 14:50:16 adq: yes, everything else works fine Sep 30 14:50:57 could be some dup instance of adb otherwise which already listen on this port and prevent another spawn Sep 30 14:51:06 but i guess you tried to restart or kill all adb daemon prior to that too Sep 30 14:51:15 Idiosyncratic: sadly yes, i gave up 193 days of uptime and rebooted out of frustration with this issue Sep 30 14:51:20 lol Sep 30 14:51:21 r00twrh: lol Sep 30 14:52:03 or maybe if you have extra sec stuff, like your kernel is patched with grsec or some weird selinux rules Sep 30 14:52:13 so many places were it could prevent to do what it should Sep 30 14:52:18 selinux is enabled, but I Sep 30 14:52:23 m not seeing it trigger anything Sep 30 14:52:32 r00twrh: if you're desperate enough, why not try changing the JDK? AS comes with a bundled OpenJDK now and it might be buggy. Rename the jre folder in your AS to something else and start AS. Sep 30 14:52:33 maybe i'll throw it in permissive just to test Sep 30 14:53:22 oh Sep 30 14:53:43 or simply you're not pushing a debug version of your app, but a release one (which should disallow debugging) Sep 30 14:54:00 I need the debugger Sep 30 14:54:16 yup but you cannot debug a release app, except if you specify debugable is enabled on it Sep 30 14:54:58 debuggable* Sep 30 14:55:13 and I think google screens debuggable from being published Sep 30 14:55:27 indeed, the playstore will check it too Sep 30 14:55:34 i'd imagine so Sep 30 15:16:38 I figured it out. Stupid problem. Sep 30 15:17:03 r00twrh: what was it? Sep 30 15:17:38 Android Studio was trying to access 'localhost' ... it does this by name instead of 127.0.0.1 .. there wasnt an /etc/hosts entry for 127.0.0.1 localhost .. Sep 30 15:17:57 r00twrh: lol Sep 30 15:18:15 i had removed it ages ago for a different project i was testing with.. never got added back Sep 30 15:19:15 thanks for help gents Sep 30 15:19:26 r00twrh: you are welcome Sep 30 16:04:19 Hi, is it OK to return null on an Adapter's getView(), e.g. for an invalid position on race conditions? Sep 30 16:04:48 nope Sep 30 16:05:00 Fix the race conditions instead. Sep 30 16:06:04 Not sure why actually returning null would ever be useful Sep 30 16:06:55 What if a ListView were to getView() whilst the underlying data is being updated? Sep 30 16:07:19 It shouldn't. Sep 30 16:07:21 Update it atomically. Sep 30 16:08:48 This is why you usually set data for the adapter on the main thread. Sep 30 16:10:08 Mavrik, OK, that makes sense. I'll just ensure it's only updated on the main thread Sep 30 16:10:21 The usual pattern is that you prepare data on the background thread Sep 30 16:10:44 And then just swap out the List or whatever you use as a source in Adapter and call notifyDataSet* calls on the main thread Sep 30 16:11:05 After that your getCount() and getView() gets called for the new dataset Sep 30 16:11:31 Touching the datastructure from which adapter is grabbing data on a background thread is usually a recipe for issues and disaster :) Sep 30 16:12:59 Mavrik, yeah, got it, thanks :-) Sep 30 16:15:10 morning all. Sep 30 16:35:35 afternoon Sep 30 16:46:43 Night Sep 30 16:46:55 I just had to chime in Sep 30 16:53:16 Idiosyncratic: Evening, I'd say. Not night. Sep 30 17:31:31 night is more like goodbye Sep 30 17:31:37 :p Sep 30 17:32:16 deobfuscation tools have taken such a leap, or maybe it's just me who hand't found them before Sep 30 17:46:45 Afzal: please remember that next time someone asks "Is ProGuard enough to protect my code?" Sep 30 17:47:12 lol Melatonina honestly, if I wasn't getting paid to do this, I wouldn't waste my time Sep 30 17:47:47 it's still a LOT of effort even with the better tools Sep 30 17:48:04 but depends what they mean by "protect" Sep 30 17:49:10 there's no way to really protect your code if there are things like xposed out there, allowing any app to be set debuggable, able to step through the smali code with the debugger Sep 30 17:49:54 Afzal: the answer is usually something along the lines of "Yeah, I know that it's always possible to read the code. I just want it to be protected ENOUGH". Where "ENOUGH" is a unquantified quantity. Sep 30 17:50:03 yes exactly Sep 30 17:50:50 it's enough to deter mostly the non-persistent people. Even going through this code, I'm still wondering if what I'm trying to do is possible lol Sep 30 17:50:53 after 2 days Sep 30 17:50:57 The NSA probably has our code already. Sep 30 17:51:31 Well, then NSA could release it in the public domain so that I don't have to write it :D Sep 30 17:51:40 what I meant was, I didn't use to use Android Studio to analyze decompiled classes Sep 30 17:51:50 didn't know I could just do "Find Usages" lol Sep 30 17:52:01 and lol Sep 30 17:54:39 hello Sep 30 17:54:57 I have discovered that 6 core does not seem to be any better than 4 core for compiling Android projects Sep 30 17:55:06 haha Sep 30 17:55:13 it's only better to compile AOSP Sep 30 17:55:24 yeah gcc is pretty good at parallelization Sep 30 17:55:28 javac, not so much Sep 30 17:55:55 missingno did you try --parallel-threads=N in gradle? Sep 30 17:56:13 hmm Sep 30 17:56:21 Compile projects in parallel section http://www.jimumirror.com/2014/10/speeding-gradle-builds/ Sep 30 17:56:25 I was using dexOptions... Sep 30 17:56:41 Android Studio part Sep 30 17:56:42 org.gradle.parallel sped it up by 4secs Sep 30 17:56:42 Also depends on how many pieces you have Sep 30 17:56:49 also daemon Sep 30 17:56:54 hmm Sep 30 17:56:59 3.1 enables daemon by default, so yes Sep 30 17:57:28 unfortunately one of my modules is pretty big and more or less takes up most of the compile time Sep 30 17:58:14 hi. do i need a content provider if i don't expose my app's data to other applications? Sep 30 17:59:45 you don’t have to have one, no. but you might choose to have one if it fits what you’re trying to do Sep 30 18:00:59 hmm gradle wrapper doesn't like the --parallel-threads option Sep 30 18:01:24 oh it is --max-workers now Sep 30 18:02:44 s73v3r: i'm reading data from a web service using soap. I'm using AysncTask for that, but as you know is not good. So i've learned about Loader. But Loaders need a Content Provider. So my question :) Sep 30 18:03:02 hmm max-workers = number of cpus by default Sep 30 18:03:07 "Apparently the longterm goal is to move away from “Android” proper and to Andromeda which will run on anything (a la Windows 10)" Sep 30 18:03:34 so many people ket bashing the windows 10 idea, haha joke is on them Sep 30 18:03:55 I have discovered that 6 core does not seem to be any better than 4 core for compiling Android projects < not sure that's true and your mileage may vary ;) I just did two quick tests and on the last disabled most of the cores (and kept only 2 of them), it's not linear though: http://imgur.com/a/I1y9g Sep 30 18:04:17 so it took ~5sec to clean/build on first test with all cores, ~10sec with 2 cores Sep 30 18:04:28 i did it few times to be sure it's not jittering or some hot/cold stuff Sep 30 18:05:06 I've been trying to work with the Gimbal SDK to get location events, and have had success testing them on an actual device, but not success testing them on an emulator Sep 30 18:05:25 Afzal did you settle on a charting library ? Sep 30 18:05:27 g00s: I wonder what the development experience will be like. Sep 30 18:05:28 I would love it if my stuff built in five seconds Sep 30 18:05:36 I refuse to use Fragments to scale to laptop displays. Sep 30 18:05:43 cc me g00s and Afzal because recently I tested few chart libs Sep 30 18:05:44 and they all sux Sep 30 18:06:01 adq lol yeah , fucking java, GC, jank Sep 30 18:06:04 and i'm close to plotting myself in a canvas at the end, especially if you see the countless number of issues of those popular libs Sep 30 18:06:13 hard with all that data needing to be plotted Sep 30 18:06:20 none of them are handling aliasing too Sep 30 18:06:20 What could be different about location on an emulator that would cause obvious location changes to not be reflected as entering/exiting a geofence? Sep 30 18:06:24 get back here TJ damn it Sep 30 18:06:28 (not AA, aliasing about frequency) Sep 30 18:06:58 damn he ragedquit Sep 30 18:07:07 lol what did i say Sep 30 18:07:15 chart Sep 30 18:07:19 you said "chart" Sep 30 18:07:22 this is serious candy https://twitter.com/hallstephenj/status/781909207792562176 Sep 30 18:07:27 adq lol Sep 30 18:07:34 chart chart chart chart Sep 30 18:07:38 even tacticaljoke left the boat Sep 30 18:08:17 "Oracle denied 3rd trial in copyright dispute with Google over Java " bwahahaha Sep 30 18:13:36 Why is ButterKnife called "ButterKnife"? Sep 30 18:14:55 probably indicates how useful but not razor sharp it is Sep 30 18:15:02 Why is square called square? Sep 30 18:15:08 Why is the rum always gone? Sep 30 18:15:34 orbyt_: i drinked it all Sep 30 18:16:49 adq: 2 vs 4? Sep 30 18:17:01 2 vs 12 Sep 30 18:17:06 i think it’s a pun off dagger Sep 30 18:17:13 left is 12, right is 2 Sep 30 18:18:01 you still see some spiked on the other cores on the right side because I did not set for AS but only for the gradle daemon Sep 30 18:18:02 I just get the impression that 4 is some magic number they optimize for Sep 30 18:18:30 yeah for sure it's more complicated than what we could say in one or two lines Sep 30 18:18:32 and it's not linear Sep 30 18:18:46 my incremental build is 19s on the six core and 24s on a quad core Sep 30 18:18:50 if your cpu is not even reaching 100% it's not the bottleneck anyway Sep 30 18:18:54 it is not selling me on buying even more cores Sep 30 18:19:15 but is it the same architecture/cpu? Sep 30 18:19:17 cause in my case it was Sep 30 18:19:22 i simply disabled few cores Sep 30 18:19:38 I am comparing skylake vs broadwell Sep 30 18:19:58 ghz seems to give more gains, therefore Skylake with less cores and more ghz seems to be the way to go Sep 30 18:20:04 I already said it, but the best thing i did to improve perf of android dev was to move many things into a ram disk Sep 30 18:20:12 ooo Sep 30 18:20:13 so all the build folders go there, also the gradle cache, etc Sep 30 18:20:24 and this is above any tips (always the same since years) i have read Sep 30 18:20:25 I thought an ssd would be enough Sep 30 18:20:33 ssd perf is still far lower than ramdisk Sep 30 18:20:37 like order from x10 to x100 Sep 30 18:20:43 slower* Sep 30 18:20:51 also enabledf the recent build cache thingy Sep 30 18:21:03 android.enableBuildCache=true Sep 30 18:21:08 and putting its dir also on a ramdisk Sep 30 18:21:21 thing is my laptop is short on ram so that would be a tall order, but it should work on the desktop Sep 30 18:21:39 yeah don't do it if you are short on ram Sep 30 18:21:45 but keep in mind, unused ram is wasted ram Sep 30 18:24:10 hmm is there way to create transparent ramdisks Sep 30 18:24:24 also doesn't the filesystem kinda cache things in your unused ram anyways? Sep 30 18:24:40 just thinking about how to do this without having to copy stuff back and forth Sep 30 18:25:40 s73v3r: still there? Sep 30 18:25:55 you have to make the decision on whether you want a content provider yourself Sep 30 18:31:53 hi Sep 30 18:32:07 what should i name my launcher icon, inmy drawable folders? Sep 30 18:32:14 what should i name my launcher icon, in my drawable folders? Sep 30 18:34:17 Hmm I think this is what I was looking for "Note: Providing mock location data is injected as GPS location data, so you must request location updates from GPS_PROVIDER in order for mock location data to work." Sep 30 18:34:41 Hello, I was wondering if anyone on Android Studio 2.2/SierraOS and noticed that his device is missing after some time in Deployment Target. Also "adb devices" shows nothing. I have to unplug and plug USB back in Sep 30 18:35:18 i'm getting a json response with about 70 fields and I only need about 4 Sep 30 18:35:28 talk to your server people Sep 30 18:35:34 how do i ignore the rest fields at once with jackson Sep 30 18:36:08 Actually killing and restarting server does the trick. Sep 30 18:36:15 Just don't define them in your model Sep 30 18:36:34 Guma: Known issue, hopefully they'll fix it soon. I think it disappears after 5 minutes Sep 30 18:36:56 SimonVT ... Thank you Sep 30 18:37:12 I believe JetBrains is still recomending holding off on the upgrade, but that might be for other IntelliJ bugs Sep 30 18:37:37 SimonVT, it throws an exception with message "unrecognized field not marked as ignorable" Sep 30 18:37:51 do i really need to ignore the 60+ fields one by one? Sep 30 18:38:01 Only other issue I've encountered is the really fast scrolling thing Sep 30 18:38:28 idoko: can you talk to your server people to get a better response? Sep 30 18:39:04 I'm sure there are ways of not crashing if a field is not defined Sep 30 18:39:18 Would be rather annoying to break if some api you're using decides to add another field Sep 30 18:40:07 s73v3r, it's a kinda third-party thing so I can't do that Sep 30 18:40:26 then it sounds like you’ve got to ignore them Sep 30 18:40:51 I know Gson won’t try to set up a field if it’s not annotated. maybe that’ll work? Sep 30 18:41:39 s73v3r, yeah, I found a way...I should have used google first :D Sep 30 18:42:00 @JsonIgnoreProperties(ignoreUnknown=true) Sep 30 18:45:14 adq have you used storage access framework ? Sep 30 18:47:36 just thinking about how to do this without having to copy stuff back and forth < you either specify the path when possible (like for the build folders, no issue there) or trick it via symlink Sep 30 18:47:38 g00s, nope Sep 30 19:20:34 adq: have you thought about memory bandwidth before? Sep 30 19:20:48 I was thinking about optimizing it but then I figured quad-channel is plenty Sep 30 19:21:03 but now I find out that the l3 cache is clocked separately as well Sep 30 19:21:08 this is not the bottleneck here Sep 30 19:27:25 was your graph with your ramdisk adq? Sep 30 19:32:53 missingno, yes Sep 30 19:33:11 hmmmmm I wonder what the bottleneck could be then Sep 30 19:33:30 there is only one way to know, profile and measure Sep 30 19:43:00 how much time take playstore to publish the app? Sep 30 19:44:56 it can take a couple hours for it to propogate to the several servers Sep 30 19:45:06 and to be indexed for search Sep 30 19:45:19 s3and google verification? Sep 30 19:46:05 hey all I was following the information here http://www.helloandroid.com/tutorials/simple-udp-communication-example and have successfully created a udp packet send app now I am trying to create the recieve app but I feel stuck I was able to test the send app with a thirdparty reciever (thats how I know it works) Sep 30 19:47:53 http://pastebin.com/TVAztpqy <-- this is the main activity code for the reciever Sep 30 19:48:24 but I feel like I am missing something crucial (maybe someone could advise on a good tutorial of something similar? Sep 30 19:55:48 Does anyone use an anchored FAB in their app? Sep 30 19:56:10 I'm having an issue with it, I can't seem to use fab.hide() unless I unanchor it first Sep 30 19:56:49 hello all. I have a question regarding making socket connections from android (using netty) to a remote router Sep 30 19:56:59 the error that i'm getting is no route to host Sep 30 19:57:05 what can be the cause of this? Sep 30 19:57:12 But when I unanchor it, it flicks back to it's default position on the screen while it animates to hidden Sep 30 19:57:26 provided that I have checked I can connect to another server from the phone (similar socket connection) Sep 30 19:57:57 the remote router is accessible and online Sep 30 19:58:18 I have a process behind that router listening on a port Sep 30 19:58:45 Bloody Google, this didn't happen until one of the later versions of the design libs Sep 30 19:58:55 i'm using the GSM internet to connect, which is also fine as i'm able to connect to another server which has apis Sep 30 20:00:36 hey all, quick question Sep 30 20:01:02 i am sending a gcm notification and i am noticing the icon in the tray is a gray box Sep 30 20:01:07 i have a colored image Sep 30 20:01:15 i get that it might go grayscale Sep 30 20:01:17 not sure Sep 30 20:01:25 hello guys 'n' girls, maybe one of you now a "self-learning" platform like udacity but for free (or much lower costs, because 200euro a month is too much for me)? Something like https://de.udacity.com/course/android-basics-nanodegree-by-google--nd803/ Sep 30 20:02:23 xximjasonxx: android 5+ requires white/alpha icons Sep 30 20:02:47 got it, have to be a request from their designer Sep 30 20:02:53 thanks ashiren Sep 30 20:03:12 Ayor: can you ping that router from the phone? Sep 30 20:04:39 Ashiren, fair point, I haven't tried that Sep 30 20:05:17 I would to pass the flag -M to gcc. In which *FLAGS array should I put it, to be sure that it will be used by a make executed from toplevel directory, to build my whole tree? Sep 30 20:05:50 Ashiren, I remeber now, I did think of it but icmp is disabled Sep 30 20:06:30 oh Sep 30 20:06:56 Ashiren, I tried a telnet on the ip:port combo but it didn't work, however I have the other server that can write back to the process behind the router Sep 30 20:07:05 I'm just not sure if this something related to my phone provider or something else Sep 30 20:07:13 anyone using vitamio? Sep 30 20:07:51 I just read the argument for this chat, maybe I'm in the wrong one. Anybody knows a channel more focused on platform development/build than on apk? Sep 30 20:07:52 at first i would check if i can somehow connect to the router by other means from that phone Sep 30 20:08:09 david________: you can take the nanodegree for free Sep 30 20:08:10 javier4: ROM / kernel? #android-root Sep 30 20:08:15 you just don’t get the certificate Sep 30 20:08:39 Ashiren, thanks a lot. Bye. Sep 30 20:10:17 I'm having issues managing multiple RecyclerViews in a ViewPager. Sep 30 20:10:54 I'm trying to access one recyclerview from an onclicklistener set in the adapter for another. Sep 30 20:10:57 s73v3r: Thank you, but i think it is only a week, so i have to take holidays (and i have not so many days)... (164h/7d = 23h) Sep 30 20:11:16 i don’t get it Sep 30 20:11:28 I was able to do so, but only by declaring static Views which Android Studio told me was a memory problem Sep 30 20:12:05 dont make Views static Sep 30 20:12:06 ah okay (i read your second answer now), so i can take the course but i dont get the certifikate if i dont pay the money? sounds fair. Sep 30 20:12:30 yeah. and it’s self paced, so you can do it as fast or as slow as you want Sep 30 20:12:40 Ashiren, yes I have tried that via another server Sep 30 20:13:03 Maybe if there's going to be one and only one instance of it... AS doesn't seem to carp about that Sep 30 20:13:38 making things static just because you cant access it is poor design Sep 30 20:14:16 if you need that other recyclerview inside adapter or onclicklistener, do it by some interface or pass it by adapter's constructor Sep 30 20:14:17 s73v3r: ahhhhh okay, thank you s73v3r. then i can take the course :-) (i hope after the 160 hours i can ask the really important questions ;-) ) thank you for the answer :-) Sep 30 20:14:26 Ashiren: I know that now... Sep 30 20:14:37 Ashiren: how would I use an interface? Sep 30 20:14:54 can you pastebin the code Sep 30 20:15:09 Ashiren: How much do you need? Sep 30 20:15:48 at least the place you want to access the recyclerview. and probably the place where you declared the recyclerviews Sep 30 20:17:03 Ashiren: OK, I'm going to undo my changes to where I declared my views as static so you can see what I was trying to do. Will that work? Sep 30 20:17:18 ok Sep 30 20:20:04 s73v3r: sorry but are you shure that the course is for free? i'm only seeing a one-week free trial, so now i'm a little confused. Sep 30 20:21:17 s73v3r: i will change my nikename (i dont know why there is this ______ ...) Sep 30 20:21:18 yeah Sep 30 20:21:40 so Sep 30 20:21:41 the nanodegree site does kinda hide it a bit Sep 30 20:21:57 but if you scroll down, you’ll see the courses that are in the program Sep 30 20:22:12 Android Development for Beginners, Android Basics, etc Sep 30 20:22:17 those are the free things Sep 30 20:22:25 https://www.udacity.com/course/android-development-for-beginners--ud837 Sep 30 20:24:06 ahhh okay okay :-) thank you for sharing the information :-) i like this irc, the people (like you) are always so friendly and helpfully :-) Sep 30 20:24:42 everyone here is so helpfull & friendly Sep 30 20:24:49 i dont know why i don't found this link. thank you a lot. Sep 30 20:25:03 i hope you both slip on dog poop and break your necks :) Sep 30 20:25:12 DelphiWorld: thats right :-) Sep 30 20:25:26 hehe Sep 30 20:25:32 devdavid: i come here with zero java knoledge and i begin learning Sep 30 20:25:33 devdavid: they are trying to funnel you to pay for it; that is how they make their money, after all Sep 30 20:26:37 what? zero java knowledge and you started android!? Sep 30 20:26:39 :O Sep 30 20:26:48 Ashiren: Here it is. It's an app for my friend's study bible: http://pastebin.com/78UgCFUY Sep 30 20:27:12 Ashiren: two files there Sep 30 20:29:42 DelphiWorld: we noticed Sep 30 20:29:50 Melatonina: ;) Sep 30 20:29:50 DelphiWorld: :) Sep 30 20:30:10 I still didn't read a Java book either Sep 30 20:30:15 and it shows Sep 30 20:33:50 I had zero java knowledge when I started (and also when I finished) developing Android apps. Sep 30 20:34:02 lol Sep 30 20:34:03 You just mash the keyboard in Eclipse and it all works out. Sep 30 20:34:24 sh1: eclipse? (shudders) Sep 30 20:34:25 Just keep mashing until the wiggle red lines disappear. Sep 30 20:34:35 s/wiggle/wiggly/ Sep 30 20:34:54 noahmg123: better thant droid studio! Sep 30 20:35:13 Eclipse was all there was back in my day. Sep 30 20:35:16 DelphiWorld: well apparently Google didn't think so. Sep 30 20:35:33 Ashiren: have you taken a look at my code yet? Sep 30 20:35:39 noahmg123: tel google to drop out AWT ui and use SWT Sep 30 20:35:41 Well, up until I found a page telling me how to make a somethingorother file so I could just make from vim. Sep 30 20:36:40 noahmg123: yes. i dont get it. each fragment has its own recyclerviews? Sep 30 20:37:06 Ashiren: It's own RecyclerView, singular Sep 30 20:37:11 Each fragment has one Sep 30 20:37:14 ahh Sep 30 20:37:20 and the activity has all 3 Sep 30 20:37:23 ugh Sep 30 20:37:49 I know it's not good design Sep 30 20:38:01 thank you all :-) Sep 30 20:38:23 I just, in my limited experience, do not know a good way to do it. Using contructors introduced more issues. Sep 30 20:38:26 in other words fragment knows about other fragments eh Sep 30 20:38:45 Ashiren: that is what I would want, yes Sep 30 20:40:33 It's like a hierarchy of sorts. Sep 30 20:40:59 First fragment picks the book, second picks the chapter, third picks the verse Sep 30 20:41:15 It defaults to the very first possible one at the start Sep 30 20:41:51 Ashiren: makes sense? Sep 30 20:41:59 yes, i think Sep 30 20:42:11 You're going to hit other issues unless you set up an interface Sep 30 20:42:28 Yeah, I don't have experience with interfaces Sep 30 20:42:56 lets think it other way Sep 30 20:43:15 does ViewHolder's onClick need to do those things? Sep 30 20:43:43 noahmg123: Well, the good news is that there's not much to them. Heh Sep 30 20:44:03 Hey guys question, I am reading about GCM online and I am a little fuzzy on receiving the notification Sep 30 20:44:19 it could do inside that onClick just someInterface.setCurrentBook(vBookName.getText().toString()) Sep 30 20:44:20 I understand that, if the app is open OnMessageReceived is the handler via the GcmListenerService Sep 30 20:44:33 Dagmar: OK, could you give me a quick rundown and how I could use them here? Sep 30 20:44:40 but what i am not understanding is who receives the Intent info if the user clicks on the notification from the tray Sep 30 20:44:55 while someInterface would be implemnted by Activity and the Activity would do the magic Sep 30 20:45:04 from what i am reading it sounds like it goes through GcmListenerService, but that doesnt make sense given what I know about Android Sep 30 20:45:23 Ashiren: what's the difference between an interface and a class? Sep 30 20:45:42 noahmg123: interface has no implementation and class can be instatiated and has implementations Sep 30 20:45:58 and interface doesnth have variables for itself Sep 30 20:46:01 Interface is a contract guaranteeing something about the implementing class Sep 30 20:46:23 you might be confused at first why would you make separate interface which will be just used by your Activity Sep 30 20:46:47 Hm Sep 30 20:47:07 Well the currentBook, currentChapter, and currentVerse are not the issue Sep 30 20:47:15 those are in custom classes Sep 30 20:47:16 "Because Android Studio said so" was good enough for me Sep 30 20:47:40 I need some way to access the views like chapterPicker Sep 30 20:47:41 let me put it this way: ViewHolder is for views only. let the onClick delegate to the adapter's method Sep 30 20:47:54 in the onClickListener Sep 30 20:48:09 the adapter's method then delegate to fragment's method. and fragment has getActivity() which knows about all fragments, in theory Sep 30 20:48:38 so you can access all the variables there, not need for statics Sep 30 20:49:07 Hm Sep 30 20:49:16 I think I kind of get what you are saying Sep 30 20:49:28 but how do I delegate to the fragment? Sep 30 20:50:14 The views are buried behind methods. Sep 30 20:50:57 pass fragment to adapter's constructor Sep 30 20:52:05 Ashiren: I had pursued that, but I was not able to access the views, or at least I didn't know how. Sep 30 20:53:05 you dont need to. what i mean is "move" the insides of onClick method to activity Sep 30 20:53:46 OK, I get that, but the insides of the onClick method also point to vBookName Sep 30 20:54:09 how do I get that reference resolved? Sep 30 20:54:11 xximjasonxx: in onMessageReceived you just receive the data. what/how/if you make the notification is up to you Sep 30 20:54:28 hrmm so if i had to guess, i would say that if I click on a notification in the status bar and my app is not running, i should expect to receive the data in onCreate of the main launcher activityu Sep 30 20:54:51 Ashiren: that part i understand for when the app is running. I am working on the case where its not running Sep 30 20:54:53 noahmg123: pass the vBookName's text as argument Sep 30 20:55:28 xximjasonxx: if user clicks the notification it will launch the PendingIntent within it, mostly the Activity Sep 30 20:55:40 mmm thanks for that Ashiren Sep 30 20:56:07 Ashiren: do you know a good place where i can learn more about this process Sep 30 20:56:08 it can be any Activity, not only launcher Sep 30 20:56:19 my google searches have thus far been terrible Sep 30 20:56:30 there is one activity which makes sense, if there is a way to mark it Sep 30 20:56:37 that would be the best appraoch Sep 30 20:56:50 I understand, in theory, what you are saying. It's just hard to keep track. But where would I but the vBookName text as an argument? Am I creating a new method in all this or using my current methods? Sep 30 20:56:55 actually no. but i would search for notification builder and notifications themselves Sep 30 20:57:00 its kinda separated from GCM Sep 30 20:57:33 understood, i will try that approach. thanks Sep 30 20:57:43 noahmg123: create new method in Activity, in Fragment, in Adapter. each will take the String as argument Sep 30 20:58:03 OK, I think I am following now. Sep 30 20:58:53 I wish IntelliJ included a flowchart or something so you can see where your data is going. Sep 30 20:59:23 What's GCM? Sep 30 20:59:48 of course to look like java expert you would "pack" all those things in interfaces but for starters lets just remove the statics Sep 30 20:59:54 Google Cloud Messaging Sep 30 21:00:05 Firebase Cloud Messaging Sep 30 21:02:45 is there a way to install my app in my device using adb, without removing it? Sep 30 21:03:01 to update it i need to remove & reinstall using adb Sep 30 21:03:13 adb install -r Sep 30 21:03:20 Ashiren: thank you Sep 30 21:04:20 Ashiren: now there is still the issue of the context and the viewpager Sep 30 21:04:46 Wait Sep 30 21:04:57 I found this article: https://developer.android.com/training/basics/fragments/communicating.html Sep 30 21:05:26 "Communicating with Other Fragments Sep 30 21:05:27 "Communicating with Other Fragments Sep 30 21:05:27 Communicating with Other Fragments Sep 30 21:05:27 "Communicating with Other Fragments" Sep 30 21:05:28 what Sep 30 21:05:36 why did that do it 3 times? Sep 30 21:05:39 oh well Sep 30 21:05:45 That's the tit;e Sep 30 21:05:48 title* Sep 30 21:05:55 is it about communicating with other fragments? Sep 30 21:06:11 and it uses interface Sep 30 21:06:30 It appears so Sep 30 21:06:52 I'll read it more and see if it helps Sep 30 21:07:08 Android is too big. My head is exploding Sep 30 21:07:29 Melatonina: welcome to the club Sep 30 21:07:30 maybes its note s7 Sep 30 21:07:30 Melatonina: i can heare the explosion Sep 30 21:08:23 It's really Java and IntelliJ. They are designed to make code safe. But not necessarily very efficient. Sep 30 21:09:21 Type-safeness has it's ups and downs Sep 30 21:10:15 so does elevator operator job Sep 30 21:10:20 type safety doesn’t have much to do with the efficiency of code Sep 30 21:11:07 s73v3r: ok. We'll say sanity. Sep 30 21:11:07 noahmg123: Doesn't really have to make sense. If you follow their instructions you'll get something like ((YourActivityClass)getActivity()).interfaceThingYouMadeUp(someargs) Sep 30 21:11:26 noahmg123: Which makes far more sense after you've actually typed it once Sep 30 21:11:42 Dagmar: Thanks Sep 30 21:12:11 And earlier I was just joking about how confusing Java can be Sep 30 21:12:26 Preaching to the choir man Sep 30 21:12:42 My #1 complaint is that most of the java documentation is written in "Java Programmer" Sep 30 21:12:53 Exactly Sep 30 21:13:11 is there anything special i need in the manifest to get notifications to pop when my app is closed (ie I hit Recent and swiped it out of the list) Sep 30 21:14:28 xximjasonxx: afaik you need to declare a reciever so that Android knows where to send the intents Sep 30 21:15:17 receiver is declared Sep 30 21:15:27 You could *try* just doing something in onDestroy but... possibly not always guaranteed Sep 30 21:15:28 notifications work when app is running and in the background Sep 30 21:15:46 but when the app is "closed" device never receives the push Sep 30 21:16:36 An actual push notification from Google Play Services? Sep 30 21:16:52 yes Sep 30 21:16:55 using GCM Sep 30 21:19:03 Hrm... I actually went through part of that documentation last week before I realized Nearby has crap range Sep 30 21:20:24 Seemed mostly like a "normal" intent handler to me, but there were some rather finicky rules about registering. Sep 30 21:21:43 the whole point of nearby is to have extremely short range Sep 30 21:22:01 Yeah well, I had something along the lines of 150 yards in mind, not... "bluetooth" Sep 30 21:22:24 not the use-case Sep 30 21:22:26 how would you think they’d do it if not bluetooth Sep 30 21:22:52 Clearly, but you might note that the first overview or two seem to leave that out Sep 30 21:23:15 most people wouldn’t think a football field and a half is “nearby" Sep 30 21:23:20 I was kinda hoping for some geofencing-like stuff, from their description Sep 30 21:23:32 why not just use geofencing? Sep 30 21:23:46 Because all the possible participants are moving around Sep 30 21:24:26 I was hoping for something with slightly more reach than using wireless in ad-hoc mode and broadcast packets Sep 30 21:24:40 there isn't Sep 30 21:24:46 use gps and fence yourself Sep 30 21:25:19 Either way, their initial release made it sound like "bellowing distance" was a possibility Sep 30 21:25:31 you don't bellow across a football field and a half Sep 30 21:25:43 Never been in a marching band, have you Sep 30 21:25:55 a marching band is not an individual Sep 30 21:26:00 i have. you don’t bellow across that distance Sep 30 21:26:25 terrain can help, but that's the exception Sep 30 21:29:45 One definitely doesn't have a casual conversation at that distance Sep 30 21:32:23 is what i want to do possible: i have an activity which is running. I want the push notification to come in, and broadcast a custom intent Sep 30 21:32:37 i would like that activity (if its alive) to receive that intent and update the screen Sep 30 21:32:51 Yes. Sep 30 21:32:55 Apps do it all the time Sep 30 21:33:00 thats what i figured Sep 30 21:33:16 i assume i need a broadcastreceiver Sep 30 21:33:21 since the activity will not receive the intent Sep 30 21:33:24 correct Sep 30 21:33:26 You've got to do a special thing to have Android re-register the reciever after a reboot if you want it to be truly persistent Sep 30 21:33:42 would be nice if there were a way to save the open tabs in a project Sep 30 21:33:55 then close them and open other tabs in the same project Sep 30 21:34:48 Afzal: so, like tab groups that you could switch between? Sep 30 21:35:12 Afzal you're back ... Sep 30 21:35:24 holy shit! Thorbear I love intellij! Sep 30 21:35:34 yes! g00s internet at work sucks Sep 30 21:35:36 AS is even better :) Sep 30 21:35:46 lol, love that feeling when you think of a feature and it exists! Sep 30 21:35:53 Afzal did you settle on a charting lib? adq is curious also Sep 30 21:35:56 Hi, I have program with PageViewer. There are 4 fragments, I need somehow to know, which fragment currently is selected, how to do this? Sep 30 21:36:11 xximjasonxx I'm guessing this particular feature is part of the intellij package rather than AS Sep 30 21:36:31 ViewPager* Sep 30 21:36:33 g00s not yet, been busy dissecting the Allo app :/ Sep 30 21:36:40 lol Sep 30 21:36:59 xximjasonxx: afaik you basically have to use a broadcastreciever if you want intents from other processes Sep 30 21:37:25 g00s as soon as I can learn to use the 7 libraries I was planning on benchmarking, I'll be able to benchmark them :D Sep 30 21:37:36 or you know, learn to use them enough Sep 30 21:37:54 graphing libraries generally include a lot of boilerplate :( Sep 30 21:37:59 in order to be flexible Sep 30 21:38:09 yeah they are a pita Sep 30 21:38:18 if i was creating one now, i'd do an API like ggplot Sep 30 21:38:26 never heard of it Sep 30 21:38:34 famous R library for graphics Sep 30 21:39:26 everybody has their own idea on , what to do with labels, axes, series, etc Sep 30 21:41:44 Dagmar: right, I was hoping that maybe i could broadcast an activity and if it matched the intent filter on the activity it would work Sep 30 21:41:49 doesnt seem to be the case though Sep 30 21:41:50 too bad Sep 30 21:42:13 Nah you just send the intent and from what I've been able to tell it just magically vivifies the reciever Sep 30 21:42:19 Who had worked with ViewPager here? Sep 30 21:42:22 ...or in this case GCM sends it Sep 30 21:42:43 well gcm sends the notification Sep 30 21:42:46 xximjasonxx: It is the thing all widgets basically revolve around like it's the center of the universe Sep 30 21:42:55 which i then parse and send another intent with what the notification meant Sep 30 21:43:02 Intent? Sep 30 21:43:08 DoITCreative: The ViewPager has a getCurrentItem method Sep 30 21:43:33 wow, save context Sep 30 21:43:53 Yep, but I need it to be executed on page swiping Sep 30 21:44:12 xximjasonxx: Sending intents. Because basically, about the only thing you can expect to still be there later in a widget is the resulting bitmap. _Most_ of the time. Sep 30 21:44:21 ok. so do it then Sep 30 21:44:32 s73v3r: How? Sep 30 21:44:48 when swiping, call that method and find it out Sep 30 21:45:21 there’s a page change listener you can set Sep 30 21:45:41 Yes, but it does not work for me :( Sep 30 21:46:14 then you’re either trying to do something it doesn’t support, or you’re not doing it correctly Sep 30 21:46:46 xximjasonxx: unless I misunderstood, when GCM sends hte push notification, you'll "see" it on your end only by checking for the intent it sent that vivified the class. Sep 30 21:46:49 hm, is there any way to have google maps fragment in 'dark theme' ... my whole app is dark theme, but that damn thing is bright as hell Sep 30 21:48:50 Dagmar: not what i am having trouble with. GCM is working fine, with the exception of the case of the app being closed i get no notification Sep 30 21:49:27 Dagmar: what i am wanting to do is support this: 1) GCM notification is received 2) Notification data is parsed 3) Based on parsed data a custom intent is broadcast Sep 30 21:50:08 4) If an activity is active which subscribes to this Intent, it updates the UI (I would assume OnNewIntent would get called) Sep 30 21:50:15 xximjasonxx: You defined the broadcastreciever in your manifest, right? Sep 30 21:50:41 as it is, for #4, it sounds like I have to define a broadcastreceiver (in addition to the one I use for GCM) which listens for the custom intents Sep 30 21:50:59 which when they are received the interact with the Activity that I want to change the associated UI Sep 30 21:51:18 why wouldn’t the activity be able to just receive the intent? Sep 30 21:51:26 s73v3r: that is my question Sep 30 21:51:50 i attempted to define an intent filter for the activity in question and then placed a breakpoint in OnNewIntent Sep 30 21:51:56 regretably, no result Sep 30 21:52:13 why not just have the broadcastreceiver send an intent directly to that activity? Sep 30 21:52:20 ^ that Sep 30 21:52:29 hrmm Sep 30 21:52:38 that sounds like what i want, but i am unsure how to do that Sep 30 21:52:49 same way you’d send an intent to any other activity Sep 30 21:52:49 to be clear, i do not want to start the activity if its not started Sep 30 21:53:27 Why the Realm manual says you should cancel your transactions in onStop()? Why shouldn't we wait for the transaction to complete, instead, so that we don't lose data?? Sep 30 21:53:35 s73v3r: i am afraid i am not clear on what you mean Sep 30 21:53:44 Melatonina: crashes Sep 30 21:53:49 the only way, that i am aware of, to send intents is with some variant of startActivity Sep 30 21:54:05 s73v3r: what crashes? Sep 30 21:54:15 you could check if the activity is running, and only if it is, send the intent Sep 30 21:54:18 google searches seem to point at the need for a broadcast receiver Sep 30 21:54:37 Melatonina: bad things happen when you try to continue using an Activity context if that context has gone away Sep 30 21:54:52 s73v3r: is there anyway you could provide a code example? Sep 30 21:54:59 no Sep 30 21:55:39 s73v3r: I supposed the context is still active inside onStop() and it will be destroyed later. If we WAIT for the transactions to complete in onStop() the context will be there. Sep 30 21:55:45 suppose Sep 30 21:55:48 nope Sep 30 21:55:57 because onStop means your activity is going away Sep 30 21:56:00 there is no waiting Sep 30 21:56:17 what do you mean there is no waiting? Sep 30 21:56:24 s73v3r: http://cxg.de/_c57809.htm this is the code. It does not print anything at log for me :( Sep 30 21:56:37 you’re not going to be able to wait for the transaction to complete. The system will kill your activity Sep 30 21:56:46 ok s73v3r i THINK I see what you are gettinig at Sep 30 21:56:47 why call onStop() then Sep 30 21:56:55 it's a joke Sep 30 21:56:56 xximjasonxx: you could just do a local broadcast, and receive that Sep 30 21:57:09 Melatonina: onStop gives you a chance to cancel those transactions Sep 30 21:57:34 s73v3r: if the system can wait for the transactions to be cancelled, it can wait for the transactions to complete Sep 30 21:57:38 basically, if i can deduce that the activity is open I can call startActivity on it. With appropriate flags, Android wont open a new instance, but rather the activity will receive the Intent Sep 30 21:57:43 DoITCreative: you’re not setting the pacher listener Sep 30 21:57:43 and OnNewIntent will get called Sep 30 21:58:10 Melatonina: nope Sep 30 21:58:17 nope Sep 30 21:58:19 nope Sep 30 21:58:34 and if realm knows that the transactions are canceled, it’s not going to try and notify you, which would cause those crashes Sep 30 21:58:50 s73v3r: pacher? Sep 30 21:58:52 feel free to try and fight the system Sep 30 21:58:54 pager Sep 30 21:59:37 s73v3r: nope Sep 30 21:59:59 s73v3r: How to set it? Sep 30 22:00:01 like I said, feel free to fight the system. Sep 30 22:00:07 nope Sep 30 22:00:16 DoITCreative: read the docs Sep 30 22:00:22 Melatonina: k Sep 30 22:01:05 s73v3r: I have not found any docs about it Sep 30 22:01:10 DoITCreative: There’s a setXListener method in the docs Sep 30 22:01:21 Ok Sep 30 22:03:20 s73v3r: It works now, but it says, that pager.setOnPageChangeListener(this) is depricated Sep 30 22:04:28 s73v3r: Thanks, anyway ;) Sep 30 22:04:35 Hi all! Sep 30 22:04:39 Hi Sep 30 22:05:03 DoITCreative: the docs list what you should use Sep 30 22:05:21 this sentence is wrong: "if realm knows that the transactions are canceled, it’s not going to try and notify you, which would cause those crashes". It should be: "if the transactions are canceled, they won't be executed and they won't cause notifications and possible subsequent UI update which would generate a crash". Sep 30 22:05:37 k Sep 30 22:05:57 but what if the transaction is already in progress Sep 30 22:06:16 it will be cancelled Sep 30 22:06:22 which means? Sep 30 22:06:25 otherwise "cancelled" has no meaning Sep 30 22:06:47 and what happens to a transaction when it’s cancelled Sep 30 22:06:49 it's not "cancelled or maybe done but without notifications" Sep 30 22:07:11 so it leaves things in a half finished state? Sep 30 22:07:24 being an ACID database of course not Sep 30 22:07:34 so it’s going to continue to do some work Sep 30 22:07:52 to undo the part that was done Sep 30 22:08:01 not to complete it Sep 30 22:08:13 that make my point actually Sep 30 22:08:31 no, your point was that Android could just wait for the transaction to finish Sep 30 22:08:39 yeah exactly Sep 30 22:08:45 and that’s not true Sep 30 22:08:58 if you are allowed to do some work to cancel a transaction you may do some work to complete it Sep 30 22:09:05 and NOT perform notifications Sep 30 22:09:21 when android calls onStop, that means they want you gone yesterday Sep 30 22:09:46 then there is no time to properly cancel a transaction Sep 30 22:09:52 whoa, you have to style mapfragment with json file O.o Sep 30 22:09:54 and your database is at risk in any case! Sep 30 22:10:05 one thing or another, you can't have both Sep 30 22:10:10 they are giving you a little bit of time to clean things up, but the activity is going away Sep 30 22:10:15 Ah ok Sep 30 22:10:20 Just a little of time Sep 30 22:10:28 to safely cancel but not to complete Sep 30 22:10:42 Android must have a sophisticated algorithm to compute "enough time" Sep 30 22:10:44 and if realm were to trudge along without being canceled, then they would try to notify your activity, and things would trash Sep 30 22:10:47 crash Sep 30 22:10:57 after onStop is called, all bets are off Sep 30 22:11:09 s73v3r: http://imgur.com/a/AfUak Sep 30 22:11:22 it sounds like a database could end up corrupted anyway, then Sep 30 22:11:26 DoITCreative: and i told you to read the docs Sep 30 22:12:50 s73v3r: how is your nick pronounced? Sep 30 22:14:14 g00s https://developers.google.com/maps/documentation/android-api/styling Sep 30 22:14:34 Afzal yeah i just found that .. Sep 30 22:14:38 haha :P Sep 30 22:14:39 what a pita :) Sep 30 22:14:58 wondering how to toggle light / dark Sep 30 22:15:18 i guess just recreate it with another set of options Sep 30 22:15:31 * g00s waits for some huge memory leak Sep 30 22:15:32 Guy, I am trying writing an app that works as a service. Should run in background and show a toast message with the actual geolocalization. Here is the problem, I need to instance the Google Play Services API. However on documentation (https://developer.android.com/training/location/retrieve-current.html ) shows only using activity and IntentService hasn't onCreate, onStop, etc. So how could I create a instace of the Google s Sep 30 22:15:47 Daemones: who is the guy in question? Sep 30 22:16:22 Anyone :-P Sep 30 22:16:33 Daemones: you can do most of that without an activity, I think the only time you need an activity is when you need to prompt the user to install play services when it is missing or something Sep 30 22:16:54 Daemones: what IRC client are you using? Sep 30 22:17:04 missingno are you sure, i thought they check the context instance class Sep 30 22:17:15 that is, they don't want you using it in a service Sep 30 22:17:27 I'm using webrowser Sep 30 22:17:47 irc.lc Sep 30 22:17:48 Daemones: your message was truncated most probably Sep 30 22:18:03 even if it may appear complete on your side Sep 30 22:18:06 sorry stupid question, i know, i think maybe its in a faq or something, but why some messages are red and other not? Sep 30 22:18:24 Afzal what sucks about this json styles thing, you can't reference theme attributes ... Sep 30 22:18:30 I will try a client Sep 30 22:19:03 that is true g00s Sep 30 22:19:18 or you can edit your json on the fly :p Sep 30 22:19:23 and then set the style Sep 30 22:19:28 lol gross Sep 30 22:19:35 :D Sep 30 22:24:25 why i cant login with holoirc? Sep 30 22:26:25 <_xor> Hey guys, quick opinions/poll. I know about Fabric/Crashlytics, but are there any free, self-hosted crash reporting servers/sdks? I'm going to evaluate Piwik & Countly in a bit, but the former doesn't seem to do it and the latter has it as a hosted/paid service. Sep 30 22:27:13 justJanne uses one, but I forget what it’s called Sep 30 22:27:20 the IRC client they work on uses it Sep 30 22:27:38 _xor: there’s a bunch of nice ACRA backends Sep 30 22:27:46 use ACRA in the app, and a nice backend for that Sep 30 22:27:59 I’m actually working on my own ACRA reporting backend this very second Sep 30 22:29:56 maybe _xor could be your first customer :p Sep 30 22:31:50 eh, dropbox still doesn't support SAF, losers Sep 30 22:33:45 justJanne you'll like #7 (not) https://twitter.com/i/moments/781913746356568064 Sep 30 22:35:35 Well, they're not Apple so we can probably assume they're not about to reinvent X11 Sep 30 22:36:06 I am trying create a app that works like a service (hasn't activity), Will show a toast message with the current geolocation. However I need to create a instance for Google Service Play for that. http://responsiveandroid.com/2014/12/16/android-services-what-they-are-what-they-are-not.html Says that I need create a instance of google play service inside Oncreate Method, as my app hasn't activity it hasn't onCreate method. How could create a instac Sep 30 22:36:07 e of Google Services Play? Sep 30 22:36:59 Dagmar: they’re google, so we kinda can assume they will Sep 30 22:37:28 Daemones_: That’s where they suggest you do those calls. Sep 30 22:38:26 man constraintlayout is fast, I'm using it to display some text and my views measure and draw in 1-2ms for each of those calls Sep 30 22:38:41 it felt sluggish with their first implementations but holy crap they've been doing work Sep 30 22:40:39 fb| in its latest incarnation (alpha9) does it do much more than relativelayout ? Sep 30 22:41:00 looking at the docs, seems like the best part is still the layout editor, and that doesn't even support chains in AS 2.2 Sep 30 22:41:24 kinda sucks now there is this tight coupling between AS and CL Sep 30 22:41:33 yeah that kind of sucks Sep 30 22:41:45 luckily for my use case i've been able to replace my relativelayout views Sep 30 22:41:55 and i've managed to flatten a few other views that had nested viewgroups Sep 30 22:42:08 it's made the xml cleaner so that's a bonus Sep 30 22:42:33 I think if you're starting a new project it'd be better to just go with CL instead of relative Sep 30 22:43:08 I’m still not jazzed on using alpha previews for production stuff Sep 30 22:43:44 s73v3r yeah Sep 30 22:43:54 "After a rapid succession of small earthquakes rumbled deep under the Salton Sea Monday morning, the U.S. Geological Survey determined that the chances of a magnitude-7 or greater earthquake being triggered on the southern San Andreas fault are now as high as 1 in 100." Sep 30 22:44:03 g00s: actually, I stopped caring earlier today Sep 30 22:44:14 my first prototype of my own google photos clone started working today Sep 30 22:44:14 about the earthquakes? Sep 30 22:45:36 justJanne clarify? Sep 30 22:45:50 you learned to love your google overlords :) Sep 30 22:48:46 nah, I cloned them Sep 30 22:48:55 I’m a strong independent woman who don’t need no google Sep 30 22:49:25 \o/ Sep 30 22:49:50 you go, girl Sep 30 22:50:06 justJanne have you heard about Soshana Zuboff's upcoming book ? Sep 30 22:51:16 i think she has the whole google / surveillance capitalism thing nailed Sep 30 22:52:36 justJanne lengthy, http://www.faz.net/aktuell/feuilleton/debatten/the-digital-debate/shoshana-zuboff-secrets-of-surveillance-capitalism-14103616.html Sep 30 22:53:10 i think the new book is called Master / Slave Sep 30 22:53:27 but title has changed a few times Sep 30 22:55:59 man, google changes com.android.tools.build so hard on every release... Sep 30 22:58:15 pfn have you used SAF to modify a file in place ? Sep 30 22:58:34 you don't modify in place, you replace it Sep 30 22:58:42 ok, thats what i wondered Sep 30 22:58:46 and SAF is really bad about knowing when files are up-to-date Sep 30 22:58:53 at least with the google drive implementation Sep 30 22:59:08 (I just bomb shit in there, and let google drive sync/keepass sync figure it out) Sep 30 22:59:28 but SAF never pulls up-to-date files from drive whenever PC makes changes, unless I go into the drive app manually Sep 30 22:59:33 they have a section "Edit a document" https://developer.android.com/guide/topics/providers/document-provider.html Sep 30 22:59:40 but yeah, that just replaces / overwrites Sep 30 23:02:45 ähm = sorry bur why have someone red = and another not? Sep 30 23:03:24 ähm = sorry bur why have someone doppel red == and another not? Sep 30 23:09:11 red probably means they are commies Sep 30 23:09:57 Now now... Sep 30 23:10:01 They could be Red Shirts Sep 30 23:10:13 who were also commies Sep 30 23:10:20 i was just joking haha Sep 30 23:10:27 Red shirts aren't nothing - they're dead. Sep 30 23:10:34 ;) Sep 30 23:10:41 Either definition Sep 30 23:30:08 <_xor> justJanne: Just saw your previous comments. Googling now :) Sep 30 23:42:55 ugh, I do not look forward to testing everything that's changed for builder 2.2.0 Oct 01 00:55:32 <_xor> Anyone here use Sentry? I'm looking at feedback on it. Oct 01 00:58:00 what is this Sentry? Oct 01 00:59:33 <_xor> Multi-platform crash reporting tool, apparently. Oct 01 00:59:39 <_xor> I'm looking for something self-hosted. Oct 01 01:10:16 you don't develop natively? Oct 01 01:10:50 how do links in app really work? like if i click on a person's name on twitter, it takes me to their profile Oct 01 01:18:18 they have a handler that takes you to the profile when you click the link, how else Oct 01 01:19:47 <_xor> I do develop natively. Oct 01 01:24:07 pfn, sorry but...so it's just a bunch of onClick handlers? Oct 01 01:24:24 that's one way of implementing it Oct 01 01:24:38 it could just be a link that launches an intent Oct 01 01:25:11 pfn, so like an custom uri Oct 01 01:26:31 but which would be better? Oct 01 01:30:10 Don't be fooled by it's appearance as a "link". A TextView can be a clickable object just like any button, and they can render HTML to boot Oct 01 01:30:35 That it's relatively seamless is just a sign it was done well Oct 01 01:36:04 depends on what you need Oct 01 01:56:32 mostly just need a royale with cheese and a liter of cola **** ENDING LOGGING AT Sat Oct 01 02:59:58 2016