**** BEGIN LOGGING AT Tue May 03 02:59:58 2016 May 03 04:17:53 how often do you use @VisibleForTesting May 03 04:18:16 why is making things testable so difficult on android? May 03 04:19:26 I prefer to let the users test ;) May 03 04:23:54 haha May 03 04:24:09 android prefers uat only :) May 03 04:27:04 testing is difficult everywhere May 03 04:27:15 at least testing interesting things is May 03 04:36:22 do any popular apps use SlidingPaneLayout (except gmail for nav on tablets) ? May 03 04:37:00 looking to study some prominent examples. can't find any May 03 06:13:33 how does runOnUiThread method work, does the UI thread will switch its context to this method until its complete? May 03 06:13:45 believe UI thread already is busy in rendering the UI, message passing etc. May 03 06:16:21 runOnUiThread just put the runnable to queue May 03 06:16:44 next time it will be appriopate (i.e. next frame), the runnable will be executed May 03 06:17:06 well runOnUiThread also checks if its already in ui thread, then it runs runnable right away May 03 06:17:53 Ashiren: what if i put some long operain this method? May 03 06:17:54 thanks May 03 06:18:01 *operation May 03 06:18:23 then it will be executed and probably youll get ANR if its too long May 03 06:18:36 in ui thread May 03 06:24:50 java is shit May 03 06:29:02 I'm building some binaries from source May 03 06:29:38 I'm wondering what the difference is between debug and release outputs May 03 06:29:49 and do I want to run proguard? May 03 06:29:58 RustyShackleford: you want to run proguard for release May 03 06:30:06 and some of the definitions for debug as well May 03 06:30:14 but not minifyEnabled May 03 06:31:27 build.gradle is not exactly the easiest thing to understand May 03 06:31:33 there are lots of options May 03 06:32:25 Working on it May 03 06:32:46 thepoosh, where can I read more about this? May 03 06:33:15 can't I just create release only aar's? May 03 06:33:21 RustyShackleford: there are many videos you can watch from either gradle conferences or andcons May 03 06:33:27 which is what I did May 03 06:33:37 also, there is the android and gradle documentations May 03 06:33:48 http://tools.android.com/tech-docs/new-build-system/user-guide May 03 06:33:52 this is very good May 03 06:33:56 I've discovered accidentally that libraries are built with release configuration May 03 06:33:58 and focused towards android May 03 06:34:14 which means library functions are not visible to project if minify is set to true May 03 06:34:18 squ: all modules are compiled with release configurations May 03 06:34:36 yes, even if project is in debug May 03 06:34:50 yes, you need to specifically define as debug if you need May 03 06:35:01 with releaseCompile and debugCompile May 03 06:37:51 why define a debug configuration? May 03 06:38:31 I feel like release only would suffice and be easier to work with May 03 06:38:37 in order to develop faster and find bugs faster May 03 06:38:48 also, running proguard minify takes a long time May 03 06:39:14 well the idea of making these binary is to avoid compiling them each time May 03 06:39:28 right now they're part of the codebase :/ May 03 06:39:34 not following May 03 06:40:18 someone forked an open source library, added it to this codebase, and then modified them so that we can't compile against the distributed binaries May 03 06:40:56 I'm trying to remove these libraries from the codebase and compile our app against these binaries May 03 06:40:58 why not use it as a module (lib project)? May 03 06:41:19 thats how its currently done May 03 06:41:27 so what seems to be the issue?! May 03 06:41:43 we've got something like 5 of these lib projects. Think that would make compilation time skyrocket? May 03 06:41:52 nope May 03 06:41:55 it wont May 03 06:41:58 and 4 lib projects that are part of our app May 03 06:42:14 still, shouldn't matter May 03 06:42:36 what you can do, is publish it as a local maven project and then it'll be cached for the next builds May 03 06:42:52 what about the time saved recompiling dependencies each time you clean and rebuild? May 03 06:43:05 it currently takes 15 mins or so May 03 06:51:28 RustyShackleford: it seems like there are many worse things hapepening there May 03 06:51:57 thepoosh, you have no idea May 03 06:52:12 try running gradle assemble --configure-on-demand --dry-run --profile May 03 06:52:16 and look at the results May 03 06:52:29 so you think converting these dependencies to binaries is a wild goose chase then? May 03 06:52:38 don't have the work laptop May 03 06:52:58 I think that you should be more informed on what's taking all the time May 03 06:53:18 I have run the profile. The dependencies DO eat up time May 03 06:53:27 do your dependencies look like "com.library:1.+"? May 03 06:53:33 but so does indexing, and processing resources May 03 06:53:51 our dependencies look like jars that we have to manually drop into the libs folder May 03 06:53:54 there are many things that can take time off builds May 03 06:54:15 if possible, you should drop all jars and use maven resources May 03 06:54:18 they can be cached May 03 06:54:22 5 months ago we were using eclipse. I'm working on getting us back to 2016 May 03 06:54:41 we've been in the same situation 3 months ago May 03 06:54:46 had to figure out which versions we're even using May 03 06:54:47 I worked hard to shorten times May 03 06:55:40 15 minutes is pretty awful. The app isn't even that big May 03 06:57:05 Hi , Is there a way to cache and load the complete webview content ? I mean to show all embed images from other sources even when device is offline ? May 03 07:02:39 What is the toolbar that shows by default in android studio? The pink envelope, when I try to google I just find ways to delete it but not why it's there to begin with May 03 07:03:20 actionButton* May 03 07:04:14 p0ff3 : which version ? May 03 07:04:30 1.5.1 May 03 07:04:44 In android studio dashboard ? May 03 07:05:15 Nono in the app itself May 03 07:05:39 I might have found what I did, one sec May 03 07:07:15 Yepyep, I started with one of those premade activities. Sorry. Do y'all recommend me to use those activities or go from scratch as a beginner? May 03 07:08:42 are you talking about the floating action button? May 03 07:08:50 I think so May 03 07:08:52 yeah I was May 03 07:08:55 its pink by default May 03 07:08:57 p0ff3_, depends what you want to create May 03 07:09:13 if it fits your need, why not get the help the IDE provides by setting the basics up May 03 07:09:18 p0ff3 : those activities are just standard starting point May 03 07:09:36 if you need you can use , if you dont start scratch May 03 07:09:48 Right now I just want to make some minor apps to get to know wtf I'm doing. May 03 07:10:00 It depends on what type of app you are making and FAB (floating action button ) is needed in it or not May 03 07:10:28 So yeah, I'll probably go with the premades for a while. Thanks for the help guys! May 03 07:10:46 p0ff3 : than I would suggest gpo scratch but read default codes as well, reading and writing of code should always be in a ratio of 10:1 May 03 07:11:29 azgul : Is there a way to cache and load the complete webview content ? I mean to show all embed images from other sources even when device is offline ? May 03 07:15:47 those premade activities are confusing, for starters make empty activity and add things manually as needed May 03 07:16:05 I think I am invisible here :p May 03 07:16:36 Is there a way to cache and load the complete webview content ? I mean to show all embed images from other sources even when device is offline ? May 03 07:17:18 chinu: in ios there is url session May 03 07:17:55 in android squ ? May 03 07:18:04 chinu, not that I know of May 03 07:18:05 a mechanism to create session with cache size May 03 07:18:14 Hello! Has anyone here worked with WebViews on an Android TV? May 03 07:18:25 I am currently having problems zooming out the page May 03 07:18:28 once a webview is loaded i believe all the content is stored in a cache ? May 03 07:18:32 like absolutely no way to do it May 03 07:18:44 chinu: if that is your html, how about pointing links to local storage May 03 07:18:46 and I tried practically everything out there May 03 07:19:39 chinu: why all? all visible, probably, if not too big May 03 07:19:55 chinu, if it's a relatively simple page, you could download it on first boot (and bundle a fallback version with the app), store the images base64 encoded in the html May 03 07:20:05 and then from there show the latest version when people visits that webview May 03 07:22:25 azgul : exactly this is what I am searching for , but do I have to scrape the image tags separately ? As there are instagram embeds which load images using javascript on the first time in online mode May 03 07:23:07 so it's not your own page that you have control of? May 03 07:23:13 then wget May 03 07:23:49 azgul : no it is not my own source May 03 07:26:18 ? May 03 07:27:33 wget May 03 07:49:23 is there a way to get the fullscreen notification again? May 03 08:18:01 Hi all. I'm wondering what's the best code architecture to implement a flow chart. Like, FragmentA -> fragmentB -> conditionX ? FragmentC : FragmentD etc. Any advice? May 03 08:36:16 hello, im using nexus 5x and i was able to get primary email address of my google account by calling account manager getAccounts May 03 08:36:55 last time i get email address was 20 april, after that google account cant be found in getAccounts May 03 08:37:00 Maybe I can get my answers here :-) does anyone know why android doesnt care about a bluetooth keyboard layout even though the Vendor and Product IDs are correct (and verified)? It will only use the Generic.kl file :-/ May 03 08:48:43 is ‘view comfy’ synonym for ‘thumbnails’ ? May 03 08:51:54 lol what May 03 09:02:37 anyone has used ormlite? is this really that slow? :\ May 03 09:14:18 Ashiren: Using it at the moment. May 03 09:14:33 What's the problem? May 03 09:14:57 we use GreenDao May 03 09:15:12 I use ormlite but I have very little data May 03 09:15:37 I tried looking into other orm things but none of them felt as nice as ormlite to me May 03 09:16:40 I'm using it, mostly with a ton of data. The nice thing is that it gives me a sane database schema, and I can get down and get my hands dirty if I need some more performance form it. May 03 09:31:34 I have a UX or IU question: When should a TextView display the cursor? Only when the user as clicked it and a keyboard has appeared? Or should the cursor be blinking in an empty TextView to indicate that you can type? And should the cursor always blink whenever a TextView is present? May 03 09:31:51 Are these topics covered in any of Googles design guides? May 03 09:36:42 pduin: not access to code atm, but ~1600 entries writing takes 20s and reading all 10s May 03 09:36:54 each entry has just few field May 03 09:37:13 are you using transactions May 03 09:37:15 That sounds awful May 03 09:38:13 Ashiren: Check out http://ormlite.com/javadoc/ormlite-core/doc-files/ormlite_5.html#Transactions and the paragraph below, object caches. May 03 09:39:41 also is it good to use the same pojo as i use for gson (SerializedName and whatnot) May 03 09:40:14 hmm i believe i use callBatchTasks for writing May 03 09:42:26 well actualy its 16k entries May 03 09:58:14 You might want to look into doing some stuff manually. Fetching some fields directly from a cursor into lightweight objects instead of letting the DAO instantiate 16k objects for you. May 03 09:58:55 Fetch as few fields objects from the database as you can, query for more information when you need it. May 03 10:05:03 mhm May 03 10:20:44 good day ... May 03 10:22:12 Q : when asking runtime permission from user for location , do i have to create d dialog box or it is provided by android studio using this code : May 03 10:22:22 http://paste.ofcode.org/39yfMLVybZBCumbJLG4X8D9 May 03 10:23:01 running this code, i only get the Toast but no pop dialog to request user permission ? May 03 10:26:39 hey May 03 10:26:44 all May 03 10:31:31 hm, somehow these drawables end up with the same color filter.. May 03 10:37:23 um, what the... May 03 10:37:49 the color filters in on drawable are changing another drawable May 03 10:37:51 how... May 03 10:37:53 what May 03 10:37:55 huh? May 03 10:37:59 :) May 03 10:38:11 pretty sure this used to work correctly May 03 10:38:26 maybe you misuse ‘int’ with R.drawable May 03 10:38:36 and setter methods May 03 10:39:04 my drawable is in a layout file that I inflate in onCreateViewHolder May 03 10:39:22 and then I apply a color filter to that drawable in onBindViewHolder May 03 10:40:36 ImageView with src="@drawable/.." and I do im.getDrawable().setColorFilter(color, PorterDuff.Mode.SRC_IN) May 03 10:41:56 the drawable instances are different but they might have a reference to the same instance internally of course... May 03 10:42:00 https://github.com/squm/template_recyclerview/blob/master/ListProd.java May 03 10:42:06 basic template May 03 10:42:19 yeah yeah I know all that May 03 10:42:45 sounds like referencing to wrong row May 03 10:43:39 I don't see how that's possible May 03 10:44:09 the bind works for other things in the view just fine May 03 10:44:13 only the color filter is wrong May 03 10:44:15 what if redraw event on main thread is called later May 03 10:44:43 and the color value I give to setColorFilter is correct May 03 10:55:37 ok, calling mutate on the drawable in onCreateViewHolder solved it, I just wonder why the hell it worked before -.- May 03 10:55:57 something has changed in our project May 03 11:00:18 A bit of a Java questions but still, http://pastebin.com/6p741Eyx when setting the onTouchListener and DragListener to that ImageView, will the product1 imageview be handled as the ImageView "draggedView" in the listener? Poorly explained. May 03 11:06:36 Sup, does anyone know how I can make something scroll fully? Or know the words I should be using to google? I have a textview in a scrollview, and I want it to scroll so far that the text is at the top of the screen(or goes off the screen). But it stops when there's nothing else to scroll...does this even make sense aha? May 03 11:10:59 Figured it out after an hour -.-, shove an extra view in :) May 03 11:16:12 If I want to drag & drop an ImageView (generated at runtime) around a predefined layout, can I apply drag and drop on that ImageView? Or should I create a View for the Imageview and use drag & drop on that? May 03 11:17:14 Taios, that was 4 minutes! May 03 11:17:28 aha, but it twas an hour before I got fedup and decided to ask :D May 03 11:17:29 hey Guys! have anyone experience with ffmpeg ? Output file does not contain any stream May 03 11:17:38 and then once I asked I realised another thing I could try :) May 03 11:17:41 weird how that happens May 03 11:17:54 Taios, behold the power of the mighty duck... I mean IRC May 03 11:18:21 https://en.wikipedia.org/wiki/Rubber_duck_debugging May 03 11:19:12 Bernzel_, creating a view in code isn't any different from inflating it from a layout... so yes, you can do it May 03 11:19:19 I've never done drag&dropping though, so don't ask me :p May 03 11:20:29 Zharf: okey! But since I would want it to be dragged all around the screen, would I need to create a RelativeLayout covering the whole screen, sitting "above" all other elements in the layout? May 03 11:21:36 Bernzel_, you can use the content view May 03 11:30:18 ffmpeg experience anyone maybe? :/ May 03 11:30:47 i have the problem with some error that no one have the solution until now :D May 03 11:31:51 maybe ##ffmpeg can help? May 03 11:31:59 or is it #ffmpeg May 03 11:33:42 oh May 03 11:33:45 i will check May 03 11:33:47 thank you very much May 03 11:46:08 hello there, can anyone help me with a windowsoftinputmode question that i cant seem to solve easily :/ May 03 11:49:52 symLink: not if you don't ask the question May 03 11:50:14 so i have a cardview in the middle of the screen May 03 11:50:23 and a button on the bottom of the screen, not in the cardview May 03 11:51:00 so what i want is when the keyboard comes up that the cardview moves up completely, but the register button to stay where it is May 03 11:51:22 so when the keyboard comes up for the cardview to be fully shown, and the button to stay on the bottom of the screen May 03 11:52:00 adjustpan doesn't move the cardview up enough, adjustresize moves it perfectly but then the button gets shown too May 03 11:55:16 symLink, with adjustResize, adjust scroll too so that the button is out of view? May 03 11:55:25 Hello! Has anyone here worked with WebViews on an Android TV? I am currently having problems zooming out the page... May 03 11:55:42 symLink, manually that it May 03 11:55:43 is* May 03 11:56:19 Zharf: i was thinking about that, setting windowsoftinputmode to adjustresize, then adding some sort of keyboardshown listener and just setting the button.visibility="gone" May 03 12:10:57 Hi, I am new to android app development, I have created a simple app, which takes user input and displays the same via WebViews, my task is, if any javascript is inserted by the user it should get executed, which in mycase is not working, I have enabled setJavaScriptEnabled to true, can anyone please suggest what am I missing here May 03 12:12:44 u want to execute js in ur app ?? May 03 12:12:50 yes, May 03 12:13:50 check tgis :http://stackoverflow.com/questions/17023991/call-javascript-function-in-android-webview May 03 12:13:56 this* May 03 12:16:17 I did, I also hv coded this : webview.loadUrl("javascript: document.getElementById('nme').innerHTML='Hello "+nme+"!';"); May 03 12:16:30 still it does not get executed May 03 12:16:38 any error ? May 03 12:16:51 or exception? May 03 12:17:33 glUtilsParamSize, and Error unknowntype is what I get on my console/ May 03 12:19:40 so, when I enter foo"> ::: foo"> gets printed but the script doesnot execute, May 03 12:22:03 nmmmm May 03 12:22:13 try seting setDomStorageEnabled(true) May 03 12:24:15 hithere May 03 12:24:22 ok, will check and revert, May 03 12:25:03 N3sh108: how's your designer doing after the regection? May 03 12:25:09 *rejection May 03 12:25:10 how do you restart (emulate - exit, and start of app by user)? May 03 12:25:27 I have found this on stack, but maybe there is better way to do it http://stackoverflow.com/questions/6609414/how-to-programatically-restart-android-app May 03 12:25:31 bolovanos: PendingIntents and exit(0) May 03 12:25:36 but that is bad May 03 12:25:52 thepoosh, what is bad? May 03 12:25:57 you can also clear top from the entry activity May 03 12:26:05 calling System.exit May 03 12:29:18 ok thank you May 03 12:30:21 thepoosh: still crying over it :P May 03 12:44:30 Geeky_PARADOx: it still does not execute the script, May 03 12:45:08 hi May 03 12:45:19 how i can set BuildConfig.Debug to true ? May 03 12:45:41 by using a debug build configuration May 03 12:45:49 t0th_-_: you have no control over BuildConfig.DEBUG May 03 12:46:05 if you want it to be true, you set the build configuration to be debuggable May 03 12:46:34 where i can set to debuggable? May 03 12:46:56 in build.gradle or in the AndroidManifest May 03 12:47:11 thanks May 03 13:25:27 any recomendations for software that I can install in my own server for android test automation? May 03 13:39:56 Adyrhan: ci is good May 03 13:40:08 I would install Jenkins May 03 13:42:48 I'm getting https://gist.github.com/freeone3000/6380c4256f332484e229b26dd804e0dd when trying to run SDK Manager on Debian Sid through virtualized X. Any suggestions? May 03 13:55:21 anyone knows hot to disable vertical scrolling in webview? (and only vertical scrolling) May 03 14:18:55 Silvering: you can add a touch listener and prevent scrolling from happening May 03 14:19:04 or just design a good responsive website May 03 14:19:10 thepoosh, I'll try that thx May 03 14:19:24 np May 03 14:51:29 Adyrhan, I've not used webview before, but for web in general, you could
(content here)
Just make sure this is the top most element in the document, and there is no padding or margin on the body May 03 14:51:47 No reason that should not work in webview May 03 14:52:23 truckcrash, I think you meant to mention Silvering May 03 14:53:15 errr... oops. yeah. sorry. They're not even here anymore. ¯\_(ツ)_/¯ May 03 14:56:41 Hi all, I am wanting to save some reference to notifications that are currently visible (not dismissed) from my app. I think I understand that I can use pending intents to confirm the notifications have been cleared/tapped. But where is the best place to store this data beforehand? May 03 14:57:19 For context, I'm trying to 'group' notifications if a new one is received while an existing notification exists. In a similar way to how the gmail app does. May 03 15:01:46 rmrrn, use notification id to group types May 03 15:02:04 and use the cancel pending intent May 03 15:04:40 pfn: I think I can understand that much, but where should I actually store previously 'created' notifications? In memory/shared-preferences/somewhere else? May 03 15:06:50 you decide that for yourself according to your needs May 03 15:15:35 pfn: is there a recommended approach? May 03 15:16:39 rmrrn, have a database table that tracks the active notifications / content May 03 15:16:44 easiest aproach May 03 15:16:49 and just delete it when user dismisses it May 03 15:17:22 when you get a new push, add an entry and create a new notification with same ID so it overwrites any existing ones May 03 15:25:01 Mavrik: I will try this approach, thanks :-) May 03 15:36:42 is there a simple way to append the same query to all of my retrofit calls? May 03 15:37:23 currently all of them have @Query("json") int returnJson so when making the call i always have to supply the proper int May 03 15:37:34 but its not going to ever change so.... May 03 15:43:21 You can rewrite the url with an OkHttp interceptor May 03 15:44:18 hmm so theres no annotation to define it in my retrofit service interface? @QueryParam seemed kinda like what i was looking for but i guess its not in Retrofit 2 May 03 15:50:05 I don't believe so, no May 03 15:50:11 Should be quite easy with an interceptor tho May 03 15:52:10 mhm, got it working May 03 15:52:24 would be cool to have an annotation for it tho May 03 15:58:08 i notice in some gapps - when the nav drawer opens up, all the action bar items hide - how does one do that? if you have a few fragments contributing items with hasOptionsMenu(true) May 03 15:58:56 retrofit 1 could probably do that, it had its own interceptor kind of thing.. In retrofit2 they remove that kind of duplicate behavior May 03 15:59:39 SimonVT come out with any new libraries lately ? May 03 16:00:21 They probably use setMenuVisibility May 03 16:00:31 And no, no great ideas May 03 16:01:35 SimonVT hm, ok so I would have to poke all the fragments then May 03 16:02:32 Yeah May 03 16:02:47 But no one does that anymore, now the drawer overlaps the toolbar May 03 16:03:45 yeah, on tablets though there is still enough gap between drawer and other side of screen the actions show through May 03 16:04:05 those damn tablets :) May 03 16:06:32 SimonVT what do you think is more common, when using nav drawer to switch fragments: that the activity has Toolbar in its layout, and the fragments share it - or that each fragment has the toolbar in their layout. in some cases, like if one frag has a different toolbar with tabs / etc its kinda pain making one uber-one shared among all May 03 16:07:04 No idea what is more common, but I prefer each fragment manage it's own Toolbar May 03 16:07:31 SimonVT so your activity is basically a DrawerLayout, NavigationView, and FrameLayout container with no toolbar ... May 03 16:08:02 Yep :) May 03 16:08:22 think the toolbar should stay a top level item throughout the app, imo May 03 16:08:33 would be weird to reload a new toolbar every new screen May 03 16:08:45 i did see in google Keep, they did this: split fragment into two - one was the content part, and the other was the decorator with toolbar (so you could reuse the content fragment somewhere else) May 03 16:10:01 so the foo fragment was ... blah blah May 03 16:10:12 anyway guys quick question, with retrofit when your doing your usual "call.enqueue(new Callback{...})" you know how it already knows what type of object the response should be? May 03 16:10:19 like this: http://prntscr.com/azt8lm May 03 16:10:49 how would i write something that does that? I made my own callback interface but I hav eto manually enter the types May 03 16:10:52 have to* May 03 16:11:51 no the callback is an abstract class, my mistake May 03 16:11:52 much nicer to work with the rxjava implementation (observables) May 03 16:12:13 azgul: I usually do but its not viable for this particular project May 03 16:12:22 why not_ May 03 16:12:26 ? May 03 16:12:30 company project May 03 16:12:42 aha May 03 16:12:45 maybe down the road though May 03 16:12:53 but just ripping out volley at this point lol May 03 16:13:21 yeah I did the same when I realized how awesome retrofit is in comparison, I went straight to observables tho :p May 03 16:13:37 anyway any idea how to do like the above? May 03 16:15:56 SimonVT thanks May 03 16:18:02 orbyt_ using ? May 03 16:22:17 azgul: i am. is it something to do with documentation? May 03 16:22:36 not sure that I follow then May 03 16:28:32 azgul: basically: http://prntscr.com/azthns May 03 16:28:49 but when I autocomplete the callback it cannot infer the type May 03 16:29:17 kotlin in action is manning deal of the day (50% off) May 03 16:29:23 the book is almost done :D May 03 16:30:02 azgul: nvm got it May 03 16:38:34 every bug that was supposedly fixed in the last support lib, has people saying on defect tracker "i still have this problem" May 03 16:38:43 well the ones i am following anyhow May 03 16:46:32 I'm implementing the new permissions model in Android 6 (Marshmallow), with target SDK 23 May 03 16:46:54 I've got a mainActivity with a separate activity for a camera May 03 16:47:29 when I switch to the camera activity, where in the code should I check for camera permissions? May 03 16:47:36 before the intent that I launch? May 03 17:00:43 Is it possible to change the origin x,y position from where the touch takes place with a onTouchListener? I have this: http://pastebin.com/pmTQHJKL and when I touch the item to move, I get hold of the top/left corner of the image, making it very difficult (and ugly) to move it around, I would like it to be centered. May 03 17:04:01 JakeWharton: seen this? https://redd.it/4hltuv May 03 17:06:20 if no one knows the answer to this, could someone perhaps tell me what it's called, so I can more easier find info about it. The position from where you "steer" the object, whatever it might be called May 03 17:06:59 Bernzel_: Um doesnt onTouch give you an event with the x/y position? Manipulate that as needed May 03 17:07:37 thepoosh: yes but i didn't read it. is something supposed to stand out to me? May 03 17:08:01 nope, I remember your post about simulator vs emulator in android May 03 17:08:08 thought this might interest you May 03 17:08:10 orbyt_: not sure I'm describing it correctly :/ If I touch down on the image at it's center to begin dragging it, it "jumps" down so that I get a hold of the absolute top-left corner of the image May 03 17:08:28 and that you haven't used the emulator in the past few years (like me) May 03 17:08:40 than its an issue with how your handling draggin @ Bernzel_ May 03 17:08:50 i use the emulator May 03 17:09:03 speed was never the issue May 03 17:09:21 i never trust it May 03 17:09:29 and barely trust genymotion May 03 17:09:38 usually use physical devices only May 03 17:09:40 orbyt_: it's not meant to be like that then? May 03 17:10:17 Bernzel_: being able to drag an image isnt a default behavior so someone wrote the code to handle that May 03 17:11:13 all of my criticisms for the "old" emulator apply to the "new" ones vs. a simulator May 03 17:11:51 like location, camera etc? May 03 17:12:23 g00s: here? May 03 17:12:25 no May 03 17:12:40 thepoosh heya May 03 17:13:01 i am embarassed to say i don't remember May 03 17:13:12 *embarrassed May 03 17:14:28 thepoosh "And it only took 8 years! Go Google!" .. and embarrassment from MS :D May 03 17:14:44 deployment speed (which they're trying to solve with instant run), easy of use for headless testing, control of behavior May 03 17:14:46 meh May 03 17:15:22 thepoosh that a pretty meh 'meh' May 03 17:15:45 one must 'meh' with enthusiasm May 03 17:16:00 MEH!!!1^ May 03 17:16:38 yessh. May 03 17:16:53 i haven't tried the new emu; not sure haxm works with Core 2 processors May 03 17:17:25 JakeWharton are the adb protocol improvements only on the emu? May 03 17:17:45 i don't notice any faster deployment to physical device (6.0.1) May 03 17:18:07 doubt they can fix that without a software update May 03 17:18:27 I haven't noticed any speed improvement either. only got 10 gb ram on my laptop so I stick to physical device.. May 03 17:19:18 i'll have to find where they talk about it, i thought it was the last dev summit May 03 17:19:28 or was it last i/o ... May 03 17:19:57 it was android dev summit May 03 17:20:26 g00s: 15 days to this io May 03 17:20:27 http://www.androidpolice.com/2016/04/24/android-n-feature-spotlight-adb-has-much-faster-transfer-speeds-improvements-to-shell-commands-and-a-bunch-of-compatibility-fixes/ May 03 17:20:33 N -.- May 03 17:20:56 Nyoro~n May 03 17:20:56 i wish google would sell developers some cheap reference HW, either a Google One phone, or a board like RPi with official images / support May 03 17:21:08 my Nexus 9 runs N though, I haven't noticed anything remarkable on that either though, lol May 03 17:21:22 i thought brillo has some official HW support like that, maybe Galileo May 03 17:22:10 jbq maintained official beagle images, but once he left that kinda went away May 03 17:23:16 azgul cool, thanks for digging that up. yeah my 2013 n7 won't get that :( May 03 17:24:28 thepoosh excited about i/O ? are you going ? May 03 17:25:53 don't think so May 03 17:26:00 there is a slight chance still May 03 17:26:05 but probably not May 03 17:33:35 Hi, are there predefined strings, which are translated in most languages? something like "Permission denied"? May 03 17:33:50 or do i have to translate them all myself in self managed strings.xml May 03 17:35:34 thepoosh meh, sorry disconnected May 03 17:35:49 what have you missed? May 03 17:36:02 hard to say, don't see anything :D May 03 17:36:12 last was 'but probably not' May 03 17:37:26 last for me as well May 03 17:37:29 :P May 03 17:38:05 ktwo you have to translate everything yourself May 03 17:38:36 sure there is no way to get texts used by the system? like the one showing in the permission dialog May 03 17:38:53 that would ease a lot of things, i mean stuff like "yes" "no" is probably already in the system May 03 17:42:41 maybe if you copy all the string resources from sdk :D May 03 17:45:03 ah looks like you can access stuff with @android:string/ May 03 17:45:06 like yes/no/cancel etc May 03 17:45:18 but I suppose that there's not guarantee that it will stay there May 03 17:46:53 coult be it? https://developer.android.com/reference/android/R.string.html May 03 17:46:56 not so many things there May 03 17:48:11 yea doesnt seem so easy to access other stuff May 03 17:48:43 kinda sucks since most keywords are already translated by the system, and its kinda stupid doing it all over May 03 17:48:50 like.. copy, paste etc May 03 17:50:29 are there any good book on android-dev? is head first android dev by 0'reilly any good? May 03 17:50:39 books on java in general also aprecciated May 03 17:51:40 The official Android docs are very good May 03 17:51:41 damn, we really need that bot :p May 03 17:51:52 Hello May 03 17:51:54 The Big Nerd Ranch book is good, and the Udacity Google course is good May 03 17:52:14 I'm programming with the tablet Tango and have some problème with de default storageDir of my android May 03 17:52:37 The apk want to use /storage/emulated/0 instead of /storage/emulated/legacy (and my code crash of course) May 03 17:53:01 don’t hard code directories May 03 17:53:08 if you hard code directories, you’re gonna have a bad time May 03 17:53:08 it isn't harcoded May 03 17:53:18 I'm using default function... May 03 17:53:22 functions* May 03 17:53:42 which ones? May 03 17:53:58 copyAssetToStorage May 03 17:54:11 s73v3r you're absolutely right about hard coded directories :D May 03 17:54:58 and getStorageDir (I didn't decalred these functions, I think : the code isn't mine) May 03 17:55:55 I’m not 1000% sure, but I don’t think the first one is an Android API method May 03 17:56:07 well maybe they are hardcoded inside May 03 17:56:23 Gaulois94: https://developer.android.com/reference/android/os/Environment.html May 03 17:56:51 Gaulois94: Make sure inside those methods, it’s using something like that May 03 17:56:52 you probably want Environtment.getExternalStorageDirectory() May 03 17:57:14 my bad.... I used getExternalFileDir May 03 17:57:16 also, have you seen if some of those directories you’re getting even exist on the device? May 03 17:57:26 Seems like first time my app opens "cold" the actiivties take a few milliseconds more to open, but if you go back and do it again its almoast instant May 03 17:57:28 Is this normal? May 03 17:57:29 which use my external storage... May 03 17:58:18 Sorry, didn't read the code correctly May 03 17:58:36 drose379: that would be normal for most apps May 03 17:58:50 when you exit all acitivities you dont exit app May 03 17:59:00 so next time it doesnt have to create Application instance May 03 17:59:09 and some parts of app are still in RAM May 03 17:59:24 Ok, so thats why from a "cold start" it takes a sec May 03 17:59:52 Makes snese May 03 18:00:37 Thanks Ashiren May 03 18:01:50 if you use instant run the initial load of the app also takes a lot longer than normally May 03 18:02:10 wont stay like that for release builds tho May 03 18:02:41 Noticed that May 03 18:02:48 Whats up w that? May 03 18:08:56 uh because it has to load the full app May 03 18:09:04 cant hotswap changes on a nonexitent app May 03 18:15:06 I think he was talking about something else orbyt_ May 03 18:16:30 drose379: what May 03 18:16:40 nvm orbyt_ May 03 18:26:45 Hi all. Anyone else having issues with Android Studio freezing? I'll leave studio and the emulator open overnight and go to run my app in the morning and studio freezes, but not like hard freezes. It seems like overnight a connection between studio and the emulator breaks and studio doesnt recheck and when it goes to try to launch my app it just freezes May 03 18:27:05 does anyone know how to set the output directory. I managed to mess mine up somehow May 03 18:28:11 I'm building android 6.0.1 on ubuntu 15.10 May 03 18:28:26 HaSH: You using version 2? May 03 18:28:54 ResidentBiscuit: Yea. I just discovered if I open a terminal and adb kill-server studio comes back to life May 03 18:29:06 So it seems something in the emulator gets fubar overnight May 03 18:30:41 ResidentBiscuit: Correction, I'm using 2.1 May 03 18:37:38 HaSH yes, happens to me May 03 18:38:15 HaSH i posted this to adt-dev but no replies https://groups.google.com/forum/#!topic/adt-dev/FHm1GwE_ULE May 03 18:39:08 might be slightly different problem though May 03 18:43:37 <[ADAM]> Where can the adb dev binary be found? May 03 18:44:22 tfw llvm-rs-cc is linked against curses.... May 03 18:44:52 thats like antlr depending on swing :D May 03 18:45:27 (which it does, haha) May 03 18:45:40 yeah, but antlr can run without swing May 03 18:45:50 unlike native binaries that load sharedlibs eagerly May 03 18:49:58 [ADAM] sdk\platform-tools May 03 19:06:51 Whats up party-android people! May 03 19:07:54 explodes, fragments and activities of course May 03 19:33:50 rxjava double: i've seen some posts about when to use subjects. i've also seen some people holding subscribers as instance fields, which seems wrong May 03 19:34:06 am i right in my conclusion? ^ May 03 19:34:25 ^ * s/doubledoubt May 03 19:34:37 ^ * s/double/doubt May 03 19:57:35 Is there any way to only allow an ApplicationContext vs activity context May 03 20:02:02 http://developer.android.com/reference/android/app/Application.html http://developer.android.com/reference/android/app/Activity.html May 03 20:02:10 looks like you can tell them apart by checking for ContextThemeWrapper May 03 20:02:18 Hi folks.. I need to get my wifi "Phy" Speed.. May 03 20:02:47 How I can develop it using Android? May 03 20:03:46 Thanks azgul May 03 20:15:36 frederico what do you mean by "Phy" speed? May 03 20:16:08 azgul, is a physical layer of WiFi May 03 20:16:34 physical transfer rate over 802.11 May 03 20:19:27 so the advertised speed of the router? May 03 20:21:57 anyone using buck? May 03 20:23:13 buck May 03 20:23:23 g00s_: May 03 20:23:27 facebook's buck. yes May 03 20:24:37 que? May 03 20:25:42 is there a way to use both gradle and buck in AS May 03 20:25:59 en espanol por favor. May 03 20:26:08 orbyt_ wut May 03 20:26:32 g00s_: que? May 03 20:26:41 sorry i dont speak spanish May 03 20:26:44 you highlighted me ^^^ May 03 20:26:53 g00s_: read it carefully May 03 20:26:53 no comprende May 03 20:27:04 yeah no comprende in english either May 03 20:27:17 don't you know i'm locooo May 03 20:37:47 this channel is not very active, right? May 03 20:38:14 adnbsr: No. Why? May 03 20:38:44 i could not get feedback on buck, even. May 03 20:38:58 adnbsr: es porque no no estas hablando en espanol May 03 20:39:59 orbyt_ why are you sticked to spanish? May 03 20:40:53 adnbsr: que? como se dice "stickied" en espanol? May 03 20:41:24 Ya estamos hablando en espanol? May 03 20:41:27 orbyt_: Por favor, use Google Translate si desea comunicarse con personas de habla inglesa May 03 20:41:52 LunarEclipse120: English in this channel please, thanks. May 03 20:42:15 orbyt_: Oh fuck off. Troll May 03 20:42:34 ¯\_(ツ)_/¯ May 03 20:50:13 Asking to speak english is trolling? May 03 20:50:57 ResidentBiscuit: He was speaking spanish the whole time May 03 20:51:13 Oh ha, I should have read more May 03 20:51:14 ResidentBiscuit: So when I used Google Translate to tell him to use it to speak English. He said that May 03 21:02:02 what's the deal with that android-unregistered channel and can we get rid of it somehow May 03 21:02:21 xorgate: There is a reason May 03 21:02:40 xorgate: Because #android had to be made +r because of troll issues. And we need an explanation for noobs May 03 21:02:54 so can i opt out? May 03 21:03:21 xorgate: No May 03 21:03:35 xorgate: You shouldn't be redirected if you are identified May 03 21:03:41 xorgate: Try connecting via SASL May 03 21:04:07 the joining always happens during the identification so it's always too late i guess May 03 21:04:32 xorgate: You can add a delay in most clients May 03 21:04:36 ok sasl enabled now May 03 21:04:47 xorgate: Or connecting via SASL does it before you even connect May 03 21:08:23 yeah ... my client says (+cfrt #android-unregistered) ... what is that ? May 03 21:08:44 People were trolling so the channels need to be made registered only May 03 21:09:00 android-dev too ? i haven't seen much trolling May 03 21:09:01 Noobs have no idea what that means so we made a redirect channel with a bot to give signup instructions May 03 21:09:15 g00s_: No trolling because people have to be registered May 03 21:09:22 g00s_: All of them. #android used to be where people got explnations but it just got registered only May 03 21:09:50 i still don't get what this has to do with android-dev May 03 21:10:01 so all channels on freenode are register only ? May 03 21:10:13 g00s_: Not all May 03 21:10:25 g00s_: #android-root , #android , #android-dev is May 03 21:10:32 It's a channel's decision May 03 21:10:41 #freenode isn't, because that would be too funny May 03 21:10:46 ResidentBiscuit so then thins is something kroot or cedricbuest did ? May 03 21:10:58 kroot did it May 03 21:11:02 ah ok May 03 21:11:05 I witnessed it and the troll that caused it May 03 21:13:15 #android-dev is register only for a long time now O.o May 03 21:14:03 Yes May 03 21:14:10 But #android used to give an explnation why May 03 21:14:14 It cannot anymore May 03 21:14:29 Good. May 03 21:14:35 That channel was a cesspit. May 03 21:20:00 Ok, so what about a business class Android? with Active directory and Office apps builtin and a custom Business appstore? able to run on x86 and arm devices. May 03 21:21:09 Rocket18: What does this have to do with dev? May 03 21:21:33 Rocket18: And Androids usually use Google Drive by default May 03 21:21:47 Rocket18: From what you want you should look into Google Apps for Buisness May 03 21:21:52 Because I am developing this myself and i am only 18 and would like the insight of other devs May 03 21:22:08 Rocket18, uhm, what are you trying do do exactly? May 03 21:22:10 MDM? May 03 21:22:14 Rocket18: Why can't you just use Google Apps for Buisness? May 03 21:22:35 He’s making his own distro of Android, and is trying to shoehorn it into something not phones May 03 21:22:42 ah. May 03 21:22:54 Rocket18: https://apps.google.com/ seems to fit your needs May 03 21:23:02 s73v3r: I don't see why he needs to though May 03 21:23:27 meh. They want to learn about making their own distro May 03 21:23:46 well he can use other MDM systems if he doesn't wanna give out all the business data to google May 03 21:24:09 As android gains in popularity companies will want a way to intigrate Android into their work enviroment May 03 21:24:21 i don’t think so May 03 21:24:24 Rocket18: And it already excists without the need for custom ROMs May 03 21:24:32 Rocket18 gains in popularity? lol May 03 21:25:03 they’ve got MDM for managing phones, they build custom apps for those phones, that’s about all they’ll need May 03 21:25:19 Rocket18: Google Apps for Wook allows them to make apps install automaticlly and disable play store; along with a bunch of other stuff May 03 21:25:22 *Work May 03 21:25:36 not everyone wants to use Google, though May 03 21:25:59 ^ paranoid freaks May 03 21:26:06 so? May 03 21:26:20 There is nothing wrong with google. And a buisness should be smart enough to know that May 03 21:26:39 meh May 03 21:26:40 um, anyhow - not dev related :) May 03 21:26:48 Rocket18 toodles :) May 03 21:26:59 I rather keep the anti-Google thing away from all the android channels May 03 21:27:27 hmmm... well I have spoken to Industry tech professionals and they are looking for an OS solution that is lightweight and is easy to use, everyone knows Android and would feel comfortable using it May 03 21:27:29 LunarEclipse120 thats censorship. id rather keep consorship away from all the channels May 03 21:27:41 g00s_: Touche May 03 21:27:52 g00s_: I mean if people are like stereotypical vegetarians May 03 21:28:00 And device to tell everyone about it May 03 21:28:04 LunarEclipse120: There are people here who do have legitimate concerns about Google, and some of the heavy handed decisions they’re making regarding Android May 03 21:28:18 Rocket18: Android isn't for a computer, x86 is barely working May 03 21:28:23 s73v3r absolutely May 03 21:28:39 s73v3r: True; this guy hasn't even said anything about Google May 03 21:28:49 Rocket18: Is this for mobile or desktop? May 03 21:28:55 Both May 03 21:29:08 Rocket18: Uhh so Android on desktop for a work enviroment? May 03 21:29:09 you’ve just quadrupled your work, you know that, right? May 03 21:29:12 Rocket18: That is a bad idea May 03 21:29:23 s73v3r: quadrupled to the power of ten May 03 21:29:40 Well, Samsung has it's own MDM. And other third party providers are out there as well. May 03 21:29:48 Rocket18: Do you know how many programs that companies need to use isn't ported to Android May 03 21:29:49 mostly tablets May 03 21:30:06 Rocket18: Unless you are going anti-Google you don't need to develop anything May 03 21:30:28 couldn’t you say that for anyone who makes a custom ROM? May 03 21:30:42 s73v3r: Nah May 03 21:30:59 true, but if you own a company and want to incorperate tablets into the workplace in a cost efective way, what os will you use? May 03 21:31:05 i mean, pretty much, all Rocket18 wants to do is make their own custom ROM May 03 21:31:12 Me and someone else is actually making a channel for people wanting to develop ROMs May 03 21:31:15 Rocket18: I’d buy a solution from Dell May 03 21:31:51 Rocket18: Android; if Windows tablets are too expensive. What I am saying is something already happens to exist for your purpose. May 03 21:32:36 This channel isn't for building anyway. There really isn't an official one May 03 21:32:37 I'm sure they told the Ford brothers to just go buy a horse, why would you need to invent a way to go faster May 03 21:32:45 something exists for just about everything, though May 03 21:33:14 Rocket18: Yes but you seem to lack the knowledge of building a custom ROM. So for you I would guess Google Apps is the best bet May 03 21:33:58 Hey, in AS, what’s the shortcut to fold everything? May 03 21:34:19 LunarEclipse120: How is one supposed to get that knowledge without doing it? May 03 21:34:19 Rocket18: And lots of times companies don't have the time and effort to flash TWRP and custom ROMs. Also you can't make a ROM for every device May 03 21:34:46 s73v3r: Do simpler stuff first. Like building recovery, or even simpler. Getting used to flashing May 03 21:35:34 Android as it stands from a dev point of view is not very secure, My OS will close the security holes and provide a stable work enviroment May 03 21:36:04 Rocket18: Ehh Good luck May 03 21:36:31 Rocket18: Android is pretty secure, I don't think you understand enough how it works to make an OS May 03 21:37:08 can you guys take this bs to #android or something ... May 03 21:37:09 I have plenty of experiance with flashing and custom recovery, thats why I am crafting Android for Business May 03 21:37:13 Rocket18 stop May 03 21:37:43 I agree, this isn't app development May 03 21:37:52 this is app dev; if you are going to build a distro look at the platform mailing lists May 03 21:38:09 #android isn't really the channel for it either. Me and a friend are working on making an unofficial one; it is still being setup May 03 21:38:17 Sorry, just looking for other dev's oppinions May 03 21:38:41 Rocket18: I barely develop; my opinion is you do not know what you are doing. May 03 21:39:02 rip May 03 21:39:45 android for business? blackberry? May 03 21:39:53 w4ffles_: Lol May 03 21:40:10 I also wouldn't like my job having control over my phone May 03 21:40:42 they have been doing a good job with their android builds grsecurity and frequent ota security updates ..etc May 03 21:40:58 What are these OTA security updates you speak of? May 03 21:48:01 <[ADAM]> Does pdanet install the adb binary? May 03 21:48:19 [ADAM]: No it does not iirc May 03 21:48:46 [ADAM]: And I also recall you were trolling in #android yesterday May 03 21:49:28 <[ADAM]> Or only the driver? I ask because I installed a production build binary and uninstalled it and had been using adb for a while after, decided to reinstall pdanet and the adb binary did not change so I deleted the adb binary manually reinstalled pdanet and now no adb binary at all. May 03 21:49:48 [ADAM]: What operating system? May 03 21:50:10 <[ADAM]> For a while there pda net reads connecting to adb, then I noticed adb and adb2 May 03 21:50:46 <[ADAM]> Then the background image dissapeared for a solid blue and persisted so after reinstalls. May 03 21:50:56 [ADAM]: Windows? May 03 21:51:06 <[ADAM]> Windows XP May 03 21:51:09 this doesn’t sound much like Dev talk May 03 21:51:34 <[ADAM]> Having adb installed is dev talk. May 03 21:51:48 <[ADAM]> Can you link to the adb dev binary? May 03 21:51:54 [ADAM]: What are you using ADB for? And iirc new ADB dopesn't work on XP May 03 21:51:57 having adb installed for the purposes of developing apps is dev talk. May 03 21:52:19 [ADAM]: Latest ADB is https://dl.google.com/android/repository/platform-tools_r24rc2-windows_rc2.zip however I don't know if it would work on XP May 03 21:53:08 <[ADAM]> Why not the full android emulator is advertised for XP and above. May 03 21:53:19 [ADAM]: Because XP is old. May 03 21:53:42 [ADAM]: You may want to upgrade, I think these ones works on XP https://dl.google.com/android/repository/platform-tools_r19.0.1-windows.zip May 03 21:55:10 <[ADAM]> I can try them later. The download is hanging. May 03 21:55:49 I'm implementing the new permissions model for Marshmallow, I've been able to ask for multiple permissions at once, except when camera is the only permission that hasn't been granted permission May 03 21:56:18 is this instance it says I can't ask for multiple permissions (I use arrays to ask for multiple permissions at once) May 03 21:57:06 anyone come across a similar issue with the new permission model and camera access? May 03 22:00:07 <[ADAM]> I have linux and the dev pack however it has no code it is some sort of build sys and the emulator is only for windows. May 03 22:00:33 [ADAM]: I thought mac and linux has it too May 03 22:00:33 [ADAM] wrong channel May 03 22:00:40 <[ADAM]> I need to do dev work on linux itself. May 03 22:00:41 LunarEclipse120 ... did you bring all the idiots here ? May 03 22:00:42 [ADAM]: Are you making an app? May 03 22:00:46 wtf is going on May 03 22:00:47 g00s: No May 03 22:00:47 <[ADAM]> The locks have to be changed. May 03 22:01:16 <[ADAM]> LunarEclipse120 I plan on it. May 03 22:01:22 g00s: And are you calling me an idiot? Also, [ADAM] was trolling in #android yesterday as I said. May 03 22:01:34 [ADAM]: We can help you with app development. That is it May 03 22:01:51 g00s: I understand this is for app dev only though. Apperantly others do not May 03 22:02:03 <[ADAM]> What does it require to be coded in java? May 03 22:02:12 LunarEclipse120 didn't you say yesterday you were not an app dev ? May 03 22:02:30 as a git user i don't hang out in #hg to shoot the shit May 03 22:03:03 g00s: I have made apps before; I am not that experienced May 03 22:03:23 [ADAM]: Mainly everything unless you use the NDK May 03 22:04:39 <[ADAM]> Is the NDK the 300mb minimal command line bundle? May 03 22:05:05 [ADAM]: No. It is so people can develop in C May 03 22:05:18 [ADAM]: http://developer.android.com/tools/sdk/ndk/index.html May 03 22:05:25 [ADAM]: Only use it if you need it really May 03 22:05:33 <[ADAM]> the r24 thing? May 03 22:05:36 [ADAM]: Most of the time development is in Java May 03 22:05:50 [ADAM]: The r24 is adb binaries May 03 22:06:35 java's still popular for android development? May 03 22:07:16 w4ffles_: What else? May 03 22:07:53 <[ADAM]> I have in mind to build a solitaire app. May 03 22:08:06 xamarin/c# seems to be where theres ago going May 03 22:09:04 <[ADAM]> I want special card faces and backs. May 03 22:09:23 <[ADAM]> These are recall apps. May 03 22:10:45 <[ADAM]> LunarEclipse120 be back later. May 03 22:30:53 If you set a click listener twice, does the second one override the first? May 03 22:31:14 drose379: Wouldn't it just run twice? May 03 22:31:25 I thought so but its not happening for me May 03 22:31:41 like you call setClickListener? May 03 22:31:45 again? May 03 22:32:26 I have a method called from my presented called receiveDataAdapter May 03 22:32:38 Basically it passes the view its adaper, then the view attaches it to the list May 03 22:32:46 For some reason, I also set the click listener here May 03 22:32:48 I guess I shouldnt May 03 22:33:10 setting the click listener should clobber any existing one May 03 22:33:27 It should overwrite? May 03 22:33:31 Ok, is that documented anywhere May 03 22:33:53 Yeah, it looks like the second one added overrides the first May 03 22:33:59 well, the method “set”ClickListener, as opposed to “add”ClickListener would imply that May 03 22:34:18 Right May 03 22:34:29 Ok, makes sense, so its fine to set the listener in this method May 03 22:35:50 I have an activity wish a viewpager and 5 child frags, is it too much to load them all up at once? May 03 22:36:09 with* May 03 22:36:48 depends on what’s all on them May 03 22:37:06 and really, how often they’re swiped to May 03 22:37:20 Well im keeping all 5 alive May 03 22:37:25 At all times May 03 22:37:45 Whats on them... pretty light views May 03 22:38:14 you should be fine, unless you’re seeing problems May 03 22:38:28 Sometimes my emulator skips frames when opening the activity May 03 22:38:35 how about device? May 03 22:38:38 At first I thought it was cause its an emulator May 03 22:38:43 No device doesnt happen May 03 22:38:53 I think my emulator just does that sometimes, no? May 03 22:39:07 i wouldn’t worry too much about the emulator May 03 22:39:43 OK thanks s73v3r May 03 22:39:57 Did we talk earlier about seeing some lag in opening activities during a "cold start" of the app? May 03 22:41:02 Well, if you instantiate, layout and load data into 5 fragments, that can easily take noticable time May 03 22:41:04 could be May 03 22:41:24 yeah. idealy you’d instantiate and load the fragments on demand May 03 22:41:48 No im talking about just a regular activity now May 03 22:42:12 When I first start up my app, and say click a button that opens a new activity, I notice a __tiny__ bit more lag then when I go back and do it again May 03 22:42:21 I was wondering if this was normal, I was told yes May 03 22:42:42 do you need to be told yes again May 03 22:42:55 Pretty much, I like getting second opinions on stuff im unsure about May 03 22:42:57 I can tell you no for fun May 03 22:43:01 no May 03 22:43:02 Nah May 03 22:43:09 I was asking s73v3r pretty much May 03 22:43:27 Yeah screw everyone else here, they don't know anything May 03 22:43:36 agreed, hes an idiot^ May 03 22:43:36 I was in a convo with him May 03 22:44:37 You're in a public chat with 366 other people. Expect anyone to randomly chime in May 03 22:44:49 ^ May 03 22:44:55 Thats what PMs are for May 03 22:44:55 Fine yeah May 03 22:45:14 Well, can anyone give me a serious answer then? May 03 22:45:28 ResidentBiscuit said he would tell me no for fun, lol May 03 22:45:29 no May 03 22:45:33 I cannot. I'm a total android noob May 03 22:45:46 You kidding me May 03 22:45:48 Haha May 03 22:45:50 I only know basic developing; I still like to help when I can May 03 22:46:11 Ok you guys gave me all this crap now tell me you cant answer May 03 22:46:13 Hahah May 03 22:47:18 Welcome to the Internet May 03 22:47:21 :D May 03 22:47:39 orbyt_: keeps saying no for some reason, not sure if thats the final answer ? May 03 22:47:41 I didn't say anything May 03 22:47:48 drose379: no May 03 22:47:59 Its not? May 03 22:48:03 no May 03 22:48:08 So what is May 03 22:48:13 ......no May 03 22:48:19 Its not normal May 03 22:48:21 ? May 03 22:48:23 drose379: What are you trying to do? Some actions can be done twice with a loop May 03 22:48:44 Not really relevant, thanks though LunarEclipse120 May 03 22:49:07 drose379: Aren't you trying to do 2 actions in 1 button click? May 03 22:49:13 Not quite May 03 22:49:18 drose379: Oh ok May 03 22:49:25 Thanks though May 03 22:49:39 I think they just noticed that they called setOnClick twice May 03 22:49:47 Are they called clicks? This is a serious question. I never know what to call mobile clicks/touches/taps/caresses May 03 22:50:58 .setOnCaressListener May 03 22:51:00 lol May 03 22:51:58 there are Clicks, Touches, Long Presses May 03 22:52:09 is there anyone who knows about keylayouts in here? :-) May 03 22:52:25 ask your question, and if anyone knows, they will try to answer May 03 22:52:29 Pawky|2: What does it have to do with app dev? May 03 22:53:00 LunarEclipse120: well I have tried all the others, but no one seems to know anything about it... so this is my last resort :-/ May 03 22:53:43 oh, i thought you were talking about custom keyboard views May 03 22:54:54 I have asked it earlier today, but will try again: Does any one know why android 4.4 would disregard a bluetooth keyboards Vendor and Product info and just go for Generic.kl Even though the keyboard is fully recognized as being Vendor_04e8_Product_7021 ? May 03 22:54:56 Pawky|2: Does it have to do with app development though? If not this is the wrong channel May 03 22:55:05 LunarEclipse120: well.. ... kind of.. May 03 22:55:20 Pawky|2: Are you making an app to do with keyboards? May 03 22:55:43 Have you asked on the relevant stack exchange? May 03 22:55:57 I don’t know, but if I had to hazard a guess, it would see that the profile is input device/keyboard, and then ignore the rest of the stuff May 03 22:56:04 i am trying to "develop" the keylaout to work better as a real keyboard.... so In a way i do, but then again I am just trying to change the layout, so maybe not... :-/ May 03 22:56:16 Pawky|2: Is it an app though? May 03 22:56:22 Pawky|2: This is app development May 03 22:56:25 no, it is android itself May 03 22:56:51 Pawky|2: Then we can't help you here May 03 22:56:53 it should acknowledge the Vendor_04e8_Product_7021.kl file, but it skips it and just uses Generic.kl May 03 22:57:13 Well.. I thought programmer might have the insight of how android works... :-) May 03 22:57:41 You're in a channel for android app development, it's not the same area May 03 22:57:45 No other forum even knows what /system/usr/keylaoyout is May 03 22:57:46 Pawky|2: Yes; this is not the channel for it May 03 22:57:49 Like saying web developers should know how Windows works May 03 22:58:13 well, more like saying web developers should know how Chrome works May 03 22:58:18 well.. usually programmers do know the inner workings of the OS they program for... May 03 22:58:39 Pawky|2: Uhh no May 03 22:58:40 no, I was just presuming programmers who program for the android os, knows how it works/behaves May 03 22:58:48 Depends on the level of abstraction they deal with. Anyways, no point in arguing this. You're being a little douchey. Try the android stackexchange May 03 22:58:53 What's the huge issue about someone asking about Android OS dev? May 03 22:59:23 Also how is he douchey ResidentBiscuit when all you're doing is just... you know... not helping? O.o May 03 22:59:33 no clue... I will try that stackexchange thingy then... where ever it might be... May 03 22:59:50 Mavrik: I'm directing him to the place to get help, I don't know the answer. I'm giving him the place I would go to find the answer May 03 22:59:56 Pawky|2, I'd also do grep over android sources / framework for `Generic.kl` to see where it's resolved. May 03 23:00:07 Pawky|2: http://android.stackexchange.com/ May 03 23:00:29 Also Android stackexchange is pretty much the wrong place anyway, generic one will do. May 03 23:00:50 (Android SE is full of morons who know nothing about the OS and it's not even meant for dev questions.) May 03 23:00:55 Mavrik: I looked into the development pages of android, and it simply states, it should use the vendor/product specific info if the bluetooth keyboard has it, and it clearly does looking into proc.. May 03 23:01:17 superuser.stackexchange might know too May 03 23:01:35 Pawky|2: http://android.stackexchange.com/ too May 03 23:01:40 Pawky|2: I mean http://stackoverflow.com/questions/tagged/android May 03 23:02:29 LunarEclipse120: I will look into it, but I am assuming if there was any info on this I would have found it using google, not? May 03 23:02:30 Pawky|2, hmm, ... perhaps a permissions issue? May 03 23:02:39 The list of paths looked up for keymaps is pretty long. May 03 23:02:43 Mavrik: tried it.. it has exactly the same as Generic.kl May 03 23:02:47 Pawky|2: We won't help here though May 03 23:03:07 Pawky|2: I think we're saying just ask your question there May 03 23:03:08 changing Generic will change whatever I do... but not the Vendor specific file May 03 23:03:18 You might be the first one to have this issue, anything's possible May 03 23:04:03 ResidentBiscuit: no IRC channel for it? May 03 23:04:30 I have no idea. There might be. I'm honestly just pointing you in the direction I would go if I were you May 03 23:05:03 ResidentBiscuit: Thank you, I will listen to if Mavrik might have some ideas before moving on :-) May 03 23:05:08 Android OS dev doesn’t really have an IRC. It’s mostly done on mailing lists May 03 23:05:48 Pawky|2, are you building your own ROM or are you just modifying it? May 03 23:05:59 frameworks/native/libs/input/InputDevice.cpp is pretty much what loads the keymap May 03 23:06:05 Its Revolution HD May 03 23:06:22 I'd throw logging statements in there to see what's goin on if you're compiling that May 03 23:06:49 This was a downloaded iso/bin May 03 23:08:10 Mavrik: Thanks anyway, I will continue my search for enlightenment on this matter :-) May 03 23:25:33 what would be the best way to make an api call with optional fields with retrofit? Should the entire call be a @FieldMap Map? Or can you do something like getStuff(@Field("required") String req, @FieldMap Map options) May 03 23:26:12 also what happens if you set null values to some of the optional values in the map? May 03 23:39:04 going once May 03 23:41:34 I've barely used retrofit, I'm just lurking waiting for an answer May 03 23:42:06 Whats the question May 03 23:42:17 maybe cuz it wasnt in this channels native language May 03 23:44:03 cuál sería la mejor de hacer una llamada a la API con campos opcionales con adaptación ? En caso de que toda la llamada ser un @FieldMap Map ? O se puede hacer algo como getStuff (@Field("necesario") String cadena, @FieldMap Map opciones ) May 03 23:44:47 por favor? May 03 23:45:36 Do you know any other language? May 03 23:45:43 Hindi might be work May 03 23:46:57 no, no yo hablo otro idioma May 03 23:47:12 lo siento May 03 23:47:56 It's ok, I think everyone here probably speaks english anyway May 03 23:48:14 ingles? May 03 23:48:20 si May 03 23:48:23 hmm May 03 23:48:28 ok buddy gracias May 03 23:48:51 no me digas May 03 23:49:25 um what May 03 23:49:46 yo hablo espanol muy mal May 03 23:50:07 no me digas May 03 23:50:16 ;) May 03 23:50:20 ;) May 03 23:50:41 That's just a phrase I always remember for some reason. Not very useful May 03 23:52:05 What libs are out there for MVP? May 03 23:55:16 And whats the beneift May 04 00:04:31 Wonder why TJ is not on as much, he used to be a regular May 04 00:05:34 Got busy? May 04 00:05:55 Maybe May 04 00:06:03 I like to be on IRC while working though, a great place to get questions answered May 04 00:06:07 And help others of course May 04 00:07:09 Anyone know if retrolabmda adds support for "effectively final" May 04 00:07:34 Seems like yes May 04 00:12:48 I too am on IRC while working. Its a good resource. And a good time waster May 04 00:13:03 Can be a time waster yeah May 04 00:33:48 do you guys notice device battery dies quicker using instant run ... May 04 00:34:10 wonder if installing deltas is just more work, or is there more chatter over wifi ? May 04 00:51:25 Mavrik: Got it working finally... must have been some error in the Vendor specific file... just copied the Generic.kl -> Vendor_04e8_Product_7021.kl and did the edit, now it works like a charm :-) May 04 01:22:27 Hello pepple May 04 01:22:29 people May 04 01:23:07 dev\null: Hello May 04 01:24:12 My friend is android developer, and he has one question about Notification system in general May 04 01:24:33 Is there any good / free alternative for GCM service? May 04 01:24:58 * LunarEclipse120 doesn't know what that is May 04 01:25:25 Push Notification services May 04 01:25:27 Like 'Pusher' May 04 01:25:40 dev\null there is some controversy there; google has given GCM an elevated status that 3rd parties can't emulate (afaik) May 04 01:27:10 so any 3rd parties probably don't work as well (drain battery more, don't have as good latency, etc) May 04 01:28:16 i suspect eventually there will be some anti-trust legal stuff in this area; actuallt think there is already (ask justJanne ) May 04 01:28:18 g00s, What's about Services Level Agreement in google? May 04 01:28:49 dev\null not sure, haven't used GCM myself May 04 01:29:04 <[ADAM]> antitrust requires militia May 04 01:29:15 <[ADAM]> if one thinks about it May 04 01:29:26 <[ADAM]> only a militia can enforce it May 04 01:29:36 <[ADAM]> not a militia May 04 01:29:50 <[ADAM]> but a very strong militia May 04 01:29:52 [ADAM] do you have an app development question ? May 04 01:30:11 <[ADAM]> g00s getting there May 04 01:30:31 <[ADAM]> g00s can yo send tools through ssh tunnels? May 04 01:30:38 wat May 04 01:30:55 <[ADAM]> the downloads when they work come corrupted May 04 01:31:21 [ADAM]: Don't see what that has to do with dev May 04 01:31:41 <[ADAM]> LunarEclipse120 hi girl May 04 01:32:08 xD May 04 01:32:32 [ADAM]: I'm a 13 year old boy you pedo May 04 01:32:55 <[ADAM]> I'm not a pedo I'm middle aged. May 04 01:33:09 Do you know what a pedo is? May 04 01:33:19 <[ADAM]> A kid. May 04 01:33:28 i think some people need to be kicked May 04 01:33:57 :P May 04 01:33:58 g00s: Me? May 04 01:34:05 <[ADAM]> A pedophile is a lover of kids. May 04 01:34:12 ffs May 04 01:34:22 [ADAM]: Do you have a dev question or not? May 04 01:34:39 <[ADAM]> I can use some support for my dev work. May 04 01:35:02 [ADAM]: What kind? May 04 01:35:12 <[ADAM]> Connection support. May 04 01:35:34 [ADAM]: You mean teamviewer? I doubt anyone would spoon feed May 04 01:35:52 <[ADAM]> I was thinking SSH tunnels. May 04 01:36:04 [ADAM]: For what? May 04 01:36:17 <[ADAM]> Connection support LunarEclipse120! May 04 01:36:35 [ADAM]: What do you mean by that? Support from us? May 04 01:37:11 <[ADAM]> Diverse compiling LunarEclipse120. May 04 01:37:21 Whatever May 04 01:38:12 <[ADAM]> It's whatever then LunarEclipse120? May 04 01:38:34 [ADAM]: I mean. I don't know what you are trying to do May 04 01:41:00 <[ADAM]> THe current objective LunarEclipse120 is to form a solitaire app. May 04 01:42:04 [ADAM]: Why does it need SSH then? May 04 01:42:19 <[ADAM]> To gather tools. May 04 01:42:30 <[ADAM]> You gave 3 links earlier. May 04 01:42:45 [ADAM]: If you need ADB to make apps I can give it to you. Just get Android Studio' May 04 01:43:02 <[ADAM]> Do you have a credit card number for a free amazon ec2 instance? May 04 01:43:40 <[ADAM]> LunarEclipse120 I don't like the motto of android studio "write less code make more code". May 04 01:43:50 <[ADAM]> I want to write less code make better apps. May 04 01:44:36 * [ADAM] turns on Ultra Violet lamp May 04 01:44:52 <[ADAM]> Do you want to bask in UV rays with me LunarEclipse120? May 04 01:45:24 [ADAM]: "I want to write less code make better apps." doesn't always work that way May 04 01:45:32 [ADAM]: And no I don't want skin cancer May 04 01:46:31 <[ADAM]> Well I plan on using the minimal package. May 04 01:46:48 <[ADAM]> The r24.4.1 thing. May 04 01:47:06 [ADAM]: That is just platform tools May 04 01:47:25 <[ADAM]> Skin cancer is not desired, but it is better to become immune to cancer. May 04 01:47:41 <[ADAM]> Rather than dodge the enjoyments percieved to cause it. May 04 01:49:33 Is there a way to run an ArrayAdapter to a RelativeLayout? I would like to use the ArrayAdapter to get a list of views from a list of data May 04 01:49:34 <[ADAM]> Ok I have platform tools LunarEclipse120 now I need a couple proxies to download from. May 04 01:49:40 <[ADAM]> SSH is desired. May 04 01:50:37 [ADAM]: I don't know what you are trying to do. I can't help May 04 01:51:08 <[ADAM]> I am trying to find co-operation for couple proxies. May 04 01:51:28 <[ADAM]> THis way I can compare the downloads. May 04 01:52:01 <[ADAM]> Always work with 2 LunarEclipse120. May 04 01:59:23 hi there May 04 02:09:41 how do i forcibly load shared preferences? May 04 02:10:38 is the settings location defined in app manifest or something? May 04 02:18:23 I will give SO points to anyone who can answer!! http://stackoverflow.com/questions/37017325/how-to-access-settings-sharedpreferences-in-android May 04 02:26:17 hi May 04 02:29:05 could I please have 5 mins of an android experts time May 04 02:29:08 what open source android apps do you guys use for reference when it comes to looking for how to do things? May 04 02:30:46 kuroro, the samples app included in the sdk May 04 02:32:33 ir7466: Don't ask to ask. Just ask. Someone will help if they can. May 04 02:35:00 ir7466: Oh you already asked. May 04 02:35:42 i just figured it out May 04 02:35:45 I was missing: PreferenceManager.setDefaultValues(this, R.xml.preferences, false); May 04 02:35:49 The samples in the SDK are not very indicative of best practices since they hardly use any external dependency last time I checked May 04 02:35:50 ir7466: Ok. **** ENDING LOGGING AT Wed May 04 02:59:58 2016