**** BEGIN LOGGING AT Fri Jun 03 02:59:58 2016 Jun 03 03:04:59 This may be more a #sqlite question, but I figure there might be android-savvy practitioners here - is there a canonical way to know (bar trying out everything) which bits of a sql query can be bound? [e.g. is case ? when ? then ? end feasible] Jun 03 03:05:29 I've been assuming that anywhere the syntax allows for an I can bind parameters - does this sound reasonable? Jun 03 03:57:24 kbs: the whole point of the binding is to escape sequences of input that might effect the sql statement. Jun 03 03:58:16 kbs: it also happens before the sql statement is parsed. so it can be used "anywhere" but it may not work everywhere if it contains parts of your sql statement. Jun 03 03:58:32 kbs: its basically just string formatting with the inputs being escaped Jun 03 05:42:39 im wanting to build a framework / library to use in other projects. is the correct way to do this is to build a aar library? Jun 03 05:43:07 Depends, jar file might be enough. Is it Android specific or just a Java library? Jun 03 05:43:18 @CedricBeust android specific Jun 03 05:43:41 If you're going to need a manifest or resources, then .aar Jun 03 05:44:21 @CedricBeust : dont think I will, its an sdk for a client to interact with their backend. so public methods are enough Jun 03 05:44:40 So doesn't sound Android specific? Jun 03 05:45:14 @CedricBeust : sorry, as soon as I typed that I realized its not android specific, no. but will be used only in android apps Jun 03 05:45:24 Then jar file Jun 03 05:45:32 cool. thanks Jun 03 05:55:41 Hey guys, can somebody please talk me through this? I can return a value from gridView.getMeasuredHeight() if the parent of my layout is LinearLayout but not if it is NestedScrollView. Easy fix, I just wrapped the whole layout in a LinearLayout. Jun 03 05:55:51 However, I'm just wondering why this is neccessary. Jun 03 05:56:53 Scratch that. It wasn't actually working. Jun 03 06:40:30 How do I disable the ability to set a permanent activity to launch Intent.ACTION_SEND? I want to pick every time instead of having the option to pick one and make that the permanent selection Jun 03 06:51:22 vbresults: try the app manager the the default app's settings Jun 03 06:53:05 Ashiren: I need to do this programatically, before launching the activity picker Jun 03 06:54:19 Ashiren: There is always a "Just Once" or "Always" option at the bottom, when choosing from the activities Jun 03 06:54:35 i see Jun 03 06:54:35 I want that "always" option to be gone Jun 03 06:54:37 well dunno Jun 03 06:54:56 this is system dialog, i dont think you can do that Jun 03 06:55:19 People are accidentally hitting it, and then they are stuck with sending the intent to that one app instead of being able to pick in the future Jun 03 06:58:14 Ah, this is documented, https://developer.android.com/training/basics/intents/sending.html#AppChooser Jun 03 07:14:10 hey guys Jun 03 07:15:30 I have some data that I have to sync up with the server without the user having to explicitly choose to sync Jun 03 07:15:47 and at different intervals during the day Jun 03 07:16:35 how would I do that in a sane way Jun 03 07:16:46 Sync Adapter? Jun 03 07:31:08 hithere Jun 03 07:31:08 com.crashlytics.sdk.android:crashlytics:2.5.6 out Jun 03 07:33:33 Odaym, yeah sync adapter sounds good Jun 03 07:46:07 i am super new to android dev, i basically have a webview and i am trying to put that into a SwipeRefreshLayout so that the user can swipe to refresh Jun 03 07:46:37 so in my view I have Jun 03 07:47:02 when I run the app in my phone I get this error "Suppressed: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.widget.SwipeRefreshLayout" on path...." Jun 03 07:47:44 this msg is at the end of the error but it starts with " java.lang.RuntimeException: Unable to start activity ComponentInfo ... android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class android.support.v4.widget.SwipeRefreshLayout" Jun 03 07:51:02 hmm Jun 03 07:51:06 i clicked gradlew exec file. then something is installed. what is it? Jun 03 07:53:19 shmoon__: have you tried simple FrameLayout instead of swiperefreshlayout? Jun 03 07:53:52 Ashiren: i need that swipe to refresh feature Jun 03 07:54:06 So I landed up here - https://developer.android.com/training/swipe/add-swipe-interface.html - and hence following that Jun 03 07:55:49 hmm Jun 03 07:56:05 what is gradlew? Jun 03 07:56:08 help me Jun 03 07:56:11 :( Jun 03 07:56:20 gradle wrapper Jun 03 07:56:26 oh what is it? Jun 03 07:56:39 i clicked it by mistake Jun 03 07:56:54 so any idea ? Jun 03 07:57:04 it makes tasks, you can build project via command line Jun 03 07:57:12 if you clicked, youre fine Jun 03 07:57:36 shmoon__: probably some silly mistake. can you pastebin the xml layout Jun 03 07:59:09 Ashiren: it is fine Jun 03 07:59:11 :) Jun 03 07:59:12 ? Jun 03 07:59:29 yes Jun 03 07:59:35 thanks :) Jun 03 07:59:52 probably it downloaded and/or cached some things ofr project which will be overwritten anyway Jun 03 08:00:33 thanks :) Jun 03 08:00:36 Ashiren: Jun 03 08:03:20 Ashiren: one sec Jun 03 08:03:40 Ashiren: http://pastie.org/private/ohpsqsdk3q95157qosigyw Jun 03 08:07:38 shmoon__: afair SwipeRefreshLayout can has only one direct child Jun 03 08:07:41 remove progress bar Jun 03 08:07:52 or use framelayout to host webview and progress bar Jun 03 08:08:00 inside the swiperefresh Jun 03 08:08:09 i have changed it to http://pastie.org/private/54fui5jilgzgnveeyziqua Jun 03 08:08:23 but same error, something is wrong with loading it from v4 Jun 03 08:09:49 and you have support-v1, appcompat-v7, maybe some other support things, in the gradle? Jun 03 08:18:35 why why this emulator keeps dying on me Jun 03 08:19:10 anyone else experience an emulator DC/jams android studio after some period of inactivity? Jun 03 08:23:38 Hi folks, I have a service with a method that can be called by an activity. The method does some net access so does it in a separate thread. I'd like to return the result of that via the method's return(). What is the best way to achieve this? Jun 03 08:27:24 use a handler to pass messages An_a_coda ? Jun 03 08:27:57 An_a_coda, you call a method on a service? Is that necessary? Jun 03 08:28:01 An_a_coda: The activity can be destroyed in the time the Service takes to complete its operation. Use an event bus for communicating the result. Or use some kind of listener interface, connecting to the service on Activity creation and disconnecting from the service on activity destroy Jun 03 08:28:14 Also listen to pduin Jun 03 08:28:45 Mavrik: It's actually a third party service and using AIDL Jun 03 08:29:22 Raoul11: That will work across processes? Jun 03 08:29:25 I see, is the call synchronous? Jun 03 08:29:38 And no, Handler, eventbus or listeners won't work across processes :) Jun 03 08:31:06 To clarify a bit, the service is bound to by activity, activity uses AIDL to invoke a method, and service needs to return() a value. The service has to make a network request and wait, without blocking, to return the response back to the calling activity Jun 03 08:31:53 pduin: Internally in the service the net access is done on a separate thread and there's a callback via an interface Jun 03 08:32:48 I'm not sure if I understand, can't you use the interface to catch whatever result the Service give you? Jun 03 08:32:48 My 2 issues are how to get the result from the callback interface back to the main thread, crossing the java faux-closure barrier, and also to make the service's main thread wait until that's done Jun 03 08:33:23 pduin: I am developing the service not the activity Jun 03 08:33:55 anyone moved to java 8 yet? Jun 03 08:35:05 An_a_coda i think it should Jun 03 08:35:28 if you wanna block the main ui you can use a bool or something till the handler will deliver results Jun 03 08:35:43 An_a_coda: To get the result on the main thread isn't that hard. Create a Handler on the main thread in the Service and keep a reference to it in your service. Once you get the result on your background thread, you can use the post(Runnable) method to get your result to the main thread again Jun 03 08:36:10 pduin: Ok that sounds like a good way to solve that part the puzzle, thanks Jun 03 08:37:37 I just need to find a way to get the AIDL call to wait until that's been done and then return that result Jun 03 08:39:45 I don;t know about AIDL stuff, I don't think I can help you there Jun 03 08:40:02 I guess the AIDL can be ignored and it can be considered just like a regular method call Jun 03 08:40:15 The framework takes care of the cross-process goodness Jun 03 08:42:50 I think the solution would be identical even if AIDL wasn't involved, like if a regular activity needed to call a local service and the service had to wait to return the result Jun 03 08:45:26 QQ: Do someone knows hows google about swift?? Jun 03 08:46:01 I was checking yesterday in the swift repo the new specs for swift 3.0 and it's pretty clear they are opening the door to java developers Jun 03 08:47:04 ? Jun 03 08:47:15 With the way this service is going I'd love to ditch Java for Swift ¬_¬ Jun 03 08:47:16 what does that even means? Jun 03 08:47:54 *switch xD Jun 03 08:48:19 I mean, is there any expectation at the end? Jun 03 08:48:31 or was it just a massive underground rumour? XD Jun 03 08:54:19 does anyone here have the glassdoor app installed? Jun 03 08:58:17 how do i create splash screen when i open my app? Jun 03 08:59:13 craptalk: An activity? OpenGL? Jun 03 08:59:25 google it craptalk, very easily implementation Jun 03 08:59:32 silly easy Jun 03 09:01:11 i created an andro app Jun 03 09:01:20 but i want a splash screen Jun 03 09:01:29 then create that Jun 03 09:02:34 you are a professional Jun 03 09:02:41 go, be professional Jun 03 09:03:13 lol Jun 03 09:03:20 If someone has the glassdoor app can they tell me if it looks like theyre using a sectioned recyclerview in the companies tab Jun 03 09:14:37 I have a FrameLayout inside a Fragment, and I want to populate this with another fragment programmatically. The problem I have is that getSupportFragmentManager() is not found in android.support.v4.app.Fragment. Jun 03 09:16:25 getFragmentManager Jun 03 09:16:34 is its support.Fragment it will be support Jun 03 09:16:52 if not, the native FragmentManager Jun 03 09:17:06 pduin: FYI managed to sort it with a simple CountDownLatch (1) in method and count it down in interface callback :) Jun 03 09:17:50 pduin: idec if that's a horrible solution, with this language it's the best I could find and you can't polish a turd ¬_¬ Jun 03 09:19:33 Ashiren, ah, so inside a android.support.v4.app.Fragment a call to getFragmentManager will return a android.support.v4.app.FragmentManager. That actually makes sense. Jun 03 09:21:15 Ashiren, thanks :) Jun 03 09:24:48 yo can you help me how to fetch image from mysql? Jun 03 09:25:13 to android and let the user see it in list view Jun 03 09:27:42 images in mysql? in binary or base64 form? Jun 03 09:31:07 Odaym: remember, when google said 'no' about splashscreens? ;) Jun 03 09:31:34 even if he's a game? Jun 03 09:31:54 (now even google apps have splashscreens) Jun 03 09:31:58 like google+ Jun 03 09:32:00 or hangouts Jun 03 09:32:03 yea exactly Jun 03 09:32:16 maybe we should add one Jun 03 09:32:39 I have to do one for this app Jun 03 09:32:43 and a freelance app im working on Jun 03 09:32:47 eeeverybody wants a splash screen Jun 03 09:40:23 google used to say splash screens are anti-pattern Jun 03 09:40:47 but the proper way to add splash screen is via style, not activity's background nor imageview Jun 03 10:09:03 hey guys Jun 03 10:09:23 i have some list of some videos that i want to show them in the grid Jun 03 10:09:54 so? Jun 03 10:10:15 pretty dynamic grid.. some has 30% of weight and some 25% Jun 03 10:10:39 that template will repeat al the time. is it the problem to always call findviewbyid in the for loop? Jun 03 10:10:50 and always reload the template and fill it again..? Jun 03 10:11:13 probably, you should check in the adapter to the given containerview Jun 03 10:11:16 and re-fill it each time Jun 03 10:11:28 otherwise they will overlap content from already discarded views in new placements Jun 03 10:17:22 i will have max 14 videos in that specific template. and after 14th is added, i will populate the actual template to view. then i will load the template again so it is fresh and populate the data again Jun 03 10:17:31 should i do it with tags maybe? are they also fast enough for that? Jun 03 10:21:03 cerberillo: what do you say about that? Jun 03 10:39:20 Anyone can help me out with new build -> '8.0.1' ButterKnife with unbinding process Jun 03 10:39:48 it is nothing like its old ButterKnife.unbind(this) Jun 03 10:54:43 @sasos90 you could do it using tags, yes, but in order to do it correctly you should populate a data model internally with the data and use a scrollview which will give you the reused cells to be populated with the data model that you created Jun 03 10:55:12 scrollview = listView (my bad) Jun 03 11:08:55 Guys, any idea as to what's wrong with my shared element transitions? (as in, why doesn't it work while entering the new activity, but it works while returning to the original one?) https://gfycat.com/AlivePowerfulAtlanticspadefish Jun 03 11:09:00 Code: https://gist.github.com/RubenRocha/3697b8b3aaf86d3d6745f47a95beed10 Jun 03 11:23:28 hi guys, I'm making an app(of course, duh) that needs network connectivity, so I've made a splash activity, and I run connectivity checks in a thread inside my splashactivity. I can't make it run finish(); without an error if there's no connection Jun 03 11:25:18 many will advise you to not use a splash activity Jun 03 11:25:34 and just provide a loading UI somewhere in your activity Jun 03 11:25:49 what error? Jun 03 11:26:01 06-03 16:14:48.794 3049 3166 E AndroidRuntime: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Jun 03 11:26:12 he call finish() in the thread Jun 03 11:26:17 not going to fly Jun 03 11:26:22 thought so Jun 03 11:28:09 adq, any alternatives other than not using a splash activity? Jun 03 11:30:01 yes, you provide a loading UI, like an indeterminate progressbar (you know the circle rotating) and a text saying something Jun 03 11:30:34 Precisely what I've got, except that it's in its separate activity Jun 03 11:30:37 you still need to know how to communicate between your thread and your activity, not for calling finish this time but for starting and stoping the loading bar, updating the text, etc Jun 03 11:31:26 adq, I have that working, I already change the text to "No connection" if connection checks return a negative Jun 03 11:31:36 this happens inside the thread Jun 03 11:32:08 you cannot/should not touch any UI components/widgets outside of the UI thread Jun 03 11:32:26 or you will got the same exception you got earlier Jun 03 11:32:47 adq, lemme pastebin my uber shitty code for you Jun 03 11:33:25 don't, just learn how to communicate between your thread and the UI, there are many ways Jun 03 11:34:07 adq, have a look at this anyway : http://hastebin.com/rixokidati.avrasm Jun 03 11:34:19 wanna know why the text view doesnt raise an exception Jun 03 11:35:00 probably because you referenced the textview outside of the ui thread Jun 03 11:35:04 don't do that too Jun 03 11:35:24 lost you there Jun 03 11:35:31 I have ONE thread only Jun 03 11:35:39 I referenced it inside that Jun 03 11:35:42 nope, you have two of them Jun 03 11:35:49 that's news to me Jun 03 11:35:52 oncreate is running on the UI thread, the one you createdis the second one Jun 03 11:36:00 ahh, of course Jun 03 11:36:08 * MSF : *slaphead* Jun 03 11:36:55 adq, you got time to kinda, rearrange some of it to work better? please? Jun 03 11:37:00 nope sorry lol Jun 03 11:37:05 :( Jun 03 11:37:48 i can tell you, you even got typo like "recieved" Jun 03 11:38:11 oh shut up! Jun 03 11:38:12 fix all the things, learn to communicate between thread & ui thread, move your findviewbyid outside of this thread Jun 03 11:38:18 ok, goodbye Jun 03 11:38:40 not meant it in a offending adq Jun 03 11:38:48 kind of exasperated Jun 03 11:39:13 another type Jun 03 11:39:17 *typo Jun 03 11:41:20 Anyone here know about bluetooth low energy? I'm getting some very strange results. I can connect to a BLE device using gatttool on Linux (or sockets if you prefer). If I pull the battery, from the device, a disconnect happens within a second. Jun 03 11:41:27 On Android it's rather different: the disconnect event seems to take somewhere around 15 seconds to come through Jun 03 11:41:34 I've verified it's not my app: Nordic's app does the same Jun 03 11:41:39 here's the even weirder thing. Jun 03 11:41:47 If I pull the battery then quit the app fast, I get a message in the log that there were errors. It seems that the event is there, and it tries to process it when the app is shutdown then fails because the controlling program has vanished Jun 03 11:41:53 Anyone got any ideas why the events are being delayed and if so how to fix it? Jun 03 11:42:13 cerberillo: thank you! i will try that Jun 03 11:42:53 MSF: https://developer.android.com/reference/android/app/Activity.html#runOnUiThread%28java.lang.Runnable%29 Jun 03 11:43:51 adq: Have you worked with shared element transitions? Jun 03 11:44:22 a bit, but i have no idea concerning your issue Jun 03 11:44:51 adq: lol fuck, thanks anyways, I really don't understand why it would work on exit but not on enter, if anything it should be the other way around Jun 03 11:46:10 Do you know if shared transitions wait for the other activity to be fully "loaded"? (As in the content is all drawn, and then it transitions into it) Jun 03 11:47:40 RubenADSR, do your images have unique transition IDs? Jun 03 11:48:16 Zharf: yes, all the cardviews and the views inside it have unique IDs of the like "cardview" + position, etc Jun 03 11:48:25 ok Jun 03 11:50:17 Zharf: since the ID's are unique, i'm setting them on the first activities onBindViewHolder, and on the second's onBindViewHolder, could it be that since it's setting them there that the transition starts beforehand and can't find those transition IDs? Jun 03 11:50:51 That would actually explain it not working on enter and working on exit, since on exit the IDs are set but on enter it hasn't set them yet Jun 03 11:51:53 hm, not sure how transitioning to another list would work Jun 03 11:52:36 most things that I've done that on had an element directly on the next activity, not inside a list/recyclerview Jun 03 11:54:51 Zharf: Yeah.. That would make things so much simpler. Do you have any idea how I can loop through a recyclerview's items? Jun 03 11:57:59 you can loop through the visible items with just getChildAt Jun 03 12:01:11 Zharf: I tried placing it in onCreateViewHolder instead of the onBind and that didn't do anything, I can't really do it on the activities onCreate because the views dont exist yet, wtf do I do? Jun 03 12:01:28 This probably isn't even the issue but no one seems to know Jun 03 12:07:29 RubenADSR, busy right now, sorry, I can try to build my own testcase later today, but if you can provide me with one that'd be swell, anyway, I Jun 03 12:07:38 I'll be unavailable for about an hour Jun 03 12:07:54 i really wanna use this https://github.com/JakeWharton/ViewPagerIndicator but it doesnt seem to have gradle? what do i d Jun 03 12:07:56 do* Jun 03 12:10:11 I'm confused as to whether _all_ Marshmallow devices support the android.media.midi feature or whether support is optional :S Jun 03 12:12:31 thornekey : CTRL+F Including In Your Project Jun 03 12:13:02 RubenADSR, im not a maven user though? Jun 03 12:13:09 It only has maven Jun 03 12:13:26 thornekey : gradle supports maven repos ;) Jun 03 12:13:38 ohhhhh Jun 03 12:14:27 so do i put that dependency line within dependencies or anywhere Jun 03 12:15:53 thornekey , yes, however you might have to add mavenCentral() to repositories { } Jun 03 12:16:01 got that already Jun 03 12:16:06 that line Jun 03 12:17:22 just put it inside your dependencies { using the same gradle format Jun 03 12:17:34 i tried and it didnt like it Jun 03 12:17:35 :/ Jun 03 12:18:14 oh got it Jun 03 12:18:41 compile 'com.viewpagerindicator:library:2.4.1' Jun 03 12:18:47 thornekey nice! Jun 03 12:18:55 cheers :D Jun 03 12:19:00 yea thats wat i wrote in heheh Jun 03 12:24:12 Hello everybody :) Jun 03 12:28:50 hey Jun 03 12:39:12 I have been doing a lot of research on submitting a form to a server. Does anyone have an example on posting form along with an attachment to a server? Allowing the user to select a photo from the gallery or take a picture? Jun 03 12:41:14 Anyone here really familiar with RxJava? I have an issue that I'm trying to patch very quickly today before refactoring my code to totally fix the problem. I think Rx could help. Essentially, I have an activity that is subscribed to otto events. On one of the events I do refreshFromDb(). Sometimes this gets called a few times in less than a second. Any way to use Rx to just wrap this in a smart timer type of thing. Jun 03 12:42:05 SOunds like something defer or debounce could be useful for. Jun 03 12:50:22 Hi. I'm trying to build an Android project. It depends on com.google.gms:google-services. When I'm trying to build, gradle tells me it could not find the library at C:\Program Files\blabla, but I have specifically indicated my sdk path to be C:\Users\blabla, and *not* program files. Anybody know what might be happening? :/ Jun 03 13:03:40 gs Jun 03 13:04:47 hello guys im writing a launcher for android. Ive made everything like setting up the manifest for launching it as home and apps are fetched and launched when clicked Jun 03 13:04:54 now i have one question Jun 03 13:05:16 I want to add home screens. where i can add widgets add multiscrollable screens Jun 03 13:05:20 how to do it? Jun 03 13:05:32 is it just another activity? or there is something special in android for it? Jun 03 13:18:31 looking at trying to de-provision the widevine drm for testing purposes - any ideas? Jun 03 13:25:20 Hi Jun 03 13:31:48 Where is the while loop of main activity in Android? Jun 03 13:32:22 Writing first program Jun 03 13:33:52 what do u mean while loop of main activity? Jun 03 13:35:08 like a game loop which keeps the app running Jun 03 13:35:37 if its visible in some java file i want to know.. Jun 03 13:37:48 i dont think that is visible! Also i dont think android works that way. I know abt game loops but i dont suppose it works that way Jun 03 13:38:23 even if it has one it would have been native code Jun 03 13:40:30 purplex88 : lol what Jun 03 13:41:23 Anyone familiar with RxJava? What's the easiest way to wrap a regular synchronous method into a debounce? I have this one method that could be called a bunch of times potentially but I want to make sure it only gets called once per second. Jun 03 13:42:13 RubenADSR: i see Jun 03 13:43:06 so i guess it magically fires up those OnCreate, OnStart, etc.. functions from nowhere Jun 03 13:44:32 functions, everywhere Jun 03 13:44:56 okay maybe those are just events Jun 03 13:46:18 but when the app is idle it is running i guess in an infinite loop in background. Jun 03 13:47:14 thought i could debug that but nvm Jun 03 13:52:43 hi guys, anyone do use quareup's flow ? Jun 03 13:57:14 heey Jun 03 14:05:27 Is there a native version of leaflet for Android that's not Mapbox? Jun 03 14:10:18 How can I enable bluetooth tethering through adb/shell? Jun 03 14:21:16 whats a good approach for persisting a single int variable with the same activity restarts? Jun 03 14:27:08 Raoul11: you can save the state in onSaveInstanceState() and recover it from onCreate() Jun 03 14:27:53 data persist on recreate() ? Jun 03 14:28:40 Raoul11: https://developer.android.com/training/basics/activity-lifecycle/recreating.html Jun 03 14:31:30 nice approach eghdk Jun 03 14:31:38 i thought bout extending the application class Jun 03 14:33:21 You can do that. You can do A LOT of different things. You can have a static int, you can have a fragment that retains itself across rotations or recreate on rotations. Jun 03 14:33:50 hmm Jun 03 14:34:08 basically just a counter to when to show ads Jun 03 14:34:38 thanks for the suggestions eghdk Jun 03 14:34:48 Depends if it's a counter only for that activity or across multiple activities if it's multiple activities then maybe the App class could work for you. Jun 03 14:34:54 Or just make a singleton. Jun 03 14:35:19 Once you put something in the App class, it's effectively a singleton. But that's another debate. Jun 03 14:37:27 not sure if ill implement ads on diff' activities. currently i am only displaying them on only one type Jun 03 14:46:39 what exactly does this mean? Jun 03 14:46:40 UserFilesBrowserFragment.this.userFileManager = userFileManager; Jun 03 14:46:46 CurrentClass.this.property = value; Jun 03 14:47:01 is it functionally equivalent to this.property = value; ? Jun 03 14:48:37 if this is CurrentClass yes Jun 03 14:49:03 if you are inside an inner anonymous class you have to mention outer class name Jun 03 14:53:43 ^ *any non-static inner class Jun 03 14:55:12 implying you can have static anonymous inner class :? Jun 03 14:55:50 you're right, i see Jun 03 14:55:53 it isn't required Jun 03 14:56:10 they did it because the variable names are the same Jun 03 14:56:12 implying that it's not only the case where its functionally equivalent Jun 03 14:57:11 pduin: There's no such thing as a static inner class, though, so the "non-static" is superfluous. Jun 03 14:57:14 Hello everyone, I am trying to change the FontSize of ViewPagerTitle in AppBarLayout…. I use Jun 03 14:57:15 in the style.xml and use app:tabTextAppearance = "@style/myTabStyle"> Jun 03 14:57:18 in the layout file. I am not getting the desired result, Can someone help me please.. Where am i getting it wrong? Jun 03 14:58:38 There is, or we are talking about different static inner classes Jun 03 14:58:43 There isn't. Jun 03 14:58:47 "An inner class is a nested class that is not explicitly or implicitly declared static. An inner class may be a non-static member class, a local class, or an anonymous class." (§8.1.3) Jun 03 14:58:54 Ah Jun 03 14:59:15 I was mixing up inner/nested classes Jun 03 15:19:44 hi. i'm using ksoap2 for making requests to a webservice. When i call the webservice i got this exception: http://pastebin.com/PUweLAsK Jun 03 15:19:54 Can anyone please explain why i got this? Jun 03 15:26:11 EOF is end of file. Looks like the stream was shorter than expected, or closed unexpectedly. Jun 03 15:26:19 LucaS05, ^^ Jun 03 15:26:35 LucaS05 : Try adding your_header_propery_array_list.add(new HeaderProperty("Connection", "close")); Jun 03 15:28:01 truckcrash: what do you mean with shorter that expected? In my code i'm simply reading the output without expecting anything about its dimension Jun 03 15:28:22 RubenADSR: why do i need to add that? Jun 03 15:30:33 LucaS05 : It apparently helped other people, it's probably not closing the connection properly, thus the file never ends giving you the EOF error Jun 03 15:30:51 RubenADSR: are you talking about this: http://bit.ly/1UBaguk ? Jun 03 15:31:13 LucaS05 it was a different article but yes, that Jun 03 15:31:57 ok, but i need to add that property before every call? Jun 03 15:33:11 LucaS05 yup Jun 03 15:33:38 LucaS05 , if you just reuse the array variable you don't need to define it everytime, you just pass it to the .call() Jun 03 15:34:37 RubenADSR: ok, a little but strange though Jun 03 15:34:46 bit* Jun 03 15:34:55 Blame the guys who made the library Jun 03 15:35:08 That is if it even fixes your problem Jun 03 15:35:42 you're right. I will try that now Jun 03 15:43:55 RubenADSR: no way, stil got EOF http://pastebin.com/hsDqUBgP Jun 03 15:50:41 RubenADSR: ok. shame on me. i was using cellular network and not wifi. So i don't who i was calling... Jun 03 15:50:50 i'm going to kill myself Jun 03 16:04:44 what's the proper way to inspect device storage? is there a browser in Android Studio? Jun 03 16:04:57 i'm writing some files in my app and want to inspect them. Jun 03 16:10:04 dcope, you can use adb Jun 03 16:15:45 ahh Jun 03 16:15:49 ok im back Jun 03 16:17:20 hate that you cant increase a bounty on SO -.- Jun 03 16:25:52 Why maybe the cause that my textview has enough space vertically to show the text but it doesn't I get "tex.." instead of "text" Jun 03 16:26:18 improper padding/margins, maybe? Jun 03 16:29:15 s73v3r: mmm, My Question is wrong. TextView is not making use of the space inside a LinearLayout Jun 03 16:33:16 Is there a slick way to hide code from auto-complete? /** @hide **/ isn't working, @VisibleWithTesting, I think, should hide code Jun 03 16:36:48 crised: code Jun 03 16:37:05 explodes: im curious why youd want to do that Jun 03 16:57:44 june platform stats should be out soon ... wonder if froyo will disappear Jun 03 16:57:56 it just won’t melt away Jun 03 16:58:17 hey s73v3r Jun 03 16:58:36 yogurt. I hate yogurt! Even with raspberries Jun 03 16:58:37 yeah i think shmoooz is probably keeping it alive Jun 03 16:58:55 lol i do have my droid-1 here though ... maybe i should turn it on Jun 03 17:01:07 what about yogurt raisins tho Jun 03 17:07:26 s73v3r going to wwdc ? Jun 03 17:08:34 sounds like they will talk about swift 3 Jun 03 17:10:53 is wwdc available to all? Jun 03 17:10:56 do u need ticks? Jun 03 17:11:18 nvm Jun 03 17:11:32 1600 holy Jun 03 17:13:51 those events tend to be longer than i/o Jun 03 17:19:09 GMS / firebase 9.0.2 Jun 03 17:34:48 no, not going to wwdc Jun 03 17:36:11 Hi there, is anyone using squareup's flow ? Jun 03 17:37:05 so we have Instant Run enabled on our app. How do I just restart the app, NO INSTANT RUN? Jun 03 17:38:24 to s73c3r: press red square to stop app, AS will restart the app on next launch Jun 03 17:38:51 thanks Jun 03 17:49:33 s73v3r: there is also a restart button next to the red stop button Jun 03 18:19:20 um does anyone know the default mini FAB size vs the normal size? Jun 03 18:20:12 I’m adding an account through the AccountManager. I’m using the addAccountExplicitly method. However, it’s returning false to indicate a problem. Anyone know how to get that problem? Jun 03 18:30:23 to arbyt: suppose 32 and 64 dp Jun 03 18:30:33 mb 48 and 96 Jun 03 18:30:58 what's wrong with the api 19 emu? it has no soundfiles whatsoever Jun 03 18:31:41 Hi guys, searching for a good way to start from. I receive via mail my working hours and i would like to read the mail and set on a calendar them. whats the best way to achieve this? Jun 03 18:37:20 So logcat is telling me that adding the account fails because the account already exists. However, when I then go to get the account, it crashes because getAccountsByType returns an empty array Jun 03 18:45:52 s73v3r: damn, I had single line=yes Jun 03 19:02:07 Can u use custom transitions on lower apis? Jun 03 19:02:33 subclassing Transition says i need api21 Jun 03 20:08:01 Hi all. I'm trying to figure out the best way to handle this situation. When my app starts I grab the users last known location and make a few api calls to grab some data. What is the best way to handle the multiple http api calls? Do I start a asynctask that grabs the location, then does multiple api calls in a row? Should I use a 3rd party library like retrofit? Should easy http call be in it's own asynctask? Jun 03 20:09:30 id go with retrofit Jun 03 20:11:25 I was leaning towards retrofit but I thought it might be overkill Jun 03 20:12:09 what api calls? Jun 03 20:17:33 Ashiren: I have two sets of data I want to grab. Weather data and tidal data. The basic flow would go: app starts, gets last known location, then simultaneously makes 2 api calls. One to get the weather data using latitude/longitude and one to looks up the closest tide station. I then need to make one more call to lookup the tidal data using the closest tidal station Jun 03 20:18:52 alright. personally id still go with retrofit or okhttp Jun 03 20:19:37 Thanks. I"m looking into the two right now to see which one would be better for my usecase. Jun 03 20:20:05 There seems to be quite a few libraries to choose from. Jun 03 20:31:41 well, retrofit is quite nice, the more if one do use rx Jun 03 20:36:21 And again, does anyone have experience of using square/flow in production code ? Jun 03 20:39:12 I'm getting an unchecked cast warning trying to use readArrayList in my parcel methods Jun 03 20:39:30 List mapList = in.readArrayList(String.class.getClassLoader()); Jun 03 20:40:09 can someone clarify how to use this with the generics? I have other usages elsewhere which mimick the same and they don't throw warnings ... Jun 03 20:41:02 oh someone put a lint suppression in the other code -_- Jun 03 20:43:32 i_komarov, I was using it along with mortar some time ago Jun 03 20:43:42 but experience was far from perfect Jun 03 20:48:25 is there a way to change the spacing between icons in Toolbar? i find them to be to close together Jun 03 20:48:33 and how have you made the "view-to-activity" deals e.g. showing for result new activity from the event was triggerd from a view Jun 03 20:50:44 I had activity interface I believe Jun 03 20:50:58 or toolbar controller I called it Jun 03 20:51:04 they showed that in samples some time ago Jun 03 20:51:14 but if you are just starting Jun 03 20:51:19 I suggest do not go into flow route Jun 03 20:51:26 anyone recommend buying monitors used? Jun 03 20:51:31 Gonna be buying a few soon so Jun 03 20:51:37 a lot of ppl hate on fragments, but to this day there is nothing better than fragments Jun 03 20:52:01 goorek_: there is, no fragments Jun 03 20:52:53 you can go with activities, but for example Viewpagers are nice without fragments Jun 03 20:52:58 with* Jun 03 20:53:59 using just Views, or smth like flow - they do not know anything about lifecycle. And lifecycle is important in mobile world Jun 03 20:54:15 jake likes that Conductor library Jun 03 20:54:29 * g00s just uses fragments Jun 03 20:54:40 actually, Views not knowing about lifecycle is pretty nice Jun 03 20:54:47 the activity handles the lifecycle for them Jun 03 20:55:27 yeah, until you want to cancel smth based on lifecycle Jun 03 20:55:36 why would that be a problem? Jun 03 20:55:52 you have to pipe it Jun 03 20:55:53 activity gets the lifecycle event, and either removes the view, or passes the message onto the view Jun 03 20:55:58 so? Jun 03 20:56:14 you end up with activity which handles a lot of things Jun 03 20:56:20 which could be handled down the line Jun 03 20:56:26 goorek_: if you can get JakeWharton to use fragments, I'll follow Jun 03 20:56:38 I don't care what he uses Jun 03 20:56:40 activity is meant to handle lifecycle, though Jun 03 20:56:46 to each their own Jun 03 20:57:03 like, that’s the one thing it should be handling, of all the things that get shoved in there Jun 03 20:57:14 in fact, I haven't heard about this for a long time Jun 03 20:57:32 and when flow came along, there were huuge talks about that Jun 03 20:57:43 I think people just started using it and saw what a pain it is Jun 03 20:58:59 for a listview all you need to do is save the last scroll position, and restore it at that position Jun 03 20:59:07 yeah, activity is meant to handle lifecycle, but if you have couple components on the screen, you can have them as fragments and you have better composition Jun 03 20:59:27 we all know how big activity ends Jun 03 20:59:54 you might be able to, but then you have to deal with the additional lifecycles, which are the pain points of fragments Jun 03 21:00:08 meh, you exagerate Jun 03 21:00:21 no, I don't Jun 03 21:00:44 as I said, to each their own :) Jun 03 21:05:50 that's one of the questions they ask each developer they interviewed on the latest fragmentedpodcast show at IO Jun 03 21:05:53 Having a lightweight object represent a page and its state is very nice Jun 03 21:06:10 fragments, yay or nay Jun 03 21:06:17 and they all said meh Jun 03 21:08:02 I still use them, but I’d prefer something better Jun 03 21:08:08 shmooooz no they didn't, i listened to that one too ... Jun 03 21:08:28 most did Jun 03 21:09:16 although, i see android kinda like c++ in that i cringe at the thought of reading anyone elses code, so many ways to shoot your foot off Jun 03 21:09:26 I just want improvements to FragmentManager, not Fragments or their lifecycle-awareness Jun 03 21:09:35 and recompiling the gapps it clear that google even has many ways of writing apps Jun 03 21:09:40 *decompiling Jun 03 21:09:54 SimonVT the .commitNow should be nice Jun 03 21:10:07 Yeah, away with the async-ness Jun 03 21:10:14 yeah Jun 03 21:11:01 I'd like a better backstack api Jun 03 21:11:48 g00s: is that for sharedPreferences? Jun 03 21:12:00 they had a old commit() Jun 03 21:12:20 No, fragments Jun 03 21:12:30 oh Jun 03 21:12:52 SimonVT too bad that commitNow doesn't work with adding to backstack from what i recall Jun 03 21:13:55 I'd imagine it does once released Jun 03 21:14:05 But I don't use the backstack right now Jun 03 21:15:24 android sdk tools 25.1.7 Jun 03 21:16:38 is there a way to do a round circle imageview without libs? Jun 03 21:17:48 just render the bitmap to a canvas with mask. Jun 03 21:19:07 Or on api21+, View#setOutlineProvider, Outline#setRoundRect, View#setClipToOutline Jun 03 21:38:28 is there any way, in Dagger2, to add extra contructor parameters that are NOT injected? For example MainPresenter(RetrofitApi injectedRetrofitApi, int notInjectedId) Jun 03 21:39:08 where dagger injects the retrofit api, but i can pass in the id. Maybe using Lazy or Provider, passing the extra parameter to .get() Jun 03 22:47:09 When would @UiThreadTest not work in a subclass of ActivityInstrumentationTestCase2? Jun 03 22:47:21 I still get a CalledFromWrongThreadException Jun 03 22:50:09 Can somebody tell my why webView.clearFormData, clearHistory, clearCache(true) doesn't clean/delete anything at all? Still the same form data available... Jun 03 23:10:35 anyone heard of the floating drawer in the material guidelines? Jun 03 23:11:28 hi ! all Jun 03 23:12:20 so here's the deal - I'm late delivering this app and devs are all awol - I'm hacking in a solution - and finlaly got files saving to local INTERNAL in a subfolder so data/data/PACKAGENAME/app_SUBFOLDER/fileName.ext Jun 03 23:12:40 But can't seem to read it back Jun 03 23:16:21 show us the code that doesn't work? Jun 03 23:16:29 not here! pastebin it Jun 03 23:17:30 also, be aware of timezones - it's somewhere between quitting time on Friday and breakfast time on Saturday in most of the world, not the most lively time on IRC Jun 03 23:18:22 its midnight here - Jun 03 23:18:25 http://pastebin.com/FsGbWQHp Jun 03 23:20:10 actually http://pastebin.com/Y8QS8bgr would be better so you can see the getFileNamed method as well Jun 03 23:20:27 fels: you in here too? Jun 03 23:21:07 I'm everywhere :) on recommendation from Leeds Jun 03 23:21:10 Hi guys! I have an app widget layout for home screen. Its root layout has padding="20dp", however when on the screen its children elements are sticked to the borders like there's no padding at all. Jun 03 23:21:39 jnagro: could you look at the pastebin above Jun 03 23:21:56 Does anybody know if there's some nuances with paddings/margins in app widhets? Jun 03 23:22:04 fels: link again? Jun 03 23:22:08 fels: and which bit fails? getLocalFilename, or openFileInput? Jun 03 23:22:21 When it gets to line 22 ( fileIn= appContext.openFileInput("allBeacons.json"); ) it jumps straight to the finally {} Jun 03 23:22:32 actually http://pastebin.com/Y8QS8bgr would be better so you can see the getFileNamed method as well Jun 03 23:23:00 fels: thanks. sorry i didnt realize #android was so strict about dev chat Jun 03 23:23:22 jnagro: it's not that - but there are more developers here, who aren't in #android Jun 03 23:23:29 jnagro: np - at least we ended in the correct place - thanks to Leeds :) Jun 03 23:23:54 fels: so... are you creating the file with openFileOutput? Jun 03 23:24:06 Leeds: np. Jun 03 23:24:37 btw Leeds and jnagro I know the code will not return and string data yet- just need to get over the failing bit first then will parse the json Jun 03 23:25:43 Leeds: it uses FileWriter + BufferedWriter Jun 03 23:27:02 fels: did you have an error message too? Jun 03 23:27:06 ok, it seems to me like you're specifying a filename to write to, then checking that file exists - then using fileOpenInput to read from the file... I'd guess it's trying to open a different path Jun 03 23:27:17 yeah, line 22 right? Jun 03 23:27:43 jnagro: no error message or exception just jumps to finally Jun 03 23:28:30 fels: add a catch for Exception and log that? Jun 03 23:29:08 fels: i think on line 22 you mean to do something else? Jun 03 23:29:21 maybe use completeJson Jun 03 23:29:29 instead of appContext.openFileInput("allBeacons.json"); Jun 03 23:30:17 ok 1st off .. ist he appConte.openFileInput ( ). the corerct method to READ a file ? Jun 03 23:31:03 jnagro: openFileInput takes a String where as completeJson is a File Jun 03 23:33:12 fels: completeJson is a file Jun 03 23:33:56 jnagro: Yes which is why I can't pass it to the openFileInput method - that mehtod takes a string Jun 03 23:34:47 jnagro: I chnaged line 22 to > fileIn= appContext.openFileInput(completeJson.toString()); still same issue - jumps to finally Jun 03 23:35:44 fels: i dont think the path in line 22 is the same as line 3 Jun 03 23:36:45 appContext.openFileInput(completeJson.getAbsolutePath()); perhaps? Jun 03 23:37:03 i just play an android developer on TV Jun 03 23:37:13 jnagro: line 3 is a helper method that suppose to always get the correct folder (/data/data/PACKAGENMAA/proxiteeCache/) then append the given filename to it - that way i don't mess the folder up Jun 03 23:37:53 right, but just passing the base filename into your openFileInput wont get the same path, right? Jun 03 23:39:28 this is the path for completeJson (when I evaluate toString() ) /data/data/com.rushenheritagetrust.iomwalks/app_proxiteeCache/allBeacons.json Jun 03 23:39:58 which is the correct path and using ADB checked - file is there as well Jun 03 23:41:10 jnagro and Leeds just seen this > D/read: File /data/data/com.rushenheritagetrust.iomwalks/app_proxiteeCache/allBeacons.json contains a path separator <-- Jun 03 23:41:21 what's that about ? Jun 03 23:44:23 not sure. Jun 03 23:46:12 jnagro: got it a step close : fileIn = new FileInputStream (completeJson ); line 22 using this > http://stackoverflow.com/questions/5963535/java-lang-illegalargumentexception-contains-a-path-separator Jun 03 23:52:17 any json parsing expersts :) Jun 04 00:06:23 I Jun 04 00:06:27 m guessing everyone :) Jun 04 00:11:40 what was that thing called? you get your app to show up in the open with list when the user clicks say a mp3 file to open it Jun 04 00:14:23 hello, is this the place you call when you want to order new books for your bookshop when your books run out because you need new books ?!? Jun 04 00:14:54 shmooz: Look up intent filters Jun 04 00:16:47 thanks jaana that's what I was trying to remember ;) Jun 04 00:17:36 Philosophical question on MVP: Client-side data validation in the model or the presenter? (And is there a current best-practices library for this? My google overfloweth..) Jun 04 00:21:51 I have a Map which I want to feed to a RecyclerView.Adapter ... the onBindViewHolder() method gives me the position... a map doesn't really have an order... so how would I best solve this? I could put the entries into an array in the constructor, but then i'd need to redo it when the dataset changes... any tips? Jun 04 02:26:44 evident: still about? Jun 04 02:32:09 that damn google is killing GPL! **** ENDING LOGGING AT Sat Jun 04 02:59:58 2016