**** BEGIN LOGGING AT Thu Aug 18 02:59:58 2016 Aug 18 03:02:09 almost all are 32bit Aug 18 03:04:33 Affian, CedricBeust, there's no good way to reference an arbitrary view within an anko layout from outside the layout Aug 18 03:07:03 unless you add references manually, that's just ugly, a layout should be a fully typed graph Aug 18 03:07:09 how about something like XPath expression Aug 18 03:07:34 result is a collection of views from wherever in the hierarchy Aug 18 03:07:34 untyped, not. null safe, everything bad Aug 18 03:22:53 What's a likely reason that a broadcast isn't received, assuming that it has the correct intent filters? Aug 18 03:30:47 Affian: no permission to send it in the first plac? Aug 18 03:31:35 I know it works in one situation within the app, but not another Aug 18 03:32:23 Maybe the difference is if the broadcast is coming from a Service or just within the app itself Aug 18 05:49:34 what is a good qualifier for "tablets" ? Aug 18 05:49:42 like anything 7" and up Aug 18 05:50:04 sw600dp Aug 18 05:50:31 is that better / different than `large` ? Aug 18 05:52:05 large, xlarge is deprecated Aug 18 05:52:18 https://developer.android.com/guide/practices/screens_support.html#support Aug 18 05:53:28 Ashiren: sup dude? Aug 18 05:56:01 `xml-large` doesn't seem to be picked up by my nexus 7 emulator? Aug 18 06:00:33 oh nevermind, it was a scaling issue Aug 18 06:01:09 ah Aug 18 06:17:50 anyone know the default keyHeight on a tablet Keyboard? Aug 18 06:23:11 seems like 76dp ? Aug 18 07:49:17 ever heard of funtouch os? Aug 18 07:49:24 its based on android Aug 18 07:49:27 just got it as a gift Aug 18 07:49:46 cant figure out how to turn on developer mode on it Aug 18 07:50:49 nvm figured it out Aug 18 07:51:00 instead of build number it has software version Aug 18 07:51:03 gotta tap that 7 times Aug 18 08:27:56 Is there an automated way to get screenshots for your app? Or do you have to go about it manually? Aug 18 08:30:08 you can take screenshots of your app with code Aug 18 08:30:26 just implemented something like that (plus share stuff) Aug 18 08:36:53 What about screengrab by fastlane? Anyone used it? Aug 18 08:53:19 "Every ViewGroup class implements a nested class that extends ViewGroup.LayoutParams." What nested class they are talking about? https://developer.android.com/guide/topics/ui/declaring-layout.html#layout-params Aug 18 08:54:34 Then they go "This *subclass* contains property types that define the size and position for each child view, as appropriate for the view group. " Confusing wording. Aug 18 09:20:17 markyosullivan: use ddms? there is a screenshot button then saves to your computer so you dont have to bother with adb pull Aug 18 09:22:16 perfinion: ddms/ Aug 18 09:22:17 ? Aug 18 09:23:21 aloha Aug 18 09:24:38 markyosullivan: https://developer.android.com/studio/profile/ddms.html Aug 18 09:24:45 part of all the debugging tools Aug 18 09:36:14 Hi can I update my android sdk from inside intellij? Aug 18 09:38:20 mohsen_: yes, there's SDK manager Aug 18 09:38:32 at least in AS Aug 18 10:04:19 perfinion: Ah so DDMS is just the Andorid Monitor? Aug 18 10:15:05 markyosullivan: i think more like one of hte parts in the monitor but yeah basically Aug 18 10:15:23 i think android monitor is like ddms + systrace + others Aug 18 10:15:47 not sure where the demarcation is tbh Aug 18 10:15:56 So there's no easy way to create screenshots? Aug 18 10:16:32 markyosullivan: yeah, open it, you see your phone in one of hte panes? Aug 18 10:16:37 For example my app uses BLE, I can't connect to our wristband because the emulators don't have BT which means I can't easily get screenshots of the app for different devices unless I disable some of the code Aug 18 10:16:55 markyosullivan: no plug your phone in to your computer Aug 18 10:17:06 Yeah I can get screenshots with my phone Aug 18 10:17:08 markyosullivan: open ddms, on the side you see your phone. there is a screenshot button Aug 18 10:17:28 then you hit refresh and it gets a screenshot of whatever is on your phone's screen Aug 18 10:17:31 then you hit save Aug 18 10:18:58 markyosullivan: https://developer.android.com/studio/debug/am-screenshot.html Aug 18 10:19:01 markyosullivan: Click Screen Capture  in the Android Monitor toolbar. Aug 18 10:19:10 that icon Aug 18 10:30:47 perfinion: yeah I know how to take screenshots but I was just wondering if there was an easy way to get screenshots of all the layouts because of the issue I have with BLE Aug 18 10:45:59 Hi how can I resolve this problem: https://www.dropbox.com/s/m20vw7i22mmvfzg/Screenshot%20from%202016-08-18%2015-11-45.png?dl=0 Aug 18 10:46:13 ? Aug 18 10:46:50 dropbox? :/ Aug 18 10:46:51 did you sync gradle Aug 18 10:47:14 do you have appcompat and design in depencecies Aug 18 10:48:00 yes, its just a blank activity I created Aug 18 10:48:28 I didn't sync gradle but I did rebuild Aug 18 10:48:36 Why doesn't the screenshot tool have more device frames :( Aug 18 10:51:18 Could it be because I'm using an older version of intellij? Aug 18 10:52:08 mohsen_: do you have something like compile 'com.android.support:appcompat-v7' in your gradle? Aug 18 10:52:22 also why not android studio itself :v Aug 18 10:53:02 markyosullivan: if you want to include the frame in screenshot i think you can set it Aug 18 10:53:32 Ashiren: Yes that's included in the gradle file, the whole gradle file: https://ptpb.pw/j1io Aug 18 10:54:35 and of course you import the things that are red :? Aug 18 10:56:46 There is no option for import when I press Alt+enter, intellij generated this code however. Aug 18 10:58:26 The standard emulators are super slow when they have a webview on screen, even with HAXM enabled. Is there anything I can do to improve performance? Aug 18 10:58:28 purplex88: I know you can but there's only a couple of frames, wish there was more Aug 18 11:01:17 mohsen_: dunno what could be the problem Aug 18 11:41:12 markyosullivan: "of all the layouts"? you mean tablet vs phone? or you mean all the activities in your app automatically? Aug 18 11:42:41 What did I say? Aug 18 11:42:56 Oh yeah Aug 18 11:43:16 I meant of all the activites / fragments within my app for different devices automatically Aug 18 11:43:33 I had a look at screengrab by fastlane, looks like it might do what I want Aug 18 11:52:11 Hi, I want to replace libstagefright shared objects with patched ones. I downloaded available source code from the vendor but it does not contain libstagefright. Do you think I can compile it from the android source code (4.4.2), do I need a patch? What if I try to replace with patched files made for another device? Could it work? Thanks for your help Aug 18 11:53:06 I'm talking about the known memory flow vulnerabilities Aug 18 11:56:45 Also, I wanted to download the 4.4.2 source code of android, but it seems to downlaod everything, even if I selected the good branch with repo Aug 18 12:02:13 so, is this a ROM thing Aug 18 12:02:22 #android-root would be more suitable place Aug 18 12:03:51 Hey I am building an app in which kiosk mode is necessary. Any idea about how can I totally disable the status bar? Aug 18 12:10:49 hey Aug 18 12:11:08 antone experienced with toasts? Aug 18 12:11:21 anyone Aug 18 12:13:17 just cakes Aug 18 12:15:12 Cake mycake = new Cake(getTheOvenOpen(View)); Aug 18 12:15:45 I can't cancel it Aug 18 12:17:17 but you can cancel a Toast :? Aug 18 12:19:33 internet says so Aug 18 12:19:48 not my code Aug 18 12:22:42 imagine the user creates a lot of toast messages, but when you exit the app the toasts keep poping up Aug 18 12:23:15 can't cancel that shit Aug 18 12:23:37 i dbout you can cancel other toasts Aug 18 12:23:41 unless you kill the app Aug 18 12:25:34 you kill the app and the toasts keep poping up Aug 18 12:25:40 lol Aug 18 12:25:48 ifiot android Aug 18 12:25:51 adiot Aug 18 12:26:04 :o Aug 18 12:46:49 I love you Lili Aug 18 12:46:57 My application only saves a class I created that holds USSD codes, is it okay to save them as files? Aug 18 12:47:06 Or do I need to use a database ? Aug 18 12:48:02 Well it saves the instances of that class Aug 18 12:48:04 a file is ok as long as you don't access it many times aor make many requests o cjange its content Aug 18 12:48:38 my keyboard iss fckd Aug 18 12:49:05 ok you get the point Aug 18 12:50:28 Hmmm, okay, thank you. Aug 18 13:06:34 if you access the files manu times in a row like in a database you'll aventually get access denied because the file is still in use by the previous process, then the data is not saved to the file, and you get errors amd lost data and crashes Aug 18 13:06:38 amd shit Aug 18 13:06:50 I'm the best :) Aug 18 13:15:29 Hi. I've hooked up to GCM, and want to "maximize" my app when I tap a notification. I don't know which activity it will be, only that it must be the activity closest to the "top". If my app is not running, I must start a new instance of it. Anybody know how I can achieve this? :) Aug 18 13:16:00 Stackoverflow and google provides a myriad of answers, but they all seem to want to specify the activity... Aug 18 13:16:57 SergioC: No, the time passed between every request is long enough‌ I guess, 2 second is enough? Aug 18 13:17:42 It tries to read 2 string from each file Aug 18 13:18:55 mohsen_ I guess yes, but try it Aug 18 13:19:21 On it Aug 18 13:32:26 I can't see any way in the android studio layout editor to show a list of sytle attibutes, e.g. if I select minHeight and click the ... I can search dimension, but nothing about style attributes Aug 18 13:33:13 Can't wait until Genymotion cloud is working Aug 18 13:33:29 didn't think about it until there now but having it would make working from home a lot easier Aug 18 13:41:56 I need to check for Location updates in a thread off of the main thread. Loction updates should be started and stopped by the end-user, as many times as he/she wants. I am thinking of handling all location specific code (listening for location updates, etc.) with an AsyncTask (so it does so off of the main UI-thread) in a Service. However, How exactly do i stop the AsyncTask manually (i.e., the user presses a button so it should stop Aug 18 13:41:56 the AsyncTask)? DO i have to call asyncTaskInstance.cancel()? Because an AsyncTask instance can be run only once, and i need the user to run as many location updates as he wants (nt at the same time of course, but one after another). How do i do this? Aug 18 13:43:17 Cmaj6: why don't you create a List ? Aug 18 13:43:34 if he cancel, you cancel all (or some, depending of your UI/UX) Aug 18 13:43:49 and if you need more than one, je add a new task to execute to the list Aug 18 13:46:14 blusky: no that is not what i meant, and not a solution to my case i believe. What i meant was....User enters application and manually start location updates. Location updates are then 'ON', i.e., device listening for location changes. User then decides location updates should be stopped. After 5 minutes, user again decides to start location updates, and after some more time, stops the second 'iteration' of location updates, etc. etc. Aug 18 13:46:14 I don't think a List is a solution for this, after all, the amount of elements of the list (i.e., how many times user starts/stops a location update) is not known Aug 18 13:47:18 blusky: if the amound of iterations was known (i.e, each user starts/stop location updates 10 times), then indeed, a simple array of Asynctasks would suffice Aug 18 13:47:19 oh Aug 18 13:47:28 if update location is on, the task should loop ? Aug 18 13:47:39 and if it's on "off", the task should be canceled ? Aug 18 13:47:50 blusky: no, the task should run indefinately, until the user presses the 'stop' button Aug 18 13:47:58 then, just put a trigger and you activity to relaunch the task once finished ? Aug 18 13:48:33 AsyncTask is not designed to run indefinately I think Aug 18 13:48:56 implemant a simple AsyncTask that is indefinitely re runned Aug 18 13:49:28 and cancel it when user toggle to off (and as it's not finished, it will not be re-runned) Aug 18 13:49:30 blusky: i was kind of thinking that (but didn't know how else). I was having problems with how to handle manually cancellation and restarts of AsyncTask and got to this problem we're discussing now. What can you recommend then? Aug 18 13:49:51 blusky: i don't understand Aug 18 13:49:53 re run the task only if it was not canceled Aug 18 13:50:16 so if it's canceled (by toggling "off" button), the task will be canceled and won't run again Aug 18 13:50:50 Yes, but the user can again start 'location updates'. How to handle the next iteration then? Aug 18 13:51:23 well, when he toggles "start" Aug 18 13:51:26 it launch a new task Aug 18 13:51:39 but the same mechanism whould be perform once finished Aug 18 13:51:51 that will rerun a new task Aug 18 13:51:57 until the user toggles cancel Aug 18 13:52:09 you should only have one instance of the task at a time Aug 18 13:52:23 to sumarize: Aug 18 13:52:25 blusky: so basically, create a new instance of an AsyncTask each time the user starts a Location update? Aug 18 13:53:53 Create an AsyncTask that just handle one GPS update, from your Activty, set the toggle button to Off, run the AsyncTask, when the AsyncTask is finished (success, not cancel), call on the UI thread a trigger on your Activity. That trigger should handle new GPS Loc. et re create the same task. Aug 18 13:54:08 (i meant set the toggle button to On) Aug 18 13:54:21 when the user toggle the button to off, cancel the Task Aug 18 13:54:35 when the user toggle the button to on, run the task Aug 18 13:54:38 and done. Aug 18 13:55:08 I think your whole scenario is handled Aug 18 13:57:55 blusky: however, i don't actually want the AsyncTask to return from doInBackGround and passing the return value to onPostExecute, because Location code should *keep* listening for location updates, even if that means the new location is the same as the previous location (i.e, the user hasn't changed locations physically), because, i need to track the location and time whenever 'listen for location updates' is on Aug 18 13:59:33 blusky: i.e., the thread off the main thread should run indefinately (i.e, listening for location updates should run indefinately), until the user specifies otherwise or the system shuts down the Service There should be no require so that the Service or thread shuts down gracefully, other than manually stopping it (by the user) Aug 18 13:59:59 hmm Aug 18 14:00:22 anyone know of a library that will nicely switch wifi network, test connectivity.. Aug 18 14:00:27 and do all of this synchronously? :p Aug 18 14:00:32 also, is a AsyncTask even suited for such needs? If there is any other technique to use or classes, then feel free to suggest it Aug 18 14:09:44 By the way, are the developers of the Android platform obese? Is that the reason for naming all Android versions after sweets? Aug 18 14:09:59 um.. Aug 18 14:10:04 * arancio googles their pictures Aug 18 14:10:21 still making friends... Aug 18 14:11:39 Isn't it possible to get a reference to the activity that the button is clicked in using the DialogInterface? Aug 18 14:12:10 Only Nick Sears is. But only slightly. A few months of ipocaloric diet will make him as slim as his collegues. Aug 18 14:14:49 Anyone had this issue with their testing device "An existing connection was forcibly closed by the remote host" when trying to run? Aug 18 14:14:59 I imagined the developers of the Android platform programming with one hand and eating sweets at the same time using the other hand Aug 18 14:15:44 Bernzel, no, it never happened to me but I don't have much experience. Aug 18 14:17:23 okey.. that autoplay window keeps poping up each time I run from Intellij too, so it's like windows is remounting the device everytime Aug 18 14:17:37 hi all Aug 18 14:19:03 i've been getting reports from LG Marshmallow users that they are unable to enable a required permission for my application. i figured out it's because i declare it in the manifest with uses-permission-sdk-23. i sent them a test build declaring the permission with uses-permission instead and it worked. has anyone heard of this before? Aug 18 14:20:44 Any idea if there is any workaround to run Realm with Java 1.8, or will it be possible in more than a year ? Aug 18 14:20:51 the problem is i don't need this permission on pre-6.0. is there any alternative way to declare the permission so pre-6.0 users don't see it in the list on install Aug 18 14:22:23 I don't think so... Aug 18 14:22:40 which permission Aug 18 14:22:53 https://developer.android.com/guide/topics/manifest/uses-permission-element.html Aug 18 14:22:58 there is a maxSdkVersion field Aug 18 14:23:09 tx, yeah, but no minsdk Aug 18 14:23:25 Zharf, write_settings. it's a "special" permission, which brings up a full screen settings intent rather than the new smaller popup Aug 18 14:23:37 what about ? Aug 18 14:23:40 Zharf, these users are reporting that the screen comes up, but the toggle button does nothing Aug 18 14:23:46 Limits to SDK 23 and up :) Aug 18 14:23:50 https://developer.android.com/guide/topics/manifest/uses-permission-sdk-23-element.html Aug 18 14:24:06 sounds like just what you want, actually Aug 18 14:24:11 tx, that's what i'm using now. it works on all devices, but users with LG phones are saying the toggle button on the settings screen doesn't work Aug 18 14:24:19 hm Aug 18 14:24:30 a manufacturer-specific issue Aug 18 14:24:32 bugger. Aug 18 14:24:34 yeah Aug 18 14:25:22 i'd rather not request this sensitive permission for all users just to cater to specifically 6.0 LG users. and i only need it in the first place because of a bug in 6.0 generally Aug 18 14:25:41 I *think* that permissions that aren't supported on a device aren't shown to the user anyway Aug 18 14:26:12 hmm Aug 18 14:26:19 but not 100% sure about that... haven't had to deal with that in ages Aug 18 14:27:01 Zharf, this is the Android bug :( https://code.google.com/p/android/issues/detail?id=191246 Aug 18 14:28:27 WRITE_SETTINGS is Api level 1, so i expect all users would see it in the list, but i wouldn't request it at runtime on > 6.0 (https://developer.android.com/reference/android/Manifest.permission.html#WRITE_SETTINGS) Aug 18 14:29:02 Google's on docs make the permission sound scary https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous Aug 18 14:29:12 "SYSTEM_ALERT_WINDOW and WRITE_SETTINGS are particularly sensitive, so most apps should not use them" Aug 18 14:31:24 I'm confused... are you using the permission on 23 and above or also on earlier ones? Aug 18 14:33:07 Zharf, i only need it on specifically 6.0 because of the Android-wide bug with change_network_state. so i declare it in the manifest with uses-permission-sdk-23. but this doesn't work for LG users, though plain old uses-permission does work for them. Aug 18 14:33:33 Zharf, so i'm looking down the barrel of releasing the software requesting write_settings for all users (though not requesting it at runtime on > 6.0) Aug 18 14:35:26 unless there's another way to declare the permission on sdk-23 that happens to not be broken on LG devices Aug 18 14:35:31 I guess the runtime requesting doesn't work then? I fear you'll be stuck with asking it from everyone unless you do multiapk releases with a specific version for api 23 Aug 18 14:35:46 yeah... Aug 18 14:36:08 the runtime request works fine for > sdk-23, but it'll be in the permission list for all pre-6.0 users Aug 18 14:36:34 maybe not a deal-breaker but google is pretty clear that this is a scary permission to request Aug 18 14:37:15 It might sound a bit dodgy to users yeah, but then most people never check the permissions anyway Aug 18 14:37:33 the permissions scare thing is over Aug 18 14:37:40 remember a few years ago? Aug 18 14:37:44 thanks, Snapchat Aug 18 14:37:45 ! Aug 18 14:37:48 "Did you know facebook can check your PHONE STATE' Aug 18 14:37:52 "FACEBOOK IS SPYING ON YOU" Aug 18 14:38:48 I generally refuse to use apps that want to read my contacts Aug 18 14:39:00 other permissions are widely ok with me Aug 18 14:39:28 now that network is invisible it's just a CF anyhow Aug 18 14:39:38 CF? Aug 18 14:41:56 don't leave us hanging dragorn Aug 18 14:42:00 haha Aug 18 14:42:35 i don't know the totality of what write_settings grants, but i think it might provide low level access to contacts and other stuff Aug 18 14:43:00 it's definitely overkill, but i need it for my app to work on 6.0 Aug 18 14:43:07 cluster-f Aug 18 14:43:11 lol Aug 18 14:43:22 b/c now it never shows that it gets X -and- can leak it Aug 18 14:43:33 granted, most apps that ever asked for contacts also had networking Aug 18 14:43:41 I'm just still cranky it decided to hide networking Aug 18 14:44:12 I never cared about the internet permission Aug 18 14:44:34 What do you guys use to generate images of an app that doesnt exist yet? I.e. create some kind of a wireframe to put on a website. Aug 18 14:45:08 most apps that had it and didn't seem to actually need it used it for ads which made me uninstall and possibly rewrite the app for myself anyway Aug 18 15:13:54 is that different from the version proposed by the AS SDK manager? Aug 18 15:14:37 i remember having some weird problem when once installed the AS version Aug 18 15:15:43 ew Aug 18 15:16:05 when will the new version come out? Aug 18 15:16:08 2.2 Aug 18 15:22:59 is it worth it porting ListViews and GridViews in my app to RecyclerViews? Aug 18 15:33:58 try it Aug 18 15:46:17 Does writing to a file in internal storage require a permission to be set in the manifest file? Aug 18 15:46:57 mohsen_, not to write to your app's data directory Aug 18 15:47:44 If I clear all data and uninstall my app, will the sharedpreference file be deleted too? Aug 18 15:47:56 yes Aug 18 15:48:04 shit Aug 18 15:48:13 *unless* you have google backup enabled by using a modern SDK Aug 18 15:48:15 and not blocking it Aug 18 15:48:23 then google may back up the shared prefs before uninstall Aug 18 15:48:28 but I think clear data will still nuke them Aug 18 15:48:51 thebishop: I use relative path, I just put the file name as the path. Aug 18 16:00:04 mohsen_, you should request getApplicationContext().getFilesDir().getAbsolutePath(); to get the data dir Aug 18 16:02:05 Ah, thank you. Aug 18 16:20:21 this seems like a weird question... Can I send data to an activity without calling a new activity ? I want the data to sort of auto save on exit. ( yet the data is just an obj that I am passing around the application) Aug 18 16:20:29 no Aug 18 16:20:44 only one activity is active at a time Aug 18 16:20:55 Is anybody using Firebase Auth? I'm trying to use and it's getting on my nerves! For example, the `onAuthStateChanged()` callback is called twice (one when auth is initialized and one when the user is logged in). But I cannot distinguish between them. Aug 18 16:31:40 anyone using the new text input layout password stuff? Aug 18 16:36:27 hey friends, i have a question. lets say i am adding a search icon to my app. Do i have to add the image itself to android as well or are there some stock images that i can use instead so i dont have to ship default icons like search and that stuff myself? Aug 18 16:36:56 " An existing connection was forcibly closed by the remote host" pops up when running to my device along with the device remounting itself , the AutoPlay window shows up each time in Windows, it's a galaxy s4, anyone know a common cause of this? Aug 18 16:38:22 leo-unglaub you grab the search icon from the google material icon collecyion Aug 18 16:38:50 g00s: okay, but i have to ship them myself? i cannot reverence the icon that is already on the device? Aug 18 16:39:09 What should I put as the default dependencies in my gradle file? Aug 18 16:39:23 leo-unglaub you don't know what icon is on the device, technically Aug 18 16:39:33 how come we are allowed to call getActivity() inside onCreate? Aug 18 16:39:36 and it might be a private resource, so thats why they give you the collection Aug 18 16:39:47 inside fragment's onCreate Aug 18 16:39:55 purplex88 why not ? Aug 18 16:39:57 lol Aug 18 16:40:11 g00s: i see .. so i just ship it myself Aug 18 16:40:13 thanks :) Aug 18 16:40:15 yes Aug 18 16:40:31 g00s: because activity is not created until onActivityCreated Aug 18 16:40:33 i thought if google updates the icon and i use the device icon i dont have to updte it myself Aug 18 16:40:50 purplex88 its hasn't finished its onCreate, but its "there" :) Aug 18 16:40:55 the book i'm reading calling it that way, actually its a ListFragment Aug 18 16:40:56 * g00s plays spooky music Aug 18 16:41:25 it sets title of activity Aug 18 16:41:44 * g00s plays spooky music Aug 18 16:41:49 which one of my songs are you playing? Aug 18 16:41:57 that operation might be permissibe ... but you couldn't find a view by id Aug 18 16:42:00 because i was told i must all that work in OnCreateView but now i got me by surprise Aug 18 16:42:18 leo-unglaub: so fundamentally (because of device variants) you'll probably find it simplest to manage your own icons for a predictable UI. In principle, there's a small set of predefined drawables at https://developer.android.com/reference/android/R.drawable.html but in practice I've found it to be mostly useless Aug 18 16:42:25 i wouldn't do anything to activity until onActivityCreated personally though Aug 18 16:42:29 who wrote the book ? Aug 18 16:42:39 big nerd ranch guys Aug 18 16:42:54 hm Aug 18 16:43:10 well setTitle might be ok Aug 18 16:43:40 lolcycle strikes again ! Aug 18 16:43:52 ok maybe you cannot access view hierarchy in it Aug 18 16:44:06 but acessing activity may be fine Aug 18 16:44:25 might be, but you might wish to wait for onAttachToActivity Aug 18 16:44:27 as a matter of style, i'd avoid touching the activity - unless you're calling your own methods which are simple getters or setters or something Aug 18 16:44:29 i was wondering if getActivity should return null in it Aug 18 16:44:41 it can return null at any time Aug 18 16:45:15 right i think i don't agree with their code Aug 18 16:46:18 Activity is part of view hierarchy too Aug 18 16:46:31 yes and no Aug 18 16:46:44 from the fragment’s point of view, it is it’s own, self contained hierarchy Aug 18 16:47:42 it may not be inflated if Activity's onCreate is still in process Aug 18 16:48:02 the Fragment’s view hierarchy is created in onCreateView Aug 18 16:48:23 documentation warns about that Aug 18 16:49:17 in onCreateView is where you inflate the fragment’s view hierarchy. you can’t assume anything about the activity’s until onAttachedToActivity, but you shouldn’t be assuming anything about the activity anyway Aug 18 16:49:39 also its a "ListFragment" and not a normal one Aug 18 16:49:51 all a ListFragment is, is just a fragment with a ListView Aug 18 16:49:53 that’s it Aug 18 16:50:10 and a couple methods meant to make life easier Aug 18 16:50:42 yes i saw just recently Aug 18 16:51:59 could do it in onCreate like the book does if you had suppose a second fragment? Aug 18 16:52:04 you* Aug 18 16:52:42 the activity’s onCreate, or the fragment’s onCreate? Aug 18 16:53:50 like on first fragment the activity may be starting up so you don't want to do it onCreate, but then you create a second fragment where you wish to use its OnCreate Aug 18 16:54:08 i wouldn't Aug 18 16:54:22 at that point activity should already be up Aug 18 16:54:34 because you can always put that fragment into another activity, where it might be in the situation the first fragment was Aug 18 16:54:46 why do you need the activity? Aug 18 16:54:50 ah Aug 18 16:56:44 ok, so apparently, I cannot use Realm or DBFlow as an ORM, cause I use Java 1.8 Aug 18 16:56:46 https://www.technologyreview.com/s/602095/the-next-must-have-smartphone-feature Aug 18 16:56:50 any advice anyone ? Aug 18 16:56:52 if you need data, you’re better off sending it through the bundle. if you need to tell the activity something, try doing so in onAttachedToActivity. If you’re trying to manipulate the activity’s views, don't Aug 18 17:02:29 this could be what they are doing for a second fragment and using getActivity in OnCreate that way, i'll find it out as i finish this chapter Aug 18 17:03:19 there's a CrimeFragment and CrimeListFragment Aug 18 17:04:51 took me a whole day to figure out their stuff, looking at details Aug 18 17:08:28 support lib 24.2 fit for human consumption ? Aug 18 17:11:21 I need my service to run in the foreground. Where in the Service class is it best to call startForeground, in onCreate() or in onStartCommand()? Also, i assume onDestroy() is the best time to call onStopForeground()? (the end user manually stops the Service) Aug 18 17:11:51 is the best time -> I mean: 'is the best place where ' Aug 18 17:19:26 what is an android emulator for linux that uses low resources? Aug 18 17:39:55 Why do I get this error: java.lang.RuntimeException: Unable to start activity ComponentInfo{personal.mohsen.ussdmanager/personal.mohsen.ussdmanager.MainActivity}: android.content.res.Resources$NotFoundException: File res/drawable/abc_vector_test.xml from drawable resource ID #0x7f02004f Aug 18 17:40:33 I googled it tried some solution none work, I‌ don't know which support library should I‌ add in the dependencies section. Aug 18 17:47:27 do you actually have a abc_vector_test.xml? Aug 18 17:47:33 or any resources from R? Aug 18 17:48:09 it's saying it can't find that file Aug 18 17:49:43 No I don't see that file in the project structure Aug 18 17:50:11 add it Aug 18 17:50:15 now Aug 18 17:50:25 or i'll kill you Aug 18 17:50:29 loloollol Aug 18 17:50:44 is this an example you copied? Aug 18 17:50:45 https://gist.github.com/pfn/e82a9c11d0bd5761837037eabe6a2685 Aug 18 17:50:48 my dsl is looking pretty good Aug 18 17:50:50 if so you need the rest of the files from it Aug 18 17:50:55 that results in http://i.imgur.com/4xcJZDi.png Aug 18 17:53:25 myke: No I wrote the project myself: here is the full log I get in the logcat: https://ptpb.pw/zVBx Aug 18 17:54:47 so you are referencing abc_vector_test.xml but you never created the file? Aug 18 17:55:11 I didn't reference it anywhere, newbie here buddy‌ Aug 18 17:55:38 from the error you pasted, your MainActivity is trying to open that file Aug 18 17:56:11 ah, check the layout for your MainActivity Aug 18 17:56:15 it isn't necessarily in the code itself Aug 18 17:57:02 sounds like you didn't include appcompat-v7 correctly Aug 18 17:57:07 your logcat says it’s in your layout Aug 18 17:57:11 line 17 Aug 18 17:57:32 org.xmlpull.v1.XmlPullParserException: Binary XML file line #17 tag requires viewportWidth > 0 Aug 18 17:57:33 heh Aug 18 17:58:04 s73v3r: line 17 is: Aug 18 17:58:11 post your layout Aug 18 17:58:11 your vector file is corrupted Aug 18 17:59:00 pfn: I don't know what exactly should I put in the dependencies section for appcompat library Aug 18 17:59:02 it's not failing in layout inflation Aug 18 17:59:12 it's failing to inflate the vector drawable because it's corrupt Aug 18 17:59:54 My MainActivity.xml : https://ptpb.pw/JknV Aug 18 18:00:10 and abc_vector_test isn't a thing in appcompat... Aug 18 18:00:31 at least in any up to 24.0.0 Aug 18 18:01:12 pfn: So what should I do Aug 18 18:01:33 describe what exactly it is you've done Aug 18 18:04:16 how do you paste to ptpb? Aug 18 18:05:11 SergioC: It has a web client: http://ptpb.pw/f Aug 18 18:07:00 pfn: Could it be because I'm using an old version of android studio? its 1.3.2 Aug 18 18:07:13 holy shit why are you using such an old version? Aug 18 18:07:28 yah Aug 18 18:07:33 update now Aug 18 18:08:05 Is it causing the problem? Aug 18 18:08:10 pastebin is goof enough Aug 18 18:08:11 mohsen_, it's related, yes Aug 18 18:08:11 it might be Aug 18 18:08:17 good Aug 18 18:08:23 vectordrawablecompat requires at least like 1.5 Aug 18 18:08:25 maybe higher Aug 18 18:08:47 has anyone here has have a google developer account banned? Aug 18 18:08:48 I'm wating for version 2.2... Aug 18 18:09:05 MinusFour no what have you done? Aug 18 18:09:23 no i haven't done anything but one of our developers has been banned Aug 18 18:09:35 pfn: But how could I develop apps with it a couple of months ago, however I had sdk 19 at that time. Aug 18 18:09:41 keep them away from your company’s account Aug 18 18:09:47 MinusFour for no reasen?... Aug 18 18:09:52 reason Aug 18 18:09:57 mohsen_: please don’t argue against updating Aug 18 18:10:21 s73v3r: Yes I have to update, but out of curiosity Aug 18 18:10:21 they only said because he violated many developer policies Aug 18 18:10:30 but they didn't actually say what he did Aug 18 18:10:39 google’s not going to tell you what he did Aug 18 18:10:49 you’d have to ask them Aug 18 18:10:57 hmm, when you use adb and enable adb tcpip 5555, can i connect from any computer after that? Aug 18 18:11:00 as if you had root? Aug 18 18:11:15 and like I said, don’t let them near your company’s account. don’t let them log into the company account from their computer Aug 18 18:11:32 Has anyone here dealt with hybrid GCM messages? Aug 18 18:11:34 MinusFour yeah they have many policies that should be taken untoo account and be read carefuly Aug 18 18:11:44 so if he's working with us, we risk being banned aswell? Aug 18 18:12:16 yeah. they might see that account logged in from his computer, and they might infer that he set up another account, and ban that one Aug 18 18:12:21 maybe getanother account and don't screwup this time Aug 18 18:12:34 well, we haven't even started our own account Aug 18 18:12:36 you’re explicitly not supposed to get another account Aug 18 18:12:47 wtf... Aug 18 18:12:55 yeah, they say bans are across multiple accounts Aug 18 18:12:59 they banned you. they don’t want you Aug 18 18:13:21 that's such a crap policy though Aug 18 18:13:22 how can someone get banned from the dev account out of couriosity? Aug 18 18:13:27 so, he's really screwed for life Aug 18 18:13:31 if he wants to develop in android Aug 18 18:13:34 MinusFour: he can still work with you just fine. Just don’t let them touch the company account Aug 18 18:13:42 SergioC: Don’t violate the rules Aug 18 18:13:56 which are Aug 18 18:14:06 so as long as he doesn't have access to the account Aug 18 18:14:08 the ones you agreed to when you opened your dev account Aug 18 18:14:10 it's fine? Aug 18 18:14:13 MinusFour: Yeah. Aug 18 18:14:41 examples... Aug 18 18:14:48 go read them yourself Aug 18 18:14:56 I didn't agrre with none yet Aug 18 18:15:02 lol Aug 18 18:15:15 this are the rules: https://play.google.com/about/developer-content-policy/ Aug 18 18:15:19 these* Aug 18 18:16:09 yep Aug 18 18:16:18 For a static fragment, why is the "container" shows null this method: onCreateView(LayoutInflater l, ViewGroup container, Bundle savedInstanceState)? I have the static fragment in XML in a Relative layout. Is this normal? Aug 18 18:17:16 This is kind of a noob question, but in the docs for GCM it says "On Android, data payload can be retrieved in the Intent used to launch your activity." What does this mean exactly? I'm new to android Aug 18 18:17:26 maybe someone accused him of intelectual property theft Aug 18 18:17:54 or something Aug 18 18:18:22 after seeng a lot of “I was banned for no reason!” stories on /r/androiddev, most of them end up being that the person knew what they did, knew it was against the rules, and did it anyway Aug 18 18:19:24 then they knew the reason.. Aug 18 18:19:41 right, but they try to say there was “no reason” to build up sympathy Aug 18 18:19:58 or something like, “Other people did it! Aug 18 18:20:10 well he kind of knows what he did Aug 18 18:20:16 but seemed a little bit excessive Aug 18 18:20:21 whats the most common reason for baning? Aug 18 18:20:34 he made reviews with like 5 different accounts Aug 18 18:20:42 lol Aug 18 18:20:44 yeah, that’ll do it Aug 18 18:20:47 great Aug 18 18:20:54 i don’t think that’s excessive at all Aug 18 18:20:54 actually, he didn't even do it Aug 18 18:21:03 somebody else did it Aug 18 18:21:09 like 5 reviews would make your app famous Aug 18 18:21:10 but he was working with him Aug 18 18:21:23 and the account was under his name Aug 18 18:21:42 that makes you responsible for it Aug 18 18:22:08 how so? guilty by association? Aug 18 18:22:28 you’re the one responsible for the account. Aug 18 18:22:41 right, but you have no control over the reviews or do you? Aug 18 18:22:45 if it was done with his account, then he should know better than to give it to sketchy people Aug 18 18:22:56 you do if they’re spamming reviews like that Aug 18 18:23:53 so, if somebody else spams with reviews of apps i published on the play store Aug 18 18:24:01 do i get punished? Aug 18 18:24:16 if they trace it back to your accounts, yes Aug 18 18:24:17 seems like a very easy way to ran out the competition :/ Aug 18 18:24:35 no, now you’re getting into conspiracy theory bullshit Aug 18 18:25:09 except it isn't a conspiracy Aug 18 18:25:13 yes, it is Aug 18 18:25:25 you said yourself that the spammer was working with the guy Aug 18 18:25:42 right, i'm just talking hypotheticals Aug 18 18:25:48 not quite the case he had Aug 18 18:25:53 just a similar one Aug 18 18:25:55 crazy, conspiratorial hypotheticals Aug 18 18:26:28 well not that crazy to me Aug 18 18:26:38 it is to rational people Aug 18 18:27:54 are they friends? Aug 18 18:28:32 too sketchy far-fetched Aug 18 18:28:40 wathever Aug 18 18:32:25 wow don't believe i reached the 64K methods limit Aug 18 18:33:08 whats that? Aug 18 18:33:20 the Dex limit Aug 18 18:35:17 you have more thatn 64000 methods in your app?? Aug 18 18:35:41 adding in libraries and such doesn’t make it that hard Aug 18 18:35:49 Google Play services is a third of that or so Aug 18 18:35:53 I see Aug 18 18:36:19 Guava is about a third of that too Aug 18 18:37:30 needs some optimizing... Aug 18 18:38:05 they’ve already split GP services into smaller chunks, and you can use proguard to remove unused methods Aug 18 18:38:21 but it’s not just simply, “they need to optimize" Aug 18 18:40:54 bitkiller mind posting your dependencies ? Aug 18 18:41:03 when this limit is reached i get curious ;0 Aug 18 18:41:39 don't know how to help eoth that. didn't get there yet Aug 18 18:42:31 minimizing dependencies, and turning on dexguard, for starters. After that, it’s dealing with multidex Aug 18 18:42:54 cool Aug 18 18:43:32 ok... I really need help... is there any ORM working with Jack / Java1.8 ? Aug 18 18:45:23 g00s, http://pastie.org/10937511 Aug 18 18:45:52 i'm refactoring an app to include all those buzzwords Aug 18 18:46:31 i.e. rx, dagger2, material design Aug 18 18:46:43 your pastie didn’t work Aug 18 18:47:02 pastie is not very healthy these days Aug 18 18:47:19 you should try again Aug 18 18:48:39 SergioC, Hi. How is life in Portugal? Aug 18 18:49:29 a debug build with proguard enabled has been running since 12 mins ago Aug 18 18:51:08 String[] buzzwords = new String[]{"rx","dagger2","material design"}; Aug 18 18:51:13 lol Aug 18 18:51:13 Refactoring done Aug 18 18:51:42 pastie still isn’t working, bitkiller Aug 18 18:51:51 probably made in java Aug 18 18:55:32 s73v3r, http://dpaste.com/1DTBXPR Aug 18 18:55:44 still doesn’t work Aug 18 18:55:54 j/k :p Aug 18 18:56:10 ? Aug 18 18:56:15 nevermind Aug 18 18:56:26 it worked? Aug 18 18:56:29 yeah Aug 18 18:56:35 oh good Aug 18 18:57:05 yeah, you’re using some pretty big libs, there Aug 18 18:58:17 I'm making an app on Android Studio. I want a page where it allows the user to search for nearby devices. Is there any sample code or tutorials on this online you guys know of that shows how to implement this? Aug 18 18:59:22 how are you searching for the devices? Aug 18 18:59:47 bluetooth? Aug 18 19:00:03 yes Aug 18 19:00:08 bluetooth Aug 18 19:00:58 using the HC-05 Bluetooth chip Aug 18 19:03:14 any suggestions? Aug 18 19:03:43 leTones, http://code.tutsplus.com/tutorials/create-a-bluetooth-scanner-with-androids-bluetooth-api--cms-24084 Aug 18 19:06:42 thanks. Aug 18 19:08:04 leTones, you're welcome. I googled "android search for nearby devices bluetooth" Aug 18 19:08:34 okay, i'll look into other searches similar to this one as well. Aug 18 19:10:09 i want to create a screen where a progress bar is shown, then after a load, the actual content is displayed. currently i have a framelayout where a progressbar is set to visible/gone. would it be more reasonable to do something like, derive framelayout and add the progressbar functionality into that? Aug 18 19:11:23 the reason i want to do this is that i have a listview as the content, and i can't get it to communicate with my coordinatorlayout for things like scrollingviewbehavior, etc Aug 18 19:11:43 would a new viewgroup like i described solve my problem? Aug 18 19:16:33 bitkiller wow, thats not a lot - but i have no idea the footprint of bolts Aug 18 19:16:55 well you have play-services-base ... why ? Aug 18 19:17:38 mattro why don't you structure your layout like this: ? Aug 18 19:17:49 g00s, IAB Aug 18 19:18:18 bitkiller thought there would be a smaller / more targeted package Aug 18 19:22:28 mattro, are you still alive? Aug 18 19:23:45 g00s, it seems it's the 'base' i have to use https://developers.google.com/android/guides/setup Aug 18 19:24:09 no other option to bet Aug 18 19:26:36 bitkiller i don't get it - there example code doesn't include that https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive/app/build.gradle Aug 18 19:26:50 Hey guys - I want to add our companies image to a photo I take with my app - does anyone what APIs I should be looking at? Aug 18 19:26:56 glad i dont use IAPs looks like a pita Aug 18 19:27:30 Does "BTAdapter" for bluetooth on android studio have a specific library I have to import before implementing? Aug 18 19:28:07 arancio: sorry about that. the reason is that my coordinator layout has the toolbar in it, and I want that to still be on the screen even while loading Aug 18 19:29:14 this has a lot: http://www.methodscount.com/?lib=com.madgag.spongycastle%3Acore%3A1.54.0.0 Aug 18 19:29:32 mattro, don't worry I was joking. Regarding the layout, what's the problem if the coordinator layout hosts the progressbar too? What happens? Aug 18 19:31:01 arancio: so overall would it be ? Aug 18 19:31:26 is there a point to that second coordinator? Aug 18 19:32:56 No, I don't think so. Aug 18 19:33:54 now i haven't tested this yet, but would the framelayout cause problems with something like scrollingbehaviour Aug 18 19:34:37 because my goal is to get that listview to collapse the toolbar Aug 18 19:34:44 when scrollecd Aug 18 19:34:47 scrolled* Aug 18 19:37:05 and this: http://www.methodscount.com/?lib=com.android.support%3Adesign%3A24.1.1 Aug 18 19:47:54 using proguard, the method count goes to 28k Aug 18 19:49:53 My 9patch works fine in draw9patch but not in android AAPT says "Can't have more than one marked region along edge" Aug 18 19:50:13 I know what the problem is but if draw9patch can run it, android should too Aug 18 19:53:19 anyone know a good api to add images on top of other images? Aug 18 20:00:21 g00s, i havne't seen the link you posted Aug 18 20:00:31 g00s, you're probably right Aug 18 20:01:37 that dependency may have been forgotten Aug 18 20:05:27 Is there a certain library i have to import to use "BTAdaptor" on android studio? Aug 18 20:23:57 I have an issue which i can't solve: my app starts a Started Service. In the Service's onStartCommand, i call startForeground() and pass notification to i. The notification displays and works fine..However, when I navigate back to the Activity via the notification, all UI elements are reset and a textview element's setText() doesn't seem to work anymore. Everything works fine as long as i do nt leave the activity in the first place. Aug 18 20:23:57 Where is the error and how to solve it? Aug 18 20:24:41 Cmaj6, your activity gets destroyed and recreated. Aug 18 20:24:45 Do i have to store EACH elements state in a SharedPreference object? Isn't there a simpler way? Aug 18 20:24:47 It's not bound to your service in any way. Aug 18 20:24:48 Mavrik: indeed Aug 18 20:25:03 Mavrik: so....i guess i have to start a bound service then? Aug 18 20:25:09 No. Aug 18 20:25:13 There's no such thing. Aug 18 20:25:22 Activities must be built in a way that they can be recreated. Aug 18 20:25:36 You can't expect the OS to hold activities for background apps alive and running. Aug 18 20:25:44 Mavrik: so, i have to store all the elements that need to retain state in a SharedPreference? Aug 18 20:25:49 You can pass yourself data that you need to restore state in the notifications intent Aug 18 20:25:56 Or store it somewhere else. Aug 18 20:26:04 But that's usually not a problem. Aug 18 20:26:16 You can also query the service for data when activity gets created Aug 18 20:26:40 Mavrik: is saving state of the UI elements sufficient, or are there any other things mandatory to restore as well when recreating activities? Aug 18 20:27:17 Depends. Aug 18 20:27:24 It's hard to say in general. Aug 18 20:27:51 You already have to handle activities being recreated for orientation changes and other configuration changes. How do you handle that? What kind of data are we talking about? Aug 18 20:28:03 Mavrik: what i don't understand, is why the textview's setText() button doesn't get called then. Because i have set that method in a Handler's onHandleMessage(), which receives a Message from the Service and it works fine. Yet, the setText() defined in onHandle in the Activity doesn't work Aug 18 20:28:27 Mavrik: i haven't actually handled configuration changes lol Aug 18 20:28:37 Mavrik: i know how to handle them though Aug 18 20:28:54 Mavrik: but right now, i'm concerned with the setText() Aug 18 20:29:57 Not sure how you manage to use Handlers to send messages. Aug 18 20:30:03 But sounds like a great way to memory leaks :P Aug 18 20:30:37 I use Messengers and Handlers for Activity-Service communication Aug 18 20:31:16 Cmaj6 if its in the same process - you only need that if you're hopping threads or something Aug 18 20:32:01 Assuming you don't accidentally leak references and change them properly :) Aug 18 20:32:05 g00s: i am actually doing some work off of the main thread in the service Aug 18 20:32:45 and work in that seperate thread needs to notify the activity regularly, hence, i use messengers for that and handle them with Handlers Aug 18 20:43:54 Napalm: you around? Aug 18 20:44:48 guess he's in nam Aug 18 20:44:54 sorry for the low level joke Aug 18 20:45:01 i know it wasn't funny at all Aug 18 20:45:25 any Uncle Bob fans in here? Aug 18 20:46:29 Napalm sent me a link to one of his videos, which was awesome. I was wondering if his book was worth purchasing... Aug 18 20:46:45 parco which book ? Aug 18 20:46:56 g00s: Clean Code: A Handbook of Agile Software Craftsmanship Aug 18 20:47:06 oh thats pretty famous Aug 18 20:47:40 do you think it will help with android dev... Aug 18 20:47:57 sure, it talks a lot about SOLID and other things Aug 18 20:48:08 Ok cool Aug 18 20:48:24 it will be useful far beyond android Aug 18 20:51:10 poor Ian, in this latest Jack toolchain video Aug 18 20:51:56 seems ... like he's amped up but on sedatives or something Aug 18 20:52:14 maybe he just got done with a long run Aug 18 20:53:05 what ever happened to Magnus? his videos were crazy Aug 18 20:54:03 i haven't seen Crazy Magnus in a video for any GMS >= 9 Aug 18 20:54:21 he reminds me of Crazy Eddie :) Aug 18 20:56:41 is it recommended to include the word `alpha` and `beta` in the version numbers for alpha and beta channels? Aug 18 20:56:59 or do you just increase a minor version number like 1.2, 1.3, etc Aug 18 21:02:59 this bug still affects me https://code.google.com/p/android/issues/detail?id=2626 Aug 18 21:04:03 bitkiller assigned ! (in 2009) Aug 18 21:04:16 lol bug # with 4 digits, thats old Aug 18 21:06:33 i think the oldest bug i still deal with is LocalServiceSocket accept() blocking and close() not working Aug 18 21:06:44 2012 ... Aug 18 21:07:05 *LocalServerSocket Aug 18 21:07:53 lol, we have one of those... ticket number #8 still open - "make text selection work properly when showing a two column document" Aug 18 21:08:03 Current ticket numbers are nearing 10k :P Aug 18 21:08:53 "Progress report: Some of LocalSocket has been moved over to using the same code (as was) used to implement other blocking i/o in Android. It's not a high priority right now, and all the other blocking i/o code is shifting due to the OpenJDK switch so it is unlikely to be done for N." Aug 18 21:09:05 looks like M at earliest, lol Aug 18 21:09:32 i mean O Aug 18 21:09:38 as in :O Aug 18 21:09:45 Trying it again... Is there any ORM that works with Java1.8 / Jack ? (Tried realm, dbflow and greendao... it's not smooth ...) Aug 18 21:10:34 blusky jack is still beta stuff ... Aug 18 21:10:43 just pick one and use the current tooling Aug 18 21:11:01 I need to use a library that was compilled with java 1.8 Aug 18 21:11:23 is there any way to use Java 1.8 code without Jack ? Aug 18 21:11:31 Just... don't use Jack until it's stable -_- Aug 18 21:11:35 C'mon people, use brainz. Aug 18 21:12:14 heya. the so thread about recommended books seems to have been deleted. can i get recommendations here? Aug 18 21:12:38 lord of the ring is great Aug 18 21:14:08 i mean android development books Aug 18 21:14:34 d'oh; tree fell on one neighbor's house, lightning struck the other Aug 18 21:14:44 cmattrex big nerd probably Aug 18 21:15:05 what is this about lol? Aug 18 21:15:16 cmattrex big nerd ranch java Aug 18 21:15:21 (search on amazon) Aug 18 21:15:30 you can but the ebook on informt Aug 18 21:16:23 g00s, your's next :p Aug 18 21:16:29 but it may be slightly out of date ... slightly. not enough to matter too much though Aug 18 21:17:02 danijoo i'm voting for Giant Meteor 2016 so bring it on ! Aug 18 21:18:57 cmattrex, what kind of book? Aug 18 21:19:22 a beginner book, a structured curriculum into android and oo programming in general Aug 18 21:19:39 try the udacity course? Aug 18 21:19:46 ^ this is great Aug 18 21:19:55 danijoo did you take the course ? Aug 18 21:20:02 g00s, the nanodegree Aug 18 21:22:06 cmattrex, I'm reading the book suggested above "Android Programming - the big nerd ranch guide". It's a good read for a newbie but it's better if you read also a book about OOP programming in Java if you don't know about that topic enough. The code in the book is simple but won't teach you about that subject. Aug 18 21:22:28 that is true Aug 18 21:23:13 and that stuff, as well as java stuff, is huge in android development Aug 18 21:23:18 cmattrex, you probably will understand the code. But OOP or Java programming are not the focus of the book Aug 18 21:23:39 cmattrex you'll also want some background in concurrency Aug 18 21:30:39 Design patterns couldn’t hurt, either Aug 18 21:51:35 throw in some DDD while we're at it Aug 18 21:54:50 Mavrik you around? have you used mmap'd NIO ? any thoughts ? bad idea ? Aug 18 21:55:15 looking around it seems like a bad idea, but hoped you had some ideas Aug 18 21:57:13 ugh, using the rtl relativelayout rules on api<17 causes IOOBE doesn't it Aug 18 22:00:17 AS 2.2 beta 2 Aug 18 22:00:21 ioobe? Aug 18 22:00:44 index out of bounds exception Aug 18 22:01:13 ah Aug 18 22:12:28 Am I finally making friend in this channel? Aug 18 22:12:31 friends Aug 18 22:12:49 WE ARE ALL ROBOTS Aug 18 22:13:58 Like this? http://cinefex.com/blog/wp-content/uploads/2015/04/Ex-Machina-Ava-Karl-Simon-2.jpg Aug 18 22:14:29 NO. LIKE THIS: http://www.geekalerts.com/u/ED-209-Robocop-Figure-With-Sound.jpg Aug 18 22:17:30 Bummer Aug 18 22:18:03 m8 and snibbles got scared and quit Aug 18 22:24:16 arancio you have 10 seconds to comply ! Aug 18 22:28:38 * arancio quickly leafs through "Android Programming: the big nerd ranch guide" trying to find WHAT he has to comply to. Aug 18 22:36:37 besides LinearLayout, do any layouts accept 'weight' as a parameter? Aug 18 22:42:35 pfn, TableLayout Aug 18 22:43:15 arancio, thanks, fortunately, tablelayout extends linearlayout Aug 18 22:46:03 tablerow as well Aug 18 22:46:15 so gridlayout has a weight, but it's not on the layoutparam itself handy Aug 19 00:05:15 Hi, I have a small app (1 activity, 2 async tasks) that is getting a gradle DexOverflowException error. this is happening after trying to upgrade to gradle 3.0 and then reverting to my github files Aug 19 00:05:33 then downgrade to gradle 2.xx Aug 19 00:05:50 pfn: that sounds too logical Aug 19 00:05:57 anyone encounter a similar problem? Cant find a solution as I tried reverting already and google search finds people whose apps actually are too big Aug 19 00:06:01 I am on gradle 2.x.x Aug 19 00:06:09 which worked earlier Aug 19 00:06:23 * pfn <3 this new dsl Aug 19 00:15:26 first time here, must questions be written here Aug 19 00:18:09 someone knows a bit about the adb shell.. need some help with a single issue Aug 19 00:25:34 Max30, better if you just ask your question Aug 19 00:25:57 Max30, and welcome Aug 19 00:26:49 Thank you. I can't find a way for the Adb Shell to attach a file, say into an mms. Is this impossible Aug 19 00:31:54 crazy bob did a presentation recently, i think, where he talked about how tape was implemented ... i lost the link, anyone know what i'm talking about ? Aug 19 00:32:29 lots of crazy bobs on the internet :D Aug 19 01:44:39 Hey, are there any performance implications for having clickListeners or defining the actions in the XML? Aug 19 01:45:48 you're asking for trouble doing it in XML Aug 19 01:46:25 why is that? Aug 19 01:48:21 bankai_ its come down to feeding jake home cooked food , lol taking up a lot of time. i thought even old labs would eat kibble forever ... Aug 19 01:51:50 is URLConnection just crap or what Aug 19 01:51:58 I set the connection and read timeouts and it seems to ignore them Aug 19 01:55:52 tx use okhttp Aug 19 01:56:07 g00s: if this was an API I would be Aug 19 01:56:18 I am literally doing a healthcheck for something a bit hacky / hobbiest Aug 19 01:56:27 tx its okhttp under the hood anyhow for newer versions of android Aug 19 01:56:37 might as well just use the latest one Aug 19 01:56:43 but although my timeouts are set to ... 2 seconds Aug 19 01:56:45 for read and connect Aug 19 01:56:50 it seems to want to try forever Aug 19 01:57:11 which is bad because the read is synchronous :P Aug 19 01:59:35 g00s: isn't he well? :( Aug 19 01:59:54 bankai_ he's going to be 15, kinda picky with food ... Aug 19 02:00:18 labs are almost never picky :) Aug 19 02:00:33 jake ate a bottle of tabasco sauce once Aug 19 02:03:52 my dog had a whole beer once Aug 19 02:03:58 but he's aussie so it's okay Aug 19 02:04:44 my friend had a lab who ate rocks. We said it was half lab, half brick. Aug 19 02:05:12 lol Aug 19 02:08:49 dragorn poor teeth :( Aug 19 02:09:52 g00s, this dog was DUMB. He had a hole in the wall where the dog would run laps around the table, miss the last turn, and go face-first into the wall. For years. :P Aug 19 02:11:37 :( we had a schnauzer that would run to the couch, do a split, and glide on its belly on the hardwood floor and pop out the other side Aug 19 02:11:52 was actually pretty smart :D Aug 19 02:12:48 the tabasco fiasco is my fault; jake got a cut and kept licking the wound, so vet said put tabasco on the wrapping. well, that worked for .. 5 minutes until jake began to like it ... then he actively sought it out Aug 19 02:14:05 he was genuinely one cool dog; even played fetch with local area coyote Aug 19 02:14:25 that ended when the vet said they shouldn't share balls Aug 19 02:14:34 (rabies, disease, etc) Aug 19 02:15:03 right now he's just laying next to the desk farting :D Aug 19 02:15:05 anyone here using retrofit? Aug 19 02:15:39 I do Aug 19 02:16:17 JakeWharton do you recall recently , bob lee giving a talk on how tape was implemented ? Aug 19 02:16:26 Yes Aug 19 02:16:36 do you have a link? much appreciated. Aug 19 02:16:40 Where recently was 4 years ago Aug 19 02:16:46 lol Aug 19 02:17:31 how do i get JSON without making an object/model? http://hastebin.com/ilorepoxis.coffee or do i need one i tried to use Void for the callback..but hmm Aug 19 02:17:56 https://www.youtube.com/shared?ci=fOwJu1xTTB4 Aug 19 02:18:16 thornekey: ResponseBody Aug 19 02:18:20 JakeWharton thanks Aug 19 02:18:26 Or add scalars converter and use String Aug 19 02:18:32 ah, i see. Thought it could have also been Response but that threw. thanks :) Aug 19 02:18:54 You always get a Response, so you're only defining the body type Aug 19 02:19:01 i see now :P Aug 19 02:19:40 and then just still use response.message to get it Aug 19 02:20:25 .body Aug 19 02:20:36 .message is the HTTP header message Aug 19 02:20:58 Like "OK" in a 200 OK status line Aug 19 02:21:00 oh like the status code stuff Aug 19 02:21:02 yeah Aug 19 02:21:19 .body().string() **** ENDING LOGGING AT Fri Aug 19 02:59:58 2016