**** BEGIN LOGGING AT Mon Dec 29 02:59:58 2014 Dec 29 03:12:10 ~throws things at his computer~ if (p.X < pointers.valueAt(0).X) {} ... p.X is always equal to pointers.valueAt(0).X, even though p.X is confirmed to be the value of ID[1]. Maybe it's how this silly SparseArray works... Dec 29 03:16:43 when using appcompat, do i need to only use appcompat for nope, same problem with hashmaps Dec 29 03:17:14 depends on what needs compatibility i suppose Dec 29 03:17:44 style Dec 29 03:18:05 and maybe cardview Dec 29 03:20:02 Sorry, don't have that information. Check with someone else. Dec 29 03:23:20 "We additionally had our lawyers review all the content for complience." Dec 29 03:23:24 holy shit, and they still got pulled Dec 29 03:23:54 who? Dec 29 03:24:03 http://www.superretro16.com/blog.aspx Dec 29 03:24:59 yeah i think the big guys are seeing a lot of potential Dec 29 03:25:06 just saw secret of mana released Dec 29 03:25:24 Hey guys, I can't get my R file generated and all my xml files are okay. Never got this issue before, but now I'm moving some projects around and I think I messed up in some point. Dec 29 03:25:27 you got millions of hardcore fans still, at 4-10$ a pop per game... that's a lot of money Dec 29 03:25:35 renanferrari: have you tried cleaning your project? Dec 29 03:25:40 renanferrari: and re-building Dec 29 03:25:40 What are other common cases where R files are not generated? Dec 29 03:25:43 Fall: Yep Dec 29 03:26:00 ok, that's what I usually do when I know my XML files are a-ok :) Dec 29 03:26:30 renanferrari: you have some error in your xml files or error in filename Dec 29 03:26:45 when you compile it whats it say> Dec 29 03:27:12 Fall: Yeah, me too. But that's not the case this time. Which is weird. Dec 29 03:27:25 lasserix: no errors in my xml Dec 29 03:31:34 You think maybe it's because photos of their app contained copywritten content that companies like Nintendo directly targeted in reports of copywritten content? Dec 29 03:38:21 Sorry, really tired, but what was the alternative to the class object that doesn't keep references to variables? Dec 29 03:38:47 ahh, right, struct Dec 29 03:38:48 weakreference? Dec 29 03:39:24 ornot Dec 29 03:43:28 basically, I have a problem with my touch coordinates overriding all saved touch coordinates, so comparing touch[1] against touch[0] becomes impossible.. Dec 29 03:46:08 no matter how many touch values i store, touch.x is always the same in all... Dec 29 03:46:19 Just found out what was wrong. I'm renaming my project's package name and turns out the R was being generated, but under the older package name. Dec 29 03:46:36 I knew it was something silly. heh Dec 29 03:47:01 I think I've only had that issue once before... took me hours to figure it out Dec 29 03:48:15 I just copy+paste the whole Manifest and the package name was different there (of course). Dec 29 03:48:58 I guess my current question is, how do I store non-referenced variables in java :/ Dec 29 03:49:13 in C#, I would use a struct rather than a class. Dec 29 03:49:24 Komak57 in java, just use a class Dec 29 03:49:53 not sure what you mean by non-referenced variables - primitives ? Dec 29 03:50:00 I did, but the values are updating without being told (aka, reference) Dec 29 03:50:32 Komak57 would be good to learn java a little better - i propose writing a java compiler :) Dec 29 03:50:57 in java* Dec 29 03:51:17 I'm having memory reference issues, where storing a variable is storing the memory location, rather than the value. Dec 29 03:51:32 thustly, when the variable changes, so does my stored value Dec 29 03:52:54 really handy when it'd intended. really bothersome when it's not Dec 29 03:55:05 at least, I assume this is the cause, as nothing else really makes sense atm Dec 29 03:57:16 is ADT open source? i thought so, but i am not immediately finding a repo. Dec 29 04:08:27 does anyone have a good example of a list item layout xml similar to the new gmail app? Dec 29 04:11:36 you mean generating a list of multi-content objects that act as a single selection? Dec 29 04:13:16 or the auto-pull when scrolling to the end of the list? Dec 29 04:16:36 hehe, i like the hystrix logo https://raw.githubusercontent.com/wiki/Netflix/Hystrix/images/hystrix-logo-tagline-640.png Dec 29 04:19:40 g00s: cute Dec 29 04:20:21 I've gotten nowhere with any of the round-about fixes for these variables. i must be missing something. Dec 29 04:21:26 without the ability to compare the position of 2 touches, especially ghost positions, I can't complete the project Dec 29 04:21:46 is it a good idea to put your versionCode in a gradle.properties file? Dec 29 04:22:38 * Komak57 throws pokeballs at missingno Dec 29 04:23:05 halp Dec 29 04:23:45 * missingno gets caught after some tense pokeball-rattling Dec 29 04:24:29 * Komak57 presses down-b in a hail marry attempt Dec 29 04:25:10 ahh the good ol days of red n blue Dec 29 04:25:27 oh there we go D: Dec 29 04:25:40 had to getX(ID) rather than getX() Dec 29 04:26:11 missingno: yeah Dec 29 04:26:15 missingno: err no build Dec 29 04:26:18 overrites manifest Dec 29 04:37:27 not sure what Dec 29 04:37:35 "overwrites manifest" means Dec 29 04:37:47 hmm I will try it Dec 29 04:41:20 I added Dec 29 04:41:27 or changed as t were Dec 29 04:41:33 defaultConfig { Dec 29 04:41:35 versionCode Integer.parseInt(project.VERSION_CODE) Dec 29 04:41:45 still builds fine Dec 29 04:42:23 so fingers crossed as to whether this helps me avoid AS gradle refreshing Dec 29 04:45:04 yay, it works! now I can work on special features :3 Dec 29 04:45:33 I come in here and thats the first message I see, its gonna be a good night Dec 29 04:45:49 Nice job Komak57 Dec 29 04:45:56 took me long enough =.= Dec 29 04:46:07 What were you doing? Dec 29 04:46:31 i'll probably watch some family guy before heading to bed. Leave the future bugs for tomorrow Dec 29 04:51:47 im getting Attempt to invoke virtual method 'android.content.Context android.support.v7.app.ActionBar.getThemedContext()' on a null object reference when trying to use a toolbar as an action bar Dec 29 04:54:40 chaosagent: sounds low level Dec 29 04:55:24 idk Dec 29 04:55:32 fixed it by just using getActivity() Dec 29 04:55:43 instead of getActionBar().getThemedContext() Dec 29 04:55:55 why aren't you using getSupportActionBar Dec 29 04:57:55 i tried Dec 29 04:57:57 no workz Dec 29 04:58:40 and getActionbar is just a function i made that does ((ActionBarActivity) getActivity()).getSupportActionBar() Dec 29 05:31:37 Hi. Is there a site for sharing code when I need to share some for my question? Dec 29 05:33:21 pastebin? Dec 29 05:33:51 ArmitaageDS: http://pastebin.com Dec 29 05:33:58 Are you looking for a forum type? Dec 29 05:34:02 hello Dec 29 05:34:03 Hey shmooz Dec 29 05:34:11 Ok, thanks. I'll prepare my pastebin and return shortly Dec 29 05:34:21 hi drose379 Dec 29 05:34:30 Whats up? Dec 29 05:34:54 is it possible to take a screen shot of anything onscreen Dec 29 05:35:03 not much, looking into integrating a lib to be able to play AAC shoutcast streams Dec 29 05:35:05 not just the app itself Dec 29 05:35:25 but AAC has licencing fees, ah man :( Dec 29 05:35:54 Screw that Dec 29 05:36:39 going to use this lib https://code.google.com/p/aacdecoder-android/ , if anyone knows something better, let me know please Dec 29 05:44:15 maxwell_: press and hold Volume Down and Power for about a second Dec 29 05:47:37 maxwell_: if you are using a version of Android older than 3.0, you will need a third party app and(most likely) to root your device. For 3.0 and later, use shmooz's method Dec 29 05:56:24 how can I completely get rid of Subtitle? It is leaving a space where it should be Dec 29 05:56:36 Toolbar subtitle ^^ Dec 29 06:10:40 Ok, here's my question. I have an app that scans the internal and external sd cards for two files. To do so, I recursively call getList() until both files are found, then move on to other tasks. Dec 29 06:12:43 The problem is, this recursive method is very slow, especially if one of the files is not present. Is there a faster way to do this? Here's a pastebin of the function: http://pastebin.com/ysma59dN Dec 29 06:14:13 Of course, I call this in a separate worker thread, so that the app's ui can load quickly Dec 29 06:16:24 Err, call listFiles(), not getList(). Blonde moment Dec 29 06:21:47 guys question: Dec 29 06:22:01 When I call .setAdapter method from a listView object Dec 29 06:22:01 42, obviously. Dec 29 06:22:18 yes Dec 29 06:22:19 JesusFreke hey man Dec 29 06:22:47 When I call setAdapter from a listView object, does the setAdapter method automatically call the necessary methods inside the adapter class Dec 29 06:23:00 If only 42 was the answer to my question, lol Dec 29 06:23:26 ArmitaageDS: you could use stack for dir traversal instead of recursion Dec 29 06:24:45 Ashiren: I'm a bit new to android development, could you please elaborate a little bit? What classes do I need to use? Dec 29 06:26:59 its language independent Dec 29 06:27:08 although i doubt this would be the cause of slowliness Dec 29 06:28:32 Does setAdapter automatically call the necessary methods inside of the adapter class? Dec 29 06:28:50 eeyup Dec 29 06:29:16 so it calls getCount getView ? Dec 29 06:29:28 ArmitaageDS: http://pastebin.com/jGXSKY56 Dec 29 06:29:31 drose379: yes Dec 29 06:29:38 drose379: more like listview would internally call them Dec 29 06:29:46 drose379: since it needs to know how many rows to put Dec 29 06:29:49 I'm thinking the cause of slowness is due to the repeated calls to listFiles(), even if each dir only has a couple of hundred files at most. Taken as a whole, the two sd cards have over 10000 files Dec 29 06:30:13 Thanks, Ashiren, I'll take a look Dec 29 06:30:21 don't forget about having to stat each file as well :) Dec 29 06:30:46 ArmitaageDS: er. not stack.push(d) but stack.push(listFile[i]) Dec 29 06:30:50 Ashiren so the Listview internally calls the methods it needs? After the adapter is set Dec 29 06:31:01 drose379: yes Dec 29 06:31:04 ~ Dec 29 06:31:39 drose379: but if you update the contents, i.e. add an element to list, you would need to call adapter.notifyDataSetChanged(); to see the effects Dec 29 06:32:08 So if I add a value to the array that I pass to the adapter, I need to call notifyDataSetChange? Dec 29 06:32:51 i said so, didnt i Dec 29 06:33:00 Yes you did Dec 29 06:33:09 I just dont understand why that is Dec 29 06:33:12 I'll try the stack version, see if it performs faster, thanks. Dec 29 06:33:33 so the listview would know something has changed Dec 29 06:33:52 so should that be in the program permanently? Dec 29 06:34:29 whenever you add or remove from array, yes Dec 29 06:34:47 I haven't been here all day lol Dec 29 06:35:02 OK Dec 29 06:35:23 How come the BaseAdapter class needs the Context? Dec 29 06:35:25 "This" Dec 29 06:35:49 it needs it for the inflater Dec 29 06:36:17 It inflates the layout to the page I am on? Dec 29 06:36:19 "this" Dec 29 06:36:23 Err, Ashiren, small error. i is not defined or incremented in the pastebin Dec 29 06:37:40 ArmitaageDS: my bad. after stack pop you do d.listFiles() and iterate them like before Dec 29 06:38:03 good library for expandable list views? Dec 29 06:38:11 Ok, I'll change it. Dec 29 06:40:15 Err, should I use a separate file array? I think I should, yes? Dec 29 06:40:44 for each iteration in while, yes Dec 29 06:40:57 Ok, will do Dec 29 06:45:31 So in my baseClass I do LayoutInflator.from(contect) Dec 29 06:45:35 context* Dec 29 06:45:48 and I pass in "This" as the context from my main activity Dec 29 06:46:08 So that is building a View from whatever I set the view to in the main activity? Dec 29 06:54:24 LayoutInflator.from() is just getting and returning a LayoutInflactor instance Dec 29 06:54:36 Inflactor. haha Dec 29 06:54:38 https://android.googlesource.com/platform/frameworks/base.git/+/android-4.3_r2.1/core/java/android/view/LayoutInflater.java#210 Dec 29 06:55:46 so how come I get an error when I try to pass another XML file into the SubBaseAdapter Dec 29 06:55:52 Instead of "This" Dec 29 06:56:31 I think I've messed up how I'm doing it. Here's a new pastebin with the code I have now: http://pastebin.com/bpjsqXrt Dec 29 06:57:39 Either it's way slower than the recursion, or I'm stuck in some logic loophole Dec 29 06:58:29 excuse me for coming late to the party, but the flexibility of layoutmanagers with recyclerviews is 'very' nice Dec 29 07:02:18 how do you move the toolbar off screen when you scroll? Dec 29 07:04:32 drinfernoo not in the docs ? Dec 29 07:04:54 I don't think there's anything standard Dec 29 07:05:44 Is it possible for me to find out who is calling a function (in android hal) - Something like a WARN_ON equivalent in kernel Dec 29 07:06:00 drinfernoo https://plus.google.com/+ChrisBanes/posts/J9Fwbc15BHN Dec 29 07:06:52 so much good stuff tied up in google+, so sad Dec 29 07:07:47 I am working with the Facebook SDK GraphUser api. For the executeAsync() method I can only find an onComplete callback, nothing else. Does anyone know where I can fidn them? I alreayd looked on the Facebook developer site :P Dec 29 07:07:50 I'm actually looking for a solution more like chrome or various other apps that actually hide the toolbar and show it again when you scroll down Dec 29 07:08:38 i hope thats a fad and goes away soon Dec 29 07:08:41 heh Dec 29 07:16:29 Well, thanks for the assistance, at least I now have a point from which to start looking for alternative means of finding the files. I may be back later. Dec 29 07:43:20 What is the best practice of organizing nested fragments within a navigation drawer Dec 29 07:43:55 what about scrolling a list up over the header? Dec 29 07:44:11 let's say fragment 1 needs another level of views inside, which I need focused when I nagivate to another fragment and back again Dec 29 07:44:43 c03, that's seems like a very confusing use situation Dec 29 07:44:59 I must be explaining it poorly then Dec 29 07:45:12 Say we have a navigation drawer Dec 29 07:45:26 with 2 or more fragments in it's menu Dec 29 07:46:27 when I navigate to one of them, do some stuff in it, and then away from it. I have an expectation that if I navigate away, and then back again, things will be the same Dec 29 07:47:02 Does that make sense? Dec 29 07:47:11 yeah that makes sense now Dec 29 07:47:52 I believe that's what Bundles are for Dec 29 07:47:52 cool. What is the best way to do this? Dec 29 07:47:58 but I don't actually know lol Dec 29 07:48:09 =) Dec 29 07:56:04 I have a package name different from the application id Dec 29 07:56:29 Will this cause some complications that I cannot think of now? Dec 29 08:47:02 Hello. I have a lib project in Eclipse and I want to use it in a project in Android Studio. What's the best way to do it? Dec 29 09:52:22 Hi guys , i’m looking for 3.17 kernel sources for android , where could i get it ? Dec 29 10:07:14 pacopad: you may have better luck at #android-root Dec 29 10:07:25 I`m brainstorming and researching a lil on how a Utilities-class that contains only static methods without any members should look like has Should the class be final? i guess so. Would you say that too? Dec 29 10:09:53 adkins: yes it should. static methods cannot be overriden. Hence a class with only static methods *should not* be overriden Dec 29 10:18:32 vedu: asume i dont do that....are there any other benefits? is it just for safety so that it is just impossible to overwrite? Dec 29 10:19:22 adkins: no other benifits. making anything final/non-final doesn't have any performance benifits Dec 29 10:19:35 But following good coding practices has many benifits Dec 29 10:20:57 vedu: alright, thank you Dec 29 10:21:47 so the public static methods in that class should be final too right? Dec 29 10:24:50 adkins: marking any static method final is completely redundant Dec 29 10:25:24 android-studio will give you a warning whenever you do that Dec 29 10:25:37 redundant because? Dec 29 10:26:05 quoting studio: Reports methods declared final and static. When a static method is overridden in a subclass it can still be accessed via the super class, making a final declaration not very necessary. Declaring a static method final does prevent subclasses from defining a static method with the same signature. Dec 29 10:26:54 so not only redundant, but also it has no semantic meaning Dec 29 10:31:59 vedu: do i get it right? if i try to overwrite a static method it uses the method of the superclass anyway so its unnecceasary to declare it as final? Dec 29 10:33:34 adkins: no totally wrong. what is overwrite? Dec 29 10:34:49 if i want a method of an object to behave different as it normally does Dec 29 10:35:01 static members *cannot* be overridden. they are hidden if a subclass has a member with the same signature (name and parameters) Dec 29 10:35:13 adkins: do not make it static Dec 29 10:35:52 You should call static members as Class.method and not as classObj.method Dec 29 10:36:55 Hi guys, I'm building this REST-client app using some libraries to avoid ContentProvider / CursorLoader / SyncAdapter. I never tought about this before but; after a REST call my data of a ListView (RecycleView) changed, do I just change the entire list? Or should I do something smart to add only the new data and updat the existing entries? Dec 29 10:37:43 ok its getting a lil confusing now...."do not make it static" i hope you dont mean the method of the utility-class we were talking about ;) Yes i call the static methods with ClassName.method() directly without creating an object of that class Dec 29 10:58:14 should i query the device for network connectivity before making any network http requests? Dec 29 11:05:11 Nick-S: in the absence of anyone who knows better, i would recommend it unless you can be sure that the connectivity state hasn't changed since the last time you checked Dec 29 11:05:57 maybe not if you're making 10 requests together - one check might suffice - but between user interactons for instance it would be a good idea Dec 29 11:06:02 will the http request not result in an error? Dec 29 11:09:59 i get java.net.UnknownHostException: Unable to resolve host "xxx": No address associated with hostname Dec 29 11:10:40 Nick-S: does it actually say "xxx" or is the hostname you are trying to resolve shown there? Dec 29 11:10:57 g_steinert no i just protect my host :) Dec 29 11:10:58 Nick-S, I've found that some chinese crap has network detection broken Dec 29 11:11:04 Nick-S, so it's best to just try to connect Dec 29 11:11:19 or you'll have people complaining on some Dual-SIM devices or whatnot Dec 29 11:11:20 so i need to handle the exception right Dec 29 11:11:33 Nick-S: just checking :P looks like a dns lookup problem Dec 29 11:11:39 could point to network connection Dec 29 11:12:10 does this device have internet access, or would you expect the connection to work? Dec 29 11:13:27 Nick-S, yes, you'll get an IOEXception Dec 29 11:21:54 Mavrik: i am making my request without knowing if i have netowrk connection or not Dec 29 11:29:09 I was dealing with this yesterday Dec 29 11:29:25 there is no correct way that I found which can determine if I'm connected to the Internet (can ping) or not, quickly Dec 29 11:29:59 Nick-S, um, ? Dec 29 11:30:02 if just searching SO, your best bet is to find out whether the user is connected to a network or not. Cause I was able to find that out when I turned off Wifi AND 3g, but not just Wifi Dec 29 11:30:21 if I turn off Wifi and I'm still on 3G but dont have credit to actually ping anywhere, it still reports that I have internet Dec 29 11:30:23 which is wrong Dec 29 11:30:32 still haven't solved it here Dec 29 11:30:43 Odaym, yeah, because you have a connection established Dec 29 11:31:04 I don't think there's a public API to check connection besides actually sending a ping somewhere Dec 29 11:31:12 3G in my country works just as wifi, connecting to it is something and being able to access Google.com is something else Dec 29 11:31:31 if you'll check what Android does - Android tries to load /generate_204 Dec 29 11:31:43 if it fails then it shows the "no connection" warning Dec 29 11:31:46 yea the ping, it needs time to return whether yes or no, so I'm sort of lost with where to do that check, cause it's an issue of not being able to press a button depending on the connection Dec 29 11:32:05 so it needs to be a check upon app launch I think Dec 29 11:32:09 or somewhere preemptive Dec 29 11:32:59 Odaym, yes. Dec 29 11:33:17 Odaym, but honestly, you just shouldn't do that. Dec 29 11:33:37 it's a button that you can use to scan books (look the book up on Google Books API) Dec 29 11:33:52 what else would you do Dec 29 11:34:00 Odaym, what you're forgetting is, there is a concept of intermittent connection Dec 29 11:34:20 if you'll disable functionality to the user just because he's without stable connection for a minute (on a MOBILE device), the users will be pissed Dec 29 11:34:37 people use apps alot while commuting and there connection varies from seconds to second Dec 29 11:34:42 so just let it fail? Dec 29 11:34:58 Yes. And give a nice notification to user that it failed. Dec 29 11:35:09 Or retry later as a service, does it have to be sent RIGHT THEN? Dec 29 11:35:10 yea, sounds decent, otherwise would be overcomplicating Dec 29 11:35:20 well it's a process of adding a book Dec 29 11:35:26 the result of that activity is instantaneous Dec 29 11:35:45 you dont expect to suddenly find a book has been added, one that you tried to scan for 10 minutes ago Dec 29 11:35:56 too small of a task to be saved and processed later Dec 29 11:36:25 Point there. Then you just let it fail Dec 29 11:36:31 yea Dec 29 11:39:36 can I skip drawing certain items in a listview somehow? Dec 29 11:39:53 other than removing the items from the list being passed Dec 29 11:42:26 actually that's probably more elegant Dec 29 11:43:06 c03, well you can't hide them per-se Dec 29 11:43:14 c03, but your adapter controls what's being displayed and how Dec 29 11:43:19 so the adapter can just omit them Dec 29 11:46:02 chose to remove them beforehand Dec 29 11:48:32 actually this is the full stack : http://pastebin.com/zRU6PxB0 Dec 29 12:04:08 hello Dec 29 12:04:46 can anyone help me with making the navigation bar transcluent in my app? Dec 29 12:04:51 here is my theme: http://pastie.org/9803531 Dec 29 12:04:57 i have minSdk set to 19 Dec 29 12:05:10 but the nav bar is still blinding white Dec 29 12:05:22 what could be wrong? Dec 29 12:06:08 i have android 4.4.4 on my testing device Dec 29 12:07:06 btw i couldn't get the nav bar to show in the dark holo theme either Dec 29 12:07:10 using predefined themes Dec 29 12:07:16 could this be a device fault? Dec 29 12:11:29 entity: you're talking about the navigation buttons at the bottom, right? Dec 29 12:13:23 g_steinert: yes Dec 29 12:14:19 could the fact that i have a full screen opengl surface in place have anything to do with this? Dec 29 12:16:45 Hi guys, I'm building this REST-client app using some libraries to avoid ContentProvider / CursorLoader / SyncAdapter. I never tought about this before but; after a REST call my data of a ListView (RecycleView) changed, do I just change the entire list? Or should I do something smart to add only the new data and updat the existing entries? Dec 29 12:16:57 entity: looks like you might be using the wrong parent theme... check out the 'translucent system bars' section in https://developer.android.com/about/versions/android-4.4.html Dec 29 12:18:38 yeah i tried those predefined as well, no effect Dec 29 12:19:56 also, it says "*or* include the windowTranslucentNavigation and windowTranslucentStatus style properties in your theme" Dec 29 12:20:25 (yes, i tried adding windowTranslucentStatus, no effect) Dec 29 12:20:25 g_steinert according to my log the exception is not a result of my method call... take a look http://pastebin.com/zRU6PxB0 Dec 29 12:21:23 Nick-S: what's the package name of your app? Just so I know what I'm looking at# Dec 29 12:21:49 com.wow Dec 29 12:24:41 it's being thrown from within the thread you have started fro the network operation (hence why Thread.run is the last line of the stack) but what's confusing me is that it doesn't seem to run any of your code after the thread is launched Dec 29 12:24:48 are you using a third party lib? Dec 29 12:27:04 g_steinert: indeed Dec 29 12:27:14 g_steinert: retrofit Dec 29 12:27:30 looks like the issue is in the lib not catching the exception then :/ Dec 29 12:27:56 i don't think you can catch it in your code because the new thread is completely separate Dec 29 12:31:14 whats the keybinding to move between tabs in android-studio ? Dec 29 12:32:09 Talking about ctrl+tab? Dec 29 12:32:21 g_steinert : i know its very disturbing!!! Dec 29 12:32:43 Eathed: ah yes .. thanks Dec 29 12:33:08 is openjdk okay ot use with android studio ? Dec 29 12:33:11 *ok Dec 29 12:34:44 quantum-mechanic: I think it will give you a warning about you not using the sun jdk Dec 29 12:34:47 as far as I remember Dec 29 12:34:54 oracle* Dec 29 12:44:41 Nick-S: check the retrofit docs, it might have a way round it - a callback or something Dec 29 12:44:57 g_steinert: i can only see this but it doest really make sense to me Dec 29 12:46:36 i am actually reading the code here: https://github.com/square/retrofit/blob/2c1c6ec370f88e21ac219d8f343f1f6d904c1c87/retrofit/src/main/java/retrofit/RestAdapter.java Dec 29 12:49:03 Nick-S: have you seen http://square.github.io/retrofit/javadoc/index.html? Dec 29 12:49:13 sorry, drop te ? at the end Dec 29 12:49:35 g_steinert: no worries, yes i know it very well i guess Dec 29 12:50:45 looks like errors are passed back, you just have to handle them - see the 'HTTP requests happen in one of two ways: ' bit Dec 29 12:53:19 look at line 273 Dec 29 12:53:49 g_steinert this is the asynchronous call Dec 29 13:15:24 g_steinert sorry i got disconnected :) Dec 29 13:17:50 Nick-S: I think the source code you are looking at and the version of the lib you are using don't match. the exception is handled in the source you linked to. Dec 29 13:18:03 you either need to update your library or find the source for the correct version Dec 29 13:19:13 g_steinert but theres nothing stated about it in the changes log Dec 29 13:24:16 g_steinert: i just went throgh all the changes Dec 29 13:24:22 g_steinert: nothing related Dec 29 13:25:21 Nick-S: if you look at where the exception is actualy thrown, it should be caught by that try block. are you checking the changelog or the source? you can't always rely on the changelog to be 100% complete Dec 29 13:33:30 I hate how spans are so slow and perform so many allocations. Dec 29 13:33:44 If there's one thing Android should do, it's to make spans fast and light. Dec 29 13:34:11 (Text spans.) Dec 29 13:36:39 TacticalJoke: what are you talking about? Dec 29 13:36:57 TacticalJoke: you shouldn't have that many applications, and you can reuse them if you want Dec 29 13:37:03 ath Dec 29 13:37:04 arg Dec 29 13:37:07 allocationsa Dec 29 13:38:10 I reuse them (by having fields like "private Object boldSpan = new StyleSpan(Typeface.BOLD);"). Is that what you mean? Dec 29 13:38:26 this is weird Dec 29 13:38:46 g_steinert: i was checking the source history on github Dec 29 13:38:47 setting FLAG_TRANSLUCENT_NAVIGATION also enables SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION Dec 29 13:38:57 but the nav bar is not transparent Dec 29 13:39:00 But it seems that boldSpan couldn't be used twice in a call to setText. Dec 29 13:39:04 TacticalJoke: no, thats not what I mean Dec 29 13:39:11 g_steinert: the try block is on another thread, it won't be handled by my thread Dec 29 13:39:24 Napalm: I'm curious of what you do mean. :) Dec 29 13:40:18 TacticalJoke: you can have a cache that you set to the view, you create a builder from the cache, the builder first asks the cache for a span of x, when you setText on your view the spans in the previous spannable can be given back to the cache Dec 29 13:40:58 TacticalJoke: this way you only have x number of spans active at any 1 time, and they are all reused and never reallocated Dec 29 13:41:02 In this case, I'm using a ListView. Would that apply? Dec 29 13:42:21 I'm not sure how the system would determine that a span is no longer in use when using a ListView. Hmm. Dec 29 13:42:45 i just said Dec 29 13:42:51 when you call setText on the view itself Dec 29 13:43:01 it can set the new spannable and recycle the old one Dec 29 13:43:26 TacticalJoke: ^ Dec 29 13:43:41 TacticalJoke: I'm not sure what a ListView has to do with this? Dec 29 13:45:07 TacticalJoke: since you reuse the textviwe in a listview you also reuse the span if you follot Napalm Dec 29 13:45:27 wow. worst typing ever.. :D Dec 29 13:45:38 lol Dec 29 13:45:39 Okay. I'm trying to imagine how this'd be implemented in code. Dec 29 13:45:56 want some quick code? Dec 29 13:46:03 Sure. :) Dec 29 13:46:08 Only if you have time. Dec 29 13:46:32 Right now, I'm just having fields like "private Object boldSpan = new StyleSpan(Typeface.BOLD);" in my TextView subclass. I guessed that was the best one could do. But your idea sounds way better. Dec 29 13:47:20 g_steinert: it seems to be there is a serious flaw in the way errors are handled in retrofit on asynchronous calls Dec 29 13:51:14 hm Dec 29 13:51:33 is is possible to hide endtime and timecurrent in MediaController? Dec 29 13:56:47 TacticalJoke: sorry, just having lunch and fixing some other stuffz, will send you some code in a moment Dec 29 13:56:53 No worries. Dec 29 13:57:17 if I craete public class in my app, is it visable to other apps too? Dec 29 14:03:54 TacticalJoke: did the listview guy return last night? Dec 29 14:04:02 i went out for a beer Dec 29 14:04:27 vompatti: if your app exports it it will be Dec 29 14:04:28 but no Dec 29 14:04:39 let me rephrase Dec 29 14:04:49 your manifest can be visible to other apps Dec 29 14:04:59 that's it Dec 29 14:05:35 ah, okay Dec 29 14:07:14 is there then a reason to make class' public (lets say class pet) since I can access it without it being public Dec 29 14:07:47 no, wait - I think this is more java specific stuff Dec 29 14:08:48 thepoosh: Yeah. Lol. He finally got it working. Dec 29 14:08:54 omg Dec 29 14:09:24 vompatti: the only reason a class needs to be public is to allow classes from other packages to access it Dec 29 14:11:14 vompatti: a public class is public in your application package namespace.. if you dont have it public its 'default' or 'package private' meaning only the classes in the same package can access it Dec 29 14:11:53 okay, thanks for your help Dec 29 14:12:42 vompatti: i am talking about class path, also called a package path.. not the Apk Dec 29 14:14:11 vompatti: http://en.wikipedia.org/wiki/Java_package should give you the detailed info Dec 29 14:14:31 thanks Dec 29 14:19:15 is there a style attribute for alert dialogs? something I can put in my AppTheme to style all dialogs without having to provice a style for every one? Dec 29 14:23:04 danijoo: yes and no, do you mean because you specify a theme in your AlertDialog.Builder constructor call? Dec 29 14:24:18 Napalm: thats what i try to avoid. seems like there isnt something like @style/MyDialogStyle, is it? Dec 29 14:24:42 i want to set it once in my style.xml to style all alertdialogs at once Dec 29 14:30:29 I have a weird issue with a ProgressBar I use. it goes from 0 to 100, and when I first start my main screen, everything is ok, then I navigate out of it, and back to it, the progressbar is shown, but with 0 instead of what I have set as the progress. The code that sets the progress bar runs on the main-thread, but I need to do progressBar.post in order for the progressbar to work correctly. Dec 29 14:33:23 danijoo: its android:alertDialogTheme Dec 29 14:40:12 Napalm: awesome Dec 29 14:40:33 there should be a human readable list for those.. Dec 29 14:43:24 there is Dec 29 14:43:39 danijoo: http://developer.android.com/reference/android/R.attr.html Dec 29 14:44:56 My issue is probably related to this : http://stackoverflow.com/questions/4348032/android-progressbar-does-not-update-progress-view-drawable Dec 29 14:45:33 thanks again :) Dec 29 14:47:21 havchr: that issue is regarding a lack of update when you change the max value of the progressbar, your issue would probably be solved by calling setProgress() in onResume() Dec 29 14:48:22 g_steinert, no, setProgress is called, and it is called on main-thread , but the progressBar visuals indicate setProgress(0) is called. If I wrap the code in a post, it works. Mysteriously. Dec 29 14:49:00 so setProgress is called, then the user navigates away, comes back and setProgress is called again? Dec 29 14:49:13 yeah Dec 29 14:49:42 is what does getMax return out of interest? I'm thinking the progress bar has been destroyed and not reinitialised properly Dec 29 14:50:04 I also manipulate other UI components from the same place, and they update correctly. Wait, I'll check. Dec 29 14:53:33 bot getMax and getProgress return the correct values, but the drawable does not update correctly unless code is wrapped in a post Dec 29 14:58:48 havchr: you could try invalidate() - that should cause the progress bar to be redrawn Dec 29 14:59:04 sorry, invaliateDrawable Dec 29 14:59:39 invalidateDrawable takes a drawable as argument Dec 29 14:59:55 oh yeah.... maybe postInvalidate()? Dec 29 15:00:24 tried that, nothing seems to work except post, which seems weird Dec 29 15:00:56 weird it may be, but if it works go with it! im out of ideas Dec 29 15:01:04 one last try , progressBar.invalidateDrawable(progressBar.getProgressDrawable()); Dec 29 15:01:47 havchr: that almost sounds like it should be a static method Dec 29 15:02:48 nope, post it is then. Dec 29 15:12:44 g_steinert: can i draw your attention to something one last time? Dec 29 15:13:00 g_steinert: look at the code here https://github.com/square/retrofit/blob/816e551ebcf76d4b31eca6b6439de02b2f9ccf32/retrofit/src/main/java/retrofit/CallbackRunnable.java Dec 29 15:18:45 danijoo: Do you know what Napalm was talking about earlier with regard to reusing spans? He said it's not reusing the span Object and it's not reusing the SpannableStringBuilder. I can't figure out what else there is to reuse. (I tried asking him, but he's AFK. :) Dec 29 15:21:24 I guess I could reuse the SpannableStringBuilder, but it'd be awkward because I'd have to remember positions and then call replace(). Dec 29 15:23:17 TacticalJoke: Not sure but I think he means reusing the SpannableStringBuilder, yes Dec 29 15:23:46 you can use SpannableStringBuilder#clear() to empty the text and refill it Dec 29 15:24:14 I see. Wouldn't using clear() be the same, performance-wise, as recreating, though? Dec 29 15:26:40 yeah.. im just wondering why spannableStringbuilder has no setLength(int length) .... Dec 29 15:27:17 because with StringBuilder.setLength(0) you clear the text without reallocating memory Dec 29 15:27:32 im not sure if SpannableStringBuilder does the same with clear(). mh Dec 29 15:30:07 hey guys Dec 29 15:30:54 hey hey hey Dec 29 15:31:04 yiati: hello Dec 29 15:31:12 hey hey hey Dec 29 15:32:33 I'm building an app which access internet. The app exchange json messages using retrfit lib. The problem is that every time i take more than 5min to use tha app again it raises socket connection error. Dec 29 15:32:52 Saying the ip of the back-end is unreachable. which is not. Dec 29 15:35:00 Hey Dec 29 15:49:59 how is everyone Dec 29 15:50:59 pretty good on my end. You? Dec 29 15:52:05 Good just got a nexus 6 and try to find out how all this new android 5.0 works:) Dec 29 15:52:30 Big phone:O Dec 29 15:52:38 big ass phone Dec 29 15:52:55 I uploaded an image of the Nexus 6 side by side with a iPhone 6 Plus Dec 29 15:52:59 they're both huge Dec 29 15:53:19 Yep Dec 29 15:53:45 heh I got the Nexus 7 so nah! Dec 29 15:53:56 I didn't know the nexus 6 is developer phone i was told Dec 29 15:54:20 Now i can do my android programming just got to get use tot he big phone. Dec 29 15:55:42 so you have a phablet Dec 29 15:55:46 mazal tov! Dec 29 15:56:18 thepoosh,,Just got to find out what they mean by backup your number for online. Dec 29 15:56:24 app crashes before drawing the activity and logcat doesn't show anything. why is that? i know it's maybe because of nullpointerexception due to getSharedPreferences in onCreate, but why Logcat doesn't show the stack trace? Dec 29 15:57:01 levo: look into the general no filter logcat Dec 29 15:57:08 maybe it's a libc crash Dec 29 16:08:28 TacticalJoke: hey Dec 29 16:09:46 TacticalJoke: https://gist.github.com/slightfoot/fce61d28cdf4eb7042f7#file-spanreuseexampleactivity-java Dec 29 16:12:00 hey, is there a way to make a server running on my laptop avaliable on my phone via adb? Dec 29 16:12:17 rymate1234: yes, use port forwardingf Dec 29 16:12:49 can adb forward a port on my laptop to my phone? cool! Dec 29 16:12:51 * rymate1234 googles Dec 29 16:12:58 rymate1234: http://developer.android.com/tools/help/adb.html Dec 29 16:13:20 thnx Dec 29 16:13:34 rymate1234: simple as: adb forward tcp:80 tcp:1234 Dec 29 16:13:49 Solved the issue with the webview. Needed to initialize it as: Webview = (WebView) findViewById(R.id.mWebView); and then remove the Webview.setdefaultscale(80). That scale line was causing the crash. Dec 29 16:14:02 Got it to work on christmas Dec 29 16:14:09 rymate1234: that would make localhost:1234 on your android device connect to localhost:80 of your dev machine running adb Dec 29 16:25:40 cant you just do ip_of_laptop:port and enable wifi? Dec 29 16:27:18 danijoo: that depends on if you want your device on 3g or wifi and also, if your dev machine is on the same local net as your phone Dec 29 16:28:08 i think for dev it often is. But I agree that doing it over adb is easier Dec 29 16:28:39 whats the speed limit of this little adb trick? Dec 29 16:29:51 well since its over your usb, your available usb bus speed Dec 29 16:43:53 if i use a JSInterface to send a string to locally hosted html in a webview, how can I convert that string into a json object? might be a question for ##javascript Dec 29 16:45:13 Jesperhead: in js you can do var object = { "key": strValue }; Dec 29 16:45:29 through the JSInterface though I have no idea Dec 29 16:46:15 g_steinert: see, the string comes from the app (as a primitive, string type) and I think it's only being interpreted as such. Going to try the jquery json parser Dec 29 16:46:38 jQuery.parseJSON( jsonString ); Dec 29 16:47:26 Jesperhead: oh i see... yeah that should do it Dec 29 16:51:19 I'm having trouble showing the keyboard on a small 240x240 screen. When I use SHOW_IMPLICIT, nothing happens on the small screen. When I use SHOW_FORCED, the keyboard does come up, but then it remains open under various circumstances. Dec 29 16:51:59 Does anyone have a consistent method of opening the keyboard without forcing it to stay open? Dec 29 16:52:03 Jonathan_Eyre: I assume you're emulating the 240x240 screen? Dec 29 16:52:11 No, it is a device. Dec 29 16:52:21 does it have a qhysical keyboard? Dec 29 16:52:24 *physical Dec 29 16:54:04 * nodedfree Hi, does someone know how can i perform voice chat between android app & website? what are the required tools for me? Dec 29 16:55:04 No. Dec 29 16:55:19 I does not have a physical keyboard. Dec 29 16:55:19 *it Dec 29 16:56:06 Jonathan_Eyre: odd... the keyboard should show up when you click on an input then Dec 29 16:56:42 The soft keyboard comes ups everytime on larger screen (Jelly Bean), but not on the smaller screen (KitKat) when I use SHOW_IMPLICIT. Dec 29 16:56:55 hi there Dec 29 16:57:02 is it possible to have a gradient in an actionbar? Dec 29 16:57:10 Not certain if it is KitKat or screen size? Dec 29 16:57:31 Jonathan_Eyre: sorry, i've got no idea :( try an emulator for both (small screen on both JB and KK) Dec 29 17:12:04 So I'm trying to subclass Baseadapter Dec 29 17:12:14 But the methods I'm using are only inherited methods from the adapter interface Dec 29 17:12:32 So does the abstract class BaseAdapter implement Adapter interface? Dec 29 17:13:57 drose379: it implements ListAdapter and SpinnerAdapter - see here http://developer.android.com/reference/android/widget/BaseAdapter.html Dec 29 17:15:12 How come under "Inherited methods" it has a "From Android.widget.adapter" Dec 29 17:15:29 Im guessing it implements ListAdapter which implements Adapter? Dec 29 17:16:11 drose379: correct, with a few additional bits for handling lists Dec 29 17:17:16 arey ou using it for something particularly odd? I've never had cause to use anything other than ArrayAdapter Dec 29 17:17:50 Just learning. And so since My subClass extends BaseAdapter, i can only use its methods Dec 29 17:18:36 Hey all. I'm having issues getting my app to respect the device's orientation settings--it's still rotating even when orientation lock is on Dec 29 17:18:45 anyone have any idea what is going on? Dec 29 17:23:24 So how come I am not required in my SubBaseAdapter which extends BaseAdapter which implements adapter to use all of the methods in the adapter interface? Dec 29 17:23:54 drose379: because your SubBaseAdapter is abstract Dec 29 17:23:55 I thought when a class implements an interface it means that they have to use all methods in the interface Dec 29 17:24:51 Napalm so since its abstract, I dont need to implement all methods in the Interface? Dec 29 17:25:24 Hey everyone, how we all doing? Dec 29 17:25:31 drose379: correct, thats what abstract means Dec 29 17:25:52 drose379: i minght be getting confused with C++ here, but you only need to implement the purely virtual functions (those with no default implementation), functions with default implementations as part of the interface will just use that efault unless you provide an alternative Dec 29 17:25:54 But can I use a method in the abstract class that is _not_ found in the interfaces? Dec 29 17:26:19 drose379: yes you can - that's just the same as defining a new method in any other class Dec 29 17:26:32 (by use, i assume you mean write or provide) Dec 29 17:26:38 Yes Dec 29 17:27:04 g_steinert: you are getting confused, that is 1-to-1 C++ but not Java Dec 29 17:27:05 you only HAVE to override the abstract methods, but you can override any method you like, or make your own new ones Dec 29 17:27:21 g_steinert: that was in remark to your large response Dec 29 17:27:42 Napalm: i figured :) thanks... i need to stop switching lanuages so often! Dec 29 17:27:57 So I'm calling this adapter class with .setAdapter Dec 29 17:28:02 http://docs.oracle.com/javase/tutorial/java/IandI/abstract.html Dec 29 17:28:17 g_steinert: its going to be fun when Java 8 is out.. it has the notion of default implementations in interfaces which then makes it like C++ Dec 29 17:28:17 heh Dec 29 17:28:17 Does setAdapter method call the methods needed from this class? Dec 29 17:29:03 drose379: yes it does, but only the methods it needs - the ones it inherits from the interface Dec 29 17:29:17 drose379: missed you last night Dec 29 17:29:29 thepoosh whats up Dec 29 17:29:43 if you provide a new method (doTheFunkyChicken() for example) that will never be called by anything that is using it as an interface Dec 29 17:29:44 nothing, saw your ListAdapter question Dec 29 17:30:11 Yeah, ListAdapters have proven pretty confusing to me Dec 29 17:30:56 they become very intuitive once you understand the concept Dec 29 17:31:12 Right Dec 29 17:31:25 how are you with MVC pattern? Dec 29 17:31:36 Model View Controller? Dec 29 17:31:41 yeah Dec 29 17:32:05 Like separating controllers from the view and the model from the controllers? Dec 29 17:33:11 yes Dec 29 17:33:36 basically the Adapter is the model layer, the ListView is the view layer and getView is the controller Dec 29 17:33:39 I was working on it back in my PHP days, dont know about java Dec 29 17:33:58 Hm, ok Dec 29 17:34:04 Ill look at it that way from now on Dec 29 17:34:20 anybody have experience writing an app for chromecast? Dec 29 17:34:25 is it complicated? Dec 29 17:35:43 So a layout inflater basically texts XML and turns it into a real display Dec 29 17:35:58 takes* Dec 29 17:36:14 hmmm Dec 29 17:36:32 getView is the ListView asking for a view to show in the presentation layer Dec 29 17:36:52 and it knows the position because it remembers it from the last time Dec 29 17:36:56 Right, using the inflate method Dec 29 17:37:00 and the adapter has all the info Dec 29 17:37:03 about the data Dec 29 17:37:22 But the LayoutInflater is used to create a view out of XML right? Dec 29 17:37:28 and so, the controller (getView) takes the position, and creates a view to show with relevant information Dec 29 17:37:31 yes Dec 29 17:38:00 LayoutInflater gets a layout id (R.layout.ID) and a parent and inflates the layout into the parent Dec 29 17:38:12 so from my mainactivity Dec 29 17:38:16 when I create this adapter Dec 29 17:38:21 I pass it "This" Dec 29 17:38:31 it''s a Context Dec 29 17:38:47 does that mean it is getting whatever XML file I define in setContentView in onCreate Dec 29 17:39:37 no Dec 29 17:39:45 What does it mean\ Dec 29 17:40:14 http://stackoverflow.com/questions/3572463/what-is-context-in-android Dec 29 17:40:40 whats is love Dec 29 17:40:44 baby dont hurt me Dec 29 17:40:50 Ashiren: DON'T HURT ME! Dec 29 17:40:51 dont hurt me Dec 29 17:40:54 NO MORE Dec 29 17:40:54 No more Dec 29 17:40:58 YEAH!!! Dec 29 17:41:08 hhahah Dec 29 17:41:29 Ashiren: http://stream1.gifsoup.com/view2/4592467/what-is-love-o.gif Dec 29 17:41:51 So since I pass subBaseAdapter a context of this, from the mainActivity, the subBaseAdapter will be making a display in the Mainactivity? Dec 29 17:42:31 the ListView you set the adapter to is displaying the views Dec 29 17:42:48 And it will display them in the context of the MainActivity Dec 29 17:42:54 yes Dec 29 17:42:56 Cauase I passed it "This" as a context Dec 29 17:43:00 yes Dec 29 17:43:10 Alright, great Dec 29 17:43:13 Making progress Dec 29 17:43:27 Views in general can only be created with Activity context Dec 29 17:43:30 so yes Dec 29 17:43:45 where is Leeds? Dec 29 17:43:58 I have a good song for him Dec 29 17:43:59 http://www.doubleencore.com/2013/06/context/ Dec 29 17:44:04 better article about context Dec 29 17:44:12 cool Dec 29 17:44:38 So Im trying to write down explanations for each line Dec 29 17:44:43 Would you say this is accurate: Dec 29 17:44:50 lay it on me Dec 29 17:45:02 * CONTEXT of "This" is given to the adapter, which means it will create a view in this activity. Dec 29 17:45:27 https://lh4.googleusercontent.com/8_scxev4S4123okMLq_lsL9imrqnmfUFOBQRQWqg0y0=w550-h404-no Dec 29 17:45:30 lolz Dec 29 17:45:36 Context of the Activity is passed on to the adapter to allow the inflater to draw views within the Activity Dec 29 17:45:54 ah that makes more sense Dec 29 17:45:56 Napalm: I know that gif but it cracks me up every time Dec 29 17:46:11 that's how I see most our users Dec 29 17:46:21 and they really make an effort to prove me right Dec 29 17:47:13 so thepoosh , in my main activity, where I setContentView in onCreate Dec 29 17:47:19 yes Dec 29 17:47:23 if that layout doesn't contain a ListView Dec 29 17:47:28 The app crashes on my phone Dec 29 17:47:34 hmmm Dec 29 17:47:44 So is it safe to say that the activity XML layout must contain a listVIew Dec 29 17:47:57 is it a ListActivity? Dec 29 17:48:10 Its just the MainActivity Dec 29 17:48:46 class MainActivity extends Dec 29 17:49:13 ActionBarActiivty Dec 29 17:49:13 mmmmkay Dec 29 17:49:24 Yeah BTW what does that even mean Dec 29 17:49:28 what does the logcat say about the crash? Dec 29 17:49:57 different implementations of Activity, you can search d.android.com for the actual differences Dec 29 17:50:12 Don't know, it happened last night. I will recreate the crash if you think its important? Dec 29 17:50:42 drose379: its crashing because you try and use findViewById() to get the listview and it returns null and then you try and use the returned null object with something Dec 29 17:50:52 that might be true Dec 29 17:51:03 but we cannot know for sure until the logcat is presented Dec 29 17:51:16 wanna bet? Dec 29 17:51:18 :) Dec 29 17:51:30 I have a BaseAdapter that i need to use notifyDataSetChanged() when a notification reaches the device.. Is this possible? Dec 29 17:51:46 skrite: omg, we answered this the other day Dec 29 17:51:56 you need to use notifyDatasetChanged every time you change the dataset Dec 29 17:52:47 right, the part that i dont understand is how to access the baseAdapter because i cannot create it as a static class ? Dec 29 17:53:38 skrite: http://developer.android.com/reference/android/widget/ListView.html#getAdapter() Dec 29 17:54:31 so thepoosh & Napalm im gonna setContentView to something that doesn't contain a LIstView, but the listVIew ID is still going to exist Dec 29 17:54:34 Just not gonna be in the view Dec 29 17:54:36 thepoosh: wow, thanks ! Dec 29 17:55:00 drose379: how are you expecting to findViewById if it doesn't exist within the layout? Dec 29 17:55:08 thepoosh: i still dont think thats going to help him Dec 29 17:55:20 I thought the IDs were always available no matter what Dec 29 17:55:21 hmmmm Dec 29 17:55:22 thepoosh: i am talking about skrite Dec 29 17:55:28 hmmmm Dec 29 17:55:30 why not? Dec 29 17:55:49 I've been through it before with him Dec 29 17:55:54 drose379: the id must be a sub view of the layout that is in the ContectView Dec 29 17:56:11 if you try and find a view that's not on the screen you'll get null as the result Dec 29 17:56:20 and thats why it would crash Dec 29 17:56:33 so basically the layout -must- contain a list view Dec 29 17:57:09 if you are trying to find it by ID Dec 29 17:57:41 What else would I find it by? Dec 29 17:58:53 when you try to find a view in an activity, the actual code runs through all the children of the content view recursively and does if(child.getId() == id) return view Dec 29 17:59:02 if nothing was found, you get null Dec 29 17:59:15 OK, got it Dec 29 17:59:18 yay! Dec 29 17:59:29 haha, gonna grab some food Dec 29 17:59:31 BBL Dec 29 17:59:37 i had sushi already Dec 29 17:59:44 Thanks for the help guys Dec 29 17:59:44 I love sushi Dec 29 17:59:49 mine was not that good Dec 29 17:59:56 mostly vegi sushi Dec 29 18:00:55 I have noticed a bug in AS where if I have two xml file open in split window view, that I cannot drag the most recently opened xml file to the other side. Any other combo of directions or file types seems to work Dec 29 18:26:16 anyone that could possibly help me figure out how to use this project? https://github.com/ksoichiro/Android-ObservableScrollView Dec 29 18:27:44 drinfernoo: https://github.com/ksoichiro/Android-ObservableScrollView/tree/master/observablescrollview-samples Dec 29 18:29:08 I'm using AIDE, so I don't have maven, but at https://github.com/ksoichiro/Android-ObservableScrollView/blob/master/docs/eclipse.md he mentions adding it as a jar Dec 29 18:29:12 which I did, and the class imports just fine, but crashes on inflate Dec 29 18:31:16 drinfernoo: http://imgur.com/jacoj Dec 29 18:32:03 thepoosh http://pastebin.com/pLwcuMLV Dec 29 18:32:18 hi, I created a directory but not show Dec 29 18:33:41 drinfernoo: what happens in CFOPFragment.java:81 Dec 29 18:34:11 I inflate the view Dec 29 18:34:33 View view = LayoutInflater.from(container.getContext()).inflate(R.layout.grid_pager_item, container, false); Dec 29 18:35:10 well, R.layout.grid_pager_item is not inflating Dec 29 18:35:29 I know lol Dec 29 18:35:47 g00s: !!!! Dec 29 18:36:11 hello Dec 29 18:36:11 Oh wait there's actually nice people in here who are nice to each other? Dec 29 18:36:11 I'm importing com.github.ksoichiro.android.observablescrollview.ObservableGridView Dec 29 18:36:21 and also adding that in my layout Dec 29 18:36:29 and it works in my code, but it won't inflate Dec 29 18:37:29 https://github.com/ksoichiro/Android-ObservableScrollView/blob/master/observablescrollview/src/main/java/com/github/ksoichiro/android/observablescrollview/ObservableGridView.java Dec 29 18:39:16 ohoh https://news.ycombinator.com/item?id=8810157 Dec 29 18:40:18 if you use YYYY date format, heads up) Dec 29 18:42:16 do you use any orm for db? Dec 29 18:43:11 g00s: it surprises me that it's only just been noticed as a problem... week 1 starts in the previous year 3 out of 7 years (I think) Dec 29 18:43:49 and the 3 out of the remaining 4 times, week 52 (or 53) rolls into the following year Dec 29 18:44:28 it's only when new years day falls on a monday that everything lines up Dec 29 18:45:37 hey guys Dec 29 18:51:56 is there a way to show SwipeRefreshLayout's animator manually? Dec 29 18:52:32 gdrc: you mean show the animation without a user PTR ? Dec 29 18:52:37 so no idea thepoosh? Dec 29 18:52:51 funktronic: what PTR means? Dec 29 18:52:56 pull to refresh Dec 29 18:53:05 so, yes Dec 29 18:53:30 gdrc: setRefreshing Dec 29 19:11:41 it surprises me that people stupidly use the wrong date formats... Dec 29 19:17:41 funktronic: oh, you are right. it's weird, if you call setRefreshing(true) on fragment's lifecycle methods (like onStart()) it doesn't work Dec 29 19:18:07 that's before the fragment's view is created Dec 29 19:18:14 call it onCreateView or onResume Dec 29 19:18:35 no wait, onStart is called after onCreateView Dec 29 19:18:46 onStart is called AFTER onCreateView Dec 29 19:28:32 hello Dec 29 19:28:34 is it possible to take a screen shot of anything onscreen Dec 29 19:28:37 not just the app itself Dec 29 19:29:04 eeyup Dec 29 19:29:21 you can take 'screenshot' of any view Dec 29 19:29:40 https://stackoverflow.com/questions/9791714/take-a-screenshot-of-a-whole-view Dec 29 19:30:50 question about parallax views Dec 29 19:31:38 I want to have a listview, and when I scroll down, it should move upward over a view above it Dec 29 19:31:53 what's the best way to achieve this effect? Dec 29 19:32:31 so, Ashiren, I can take a screenshot of EVERything on screen? Dec 29 19:32:49 just take a screenshot maxwell_ Dec 29 19:33:31 Hey there, i have an app which stores information in the external public directory, but after connecting my device via USB, i have "permissions denied" when i try to read the stored data via USB (mtp) from my PC. What should i change to have them publicly readable? Dec 29 19:33:35 I mean programmatically Dec 29 19:34:25 yes Dec 29 19:34:50 how? Dec 29 19:35:06 < Ashiren> https://stackoverflow.com/questions/9791714/take-a-screenshot-of-a-whole-view Dec 29 19:35:18 just do that for every view Dec 29 19:35:18 tane: is it kitkat? Dec 29 19:35:24 you say I can take a snapshot from a View. so how can I get the view of the homescreen or another app Dec 29 19:35:26 or layout Dec 29 19:35:29 Anyone having problems with Log() and Logcat? Dec 29 19:35:36 Ashiren, yes Dec 29 19:35:44 andreyonadam: nope Dec 29 19:36:02 maxwell_: oh i thought you meant you wanted just part of the screen, like button or listview Dec 29 19:36:17 yiati: I just restarted logcat itself and it started working again. Weird. It always requires me to restart Dec 29 19:36:24 Anyways thanks. Dec 29 19:36:26 no. I mean taking a screenshot from the background Dec 29 19:36:45 oh then dunno Dec 29 19:37:14 tane: i dont know how people "normally" solve this, android since kitkat has different permissions to sdcard Dec 29 19:37:28 tane: i just has root and made 'sdcard fix' Dec 29 19:37:30 andreyonadam: Sometimes it does that. That's an adb connection issue Dec 29 19:37:44 Ashiren, ok, thanks, i will follow that direction then Dec 29 19:37:59 yiati: Yeah maybe its because I'm running on an emulator or something. Dec 29 19:38:20 andreyonadam: "adb kill-server; adb start-server" usually fixed adb issues Dec 29 19:38:35 which is probably what restarting logcat did Dec 29 19:38:42 yiati: Ahh. I see. Dec 29 19:40:33 maxwell_: maybe this https://stackoverflow.com/questions/10481715/programmatically-take-a-screenshot-from-service Dec 29 19:45:12 Ashiren, Dec 29 19:46:27 I know this app called Teamviewer. It allows a user to see the screen of a phone from a computer Dec 29 19:46:43 so it mush be doing screenshots, right? Dec 29 19:47:01 it doesn't require root Dec 29 19:47:39 teamviewer uses an RDP connection Dec 29 19:47:59 its a realtime remote desktop connection Dec 29 19:48:01 what you mean? Dec 29 19:48:37 it starts a rdp server? Dec 29 19:50:41 maxwell_: http://stackoverflow.com/a/14718588/1229735 Dec 29 19:56:51 maxwell_: So unless you want to work with manufacturers to get your app cleared to access the READ_FRAMEBUFFER or exploit potential security flaws in the permission system the answer is no Dec 29 19:58:27 maxwell_: you can now do this in Lollipop without root, http://developer.android.com/about/versions/android-5.0.html#ScreenCapture Dec 29 19:58:40 oh! Dec 29 19:58:43 there! Dec 29 19:58:44 there! Dec 29 19:58:44 there! Dec 29 19:59:35 oh yeah I knew that Dec 29 19:59:49 thx Napalm dude! Dec 29 20:00:40 I know for sure that the main phone I am targeting has 5.0 Dec 29 20:01:24 Cool didn't see there was a 5.0 update Dec 29 20:02:10 yiati wat Dec 29 20:02:28 drinfernoo: ? Dec 29 20:02:43 5.0 = lollipop Dec 29 20:02:57 correct Dec 29 20:03:38 (yiati) Cool didn't see there was a 5.0 update Dec 29 20:04:04 I was referring to the context of screen capturing being enabling in 5.0 Dec 29 20:04:14 screen capturing is updated in 5.0 Dec 29 20:04:24 enbled* Dec 29 20:04:26 enabled* Dec 29 20:04:34 o Dec 29 20:04:44 wat? Dec 29 20:05:58 nvm Dec 29 20:25:01 I'd like to attempt to build a custom rom for a device that appears to have never had a custom rom built for it before. Dec 29 20:25:03 Q aabout orientation: I would like to, when the activity starts, lock the orientation whatever it is.. Dec 29 20:25:08 Any sagely advice? Dec 29 20:26:17 I am not aware of anyone in here who develops roms Dec 29 20:26:22 u try #android-root? Dec 29 20:26:38 atgnag^ Dec 29 20:27:32 Okay. Dec 29 20:37:16 atgnag: run away? :) Dec 29 20:37:43 it'll likely be... non-trivial. Dec 29 20:38:43 gah, just git rm -f 'd the wrong file Dec 29 20:38:59 /? :) Dec 29 20:39:07 if its never been committed before, does it exist in refs ? Dec 29 20:39:11 (it was staged) Dec 29 20:39:26 if it was staged... hmm. Dec 29 20:39:42 g00s: are you using android studio, by chance? Dec 29 20:39:47 JesusFreke yeah Dec 29 20:39:52 g00s: local history! :D Dec 29 20:40:00 since the file is gone i can't find its local history Dec 29 20:40:08 its not in the tree any more ... Dec 29 20:40:09 g00s: do the local history on the containing directory Dec 29 20:40:15 ah thanks Dec 29 20:40:23 (eclipse has that too) Dec 29 20:41:10 I have a strange thing going on with my orientation.. I am trying to lock the orientation to whatever it was in onCreate. But when I flip the device the orienation changes.. but only once. If I flip it back it is locked.. Dec 29 20:42:14 thanks JesusFreke that worked Dec 29 20:42:24 :) Dec 29 20:42:33 should I override onConfigureationChanged()? Dec 29 20:42:42 leave super.onConfigurationChanged out of it? Dec 29 20:43:11 I'm still curious though, if you could recover a file that has only been staged in git Dec 29 20:43:26 I'm not sure how the staging is implemented Dec 29 20:44:16 JesusFreke i would think once staged, the sha and blob would be added somewhere Dec 29 20:44:31 and gc'd later if dangling Dec 29 20:44:53 :/ Dec 29 20:44:54 yeah, that's what I'm wondering Dec 29 20:44:59 i can't get unicode from inputstream ._. Dec 29 20:45:17 i'm doing exactly this Dec 29 20:45:17 new BufferedReader(new InputStreamReader(Socket.getInputStream(), "UTF-8")); Dec 29 20:45:34 still reads unicode chars as question marks (?) Dec 29 20:45:53 are you in osx? Dec 29 20:46:07 me? Dec 29 20:46:09 yes Dec 29 20:46:14 no i'm not Dec 29 20:46:18 and using eclipse Dec 29 20:46:23 windows Dec 29 20:46:25 lol mac Dec 29 20:46:26 capella http://www.zdnet.com/article/microsoft-is-building-a-new-browser-as-part-of-its-windows-10-push/ Dec 29 20:46:30 exlipse is on mac too Dec 29 20:46:45 yeah i know i mean i'm not on osx and using eclipse not any other ide Dec 29 20:46:47 >.> Dec 29 20:47:00 g00s: http://stackoverflow.com/questions/11094968/in-git-how-can-i-recover-a-staged-file-that-was-reverted-prior-to-committing Dec 29 20:47:09 anyway what does that have to do with unicode Dec 29 20:47:10 so yeah, the blobs should be available, it sounds like Dec 29 20:47:14 well anyway sometimes the charcter is outside the rance of UTF-8 and it will look like a but it’s really not Dec 29 20:47:21 when you view it Dec 29 20:47:33 at least it doesn't read 'snowman' symbol Dec 29 20:47:34 >.> Dec 29 20:47:38 it still has its same byte value though.. just the font makes it Dec 29 20:47:42 JesusFreke awesome :) Dec 29 20:47:45 ah Dec 29 20:47:49 check they bytes Dec 29 20:47:50 hmm, interesting Dec 29 20:47:55 yeah will do Dec 29 20:47:58 g00s: (meh popovers) Dec 29 20:48:05 do some byte[] to hex string conversion Dec 29 20:48:23 then convert to UTF-8, back to byte, then look at the hex again Dec 29 20:48:30 mhmm Dec 29 20:48:36 ur so tricky :p Dec 29 20:49:08 that will tell you if anythign is actually being changed.. but in my xp, those ??’s are just the computer not being able to find an ascii character to display that byte val Dec 29 20:49:19 there are only so many.. Dec 29 20:50:00 capella yeah popovers are bad, i've notived sometimes in FF not being able to get rid of them, which is worse Dec 29 20:50:07 FF for android that is Dec 29 20:53:20 nobody can answer my orientation problem? Dec 29 20:55:29 what I want is android:screenOrientation=“locked” but for older APIs Dec 29 20:57:33 oop, found it.. this works: http://stackoverflow.com/questions/21361338/androidscreenorientation-locked-on-old-os-versions Dec 29 20:59:21 g00s: there's an 'X' in the tab to close ... :) I hit that thing on auto when I get a popover ... I hate the thing that wants to confirm leaving the page after I told it to Dec 29 21:03:18 tricknology, i was afk, if i was here i would have helped you :p Dec 29 21:07:55 heh no probs, I learned a couple things along the way Dec 29 21:08:45 nice capella, are you developing this? Dec 29 21:10:44 brb Dec 29 21:11:27 tricknology: sorry, to what "this" do you refer? I contribute code to Firefox, it that's what you're asking :) Dec 29 21:12:17 ( sometimes our Q/A guy hangs around here .... shhhhh ;) ) Dec 29 21:18:47 Hey all again. Still working with my BaseAdapter. It looks like, since i need to update data in the store even when the Activity is not started, that i should use a Loader? Dec 29 21:23:24 hi Dec 29 21:24:00 the "inbox by google" application has a gray bar just under actionbar Dec 29 21:24:21 who do we add that second actionbar in android? Dec 29 21:24:29 does it come with android 5? Dec 29 21:32:16 I don't see a gray bar under the action bar Dec 29 21:32:37 Do you mean the bit that says "Today"? Dec 29 21:32:57 With the check mark at the end? Dec 29 21:33:51 any recommendations for a fairly cheap android phone for developing on? Dec 29 21:34:27 lilVaratep, budget? Dec 29 21:34:31 $200 Dec 29 21:34:37 i have a galaxy s2 at the moment Dec 29 21:34:37 hmm Dec 29 21:34:43 let me think for a while Dec 29 21:34:54 just another while Dec 29 21:34:58 one more while.. Dec 29 21:35:01 :D thanks. i was thinking of getting those oneplus phones but they had bad reviews Dec 29 21:35:19 can you increase it by $100? Dec 29 21:35:25 because you'll get extra-nice phone Dec 29 21:35:30 yes i can :D if it’s worth it Dec 29 21:35:38 Nexus 5 Dec 29 21:35:39 get it Dec 29 21:35:43 brb Dec 29 21:36:56 lilVaratep: If you do want to stick on budget then the Moto G is quite good. Dec 29 21:37:15 That's $179. Dec 29 21:37:49 damn why are android phones so cheap… Dec 29 21:38:05 Radther++ Dec 29 21:38:27 lilVaratep, but believe me, you won't say 'damn' if you bought N5 Dec 29 21:39:00 just a simple advice, don't get any phone with <1GB RAM || <2Core CPU Dec 29 21:39:05 because it's then useless Dec 29 21:39:10 i have Xperia U and it sucks Dec 29 21:39:14 just because the ram Dec 29 21:39:30 Yeah, the nexus 5 is a REALLY good phone for the price. Dec 29 21:40:00 lilVaratep, slap me twice Dec 29 21:40:08 Radther: exactly Dec 29 21:40:17 i always thought N5 is $300, it's $400 Dec 29 21:40:18 :p Dec 29 21:40:22 h4k1m++ Dec 29 21:40:26 ah Dec 29 21:40:37 was wondering why amazon had it or ~400 Dec 29 21:40:38 but yeah the 16GB is 350 :/ Dec 29 21:40:45 2013 n7 can be had for around $135 on sales Dec 29 21:40:55 --for n7 Dec 29 21:41:02 imo phones are better for dev Dec 29 21:41:33 lilVaratep: Assuming you are OK with used there is this. http://www.ebay.com/itm/Nexus-5-D821-16GB-Red-Unlocked-Smartphone-Wireless-Charger-Cases-/331420402749?pt=Cell_Phones&hash=item4d2a32043d Dec 29 21:41:40 because you can design better apps if you're not trained, you can see bugs more quickly, like extra large views or whatever Dec 29 21:41:52 LOL 54minutes left Dec 29 21:41:54 dear god Dec 29 21:42:07 lilVaratep: Gotta act fast... Dec 29 21:42:20 i just got my paycheck today but dunno if i have the money for this :( Dec 29 21:42:30 i was hoping for another paycheck to come in Dec 29 21:43:00 hmm Dec 29 21:43:00 There will probably be others and this one will definitely go for more then what it's at at the moment. It already has 30 bids. Dec 29 21:43:04 really gonna but a one now? Dec 29 21:43:10 because i can make a deep search for the best phone Dec 29 21:43:20 have you guys seen the oneplus phone yet? Dec 29 21:43:25 Radther: is the textview 'ready' on another actionbar? Dec 29 21:44:05 h4k1m: ? Dec 29 21:44:11 something like Xperia M doesn't hurt Dec 29 21:44:15 it's just OK Dec 29 21:44:24 h4k1m, the "Today" view is a regular listview item Dec 29 21:44:34 the screen quality isn't much IMO but MUUUUUUUUUUCh better than Moto G Dec 29 21:44:43 but N5 is still on the top >.> Dec 29 21:45:08 h4k1m: The today bit is probably a list header of some sort. Dec 29 21:45:30 SimonVT: Radther Im a little bit outdated about android since I've been on some other web projects.. is it possible to have two actionbars one on top of the other? Dec 29 21:45:45 according to what Im reading about android 5 it's possible Dec 29 21:45:54 Use Toolbar, you can add as many as you want Dec 29 21:45:55 lilVaratep, http://www.gsmarena.com/htc_desire_310-6009.php Dec 29 21:46:00 but I dont know if it's backward compatible with v4.x Dec 29 21:46:02 that's exactly what are you looking for Dec 29 21:46:09 h4k1m: The new Toolbar can be added in XML so you can have 2 or make one but bigger. Dec 29 21:46:16 h4k1m also you can use an extended height toolbar Dec 29 21:46:17 but be warned, get the 1GB ram version, the 512MB one sucks and will be a waste Dec 29 21:46:26 thanks guys Dec 29 21:46:30 h4k1m: It's available in the support library Dec 29 21:46:33 512mb ram should be good for dev Dec 29 21:46:42 get crappy phone for dev, not a cadillac Dec 29 21:46:49 well those suck too but Dec 29 21:47:01 Radther: excellent, since I'm targeting v4 Dec 29 21:47:21 h4k1m: I believe it's v7+ unfortunately. Dec 29 21:47:40 Radther: sorry I meant android 4.x Dec 29 21:47:46 not the api 4 Dec 29 21:47:51 h4k1m: Should be good then. Dec 29 21:47:59 so it should be fine thanks again Dec 29 21:49:04 h4k1m: This shows you the basics of the new toolbar as well as some of the other stuff they have added to the library like recyclerView http://android-developers.blogspot.co.uk/2014/10/appcompat-v21-material-design-for-pre.html Dec 29 21:49:23 Hello Dec 29 21:49:25 g00s: Yeah, kinda wished my s2 han Dec 29 21:49:36 Radther: I was reading that article earlier Dec 29 21:49:37 hand't have died for testing reasons. Dec 29 21:49:43 licksjp_: Hey! Dec 29 21:49:54 I have made my app moving file Dec 29 21:49:59 https://www.youtube.com/watch?v=N1VAuL8a-Ls Dec 29 21:51:26 I have used iMovie Dec 29 21:51:30 OverCoder: that htc desire does not look desirable at all :( Dec 29 21:51:39 i do love the look of the nexus. and its by google! Dec 29 21:51:48 i think i’m starting to shift from being an apple fanboy to google Dec 29 21:52:00 Radther: btw why are nearly all the projects using gradle? is it better than maven? Dec 29 21:52:07 or is it just supported by google Dec 29 21:52:08 is there any reason why Picasso might fall back on the error image when the image path is correct? Dec 29 21:52:20 yes Dec 29 21:52:28 the same row in the listview is clicked and the same path is used to show that image on a larger scale Dec 29 21:52:40 yet for the purpose of showing it as a thumbnail on that row, always falls back on image not found image Dec 29 21:52:51 too large? Dec 29 21:52:54 I used resize too Dec 29 21:53:01 h4k1m: I don't know much about why the change as I came in when gradle was default. Haven't used maven. Dec 29 21:53:09 Odaym: i have no idea. attach an error listener and you'll get an exact reason Dec 29 21:53:16 ahh cool ok Dec 29 21:53:33 Radther: I see, does it work well with eclipse or are you using android studio? Dec 29 21:53:48 lilVaratep, N5 is awesome, but if you really, really, really can't get it, get LG G2 Mini Dec 29 21:53:50 h4k1m: I use android studio. Dec 29 21:53:57 it's nice Dec 29 21:54:04 i actually loved it :p Dec 29 21:54:08 Radther: guess I will have to migrate to android studio too Dec 29 21:54:43 lilVaratep, can you privmsg me pls? Dec 29 21:55:36 OverCoder: Will the lg g2 be getting Lollipop though. Dec 29 21:55:47 The mini one I mean. Dec 29 21:56:01 probably Dec 29 21:56:09 at least it runs kitkat 4.2.2 right now Dec 29 21:56:17 kitkat is 4.4 Dec 29 21:56:29 4.2.2 is JellyBean... Dec 29 21:56:49 onError in that error listener does not pass me anything to print or read from.. Dec 29 21:56:57 4.4.2* Dec 29 21:56:58 sorry Dec 29 21:59:13 can you launch to multiple devices in the latest release of studio? Dec 29 21:59:38 rdnt: If you mean emulators then yes, you have always been able to. Dec 29 22:00:15 Odaym: Are you using onImageLoadFailed? Dec 29 22:00:44 I just said new callback, along with the argument to which view image should be loaded into Dec 29 22:01:17 http://square.github.io/picasso/javadoc/index.html Dec 29 22:01:42 On there if you click on Picasso.Listener there is an interface you can impliment. Dec 29 22:01:58 Called onImageLoadFailed which gives you an exception that you could Log. Dec 29 22:02:18 right. that must be used on the Picasso object, not the request. Dec 29 22:04:02 Radther: sorry i meant to devices, simultaneously. Dec 29 22:04:42 rdnt: Ahh ok, I haven't tried that. Dec 29 22:11:35 annotation question for anyone who might know: the v4 support annotations (well, their declarations, unsure about use) are being compiled into my .apk, despite being labeled with RetentionPolicy.SOURCE. Is that normal? Why aren't they being removed? Dec 29 22:14:31 oh my god Dec 29 22:14:42 man I just placed "load(/storage/emulated/......") Dec 29 22:14:45 instead of new File Dec 29 22:14:53 what a waste of time Dec 29 22:15:13 but that debugging helped, it said "unknown request "path_I_gave"", thanks Dec 29 22:15:57 Odaym: Silly mistakes happen to us all. Dec 29 22:18:16 hey Odaym, was it you that couldnt get my Android phone library to work? Dec 29 22:18:23 IT’s because it’s writtin as a Java applet Dec 29 22:18:48 the one that tells you about devices compatibility ? Dec 29 22:19:12 I used a .pdf parser in there and figured I’d just use regular Java Applet. It was going to run on a backend too. Dec 29 22:19:22 I think.. the one that pulls the lsit of all devices. Dec 29 22:19:35 I forget where I was on that.. I think I have it working.. Dec 29 22:19:49 it should leave you with a SQLite db of phones Dec 29 22:20:09 or at least a List Dec 29 22:20:26 OMG. I've just known Android Annotations. Why didn't I discovered years ago? It's awesome Dec 29 22:20:53 what are those Dec 29 22:21:20 @Something, and it builds code for you Dec 29 22:21:26 (i think) never used them Dec 29 22:21:44 well, what are android specific annotations Dec 29 22:22:06 gives you onItemClick and thigns that are specific to Android Dec 29 22:22:26 hum Dec 29 22:22:38 http://androidannotations.org/ Dec 29 22:22:42 just look at this https://github.com/PerfectCarl/androidannotations/wiki/WorkingWithThreads Dec 29 22:22:58 saves a LOT of time Dec 29 22:23:32 how do yet set up an annotation? Dec 29 22:23:40 you* Dec 29 22:24:04 and is your code built at runtime or compile? Dec 29 22:24:55 I think at runtime Dec 29 22:25:08 intersting little devils Dec 29 22:25:17 what if I need more customization? or is it all there? Dec 29 22:25:20 rxjava >> @Background, @Serial Dec 29 22:26:32 stupid stack overflow and its password requirements!! Dec 29 22:26:53 lastpass ftw :) Dec 29 22:27:32 I really need to set up some password management thing. Dec 29 22:27:43 also stupid firefox and its memory issues which made me make a new profile Dec 29 22:28:12 g00s, better in what? performance? Dec 29 22:28:14 On this line: ArrayList appWidgetIds = new ArrayList(); I get a lint message telling I can leave out the second Integer. But it's only supported when java < 1.7. Dec 29 22:28:25 ..how do i even logout from stackoverflow Dec 29 22:28:39 So my question is, is this java version on my machine, or on an android device of the user? Dec 29 22:28:48 tricknology & gdrc: iirc androidannotations is all about code generation at compile-time, which is why you have to declare ".YourActivity_" in your manifest, instead of ".YourActivity". Dec 29 22:29:06 gdrc flexibility; those threading annotations are meager improvements over anything. they just remove some boilerplate but don't give you anything in terms of composability Dec 29 22:29:26 tofra: that's a compiler feature, and it's the java version on your machine. it works on all androids. Dec 29 22:29:34 ^ Dec 29 22:29:39 tofra: BUT that's not true of all java 1.7 features. Dec 29 22:29:54 like switching on strings? Dec 29 22:30:16 g00s, the code is mode readable and you save time. what you want more? Dec 29 22:30:42 a lot Dec 29 22:31:04 @groxx: ok, I'll remove the second Integer. Any idea which features I should think of where it doesn't work? Dec 29 22:31:13 tricknology: well, that's 1.8 :) specifically the "try with resources" doesn't work on anything older than KitKat: http://tools.android.com/recent/androidstudio032released Dec 29 22:31:17 tofra: ^ Dec 29 22:31:32 I assume there's a better link than that one, but it explains the feature anyway. Dec 29 22:32:11 Thanks! I'll check it out! Dec 29 22:33:20 ah, it looks like 1.7 features might require android v8+, according to the tools release docs: https://developer.android.com/tools/sdk/tools-notes.html (expand 22.6) Dec 29 22:33:42 but there's not much use in supporting < 8, so that's not too likely to matter Dec 29 22:33:50 No problem for me, as I just upgraded to v9.. :-) Dec 29 22:34:01 I was still at v5.. :) Dec 29 22:34:09 ouch, that's a pretty wide spread to support Dec 29 22:34:33 tofra v5 ? mas as well do v4 :) Dec 29 22:34:53 Let me check how many users have still 1.6 :) Dec 29 22:35:14 v4? why not v1!? Dec 29 22:35:21 hehe Dec 29 22:35:44 error: Error: No resource found that matches the given name (at 'versionName' with value '@string/app_versionName'). Dec 29 22:35:45 wat? Dec 29 22:36:14 Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Light'. Dec 29 22:36:17 :/ Dec 29 22:37:12 g00s, like...? Dec 29 22:38:49 gdrc rx lets you compose async streams of events using a declarative syntax for arbitrary threading communication Dec 29 22:39:47 I still have 35 users using 2.1-update1 Dec 29 22:39:56 just have to say .observeOn(this) or .subscribeOn(that) and whalla ... you have a queue, scheduled actions between 2 threads (this & that) Dec 29 22:40:26 tofra any analytics to say whether they are actually using the app ? Dec 29 22:40:36 yeah, google :D Dec 29 22:40:58 wll i log in to Play with my droid-1 from time to time just for the lulz Dec 29 22:41:11 hi Dec 29 22:41:16 Why do I need to run my mini application (kernel) written for ARM core , on phone? Dec 29 22:41:43 2.2* = 125 users Dec 29 22:42:28 2.3* = 1744 users Dec 29 22:42:50 hesus.. Dec 29 22:42:55 how many people total? Dec 29 22:42:55 Hi there Dec 29 22:43:11 21570.. Dec 29 22:43:16 I am just starting with android... I basically have a FragmentStatePagerAdapter up and running which shows an image gallery from asset files... Now i want to save the current item ... And next time the container activity gets created, the item should be the current one Dec 29 22:43:59 I tried some stuff with onSaveInstanceState(Bundle outState) Dec 29 22:44:21 But in the onCreate $savedInstance is always null ? Dec 29 22:44:31 ok so it’s consistent with google’s stats.. Dec 29 22:44:34 I prefer to go to minimum api 14.. but then 10% of my users can't use my app anymore :D Dec 29 22:44:45 The onSaveInstanceState is called correctly... Dec 29 22:45:00 10% of users, not 10% of your users Dec 29 22:45:03 there's a difference Dec 29 22:45:07 Is this even the right approach? Dec 29 22:45:17 the demographic for your app may not indicate 10% of your users being on 2.3 Dec 29 22:45:21 hmm mby this is not the right place.. I was reading through some guides to provide documentation for an a program, HCI(Human-computer Interaction .. and it says ... 'provide user-based and/or task-oriented analysis, and define specifications to the software regarding usability criteria' is the task-oriented analysis a step by step walk through of how the software should work? or am i thinking of a guide Dec 29 22:45:22 it might be more or less Dec 29 22:45:26 yea that’s only liek 1% of your users Dec 29 22:45:57 huh? Dec 29 22:46:07 I think it's late already :S Dec 29 22:46:48 tofra, with those stats you gave me you will lose 8,8% Dec 29 22:47:06 yeah, about that is correct.. Dec 29 22:47:10 hmm, LTE moto g v2 on the way? Dec 29 22:47:11 hmm Dec 29 22:47:35 tofra: what app do you work on? Dec 29 22:47:41 $135 to get a 2013 nexus 7, good price Dec 29 22:47:58 hm.. any idea how to scroll scrollview to div inside webview (which is inside scrollview)? i kind of maked it, but it is inacurrate :( Dec 29 22:48:11 maked? Dec 29 22:48:21 scrollview can only have one child right? Dec 29 22:48:24 (From webview i get call to getBoundingClientRect and pass top it to activity) Dec 29 22:48:40 and it kind of works :D Dec 29 22:48:59 but it gets more and more off when selecting elements on bototm of webview Dec 29 22:49:33 you mean like
? Dec 29 22:49:54 yea Dec 29 22:50:09 Just use different textviews Dec 29 22:50:24 with different attributes, margins, and padding Dec 29 22:51:07 it is much easier to use webview there... Dec 29 22:51:16 I guess I’m not sure what you want to do Dec 29 22:51:25 not sure what the convention is with logging, but is it proper to put log statements in classes that do not extend Activity? or should log statements only be activities? Dec 29 22:51:43 but why it is more and more off? Dec 29 22:51:50 g00s, are you using this https://github.com/ReactiveX/RxJava ? Dec 29 22:51:59 gdrc yeah Dec 29 22:52:06 @groxx: Mijn Volleybal It's an app every volleyball player in the netherlands can use to see everything what is related to his team. Dec 29 22:53:38 gdrc see parts 1-4 of http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/ Dec 29 22:53:44 Teeed we need some code or a picture or something Dec 29 22:53:44 tofra: nice. pretty impressive install numbers, since it seems fairly niche-y Dec 29 22:53:54 tricknology: okay Dec 29 22:53:58 anyone happening to have studied a bit of HCI ? Dec 29 22:54:11 bluetooth HCI or human / machine HCI :) Dec 29 22:54:25 haha the last Dec 29 22:54:33 g00s, thanks Dec 29 22:54:37 yw Dec 29 22:55:10 Im confused about task analysis... it seems to cover different things on each site you visit !! ... when it comes to HCI Dec 29 22:55:12 g00s: you converting people ? ;) Dec 29 22:55:23 bankai_au i have a quota :) Dec 29 22:55:28 jk Dec 29 22:55:52 @groxx, I do want to make it a "more" attractive app, and I do see some nice features which I can build, I just don't have the time for it.. (and I don't know a nice UI designer :-)) And I do need to do my work twice (got an apple app also) Dec 29 22:55:53 P3nnyw1se last book i read on task analysis was redish Dec 29 22:56:06 P3nnyw1se but i would recommend something else, one sec Dec 29 22:56:09 anyone knowing anything about HCI.. would it be right to assume.. a task-based analysis.. is a guide.. telling you from A -> Z how to complete/go through some software Dec 29 22:56:41 holy crap that was 1998 Dec 29 22:57:08 the app is supposed to scroll that highlightes sentence is on top of the screen Dec 29 22:57:11 https://www.dropbox.com/sh/ubatrjysqz6l0fe/AACQrzOCfvwlZ4qt-QOz_Rhqa?dl=0 Dec 29 22:57:13 P3nnyw1se are you studing an existing workflow, or engineering something yourself ? Dec 29 22:57:23 but as it goes further it is more and more off ;< Dec 29 22:57:43 well the problem is I*m engineering something myself, but I'm doign it on a pre determind workflow Dec 29 22:58:00 a requirement for me is a user-based.. or task-based analysis, Dec 29 22:58:06 and I simply cant make google give me a straight answer Dec 29 22:58:07 about it Dec 29 22:58:16 ugh.. google is getting mucked up Dec 29 22:58:19 for a class / homework ? Dec 29 22:58:25 it’s nowhere near what it was 10 years ago Dec 29 22:58:35 there needs to be a -blogs feature Dec 29 22:58:39 text is displayed in webview which make callback through JavascriptInterface with element position from top of the webview ;) Dec 29 22:59:16 Teed do you mean that the spaces are all messed up Dec 29 22:59:24 it’s the justification Dec 29 22:59:29 no Dec 29 22:59:45 well how do you want it to look? Dec 29 22:59:48 i mean, the black (highlighted sentence) should be on the top of the screen Dec 29 23:00:03 its not homework g00s.. HCi study Dec 29 23:00:08 iam calling bookContainer.smoothScrollTo(0, positionFromTop); Dec 29 23:00:14 I just have to follow some guidelines, and I dont want you to do any work for me :) Dec 29 23:00:19 P3nnyw1se anyway, there are tons of books on this. cockburn wrote the use case book a while back. seems the new cat's meow is http://shop.oreilly.com/product/0636920033851.do Dec 29 23:00:24 to scroll scrollview which holds webview Dec 29 23:00:28 are you getting the rectangle each time? Dec 29 23:00:33 each time you scroll.. Dec 29 23:00:37 ye Dec 29 23:00:39 yeah Dec 29 23:00:40 try using the same one? Dec 29 23:00:44 get it only once Dec 29 23:00:57 I read some cockburn and a lot about usability.. in HCI it seems like task oriented analysis.. is a common term.. but when I try to read about it.. each site will tell me something completely! different Dec 29 23:01:04 results are consitent Dec 29 23:01:09 one saying its the result of a program... one saying its the testing of specifications Dec 29 23:01:12 one saying its a guide.. Dec 29 23:01:34 tofra: ah, yes, that app does show its age :) not that that's necessarily a bad thing... Dec 29 23:02:02 idk Teeed :( Dec 29 23:02:07 :( Dec 29 23:02:31 Do you know how many lines it is to scroll? Dec 29 23:02:32 P3nnyw1se i always thought task analysis is ethnography Dec 29 23:02:35 g00s, Ill finish the reading tomorrow but I want to ask something before s Dec 29 23:02:38 and the height of each line? Dec 29 23:02:40 i know how many pixels to scroll Dec 29 23:02:44 P3nnyw1se recoomend http://www.amazon.com/Practical-Ethnography-Guide-Private-Sector/dp/1611323908 Dec 29 23:02:51 are you using the right measure? dp, px Dec 29 23:02:55 px Dec 29 23:02:58 use dp Dec 29 23:03:11 https://gist.github.com/Teeed/d891e9596671aaa51fc8 Dec 29 23:03:11 hmmm ok.. Dec 29 23:03:15 sleeping: what about android configuration change? Dec 29 23:03:23 this code retuns me px from top to the selected div Dec 29 23:03:34 and as i checked it in chrome on pc Dec 29 23:03:36 it works well... Dec 29 23:04:12 TwigitReaderApp.setSentencePosition is call through JavascriptInterface to activity Dec 29 23:04:36 P3nnyw1se what have been your favorite HCI books so far ? Dec 29 23:04:42 g00s check this out.. this is what confuses me cause this is very different Dec 29 23:04:42 http://www.slideshare.net/alanjohndix/hci-3e-ch-15-task-analysis Dec 29 23:04:49 g00s, does the subscriber die due activity recreation? Dec 29 23:05:02 gdrc see part 4 Dec 29 23:05:13 :- Dec 29 23:05:16 try converting px to dp Dec 29 23:05:20 Teeed Dec 29 23:05:26 mmm Dec 29 23:05:29 so tomorrow :-). bye Dec 29 23:05:57 wel I only got one Dec 29 23:06:04 public final void smoothScrollTo (int x, int y) Dec 29 23:06:09 the position where to scroll on the Y axis Dec 29 23:06:29 beyon a comprehensive guide of HCI something something Dec 29 23:06:39 isnt it in pixels? :) Dec 29 23:06:51 eayh sorry Dec 29 23:08:13 well.. it doesnt say in the docs Dec 29 23:08:18 http://developer.android.com/reference/android/widget/ScrollView.html#scrollTo(int, int) Dec 29 23:08:38 hm Dec 29 23:08:42 P3nnyw1se seems like a good overview Dec 29 23:08:45 3but what is probably happening is that you are getting them in dp and puttign into px, or getting pix and puttin into where it should be dp Dec 29 23:09:37 try getScrollY to see if it returns the same number Dec 29 23:09:43 yeah it is.. Im just baaaahhh sick of not being able to just find a site going Dec 29 23:09:50 'this is a task analysis... and here is an example' Dec 29 23:09:57 well guess I just have to keep looking Dec 29 23:10:05 P3nnyw1se its in plenty of books, hm Dec 29 23:10:19 it is now worser than it was :D Dec 29 23:10:49 P3nnyw1se i read the 1e of http://www.amazon.com/Agile-Software-Requirements-Enterprise-Development/dp/0321635841 Dec 29 23:10:53 it had plenty of examples Dec 29 23:11:24 that was before leffingwell had to put agile in the title to get more interest heh Dec 29 23:11:56 and of course there is tat Mark Cohn book Dec 29 23:12:07 tricknology: bookContainer.smoothScrollTo(0, (int)convertDpToPixel(positionFromTop, this)); Dec 29 23:12:13 did the job done Dec 29 23:12:18 tricknology: thanks! ;) Dec 29 23:12:21 mike Cohn, sorry http://www.amazon.com/User-Stories-Applied-Software-Development/dp/0321205685 Dec 29 23:12:28 i'll try it on different phone to make sure it fixed it Dec 29 23:14:07 hjmmm thx will give it a look Dec 29 23:14:14 heh Dec 29 23:14:23 pretty much any requirements book is going to cover this Dec 29 23:14:52 you have all kinds of requirements: system, legal, performance etc -- and user Dec 29 23:15:04 user requirement elicitation would cove that Dec 29 23:15:57 jesus... so I just gave you a link right... that showed you a task analysis was the step by step documentation of a software Dec 29 23:16:01 now look at this... site 2.. Dec 29 23:16:01 http://www.usability.gov/how-to-and-tools/methods/task-analysis.html Dec 29 23:16:24 man, Picasso so good.. Dec 29 23:16:39 its not even in the same area of the first link Dec 29 23:16:40 its like a new Mac Dec 29 23:16:41 P3nnyw1se yeah they mention redish's book Dec 29 23:16:48 damn i sold that too Dec 29 23:18:54 arhhhhhhhhhhhhhhhhh :p Dec 29 23:19:00 this is frustrating me Dec 29 23:19:19 then it's about to work! Dec 29 23:19:23 haha Dec 29 23:19:30 :) Nice, Teeed Dec 29 23:21:08 but here i have got problem with "Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView" Dec 29 23:21:11 :< Dec 29 23:21:15 when using MediaController Dec 29 23:31:32 "Eclipse can do this for you.. just place the caret on the switch statement” Dec 29 23:31:35 the what? Dec 29 23:32:03 The text cursor. Dec 29 23:32:05 http://tools.android.com/tips/non-constant-fields Dec 29 23:32:07 lol Dec 29 23:32:28 fail.. no suggestions available Dec 29 23:32:28 http://thumbs.dreamstime.com/z/single-carrot-5986629.jpg duh :) Dec 29 23:32:42 this is caret to me.. ^ Dec 29 23:33:11 http://en.wiktionary.org/wiki/caret :) Dec 29 23:33:14 definition #2 Dec 29 23:33:32 Works here, tricknology. Dec 29 23:33:47 well I mean it works but its not workign for what I need it to do Dec 29 23:33:51 Oh. Dec 29 23:33:52 It has worked 4/5 times Dec 29 23:33:58 now I have to manyally do it Dec 29 23:35:22 feature creep :/ Dec 29 23:35:47 what did you call me!? :) Dec 29 23:36:07 Such refactoring tools can be huge time-savers. Dec 29 23:36:13 And sanity-savers. Dec 29 23:36:33 Though I've never used that particular one, to be fair. Dec 29 23:36:39 not if they don’t work :/ Dec 29 23:36:59 Alt+Shift+R (rename) has saved my sanity over and over. Dec 29 23:37:21 i don't even consider rename a refactoring tool Dec 29 23:37:45 “case experssions must be constant expressions.. Dec 29 23:37:46 What would you call it? Dec 29 23:38:01 how I have to switch my switches to if-else statement blocks Dec 29 23:38:06 i don't know Dec 29 23:38:09 that would be refactoring Dec 29 23:38:23 Switching switches sounds so meta. Dec 29 23:38:23 refactoring tool makes it sounds like something you wouldn't otherwise use Dec 29 23:38:31 or that you have to opt-in to using Dec 29 23:38:53 well I wouldn’t if they didn’t change that feature Dec 29 23:39:17 (for this particular case) Dec 29 23:39:40 renaming, suggesting, and auto-completing are no different to me than the "feature" that lets me press a keyboard key and see it in the editor Dec 29 23:39:55 JakeWharton: Would you consider the "extract method" functionality of Eclipse and IntelliJ to be a refactoring tool? I'm guessing so, but just wondering. Dec 29 23:40:43 probably. when intellij finds other snippets and updates them to call the method is more of the refactoring part Dec 29 23:41:06 taking a chunk and turning it into a method by itself isn't really all that impressive Dec 29 23:42:10 with renaming, intellij can update javadoc and reflection-based calls to methods Dec 29 23:42:24 that is more of the refactoring part to me Dec 29 23:42:44 that’s really nice.. updating the javadoc.. Dec 29 23:42:55 instead of recreating it? Dec 29 23:43:10 yes. put {@link #foo} in javadoc somewhere and then rename 'foo' Dec 29 23:43:17 (was that the way to do before?) Dec 29 23:43:21 or do getClass().getMethod("foo") and then rename 'foo' Dec 29 23:44:06 hmm Dec 29 23:44:42 demonstrating a higher semantic understanding of what these things are feels more refactor-y than mechanical changes that are very useful, but not that impressive (and much beyond simple find/replace) Dec 29 23:44:44 Eclipse updates the Javadoc but not reflection calls. Dec 29 23:44:52 the reflection stuff is legit Dec 29 23:45:11 type String.class.getMethod(" and then hit ctrl+space Dec 29 23:45:40 then refactoring depends on what your level is :P Dec 29 23:45:56 to a child, putting a spoon on top of a plate can be called organization Dec 29 23:46:10 and it would be valid Dec 29 23:46:33 at some point, i have to think, if you need that level of refactoring in your application, you may have been doing something wrong all along..... or you just got a new job :P Dec 29 23:46:46 if you do not use IDE renaming you need to stop and learn how to do that Dec 29 23:46:56 oh, i do Dec 29 23:47:00 IntelliJ should recognize manual renaming and slap you in the face with an external USB hand Dec 29 23:47:05 Yeah, these refactoring tools can be a huge time-saver. Dec 29 23:47:07 definitely Dec 29 23:47:13 there's a renamer besides the RENAMER? Dec 29 23:47:16 Or "[undefined] tools". Dec 29 23:47:18 zinx: i didn't mean you specifically! Dec 29 23:47:18 the one that tracks all instances? Dec 29 23:47:25 and i think it's awesome that intellij can do that, and i'd certainly use the feature if i needed it Dec 29 23:47:36 but yeah... at some point, :P Dec 29 23:47:43 cmd + shift + F6 is how I rename anything Dec 29 23:48:07 wrong to place it under the heading of refactoring though :P Dec 29 23:48:18 I love that we have rename-as-you-type now. Dec 29 23:48:25 And you can see all the little names updating. Dec 29 23:48:30 Odaym: you can just shift+f6 if all your are doing is changing names (plus that works for vars, etc.) Dec 29 23:48:33 it just *sounds* like refactoring because we all know that refactoring is synonymous with changes that affect the whole project Dec 29 23:48:55 yeah Dec 29 23:48:55 Is "rename" in Martin Fowler's book? Dec 29 23:48:59 it's the right term, too Dec 29 23:49:19 it just feels strange calling it a refactoring tool when it's something i feel is so fundamental to just normal typing Dec 29 23:49:32 ah, "tool" is a bit much Dec 29 23:49:39 just makes it sound more formal Dec 29 23:49:51 well, good night Dec 29 23:50:06 Yeah, I think he has "Rename Method", "Rename variable", etc. Dec 29 23:51:37 I love the simplicity of that book. Dec 29 23:51:39 Simple things are nice. Dec 29 23:54:24 martin wrote some good stuff. always wished he would update Analysis Patterns Dec 29 23:55:18 Does anyone know why if I callback from a FragmentPagerAdapter to my MainActivity, say mActivity.SetText("this is a test string"), the text doesn't wrap, yet if I call the same function from within MainActivity itself, it wraps just fine? It's so bizzare... Dec 29 23:57:24 https://code.google.com/p/android/issues/detail?id=79729#c239 Dec 29 23:57:31 ugh, forgot to put mvim -f on my git core.editor and lost my commit message :| Dec 29 23:57:36 bullshit, 5018df7 is in 5.0.0 and it's broken Dec 29 23:57:49 O;;ega;StateException: You need to use a Theme.AppCompat theme with this activity.. Dec 29 23:58:41 https://code.google.com/p/android/issues/detail?id=79729#c177 Dec 29 23:58:43 interesting, though Dec 29 23:59:50 g00s: what does -f do? Dec 30 00:00:24 groxx gvim returns right away, git sees empty commit and aborts, i waste time typing :) Dec 30 00:00:45 ah Dec 30 00:00:46 -f is like subl -w (wait) Dec 30 00:01:05 in that case, your commit message should be saved on disk Dec 30 00:01:08 since git won't have deleted it Dec 30 00:01:24 yeah looking for COMMIT_EDITMSG Dec 30 00:01:27 I was hoping it would help with "bumped the wrong key, editor temporarily errored, now your commit message is ignored trollololol" Dec 30 00:03:11 Android apps are so boring. Here are the "best apps of 2014": http://www.reddit.com/r/androidapps/comments/2qr0yf/best_of_randroidapps_2014/ Dec 30 00:03:32 Is Android simply a boring platform? Dec 30 00:03:41 I like play's list better Dec 30 00:03:54 Here Beta wouldn't work on my N7, i guess it needs telephony Dec 30 00:04:02 works great on my lumia though Dec 30 00:04:12 TacticalJoke: no, its just reddit is not the best platform to rate the best apps of android Dec 30 00:04:14 lol Dec 30 00:04:32 :D Dec 30 00:05:33 I still don't get why people love reddit Dec 30 00:05:36 interesting that feedly reader is on there, with only "1,000 - 5,000" installs. methinks the sample size may have been too small Dec 30 00:05:39 hey Napalm . seen this? http://androidbackstage.blogspot.com/ Dec 30 00:06:02 I used to love reddit. Not sure what happened, but I'm starting to hate it now. Dec 30 00:06:08 ./r/programming is okay, though. Dec 30 00:06:22 what happened to reddit is what happened to all social web bullshit Dec 30 00:06:44 g00s: I can't tell whether I'm getting old or whether reddit's just getting awful. Dec 30 00:06:50 (Or perhaps both.) Dec 30 00:06:54 * pfn never liked reddit to begin with Dec 30 00:07:11 ./r/funny is about the worst place on the Internet right now. Dec 30 00:07:29 so, I wonder, is it a memory leak in the screen off animation that makes lollipop suck? heh Dec 30 00:07:32 4chan 2.0? Dec 30 00:08:06 4.2.0 Dec 30 00:08:47 This is a pretty good subreddit (most of the time): https://www.reddit.com/r/trashy (may be slightly NSFW at times) Dec 30 00:08:56 Stuff like people with tattoos all over their faces. Dec 30 00:35:48 have you written anything for chromecast? Dec 30 00:36:13 i have an idea but these docs are kinda confusing. I'm not sure if my idea will be possible Dec 30 00:39:24 then just ask Dec 30 00:42:38 okay: There are three devices involved here. A media server, a chromecast, and an android phone/tablet Dec 30 00:43:28 I'd want it so that media (movies or whatever) is streamed from the media server to the chromecast. You would use the android device to control playback Dec 30 00:44:15 that's how chromecast works Dec 30 00:45:16 Anyone here have a Thrill 4G on ICS? Dec 30 00:50:32 pfn: well sort of Dec 30 00:50:44 not sort of Dec 30 00:50:47 that's how chromecast works Dec 30 00:50:47 actually i guess you're right Dec 30 00:51:06 netflix has a media server too, just on a different network Dec 30 00:51:38 I'm assuming the video is streamed directly to the chromecast, as opposed to netflix -> android device -> chromecast Dec 30 00:53:00 that's how chromecast works, the device is just a remote control, in effect Dec 30 00:53:06 device = android Dec 30 00:53:41 so, which reciever app do I want to use? Default, styled, or custom? Dec 30 00:53:48 depends on what you need Dec 30 00:53:49 why would you go thru the device? Dec 30 00:53:58 default works fine for most purposes Dec 30 00:54:10 styled, is obviously what it's described as, skinning it for your own use Dec 30 00:54:22 ideally I can support other codecs too Dec 30 00:54:30 chromecast only supports what it supports Dec 30 00:54:36 it doesn't support other codecs Dec 30 00:55:19 there is a mention of javascript transcoding? Dec 30 00:56:06 it wouldn't be done on chromecast Dec 30 00:56:36 so if I want to do transcoding, i'd do that work on the server right? Dec 30 00:56:40 yes Dec 30 00:57:44 okay great, thanks Dec 30 00:57:55 have you done development for the chromecast? Dec 30 00:58:06 is it simple? complicated? Dec 30 00:58:15 indirectly Dec 30 00:58:27 I used that stupid cast companion library Dec 30 00:58:28 utter piece of shit Dec 30 01:00:27 I think plex already does what I'm planning to make Dec 30 01:00:42 but it seems like a fun project/experiment Dec 30 01:00:52 lots of media players already do Dec 30 01:01:02 I'm tempted to write something to stream from my hdhomerun to chromecast Dec 30 01:01:44 but in this case, I have to stream from hdhomerun to android -> transcode mpeg2ts to segmented mp4 using ffmpeg -> serve hls streams to chromecast Dec 30 01:01:57 but I watch just about no live tv... Dec 30 01:02:00 oh that is cool Dec 30 01:02:08 and I could save my time and just buy an atsc tuner with hdmi output instead... Dec 30 01:02:20 i didn't know network attached tv tuners existed Dec 30 01:02:53 indeed Dec 30 01:04:35 so in the scenario you set up, would there be much delay? Dec 30 01:04:52 there's always a delay of 1 segment Dec 30 01:05:01 so it depends on what you set your segment time to be Dec 30 01:05:03 I played around with one tool (icecast I think) that lets you stream music to the internet Dec 30 01:05:07 1-10 seconds Dec 30 01:05:12 and there was quite a bit of delay Dec 30 01:09:42 RustyShackleford: never used a bt848? Dec 30 01:09:55 i think pc tuner cards existed since at least the 90s Dec 30 01:10:05 pc tuner is not a network-attached tuner Dec 30 01:10:27 and the bt848 itself is just a videocapture chipset, not a tuner Dec 30 01:10:46 right but most bt848 cards integrate a tuner as well Dec 30 01:38:17 I hate when a web page just doesn't finish loading. Dec 30 01:38:31 Even if you press the Stop button. Dec 30 02:18:33 http://www.infoq.com/news/2014/12/Java10EnhancedGenerics Dec 30 02:18:37 What do you guys think of Nim: http://learnxinyminutes.com/docs/nim/ Dec 30 02:20:15 I wish we could use a cool new language like that for Android development. Dec 30 02:20:46 Person = tuple[name: Name, age: Age] Dec 30 02:24:30 You can even disable the garbage collector. ;o Dec 30 02:25:44 This is a better link: http://nim-lang.org/tut1.html Dec 30 02:29:23 pfn http://phandroid.com/2014/12/29/android-50-lollipop-memory-leak-bug-marked-future-release/ Dec 30 02:30:00 * g00s still using 4.4.4 Dec 30 02:37:21 huh. I must not turn my screen on and off much, I haven't noticed that problem. Dec 30 02:48:42 Can somebody please take a look at this... I'm so confused: http://stackoverflow.com/questions/27698282/android-setting-textview-text-in-a-callback-to-mainactivity-not-working-as-exp **** ENDING LOGGING AT Tue Dec 30 02:59:58 2014