**** BEGIN LOGGING AT Thu Nov 06 03:00:00 2014 Nov 06 03:00:00 da-ding ! Nov 06 03:00:42 unless the chromium project has android bits there, i dunno Nov 06 03:04:58 chromium builds for android just fine Nov 06 03:06:22 if its easy maybe i should use that instead of chrome :) Nov 06 03:06:39 cuppy, fix your nick complete to last spoke order Nov 06 03:06:54 pfn, good tip thx Nov 06 03:13:51 is there any way to insert new palette to layout using function on java Nov 06 03:14:42 I am building an ingredients list in my Activity, and when I click the "New Ingredient" button I want to display a new view where the user can choose the ingredient, and then click "Add" and that is returned to the calling Activity Nov 06 03:14:51 Would that be a new fragment? Nov 06 03:15:34 adityosnrost: you can create or use existing themes in style.xml and then setTheme(R.style.mytheme) Nov 06 03:16:44 or just create a new menu layout and display it was a ContextMenu? Nov 06 03:17:42 eggie5: either way, try both Nov 06 03:18:36 shmooz: The modal view will have a lot of logic in it (a listview), so I think a ContextMenu might not be a good fit Nov 06 03:19:27 shmooz: I already have a parent Activity, should I make this new view a fragment or another activity? Nov 06 03:20:23 I don't do fragments myself but I'm a noob, but I have still managed to get some things working that look like they use fragments Nov 06 03:25:09 eggie5: you can have it be a new view or layout without a new activity or fragment and show and hide that stuff Nov 06 03:26:24 shmooz: yeah it has to be full screen so I was going to make a layout w/ a listview and then when you click the "Add" button it will dismiss the modal and add it to the list in the parent (calling) Activity Nov 06 03:27:16 windowSoftInputMode="adjustResize" doesn't work in a fullscreen activity. Is there a alternative way to set that attribute? Nov 06 03:30:11 eggie5: that would be the normal way Nov 06 03:39:30 this is just bizarre Nov 06 03:39:31 https://github.com/nispok/snackbar Nov 06 03:39:48 "Library that implements Snackbars from Google's Material Design documentation." Nov 06 03:40:05 why can't google implement stuff from Google's Material Desig spec :/ Nov 06 03:43:45 lol Nov 06 03:44:45 that should be as simple as a toast.. Nov 06 03:45:00 if they gave us toast, they can give us snackbar :) Nov 06 03:46:21 still waiting on the swipe right to delete + pull to refresh... Nov 06 03:46:34 pull to refresh is there Nov 06 03:46:40 google inbox has a nice pull to refresh animation Nov 06 03:46:48 i know Nov 06 03:47:01 bankai_au is that the spinning disk ? Nov 06 03:47:05 yeah Nov 06 03:48:30 bankai_au when the spinning disk is showing, are the contents pushed down so its in its own space ? Nov 06 03:48:37 or does it hover over existing content ? Nov 06 03:48:54 floats over the top Nov 06 03:49:12 so it doesn't displace then Nov 06 03:50:28 nup Nov 06 03:52:57 what is the difference between a carrier's version of the nexus 6 and the Google Play version? Nov 06 03:53:14 i think so Nov 06 03:53:42 at least for at&t, apparently they will put apps on there Nov 06 03:54:38 are they allowed? i thought the whole nexus range had a ban on carrier crap Nov 06 03:54:55 it was weird, because it sounds like google would update the device still Nov 06 03:55:11 bankai_au oh, you don't recall the verizon nexus stuff heh Nov 06 03:56:39 VZ Nexus 4 Nov 06 03:59:04 there is no VZ nexus 6 Nov 06 04:11:55 only galaxy nexus Nov 06 04:12:01 there was never a 4 Nov 06 04:12:57 gah i misread Samsung Galaxy Nexus 4G Nov 06 04:13:02 duh Nov 06 04:14:27 ugh, simple date format on android doesn't like my format 😱 yyyy-MM-dd'T'HH:mm:ss.SSSX Nov 06 04:14:59 I also keep forgetting that shit isn't thread safe Nov 06 04:17:57 just wing it, chances are it will work ;) Nov 06 04:18:03 and of course, initializing it in a static member makes android throw a noclassdeffounderror Nov 06 04:18:42 http://hanhuy-acra.appspot.com/public/com.hanhuy.android.irc.lite/17f379e23df3f7ba4db8ea64baa4ed3adf1e8427 Nov 06 04:18:48 way too weird Nov 06 04:19:50 hmm, logcat doesn't go back far enough Nov 06 04:22:15 pfn, eclipse? Nov 06 04:22:26 you can change that.. in preferences, android, logcat Nov 06 04:23:26 you may overrun the VM heap if you go too big though, i think mine is at 999999 Nov 06 04:23:32 i think he's talking about the acra report Nov 06 04:23:33 or maybe 5 9's Nov 06 04:23:43 aaah my b Nov 06 04:24:29 tricknology: weren't you the one recommending that we increase that VM heap from 512 to 1024 in eclipse.ini ? Nov 06 04:25:12 anyone have an invite for a oneplus one? Nov 06 04:25:13 now you went to 999999 ?? Nov 06 04:25:18 am I the only one who's running out of ram ? Nov 06 04:25:18 hah yes, I had just found that and thought it was amazing Nov 06 04:25:32 hahaa nooo not the VM heap. the max numbers LogCat will allow Nov 06 04:25:40 oh Nov 06 04:25:45 if it's too big then it gives some warning about the heap Nov 06 04:26:05 something somethign over 9000 Nov 06 04:29:27 windowSoftInputMode="adjustResize" doesn't work in a fullscreen activity. Is there an alternative way to set content view resized when inputmethod is visible Nov 06 04:31:24 if I start a locationlistener in a singleton will it keep getting location data after the instantiating activity is destroyed? Nov 06 04:31:42 .. and I don't unregister it Nov 06 04:55:45 What's a good usb cable to buy for an nexus 10? that won't break in 2 days Nov 06 04:57:14 aewffwea: have you tried asking Bing[TM]? Nov 06 04:57:26 Monster Cable :P Nov 06 04:57:52 lol, ol Bing Nov 06 04:58:29 i use Bing, default on my lumia 521. works fine. just as good as google :D Nov 06 04:59:04 never even bothered to change it Nov 06 04:59:33 google search is actually pretty crappy. too many adds that look like search results Nov 06 05:00:20 and they make it so easy to distinguish the two :P Nov 06 05:35:46 JakeWharton: regarding u2020, gallery refreshes only if amount of result changed. however, if result didn’t change, it stays the same. How to refresh the list? Nov 06 05:36:24 Trigger the API call through some other means Nov 06 05:36:34 Button, pull to refresh Nov 06 05:37:38 I am call loadGallery but doesn’t refresh Nov 06 05:39:58 JakeWharton: which API call do you mean? Nov 06 05:59:47 good morning :) Nov 06 05:59:51 ( evening etc... ) Nov 06 06:00:31 Can anyone here verify that admob ads appears on amazon fire tablets/phones when you incolude the google services jar in your apk ? Nov 06 06:00:45 include* Nov 06 06:02:40 * Unknown0BC listens to the zzzzz's. Nov 06 06:02:42 hmm, I see, androids simple date format doesn't have the X format Nov 06 06:02:43 and snores Nov 06 06:02:47 that's annoying Nov 06 06:03:58 Many things are annoying. When they are not in the place you want/expect it. Or when you just wanted to change a color or a theme or something and you have to restart eclipse. Nov 06 06:04:00 etc... Nov 06 06:04:17 have fun Nov 06 06:51:30 idk you guys Nov 06 06:51:47 our server guys are planning on changing the APIs to use thrift instead of JSON Nov 06 06:52:02 any idea where to even start the research from ? Nov 06 07:02:29 When I run my app from Eclipse, if a particular Activity is open and my device's screen is off, LogCat shows a NullPointerException coming from android.app.LoadedApk.initializeJavaContextClassLoader: Nov 06 07:02:31 http://pastebin.com/AUxVBACv Nov 06 07:02:42 I googled; not many people understand this. Nov 06 07:02:50 I don't support anyone here has any ideas of what's happening here? Nov 06 07:03:04 TacticalJoke: dod you see the actual line itself? Nov 06 07:03:24 Which line? Nov 06 07:03:42 377 Nov 06 07:03:50 what target sdk are you running? Nov 06 07:04:00 21. Nov 06 07:04:22 I'll look at line 377... Nov 06 07:04:43 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.L_preview/android/app/LoadedApk.java#LoadedApk.initializeJavaContextClassLoader%28%29 Nov 06 07:05:17 that doesn't make sense Nov 06 07:05:41 Yeah, this is the same: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/LoadedApk.java Nov 06 07:05:42 It's a comment. Nov 06 07:06:00 Do we have to subtract comments to get the real line numbers? Or is the compiler taking them into account? Nov 06 07:06:14 TacticalJoke hudle or emu ? Nov 06 07:06:27 maybe it's Thread.currentThread Nov 06 07:06:47 everything else is null protected Nov 06 07:07:04 TacticalJoke: the compiler takes them into account Nov 06 07:07:17 the line numbers are encoded into the class file Nov 06 07:07:22 g00s: Sony Xperia M (4.1) and Tesco Hudl 2 (4.4.2). Nov 06 07:07:22 So far. Nov 06 07:07:29 JakeWharton: Okay. Nov 06 07:07:36 s/4.1/4.1.2/ Nov 06 07:07:45 I would find it hard to believe that Thread.currentThread() can return null Nov 06 07:07:49 I'm puzzled Nov 06 07:08:35 thepoosh: Extra info is that everything works fine when this happens. It's just this message in LogCat (although sometimes I see the " has closed" message appearing for a moment, before immediately disappearing. Nov 06 07:08:53 O_o Nov 06 07:09:03 This doesn't seem to be an issue for the end user, but the message in LogCat weirds me out. Nov 06 07:09:56 TacticalJoke: are there any reports on that in the playstore? Nov 06 07:10:08 it could be a specific manufacturer implementation Nov 06 07:10:18 god knows we had that with Fing samsung Nov 06 07:11:29 There are some SO threads. This one's top answer claims it's an Android bug we shouldn't worry about: http://stackoverflow.com/questions/10150899/runtimeexception-unable-to-instantiate-application Nov 06 07:11:45 The bug was reported on their issue tracker, but it was tagged "WrongForum" (lawl). Nov 06 07:12:03 Here's the issue: https://code.google.com/p/android/issues/detail?id=25869 Nov 06 07:13:37 I can only get this happening while (1) My device's screen is off and (2) The already-running app is showing my TutorialActivity (which holds a Fragment and which has a gradient background). Nov 06 07:13:48 I can't reproduce this with any other activity in my app (whether launcher or secondary). Nov 06 07:13:54 I wonder whether it's the graphics thing (the gradient). Nov 06 07:16:40 Four years ago Nov 06 07:17:38 Nah, reproduced without gradient. Nov 06 07:17:43 I wonder whether it's fragments. :/ Nov 06 07:18:58 its always the fragments' fault Nov 06 07:19:00 Nope. Reproduced without fragments. Nov 06 07:19:18 I'm launching this new Activity in MainActivity.create. Hmm. Maybe it's that. Nov 06 07:19:36 onCreate* Nov 06 07:20:53 i'm sure there was a guide to recyclerview on d.android.com but i can't find it. i remember a diagram Nov 06 07:21:02 Not that either. Nov 06 07:21:12 g00s: It wasn't just the blog? Nov 06 07:22:01 lol, found it Nov 06 07:22:03 http://developer.android.com/training/material/lists-cards.jd#RecyclerView Nov 06 07:22:05 404 Nov 06 07:25:13 anyone know the asnwer to this https://github.com/JakeWharton/u2020/issues/41 ? Nov 06 07:25:31 i told you what to do Nov 06 07:26:09 inject something that you can trigger the API call which refreshes the cache explicitly Nov 06 07:26:26 that would be hooked up to a refresh button or pull-to-refresh Nov 06 07:27:36 u2020 is a sample for Dagger architecture, not a full-fledged example of how to build an app Nov 06 07:29:49 JakeWharton: I am trigering API call and even disabled cache, but still doesn’t refresh Nov 06 07:32:13 That exception message shows line 377 of LoadedApk.java. I looked at the local sdk/sources/android-21/android/app/LoadedApk.java, and line 377 has a comment (but a different one than on GrepCode). Nov 06 07:32:38 Wait. I guess I should be matching my device's Android version. Nov 06 07:34:06 This is not the right line either: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.2_r1/android/app/LoadedApk.java?av=f#377 Nov 06 07:35:11 Can I safely assume this'll never affect my users? Nov 06 07:35:18 Though it's weird. It'll play on my mind for a bit. Nov 06 07:35:26 It applies only to my new Activity, and I can't figure out why. Nov 06 07:36:57 JakeWharton: you are right, it looks like BindableAdapter doesn’t refresh UI Nov 06 07:37:20 BindableAdapter is just a BaseAdapter extension Nov 06 07:37:25 are you calling notifyDataSetChanged? Nov 06 07:38:08 yeah, I tried and also it has in public void replaceWith(List chats) { as well Nov 06 07:40:20 JakeWharton: Maybe becase that GalleryView’s Fragment(Activity) in foreground Nov 06 07:45:22 Ah. Nov 06 07:45:41 Reproduced this with an older (pre-new-Acivity) version of my app. Nov 06 07:45:53 It seems that this is happening whenever a secondary Activity is on the screen. Nov 06 07:46:03 I can't seem to repro with the main Activity displaying. Nov 06 07:46:14 I'm glad, because I thought maybe my new code had a bug. :D Nov 06 07:46:21 Android bugs > my bugs. Nov 06 07:46:30 well, yes and no Nov 06 07:46:42 android bugs persist without the ability to fix them Nov 06 07:46:45 True. Nov 06 07:46:59 fork android Nov 06 07:47:04 Apart from the LogCat message, everything works fine, though. Nov 06 07:47:07 The app is reinstalled. Nov 06 07:47:31 The only thing I (as the user) see, and only sometimes, is "FooApplication has stopped" for a moment. Nov 06 07:47:44 It flickers on the screen. Nov 06 07:47:45 * g00s shudders Nov 06 07:47:46 flashes* Nov 06 07:47:53 But everything else just works. Nov 06 07:48:09 TacticalJoke: once again, does it show in the admin panel of the app in the play store? Nov 06 07:48:29 thepoosh: Hmm. Someone on SO (I think) did report that it does. Nov 06 07:48:29 I think. Nov 06 07:48:30 Want me to find that page again? Nov 06 07:48:55 nope Nov 06 07:48:58 git it here Nov 06 07:49:10 Could you link it? :D Nov 06 07:49:17 I have a quadrillion tabs open right now. Totally lost. Nov 06 07:49:54 so now when I use recycleview preview in intellij doesnt work Nov 06 07:49:58 that's helpful Nov 06 07:50:58 Perhaps you've unlocked Expert Mode. Nov 06 07:51:22 Joking aside, someone complained about this on /r/androiddev today. Nov 06 07:54:16 There's this: https://bugzilla.mozilla.org/show_bug.cgi?id=663931 Nov 06 07:54:31 Suggesting (I think) that a Firefox user clicked "Report" on that error-message thing. Nov 06 07:54:50 Or maybe I'm misinterpreting that. Nov 06 07:55:23 just upgraded android studio but now i'm getting lock ups when i run my project while i already of the AVD up Nov 06 07:55:35 An SO exchange: 1. "I'm getting this in the developer console of a production application. It seems to primarily happen with 4.2, but I've seen other version as well (4.1, 4.4)." 2. "@Dustin, did you solved this? As this exceptions reports at most 34/week! and a lot of complains in user messages!" Nov 06 07:55:37 it's kinda intermittent but never noticed it before the upgrade. Nov 06 07:56:53 Maybe in some cases the message stays up (perhaps for a while). Nov 06 07:57:05 But on my two devices the situation is no problem at all. Nov 06 08:10:58 heh... 3.5 yr old npe on moz Nov 06 08:13:33 wat Nov 06 08:21:23 capella-s3 :( http://venturebeat.com/2014/11/04/firefox-cant-seem-to-stop-bleeding-market-share/ Nov 06 08:21:35 to me it seems pretty obvious Nov 06 08:21:57 i have a craptastic machine, FF should be much better than Chrome, notorious for using lots of memory Nov 06 08:22:21 but FF keeps "leaking" memory like hell, growing, growing , until I have to quit and restart it Nov 06 08:22:32 oh yah, and them tabs i never know which ones eating mycpu Nov 06 08:22:55 now with Chrome, I leave 4/5 tabs open - but the sandboxed nature of these seems to be much better Nov 06 08:23:21 i can leave it running all day, open, close, open, close tabs ... and its always stable with memory Nov 06 08:23:28 as long as i dont use many tabs :( Nov 06 08:23:52 * capella-s3 is just the piano player Nov 06 08:26:45 fx10? I have heard nothing of that til now :/ Nov 06 08:27:21 * capella-s3 needs to come up for air more often Nov 06 08:28:11 Firefox needs multi-tab-select. Nov 06 08:28:23 (I mean on Windows or whatever.) Nov 06 08:28:34 Google Chrome has had this forever. Nov 06 08:30:05 https://blog.mozilla.org/blog/2014/11/03/the-first-browser-dedicated-to-developers-is-coming-2/ Nov 06 08:30:33 that was a few days ago :) Nov 06 08:30:39 I've seen an open bug somewhere for multi tab select Nov 06 08:30:51 Hmm, that article doesn't say much. Nov 06 08:30:55 what is multi tab select ? Nov 06 08:30:58 Nor the video. Nov 06 08:31:23 g00s: Let's say you have six tabs open in a window and you want to move three to another window. In Google Chrome, you can select three (using Ctrl or Shift) and move them in one go. Nov 06 08:31:26 It's really handy. Nov 06 08:31:29 theres no chatter of fx10 in the mailing lists Nov 06 08:31:41 TacticalJoke ah OK Nov 06 08:31:50 double secret probation Nov 06 08:31:58 i still get pissed that I can't move tabs from one tab group to another in a different window Nov 06 08:32:07 Hello... does anyone know how to make Git log all activity in the background in a log file like /var/log/git.log where it writes any time it does a checkout, etc... ? Nov 06 08:32:08 I would use Firefox on Android, but it's way slower for me than Google Chrome is. ;| Nov 06 08:32:09 oh yeah, and tab groups. great idea, abandoned Nov 06 08:32:23 I hated tab groups so much. I tried and tried. Nov 06 08:32:28 OneTab is just miles better, IMO. Nov 06 08:32:36 fucking OneTab lost all my tabs Nov 06 08:32:37 ^ without modifying the command for git Nov 06 08:32:38 after_r: Maybe try #git. Nov 06 08:32:44 k Nov 06 08:32:57 g00s: O rly. Nov 06 08:33:08 FF crashes, i restored the session ... Nov 06 08:33:14 all tabs gone Nov 06 08:33:18 Dough. Nov 06 08:33:21 g00s guy complains on mailing list today he lost 1000 Nov 06 08:33:22 I've never tried OneTab on Firefox. Hmm. Nov 06 08:33:27 i was LIVID Nov 06 08:33:41 as in iLivid? Nov 06 08:33:44 Don't put your tabs in one basket. Nov 06 08:33:47 (:D) Nov 06 08:33:56 yeah , just use bookmarks. have a system Nov 06 08:34:00 don't open 1000 tabs Nov 06 08:34:04 That smiley looks like a chick (as in the bird). Nov 06 08:34:19 Talking of eggs and stuff. Nov 06 08:34:23 lol, "Required permissions: draw over other apps" Nov 06 08:34:30 I didn't even know there is such a permission Nov 06 08:35:13 * TacticalJoke draws over everyone's apps :D Nov 06 08:35:29 isn't that how the facebook messenger thing works? Nov 06 08:35:32 * ravilov draws a blank Nov 06 08:36:29 This situation in Android where few get to update to the latest version really sucks. I wonder whether they'll change things up somehow in the future. Nov 06 08:36:41 It's crazy that people get stuck on 4.1 and stuff. Nov 06 08:36:46 Why can't everyone be on 5.0? Nov 06 08:36:53 (For certain definitions of 'everyone'.) Nov 06 08:36:57 it's called "controlled launch" Nov 06 08:37:05 because 4.1 can show advertisements just fine Nov 06 08:37:21 TacticalJoke, it's because they hate you Nov 06 08:37:35 How much money do the android donut people have to spend on apps? Nov 06 08:37:45 I donut know. Nov 06 08:38:10 as much as any other? Nov 06 08:38:19 why is your OS version relevant? Nov 06 08:40:27 Hmm, I guess it's impossible for Google to push updates for "skinned" Android devices (which is basically all of them). Nov 06 08:40:31 I can't see how it'd even work in theory. Nov 06 08:41:00 Unless Android were modularised in some way that enables something like this. Nov 06 08:41:29 What is the solution to the problem? Nov 06 08:42:20 TacticalJoke: How do you make 10 out of 8 + 5? Nov 06 08:42:54 Using base 13. :D Nov 06 08:42:58 !! Nov 06 08:43:28 not even douglas adams made jokes in base13 :F Nov 06 08:46:13 douglas adams wasn't tactical Nov 06 08:46:36 douglas adams preferred base42 Nov 06 08:47:13 What is the answer to life, the universe, and everything? 10. Nov 06 08:48:00 i'm pretty sure that vogon ode to the green lump of putty was referring to android Nov 06 08:48:10 Some readers noticed that 613 × 913 = 4213 (using base 13). Douglas Adams later joked about this observation, saying, "I may be a sorry case, but I don't write jokes in base 13."[4] Nov 06 08:49:28 Is there a way to listen SoftKeyboard visible or hiden ? Nov 06 08:50:17 have a listener for config changes Nov 06 08:51:26 ravilov, how Nov 06 08:51:59 uh Nov 06 08:52:01 you are expected to do some legwork yourself Nov 06 08:52:13 try googling Nov 06 08:52:24 Even the original query is totally googlable. Nov 06 08:52:59 because I'm in China, and not able to google Nov 06 08:53:07 I did an awesome refactoring tonight: Extract Superclass. My code was way simpler afterwards. Nov 06 08:53:19 It was surprising just how simple the end result became. Nov 06 08:53:22 wiky: Damn, that sucks. Nov 06 08:53:35 um, so this channel is your google substitute? that was never appreciated honestly Nov 06 08:54:41 mornin happy android people Nov 06 08:54:56 which newbie are we kicking today? Nov 06 08:55:11 what is an activity? Nov 06 08:55:21 wiky: Is there a way around the censorship? Nov 06 08:55:26 hokkaido: lmgtfy Nov 06 08:55:34 ;-) Nov 06 08:55:34 kicking noobs is an example of an activity Nov 06 08:56:07 Blocking Google is just insane. Nov 06 08:56:19 wiky, android:configChanges="keyboard|keyboardHidden" in AndroidManifest.xml, then @Override public void onConfigurationChanged(Configuration config) Nov 06 08:56:29 TacticalJoke, you would think that Nov 06 08:56:41 "Omg, we mustn't let people access information. That could end us!" Nov 06 08:57:09 They even blocked RedTube.com. ;o Nov 06 08:57:37 TacticalJoke, more like "we provide all the information the people need" Nov 06 08:57:40 Not that I'd know anything about that. A friend told me. Nov 06 08:57:49 ravilov, thanks Nov 06 08:57:55 "there is no need for external resources" Nov 06 08:58:06 don't hurt the newbs... just bat em around a little before helping em :) Nov 06 08:58:19 wiky: Is stackoverflow blocked in China too? Nov 06 08:58:33 I wonder whether other search engines are banned. Nov 06 08:58:38 Such as DuckDuckGo. Nov 06 08:59:00 Mrdarknezz, no, but hard to open Nov 06 08:59:26 lots of stickytape? Nov 06 08:59:30 they blocks lots Nov 06 08:59:58 wiky, didn't most people find a way around The Great Firewall by now? Nov 06 09:00:23 I guess not though Nov 06 09:00:32 its probably cat and mouse Nov 06 09:00:32 ravilov, maybe VPN, I use it at home, but not now Nov 06 09:00:48 ravilov, most people not care the outside world Nov 06 09:00:55 I see Nov 06 09:01:00 that's a bummer Nov 06 09:01:27 Are "What's new?" screens good or bad? Nov 06 09:01:44 annoying Nov 06 09:01:49 I hardly ever look at them Nov 06 09:02:01 I guess I rarely do, too. Nov 06 09:02:15 I am usually much more likely to check the changelog on gplay Nov 06 09:04:52 there is new channel, #android-os ,everyone is welcomed to join. Nov 06 09:05:26 OERIAS will be sure to kick out any annoying noobs :p Nov 06 09:05:26 what is it about Nov 06 09:05:55 ravilov, well i do if they start up problems Nov 06 09:06:08 How does it differ from #android? Nov 06 09:06:23 the ops are actually there ;) Nov 06 09:07:16 TacticalJoke, it is almost the same, but with a different philosophy Nov 06 09:08:51 life without eventbus is hard... Nov 06 09:09:36 nah Nov 06 09:11:50 wot's different? Nov 06 09:12:19 does lombok work with android ? Nov 06 09:12:40 so many random things Nov 06 09:13:02 ok it does Nov 06 09:16:52 lol damn apple appstore! "Get OS X Yosemite now" - i love the ratings of the users Nov 06 09:19:50 dont know Nov 06 09:20:01 they gave me mac at work and it wants to upgrade Nov 06 09:20:16 but apple wants to know my credit card numbers for apple id Nov 06 09:20:30 so 'how about no' to apple from my side ;) Nov 06 09:21:33 about 2/3 of all comments are "osx 10.10 is shit" ;) Nov 06 09:21:58 well ... ;) maybe i can wait for 10.10.2 ;) Nov 06 09:23:12 ask for a company credit card Nov 06 09:23:23 Aro2220: NEVER irc as root Nov 06 09:23:56 you trust online information too much, monsti Nov 06 09:24:32 ravilov: what makes you think that? Nov 06 09:26:05 your statement Nov 06 09:26:55 well - apple fans rate apples os ;) Nov 06 09:27:42 so i believe them ;) Nov 06 09:28:00 about root that is Nov 06 09:28:16 oh that's true since 1993 Nov 06 09:28:52 never irc as root - stupid DCC command can capture your system Nov 06 09:29:40 sigh Nov 06 09:31:26 ravilov, configChanges="orientation|keyboard|keyboardHidden|screenSize" in Manifest.xml, but onConfigurationChanged not call Nov 06 09:31:33 called Nov 06 09:42:48 did you assign it to an activity and did you remember to add the android: prefix? Nov 06 09:46:54 ravilov, yes Nov 06 09:46:55 so im using appcompat-v7 for the new android L theme Nov 06 09:47:00 but its not showing the actionbar Nov 06 09:47:01 at all Nov 06 09:47:03 wtf? Nov 06 09:47:16 wiky, then I don't know Nov 06 09:47:25 Am i missing something here? Nov 06 09:48:41 ravilov, welp! Nov 06 09:50:03 kevel, I've never used the appcompat lib Nov 06 09:51:53 kevel are your activities extending ActionBarActivity from appcompat? Nov 06 09:52:25 Memorion, ah, i knew i was missing something. Nov 06 09:52:47 Thanks Nov 06 09:56:17 What's it called when I scroll the actionbar and it transforms from transparent to a base color Nov 06 09:56:27 does appcompat and the new action bar support this? Nov 06 09:56:38 or do i have to roll my own? Nov 06 10:04:29 using android studio, i want to refresh the instance of my app when i build/run my project. currently i have to kill the instance on the emulator and then run/build again Nov 06 10:08:21 wiky: you should @Override onConfigurationChanged and handle the events there, otherwise it won't do much Nov 06 10:17:16 @Override is optional, just fyi Nov 06 10:19:16 but good practice Nov 06 10:20:10 capella-s3, absolutely, but it is incorrect to say a callback wouldn't get called just because it wasn't annotated with @Override Nov 06 10:20:27 ah true Nov 06 10:23:00 I just thought he might be expecting some magic to happen when he rotates the device which isn't happening which he probably has to implement himself Nov 06 10:27:47 why are some classes like e.g. https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.html still only in support packages and not in the core library?? Nov 06 10:31:06 man fuck Nov 06 10:31:11 no thanks Nov 06 10:31:27 I really want to bitchslap the asshole that removed initializeScrollbars() call wihtout providing an alternative Nov 06 10:31:33 or documentation. Nov 06 10:32:16 No initializeScrollbars() for you!!! Nov 06 10:37:38 Mavrik: do you know the movie "The Purge"? Nov 06 10:38:35 Mavrik: if we really get a purge day the google coders are not on my top list ;) Nov 06 10:39:29 ohcibi: So you don't want to wait for OS updates to take advantage of new features Nov 06 10:40:41 SimonVT: i know whats the purpose of the support library itself.. i'm wondering why those features are not included in the core library for later sdk versions, such that you can drop all support libraries if you target recent androids anyways Nov 06 10:41:08 Because there's no reason to Nov 06 10:41:44 In my opinion, it was a mistake to add fragments and toolbar to the framework Nov 06 10:41:56 And lots of other stuff Nov 06 10:42:22 SimonVT: agreed Nov 06 10:42:45 well.... thats your opinion... its still inconsistent.. some features got added to the core framework some dont... no real motivation visible... so none of us is happy 8-( Nov 06 10:43:24 some features are in v4, some in v7, some are deprecated in v4 but not in v7... no fun.. Nov 06 10:43:31 it's more and more buggy too Nov 06 10:43:38 ohcibi, go get a job at google's android team and correct this injustice Nov 06 10:43:44 idk what is happening, android wear is a good example of new stuff full of bugs Nov 06 10:43:50 The big disadvantage of adding stuff to the framework is that you can't change the API Nov 06 10:44:35 SimonVT: well i agree that it would be better to export some features to external and optional libraries.. if its consistent.. Nov 06 10:45:50 So rather than being angry at them adding too much to the framework, you're angry at them not adding enough Nov 06 10:46:15 SimonVT: no they should choose ONE way and stick to it Nov 06 10:47:01 SimonVT: either add all features into core library if $enough devices are around supporting them, or keep the core api thin and add optional modules Nov 06 10:47:43 no android.support.v4, v7, vN stuff, but rather android.support.actionbar or something like that Nov 06 10:48:33 Not everything can be moved out into a library Nov 06 10:48:43 and not everything can run on old devices Nov 06 10:48:47 And naming it support-v4 was a mistake, they've pretty much realized that by now Nov 06 10:49:13 (this is why they choose to not allow ripples to "everyone") Nov 06 10:49:20 (as an example) Nov 06 10:49:58 SimonVT: well C:\Windows\system32 is also a mistake ;) Nov 06 10:50:17 it's a mistake i'm here too Nov 06 10:50:19 SimonVT: also /etc <- every file has it's own syntax ;) Nov 06 10:52:53 what is this about random directories? Nov 06 10:56:53 /home/VnM/xxx/ravilov/showerscenes/ Nov 06 11:00:31 scaring the kids again, eh? Nov 06 11:21:50 I want to use a class (POJO) from my main project in an library project which will result in an circular dependency. Is this okay or what will be the best practice? Nov 06 11:24:27 Hey all. Is there a way to make an apk install on an x86 device despite having some ARM libraries included in libs/armeabi? I can't find much info on it as everything now seems to point to using "thin" apks and letting Google Play manage the multiple packages Nov 06 11:25:55 apks will run on x86 and on arm cpus if you don't have any native librarys that are CPU specific Nov 06 11:26:51 Yes, but I do have native libraries that are ARM specific. Only care about using them on ARM though Nov 06 11:27:47 I guess there'd need to be stubbed native libraries at least for other platforms to be able to install it then, is that correct? Nov 06 11:30:01 Hi, I'm trying to change the orientation of the AVD, but when I press Ctrl+F11 to turn it, the windows of the AVD itself turns, but the application running doesn't (not only my own, but the other as well like the Browser) How can I fix this ? I'm running the latest version of Android Studio on Windows Nov 06 11:31:27 android-dev567: Circular dependencies are bad and you should feel bad Nov 06 11:32:55 Tuly-, AFAIK rotation in the emulator quit working after 2.2 Nov 06 11:33:03 (yes that is android 2.2, aka froyo) Nov 06 11:35:56 So what can I do to test an orientation change ? (I'm testing on API 19 KitKat) Nov 06 11:36:38 use a real device? Nov 06 11:37:52 Yes, I'll do that but is there any method to do that ? Nov 06 11:38:19 not that I know of Nov 06 11:38:35 hi Nov 06 11:38:46 Okay, Thank You ! Nov 06 11:38:50 i want to build a sunrise alarm clock with my raspberry pi.. i want the alarm times automaticaly synced with my android smartphone (rooted).. but.. how do i get the alarm times? currently im playing with "dumpsys alarm".. but there are MANY alarms.. ny idea how to get "next wake up alarm"? Nov 06 11:47:23 there are 12 types of Samsung Galaxy S4 mini devices that my Devices List includes, 2 of those are not supported Nov 06 11:47:30 how could I find out why? Nov 06 11:48:09 stacktrace Nov 06 11:48:22 what? Nov 06 11:48:38 oh sorry wrong window Nov 06 11:48:50 nah you just wanted to say stacktrace Nov 06 11:49:05 for your issue check android version and layouts Nov 06 11:49:26 but you mean that they arent supported from google, so there isn't debugging info Nov 06 11:49:32 google play Nov 06 11:49:35 they all have the compliant version, it's the hardware feature that is restrictive Nov 06 11:49:41 cliffreich, stacktrace to you too Nov 06 11:49:59 but I want to know where I could probably look at these devices by code, cause google has like a bagillion of the same device, but different "code" to each Nov 06 11:50:06 gsmarena doesnt work like that Nov 06 11:50:20 ravilov :^) Nov 06 11:51:34 demlak, tried this? http://stackoverflow.com/questions/3690574/ Nov 06 11:52:14 allegedly it doesn't work on certain samsungs but is nevertheless the correct way of obtaining this information Nov 06 11:52:52 well.. im not coding an android app.. i thought i can dump a db/list to a file that i can readout with shell commands Nov 06 11:53:20 there is away to that included on the link Nov 06 11:53:21 i think there is a PDF with device codes Nov 06 11:53:29 oh.. ok.. i´ll read Nov 06 11:53:51 not exactly what you need but you can easily modify the given example Nov 06 11:54:29 wow i found that my app isnt compatible with some Galaxy S Nov 06 11:55:20 nvm android version Nov 06 11:57:04 i wonder if people with Giorgio Armani Galaxy S will want to try my app Nov 06 11:57:31 1st gen galaxy s? Nov 06 11:58:09 i doubt there's a lot of people out there who are still using one (my girlfriend just got a newer one because the sgs was pretty much unusable) Nov 06 11:58:22 Heh, try still rocking a Galaxy Spica :3 Nov 06 11:58:42 No love for gingerbread anymore Nov 06 11:59:10 KekSi well its a GT-i9010 with android 2.2 and Google Android 2.2 Giorgio Armani GUI :O Nov 06 11:59:54 i'd guess it's save to say there's not a single person with either of those out there :x Nov 06 12:00:18 cliffreich, only if it's stylish enough Nov 06 12:00:34 the people who would've shelled out for an armany edition have iphones and don't keep phones for more than a year Nov 06 12:01:07 armany is not a real name/person :p Nov 06 12:01:17 whatever Nov 06 12:01:21 StatusAvailable. Released 2011, January Nov 06 12:01:38 heh Nov 06 12:07:22 interesting http://stackoverflow.com/questions/16603203/android-app-is-not-compatible-with-samsung-galaxy-s4 Nov 06 12:09:34 so I added com.android.support:appcompat-v7 to my gradle file but i cannot import android.support.v7.app.ActionBarDrawerToggle because the symbol cannot be resolved... ActionBar and ActionBarActivity are known though.. whats wrong there? Nov 06 12:10:17 You're not using the latest version of appcompat Nov 06 12:10:38 alright, I have an idea. How do I get the device name (e.g. Nexus 5 == hammerhead)? Nov 06 12:11:33 http://stackoverflow.com/questions/7071281/get-android-device-name first comment on 1st answer I think Nov 06 12:13:25 Build.DEVICE does that Nov 06 12:13:33 or .BOARD Nov 06 12:14:55 yep Nov 06 12:15:28 cause there are like 8 S4 mini's on the devices list, and 2 of them are not supported Nov 06 12:15:35 go figure why Nov 06 12:16:13 not sure why an average app would be concerned with this information though Nov 06 12:16:36 it has a bluetooth hardware uses feature Nov 06 12:16:49 so it isn't showing up as downloadable, for 1 guy Nov 06 12:17:05 how do you explain to them that S4 mini is supported, just not with that device Nov 06 12:17:19 bluetooth le* Nov 06 12:17:31 SimonVT: thanks.. however when I change from 20.0 to 21.0 i get tons of errors about missing resources oO Nov 06 12:17:39 (during gradle sync) Nov 06 12:18:06 ravilov thx a lot.. now im able to get the next wakeup alarm.. now i need a good solution to transport it =) Nov 06 12:18:34 demlak, np and gl Nov 06 12:19:26 Hello, I have a problem with my wear app not installing after installing the main app, how can I debug this? Nov 06 12:20:51 I generate the apk with the Studio and everything seems to be correct, but the wear app never installs. Nov 06 12:21:28 not many wear devs here Nov 06 12:41:01 should work in the native e-mail client 4.1+ ? Nov 06 12:44:50 huh? Nov 06 12:45:12 tel: has nothing to do with email? Nov 06 12:45:35 tel: has also worked since forever AFAIK Nov 06 12:47:54 I'm testing HTML mails where i have a Call us - It's not working in the emulator nor on my m8 :/ Nov 06 12:49:47 I believe whether tel: works or not is up to whether the app can recognize the scheme, just like some browsers don't support market:// on Android Nov 06 12:51:07 It's the native android mail client. Stackoverflow said it should work ;) Nov 06 12:51:35 Drabla: native doesn't mean very much when each manufacturer customizes things Nov 06 12:51:43 Native Android mail client also differs per manufacturer Nov 06 12:52:27 True. But emulator should accept it then? Nov 06 12:52:49 Hi, I have a question on SO about text view not updating: http://stackoverflow.com/questions/26761716/textview-on-first-position-does-not-update-when-toggle-button-is-clicked Nov 06 12:54:37 Drabla, tried tel://123 instead? just an (untested) idea Nov 06 12:55:31 ravilov: Thanks. Tried that but no success. Nov 06 12:59:04 I want to use a class (POJO) from my main project in an library project which will result in an circular dependency. Is this okay or what will be the best practice? Nov 06 12:59:59 android-dev567, you were already given an answer, please stop asking Nov 06 13:00:20 ahh sorry Nov 06 13:00:25 havent seen it Nov 06 13:00:27 thank you Nov 06 13:00:31 Hi there, is there any library for writing math functions with keyboard what i need is something like this: https://pbs.twimg.com/media/B0Z5L1dCcAALsCK.jpg:large Nov 06 13:14:54 is there a way to tell a FragmentStatePagerAdapter what index it should show at first? Nov 06 13:15:49 The adapter doesn't decide what index to show, ViewPager does Nov 06 13:16:35 oh! my bad Nov 06 13:56:55 is this accurate? https://www.gitignore.io/api/android Nov 06 13:56:56 I don Nov 06 13:57:09 I don't even have a .gradle/ I have a gradle/ Nov 06 13:57:14 did they use to create it as hidden? Nov 06 14:02:40 .gradle in the project directory is just for caching, don't add it Nov 06 14:03:39 what about gradle/ is that needed? if someone wants to pull my code and run it Nov 06 14:03:56 Yes Nov 06 14:04:01 alright Nov 06 14:04:06 Is anyone comfortable with notifications and alarms? Nov 06 14:22:34 does robolectric still only support up to sdk18? Nov 06 14:22:45 and if so, is there a way to make @Config(emulateSdk=18) work throughout the project? or do I have to do that for each and every test? Nov 06 14:22:52 something like an androidTestConfig that I can override targetSdkVersion? Nov 06 14:30:38 Any idea why the Account Manager's permission request from am.getAuthToken does not show up in front of the activity, but only in the notification bar? Nov 06 14:35:24 http://www.commitstrip.com/en/2014/11/05/when-a-project-manager-speaks-to-another-project-manager/ Nov 06 14:42:46 android studio keeps telling me that there is "no debuggable application" when there most definitely is one. i already tried restarting adb and android studio. any idea what else i could do? Nov 06 14:43:11 Dump the stack trace To obtain a stack dump from emulator, you can log in with adb shell, use ps to find the process you want, and then kill -3. The stack trace appears in the log file. ( http://developer.android.com/tools/debugging/index.html ) <--- where is the log then? Nov 06 14:58:45 After I install my app, this shows up in the wear emulator's log http://paste.nohus.eu/?OrQZGg and the wear app does not install. I tried creating a new wear app project and it's still the same. Nov 06 15:02:04 Hi! I am making an android app, actually 2 apps for phone and tablet. How can I manage them under same git repo so people can easily use Studio to checkout either of the projects easily. I asked the same thing on #git and they adviced me to use either gitmodules or a separate branch. Which one would be better? Nov 06 15:03:34 are there standardized padding dimensions in Android? Something like default_device_padding that would translate to maybe 10dp on small screens, 30dp on tablets, etc? Nov 06 15:03:36 astroduck: first question: are you certain the two apps need to be developed separately? Nov 06 15:03:57 because with layouts, you can make an app have different views in tablet/phone Nov 06 15:05:25 astroduck: I ask this because it will be somewhat painful to set up two separate apps the share a common codebase (I would recommend using a module for the common code, but it's best to simply avoid that problem entirely) Nov 06 15:07:01 there could be something in android.R.dimen.* Nov 06 15:09:11 MarkyC: I am using LG's QPair SDK to make a phone app that needs a companion on tablet. Except the name, the two apps are completely different Nov 06 15:09:58 But I read online that using gitmodules can be really confusing. I am not a git pro exactly, just a noob :P Nov 06 15:10:37 astroduck: is there shared code between these apps? enough that you would not want to duplicate it? Nov 06 15:11:07 astroduck: if so, shared code goes in a common module, so you have 3 projects: myqpair-phone, myqpair-tablet, myqpair-common Nov 06 15:11:16 ravilov: I'll take a look, thanks! Nov 06 15:12:10 ravilov: doesn't look like it: http://developer.android.com/reference/android/R.dimen.html Nov 06 15:12:30 try other built-in resources such as styles Nov 06 15:14:18 MarkyC: No, no shared code. Its completely different so even using 2 orphan branches won't be a problem. I just don't want to deal with some disastrous git problem later. And Nov 06 15:14:36 * Ignore the trailing And Nov 06 15:15:15 astroduck: If you have 2 separate projects, use 2 separate git repos Nov 06 15:17:00 ravilov: I see R.attr has a couple of padding keys, I'll explore: http://developer.android.com/reference/android/R.attr.html Nov 06 15:21:39 MarkyC: I guess using 2 repos is better than dealing with all the possible problems. Thanks for your advice :) Nov 06 15:22:16 astroduck: yes, 1 git repo = 1 project. You're making two separate projects (which just so happen to interact), so they belong in separate repos Nov 06 15:28:51 ravilov: I've rethought my strategy for laying out the screen, is using a linearlayout with weights a sane option for making my about screen: https://gist.github.com/MarkyC/0970a4fd9acf7e5f0e5a (I support mdpi and up). Nov 06 15:37:55 ravilov: hey, my firefox crashed after sending that message, did it go through (regarding using a linear layout with percentage weights to lay out my about screen) Nov 06 15:39:40 yes I sas it, I don't see a problem with that, I would just make sure my views aren't called textview7 etc Nov 06 15:44:49 What if the linearlayout is smaller than the size of the child views if they were measured as wrap content Nov 06 15:45:47 when executing the tool android with --no-ui is there a way to automatically accept all licenses? Nov 06 15:46:07 ravilov: Yeah, I have to properly name IDs still, but I wanted to see if the basic idea was sane before continuing Nov 06 15:46:29 SimonVT: Is that possible? All child views = 100% Nov 06 15:48:21 Sure it's possible.. The child views are sized based on the linearlayout size Nov 06 15:49:49 SimonVT: and the linearlayout fills the entire screen (it's the content view of an activity in this scenario). Could you please explain (I'm more of a backend dev guy, my Android is poor) Nov 06 15:52:38 Lets say your about screen measures 300 px if all were wrap content Nov 06 15:52:46 And you put it in a 200 px linearlayout Nov 06 15:52:50 How do you think that'd look? Nov 06 15:53:24 hi Nov 06 15:55:08 SimonVT: I expect them to be squished within 2/3rds of the screen Nov 06 15:55:42 That in itself would look horrible Nov 06 15:56:15 SimonVT: So my caveat here is that I must make sure no one reuses this view within another view (it is currently the content view of an activity) Nov 06 15:56:30 Usually when you have content that doesn't fit the screen you make it scrollable Nov 06 15:57:42 SimonVT: hmmm, I think I like that approach. In case there is a small screen that I have not tested on, instead of clipping the content, these small screen users would be able to scroll Nov 06 15:58:25 Doesn't just have to be small screen, something as simple as putting it in landscape could mess it up Nov 06 15:59:22 You usually only use weight for stuff that either scrolls or handles being laid out at different sizes gracefully Nov 06 15:59:26 Never static content Nov 06 15:59:35 (almost never) Nov 06 15:59:56 Hi, how to list all local users of a tablet? Nov 06 16:02:06 check3r: http://developer.android.com/reference/android/accounts/AccountManager.html#getAccounts%28%29 ? Nov 06 16:03:22 MarkyC thx i will check this out and i hope it's not the google accounts.... Nov 06 16:03:35 SimonVT: I see, thanks for pointing out that edge case. Could you show an example? It appears simply wrapping the LinearLayout in a ScrollView makes the weights not work (items appear one after another, disregarding their weights) :/ Nov 06 16:04:33 My point was that you shouldn't use weight Nov 06 16:06:19 SimonVT: Gotcha, could you recommend a way to achieve this type of layout: http://i.imgur.com/OkJIoKO.png Nov 06 16:09:09 MarkyC: AccountManager.getAccounts() doesn't return the local accounts. it seems to be about google accounts for synchronization and email Nov 06 16:09:21 You can have fixed padding between the items, you can have empty views with weight act as padding, you can create a custom viewgroup Nov 06 16:10:00 You probably want android:fillViewport on the scrollview so the linearlayout height is always >= the scrollview height Nov 06 16:10:10 match_parent doesn't work in scrollview Nov 06 16:12:59 check3r: these accounts: http://i.imgur.com/49nsX7a.png Nov 06 16:13:56 SimonVT: I see. I'm pretty sure that's what my iOS guy did as well (I asked him to put it in landscape, and the view scrolls as opposed to resizing to fit the screen) Nov 06 16:13:58 SimonVT: Thank you! Nov 06 16:15:26 check3r: because that looks like it would be: http://developer.android.com/reference/android/os/UserManager.html Nov 06 16:16:34 is there a way to get Html.fromHtml to work with a custom font? Nov 06 16:17:37 SimonVT: One more question for ya: is there a way to underline text in a layout.xml file? Nov 06 16:17:59 SimonVT: I see setPaintFlags(), but that's programmatically Nov 06 16:21:47 JacobTabak: Assume you saw http://stackoverflow.com/questions/4314507/using-html-fromhtml-to-set-custom-typeface Nov 06 16:22:08 aye, its not exactly what i'm looking for Nov 06 16:22:16 i have a textview with a custom typeface and the spans seem to be ignored Nov 06 16:22:20 from html.fromhtml Nov 06 16:22:23 i want to set bold, italic etc Nov 06 16:22:44 well, more specifically, i want to display html pre-formatted content from an api Nov 06 16:23:36 (there's a clear way to do it, but it's a bit more involved than I was hoping) Nov 06 16:23:46 specifically, remapping the spans Nov 06 16:29:14 JacobTabak, you could set the typeface for the entire textview Nov 06 16:29:31 thats what i'm doing Nov 06 16:29:36 the issue is when i do that the spans are ignored Nov 06 16:29:44 ie, html.fromhtml doens't do anything Nov 06 16:32:19 hmm Nov 06 16:32:44 what if you set the font and then assign the spanned text? Nov 06 16:32:55 i set the font in the constructor Nov 06 16:33:08 then setText() with the spanned text Nov 06 16:33:18 ok, then the other way around Nov 06 16:33:34 then my custom font wouldnt be used Nov 06 16:33:35 i am a programmer who sucks with ui Nov 06 16:33:37 :( Nov 06 16:33:39 if that doesn't work either I guess the only alternative is to make your own spannable text processor or something Nov 06 16:33:47 tired of how bad mysms/mightysms are Nov 06 16:33:48 yea i think i need to remap the spans Nov 06 16:34:05 want to use the textra ui and write my own backend Nov 06 16:34:42 how hard is it to take the ui of an app Nov 06 16:35:11 very Nov 06 16:35:45 possibly also illegal Nov 06 16:36:12 textra did it to qksms Nov 06 16:36:13 so doubt that Nov 06 16:36:24 but ok i guess i have to write it from scratch anyway Nov 06 16:36:33 is there somewhere i can pay someone to make a ui Nov 06 16:36:55 I'd like a big trout to slap djshotglass right about now Nov 06 16:37:24 djshotglass: "clean room implementations" are generally okay. Straight up copying the code is not Nov 06 16:38:01 id like a million dollars Nov 06 16:39:43 How would someone overlay an image (with an animation) on top of an Activity? Nov 06 16:40:53 Ideally, I don't want to throw up an Activity on top of my activity (I know I can do it that way), but if that's the only way, I guess I'll do it that way Nov 06 16:45:15 Hey guys I made nested for loop to compile a list and I have it display in listview. Problem is when I click on item compiled from the nested for loop nothing shows up, but if I click on "redstone torch" that is coded like this recipes.add("redstone torch") it will work the way I want any idea why? http://pastie.org/9699474 Nov 06 17:00:04 assertThat(mPhoneTextView).hasText("1 (888) 555-5555"); fails saying Expected text <1 (888) 555-5555> but was <1 (888) 555-5555>. Nov 06 17:00:05 wtf Nov 06 17:01:58 what could I be missing there? Nov 06 17:02:05 perhaps it expects regex? Nov 06 17:02:37 prior call: assertThat(mPhoneTitleTextView).hasText("Phone:"); passes fine Nov 06 17:03:01 maybe tabs? Nov 06 17:03:13 or any other stupid whitespace chars? Nov 06 17:04:02 I'll try that out Nov 06 17:04:59 had a bunch of string interpolation errors of "\\\n\\\n" and "\'" earlier Nov 06 17:05:04 that sounds exactly like your string being interpreted as a regex and then failing ;) Nov 06 17:05:10 so wouldn't be surprised, I guess Nov 06 17:05:14 which library are you using for asserts? Nov 06 17:06:01 using robolectric, junit 4.12, fest-android 1.0.7, and equalsverifier 1.4.1 Nov 06 17:06:12 robolectric 2.4 Nov 06 17:07:34 joshkovach, btw, that might be relevant: https://github.com/robolectric/robolectric/issues/1089 Nov 06 17:08:25 oooh, good catch Nov 06 17:10:16 is there something similar with assertEquals? Nov 06 17:17:12 looks like that fixed it Nov 06 17:20:14 Anyone know what could cause permissions that I did not add to my manifest to show in App info? Nov 06 17:21:17 The only permission that I have added is SET_WALLPAPER, but read phone status and modifyor delete contents of SD card are being shown as well. Nov 06 17:21:34 Not sure how or why they are there. Nov 06 17:22:21 fest-android is now called assertj-android? Nov 06 17:27:26 Akkord93, libraries you're using? Nov 06 17:30:02 let me check Nov 06 17:33:10 how would I check which libraries I'm using? Nov 06 17:34:43 xD Nov 06 17:38:27 all I see in project properties is android.library.reference.1=../appcompat_v7 Nov 06 17:40:21 aloha Nov 06 17:41:03 someoen shoul make a plugin for android studio that opens up an IRC chat window that links up to this room Nov 06 17:41:13 could be good, coul dbe bad Nov 06 17:43:40 Has anyone used Jake's circle viewpager paginator? Nov 06 17:44:03 hello, I'm using a BroadcastReceiver subclass to handle incoming SMS, is there a way to prevent the caught SMS to be further processed by the system (ie. don't notify the user or write the SMS into memory) Nov 06 17:44:16 because I'm sending specific messages that I want to process without storing or displating them Nov 06 17:44:19 displaying* Nov 06 17:44:22 yes zopieux Nov 06 17:44:29 import static org.assertj.android.api.Assertions.assertThat; is there any reason why android studio would think this would not exist if I have it in my androidTestCompile and I'm synced? Nov 06 17:44:30 don’t make the call to super Nov 06 17:45:16 well, as a BroardcastReceiver I guess it sends the event to every registered receiever Nov 06 17:45:19 you have a service that is filtering the messages you want to keep, when it sees one of those messages do something and let the method finish without callign super(). if it is a message you don’t want to filter than call super() Nov 06 17:45:23 aha Nov 06 17:45:38 I forget how I did it.. but I think you have to register a priority Nov 06 17:45:46 there is indeed Nov 06 17:46:13 make yours have higher priority, some big number Nov 06 17:46:36 when doing a nav drawer, do yall do separate Activities or fragments for the different items in the menu? Nov 06 17:46:49 maybe Integer.MAX_VALUE Nov 06 17:47:11 will do Nov 06 17:47:44 then use abortBroadcast() Nov 06 17:48:31 that will kill the broadcast to all the reveivers with lower priority.. meaning it will hit yours first then be aborted so none of the other listeners will ever know Nov 06 17:49:29 see here Zopieux http://stackoverflow.com/questions/1741628/can-we-delete-an-sms-in-android-before-it-reaches-the-inbox/2566199#2566199 Nov 06 18:03:01 thanks tricknology Nov 06 18:03:12 np :) Nov 06 18:03:15 abortBroadcast() great Nov 06 18:03:49 it’s right in here: http://developer.android.com/reference/android/content/BroadcastReceiver.html Nov 06 18:03:54 http://www.androidpolice.com/2014/11/05/lollipop-feature-spotlight-android-5-0-now-includes-advanced-goat-recognition-technology/ Nov 06 18:03:58 did you hear?! Nov 06 18:04:05 Beginning with Android 4.4—any attempt by your app to abort the SMS_RECEIVED_ACTION broadcast will be ignored so all apps interested have the chance to receive it Nov 06 18:04:06 that the bird is the word? Nov 06 18:04:27 haha that sucks for my app Nov 06 18:04:42 going to have to use push notifications I guess Nov 06 18:04:48 ? Nov 06 18:04:49 which sucks because theyre not free Nov 06 18:04:59 why do you say that Nov 06 18:05:19 what's wrong with a heroku gcm server? Nov 06 18:05:27 my app sends a SMS to your friend with your geolocation as well as a tag so that the service can filter it out.. so your friend doesnt get garbage texts Nov 06 18:05:42 apparently as of 4.4 no more abortBroadcast() :9 Nov 06 18:05:48 yep Nov 06 18:05:54 that's the kind of thing I wanna do Nov 06 18:06:05 but I do understand the security considerations Nov 06 18:06:14 or blocking an sms? Nov 06 18:06:16 of* Nov 06 18:06:23 Zopieux, how about using data SMS? Nov 06 18:06:25 would be an easy way to send remote shell commands via GSM Nov 06 18:06:42 well yeah you could kind of take control of someoen’s phone using an sms Nov 06 18:06:42 Zopieux, that's why the datasms is there for :) Nov 06 18:06:43 haha yea Nov 06 18:07:02 what are you talking about? Nov 06 18:07:07 ^^? Nov 06 18:07:09 datasms? Nov 06 18:07:12 yes Nov 06 18:07:21 the fact of putting binary data into SMS? Nov 06 18:07:32 guys please help!!!! Nov 06 18:07:41 im really frustrated... i have been two days trying to google why debugging in android-studio takes for ever... i have my android-studio stuck in :app:preDexDebug and its taking FOREVER Nov 06 18:07:43 the site im on is talkgin aboiut sending sms from a pc Nov 06 18:07:55 ..which you can do with email.. but thats not what we want i think Nov 06 18:08:05 also i would like to stop this damn thing but im not sure how :( Nov 06 18:08:08 we want to filter SMS messages to avoid using push notification services, no? Nov 06 18:08:36 I wanna do an activity-less app, just run a background service Nov 06 18:08:58 I'm trying to start the service using a BOOT_COMPLETED reciever but using ADB to fake it, it does not work Nov 06 18:09:04 I'm talking about this: http://stackoverflow.com/questions/3757229/how-to-send-and-receive-data-sms-messages Nov 06 18:09:16 adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -n com.foobar.fooapp/.BootCompletedReceiver Nov 06 18:09:29 operators are able (even though I'm not sure if all of them) to send a so called data sms which is not displayed to the user Nov 06 18:09:39 oh, okay Nov 06 18:09:40 and it's delivered via data network by default Nov 06 18:09:44 I don't like this. Nov 06 18:09:45 with stepdown on some networks Nov 06 18:09:59 im really frustrated... i have been two days trying to google why debugging in android-studio takes for ever... i have my android-studio stuck in :app:preDexDebug and its taking FOREVER Nov 06 18:11:03 You... don't like the mechanism made exactly for your usecase... Nov 06 18:12:22 hey guys !!! Nov 06 18:12:24 please help Nov 06 18:12:45 I don't like the fact my network op can send anything without me knowing Nov 06 18:12:59 how is his posible... im just seting 1 button for facebook login in a blank android app template... AND I HAVE BEEN FOR LIKE AN HOUR WAITING THIS DAMN THING TO LOAD IN MY VIRTUAL DEVICE Nov 06 18:13:01 I wonder if it's widespread Nov 06 18:13:10 wait you can send data sms yourself? Nov 06 18:13:42 they're not "firewalled" by the operator Nov 06 18:13:44 ? Nov 06 18:13:45 Zopieux, silent SMSes exist for as long as GSM network is standardized Nov 06 18:13:56 also SMSes that automatically open Nov 06 18:14:04 and SMSes that execute commands on phones :P Nov 06 18:14:53 and this is damn stupid Nov 06 18:14:57 PLZ HELPPPPPPPPPPPPPPPPPPP :'( im about to kill my cat haha Nov 06 18:18:23 Hi, I have a problem where my notification pops up as soon as I set it even though it's only supposed to pop up during alarm. Nov 06 18:24:55 Hey guys I made nested for loop to compile a list and I have it display in listview. Problem is when I click on item compiled from the nested for loop nothing shows up, but if I click on "redstone torch" that is coded like this recipes.add("redstone torch") it will work the way I want any idea why? http://pastie.org/9699474 Nov 06 18:26:24 Demon_Jester can you pastbin your code? Nov 06 18:26:45 its the pastie.org link at the bottom or do you prefer pastebin? Nov 06 18:28:03 tricknology its the link at the bottom of my block of text. idk if you saw my other message. Nov 06 18:28:40 I didn't Nov 06 18:29:00 tricknology did you want me to relink the pastie? Nov 06 18:29:12 http://pastie.org/9699474 got this one Nov 06 18:29:20 ok sounds good Nov 06 18:29:26 Thanks for taking a look. Nov 06 18:31:14 the code you pasted loks fine.. Nov 06 18:32:00 I thought so too. But for testing I put up toast message just to see if the itemValue is different then what its comparing, but when I click gold chestplate it wont display the recipe. Nov 06 18:32:20 it will on redstone torch and chest Nov 06 18:32:22 oh Nov 06 18:32:30 its your append maybe Nov 06 18:32:33 is android 5.0 out there? Nov 06 18:32:41 not yet Nov 06 18:32:43 6 more days Nov 06 18:33:02 Demon_Jester in your nested for loop, you are eppending a ‘ ‘ char Nov 06 18:33:20 try to make the string the same as you do in your second nested for Nov 06 18:33:21 huh... 5 of my users are using android 5.0 Nov 06 18:33:32 not officially out Nov 06 18:33:38 oh ok Nov 06 18:33:38 unless they got the Nexus devices Nov 06 18:33:47 tricknology I changed it to this, I forgot to add this. http://pastie.org/9700839 Nov 06 18:34:09 recipes.add(i+" "+j); Nov 06 18:34:21 yeah, did that work? Nov 06 18:34:27 no, still same result Nov 06 18:34:33 you should also not be using == to compare strings Nov 06 18:34:43 use string.compareTo(otherString) == 0 Nov 06 18:34:55 omg Nov 06 18:35:01 fill_parent is deprecated, right? Then why does Studio give me that in auto complete and not match_parent? Nov 06 18:35:01 == 0 means true correct? Nov 06 18:35:07 well no Nov 06 18:35:32 http://stackoverflow.com/questions/5683840/how-to-delete-all-items-from-sqlite-in-android .If I had several tables, can I just list all the table names together in one raw sql query? Nov 06 18:35:33 fill_parent and match_parent are the same Nov 06 18:35:35 string.compareTo(otherString) will return an int. i think it is tsum of he difference between each character Nov 06 18:35:51 so it bois down to that int i Nov 06 18:35:54 i == 0 Nov 06 18:35:59 althought fill_parent is marked as deprecated Nov 06 18:36:03 if i == 0 then your strings are the same Nov 06 18:36:13 why not .equals() Nov 06 18:36:21 because that compares the object Nov 06 18:36:23 Ashiren: I know but fill_parent name is deprecated since API8, as read on SO, so why am I getting that suggestion? It is deprecated, right? Or that SO answer is wrong? Nov 06 18:36:34 tricknology I am trying it out now. Nov 06 18:36:45 and I think beyond comparing objects it compared the address of the object Nov 06 18:36:47 for me eclipse SOMETIMES complains about it Nov 06 18:37:04 @b341fg == @ff34a38 Nov 06 18:37:16 tricknology it works! thanks! idk why I didn't think of using compareto() Nov 06 18:37:19 the two strings could have the same value but different memory address Nov 06 18:37:24 and your comparison will break Nov 06 18:37:43 :) it’s a common pitfall, glad I could help :) Nov 06 18:37:59 so, compareto is better option (most of the time?) when comparing strings? Nov 06 18:38:08 .equals() works for seeing if 2 strings are the same Nov 06 18:38:12 and its more readable IMO Nov 06 18:38:19 Agreed Nov 06 18:38:31 and as for strings, it compares values, not references Nov 06 18:38:49 Demon_Jester: compareTo() Compares two strings lexicographically Nov 06 18:39:04 http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#compareTo(java.lang.String) Nov 06 18:39:07 ^ that’s it Nov 06 18:39:11 also http://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java Nov 06 18:39:58 equals(Object obj) Nov 06 18:39:59 Indicates whether some other object is "equal to" this one. Nov 06 18:41:18 well what you need more when you need only if its the same Nov 06 18:52:18 uuh. getting NPE on ig(var == null) return “string” Nov 06 18:52:25 if(var == null) Nov 06 19:00:13 anybody knows why custom font rendering issues like http://i.imgur.com/z3VHCar.png or http://i.imgur.com/EGudzDM.jpg might be happening in an app? Nov 06 19:00:35 I've seen that before Koman. Nov 06 19:00:47 Are you using Android SDK to do rendering? Nov 06 19:00:54 Or OpenGL / FreeType? Nov 06 19:04:38 komandant: (See above) Nov 06 19:04:50 android sdk Nov 06 19:05:10 Well I can get you going on the right track. Nov 06 19:05:20 anything helps Nov 06 19:05:28 For one Android uses FreeType (1/2) to do Font / Text rendering. Nov 06 19:05:57 weird.. Nov 06 19:05:59 http://pastebin.com/54GXL4ty Nov 06 19:06:06 When FreeType sees that certain "Glyphs" (fonts / texts) are not available, it automatically replaces it with these white squares you're seeing. Nov 06 19:06:14 can anyone tell my why null==null would throw NPE? Nov 06 19:06:29 globalLocation is type Location Nov 06 19:06:41 line 123 in the stack trace is line 5 Nov 06 19:07:54 isn't your problem in line 2? Nov 06 19:08:39 so are they getting garbage collected or? beacuase at some point the font just gets replaced by squares. Nov 06 19:10:07 Memorion that would make sense.. maybe my logcat is out of sync Nov 06 19:10:34 hey, does anyone know how to download an APK from the Play store without using a phone (i've tried many an emulator, but it seems to not be compatible with them) Nov 06 19:11:24 tricknology your exception is on Locator.getLocationString() not something in Location so your Locator.getInstance seems to return null Nov 06 19:11:46 yikes htc http://phandroid.com/2014/11/06/nexus-9-build-issue/ Nov 06 19:13:24 bit weird that it happens only on some devices (nexus5, motog both 4.4)... works fine on galaxy s3 and desire 200 Nov 06 19:13:28 komandant: I'm just guessing, but are you using custom font files in your app? Nov 06 19:13:36 yes i am Nov 06 19:13:36 .ttf, or .otf? Nov 06 19:13:41 .ttf Nov 06 19:13:45 on old api levels, loading bitmap directly into imageviews with imageView.setImageDrawable(getResources()....) lead to OutOfMemoryErrors from time to time (because system didnt call recycle and the bitmap leaked) Nov 06 19:13:53 Check that the device your using supports .ttf. Nov 06 19:13:56 this isnt an issue at all above 3.0, is it? Nov 06 19:14:03 It's real name is TrueType Font. Nov 06 19:14:12 If it doesn't then that's your prob. :) Nov 06 19:14:19 danijoo, you don't have to call recycle, but you'll easily get OOM error if you fragment your heap or actually run out of heap :) Nov 06 19:14:27 If it does, then it could be another issue. Nov 06 19:14:40 What I would do is build a release build. Nov 06 19:14:49 And check your folder to see if the .ttf is inside the .apk. Nov 06 19:14:53 Mavrik: but above honeycomb this is system managed isnt it? Nov 06 19:14:53 If it's not, then that's the problem. :) Nov 06 19:15:00 danijoo, which part? Nov 06 19:15:09 no matter what API Nov 06 19:15:20 I'm not sure if Android compiles .ttf into binary files, but I don't think it does. Nov 06 19:15:24 if you load images that go over your heap budget your allocation will crash with OOM exception Nov 06 19:15:41 or if you fragment your heap and there will not be more space for your allocation - we don't have compacting GC as of 5.0 Nov 06 19:15:42 just to be clear, the font renders correctly then it crashes after some time Nov 06 19:15:48 Mavrik: yes but above 3.0 i can be sure no bitmaps leak anymore, cant i? Nov 06 19:15:57 Oh, so at some point you do see it render correctly? Nov 06 19:16:03 if i do imageView.setImageDrawable(resource) Nov 06 19:16:03 yes Nov 06 19:16:09 Ok, that's a weird issue then. :0 Nov 06 19:16:23 I feel like the "view" is not being updated properly. Nov 06 19:16:32 Did you inherit from some Text Class? Nov 06 19:16:42 And use a custom class to render your text? Nov 06 19:16:56 danijoo, reasonablly sure, yes Nov 06 19:17:08 Nope, it's applied on app level Nov 06 19:17:15 Ok. Nov 06 19:17:18 not on view Nov 06 19:17:40 Ahh so it's like some "App wide" custom text? Nov 06 19:17:48 Mavrik: Context is i dropped support for 2.3 on an app and trying to clean out unneeded code. Nov 06 19:17:55 yep exactly Nov 06 19:17:58 Ahh I see. Nov 06 19:18:08 One test you can do is. Nov 06 19:18:14 And i think i can maybe remove all those bitmap caching if all i do is setting some icons from drawable resources Nov 06 19:18:17 Do you know how to enable the GPU debug info on your device? Nov 06 19:18:25 Where you see the red and green debug squares? Nov 06 19:18:32 Showing you which views are using the GPU most. Nov 06 19:18:33 Memorion sorry, the order of the functions is not the order of the stacktrace.. i hope getInstance is not returning null haha it is a singleton Nov 06 19:18:43 it should construct itself if it’s null Nov 06 19:19:03 should be somewhere in dev options, right? Nov 06 19:19:06 Yep. Nov 06 19:19:09 I have location turned off so it will never get a gllobalLocation Nov 06 19:19:15 On my phone it's called "Show GPU View Updates" Nov 06 19:19:39 it is declared like: private Location globalLocation; Nov 06 19:19:56 found it Nov 06 19:20:00 so it will be null if a value is not assigned to it.. but logat told me it was on if (globalLocation == null) return "No Location"; Nov 06 19:20:12 Run your app, and see the squares that encompass your text. Nov 06 19:20:28 What color do you see? Nov 06 19:20:35 And brb restroom. Nov 06 19:20:57 lots of red Nov 06 19:22:57 tricknology sorry, just thought it fit because it said "com.some.library.location.Locator.getLocationString(Locator.java:123)" and you use that method there Nov 06 19:27:23 hm but it seems that sometimes after i touch the screen the red vanishes Nov 06 19:28:41 Hi people. I have a fragment with a listview. On orientation change the data are lost. I've put setRetainState(true); but I'm not sure how to handle things inside onCreateView(). Because currently I inflate my default view and the data are of course lost. Any ideas ? Nov 06 19:31:57 save/restore using Bundles? Nov 06 19:32:00 three tests fail when running the test suite in gradle, 0 fail when running with maven Nov 06 19:32:11 wonder what's up with that... Nov 06 19:32:30 gradle is unstable and everchanging? Nov 06 19:32:32 or so I hear Nov 06 19:33:05 sweet Nov 06 19:33:09 that sounds close Nov 06 19:34:00 my adapter retains the data, but I'm not sure on how to redraw them Nov 06 19:41:39 Beket: if your adapter would have retained data, it would render it Nov 06 19:41:48 if it doesnt, it has no retained data Nov 06 19:42:12 and adapters dont retain them automagically. you have to give it that retained data when you create it Nov 06 19:42:27 danijoo, I'm printing via adapter.getCount() and I see e.g. '18'. yet, when the gui is inflated, I see no items in my listview Nov 06 19:42:41 hm Nov 06 19:42:48 show the code please Nov 06 19:42:51 then we can debug Nov 06 19:44:33 I don't have (yet) a minimal working example, but I'm using this snippet: http://paste.lisp.org/display/144296 Nov 06 19:44:40 to see that my adapter has items in it Nov 06 19:44:44 it could easily be due to the way you're creating subviews Nov 06 19:45:14 And I get at the debug output: ...activities.SearchFragment﹕ m_adapter.len = 18 Nov 06 19:45:22 when I change my orientation Nov 06 19:45:49 ravilov, you mean in my custom array adapter where I override getView() ? Nov 06 19:45:55 you might be holding on to the wrong/old instance of the adapter in m_adapter Nov 06 19:47:18 it's probably best to wait until you can post full code Nov 06 19:48:26 It's great headache to remember what is retained and what not when my orientation changes. I'm not sure about any of my variables. Nov 06 19:48:38 yeh, I'm afraid I'll have to write a MWE. Nov 06 19:49:36 yeah, lots of apps mess up. i was just letting my old luma 521 update to 8.1 and i rotated it by mistake, almost had PTSD attack. then i realized it was WP phew :D Nov 06 19:50:08 is the same with iOS in case someone here develops for both ? Nov 06 19:53:01 build script appears to try to print a useful message"Hello world! Build types is: ${env.BUILD_TYPE} and debuggable is turned on: ${env.DEBUGGABLE} " but just prints the exact same uninterpolated string Nov 06 19:53:05 *sigh* Nov 06 19:53:27 g00s, well written apps deal with rotation just fine, but it's still a mystery to me as to why they chose to kill and recreate everything just because the device was held a different way Nov 06 19:54:12 joshkovach, what script language is this? if it's sh/bash, that is invalid syntax for variable interpolation Nov 06 19:54:26 ravilov your phone doesn't switch from english (landscape) to franech (portrate) ? Nov 06 19:54:30 I'm still trying to understand it all Nov 06 19:54:32 *fruend Nov 06 19:54:34 lol Nov 06 19:54:38 * g00s gives up Nov 06 19:54:55 g00s, what language are *you* using? :p Nov 06 19:54:59 mvn install will install dependencies, build it, test it, and then build the release version (I think) Nov 06 19:55:07 so that is in the pom.xml Nov 06 19:55:12 ill upload an update soon that its supposed to support rotation, i wonder if it'll work for everyone or i'll start a nightmare Nov 06 19:55:17 maven-antrun-plugin Nov 06 19:55:22 heh Nov 06 19:55:23 ravilov southern avian quack of course Nov 06 19:55:36 seems legit Nov 06 19:55:46 I'm trying to figure out why I have a test failing when I convert this beast to gradle Nov 06 19:55:48 no killing activity involved Nov 06 19:56:00 and ultimately am wondering if that's even a good idea Nov 06 19:56:12 everyone here seems to hate maven *shrug* Nov 06 19:56:26 joshkovach: well still use eclipse, ant, jenkins ;) Nov 06 19:56:42 noted Nov 06 19:56:53 re fragments, is the right place to set my listeners the onActivityCreated() ? Nov 06 19:57:11 joshkovach i dont hear people dismiss maven here, but the android plugin ... another thing entirely :P Nov 06 19:57:49 so here's a question Nov 06 19:58:22 hang, on, scratch that Nov 06 19:59:01 * ravilov hangs Nov 06 19:59:03 * ravilov ons Nov 06 19:59:06 * ravilov scratches that Nov 06 20:04:20 * g00s wondering when api 21 samples will be available through sdk manager Nov 06 20:04:40 this whole thing surrunding the release of api 21 seems botched Nov 06 20:06:20 you call everything botched Nov 06 20:06:47 i'm used to flawless execution Nov 06 20:07:44 how do you get used to that while deving with android? Nov 06 20:07:51 s/with/for/ Nov 06 20:08:05 i experienced it before android of course :P Nov 06 20:08:20 I'd think you'd get unused by now :p Nov 06 20:08:33 Hi Nov 06 20:10:05 nothing has flawless execution Nov 06 20:11:09 i think its a lost art. sure, servers can go down because of incredible demand (hey thats a great PR spin) Nov 06 20:11:25 "lost art" Nov 06 20:11:31 there's no such thing as flawless Nov 06 20:11:32 planes can go down, rarely. Nuclear plants too. Nov 06 20:11:34 there's only ever "good enough" Nov 06 20:11:39 g00s can't update his apps until someone tells him how to use api21 Nov 06 20:11:59 It'll be a while until someone writes a books, so until then there's only samples Nov 06 20:12:00 fukushima, chernobyl, 3 mile island Nov 06 20:12:03 MH17 Nov 06 20:12:11 MH370 Nov 06 20:12:16 etc. etc. Nov 06 20:12:25 ok, setRetainInstance() will save the adapter, so I don't have to repopulate it with items. I was wondering though why when I change the orientation onActivityCreated() is called twice Nov 06 20:12:50 pfn thats comparing apples and oranges. releasing a mobile platform is nothing like running a nuclear reactor Nov 06 20:12:55 :)) Nov 06 20:13:03 good thing google doesn't run nuclear reactors :) Nov 06 20:13:12 this one here is in beta Nov 06 20:13:27 there's no such thing as flawless execution Nov 06 20:13:31 if you think there is, you're deluding yourself Nov 06 20:13:34 or are heavily OCD Nov 06 20:13:54 which which case, the D is not the least bit flawless Nov 06 20:14:02 crazy typo in android wear emulator on `media' shell command: stop, next, previous, rewind, recordm fast-forword. Nov 06 20:14:04 well, then, there are degrees of botched Nov 06 20:14:45 i have no hope for opening a ticket on that, but should I? Nov 06 20:15:13 problem is, google engineers don't seem to pay the consequnces of their botched execution. if they got phone calls at thir desk from the unwashed masses (us) about their crappy docs, etc ... this wouldn;t be happening Nov 06 20:15:47 i know, because thats the way it was when we sold solfware to the DoD, etc. and pfn - we didn't both anything Nov 06 20:16:07 How long ago was that? Nov 06 20:16:08 I've been saying it for a while, google is going down, but nobody believed and everybody just laughed at me Nov 06 20:16:13 but you just wait, all of you Nov 06 20:16:15 software sold to the dod is always botched Nov 06 20:16:20 it's always overbudget and overdeadline Nov 06 20:16:21 it's a gauss curve ravilov Nov 06 20:16:31 but where are they on it, nobody knows Nov 06 20:16:36 what's the serie of callbacks that are called when the user changes the orientation of the device? I'm getting null pointer exceptions when I put code onDestroy, weird. any guide to learn how to support orientation changes? Nov 06 20:17:26 Mattx https://www.youtube.com/watch?v=ekN2zvFytZk Nov 06 20:17:31 there is a very clear diagram of the process lifecycle on d.android.com, I believe it includes restarting an activity due to config changes as well Nov 06 20:17:47 http://developer.android.com/guide/topics/resources/runtime-changes.html Nov 06 20:17:59 “After a few days hands on, I can't express how extremely pleased I am with my Nexus 9 and Android 5. The only disappointments have been a few apps I use regularly are not Lollipop ready. Those apps have been permanently replaced.” Nov 06 20:18:02 damn that’s cold blooded Nov 06 20:18:03 adq, people generally refuse to believe google might be past their peak Nov 06 20:18:11 Mattx also for learning, its instructive to implement all the methods and put logs in there, you will see. Nov 06 20:18:34 you need facts to prove that ravilov Nov 06 20:18:40 it's not about believing Nov 06 20:18:44 ravilov: like apple or microsoft on cellphones? Nov 06 20:18:55 i think they are raising, according to their sales and that even my mom knows google now Nov 06 20:19:00 tricknology yeah, so users blame devs when really google is to blame for at least some of this ... no samples, appcompat just coming last week, etc Nov 06 20:19:17 the next thing is VR Nov 06 20:19:26 devs are always to blame Nov 06 20:19:26 g00s, there is always the framework source code as your guide :p Nov 06 20:19:33 sounds like you just like to blame google for everything Nov 06 20:19:34 pfn maybe you are but .. Nov 06 20:19:37 to relieve yourself of burden Nov 06 20:19:38 for dev, there are serious problems, i agree Nov 06 20:19:47 If you think Google is going down, I hate to know what you think of many other companies Nov 06 20:19:48 look adb..... wtf we are in 2014 Nov 06 20:20:01 what's wrong with adb? Nov 06 20:20:02 and android wear, it's like half of the things work Nov 06 20:20:11 yeah if they could make adb not crash several times per day that would be great Nov 06 20:20:17 dilated pupils ftl Nov 06 20:20:18 ravilov, man you never look at the spec and the frequency of update despite it's a critical tool for dev Nov 06 20:20:34 pfn put on sunglasses Nov 06 20:20:41 adq, I don't update my tools, why would I, they work perfectly fine as they are Nov 06 20:20:46 ... Nov 06 20:20:50 so I don't ever experience all these problems Nov 06 20:20:52 heh Nov 06 20:20:58 ravilov is still on Android 2.x Nov 06 20:21:01 until feature creep and deprecation Nov 06 20:21:05 I don't experience these problems Nov 06 20:21:09 on android 2.3 all the way up Nov 06 20:21:27 you would experience this problem: “After a few days hands on, I can't express how extremely pleased I am with my Nexus 9 and Android 5. The only disappointments have been a few apps I use regularly are not Lollipop ready. Those apps have been permanently replaced.” Nov 06 20:21:31 * monsti is also forced to support 2.1 :( Nov 06 20:21:34 gman23, is that a problem? Nov 06 20:21:49 adb is independent of the API version supported, anyway Nov 06 20:21:55 see you later, maybe :) Nov 06 20:22:01 I don't see why would I have to be like all the other faithful followers and want to replace something that works Nov 06 20:22:06 So if you are on 2.4 and you don't update at all, Google must do a VERY good job at supporting old versions Nov 06 20:22:14 2.3* Nov 06 20:22:16 soem people are stupid and just want the newest thing all the time Nov 06 20:22:28 what kind of support do I need from google? Nov 06 20:22:40 tricknology, you mean like most people in this channel? Nov 06 20:22:41 Excuse people for getting excited about new things that look flashy and cool Nov 06 20:22:46 i have an app in the store which is compatible down to 2.3.3.. a user read that and commented “Oh, I would give it 5 starts but Android 4.4 has been out for awhile now” Nov 06 20:22:52 * tricknology facepalmed Nov 06 20:23:10 gman23, exactly, I'm way past that point, I don't get excited over "cool stuff" anymore Nov 06 20:23:13 If you had it your way, we'd still be using gas lamps! Nov 06 20:23:26 if they work for a given situation Nov 06 20:23:27 ... Nov 06 20:23:59 for me, new technology first has to prove itself in the long(er) run, I'm not going to jump ship just because a new thing is out there Nov 06 20:24:10 call it conservative or whatever, I've learned that works best for me Nov 06 20:24:10 hm, also onCreateView() is called twice. Weird. Plus I see that other people in SO also had this issue. Nov 06 20:24:30 and don't even bother trying to understand me, people usually can't Nov 06 20:24:43 ravilov, dude, you're on 2.3. 4.0 has been out and has proven itself Nov 06 20:24:51 not in my book Nov 06 20:24:57 I have no need or desire for anything it offers Nov 06 20:24:59 lol, okay then Nov 06 20:25:10 Please, 4.x was a failure. That's why they released 5.0. Nov 06 20:25:25 clearly Nov 06 20:25:54 gman23, if you despise 2.3 so much, why this nick? :p Nov 06 20:25:59 lol Nov 06 20:26:18 if you must know, I was 23 at the time I registered the nick. Nov 06 20:26:21 gman was taken Nov 06 20:26:28 riiight Nov 06 20:26:40 2.3 is in your blood, you just refuse to accept it :p Nov 06 20:26:51 I got a transfusion Nov 06 20:27:08 also, I see TacticalJoke is done coding for the day and has dropped in to chat the rest of the day away :p Nov 06 20:27:17 haha Nov 06 20:27:36 I'm actually refining my changesets before rebasing them with the main line. Nov 06 20:27:52 ... that's a lot of managerial-sounding mumbo-jumbo Nov 06 20:28:53 hi, I don't have an app on the play store, but I hope someone here can help me: I would like to know if it is possible in the play store under geo restriction is possible to restrict to "(The) Faroe Islands". I'm sure if it is listed... Nov 06 20:29:08 how about you realign your core values too, TacticalJoke :p Nov 06 20:29:51 isn't it good practice to clean up your history before pushing it to origin? Nov 06 20:30:13 What I mean is that I rebase (rather than merge) as much as is sensible, and because I'm a perfectionist I can't do this until everything is just right. :) Nov 06 20:30:24 Every diff line must have purpose. Nov 06 20:30:35 every ... whitespace ... Nov 06 20:30:42 I'd just insert a line in every diff that says Nov 06 20:30:43 And then there's the whole single-responsibility-principle thing. Nov 06 20:30:47 /* purpose */ Nov 06 20:30:51 :D Nov 06 20:31:50 ravilov: Have you considered "// purpose"? Nov 06 20:32:20 bummer, I think the navigation drawer fragment is to be blamed for the twice call of onCreateView()! Nov 06 20:35:29 TacticalJoke, I felt /* */ would give it more purpose Nov 06 20:35:48 10 print "blame" : goto 10 Nov 06 20:36:10 Is it normal to want to nuke reality after watching Keeping Up with the Kardashians? Nov 06 20:36:17 I'm guessing so; just checking. Nov 06 20:36:37 never experienced this sensation, nor do I plan to Nov 06 20:36:43 hey g00s Nov 06 20:36:53 can you save me from myself, please Nov 06 20:36:54 :) Nov 06 20:36:57 (watching whatever it is, not nuking the world) Nov 06 20:37:09 why the hell do I do it, why, why Nov 06 20:37:12 ugh, i have a user with a garmin monterra .. didn't garmin stop making these things ??!??!! Nov 06 20:37:18 I wish I could say that, ravilov. Nov 06 20:37:24 Napalm stockholm syndrome ! Nov 06 20:37:24 I've accepted more work "on the side" Nov 06 20:37:25 Napalm, because you're by nature very volatile Nov 06 20:37:33 checmically speaking Nov 06 20:37:42 indeed Nov 06 20:37:47 :( Nov 06 20:37:54 i'll never forget that scene in apocalypse now Nov 06 20:38:07 "I love the fresh smell of napalm in the morning ..." Nov 06 20:38:08 Napalm, at least you'll get to roll around in piles of money, no? Nov 06 20:38:30 yeah, large piles, but its not about the money Nov 06 20:38:31 g00s, is that the smell of Napalm not having showered for days because he took on too much work? :p Nov 06 20:38:47 ravilov oh this was a vietnam movie :) Nov 06 20:38:52 lol Nov 06 20:38:52 I see Nov 06 20:39:15 Napalm, people that works lots and don't earn lots usually say that Nov 06 20:39:20 Napalm i'm slowly poking recyclerview Nov 06 20:39:23 "it's for the challenge, screw money" Nov 06 20:39:30 don't have the guts to make a layoutmanager though Nov 06 20:39:35 s/works/work/ Nov 06 20:39:58 g00s, class AwesomeLayouter extends RelativeLayout { } Nov 06 20:39:59 done Nov 06 20:40:08 plus a few ctors Nov 06 20:40:39 That's not a LayoutManager Nov 06 20:40:57 You should probably stay away from them as well Nov 06 20:40:57 ravilov: http://youtu.be/_eMK5MZTpuU?t=15s Nov 06 20:41:09 ugh, looking at the specs for this garmin unit : "Android with Google Play for complete customization" Nov 06 20:41:13 wwaaattt Nov 06 20:42:12 hey SimonVT, did you check out that Gist Nov 06 20:42:48 Napalm: The problem isn't writing it, it's that I have to :) Nov 06 20:42:55 loll Nov 06 20:42:59 the problem with all code Nov 06 20:43:07 I want to think code into the computer Nov 06 20:43:15 whyyyyyyyyyyyyyyyyyyyyyyyyyyyy!!! Nov 06 20:43:32 Napalm, you were born several decades too early for that Nov 06 20:43:51 I highly anticipate direct neural interfaces Nov 06 20:43:55 ravilov: kind of you to say so Nov 06 20:44:16 all this "press buttons to enter text" stuff is nonsense :) Nov 06 20:44:34 JesusFreke, you can speak your text too Nov 06 20:44:58 probably doesn't work too wel for code Nov 06 20:45:05 yeah :) Nov 06 20:45:19 About the only thing I use speech recognition for is "Ok google, set a timer for 7 minutes" Nov 06 20:45:25 or "ok google, navigate home" Nov 06 20:45:46 oh that reminds me Nov 06 20:45:47 https://www.youtube.com/watch?v=KyLqUf4cdwc Nov 06 20:45:59 Public void foo open parenthesis close parenthesis open brace newline newline close brace save. Nov 06 20:46:04 talking about "speaking" your code Nov 06 20:46:15 JesusFreke, TacticalJoke, you should watch this Nov 06 20:47:40 haha Nov 06 20:47:41 This is great. Nov 06 20:47:50 hey Napalm reading http://www.grokkingandroid.com/statelistdrawables-for-recyclerview-selection/ Nov 06 20:47:59 the 1st paragraph - Nov 06 20:48:14 which do you think is right, ItemDecorator or StateListDrawable ? Nov 06 20:48:47 yes! fixed it! oh boy. That was soooooooo snicky. Nov 06 20:49:09 Wait, we have to maintain selected list items ourselves with RecyclerView? Nov 06 20:49:52 For some snicky reason onCreateView() was called twice for my fragment. Once with a saved state and once with not. So I ended up with a fragment with no state. Nov 06 20:50:28 Beket: Why was it being called twice? Nov 06 20:50:38 Did you accidentally add the Fragment twice to the FragmentManager? Nov 06 20:51:13 s/the Fragment/a Fragment/ Nov 06 20:51:26 I didn't, but I was using the navigation drawer fragment from the android dev studio generated code (which apparently is buggy) Nov 06 20:51:38 Oh. Nov 06 20:52:14 Hmm, why doesn't RecyclerView have a "selection" property? Nov 06 20:52:50 When I rotated my device, the navigation drawer fragment would too be recreated and it would trigger the replacement of my restored place holder fragment with a new one which did not have any state. Nov 06 20:53:02 Credits go to here: http://blog.sqisland.com/2014/06/navigationdrawer-creates-fragment-twice.html Nov 06 20:53:23 Hi Nov 06 20:54:01 Im trying to upload a new version of my up on google play. but it keep saying : You need to use a different version code for your APK because you already have one with version code 1. I changed it through manifest , still same error Nov 06 20:54:51 are you sure you created a new apk, after changing the manifest? Nov 06 20:54:57 and are you sure you're uploading the new apk? :) Nov 06 20:56:15 yes Nov 06 20:57:11 same f**king error Nov 06 20:58:15 hunter2 Nov 06 20:58:31 what's with the asterisks? Nov 06 20:58:38 I wanna know what's behind them. Nov 06 20:58:50 instead you just added more of them Nov 06 20:59:45 This video is funny. :) Nov 06 20:59:58 plz no offtopics Nov 06 21:01:19 should I be able to figure out the tag of a view from the view hierarchy/monitor tool? Nov 06 21:01:21 JesusFreke, I should change the gradle too Nov 06 21:06:40 so here's a pattern, I think, with at least a couple of my failing gradle specs Nov 06 21:07:02 the test is on supportFragmentManager Nov 06 21:07:24 test is ensuring that a dialog fragment goes away if you click cancel Nov 06 21:07:53 assertThat(mActivity.getSupportFragmentManager()).doesNotHaveFragmentWithTag(CreateMemberFragment.WARN_LEAVING_APP_DIALOG_FRAGMENT); Nov 06 21:08:14 I dont get the screen sizes buckets Nov 06 21:08:20 is this deprecated or not: Nov 06 21:08:22 android:smallScreens="false" Nov 06 21:08:22 android:normalScreens="true" Nov 06 21:08:22 android:largeScreens="false" Nov 06 21:08:22 android:xlargeScreens="false" Nov 06 21:08:23 /> Nov 06 21:08:29 if we call that assert *before* the fragment is added, it works fine Nov 06 21:08:32 i target API15+ Nov 06 21:08:57 but it does not work if the dialog fragment has been added and dismissed with the 'cancel' button Nov 06 21:10:18 success: Please use pastebin.com or something. Nov 06 21:10:18 success: Please use pastebin Nov 06 21:11:14 well i finished pasting already Nov 06 21:11:19 i will do it next time Nov 06 21:12:20 success, that could have easily been a single line Nov 06 21:12:32 But no, that should work just fine Nov 06 21:12:58 also, while API levels might get deprecated, screen sizes and thus resource buckets are very unlikely to Nov 06 21:13:05 SimonVT, answering me? OK, but what happens if a small or large phone installs it? Nov 06 21:13:12 itwont be visible right? Nov 06 21:13:24 no matter how new the API level is, there could still be devices out there that will have a reasonably small screen Nov 06 21:13:31 (not necessariliy phones) Nov 06 21:13:34 A small wouldn't be able to, a large would get compatibility mode Nov 06 21:13:54 compatibility mode= run a smaller version than the screen? Nov 06 21:14:21 https://developer.android.com/guide/practices/screen-compat-mode.html Nov 06 21:14:29 SimonVT for doing selections on RecyclerView, do you recommend StateListDrawables or ItemDecorators ? Nov 06 21:14:49 That's what the documentation says Nov 06 21:15:37 i dont see anything in the javadoc, thats why i'm asking Nov 06 21:17:33 Either way works fine Nov 06 21:18:21 but what about the sw600 qualifiers? Nov 06 21:18:54 should I not use folders like values-large ? Nov 06 21:20:12 No, you shouldn't be using -large Nov 06 21:22:59 if i only support normal though, i keep values ? Nov 06 21:24:14 is there a way to get a dump of all the different devices my users are using ? (from dev console) Nov 06 21:24:34 the dashboard seems to only show the top 10 or so Nov 06 21:24:44 or do i have to use the layout-sw600dp? or is that special for tablets? Nov 06 21:27:02 success, you generally want to avoid being *that* specific Nov 06 21:28:39 do you mean sw600dp is too specific? Nov 06 21:28:43 i don't think so Nov 06 21:28:50 If I declare an EditText, for example, in an XML layout file, I define attributes (such as "android:text") inline. Some people, however, advocate references a style file instead, and never defining attributes inline. What do you folks think about this? Nov 06 21:29:06 s/references/using references/ Nov 06 21:29:20 Wait. I totally mistyped that. Nov 06 21:29:52 success if you're not providing different resources for different configurations, delete any resource dirs that use qualifiers Nov 06 21:29:54 s/references/referencing/ Nov 06 21:31:26 Sounds unnecessary Nov 06 21:33:22 so for some reason, when I switch from maven to gradle, *some* of my alert dialogs fragments don't get removed from the fragment manager when the negative button is clicked Nov 06 21:33:30 to be specific Nov 06 21:33:37 two of them Nov 06 21:33:52 joshkovach: Any code to post? Nov 06 21:34:36 Also, is it the case that you're using support Fragments and you changed support-v4 version when moving to Gradle? Just ruling that out. Nov 06 21:34:58 I don't know of any such issue, but the idea popped into my mind. Nov 06 21:36:09 I changed from support-v4:19.1.0 to support-v4:21.0.+ Nov 06 21:36:46 Have you checked whether the issue is present when using the older version? Nov 06 21:37:05 trying it now Nov 06 21:37:28 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) Nov 06 21:37:34 cant i do that in a fragment? Nov 06 21:38:55 success: Wouldn't it be "getActivity().getWindow()..."? I haven't tried it, but just saying. Nov 06 21:39:54 TacticalJoke, yes but it says: The best way to do this is to use the FLAG_KEEP_SCREEN_ON in your activity (and only in an activity, never in a service or other app component). For example: Nov 06 21:40:06 success its probably better to use the View android:keepScreenOn Nov 06 21:40:30 my view is not in xml Nov 06 21:40:34 (it is a game Nov 06 21:40:37 ) Nov 06 21:40:48 so, in my pom.xml, I have support-v4 version 19.1.0, but the sdk is 21.1 Nov 06 21:41:08 tests pass Nov 06 21:41:34 it compiles and tests pass? ship it! ;) Nov 06 21:41:48 in build.gradle, same thing... it warns me that support library version should be the same, but it builds Nov 06 21:41:52 but those tests fail Nov 06 21:42:25 anyway, it does not help, phone still goes to sleep... Nov 06 21:42:51 success: I don't think Fragments qualify as "app components". See here (on the left): http://developer.android.com/guide/components/index.html Nov 06 21:44:30 TacticalJoke: for me? Nov 06 21:44:57 I'm not sure what "app components" means here Nov 06 21:46:35 joshkovach: That was to 'success'. :) Nov 06 21:46:45 oh, right Nov 06 21:46:54 Dat ambiguous username. Nov 06 21:47:01 werd Nov 06 21:47:45 joshkovach: So you're saying that, with Maven, you don't get this issue at all (regardless of support-v4 version) but you get the issue with Gradle? Nov 06 21:48:13 yep Nov 06 21:48:23 I'm jumping back to maven to test with the updated v4 Nov 06 21:53:00 hello. say i have an android set-top box connected to a TV. is there any way for me to find out, inside an application, if the TV is currently set to display the content from the Android device's HDMI port? Nov 06 21:54:48 ugh, so in the maven version, it's pointing to a custom maven repository Nov 06 21:55:16 which has support-v4:19.1.0 but not 21.0.1 or whatever Nov 06 21:55:38 and it's not something that's actually on mavenCentral or jCenter Nov 06 21:56:19 For those of you that have released apps on GP, what kind of revenue are we talking about for non-popular programs? Nov 06 21:56:33 I am just wondering if there is a point to get into the business Nov 06 21:56:50 firelegend: $0 or less if you spent money doing it. not worth it Nov 06 21:56:57 firelegend: I have made $0 from my app Nov 06 21:57:09 of course, it's a free app with no ads, so this isn't exactly unexpected :) Nov 06 21:57:15 joshkovach: Can you keep it simple and just add the JAR to /libs/ or whatever? Remove the complexity of Maven/Gradle totally. Nov 06 21:57:27 Then see what's really going on. Nov 06 21:57:33 JesusFreke:So then what do you recommend I should do to earn money? Nov 06 21:57:47 firelegend: well, I recommend against releasing a free app with no ads Nov 06 21:58:07 JesusFreke:As much as I do not like ads personally, they will be a given for profit Nov 06 21:58:12 how do I get date in seconds? Nov 06 21:58:49 I wonder how much people actually make from ads. Nov 06 21:58:49 firelegend: I think you're missing my (rather facetious) point here :) Nov 06 21:59:06 Oh? Nov 06 21:59:20 Can you be a bit more direct ? Nov 06 21:59:41 I'm saying that if you release a free app that has no ads.. you won't make any money. Nov 06 21:59:59 so I recommend against doing that, if you want to make money ;) Nov 06 22:00:08 JesusFreke:Which is why I replied that I will add ads, as much as I do not like them in general Nov 06 22:00:31 Tbh if I could I'd try and make a game Nov 06 22:00:43 the programming aspect I can take care of Nov 06 22:00:46 Adding ads might just make people uninstall, though. Nov 06 22:00:52 I don't have data; just talking about my personal experience. Nov 06 22:00:54 but the game idea, art and sound(in this order) is what I cant do Nov 06 22:01:08 What about a free version without ads and a paid version (which might have more features or something). Nov 06 22:01:24 yea. I just found/played a game the other day actually. Such a simple concept, and even the implementation would be fairly trivial. But I would never have thought of it Nov 06 22:01:32 firelegend games are pretty saturated Nov 06 22:01:53 (https://play.google.com/store/apps/details?id=com.fizzd.connectedworlds) Nov 06 22:01:54 g00s:Even if true, I can neither draw nor compose Nov 06 22:02:04 nor do I have the money to hire people Nov 06 22:02:14 A fun little game, and he's probably made a couple hundred off of it at least Nov 06 22:02:21 (guessing) Nov 06 22:03:21 but that's more the level of some extra spending money, not "able to live off of" money. Nov 06 22:03:53 JesusFreke did you see that ownership / dev of ragel has changed ? Nov 06 22:04:14 nope Nov 06 22:04:45 JesusFreke:While my initial idea was about a calculator with some features which other calculators are lacking, although they arent really needed for everyday use. Nov 06 22:05:20 I would estimate <1000 installs Nov 06 22:05:24 yeah, i would guess it would be hard to make much money from a calculator Nov 06 22:05:37 however I did want to create a better torrent client Nov 06 22:05:53 all the ones I saw were crap and were missing the essential features of desktop torrent clients Nov 06 22:08:55 but development of such an improved client for android would take a longer while than said calculator Nov 06 22:11:16 "RecyclerView can perform several optimizations if it can know in advance that changes in adapter content cannot change the size of the RecyclerView itself." Nov 06 22:11:19 I guess it's all about creating apps that reduce suffering (or increase joy) so much that people are willing to hand over cash. Nov 06 22:11:40 do they really mean size of the RecyclerView or size of the items in it ? Nov 06 22:11:52 TacticalJoke:I guess. Nov 06 22:14:42 firelegend: i'm confused why someone would want to run torrents from a phone. Nov 06 22:15:08 dragorn:Download stuff on the go I suppose. Nov 06 22:15:22 I occasionally if not often lay on the couch Nov 06 22:15:29 and download stuff to watch on the tablet Nov 06 22:15:33 and ke Nov 06 22:15:54 and keep getting infuriated over utorrent(android)'s low quality design Nov 06 22:16:20 Which ranges from completely wrong touch input when you try to deselect files or select Nov 06 22:16:35 to wrong data being displayed in the different panes/views/activities/whatever it is Nov 06 22:17:04 to missing mandatory Select All/Deselect All checkboxes Nov 06 22:22:19 looks like a new haxm in sdk manager Nov 06 22:22:45 and new sdk build-tools Nov 06 22:22:57 New stuff is scary. ;| Nov 06 22:23:29 what could possibly go wrong, doesn't work ? lol Nov 06 22:25:08 how are the AS updates go, still a bit fickle? Nov 06 22:25:14 going* Nov 06 22:25:53 i think 0.9.0 was changing peoples' gradle files Nov 06 22:26:04 but 0.9.1 is ok for me, 0.8.14 was OK too Nov 06 22:26:47 g00s:It in fact does not Nov 06 22:26:56 g00s:I downloaded today the android sdk Nov 06 22:27:02 there was some installer which failed to run Nov 06 22:27:14 it literally crashed Nov 06 22:27:36 glad it didn't figuratively crash Nov 06 22:31:44 TacticalJoke: could the failure be due to using @Config(emulateSdk=18)? Nov 06 22:32:02 I didn't have to do that in the maven version and I don't know why. Nov 06 22:33:06 joshkovach: Does the issue occur on an actual device? Or is it just in Robolectric? Nov 06 22:34:08 Robolectric. On the device the behavior seems to be correct Nov 06 22:34:34 Hi,I do think this is a bug with android but I'm not sure. My textview doesn't update in my viewpager first page only Nov 06 22:34:36 I guess you could verify with getSupportFragmentManager().findFragmentByTag in an Activity's onCreate handler or whatever. Nov 06 22:35:01 even though I set viewPager.setCurrentItem(0) Nov 06 22:35:46 Hmm. Any thoughts on why I don't need to emulate 18 in the maven build, even though my target is 19? Nov 06 22:35:56 How can I fix this? Nov 06 22:35:58 Any thoughts? Nov 06 22:36:32 Or does robolectric support 19 now? Nov 06 22:36:36 bankai_au one thing though ... lately, since i think i started using appcompat - around that time all my AS preview windows are blank Nov 06 22:36:41 joshkovach: I have no idea. Sorry. Nov 06 22:37:05 someone want to make an app to use an Android device as a virtual DisplayLink display? Nov 06 22:37:17 What is the difference between com.android.systemui.recent and com.android.systemui.recents in the Lollipop source code? Nov 06 22:39:27 g00s: do you remember a few weeks ago you posted a link to a netflix slide show where they talked about creating rxjava friendly objects (mostly so you can subscribe to getters)... do you know if the code examples have been released? Nov 06 22:41:24 bankai_au i don't remember the link Nov 06 22:42:24 Mortar+Flow+Dagger makes development a breeze once it's all hooked up nicely. There is just so much boilerplate required to get it all connected :P Nov 06 22:43:26 somewhere on the interwebs, jake's phone is blinking now Nov 06 22:51:39 g00s: found the slides, that's enough i guess .... https://speakerdeck.com/daschl/reactive-programming-with-rxjava-for-efficient-data-access if you care :) Nov 06 22:57:56 anybody used jackson data binding library in any of their projects? Nov 06 22:58:16 I'm finding that the main bottleneck in my app might be one method in that library Nov 06 22:58:22 when I'm using URL locations to send information back and forth (say in an Android WebView), is there a standarizard way to pass information? Nov 06 22:58:42 url encoded JSON or something? Nov 06 22:58:48 Hello.. how to I build just the SDK tools from source? the inatructions here http://tools.android.com/build#TOC-Building-the-Linux-and-MacOS-SDK say to use the command ./tools/buildSrc/servers/build_tools.sh `pwd`/out `pwd`/out/dist 123 but that script does not exist. Nov 06 22:58:59 instructions * Nov 06 23:01:02 after_r: Do you have the buildSrc directory in your tools folder? Nov 06 23:01:32 NO Nov 06 23:01:35 no Nov 06 23:01:47 just the `external` directory Nov 06 23:02:07 I followed the instruction to get the code using the repo sync command Nov 06 23:05:37 Hmm not sure, those instructions could be out of date. Nov 06 23:05:49 ive noticed that Nov 06 23:08:19 can't find referenced class javax.naming.InitialContext Nov 06 23:08:22 proguard problems Nov 06 23:08:27 need some guidance Nov 06 23:09:03 are you sure that's a proguard problem? I don't think anything in the javax namespace is available on android Nov 06 23:09:23 JesusFreke: because it is a warning from proguard Nov 06 23:09:24 oh, I guess there are some Nov 06 23:09:44 but javax.naming in particular doesn't seem to be present Nov 06 23:10:01 wait full message Nov 06 23:10:06 Warning: org.jboss.resteasy.plugins.server.resourcefactory.JndiResourceFactory: can't find referenced class javax.naming.InitialContext Nov 06 23:10:10 I'm getting ready to release. Should I bother with ProGuard? (I don't know much about it.) Nov 06 23:10:11 i am using resteasy as a library Nov 06 23:10:21 it sounds like it isn't compatible with android Nov 06 23:10:38 JesusFreke: well without proguard works Nov 06 23:10:45 so i would say it is compatible Nov 06 23:11:30 I would look to see if there's an option to tell proguard to either remove the class entirely, or ignore the class entirely. the IndiResourceFactory class, I mean Nov 06 23:11:37 actually Nov 06 23:11:42 that's just a warning Nov 06 23:12:03 that shouldn't prevent it from compiling Nov 06 23:12:05 found dontwarn Nov 06 23:12:06 let me see Nov 06 23:12:44 now i can get it to build but Nov 06 23:13:13 java.lang.ClassNotFoundException: Didn't find class "org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor" Nov 06 23:13:16 when running Nov 06 23:14:04 proguard seems to be removing important stuff Nov 06 23:16:15 any clues? Nov 06 23:16:41 https://mediacru.sh/Pvq1aPTRfsPN Nov 06 23:16:44 ^ Nov 06 23:16:54 hi.. is there a default shortcut in filesystem for accessing "/data/data/com.android.providers.settings/databases/settings.db"? something like "/databases/settings.db" Nov 06 23:17:34 yiati: lawl? Nov 06 23:17:54 :D Nov 06 23:19:39 demlak: http://developer.android.com/reference/android/content/Context.html#getDatabasePath(java.lang.String) Nov 06 23:20:31 im not in java.. im at the shell Nov 06 23:21:01 Ah, well you can just define your own Nov 06 23:22:00 i know.. but it´s all about less code as possible =) im writing a one-liner to dump a db value.. Nov 06 23:22:25 sqlite3 /data/data/com.android.providers.settings/databases/settings.db ".dump 'system'" | grep -Eo ".{0,0}ted.{0,12}" | cut -c 8- Nov 06 23:22:46 thought about shortening it.. without extra defining shortcuts Nov 06 23:23:12 add a environment variable for the database path like "export MY_DB='/data/data/com.android.providers.settings/databases'" in your bash script Nov 06 23:23:17 oh.. it´s tted not ted.. if you wanna test Nov 06 23:23:39 nope.. no script.. no extra code.. just ONE LINE.. Nov 06 23:23:57 Then your answer is no Nov 06 23:24:01 ok =) Nov 06 23:24:23 :| Nov 06 23:24:25 cause.. i want a simple solution.. so i want to use https://play.google.com/store/apps/details?id=com.aes.cron4phonefree Nov 06 23:24:40 to execute this code periodicly Nov 06 23:24:46 anyone familiar with viewpager? Nov 06 23:25:22 Nope Nov 06 23:37:36 nope Nov 06 23:38:46 say i am a bit Nov 06 23:39:15 banged my head against it for some time Nov 06 23:39:23 * squirrel slaps Mugwump101 Nov 06 23:41:13 *Mugwump101 is rendered unconscious for a minute, then gets up Nov 06 23:41:46 how do make the purple text in irc? I forgot :( Nov 06 23:42:03 But squirrel, you are slightly familiar? Nov 06 23:42:05 can't in this channel either way Nov 06 23:42:28 well, i've written my own adapter for it with bells and whistles Nov 06 23:42:38 I am just curious if you had a problem where only on the first view of the viewpager, the textview does not update. Nov 06 23:43:10 I've seen some people post problems with it on SO but the solutions aren't working for me. Nov 06 23:43:25 define 'does not update' Nov 06 23:43:26 It could be a strange bug with android and viewpager but not sure Nov 06 23:43:55 like if I click on a button, the textview should change but it doesn't Nov 06 23:44:16 My code works fine on all the other views except for the first one Nov 06 23:44:29 are you sure it's a problem of viewpager Nov 06 23:44:47 no, I'm not 100% sure Nov 06 23:45:18 but I've seen other people encounter it. I think some people recommend something like viewPager.setCurrentItem(0); etc but it doesn't work for it Nov 06 23:46:02 well, idk. i'd uh.. out the top of my head check that you are updating the correct textview, perhaps memory leak Nov 06 23:46:24 otherwise see source of your adapter idk Nov 06 23:46:57 i handle my fragments manually so i have to blame myself in all cases Nov 06 23:49:26 ok hm I will think about it Nov 07 00:07:32 any release notes on the new haxm in sdk manager? does it fix the Yosemite kext signing ? Nov 07 00:08:27 Can the layout of a dialog be the same as an activity? I am wondering if I should use a dialog for the end of my game or a new activity Nov 07 00:17:27 Can all instances of "?android:attr/foo" be replaced with "?android:foo"? Nov 07 00:21:29 i remember an old post, romainguy said correct syntax was attr Nov 07 00:22:50 do I still use netflix rxjava or the reactive one? Nov 07 00:23:37 g00s, you have to download Haxm 1.1.1 from intel's website Nov 07 00:23:43 the one in sdks manager is 1.1.0 i think Nov 07 00:23:59 https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager Nov 07 00:24:11 Afzal thanks Nov 07 00:24:26 maybe ... they should use the same version # as intel :| Nov 07 00:24:42 yeah, maybe they should just pull from that website :/ Nov 07 00:24:44 lol Nov 07 00:24:56 remove it altogether from sdk manager yeah Nov 07 00:47:59 Squirrel, I figured out my viewpager problem Nov 07 00:48:12 It was a global variable prob. I can rest in peace tonight lol Nov 07 00:49:57 RIP Nov 07 00:50:12 it was good knowing you Nov 07 01:11:38 Hello All Nov 07 01:11:49 Anyone have a solution to this problem? Nov 07 01:11:50 http://stackoverflow.com/questions/26764422/android-mk-inking-but-not-including-shared-libs-in-output Nov 07 01:25:46 I wish Google Chrome (on Windows) could figure out a better way to handle lots of tabs. Nov 07 01:25:57 Need moar lazy loading. Nov 07 01:26:00 Kinda like the Android version. Nov 07 01:32:08 I hate how Context is basically a God Object. Nov 07 01:32:16 It does just everything. Nov 07 01:36:50 Hmm. Why would anyone ever use Activity.getPreferences? Seems like a terrible idea to couple a disk file name with an Activity name. Nov 07 01:37:19 It just does "return getSharedPreferences(getLocalClassName(), mode);" under the hood. Nov 07 01:42:24 does it really bother you that much? :) Nov 07 01:45:34 It doesn't really bother me. I'm just surprised that the method exists. Nov 07 01:45:52 Seems like something that only serves to trip up n00bs. Nov 07 01:54:11 how to speed up AS with Gradle? I have added org.gradle.daemon=true & org.gradle.parallel=true in gradle.properties but still slow Nov 07 01:55:13 can Anyone tell me about UnifiedDaemon? Nov 07 01:55:43 if I have a singleton that gets location data, will the battery usage show up under here or in the app that crated the singleton? Nov 07 01:56:04 kamol, look into increasing your VM heap? Nov 07 01:56:33 http://stackoverflow.com/questions/18723755/android-studio-how-to-increase-allocated-heap-size Nov 07 01:57:43 it is right now org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 Nov 07 01:59:11 AS 0.9.2 was released 23 minutes ago. Nov 07 02:04:04 is it? still cannot upgrade my AS Nov 07 02:17:23 I just got Android Studio running, its using Android API 5.0, but now I cant start a project in Eclipse, the finish button stays greyed out. Anyone know where I can find info on getting Eclispe to run Android along side of Android Studio? Nov 07 02:36:36 http://android-developers.blogspot.ca/2014/11/introducing-new-guide-secrets-to-app.html Nov 07 02:36:58 would it be possible to built an android ROM with a CI platform? (like Travis) Nov 07 02:38:16 g00s, yeah and you'll still fail Nov 07 02:38:17 ;) **** ENDING LOGGING AT Fri Nov 07 03:00:00 2014