**** BEGIN LOGGING AT Sun Sep 25 02:59:59 2016 Sep 25 03:03:16 hey ron_frown Sep 25 03:07:43 hi all I don't understand why we don't close the database at the end of this method: https://gist.github.com/udacityandroid/45b9e09260f03e5203adab2e4d5ac745 Sep 25 03:09:45 droidace: If you are done with the db then close it Sep 25 03:10:09 if you want to keep using it then keep it open Sep 25 03:11:43 its that simple @yiati? Sep 25 03:12:05 droidace: Unless you want it to be more complicated then yes :) Sep 25 03:12:20 yiati, i followed this exact. no more error that was appearing in the repo but still cant swipe the menu out :( https://github.com/TUBB/SwipeMenu/blob/master/app/src/main/java/com/tubb/smrv/demo/rv/SimpleRvActivity.java Sep 25 03:12:55 droidace you open the database when content provider onCreate is called. Sep 25 03:13:02 and you just leave it open forever Sep 25 03:13:14 if the process killed, you have no chance to close it Sep 25 03:14:02 hmmmn thanks @goos so in other words its always best to close it? Sep 25 03:14:06 thornekey: Ahh here we go https://developer.android.com/reference/android/support/design/widget/SwipeDismissBehavior.html Sep 25 03:14:16 droidace no i said you leave it open forever Sep 25 03:14:54 okay @goos could you elaborate a bit more as to why? Sep 25 03:15:10 so i set a listener for swipe and then open the drawer that way? Sep 25 03:15:41 droidace this has been the idiom since 2008, sure there is lots of stuff on google Sep 25 03:15:56 thornekey: Nice example if you scroll down here http://saulmm.github.io/mastering-coordinator Sep 25 03:16:27 droidace there is no risk of losing data, although it may seem icky to not close things Sep 25 03:18:46 thanks @goos I think i found the relevant stackoverflow post for this issue: http://stackoverflow.com/questions/4547461/closing-the-database-in-a-contentprovider Sep 25 03:19:25 hmm i see Sep 25 06:18:56 Hello, guys! Good sunday! Sep 25 06:21:24 o/ Arancio Sep 25 06:21:54 Arancio: here's something to temper that joyfulness of yours http://www.youtube.com/watch?v=KUCyjDOlnPU Sep 25 06:23:36 :D Sep 25 06:30:00 Is it your favourite song? Sep 25 06:30:30 Arancio: one of them Sep 25 06:31:11 https://www.youtube.com/watch?v=yPdb7BOSdGQ Sep 25 06:31:43 Arancio: you kids these days :P Sep 25 06:35:15 Idiosyncratic: what does "you kids" mean? Sep 25 06:35:23 Arancio: was just joking Sep 25 06:36:00 I don't understand the meaning of the English sentence "You kids these days" Sep 25 06:37:03 Arancio: it's meant to be sarcastic Sep 25 06:37:36 Idiosyncratic: I don't understand its meaning at all sarcastic or direct. Sep 25 06:37:38 Sorry Sep 25 06:38:24 Your English is better than mine Sep 25 06:54:24 Are icon dimmed out in disable option/action menu items? Sep 25 07:01:29 iiuic, he agrees with me arancio; While you show flashes of talent, I've been wondering your age ☺️ Sep 25 07:03:38 I guess my flashes of talent are an illusion just like my age Sep 25 07:07:27 My undo/redo button appear just like this no matter if they are enable or disabled. http://s18.postimg.org/9fplth16h/Capture.png They are working properly, they just don't change appearance. Sep 25 07:07:31 Is it normal? Sep 25 07:08:11 cant you change alpha on them? Sep 25 07:10:45 raoul11: they are PNGs from the material icon library. Would change their alpha help in any way? Sep 25 07:11:00 yep Sep 25 07:12:20 Do you mean that I should make them a bit transparent in general or that I should manually change their alpha when they are disabled? Sep 25 07:12:50 the second part Sep 25 07:13:08 if you want them to look disabled (if they are disabled) Sep 25 07:13:35 but i use alpha anyways on most of my icons to achieve that mouse grey look to those icons Sep 25 07:16:37 I thought Android would take care of dimming disable items... Anyway thanks for clarifying that it does not. I'll try to do as you suggested Sep 25 07:17:11 i dont know if it does, but its a workaround (: Sep 25 07:19:46 Arancio: use a state list drawable Sep 25 07:24:33 Do you guys think that it's a bad idea to have App (global) bindings for getSystemService()? Sep 25 07:24:46 Like LayoutInflater and WindowManager Sep 25 07:28:06 Idiosyncratic, window manager and layoutinfalter are two i'd get from the activity Sep 25 07:29:38 for no other reason than they have exceptions in activity and contextwrapper Sep 25 07:29:57 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.1_r1/android/app/Activity.java#Activity.getSystemService%28java.lang.String%29 Sep 25 07:30:59 alex_PP: hmm. Thanks for answer. Sep 25 07:32:26 I suppose layoutinflater needs to get the correct theme and window manager the correct window Sep 25 07:45:49 alex_PP: Thanks. I was thinking about it Sep 25 07:46:54 raoul11: do you think that an interstitial ad every 4 questions is much? Sep 25 07:47:14 yep Sep 25 07:47:22 try to shove it on gameover Sep 25 07:47:31 levelfinished or whatever Sep 25 07:47:31 raoul11: you bastard. Why are you siding with them!? Sep 25 07:47:47 Meh, I'll put it at 5 Sep 25 07:48:28 puttin ads while people are involved with playing is a bad idea Sep 25 07:49:10 raoul11: but I've seen apps with lots of downloads that put interstitials ads between almost each activity change Sep 25 07:51:37 Oh. Think I got it. Sep 25 08:33:23 how to add cpu utilization feature to android application Sep 25 08:36:09 you mean you want your app to use more CPU? Sep 25 08:37:51 iron_host: parse the output of the "top" command or of the virtual file /proc/stat Sep 25 08:38:06 iron_host: http://stackoverflow.com/questions/2467579/how-to-get-cpu-usage-statistics-on-android Sep 25 08:38:34 iron_host: where are you from? Sep 25 08:42:27 Leeds: hi Sep 25 08:42:35 how's the good ol' island? Sep 25 08:43:32 thepoosh: good! Sep 25 08:44:25 one day me and raoul11 will get you back Sep 25 08:45:17 I really should get to Israel some time soon - maybe next year... I'm actually just waiting for youtube to process a video I took this afternoon of HK street life Sep 25 08:45:21 we shall make Leeds our lead developer in our new version for tinder called jewinder thepoosh Sep 25 08:45:48 https://goo.gl/photos/z9PyS2hSdt5P8mLP9 is a Google Photos auto-filtered photo I took a couple of nights ago... Sep 25 08:46:08 noice Sep 25 08:46:13 almost Prisma level Sep 25 08:46:33 raoul11: is jewinder for gay jews? Sep 25 08:46:39 like grinder? Sep 25 08:46:44 or are you tindering Sep 25 08:47:00 i think we should make it available for all sexhunting jews Sep 25 08:47:13 yeah, no point in limiting your market beyond the tribe Sep 25 08:47:33 https://play.google.com/store/apps/details?id=com.jcrush.ui Sep 25 08:47:49 lmao look at their buttons: crush or or vey Sep 25 08:48:05 i should give them 5star just for this. Sep 25 08:48:11 iron_host: what's wrong with my suggestion? Sep 25 08:48:31 if want to add particular application cpu utilization to android application how to do that Sep 25 08:48:49 j-date has been around for a long long time... Sep 25 08:49:06 iron_host: you mean you want to track the utilisation within the app? Sep 25 08:49:18 yes Sep 25 08:50:02 iron_host: I told you: parse /proc/stat or /proc//stat Sep 25 08:50:26 iron_host: it's a standard Linux virtual file containing the information that you want Sep 25 08:52:35 Arancio: there is any api to do that in android studio Sep 25 08:53:01 iron_host: is that a question or a statement? Sep 25 08:53:16 iron_host: to get your process pid you do int pid = android.os.Process.myPid(); Sep 25 08:56:01 still waiting for the video to process - it offered to stabilise it for me... Sep 25 08:58:52 iron_host: hello? Sep 25 09:20:23 holy crap Sep 25 09:20:30 alex_PP: I made a version of the icon with 70% transparency and the created a state list drawable and use that as menu item icon. It worked perfectly. Thanks! Sep 25 09:20:39 getString just added special chars to my string Sep 25 09:22:39 the Holy Quadrality: Pater, filius, spiritus sancts and crap Sep 25 09:23:01 dafuk com.facebook.http.protocol.ApiException: [code] 100 [message]: (#100) Invalid parameter [extra]: Sep 25 09:23:02 Arancio: *sanctus Sep 25 09:23:20 Idiosyncratic: sure. I missed a key Sep 25 09:23:35 And I think that it's "spiritui" Sep 25 09:23:53 Actually, it's "spiritui sancto" :D Sep 25 09:24:08 any ideas whats borked on this code? http://pastebin.com/t12B4JHj Sep 25 09:24:32 Arancio: so I'm guessing that the phrase sounds weird in Italian? Sep 25 09:24:38 no, it's "In nomine patrii, fili et spiritui sancti" Sep 25 09:25:08 but if you just name them is "Pater, Filius and Spiritus Sanctus" Sep 25 09:25:10 the invite does work, but the callback isnt launching Sep 25 09:25:47 Sorry "In nomine patris, filii et spiritui sancti" Sep 25 09:25:50 Arancio: in Romanian: În numele Tatălui, al Fiului și al Sfântului Duh Sep 25 09:26:26 Arancio: think it'd be quite easy for me to learn Italian Sep 25 09:26:40 Idiosyncratic: I guess so. Sep 25 09:27:24 That was Latin not Italian tho Sep 25 09:27:29 Arancio: I know Sep 25 09:27:58 Arancio: I'm surprised that it'd be foreign enough to you that you couldn't write it from memory :O Sep 25 09:28:07 *write it correctly Sep 25 09:29:29 Nevermind. I'm being dumb. Sep 25 09:30:07 Idiosyncratic: Latin is more distant from Italian than Italian is from Rumanian, probably Sep 25 09:30:21 at least as much Sep 25 09:31:54 Arancio: modern Romanian is a made up language, actually. Some smartasses from the 19th century thought that us having too many Slavic words in our vocabulary would make us Mongoloid untermenschen and sought to rectify this by "re-Latinizing" the people by way of changing what's taught in the few schools that there were then. Sep 25 09:33:00 Arancio: I've checked the etymologies of a lot of "country folk" words and most of them were of Slavic origin Sep 25 09:34:05 Arancio: add to the fact that we have the letters ș (sh), ț (ts), ă (uh), î (uh... different sounding) and you can tell just how much Slavic we really are Sep 25 09:34:50 Slavic untermenschen Sep 25 09:34:58 mmkay Sep 25 09:35:00 thats working Sep 25 09:35:15 Arancio: da Sep 25 09:37:19 Arancio: there are books written about Romanian revisionism. It's not my personal theory. Sep 25 09:37:56 But really, all countries have a revisionist history that they teach in schools Sep 25 09:39:00 In Italy we don't need revisionism. We don't teach the Fascist era at all in school. No need to revision it Sep 25 09:39:27 Arancio: lol Sep 25 09:40:44 Arancio: meh, Fascist Italy -- besides the war with Ethiopia and ultranationalism -- wasn't really that bad. Sep 25 09:45:15 It was Bennito's man-crush on Hitler that ruined Fascist Italy Sep 25 09:45:42 anyone using facebook's android app invites? Sep 25 09:46:01 wondering if its possible to detect if someone is inviting the same person over and over Sep 25 09:58:05 Hi, is it possible to develop android app without installing android studio? Sep 25 09:58:47 iamawesome: yes Sep 25 09:59:52 Will that be a harder way/process? Sep 25 10:01:24 iamawesome: well, there are people using gvim/vim to make apps, but I say that it's really hard Sep 25 10:01:53 you can make Android application from the command line, from Eclipse, from IntelliJ, from Visual Studio and even more ways Sep 25 10:02:24 Android studio is a big environment. Sep 25 10:02:37 Takes time to download too. Sep 25 10:02:49 do you have an old computer? Sep 25 10:03:04 iamawesome: everyone in this channel agrees with you that AS sucks, but it's what's officially supported by google Sep 25 10:03:27 Are you a time traveler from the '90s? Sep 25 10:07:11 I didn't mean to offend you but how is the download time of Android Studio a problem? You don't download it every day Sep 25 10:23:41 What do you think about the rumors that Google will replace both Android and ChromeOS with Fuchsia on Oct 4th, the new OS that can run software from both? Sep 25 10:27:43 I think it's bad to speculate on rumors ;) Sep 25 10:27:57 adq: well, on rumors, and sourcecode of Fuchsia Sep 25 10:28:01 which is on google code Sep 25 10:28:31 an OS that "targets modern phones and modern personal computers" that use "fast processors" and "non-trivial amounts of RAM." Sep 25 10:29:13 justJanne: sounds like something I won't use :D Sep 25 10:29:16 Fuchsia is reported to have support for "Android apps and ChromeOS extensions" Sep 25 10:29:45 and that’s why the teaser for OCT 4 – which said that Andromeda will merge Android and ChromeOS – is expected to be this Sep 25 10:30:06 will see, could be very cool Sep 25 10:30:08 This is going to be really interesting, because it sounds like Google is literally trying to get sued by the EU every time they do anything Sep 25 10:30:21 i can like microkernel, xnu has proven to be very good Sep 25 10:31:24 it might even be related to what the EU demanded from Google: To change Android so that the device drivers, the OS, the services, and the apps are all seperate, Sep 25 10:31:39 i doubt that, i mean i doubt there is any legal reasons behind Sep 25 10:31:42 justJanne: why would we be able to sue Google? Sep 25 10:32:00 I'm trying to write some data to file but it doesnt even create the file even though it should. Any ideas? code: http://pastebin.com/aJSat7Br Sep 25 10:32:04 Idiosyncratic: Google is heavily expanding into new sectors of the economy, Sep 25 10:32:19 which is a really fucking bad idea, as it means they’ll get more monopolistic power in them Sep 25 10:32:46 the EU really hates bundling or cross-industry interaction – you shouldn’t in any way bundle search and web maps in one company, Sep 25 10:32:50 justJanne: hmm. That does sound bad. Sep 25 10:33:01 or the internet access and TV Sep 25 10:33:12 or similar things, as that makes the free market less efficient Sep 25 10:33:35 cause that’s exactly what’s happening, Google is just so integrated and convenient that as soon as they enter a market segment, Sep 25 10:33:44 they completely dominate it and destroy all competition Sep 25 10:34:01 and no one can compete with them in any segment, because Google already is so well integrated with other segments Sep 25 10:34:23 Many users use Google Chrome, Google DNS, Google Fiber, Google Fi, Google devices, Google Search, Google maps Sep 25 10:34:48 and gmail and google search and etc ;) Sep 25 10:34:48 in most of these market segments – search, maps, DNS, mobile devices, webbrowsers – Google has an absolute majority already Sep 25 10:35:33 i would not trust they EU to defend its own economy nor protect their citizens properly about all you just said Sep 25 10:35:37 And you can’t compete with Google Maps, because Google Maps’ results are integrated into Google search, but yours aren’t Sep 25 10:35:43 but there is some truth in what you said though Sep 25 10:35:52 s/they/the/ Sep 25 10:36:19 adq: remember, the EU is what turned the mobile market from "every manufacturer has a different charging standard" into "everyone has microUSB" Sep 25 10:36:38 and what gave Google Chrome the initial boost, when they enforced Browserchoice, and suddenly chrome installations tripled Sep 25 10:37:06 because people got on first start of windows, instead of IE preinstalled, a window where they could choose between each of the browsers, and see a little ad for each of them Sep 25 10:37:15 yeah i can remember, but that don't make it a "good samaritan" Sep 25 10:37:27 <- from france, but i think i'm drifting to be more and more euroskeptic every day Sep 25 10:37:37 Well, they’re a democratically elected government, that usually makes them a good samaritan Sep 25 10:37:47 I’m not sure there’s anything bad the EU itself has done yet Sep 25 10:37:48 uh no Sep 25 10:38:03 no one elected all those ppl in eu parlament, anyway we are on the wrong channel to discuss that Sep 25 10:38:05 almsot all bad that’s done is the EU council, aka Merkel + Hollande + Cameron sitting together Sep 25 10:38:09 Eh, yes? Sep 25 10:38:20 I elected the people in Eu parliament, you did, May 2014? Sep 25 10:38:47 Here’s the ballot: http://i.imgur.com/zhVYPwN.jpg Sep 25 10:39:22 I also didn’t vote for Juncker, but he won anyway, as most people did. Sep 25 10:41:41 uh indeed, i probably mixed up something Sep 25 10:42:07 You might mean the EU commission, which acts as government, but that’s also directly elected since 2014. Sep 25 10:42:34 Or the EU council, where the heads of each EU nation sit together as second chamber of parliament, but that’s not any different from any other federal system Sep 25 10:44:41 justJanne: you have no idea what kind of morons we elected for the EU parliament. One was a former sheep herder turned millionaire overnight due to "retrocedation" that owned a football club and the other was the then-president's fashion model-esque daughter. Sep 25 10:45:22 justJanne: and that's not the end of it; we got an ultranationalist bastard in there too Sep 25 10:45:37 well, that’s your problem. Anyone can start a party and run for EU parliament, one guy in the parliament is even Sonneborn, former Editor from the satiric magazin Titanic (imagine the German version of "The Onion") Sep 25 10:45:55 if you only elect stupid people, maybe the issue is with your people. Sep 25 10:45:59 eheh isn't the CCC got a seat? Sep 25 10:46:12 the what? Sep 25 10:46:13 justJanne: pfft Sep 25 10:46:15 or one or two of their member Sep 25 10:46:18 yeah. Sep 25 10:46:20 the CCC, chaos computer club Sep 25 10:46:23 through the Pirate party Sep 25 10:46:28 word Sep 25 10:46:31 (I voted for that person, btw) Sep 25 10:46:37 (AND THEY GOT IN!) Sep 25 10:46:40 but, to get back to the issue at hand, Sep 25 10:46:49 and they deserve it and i would probably trust them more than any other Sep 25 10:46:52 justJanne: did you just call my people morons? :P Sep 25 10:47:02 the EU is the group that’s most likely to act in the interest of the people here Sep 25 10:47:11 justJanne: how German of you! :P Sep 25 10:47:19 Google’s interest is profits and world domination, the US, I don’t know even, Sep 25 10:47:43 so the entity most likely to act in the interest of consumers and developers is the EU at this point Sep 25 10:48:28 justJanne: we're still backing them on the anti-Russia thing despite one of their representatives hinting at US machinations that the EU isn't aware of ("Fuck the EU" by Nuland) Sep 25 10:49:49 hello i installed android studio to an offline pc Sep 25 10:49:51 i only get android 6 Sep 25 10:49:54 how i can install previous apis Sep 25 10:50:15 you need to install "more stuff" in/from your sdk manager Sep 25 10:50:50 it's in settings, appearance & behavior (lol..), system settings, android SDK Sep 25 10:50:50 doesnt need internet connection? Sep 25 10:50:57 only once Sep 25 10:51:07 for downloading the api and other things you need Sep 25 10:51:07 yeah i cant do that Sep 25 10:51:26 i need to download files or something from an other pc Sep 25 10:51:32 and then copy it there Sep 25 10:52:12 justJanne: you might mock us and consider Eastern Europe a shithole, but before Communism fell here, we were far more culturally and socially advanced than the West Sep 25 10:52:12 then do it from the other pc, download everything you need and then copy your folder Sep 25 10:52:28 justJanne: Eastern Europe didn't spawn mass pornography and Rambo Sep 25 10:53:23 you mean install android studio etc, download additional apis Sep 25 10:53:27 and then what Sep 25 10:53:39 justJanne: it wasn't always like this; packed with stray dogs and pollution everywhere Sep 25 10:53:50 you should be able to just install the sdk manager to retrieve necessary api & other things (avd, doc, sources) Sep 25 10:53:57 and then just copy your sdk folder to your 'offline' pc Sep 25 10:54:20 i hope this works Sep 25 10:54:47 what if i download a previous version of sdk?? Sep 25 10:55:42 it should not matter, what you want is the api(s) you target, the latest build-tools etc Sep 25 10:56:22 i thought maybe with every sdk the latest api at the time is included Sep 25 10:56:22 it's all self-contained in a folder called android-sdk or something close, so it should not be a problem to transfer it from a pc to another Sep 25 10:56:43 Im trying to write some data to a file but the file is never being created even though I am, any ideas? Code: http://pastebin.com/aJSat7Br Sep 25 10:56:54 Sep 25 10:57:10 JayCBR: developing on an offline PC isn't really intended, nor properly supported Sep 25 10:57:20 yeah with gradle you will have other troubles Sep 25 10:57:23 but you did not ask about that Sep 25 10:57:36 Hi, do i need to download SDK to make " " work? Sep 25 10:57:38 gradle can work offline, but also require to have fetched earlier what it needs Sep 25 10:58:12 i also have problem with emulator Sep 25 10:58:30 it says not supported cpu Sep 25 10:59:31 Zajt, you probably don't have the right due to the path you are using Sep 25 11:00:16 adq: What path should I use? Sep 25 11:00:54 Hi, do i need to download SDK to make " " work? Sep 25 11:00:56 Hello Guys&Dolls, is there a way to control weather or not the database aspects of updating a program when updating via google play ? Sep 25 11:00:59 on something else..is jdk 8 supported by android studio Sep 25 11:01:16 ?i read somewhere i need 7 Sep 25 11:01:30 yes mib Sep 25 11:01:57 Zajt, no idea, what does the stacktrace says? where are you trying to write, etc Sep 25 11:03:01 mib, there is no need anymore to edit the manifest for the min sdk, it should be done in the gradle defaultconfig Sep 25 11:03:03 adq: There are no exceptions, I'm trying to write to the internal memory on the phone Sep 25 11:03:11 sounds like you're using eclipse or something in 2016 Sep 25 11:04:17 adq: There are no exceptions, I'm trying to write to the internal memory on the phone < if there is no exception then you should check the return status of createnewfile because the doc says: true if the named file does not exist and was successfully created; false if the named file already exists Sep 25 11:04:52 I read that sharedpreferences data is kept apon upgrade, ok makes sense, but what if you added fields to the sharedpreferences database, will the new fields be present in the upgraded program ? Sep 25 11:05:14 yes NeoFrontier Sep 25 11:05:29 clever, Sep 25 11:05:31 adq Sep 25 11:05:32 good Sep 25 11:05:33 it's not a db fyi, it's just a text file with some xml key/value Sep 25 11:06:26 << stuff like that you would find inside a sharedpref file Sep 25 11:06:35 adq: It returns true when I change the file names so it's definitely creating the file Sep 25 11:07:03 then it's good Zajt, you probably believe it's somewhere else than where you checked if you thought it was not being created Sep 25 11:07:24 Zajt, what make you think it's not created? Sep 25 11:07:35 I can't find it on my phone Sep 25 11:07:40 in the internal memory or somewhere there Sep 25 11:07:55 usually your internal storage of your app would be in: /data/data/yourpackagename/somewherenearby Sep 25 11:08:10 but it can vary, depending on the rom/manufacturer Sep 25 11:08:18 yeah Sep 25 11:08:21 (samsung did broke the default sharedpref path in the past ;)) Sep 25 11:08:36 Ok so let me recap/get_this_straight: The sharedpreferences data will not be altered but new fields you added to the upgrade will be present in the user's upgraded program via google play. Sep 25 11:09:49 Zajt, the internal storage isn't accessible to a file browser Sep 25 11:10:00 yes for the first part, not sure for the last, it's more like you push a new version of your app on play store, a user upgrades the app (and do not lose the current existing state of his pref) and the latest app got new fields and is able to write/read them Sep 25 11:10:02 you want new getExternalStorage() Sep 25 11:10:14 Is it possible to display a SnackBar inside a specific view instead of the overall parent? Or just above another view? I know they're not meant for that, but in my case (I have something like a "bottom bar") it would look much nicer. Sep 25 11:10:47 alex_PP: Where do I want new getExternalStorage()? Sep 25 11:11:27 or, what type of thing are you storing? Sep 25 11:11:31 Zajt: Sep 25 11:11:31 of course Matthew42, but you have to take in account where is your coordinatorlayout Sep 25 11:12:57 Zajt, have a look at this. https://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory(java.lang.String) Sep 25 11:13:14 adq: It's the parent view in that activity Sep 25 11:13:54 http://stackoverflow.com/a/31496283/1373568 basically what i said Sep 25 11:13:57 ^ Matthew42 Sep 25 11:14:37 because snackbar (if you read the doc) is searching in the parent tree of the view you pass in param a coordinatorlayout or decorview if coordinatorlayout is not found Sep 25 11:14:52 otherwise you could extend yourself snackbar and make a custom one, or use something else (like the old crouton lib) Sep 25 11:16:00 adq: I thought it would just take the parent on the highest level, but that's easy then. Thank you. Sep 25 11:36:10 so this was a few months back but did this Android Studio vulnerability affect the host system or was it limited to just the emulator's file system? https://plus.google.com/103342515830390186255/posts/5TGKhcwtip5 Sep 25 11:36:57 the CSRF flaw that is Sep 25 11:43:00 Spring, totally unrelated to emu FS. So yes indeed, affect the host running your IDE Sep 25 11:44:24 geez, talk about a critical vulnerability Sep 25 11:46:41 is the webserver a requirement, or can it be disabled? Sep 25 11:47:08 I realize it's patched, but just wondering Sep 25 11:49:14 I have no idea, but if you want to be relatively safe, run your dev env inside a chroot inside a jail inside a vm inside a host with no sensible data Sep 25 11:57:47 Using Android Studio 2.2 I'm getting this error with instant run: http://i.imgur.com/vF6tovO.png (Text version: Instant Run requires that the platform corresponding to your target device (Android OFFICIAL Preview) is installed. ) I have android 6 on my phone with a ROM, any ideas? Sep 25 12:11:31 My googleApiClient isn't connecting fast enough and if my user starts the game while it's connecting, he'll see the "connecting" screen in the game activity. Anyone know of a way to disable this screen or some other method? Sep 25 12:13:00 Hmm. Seems the screen does get locked while connecting, but only on higher versions. I think. Sep 25 12:15:47 oh facebok Sep 25 12:20:35 so shareDialog with a link to the playstore autostrips your share from custom images, text, whatever, and just uses what fb crawler gets from the play store Sep 25 12:20:44 any workaround of that behavior? Sep 25 12:22:28 If I want RecyclerView to show automatically add and manage (on deletion and re-ordering) an item number in the item views do I have to rewrite the whole view from scratch? Sep 25 12:40:09 wtf is up with admob Sep 25 12:40:16 erroring 403 Sep 25 12:40:16 Arancio: not really Sep 25 12:40:29 in the onBind you get the item number as position Sep 25 12:40:34 so you can use that yourself for that Sep 25 12:40:43 justJanne: yeah, that's the easy part Sep 25 12:40:50 and? Sep 25 12:41:01 what’s the hard part? Sep 25 12:41:02 justJanne: the hard part is when you delete or move an item. Sep 25 12:41:05 why? Sep 25 12:41:09 then onBind is called again Sep 25 12:41:16 guaranteed every time? Sep 25 12:41:31 if you call notifyItemChanged or notifyItemDeleted, yes Sep 25 12:41:36 ok Sep 25 12:41:40 thank you very much Sep 25 12:41:48 I didn't read it anywhere Sep 25 12:42:11 I personally use this thing: https://github.com/justjanne/QuasselDroid-ng/blob/master/app/src/main/java/de/kuschku/util/observables/lists/ObservableList.java Sep 25 12:42:35 when I .remove() an item, the list automatically gets a notifyItemRemoved call Sep 25 12:42:50 as you see https://github.com/justjanne/QuasselDroid-ng/blob/master/app/src/main/java/de/kuschku/util/observables/lists/ObservableList.java#L91-L96 Sep 25 12:44:48 How do you do that highlight trick? Sep 25 12:45:14 with github/gist Sep 25 12:45:21 you click the first line, Sep 25 12:45:25 then shift-click the second line, Sep 25 12:45:31 and it will highlight all inbetween Sep 25 12:45:56 thanks! :-) Sep 25 12:48:34 raoul11: have you add your device as a test device? Sep 25 12:48:51 fuckin hell google Sep 25 12:49:06 its not that Sep 25 12:49:10 its the login to admob console Sep 25 12:49:17 which gettin blocked with 403 Sep 25 12:51:21 raoul11: why would you get a 403, lol? Sep 25 12:52:13 coz google is stupid Sep 25 12:52:18 just created the account Sep 25 12:52:51 raoul11: quick google search says that it's related to the browser. Tried switching? Sep 25 12:53:32 Hi People Sep 25 12:53:46 can someone help me rename my app package please? Sep 25 12:54:33 Right-click, Refactor, Rename Sep 25 12:54:45 nope Sep 25 12:54:53 borked also on another browser Sep 25 12:54:53 Arancio: can "COM" can be renamed without issue? Sep 25 12:55:10 raoul11: cleared cache? Sep 25 12:55:10 DelphiWorld: I guess so Sep 25 12:55:14 DelphiWorld: please learn about java package names and conventions Sep 25 12:55:28 yep Sep 25 12:55:40 justJanne: my problem is with Android Studio Sep 25 12:55:45 https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html Sep 25 12:55:58 it's totaly messed up in term of accessibility and no spoken fidback provided at all, that why i'm asking Sep 25 12:55:59 You can safely rename everything within of android studio, it will handle refactoring, Sep 25 12:56:08 as its tutorial says Sep 25 12:56:49 DelphiWorld: if you require an IDE that is accessible to blind users and provides spoken feedback, a visual IDE like Android Studio might not be a good choice in general. Sep 25 12:57:17 justJanne: at i use a screen reader, Android studio is pretty dificult and i only use command line gradle to build the project Sep 25 12:57:33 justJanne: fyi, Eclypse is accessible Sep 25 12:57:40 because it use the "SWT" ui framework Sep 25 12:57:43 Eclipse works well enough? Sep 25 12:57:51 but Android Studio use "AWT", that's unaccessible at all Sep 25 12:58:00 yes, eclypse work pretty well Sep 25 12:58:22 can't say 100%, but at least i can browse, navigate, edit, see the menu, compile, run anything Sep 25 12:58:27 sorted itself Idiosyncratic /: Sep 25 12:58:45 DelphiWorld: you can use Android Studio with a screenreader, Sep 25 12:59:02 justJanne: no, you can't do a single action Sep 25 12:59:02 but if you are on windows you have to install the Java Access Bridge, it seems, Sep 25 12:59:07 nothing is readable Sep 25 12:59:10 so it works with NVDA and other screenreaders Sep 25 12:59:24 DelphiWorld: yes, you need to install an additional bridge so the screenreader can access AWT Sep 25 12:59:27 justJanne: i did have java access bridge Sep 25 12:59:27 and read it Sep 25 13:00:04 justJanne: Access bridge work with the swing framework Sep 25 13:00:19 it seem that swing & AWT are totaly diferent no? Sep 25 13:00:33 Swing is built on top of AWT Sep 25 13:00:53 so i duno why access bridge work with SWING and not AWT Sep 25 13:01:02 Access Bridge should work with IDEA – I’ve found an article from a blind user who says they’re using IDEA with access bridge and it seems to work Sep 25 13:01:12 (IDEA is the IDE android studio is based on) Sep 25 13:01:29 justJanne: will reinstall and see Sep 25 13:02:28 DelphiWorld: do you have the access bridge installed and used in both the 32-bit and 64-bit version? Sep 25 13:02:33 Android Studio might use another version Sep 25 13:02:59 i have only 64bit system but i didnt install it this time, when i formated my pc Sep 25 13:04:09 DelphiWorld: you can find more information here: https://developer.android.com/studio/intro/accessibility.html Sep 25 13:04:36 happyly, justJanne ! WILL see Sep 25 13:04:43 if that work... will be *DANSING* ;) Sep 25 13:19:36 justJanne: no, onBindViewHolder() is not called when you call notifyItemRemoved(position); Sep 25 13:20:31 Arancio: not for the other items either? Sep 25 13:20:52 justJanne: no, I get holes in the numbering Sep 25 13:21:03 you could manually call notifyItemRangeChanged(position, list.size()) Sep 25 13:28:33 justJanne: thanks I managed to make it work in both item deletion and item reordering using notifyItemRangeChanged() Sep 25 13:29:11 Arancio: it’s not exactly an ideal solution – ideally, the numbers would stay in place, and the text would only move up, Sep 25 13:29:16 but nice that it works Sep 25 13:33:04 The code for this RecyclerView is the worst I written on Android. I guess it will give me problems in future Sep 25 13:36:05 Idiosyncratic u use mediation with admob? Sep 25 13:43:48 raoul11: ? don't think so Sep 25 13:43:59 k Sep 25 13:44:56 raoul11: also, that ~3EUR click hasn't happened again Sep 25 13:45:04 \: Sep 25 13:46:06 raoul11: must've been really, really lucky Sep 25 13:46:25 yep Sep 25 13:46:33 depends how much traffic u have i guess Sep 25 13:46:48 raoul11: I had very little at that point Sep 25 13:50:59 raoul11: I'm releasing this version and I'm gonna be done with Android for a while. Passively maintain it and see if it catches on with time. Sep 25 13:51:20 I wasn't really expecting much at the beginning Sep 25 13:51:49 life of an indie dev Sep 25 13:53:01 raoul11: living on the edge of the chair that keeps you from falling and strangling on the rope around your neck! Sep 25 13:54:16 raoul11: I really wanna work independently Sep 25 13:58:30 goodluck Sep 25 14:00:42 raoul11: https://en.wikipedia.org/wiki/List_of_European_countries_by_average_wage#Map Sep 25 14:00:59 raoul11: get 1000EUR/month and I have more than twice the average salary Sep 25 14:02:28 raoul11: easy to make on the web, but I somehow seem to pick only the hard methods :( Sep 25 14:02:58 live and learn Sep 25 14:06:31 raoul11: some bastard emailed me that he can sell me a quiz database for 250EUR Sep 25 14:07:22 just trying to make a livin Sep 25 14:08:15 raoul11: decompiled some Romanian trivia apps and the databases are so easy to rip. I wonder if he did the same thing. :D Sep 25 14:09:23 mabe Sep 25 14:09:50 Idiosyncratic: it's doing what I suggested you to do. Instead of creating ONE trivia app, he made a tool to make trivia apps. You are competing with other developers making quiz apps, he's selling a product to developers making trivia apps. Sep 25 14:09:55 he's doing Sep 25 14:10:13 Arancio: X_X Sep 25 14:10:15 In his case the tool is a quiz database Sep 25 14:11:30 Correct Sep 25 14:11:38 B2B sale is always the most effective Sep 25 14:17:58 Well, time to go on new adventures. Sep 25 14:23:40 hi, there is a way to change textappearence to a theme to each sub type of textview? Sep 25 14:28:43 yo Sep 25 14:29:19 justJanne: Spoken fidback was a bit slow..., i opened all my src files & renamed the package in one click using Notpad++ ;) Sep 25 14:33:17 whats the extra in generic method? say: public T method(T type) Sep 25 14:35:59 purplex88: the type placeholder Sep 25 14:41:45 purplex88: the idea is that whenever you give that function any object, Sep 25 14:41:51 you get an object of the same type back Sep 25 14:42:03 in that case Sep 25 14:43:22 ah ok i thought it was return type Sep 25 14:44:13 purplex88: in your example, it is Sep 25 14:44:20 well, the same as Sep 25 15:21:44 similar use as in c++ template definitions Sep 25 15:40:03 I'm curious, all those people posting jobs on freelancing platforms where they need one developer who is proficient both in Android and iOS native (Java/Swift/ObjC) development, do they really find such people? Sep 25 15:41:09 I mean, it's obvious that anybody who claims to be such a guy will ship shitty apps with 99% probability... Sep 25 15:42:11 why so AlexBerdnikov? Sep 25 15:43:44 Hello i am trying to update my app to sdk 24 but i am having a hard time figuring out how to fix this issue. java.lang.SecurityException: COLUMN_LOCAL_FILENAME is deprecated; use ContentResolver.openFileDescriptor() instead Sep 25 15:43:50 don't judge others by your standards :P Sep 25 15:44:10 I need to have the filename from the download manager so i can start installing action from within my app Sep 25 15:44:34 alex_PP: Dunno, I can't imagine anyone who is ok at both platforms considering how fast they evolve. Morever, both platforms have their specific problems so you must have no life and no need to sleep at all to be a great dev on both platforms. Sep 25 15:45:43 does anyone know a simple and fast way to get the file name value that used to be available from COLUMN_LOCAL_FILENAME ? Sep 25 15:46:05 Just look at how Android evolved for the last 3 years. I know nothing about iOS but I bet they're evolving non-stop Sep 25 15:46:56 And now imagine how you're going through all the new stuff Google and community offers us all the time Sep 25 15:47:04 I don't know a gigantic of stuff about ios either, but being a multiplatform developer isn't that big a deal Sep 25 15:47:24 I find the bigger problem is people who try and be, UI/UX/dev/PM etc. in one Sep 25 15:47:27 And you have to be in trend on both platforms Sep 25 15:48:29 Well, I'm sure you CAN develop for both platforms, I just don't believe you can be really good at both Sep 25 15:50:52 alex_PP yeah PM / dev are quite different skills Sep 25 15:51:00 personality strengths, etc Sep 25 15:51:34 but these platforms are so complicated now, except for basic crud stuff it seems hard to cover multiple well Sep 25 15:51:46 most shops have teams dedicated to each platform ... Sep 25 15:51:58 and the smaller business go mobile web for multi-platform Sep 25 15:54:12 g00s: Agree, if being multi-platform mobile dev was that simple why then every big company always have dedicated teams? Sep 25 15:55:21 I just wonder how the stuff the clients I described above works after they hire jack-of-all-trades developers Sep 25 15:56:55 poorly I imagine Sep 25 15:57:56 but I think that's mostly a management issue Sep 25 15:58:26 big companies have teams because it's more efficient Sep 25 15:59:39 but where I last worked we had people who moved between teams Sep 25 15:59:54 rare that you go from android in the morning and ios after lunch though Sep 25 16:24:07 How do I integrate a python project with my Android app? Sep 25 16:25:18 (The SL4A repository was last updated three years back) Sep 25 16:26:15 Anyone happen to know why Android Studio on Linux is having ridiculously large fonts, after fixing the xdpyinfo dpi of the display? (Before fixing, all apps were tiny.) Sep 25 16:27:04 With Android Studio 2.1.2, that is. Sep 25 16:27:18 * Cyp_ has gone from Android in the morning to iOS after lunch. Sep 25 16:31:58 fraj_bnc that should give you a hint ;) Sep 25 16:32:27 So. A web service is the way to go? Sep 25 16:32:41 thepoosh ! Sep 25 16:32:45 hi hi Sep 25 16:32:52 chance to meh yet? Sep 25 16:33:05 oh yeah, AW is meh again Sep 25 16:33:19 what do you think about the Andromeda rumors ? Sep 25 16:33:35 g00s, andromeda? Sep 25 16:34:14 https://www.reddit.com/r/Android/comments/54c2qz/googles_merged_androidchrome_os_andromeda_may_be/ Sep 25 16:37:36 so its not a matter of if, but when. Sep 25 16:37:41 * g00s grabs popcorn Sep 25 16:39:38 not heard this one yet Sep 25 16:40:04 fuscia was all the rage a little while back Sep 25 16:42:13 maybe over time Andromeda will be based on fuschia (nobody knows) Sep 25 16:42:46 I wont hold my breath Sep 25 16:42:55 we'll see on the 4th Sep 25 16:43:31 thepoosh https://www.cnet.com/news/as-apple-watch-series-2-samsung-gear-s3-debut-android-wear-hopefuls-lg-huawei-motorola-call-timeout/ Sep 25 16:46:15 g00s, I don't get it! :| Sep 25 16:46:52 fraj_bnc i don't get what you don't get :D Sep 25 16:48:32 Nvm then. Sep 25 16:51:01 thepoosh get link about werables ? Sep 25 16:51:03 *wearables Sep 25 16:56:18 good morning everyone :) Sep 25 17:02:13 hey drinfernoo Sep 25 17:02:19 yo Sep 25 17:12:58 g00s: opened waiting to read Sep 25 17:26:28 hi raoul11 Sep 25 17:26:36 ohi Sep 25 17:27:04 finished quite a few things today on my trello todo list Sep 25 17:27:09 yay Sep 25 17:27:15 and the in-progress? Sep 25 17:27:23 some of em Sep 25 17:27:29 i still need to test firebase invites Sep 25 17:27:47 but fb invites/share is working Sep 25 17:28:07 not sure how to detect if someone invites the same people over and over thepoosh Sep 25 17:28:26 that's their right Sep 25 17:28:38 i think you get back an array of invites sent Sep 25 17:28:44 might have the information you need Sep 25 17:28:55 oh Sep 25 17:29:05 with firebase/fb or both? Sep 25 17:32:01 firebase Sep 25 17:32:15 fb has a different callback system Sep 25 17:32:19 IIRC Sep 25 17:34:02 it does Sep 25 17:34:10 raoul11: https://developers.facebook.com/docs/reference/android/current/class/AppInviteDialog.Result/ Sep 25 17:34:15 pretty simple to use though, but looks limited Sep 25 17:34:19 fb 9.6.1 was released late friday Sep 25 17:34:22 welcome to fb Sep 25 17:35:43 ill look into it thepoosh, though i can live with that sort of cheating (and can limit the amount of invites a user can send per day) Sep 25 17:35:50 now gotta deal with admob Sep 25 17:36:10 and all its mediation glory. its nice thats its all within firebase Sep 25 17:36:13 gl. never touched ads Sep 25 17:36:26 daddy needs some sugar thepoosh Sep 25 17:36:42 * thepoosh starts unzipping Sep 25 17:36:59 heeeeere's Johnny Sep 25 17:37:31 not the sugar i want nor need Sep 25 17:38:17 too late for backsies Sep 25 17:39:05 when are you going tommorow Sep 25 17:39:22 so ill know when to go boomboom in yesplant Sep 25 17:41:07 hi back Sep 25 17:41:48 i renamed my package but i have a error, the package "R", is not found. it's ressource related, where to check? Sep 25 17:42:21 where its borkin Sep 25 17:42:30 and import it (probably a subpackage) Sep 25 17:42:37 clean, rebuild, pray Sep 25 17:43:13 raoul11: 1. please remember i'm still begining Sep 25 17:43:50 you should see in your android monitor on AS on which class/line it was borking, marked in blue Sep 25 17:43:56 2. please accept my excuses and respect my situation, sight isn't something easy to have. Sep 25 17:44:21 click on it and it will take you to the part which breaks Sep 25 17:44:25 raoul11: blue, white, black, red, yello? those are just some nice names i know; but never saw them ;) Sep 25 17:45:21 how did you change your package name btw? Sep 25 17:45:27 build.gradle? Sep 25 17:45:35 raoul11: HAHAHA. stupid and long way Sep 25 17:45:47 build.gradle first, then renamed it in all my source files Sep 25 17:45:52 oh noez Sep 25 17:46:17 did you try clean/rebuild? Sep 25 17:46:29 no, but will do Sep 25 17:46:36 i duno how to do clean using gradle Sep 25 17:46:50 ... Sep 25 17:46:51 build/clean project Sep 25 17:47:07 i use "gradlew assemble to build Sep 25 17:47:21 hey raoul11 wait... Sep 25 17:47:23 gradlew clean Sep 25 17:47:25 i found it Sep 25 17:48:25 hahaha... i found the error Sep 25 17:48:49 orbyt_: thx dude Sep 25 17:56:28 Thinking of experimenting with a psuedo-composite pattern for Views where wrapping component ensures it only has one child and delegates onMeasure and onLayout. IIRC this is how ScrollView is implemented. Are Views too "heavy" for this to make much sense? It would also make the view heirarchy taller. Sep 25 17:57:46 raoul11: laugh... Sep 25 17:58:08 raoul11: the error was that "com.tmdev.app.r" was not renamed Sep 25 17:58:30 awesome Sep 25 17:58:39 live and learn m8 Sep 25 17:59:17 raoul11: m8? Sep 25 17:59:45 mate Sep 25 18:00:17 raoul11: find me a seat in a paris univercity Sep 25 18:00:44 i tots would, but i have no relation to that city or country Sep 25 18:00:56 hahaha Sep 25 18:03:20 I'm trying to introduce MVP pattern in my current app for the first time. I have also organized my code in packages by features, so I have these com.muyapp.auth, com.myapp.products and other packages. Now, all my presenters are totally unaware of any Android specific stuff and are pure POJOs. Under my auth package where I implement registration and login screens, I have this LoginInteractor class where I need Application's Sep 25 18:03:20 Context. For that I want to use Dagger. My question is do I have in such case create dagger's Component class for every of my app-related package to have an ability to inject Context there? Sep 25 18:04:15 if someone want to help blind people by macking his app accessible to them, i'm ready to test for you befaure you publish in the PlayStore. Sep 25 18:07:57 AlexBerdnikov: What I've done in cases like that is extract an interface from the (LoginInteractor) class, and pass/inject concrete implementations to the presenter Sep 25 18:09:15 saik0: you mean you're not using DI framework and just passed Context-aware object to the interactor through the constructor? Sep 25 18:11:17 AlexBerdnikov: I just meant that my Presenter's direct dependencies are interfaces, keeps it easy to mock/stub them out and test Sep 25 18:12:01 (regarless of how the deps are resolved) Sep 25 18:15:08 raoul11: thank you for encouraging me. Sep 25 18:15:15 and thank much much much to justJanne Sep 25 18:21:48 DelphiWorld: Btw, I’d be interested in exactly that Sep 25 18:26:11 lol https://plus.google.com/+AndroidDevelopers/posts/94jCkmG4jff Sep 25 18:26:17 last comments Sep 25 18:27:04 hey, i'm a noob with android studio, where can i get this view? Sep 25 18:27:05 http://puu.sh/rnwOj/c9bbe3953e.png Sep 25 18:27:39 this is a screenshot from an image tutorial but it's not dumbed down enough, i'm making a clean new android library project Sep 25 18:27:42 but this is all i got Sep 25 18:28:00 http://puu.sh/rnwTa/b1dbc72769.png Sep 25 18:28:52 ranbox2d: Right side, Gradle tab Sep 25 18:29:19 uhh, i love you orbyt_ Sep 25 18:39:10 can i create an android library directly? Sep 25 18:39:29 when i open up android studio the only option is android application, then add another module for the android library Sep 25 18:39:57 can't i specify that the project is a library directly? it used to be simpler in eclipse Sep 25 18:40:29 New-> new module-> android library Sep 25 18:40:40 Do I have to make a new module? Sep 25 18:40:44 You can delete the app module Sep 25 18:41:12 you dont have to, you can use the .library plugin instead of application to turn it into a lib Sep 25 18:41:17 Hmm, I thought there would be another way, thanks though! Sep 25 18:49:07 Hi all What is the purpose of declaring NOT NULL in creating a database table here: https://github.com/udacity/ud845-Pets/blob/master/app/src/main/java/com/example/android/pets/data/PetDbHelper.java#L56 When we declare NOT NULL a field or attribute of a database, we asking the DBMS for throwing an exception whenever this restriction is going to be violated. But in the Content Provider when we inser the row in the table Sep 25 19:11:12 Any good guides on creating an application with switchable dynamic themes? Sep 25 19:13:40 orbyt_ its a pain in the ass Sep 25 19:14:08 especially if you are supporting platforms which don't allow theme attributes in drawables Sep 25 19:14:31 you'll wind up with a combinatorial explosion of themes, xmls, and stuff Sep 25 19:14:39 watch out for the stuff especially ;0 Sep 25 19:15:11 and of course, more likely to have bugs on sammy devices / etc Sep 25 19:15:12 Well I know you were trying out the DayNight themes awhile ago, how did that work out? Sep 25 19:15:45 it is ok; in that case the platform helps you a little with -night qualifier Sep 25 19:17:08 I'm thinking I'll only need a light/dark theme, I can't see it being excessively complicated Sep 25 19:17:12 before then, i was working on 1 light default theme, and 3 dark themes (default, nv red, nv green) and it got out of hand Sep 25 19:17:38 orbyt_ yeah in that case it should be pretty simple Sep 25 19:18:09 Is it just a matter of defining separate styles and calling setTheme() when needed? Sep 25 19:20:16 if you use AppCompat support there is no setTheme needed really Sep 25 19:20:49 i've had some bugs with stuff not changing properly though Sep 25 19:21:20 when you set the night mode, its supposed to kick off a resource change ... but i found that didn't always work Sep 25 19:21:24 gotta run Sep 25 19:22:04 will look into it, thanks, later o/ Sep 25 19:27:12 join #php Sep 25 19:40:18 Yo Sep 25 19:40:52 So I need some help with dependency injection when the class has callbacks... Sep 25 19:41:41 I'm using a clean codish type architecture, so my use case class shouldn't know about Android Sep 25 19:41:58 (or the implementation of the dependency being injected) Sep 25 19:42:28 I've created a wrapper around in app billing. It actually all works. Sep 25 19:43:23 But now when I got to writing tests, I can see a flaw in the way I did things: my use case object depends on a callback from the IAP wrapper (onFinsh(), say) Sep 25 19:44:02 My mock IAP object doesn't call the callback, and all the tests fail. Sep 25 19:44:04 Yay. Sep 25 19:44:29 Any ideas on how to go about this? Sep 25 19:45:34 p.s. I'm not using dagger. Sep 25 20:13:58 MikeWallaceDev: what's a "clean codish type architecture"? Sep 25 20:21:27 MikeWallaceDev there was a presentation on realm website for viper Sep 25 20:21:48 was wondering if i could use an emulator on a different computer Sep 25 20:22:09 i have two laptops with real shitty cpus and was looking to dedicate one to testing my apps Sep 25 20:26:38 was wondering if i could use an emulaator on a different computer Sep 25 20:27:09 i have two laptops with really shitty cpus and was looking to dedicate one to testing my apps Sep 25 20:57:08 Anyone here? Sep 25 20:58:20 HunterDev_: Hi there! Sep 25 20:58:44 I need help with something, is this the right place/ Sep 25 20:59:05 HunterDev_: No Sep 25 20:59:40 HunterDev_: we don't lend money Sep 25 20:59:53 I need help with an imageview Sep 25 21:00:48 Could you just state your problem and ask your question, please? Sep 25 21:02:33 I have an imageview that displays an minecraft skin (e.x.: https://seuscraft.com/assets/images/skins/body-front/ba0c461492db00bbc8b1d2341ea70e0551c0f3f99.png?width=200&overlay=1), yet i want a drop shadow around it. Sep 25 21:02:37 Is this possible? Sep 25 21:03:37 The drop shadow would be like this: http://i.stack.imgur.com/QnlAa.png but black instead of red Sep 25 21:08:29 HunterDev_: http://stackoverflow.com/a/24579764 Sep 25 21:27:21 HunterDev_: you're welcome Sep 25 21:27:58 Arancio, It's a derivative of Clean. But which UI, Presenter, Use Case as normal. Sep 25 21:30:12 And, after thinking about it more, I think that I'm going to have to do all the setup of the object before passing it in to the UseCase class Sep 25 21:30:47 Though I'm still not 100% satisfied with this solution... Sep 25 21:55:22 Thanks Arancio. Sorry for the long response i was trying to figure it out. While i was unable to use your response, the code that you gave to me helped me figure out a better approach, since my image has the same dimensions every time. Sep 25 21:59:55 HunterDev_: I'm glad I've been useful even if indirectly. Thanks for the feedback Sep 25 22:36:31 Conflicted on my apps name Sep 25 22:36:58 Currently called spacehub -> thinking about rebranding the app to "horizon" Sep 25 22:37:25 seems more..."brandable" Sep 25 22:37:28 thoughts? Sep 25 22:55:16 any idea what I'm doing wrong here? http://pasted.co/9145b6d5 Sep 25 22:57:46 Is mLayoutManager defined above? Sep 25 22:57:57 no Sep 25 22:58:12 but I'm trying to set the layout manager after the inflation Sep 25 22:58:12 ....? Then of course your gonna get an error Sep 25 22:58:43 No, do you have private LinearLayoutManager mLayoutManager; defined? Sep 25 22:58:53 its initialized after in onCreateView Sep 25 22:59:11 thing is I dont have mRecylerView initiliazed until after ButterKnife.bind Sep 25 22:59:15 so I don't get why I'm getting an error Sep 25 22:59:33 Post the entire class please Sep 25 23:00:16 http://pasted.co/9e5f5592 Sep 25 23:01:44 change RecyclerView.LayoutManager to LinearLayoutManager Sep 25 23:02:19 okay, still get the same error though Sep 25 23:02:24 why does that matter? Sep 25 23:03:56 It probably doesnt but other than that your code looks fine. Sep 25 23:04:01 Try a clean/rebuild Sep 25 23:04:35 it seems like on the inflate in onCreateView its trying to initialize the recycler view for some reason Sep 25 23:04:46 I meanI could try and move that logic into onCreate, but that'd be an ugly solution imo Sep 25 23:05:32 No, that wouldnt work because the RV wouldnt be inflated Sep 25 23:05:39 Its in the right place Sep 25 23:06:25 before this I had this logic in an activity's onCreate and it was working fine Sep 25 23:06:55 same error after clean/rebuild Sep 25 23:07:51 Your layout isnt inflated until onCreateView, so you couldnt do anything with your recyclerview in onCreate Sep 25 23:09:08 then how does it expect me to add a layoutmanager Sep 25 23:10:44 you can simply do recyclerview.setLayoutManager(new LinearLayoutManager(getActivity())) Sep 25 23:14:23 i guess, I don't think that will fix the issue though Sep 25 23:46:00 TacticalJoke did you see this? https://www.reddit.com/r/programming/comments/54dk6t/kotlin_in_production_what_works_whats_broken/ Sep 25 23:46:17 Yeah. Sep 25 23:46:27 surprised about the 'whats broken' section Sep 25 23:47:56 "Here the Kotlin plugin has a lot of work to do to catch up with what Jetbrains has built over 15 years for Java." Sep 25 23:49:00 Yeah, I thought the IDE integration was better than what that article states. :s Sep 25 23:49:01 does anyone know a way in studio to generate calls to all object's pojo setters? (o.setX(...); o.setY(...);)? Sep 25 23:49:43 in Eclipse, it was something like ctrl+c in the methods in the structure view Sep 25 23:51:05 oh Sep 25 23:51:11 it seems the same in studio Sep 25 23:52:38 g00s: I was looking through the Jack source last night and saw something like `import eclipse.internal.compiler.[something]`. Sep 25 23:52:52 Can't find it right now, but I'll look again in a while. Sep 25 23:53:12 It'd be so cool if we end up with Eclipse-style incremental compilation. Sep 25 23:53:51 TacticalJoke yeah i think its based on ecj Sep 25 23:54:34 g00s: Do you remember where you read that? Sep 25 23:54:46 no :( Sep 25 23:55:15 Just saw this: "The jack compiler is built around the Eclipse java compiler.": https://www.guardsquare.com/blog/the_upcoming_jack_and_jill_compilers_in_android Sep 25 23:55:55 ah ok Sep 25 23:56:04 TIL /r/privacy Sep 25 23:56:46 These are the kinds of import statements I'm referring to: https://android.googlesource.com/toolchain/jack/+/ub-jack/jack/src/com/android/jack/frontend/java/JavaParser.java Sep 25 23:57:30 I've not properly checked out /r/privacy yet. Sep 25 23:58:11 TacticalJoke did you see that bit about Andromeda Sep 25 23:58:30 maybe we talked about it yesterday. not much is known Sep 25 23:58:37 I saw the Paranoid Android article. Sep 25 23:58:57 I mean 'Android Police'. :D Sep 26 00:00:52 i'll wait for the big announcement oct 4. if its looks like status quo for a bit longer (java, ART, etc) i'll start poking around with ceylon Sep 26 00:07:05 The Ceylon FAQ says "The Ceylon compiler uses the bytecode generator in Open JDK to produce Java bytecode". Do you know what they're referring to? Sep 26 00:21:16 TacticalJoke no Sep 26 00:22:02 typically compiler has front end (parsers) and back end (code generator), they are probably just using the back end Sep 26 00:22:26 for something like gcc, backend would also have register allocators, etc Sep 26 00:53:48 g00s: Do you prefer Ceylon to Kotlin? Sep 26 00:54:01 Question about Retrofit call. I've got a comment I want to update in a fragment. Is it best to perform the Retrofit call in the fragment or try to send it back up to the hosting Activity? Sep 26 00:56:58 Do I need to implement a background service for something like this? Sep 26 01:04:44 TacticalJoke i don't know much about either; ceylon seemed more ambitious to me Sep 26 01:15:59 Greater ambitions, greater failure Sep 26 01:19:15 Why don't setElevation() work on the itemViews of a RecyclerView? Sep 26 01:24:28 you need some padding probably Sep 26 01:27:06 g00s: Yeah, seems more ambitious. Sep 26 01:27:29 Arancio: View.setElevation won't work between items. Sep 26 01:27:54 Oh, does that work, Zharf? Haven't tried it yet. Sep 26 01:30:30 TacticalJoke: at the same time Material Design guideline prescribes that object should not penetrate into each other while moving. They should be at different levels. How do I raise an item while it's being dragged? Sep 26 01:33:26 Zharf: my item views have margin and round corners Sep 26 01:38:27 it works but only when I swipe not when I drag Sep 26 02:00:45 yes, it works but RecyclerView is a mess Sep 26 02:15:32 It seems likely that the Andromeda thing is true (e.g., see https://9to5google.com/2016/09/25/google-is-testing-andromeda-chrome-osandroid-hybrid-htc-nexus-9/). Sep 26 02:16:15 I hope we're not expected to use Fragments to scale deal with laptop screens. Sep 26 02:16:21 -scale Sep 26 02:17:19 andromeda was what I was gonna name my app Sep 26 02:17:38 Oh no. lol Sep 26 02:18:01 Is it the same app as before or a new one? Sep 26 02:18:29 well it was another app but I never made it past the beginning Sep 26 02:20:41 what was the andromeda app about Sep 26 02:21:01 it was going to be like flipboard Sep 26 02:21:15 but more open and free Sep 26 02:21:28 so like a news app? Sep 26 02:21:43 yeah by the public for the public Sep 26 02:21:50 neat. Sep 26 02:22:04 im seriously considering rebranding and re-releasing my entire app Sep 26 02:22:20 orbyt_: what app is that? Sep 26 02:22:35 spacehub: https://play.google.com/store/apps/details?id=orbyt.spacehub Sep 26 02:23:00 the goal is to make people feel more "connected" to space Sep 26 02:23:22 nice! Sep 26 02:23:38 i chose spacehub because the name is descriptive Sep 26 02:23:46 but i feel its not "brandable" Sep 26 02:24:11 like people who aren't normally interested in space would probably hear "spacehub" and not be interested Sep 26 02:24:15 you should make another app instead of rereleasing Sep 26 02:24:26 what do you mean Sep 26 02:24:50 I mean change the name so people think it's brand new Sep 26 02:25:04 if you are going to change it anyway Sep 26 02:25:08 Yea thats what i would do, would be completely re-released Sep 26 02:25:21 would just tell current users to download the new one Sep 26 02:25:22 oh ok Sep 26 02:25:34 im thinking about calling the new one "horizon" Sep 26 02:25:43 still mulling it over though Sep 26 02:26:13 thats not a bad name Sep 26 02:27:07 yea. trying to think long term, but im not sure if its worth losing my initial following and downloads Sep 26 02:27:13 I got closer to finishing my media player app, but the last bugs and problems are super annoying Sep 26 02:28:54 and the more different devices I test on the more different problems ... android dev sucks Sep 26 02:29:39 Mo' devices, mo' problems. Sep 26 02:30:10 shmooz: Why not just create a simple app (such as a Reddit client)? :D Sep 26 02:30:40 heh, that would be a bigger nightmare probably Sep 26 02:31:02 He would know =/ Sep 26 02:31:28 TacticalJoke: have you released it ? Sep 26 02:31:39 Not yet. Sep 26 02:31:59 are you stuck? Sep 26 02:32:15 It's not that difficult, though. The most complication is the Markdown parser, but even that can be broken down to simplicity. Sep 26 02:32:25 Nah, it's going really well. Sep 26 02:32:32 s/most/biggest/ Sep 26 02:32:37 cool Sep 26 02:33:30 I don't even download or install apps anymore, I'm not much of a smart phone user I guess Sep 26 02:33:43 I'm guessing your issues boil down to media being complicated and awkward. Sep 26 02:34:27 TacticalJoke: they are pretty much the same issues as before which we talked about but I don't expect you to remember Sep 26 02:34:46 one big issue was trying to replace MediaPlayer with ffmpeg Sep 26 02:35:22 and get shoutcast, icecast and whatever url streaming of the aacdecoder working on all devices Sep 26 02:35:28 it works on some, not on others Sep 26 02:36:28 to compile the ffmpeg that's gonna work on old and new devices I had to go find Ubuntu 11.04 because it needs specific libs from that system Sep 26 02:36:48 Jeez. Sep 26 02:37:15 That's the kind of complexity that scares me. Sep 26 02:38:01 yeah so instead of dealing with that I continued working on the UI and settings and whatever, it's stuck with MediaPlayer and some AACdecoder lib Sep 26 02:44:15 I should just make a fart app, but that would probably be too hard too Sep 26 02:44:35 you fart and send the sound to anyone in your contacts Sep 26 02:45:09 Still involves media playback. lol Sep 26 02:48:22 there's no escape! sigh Sep 26 02:48:25 An idea I had before was a dare app, which could be used in a game of Truth or Dare. Users submit and rate dares, and the app pulls one at random from a list of high-rated dares. Sep 26 02:48:46 Though setting up and running the server would be annoying, especially if no-one used it (likely). Sep 26 02:49:41 you'd be in court in no time Sep 26 02:49:49 for making a dare app Sep 26 02:50:10 and look what they dared my son to do! Sep 26 02:50:46 haha Sep 26 02:51:11 Your response could be "I dare you to take me to court". Sep 26 02:51:35 "Just see what happens." Sep 26 02:52:27 I dunno. I use Android only for reading Reddit, playing chess, messaging, browsing the web, and phoning. Sep 26 02:53:05 Oh, and listening to music. Sep 26 02:53:16 And watching YouTube videos. :s Sep 26 02:54:24 Though if programming is your hobby then it could be about the journey rather than the destination. Sep 26 02:54:44 let me see now the only apps I use is pocketcasts and flipboard and they both bore me Sep 26 02:56:09 I just finished GTA 5, now that's accomplishing something Sep 26 02:56:24 Nice. Sep 26 02:56:39 I played it a little, ages ago. Sep 26 02:56:57 that's where Roman Guy went Sep 26 02:57:00 You could pick up chess and aim to become a FIDE Master. Sep 26 02:57:09 He went to GTA 5? Sep 26 02:57:28 when he dropped android he had a GTA5 graphics obsession Sep 26 02:57:47 Didn't know that. ;o **** ENDING LOGGING AT Mon Sep 26 02:59:58 2016