**** BEGIN LOGGING AT Mon Oct 31 03:00:01 2016 Oct 31 03:25:45 killer, lets see the rest of your layout. Oct 31 03:27:39 It's just the basic app_bar_main.xml , if you click on create new navigationbar layout on new project , http://pastebin.com/LKWYmsTj Oct 31 03:43:36 hello, could anyone recommend a library with a compact date picker? eveything I see so far is quite hefty in size. including 3rd party libs Oct 31 03:43:52 ideally something that looks material design-y Oct 31 03:44:34 and it's free and easy to use Oct 31 03:44:51 and has a small memory footprint Oct 31 03:45:02 and it's fast and well documented Oct 31 03:45:17 and well-tested Oct 31 03:45:34 and works with the Maya calendar too Oct 31 03:46:18 Melatonina, @ me? I think I missed a line with the actual suggestion. Could you resend? Oct 31 03:46:36 I wish I knew Oct 31 03:46:43 ah nevermind. Oct 31 03:46:54 sorry I wasnt sure if you were talking to me or not Oct 31 03:47:17 did you have a look at the Arsenal? Oct 31 03:48:05 https://android-arsenal.com/details/1/3779 Oct 31 03:48:45 https://android-arsenal.com/details/1/3436 Oct 31 03:48:55 oionby: did you check those ones? Oct 31 03:49:40 Melatonina, Ah I forgot about arsenal. I'll take a look Thanks! Oct 31 04:02:25 is it okay to ask for help with bugs in here? Oct 31 04:02:29 or is that another channel? Oct 31 04:03:20 bioemerl try #insects Oct 31 04:03:34 I'm going to assume that's a "yes" Oct 31 04:03:52 and those sorts of bugs are easy to deal with Oct 31 04:04:41 I've got a situation where if I start my app through "share" it will stop creating new activities. No errors, and the timeline shows that a creation was requested, but it doesn't actually do anything. I thought it was RAM, but looking at the monitor shows that it's not using that much. Oct 31 04:05:51 the one thing I can think of that might be causing issues is that, to prevent the app starting as part of the thing that opened it, I immidiately start a new activity using the one that "sharing" passes the image to, and finalizing the activity that opened the new activity Oct 31 04:06:26 is there something obvious I'm missing somewhere? Oct 31 04:14:48 bioemerl pretty sure when share intent is received, a new task is created ... google it Oct 31 04:15:36 I don't need google because I had a file explorer, I shared the image with my app, and it started my app "within" the file explorer Oct 31 04:15:54 to prevent that I had it start a new activity as a new task, and that fixed the problem, but I think that's the source of my current issues Oct 31 04:16:16 using the flag "new task" or something like that Oct 31 04:17:29 well, I can create a new activity once, but after that I can't create a new activity again. So it's kind of Explorer -> my app - > activity of my app - > stops making new activities with no bugs and a request to make a new activity Oct 31 04:18:03 and it works fine when it isn't shared, unless it's a bug I've only run into when using shared images for some reason Oct 31 04:21:05 I don't know, it's a really really weird thing that only happens sometimes Oct 31 04:48:40 well, I may have fixed it by setting the manifest adroid:lauchMode for my "main activity" that the app always starts from as single task. I don't know why that fixed it, or even if it did, but it's a start? Oct 31 04:49:29 I don't know, I figure this way is less hacky-feeling so maybe whatever is acting weird won't anymore. Oct 31 04:49:34 cya all later Oct 31 04:52:59 knock knock Oct 31 04:53:04 anyone up Oct 31 05:02:45 no, ssshhh Oct 31 05:16:07 k, I want to use a viewflipper. The view flipper will be inside a cardview, this cardview is common through my application so I have it created in XML. I don't need to change anything about it other than through xml. How do I make the cardview I created only in xml the rootview for other views? Oct 31 05:17:15 I want to use 1 cardview as the root for each of hmm... Oct 31 05:17:39 I just realized something else I can do, just make a cardview wrap the viewflipper. Oct 31 05:18:17 But, I do want to use the same cardview over and over... How could I go about doing that? I could make a class file for it, but as of now I don't need any runtime adjustments. Oct 31 05:26:28 Hi Oct 31 05:28:23 I am using retrofit. At 404 response, I send a string from server but on 200 response, I send an object (json nested object). The apiservices class needs a fixed object.e.g Call or Call> So what to do? Oct 31 05:34:18 404 is an error Oct 31 05:34:49 Just return the object that can parse the json Oct 31 05:56:10 Anyone know how to stop android studio doing this: public void dispose() { Oct 31 05:56:10 button.dispose(); Oct 31 05:56:10 } Oct 31 05:56:27 That didn't work... It randomly sticks everything on the same line. Oct 31 05:56:36 I want it to keep ^ over 3 lines Oct 31 05:57:05 folding? Oct 31 05:57:59 Not sure what it is. Sometimes I'll restant Studio and something like x { \n stuff \n } turns into x { stuff } Oct 31 05:58:40 find 'code folding' in the settings and disable it Oct 31 05:58:56 Awesome thanks Oct 31 06:20:17 PixelPerfect: I need to pass a text message to user. How can I do that in 404? Oct 31 07:33:37 Is it better practice to create the fragments for tabs when they are selected or when creating the hosting Activity? Oct 31 07:39:08 how many of them are there? Oct 31 07:39:41 generally 3 fragments are created and in memory - 1 visible and 2 adjacents Oct 31 07:44:42 4 tabs Oct 31 07:44:50 But more fragments, since some of the tabs have subfragments Oct 31 07:46:04 so 4 fragments, i wouldnt count the subfragments, they are part of the bigger fragment Oct 31 07:46:56 creating all fragments at once will result in more loading time. depends how heave are all the fragments Oct 31 07:47:05 if you can afford that, then go ahead Oct 31 07:47:09 at the moment I create all of them at the start, but the start is really slow Oct 31 07:47:49 well if you start, then only visible fragment and the right one is created Oct 31 07:50:09 so load only those 2 and see if theres significant improvement Oct 31 07:50:25 I do createTab for all 3 tabs Oct 31 07:52:18 all 4* Oct 31 07:52:36 but you use viewpager and its adapter? Oct 31 07:52:57 and its setOffscreenPageLimit() :? Oct 31 08:07:23 Ashiren: No, I don't use either Oct 31 08:07:58 huh Oct 31 08:10:34 I use ActionBar#addTab Oct 31 08:16:11 thats kinda deprecated isnt it Oct 31 08:19:04 Not on Android 17 Oct 31 08:26:02 Hi, I looked for a while and couldn't find a way - is there a way to flash flashable zips with the android emulator? the official one, not genymotion or other alternatives Oct 31 08:31:16 Can the NDK's ndk-build build a compiled binary with the linux headers I have on an Ubuntu machine? The code I'm trying to compile seems to have an include different from what the NDK's platform sources hold. Oct 31 08:51:48 fragile: Should be possible. Oct 31 08:52:05 Which include are you having trouble with? Oct 31 08:52:34 Oct 31 08:52:53 I've noticed some definitions are in linux/capability.h, but not all of them. Oct 31 09:05:28 barq: I bit the bullet and just did a bunch of messy renaming and copy/pasting to get it to compile alright. But a cleaner solution akin to just pointing it in the right direction would be very much appreciated still Oct 31 09:07:51 I haven't had problems with that specific header, but have with others Oct 31 09:35:29 I have a horizontal LinearLayout with a TextEdit inside with the width set to wrap_content. All works ok till I enter too much text, then it becomes wider and wider till it goes outside the right margin of the screen and continues growing past the right screen margin. I can't even scroll there, since view width is too large. Is there a way to limit a widget not to go outside the bounds of a LinearLayout? Oct 31 09:41:24 Hey hi , what's poppin guys i have a service and sometimes it restarts on its own even if its STICKY so i temporarely wanna store some data if service restarts what should i use to store data Preferences or Sqlite ? Oct 31 10:01:01 Hi all I have a question about padding vs margin android:paddingLeft="16dp" android:paddingRight="16dp VS android:paddingEnd="16dp" android:paddingStart="16dp" how these two are different? i been playing around with my layouts and I don't see any difference between these two Oct 31 10:02:59 droidace: end and start are for RTL Oct 31 10:04:12 thanks thepoosh. but why use RTL? Oct 31 10:04:51 because arabic, hebrew and some more languages are RTL Oct 31 10:05:02 RTL is the devil Oct 31 10:05:06 and hi thepoosh Oct 31 10:05:40 raoul11: RTL is your mother fucking tongue language Oct 31 10:06:10 ya, but as an ex webdev and a pretty shitty androiddev, i effin h8 it Oct 31 10:06:32 looooool Oct 31 10:06:39 thanks thepoosh Oct 31 10:07:08 raoul11: I get you :( Oct 31 10:07:15 also hate RTL Oct 31 10:07:23 yet we support both hebrew and arabic :( Oct 31 10:07:42 i can feel your pain brother Oct 31 10:07:44 arabic is for terrorists and good hummus Oct 31 10:08:00 razist Oct 31 10:08:19 Leeds: you're forgetting of course tehina and coffee Oct 31 10:08:47 don't forget prepending 'democratic' before 'terrorists' Oct 31 10:09:01 democratic republic Oct 31 10:09:07 thepoosh: I prefer tea, but you're right about the tehina Oct 31 10:09:11 democratic child beheaders Oct 31 10:09:18 like that Oct 31 10:14:55 who would prefer tea over coffee?! Oct 31 10:15:00 what's wrong with you?! Oct 31 10:16:06 thepoosh: when your event starts Oct 31 10:16:11 was it Tuesday? Oct 31 10:16:29 Monday Oct 31 10:16:32 7th Oct 31 10:16:37 thepoosh: I *am* English, you know... Oct 31 10:16:43 hmmm... Oct 31 10:16:45 no I mean that firebase speech Oct 31 10:16:48 no cure for that Oct 31 10:16:55 Nov 7th Oct 31 10:16:58 next monday Oct 31 10:17:13 you prepared Oct 31 10:17:18 sort of Oct 31 10:17:21 ok Oct 31 10:17:24 missing some images Oct 31 10:17:34 don't let me down Oct 31 10:17:41 are you gonna watch? Oct 31 10:18:07 if I don't forget and time matches Oct 31 10:18:31 12:00-12:30 Oct 31 10:18:39 in where? Oct 31 10:18:43 might be night here :) Oct 31 10:18:50 germany Oct 31 10:18:55 so GMT+1 Oct 31 10:19:11 then its cool Oct 31 10:19:25 yay! Oct 31 10:19:41 is it possible to watch? Oct 31 10:19:51 live stream on youtube Oct 31 10:20:11 thepoosh: make sure to reask about AB testing... Oct 31 10:20:23 sure thing Oct 31 10:20:24 https://www.youtube.com/watch?v=-03R4Fj79_E Oct 31 10:20:29 raoul11: the answer is gonna be Oct 31 10:20:34 bigquery? Oct 31 10:20:35 "do you have an account manager?" Oct 31 10:20:43 \: Oct 31 10:20:58 if you happen to see fontain there, tell her i miss her Oct 31 10:21:04 that answer was so priceless Oct 31 10:21:07 thepoosh: hire model girl to present slides Oct 31 10:21:19 he is the model girl squ Oct 31 10:21:20 we have a google person with us on stage Oct 31 10:21:29 plus, I'm sexy and I know it Oct 31 10:21:48 thepoosh: if u gonna mention bigquery at least 3x on stage, am gonna buy you a shawarma Oct 31 10:21:57 hmmmm Oct 31 10:22:14 she's on stage with us: https://twitter.com/zimmeter Oct 31 10:22:29 How does A/B testing prove a feature is worth deploying to every user? Oct 31 10:22:32 damnnn Oct 31 10:22:54 mflow: you initially decide what is considered success or failure Oct 31 10:23:01 I'm not saying she is lesbian but her topmost tweet is this: Oct 31 10:23:03 To the LGBT community: please know that you have millions of allies across our country. I am one of them.” Oct 31 10:23:13 lol squ Oct 31 10:23:17 was about to type that Oct 31 10:23:42 hillary is kinda gay Oct 31 10:23:49 not that there's anything wrong with it Oct 31 10:23:50 but the sample is small, maybe you picked the wrong user subset and they didn't like the feature tested, meanwhile some other subset likes it Oct 31 10:24:24 mflow: you must have more than I think 1k users for the buckets to meani anything Oct 31 10:25:51 thepoosh: Zimmerman is german surname, you can try to pick her up with german words like: Ordnung and Schwebebahn Oct 31 10:26:08 already married Oct 31 10:26:21 and my name is much more jewish than hers Oct 31 10:28:26 * thepoosh going to lunch Oct 31 10:37:09 thepoosh: https://www.youtube.com/watch?v=5yGOmamSuMA&index=20&list=PL61F6466900E47A07 Oct 31 10:37:24 thepoosh: put that background theme during presentation Oct 31 11:18:54 squ: I owould love to Oct 31 11:19:01 sounds cool Oct 31 11:26:04 Not sure why but Android Studio (seemingly) randomly highlights stuff and it stays highlighted. Anyone know what it is and how to disable it? Oct 31 11:31:06 Sanic: you'll have to give some more information Oct 31 11:31:51 I have no idea. :( I'll just be typing stuff in (dark theme) and stuff will stick highlighted in yellow. It's weird. Oct 31 11:32:06 do you have an active search? Oct 31 11:32:12 Ah wait it's telling me stuff can be simplified. Oct 31 11:32:27 My bad... :p Oct 31 11:33:11 it hilights you warnings Oct 31 11:33:21 as typical programmer you should ignore them Oct 31 11:33:50 lol Oct 31 11:43:22 Guys I'm on Gradle 3.1, IntelliJ Ultimate 2016.2.5 and build plugin 2.2.2, and every time only since this update, my IDE is saying that the gradle plugin used is incompatible Oct 31 11:43:51 I even tried cleaning the build, re-building it, disabling instant run, etc., Oct 31 11:43:54 None helped Oct 31 11:44:01 What can I do to make it work? Oct 31 11:44:13 I can still compile the APK manually Oct 31 11:44:27 using Gradle build, and then the APK works fine Oct 31 12:06:39 Hi, I noticed a lot of examples uses URIs in the following format tel:555, shouldn't the format be tel://555? Oct 31 12:10:09 Still no luck with getting the annotation processor to run in build tools 25 with jack. Build uses lombok (okay, auto-value good, but it is what it is) Oct 31 12:10:40 Basically it's as if compiling without any annotation processing Oct 31 12:20:51 Do you media libraries for video decoding/encoding that are better than the standard media library? Oct 31 12:29:19 Hi :-) Oct 31 12:29:28 Hi!!!!! Oct 31 12:29:43 What's your problem? Oct 31 12:29:53 Where'd I find the usage documentation to, eg http://androidxref.com/5.1.0_r1/xref/system/netd/server/CommandListener.cpp ? Oct 31 12:30:59 As in: Sure, I can read the code to figure it's 'ndc resolver setdns wlan0 local 8.8.8.8' to get DNS in a reverse wifi tether, but aren't there any proper, actual documentations of that? Oct 31 12:31:37 What's the Android pendant to man- and info-pages? Oct 31 12:32:21 It's not exactly a regular GNU or Unix userland, after all… Oct 31 12:47:16 goldkatze: sorry, I can't help you Oct 31 12:48:44 goldkatze: android documentation is bad and the platform is bad Oct 31 12:51:11 squ: Am well aware. Oct 31 12:51:48 maybe channel where they discuss rooted device, may help Oct 31 12:52:35 squ: Actually noticed the answer will be useless, as most apps wont accept that connection. Oct 31 12:53:06 what kind of connection it opens Oct 31 12:53:25 As in, eg Termux is online, all fine, ip/gate/dns all set up, but Android API will communicate that neither is wifi connected in client mode, nor is UMTS active. Oct 31 12:54:22 (reverse tether via wifi-ap on android or via ip over usb; works, except for most actual apps, which check net status flags of API…) Oct 31 12:55:14 you want to setup acess point out of android? Oct 31 12:55:56 and connect Termux to it? Oct 31 12:58:48 squ: Android's wifi runs in AP mode, a client connects to it. Client does NAT / masquerading, Android is set up to uplink through its own wifi client. Oct 31 13:00:14 squ: As in, there's no access point available, there's no mobile data available, but there's a wifi _client_ with a USB slot that's online, and should reverse tether for Android. This, however, does not work with most apps, because they'll assume the device is offline if neither mobile data is connected, nor wifi is in client mode. Oct 31 13:03:00 oh I see Oct 31 13:03:31 sounds like a bug in common apps for determining current network state Oct 31 13:16:15 Hmm guys, anyone? Oct 31 13:18:57 Hmm, no one, unfortunately Oct 31 13:49:59 Melatonina: Are you kidding? Oct 31 13:50:09 SHC: yes and no Oct 31 13:50:48 Hmm, not to offend you, but this is the most typical reply I've got in years on the internet Oct 31 13:51:46 "most typical" of what? Oct 31 13:52:08 "most typical" without context doesn't mean much Oct 31 13:55:13 anyway, "Hmm, no one, unfortunately" was just a vaguely humorous reply that I gave just to not let your "anyone?" cry fall into silence. So relax. Oct 31 13:56:05 There was not much meaning behind it. It was just to make you feel there was someone on the other end of the Internet to listen to you Oct 31 15:04:15 The seek() method in MediaExtractor is declared with this annotation: https://gist.github.com/anonymous/9ed8cf1e4380932e2af90a0704ade7a4 In my code I defined a java enum with 3 values each associated with one of those 3 int constants. The enum has a method getXyzValue() to retrieve the int value. I'm unable to compile some code calling seek() with the value returned by getXyzValue() because of that annotation. What can I do? Oct 31 15:08:28 what is the best way to convert html links to a custom uri pattern if the url starts with my website Oct 31 15:08:29 ? Oct 31 15:17:50 people in ##java are really stupid Oct 31 15:18:01 yes. Oct 31 15:18:03 :) Oct 31 15:18:15 Melatonina, well, you could just use those constants directly Oct 31 15:18:19 or just supress the linter error Oct 31 15:19:52 I know. I'll suppress the warning Oct 31 15:21:22 idoko, how do you mean? Oct 31 15:21:31 lol Melatonina Oct 31 15:22:09 did you get botted to death with links to read? Oct 31 15:22:24 teracotta, i'm getting a json response that includes html links (anchor tags), i want to open a new activity using details from that link Oct 31 15:22:52 no, I had to waste time discussing if that was a "Java problem" or an "Android problem" Oct 31 15:23:24 it was a problem about annotations so it was a Java problem Oct 31 15:24:10 Melatonina java makes people cranky Oct 31 15:24:32 :) Oct 31 15:24:38 so does android :P Oct 31 15:24:41 yeah, but you mentioned android Oct 31 15:24:48 they really h8 android. Oct 31 15:25:11 Yes. It's childish Oct 31 15:25:16 well they see it as some buggy half assed bastard stepchild Oct 31 15:25:39 Anyway, the code is working. I'll read about Java annotation later Oct 31 15:27:35 If I could annotate the return type of my method with the same annotation, the warning would go away. I just can't find a way to annotate it. It's not important Oct 31 15:38:22 I am using a gif file for my widget but for some reason animation does not work, what might be wrong? Oct 31 15:38:41 hi Oct 31 15:41:01 pihpah: google says Android supports animated gif only as Movie. http://stackoverflow.com/a/7772170 Oct 31 15:41:10 pihpah: did you know otherwise? Oct 31 15:48:57 pfn https://news.ycombinator.com/item?id=12836812 Oct 31 15:49:31 Indeed, yeah, everything about it looks like a winner Oct 31 15:57:04 Ran into an issue last night with Retrofit..The json that is being returned has top level elements that are dates, so naturally they will change. Screenie: http://prntscr.com/d1ardp Oct 31 15:57:43 Now i've ran into a similar issue before, and what I did was use a Map in my models Oct 31 15:58:05 And the date in this scenario would be automatically parsed as a key in that map Oct 31 15:58:24 For some reason its just not working this time around, the map size is 0. Any clues? Oct 31 16:16:18 > You'll love using your phone for navigation, until you go to Canada, where you don't have data. (Or affordable data.) Oct 31 16:16:41 heh, verizon offers a roaming to canada for $2/day all-inclusive (i.e. it just deducts from your normal allowance) Oct 31 16:17:02 dunno if one considers that affordable... Oct 31 16:22:16 I think tmobile has free roaming Oct 31 16:27:03 Hi, getExternalFilesDir returns /storage/emulated/0/Android/data... but my sdcard is mounted somewhere else /mnt/media_rw/17E4-111F, any idea what's going on? Oct 31 16:34:12 Use getExternalFilesDirs, there are multiple external storages Oct 31 16:36:57 SimonVT: thank you, but I'm not sure to understand, in my device there is only one external sdcard, and no other devices connected to my virtual device Oct 31 16:37:21 soulisson: it could be hard-linked Oct 31 16:37:36 soulisson: it's just a speculation Oct 31 16:37:52 External storage doesn't mean removable storage Oct 31 16:38:55 There's usually "internal" external storage, and then some devices has a sd card as well Oct 31 16:39:26 == 2 external storages, which usually defaults to the "internal" (or non-removable) one Oct 31 16:40:51 https://developer.android.com/guide/topics/data/data-storage.html#filesExternal has a bit on it Oct 31 16:41:26 soulisson: http://stackoverflow.com/a/29427958 Oct 31 16:41:51 SimonVT: thank you Oct 31 16:42:05 soulisson: http://stackoverflow.com/a/17085841 Oct 31 16:42:52 Hey hi , what's poppin guys i have a service and sometimes it restarts on its own even if its STICKY so i temporarely wanna store some data if service restarts what should i use to store data Preferences or Sqlite ? Oct 31 16:43:31 whatever makes sense for the type of data you want to store Oct 31 16:44:12 depends on how much data, the structure of the data, and how long you want it to last Oct 31 16:45:57 s73v3r: pfn: i can call it a simple array JSON objects Oct 31 16:45:59 SimonVT: So the "internal" external storage might be simply a folder on the internal storage file system? Oct 31 16:46:07 array of JSON object Oct 31 16:47:17 how to set text paddings for Button? Oct 31 16:47:36 well, storing json wouldn't work well in sqlite, unless you destructure it into row data Oct 31 16:48:17 soulisson: They do some magic with partitions, but other than that it's the same memory chip Oct 31 16:48:24 Just available externally Oct 31 16:49:54 pfn: so prefrences ? Oct 31 16:50:06 sure, preferences work fine for string data Oct 31 16:50:13 as long as it's reasonably small Oct 31 16:51:06 pfn: like can you tell me to be a good coder how much can my preferences afford (size) ? Oct 31 16:51:22 a few KB Oct 31 16:51:32 pfn: few KB it is :) Oct 31 16:51:57 SimonVT: ok, there must be some voodoo because I typed the mount -l command and /storage/emulated is not listed as a mount point :) Oct 31 16:51:58 pfn: actually i doubt if it'll ever make a KB Oct 31 16:54:44 hi people Oct 31 16:56:56 why would you assume it's a mount point which would be listed by `mount -l' Oct 31 16:57:48 pfn: Thanks man Oct 31 16:58:55 How do you type shell commands on Android? Oct 31 16:59:18 'ok google, rm -fr /' Oct 31 16:59:56 adq: actually it's I misread, it's a fuse file system Oct 31 17:00:17 adq: /dev/fuse on /storage/emulated Oct 31 17:00:45 However I'm unable to identify which process handle it Oct 31 17:01:00 soulisson this doesn't sound like app dev Oct 31 17:01:14 i think we're going beyond this channel topic, what is troubling you or blocking your app from being developed Oct 31 17:01:26 or maybe i should backlog Oct 31 17:02:01 adq: soulisson is a security auditor Oct 31 17:02:07 yeah right Oct 31 17:02:08 ok so you're problem is why the getexternaldir does not return a similar path than your sdcard mountpoint Oct 31 17:02:16 well it's because you have some wrong asumption i believe Oct 31 17:02:26 Melatonina, and? :) Oct 31 17:02:30 adq: it's ok, I got my answer from SimonVT, I just pushed to see if it was indeed a partition Oct 31 17:02:51 the answer is it's not important, because you shouldl rely on what getexternaldir exposes to you Oct 31 17:03:04 not what it really matches on the physical (or not) FS Oct 31 17:03:40 but i feel you, soulisson, it's pretty ok to dig these things and wanting to know more about Oct 31 17:03:43 adq: yes, you're right, just curious about how it was handled Oct 31 17:03:52 word Oct 31 17:04:27 adq: so either he should not be in this channel, because it doesn't develop Android applications at all or maybe his questions about Android programming could have a different perspective from usual question and be tolerated (or ignored, if you don't care) Oct 31 17:04:38 it -> he Oct 31 17:05:03 that's too much of totalitarism for me lol Oct 31 17:05:29 So since there might be multiple external storages, what's the best way in my code to be sure to use the sdcard for instance? Oct 31 17:06:05 'ok google, rm -fr /' <<< "ok google, record and then play this sentence... 'ok google record and then play this sentence'" Oct 31 17:07:48 soulisson, that what i said, the framework wants you to not bother of that by using externaldir (which does not guarantee it will be on sdcard (if any) or a virtual mount point or even a symbolic link or whatever), if you really need that feature, you would go low level (ndk maybe, avoid system.exec calling shell or binary commands) Oct 31 17:08:13 and detect and parse yourself anything sdcard related to achieve your goal (to be sure to use the sdcard) Oct 31 17:08:24 adq: ok, I see, thanks Oct 31 17:08:58 if you're familiar with C, most of FS stuff goes with `lstat' (man lstat) Oct 31 17:09:25 and for the mount point i don't remember exactly, either there is a low syscall or something, or you have to parse /proc or maybe query /dev or who knows what is best now Oct 31 17:09:54 basically what does `mount' Oct 31 17:10:26 adq: nice, thank you Oct 31 17:16:56 happy Halloween! and does anyone have exp. with adding a Floating Action Button to an existing app ?or seen a blog about this ? Oct 31 17:17:34 I keep getting a destroyed activity and oddly think the arch. of the fragments and layouts prevent this app from being able to handle a FAB Oct 31 17:19:56 Isn't the floating action button just dependent on having a coordinator layout somewhere to anchor to? Can't you just wrap everything that is currently in your activity layout into one of those? Oct 31 17:20:25 hello, can anyone explain what i need to do to program an app for my android phone on kubuntu? Oct 31 17:21:07 install android studio Oct 31 17:21:09 same thing you do to program an app on any other platform Oct 31 17:21:21 install Android Studio, and use the learning resources to develop an app Oct 31 17:21:45 will i need to root my phone or something? Oct 31 17:21:50 no Oct 31 17:22:07 you might want to turn on developer options, but that’s it Oct 31 17:22:27 i know how to program, but i am a complete beginner to android and apps Oct 31 17:23:01 install android studio, and go through the stuff on d.android.com or one of the books or udacity courses Oct 31 17:25:51 which openjdk version do i go for? Oct 31 17:26:00 the latest one Oct 31 17:26:01 hi2u: or be like me and make an app Oct 31 17:26:12 i've learned more that way Oct 31 17:26:15 I used openjdk 9 once Oct 31 17:26:17 bad times Oct 31 17:26:17 than on courses Oct 31 17:26:26 missingno: latest released one Oct 31 17:26:34 :D Oct 31 17:26:43 9 seems to be latest, bad experience missingno? Oct 31 17:26:45 so how do you record the screen on the emulator Oct 31 17:26:56 hi2u: 9 is not final yet I don't think Oct 31 17:27:13 although I don’t think I’ve used openJDK before; i’ve just used Sun’s Java Oct 31 17:27:18 err, Oracles Oct 31 17:27:26 maybe I should just open genymotion, I think that supports screenrecord Oct 31 17:27:37 too bad I can't run both at once Oct 31 17:27:56 there are packages that record your desktop. can’t you use one of those and just crop the video? Oct 31 17:28:13 o Oct 31 17:28:21 version 8 and 9 are available without ppa Oct 31 17:28:25 * missingno opens Quicktime Oct 31 17:28:37 what os do you run s73v3r Oct 31 17:28:41 OS X Oct 31 17:29:01 I'm about to ditch osx due to the sad state of mbps Oct 31 17:29:10 i’m not Oct 31 17:29:17 :thumbsup: Oct 31 17:30:45 missingno :D Oct 31 17:31:04 me looking too, hp spectre, dells xps Oct 31 17:31:16 some other dell with a weird # i can't remember Oct 31 17:31:42 the problem though is windows lol Oct 31 17:32:15 I try to ignore the existence of that OS Oct 31 17:32:17 i'm in the same predicament as tim bray https://www.tbray.org/ongoing/When/201x/2016/10/29/Post-Mac Oct 31 17:32:32 back in Ubuntu after a 5 year break Oct 31 17:32:33 i really can’t take most of those articles seriously Oct 31 17:32:35 i think MS has been doing more innovative stuff lately Oct 31 17:32:52 i also think we are now at the end of the Steve Jobs pipeline Oct 31 17:33:14 he said they had a few years of stuff in the pipeline around the time of his death Oct 31 17:34:05 So there is no one smart enough in the world after Steve Jobs? Oct 31 17:34:13 missingno yeah, but w ubuntu i can't run affinity designer or lightroom Oct 31 17:34:27 Melatonina not working at apple apparently Oct 31 17:35:01 They should hire Mark Zuckerberg Oct 31 17:35:30 that would be antithetical; apple sells you a product, zuckerberg sells you AS the product Oct 31 17:35:48 He knows Chinese and I read he is programming an AI butler Oct 31 17:36:26 I’d imagine Tim Cook knows quite a bit of Chinese too, considering he was head of supply chain before his promotion Oct 31 17:36:28 like the Iron Man's assistant Oct 31 17:36:35 friends, i have a quiestion, i want to add some gamification value to my little educational game app, the story is going from my house to the museum, in the way, the user (little kids) will play in the games i've make, thus, obtaining the "tickets" to enter the musem (if they don't play the games, they can't enter the musem), now, that view, of the gamification tickets i was thinking about something like Oct 31 17:36:37 a view that had the tickets on it, but they're darkened, and when the kid plays, he/she will earn a ticket... i'm thinking that i need to handle that view and a global variable of games finished? what do you think? the view would change depending on the state of global_variable Oct 31 17:37:20 srry for my awful english Oct 31 17:37:23 why would it be a global variable? Oct 31 17:37:25 hexagonSun_ thats a 'how do i program' question Oct 31 17:37:51 hexagonSun_: where are you from, if I may ask? Oct 31 17:38:17 g00s damn i don't mean it to, maybe a need a little guidance, s73v3r to pass the state of that variable through Activities, i guess Oct 31 17:38:38 wouldn’t you just have a user object that you retrieve? Oct 31 17:39:12 s73v3ri haven't implemented the users yet, you think i should start from there? Oct 31 17:39:52 yes Oct 31 17:40:00 at least a basic implementation Oct 31 17:40:58 s73v3r: thanks, i will start doing that then, im guessing then i'd just change the state of the gamification view based on the intents of activities from the user? Oct 31 17:42:49 http://android-developers.blogspot.com/2016/10/keeping-the-play-store-trusted-fighting-fraud-and-spam-installs.html Oct 31 17:44:13 hexagonSun_: ok, I have a friend at NSA. I'll ask him Oct 31 17:44:27 in the activity, you’ll have to retrieve the current user object Oct 31 17:45:31 Melatonina i'm from Canada :) Oct 31 17:45:42 ok, thanks s73v3r ! Oct 31 17:45:53 omg the moment I start recording this bug won't reproduce itself Oct 31 17:46:03 hexagonSun_: I thought everybody in Canada spoke English very well Oct 31 17:46:21 French Canada Oct 31 17:47:03 ^ Oct 31 17:48:28 Yeah. I meant that I thought everybody spoke English well in Canada, regardless of which part Oct 31 17:48:55 I thought them as approximatively bilingual Oct 31 17:49:02 I learned something Oct 31 17:49:29 KDEInit could not launch '/opt/android-studio/bin/studio.sh'.... what am i missing? Oct 31 17:50:07 not a clue Oct 31 17:50:26 Do you have x permission? Oct 31 17:50:43 the error message you get should tell you what went wrong Oct 31 17:50:46 hi2u i might be wrong, but studio.sh is not a directory, it should be executed by $ ./studio.sh Oct 31 17:50:50 whats the cmd line for arduino-studio? Oct 31 17:50:59 so ill just try same with sudo? Oct 31 17:51:05 shouldn’t need sudo Oct 31 17:51:38 look at the log. it should have the full error message Oct 31 18:03:04 where do i get the log from when i try opening arduino studio? KDEInit could not launch '/opt/android-studio/bin/studio.sh' Oct 31 18:08:08 if i'm implementing the onSwiped method from the ItemTouchHelper.Callback to notify my adapter of the dismissal of an element, how could i save the items NOT swiped in an array? the documentation says nothing about it Oct 31 18:08:28 you have the array of items, and the items that were swipted Oct 31 18:08:31 swiped Oct 31 18:10:12 s73v3r but the items swiped are not getting stored in an array Oct 31 18:10:24 think about it for a second Oct 31 18:10:33 you have all items. And you have the items you don’t want to save Oct 31 18:10:57 the final array after the swipes, right, how can i save that array? Oct 31 18:11:10 that’s a basic programming thing Oct 31 18:11:17 maybe i'm thinking about it the wrong way, i'm editing my callback method instead of the activity Oct 31 18:11:42 I need two icons to mark the begin and the end of a video clip in a larger clip. What do you think of these? https://snag.gy/UiGRgb.jpg https://snag.gy/Fszucf.jpg Oct 31 18:11:50 it’s fine, you’re just expecting it to be handed to you Oct 31 18:12:19 s73v3r i swear im not, im not that kind of asshole Oct 31 18:12:34 no, i mean you’re expecting the end array to be handed to you Oct 31 18:13:11 just think about it for a second: You have the array of all items, and you have the things that are being removed. How would you get the array you want from having those two things? Oct 31 18:13:39 resultingArray = firstArray - secondArray Oct 31 18:14:14 exactly Oct 31 18:16:32 s73v3r im sorry im kind of consufed, that implementation should be done on the activity where i call the startSwipe method or on my callback method inside my onSwiped method? Oct 31 18:17:10 that’s up to how you have things structured Oct 31 18:17:38 upgrade, -f and androi-studio not working. what am i doing wrong? https://paste.kde.org/p9hslvd74 Oct 31 18:17:53 i’d probably lean toward not having it in the startswipe method Oct 31 18:18:17 hi2u: it kinda says right there what you need to to Oct 31 18:18:19 do Oct 31 18:18:42 thanks s73v3r, for the patience and time Oct 31 18:21:50 s73v3r: for someone like me, it doesnt. im new to this OS Oct 31 18:22:09 read it. what does it appear the problem is Oct 31 18:22:26 i need java-sdk, but which one though Oct 31 18:22:35 it gives you 3 options Oct 31 18:22:44 any of those is fine, although I’d go with java 8 Oct 31 18:24:54 What about these? https://snag.gy/uipq9j.jpg https://snag.gy/CzYgLA.jpg Oct 31 18:24:59 Are these better? Oct 31 18:25:24 all books, ebooks, MEAPs, and pbooks 50% off today from manning Oct 31 18:25:26 i guess im too stupid s73v3r Oct 31 18:25:41 no, you’re just not willing to do work Oct 31 18:26:03 this isn’t an Android question, this is an Ubuntu apt question Oct 31 18:27:00 further, if you go to d.android.com, there is an installer there for AS for you Oct 31 18:27:09 don't you like pictures, guys? Oct 31 18:29:22 g00s: isn't book = pbook? Oct 31 18:29:48 Melatonina class pbook extends book Oct 31 18:29:54 :) Oct 31 18:30:16 ok Oct 31 18:30:57 ill try, thx s73v3r Oct 31 18:36:40 "Although most of the book's examples use the Scala language, no prior experience with Scala or Akka is required." umm Oct 31 18:37:40 So guys, do you prefer the first icons: https://snag.gy/UiGRgb.jpg https://snag.gy/Fszucf.jpg or the second icons: https://snag.gy/uipq9j.jpg https://snag.gy/CzYgLA.jpg Oct 31 18:39:57 Nobody cares, apparently Oct 31 18:40:24 it took me 1 minute to copy paste all your links Oct 31 18:40:31 wth are [ and ] Oct 31 18:41:51 both are bad Oct 31 18:41:53 why so black Oct 31 18:42:00 it's depressing Oct 31 18:43:11 "[" opening bracket, "]" closing "bracket" Oct 31 18:43:33 I can change the color later Oct 31 18:43:44 I'm worried with the shape first Oct 31 18:44:28 g00s: are those links difficult to open? Oct 31 18:44:59 They open easily here Oct 31 18:52:38 So my icons sucks but you don't want to tell me because you don't want to hurt me Oct 31 18:52:53 Wait, actually you told they suck Oct 31 18:54:18 Any one happens to know how to list the groups to which a user belongs to, I tried with groups and id but nothing useful was displayed Oct 31 18:54:19 ? Oct 31 18:54:42 I told you because they're black Oct 31 18:54:53 when was the last time you saw anyone use black for anything but text color Oct 31 18:55:07 the color is cheap Oct 31 18:55:31 I use it very sparingly, but that's just me, it's taste after all Oct 31 18:55:34 what controls the spacing between items on Android M? Oct 31 18:55:42 err, I mean in a RecyclerView Oct 31 18:55:56 I use item decoration for that Oct 31 18:56:00 suddenly, on M, I have this massive spacing between items Oct 31 18:56:03 g00s: that is why my irc client opens images inline Oct 31 18:56:09 but the layout shows that the cells are about the size they should be Oct 31 18:58:18 hi.... any list of good/popular android applications written in c++? Oct 31 18:58:53 Odaym: actually the icons will be white Oct 31 18:59:18 senaps: there are some that have a library written in C++, but few completely written in C++ Oct 31 18:59:20 games excepted Oct 31 19:01:56 As long as we ignore the little pieces of java you need to call through the jni Oct 31 19:02:14 s73v3r, so it's not worth it to think i can develop any good app in c++? my fried compiled an app written in Delphi Oct 31 19:02:31 it’s possible, sure Oct 31 19:02:44 but your best bet is to just use the given tools Oct 31 19:03:00 You are going to miss plenty of things from java though Oct 31 19:04:09 huh... what i'm mostly focused at are some webservices to run on mobiles too... what kind of libraries do we loose while using NDK? Oct 31 19:04:25 all the Java ones Oct 31 19:04:32 thepoosh i have that disabled for security reasons Oct 31 19:04:40 lame! Oct 31 19:04:44 unless you want to write JNI wrappers for them, which is a bad idea Oct 31 19:05:34 senaps there is a guy here who does his stuff in forth, if you are willing to work hard enough :D Oct 31 19:05:52 You can bind anything to the java APIs if you can write a c-like wrapper for JNI Oct 31 19:06:05 How good an idea that is and how miserable you'll be doing it is another matter Oct 31 19:06:06 hum... so we should get our folk's to learn java and don't even waste time for NDK Oct 31 19:06:35 pretty much Oct 31 19:06:37 yea it looks like it doesn't worth it! :) Oct 31 19:06:37 man you'll be lucky if you can get an app to say hello world Oct 31 19:06:41 senaps your folks ... should be able to figure this out ;) Oct 31 19:06:41 unless you’re doing games Oct 31 19:06:44 talking about wrappers and Delphi.... Oct 31 19:06:46 please Oct 31 19:07:07 g00s: are you buying Spectacles? Oct 31 19:07:18 thanks guys.... Oct 31 19:07:32 thepoosh what is that Oct 31 19:07:45 spectacles.com Oct 31 19:07:53 lol i use this https://www.spectacleapp.com/ Oct 31 19:07:54 Then the jni is not a bad idea if you have a big existing codebase Oct 31 19:08:09 thepoosh LOL ! Oct 31 19:08:12 fuck no Oct 31 19:08:15 ha! Oct 31 19:08:22 but you can take snaps Oct 31 19:08:25 with glasses! Oct 31 19:08:30 meh Oct 31 19:09:01 i'm waiting for them to be able to download what i saw as jpg Oct 31 19:09:07 straight from the noggin ! Oct 31 19:09:41 gif Oct 31 19:11:25 gfy is 600m right ? Oct 31 19:11:53 http://www.wsj.com/articles/gif-site-giphy-is-valued-at-600-million-1477906202? Oct 31 19:12:34 defaq Oct 31 19:12:38 that is a lot Oct 31 19:12:52 but they have a very good API Oct 31 19:13:47 Do they even have ads? Oct 31 19:13:56 Sometimes I read "site X is values N bazillions". And I ask myself? Based on what? Then I learn that is based on the advertisement and I wonder how is the advertisement in that site. Then I remember I use adblock. Oct 31 19:14:05 Internet is strange Oct 31 19:14:23 valuations are largely based on sales and projected sales I think Oct 31 19:14:28 they don't have ads, they have an API Oct 31 19:14:48 Melatonina: Its not based on advertisement Oct 31 19:14:51 dragorn thepoosh read any good books lately ? Oct 31 19:14:55 well, not it this case Oct 31 19:15:02 i Oct 31 19:15:04 in Oct 31 19:15:04 g00s: a non technical book Oct 31 19:15:10 thepoosh are you guys playing with kotlin at glide ? Oct 31 19:15:15 not for now Oct 31 19:15:36 we're treating it as a fad for the time being Oct 31 19:15:42 lol Oct 31 19:15:53 yeah i .. can see that kinda Oct 31 19:16:03 treat it like a fad and it will fade away Oct 31 19:16:05 reminds me of when groovy hit the scene Oct 31 19:16:27 yeah, and what about Java?!? Did you remember it? Oct 31 19:16:47 thepoosh use AWS lambda ? Oct 31 19:17:02 yes Oct 31 19:17:06 like ? Oct 31 19:17:21 I can ask one of our backend guys Oct 31 19:17:26 dunno if it's liked Oct 31 19:17:30 :D Oct 31 19:17:39 I don’t think Kotlin will stick unless Google officially supports it, which they won’t Oct 31 19:17:53 If they did I’m sure it would explode like swift Oct 31 19:17:59 Kotlin is not bound by the support of people who think it's cool or not Oct 31 19:18:06 thats the trick with this stuff (AWS, cloud, etc) it lets you get up and running really quick, but becomes expensive pretty quick too Oct 31 19:18:29 it's backed by a huge company and it's a very strong language..you might not like it now because it's labeled as the Swift of Android, which it isn't! Oct 31 19:18:40 konk3r: seems like they will push flutter Oct 31 19:18:42 it's not going anywhere Oct 31 19:18:51 thepoosh i think so too Oct 31 19:19:52 "With 65 million unique visitors a month, Giphy has already attracted advertisers ready to get into the GIF creation game." "Giphy will have no problem lining up content and advertising partners." Oct 31 19:19:59 guess we'll have to wait until next dart dev summit and andromeda announcements in 2017 :P Oct 31 19:20:06 "Giphy hasn’t generated any revenue to this point" Oct 31 19:20:10 projected sales ;) Oct 31 19:20:11 I don’t think it’s going to fade away, but I don’t think it’s going to take off. I absolutely love it but I don’t want to use it in a professional project until it’s standard for future job candidates to already have it Oct 31 19:20:15 either that or current sales Oct 31 19:20:16 sales of ads Oct 31 19:20:18 money talks baby! Oct 31 19:20:20 money talks Oct 31 19:20:33 g00s: Yeah, I love heroku for that. It’s awesome to start with, but not feasible to scale to any level Oct 31 19:20:35 People here said it was not about ads Oct 31 19:20:43 people here are people here Oct 31 19:20:48 ok Oct 31 19:20:50 you seek your own truth...young padawan Oct 31 19:20:59 Ok I will Oct 31 19:21:03 Ok let's go Oct 31 19:21:40 konk3r and its a pita comparing pricing between aws, azure, etc - some treat message as 1K, others as 4K ... if you send 4K to the 1K guy they price as 4 1K messages, etc Oct 31 19:22:02 Yup Oct 31 19:22:43 I’m happy that I’ve never had to get deep into the devops side of things Oct 31 19:23:06 These are pains I don’t want to deal wtih Oct 31 19:27:57 although as a mobile dev that might need a backend, seems like many of us would need to think about these things once in a while Oct 31 19:33:16 I put the icons in the player. How do they look in context? https://snag.gy/CJBV54.jpg Oct 31 19:34:24 thepoosh looks cool http://blog.karumi.com/android-devs-we-were-blind/ Oct 31 19:35:52 g00s: I have seen so many of those Oct 31 19:35:57 not excited Oct 31 19:36:41 so thats a meh Oct 31 19:36:56 no, they might actually do what they promis Oct 31 19:37:01 promiss Oct 31 19:37:12 but I've heard this promise too many times Oct 31 19:37:54 thepoosh meant to write the word "promise" Oct 31 19:37:57 so its a promehs Oct 31 19:38:07 הבטחה Oct 31 19:38:11 easier in hebrew Oct 31 19:39:32 actually, he was right. It would be a pro-miss Oct 31 19:39:51 If they missed to deliver what they promised Oct 31 19:42:56 hey guys, i need some help with viewpager Oct 31 19:43:06 basically, if I use Glide there is a slight delay for the initial image, but the scrolling is very smooth once it loads Oct 31 19:43:23 however, if i use setImageResource it loads instantly but the scrolling is anything but smooth in the pager Oct 31 19:44:33 What does the profiler say? Oct 31 19:46:06 Mavrik: no problems reported in logcat Oct 31 19:46:15 Profiler, not logcat. Oct 31 19:46:34 Go check why is your viewpager stuttering. Oct 31 19:46:46 where is that in ddms? Oct 31 19:54:59 the hell Oct 31 19:55:02 lol that just randomly worked Oct 31 19:58:56 spoke too soon Oct 31 20:01:50 i'm really sorry to be so persistent, but i'm trapped, it comes down to this, i have a recyclerview, each element of my recyclerview is an instance of a "Food" object, after i dismiss element from my recyclerview, i want to store the name attribute of the Food objects that remain on the recyclerview, i can't seem to makie it so, i've been trying to put a button on my activity that displays a toast with Oct 31 20:01:53 this attribute so i know i can see them, but i can't seem to make it work, i'll send the code Oct 31 20:07:05 here's my food class http://pastebin.com/EzMkpAjz the food adapter class http://pastebin.com/baNYd7C0 and the activity class where i get the error trying to display the current elements of my recyclerview http://pastebin.com/h26xiWYs (and just in case, my callback class http://pastebin.com/Xy3BYJ1R) Oct 31 20:07:25 (i've marked the error in a comment) Oct 31 20:09:19 i've tried almost everything on that second toast.makeText attribute, i don't know how to point to my food.nameOfFood of the food that's on the recyclerview Oct 31 20:20:19 It'd be really nice to be able to change the context of an alertdialog after building it. Or to just have a way to say "I don't care what activity is running, just show this when I tell you to". Sigh. Oct 31 20:21:16 lol wut, some little kid dressed as pepe the frog Oct 31 20:21:24 HA Oct 31 20:21:30 pic or it never happened Oct 31 20:21:36 as pepe? or just as a frog? Oct 31 20:22:03 probably just generic area frog Oct 31 20:32:32 hexagonSun_: you are from Canada and write you code in Spanish Oct 31 20:36:52 Melatonina i work on a spanish university Oct 31 20:37:03 why so much interest? Oct 31 20:37:04 Cool Oct 31 20:38:32 Why are you using an ArrayList instead of an array? Oct 31 20:39:09 hexagonSun_: http://stackoverflow.com/a/9929344 Oct 31 20:41:27 hexagonSun_: see, I'm not a stalker. I'm a helper Oct 31 20:42:10 a stacker Oct 31 20:42:14 yeah, the thing is, i'm actually trying to see the name attribute of the objects on the recyclerview, i think i need to step away from the computer for a few minutes to clear my head and get air Oct 31 20:42:31 thanks anyway Melatonina :) Oct 31 20:45:30 I'm losing it with these fucking gradle files does anyone see why this gradle file:http://hastebin.com/tozelewume.php would generate these errors: http://hastebin.com/uwedevafiv.rb Oct 31 20:46:57 You haven't downloaded the support repo Oct 31 20:47:04 your first link doesn’t work, btw2 Oct 31 20:47:58 it does Oct 31 20:48:24 it seems theres no https://jcenter.bintray.com/com/android/support/appcompat-v7/24.2.0/ Oct 31 20:48:41 also download support repository in sdk manager Oct 31 20:50:26 Ashiren: I thought Google went full "we're special fucking snowflakes" and didn't put the repos in jcenter Oct 31 20:50:58 DAE notice that the attribute maxLength of EditText doesn't count characters but instead counts code points? Oct 31 20:51:03 And please watch your language Oct 31 20:51:49 rager: As it should be Oct 31 20:53:12 s73v3r: and what happens when you want to limit the length of the input, and users throw emoji at it? Oct 31 20:53:29 suddenly, maxLength no longer works, and you need to do some crazy crap Oct 31 20:53:52 no, you know that the number of characters isn’t correct, and hasn’t been for UTF for a long time Oct 31 20:58:34 Ashiren: thanks it was the support repo, this was a CI build so I tried installing every package but it must have failed out towards the end of the list and I didn't catch it earlier Oct 31 20:59:22 it'd be amazing if they could just put these on jcenter instead of doing moronic things like making us install via cli and referencing git urls as repos Oct 31 21:01:36 how can i set a String array to be equal to me object.name attribute? i tried doing that object.toArray(stringArray) but im never accesing the object.name attribute Oct 31 21:03:08 huh Oct 31 21:11:06 s73v3r: I think we're operating under different definitions of "should" Oct 31 21:11:56 why is this even so hard Oct 31 21:12:07 i can't believe it's been hours and i can't still make this Oct 31 21:12:15 haha Oct 31 21:12:20 i dont understand the question Oct 31 21:12:22 what are yo udoing, hexagonSun_ ? Oct 31 21:12:29 I'm in the same boat as Ashiren Oct 31 21:13:07 rager: trying to store my object.name attributes from a recyclerview in a String array Oct 31 21:13:28 (every element on the recyclerview is an instance of my object Oct 31 21:13:30 ) Oct 31 21:13:45 from what I remember, RecyclerView doesn't have a public instance field called object Oct 31 21:13:46 or name Oct 31 21:14:06 normally the adapter has the list Oct 31 21:14:12 no, i mean, not literally, my object is Called Alimento (food) and i've created the get/set methods of it Oct 31 21:14:20 object.name is meh. why not object.getName() Oct 31 21:14:42 Ashiren: that's what i really meant, i tried to make it shorter to explain Oct 31 21:14:48 guess it didn't work haha Oct 31 21:14:49 so? Oct 31 21:14:56 whats the error Oct 31 21:15:12 so it's not working i'm starting to lose my cool Oct 31 21:15:39 how is it not working? Oct 31 21:15:55 we are starting to lose our cool too Oct 31 21:15:57 hexagonSun_: are you using a custom adapter? Oct 31 21:16:32 rager: yes Oct 31 21:16:33 if so, just set an OnClickListener to the row view on binding that either emits to a PublishSubject the actual item being bound into the view Oct 31 21:16:34 or... Oct 31 21:16:40 call a callback given to the Adapter Oct 31 21:16:45 ezpz Oct 31 21:16:51 rager: i have a callback Oct 31 21:17:02 well, y'ain't using it right Oct 31 21:17:07 i'm just so new to this that i don't know how to approach my "problem" Oct 31 21:17:24 hexagonSun_: post code in a pastie/ hastebin/gist/etc Oct 31 21:17:25 i've actually setted up a notifier and all Oct 31 21:17:42 rager ok, i'll do it again, since it seems you got here after i send them :p Oct 31 21:17:53 I could scroll up, I guess Oct 31 21:18:30 rager: no, it's cool, so you can see my current code, it changed from last time Oct 31 21:18:54 I'm *always watching* Oct 31 21:20:04 I have a quick question on push notifications Oct 31 21:20:55 Does onMessageReceived() in GcmListenerService take place in a background thread or do I need to manually manage threads? Oct 31 21:21:31 hexagonSun_: so you're trying to listen to gestures on the child views? Oct 31 21:22:13 Who here uses certificate pinning in their apps? Oct 31 21:22:31 What is the advantage of pinning the entire certificate over just the public key? Oct 31 21:22:40 rager i'll send the pastebins, but just so you know i'm not asking for you to make my code, the guys at some point got tired of me asking because i think they think i was asking for the code, the real thing is my english is bad and i'm probably not explaining myself good, i just need a little guidance to understand what I should do Oct 31 21:22:41 konk3r: background Oct 31 21:23:01 konk3r: https://developers.google.com/android/reference/com/google/android/gms/gcm/GcmListenerService "Methods are invoked asynchronously." Oct 31 21:23:22 even better - blocking onMessageReceived wont block newer messages Oct 31 21:23:35 Ashiren: Thanks! perfect Oct 31 21:24:22 here's my activity http://pastebin.com/DB5finrx and the error i get is "Cannot resolve method 'makeText(anonymous android.view.View.OnClickListener, java.lang.String, int'" on line 92, here's my adapter http://pastebin.com/Bi2pKccG, my food class http://pastebin.com/undGe77C and my callback class http://pastebin.com/8r1sAb9n Oct 31 21:24:24 hexagonSun_: could you possible try to describe what you want to have when you're done instead of the code you're trying to build? Oct 31 21:25:04 hexagonSun_: omg Oct 31 21:25:14 because this refers to OnClickListener Oct 31 21:25:18 the error you describe is that `this` is pointing to the anonymous class' instance instaed of the activity Oct 31 21:25:19 yeah Oct 31 21:25:25 you probably mean Actividad001.this Oct 31 21:25:26 rager in the recyclerview i have implementes the swipe method, after i've swiped the elements i want to, i want to store the names of the elements i didn't swipe on an array, that's all Oct 31 21:26:04 besides why Toast instead of good old Log.d() Oct 31 21:26:07 hexagonSun_: so you essentially want to be able to swipe an element to remove it, correct? Oct 31 21:26:37 when you swipe an item, it's not on the list, and when you're done swiping, the items you want to have a list of are the remaining ones that didn't get swiped away Oct 31 21:26:50 rager, yes, i have already implemented the onDismiss function and it works like a charm, i just want the names of the elements i didn't swipe and i don't know where to get them from x) Oct 31 21:28:25 (if you want to see more or even test it, it's all on github https://github.com/alpihola/REIM ) Oct 31 21:31:19 Ashiren i was trying to test if i had correctly stored my Food.name attribute in my array, but i didn't haha Oct 31 21:31:47 i have already read the entire RecyclerView documentation from top to bottom quite a few times Oct 31 21:34:54 hexagonSun_: here's what I mean by using a listener set in the adapter: http://pastebin.com/FWdkYg6m Oct 31 21:36:13 whoops Oct 31 21:36:14 http://pastebin.com/S8itPePX Oct 31 21:37:05 here, the listener is added to the view in the adapter, and it calls through to another callback with the specific instance of Alimento that's been swiped Oct 31 21:38:06 you can define what to do on swipe in the Activity by assigning a callback with adapter.setOnAlimentoSwipeListener Oct 31 21:39:43 ok, let me try to understand step by step, a lot of new info Oct 31 21:40:07 hey guys, I am totally at a loss. Been trying to get a ViewPager to work from a FragmentDialog. It has three images which when I load with Glide works fine, excpet there is about a half second load delay Oct 31 21:40:28 when I use SetImageResource (or anything on the UI Thread) it loads instantly but he ViewPager scrolling is very rough Oct 31 21:40:47 i know its a problem with how the bitmaps are being rendered, i am just out of options that i can think of to get around it Oct 31 21:42:25 rager did you happen to see my SimpleItemTouchHelperCallback class before sending that? Oct 31 21:42:30 hexagonSun_: I forgot to hook up the GestureDetector to the actual holder.root view Oct 31 21:42:51 I did, but I didn't take much time to try to parse it out Oct 31 21:43:28 when my app is in multiscreen mode on a s7 there is a small dead touch zone on right side, I cannot seem to replicate in emulator either 6.0/23 or 7.0/24, is that a bug in the app or phone? seems like the phone Oct 31 21:43:45 my point is that you have the row view *and* the Alimento instance in AlimentoAdapter#onBindViewHolder Oct 31 21:44:01 so why not just set a listener for a swipe there that calls out to a separate callback? Oct 31 21:45:35 i don't know man, it seems i was trying to do something that is out of my league Oct 31 21:46:38 truth be told, i'm getting kinda frustrated, i'm trying to understand the code you send me Oct 31 21:46:44 give me a sec Oct 31 21:46:53 hexagonSun_: alternative approach Oct 31 21:46:55 or ah, 30 minutes Oct 31 21:47:23 add an Alimento field to the ViewHolder class, and just cast your ViewHolder instance to AlimentoAdapter.ViewHolder in onSwiped Oct 31 21:47:30 now you've got your Alimento instance Oct 31 21:49:25 you mean in this class? http://pastebin.com/wcE3qM12 Oct 31 21:52:20 (give me a few minutes, i will be back!) Oct 31 21:54:37 oh... Oct 31 21:54:38 huh Oct 31 21:54:47 hexagonSun_: since you're removing the items from alimentos Oct 31 21:55:01 why not just have a method called `#getAlimentos` on `AlimentoAdapter` Oct 31 21:55:13 since what you're asking for, in the end, is the list of not-dismissed items? Oct 31 22:04:31 hexagonSun_: sorry for confusing things so much Oct 31 22:12:23 anyone know what that blue outline around the window in multi-window mode is? seems its offset in my app Oct 31 22:15:22 seems its samsung specific Oct 31 22:21:33 rager hey no worries, i'm actually really thankful for all of your help Oct 31 22:22:07 i was thinking about making a function on the adapter class where i would set a String array[i] = food.getName, would that work? Oct 31 22:22:27 (i iterating through alimentos.size) Oct 31 22:36:20 guys Im struggling to change the color of of title of my app and my back arrow button. here is my styles.xml http://pastebin.com/eFAq0B0r Oct 31 22:36:35 i read this post and it doesnt make sense to me: http://stackoverflow.com/questions/18525793/how-to-set-the-text-color-of-titlebar Oct 31 22:41:05 why does View#getParent return a ViewParent instead of a ViewGroup? Oct 31 22:41:35 I guess the answer may be a Type Hierarchy away Oct 31 22:41:48 wait no only subclass is ViewGroup, remains a mystery Oct 31 22:51:34 how to I change the color of my font in my action bar? Oct 31 22:51:39 not aware of any situations where this is true, but technically it's possible that the ViewParent isn't a ViewGroup or even a View Oct 31 22:51:41 here's my styles.xml Oct 31 22:51:41 http://pastebin.com/eFAq0B0r Oct 31 23:07:40 rip droidace Oct 31 23:07:57 oh back arrow button that's even more fun Oct 31 23:16:32 Does Log impact performance very much? Oct 31 23:20:34 depends how much you're doing it Oct 31 23:30:06 like 30 times a second Oct 31 23:30:17 sorry, I forgot to tell the frequency Oct 31 23:30:29 30 Hz, one per video frame Oct 31 23:40:14 Ashiren you said something about why not X instead of toast, what was that? Oct 31 23:44:44 hexagonSun_: one of those messages that slide from below Oct 31 23:44:52 hexagonSun_: can't remember the name Oct 31 23:45:02 snackbar Oct 31 23:45:39 snackbar Oct 31 23:45:41 yes Oct 31 23:49:55 hexagonSun_: did you get the reply? Oct 31 23:49:59 oops, i think my internet restarted Oct 31 23:50:13 do i have my cloack on? Oct 31 23:50:14 yes Oct 31 23:50:21 Melatonina, yes, snackbar? Oct 31 23:50:24 yes Oct 31 23:50:34 Now your life can resume Oct 31 23:51:12 haha thanks Oct 31 23:51:35 Is it cold in Canada? Oct 31 23:53:33 it's about to rain and snow actually Oct 31 23:55:16 i've got to go now Oct 31 23:55:20 thank you all for your time Oct 31 23:55:29 sorry if i was too much of a pain in the ass today Oct 31 23:55:30 haha Oct 31 23:55:32 take care everyone! Oct 31 23:56:13 We didn't want to tell you but actually you have been Oct 31 23:56:23 but we love you anyway Oct 31 23:56:25 Bye Oct 31 23:56:47 <3 Nov 01 00:51:04 pfn looking at http://get-scala.org/2.12 Nov 01 00:51:25 "Scala on Android" so , is typesafe officially supporting Android now ? Nov 01 00:53:20 oh neat http://scala-android.org/ Nov 01 00:55:53 "And even Gradle is moving away from it and replacing it [Groovy] with Kotlin." ... are they rewriting it ? Nov 01 02:29:23 http://www.idc.com/getdoc.jsp?containerId=prUS41885416 Nov 01 02:53:06 hi, i am trying to test my first app but when try to create Virtual Device i got "HAXM requires a Genuine Intel processor" Nov 01 02:53:16 actually i am using Indel CPU Nov 01 02:53:19 Intel **** ENDING LOGGING AT Tue Nov 01 03:00:01 2016