**** BEGIN LOGGING AT Thu Feb 26 02:59:59 2015 Feb 26 03:00:57 +1 for what lasserix said Feb 26 03:06:08 sorry _genuser_, there's already a website: http://www.savethepixels.com/ , a game: http://beshr.com/stp/ , a facebook group: https://www.facebook.com/SaveThePixels , a change.org petition: http://change.org/p/save-the-pixels , and a music video: https://www.youtube.com/watch?v=dQw4w9WgXcQ Feb 26 03:06:24 this wave cannot be stopped Feb 26 03:09:28 what is save the pixel wave? Feb 26 03:10:15 slooblack: the music video explains it all quite nicely Feb 26 03:13:22 ok I will check that Feb 26 03:13:43 eclipse keeps going nuts and running out of heap space. i wonder what i did? Feb 26 03:13:58 that's a feature of eclipse Feb 26 03:14:08 Mittendeep: you probably tried to build android apps. Feb 26 03:14:11 tsk tsk Feb 26 03:14:25 Now I have lost my greatest ally, the undo button. Feb 26 03:14:41 Mittendeep: http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F Feb 26 03:14:43 I turned off autobuild and everything, i just assumed it would sit there and wait for me Feb 26 03:14:50 -___- most boring jock on the internet Feb 26 03:17:56 slooblack: aah, you entered too late :) sample code included `Listlist`, which obviously prevents those non-recycleable pixels from being wasted. environmentalism++. Feb 26 03:18:34 Mittendeep haven't used eclipse in a while, but when I did - just install the platform runtime and then add ADT. its a pretty compact setup, on my machine never used more than 700mb worst case - usually around 500-600mb Feb 26 03:19:10 yeah, I'd recommend against the actual ADT package. modern Eclipse + ADT plugin = faster. Feb 26 03:19:29 it's a minor thing, but it adds up :| Feb 26 03:20:18 Yeah, the ADB Eclipse Bundle is terrible. Feb 26 03:20:29 Luna + ADT = way better. Feb 26 03:20:50 Sorry, groxx said that. Feb 26 03:20:53 Wasn't reading the screen. Feb 26 03:24:44 unintentionally supporting what I typed?! oh, it's on, TacticalJoke. you'll never expect when my vengeance will land, but when it does, you'll know s(`ヘ´;)ゞ Feb 26 03:25:42 Damn, that cat looks angry. Feb 26 03:27:00 Hmm, WebView feels pretty powerful when we inject our own HTML with WebView.loadData. Feb 26 03:27:05 I feel like WebViewing all the things. Feb 26 03:27:09 But that would be crazy. Feb 26 03:27:35 funny here, about this android for work https://news.ycombinator.com/item?id=9109182 Feb 26 03:27:48 most of the comments have to deal with 'can i sandbox my app now and control permissions' Feb 26 03:28:12 instead of material, they should have fixed that + slow updates. way bigger issues imho Feb 26 03:28:18 for 5.0 Feb 26 03:30:30 oy. don't link to things g00s, it causes me to follow links, which inevitably leads to http://i.imgur.com/0reCv.jpg Feb 26 03:31:22 must. not. follow. imgur links D: Feb 26 03:31:25 I am sure the chain crash had something to do with compiling a malformed xml file, I am going to remove it and see. Feb 26 03:31:48 Mittendeep: Do you use version control? Just curious. Feb 26 03:32:07 no more than 2 mittens per branch Feb 26 03:32:21 Not locally. I haven't had time to set one up. Feb 26 03:33:00 i should use git or something, huh? I always used visual sourcesafe previously Feb 26 03:33:10 holy shit, vss ? Feb 26 03:33:12 D: Feb 26 03:33:19 Yeah, Git and Mercurial are miles better than that. Feb 26 03:33:34 Definitely should use it, Mittendeep. :) Feb 26 03:33:46 Tell me which one you use? Feb 26 03:33:56 git Feb 26 03:33:59 Mercurial here. Feb 26 03:34:03 D: Feb 26 03:34:05 hehe Feb 26 03:34:14 I come from the Church of Mercurial. Can I have a minute of your time? Feb 26 03:34:36 what does that make git's congregation? "the horde"? Feb 26 03:34:37 i come from the Church of the Flying Spaghetti Merge Feb 26 03:34:42 lol Feb 26 03:34:52 do you guys use the same stuff at work? Feb 26 03:35:02 yeah, git for work and play here. Feb 26 03:35:11 My work doesn't involve programming (kinda sadly). Feb 26 03:35:25 Though I'm slightly happy, because some people's work makes them hate programming. Feb 26 03:35:59 used mercurial for a bit for work. it's probably easier to get started with, but once you learn git it's pretty much impossible to accidentally lose anything. the internals are sane and easily accessible, though the learning curve to get there is a bit steep. Feb 26 03:36:28 i will use mercurial for now and git next quarter then. Feb 26 03:36:29 mercurial seems to do everything with extensions, which is cool, but was noticeably more fragile when I used it :| Feb 26 03:36:39 hg and git are equally easy to get started with. Feb 26 03:36:51 I think they're equally powerful right now except that Git can do octopus merges. The creator of Mercurial is against those in principle and will never add them to Mercurial. Feb 26 03:36:58 can't beat github, though Feb 26 03:37:03 <_genuser_> as any of you done a 1) wizard that runs on first run and guide user thru, 2) onscreen tips with picture overlays showing where to click etc. etc. Feb 26 03:37:05 man, I octomerge all over the place. I'd miss that. Feb 26 03:37:07 <_genuser_> *has Feb 26 03:37:09 What do you remember being fragile? Feb 26 03:37:26 I've never wanted to octo-merge, but then I haven't done that in my day-to-day life either. Feb 26 03:37:29 what plugin do you recommend? Feb 26 03:38:05 get the git plugin for hg Feb 26 03:38:22 jk Feb 26 03:38:26 TacticalJoke: stash plugins not playing well with diffing / history editing plugins not playing well with CLI-prettification plugins. the integrations were just lacking, and things could slip through the cracks and sorta-disappear / be difficult to bring up to date because they were orphaned. Feb 26 03:38:34 <_genuser_> git or mercurial both would suit you just fine. Feb 26 03:38:47 Shelve seems to work fine nowadays, and histedit too. Feb 26 03:38:56 TacticalJoke: legitimately though this was a few years ago, and I never did grok the gestalt of hg. Feb 26 03:39:14 git groks good for me. Feb 26 03:40:37 Talking of that word. :) Feb 26 03:40:41 TacticalJoke: I think I also dabbled with Mq after briefly trying shelve, neither seemed particularly rational to me Feb 26 03:40:45 Oh, MQ is horrible. Feb 26 03:40:56 Websphere MQ ? Feb 26 03:41:00 It was created for a very specific task: to be a quilt for Mercurial. Feb 26 03:41:14 oh Feb 26 03:41:20 Evolve is a really cool new (well, not-yet-released) feature. Feb 26 03:41:37 It offers safe history mutation, and safe propagation of that mutation. Feb 26 03:41:52 <_genuser_> I really like git/hg repos especially the free ones online. you can backup your project for free and you have a backup in case your disk goes kablam. Feb 26 03:41:54 It's basically append-only mutation (where the "old" changesets are marked as obsolete). Feb 26 03:42:03 But they're still around if you want them (unless you manually garbage-collect). Feb 26 03:42:06 They're just hidden from the UI. Feb 26 03:43:06 TacticalJoke: how do you rescue them if you want to leave Evolve? or turn them into commits? or use them in a different immutable-history-mutation plugin? Feb 26 03:43:21 They are commits. :D That's the cool thing. Feb 26 03:43:23 those are the sorts of questions that drove me to git :| I'm happier now. rebase all the things. Feb 26 03:43:27 i cant believe how buggy AS is still - and i think this is IntelliJ not anything google did. I refactored, OK. git diffed everything, OK. go to open a file and it starts screwing up all the imports automatically - it /compiled/ and then broke it Feb 26 03:43:29 Evolve is also a core feature, so you can't leave it. Feb 26 03:43:30 aah. just metadata? Feb 26 03:43:47 The "this changeset is obsolete" thing is metadata, yeah (and stored in a totally separate file). Feb 26 03:44:09 makes sense. and yeah, i gather mercurial has improved since I've left it. git too, since then. Feb 26 03:44:49 The main problem with MQ is that it does this kinda stuff without creating proper changesets. Feb 26 03:44:51 It's a horrible model. Feb 26 03:44:59 A whole new layer upon changesets. Feb 26 03:45:11 Here's more info on Evolve if you get bored: http://evolution.experimentalworks.net/doc/ Feb 26 03:45:24 that does ring a bell with MQ Feb 26 03:46:00 part of my distaste at the time was also that stuff like that is/was somewhat culturally acceptable, which seems crazy to me Feb 26 03:46:16 Oh, everyone hates MQ. As far as I remember, many have hated it since release. Feb 26 03:46:21 lol Feb 26 03:46:29 so I'm tainted :) Feb 26 03:46:51 Mozilla uses (or used to use it) a lot, though. I think there is a guy trying to convince them all to stop. Feb 26 03:46:59 as a n00b on it though, and iirc it was bundled, I saw no reason to avoid it Feb 26 03:47:22 Yeah, it's a standard "extension" (which is basically a core feature, really; it's weird that they use the word for the bundled stuff). Feb 26 03:48:19 The first line of http://mercurial.selenic.com/wiki/MqExtension is "MQ is rarely needed for new Mercurial users". Though that's a new addition. Feb 26 03:50:58 Phases in Mercurial are nice. If you push a changeset, it becomes 'public'. Then, you can't mutate it without forcibly dropping its phase to 'draft' (or 'secret'). Feb 26 03:51:21 anyone know why opening a file in AS would cause it to fully qualify all the things, everywhere ? the import section is empty Feb 26 03:54:48 hello, anyone using Toolbar widget from support app? Feb 26 03:55:37 hm, seems to be a problem with importing static inner classes Feb 26 03:55:38 woah eclipse is wigging out again Feb 26 03:55:50 Mittendeep fuck these tools ! Feb 26 03:56:11 Yeah, I hate IntelliJ and Eclipse (sorry). Feb 26 03:56:13 I've never liked either. ;| Feb 26 03:56:40 I turned off autobuild to investigate Feb 26 03:56:46 abara: 403 users. What are the chances? Feb 26 03:57:10 as far as i can tell none. no one replied Feb 26 03:57:14 One more user and we all disappear Feb 26 03:57:18 haha Feb 26 03:57:30 maybe no one is building things for version 5 Feb 26 03:57:48 abara: The question isn't a good one. Feb 26 03:58:23 tens if not hundreds of thousands of people are using Toolbar from AppCompat Feb 26 03:58:27 It's basically "Will someone volunteer to answer *any* question about X?" The only person who could volunteer would have to be a complete expert. Feb 26 03:58:45 Okay, maybe your question wasn't that extreme, but a lot of them sound like that. :) Feb 26 03:58:47 Trying to use new Toolbar widget from support app but the theme and popupTheme are not changing. Feb 26 03:59:10 GC overhead limit exceeded - is my code literally garbage and Eclipse is the collector? Feb 26 03:59:36 haha Feb 26 04:00:18 TacticalJoke: i understand your point of view, but i hate to write complete question and no one answer. So i like to know how many user can reply about the subject Feb 26 04:00:43 that is a poor approach for seeking answers Feb 26 04:00:45 But if you don't then someone has to spend several minutes trying to extract a question out of you. It's a lot of effort for someone already willing to help. Feb 26 04:00:51 99.9% of people won't answer, even if they know Feb 26 04:01:35 JakeWharton: i know. i had openned some issue over your projects and you didnt answer all of them Feb 26 04:01:37 : Feb 26 04:01:39 :P Feb 26 04:01:42 abara: Personally, I never ask those "Does anyone know X?" questions, because they are basically useless. Feb 26 04:01:51 Well, unless it's a really weird problem domain, maybe. Feb 26 04:02:54 TacticalJoke: on the archlinux channel it worked. some people just enter and said "someone working with X" then 3 or more guys reply and the real talk starts Feb 26 04:03:40 In the end nobody is using/working with Toolbar. Good to know :( Feb 26 04:04:47 abara: Nope -- in the end, you were just too lazy to ask a question. Feb 26 04:05:16 I just asked before .-. Feb 26 04:05:34 abara nobody that lived to tell about it anyhow Feb 26 04:05:34 about the themes not being applied as is expected Feb 26 04:06:00 g00s: or this Feb 26 04:06:19 abara are you using the right Activity? does it have the right theme (the appcompat) are you setting theme or themePopup with the wrong prefix ? Feb 26 04:06:43 Yes, yes, no. Feb 26 04:07:07 Just followed a simple tutorial from the blog http://android-developers.blogspot.com.br/2014/10/appcompat-v21-material-design-for-pre.html Feb 26 04:07:28 Pretty basic stuff, but the themes are not being applied. Feb 26 04:07:56 I always get a white background with black letters Feb 26 04:08:18 You're probably just using the wrong overlay. Feb 26 04:09:39 I'm using the same overlay on the post. Feb 26 04:09:59 afaik it should result at least on a dark background? .-. Feb 26 04:12:30 I think you're gonna have to post the code you're trying to pastebin. Feb 26 04:13:28 is the same on the post. Feb 26 04:14:06 the activity is just an activity. xml only contains toolbar Feb 26 04:14:12 i'm just testing the code Feb 26 04:17:19 If you had posted the question immediately and the code immediately, I bet you would've had an answer by now. But you're refusing, so I give up. Feb 26 04:17:29 * TacticalJoke does other stuff. Feb 26 04:17:52 TacticalJoke: ok, thanks anyway Feb 26 04:34:58 not sure if this is right place, please redirect if so, I have a datetime, 20150225195321710 Feb 26 04:35:20 I can figure out the first portion, 2015-02-25, the second part of it doesnt match anything I know. pretty sure its not UTC either Feb 26 04:35:58 19 = 7PM, 53 min, 21 sec, 710 millis Feb 26 04:36:27 jake ftw! Feb 26 04:36:40 JakeWharton, AHH!! i know it seems dumb, but i forgot this was EST :D was thinking impossible for it to be 7 PM Feb 26 04:38:03 thanks! Feb 26 05:22:08 I replaced all my "left" for "start" for Rtl, how far back is that supported? Feb 26 05:23:40 like layout_gravity="start Feb 26 05:25:13 lint will tell you if youhave some apis which dont have it Feb 26 05:26:16 16 Feb 26 05:26:46 lint mislead me to add it in the first place Feb 26 05:26:50 17, rather Feb 26 05:27:03 I'm using 16 and it's not warning Feb 26 05:27:10 it warns me Feb 26 05:27:29 it tells me to add start/end everywhere Feb 26 05:30:42 Does Picasso give "n% downloaded" notifications (so that I can show percentage on a ProgressBar)? Feb 26 05:30:47 no Feb 26 05:30:52 Okay. Feb 26 05:36:19 ej: FWIW, I'm using 15+ and I get the warning stating that it's 17. Feb 26 05:38:33 Well, I don't get it for android:layout_gravity="start" but I do get it for stuff like android:paddingStart="5dp". Feb 26 05:42:11 Rust looks so neat. I wish I could use it for something. Feb 26 05:42:31 In Android Studio on osx, is there a way to pop out the log window into a seperate space ? Feb 26 05:43:55 TacticalJoke: agreed. I wish we had ownership concepts in Java Feb 26 05:44:03 certainly would make low-level code dealing with things like buffers a lot easier Feb 26 05:44:06 Mongey: you can do "adb logcat" from a terminal Feb 26 05:44:17 dunno if you can pop the AS log window out Feb 26 05:44:19 God, yeah. Feb 26 05:44:56 Mongey: upper-right of 'Android' pane, click the gear, uncheck 'Docked mode' Feb 26 05:45:36 then check 'Floating mode' Feb 26 05:45:48 actually, you might be able to just click 'floating' and it'll work Feb 26 05:46:33 seems like that doesn't allow it to move away from the current space though it seems Feb 26 05:47:52 Mongey do you mean outside of AS's main window ? Feb 26 05:47:58 yeah g00s Feb 26 05:48:09 dont think that is possible Feb 26 05:48:21 osx seems to make it acts as one big window and pulls the whole app across to another space Feb 26 05:59:33 <_genuser_> JakeWharton: I assume picasso mainly works with bitmaps and doesn't use the orientation stuff from jpeg exif headers. is that correct? Feb 26 05:59:47 correct Feb 26 05:59:55 well Feb 26 06:00:07 orientation exif data can be read from local files and content providers Feb 26 06:00:27 but we can't read it on anything streamed without significant work Feb 26 06:00:28 <_genuser_> I see Android provide a simple exif reader that read only the orientation from a byte[]. Feb 26 06:00:51 <_genuser_> provides. reads. dangit, I have typing using muscle memory. Feb 26 06:00:56 <_genuser_> *hate Feb 26 06:01:52 <_genuser_> anyway, back to orientation, I think for at least the thumbnail cache (which picasso will be loading by bulk), I'll pre-rotate them and then save them as thumbnails. Feb 26 06:04:46 JakeWharton, you still here? Feb 26 06:04:53 always Feb 26 06:04:56 ...and never Feb 26 06:05:03 that's what I thought lol Feb 26 06:05:46 <_genuser_> JakeWharton: do you work for square or just lend your name/reputation to their projects. Feb 26 06:05:57 I still haven't figured that thing out lol Feb 26 06:06:03 _genuser_: work Feb 26 06:06:22 <_genuser_> is this all in the valley? Feb 26 06:06:41 downtown SF Feb 26 06:06:43 <_genuser_> I often wonder how it would be work for one of the more mobile centric companies instead of doing .NET apps for call centers. Feb 26 06:07:06 <_genuser_> I don't even know if market street was downtown, but I worked there for a quite a while. Feb 26 06:07:24 <_genuser_> always looking over my shoulder while carrying my laptop bag across 15 block hoping none of the hobos jump you. Feb 26 06:08:06 square is 11th/market Feb 26 06:09:08 JakeWharton, I think my ide isn't using javac? Feb 26 06:09:16 <_genuser_> oh nice. I walked quite a bit on market st. with colleagues, dates, after lunch walks, etc. Feb 26 06:10:25 <_genuser_> I see you're right by 101 on market. wow that brings some memories... Feb 26 06:11:48 if I add javac to my classpath will it make it run? is that how it works? Feb 26 06:48:09 TacticalJoke for 1.1.1 "Calling android.getBootClasspath() is now possible again" Feb 26 06:48:22 i think this was a problem with the kotlin plugin using this Feb 26 06:52:20 Ah, yeah, they have the release notes up. Feb 26 06:54:51 g00s: the problem was calling it on the plugin, not the extension Feb 26 07:36:13 Anyone know of how to go from a videoview that is so large, to rotating to landscape and making it fullscreen? Feb 26 07:36:20 Like, what's the best practice to do this? Feb 26 07:38:23 lasserix: you can resize it in onConfigurationChanged(), and in its onMeasure or something Feb 26 07:38:53 what if while in portrait it is part of a very complicated layout? Feb 26 07:38:54 you also have to hide the Title Bar, and Menu Bar Feb 26 07:39:20 you can hide the rest of the layout and show just the video in landscape Feb 26 07:39:47 hmm Feb 26 07:39:54 maybe it would be better to open a dialog Feb 26 07:39:58 that is fullscreen Feb 26 07:40:40 I'd just put the video in one layout and the rest in another and hide the rest Feb 26 07:41:35 but you could do it your way too Feb 26 07:43:01 well it gets better Feb 26 07:43:07 so normally app is locked in portrait Feb 26 07:43:17 and i wanted to create a collapsing toolbar with the videoview in it Feb 26 07:43:18 hehe Feb 26 07:45:14 I have a videoview in my app sortof like youtube player with the list in the bottom in portrait mode and when you rotate it does fullscreen Feb 26 07:45:35 do you save position? Feb 26 07:45:46 and / buffering? Feb 26 07:45:49 no Feb 26 07:46:03 oh you mean playing position ? yes Feb 26 07:46:06 not the location position Feb 26 07:46:31 yeah that is exactly Feb 26 07:46:45 it's always at the top in portrait mode, but I want to make it in the future so user can drag the video to the bottom and list will go to the top Feb 26 07:47:23 I save the player position in onPause and reread it to continue playing in onResume Feb 26 07:47:31 if video was playing Feb 26 07:51:44 lasserix, well you'll certanly have to handle configuration change manually Feb 26 07:52:07 if you want your experience to be seamless - otherwise you'll lose the rendering surface and will have to reset the player Feb 26 07:52:22 well i was thinking onconfig if landscape, detach video from layout, readd it to dialog that is fullscreen Feb 26 07:53:11 hmm, why? Feb 26 07:53:16 why not just resize the view? Feb 26 07:53:25 because it is part of a complicated view Feb 26 07:53:33 *layout Feb 26 07:53:44 aaaand? Feb 26 07:53:58 yeah the video continues to play smooth while going from one orientation to another for me Feb 26 07:54:58 you gotta hide notification bar, title bar, and if soft menu bar exists then also hide soft menu bar Feb 26 07:55:26 yeah Feb 26 07:55:32 it is going to be a pain in the ass Feb 26 07:56:30 Hey guys, I’m having a problem with the keyboard sliding the views up in my fragment. I’ve tried: getActivity().getWindow() Feb 26 07:56:32 .setSoftInputMode(WindowManager.LayoutParams.softInputMode.SOFT_INPUT_ADJUST_PAN); Feb 26 08:15:29 nvm, Feb 26 08:31:24 seems like YouTube isn't making a profit. Google is trying to get people to visit the site, but most come in through links to see one thing and leave Feb 26 08:43:20 getTag() == “Get the tag name of the fragment, if specified.” Feb 26 08:43:24 where is it specified? Feb 26 08:43:47 ah android:name Feb 26 08:44:49 how do you set programmatically? Feb 26 08:45:48 w/e using instanceof Feb 26 08:52:01 die flash, die ! :p Feb 26 08:56:54 capella do the ad blockers know how to remove html5 video adds ? Feb 26 08:57:18 i'm guessig not Feb 26 08:57:42 Will have to watch how fast adblock responds ... probably confuse it Feb 26 08:58:09 but if they key on source ip does it matter? Feb 26 08:58:39 forgets .. or are they url filtering Feb 26 09:01:59 g00s: !!! Feb 26 09:02:06 hey thepoosh Feb 26 09:02:14 thanks be to Jibbers Feb 26 09:02:21 any suggestions for a banner rotator ? Feb 26 09:02:51 i want to show custom banners at footer of app Feb 26 09:03:08 ServerCrash: Appboy have a very good implementation for this Feb 26 09:03:29 thepoosh: checking out..thanks Feb 26 09:03:33 just a sec Feb 26 09:03:50 ServerCrash: https://github.com/Appboy/appboy-android-sdk/tree/master/android-sdk-ui/src/com/appboy/ui/slideups Feb 26 09:05:48 thepoosh thanks, but i guess its too much than what i want, i basically have few images that needs to keep rotating at the bottom, dont require tracking and other features Feb 26 09:12:04 ServerCrash: so just take the UI part Feb 26 09:12:10 ooh artifacts.. yay Feb 26 09:12:34 anyone up Feb 26 09:12:38 ye Feb 26 09:14:25 no Feb 26 09:14:42 maybe Feb 26 09:15:06 hey, is it possible to show svg images in imageviews? Feb 26 09:16:39 does ps aux works in adbshell Feb 26 09:17:12 no Feb 26 09:18:02 i guess inorder to fully program android i have to root my device Feb 26 09:19:57 ps a and ps u work Feb 26 09:22:51 linuxuz3r: what do you need it for? :) Feb 26 09:23:03 so there is still no other way then Runtime.getRuntime().exec("logcat") to read system logs programmatically? :/ Feb 26 09:23:43 thana: you mean like some kind of wrapper for it? Feb 26 09:24:40 appel1: or even somethign where i dont have to manage an external process and parse a message format which is basically human-readable but not machine-readable Feb 26 09:27:17 thana: the output isn't that difficult to parse. Feb 26 09:27:28 thana, you have root? Feb 26 09:27:39 whatitis: yes Feb 26 09:28:02 are you wanting to view on device or pc? there are options for both Feb 26 09:28:23 appel1: the main thing is: i have to do it. thats boilerplate code where it shouldnt ne necessary Feb 26 09:29:18 i've even made an app for reading logcat :) Feb 26 09:29:31 thana: you'd still have to interpret whatever format the wrapper decided to use. Feb 26 09:29:57 thana: depending on what format you use it is just a time, level, name, pid and message. Feb 26 09:30:00 to list apps that are running Feb 26 09:30:10 whatitis: where can i see the code? :) Feb 26 09:30:16 how to speed up Injellij Idea with Gradle? Feb 26 09:30:27 linuxuz3r: you don't need root for that Feb 26 09:30:31 linuxuz3r, you can use android apis to see running stuff Feb 26 09:30:41 thana, no code just app :) Feb 26 09:30:56 whatitis: i want to send the logs to a log server. so in the end i will inspect the logs from my pc ;) Feb 26 09:31:23 whatitis: so the app isn't published under an open source license? Feb 26 09:31:40 no i'm trying to sell it for shits and giggles :) Feb 26 09:31:48 thana: why not use an existing solution for that like ACRA? Feb 26 09:34:38 appel1: im currently evaluating the different solutions. i will have a look into acra, too, thanks :) Feb 26 09:50:24 What are the chances of adapter.insert() is called correctly and the actual item does not appear in the associated list view? Feb 26 10:02:56 I observe this issue when re-entering an activity. At first launch everything works just fine. Possibly a bug in the system? Feb 26 10:03:48 The chances of being a bug are very low. Feb 26 10:04:01 you ARE calling notifyDatasetChanged right? Feb 26 10:04:20 the insert() method on arrayadapter does that internally I think Feb 26 10:04:33 anyway, tried calling notify manually as well Feb 26 10:04:37 no difference Feb 26 10:06:23 napster, paste your code somewhere Feb 26 10:06:32 thats a good idea Feb 26 10:06:36 gimme a sec Feb 26 10:08:58 apparently nothing much to post https://gist.github.com/anonymous/d008a785930cec6798cf "adapter" is an extension of arrayadapter. Feb 26 10:12:51 more code might be helpful, can you paste the whole activity? Feb 26 10:13:46 ~450 lines Feb 26 10:13:48 hmm Feb 26 10:16:11 If i set a static variable of a non-static class in onReceive of BroadcastReceiver, when the app is not launched yet. Feb 26 10:16:32 will i be able to access that variable from activity i start from it ? Feb 26 10:20:29 Just figured out that it is not just the listview. I'm unable to touch any views from inside that runOnUiThread() call. Toasts works fine though. Feb 26 10:20:32 strange Feb 26 10:21:21 Question is updates: what are the odd of not being able to touch views after re entering an activity? Feb 26 10:21:29 s/updates/updated Feb 26 10:22:46 full code https://gist.github.com/anonymous/abdcf941b206a0fc9248 Feb 26 10:24:24 problem is on line #116 Feb 26 10:31:24 is there a way to force abbreviation when calling getRelativeTimeSpanString? Feb 26 10:31:58 I want to force it to be h, m, s, d for those units instead of the current min, hr, day, sec Feb 26 10:42:38 Morning All Feb 26 10:49:45 morning Feb 26 10:59:29 what is the working of service how is it called? i am starting service in Mainactivity and after that i am calling a method but service is running after method. Feb 26 11:00:21 hm? Feb 26 11:00:37 Ashiren, to me ? Feb 26 11:00:47 could be Feb 26 11:01:46 service is running until unbind or forcefully stopped Feb 26 11:02:05 might also depend on bind options Feb 26 11:02:15 nothing in bind Feb 26 11:02:20 nothing on unbind Feb 26 11:02:43 or, what is your question? Feb 26 11:03:39 i want to start service before some method. but service is running after all methods are called in Oncreate Feb 26 11:03:47 whats wrong with ORMlite ? Feb 26 11:03:56 W/FileUtils﹕ Failed to chmod(/storage/emulated/0/com.test.test/data.db): android.system.ErrnoException: chmod failed: EPERM (Operation not permitted) Feb 26 11:04:00 how can i call service first than other methods Ashiren Feb 26 11:05:39 hmm Feb 26 11:06:07 i dont know if this is possible Feb 26 11:06:47 u mean by default methods are called first than service is called ? Feb 26 11:08:58 why do you need service before onCreate Feb 26 11:14:05 s9iper1: Have the service part of another Activity that you launch first, then switch to your mai nactivity? Feb 26 11:14:26 Not sure if services work cross activities Feb 26 11:14:42 hey Feb 26 11:14:50 no its just another class not an activity Tomasu Feb 26 11:15:10 Tomaz^W, Feb 26 11:16:14 I am trying to make a draggable overlay.. Listener: http://pastebin.com/AktnP1MX WorkingCode: http://pastebin.com/PscHJ00E nonWorkingCode:http://pastebin.com/3Y5CYa8h anybody any thoughts on that? Feb 26 11:16:23 can i create a hidden field at users contact list ? for example all contact list have a field named xxx ? Feb 26 11:17:08 actually i am reading data from DB in that service and one of the service method is returning array which i am calling in MainActivity but its gets null beacuse service class is running after method this is the problem Tomaz^W Feb 26 12:05:13 I am trying to make a draggable overlay.. Listener: http://pastebin.com/AktnP1MX WorkingCode: http://pastebin.com/PscHJ00E nonWorkingCode:http://pastebin.com/3Y5CYa8h anybody any thoughts on that? Feb 26 12:15:00 Montyr: draggable views are ok sometime Feb 26 12:15:04 those are my thoughts Feb 26 12:20:28 hm yes but i do not understand why it worked when i added the listener to the expandablelistview but not anymore when i added that listview to a linearlayout and tried to make that draggable Feb 26 12:43:58 <_genuser_> dang implementing a filesystem type cache is pretty annoying and involved. Feb 26 12:45:44 Hello! i can setup dependency like flavorCompile or debugCompile but how to setup flavorDebugCompile? Feb 26 13:25:02 What are the prerequisites for making multiplayer games in android Feb 26 13:25:10 Server client games Feb 26 13:30:18 (sumya) What are the prerequisites for making multiplayer games in android Feb 26 13:36:36 I'm able to isolate one issue I had, so going to ask the same question again. Upon re-entering an activity (pressing back and going back to the same activity again) I'm unable to touch my views in it. Here is the code https://gist.github.com/anonymous/eb2193c56790f01a758e. The UI is being updated by the method in line #36. Just no changes happening on the UI. Feb 26 13:36:50 sumya: you asked this twice, you need to know how to design a game, how to deal with stuff like Unity probably, and to know and design the interactions between server/client and server/server Feb 26 13:36:56 not sure what you're aiming at Feb 26 13:37:25 napster: is the activity defined as singleTask? Feb 26 13:37:33 or singleTop? Feb 26 13:37:34 singleTop yes Feb 26 13:37:49 yep thepoosh Feb 26 13:37:49 pubnub! Feb 26 13:37:52 I use them Feb 26 13:37:55 they are good Feb 26 13:37:58 yep :) Feb 26 13:38:16 any idea why this issue is happening? Feb 26 13:38:42 just a sec Feb 26 13:38:53 sure Feb 26 13:39:13 how do you keep the settings menu when you create a custom view for the actionabr Feb 26 13:39:15 actionbar Feb 26 13:39:24 napster: you must subscribe in the background Feb 26 13:39:26 MUST Feb 26 13:39:30 this is a network call Feb 26 13:39:41 even better if you do this as a service Feb 26 13:39:57 that is probably the reasone Feb 26 13:40:02 thepoosh subscribe actually happens in the background I assume Feb 26 13:40:15 because otherwise, android 4.0+ would have thrown an exception Feb 26 13:40:30 and subscribed data is being received correctly Feb 26 13:40:35 napster: I promise you it;s a blocking operation Feb 26 13:40:39 trust me Feb 26 13:40:52 ok :) let me see Feb 26 13:40:53 could be it's not a network on main thread Feb 26 13:40:56 but it's blocking Feb 26 13:40:58 trust me Feb 26 13:41:19 holy moly! adding json schema validation to my app adds 2.7MB to the APK size. Feb 26 13:41:28 ok, trusting you. But does singleTop has something to do with this thepoosh? Feb 26 13:42:13 no, but that might have done other things to mess up the state machine of the activity Feb 26 13:42:23 that was my suspicion without looking at the code Feb 26 13:42:42 ok, I tried normal launch mode but same result anyway. Feb 26 13:42:53 let me try moving the subscribe to another thread. Feb 26 13:43:13 napster: their sample is using a service Feb 26 13:43:16 try doing that Feb 26 13:43:49 so... Feb 26 13:44:14 thepoosh ok Feb 26 13:46:49 tried moving subscribe to a simple spawned thread, no luck. thepoosh Feb 26 13:46:57 hmmm Feb 26 13:47:12 honestly, I think the subscribe part is just fine. :) Feb 26 13:47:22 because the data is being received correctly Feb 26 13:47:27 even after activity re-entry Feb 26 13:47:40 it is just that I can't touch the views Feb 26 13:47:44 napster: also, success callback only happens when you get a message Feb 26 13:47:51 * napster is even able to Toast the received message :) Feb 26 13:48:06 yep, thats right Feb 26 13:48:17 napster: you're clicking the R.id. btn_pos? Feb 26 13:48:22 btn_post Feb 26 13:48:52 yep, that pops up a dialog (simple DialogFragment with an EditText) Feb 26 13:49:05 then passing back the string to onMessage() Feb 26 13:49:07 did you try debugging? Feb 26 13:49:12 or adding logs onCLick? Feb 26 13:49:29 it seems like there is a different onClick or onTouch intercepting your touch Feb 26 13:49:30 thepoosh yep, (I have been on this for atleast 6 hours now ) Feb 26 13:49:58 no no, see, everything until receiving the sent message works just fine. Feb 26 13:50:06 may be I should send you the apk :) Feb 26 13:50:13 (if you got some free time) Feb 26 13:50:24 send to thepoosh at gmail Feb 26 13:50:30 cool! Feb 26 13:50:49 in any case, try adding a real tag to the fragment Feb 26 13:51:00 :) ok Feb 26 14:00:32 thepoosh Updated code : https://gist.github.com/anonymous/04d9deaaf7046fe6319d APK file : http://www.justbeamit.com/puiwp Feb 26 14:00:40 can't send apk with my mail client :/ Feb 26 14:01:18 in case it if can't be downloaded, let me see other services Feb 26 14:11:29 * napster still think it has something to do with the runOnUiThread() mechanism. Don't know for sure though Feb 26 14:18:28 napster: dead link Feb 26 14:18:31 for the apk Feb 26 14:18:55 ah Feb 26 14:18:58 one sec Feb 26 14:19:01 how'd you get that nickname Feb 26 14:19:02 lol Feb 26 14:19:30 Odaym: he was pirating songs Feb 26 14:19:35 back in the late 90s Feb 26 14:19:41 with emule Feb 26 14:19:41 good one Feb 26 14:19:43 emule! Feb 26 14:19:45 and limewire Feb 26 14:19:49 and the rest of them Feb 26 14:19:53 audiogalaxy Feb 26 14:19:54 was that to me Odaym ? Feb 26 14:20:05 yea Feb 26 14:20:06 :) Feb 26 14:20:19 hard to get catchy names here Feb 26 14:20:30 been a big pirate old days. they closed me down. Now I code android for food. Feb 26 14:20:31 no one even cares, but just saying Feb 26 14:20:55 you joined forces with Zuck later too Feb 26 14:21:03 to pirate PEOPLE Feb 26 14:22:18 napster was no pirate though. It was true democracy Feb 26 14:22:43 napster: upload to drive or dropbox Feb 26 14:23:01 this thepoosh http://ge.tt/api/1/files/1OdoSEB2/0/blob?download Feb 26 14:23:55 anyone tried Dropbox's Mail app? Feb 26 14:24:16 me Feb 26 14:24:22 and? Feb 26 14:24:26 crap Feb 26 14:24:28 Hello! I use CardView in layout. And see that i have ~1px space between cardviewborder and content. How to fix it? Feb 26 14:24:47 how to remove the space? Feb 26 14:24:54 if anything you want to add more space! looks nicer! Feb 26 14:25:15 unless its a picture you're putting there Feb 26 14:25:18 I don't see much difference. Though I was not able to use with my own mail server. They support gmail/outlook etc Odaym Feb 26 14:25:26 yea, for normal people of course Feb 26 14:25:42 thepoosh able to run it? Feb 26 14:30:12 downloaded Feb 26 14:30:14 at work Feb 26 14:30:18 will try in a few hours Feb 26 14:30:26 ok Feb 26 14:32:08 How difficult is it to create an app that makes, let's say, 300$/month through ads? Feb 26 14:32:44 napster: UI is responsive Feb 26 14:32:45 flappy bird was pretty easy to clone. Feb 26 14:32:45 no issues Feb 26 14:32:49 on a Nexus 5 Feb 26 14:33:07 the poosh! Feb 26 14:33:19 thepoosh to reproduce the issue Feb 26 14:33:21 still working fine Feb 26 14:33:25 press back Feb 26 14:33:29 and go back to the activity Feb 26 14:33:32 and try posting Feb 26 14:33:40 UI IS NOT REFRESHING!!! Feb 26 14:33:46 exactly Feb 26 14:33:52 but you can see Toasts right? Feb 26 14:33:52 :) Feb 26 14:34:08 man what kind of question is that TylerDurden01 Feb 26 14:34:14 yes Feb 26 14:34:26 It's 13 difficult, I heard Feb 26 14:34:31 some claim 12.5 Feb 26 14:34:31 nah Feb 26 14:34:36 more like 14.8 Feb 26 14:34:38 thepoosh this is the issue. I'm not able to update the text view. Feb 26 14:34:48 napster: what is the packagename? Feb 26 14:35:13 in all likelyhood, you have a better chance working at the grocery store for 10 hours a weeks to make $300/month ;) Feb 26 14:35:18 TylerDurden01, what is the cost of 1 click of an ad? Feb 26 14:35:29 thepoosh sent through the app :) Feb 26 14:35:33 again Feb 26 14:38:25 napster: can you add systrace in every method in the activity? Feb 26 14:38:29 and rebuild Feb 26 14:38:39 ok Feb 26 14:39:22 anyone ever figure out how to jump to matching bracket in AS? Feb 26 14:39:30 this is so essential man, I still can't find it Feb 26 14:39:48 cmd Shift P it was in Eclipse Feb 26 14:40:16 Odaym: you can make the keyboard shortcuts be the same as Eclipse Feb 26 14:40:26 you need the function to be available Feb 26 14:40:28 then you map it Feb 26 14:40:29 Odaym Alt Cmd { Feb 26 14:40:44 check https://www.jetbrains.com/idea/help/navigating-to-braces.html Feb 26 14:40:46 true Feb 26 14:40:57 thanks.. Feb 26 14:40:59 yw Feb 26 14:42:12 napster: ? Feb 26 14:42:32 * napster figuring out systrace :) Feb 26 14:42:50 haven't used it before Feb 26 14:42:59 $ make fastboot adb Feb 26 14:43:01 [...] Feb 26 14:43:01 You asked for an OpenJDK 7 build but your version is Feb 26 14:43:02 java version "1.7.0_72" Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode). Feb 26 14:43:10 Log.d(TAG, nameOfFunction()); Feb 26 14:43:29 nothing fancy Feb 26 14:43:57 ok Feb 26 14:44:10 I was onto this http://developer.android.com/tools/debugging/systrace.html Feb 26 14:44:17 gimme a sec Feb 26 14:44:23 naaaah Feb 26 14:44:25 :P Feb 26 14:44:33 systrace is a code snippet in eclipse Feb 26 14:44:35 :S Feb 26 14:44:53 Odaym: well, I'm asking because I find it hard to believe that someone would browse my app on the google app store on the 5th page AND click stuff in the ads, thus I'd think that it's kinda hard to make little cash Feb 26 14:45:05 of course it's hard Feb 26 14:45:13 and there is no recipe anywhere Feb 26 14:45:18 so its useless to ask such a question Feb 26 14:45:56 ask not what your code can do for you, instead ask what you can do for your code! Feb 26 14:45:59 thepoosh ok, adding log.e to the end of all functions. Feb 26 14:46:06 begining! Feb 26 14:46:10 ok Feb 26 14:48:43 thepoosh here we go : https://dl.dropboxusercontent.com/u/25753253/app-debug.apk Feb 26 14:50:01 thepoosh oh really? :) Feb 26 14:50:22 napster: yes, since you never disconnect from pubnub on the way out, there is an issue with callbacks. Feb 26 14:50:43 the first callback receives the message but it's view is already destroyed Feb 26 14:50:57 thepoosh wow! Feb 26 14:51:04 we had that Feb 26 14:51:05 that could be it Feb 26 14:51:17 if you dump the hprof you'll see 2 callbacks Feb 26 14:51:26 going back to the code Feb 26 14:51:50 onStop OR onDestroy which is guarenteed? Feb 26 14:52:06 is it possible to overlay the actionbar settings button so it doesn't take room? Feb 26 14:52:37 napster: I feel so good about myself now! Feb 26 14:52:48 have been dealing with pubnub for the past 2.5 years Feb 26 14:52:56 I feel good about you too. :) Feb 26 14:53:04 it's such a niche Feb 26 14:53:05 this was a good catch Feb 26 14:53:23 yeah, I wouldn't have caught this unless I had to patch memory leaks in our app Feb 26 14:53:27 a few months ago Feb 26 14:53:37 this is where I really feel like I've learned something Feb 26 14:54:33 everything works like damn good. thepoosh When you come to my country you are offered anything you want. (Like a... dinner or something) Feb 26 14:54:39 you guys should watch all of this http://realm.io/news/joaquim-verges-making-falcon-pro-3/ Feb 26 14:54:42 all of it Feb 26 14:55:18 thanks thepoosh Feb 26 14:55:34 * napster is going out for some fresh air. :) Feb 26 14:55:37 napster: thanks mate Feb 26 14:55:50 where is that country of yours? Feb 26 14:56:01 will talk on our app ;) Feb 26 14:59:04 Hi, does someone know if there is some way to import GeoJSON into Google Maps v2 API ? Feb 26 15:13:28 I just realised something strange: My app ranks higher on Google Search than it does on Play Store searches: http://picpaste.com/h7iElLyc.png Feb 26 15:15:25 that's strange Feb 26 15:15:31 that's strange?* Feb 26 15:16:00 how is that strange? Feb 26 15:18:20 well maybe strange is the wrong word Feb 26 15:18:31 it highlights how fucking terrible the play store search is Feb 26 15:18:50 you have no idea what you're talking about Feb 26 15:19:00 Odaym: enlighten me Feb 26 15:19:06 I don't know either Feb 26 15:19:10 but I do know that you don't know Feb 26 15:19:17 so just research and quit nagging Feb 26 15:19:23 research what? Feb 26 15:19:26 hi, is it not possible to run memory analysis against an application that isn't mine? Feb 26 15:19:30 what are you wondering about Feb 26 15:19:38 put it in a sentence and look for it Feb 26 15:19:45 "How does ranking on Google Play work" Feb 26 15:19:55 it's even been explained many times on Google IO Feb 26 15:19:59 in video Feb 26 15:20:06 it's broken as fuck, you can't find things even if you know what they are called Feb 26 15:20:12 no Feb 26 15:20:13 just no Feb 26 15:20:21 case in point, you can find something faster by googling it! Feb 26 15:20:22 YOU're broken, bro Feb 26 15:20:51 look up how that ranking works, and you will find out why your app is not showing up as the first Feb 26 15:21:13 definitely not the first person to wonder why strange things happen there Feb 26 15:23:07 I don't give a shit about my rank Feb 26 15:23:13 I give a shit about finding stuff Feb 26 15:25:43 finding stuff works according to how that stuff is ranked Feb 26 15:25:47 MIND EXPLODED Feb 26 15:28:46 Odaym: yes, but the Play Store is not an adventure game where I have to figure out the complicated and obtuse rules and challenges put forward by the creator to *win* the app I want to install. Feb 26 15:29:01 sir, you just won the argument Feb 26 15:29:51 don't be silly, this is the internet, there is no winning ;) time to get back to work Feb 26 15:31:12 Internet is the birthplace of democratic intellectual fighting. Feb 26 15:32:42 the guy's right Feb 26 15:32:57 if I can't find what I want quickly, you're doing it wrong Feb 26 15:33:14 whatevs Feb 26 15:33:36 whatevs indeed Feb 26 15:40:22 if I upload some random low quality app that already exists 100x will I get any downloads at all? Feb 26 15:41:09 what is going on today man Feb 26 15:41:19 are you nuts ej Feb 26 15:41:28 you just trolling man Feb 26 15:41:38 I kicked you from the channel, in my mind Feb 26 15:45:31 napster: intellectual fighting, democratic or otherwise, has been going on as long as there has been human intellect. Go read Plato's Republic. Feb 26 15:46:52 android@builduntuvm:~/aosp$ fastboot devices Feb 26 15:46:53 no permissions fastboot Feb 26 15:46:55 how do I fix this? Feb 26 15:47:06 sudo? Feb 26 15:47:30 that works. but why do I need it for fastboot and not for adb? Feb 26 15:48:48 android@builduntuvm:~/aosp$ sudo ~/bin/fastboot -w flashall Feb 26 15:48:48 error: neither -p product specified nor ANDROID_PRODUCT_OUT set Feb 26 15:49:07 is this a important warning for my project ? Explicit concurrent mark sweep GC freed explanation Feb 26 15:55:35 Bronze I still think intellectual fights became truly democratic when people could be completely anonymous to each other, which is on the internet. I could be wrong though. Feb 26 15:57:06 Iagree about anonymity, but not about the timing, starting w/the internet. Read up on pamphleteering. Especially during American colonial times. Feb 26 15:59:10 you should seriously dig the semantic of democratic Feb 26 15:59:24 / Feb 26 16:08:59 there are no .img files in out/target/product/hammerhead Feb 26 16:25:32 so, when I'm running the debugger, and intellij lets me evaluate expressions, can I do mutations with those expressions? or is it read only? Feb 26 16:25:37 * pfn hasn't tried yet Feb 26 16:26:22 pfn: I think it's read only, but you can do your own stuff with the read only things on the right side of the panel Feb 26 16:26:51 The watches panel I think? Feb 26 16:27:02 that's watches Feb 26 16:54:22 i overwrote my project after messing up my initial git config and uninstalling egit. oops Feb 26 17:20:09 Hi, i am trying to implement this lib : https://github.com/rudsonlive/Android-ObservableScrollView But inside a sample for a fragment i don't understand something, what does the .container stand here for : https://github.com/rudsonlive/Android-ObservableScrollView/blob/master/observablescrollview-samples/src/main/java/com/github/ksoichiro/android/observablescrollview/samples/ViewPagerTabFragmentScrollViewFragment.java#L41 Feb 26 17:20:21 This is the activity and there are no containers : https://github.com/rudsonlive/Android-ObservableScrollView/blob/master/observablescrollview-samples/src/main/res/layout/fragment_scrollview.xml Feb 26 17:20:29 How much ram do you guys run in your dev machines? Feb 26 17:20:50 8gb Feb 26 17:21:00 and 3gb laptop as backup Feb 26 17:21:02 drose379: I have 8 in this one and 12 in the second. Feb 26 17:21:03 and it was pain :s Feb 26 17:21:28 How does the 8 run? Feb 26 17:22:18 Depends on what you are doing, i am mostly doing front-end development and some Java development. Just got in Android, and it's pretty good. Feb 26 17:22:26 16gb on both my laptop and desktop Feb 26 17:22:33 And yeah I still get bogged down often Feb 26 17:22:48 With just running android studio you get bogged down? Feb 26 17:23:13 No considerably more, but AS with ~2-3 projects definitely takes up the lions share of it Feb 26 17:23:42 Ok, Im thinking of getting 8GB Feb 26 17:23:51 im still going to switch to AS but im lazy :v Feb 26 17:24:01 8GB for just android is ok Feb 26 17:24:05 AS with 2-3 projects + Chrome with 5 tabs + Charles Proxy + Terminal + Slack + Possibly Xcode = memory overload Feb 26 17:24:08 get as much as you can, and dont get a laptop that maxes out at 8 Feb 26 17:24:09 even some space for genymotion Feb 26 17:24:43 yep that takes a good bit of space in memory as well Feb 26 17:25:56 i mean, how can you get memory overload with 16gb Feb 26 17:26:19 I'm hovering at ~15GB full of RAM right now Feb 26 17:42:16 Mittendeep, what's to mess up Feb 26 17:42:58 unless you're running some pretty advanced git commands, the repo is pretty safe from harm Feb 26 17:43:12 okay, I think my previous two builds were broken. this is the third time I'm compiling Feb 26 17:43:44 antlan, rnewman: Is there any way to resolve the FindInPageBar Match-Case UI design and move it, or will it stick up behind the whole action-bar rework? Feb 26 17:43:47 the first time I did 'make fastboot adb', but it didn't build them, but still did something for 7 minutes. then I did it again, and I finally got those. now I'm doing 'make -j2', has been running for over an hour Feb 26 17:43:54 pfn: I think eclipse just freaked out and couldnt find my files. they are back now. Feb 26 17:43:58 meh - tabfail Feb 26 17:57:24 hello guys, has anyone been able to **successfully** get a screenshot (bitmap) from a surface view? Feb 26 17:57:49 hello guys, has anyone been able to **successfully** get a screenshot (bitmap) from a surface view? Feb 26 18:07:17 cannot access variables from service nullpointer exception error how to access them ? Feb 26 18:07:46 what variables Feb 26 18:09:05 s9iper1: Are you using android:process in your manifest? Feb 26 18:09:35 no Feb 26 18:09:49 what variables Feb 26 18:09:58 array variables Feb 26 18:10:02 where Feb 26 18:10:27 in service and i am trying to access them on Mainactivity but there is null pointer exception Feb 26 18:10:55 even i am starting service before getting to those variables Feb 26 18:12:16 in the service you are trying to access them not in the service? Feb 26 18:13:45 Ah you're saying that the variables are in the service, and that you want to access them from the MainActivity? Feb 26 18:13:54 s9iper1: calling startService doesn't immediately start the service. Feb 26 18:14:04 ok Feb 26 18:14:06 than Feb 26 18:14:25 actually the service runs after i guess Feb 26 18:14:32 yes yiati Feb 26 18:15:10 s9iper1: are you following http://developer.android.com/guide/components/aidl.html Feb 26 18:16:40 yiati may be i didnt read that Feb 26 18:17:48 groxx, is there any way that i start service aftercontentview is set? Feb 26 18:17:59 woohoo, google announces the arrival of Ads in Play Store Searches \o/ Feb 26 18:19:23 .. Feb 26 18:19:55 this is a very bad news for "little" developers Feb 26 18:20:00 s9iper1: probably not in the way you want. you have to set up some way to get information from your service to your activity, there's not really any way around it. Feb 26 18:20:04 this is also a bad news for users Feb 26 18:22:14 dunno. ads could be useful for smaller devs... getting an initial userbase is hard, but a handful of ads is pretty cheap. maybe not as cheap as the scammy alternatives though :) Feb 26 18:22:16 i should have added Feb 26 18:22:53 more likely though it'll be inundated by Coke's ads for their new crApp. Feb 26 18:23:08 groxx, can i display on Ui from service ? it runs in background and no way to connect to UI as i know Feb 26 18:23:22 google still gets 90% of its money from ads, so its at the center of everything they do. it was inevitable Feb 26 18:23:24 g00s, i did not detect irony sorry :p Feb 26 18:23:28 s9iper1: you don't have access to it directly, no. Feb 26 18:23:38 hmm Feb 26 18:23:41 g00s: yeah, totally. surprised it took this long. Feb 26 18:23:51 only a matter of time rest of the gapps get adds somehow Feb 26 18:23:55 i'm not surprised Feb 26 18:24:04 i thought gmail already had them but i haven't seen any yet Feb 26 18:26:46 just stopping in quickly to give you all a chance to wish me a happy birthday :D Feb 26 18:26:58 * groxx looks forward to video ads playing between apps in your recents list Feb 26 18:27:23 How does configChange work within fragment? Do you still have to declare in the parent activity configChanges? Feb 26 18:28:16 happy birthday MikeWallaceDev ;) Feb 26 18:28:27 MikeWallaceDev: w00t, congrats :) you live another day! Feb 26 18:28:48 thanks! How did you know it is my birthday?? I'm so shocked and surprised :D Feb 26 18:29:07 groxx, I have 48 years practice of living another day! Feb 26 18:29:09 it just hit me, a message out of the clouds :D Feb 26 18:29:31 groxx, yeah, like divine intervention:D Feb 26 18:30:36 lasserix: configChanges, like in the manifest? Feb 26 18:30:44 Users' willingness to tolerate ads, even on tiny screens, is srsly disappointing. Feb 26 18:31:06 TacticalJoke: in that they do, rather than pay $1, or that they don't and flee the app in droves? Feb 26 18:31:17 The latter. Feb 26 18:31:18 yeah so i have fragment, i need to override configchanges to handle videoview smooth buffering. So do i need to set configchanges in manfiest of parent activity? override configChange in parent activity? Or can I just configChanges in Fragment? Feb 26 18:31:29 I wish apps with obnoxious ads got flooded with 1-star reviews and abandoned. Feb 26 18:31:38 I uninstalled Trivia Crack because there were too many ads. It was insulting, I didn't buy, I just said "screw you" Feb 26 18:32:01 I'll usually buy an app that I like Feb 26 18:32:09 and I liked that one, played a lot. Feb 26 18:32:13 but nope. Feb 26 18:32:17 lasserix: afaik: setRetainInstance(true) works for that in fragments, as long as the fragment exists in both config states of the activity Feb 26 18:32:24 Yeah. Feb 26 18:33:23 my personal favorites are the apps that pop up full-screen ads while you're tapping on things, so you're pretty much guaranteed to click through. seems like Goggles should be banning those pretty swiftly. Feb 26 18:33:35 alas, The Goggles, they do nothing. Feb 26 18:33:41 they actually are banning those Feb 26 18:33:46 and very quickly Feb 26 18:33:53 groxx: so setRetainInstance true and override configChange for fragment and handle the resizing? Feb 26 18:33:55 there's a difference though. setRetainInstance doesn't "handle" config changes, it just stays alive Feb 26 18:33:56 come on guys, sponsored ads on web searches works awsome ! Feb 26 18:34:02 Google announced a their new successor to HTTP/2 http://goo.gl/FaCh80 Feb 26 18:34:44 lasserix: if you need to change the layout, yeah, probably Feb 26 18:35:25 lasserix: otherwise, since it sounds like the activity isn't retained in this case, you could be serving up a different layout entirely (like youtube's portrait / landscape thing), in which case maybe you'd just change the layout params and call it a day? Feb 26 18:35:50 i'm just not going to update to the next Play Store app Feb 26 18:35:52 Hello Feb 26 18:35:52 groxx, believe it our not, my last months have been spent working on an app just because of those "tapping on things' ads Feb 26 18:35:56 oh siit ! Feb 26 18:36:05 How have I to change the manifest if I use libsuperuser calls in java code? Feb 26 18:36:10 groxx, there were a lot in a kid's drawing app. That's just wrong. Feb 26 18:36:14 Any ideas? Feb 26 18:36:27 From what I was reading, a lot of kids' apps have NSFW ads. Feb 26 18:36:33 TacticalJoke, :( Feb 26 18:36:37 And ads that try to trick them into thinking they have malware on their devices. Feb 26 18:36:45 (And I'm guessing at least some of those actually try to install malware.) Feb 26 18:37:02 My app doesn't even have Internet access... It's causing ME problems, but the kids will be safe Feb 26 18:37:30 ads should be ads, not traps. Feb 26 18:37:40 it's really not cool. Feb 26 18:38:09 MikeWallaceDev: What problems are you having with no Internet access? Just curious. Feb 26 18:38:47 problems wasn't a good word... I can't put features that I want to put (crash reporting, notifications when new content...) Feb 26 18:39:21 Couldn't you add the permission? You could still show "No ads" in the description. :) Feb 26 18:39:29 Crash reporting really sucks, because I won't be able to better my product Feb 26 18:39:52 groxx: can't use retain for views Feb 26 18:39:54 I could. But then I would be as bad as the scammers... Feb 26 18:40:05 I want the user to feel totally safe Feb 26 18:40:29 I did think of enabling it for beta versions though, then removing it Feb 26 18:41:06 If you need Internet access for two legitimate functions, I don't see how it would make you as bad as scammers. Feb 26 18:42:17 scammers don't say "hey look, we're scamming you!!" they say "we're putting this in for legitimate reasons" #StealAllTheThings!!! Feb 26 18:42:49 I just want the parents to KNOW the kids (and their device) are safe Feb 26 18:43:34 The only permission that I ask for is SD_CARD, and that's to save the drawings. Feb 26 18:43:51 so that I can save in "pictures" and the parents can view in their gallery Feb 26 18:44:31 Okay, I can totally see where you're coming from. It's nice when apps use the fewest possible permissions (especially kids' apps). Feb 26 18:45:16 yeah, kid apps are terrible :( Feb 26 18:45:26 but.. that's good for me :) Feb 26 18:45:39 Right. Unfortunately, you have a niche. lol Feb 26 18:45:47 lasserix: not sure what you mean by that... Feb 26 18:45:55 exactly, terrible niche, but a niche Feb 26 18:45:56 Kinda like reddit apps: there's a niche for reddit apps that don't suck. Feb 26 18:46:06 ahaha exactly :) Feb 26 18:46:23 groxx i have to keep reference to videoview since it is buffering, can't put context-related object in retained state apparently. must do by overrding configchanges Feb 26 18:46:37 my question is do i have to add something to the manifest or can i just override onConfigChanged in fragment? Feb 26 18:47:34 ah, yeah, I suppose the context-related stuff would be recreated. hm. not sure what'll work. does overriding onConfigChanged work? Feb 26 18:48:19 interesting problem lasserix Feb 26 18:48:35 I think you're going to have to handle config changes Feb 26 18:48:35 groxx yeah believe so Feb 26 18:50:04 are you changing your layout on rotation? Or can you just android:configChanges="keyboardHidden|orientation" Feb 26 18:50:05 ? Feb 26 18:54:31 best ide for app dev? Feb 26 18:55:54 kdarknight: Android Studio, as it's the official one. Feb 26 18:57:19 Worst IDE? gVim! Feb 26 18:57:25 nano! Feb 26 18:57:31 lol Feb 26 18:57:47 Yeah the question should be more what’s the “recommended” IDE, and today, it’s hard to recommend anything other than AS, despite its flaws compared to Eclipse :( Feb 26 18:58:53 worst ide is either irc or pastebin by far Feb 26 18:58:54 I love AS. Switched over to IDEA before AS was even out. Feb 26 18:59:12 worst IDE is Photoshop. Feb 26 18:59:17 I agree, jaana. IntelliJ gets so much wrong. Eclipse gets less wrong, in general, IMO. Feb 26 18:59:30 first IDE i used was eclipse so i was comfortable working with eclipse at first, but after learning AS i would never go back Feb 26 18:59:34 see, I see it the other way around.. Feb 26 18:59:36 They’re both great IDE’s but I’m surprised how much AS gets a pass on a bunch of crappy things Feb 26 18:59:47 like what? Feb 26 18:59:51 like what? Feb 26 18:59:54 ^ Feb 26 18:59:56 :D Feb 26 19:00:15 you've got gradle, you've got intellij repo of plugins Feb 26 19:00:24 Like no Problems view (and no incremental compilation), very slow logcat support, buggy interaction with the adb daemon (I kill and restart those all the time), no traceview support, … Feb 26 19:00:40 there is traceview support Feb 26 19:00:48 there is problems view Feb 26 19:00:50 I don't use logcat in AS Feb 26 19:00:53 jaana: Also, tool windows are a freaking pain. Feb 26 19:00:57 Nah there is Problems view Feb 26 19:00:58 AS is buggy as hell with refactoring. if i refactor subproject X, and another subproject Y depends on it - Y doesn't get refactored. and i don't even get error markers. i have to manually go and build / test to find compile errors Feb 26 19:01:03 there is NO Problems view Feb 26 19:01:08 Tool windows don't have consistently placed closed buttons. It drives me mad. Feb 26 19:01:22 there's a view with the name "problems" which shows build problems. that seems like a Problems view to me? Feb 26 19:01:26 Sometimes you complete with TAB, sometimes with RETURN, very inconsistent Feb 26 19:01:35 groxx: But it’s not an incremental compilation view Feb 26 19:01:45 tab vs return behaves differently, you choose which you want Feb 26 19:01:49 I hate IntelliJ's refactoring in general. Often it pops up a progress dialog and I can't continue using the IDE till it's finished. Feb 26 19:01:52 incremental compilation is legitimately lost, yes Feb 26 19:01:53 jaana, Oh I totally agree there!!! Autocomplete is aweful Feb 26 19:02:10 well, live incremental. it's still incremental, .class files aren't always rebuilt from scratch. Feb 26 19:02:14 groxx: Why do I complete refactorings offered in menus with RETURN and inline in the editor with TAB? Makes no sense Feb 26 19:02:30 because menus are not inline? Feb 26 19:02:31 Trips me all the time, I insert returns in my editor, I tab in the menus Feb 26 19:02:58 “Validate” should be one key through the process, don’t switch it depending on the mode. Modal is bad. Feb 26 19:03:09 jaana, tab and return don't do the same thing, one inserts the word, the other overwrites Feb 26 19:03:20 I have it set up to allow me to use symbols to accept autocomplete entries, but for some reason I have to use Enter to autocomplete a constructor definition. Feb 26 19:03:24 MikeWallaceDev: Not true in menus Feb 26 19:03:32 One of my android phone is not visible for testing app. I have enabled USB debugging and installed drivers. is there anything else? Feb 26 19:03:41 jaana, right Feb 26 19:03:41 Basically, when I refactor, I should be able to press the same key to validate all the default choices. Feb 26 19:04:45 it's MI3 to be specific. my xperia z2 is detected automatically. Feb 26 19:06:26 The way Alt+Enter works in IntelliJ is also a pain. Feb 26 19:06:59 The caret has to be over the problematic identifier for me to use it, unless I've just typed it, in which case it forces me to pause momentarily before using it. Feb 26 19:07:09 TacticalJoke: Oh yes great point! Feb 26 19:07:32 On Eclipse, you press Ctrl-1 anywhere, it quick fixes. On IDEA, youneed to put your cursor exactly where you want to fix. As if the IDE didn’t know Feb 26 19:07:38 Or I can *not* pause and go through a vague menu which I think usually works (but it's so unnecessarily complex that I can't even remember when it does and doesn't give me what I want). Feb 26 19:07:43 Right, Ctrl+1 worked so much better. Feb 26 19:08:08 Especially for stuff such as implementing superclass/interface methods. Feb 26 19:08:12 I hate doing that in IntelliJ. Feb 26 19:08:26 I mean "implementing all super methods". Feb 26 19:08:33 In Eclipse, I can even Ctlr-1 a whole package Feb 26 19:09:45 ahh i can use textureview and rotate it and avoid config changes by just leaving it locked in portrait nice Feb 26 19:10:03 I'm hoping IntelliJ 14 fixes some of these issues, but I've never used it so I don't know. Feb 26 19:10:25 I’m using 14, nothing has changed Feb 26 19:10:44 Ah. Feb 26 19:11:12 I agree with those points. I still love AS. Certain things still need work :) Feb 26 19:11:26 AS has a lot of very good things that I wish Eclipse had, it goes both ways Feb 26 19:11:29 btw, I started using Live Templates, those things are awesome! Feb 26 19:12:13 android's profit share seems to be decreasing (if this is correct) http://blogs.strategyanalytics.com/WSS/post/2015/02/26/Android-Captures-Tiny-11-Share-of-Global-Smartphone-Profit-in-Q4-2014.aspx Feb 26 19:12:28 if this continues, nobody is going to make money Feb 26 19:12:53 To be honest, I'd probably use Eclipse if I were doing Java development. (Though I'd try IntelliJ 14 first.) Feb 26 19:13:08 so they went from 29% to 11% Q42013/ Q42014 Feb 26 19:13:27 g00s: for hardware. tbh I'm not convinced that's a bad thing. Apple just excels at markup. Feb 26 19:13:48 if oems can't make money ... Feb 26 19:13:53 google needs to do advertising campaign convising consumers paying a dollar for an app is no big deal, like buying a snicker bars or a cup of coffee Feb 26 19:14:05 so we can drop this ad scam bs Feb 26 19:14:15 g00s: on the hardware sales. lots of them make money elsewhere as well, same as Apple. Feb 26 19:14:23 I think IntelliJ needs more usability testing. The double-tap-and-hold-Alt thing (to show tool-window panes) is so bad, for example. Feb 26 19:15:39 intellij != AS Feb 26 19:15:46 you meant AS, right? Feb 26 19:15:51 g00s: heck, even if there were zero profit on the hardware sales, companies can still make money. take a look at every console ever, and consider how profitable they've been. Feb 26 19:15:59 qda: That isn't a feature of IntelliJ? Feb 26 19:16:06 idk :p Feb 26 19:16:27 they make huge profit on your data, everyone knows that Feb 26 19:16:38 your birthday is not going to change (hint wink wink to MikeWallaceDev) Feb 26 19:16:41 As far as I can tell, Android Studio is an IntelliJ fork that doesn't stray far from IntelliJ. Feb 26 19:16:44 so they can sell over and over and over Feb 26 19:16:51 across year the same data, they only have to gather once Feb 26 19:16:57 and this data is very valuable Feb 26 19:16:57 Yeah AS and IDEA are pretty much the same thing for all intents and purposes Feb 26 19:17:00 :D Feb 26 19:17:03 as knowing your gender and many others Feb 26 19:17:16 it's very valuable because it does not change across decades Feb 26 19:17:28 and it's special for you (at least the birthday) Feb 26 19:17:47 hi. just a quick question, ive been out of android for a year. am i to understand that the sherlock lib is now obsolete and that actionbars therefore works on pre 3.0 automatically from now? Feb 26 19:17:54 i'm surprised to not have read once an article about lifetime of data monetizing Feb 26 19:17:55 jaana: I wonder how receptive the IntelliJ people are to feedback. Hmm. Feb 26 19:18:16 equex: You can use AppCompat now for such low minSdkVersion values. Feb 26 19:18:18 equex, they're int compat lib now Feb 26 19:18:29 great! thanks. Feb 26 19:18:29 equex: But it's often better not to set minSdkVersion below 15/16. Feb 26 19:18:55 equex: ActionBarCompat is part of the AppCompat library, yeah. and arguably that's "deprecated" in favor of Toolbar, but YMMV. Feb 26 19:19:33 ah. i suspected that would happen. i had an almost finished app made with sherlock. so i guess i'll tune it a bit. Feb 26 19:19:41 I have to look into Toolbar more. I don't see the advantage... Feb 26 19:19:42 things will get even worst when I will start receiving ads targetting a special event of my friends/family, what we already saw on kids tv show (it mainly targets the parents since kids have no money and cannot go to the shop lol) Feb 26 19:19:51 oh, and equex RecyclerView is your friend. Feb 26 19:20:33 ActionBar feels like a hack compared to Toolbar. Feb 26 19:20:39 Toolbar is what ActionBar should've been from the start. Feb 26 19:20:40 MikeWallaceDev: not seen that one yet :) what does it do? Feb 26 19:20:41 Just a ViewGroup. Feb 26 19:20:45 It is a hack :D Feb 26 19:21:12 pretty much every thing past Froyo is a hack. Feb 26 19:21:14 :( Feb 26 19:21:24 equex, replaces list views Feb 26 19:21:41 works very well. Not a hack. :D Feb 26 19:21:48 MikeWallaceDev :D holo and material were just some designers screwing with new drawables ! XD Feb 26 19:21:49 equex: it's a refactoring of listview, basically. gives you the ability to have a LOT more control over things, though it does mean a fair amount of work by hand to do abnormal stuff. Feb 26 19:21:49 MikeWallaceDev: I'm in the same place regarding ListView. Is RecyclerView much nicer? I haven't tried it yet. :) Feb 26 19:22:04 g00s, I'm with you 100% Feb 26 19:22:16 i thinking - its the same ugly pig underneath Feb 26 19:22:18 TacticalJoke: if you're not doing anything fancy, it's essentially the same. Feb 26 19:22:21 TacticalJoke, oh yeah, much better. Feb 26 19:22:36 separation of concerns is much better Feb 26 19:22:40 I think I'll enjoy it because I hate that "recycledView != null" code. Feb 26 19:22:40 more configurable Feb 26 19:23:09 it does that 'automatically' Feb 26 19:23:30 It'll probably be useful for me because I don't want full-width dividers for comments. Feb 26 19:23:32 It now specifically asks for a ViewHolder (which is now an Android class) Feb 26 19:23:36 I don't mind manually drawing them there. Feb 26 19:24:00 Yeah, that's nicer. Feb 26 19:24:31 getView being given either a recycled View or null is one of those code smells mentioned in Clean Code. Feb 26 19:24:37 Definitely two methods in one. Feb 26 19:24:38 MikeWallaceDev: ah. Feb 26 19:24:50 "nicer" = "more boilerplate than listview", though I approve of their reasons for doing it (since they store metadata in the holders) Feb 26 19:25:39 It's not reallllly more boilerplate, it was boilerplate that we already did. Feb 26 19:25:50 It's just smarter about it now Feb 26 19:25:57 groxx: Maybe, but I can't stand code like this (and my project is full of it): FooView fooView = (recycledView == null) ? inflateFooView(parent) : (FooView) recycledView; Feb 26 19:26:16 heh Feb 26 19:26:26 yeah, the "two methods in one" argument is pretty solid, I'll agree there :) Feb 26 19:26:54 it feels like google devs with ADD stopped working on recyclerview before it was finished. still no cursoradapter for that thing, seriously ? how much do i have to copy and paste to get dividers. Feb 26 19:27:23 they could have at least had a section in the docs like, in listview you did this, on recyclerview you do this ... Feb 26 19:27:27 ADD would explain so much. :D Feb 26 19:27:42 i think the smartest devs are cleaning toilets over there or something Feb 26 19:27:51 all my lists do is get lines of text from a database with async listadapter and displays some text with an icon. Feb 26 19:28:05 interns are architecting whats left Feb 26 19:28:08 no cursoradapter is fine by me. if data > window, causes UI lag. if not, you're forced to do an _id-based cursor, which doesn't always map to something sane. Feb 26 19:28:20 it's a weird, super-leaky-abstraction class Feb 26 19:28:39 80% use case is grabbing data from sqlite and putting it in a list Feb 26 19:29:17 yeah. though 99% of the time there you have small enough data that you can (and should) load it fully into memory in a background thread, and just shove it into a plain adapter. Feb 26 19:30:07 IMO, Toolbar should have at least three more methods: hide() (or hideWithAnimation()), show() (or showWithAnimation()), and showUpToParentIcon() (perhaps with a related XML attribute). Feb 26 19:30:26 The last could use parentActivityName. Feb 26 19:30:34 The first two could take a direction or something. Feb 26 19:31:14 hm. does it not show the parent button or something? or different than ActionBar? or is it just an annoying omission? Feb 26 19:31:34 You can do it with setSupportActionBar and then that method whose name I always forget. Feb 26 19:31:53 But that's using the old, horrible ActionBar API. Feb 26 19:32:35 Otherwise, you can set custom:navigationIcon="?attr/homeAsUpIndicator" and manually handle the navigation-icon click. Feb 26 19:32:49 hide -> Toolbar#setVisibility(View#GONE) Feb 26 19:32:59 SimonVT: That doesn't animate. Feb 26 19:33:31 Toolbar can't know how to animate to disappear Feb 26 19:33:44 groxx, you can easily have thousands of records or more from sqlite, though Feb 26 19:33:45 just 4 more issues and I'm hoping to RC1!! :) Feb 26 19:33:46 But, toolbar.animate().alpha(0.0f) Feb 26 19:33:48 SimonVT: But animating the hiding/showing of the app bar is a standard pattern. Feb 26 19:34:00 It's even in the material guidelines, IIRC. Feb 26 19:34:01 You can put a Toolbar wherever Feb 26 19:34:10 pfn: sure, but scrolling through thousands of records is pretty crappy, and the data > window = UI jank still applies. Feb 26 19:34:15 If I have it at the middle of the screen, how should it be hidden? Feb 26 19:34:20 https://www.youtube.com/watch?v=gREYfrDmgJg playing with canvas, again :)) not finished, but you got the idea Feb 26 19:34:20 What about at the top? Or the bottom? Feb 26 19:34:26 Always alpha animations? Feb 26 19:34:29 groxx, it is what it is Feb 26 19:34:41 groxx, sometimes the amount of records can't be helped Feb 26 19:34:43 it's UI-thread database operations, that thing they always tell you to never do. Feb 26 19:34:54 SimonVT: It's a standard pattern to hide the app bar at the top with a "shrink" animation. Feb 26 19:35:08 Yes, to hide the app bar at the top.. Feb 26 19:35:12 And the fact that they don't give us a standard method to do this means that 10 people do it in 10 different ways. Feb 26 19:35:14 The Toolbar isn't necessarily at the top Feb 26 19:35:20 groxx, I have 200k rows in my channel logs for android-dev Feb 26 19:35:34 If you want to follow the guidelines, implement it that way Feb 26 19:35:40 They could offer a "hide direction" parameter or just require it to be at the top. Feb 26 19:35:44 It'd be an improvement. Feb 26 19:35:49 It doesn't make sense to offer it as part of the Toolbar api Feb 26 19:36:15 groxx, not much to do except have some UI choppinessnscrolling through months of logs Feb 26 19:36:17 "call this method if you use the Toolbar in this exact way, otherwise don't" Feb 26 19:36:25 Why not? It's intended to be used as an app bar as well as as a general toolbar. Feb 26 19:36:44 It's intended to be a View you can plug in wherever Feb 26 19:36:45 When collapsing the toolbar in response to scroll of content below it, what's the best way to expand the content below it to fill in the space? Feb 26 19:36:47 Furthermore, it has app-bar-specific functionality such as inflateMenu and setNavigationIcon. Feb 26 19:36:51 I would say it's the other way around TacticalJoke Feb 26 19:37:02 a general toolbar that can be an app bar Feb 26 19:37:05 Then why have inflateMenu? That's not something non-app-bars do. Feb 26 19:37:27 pfn: there are loads of alternatives. show placeholders when you scroll beyond what's loaded, and load it in the background. pretty much every website that has a large list of data does this. Feb 26 19:37:44 MikeWallaceDev: General toolbars don't have action menus or navigation icons. Feb 26 19:37:47 SimonVT: how would expand the view below a shrinking toolbar (in response to scrolling)? just change the layoutparams height? Feb 26 19:37:49 cursoradapter encourages bad behavior. Feb 26 19:37:50 I agree with you there TacticalJoke , that's why I removed it from my SlideOutBar Feb 26 19:38:05 I just use LinarLayout now Feb 26 19:38:27 groxx, yeah, I'm not gonna bother for a fringe feature Feb 26 19:38:49 lasserix: Just always have the view behind the toolbar Feb 26 19:38:54 that's why I said early that I have to look into Toolbars more... Don't see the value yet. Feb 26 19:39:21 SimonVT: and use changing padding or something to "expand" the content in that view? Feb 26 19:39:36 MikeWallaceDev: As far as I can tell, it's a much nicer API than ActionBar. But outside of that I don't see what it has over any other ViewGroup. Feb 26 19:40:04 right Feb 26 19:40:10 lasserix: Depends what you're trying to achieve Feb 26 19:40:25 By "outside of that" I mean "when used not as an app bar". Feb 26 19:40:27 And in which cases you want it to disappear Feb 26 19:40:56 pfn: which is kinda my point. they've baked this known-crappy thing into the core, thus encouraging everyone to use it when it sounds reasonable (e.g. "I have a cursor" -> cursor adapter!), which helps contribute to the general "android apps are a bit crappy" feel. Feb 26 19:41:19 I guess it'd be handy if you want a menu for a non-app-bar toolbar, but I doubt that is a common pattern. Feb 26 19:41:21 I'd much prefer they left it out until they built something better. Feb 26 19:41:51 SimonVT: trying to achieve the collapsing toolbar material design thing. Basically, my toolbar is expanded with an imageview inside, at this point the toolbar is invisible, the title sits at the bottom of the image view. When the user scrolls down, the imageview shrinks, the content below the imageview expands up, the title moves up. When the user has scrolled down enough so that the title is now where it would normal Feb 26 19:41:51 ly be as toolbar/actionbar title at the very top,t he imageview is totally gone and the content below has expanded up so the screen looks like normal actionbar with content underneath Feb 26 19:43:34 By "expanded up", you simply mean the user scrolled down enough for it to be visible? Feb 26 19:44:28 I'd just put the Toolbar on top of the ImageView, both inside a ScrollView. Attach a scroll listener, set translationY on the Toolbar to snap it to the top when it reaches that point Feb 26 19:45:58 On trying to create a gold card: sudo adb shell ls /sys/class/mmc_host gives me mmc0 and mmc1, but both “cat /sys/class/mmc_host/mmc1/mmc1:*/cid” and “cat /sys/class/mmc_host/mmc1/mmc1:*/cid” give me no-matches-found error. What do I do now? Feb 26 19:46:47 Does "gold card" have anything to do with application development? Feb 26 19:47:07 Sorry, I got redirected here after asking the question on #android. Feb 26 19:47:22 What would be the channel to ask this then? Feb 26 19:47:33 what is a "gold card"? Feb 26 19:47:50 I don't even know what a gold card is Feb 26 19:47:54 But anyway, this channel is for app dev Feb 26 19:48:03 newbQ: Did you solve your problem yesterday? Feb 26 19:48:37 (A gold card is a term for a special kind of SD card which you can use to root your phone, as far as I can tell. (This is what I’m trying to do.)) Feb 26 19:48:47 ah. probably #android-root then Feb 26 19:49:04 Ah! This makes sense! Thank you very much. Feb 26 19:49:10 there's very (very!) little root-level in here, since it's not normal app development Feb 26 19:50:07 TacticalJoke: sort of. another problem popped up, so I either solved that one or I just caused this new one Feb 26 19:50:52 Is it possible to implement ObservableScrollView without the toolbar ? Feb 26 19:52:51 good evening Feb 26 19:54:08 Nightwalkerkg: sure Feb 26 19:55:12 lasserix: https://github.com/rudsonlive/Android-ObservableScrollView/blob/master/observablescrollview-samples/src/main/java/com/github/ksoichiro/android/observablescrollview/samples/ViewPagerTabScrollViewFragment.java Feb 26 19:55:18 I am trying to use this but with no luck. Feb 26 19:55:21 Nothing happens. :D Feb 26 19:55:50 http://pastebin.com/6ZjcaKZD Here is the whole class. Feb 26 19:56:45 Ah, my bad. Feb 26 19:56:47 Got it. Feb 26 20:16:28 Anyone suffer from mediplayer spamming logcat? Feb 26 20:21:02 How does Batik go with ANdroid? or is there a better SVG library to use on Android>? Feb 26 20:21:28 lasserix: I've not used MediaPlayer before, but FWIW WebView spams me like crazy (even without any content loaded). Feb 26 20:22:17 It spams more on 4.1 than 4.4, but it's bad in both cases. Feb 26 20:23:19 so I'm upgrading to analytics sdk 4 and changing some actions and skipping labels... Would you create a new app id for that in analytics? Feb 26 20:23:41 it wont make sense looking at statistics for both the old categories and the new one Feb 26 20:29:01 I have a problem with setClipChildren(flase) and buttons becoming unclickable.. Feb 26 20:29:04 anyoen know of a remedy? Feb 26 20:29:10 lasserix: on a device or two, yeah Feb 26 20:29:14 lasserix, me Feb 26 20:29:23 i just ignored it Feb 26 20:30:02 worst though is when the camera starts spamming. on most devices that do that, I get so much logcat output that Android Studio gives up (10-20 lines of output _per frame_ on the device) Feb 26 20:31:00 skipping frames are we? Feb 26 20:41:44 for the camera output? no, it just logs _every_ state change of the underlying HAL. so you get a log line when it locks or unlocks a mutex, or fills buffers, or swaps buffers. Feb 26 20:42:18 eeyup Feb 26 20:42:20 it's pretty ludicrous, and I wish Google would consider it as a 'fail' on their conformance tests. Feb 26 20:48:22 ugh. has anyone used view tree observers safely + successfully? I'm unable to unsubscribe listeners in some cases. Feb 26 20:49:39 isnt it possible to make analytics only show latest app version? Feb 26 20:52:03 here's a question Feb 26 20:52:19 lagann: that seems like a statement to me Feb 26 20:52:26 so, like, is it possible to have an animation for a user tutorial to show them how to do something Feb 26 20:52:36 BUT also change the animation to have certain values Feb 26 20:52:50 for instance, we're trying to get the user to use the new document tree picker and i want to show an animation of it Feb 26 20:52:59 with the values they need to pick in the animation itself Feb 26 20:53:16 like, it's probably really difficult to impossible, but it doesn't hurt to ask Feb 26 20:55:18 lagann: you might have to describe that differently. what kind of values are we talking? Feb 26 20:55:44 (I'm not too likely to be able to help here, unfortunately, but I'm not sure what you're asking) Feb 26 20:57:13 just the name of the volume to pick Feb 26 20:57:24 groxx: do you know about the document chooser? Feb 26 20:58:03 vaguely. I'm under the impression though that it's not part of your app Feb 26 21:11:35 Hey, I created a boolean in onCreate() that is "false" by default, but is supposed to be changed to "true" when a function is called. Problem is the compiler wants me to declare the boolean as final, and I can't change it then - what do? Feb 26 21:13:36 It wants it final because it's being used in an anonymous class? Feb 26 21:14:17 final boolean newVar = oldVar Feb 26 21:14:23 use newVar in your anonymous class Feb 26 21:14:50 but, as you can tell, it won't be updated if your oldVar changes Feb 26 21:15:14 the real solution is to not use an anonymous class Feb 26 21:15:16 Make it a member variable Feb 26 21:16:29 Hi guy's i have an app where i am playing some media files on chromecast. if i want to display a widget on lock screen and notification bar for media controll similar to music players. what do i need to search for ? Feb 26 21:23:11 trevor-e: sorry I searched for anon classes but I don't get it. I pasted the code: http://pastebin.com/uxMyVM8X Feb 26 21:24:33 new Runnable() {} Feb 26 21:24:39 that's an anonymous class Feb 26 21:26:54 i dont get why the viewPager doesnt show the fragment, i think it comes from the layout. http://pastebin.com/t1B2L2ig. Feb 26 21:28:53 trevor-e: So I just need to do Runnable foo = new Runnable() {..}? Feb 26 21:30:26 threenuc: That wouldn't help here. Why is reactionTestOn a local variable and not a member variable? Feb 26 21:31:00 TacticalJoke: What is a good SVG library to use on Android? Feb 26 21:31:05 No idea. Feb 26 21:31:17 oh Feb 26 21:31:18 TacticalJoke, it's used in another method, checking if reactionTestOn is true Feb 26 21:31:23 You don't dev? Feb 26 21:32:27 threenuc: It looks like it should be a member variable, not a local variable, because you're mutating it in a callback. Feb 26 21:32:34 threenuc: Though if you want a better answer you might have to post more code. :) Feb 26 21:32:43 sure wait a sec Feb 26 21:32:47 that's true, but making it a member variable won't solve the anonymous class problem Feb 26 21:32:56 (By 'should' I mean 'should by design' and not just 'should in accordance with Java syntax', BTW.) Feb 26 21:33:03 Runnable foo = new Runnable() {..} is also an anonymous class Feb 26 21:33:38 s/syntax/semantics/ Feb 26 21:35:22 TacticalJoke, http://pastebin.com/RUsZyMkV, I changed reactionTestOn = false to = true in run() in runnable's constructor, fixed mistake basically :S Feb 26 21:35:50 Guys, how complex would it be to send msgs to a certain someone on whatsapp? Do they have apis? Feb 26 21:40:34 TacticalJoke: Can you use closures yet? Feb 26 21:42:41 One question, is there a way for me to see my whole activity inside Android Studio, i am using scrollView and all the elements are now bellow the Nexus 5 screen render ? Feb 26 21:47:02 threenuc: I think you'll have to use a member variable. Feb 26 21:47:38 Note that 'run' and 'onClick' are completely separate methods. They could run at any time, and they are not bound by the lifetime of 'onCreate'. Feb 26 21:48:03 Anonymous classes are just shorthand for inner classes. Feb 26 21:49:06 On a side note, "if(reactionTestOn == true)" isn't as idiomatic as "if (reactionTestOn)". Feb 26 21:49:13 TacticalJoke, yeah I know. So just private boolean on the biggest scope, right? Feb 26 21:49:14 anyone here got this to work for analytics? it just reports com.google.foo.SampleActivity instead of "Sample Activity" Sample Activity Feb 26 21:49:20 Yeah. Feb 26 21:49:41 TacticalJoke, looks like the compiler is having no problems now. Thanks c: Feb 26 21:49:47 i have this in onStart() -> GoogleAnalytics.getInstance(this).reportActivityStart(this); Feb 26 21:50:07 and true Feb 26 21:52:46 threenuc: FWIW, there are languages which allow you to mutate 'captured' variables, but even if that were possible in Java I think your 'onClick' override would *never* see anything but false for 'reactionTestOn'. Feb 26 21:53:03 Unless there is some language I'm unaware of that works differently from what I'm thinking. Feb 26 21:53:27 TacticalJoke, no it's working fine. I tested it just now Feb 26 21:53:41 Yeah, with a member variable it'll work fine. Feb 26 21:58:58 the viewPager doesnt show content, this is my code ,http://pastebin.com/XAKSNGig, http://pastebin.com/NKjeR4au , http://pastebin.com/r37upwJG . thnks in advance Feb 26 22:01:57 this is the layout http://pastebin.com/t1B2L2ig Feb 26 22:09:39 My app crashes with run out of memory error, what would be the best way to display large amount of images in the app ? Feb 26 22:10:27 Nightwalkerkg: Are you caching them Feb 26 22:10:41 yiati_: To be honest, i have no clue. Feb 26 22:11:52 Nightwalkerkg: Use Picasso http://square.github.io/picasso/ and it wouldn't hurt to familiarize yourself with http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Feb 26 22:12:57 Ok, thanks. Feb 26 22:15:44 Oi Peeps Feb 26 22:16:48 has anyone managed to get lock screen notifications working on pre-Lollipop devices? Feb 26 22:19:01 the viewPager doesnt show the content of the fragment,this is my code . does any one has any idea? http://pastebin.com/RycBukbF Feb 26 22:22:53 google ads is monumentally buggy, especially on older platforms Feb 26 22:26:37 though having 3rd party providers is likely part of the problem Feb 26 22:28:03 hey guys... I have this layout http://pastebin.com/Hjir1cvQ obviously with a scrollview and those two framelayouts have fragments in them...but the damn thing will not scroll.. plz tell me why if you can!? Feb 26 22:28:14 im tearing my hair out here.. everytime i use scrollview it does this Feb 26 22:29:53 MartialLaw: Are the contents in the ScrollView bigger than the screen? Feb 26 22:30:44 yiati yes they are Feb 26 22:30:45 MartialLaw: maybe change the relativelayout to wrap_content? I'm not sure if it's constraining itself to fit within the window bounds. Feb 26 22:30:56 ill try that hold on Feb 26 22:31:00 not certain that'll fix it though Feb 26 22:31:24 MartialLaw: Just a note, this won't help your problem but fill_parent is deprecated, use match_parent for the future. Feb 26 22:32:13 quinnjn: I forget, is there different behavior anywhere, or is it just a name change? Feb 26 22:32:15 groxx: nope still no scrolling Feb 26 22:32:37 groxx: literally just a name change Feb 26 22:32:59 groxx: they both map to the same int Feb 26 22:33:03 groxx: just name change, both are -1 Feb 26 22:33:35 match_parent is a bit more descriptive IMO, so I suppose it's an improvement, but wtf Feb 26 22:34:05 yep they did it so that developers would not get as confused as to what it's for Feb 26 22:34:11 http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#FILL_PARENT Feb 26 22:34:17 both map to -1 Feb 26 22:34:41 heh, yeah, that makes it pretty clear Feb 26 22:36:50 Is it bad practice to put composed network requests related to a model, in the model? Feb 26 22:38:05 I just want somewhere nice to put it, that's not in the Fragment/Activity, and self contained, and the Model makes sense as that place, but at the same time it seems bad to put anything not purely Model in a Model Feb 26 22:38:22 yiati: make it its own class Feb 26 22:38:24 yiati: personally I try to split data, storage, and networking as strongly as possible. Feb 26 22:38:29 in a static method Feb 26 22:38:37 then you can wrap it or access it wherever however you need Feb 26 22:38:57 but in practice making 'fat models' is awfully convenient and attractive, until it starts to bite you :) Feb 26 22:38:59 lasserix: Yeah I'm not sure what package that should belong to Feb 26 22:39:08 groxx: yep :P Feb 26 22:39:11 just put it in the root package until you find a place for it Feb 26 22:39:35 yiati: at worst, I'd say yolo whatever feels best now. Java is pretty easy to safely refactor if/when you decide to move it elsewhere. Feb 26 22:39:39 but you can put it in your model package, because in reality network call is serving up the model Feb 26 22:40:15 for instance, you might use a facade on a repository pattern in which case the repo is model/data and the network call is just an extension of that Feb 26 22:41:41 hmm okay I've seen the term facade used like this before, not too sure what it means Feb 26 22:43:46 Cool just read up on it, I guess I've used it before Feb 26 22:43:56 class Facade { convenientMethodX() { original.Y(); original.Z(); return original.A(); } } Feb 26 22:44:33 design patterney term for "wrap the thing in another thing" Feb 26 22:44:52 Sounds like a fancy name for a *SomethingSpecific*Util class Feb 26 22:46:54 yeah. you can get into flame wars about if something is a Facade vs Adapter, if you're into that sort of thing, but they're both just more specific terms for sub-types of "wrap the thing(s) in another thing" Feb 26 22:48:23 groxx: Yeah cool to know another term though Feb 26 22:52:25 Hello, I'm trying to check where's a null pointer exception, but in the backtrace it shows SourceFile, what does this means? Feb 26 22:53:06 my onCreate is somehow calling a function that it shouldn't be calling and is giving the function wacky data for an array which causes an out of bounds exception Feb 26 22:55:22 its driving me nuts because I cant figure out how its calling this function Feb 26 22:55:53 newbQ: it should be in the stacktrace? Feb 26 23:06:39 newbQ: I've had the debugger not give reliable results for a handful of situations. Don't necessarily trust what's going on there 100% of the time. Feb 26 23:07:00 ternaries for instance screw it up Feb 26 23:07:17 100% of the time Feb 26 23:09:18 screw up how? Feb 26 23:11:33 If you use the debugger and try to step over a ternary it will start appearing as if it proceeds on to lines that it definitely is not proceeding on to Feb 26 23:11:52 after hitting a ternary, and within the same scope as the ternary Feb 26 23:12:11 idk if there is a bug open for it, I should check Feb 26 23:12:23 huh. I've literally never seen that. Feb 26 23:12:36 I like ternaries :) Feb 26 23:13:01 do you mean like ternaries that are on multiple lines? Feb 26 23:13:22 mmm I believe it doesn't matter Feb 26 23:13:39 also, there's a bug in gradle plugin 1.0.1 that's probably unrelated, but maybe this was also fixed? Feb 26 23:13:43 Hate having to Alt-Enter to import?? Settings->Editor->Auto Import->Add unambiguous imports on the fly Feb 26 23:14:22 yep that's a nice thing to have on Feb 26 23:14:47 Just found it. My life is changed forever. Feb 26 23:15:01 MikeWallaceDev: http://loyalkng.com/wp-content/uploads/2010/07/The-Meaning-Of-Rainbows-Trailer-Yosemitebear-Mountain-Giant-Double-Rainbow.gif Feb 26 23:15:42 Not enough Nyan Cat Feb 26 23:18:16 If I'm setting onClickListeners to views in an adapter (use-case: recycler view list) is it OK to declare the methods that will be used by those listeners in the adapter class? Feb 26 23:19:32 do any of you know where Android stores GPS data? Feb 26 23:19:54 t0astt: it'll work fine, if that's the question Feb 26 23:20:14 i looked in /data/gps and i didn't find jack Feb 26 23:20:14 yeah, it'll work Feb 26 23:20:20 Yep that's what I was wondering Feb 26 23:20:26 i've also searched the entire filesystem Feb 26 23:20:41 and all i've found so far was /data/gps and various stuff in dalvik from applications Feb 26 23:21:14 I am setRotation on a textureview and resizing it, and the rotation works and the resizing kinda works, but it gets cropped, ie it loses its aspect ratio, anyone know hwy this might happen? Feb 26 23:22:06 lasserix: how are you resizing it? Feb 26 23:22:31 and what's the aspect ratio behavior, does it e.g. fill the view both before and after rotation, same content but squashy? Feb 26 23:22:51 so its 16:9 Feb 26 23:23:01 then i do toggle, change layoutparams, setRotation Feb 26 23:23:02 90 Feb 26 23:23:07 then it goes to like 4:3 Feb 26 23:23:24 but if i toggle it back by setRotation 0 and set layoutparams back to origin w/h it works fine Feb 26 23:23:32 ah, right, you said it gets cropped Feb 26 23:24:17 hm. code + screenshot might help. I've been battling with a few layers of matrix transforms on views lately, maybe it'll be something I can recognize Feb 26 23:30:31 groxx here Feb 26 23:30:42 http://i60.tinypic.com/2qa7qsy.png so that is fullscreen with issue Feb 26 23:30:52 http://tinypic.com/view.php?pic=302xw93&s=8#.VO-shbPF-Qw here is original mode, before rotating Feb 26 23:32:00 here's the code http://pastebin.com/b6DWe35a Feb 26 23:32:12 oops here is original http://i62.tinypic.com/302xw93.jpg Feb 26 23:34:28 question how can i scroll on a viewPager? Feb 26 23:35:03 lulz Feb 26 23:35:04 final Activity context Feb 26 23:35:06 ha Feb 26 23:37:35 Hello, is it possible to Picasso for images in @drawable ? Feb 26 23:37:43 yes Feb 26 23:38:05 i feel llike I need to tell the mediaplayer the dimensions or something Feb 26 23:39:23 how can i scroll with a viewPager? Feb 26 23:39:24 JakeWharton: Is it better to load them from drawable or upload them to some host/ftp/dropbox, what ever and download them ? Feb 26 23:39:56 john67_: Can you explane a bit more ? Feb 26 23:42:05 i have this layout, and i want to put a scrollview inside the layout, so that the viewPage can scroll but it doesnt work with the scrollview http://pastebin.com/djPeDxCZ Feb 26 23:43:25 Nightwalkerkg: i have this layout, and i want to put a scrollview inside the layout, so that the viewPage can scroll but it doesnt work with the scrollview http://pastebin.com/djPeDxCZ . how can i do so Feb 26 23:44:35 john67_: Are you trying to make it scroll from top to bottom or from left to right ? Feb 26 23:44:55 Nightwalkerkg: from top to bottow Feb 26 23:45:28 Use a scrollView and nest the ViewPager inside it. Feb 26 23:46:02 lasserix: yeah, since I assume you're using a mediaplayer, I think you need to inform it that the dimensions have changed. hunting that down now. Feb 26 23:48:43 Nightwalkerkg: let me try as u said Feb 26 23:49:02 argh Feb 26 23:49:20 so if i put a handler,postDelayed by 100 ms i see that it fits the eniter screen for a moment, then shrinks for some reason Feb 26 23:49:59 ahh i see Feb 26 23:50:13 so what's happening is its scaling it because its still using the portrait values Feb 26 23:50:26 somehow i need to trick it into believing the portrait values rotated are Feb 26 23:50:36 definitely a possibility, yeah :) probably you need to wait for a layout pass? Feb 26 23:50:52 no its doing fullscreen but then its using portrait Feb 26 23:50:57 so when i rotate it it crops it Feb 26 23:51:10 what ineed to do is trick it into believing portrait fullscreen is really landscape Feb 26 23:51:37 I'm not seeing anything specific that's ringing a bell, but try re-setting the surface after it's changed? might force a recalculation Feb 26 23:56:14 y Feb 26 23:56:19 yeah tried that Feb 26 23:56:26 going to try and override onmeasure of textureview Feb 26 23:58:34 damn Feb 26 23:58:36 so close! Feb 27 00:00:52 lasserix: it's not quite the same thing, but I think there's ExoPlayer sample code that's reasonably rich? might be interesting anyway. Feb 27 00:01:55 http://i61.tinypic.com/2epj2ag.png Feb 27 00:02:41 so close! Feb 27 00:02:59 hey all o/ Feb 27 00:03:30 anyone here ever used KeyboardView? Feb 27 00:04:23 ahh pivot Feb 27 00:05:22 Nightwalkerkg: it works, but i wanted to do something else , i mean between the Relative and the viewPager, http://pastebin.com/1dJ78suk Feb 27 00:10:04 john67_: You need to place the element you want to be able to scroll inside a scrollView, if you have more then one element, place a Layout inside the scrollView and then other elements inside that Layout. Feb 27 00:10:11 john67_: I hope you understand me. Feb 27 00:10:40 Nightwalkerkg: yeah Feb 27 00:18:50 scrollview never works does it? Feb 27 00:22:38 Nightwalkerg: don't use ScrollView because it was designed poorly by Google. Use a LinearLayout, it can scroll... place your layouts inside LinearLayout. ScrollView never ever worked and should be deprecated Feb 27 00:23:38 LinearLayout can scroll? Feb 27 00:24:02 I still find it hard to believe that the ONLY view sample is TextLinkfy :'( http://developer.android.com/samples/views.html Feb 27 00:26:43 Nightwalkerkg: the viewPager doesnt appear, which means that my layout is wrong, this is what i have http://pastebin.com/e7A6CaTa Feb 27 00:27:41 got it grox Feb 27 00:28:11 john67_: Try setting android:layout_width and android:layout_height to fill_parent. Feb 27 00:28:32 Nightwalkerkg: u mean to the scrollView? Feb 27 00:28:56 john67_: Yeah. Feb 27 00:30:08 lasserix: https://github.com/google/ExoPlayer might be it Feb 27 00:32:44 Nightwalkerkg: no, cant scroll Feb 27 00:34:57 groxx already figured it out Feb 27 00:35:58 without config changes! Feb 27 00:36:10 Nightwalkerkg: it doesnt work, cant scroll with android:layout_width and android:layout_height to fill_parent Feb 27 00:36:56 john67_: Not really sure now. :/ Feb 27 00:39:18 Nightwalkerkg: oki, thnks any way , will try to text some stuff to see if it will works Feb 27 00:39:56 john67_: Wait, i don't think the ViewPager should be inside the scrollView. Feb 27 00:40:50 Nightwalkerkg: then how can u scroll the whole page, from what i show u? Feb 27 00:41:33 john67_: You scroll inside the fragments, the viewPager is on the top. Feb 27 00:42:30 Whoa. I'm adding pinning to my app, it appears that it just might be a big pile of crap : https://code.google.com/p/android-developer-preview/issues/detail?id=1609 Feb 27 00:42:52 lasserix: wat. how u do dat? Feb 27 00:42:54 Nightwalkerkg: , yeah , i did that, it means that the ergonomie will the a bit weird, Feb 27 00:43:19 john67_: This is what i have for my viewPager : http://pastebin.com/S84niTw4 and the activity : http://pastebin.com/S84niTw4 Feb 27 00:43:26 wat wat? Feb 27 00:43:43 groxx: trick is override textureview, have isrotated flag, onmeasure swap w/h if is rotated and then make sure when rotated, you are centered in relativeparent matching parent Feb 27 00:44:09 l4x Feb 27 00:44:11 h4x Feb 27 00:44:11 Basicly what it does is just display the TabsTest class and then "stick" the two fragments called CareerInsight and Diskusija under it. Feb 27 00:44:31 lasserix: interesting. works tho? Feb 27 00:44:41 how do i show notification bar on api >= 16 after hiding it with getWindow.getDecorVie.setSystemUiVisibility Feb 27 00:44:42 Then i created two new activityes for CareerInsight and Diskusija with the scrollView inside them. Feb 27 00:44:46 groxx: yeah Feb 27 00:45:06 Nightwalkerkg: i see, i will try like u said tomorrow Feb 27 00:45:19 john67_: But i used an external library to do this. Feb 27 00:45:31 http://www.reddit.com/r/pics/comments/2x9zvi/president_obama_thanks_redditors_for_their_help/ Feb 27 00:45:36 Beacuse i wanted that Material design. Feb 27 00:46:00 It seems legit: Obama said thanks to redditors. Feb 27 00:46:12 Hi all, i resived a out of memory error on the google paly. and been reading on it a bit. i am using https://github.com/nostra13/Android-Universal-Image-Loader and i suspect that. the memory usage comes from using to much memory here. as i load a lot of images.... as far as i can tell i can use onTrimMemory and then when i get low/critical would it be good idea to then tell the image loader to clear memory ? Feb 27 00:46:28 Nightwalkerkg: i see, i dont know that library, which library? Feb 27 00:47:08 john67_: https://github.com/jpardogo/PagerSlidingTabStrip Feb 27 00:47:58 john67_: And you can use the scrollView inside every "Card" here and scroll it up and down, and the pager will scroll left to right. Feb 27 00:48:11 Nightwalkerkg: look nice, im not using a tab, , Feb 27 00:48:39 Oh, ok then. :P Feb 27 00:48:54 Sorry, i am new to android development. Still much to learn. Feb 27 00:49:55 Nightwalkerkg: im a newbie, too just 3weeks i started Feb 27 00:50:56 john67_: I started 4 days ago. xD I am a bigger newbie then you. xD Feb 27 00:51:07 fanno: it can be. if the OOM is rare though, there's a (small-ish) possibility that it's happening because the memory is getting fragmented over time. Bitmaps need contiguous memory space, so you can OOM with a 1mb picture even though you have like 50mb free. Feb 27 00:51:08 Nightwalkerkg: yeap, Feb 27 00:52:32 groxx: true but the image loader also Cache the images in memory (if i enable that i guess i could disable memory cache) ? Feb 27 00:53:31 Why is the ScrollView such a piece of shit? Feb 27 00:53:34 fanno: ah, if you're using two caches, you should probably just use one. it can make it hard to predict how much room it'll use. Feb 27 00:53:58 Nightwalkerkg: thnkx again Feb 27 00:54:00 groxx: two caches ? Feb 27 00:54:07 john67_: You are welcome. Feb 27 00:54:14 groxx: am i not what means i am using one ? Feb 27 00:55:09 good to go Feb 27 00:55:16 wish u all good night Feb 27 00:55:18 ++ Feb 27 00:55:23 Can someone tell me what i'd need to add to the manifest for this code: http://pastebin.com/vf8fFG8H Feb 27 00:56:22 groxx: Can you help me with this? You were helping yesterday but I couldn't find an ansewr. Feb 27 00:57:21 ClassyCritic: http://developer.android.com/guide/components/fundamentals.html#Manifest Feb 27 00:57:53 also http://developer.android.com/guide/components/activities.html#Declaring Feb 27 00:58:05 groxx: Thanks Feb 27 01:00:15 fanno: I'm not quite sure what you're asking, unfortunately. though if you're caching and you might need to clear memory when it gets low, onTrimMemory could work. I'm not sure how reliable that call is though. Feb 27 01:01:11 fanno UIL is known to be buggy,y ou might try switching to picasso Feb 27 01:01:13 groxx: it is a place to start =) at least. this kind of error is really hard to debug ! when i cant recreate it. Feb 27 01:01:23 fanno: or reducing the in memory cache size Feb 27 01:01:48 lasserix: what should i set it to ? or can i disable memory cache all togather ? Feb 27 01:02:00 you probably dont want to do that Feb 27 01:02:21 lasserix: you have a recomended size ? Feb 27 01:02:35 http://stackoverflow.com/questions/13855413/out-of-memory-error-using-universal-image-loader-and-images-getting-refreshed Feb 27 01:03:00 lasserix: is this the one you are talking about ? http://square.github.io/picasso/ Feb 27 01:03:06 yeah Feb 27 01:03:43 you can NOT call cacheInMemory and see if that works Feb 27 01:03:49 that way you can rule out if it is caching Feb 27 01:03:51 problem or not Feb 27 01:04:03 I dunno, I've used UIL pretty happily. Picasso is nicer / has noticeably better underlying code, but UIL is reasonably solid too. and I might have to fork Picasso to solve some of my requirements that UIL handled easily enough. Feb 27 01:04:09 it might not be UIL but could be something else, like you are using a viewpager that isn't properly GCing Feb 27 01:04:59 Hey groxx another quick question about same code. Feb 27 01:05:12 ClassyCritic: use the force Feb 27 01:05:19 you must learn to the use the force Feb 27 01:05:21 How would I replace the "address"/phone number with a contact name if i have one saved? Feb 27 01:05:25 Lol lasserix Feb 27 01:05:28 lasserix: i am using viewpager Feb 27 01:06:08 ClassyCritic: well you keep asking questions that you should be able to solve by googling Feb 27 01:06:10 ClassyCritic: for display, or in the database? you don't want to put a name there in the database. Feb 27 01:06:34 fanno which kind of view pager? Feb 27 01:06:41 For display. So basically, I have the number part working but if i have contact saved I want it to show contact Feb 27 01:07:05 lasserix: android.support.v4.view.ViewPager Feb 27 01:07:28 lasserix: i assume that was awnser to what you were asking ? Feb 27 01:07:32 fanno post your viewpager Feb 27 01:07:34 *adapter Feb 27 01:07:55 ClassyCritic: if you're lucky enough to be able to do "number.equals(address)", I'd just do that. if you need to be a bit more robust, unfortunately you'll start running into complications with the SMS database and phone number normalization. You may need to normalize things to E.164 format with something like libphonenumber, which is not a trivial task. Feb 27 01:08:19 you should also be using the SMS api Feb 27 01:08:35 Sup TacticalJoke Feb 27 01:08:43 Hey. Feb 27 01:08:50 Went to check out that XPS today Feb 27 01:09:26 Any good? Feb 27 01:09:39 Looks really nice Feb 27 01:09:46 8GB ram is not upgradeable Feb 27 01:10:24 ick not upgradeable computers. much disappoint :( Feb 27 01:10:27 lasserix: http://pastebin.com/kvY3nPkT Feb 27 01:10:30 I mean, I have one, but still disappoint. Feb 27 01:10:34 I guess that's common on laptops. Feb 27 01:10:56 fanno you should ovveride destroy item Feb 27 01:11:12 then get the bitmap out of the imageview and manually recycle it and see if that helps Feb 27 01:11:16 it's _becoming_ common. it used to be you could just buy SO-DIMM and odds were good your laptop would handle it. Feb 27 01:11:16 you can also do Feb 27 01:11:23 8GB is enough I think Feb 27 01:12:04 fanno you can also go viewPager.setOffscreenPageLimit(3) Feb 27 01:12:04 lasserix: do you have some more info on that ? Feb 27 01:12:16 just look how to destroy item viewpagerfragmentadapter Feb 27 01:12:21 what you'll do is find the imageview Feb 27 01:12:28 then try to recycle the bitmap Feb 27 01:12:35 16GB would be nice but 8GB doesn't sound bad to me. Then again, I'm on 4GB. Feb 27 01:12:50 fanno but on your viewpager try setOffscreenPageLimit(3) Feb 27 01:13:04 Right, and on linux I heard something about "Swap" Where you can use SDD space as ram if need be? Feb 27 01:13:09 lasserix: it is set to 3 limit Feb 27 01:13:16 i belive that is the default ? Feb 27 01:13:21 drose379: every desktop OS has that, yeah. Feb 27 01:13:33 Hows it work? Feb 27 01:13:39 I don't know how fast swapping is with SSDs, but with HDDs it's really slow. Feb 27 01:14:21 Hmm Feb 27 01:14:35 fanno destoryItem is something like destoryItem(...) { ImageView imageHoldingBitmap = container.findViewById(R.id.my_imageview); imageViewHoldingBitmap.getBitmap().recycle(); } and wrap that in try catch Feb 27 01:14:40 less-recently-used RAM gets written to disk to make room for more. and yes, it's very slow, because it's thousands-to-millions of times slower to access a random piece of memory (which is still a fraction of a second usually, but if you fill up too much it starts to thrash around and pretty much brings stuff to a standstill) Feb 27 01:15:04 So its not something to rely on really Feb 27 01:15:16 If you open loads of Google Chrome tabs and Android Studio and the emulator your system will start swapping. Feb 27 01:15:29 yeah, it's not infinite memory. it's an emergency backup so you don't simply kill things when you run out of room. Feb 27 01:15:30 And it'll get insanely slow. Feb 27 01:15:32 Ok I never really use the emulator Feb 27 01:15:46 I use AS and Firefox Feb 27 01:15:56 Firefox is way lighter than Google Chrome now. Feb 27 01:16:02 But what about VMs for java? Whatre those all about Feb 27 01:16:13 And yeah, thats why im using firefox right now Feb 27 01:16:22 Android Studio runs in a Java VM. Feb 27 01:16:42 The application does? Or the emulator runs Feb 27 01:17:04 The IDE does. I don't know what the emulator does, really. Feb 27 01:17:23 I really dont even know how a VM works Feb 27 01:17:54 just think of it as a hardware-translator. you write java code -> it gets compiled to something hardware-agnostic -> the VM interprets it and rewrites it to run on your hardwre. Feb 27 01:18:08 So AS is written in java? Feb 27 01:18:47 groxx: Is it possible to run two activities with one layout.xml? I thought it was... Feb 27 01:19:03 groxx: I can only get one or the other to work right now. Feb 27 01:19:11 Yeah, drose379. Feb 27 01:19:34 So when I compile my java code and run it in the terminal is that a VM? Feb 27 01:19:58 What do you run in the terminal? Feb 27 01:20:07 Just any java program Feb 27 01:20:17 You mean with javac? Feb 27 01:20:21 Yeah Feb 27 01:20:29 Oh, yeah. That's running on a Java VM. Feb 27 01:20:47 And those eat up some RAM? Feb 27 01:21:04 Yeah, a VM will have some overhead. Not sure how much, in Java's case. Feb 27 01:21:11 typically java runs a single VM that everything-Java uses, but the VM itself is small. Feb 27 01:21:24 (obviously there are exceptions to the shared VM) Feb 27 01:21:47 So I prob shouldnt be worried about it Feb 27 01:21:49 groxx: That's for the JVM, Dalvik is different Feb 27 01:21:53 it's a few megabytes, not much more. the application that it's running is probably responsible for a lot more. Feb 27 01:22:10 drose379: Yeah, Java's VM and also Android's VM are super-fast. Plus, technology has progressed a lot. Feb 27 01:22:27 Right, I think im gonna go for the 8 Feb 27 01:22:30 s/technology/hardware/ Feb 27 01:22:31 yeah, dalvik-on-android forks a "hot" vm for each app. shared memory + already warmed up + easy sandboxing. Feb 27 01:22:58 doesn't it just fork zygote? Feb 27 01:23:13 that's the pre-initialized VM, yeah Feb 27 01:23:39 possibly zygote is something super-specific beyond that, but basically. Feb 27 01:24:05 i thought zygote was the dalvik process right before loading and executing the activity's classes Feb 27 01:24:28 it is. it's forked, your code is loaded, and off it goes. Feb 27 01:24:49 so, pretty much like every unix daemon then :) Feb 27 01:24:52 groxx: Can you help? Feb 27 01:25:09 lasserix: i have added this to the adaptor... but nothing happens the log even never happens. ? Feb 27 01:25:13 groxx: I can't seem to get my two activities to run at the same time. Google isn't helping. Feb 27 01:25:22 ClassyCritic: ah, sorry, didn't notice. yeah, just setContentView(R.layout.whatever) Feb 27 01:25:22 i suspect tomcat does something similar but never looked closely at it Feb 27 01:25:25 At the same time? Feb 27 01:25:34 In both activities correct? Feb 27 01:25:41 ClassyCritic: Activities are, in general, a full screen thing. you don't actually run two at a time, that's what fragments are for. Feb 27 01:26:04 sounds like offscrenpagelimit > 3 Feb 27 01:26:09 and I've never tried the child-activities thing that you can apparently do, it seems too frightening to even look at. Feb 27 01:26:57 myke: yeah, servers tend to do that if they can't reuse instances for multiple requests. Feb 27 01:27:04 Nested *anything* scares me. :D Feb 27 01:27:11 views D: D: D: Feb 27 01:27:59 i'm a noob so i still have no idea what a servlet is. presumably a sandboxed server-side applet with preloaded shared classes maybe Feb 27 01:28:47 myke: That's not what servlets are. A simple google would answer that question instead of making wild guesses Feb 27 01:29:07 lasserix: hmm i have also tried setting the limited to 3 and to 1 Feb 27 01:29:10 but wild guesses are fun! Feb 27 01:29:14 lasserix: still nothing Feb 27 01:29:27 I'm so amazed at how terrible ScrollView is. It should have never been released Feb 27 01:29:39 Thanks Google for putting out crappy software Feb 27 01:30:04 MartialLaw: ScrollView powers a lot of applications that scroll just fine, maybe the problem is how you use it? Feb 27 01:31:55 groxx: fragment still isn't showing up Feb 27 01:32:27 I have my main activity with a couple of text fields and a button. Fragment contains just a listview with recent messages. Feb 27 01:33:27 ClassyCritic: It's kinda hard to help with such little info. Feb 27 01:33:38 TacticalJoke: What info would you like? Feb 27 01:33:43 Which files? Feb 27 01:33:45 What precisely are you trying? Feb 27 01:34:28 So I'm making a texting app. I have a main activity where you can enter a phone number and a message. This works fine and the send button sends this. Feb 27 01:34:33 http://developer.android.com/training/basics/fragments/index.html Feb 27 01:34:42 I tried to create a fragment with a listview that displayed recent sms messages Feb 27 01:34:47 Only one or the other can show up Feb 27 01:45:01 how would you guys recommend connecting node.js to android? Feb 27 01:48:28 expose an API, consume it on the client Feb 27 01:51:09 via the internet. Feb 27 01:52:39 also, optionally, the cloud. Feb 27 01:55:51 what plugins do you use with android studio? Feb 27 02:03:01 seanlabs CVS plugin ftw ! Feb 27 02:03:08 jk Feb 27 02:03:24 So I have a db filled with several Strings, ints, and ArrayList that are all condensed into one object and put into an arrayList. Currently I access the db once when the app is opened, and attempt to flush, and save all the data when the app closes. Is this okay form? Feb 27 02:03:50 Should I flush and save onResume(), onPause(), and onDestroy() or is that over doing it? Feb 27 02:04:49 if it's a sqlite db, it'll flush itself. by the time .insert has returned, it's on disk. Feb 27 02:07:10 seanlabs: ideavim, nothing else non-default personally. Feb 27 02:09:20 groxx: i know that, but is that the most efficent way of doing things (accessing once on app start, and saving once on quit) Feb 27 02:09:32 im really inexperienced with db's in general Feb 27 02:10:01 \\ Feb 27 02:10:01 if it's sqlite, you don't have much of an option. and you probably don't want anything different, since it's both fast and safe. Feb 27 02:10:41 otherwise you could .insert something, and come back later to find it never happened. it's extremely unlikely that you _actually_ want to lose random bits of data. Feb 27 02:11:31 cool thanks, and finally on what state should I save. Right now I have it set to only the MainActivity's onDestroy(), but I am realizing this might now be enough. How often should I do it? Feb 27 02:11:39 every method's onDestroy? Feb 27 02:11:50 ^I mean activity Feb 27 02:12:06 what's the data you're trying to save? Feb 27 02:13:17 Well in my app I have a class called schoolClass that is basicly a high school class that holds a String name, int period, and an ArrayList (Assignments being homeworks) Feb 27 02:13:32 groxx there is a comment here, wondered if you knew what they were talking about "So if a small developer finds a good keyword for his app it will be quickly pulled down if someone pays for an ad on this keyword..." Feb 27 02:13:42 the sqlLite holds the ArrayList as a gson string Feb 27 02:14:57 g00s: I'm going to guess that's referring to the pending in-Play ads? it probably will make juicy keywords more contested, yeah. Feb 27 02:15:35 DadFoundMy: probably whenever something changes? so not as they type, but whenever they 'finish' setting up an assignment. it should be fast. Feb 27 02:16:07 groxx: That isn't too slow. I have no relative idea to how slow/fast a db access is :D Feb 27 02:16:25 that first sentence is a question btw :D Feb 27 02:16:41 DadFoundMy: generally, you won't notice. until you're dealing with quite a lot of data, everything is fast. Feb 27 02:16:57 groxx: cool, thanks for the help Feb 27 02:17:01 but as usual, the answer to "is it fast" is "try it and see. if slow, profile it." Feb 27 02:18:43 DadFoundMy: if you are trying to run prefix matching on text in a db Feb 27 02:18:54 lasserix: what's that? Feb 27 02:18:56 its a little slow, but fast enough to typically work as long as you have < 10k entries Feb 27 02:19:11 input -> a output: apple anders algebra Feb 27 02:19:18 input -> ap output: apple Feb 27 02:19:20 etc Feb 27 02:19:27 im sure all the entries will be <10k. its just an agendabook Feb 27 02:19:30 TacticalJoke you there Feb 27 02:19:32 but you can do indexing Feb 27 02:19:46 and ther eis a way to configure the datbase for text searching that makes it also faster Feb 27 02:19:50 lasserix: I'm not sure why you think DadFoundMy is planning on doing searching? Feb 27 02:20:04 oh thought that's what you guys were talking about Feb 27 02:20:14 nahh just simply saving/accessing Feb 27 02:20:20 DadFoundMy: make sure you use transactions, makes db things 10x faster Feb 27 02:20:44 lasserix: again, whats that. I could be doing it and have no idea haha Feb 27 02:20:56 DadFoundMy: google it, 'android db transaction' Feb 27 02:21:01 *sqlite transaction Feb 27 02:21:25 groxx yeah, in-play ads - but how can a keyword be contested? i just don't get it Feb 27 02:21:46 shmooz you order the new XPS yet? Feb 27 02:22:02 if you do multiple inserts, each insert is implicitly a "transaction", and stuff needs to be written to disk in its final location by the time it completes. If you start an explicit transaction, it can do things more efficiently. e.g. if you insert 100 things, it'll be something like 50x faster (or better) in many cases if you use a single transaction. Feb 27 02:22:23 oo looks like im not using it. Maybe once i get the app working 100% i will add that Feb 27 02:22:39 right now I have basic functionality, Im just adding some things and cleaning it up Feb 27 02:22:48 this is my first app Feb 27 02:22:51 Whats the app do Feb 27 02:22:55 DadFoundMy: you just wrap your loop insert with setStartTransaction, setTransactionSuccessful Feb 27 02:23:51 drose379: its just a pretty basic agenda book with a tiny twist. It let's you take a picture and will automaticly sort the picture by time into a class, for example math Feb 27 02:24:11 its useful because a lot of students now a days just take a pciture of the homework board, instead of writing stuff down Feb 27 02:24:54 other than d.android, can someone suggest a good reference / howto on learning how to properly use the android device monitor? Feb 27 02:25:29 Rescue9: I'm not sure there's anything particularly complex in there. mash buttons, see what happens, google what you don't understand? Feb 27 02:26:09 * Rescue9 + mash buttons = epic fail on most occasions Feb 27 02:26:46 do you guys thing google will put ads in the dev tools soon ? Feb 27 02:26:52 lol, jk Feb 27 02:27:00 If I am creating a dialog from a DialogFragment Feb 27 02:27:13 Should the new dialog be created inside the existing DialogFragment Feb 27 02:27:22 Or should a new dialogFragment be created Feb 27 02:29:11 Are too many fragments bad? Feb 27 02:30:10 question Feb 27 02:30:21 how can I make a deep link work if there's a paid/free version (two package names) Feb 27 02:30:59 lasserix: =(((( now i get java.lang.RuntimeException: Canvas: trying to use a recycled bitmap because i recycle the images Feb 27 02:31:09 lasserix: well bitmaps Feb 27 02:32:14 yeah well you shouldn't be recycling bitmaps you are still using Feb 27 02:32:31 lasserix: http://pastebin.com/Tgztev7a is what i use incase you wanna see it. Feb 27 02:32:43 lasserix: how can i determin this ? Feb 27 02:33:06 where is the exception occuring? Feb 27 02:33:12 matt_j: don't use your full package name in the intent filter? use e.g. com.site.app.deep://whatever/yo instead of .app.free / .app.paid Feb 27 02:33:15 the images are dynamic loaded and i don't know where what images are displayed the come from a tv channel's api Feb 27 02:33:15 swap setImageBitmap and recycle recycle should come after Feb 27 02:33:36 anyways good luck i gota go Feb 27 02:33:42 lasserix: it happens when i swipe left/right at "random locations" depending on what is showed from the tv api Feb 27 02:34:03 thanks for info. :-D Feb 27 02:38:18 Can a DialogFragment be created from within another DialogFragment? Feb 27 02:46:46 drose379 possibly Feb 27 02:47:53 is there a way to restrict edittext 'paste' events to only plain text? apparently I can copy/paste HTML into random textviews, and it's there with bolds and links and whatnot, and that breaks like everything. Feb 27 02:50:58 probably you have tried different input types Feb 27 02:51:51 Hey If I create a DialogFragment from a DialogFragment, if I call getActivity() from the second Fragment, will the context be the first dialog fragment? Or the activity that called the first one? Feb 27 02:52:04 the activity Feb 27 02:52:06 not yet. but I don't see any that would be relevant to this, as none refer to anything rich-text vs plain Feb 27 02:52:15 it happens in pretty much any app too Feb 27 02:52:23 Thanks napster Feb 27 02:53:12 then may be use a textwatcher? Feb 27 02:55:02 I might have to :\ though it's kinda crazy if that's the only option :\ Feb 27 02:55:35 I tried with one of my app, it doesn't carry in the links or bolds Feb 27 02:57:30 napster: what OS version? 5.0 seems to allow me anywhere Feb 27 02:57:48 lol, including the search field in google play Feb 27 02:58:03 try on google chrome URL edittext Feb 27 02:58:29 that does plaintext it, yeah. interesting Feb 27 02:58:47 hm. and it caught the alt-text for one of the images... Feb 27 02:58:56 may be they are filtering, I don't know for sure Feb 27 02:59:10 ugh. I hope I don't have to do this for every edittext ever... **** ENDING LOGGING AT Fri Feb 27 02:59:58 2015