**** BEGIN LOGGING AT Tue Jan 27 02:59:58 2015 Jan 27 03:00:28 is it possible to assign a tag to a fragment part of a FragmentStatePagerAdapter (a tab)? Jan 27 03:00:47 MikeWallaceDev, but in android we only have oval Jan 27 03:01:20 so I need to find the max width so I can set both width and height to the same value Jan 27 03:06:06 Having a hard time changing the color of the Menu from my toolbar Jan 27 03:06:15 I have the toolbar set to a theme Jan 27 03:06:31 is there a attribute that I give to that style for the menu item text colors? Jan 27 03:08:54 drose379: http://developer.android.com/training/material/theme.html#StatusBar Jan 27 03:09:05 Thank you Jan 27 03:27:20 That moment when you find an awesome solution to a mind-bending problem. Jan 27 03:27:49 I just had a full day of "OMG I HATE FRAGMENTS" :| ugh. Jan 27 03:28:40 seriously considering trying to convince work to switch to custom views instead of fragments. Jan 27 03:28:59 They're not good for your fragmental health. Jan 27 03:29:22 are there any real downsides to the custom-views-as-fragments approach? or surprises? Jan 27 03:29:26 Is it a lifecycle-related thing? Jan 27 03:29:41 The issues, I mean. Jan 27 03:29:46 it's an asynchronous-everything-related thing. Jan 27 03:30:15 so it works 99% of the time, but when it doesn't, there's no useful stacktrace to find the cause. Jan 27 03:30:31 and then it's only reproducible on one or two devices out of the dozen at the office Jan 27 03:30:37 Damn. Jan 27 03:30:53 but it takes _hours_ to find and reproduce it well enough to actually figure out wtf is happening Jan 27 03:32:15 e.g. to reproduce this one, we had to find a 4.x device, with a recent-app-switcher that stops the app, turn on "don't keep activities", and then mash the recent button repeatedly for like a minute. finding that magic combo was hard. Jan 27 03:37:16 Sounds fun. ;| Jan 27 03:51:12 So coming from a web development background, the usual way of interacting with a table row/list item is attaching an ID (from a database table) to it, then pulling that ID off and pulling information off a database using that ID. Apparently this isn't how you do things in Android with a ListView... Can anyone explain? Jan 27 03:53:14 t0astt: You use an adapter Jan 27 03:53:29 http://developer.android.com/guide/topics/ui/layout/listview.html Jan 27 03:53:46 http://developer.android.com/guide/topics/ui/declaring-layout.html#AdapterViews Jan 27 03:55:36 Alright. Because basically what I'm doing is calling my RESTful API, returning a JSON object from that (example would be a person, having an ID, name, gender, etc.) and then putting that persons name on the ListView item, but having a click on that item pull more information on them from my database using that ID Jan 27 03:56:25 Okay, what part are you stuck on Jan 27 04:01:25 I haven't tried it yet, well kind of, but I failed miserably just trying to use an array Jan 27 04:01:39 Basically I couldn't wrap my head around how it worked with Android vs web dev Jan 27 04:04:54 then try not to use web knowledge when reading the Android docs :) Jan 27 04:06:02 t0astt: Start slowly, populate that listview with fake data, in memory. No network. Once you have that done, get to the network part (but there are gotchas there) Jan 27 04:06:51 I would not recommend kicking off networking in the adapter btw Jan 27 04:07:23 That's what I was referring to with "there are gotchas", hence my advice to start without the network Jan 27 04:09:56 There are definetely more gotchas than just that though Jan 27 04:10:37 Hence "gotchas" and not "gotcha" Jan 27 04:11:04 interesting that they're called gotchas when it's not a problem unique to the platform Jan 27 04:11:08 but with UI programming in general Jan 27 04:11:15 yep Jan 27 04:11:20 ~edt Jan 27 04:11:25 ah right no javabot here Jan 27 04:11:37 no one wants javabot here :p Jan 27 04:11:54 We have Androids Jan 27 04:12:58 and web dev is more or less the same Jan 27 04:13:06 when you use xmlhttprequest, you don't call it in synchronous mode Jan 27 04:13:19 not from anywhere that's not a workerthread Jan 27 04:13:48 that's the other problem with web dev, people use so many frameworks, they don't know how the underlying stuff works Jan 27 04:14:07 most users of jquery wouldn't be able to write any javascript without it Jan 27 04:16:55 quick question: ViewGroup itself isn't set up very well to support rotating it's children based on position on the screen, is it? Jan 27 04:17:21 When Android Studio has a 'fatal error' and the user clicks "Report to Google", does that auto-create an issue on an issue tracker somewhere? Jan 27 04:17:57 t0astt: you certainly could do things that way. e.g. making a list of [id or data] and using that as the base of your listview would work fine. similar to web though, you probably want to: batch requests, render something fake that you can fill in, and handle updates/etc if necessary. Jan 27 04:18:56 t0astt: listview will give you some grief about changing the _type_ of view from stub to full data, but that can be worked around, and you can always just notifyDataSetChanged to switch types as you load. Jan 27 04:19:49 herriojr: depends. generally the entire view hierarchy will be destroyed and recreated when you rotate. Jan 27 04:19:52 TacticalJoke: probably something not visible to you Jan 27 04:20:03 groxx: no, that's not what I mean Jan 27 04:20:17 groxx: what I mean is, based on the position of the child, I wanted it rotated a certain angle Jan 27 04:20:31 aah, that makes sense in retrospect :) Jan 27 04:21:27 if it's static, I think you can apply rotations in XML. otherwise no, you'll have to do it yourself, like pretty much anything dynamic Jan 27 04:21:39 groxx: basically, I want to cause an effect of the list items coming around a side of a circle as you scroll Jan 27 04:22:06 would this be where each row "rotates" into view as it appears? Jan 27 04:22:21 groxx: no Jan 27 04:22:34 herriojr: think if it as the wheel of fortune Jan 27 04:22:38 ... Jan 27 04:22:39 tired Jan 27 04:22:42 :) np Jan 27 04:23:00 so basically, anything not in the center will be rotated a bit Jan 27 04:23:24 this might work for you: http://developer.sonymobile.com/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/ Jan 27 04:23:42 one of the stages they work through to the final one is pretty much wheel-of-fortune-y Jan 27 04:24:15 if you search for "3d list" you can find all three parts Jan 27 04:24:18 I'm trying to rotate this around the z axis, not around the x axis Jan 27 04:24:34 yep. that's one of the stages :) Jan 27 04:24:58 hmm, maybe I missed that a while back when I saw this (over a couple years ago) Jan 27 04:25:01 looks like it's in part 2: http://developer.sonymobile.com/2010/05/31/android-tutorial-making-your-own-3d-list-part-2/ Jan 27 04:25:50 it's pretty far from a 1:1 match with what you're describing, but it seems like it could be adapted. Jan 27 04:26:20 ah, nvm, yeah, that will work Jan 27 04:26:34 drawChild…way too tired i guess Jan 27 04:26:43 otherwise I think this tutorial covers a spinning pie chart. custom drawing might be the way to go, especially if adapting seems like it's not going to be easy: http://developer.android.com/training/custom-views/making-interactive.html Jan 27 04:27:06 groxx: ok, great: now just adapting this to RecyclerView :P Jan 27 04:27:11 haha Jan 27 04:27:12 groxx: thanks, I think I got it from here Jan 27 04:27:35 good luck :) Jan 27 04:27:38 groxx: yeah, last time I had looked at this tutorial, there was only a part 1 :P Jan 27 04:27:52 quite a while ago then :) I just finished reading it a couple days ago Jan 27 04:28:15 annoying that they don't link to the other parts :| Jan 27 04:28:56 I did android dev for about 5 or 6 years and then spent the last two (regrettably) learning server-side dev Jan 27 04:29:12 unfortunately, 2 years is a good length for forgetting a lot Jan 27 04:29:49 herriojr why the regrets ? Jan 27 04:29:57 How long ago did you re-start? Jan 27 04:30:12 TacticalJoke: about a week ago Jan 27 04:30:32 g00s: well, I first started on server-side to try and repair all the problems at one company Jan 27 04:30:35 Ah. It'll get easier. Jan 27 04:30:38 learning server side is a very good thing, very few people know both mobile and back end, your value went up Jan 27 04:30:59 deuteros__: that's what I thought — didn't turn out that way Jan 27 04:31:15 yeah, though it doesn't get exercised much unless you're at a pretty small company. then specialization is almost better. Jan 27 04:31:19 herriojr: Still makes you more valuable than a mobile developer who never touched a server Jan 27 04:32:15 deuteros__: the hard part was getting back into mobile — lots of interviews are recency tests, even after I'd say I hadn't done it for 2 years :P Jan 27 04:32:40 I believe it Jan 27 04:32:49 It's like riding a bicycle, it just takes a few days to catch up instead of being instant Jan 27 04:33:03 seems these days many popular apps in Play have multiple devs; its getting complicated enough to demand that Jan 27 04:33:25 at least polished commercial ones Jan 27 04:36:22 g00s: I don't disagree — I was just saying that what I thought would make me more valuable made it more difficult to get back into doing mobile Jan 27 04:37:45 Those "Here's how a complete noob can build an Android app" posts kinda bother me. They're so unrealistic. Jan 27 04:38:20 "Never programmed before? No worries; let me explain to you how Fragments work." Jan 27 04:38:28 haha Jan 27 04:38:39 So in my XML I have an onClick and am calling a method Jan 27 04:38:49 and its saying method has incorrect signature? Jan 27 04:38:56 I still remember learning the concept of an array Jan 27 04:38:58 Does it have a View parameter? Jan 27 04:39:03 back in like.. 6th grade or something Jan 27 04:39:15 TacticalJoke: wait till you start seeing that a lot of stackoverflow answers are actually not super great :P Maybe they're better now-a-days Jan 27 04:39:33 Yeah, I've seen countless bad ones that were upvoted and accepted as the answer. Jan 27 04:39:45 but yeah, it's hard for me to imagine trying to learn programming from scratch now Jan 27 04:39:51 they're not much better, I suspect Jan 27 04:39:51 Oh TacticalJoke does the method need to be passed a View? Jan 27 04:39:58 A common bad one is the "Don't worry about onSaveInstanceState; just add this to your AndroidManifest.xml!" Jan 27 04:40:04 drose379: it does, yeah Jan 27 04:40:04 +71 Jan 27 04:40:18 groxx and yiati: thanks for the help. Sorry I didn't respond right away - I was getting user input about features for my app Jan 27 04:40:31 Can I even use onClick in a LinearLayout? Jan 27 04:40:43 JesusFreke i wonder if the environment years ago was more amenable to learning tech. things were simpler and more open. more general purpose computing Jan 27 04:40:48 g00s: what happened to everyone that used to be on here? You're one of the only names I remember from back in the day Jan 27 04:41:13 herriojr something called 'social cooling' happened Jan 27 04:41:34 Whats social cooling Jan 27 04:41:51 aka evaporative cooling / social dynamics Jan 27 04:42:31 its when the 1st tier of experts leave, the people below them don't learn more, they leave, the people below them ... Jan 27 04:42:56 so when ctate, romainguy, etc left, that was the beginning Jan 27 04:43:07 yeah, I was sad to see ctate gone Jan 27 04:43:09 Your saying no one can ever be a good programmer now? Jan 27 04:43:17 drose379 they were googlers Jan 27 04:43:26 oh wow Jan 27 04:43:28 drose379: it's the difference to knowing their thought process when they made it Jan 27 04:43:31 Whered they go Jan 27 04:43:40 drose379: they're still at google, just not on here Jan 27 04:43:49 Dont know why? Jan 27 04:43:50 sometimes, even tbray or reto meier would stop by Jan 27 04:43:51 g00s: yeah, maybe. Although when I first started, I didn't really know about open source or anything like that. e.g. I wanted to get into c programming, but I had no idea that there were free c compilers available Jan 27 04:44:10 Yeah, I remember buying VC++ as a teenager. Jan 27 04:44:11 I think that would be quite a bit more obvious these days Jan 27 04:44:16 I think it was VC++6 or 5 maybe. Jan 27 04:44:22 I was clueless about open source and so on. Jan 27 04:44:26 yea Jan 27 04:44:32 :) Jan 27 04:44:37 Also I kinda bought into the "Microsoft == good" mentality. Jan 27 04:44:49 'Good' as in 'suitable for development for the platform'. Jan 27 04:44:55 Yeah, I was heavily into microsoft for quite a while Jan 27 04:45:03 Did you go through a Linux phase? :D Jan 27 04:45:10 well, originally, they had some of the best dev tools Jan 27 04:45:13 i remember my commodore c4 coming with schematics :D Jan 27 04:45:17 *c64 Jan 27 04:45:19 I tried out linux a few times, but always wnet back to windows Jan 27 04:45:39 I think I abandoned Windows for about three years when going through a phase. Then came back to Windows because I missed Borland Delphi. Jan 27 04:45:40 I finally switched over to linux full time a bit after android was first released Jan 27 04:45:44 JesusFreke are you using windows now ? Jan 27 04:45:49 ah Jan 27 04:45:57 (And WINE was horrible.) Jan 27 04:45:59 nah, I can't stand windows any more :) Jan 27 04:46:13 I have a windows installation for gaming, of course :p Jan 27 04:46:16 I don't mind Windows nowadays. Jan 27 04:46:19 Windows 10 looks good. Jan 27 04:46:28 I always hated their command line Jan 27 04:46:29 i'm interested in windows 10 . i'd like to do a mobile and desktop counterpart so windows 10 looks good there Jan 27 04:46:50 Yeah, cmd.exe sucks. I don't like PowerShell much. Verbose. Jan 27 04:46:51 I heard their command line is better, but I haven't bothered to learn it Jan 27 04:46:59 windows is actually looking pretty good these days, you're right Jan 27 04:47:16 i'm glad they changed course on the start menu thing Jan 27 04:47:18 is mac os which i'm worried about :| Jan 27 04:47:30 I do miss c# though :/ Jan 27 04:47:32 Windows 10 sounds like what Windows 8 should've been. Jan 27 04:47:33 g00s: what about? Jan 27 04:47:42 I miss that too. It was a great language. Jan 27 04:47:50 One thing I don't miss is that Allman bracing style, though. :D Jan 27 04:47:56 heh Jan 27 04:48:21 herriojr yosemite has a reputation for being pretty buggy. and apple was slow to put out a .1 - still lots of bugs and they haven't put out .2 - i guess they are stretched too thin Jan 27 04:48:27 getting rid of ballmer was the best thing they've done Jan 27 04:48:41 g00s: I actually haven't had many issues with yosemite Jan 27 04:48:47 yeah i heard morale picked up considerably Levite Jan 27 04:48:51 Microsoft is looking interesting lately. Jan 27 04:49:03 Someone like Ballmer has to be mentally ill. Jan 27 04:49:05 TacticalJoke: they've always had great research Jan 27 04:49:12 From what I've read, he would throw chairs at employees and stuff. Jan 27 04:49:13 their guys just don't have any visual design chops, which limits them Jan 27 04:49:16 TacticalJoke: they were just bad about productizing it Jan 27 04:49:24 everything they produce is ugly, mostly Jan 27 04:49:33 Levite: their marketing sucks too Jan 27 04:50:03 I wonder whether they'll survive. Windows 10 could be a huge factor in their future. Jan 27 04:50:15 those holograph glasses things look pretty interesting Jan 27 04:50:19 as far as I've seen, that's about normal for osx. buggy for v0, v1 fixes most but there are still some glaring ones. time passes. major release N+1 occurs, "fixes all bugs!", people jump ship, realize they can't compile their 1-year-old iOS projects any more because XCode updated too. Jan 27 04:50:31 TacticalJoke: they have lots of money in the bank Jan 27 04:50:36 sounds like a fad. people don't like wearing things that make them look unattractive Jan 27 04:50:43 those glasses are super dorky Jan 27 04:50:44 JesusFreke yeah they do, i wonder what apis are available :D Jan 27 04:51:03 You wonder if a company that has tens of billions of dollars in the bank and a monopoly on an OS will survive? Jan 27 04:51:37 Levite: better than the rift :p Jan 27 04:51:41 worst case they become some enterprise company like IBM Jan 27 04:51:47 which doesn't stop me from using it! :p Jan 27 04:52:25 Levite: I dunno. headphones are dorky, but for some reason people are mad about Beats. Jan 27 04:52:30 most of IBM is IT services Jan 27 04:52:41 Levite: I thought they were marketing them for more company-type uses Jan 27 04:52:44 and with headphones, you still have to _look_ at people Jan 27 04:52:52 give me custom in-ears any day :D Jan 27 04:53:02 ^ that's on my list some day Jan 27 04:53:02 it just reminds me of the surface table thing they came out with. a super expensive flashy thing that the market doesn't really have a use for Jan 27 04:53:11 they're *so* nice. Jan 27 04:53:15 at the moment I have an Ultrasone that I'm extremely happy with Jan 27 04:53:29 apple finds a need and makes a produce for it. google and microsoft make products and try to force them upon consumers Jan 27 04:53:36 which is hit and miss Jan 27 04:53:55 well, also Apple's marketing is lightyears better Jan 27 04:54:08 meh, apple really doesn't do much traditional marketing Jan 27 04:54:12 all companies have hits and misses, including apple Jan 27 04:54:15 Developing for Windows 10 would probably be really nice. C#, .NET, etc. Jan 27 04:54:15 a few TV commercials and magazine spots here and there Jan 27 04:54:25 One binary to run on them all. Jan 27 04:54:26 apple's customer service is good Jan 27 04:54:29 and not screwed up by Dell and others, with their ridiculous variety of product lines and non-sequential numbers Jan 27 04:55:08 I heard that Dell is no longer recommended by the masses. Something about their customer service being awful now? Jan 27 04:55:28 nobody has _any idea_ if the Dell Venue 8 7000 is a fake product to make fun of their naming schemes, or a laptop, or a tablet, or a phone, or a washing machine. Jan 27 04:55:53 It's probably a VCR Jan 27 04:55:56 microsoft still doesn't have any compelling mobile products so they're screwed in the long run Jan 27 04:56:11 with surface they're backtracking to the "it's a laptop" line Jan 27 04:56:27 and they apparently don't have any interest in making a good app store Jan 27 04:56:36 it's garbage and anyone who says otherwise is lying Jan 27 04:56:39 maybe the headset is an attempt to leapfrog "mobile" (as in phones) entirely? Jan 27 04:56:40 I'm hoping the desktop doesn't begin to be considered a specialized device. My tablet is so lame. I almost never use it. Jan 27 04:56:57 Levite: "it" being the app store? it's terrifyingly awful Jan 27 04:57:00 yeah Jan 27 04:57:06 the windows app store/ windows phone app store Jan 27 04:57:19 they're goal is to unify the two but with crappy content it doesn't matter Jan 27 04:57:40 Quick question, when i call onClick and give a method on a ImageView lets say, and I pass that method a view Jan 27 04:57:50 Will that view be the element that had onClick, the ImageVIew? Jan 27 04:57:54 I briefly considered trying to make some windows phone apps. then I ran screaming for the hills when I saw it was inundated by supremely-shitty auto-generated apps. Jan 27 04:57:54 i have an app that's android/ios and making a WP version would just be a learning exercise, there's literally no money in it Jan 27 04:58:20 Levite whats that Jan 27 04:58:48 it's not a public facing app, it's a productivity app for a specific group of workers Jan 27 04:58:49 Their idea of using HTML, CSS, and JavaScript to make phone apps... give me a break. Jan 27 04:59:03 Cool Levite Jan 27 04:59:04 drose379: you don't call onClick, the UI does when it detects a click. and it'll pass the view that was clicked into your onClick Jan 27 04:59:14 Got it groxx Jan 27 04:59:21 Imagine writing a huge project in JavaScript. lol Jan 27 04:59:29 so it is perfectly fine to registerForContextMenu(thatView) Jan 27 04:59:34 TacticalJoke: lots of people do now-a-days Jan 27 04:59:54 drose379: I haven't used context menus basically at all, actually. but probably :) Jan 27 04:59:57 TacticalJoke: look up single-page website architectures Jan 27 05:00:04 Thanks groxx Jan 27 05:00:14 TacticalJoke: and then NEVER BUILD a single-page website. Jan 27 05:00:24 Yeah, it's used on the web, but I mean for, say, a mobile app. Jan 27 05:00:26 if windows phone OS were better it would have done better, but honestly it's not that good Jan 27 05:00:40 shallow people praise it's unique design but the usability just isn't there Jan 27 05:00:40 groxx: actually, not all are bad Jan 27 05:00:52 JS isn't too bad. at least things like TypeScript are coming along too, which help with dev. Jan 27 05:00:54 tiles are great for product screenshots but they don't make a pleasant user experience Jan 27 05:01:12 herriojr: yeah, it's just that there are a lot of things that nobody does, that's necessary to work _with_ the browser, rather than fight against it. Jan 27 05:01:38 groxx: yeah, I wouldn't know — I don't do front-end js Jan 27 05:01:52 almost across the board, single-page-web-apps have been noticeably more annoying to use than even a crappy normal website Jan 27 05:01:55 I've just grokked at code previous co-workers had done Jan 27 05:02:00 they need to just make a really rock solid windows 10 and rock solid iOS and Android apps for their services like Xbox and Workd and OneNote or whatever Jan 27 05:02:13 they've lost the mobile platform game already, but I think think know that, at least Jan 27 05:02:38 Levite: yeah, they lost the mobile platform back when people would use Opera because IE sucked so much on windows phone Jan 27 05:02:44 unfortunately for them they can't really back out of it at this point Jan 27 05:03:20 creating a platform is kind of like a contract with people and they'd draw a lot of ire by shuttering WP Jan 27 05:03:39 what if they came out with a kick-ass IE for Android? couldn't do that on iOS... Jan 27 05:04:16 nah, I'm kidding :) Jan 27 05:04:41 Leeds: did you ever see that AMA on reddit by the IE devs…they basically said, yeah, we know IE has sucked... Jan 27 05:04:53 nope Jan 27 05:06:32 i don't even know why they made IE Jan 27 05:06:45 I guess because they were so embarrassed for missing the interent revolution they felt they had to do something Jan 27 05:06:52 anywho, goodnight all Jan 27 05:07:15 the reason they made IE, was to make the difference between desktop and web "invisible". thats why originally it was tightly coupled to the OS Jan 27 05:07:17 if chrome and FF were around in the late 90s maybe they wouldn't have Jan 27 05:07:55 yeah Jan 27 05:07:58 the original goal, was so that you didn't know if you were using a desktop app or web app Jan 27 05:08:02 i remember the live desktop or whatever in windows 98 Jan 27 05:08:17 they wanted to be the provider of information and ads Jan 27 05:08:19 like AOL or something Jan 27 05:08:40 probably why they did MSNBC too Jan 27 05:09:00 not even ads, really Jan 27 05:09:11 just power I guess Jan 27 05:09:27 Another question guys Jan 27 05:09:50 registerForContextMenu only inflates the menu after a long hold click Jan 27 05:09:58 * g00s loves watching snow plows going down the road with sparks flying everywhere Jan 27 05:10:12 I want to inflate the menu after a regular click, is there a method for that Jan 27 05:11:01 i think MS has a good vision for their future technology. basically its documented in "brave nui world" . when i saw the advertisement for their new google, i thought man, they are now at stage 3 Jan 27 05:11:24 I love going out unicycling in shorts.. in january :p Jan 27 05:11:29 of course, people come and go, leadership changes direction, etc Jan 27 05:11:45 JesusFreke you need a snow plow on your unicycle Jan 27 05:11:48 they're hungry now and that's a good thing Jan 27 05:11:56 g00s: I like the way you think Jan 27 05:12:13 hunger > hubris Jan 27 05:14:06 you have a weird lexical sorter :) Jan 27 05:14:17 comparator* Jan 27 05:14:36 lol Jan 27 05:14:51 err, nevermind. that's actually true lexically Jan 27 05:15:00 :p Jan 27 05:15:24 depends on the language i suppose Jan 27 05:16:03 yeah, that darn turkish i Jan 27 05:28:02 So I'm finally getting to reading the doc for an Adapter and AdapterView. So basically my data would get passed to the AdapterView which is the frontend, and then user interaction on the AdapterView gets passed back to the Adapter for handling the data? Jan 27 05:43:29 Hi. Is there any way to track individual uninstalls? Jan 27 05:43:36 Is there some event or something that fires? Jan 27 05:45:57 nope. other apps can, but not the one uninstalled. Jan 27 05:46:50 basically, the other apps are like https://www.youtube.com/watch?v=rX7wtNOkuHo Jan 27 05:47:20 I've heard my phone do that, yeah Jan 27 05:48:40 t0astt: adapter holds the data, adapterview queries it as needed to respond to display/touch. and adapterview has other listeners, like onItemClicked Jan 27 05:50:16 is there any way i can use google play? Jan 27 05:50:25 i know they track aggregate uninstalls Jan 27 05:50:35 I think that's it Jan 27 05:50:46 that's kind of bullshit Jan 27 05:51:14 so the next best thing is sending a push that activates a call home, i guess? Jan 27 05:51:48 Yeah you can register a gcm push and have the app acknowledge it Jan 27 05:52:02 but that will only work if the user opens their phone Jan 27 05:52:16 so only a probabilistic uninstall Jan 27 05:52:58 i'm trying to track user revenue by lifetime Jan 27 05:53:05 and engagement Jan 27 05:53:07 and so on Jan 27 05:53:15 i hate all this voodoo Jan 27 05:54:13 seems a lot like real life. someone stops going to your store, you can only infer it (unless they leave a review) Jan 27 05:55:39 mm true Jan 27 06:15:33 Hey groxx, so I'd want to use an arrayadapter for my list view? Jan 27 06:22:28 ArrayAdapter is a good place to start. Eventually, you might want to use BaseAdapter, which is a little more complex but also more powerful. Jan 27 06:22:56 this looks very interesting http://www.amazon.com/Understanding-Context-Environment-Information-Architecture-ebook/dp/B00QJDYKM6 Jan 27 06:23:29 one of the defining characteristics of mobile is context, so this should be a mobile book too ;) Jan 27 06:42:20 Another question Jan 27 06:42:49 I know there's an install broadcast receiver although I can't get that SHIT to work Jan 27 06:42:57 from google play Jan 27 06:43:14 So, separately, is there any meta data like install date somewhere? Jan 27 06:43:30 or do i have to manage that myself Jan 27 06:52:07 It's trivial to store a timestamp the first time an app calls home Jan 27 06:53:04 just wondering Jan 27 06:58:46 The world is under attack. Facebook and Instagram are down :) Jan 27 07:00:43 well then, i for one welcome our new overlords Jan 27 07:02:08 Yeah. I tend to think we wouldn't lose much if those two sites stayed down. Jan 27 07:02:14 And we would gain something. Jan 27 07:02:25 the second horseman of the apocalypse! Jan 27 07:02:59 suddenly IRC is going to get populated very much. Jan 27 07:03:16 "The hashtag #facebookdown has recently appeared on Twitter. The hashtag already tops Worldwide Trends on Twitter." Jan 27 07:03:18 nah, 99% people can't even figure out how to register their nicks Jan 27 07:03:30 lol :D Jan 27 07:03:31 People are so predictable. Jan 27 07:03:34 g00s: whi is good Jan 27 07:03:37 *which Jan 27 07:03:53 there should be 'driving licence for the internet' Jan 27 07:03:54 maybe the trending hashtag will take down Twitter too Jan 27 07:03:57 haha Jan 27 07:04:21 that would be really cool. Jan 27 07:04:35 I think I did it Jan 27 07:04:36 remaining is Google+ :) Jan 27 07:04:37 (the first horseman of the apocalypse is the pumpkin spice latte burger, clearly: http://www.grubstreet.com/2014/11/pumpkin-spice-latte-burger-review.html ) Jan 27 07:04:39 I made facebook go down Jan 27 07:04:43 I'd better go. Have a good one. Don't do anything irresponsible! Jan 27 07:04:50 I didn't mean it. Jan 27 07:05:03 nobody is on google+ ... if a tree falls and nobody is there to see it, did it fall :D Jan 27 07:05:23 g00s: pics or it didn't happen Jan 27 07:06:17 i just saw this the other day http://www.businessinsider.com/google-active-users-2015-1 Jan 27 07:06:32 IRC is like the Ham radio for the wed :) Jan 27 07:08:01 Google+ figures makes sense when put in context along with Fb numbers. Jan 27 07:08:04 g00s: that's how it should be Jan 27 07:08:51 I post on G+ occasionally, but never publicly Jan 27 07:09:09 I prefer it to facebook, but I rarely post to social media in any form Jan 27 07:10:30 yeah, gotta say I prefer g+. I may be irrational though Jan 27 07:11:14 i hope facebook goes down permanently Jan 27 07:11:26 Agamemnus nah! its back online. Jan 27 07:11:33 nooooooo Jan 27 07:11:58 Instagram is back too. Jan 27 07:13:02 in other news Jan 27 07:13:03 https://play.google.com/store/apps/details?id=com.kavrakids.Animal_Jigsaw_Puzzle Jan 27 07:13:16 I reported this game for a description violation Jan 27 07:13:19 3 weeks ago Jan 27 07:13:21 it's still up Jan 27 07:13:21 why does everyone hate fb so much Jan 27 07:13:41 many reasons Jan 27 07:13:44 njcomsec: I hate Facebook because of the terms of service. Jan 27 07:13:48 it has lots of annoying users but so does every network where freedom of speech is allowed Jan 27 07:14:02 oh you mean them using your data for profit? Jan 27 07:14:09 njcomsec probably it leads to idiocrasy Jan 27 07:14:14 you think every company you interact with doesnt ? Jan 27 07:14:29 njcomsec: No, the part where I am required to specify my name as "Richard Palmer", not "Cylus". Jan 27 07:14:42 I was friends with a bag of donuts Jan 27 07:14:46 but they killed it. Jan 27 07:14:47 oh annonimity Jan 27 07:14:55 THEY KILLED MY BAG Jan 27 07:15:09 well there are plenty of networks you can use fake names Jan 27 07:15:11 When I read "idiocrasy" and "annonimity", it's clear that Idiocracy has already begun Jan 27 07:15:20 i dont see why you would hate a network which is meant for real people Jan 27 07:15:39 i understand if you dont want to use it Jan 27 07:15:44 njcomsec: I'm way too easy to find by the name Cylus. It has nothing to do with being anonymous, I just want to use my preferred name, and I don't feel they have the right to take that from me. Jan 27 07:15:46 but to hate it seems a bit extreme Jan 27 07:16:14 It's their service, they are free to make you do whatever they want and you're free not to use their service Jan 27 07:16:20 njcomsec: I don't hate, I just dislike. There are way bigger fish than Facebook out there for me to care about. Jan 27 07:16:22 well you can block non friends from seeing your page Jan 27 07:16:47 My friends know me as Cylus, not Richard Palmer. Jan 27 07:17:22 ok Jan 27 07:29:36 these guys driving snowplows are having way too much fun Jan 27 07:29:58 * g00s ponders getting snowplow certificate Jan 27 07:30:57 g00s: YES Jan 27 07:31:06 DO IT Jan 27 07:31:42 Zambonis are also acceptable Jan 27 07:32:04 heh Jan 27 07:33:38 I know a guy who drives a zamboni Jan 27 07:36:10 In Soviet Russia, Zamboni drives YOU Jan 27 07:37:45 how to find where is my app installed? I can see only data/app/my.app-1.apk… by placing apk file in data/app is consider app installed? Jan 27 07:38:31 where is resource files like images and ect? Jan 27 07:40:45 kamol: a) no. b) it doesn't matter. c) `adb shell pm list packages -f`. d) they're in the apk file Jan 27 07:43:12 groxx: thank you Jan 27 07:44:42 but what the dir /data/data/my.app ? Jan 27 07:44:42 kamol: ultimately, the location of lots of pieces depends on the rom. but pm list packages -f should show you the location, regardless. also, `adb install file.apk` will install it, which does more than copy it into the location (specifically, resources / etc seem to be unzipped into a read-only location) Jan 27 07:49:54 groxx: is there any way to know why my app increasd from 5M of apk to 15M in disk utilization? Jan 27 07:50:54 kamol: installing will unzip some (most?) of the contents, and ART will pre-process the source and compile it into a more optimized form (and to some degree, I think Dalvik does too) Jan 27 07:51:29 the apk is left alone, it's part of why you can back apps up, and why "clear data" doesn't delete important parts of the app Jan 27 07:53:04 how about image file? if an image with 1M, it wil take 1M in apk and 1M in disk after installing the app? Jan 27 07:53:35 interesting question Jan 27 07:53:40 possibly. I don't know the whole install process Jan 27 07:54:35 some things I could see leaving zipped in the package - reading compressed data and decompressing is usually faster than just reading the uncompressed version. but if they unzipped _everything_ then they can probably do a really easy mmap and call it "good enough" and it probably is. Jan 27 07:56:02 image files are already uncompressible for the most part though Jan 27 07:56:13 decompressing would be a waste of time Jan 27 07:56:16 ideally. in practice? Jan 27 07:56:35 though I guess they are making minification of images a normal thing now Jan 27 07:58:51 i don't have any statistics about that Jan 27 07:59:10 in my experience, though, most image files are only compressible by 1-5% with zlib or similar Jan 27 07:59:58 sounds believable, yeah. though if you don't e.g. run pngcrush on everything, it's probably quite a bit higher :) Jan 27 08:01:59 here's a dev question for you all: does anyone use mockup software for storyboards/layout design, and if so, what do people like to use? Jan 27 08:02:15 you can try ninjamock Jan 27 08:02:16 balsamiq with work. I hate it. Jan 27 08:02:24 lol Jan 27 08:02:26 isn't balsamiq flex / air ? Jan 27 08:02:29 yep Jan 27 08:02:34 fuck that :D Jan 27 08:02:38 and shitty even for flex/air Jan 27 08:02:44 i'm looking for something that (nicely) drops actual android-themed views/controls onto a canvas Jan 27 08:02:51 doesn't need to generate XML or anything fancy Jan 27 08:02:55 can't even horizontally scroll with a mac / side-scrolling mouse. Jan 27 08:03:20 if you're looking to pay a lot, I used to play with omnigraffle. really well made. Jan 27 08:03:58 and who isn't looking to pay a lot Jan 27 08:04:01 * hesperaux is looking to pay nothing Jan 27 08:04:06 oops :) Jan 27 08:04:15 * hesperaux is not making money on apps right now, at all Jan 27 08:04:30 thats normal :D Jan 27 08:04:37 lol Jan 27 08:04:52 oh, and i'd prefer an application that's standalone. not a webapp =/ Jan 27 08:04:52 ¯\_(ツ)_/¯ a quick google says: https://www.lucidchart.com/pages/examples/android_mockup_tool Jan 27 08:04:55 webapps annoy me Jan 27 08:04:58 d'oh Jan 27 08:05:00 i've tried lucidchart before Jan 27 08:05:02 eh Jan 27 08:05:12 never tried it. Jan 27 08:05:14 also, they email me constantly Jan 27 08:05:17 heh Jan 27 08:05:18 i unsubscribed Jan 27 08:05:31 SURE YOU DONT WANNA BUY LUCIDCHART? Jan 27 08:05:37 groxx: tq Jan 27 08:06:20 hesperaux http://www.reddit.com/r/androiddev/comments/2n9pu4/can_you_guys_suggest_a_good_tool_for_creating/ Jan 27 08:07:11 cool JakeWharton https://docs.google.com/document/d/1ReS3ep-hjxWA8kZi0YqDbEhCqTt29hG8P44aA9W0DM8/preview Jan 27 08:08:51 wtf copy paste doesn't work from google docs ? Jan 27 08:09:18 Java 10 will push Optional onto the stack, but we'll all be dead before Android sees that. Jan 27 08:09:20 haha Jan 27 08:09:26 something very stupid... froze system app with titanium clicked the wrong one I should be sleeping and now bootloop, how can I unfreeze? Jan 27 08:09:42 #android-root Jan 27 08:10:01 already did I wouldn't double ask if I didn't need to be sleeping and need phone for alarm Jan 27 08:10:37 I don't actually know what titanium does when it "freezes" apps Jan 27 08:11:23 keeps its data, disables it from the system Jan 27 08:11:25 when you say bootloop, do you mean it reboots constantly, or that it stays booting forever? Jan 27 08:11:31 booting forever Jan 27 08:11:45 you might be able to access it via adb if it's gotten far enough in the boot process Jan 27 08:12:09 if so, there may be a way to fix the freeze on the command line (adb shell) Jan 27 08:12:30 you'll have to find out how the freeze process is accomplished and what steps would undo it Jan 27 08:13:01 Last back up was days ago... I just need the damn alarm Jan 27 08:13:09 Thanks for help, I'll use a different device for an alarm Jan 27 08:13:27 k np Jan 27 08:13:51 g00s, that reddit post is potentially tasty Jan 27 08:15:45 * hesperaux wonders why most of the design apps are mac-only Jan 27 08:16:09 because anyone with design sense would never use linux or windows Jan 27 08:16:16 ...and live to tell the tale Jan 27 08:16:32 riiiight Jan 27 08:16:53 * hesperaux isn't even going to go there Jan 27 08:17:21 JakeWharton: pixar uses linux afaik Jan 27 08:17:49 they probably don't even use a window manager Jan 27 08:17:55 just boots right to an app Jan 27 08:18:10 i used to do that for my TV Jan 27 08:19:18 http://www.linuxveda.com/2013/04/14/pixar-animation-studios-uses-red-hat-enterprise-linux/ Jan 27 08:19:18 Whats the benefit of using recycler views for a list? Jan 27 08:19:32 its better for the environment Jan 27 08:19:39 g00s; huehue Jan 27 08:19:55 lol Jan 27 08:19:58 but really, should i be using them? Jan 27 08:20:36 there was some university who migrated from photoshop to krita lately Jan 27 08:20:45 s/who/which Jan 27 08:20:45 gordon_ yeah ... Jan 27 08:21:33 JakeWharton what does jesse wilson think of these alternative languages on android Jan 27 08:21:42 JakeWharton, recyclervviews, ya or nay? Jan 27 08:21:44 he reviewed the doc Jan 27 08:21:54 is excited to see what we can do Jan 27 08:22:04 so he's on board with kotlin then Jan 27 08:22:08 kevel: never used. don't see a use until i have a need Jan 27 08:22:18 g00s: he's on board with whatever lets us move fast Jan 27 08:23:01 yeah, that makes sense. i'll have to read about kotlin & concurrency, like if they have synchronized, or if i use jsr166 stuff still, etc Jan 27 08:23:30 it's just bytecode Jan 27 08:23:36 of course it has synchronization Jan 27 08:24:21 JustinMind prototyper looks pretty sweet Jan 27 08:24:32 does intellij works well now with kotlin ? I mean performance issues Jan 27 08:24:42 I make too many typos today Jan 27 08:24:47 s/works/work Jan 27 08:24:58 has it ever not worked well? Jan 27 08:25:10 i mean, the people who write IntelliJ wrote Kotlin so that they could write IntelliJ better Jan 27 08:25:49 last time I wrote some small xmpp client it worked like + -> 2 seconds and then window popped up Jan 27 08:26:26 how does kotlin interface against the android SDKs? using the current java libs and all of that? Jan 27 08:26:48 i have very limitted technical knowledge on things like this Jan 27 08:29:57 it works with any java library, so yes Jan 27 08:30:43 If you have the time, how about a demo app on github? Jan 27 08:32:00 done: https://github.com/mgouline/android-samples/tree/master/kotlin-demo Jan 27 08:32:12 nice writeup, thanks JakeWharton (and for the link g00s ) Jan 27 08:32:29 hey Odaym Jan 27 08:32:36 sup brah Jan 27 08:32:58 done with my rx wrapperd for btle. now i'm trying to use them :| Jan 27 08:33:13 JakeWharton: ta Jan 27 08:33:21 the original mvp Jan 27 08:33:55 most valuable presenter ? Jan 27 08:33:57 full disclosure: i didn't write it, it's a bit out of date (uses M9 instead of the latest M10.1), and i have never looked at its implementation Jan 27 08:35:35 leaving. bye. Jan 27 08:35:52 cheers, thannks Jan 27 08:36:26 Odaym there was a good presentation on android weekly Jan 27 08:36:51 where? Jan 27 08:37:01 what is android weekly Jan 27 08:37:06 https://www.youtube.com/watch?v=qx55Sa8UZAQ Jan 27 08:37:18 nice, it's a newsletter Jan 27 08:37:20 cool Jan 27 08:37:22 i didn't know there was a limit to max# of notifications Jan 27 08:37:41 which is 4 or 7 Jan 27 08:37:54 <5.0 and >5.0 i think Jan 27 08:38:04 I saw another one that was also nice to watch, engineer at Facebook who deals with images telling about tricks to manage memory while still loading images Jan 27 08:38:17 yeah heard about that one today Jan 27 08:38:48 he says that the heap size is set by the manufacturer and that its usually 1/10 of the memory on a device Jan 27 08:38:58 cool little info bits Jan 27 09:00:53 hi guys, what is the best reciver to user for the alarm manager, a service or a broadcast reciver? Jan 27 09:01:13 i am using a broadcast receiver today, but it feels like its not working all the time Jan 27 09:03:12 asperon: it depends on what you're trying to do Jan 27 09:03:31 thepoosh, i want some code to run every day at midnight Jan 27 09:03:39 so Service Jan 27 09:03:40 right now it works most of the times, but not always Jan 27 09:03:51 or even BroadcastReceiver that starts a service Jan 27 09:04:27 unless you have BOOT_COMPLETE permission you will have issues guaranteeing that it happens to everyone Jan 27 09:04:50 hey thepoosh , sprint #2 ? Jan 27 09:04:53 its for a widget, so i can create it onUpdate, or? Jan 27 09:05:02 since that will be called when the widget is created after boot Jan 27 09:06:35 g00s: yeah Jan 27 09:06:41 major fuckup yesterday Jan 27 09:06:43 on my part Jan 27 09:06:59 made product change their mind after the last minute Jan 27 09:08:44 g00s you around? Jan 27 09:08:54 lasserix ya Jan 27 09:09:45 have you come across any good books that are a history of the development of programming languages? Jan 27 09:11:01 lasserix: I have, but they're in Hebrew Jan 27 09:11:16 how's your hebrew? Jan 27 09:11:17 lasserix i haven't looked into that topic, sorry Jan 27 09:11:40 oh, sabesta hold on Jan 27 09:12:06 thepoosh, why is a service to prefer over a BroadcastReceiver? Jan 27 09:12:20 broadcastreceiver die very quickly Jan 27 09:12:26 hehe thepoosh Jan 27 09:12:27 the system kills them after a timeout Jan 27 09:12:31 aha Jan 27 09:12:33 lasserix i did have this but sold it before i read it http://www.amazon.com/Programming-Language-Pragmatics-Third-Michael/dp/0123745144 Jan 27 09:12:38 that might be what is causing this then Jan 27 09:12:43 yeah i know that one :) Jan 27 09:12:45 thans Jan 27 09:12:49 thanks even ;) Jan 27 09:13:00 asperon: http://developer.android.com/reference/android/content/BroadcastReceiver.html Jan 27 09:13:16 lasserix: why the history of languages? Jan 27 09:14:01 i was asked "what is object oriented programming" during an interview, didn't like my answer as much as i should have so i realized reading the history of programming languages evolving would be a good way to come up with a better, more succinct and thought provoking answer Jan 27 09:14:19 hmmmm Jan 27 09:14:36 you should just try to build a system with C to figure it out Jan 27 09:14:51 in any case, it's more for the creation of systems Jan 27 09:14:54 and reusing code Jan 27 09:14:57 i have Jan 27 09:15:00 yeah i know Jan 27 09:15:18 its more that usually i can come up with very succinct answers to types of questions like that Jan 27 09:15:36 but i was not personally satisified with my own answer Jan 27 09:15:49 i know that feeling Jan 27 09:15:54 lasserix that is a trick question Jan 27 09:16:01 here is sabesta http://www.amazon.com/Concepts-Programming-Languages-Robert-Sebesta/dp/0131395319 Jan 27 09:16:04 i would bulshit something about architecture Jan 27 09:16:19 then the boss guy and i started to kinda debate about inheritance versus composition Jan 27 09:16:30 at which point i was like wait! i'm in java you are c ! Jan 27 09:16:32 ;p Jan 27 09:16:44 not multiple inheritance in java Jan 27 09:16:44 no no Jan 27 09:16:48 there is a difference Jan 27 09:16:52 yeah i know Jan 27 09:16:59 between A has a B Jan 27 09:17:04 and A is a type of B Jan 27 09:17:38 in the architectural concept of it Jan 27 09:17:41 yeah Jan 27 09:17:55 "The root concept of an object is that functions can be locally interpreted," Jan 27 09:18:11 the distinctionb etween local and general is the heart of ooi Jan 27 09:18:12 also, in the chain of creation and overriding methods Jan 27 09:19:17 lasserix alan kay would give you the best definition of OO - then you realize Java isn't really OO :D Jan 27 09:19:34 more like, object based programming Jan 27 09:19:51 yeah Jan 27 09:20:11 objects sending messages, each object a process (not OS process) Jan 27 09:20:23 http://www.cs.virginia.edu/~cs415/reading/stroustrup-oo.pdf Jan 27 09:22:06 alan kay is one of those that looks around, sees what we've done in 2014 and thinks everything is a pile of shit Jan 27 09:22:08 so i like him Jan 27 09:22:38 because he was doing cooler stuff in the 70s Jan 27 09:22:45 lol Jan 27 09:22:48 what you talking about? put an iphone in a sex doll and siri is the best thing since blueray Jan 27 09:22:50 thanks for the doc Jan 27 09:22:51 yo Jan 27 09:22:54 keeping it for later Jan 27 09:23:01 how do I integrate video calling facility into my android app? Jan 27 09:23:16 shmoon_: look for a library? Jan 27 09:23:19 shmoon_ you use libThePoosh Jan 27 09:23:37 whats the best library for doing REST? Jan 27 09:24:09 jake would say retrofit, i haven't used any of them Jan 27 09:24:18 g00s how do you do it/ Jan 27 09:24:37 have an interview in two days, which is a test of writing an app pretty sure they will want me to do some rest Jan 27 09:24:48 oh Jan 27 09:24:49 ive used httpurlconnection but learned that was the stupid way to do things Jan 27 09:25:15 yeah thats not my area Jan 27 09:25:18 before looking for a library I need to understand what sort of concept will be involved I think Jan 27 09:25:26 cuz I'm unable to find a lbrary for this task, as this is a complicated one Jan 27 09:25:26 g00s: lol Jan 27 09:25:36 oh, it would be libGlide Jan 27 09:26:02 libAwesomShit Jan 27 09:26:14 libGetEverythingDoneByReadingMyMind Jan 27 09:26:19 libChuckNorris Jan 27 09:27:35 there is nothing I can write that will top chuck Jan 27 09:41:11 thepoosh for sprint #3, you guys should rewrite everything in kotlin Jan 27 09:41:17 ha :D Jan 27 10:06:25 woo-hoo! One month and 2k LOC later, Fennec RTL TextSelection is fixed \o/ Jan 27 10:07:11 Of course the fxi was like 100 LOC, and the test infra I had to provide was 1,900 ... but *meh* Jan 27 10:14:01 g00s left? Heh - sleep is for the weak :p Jan 27 10:14:56 1900 LOC testing a 100 LOC?!?!?!? Jan 27 10:14:58 defaq Jan 27 10:25:14 Hey Jan 27 10:26:52 perlsyntax: hi Jan 27 10:27:01 $hi Jan 27 10:27:07 Hi.... does anyone know if there's an attribute that i can set to make my dialogs' action button stack up veritcally instead of horizontally? Jan 27 10:27:22 like Stacked full-width buttons on this page? http://www.google.com/design/spec/components/dialogs.html#dialogs-specs Jan 27 10:28:22 hey! Anyone here? Jan 27 10:28:36 hi indn1234 Jan 27 10:29:49 so I am creating a hybrid app for Enterprise distribution ( no play store), so I was wondering why (if at all) should I sign my APK before releasing and not just keep using the debug version APK? Jan 27 10:30:18 yes Jan 27 10:31:00 kevel: yes? Care to explain? Jan 27 10:35:48 developing android app is good in 27inch monitor than 13inch monitor? Jan 27 10:41:34 You english good no. Jan 27 10:41:55 Mavrik: 9.9 Jan 27 10:41:59 what mean? Jan 27 10:46:13 lordy Jan 27 10:56:42 Hey there theopoosh Jan 27 10:56:53 i mean thepoosh Jan 27 10:56:55 :) Jan 27 11:12:34 What good tool to make good icons in android?That the only prob i have try to find good icon tools on mac?:) Jan 27 11:13:42 Would photoshop work? Jan 27 11:13:43 Mavrik: score :D Jan 27 11:13:56 perlsyntax: it wont work, it will crash ;) Jan 27 11:14:11 guys here use sketch for design Jan 27 11:15:14 gordon,I try to make my own icons.I didn't know that save me money. Jan 27 11:17:26 Sorry gotdon_:) Jan 27 11:17:37 i can't spell today. Jan 27 11:20:12 Can more than one notification be started with the same ID ? Jan 27 11:21:49 dont get it, but ok Jan 27 11:39:08 Could someone look at : http://pastebin.com/JX3aCztf , i'm getting null and 0 in the getextra's and the 2 functions in the put do give the right data Jan 27 11:39:30 Hey guys, is it possible to contribute to one of the open source libraries on android.googlesource ? Jan 27 11:39:38 If yes, could you please give me some links? Jan 27 11:40:19 amoghbl1: http://s.android.com/source/contributing.html maybe? Jan 27 11:41:44 hyrixo: you do it in onStartCommand, not onCreate Jan 27 11:42:05 ashiren : oke ty i'll try Jan 27 11:42:22 but remember to check there if intent is null Jan 27 11:43:10 aah, thanks Leeds ! Jan 27 11:43:46 Is there anyone here who works on volley? Jan 27 11:44:15 I wanted to know if theres a specific page for building it, couldn't come across any... Jan 27 11:44:18 Leeds: ! Jan 27 11:44:39 thepoosh: ( Jan 27 11:44:49 why the long face? Jan 27 11:46:01 random punctuation Jan 27 11:46:11 Can i destroy a service in the onstartcommand ? Jan 27 11:46:14 :) Jan 27 11:54:48 Hi, is there a way to limit my app for api above 19 api? Jan 27 11:55:32 but in way that if someone have lolipop then app is not compatible at Google Play level Jan 27 12:05:19 hmm, anyone here ever tried to build openssl for Android? Jan 27 12:06:21 the readme at googlesource says to use command m -j16 Jan 27 12:06:29 but my ubuntu terminal has no idea what m is Jan 27 12:06:33 wth am I doing wrong? Jan 27 12:17:57 Hi when using volley in a background service to receive or send data, does volley manage wake locks if the device is in stand by. Or do I even have to have wake locks here? Jan 27 12:26:49 Is using fill_parent in an xml a bad idea in Android 4.2? Jan 27 12:28:48 Hello Jan 27 12:29:25 Do you guys know how to call a GPS app from my application, and initialize it with a custom adresse ? Jan 27 12:29:45 you mean a mapping app? Jan 27 12:29:50 The android native GPS application for exemple Jan 27 12:30:06 yeah mapping Jan 27 12:30:12 with GPS :p Jan 27 12:30:42 i just want to launch the application, with an adress already initialized Jan 27 12:31:12 See what i mean ? Jan 27 12:33:11 barq: it's deprecated, but still behaves the same as match_parent afaik Jan 27 12:33:22 it's fine but use match_parent whenever you can Jan 27 12:40:22 what is wrong with the instructions to build openssl? Jan 27 12:40:34 it keep telling me to run m -j16 but there is no m command... Jan 27 12:41:00 I have isntalled android SDK and NDK following all the instructions available, why does it still not give me a working setup to build a simple library? Jan 27 12:41:38 sounds like you should run m -j16 Jan 27 12:41:40 make* Jan 27 12:41:47 make would work Jan 27 12:41:53 but then after that it wants me to run mm Jan 27 12:42:07 makemake? :v Jan 27 12:42:12 no Jan 27 12:42:42 those 2 are macros that should be in build/envsetup.sh Jan 27 12:42:48 Which is nowhere to be found Jan 27 12:50:26 exit Jan 27 12:55:19 barq Jan 27 12:55:22 use match_parent Jan 27 12:55:34 fill_parent is depricated afaik Jan 27 12:56:06 it is, even though it's just been renamed to prevent confusion Jan 27 13:05:31 Guys, if I use maxSDKVersion = 19 for app "X" and If I'll search Google Play on device with API 20, then app X will be visible on search results? Will be avalible for install? Jan 27 13:15:53 Hi there. Jan 27 13:16:38 I can't seem to enable hardware buttons in Android Studio 1.0.2 even selecting Android SDK Location}\tools\lib\emulator\skinsdidn't help. Any ideas? (Sorry I know this isn't strictly android related question) Jan 27 13:23:31 WHen I select that dynamic skin and save it. The nest time I edit avd I see noskin there. Jan 27 13:24:49 I used Webview to open a html file with javascript in android studio but nothing worked it was blank Jan 27 13:26:41 damn, I can't import my android studio project to new project as module Jan 27 13:27:12 why Jan 27 13:27:34 give error Jan 27 13:28:17 gordon_ I don't know why Jan 27 13:28:20 one sec Jan 27 13:29:55 Import existing project> point url to project> error "selecto modules to import" Jan 27 13:30:42 is it gradle submodule ? Jan 27 13:31:04 or its in.differnwt category Jan 27 13:31:11 hmm.. it's grandle project Jan 27 13:31:25 not category I mean location Jan 27 13:31:42 so it won't work like that Jan 27 13:32:29 you can install it to local repo and add as dependency in build. gradle Jan 27 13:32:31 I work with for some time as, I afraid that I don't fully understand what you asking about :( Jan 27 13:32:54 *as ordninary Android Studio project Jan 27 13:33:14 ordinary Jan 27 13:34:12 as fast as I know you can install your project to local repo and add it to dependencies. hope gradle works like maven Jan 27 13:34:12 My goal is to create one project with two different modules from two similar projects Jan 27 13:35:18 so copy old project' app folder to new project and change its name Jan 27 13:35:33 then add it to settings.cradle or however it's called Jan 27 13:35:42 gradle Jan 27 13:35:50 stupid autocorrect Jan 27 13:37:37 Ok this part is easy but how now add it as module and compile that copied project Jan 27 13:38:02 13:54 Dudi: Hi, is there a way to limit my app for api above 19 api? Jan 27 13:38:02 13:55 Dudi: but in way that if someone have lolipop then app is not compatible at Google Play level Jan 27 13:38:10 is this still relevant? Jan 27 13:38:39 Dudi then add it to build.gradle of your project Jan 27 13:38:57 I will send you example when get home. so pretty soon ;) Jan 27 13:39:10 thepoosh sure but in meantime I found maxSDKVersion and my second question was, if I use maxSDKVersion = 19 for app "X" and If I'll search Google Play on device with API 20, then app X will be visible on search results? Will be avalible for install? Jan 27 13:39:35 shouldn't be available Jan 27 13:40:30 can I put two apps with the danger name and the same package but with different targets ? Jan 27 13:43:07 one app per package name Jan 27 13:43:47 gaa... stuipid As Jan 27 13:43:53 thanks thepoosh Jan 27 13:50:17 danijoo: you should read about supporting multiple apks Jan 27 13:50:36 http://developer.android.com/google/play/publishing/multiple-apks.html Jan 27 13:51:24 thepoosh, I know that, but it totally sucks :p Jan 27 13:51:29 why? Jan 27 13:51:42 if you update the one apk, you always have to update the second too Jan 27 13:52:49 at least if I just incremented versioncodes Jan 27 13:56:29 oh Jan 27 13:56:34 yeah, that sucks balls Jan 27 13:56:44 but you can put that in your gradle script Jan 27 13:56:52 do they have to have the same file name? Jan 27 14:00:54 onStop() or onDestroy() which is guaranteed? Jan 27 14:01:17 onStop Jan 27 14:01:22 for Activity Jan 27 14:01:36 thepoosh ty Jan 27 14:01:47 np Jan 27 14:01:56 napster: what's with the nick? Jan 27 14:02:00 napster is dead Jan 27 14:02:04 as a service Jan 27 14:02:14 thepoosh using this for a long time :) Jan 27 14:02:19 lol Jan 27 14:02:25 I remember when they were big Jan 27 14:02:28 may be 7-8 years or more Jan 27 14:02:31 with Kaza and e-mule Jan 27 14:02:36 and limewire Jan 27 14:02:41 back in the day Jan 27 14:02:43 I'm not that old though :) Jan 27 14:02:49 well, i am Jan 27 14:03:00 hmm, heard of lot about real napster. Jan 27 14:03:29 well, it was a big thing Jan 27 14:03:32 back in the day Jan 27 14:03:38 changed the rules Jan 27 14:03:44 that time's iTunes heh? Jan 27 14:04:26 more like that time's netflix Jan 27 14:04:54 I was 12 when they took napster down. :) Jan 27 14:05:14 i was about 20 Jan 27 14:05:16 i think Jan 27 14:05:46 i was 18 Jan 27 14:05:50 just checked Jan 27 14:05:58 cool Jan 27 14:07:06 people still recognise the name, which is nice :) Jan 27 14:07:26 in the irc cloud? Jan 27 14:07:30 i'm not surprised Jan 27 14:07:36 this is old school space Jan 27 14:07:37 yep, me neither Jan 27 14:10:11 many old school stuff is down these days. Jan 27 14:10:16 pirate bay for one Jan 27 14:11:40 I don't know how old is tpb though Jan 27 14:13:53 everything is illegal somehow :) Jan 27 14:29:22 napster: isoHunt made oldpiratebay Jan 27 14:30:05 oh isohunt. remember its closure a long time ago Jan 27 14:30:27 and where can i upload 'revolution os' now? ;) Jan 27 14:31:39 if oldpiratebay is function, that must be a replacement, I guess Jan 27 14:31:47 s/function/functional Jan 27 14:33:02 no, it's a mirror Jan 27 14:39:58 Hello guys. I have an Activity A with fragments in it. When I cal Activity B (for showing a map) and than go back to Activity A, it's like Activity A is started twice. Because, when I want to close Activity A, I get another Activity A. In the Manifest I have all activities set as singletop. I don't remember why I did that. Jan 27 14:40:47 Why do I get Activity A twice after coming back from Activity B? It's like coming back from Activity B, adds Activity A to the stack. Jan 27 14:41:47 Number5: did you try to remove singletop? Jan 27 14:43:03 kamol, nope. I've rewritten my old app and I had signletop in my manifest for reasons I don't remember. And yes, I had to document such thing, but it is as it is. Jan 27 14:44:04 I'm reading http://developer.android.com/guide/components/tasks-and-back-stack.html now, hope things get clearer. Jan 27 14:44:13 as I know about singletop it is related to stack Jan 27 14:44:33 will bring the same instance back Jan 27 14:45:05 if you provide your onCreate and onResume code, it would be much clear what is happenig Jan 27 14:45:25 kamol, ok. I remember that I haven't just used signletop for no reason. Jan 27 14:46:49 kamol, when a new activity starts, than it will call onStop but not onDestoy. Between onStart and onStop I do nothing with setting layouts and so on. So, it's a bit weird. Jan 27 14:51:26 hi there. looking for OAuth clients appart from google-oauth-java-client any reccomendations? Jan 27 14:54:19 Hi all, I have some code for Android: http://pastebin.com/367m9yKz does somebody know how to make the same work for iOS? Jan 27 14:54:42 iOS and Android concepts are incompatible., Jan 27 14:54:52 (result = Webview) Jan 27 14:55:00 The thoughtware for the platforms are completely different and proprietary Jan 27 14:56:15 FrancescoV: if i were you i’d ask on #iphonedev Jan 27 14:57:03 samskiter_ already done that, but maybe there are here some people with both experience too Jan 27 14:57:27 FrancescoV: it looks like you want to do something after the page is loaded. i would go and google that Jan 27 14:58:00 thanks for the advice Jan 27 15:01:29 Is everyone considering switching to Kotlin now? Jan 27 15:02:18 (Since reading that /r/androiddev post.) Jan 27 15:13:06 Sure, many are going to blindly follow JakeWharton Jan 27 15:14:55 I would follow him to hell and back, I would Jan 27 15:14:59 <_genuser_> if something is deprecated in api level 21, does it mean it won't work at all? Or is it now "recommended" to move to the newer stuff? Jan 27 15:16:14 hi, has anyone messed around with the google fit sdk? I'm trying to get the com.google.weight and it returns a dataset but nothing in it? Jan 27 15:16:28 Two things that seem problematic to me: 1. The one-constructor-per-class thing might be a pain for custom Views. 2. The documentation doesn't seem good (e.g., I just googled for info about whether a Kotlin char is 16 bits or not and find nothing whatsoever.) Jan 27 15:16:44 found* Jan 27 15:21:35 <_genuser_> anyone? how does deprecated stuff work? Jan 27 15:23:57 I think it's just a recommendation, genuser Jan 27 15:24:11 hi guys.I set an image to someone in my contact list.its size of 19 mb, It wanted me to crop it Jan 27 15:24:23 They'll retain backwards compatibility Jan 27 15:24:24 i want to know cropped image(bitmap i guess) size Jan 27 15:27:41 hi there! Jan 27 15:34:30 I am trying to write an app for Android Wear that simply starts an activity when a special Bluetooth LE device is detected. So far it works - but I can not get the screen to wake up. Jan 27 15:35:29 The usual procedure with a wakelock and the needed flags (as described on stack overflow) does not wake up the screen. Did someone actually achieve this? Jan 27 15:39:09 <_genuser_> SimonVT: I see. but at some point it will actually be removed, I suppose. problem is android.hardware.camera2 (which is api 21+) isn't supported even via support libs for lower versions. Jan 27 15:39:16 why are database table create queries often defined as static strings? why not use an xml resource? Jan 27 15:39:48 <_genuser_> SimonVT: so either I have two codebases - one for < api-21 with Camera class and one for > api-21 with camera2 class. Jan 27 15:42:40 Darkwater: why do you want them to be in XML? Do you need to localize them? Jan 27 15:43:53 marcreichelt: no, but I hate writing SQL in another language Jan 27 15:44:07 right now my queries are split into strings, one per line, and concatenated Jan 27 15:44:20 would rather just have them in one "field" Jan 27 15:44:25 an external .sql file would be ideal Jan 27 15:44:39 Darkwater: you can do that in res/raw/ Jan 27 15:44:43 if you want to Jan 27 15:44:52 any reason not to? Jan 27 15:44:57 but usually it makes sense to have the SQL queries in Java code Jan 27 15:44:59 yeah Jan 27 15:45:32 can you think of one now? Jan 27 15:46:07 Darkwater: you want them to be in Java to be safe against SQL injection, so you can use selectionArgs in query() Jan 27 15:46:30 I'm mostly talking about initial queries though Jan 27 15:46:33 Darkwater: and it’s *much* better for debugging ;) Jan 27 15:46:43 have 6 tables to create Jan 27 15:47:10 oh, well then - that’s a different matter Jan 27 15:47:16 I think I'll just put my initial queries into their own file Jan 27 15:47:27 don't use raw sql anywhere else anyway Jan 27 15:47:56 and I just remembered that if you load the sql file from res/raw/ you have it in a String later anyway (for debugging and the likes) Jan 27 15:48:25 well thanks for the input Jan 27 15:54:31 Ayo. Jan 27 15:54:58 :) Jan 27 15:55:54 Is it fine if I ask for help here regarding logcat logs? Jan 27 15:56:50 LeetZero: don’t ask to ask - just ask ;) Jan 27 15:56:57 Hello, some of you already used google.navigation intent ? Jan 27 15:57:18 im doing this: Jan 27 15:57:18 intent.setData(Uri.parse("google.navigation:?q=46.199612,5.240822")); Jan 27 15:57:45 My phone has lately been acting up, certain apps just randomly closing down after either 20 or 1 minute of runtime. The log simply says they're ded: http://www.leetlegacy.tk/images/captures/imgno003d27m01y2015.png Jan 27 15:57:54 works on GS5, but on GS4 it said "maps has stopped' Jan 27 15:58:29 LeetZero: it’s okay, Android is allowed to stop processes at its will Jan 27 15:58:36 It's a foreground process. Jan 27 15:58:54 ok, that’s unfortunate... Jan 27 15:58:57 Eyup. Jan 27 15:59:10 heavy memory pressure maybe? Jan 27 15:59:17 Happens with my games and Autodesk Sketchbook for the most part. Jan 27 15:59:38 I been thinking that, but then again everyone says "It's good if Android uses a lot of RAM!" Jan 27 15:59:49 I personally call that a load of potatoes, but w/e. Jan 27 16:00:01 Any way to more properly debug this activity with adb? Jan 27 16:00:05 how can i get cropped contact image size guys ? Jan 27 16:00:06 LeetZero: that might more be a user problem than a #android-dev problem Jan 27 16:00:39 MGK this is the code we use Jan 27 16:00:42 I don't have any other apps installed on the phone - I had actually even performed a factory reset. :< Jan 27 16:00:42 but anyway; which phone? which system & version? Jan 27 16:00:45 http://pastebin.com/j8qpUwNH Jan 27 16:00:51 Samsung Galaxy Note, stock, non-rooted 4.1.2 Jan 27 16:00:53 but that's for maps not navigation Jan 27 16:01:22 JacobTabak: you use "geo" Jan 27 16:01:25 LeetZero: I wanted to ask if you did a factory reset, but since you already did this, it seems it didn’t help Jan 27 16:01:26 wich is for google maps Jan 27 16:01:31 Yep. Jan 27 16:01:39 im trying to go on google navigation without the google maps step Jan 27 16:01:50 wich seems bugged :p Jan 27 16:01:51 figured, just thought i'd throw it out there since nobody responded Jan 27 16:02:00 yeah :) Jan 27 16:02:03 marcreichelt: 764/862 MB RAM Jan 27 16:02:21 LeetZero: yeah, RAM usage is okay Jan 27 16:02:45 Android uses what it can get Jan 27 16:02:52 :( Jan 27 16:03:08 The best ironic part is that my warranty went out 1 week ago and that's actually around the time this started happening. Jan 27 16:03:14 Thank you Jesus. Jan 27 16:03:15 LeetZero: it’s a long shot, but maybe you will have less problems with CyanogenMod Jan 27 16:03:26 I been thinking about installing a custom ROM now that my warranty is done for too. Jan 27 16:03:37 what I said ;) Jan 27 16:03:53 Though I am still afraid of bricking my phone XD Jan 27 16:04:14 in the last few weeks I saw a *lot* of weird logcat logs on Samsung devices, even native crashes Jan 27 16:04:28 LeetZero: you should be fine :) **** BEGIN LOGGING AT Tue Jan 27 16:12:13 2015 Jan 27 16:18:04 Napalm: I'm about now. Jan 27 16:31:58 anyone know of an app badge that will show number of installs or rating? Jan 27 16:35:26 getting bitmap size in mb ? anyone? really ? Jan 27 16:41:23 In memory it's width * height * 4 bytes Jan 27 16:44:14 SimonVT: i try 3 different images 19mb 1.28mb and 20kb Jan 27 16:44:35 the result is always same Jan 27 16:48:26 It's still width * height * 4 bytes to calculate Bitmap memory usage Jan 27 16:54:34 SimonVT:so i should understand that it doesnt matter what image size is,bitmaps always use same memory amount (it was 2 067 300) Jan 27 16:54:52 btw im new to android.Dont blame me :D Jan 27 16:55:18 No.. Jan 27 16:55:21 Each pixel is 4 bytes Jan 27 16:56:01 More pixels? More bytes! Jan 27 16:57:42 i will send my contact image with a webservice, does it cost too much ? Jan 27 17:16:34 I am trying to make a scrolling list similar to how the google play home screen works. I was curious to see if they were using a list/recycler view or a scrollview for it to be done; I want to essentially have multiple viewholder styles but am having trouble getting a tablelayout to work programmatically with the recyclerview. Jan 27 17:18:52 ucentStatus and windowTranslucentNavigation on DialogFragments is only an issue with the v4 support lib. Jan 27 17:18:55 10:16 < jsled> jessie: mischan? Jan 27 17:18:58 Bah. Jan 27 17:19:07 BTW, the issue I was encountering yesterday with windowTranslucentStatus and windowTranslucentNavigation on DialogFragments is only an issue with the v4 support lib. Jan 27 17:19:10 There we go. Jan 27 17:26:43 btw JacobTabak i found how to make it work if u r interrested Jan 27 17:26:49 from https://developers.google.com/maps/documentation/android/intents Jan 27 17:27:04 well done, dont need it but thanks Jan 27 17:36:46 I am having trouble adding views to a tablerow; they dont seem to be getting added (https://gist.github.com/animecyc/be8007f6217cbf2b0ad1) if I just add the textview it works as expected. Jan 27 17:36:53 morning Jan 27 17:36:57 Not sure what I am doing wrong. Jan 27 17:37:16 AnimeCYC, it's a staggered grid... Jan 27 17:38:37 pfn: im not following, sorry. I am not trying to implement something that is staggered. simply displaying 3 cells in a row Jan 27 17:38:53 * pfn shrugs Jan 27 17:38:55 ive tried giving the framelayout hard dimensions and it still does not work Jan 27 17:38:57 haven't tried recycler view in any case Jan 27 17:39:01 maybe I'll screw with it today Jan 27 17:39:18 pfn: ah, are you responding to my previous question? Jan 27 17:39:52 yes, you asked what kind of layout it is Jan 27 17:40:28 Yeah, sorry you responded just as I posted another question. Yes, that would make a lot of sense. I was going to play around with the twoway-view project for that. Jan 27 17:44:20 AnimeCYC, well, it should be TableRow.LayoutParams, but otherwise looks fine Jan 27 17:51:11 hey guys, any idea why is my progress dialog not disappearing? http://paste.ofcode.org/TVvD2GNttX8m8EPuFNKHCv Jan 27 17:54:50 I create a shape drawable programatically and set it as divdier for a list but the bounds does not get honored (drawing everywhere). Any idea why this is happening? Jan 27 18:00:08 Current solution is to wrap it in an InsetDrawable but is this necessary? Jan 27 18:02:07 has anyone successfully got appcompat-v7 and material working? I keep getting errors relating to missing resources from appcompat. Jan 27 18:02:09 luist: can't see the problem myself, but step through with the debugger - see if the onPageFinished() function is firing, if it is, see which lines are executed Jan 27 18:06:42 g_steinert: strange but dialog.isShowing() is returning false Jan 27 18:08:38 luist: then that's your problem :) no idea how to fix it though, sorry :/ Jan 27 18:10:14 g_steinert: should the declaration of ProgressDialog dialog; be in the inner class? Jan 27 18:11:27 luist: i don't think so, dialog would be null if that was the problem. Jan 27 18:12:05 g_steinert: isnt it null when it triggers onPageFinished? Jan 27 18:12:52 if it was null you'd get a NullPointerException, not a false return value Jan 27 18:13:14 try removing the check - looks like calling dismiss() won't do any harm if the dialog isn't showing anyway Jan 27 18:42:38 how to get bottom floating action bar? Jan 27 18:43:28 :? Jan 27 18:45:37 DragonPunch, whats a "floating actionbar" Jan 27 18:45:43 i only know floating buttons Jan 27 18:47:17 danijoo: a floating action bar on bottom of ur scren like facebook Jan 27 18:47:23 or google search Jan 27 18:47:35 when you scroll in list view it disappears when u stop it reapperas Jan 27 18:47:38 re appears** Jan 27 18:48:05 thats a normal toolbar with some animation. nothing more Jan 27 18:48:24 what about the Jan 27 18:48:28 google search app Jan 27 18:48:32 with the edit text on top Jan 27 18:48:35 is that a normal edit text Jan 27 18:49:31 why not Jan 27 18:49:36 just some elavation Jan 27 18:59:03 hi, need info about making watchfaces about minSdkVersion Jan 27 18:59:25 i have 4 file, 2 manifest and 2 .gradle. Jan 27 18:59:38 in eclipse i have only 1 manifest Jan 27 18:59:56 what number i need to put inside? Jan 27 19:00:22 i have tried some number and the min that build is 9 Jan 27 19:00:29 how do you like watch development Jan 27 19:00:58 ? Jan 27 19:02:55 What would you do about this situation, if anything? Home Activity goes to Form Activity goes to Form Submission Activity. Form Submission Activity tells the user the form was submitted successfully, and the user presses the back button. The back button goes to the form again, and they are confused. Jan 27 19:03:10 maybe have the Form Submission Activity go straight back to the Home Activity? Jan 27 19:03:22 second question, why in .gradle there is the minSdkVersion tag? Jan 27 19:04:03 I'd need some help with figuring out how to load a html page from an APK expansion file into a webview. Jan 27 19:04:18 hello everybody Jan 27 19:04:24 duncannz, dismiss the form activity in submission activity so that a back press leads to home Jan 27 19:04:26 hello Jan 27 19:05:06 danijoo: so just call finish() before launching the intent? Jan 27 19:05:40 if someone has done that before and could point me into the right direction. Jan 27 19:05:45 how could I convert a Bitmap to File ? Jan 27 19:05:49 http://pastebin.com/XRLPQLgx Jan 27 19:06:03 JakeWharton: Did you guys decide to use Kotlin instead of Java for Android development now? Or are you at the advocacy stage only? Just curious. Jan 27 19:06:15 there is a specific dev channel for wear? Jan 27 19:06:15 I have this method to send a Multipart to my Webservice Jan 27 19:06:26 well that seems to work. thanks for putting me on the right track danijoo Jan 27 19:06:35 np Jan 27 19:06:44 duncannz: have a Submit button on the form that makes it disappear Jan 27 19:06:47 should start the intent first, then finish ttough Jan 27 19:06:54 does the cancellation of a consumed purchase generate an event in the device? Jan 27 19:07:15 shmooz: is that preferable to doing it in the previous activity somehow? danijoo: ok Jan 27 19:07:38 I don't know Jan 27 19:07:49 ok haha. I'll go with this for now then Jan 27 19:10:20 I love the idea of switching to Kotlin or something. I don't want to take a huge risk, though. Jan 27 19:10:52 TacticalJoke: stop switching stuff, and continue your reddit app Jan 27 19:11:11 you already wasted 2 weeks switching to Android Studio ;) Jan 27 19:11:12 Yeah, I'm continuing. Sometimes the switching is a net win. :) Jan 27 19:11:20 That was only about two days, I think. Jan 27 19:11:27 Guys, Im using MP4Parser to merge two videos. After the process the file shows it's length, but when I use Android File Transfer, the file doesn't show up Jan 27 19:12:23 and what the hell is Kotlin btw Jan 27 19:12:54 so what needs to be done to add the local android support repository to a gradle build script? gradle skips it and goes straight to mavencentral to resolve a dependency Jan 27 19:14:12 TacticalJoke: don't switch Jan 27 19:14:16 ship your damn app Jan 27 19:15:16 a Jan 27 19:15:19 oh man let me guess, TacticalJoke thinking about switching to kotlin ? Jan 27 19:15:22 haha Jan 27 19:15:26 i didn't see :D Jan 27 19:15:27 whats the easiest way to see the contents of an SQLite DB?? Jan 27 19:15:29 oh great so you declare variables like myString : String Jan 27 19:15:31 Precisely that. Jan 27 19:15:36 hahahaha Jan 27 19:16:24 Hmm, okay, maybe it's another post-1.0 thing. Jan 27 19:17:59 oh cool, Kotlin supports spaghetti coding :) Jan 27 19:18:00 Does anyone know how to read a html file from an APK expansion obb file into a webview? Is this possible or does one have to extract/unzip the obb file first? Jan 27 19:18:25 shmooz: In which way? Jan 27 19:18:55 Kotlin also supports procedural programming with the use of functions.[8] As in C and C++, the entry point to a Kotlin program is a function named "main", which is passed an array containing any command line arguments. Perl and Unix/Linux shell script-style string interpolation is supported. Type inference is also supported. Jan 27 19:19:25 I call procedural spaghetti Jan 27 19:19:34 my favorite style Jan 27 19:19:35 it has higher order functions which i like Jan 27 19:19:54 so higher order spaghetti Jan 27 19:20:30 g00s: I want to try kotlin Jan 27 19:20:55 Operator overloading would be really nice occasionally (e.g., with stream parsing). Jan 27 19:21:11 Though some people might abuse it badly. Jan 27 19:24:42 duncannz: in Form Activity (FA), start the FSA with '..ForResult'. then when FSA finishes, FA will have onActivityResult called with the request code. if you FA.finish() in there, they won't even see the FA. Jan 27 19:25:07 hi guys i was compiling a programme on Eclipse i got this error they told me to come here Jan 27 19:25:13 anyone can help me wit this? Jan 27 19:25:13 https://bpaste.net/show/d562bf477a07 Jan 27 19:25:30 thanks groxx Jan 27 19:26:37 Jakfro: first hit from google gave me this: https://groups.google.com/forum/#!topic/android-ndk/7ZzhCA2fuZw Jan 27 19:26:42 siegs: _probably_ by copying it to your computer, and viewing it in e.g. SQL Pro: http://www.macsqlite.com/ Jan 27 19:27:12 gdrc yeah i'm curious about kotlin and ceylon Jan 27 19:31:25 <_genuser_> fine folks, any recommendation for issue tracking software? Not to create opinions war but so I can some good recommendations. Jan 27 19:31:41 <_genuser_> already looking at mantis, bugzilla, and bugloghq Jan 27 19:37:33 redmine maybe? Jan 27 19:37:45 I haven't used any, though Jan 27 19:38:05 bugzilla is certainlt one of the powerful ones. Jan 27 19:38:11 _genuser_: ** Jan 27 19:38:26 fuel cell charger http://www.gizmag.com/kraftwerk-gas-power-plant-fuel-cell/35794/ Jan 27 19:38:29 Yeah, in my experience Bugzilla seems to be the lesser evil. Jan 27 19:38:32 They're all evil, though. Jan 27 19:39:16 yeah, I've never even heard of one that wasn't a pain Jan 27 19:39:42 hi. does anyone have any experience with stacking Robospice on top of retrofit on top of google-http-java-client? Can it be done? Jan 27 19:41:55 samosa? Jan 27 19:42:47 eh? Jan 27 19:42:57 mimosa? Jan 27 19:44:20 haha, neat, so JetBrains made a language I see (reading your doc JakeWharton) Jan 27 19:44:35 I like samosa's with lamb curry and palak paynir Jan 27 19:46:00 it escelated into food Jan 27 19:46:02 seriously? Jan 27 19:46:11 Kotlin's documentation doesn't seem great, though. For example, I can't figure out the size of a char from googling. Jan 27 19:46:49 I'll guess it's 16 bits, but who knows. Jan 27 19:46:51 2 bytes probably, TacticalJoke ? Jan 27 19:47:13 I mean in terms of the range of values. Jan 27 19:47:26 Yeah. Jan 27 19:47:38 why do you need such info, especially on android? :) Jan 27 19:48:23 I guess it'd be cool if their chars supported code points outside of the BMP (without multi-char stuff). Jan 27 19:48:32 Though I don't know how practical that would be to implement in a programming language. Jan 27 19:48:38 http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html probably very close, and it states minimum value of '\u0000' (or 0) and a maximum value of '\uffff' (or 65,535 inclusive) for the range Jan 27 19:49:27 If Java were remade today, would chars still be two bytes? Jan 27 19:49:54 two or more, for sure Jan 27 19:49:54 i dont know what the deal is, but when i go to http://kotlinlang.org/docs/reference/ .... the leftmost items don't expand Jan 27 19:50:14 even if i click on the bullet Jan 27 19:50:24 stock chrome nothing disabled Jan 27 19:50:33 TacticalJoke: I would assume that standard types are the same as java... Jan 27 19:50:44 Works here. e.g., I can expand/collapse "Basics". Jan 27 19:50:50 it expands for me g00s Jan 27 19:50:50 weird Jan 27 19:50:57 wtf Jan 27 19:51:07 especially since it sounds like it's largely fairly straight-forward transformations to byte code, plus a stronger type system Jan 27 19:51:18 Ya, groxx. Jan 27 19:51:35 TacticalJoke: it compiles into bytecode Jan 27 19:51:54 it's not a new VM Jan 27 19:53:12 Okay. I guess I was thinking that maybe they could use 'int' under the hood, although now that I think about it that would mean that the String API would break. Jan 27 19:53:29 also java isn't C :) Jan 27 19:53:31 C is not java :) Jan 27 19:53:44 ninja-ed :' Jan 27 19:54:04 groxx, ceylon is a place where we buy pizza near workplace Jan 27 19:54:25 gdrc: is that intended for someone else? Jan 27 19:54:53 groxx, yes. g00s Jan 27 19:54:56 ha Jan 27 19:55:06 can i set different margins depending on the device resolution? Jan 27 19:55:22 can I find the source of the android packages (eg. android.widget.ListView) in the aosp source? if so, where? Jan 27 19:55:35 yes you can! Jan 27 19:55:56 luist: yep. different layouts in layout-hdpi/ or use a dimen and make a new values-hdpi/ folder Jan 27 19:55:56 like Obama said ^ Jan 27 19:56:01 I always google "android googlesource .java", but there might be a better way. Jan 27 19:56:06 luist yeah, create a dimens.xml file in values, values-land, values-hdpi, etc Jan 27 19:56:11 e.g., that brings up this: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/widget/ListView.java Jan 27 19:56:21 groxx: theblang: thanks :) Jan 27 19:57:42 TacticalJoke: thanks, it's at frameworks/base/core/java/android/widget/ListView.java for me :v Jan 27 19:57:54 (after getting the source using repo) Jan 27 19:57:57 `locate ListView.java` Jan 27 19:58:14 Darkwater: Are you using IntelliJ/AS? Jan 27 19:58:20 You can middle click or Ctrl+Click the class name. Jan 27 19:58:22 nah, eclipse Jan 27 19:58:28 Ctrl+Click should work if you have sources. Jan 27 19:58:30 with vim as editor Jan 27 19:58:44 Oh. Jan 27 19:58:58 I don't (like to) use many eclipse features Jan 27 19:59:12 I think AS also has a vim plugin. Jan 27 19:59:22 as does eclipse Jan 27 19:59:32 those emulate vim though Jan 27 19:59:36 eclipse has _at least_ as many plugins as the app store has apps. Jan 27 19:59:39 with eclim I can actually embed vim within eclipse Jan 27 20:00:05 Darkwater: AS has IdeaVim Jan 27 20:00:48 shmooz: again, that's vim emulation Jan 27 20:01:04 whatever Jan 27 20:01:11 I would run eclipse in the background and use vim directly if eclim was just a bit more advanced Jan 27 20:01:27 it's really clunky imo Jan 27 20:01:36 Darkwater: Isn't it a bit limited, though, to use a pure text editor? Jan 27 20:01:40 I assume the difference is that embedding vim == you can use all vim plugins, while emulation == you can do whatever they've copied, nothing else? Jan 27 20:01:45 Text editors are dumb and don't know about (for example) Java. Jan 27 20:01:51 not sure you can call vim a "pure" text editor Jan 27 20:01:58 I'm a heavy vim user since the 90's but I haven't had the need to bring it into Eclipse or AS Jan 27 20:02:07 vim / emacs have been pretty powerful IDEs for a while, with e.g. ctags Jan 27 20:02:09 TacticalJoke: vim is a very powerful editor and eclim fixes java features Jan 27 20:02:20 vim can do more than eclipse's editor Jan 27 20:02:55 probably also faster :| eclipse's editor lags and has rendering issues Jan 27 20:02:56 but yeah especially for C/C++ it's great Jan 27 20:03:12 Do you get intellisense for Android types and stuff? Jan 27 20:03:22 vim isn't that fast actually if you add loads of plugins Jan 27 20:03:26 yeah Jan 27 20:03:35 yeah, but neither is eclipse :) Jan 27 20:03:56 Okay, I guess eclim gives you that. Jan 27 20:04:29 hmm guys i have been reading soem searches off Google but it seems i still cant understand the problem of this debugging program Jan 27 20:04:52 I used vim for years, but I quit after noticing that I had forgotten how to use normal text boxes. Jan 27 20:05:00 https://bpaste.net/show/d562bf477a07 Jan 27 20:05:02 But, damn, that was hard to quit. Jan 27 20:05:06 this is my error. Jan 27 20:05:20 TacticalJoke: then you get something that emulates vim in text boxes! :v Jan 27 20:05:20 TacticalJoke: that's why I don't bring vim everywhere, so I don't forget how to use other editors Jan 27 20:05:57 Darkwater: Just wondering -- would you ever stop using vim for Android dev? Jan 27 20:06:08 not anytime soon Jan 27 20:06:34 some day you'll be in front of a bunch of important people trying to edit something in their normal editor and look like a fool, if you use nothing but vim Jan 27 20:06:38 I only just started, this is my first app and I don't know how serious I want to get with android dev, but I really don't see myself stop using vim within the next few years or so Jan 27 20:07:06 Darkwater: I wonder, though, whether you'd be more productive with Android Studio (and its default text editor). Jan 27 20:07:19 I still know how to use other editors though, I'm not such a diehard vim user that I don't use the arrow keys, home/end, etc Jan 27 20:07:19 AS is getting so many handy features, and it'll only get more. Jan 27 20:07:54 the thing I hate, though, is having completely different editors for different languages Jan 27 20:08:01 For example, Gradle support is really nice. Jan 27 20:08:08 I don't program for android exclusively, and I use pure vim for everything else Jan 27 20:08:52 Darkwater: I avoid the arrow keys ;) Jan 27 20:09:03 Jakfro: What is the context? What is that paste about? Jan 27 20:09:06 or the insert key or the delete key Jan 27 20:09:10 or backspace key Jan 27 20:09:23 shmooz: What do you use instead? Jan 27 20:09:26 I'm too used to them and don't always have my hands on the home row Jan 27 20:09:35 One thing I always hated about vim was pressing Esc. Jan 27 20:09:41 i for insert, x for delete Jan 27 20:09:43 Everything was so well designed... and then there was Esc. Jan 27 20:09:59 when not using gvim you can usually press alt + the key you're gonna press next Jan 27 20:10:11 because alt + a really is the same as esc a in a terminal Jan 27 20:10:16 TacticalJoke: i am trying to compile an app the open cv library is not being read(if i am not msitaken) and that error is returned Jan 27 20:10:22 I think Ctrl+[ was an alias (or something). Jan 27 20:10:32 ^[ is also the same as esc in terminals Jan 27 20:10:39 am using Eclipse to do it Jan 27 20:10:54 ^[ sends byte 0x1b Jan 27 20:10:58 0x1b is ESC (escape) Jan 27 20:11:11 hjkl to navigate instead of arrow Jan 27 20:11:34 ggvGd^[u Jan 27 20:11:36 :)) Jan 27 20:11:49 does absolutely nothing \o/ Jan 27 20:11:55 exact! Jan 27 20:12:09 but if you press ^R next, your file is empty :v Jan 27 20:12:18 i'm not using vim for android stuff Jan 27 20:12:26 but i got the mug of vi :) Jan 27 20:12:43 and in vim you don't copy by selecting the area with your mouse, even though it works sometimes, you use visual mode and y to yank, p to paste Jan 27 20:12:55 I remember submitting a feature request to the vim mailing list. The creator of vim replied and just said "But that's not vi". Jan 27 20:12:59 I use both though Jan 27 20:13:09 am a vim mouse user Jan 27 20:13:15 two clipboards! Jan 27 20:13:22 Darkwater a new book on VimL was just released Jan 27 20:13:24 (with other applications) Jan 27 20:13:46 i always thought vimscript was crazy, but whatever Jan 27 20:13:46 TacticalJoke: what was the feature you requested? Jan 27 20:13:52 vimscript is weird Jan 27 20:14:04 it's just commands Jan 27 20:14:08 like shell but meh Jan 27 20:14:13 TacticalJoke: It installs in the android virtual device but it doesnt run Jan 27 20:14:23 i cant execute it Jan 27 20:14:33 Oddly enough, I just installed Atom Editor this morning... not bad. Jan 27 20:14:39 Really slow to start up though Jan 27 20:14:45 also, Hello :) Jan 27 20:15:18 MikeWallaceDev_, https://atom.io/ this one? Jan 27 20:15:22 yeah Jan 27 20:15:27 i was in #java they told me to come to #eclipse, then they told me to come to here Jan 27 20:15:47 I will try it, but it looks like not very suitable for android dev Jan 27 20:15:51 But I just started, didn't configure anything yet... or look for plugins/themes/key bindings... Jan 27 20:15:54 JakeWharton, retrofit+RX. how do I stop observing for rest call in onStop()? Jan 27 20:16:14 unsubscribe from the returned Subscription Jan 27 20:16:14 adq I was using it for some Python, I use AS for AndroidDev Jan 27 20:16:15 Darkwater: 'cw' should not work the same as 'ce' if the cursor is on a non-blank Jan 27 20:16:21 Is that lame? I don't know; I was really young at the time. Jan 27 20:16:29 Jakfro: are you running an ARM emulator, or an x86 one? Jan 27 20:16:42 x86 Windows 64 bit Jan 27 20:16:47 gdrc https://github.com/ReactiveX/RxAndroid/issues/12 Jan 27 20:16:54 groxx: x86 Windows 64 bit Jan 27 20:16:55 Here's the reasoning I gave: "This is inconsistent and thus confusing to newcomers. On a non-blank, 'ce' works like 'de', and 'cw' works like 'de' as well (not 'dw', as expected).\n\nAnd those using 'cw' on a non-blank to achieve the current 'cw' behaviour should really be using 'ce'." Jan 27 20:17:04 Jakfro: it's looking for an arm camera library, run it in an arm emulator and it may work. Jan 27 20:17:28 Bram's reply was obnoxious. He made a big deal about how I hadn't posted my full name and so on. Jan 27 20:17:59 groxx: i tried runnin it on an android phone. it cant work there either Jan 27 20:18:11 Anyone know how to apply a blur effect to an activity Jan 27 20:18:26 Im trying to set screen focus on a popup instead of just laying it right on top of the activity Jan 27 20:18:47 create a bitmap, wrap in canvas, render the root view to that canvas, blur the bitmap, cross fade Jan 27 20:18:50 Jakfro: it's an ARM phone? (probably. just making sure.) Jan 27 20:18:50 gdrc also https://github.com/ReactiveX/RxAndroid/pull/75 Jan 27 20:19:30 drose379: can't you find an example online ? Jan 27 20:19:36 groxx: the OS i am using is x86 64 bit, when i run it in the AVD its in ARM, as well as my android phone Jan 27 20:19:37 TacticalJoke: I still don't completely understand w/e/b for motions, but I guess if it doesn't behave the same in vi, it shouldn''t be added to vim Jan 27 20:19:43 use multiple blur levels and cross fade through them for better effect Jan 27 20:19:45 drose379: and if you want to get fancy, try something like https://github.com/kikoso/android-stackblur Jan 27 20:19:45 Ive been trying, nothing good shmooz Jan 27 20:19:46 since vim's mostly vi-compatible Jan 27 20:20:03 Darkwater: Yeah, but I hate that kinda thing. It's just baggage that weighs a project down. Jan 27 20:20:15 does anyone know why this happens? Jan 27 20:20:17 W/ActivityManager( 1737): Unable to start service Intent { act=android.intent.action.MEDIA_BUTTON flg=0x10 cmp=com.packagename/.RemoteControlReceiver (has extras) } U=0: not found Jan 27 20:20:18 Jakfro: ah. sorry, not sure what else to try. I've never used the OpenCV libraries Jan 27 20:20:23 There are some parts of Mercurial that are just awful because they're unwilling to create breaking changes. Jan 27 20:20:41 yeah compatibility is a bitch Jan 27 20:20:47 a huge bitch Jan 27 20:21:17 I wish someone would fork Mercurial and remove all the uninteresting historical stuff. Jan 27 20:21:37 git \O/ Jan 27 20:21:55 what's the difference, anyway? Jan 27 20:21:58 view all obstacles as part of the puzzle game and make it fun! I say this to myself everyday while trying not to pull out my hair Jan 27 20:22:00 Between Git and Mercurial? Jan 27 20:22:03 never really looked into hg Jan 27 20:22:06 yeah Jan 27 20:22:08 groxx: Sad L( Jan 27 20:22:09 Mercurial has a sane UI. :) Jan 27 20:22:13 *:( Jan 27 20:22:29 Among other differences. Jan 27 20:22:33 is it like emacs vs vi? Jan 27 20:22:36 Yeah. Jan 27 20:22:48 ok *stops asking* Jan 27 20:22:57 So I cant use FLAG_BLUR_BEHIND anymore? Jan 27 20:23:17 TacticalJike: , Darkwater: anyone else with idea about it? Jan 27 20:23:24 drose379: it has been quite a while since I looked at that flag, but I think it only applies to activities? Jan 27 20:23:46 it's deprecated now Jan 27 20:24:06 ah, nevermind, it says "blurring is no longer supported". death to blur. Jan 27 20:24:12 Would .setElevation() on my popup window allow me to raise it above the activity Jan 27 20:24:16 stackblur makes gorgeous blurs though, highly recommended Jan 27 20:24:20 Jakfro: I don't know, also please don't just ask random people - if someone would know, they'd tell Jan 27 20:24:22 lot of examples of creating blur, from renderscript to applying a blurred image mask Jan 27 20:24:31 Darkwater: I'd like to use Git for GitHub support, but if you've used both it's hard to justify going back to Git. Mercurial is just so much nicer. (The fact that Git is more popular than Mercurial is simply bad luck on Mercurial's part.) Jan 27 20:24:34 Does anyone know how to read a html file from an APK expansion obb file into a webview? Is this possible or does one have to extract/unzip the obb file first? Jan 27 20:24:47 Darkwater: Sorry Jan 27 20:26:22 TacticalJoke: what's bad about bitbucket? I think I've heard someone say they use hg because of bb Jan 27 20:26:48 It's not too bad, but it doesn't have the popularity or development resources of GitHub. Jan 27 20:26:49 bitbucket is for hg, what github is for git Jan 27 20:27:03 hm, I see Jan 27 20:27:39 hg has a bitbucket? Jan 27 20:27:42 Having unlimited free private repositories is nice. Jan 27 20:28:12 capella: plot twist; the bucket is made out of mercury Jan 27 20:28:26 TacticalJoke: yay for a vps :D Jan 27 20:28:38 cooool! TIL ... though I see it supports both hg and that other thing Jan 27 20:29:05 yeah though git support was only added to bb later I think Jan 27 20:29:17 JakeWharton, JacobTabak thanks Jan 27 20:29:21 heh - git is slowly taking over the world Jan 27 20:29:31 I'll have to learn more of it some day ;) Jan 27 20:29:34 linus has that touch Jan 27 20:29:47 They added Git support and then made Git the default choice in the "New Repository" screen. Mercurialists were not happy. Jan 27 20:29:55 I'll link you to a cool cheatsheet when I get back on my desktop Jan 27 20:30:15 TacticalJoke: hah, I can imagine Jan 27 20:30:17 ah, hehe, I can sympathize Jan 27 20:30:22 how bout svn and cvs ? Jan 27 20:30:31 lol Jan 27 20:31:33 And Infoman! Don't forget the mainframers :) Jan 27 20:31:49 has anyone used jdeferred? Jan 27 20:31:52 perforce Jan 27 20:32:01 screw versioning, I work alone Jan 27 20:32:12 shmooz: It's still needed, IMO. Jan 27 20:32:27 yeah for branching maybe, but I like the hard way Jan 27 20:32:38 The changes I'm making right now are taking me around two days. Without revision control, they'd take me months. Jan 27 20:33:24 Even for things like IDEs -- IDEs will change your files at times. A revision-control system will show you that immediately. Jan 27 20:33:47 shmooz: you should use dropbox for versioning Jan 27 20:33:50 it's automatic! Jan 27 20:33:54 no need to commit! Jan 27 20:34:05 An example is strings.xml losing all its newlines seemingly at whim. Jan 27 20:34:11 TacticalJoke: are you going to switch from Mercurial to git ? Jan 27 20:34:19 No way. :D Jan 27 20:34:49 Darkwater: I just use my harddrive ;) Jan 27 20:34:56 backup the project dir Jan 27 20:35:20 but then you get project - Copy - Copy - Copy - Copy (2) - Copy Jan 27 20:35:34 no I give it a date and time Jan 27 20:35:44 all manual Jan 27 20:35:49 shmooz: That's way less accurate and way more work than using something like Git/Mercurial. Jan 27 20:36:10 yeah seriously just use git/hg Jan 27 20:36:20 don't have to commit after every change Jan 27 20:36:24 never! Jan 27 20:38:16 i'm getting the error when running proguard, error code 2 "error opening registry... " ... "could not find java.dll" but there's no message about any java version. All the google results have that message about java version. Still I uninstalled all jdks and jres, rebooted and install the latest jdk 7. Still with the damn error! anyone seen this without the version hint? Jan 27 20:38:21 hey guys… im trying to clear the fragment stack after the login, but it’s not waiting the transition animation to finish, is there a way to clear (lines 9-10) after the trasition finishes? http://paste.ofcode.org/36KSvF5KWcbjCCf2K3L94cD Jan 27 20:41:51 will layout_alignParentTop place my Layout ontop of the other? Jan 27 20:42:33 TacticalJoke: this aacdecoder lib works very smooth for shoutcast AAC streams, I better not have to pay licencing fees! Jan 27 20:42:42 1) Is it possible to unload a class/jar file loaded using DexClassLoader? 2) Is it possible to detect that it has already been loaded? Jan 27 20:45:13 is there a good library for a duration picker where I can give it a min/max duration and it will let me pick HH:MM? Jan 27 20:45:52 shekibobo: there shouldn't be, just make your own Jan 27 20:51:12 Hm apparently there was at some point a java 1.8 installed that put files into \ProgramData\Oracle\Java\javapath and there were linked files in there that pointed to invalid places (previous install place for 1.8). And my PATH had that ProgramData location. Fixed the path and deleted those bad link files and I think it works... gah dumb 1.8 Jan 27 20:51:25 hey jessie Jan 27 20:52:01 is there a way to tell a service in its own process to not only stop but die (kill itself)? Jan 27 20:53:00 there is no difference between stop and die.. Jan 27 20:53:56 when I tell the service to stop, I can clearly see via adb that the process is still running in memory Jan 27 20:54:44 maybe I only think it's stopping? it's an IntentService. I thought they call stopSelf() when the queue is empty Jan 27 20:56:34 Ooh, excited. I've just installed Android studio. I'm an experienced coder (C++ and C#) but I've never touched Java, but I think I'll be OK? I'm going in lol... Jan 27 20:57:09 how do i wait for a transition animation to finish? http://paste.ofcode.org/WwuVRHS3UcK5BQFMvYPVsz Jan 27 20:58:11 Spec-Chum: do some intro reading to get the big picture Jan 27 20:58:46 danijoo: any suggestions? IntentService calls stopSelf(), but the process is still alive. Oh... I guess I should be trying to figure out "How do I kill the process owning my service?" Jan 27 20:59:16 ugh Jan 27 20:59:17 shmooz, on java or android? I've read the "java for c#" developer type affairs, they seem very similar. Never coded android tho Jan 27 20:59:19 shmooz: Are you releasing your app anytime soon? Just curious. Jan 27 20:59:27 sr105, that's a horribly wrong question to ask Jan 27 20:59:34 I'm hoping to release mine ASAP but it take forever. ;| Jan 27 20:59:34 What's a good category for live wallpaper? Personalization? You'd think there'd be a live wallpapers category... Jan 27 20:59:44 sr105, you don't ever mess with process management Jan 27 20:59:51 sr105, what is your ACTUAL issue? Jan 27 20:59:52 TacticalJoke: no, probably not soon, but yes soon, hmmm Jan 27 20:59:56 Mavrik: The process is going to die. I'd like to do it cleanly. Jan 27 20:59:57 fakey, yes. Jan 27 21:00:04 sr105, why do you care? Jan 27 21:00:12 Spec-Chum: I didn't find it hard at all to switch from C# to Java. Jan 27 21:00:13 Mavrik thanks for confirmation. Jan 27 21:00:20 Java is like a subset of C#. Jan 27 21:00:21 sr105, you aren't supposed to and shouldn't ever manage processes on Android Jan 27 21:00:31 sr105, if you have threads that stay alive make sure you stop them properly Jan 27 21:00:41 TacticalJoke: wouldn't the tiny differences be annoying? Jan 27 21:00:55 TacticalJoke, nice one Jan 27 21:01:00 Mavrik: my app downloads a jar file and executes some code from it. Sometime later, it will download another jar file with the exact same name but different code. When the class is loaded, the process will die with a SIGBUS. Jan 27 21:01:01 sr105, but process management is Android's domain and will keep them cached as memory is available. Jan 27 21:01:10 The thing is, as far as I remember, there aren't many differences really. And the differences there are are largely "Oh, Java doesn't have that". Jan 27 21:01:13 e.g., first-class events. Jan 27 21:01:34 sr105, so process not dying isn't your problem. Jan 27 21:01:53 I guess the string-equality thing is a landmine. Another is type erasure, and auto-boxing with generics. Jan 27 21:01:59 well they made C# to compete with java and copied most of java and tried to improve upon it Jan 27 21:02:29 or was that J# :P Jan 27 21:02:34 TacticalJoke, I doubt I'll be doing anything with generics for a while, I'll stick with "Hello Android!" for now hah Jan 27 21:02:39 Spec-Chum: One of the most important things: don't use == to compare strings in Java. Jan 27 21:02:40 Mavrik: not really... if there's a way to load a class NAME that is different from a previously loaded class NAME, then I wouldn't need to worry about this Jan 27 21:03:07 TacticalJoke, righto, thanks Jan 27 21:03:14 Right. Jan 27 21:03:45 ah right, .equals Jan 27 21:03:47 got it Jan 27 21:03:49 C# made the right move of overloading == for string comparison. Java made the mistake (IMO) of not doing so. Jan 27 21:04:06 I've got Google on side, I'm good lol Jan 27 21:05:33 Mavrik: here's the code, very short: http://pastebin.com/ZN3uQ87y Jan 27 21:05:42 This is cool: http://kotlin-demo.jetbrains.com/ Jan 27 21:06:37 @override, um, ok. I guess they forgot to add that as a keyword... Jan 27 21:06:41 I'm currently getting around the problem by setting redeliver intent to true. Then, when the process containing the service crashes, android auto-restarts it and re-sends the intent. I'd like to handle things more gracefully, though Jan 27 21:06:43 Yep. lol Jan 27 21:07:03 bit of an @oversight Jan 27 21:07:11 Since @Override is an annotation, it's not required. However, a good IDE will auto-add it wherever it can. Jan 27 21:07:17 TacticalJoke: I still trip up over that little gem! Swithching between Java nad PHP doesn't help things though! Jan 27 21:07:58 g_steinert: I still sometimes type 'string' since I spent so long in C#. :D Jan 27 21:07:59 I was thinking (and about to test) that if I were to clean out my dex cache (just for my loader) before trying to load a class, maybe that would work Jan 27 21:12:13 Spec-Chum: Java isn't as nice as C#, but it's not too bad. Jan 27 21:12:22 It works and it has good tooling. Jan 27 21:14:08 oh, update for AS, only just installed the bloomin' thing Jan 27 21:15:16 Does anyone know how to read a html file from an APK expansion obb file into a webview? Is this possible or does one have to extract/unzip the obb file first? Jan 27 21:17:51 You would have to extract it first Jan 27 21:18:26 OK, IDE looks nice, now considering I've never used Eclipse, is AS good|great|prefer not to say? Jan 27 21:18:48 AS is recommended now. Jan 27 21:19:08 They're not gonna support Eclipse anymore. Jan 27 21:19:23 that's what I've got on, yeah Jan 27 21:19:29 AS I mean Jan 27 21:19:41 uh hm so i built my apk using proguard and crashlytics, and when i install there are two launcher icons. this didn't happen with debugging.. Jan 27 21:20:27 the CEO of BlackBerry thinks we should be forced to develop apps for them Jan 27 21:21:02 I'd say they should just make an android runtime on top of their QNX Jan 27 21:21:57 maybe by porting genymotion Jan 27 21:23:12 Mavrik & danijoo : Turns out that if you delete the cached .dex file, DexClassLoader won't blow up the next time you try to load it. Jan 27 21:23:36 hrmf Jan 27 21:23:49 Wonder if it's a classloader collision Jan 27 21:24:06 <_genuser_> donniezazen: sorry, just saw your recommendation. I'm trying for bugzilla too. we need something that doesn't freak out MBA PMs. lol. Jan 27 21:24:17 It would complain about a checksum issue (rightfully so) since the new NAME.jar is different from the old NAME.jar Jan 27 21:24:19 <_genuser_> groxx: looking at redmine in a bit then. thanks Jan 27 21:24:49 then it would SIGBUS and take down the whole process Jan 27 21:25:17 http://www.zdnet.com/article/blackberry-wants-laws-to-force-app-developers-onto-bb10/ Jan 27 21:25:29 now I add 2-3 lines before the load to clear out the cache dir and I'm good. The cache is a custom dir just for my dex loads so no danger Jan 27 21:27:02 get ready to be arrested for 'choosing to ignore BlackBerry' Jan 27 21:29:31 OK, that's braces set to "next line" I've never liked them on the same line :/ Jan 27 21:29:42 Java convention or not, I ain't doing it lol Jan 27 21:30:00 your choice Jan 27 21:33:29 anyone know how I can make a clickable view actually look clickable? Jan 27 21:33:42 ie. blue background on holo, ripple on material etc Jan 27 21:33:50 Darkwater, make a view showing an arrow towwards it Jan 27 21:34:04 sayng "clickable" Jan 27 21:34:18 Darkwater: among other "at rest" styles, you generally add a statelist as the background, and give it a different background when it's pressed Jan 27 21:34:26 I forget how the ripples work Jan 27 21:34:35 damnit danijoo lol Jan 27 21:34:55 ripples work like stuff Jan 27 21:35:07 do you put that in the bg statelist? Jan 27 21:35:18 no in a ripple.xml Jan 27 21:36:26 a drawable ripple.xml, then use that drawable in the statelist? Jan 27 21:37:06 you can put it anywhere. Jan 27 21:37:19 it can replace state-list if you want Jan 27 21:37:37 I obviously only want the ripple on touch though Jan 27 21:37:52 and use that as background Jan 27 21:37:59 actually how would that work with older API versions? Jan 27 21:38:03 In case anyone's curious, here's an IntentService that will load a class from a downloaded jar file and execute that class's main(String[]) method. http://pastebin.com/wCrEndJQ Jan 27 21:38:06 than you have a view with backgroundcolor and with the ripple effect Jan 27 21:38:13 I want the system's behaviour, just like a listview Jan 27 21:38:17 using the support lib Jan 27 21:38:47 ripple doesnt work with support Jan 27 21:39:05 then how does the listview work? Jan 27 21:39:21 it has no ripple in support Jan 27 21:39:27 it's showing a ripple on lollipop and a blue background on kitkat Jan 27 21:39:38 that's also what I want on my custom view Jan 27 21:39:39 yes. two different selectors Jan 27 21:39:41 JesusFreke: you sure? that sucks. the zip file is large enough, suck if one has to extract it also (read that I have to keep the obb file even if i extract it) Jan 27 21:39:48 use the ripple on lollipop Jan 27 21:40:18 and another selector pre-lolly Jan 27 21:40:29 I can't use a system resource? Jan 27 21:40:45 my virtual device is broke, stuck on 50% charging :p Jan 27 21:40:48 jesperj: the only alternative I can think of is if you can load some in-memory html into the WebView, in which case you could just extract the file into memory and then load it, without having to extract it to disk Jan 27 21:41:13 Spec-Chum: maybe it just has a giant battery? :v Jan 27 21:41:35 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:41:36 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you Jan 27 21:41:36 * DarkBloodWolf are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:41:37 v Jan 27 21:41:39 v Jan 27 21:41:42 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!v Jan 27 21:41:42 Darkwater, well, it is flippin' huge on my screen Jan 27 21:41:47 v Jan 27 21:41:49 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:41:54 v Jan 27 21:41:55 v/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!v Jan 27 21:41:58 v Jan 27 21:42:00 vv Jan 27 21:42:01 v/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:04 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:06 lol Jan 27 21:42:07 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:09 '<_< Jan 27 21:42:10 the fuck Jan 27 21:42:11 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!/me Is not here right now, if you Jan 27 21:42:18 * DarkBloodWolf are from the #android channel, then you can go fuck yourselves!!!v/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:21 someone's having a bad day Jan 27 21:42:21 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:24 looks like it Jan 27 21:42:25 v Jan 27 21:42:26 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:29 v Jan 27 21:42:31 v/me Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!!v Jan 27 21:42:33 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:36 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:39 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:41 try turning him off and back on again Jan 27 21:42:42 he's even putting efford into it by doing it manually lol Jan 27 21:42:42 v Jan 27 21:42:46 v Jan 27 21:42:48 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:42:51 v Jan 27 21:42:53 v Jan 27 21:42:55 * DarkBloodWolf Is not here right now, if you are from the #android channel, then you can go fuck yourselves!!! Jan 27 21:44:00 * Spec-Chum Is not here right now, if you are from the #android channel, then... just kidding :p Jan 27 21:44:38 Living dangerously :p Jan 27 21:44:44 lol Jan 27 21:45:16 aynone here has any idea with open cv? Jan 27 21:45:17 * Darkwater is actually here right now, if you are from the #android channel, then you're probably a person Jan 27 21:45:37 hah Jan 27 21:45:37 JesusFreke: There is "APK Expansion Zip Library" but as i understand it, that only accesses the files in the obb file as "InputStream". (which I dont think could work with webview Jan 27 21:45:38 sorry Jan 27 21:46:27 It just seems strange that one would need to onzip for accessing the html files in the obb files, but there are libaries out there for accessing "other files" in the obb without problems Jan 27 21:46:51 ah hm I'm using a library that has a test activity and crashlytics is merging that activity intent into my project, giving me a second launcher icon (that crashes). Anyway I can stop this from happening without editing the library's AndroidManifest? Jan 27 21:47:06 yay I think I got it Jan 27 21:47:13 "I can" = "can I" Jan 27 21:48:00 danijoo: looks like ?android:attr/listChoiceBackgroundIndicator works, at least on lollipop Jan 27 21:48:13 now charging my jelly bean to make sure :v' Jan 27 21:50:46 I seem to be missing something fundamental about themes. my radio buttons aren't taking the text color of my themes, and my list views aren't taking either the background or text colors Jan 27 21:51:14 uhmm guys where can i get application examples of web based face recognition Jan 27 21:51:21 i have foudn a few but they are not open source Jan 27 21:53:00 so I have to unzip the obb file AND keep it. Seems like a waste of space Jan 27 21:53:54 the obb file is ca 70mb, and unzipped is 160mb. 230mb total then Jan 27 21:54:14 right, that's my whirlwind tour of Android Studio complete, now for, er, call of duty 6. Where's the matrix class? :p Jan 27 21:54:19 easy first project... Jan 27 21:55:36 but maybe 230mb isnt that much on modern phones... Jan 27 22:03:40 http://www.reddit.com/r/Android/comments/2tvjif/my_super_awesome_jigsaw_game_safari_jigsaw/ -- need comments, willing to bribe with gems Jan 27 22:07:41 From the Google Developer console: "You don’t need a production APK to publish an alpha/beta app." Does anyone know what that means? Does it mean that the apk doesn't need to be signed? Jan 27 22:08:48 SilentByte: no, it means you don't have to have a publicly-released app to run alpha/beta versions Jan 27 22:09:28 Ok, so I should still generate a signed APK and upload it? Jan 27 22:09:46 yes you still need to sign it. Jan 27 22:09:56 that seems straightforward but I wonder how straightforward it is Jan 27 22:09:56 Thanks. Jan 27 22:10:22 i'm working on this right now too though... and am i supposed to "publish" in alpha? It's giving me no link to use for my tester group. Jan 27 22:10:49 Do you know if I have to have all the promotional graphics ready or can I add those later? Jan 27 22:11:50 Your beta/alpha testers sign up for the group/whatever you use, and download it through play store as usual Jan 27 22:12:18 SilentByte there are asterisks on the items that are required. Jan 27 22:12:34 If they have a prod version installed, the beta/alpha will appear as a normal update Jan 27 22:12:50 SimonVT I'm doing this before production. Jan 27 22:13:08 i installed the apk with adb and i'm getting "authentication is required" error on my test account Jan 27 22:13:53 Do I sign in debug mode or release mode for an alpha app? Jan 27 22:14:29 You sign with your release key Jan 27 22:15:15 It's a regular version, it's just only shipped to a certain group of people Jan 27 22:16:54 i keep reading that you need to "publish" your app but there's no publish button on the alpha apk page?! Jan 27 22:17:21 i can "move" it to beta or production but f that before testing... Jan 27 22:18:00 ohhh wait. maybe i'm dumb instead. Jan 27 22:19:17 I'm on mobile, so can't really check.. But I found it to be pretty straight forward. But I had a prod version, so there might be a small difference :) Jan 27 22:19:19 no, google play developer console has some interesting issues Jan 27 22:19:32 it's straightforward after the fact Jan 27 22:19:51 For example, sometimes it'll pre-populate your expansion files. Jan 27 22:19:55 And sometimes they're blank Jan 27 22:20:00 Really annoying. Jan 27 22:20:15 yeah there actually was the "publish" button, but greyed out and waiting for me to accept taht i'm liable for breaking content rules and export rules. I have been assuming that one was for production only and went blind since it wasn't within the alpha tab. Jan 27 22:21:07 Does anyone know how to show "where am i" type of window in Android Studio/intellij? Kinda like https://www.drupal.org/files/sublime.png It shows your overall position in a class in sublime text editor? Jan 27 22:22:26 I think I was reading about a plugin that does that. Jan 27 22:22:30 That's just a scroll bar that takes way too much space Jan 27 22:23:06 it's sorta nice though. good for visual memory. Jan 27 22:23:52 It looks like it could be nice, but I think it could also be a crutch for people writing way-too-big classes. Jan 27 22:24:25 of course now i have to wait for however long for the app to be available on google play before i can test it. development halted. Jan 27 22:24:32 yeah, though a) java. and b) most IDEs ship with a "class structure" side-pane for a similar reason. Jan 27 22:25:10 I have a question about Android. Jan 27 22:25:17 Not sure if this is an appropriate channel Jan 27 22:25:24 you've come to the wrong place D: Jan 27 22:25:31 But I'll ask, you guys can rage if it's not about development Jan 27 22:25:42 * groxx preps rage engine Jan 27 22:25:57 So I added some caching a few days ago and noticed all my jigsaw game images were searchable in the gallery. Jan 27 22:26:05 Well, my mother noticed. Jan 27 22:26:22 And she's like "what did you do, why did you add all this junk to my images?.." Jan 27 22:26:29 and she deletes them Jan 27 22:26:38 lol greatest story ever Jan 27 22:26:40 http://is.gd/kKT2NB Jan 27 22:26:42 and I test the game again on her phone and they come back. Jan 27 22:26:54 lol but that's not all... Jan 27 22:27:00 groxx: that link SFW? Jan 27 22:27:04 yes :) Jan 27 22:27:04 it's SFW Jan 27 22:27:18 I'll warn if not (which may never happen) Jan 27 22:27:23 So I'm wondering, can I hide them from the gallery and show them in the wallpapers list? Jan 27 22:27:38 like a .nomedia and a Jan 27 22:27:38 you can Jan 27 22:27:44 .butiwantitinwallpapers Jan 27 22:27:56 how? Is there a simple solution? Jan 27 22:28:11 hm. Jan 27 22:28:20 or do i need to copy it? Jan 27 22:28:43 I think there's an intent you can use to set as . .nomedia + that intent in your app might be an option Jan 27 22:28:55 oh, interesting Jan 27 22:29:07 ok, i will search for that Jan 27 22:29:08 TacticalJoke: and SimonVT okay so theres nothing that does that out of the box? Jan 27 22:30:15 Agamemnus: hrm. v19? http://developer.android.com/reference/android/app/WallpaperManager.html#ACTION_CROP_AND_SET_WALLPAPER Jan 27 22:31:05 v21 Jan 27 22:31:34 well that one sets the wallpaper, I only want it in the list Jan 27 22:32:20 eghdk: As far as I know, there isn't. Jan 27 22:32:47 Note that the scroll bar, when hovered over with the mouse, shows off-screen code. Though it doesn't give an overview. Jan 27 22:33:06 TacticalJoke: Okay. I'm trying to learn about what windows are useful to use in studio. any tips? I found the "Structure" window. I thought that was pretty cool. Jan 27 22:34:08 eghdk, use the structure window and if you hover over the scrollbar you get a little peek view whatever you wanna call it. Jan 27 22:34:59 OK, quick question. I just want to play with some simple gfx, just 2d sprites, what's the quickest way for me to set this up? Nothing fancy, I literally just want a screenbuffer and a spriteBatch style method? Jan 27 22:36:15 Phaser. /runs Jan 27 22:37:40 Spec-Chum: Canvas Jan 27 22:38:26 Spec-Chum: http://developer.android.com/training/graphics/opengl/index.html Jan 27 22:38:55 ah, it's all OpenGL? Okey dokey Jan 27 22:39:07 Or you can just use Canvas and Paint Jan 27 22:39:31 OpenGL is for more advanced stuff Jan 27 22:40:03 <_genuser_> groxx: dang, redmine looks really clear and simple. Jan 27 22:40:36 this could be fun, not used open GL since 1.3 :/ Jan 27 22:40:36 Spec-Chum: http://developer.android.com/guide/topics/graphics/2d-graphics.html Jan 27 22:41:16 my suggestion for OpenGL graphics is libGDX Jan 27 22:41:35 but if you are doing something dead simple then it could be overkill Jan 27 22:41:38 _genuser_: iirc when I last used unfuddle, they had redmine as the project management UI. seems like they've undergone a few changes since then, but it may still be there, and they used to be free + private hosting: https://unfuddle.com/stack/ Jan 27 22:42:26 <_genuser_> groxx: thanks. I have mantis working and fully funcitonal, but I think it will be a bit much for Project manager types. Jan 27 22:42:46 <_genuser_> groxx: on the other hand, redmine will require apache and ruby, so I might end up puting more and more on teh server. Jan 27 22:43:55 Is it me or did the default font size for reddit comments on reddit.com just get bigger? Jan 27 22:44:23 it auto adjusts for old timers ;) Jan 27 22:44:36 lol Jan 27 22:44:40 hehehe Jan 27 22:44:53 _genuser_: ah, nevermind, seems they've dropped their free tier. well, good luck :) Jan 27 22:44:53 Mine is about 48 font Jan 27 22:44:55 Quoted text looks different, too. Jan 27 22:45:17 <_genuser_> groxx: I think I can still install it on own server because they have the downloads and all that. Jan 27 22:45:46 TacticalJoke: looks about like what I remember. possibly you changed zoom levels in the browser? I bump it occasionally. Jan 27 22:46:19 <_genuser_> hmmm, reddit, I have never been a reddit user. I wonder if I'm missing out on news.... Jan 27 22:47:08 Yeah, I checked that. Just got confirmation from reddit that they updated the site. Jan 27 22:47:26 I have subreddit themes disabled; otherwise I might not've noticed. Jan 27 22:47:52 TacticalJoke: what are you using to replace WebView ? Jan 27 22:49:15 The hope that the user picks "Open links in an external browser". Jan 27 22:49:20 yiati, fakey I literally just want something like xna spriteBatch, no 3d or anything like that. I can do 3d, but start small :) Jan 27 22:49:37 I don't know whether to enable this by default. Jan 27 22:49:43 I actually hate having to leave an app to view a link. Jan 27 22:50:07 I guess we could, as an alternative, bundle something at the cost of 20-30MB. Jan 27 22:50:31 yiati, sorry missed your link for canvas, I'll take a look at that Jan 27 22:50:36 am i supposed to be able to test IAB purchases on an alpha apk if I installed through adb? or am I just stuck waiting the few hours for the publish to be available? Jan 27 22:50:53 <_genuser_> do you guys ever work on an app with the backend being a website... user login etc. Jan 27 22:52:03 _genuser_, write an api Jan 27 22:52:37 I take it I can't use MonoGame with AS? Jan 27 22:52:44 <_genuser_> danijoo: right. I was curious if someone has done this and has any input on security, etc. Jan 27 22:53:01 <_genuser_> or if somebody who did this used an existing framework,e tc. Jan 27 22:53:09 Hi guys Jan 27 22:53:19 Having a problem with getGlobalVisibleRect. Jan 27 22:53:36 When the view I'm measuring is not on the screen, the full size of the view is returned. Jan 27 22:56:09 Spec-Chum: AndEngine is one of the more popular light weight game engines for Android https://github.com/nicolasgramlich/AndEngine Jan 27 22:57:14 Spec-Chum: I would say just use unity free version if you want XNA like code Jan 27 22:57:45 though I though MonoGame was on android also. Jan 27 22:57:56 _genuser_: yeah, I've done that. what're you wondering about? Jan 27 22:57:58 TheBunnyZOS, it is but I need xmarmin it seems Jan 27 22:58:01 and that's not free Jan 27 22:58:10 unity then Jan 27 22:58:20 it is free and works great for C# work Jan 27 22:59:02 I finally moved to it vs writing my own low levels engines recently and got about x10 speed up in my productivity Jan 27 22:59:22 coded a game on my mac and had it running on ios for instance in 10 minutes effort… Jan 27 22:59:32 androids about the same. Jan 27 22:59:53 I hate it when people downgrade your free app Jan 27 22:59:53 Wtf Jan 27 23:00:10 <_genuser_> groxx: I'm thinking of having a website/portal with users. Then the android can log users into the app using the website credentials, and also upload data files to the website. Jan 27 23:00:53 _genuser_: you mean you don't have the website yet ? what do you have ? Jan 27 23:00:58 <_genuser_> groxx: so users can directly login at the website and manage their profile, etc. But when logging in via the app, the focus is only on validating users, downloading user config, AND upload user data. Jan 27 23:01:16 I've got unity on here anyway, I'll have a play, although I was hoping to do native android Jan 27 23:01:27 <_genuser_> shmooz: just an app that does all teh work, but it's all local to teh device. no backend framework. Jan 27 23:01:38 Spec-Chum: native is all GL and C/C++ or Java Jan 27 23:01:53 MonoGame would not be native... Jan 27 23:02:20 Java is fine, I meant a spriteBatch method, like monogame, not particularly monogame itself. Jan 27 23:02:26 sorry for the confusion Jan 27 23:02:30 _genuser_: makes sense. fwiw on the app I worked on, a large portion had no idea that there was a website, though it's not like it was hidden. also our crowd was on the young side. you _probably_ want to allow everything in the app, unless there's a good reason not to. Jan 27 23:03:50 <_genuser_> groxx: yeah so it will encrypt the user documents (work document, whatever you import into the app). user can login using credentials and sync their data to teh website. Jan 27 23:04:15 TheBunnyZOS, unity is a bit much for the "AndroidPong" I had in mind for a first app lol Jan 27 23:04:24 I'll googlefu Jan 27 23:04:34 <_genuser_> groxx: user creation can all happen in-app. but let's say you have 100 documents uploaded to the site, and want to free up space from the device, you can delete 90 or them. Jan 27 23:04:40 its awesome for that :) they just added a new drag and drop GUI system. Jan 27 23:05:00 but then I wouldn't learn any android lol Jan 27 23:05:06 honestly if you want to do games you won't look back after learning it Jan 27 23:05:10 only just installed it, not coded 1 line yet, eager to learn Jan 27 23:05:11 I just joined, Spec-Chum, what are your plans? Forgive me if I missed a bunch -- but LibGDX is a pretty good 2d game engine for android Jan 27 23:05:11 true Jan 27 23:05:15 <_genuser_> groxx: anyway, my question was did you roll your own in terms of website? did you do login with a webservice that does something like verify creds and generate a token, etc. Jan 27 23:06:12 LibGDX will be to high level also Jan 27 23:06:17 _genuser_: my website already existed. we added a REST-like layer on top of it. were I to start from scratch, I'd probably recommend making a core REST-y API, and using it (as much as it makes sense) for both web and app Jan 27 23:06:23 _genuser_: will it be a mysql database on the website ? Jan 27 23:06:27 I followed a couple tutorials for LibGDX (Pluralsight has one and Kilobolt has one) Jan 27 23:06:31 hey m3chanical, I'm a fairly seasoned programmer but brand new to android (and Java, but I do know c++ and c#) I just wanted a screenbuffer and a spriteBatch stlye method to play with Jan 27 23:06:51 I've literally just installed the SDK about an hour ago Jan 27 23:06:54 spriteBatch does not exist on any platform ;) Jan 27 23:06:56 ahh Jan 27 23:06:58 <_genuser_> shmooz: yet to be designed. So db can be anything. altho, mysql would be easier to host/use Jan 27 23:07:06 I thought libgdx has a spritebatch Jan 27 23:07:12 _genuser_: then just handle login the same way a website does - verify whatever you need, set a cookie, and in the app just make sure you're saving those cookies to disk and loading them on start. there's nothing else you really need to do. Jan 27 23:07:12 TheBunnyZOS, I know, I meant the funcionality of it Jan 27 23:07:23 yes but then he does not learn android if he uses spriteBatch.. Jan 27 23:07:28 ahh Jan 27 23:07:33 I give it a texture, it draws it Jan 27 23:07:43 <_genuser_> groxx: I see, that's what I typically do. but I wonder if that's secure? Jan 27 23:07:56 SDL2 runs on anroid and is more low level and does textures / context and basic drawing Jan 27 23:08:04 _genuser_: as long as you keep it in your internal folders, it's as secure as anything on the device Jan 27 23:08:08 after which you can hack in any raw gl you want Jan 27 23:08:11 _genuser_: also, https Jan 27 23:08:17 I have no idea how to do that without a game engine lol. LibGDX is neat because you are effectively abstracted from Android Jan 27 23:08:32 so there's no "screenbuffer" and blit function? Jan 27 23:08:38 <_genuser_> groxx: I suppose, if you call the REST login authenticator over SSL, it should be just fine. The app can send the status cookie or a login token with each request for extra security. Jan 27 23:08:38 bugger Jan 27 23:08:38 opengl yes Jan 27 23:08:56 lol blit, I'm stuck in the Amiga age Jan 27 23:09:00 "blitter" Jan 27 23:09:08 _genuser_: yep. and cookie / token / whatever is basically all the same thing in the end, just use whatever is simplest to build. Jan 27 23:09:10 yes opengl now Jan 27 23:09:10 showing my age there Jan 27 23:09:15 opengl is fine Jan 27 23:09:21 also opegl about x100 easier then blitters Jan 27 23:09:21 SpriteMaster! Jan 27 23:09:22 <_genuser_> groxx: right https. so then I guess my data sync service for upload/download should really validate the login status so only a legit user is getting the data. Jan 27 23:09:26 I'll take a looksie Jan 27 23:09:41 There has to be a simple starter project like that around. Jan 27 23:09:57 <_genuser_> groxx: I guess I want to have a rough idea. For actual web dev work, I'll probably hire out a team. I'll do the android part. Jan 27 23:10:02 TheBunnyZOS, that's what I figured, just asking on here if anyone knew of one Jan 27 23:10:11 I'd be surprised if tehre wasn't Jan 27 23:10:52 http://developer.android.com/training/graphics/opengl/index.html Jan 27 23:10:55 theres those Jan 27 23:11:55 Spec-Chum: if you use unity will you have it for all platforms ? Jan 27 23:12:47 shmooz, sure, but that'll do everything for me, I wanted to learn android at the same time, same reason I chose xna over unity for windows too :) Jan 27 23:14:03 well you got Canvas to draw on Jan 27 23:14:06 _genuser_: there are a few overarching patterns for web + app, I don't have much of an opinion between them. all have plusses and minuses. Jan 27 23:14:31 _genuser_: webapp + native = use exactly the same API = usually one or the other is sub-optimal for speed / dev, but it has big benefits for reduced code. Jan 27 23:14:52 or GLSurfaces Jan 27 23:15:02 Jan 27 23:15:02 hi, what do specify to instead 500 500 to take screen's width and Jan 27 23:15:02 height in this statement: [00:12] Jan 27 23:15:02 Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888); Jan 27 23:15:05 ? Jan 27 23:15:10 _genuser_: entirely separate = everything is optimized = everything has separate paths. more testing needed, more varying performance, more "full stack" knowledge is valuable. Jan 27 23:15:12 sorry for formmating Jan 27 23:15:13 yep, canvas looks about right, I can code a spriteBatch alternative once I get up to speed Jan 27 23:15:14 :/ Jan 27 23:15:50 I'm the kind of idiot that codes his own engine rather than use one haha, I find I learn more that way Jan 27 23:16:08 yeah it's good practice Jan 27 23:17:10 if I used a GLsurface I'm gussing I'd have to dig deep into opengl to render to a texture, baby steps for now Jan 27 23:17:18 I'll probably work up to that tho Jan 27 23:17:25 I learn something new everytime I reinvent the wheel ;) Jan 27 23:17:51 <_genuser_> groxx: I think fully optimized code now only exists in theory classes. in real world, people are so hard pressed for time, it's always the shortest route. :) Jan 27 23:17:55 the guy who invented the wheel wasn't smart, the guy who invented the other 3, he was tho :p Jan 27 23:18:05 Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888). view.getWidth() does not work..app crashes. How do I make this statement 'take' values of screen's size? Jan 27 23:18:20 hey, ooh, createBitmap? Jan 27 23:18:27 can you draw to it? Jan 27 23:18:35 sounds promising Jan 27 23:18:42 yes Jan 27 23:18:43 what API level are you targeting taspat? Jan 27 23:18:49 is that in Android itself? Jan 27 23:18:56 sorry for all the questions Jan 27 23:19:05 but I want that size to be screen's size, I cant achieve it Jan 27 23:19:06 :/ Jan 27 23:19:37 _genuser_: definitely :) but native apps _generally_ have far more powerful and controllable caching capabilities, so you can benefit more from optimizing requests, prefetching, etc. websites meanwhile tend to run on stable, faster internet connections, with much higher data caps - a bunch of granular requests is easier and nobody notices the difference. Jan 27 23:20:42 also nobody cares if your website doesn't work if they're offline. the same isn't true for mobile apps. Jan 27 23:20:45 <_genuser_> groxx: true that. mostly my app will do everything natively. login and data sync (upload/download) will be the only thing where it will do over network to the "website" Jan 27 23:21:42 taspat, try the following Jan 27 23:21:59 Display display = getWindowManager().getDefaultDisplay Jan 27 23:22:06 create a new point Jan 27 23:22:24 m3chanical Jan 27 23:22:25 ty Jan 27 23:22:25 _genuser_: tbh I'd probably recommend keeping them fairly separate on the server, in that case. you'll have to rebuild the "ui" for the web from the ground up with totally different requests / request patterns, so don't bother keeping them the same. Jan 27 23:22:26 :D Jan 27 23:22:30 and... display.getRealSize(point you just created) Jan 27 23:22:33 im doing it right now Jan 27 23:22:36 hehe Jan 27 23:22:48 Display display = getWindowManager().getDefaultDisplay(); Jan 27 23:22:48 Point size = new Point(); Jan 27 23:22:48 display.getSize(size); Jan 27 23:22:48 int width = size.x; Jan 27 23:22:49 _genuser_: but make a clear API and stick to it if possible, it's easier to change your mind then if necessary. Jan 27 23:22:52 int height = size.y; Jan 27 23:22:56 it worked! Jan 27 23:22:59 :D Jan 27 23:22:59 taspat: use pastebin or something please Jan 27 23:23:09 yeah sorry Jan 27 23:23:21 this should help taspat Jan 27 23:23:22 http://developer.android.com/reference/android/view/Display.html Jan 27 23:23:23 here we go: canvas.drawBitmap Jan 27 23:23:28 cooking on gas now Jan 27 23:23:44 <_genuser_> groxx: you're thinking website standalone, and couple of REST services to login, download, upload, etc. and any more in the future? Is that it? Jan 27 23:23:57 taspat: http://pastebin.com/c0apkLpv Jan 27 23:24:32 Spec-Chum: for example you'd have a middle-ware php code that uses it's own user to login and then abstract the app's user logins from using the server or db logins Jan 27 23:24:36 Napalm has a much more elegant method Jan 27 23:25:04 shmooz, I've pretty sure that wasn't for me lol Jan 27 23:25:21 oh sorry, I mean _genuser_ Jan 27 23:25:24 _genuser_: basically, yeah. if you can share code easily enough it's usually worth doing, but I'd recommend a different URI path (e.g. site.com/api/whatever) so you have control over changes in the future. Jan 27 23:26:47 <_genuser_> groxx: yeah, I think I like that. I was thinking something similar where I'd have a "support" api for login/data-sync and leave the website design itself to web devs. Jan 27 23:26:57 _genuser_: under the hood you can do whatever, route requests to the same exact place, anything you like. but if for some reason you want/need to optimize the web or app in a different way, it's much easier to split the traffic. Jan 27 23:28:11 <_genuser_> groxx: I suppose php/mysql combo is a popular one. altho, I dislike php's performance. but I don't think I want a .NET solution either. JSP might be an option. but probably don't want nodeJS kinda stuff. Jan 27 23:29:11 OK, I need to inherit from SurfaceView, it seems Jan 27 23:29:40 php is kinda making a comeback with hhvm :) fwiw mysql has served me well. you can throw hardware at it and handle a _really_ large amount of data pretty easily. mariadb might be worth looking at if you like mysql but want something a little more modern, otherwise if you have no experience with any, I'd recommend postgres over mysql. Jan 27 23:30:18 so my app is published (alpha) i waited until the link took me to the listing (boring), my account and my test account are in the google group for alpha and also in the License Testing section in Account details... but i'm still getting "Authentication is required.." error when testing IAP. wtf? Jan 27 23:30:32 postgres appears noticeably more sane. I just have quite a bit of experience with optimizing mysql, and it's mature - it's a legit option, regardless of what people say. Jan 27 23:30:38 why would my theme look right in the Android Studio preview but not in the real app? the listview colors are reversed. Jan 27 23:30:41 <_genuser_> groxx: heh, I keep saying I'll let the web devs decide. but I still have different thought on what might be used. Jan 27 23:30:55 <_genuser_> groxx: with google, I guess postgres isn't that big a problem. I do have lot more experience with mysql. Jan 27 23:31:07 so if I'm testing app upgrades from the production version in the store, I need the actual production keystore, right? Jan 27 23:31:12 which I don't have at the moment... :( Jan 27 23:32:05 yeah I've always preferred postgres too but have usually had to deal with mysql Jan 27 23:32:20 matt_j: like, seeing if the app upgrades its data properly? Jan 27 23:32:25 <_genuser_> lol, I have always preferred microsoft sql server, 'coz it's point and click and anybody's a dba. Jan 27 23:32:37 eww Jan 27 23:32:41 groxx: yeah! Jan 27 23:32:52 right now the testers obviously can't install my dev version over top of the release Jan 27 23:33:06 _genuser_: heh. I've used it a bit - it does have some solid upsides. and from my limited knowledge it seems more optimize-able than most. Jan 27 23:33:08 but I don't have the keystore used to build the release Jan 27 23:33:26 emacs would be a great operating system if only it had a decent editor Jan 27 23:33:33 <_genuser_> groxx: point and click is great for devs. once we're done, we can hire a dba to tighten security and optimize. :) especially in the corporate world, they're using MSSQL anyway. Jan 27 23:33:40 where does the .apk pushed by android studio is stored? Jan 27 23:34:22 matt_j: afaik you're essentially stuck :| alternate options might include: A) with root, copy the /data/data/production.app.package/ folders to your dev ones. B) `adb backup production.app --no-apk` -> modify the backup file -> restore it over the dev one. no clue if that'll work, but maybe. Jan 27 23:34:24 <_genuser_> groxx: but for work, I also have a php/iis to run wordpress to track out projects and mysql for backend. mysql is also now hosting mantis for issue tracking. Jan 27 23:34:43 groxx: yeah... I'd rather not, but thanks :3 Jan 27 23:34:43 taspat, you mean when you run the application? Jan 27 23:34:46 arg all the google results say "yeah just publish your app and it will work" nope! already published but still "Authentication is required" when making a test purchase Jan 27 23:35:05 published and downloaded from the play store Jan 27 23:35:14 m3chanical Jan 27 23:35:15 yes Jan 27 23:35:45 check in /data/data/com..appName Jan 27 23:35:45 it isn't in system/app Jan 27 23:35:54 yeah apps get installed to data/data Jan 27 23:38:23 Hi. What's a good way that I can send notifications from a server over the internet to my app while it's connected, without rate limiting like GCM has? Jan 27 23:38:32 _genuser_: now that I've thought about it a bit more, definitely give mariadb a solid look. one of my biggest gripes with mysql is that it doesn't give you much data for finding out what's slow / why. last I saw, mariadb was waaay ahead there, and generally seems like a better option. Jan 27 23:39:09 <_genuser_> groxx: nice! let me google mariadb a bit. :) Jan 27 23:39:11 right, that's enough android related fun till tomorrow, nearly midnight here Jan 27 23:39:20 huge thanks for all you help Jan 27 23:39:22 Keavon: GCM's rate-limiting isn't usually a problem. are you actually hitting the limit? Jan 27 23:39:25 *your Jan 27 23:39:49 groxx: Yes, just in testing I am, and in practice I will need to send messages every few minutes to my app for up to an hour straight. Jan 27 23:40:15 weird Jan 27 23:40:21 i have colornote dir in data Jan 27 23:40:24 nothing else Jan 27 23:42:56 Keavon: if you truly need "push", afaik your options are largely: use a GCM alternative (Amazon's SNS looks pretty good, you can run your own mqtt / nsq), or use something like websockets (which are at least a bit more likely to already be integrated with whatever you're using) Jan 27 23:43:29 How are you supposed test the debug version of an app once you change the SHA1 certificate in the developer console to the release key? Am I supposed to link the same app with the debug key? Jan 27 23:43:29 groxx: I thought about websockets or maybe server sent events (SSE) Jan 27 23:44:05 uh, 50 cents per million push notifications... that's expensive... Jan 27 23:44:09 (for SNS) Jan 27 23:44:17 Keavon: if you just need to fake it, e.g. for testing, you can `adb shell am broadcast -something` to send a broadcast intent. _probably_ make a separate receiver and just forward it to wherever you process gcm messages. Jan 27 23:45:03 Keavon: you get a million free per month fwiw Jan 27 23:45:08 Yep, that too! Jan 27 23:45:15 But seriously, that's really cheap. Jan 27 23:45:24 Keavon: and SNS has different delivery capabilities Jan 27 23:45:35 I might get like 0.001% of the total free tier? Jan 27 23:46:08 groxx: During normal application usage I need to send messages every minute or two (potentially shorter intervals) for long periods of time (essentially I need no limiting) Jan 27 23:48:54 groxx: What do you mean by different messaging capabilities? All I need is to send something to the phone just to make it run a function. I don't need to include any message inside it. Jan 27 23:48:55 hm. _possibly_ google's CCS has different rate limiting that would allow that? Jan 27 23:49:55 groxx: For GCM sent via CCS rather than HTTP? Jan 27 23:50:02 (because I'm using cURL for testing right now) Jan 27 23:50:03 Keavon: ah. among others, iirc SNS has ways to guarantee delivery / query messages' state, and different ways to select which devices / users / etc you are sending to. CCS might match it now, but SNS was running before CCS was open. Jan 27 23:50:30 groxx: I don't need delivery guarentees or delayed delivery Jan 27 23:50:38 I've never built a CCS system, not sure what it takes to use it Jan 27 23:56:21 What the heck? Why does Amazon SNS have a documentation page about implementing GCM? Jan 27 23:56:24 http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html Jan 27 23:56:43 Providing a tutorial on how to use a competing product? O.o Jan 28 00:05:13 Keavon: its not competing per-see Jan 28 00:05:33 Keavon: they actually gain a larger user base by allowing integration.. the magic of cloud services Jan 28 00:05:49 Napalm: Hello again! I gave you the bounty since it has been past 24 hours. Thanks for your help yesterday! Jan 28 00:05:59 np Jan 28 00:06:54 Also I'm somewhat confused by SNS. When I sign up, it appears that it asks for what "platform" I will use, and one of them is GCM Jan 28 00:07:03 Does it just forward my requests to GCM? Jan 28 00:07:18 im not getting into AWS now.. i dont want a headache ;) Jan 28 00:09:45 I'm thinking about using Parse. Jan 28 00:10:23 i just did an update on my tablet, it was android 4.1.x on it, and now it has 4.2.2, the UI has changed and i don't like it at all, if i do a factory reset, will it revert back to the old version? Jan 28 00:12:42 osubuck_ #android-root Jan 28 00:15:53 anyone encountered having a gmail account listed in the testers in the play settings but yet it doesn't give them a test purchase? Jan 28 00:21:03 sometimes it takes like 15 minutes or so Jan 28 00:22:42 does being an alpha tester block them from the test purchase? Jan 28 00:23:50 I don't believe so Jan 28 00:23:54 it didn't seem to on my alt account and showed me the "this is a test purchase you will not be charged" message, but i didn't have a credit card on that account so didn't go through with it. Jan 28 00:24:00 what message is it giging you Jan 28 00:24:08 but the real tester went ahead and purchased with real money Jan 28 00:24:23 even though she's in the testers list and the alpha testers google group Jan 28 00:25:15 it was just the normal message with the credit card last 4 digits and the price and the buy button, no "test purchase" message. Maybe we didn't wait long enough. Jan 28 00:25:51 I don't know then. I set up a separated SKU to test with when I was doing it Jan 28 00:25:59 separate* Jan 28 00:26:23 everything billing related seems to take a while to update in Google Play though Jan 28 00:28:46 yeah. can be stress-inducing for sure. Jan 28 00:29:54 the real fun was trying to interface with the android publisher HTTP API Jan 28 00:42:54 I need to have one animation that scales a view in the x axis and another that scales it in y axis and each with different timings Jan 28 00:43:22 anyone know how I would do this? Jan 28 00:56:04 i just started today playing with android and should go and read more instead of asking Jan 28 00:56:10 but lets try once more Jan 28 00:56:11 :) Jan 28 00:56:24 http://pastebin.com/61EqxXJR Jan 28 00:56:24 "Hold my beer." Jan 28 00:56:34 lol Jan 28 00:56:37 taspat: http://developer.android.com/guide/index.html Jan 28 00:56:51 taspat: start reading down the guides from top to bottom on the left Jan 28 00:56:54 then your good Jan 28 00:57:28 can I create in view a layer/container where I can put buttons and normal stuff that is not canvas Jan 28 00:57:45 yes Jan 28 00:57:54 wihout using xml and all that stuff Jan 28 00:57:55 :) Jan 28 00:58:02 if you want Jan 28 00:58:34 but your doing yourself a disservice by not using the xml layouts Jan 28 00:59:04 ok, so how to "declare" bitmap/canvas in my xml? Jan 28 01:00:12 READ THE GUIDES Jan 28 01:30:05 "Support for running JUnit tests" got merged -- https://android-review.googlesource.com/#/c/123729/ Jan 28 01:30:38 That's on the studio-1.1-release branch. Hmm. Jan 28 01:31:00 i hope 1.1 makes AS actually usable on my work laptop. Jan 28 01:31:28 otherwise i'm going to have to figure out why it doesn't. and i don't want to have to do that. Jan 28 01:32:17 Is it slow on your laptop? Jan 28 01:33:04 godawful. Jan 28 01:33:25 it seems to have problems with gradle. it takes a (literal) hour or two to create a new project. Jan 28 01:34:41 Is there a firewall issue or something? Jan 28 01:34:51 The first build will download a lot of stuff, I guess. Jan 28 01:34:58 Though it didn't take very long here. Jan 28 01:38:41 given enough time, it will finish. over the course of a day, i can even get the result onto a device. Jan 28 01:38:55 ADT? runs great. :P Jan 28 01:39:17 It shouldn't be taking that long. Something is going wrong. Jan 28 01:39:34 obviously. :) Jan 28 01:40:04 i have a working tool, so i don't have the motivation to figure out what's wrong. nor does anyone else on my team care to investigate on their own machines, afaict. Jan 28 01:40:23 i filed an issue with helpdesk. i expect it to get closed with "uh. not our department." Jan 28 01:40:37 AS driving me nuts Jan 28 01:40:39 (not that i can blame them) Jan 28 01:40:42 retooling for it Jan 28 01:40:49 jcase: all the more reason to not give up a working adt. :) Jan 28 01:40:50 and it doesnt always want to work Jan 28 01:41:02 lewellyn, upgraded my build box Jan 28 01:41:04 System Information: Model: Mac Pro (Late 2013) • CPU: Intel Xeon E5-1650 v2 (12 Threads, 6 Cores) @ 3.50 GHz • Memory: 32.00 GB • Uptime: 20 days • Disk Space: Total: 999.38 GB; Free: 875.31 GB • Graphics: AMD FirePro D500, AMD FirePro D500 • Screen Resolution: 1920 x 1080 • OS: OS X 10.10.1 (Yosemite) (Build 14B25) Jan 28 01:41:11 old build environment doesnt like yosemite Jan 28 01:41:16 had to retool Jan 28 01:41:43 personal laptop is on 8 (not 8.1) and my work laptop is on 7. Jan 28 01:41:54 so i don't know of mac issues right now. Jan 28 01:41:57 in that case, im going to go with teh standard Jan 28 01:41:58 of Jan 28 01:42:00 blame windows Jan 28 01:42:07 im sure my issue is something about AS im not familiar with Jan 28 01:42:11 how do i run my app on android Jan 28 01:42:12 though, you're saying eclipse + adt doesn't work with yosemite? :( Jan 28 01:42:18 im using eclips adt Jan 28 01:42:25 and my abnormal build environment Jan 28 01:42:36 lewellyn, i probably does, but my plugins do not Jan 28 01:42:42 so they had to be retooled anyways Jan 28 01:43:05 oh. Jan 28 01:43:22 so if a mac is in my future, i can be a holdout for a while longer! yay! Jan 28 01:43:27 linuxuz3r: Connect a device and click Run. Jan 28 01:43:30 TacticalJoke: seen anything for ndk support in AS yet btw? Jan 28 01:43:48 lewellyn, ah no im sure its my janky stuff Jan 28 01:43:52 Nah, but I saw a changeset relating to the NDK yesterday. Jan 28 01:44:04 But it was a one-liner or something. Jan 28 01:44:25 (On the AOSP commit-view thing.) Jan 28 01:44:55 jcase: well, maybe i'll know soon enough. :) Jan 28 01:45:15 TacticalJoke: yeah. as much as google seems to be wanting the ndk to go away, they really can't kill it. Jan 28 01:45:45 lewellyn: where did you get that notion from? Jan 28 01:46:10 they appear to be push more native than less imo Jan 28 01:46:35 lewellyn: Android Studio is nice if you can get there. I recently switched. Jan 28 01:46:42 I'd say it's a better IDE in general. Jan 28 01:46:59 i'd say less show stopper bugs for me Jan 28 01:47:23 my issue right now is that it doesnt always seem to rebuild my dex unless i do a clean Jan 28 01:47:26 Napalm: 1) the ndk download page tries to steer you away from it. 2) various things on the developer site try to steer you away from it. 3) eclipse is no longer supported as a development environment for android, but android studio has no ndk support. Jan 28 01:47:56 TacticalJoke: but it's "yet another IDE" instead of being a plugin in the Eclipse To Rule Them All. Jan 28 01:48:04 lewellyn, http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/ Jan 28 01:48:26 i was about to dig that one out jcase Jan 28 01:49:15 I get the impression that they switched because IntelliJ gives them more control than targetting Eclipse's plugin system. Jan 28 01:49:27 s/targetting // Jan 28 01:49:30 lewellyn: and i see nothing on the android developer site that "steer's" you away from using it. Jan 28 01:49:58 lewellyn: they just explain what most intermediate/advanced developers understand Jan 28 01:50:18 lewellyn: hell, they just released a new version of the NDK Jan 28 01:50:47 Napalm: i don't have the pages open right now. i'm busy with other things. thanks for the link though. i didn't realize that AS finally got full C++ support. Jan 28 01:51:15 thank jcase Jan 28 01:51:18 does it handle doxygen-style comments properly for tooltips? Jan 28 01:52:05 full c++ support ? does interactive debugging work now ? Jan 28 01:52:25 g00s: i didn't read jcase's link. and i meant to thank him, not Napalm :P Jan 28 01:52:39 too many things i'm doing. no bandwidth for irc. :( Jan 28 01:53:04 lewellyn: I'm catching up somewhat, but: Studio handles javadoc comments, maybe not doxygen in general though :) Jan 28 01:53:15 personally I wish I could switch them all to markdown-like syntax Jan 28 01:53:39 AS's debugger is way nicer than Eclipse's. I just gave up with Eclipse's and didn't use it, but AS's came in handy recently when doing some slightly tricky parsing. Jan 28 01:53:42 groxx: i'm not rewriting C++ codebases to use JavaDoc comments :P Jan 28 01:53:47 I mean with Java. Not sure about C++. Jan 28 01:53:57 Jeb is bringing a new debugger Jan 28 01:54:01 Hi log cat always clears after my application crashes. Jan 28 01:54:01 lewellyn: ah. fwiw I think NDK support is still pending Jan 28 01:54:06 i assume bytecode level debugger Jan 28 01:54:09 that should be nice Jan 28 01:54:18 I have set the maximum number of messages to 0 which should stand for unlimitted in eclipse Jan 28 01:54:35 groxx: that's why i was asking if there was actual ndk support yet. Jan 28 01:54:43 tokam: Is a filter being set when it goes blank? Jan 28 01:54:45 It's totally annoying because I can not debug my application. What can I do? Jan 28 01:54:55 Yes a filter looking for my app. Jan 28 01:55:58 tokam: To be clear, are you saying that you see the exception message in LogCat and then the exception message disappears? Jan 28 01:56:02 Or you never see the message? Jan 28 01:56:07 yes Jan 28 01:56:22 I see the exception message and than it disappears. Jan 28 01:56:42 Hmm, weird. I think I'd try removing all filters and manually searching for it. Jan 28 01:57:21 Maybe just Ctrl+A, Ctrl+C (I forget how LogCat works in Eclipse, so there might be an easier way). Jan 28 01:57:46 that's annyoing Jan 28 01:58:34 I'm not saying that you should do this every time you get an exception. :) It's more like "Try this; if it works then it helps track down the problem". Jan 28 01:59:24 I was quick enough to export my exception as a txt file before it disappeared Jan 28 01:59:58 it is not included in the export of all messages without a filter Jan 28 02:00:39 because they get cleared too :( Jan 28 02:01:21 I set the log-cat Buffer to 0 but it behaves like it is limited Jan 28 02:01:59 I now set it to 1 and than to 0 Jan 28 02:03:36 have you tried playing with the optinos in Prefs > Android > LogCat? Jan 28 02:03:46 There are quite a few suggestions on SO (e.g., "restart Eclipse"). Not sure whether any is relevant in your case, but it's worth googling if you haven't. Jan 28 02:03:50 yes that's what I said Jan 28 02:03:52 i have it on the defaults but haven't experienced that issue Jan 28 02:04:23 lol now it seems like log-cat uses 1 as limit. or anything else because I do not get any more messages at all Jan 28 02:04:36 maybe try resetting perspective Jan 28 02:04:53 I change it to 10.000 and I do not get messages anymore too Jan 28 02:05:17 but starting my app from eclipse leads to it's staring on the phone Jan 28 02:05:31 I restart eclipser Jan 28 02:06:29 I now see messages again Jan 28 02:07:12 I usually just use adb logcat from the command line Jan 28 02:07:33 Lol if clicking arround in the eclipse preferences window now I do not get it updated. It stays in the general view but changes it's tab in the sidebare Jan 28 02:07:43 It's generally "Restart Eclipse first; ask questions later". :D Jan 28 02:08:00 I restart eclipse again. Jan 28 02:08:32 Maybe somehow I was too quick in the preferences menu the last time. Jan 28 02:09:30 It rebuilds my workspace what takes a while... Jan 28 02:09:51 now the pref. menu worked and i changed the log-cat limit to 0 Jan 28 02:10:10 messages are shown Jan 28 02:10:33 tokam: Are you gonna switch to Android Studio eventually? Jan 28 02:10:35 Just wondering. Jan 28 02:11:04 I hope to get it working with eclipse. Jan 28 02:11:23 this time it worked :) Jan 28 02:12:58 lol and I get the disappearing issue again :( Jan 28 02:13:16 What I did is: I once cleared the log-cat log manually and disabled autoscroll Jan 28 02:13:19 adb logcat from command line ;) Jan 28 02:13:28 and switched the filter to error Jan 28 02:14:11 why can not it work all the time? Jan 28 02:14:39 Because it hates you Jan 28 02:14:55 ok now it works. Jan 28 02:15:17 Maybe the clearance of the unlimited log took to long to terminate in a multithreaded setting? Jan 28 02:15:31 Levite: computer do not have feelings! Jan 28 02:19:27 Has anyone seen anything like this when using admob ads? i.imgur.com/Dgg1MQb.jpg Jan 28 02:23:23 Finally I got my application running :) Jan 28 02:23:34 A Harriss Feature point detector combined with a camera view :) Jan 28 02:47:58 I wonder whether Google will one day come out and say "We're moving towards Kotlin as our primary development language". Jan 28 02:48:12 I doubt it, but it'd be cool if they did. Jan 28 02:50:32 interesting to see the nordic semi nRF Master Control Panel app release notes have all this shit about Nexus 4 / 7 being busted Jan 28 02:51:22 if they can't get it to work, nobody can heh. soo the stuff in their release notes is like "totally busted, don't bother" Jan 28 02:51:49 "does not start encryption when connecting to bonded device. repairing may be required" woohoo Jan 28 02:52:11 wouldn't they pick Go if they were to switch languages? Jan 28 02:52:56 Kotlin compiles down to Java bytecode. Jan 28 02:53:01 but "nexus 4/7 don't allow unbound ble connections" lol Jan 28 02:59:30 TacticalJoke: the odds of this are zero but that shouldn't stop you from using Kotlin on Android, it works already very well Jan 28 02:59:58 Is the one-constructor-per-class thing a problem at times? **** ENDING LOGGING AT Wed Jan 28 02:59:59 2015