**** BEGIN LOGGING AT Wed Aug 20 02:59:59 2014 Aug 20 03:00:01 And it comes built into other ROMs as well; CM is just the first one that came to mind Aug 20 03:00:09 Yes, you have to be plugged in to USB first Aug 20 03:00:11 I know I had to plug my phone in to start it Aug 20 03:00:12 Yeah, it's not built into AOSP. There's apps for that though Aug 20 03:00:23 No app, just adb tcpip Aug 20 03:00:38 And ADB connect Aug 20 03:00:50 Would that work after USB disconnects? Aug 20 03:01:01 Yeah I know, but you can get an ADB WiFi widget that means you don't *have* to set it up via usb first Aug 20 03:01:10 Requires root Aug 20 03:01:17 Those require root Aug 20 03:01:19 Yep Aug 20 03:01:27 That would be a very bad thing Jabza.. Aug 20 03:01:39 it would be nice to have a straight up "enabled ADB over wifi" option in developer settings Aug 20 03:01:42 (like you just pointed out) Aug 20 03:02:01 CM has had it for forever Aug 20 03:02:09 I think since 2.3? Aug 20 03:02:19 I'm not sure if it's because adb-wifi is still slightly unofficial, or because it's considered insecure, or what Aug 20 03:02:58 Well yeah, because then anyone could connect to your phone at any time Aug 20 03:03:07 Not good Aug 20 03:03:10 I'm writing a program on paper, so I can't check easily, but is there for-each for String?:p Aug 20 03:03:50 You mean to access the characters? Aug 20 03:03:57 Yup Aug 20 03:04:20 I'd say no, it's not a container Aug 20 03:04:36 Not at my box either... Aug 20 03:05:16 there's probably an easier way to parse out a number :p Aug 20 03:05:41 Out of an expression Aug 20 03:06:27 Plus if you do it char by char, you'd have to watch some sort of stack, for multiple digita Aug 20 03:06:33 Digits* Aug 20 03:07:14 http://stackoverflow.com/questions/2451650/how-do-i-apply-the-for-each-loop-to-every-character-in-a-string Aug 20 03:08:55 I could just use a Scanner... Aug 20 03:09:56 Eh can't wait till I get to my laptop :p Aug 20 03:10:19 Hahaha Oops Aug 20 03:10:25 :D Aug 20 03:11:00 for (char ch: "xyz".toCharArray()) { Aug 20 03:12:21 Well, I'm off. Night all! Aug 20 03:12:37 Night! Aug 20 03:12:48 Night Aug 20 03:13:18 Bbiab Aug 20 03:17:59 frankdoyle there is a built in Scanner class. it takes care of some nasties like parsing floating point numbers, etc Aug 20 03:18:15 pass the recursive descent parser the tokens, profit ! Aug 20 03:20:37 Leeds is that HTC One M8 phone dual boot with WP, or are they 2 separate models? Aug 20 03:22:33 `yo yo yo! Aug 20 03:22:37 Two separate models, g00s Aug 20 03:22:56 hey ron_frown Aug 20 03:23:01 jabza ah k Aug 20 03:23:10 AIUI essentially identical hardware except for logos etc. - but yeah, separate models Aug 20 03:23:25 comment i read implied dual boot, but i guess i misread Aug 20 03:24:08 I think there was rumor of HTC and Windows working on a dual boot Android/WP phone, but it never happened Aug 20 03:24:55 if its identical HW it makes sense for them, sense hahahaha Aug 20 03:26:05 my theory is that HTC is fulfilling some contractual obligation for supporting WP - they know it won't sell, they don't really care, but they signed something a few years ago which committed them to delivering a flagship WP phone for N years in a row Aug 20 03:26:17 g00s: Aug 20 03:26:19 whats new Aug 20 03:26:53 Leeds perhaps. samsung plan b is tizen. htc doesn't have plan B .. without WP Aug 20 03:27:06 hey ron_frown , kjust reading about BLE thats all Aug 20 03:27:29 I'm imagining it as a three-way contract between Microsoft, HTC, and the carriers, and the Microsoft Android patent thing being tied in... break the contract, pay for the patents... Aug 20 03:27:42 also, I think tizen is rapidly fading as a plan b Aug 20 03:27:51 Leeds: thats about all ms has going for it Aug 20 03:28:22 I heard that they have lost BILLIONS on windows mobile and the surface tablets Aug 20 03:28:25 ron_frown: well, if this is something which has been ongoing for a few years, it's possible that WP wasn't such an obvious loser when the agreement was struck Aug 20 03:28:31 BILLIONS Aug 20 03:29:10 they publicly wrote off something like $900million for just the surface RT - or was it for both first-gen surfaces? Aug 20 03:29:40 well, i guess today ballmer resigned from the board Aug 20 03:29:52 g00s say what Aug 20 03:29:57 anyway, RT is dead, and WP is pretty close to being a zombie - dead platform walking Aug 20 03:30:07 dotDeb http://www.microsoft.com/en-us/news/press/2014/aug14/08-19steveb.aspx Aug 20 03:30:41 i'm guessing WP 9 and Windows 9 will almost be the same platform Aug 20 03:30:53 yeah apparently running a sports team is a full time affair? Aug 20 03:30:54 wtf? Aug 20 03:30:56 * dotDeb really hasn't been following microsoft news Aug 20 03:30:56 oh well Aug 20 03:31:16 I'm not so sure the guy has done much for ms Aug 20 03:31:17 everyone just switch to linux and be done with it Aug 20 03:31:21 ballmer's legacy is that he fucked up mobile Aug 20 03:31:32 ron_frown copyright law did a lot for microsoft Aug 20 03:31:36 ms's attempt at mobile was always fucked =) Aug 20 03:31:46 from ce/wm/windows phone Aug 20 03:31:48 all shitty Aug 20 03:31:48 dotDeb yeah, i'd like a ubuntu touch device someday, with nice apps, etc Aug 20 03:31:50 and I'm a ms guy Aug 20 03:32:03 ron_frown why? Aug 20 03:32:19 g00s ubuntu touch looks promising, Firefox OS looks like it has potential too Aug 20 03:32:35 dotDeb: I used to dual boot linux and windows, but then in a silly turn of events I accidentally deleted windows. I've been running linux distros ever since, and really the only reason I have to miss it is for gaming Aug 20 03:32:57 i dont think MS is out of mobile yet. their S30 phones bring people into the MS ecosystem, just on another platform Aug 20 03:33:02 jabza nice! what distro are you currently running, if you don't mind me asking? Aug 20 03:33:13 jabza also what games? Aug 20 03:33:16 I'm more interested in Sailfish OS. I don't think Ubuntu touch is going anywhere, and FFoS seems aimed at lower end hardware Aug 20 03:33:46 dotDeb: I've been sticking with Manjaro right now, though I have a small install of elementaryOS installed right now for messing around Aug 20 03:33:46 there are essentially three tiers of mobile platforms nowadays: Android & iOS, where *all* the money and *almost* all the users are... BB and WP, where there's *no* money, *almost* no users, and no future... and ubuntu/sailfish/firefox, where there are no users, no money, and no present, never mind a future Aug 20 03:33:58 * dotDeb looks up sailfish os Aug 20 03:34:13 jabza nice nice Aug 20 03:34:30 leeds what about replicant :P Aug 20 03:34:44 g00s: microsoft would have a *much* better chance of achieving anything if they gave up on WP completely, and concentrated on being *the* competitive non-native cloud/services platform for both iOS and Android Aug 20 03:34:53 Leeds i'm not sure. if you can put out a phone for $25 USD there is a future for that platform Aug 20 03:35:12 g00s: I'm assuming we're talking about smartphones here... Aug 20 03:35:27 Leeds: I think that's fairly accurate as of right now. Ubuntu Touch is a cool idea, though it seems super stagnant. FFoS is cool, it has some people, but it's really not making a dent in the market. Sailfish is taking their damn time in going anywhere. They don't even sell to the US yet, what's up with that? Aug 20 03:35:54 jabza: the main thing, I think, is that none of them have the sheer *money* to achieve anything Aug 20 03:36:26 honestly ms has been working on opensourcing a fair bit of their stuff Aug 20 03:36:29 more than I would epxect Aug 20 03:36:46 Leeds: that's true. I dunno, I think Sailfish has potential to go places, they just are taking things very slowly. It already can run Android apps. Though you're right; the lack of money is a real problem Aug 20 03:36:52 MS have poured *billions* of dollars into marketing, developer relations, etc. etc. - and they've got a 3% market share Aug 20 03:36:55 ron_frown: how so? Aug 20 03:37:10 they've opensoruced stuff like roslyn, their compiler as a service Aug 20 03:37:12 one thing WP and iOS have going for them, which android does not, is they are far closer to realizing a reality where your phone is your computer. all your apps loaded on the device, maybe data on device & cloud. plug into monitor, and its not just consumption but productivity. Aug 20 03:37:17 opensrouced a lot of their owin/web stack Aug 20 03:37:42 still a few years, but inevitable i think Aug 20 03:37:48 Honestly I don't understand how MS has such a terrible mobile ecosystem. There's *no* apps on their store, and I can't figure out why it's not going anywhere Aug 20 03:37:48 ron_frown: definitely, the new MS is not the old MS - and with Nutella's background in cloud/enterprise, I can see MS being - and staying - a successful player in that field Aug 20 03:38:39 jabza: I read this earlier today... http://www.howtogeek.com/194993/the-windows-store-is-a-cesspool-of-scams-why-doesnt-microsoft-care/ Aug 20 03:38:55 g00s: you saw the chromeos/android stuff at I/O, right? Aug 20 03:39:02 I'll have to give that a read, thanks Aug 20 03:39:03 yeah, yawned Aug 20 03:39:46 you have this frankenstein java stack that ... notbody wants to rewrite hugs apps in Aug 20 03:39:53 hahaha Aug 20 03:40:14 they cheat by taking the C shit and putting a java UI on it Aug 20 03:40:22 great architecture for an app Aug 20 03:40:28 afaik , its hopeless Aug 20 03:40:38 but fine for pretty viewers, etc Aug 20 03:40:46 I don't think anyone actually knows yet how they were actually doing it Aug 20 03:40:48 I dont think anything is hopeless Aug 20 03:41:29 I just think theres a ton about android that is unnecessary complexity Aug 20 03:41:32 honestly Aug 20 03:41:35 fuck java Aug 20 03:41:50 fuck java even though java isnt really java, and doesnt really even run as java bytecode Aug 20 03:42:07 if they are going to do that, why not use any other language Aug 20 03:42:23 its one big ass set of hoops youare jumping through Aug 20 03:42:32 when you've got a billion devices out in the world, people come to you Aug 20 03:42:50 pretty sad when writing java is actually more of a pain in the ass than just writing shit in c/c++/objc Aug 20 03:42:54 because thats the reality Aug 20 03:43:03 way way way easier to write shit in objc Aug 20 03:43:12 if google had easier time getting everyone on a version (or 2) of android, they could be in a better spot of making sweeping / breaking changes, like Android 3000 Aug 20 03:43:32 g00s: they've done mostly that Aug 20 03:43:44 the percentage of older androids marketshare out there Aug 20 03:43:50 is much much lower Aug 20 03:44:16 so this reminds me of computer simulations of evolution and average length expectance of a individuals in populations. the longer the individuals libed, the slower the populat adapted Aug 20 03:44:25 *lived Aug 20 03:44:41 the shorter the individuals lived, the quicker the population evolved Aug 20 03:44:54 well thats just evolution Aug 20 03:45:11 I dont think it'd be that hard to fix android in a lot of ways Aug 20 03:45:16 the platforms are evolving too Aug 20 03:45:25 I mean honestly... I've done a lot of the fixing in my environments etc Aug 20 03:45:34 and it just works Aug 20 03:45:46 i think it would be hard ... without breaking allmost all the apps Aug 20 03:46:00 for example, i still feel android permission system needs a huge overhaul Aug 20 03:46:07 I agree that would Aug 20 03:46:07 g00s: you know about python 3, right? Aug 20 03:46:20 i'm guessing they know this, but they simply can't because it would break so many apps Aug 20 03:46:27 who cares Aug 20 03:46:43 figure out some backwards compatibility layer Aug 20 03:46:53 get her done Aug 20 03:47:01 I hate this attitude a lot of people have Aug 20 03:47:04 Leeds well, i threw out Python 3000 just because i think thats where Guido wanted to get rid of a bunch of cruft Aug 20 03:47:16 "we have conflicting ideas or no idea about how to move forward, so we'll do nothing" Aug 20 03:47:30 g00s: and you know how long it's taken to be adopted? and how, as it's been adopted, more and more people have been moaning about it? Aug 20 03:47:59 i think a lot of it is because of package maintainers, etc Aug 20 03:48:08 like, you still have debian on 2.6 or some shit Aug 20 03:48:17 and library authors, too Aug 20 03:48:20 breaking backwards compatibility does not lead to all problems being solved Aug 20 03:48:40 it gives you a chance to bring all sorts of new and interesting problems into play Aug 20 03:48:52 well, hopefully not more problems :| Aug 20 03:49:11 after doing language design for 20 years, i'm sure guido was like "shit, i wish i didn't do that" Aug 20 03:50:03 well, maybe i shouldn't have compared a language to a mobile platform Aug 20 03:50:16 faulty analogy, but some things like technical dept still apply Aug 20 03:50:19 I just look at something like ubuntu, which is by no means perfect at all Aug 20 03:50:21 they both have ecosystems Aug 20 03:50:34 but they can update bits of the os and add functionality without replacing the whole god damn thing Aug 20 03:50:44 google is doing that to some extent with play services Aug 20 03:50:50 which kinda disagrees with me Aug 20 03:50:53 also, relevant, Guido was still working at Google when py3 was released :) Aug 20 03:52:03 google glass is clearly a beta at best... maybe even more of an alpha Aug 20 03:52:21 but you should see how they do some stuff on that Aug 20 03:52:22 man Aug 20 03:53:02 play services doesnt work on it, claims device is not authentic, so half ass implemented half of gtalk protocol indirectly Aug 20 03:53:25 they got gcm but dont expose that stuff in any way shape or form (had to use a old ass deprecated version) Aug 20 03:53:43 they actually went out of their way to cripple bt stack, bt config, input handling etc Aug 20 03:54:02 eh, I don't think glass is going to come to the mass/consumer market any time soon, in any recognisable way Aug 20 03:54:25 I work in an industry where it'd actually be a PERFECT companion to some of the stuff we do Aug 20 03:54:34 not end user consumer Aug 20 03:55:18 ron_frown i think you're one of the last glass users, or people that give a shit about it Aug 20 03:55:24 yeah Aug 20 03:55:31 time to move on Aug 20 03:55:33 :D Aug 20 03:55:37 I got invited up to bay area to partner with meta space glasses Aug 20 03:55:48 as soon as I started looking into it Aug 20 03:55:55 looked like a lot of smoke and mirros Aug 20 03:55:57 mirrors Aug 20 03:56:10 just hoping atheer labs didnt drop off the face of the planet Aug 20 04:09:10 Indeed, py3 barely has adoption Aug 20 04:09:27 appengine doesn't have it, and I haven't touched it at all either Aug 20 04:10:01 and just about all the Linux dists use some 2.7 by default Aug 20 04:45:40 hm, i guess i missed that in L google issues security patches through Play Services Aug 20 05:20:55 clearly one of the most important inventions, evar http://www.gizmag.com/butterup-butter-knife/33417/ Aug 20 05:22:10 g00s o.o Aug 20 05:22:42 g00s FWP to the max Aug 20 05:23:12 dotDeb what is FWP ? Aug 20 05:23:41 first world problem Aug 20 05:23:45 haha Aug 20 05:24:15 honestly just keep butter out in some sort of covered tray Aug 20 05:24:18 its not difficult Aug 20 05:24:40 perhaps even Aug 20 05:24:41 a butter tray Aug 20 05:25:33 yeah ... but if you don't use butter often it goes rancid :P Aug 20 05:25:44 so most of it is in the fridge Aug 20 05:26:18 not sure how long it lasts in a butter boat Aug 20 05:26:38 long Aug 20 05:27:58 FDA says 10 days according to reddit, the source of all truth Aug 20 05:29:25 le Aug 20 05:32:12 desmin88 or just use cold butter Aug 20 05:32:15 or no butter Aug 20 05:32:30 Just got around to flashing L onto my Nexus 7 Aug 20 05:32:31 so excited Aug 20 05:32:32 :D Aug 20 05:32:55 you'll have to change your nick to BrianL Aug 20 05:38:20 g00s: I saw the link and thought you were talking about this: http://jakewharton.github.io/butterknife/ Aug 20 05:38:32 it's good, but I don't know if it's *that* good :P Aug 20 05:38:36 it is Aug 20 05:38:57 quiet, you! :P Aug 20 05:39:02 JakeWharton, you're not biased now are you? Aug 20 05:39:16 i may be a little bit Aug 20 05:43:04 can confirm Aug 20 05:43:05 is good Aug 20 05:49:23 but does it blend? Aug 20 05:50:44 can confirm Aug 20 05:50:45 am blender Aug 20 05:52:01 blended* Aug 20 05:59:23 anyone know the name of that type of menu you get in certain apps when lets say they have [LOGO] Application_Name and you click the logo and the menu opens up from the left side? Aug 20 05:59:38 drawer Aug 20 05:59:44 ty Aug 20 05:59:50 it's an android design best practice nowadays Aug 20 06:00:00 might even be in support lib now Aug 20 06:00:22 yup i need to learn how to do that... it should be a support library or is a library? Aug 20 06:00:38 there are many implementations Aug 20 06:00:53 haven't looked at any recently tbh. quick google search i'm sure would turn up the top ones Aug 20 06:00:56 most commonly Aug 20 06:01:01 http://developer.android.com/training/implementing-navigation/nav-drawer.html Aug 20 06:01:07 9Patch or Shape Drawable for rounded corner? Aug 20 06:01:10 is the one that should be used, the support lib Aug 20 06:01:53 lnoskhen depends if you want the radius to be able to scale or not Aug 20 06:02:02 ty so much sarbs :D Aug 20 06:02:11 9p will be faster to render but Shape will scale the radius better Aug 20 06:02:51 sarbs: oh.. i see. Thanks :D Aug 20 06:02:56 last time I used shape drawable Aug 20 06:03:07 but yeah depends on situation Aug 20 06:05:26 i tend to prefer shapes Aug 20 06:05:33 ..but I'm not good at graphic things (such as images etc.) :D Aug 20 06:05:38 but thanks :D Aug 20 06:07:56 Sometimes after I run :app in Android Studio the gradle sync is lost. Is it a known issue? Aug 20 06:12:59 so I have a bunch of enum types/classes throughout my code, and most of them have a number of methods and static properties that are largely similar, such as "static T find(int)", "static T find(String)", "int value()", "static final T _default = ..." etc. is there a way to "generalize" this and have an enum class "import" or otherwise have these items attached so I don't have to reimplement them Aug 20 06:13:05 every time? Aug 20 06:15:30 well you cant have an enum extend another Aug 20 06:15:45 I know Aug 20 06:15:47 how about an interface Aug 20 06:15:52 with atleast the methods? Aug 20 06:16:45 that would only make it so all enums must have at least the specified methods, but wouldn't help me not have to reimplement the methods anyway Aug 20 06:16:59 yeah Aug 20 06:17:18 I know enums in java seem pretty static and rigid so my guess is this is not really doable, but I'd like a final confirmation Aug 20 06:17:34 I'm looking at JakeWharton's butterknife now and thinking maybe annotations are the way to go Aug 20 06:18:00 for what? Aug 20 06:18:08 how does butterknife relate to enums Aug 20 06:18:26 desmin88, it itself does not Aug 20 06:18:32 oh Aug 20 06:18:38 i thought those were related statements Aug 20 06:18:43 JakeWharton, for my problem with extending enums, see above Aug 20 06:19:19 you could do that for default maybe Aug 20 06:19:28 don't see how annotations would help the other tow Aug 20 06:19:29 two Aug 20 06:19:57 I don't know either, have never done my own annotations so I don't know what they're capable of :) Aug 20 06:20:14 if they all have int value() use an interface Aug 20 06:21:00 I could, but like I said I don't really need a way to "standardize" them, I need a way to not have to reimplement the same or similar methods all the time Aug 20 06:22:18 make an annotation processor Aug 20 06:22:24 to generate themf or you Aug 20 06:22:26 or something Aug 20 06:22:40 that's what I was thinking, if annotations allow for that Aug 20 06:22:43 or dont be pedantic and just copy and paste these methods and use an interface Aug 20 06:22:45 if they all implement an interface you can use a single method for find(Class cls, int value) Aug 20 06:22:55 same for String Aug 20 06:22:59 oooo Aug 20 06:23:00 i like it Aug 20 06:23:08 hmmm Aug 20 06:23:13 er, extends Enum* Aug 20 06:23:14 might want to do that then Aug 20 06:23:25 lol yeah, that part seemed a bit off Aug 20 06:24:38 thanks both, I'll look into this. have never done my own annotations so it might be fun too Aug 20 06:24:43 static T find(Class cls, int value) { for (T t : cls.getEnumConstants()) { if (t.value() == value) { return t; } } throw new IllegalArgumentException("No enum value for " + value + " on " + cls); } Aug 20 06:28:57 yeah, something like that, except for performance reasons I use a statically built hashmap and then just do a lookup and return _default if not found (as it happens in my case, most of the time an invalid value is not a fatal error or even a big deal) Aug 20 06:29:02 Hello friend, morning... Aug 20 06:29:33 I've never seen this HasValue thing, will have to look into that too Aug 20 06:30:02 please, i'm developing a news reader, please what's the best url or site i can get feeds apart from google feeds Aug 20 06:30:36 did you google? Aug 20 06:30:53 yes, i google but i'm not happy with what i'm seen Aug 20 06:31:01 i mean the result... Aug 20 06:31:21 a lot of wordpress sites are supposed to have RSS feeds Aug 20 06:31:41 yes... but this is android app Aug 20 06:31:59 ...so? Aug 20 06:32:04 not this again Aug 20 06:32:11 google news feed don't fetch images.. Aug 20 06:32:25 ravilov: i need new feeds api Aug 20 06:32:42 ok, you lost me Aug 20 06:32:47 news feeds api Aug 20 06:32:49 dont even try ravilov Aug 20 06:33:01 the more I work with Fragments, the more I hate them :/ Aug 20 06:33:33 really, i love fragments... Aug 20 06:33:40 i want to use this https://github.com/square/mortar Aug 20 06:33:44 but im not smart enough Aug 20 06:33:57 fragments are crap Aug 20 06:34:18 useful for trivial things Aug 20 06:34:23 awful for anything beyond Aug 20 06:34:47 uhmm.... jakeWharton Aug 20 06:36:39 JakeWharton does the square app use mortar? Aug 20 06:36:48 Register does Aug 20 06:37:23 They just need to rewrite fragmentmanager.. Or at least the back stack stuff Aug 20 06:39:35 life cycle handling can be a dick too Aug 20 06:41:12 Heyguys what is the best guide to read on adding libraries into my application i see in External Libraries i have android.support.v4 Aug 20 06:41:18 I belive I need that one for my drawer correct? Aug 20 06:41:32 yes Aug 20 06:41:47 so how can I add it into my libraries.. Aug 20 06:41:56 or what would be the best link to read on how to do that. Aug 20 06:42:23 yeah I have been avoiding fragments and made a app with master-detail, but not knowing fragments now makes me less hireable Aug 20 06:42:35 would just copying the .jar into your PROJECT/libs/ work? Aug 20 06:42:47 and possibly refreshing the project as well Aug 20 06:43:11 you can't argue with the person that's going to hire you about how fragments are crap Aug 20 06:44:23 sure you can, it shows attitude :p Aug 20 06:44:28 shmooz: would i do that via the project panel on the side or manually in the oflder i can move it, but i did not want to do that Aug 20 06:44:45 Psil0Cybin: I think you mean someone else Aug 20 06:44:59 woops ravilov sorry Aug 20 06:45:25 small laptop for irc hard to see just increased font :) i can copy it actually..but it asking for a new name and writting v4 would i justcopy the same name? over Aug 20 06:45:39 I would try simply copying the file into the folder, but this is just an assumption, I don't know if that will actually work Aug 20 06:45:42 is android studio ready yet? or do you still use eclipse? Aug 20 06:45:54 it's been a while since I did any android dev Aug 20 06:45:57 RustyShackleford: you can run both Aug 20 06:46:01 ravilov: it said cannot create a class file Aug 20 06:46:04 when I tried to copy it into my libs Aug 20 06:46:27 I've never actually used any external libs in my projects, but everytime I create a new project eclipse/adt forces support-v4 on me so I know at least deleting the file works for removing it from my project :) Aug 20 06:46:45 so maybe it is there and i am not looking in the right place Aug 20 06:46:46 Psil0Cybin, you didn't try to use your IDE to copy files, did you? Aug 20 06:47:27 ah Aug 20 06:47:32 i think it is already there Aug 20 06:47:40 looking into my folders manually under app/libs i see android.support.v4 Aug 20 06:47:47 RustyShackleford, most people here use something other than eclipse, many of them use AS; personally I like eclipse and I stick with it Aug 20 06:47:49 but inside os it is emptty Aug 20 06:48:55 vim FTW Aug 20 06:49:10 nano forever Aug 20 06:49:11 Leeds: that rhymes Aug 20 06:49:41 * Leeds is not a poet Aug 20 06:49:50 magnets on diskdrive! that's the way real devs edit files :p Aug 20 06:49:57 I wanted to be an emacs elite but never got used to it Aug 20 06:50:03 so I choose vim too Aug 20 06:50:16 thank god there's ideavim Aug 20 06:50:23 Leeds, vim is my preferred editor outside of android context, but I'm too new to android to go that path just yet Aug 20 06:50:33 ravilov, ideavim Aug 20 06:50:38 I might look into a vim plugin for eclipse though :) Aug 20 06:50:47 Zharf, I thought I just said I use eclipse Aug 20 06:50:50 ravilov, use idea or android studio and use ideavim Aug 20 06:50:50 if you are using the arrow keys to navigate in vim, you're not a real vimmer Aug 20 06:51:00 ravilov, eclipse vim plugins suck Aug 20 06:51:13 that's okay, that won't make me switch from eclipse Aug 20 06:51:20 well you suck Aug 20 06:51:25 thanks, you too Aug 20 06:51:59 there's no reason at all to use the piece of crap that forced me to change my nickname so that people would stop asking me questions about java Aug 20 06:52:46 oh, nice to see you again EclipseIsMagic8645 Aug 20 06:52:53 didn't recognize you Aug 20 06:52:56 Sorry better question how do i check if i have a support library would it be listed in build.gradle? Aug 20 06:52:57 ... Aug 20 06:53:14 Zharf, there's also no need to try to push your own preferences on others Aug 20 06:53:16 Psil0Cybin: compile 'com.android.support:support-v4:20.0.0' Aug 20 06:53:23 in dependencies { } block Aug 20 06:53:29 in the app's build.gradle Aug 20 06:53:36 in Android Studio Aug 20 06:53:37 ravilov, of course there is, liberating people from crap and providing them good tools instead! Aug 20 06:53:39 on your computer Aug 20 06:53:42 in your house Aug 20 06:53:56 JakeWharton, but on what planet? Aug 20 06:55:26 whatever this flat one we're on is called Aug 20 06:55:48 JakeWharton: i do not see that there so clearly its not added :P Aug 20 06:55:55 he doesn't have anything but eclipse I guess Aug 20 06:56:05 hmm i know its instaled via SDK manager on android studio, but i cannot figure out how to actually add it into my libs folder Aug 20 06:56:09 I like to call it Planet Janet... Aug 20 06:56:35 if you are using Android Studio you shouldn't have to touch jars Aug 20 06:56:36 * ravilov likes his Janet to be not so flat Aug 20 06:57:02 okay JakeWharton so how do i add it so i can add that compile ? Aug 20 06:57:12 i told you up above Aug 20 06:57:25 oh i just add that line Aug 20 06:57:28 and i am good to go? Aug 20 06:57:29 in the app's build.gradle put the "compile" line inside dependencies { } Aug 20 06:57:41 and then click refresh after it (hopefully) prompts you Aug 20 06:57:42 but i did not put anything into the libs folder Aug 20 06:57:48 okay Aug 20 06:57:50 yes, that's the beauty of it Aug 20 06:58:33 welcome to first class dependency managment Aug 20 06:58:41 haven't seen RomainGuy in awhile Aug 20 06:58:54 wonder what he's upto Aug 20 06:59:41 robots Aug 20 06:59:59 JakeWharton: it says Could not find com.android.support:support-v4.20.0.0 Please install the Android Support Repo from the Android SDK Aug 20 07:00:01 but I already have it installed Aug 20 07:01:03 I need my tablet to hover in position, one of these days ... Aug 20 07:02:41 try moving to ISS Aug 20 07:03:42 anyone remember the game Tapper? I think that would play really well on mobile devices Aug 20 07:03:56 Psil0Cybin: what's in your local.properties file? Aug 20 07:04:52 my next app is either a game or a news reader like FlipBoard Aug 20 07:05:00 JakeWharton: it is a sdk.dir=shows my linux d Aug 20 07:05:02 dir Aug 20 07:07:14 JakeWharton: wierd story when i remove your class path it adds support-v9.149.1.0 from External Libraries when I add the class path to build.gradle it removes it from External Libraries Aug 20 07:07:24 and all i see is JDK and Android API 19 PLatform Aug 20 07:07:47 OH Aug 20 07:08:10 I was looking in the wrong build.gradle, sorry i see compile com.android.support:support-v:19.1+ Aug 20 07:08:13 * Psil0Cybin hits head Aug 20 07:08:41 it just adds it i guess to External Librarries when its in the project? Aug 20 07:10:56 JakeWharton: sorry which build.gradle would it be in under app> Aug 20 07:13:19 hey ive got a nook simple touch and it has lists where it will be like page 1, page 2 and you swipe to get to the next, it doesnt scroll Aug 20 07:13:38 and im trying to implement this into a listview, is this built into android? Aug 20 07:13:57 logan0405: yes Aug 20 07:14:02 sweet Aug 20 07:14:08 link to info? Aug 20 07:14:11 or whats it called Aug 20 07:14:35 logan0405: search for Android ListView examples Aug 20 07:14:44 d.android.com Aug 20 07:14:46 as always Aug 20 07:15:18 tyvm Aug 20 07:15:33 logan0405: I suggest you find one that uses a Custom Adapter that extends BaseAdapter, and can load undetermined amount of items efficiently Aug 20 07:15:50 rooted a nook simple touch trying to replace default launcher so i dont get way glitchy graphics Aug 20 07:16:11 alright Aug 20 07:16:14 ill look into it Aug 20 07:17:20 hi Aug 20 07:17:26 can someone help me with this Aug 20 07:17:26 http://stackoverflow.com/questions/25398852/normalize-image-lightness-pasted-on-another-imagein-android Aug 20 07:25:27 anyone have references/source codes for android ui with xmls aside from android ui patterns? Thanks Aug 20 07:25:44 just getting started to play around with ui :D Aug 20 07:25:48 Thanks Aug 20 07:28:00 How can some padding be set between track and thumb parts of a Switch in Android? Aug 20 07:28:10 why I am getting `java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String` in line 3 http://pastie.org/9488192 Aug 20 07:29:09 presumably because the second argument is a String, not a Map Aug 20 07:31:04 JakeWharton: hi :) , but looks like it is Map http://pastie.org/9488196 Aug 20 07:31:52 was just a guess Aug 20 07:33:21 Hello everyone, has anyone tried to use the latest google api for requesting location updates through GoogleApiClient, LocationServices, FusedLocationProviderApi and LocationRequest? Do I have to have a custom implementation of FusedLocationProviderApi or is this object provided through LocationServices.FusedLocationApi? I couldn't find anything on the internet Aug 20 07:42:26 is there a way to automate upload of my signed APK to the Play alpha channel? Aug 20 07:43:13 use the Play Store developer API Aug 20 07:43:31 https://developers.google.com/android-publisher/ Aug 20 07:43:53 JakeWharton: ah, thanks :) Aug 20 07:45:00 the API looks very nice - im wondering why there isn't yet a plugin for Android Studio Aug 20 07:46:03 Hello, World! Aug 20 07:47:18 hey i cant get this list view to be full screen, im using fill_parent on everything Aug 20 07:48:08 show the layout xml Aug 20 07:48:31 oooh Aug 20 07:48:33 forgot padding Aug 20 07:48:37 hold on lemme try this Aug 20 07:48:41 also you should use match_parent, not fill_parent Aug 20 07:48:48 i cant Aug 20 07:48:52 devving for old version of android Aug 20 07:48:55 2.1 Aug 20 07:49:06 yep the padding was the problem Aug 20 07:49:08 I'm pretty sure match_parent existed in 2.1 Aug 20 07:49:20 when i try to use it it gives me an error Aug 20 07:49:55 oh no you're right! Aug 20 07:50:03 it was renamed in 2.2 :) Aug 20 07:50:04 heh heh Aug 20 07:50:14 my bad Aug 20 07:50:24 all good brotha Aug 20 07:50:33 or sister :) Aug 20 07:50:37 but ive never met a girl in a irc room Aug 20 07:50:40 :p Aug 20 07:50:44 hahah Aug 20 07:50:49 trudat Aug 20 07:55:17 http://pastebin.com/Hvfradf6 Aug 20 07:55:20 this look alright? Aug 20 07:55:28 its the xml for what i cant get to fill screen Aug 20 07:55:41 not sure if i need more files Aug 20 07:55:48 but brb getting a glass of water im parched Aug 20 07:55:57 yeah I don't see anything wrong with it Aug 20 07:55:58 BoD, no big difference, fill_parent is semantically the same as match_parent Aug 20 07:56:07 exactly the same* Aug 20 07:56:10 ravilov: I know Aug 20 07:56:21 but since one is deprecated, it is good to use the other one ;) Aug 20 07:56:30 unless you can't of course Aug 20 07:56:57 well hopefully his IDE would warn him about it it's an issue ;) Aug 20 07:57:15 can some one help me with this Aug 20 07:57:17 http://stackoverflow.com/questions/25398852/normalize-image-lightness-pasted-on-another-imagein-android Aug 20 07:58:13 not using a ide Aug 20 07:58:13 :) Aug 20 07:58:15 haha Aug 20 07:58:23 just command line Aug 20 07:58:44 logan0405: that's good, you'll learn better Aug 20 07:58:55 yeah Aug 20 07:58:58 i find eclipse more confusing Aug 20 07:58:59 haha Aug 20 07:59:11 cause it hides stuff from me Aug 20 07:59:16 and i try to figure out what its doing Aug 20 07:59:16 molavy, the fact nobody responded the first time probably means nobody knows, no need to ask again Aug 20 07:59:19 you'll have a better clue what IDE's do under the hood Aug 20 07:59:56 logan0405, in that case it might not be a bad idea to include lint in your toolchain if you don't have it already Aug 20 08:00:24 lint Aug 20 08:00:26 havent heard of it Aug 20 08:00:31 i probably wont get too into app dev Aug 20 08:00:35 my first app here Aug 20 08:00:40 just creating a very simple launcher Aug 20 08:00:48 never head of lint? oh dear Aug 20 08:00:52 ahha Aug 20 08:00:54 google Aug 20 08:01:12 nice Aug 20 08:01:15 ive heard of stuff like it Aug 20 08:01:50 its what you find deep in your pocket when you're looking for money and there isn't any Aug 20 08:01:54 logan0405: can you show us a screenshot maybe? Aug 20 08:02:00 sure Aug 20 08:03:17 https://i.imgur.com/s3KxzP1.png Aug 20 08:04:13 ah yeah this is odd indeed :) Aug 20 08:04:18 hmm Aug 20 08:04:51 show us the java Aug 20 08:05:17 ok 1 sec Aug 20 08:05:19 pastebinning Aug 20 08:05:52 don't forget the layout xml to Aug 20 08:05:54 too* Aug 20 08:05:57 http://pastebin.com/fn1JYihX Aug 20 08:06:02 java^ Aug 20 08:06:22 also when doing screenshots, there's no need to snap the *entire* screen, lol Aug 20 08:06:30 yeah Aug 20 08:06:33 haha Aug 20 08:06:44 couldve gimped Aug 20 08:06:45 but Aug 20 08:06:47 ya know Aug 20 08:06:52 u guys get to see my desktop Aug 20 08:06:52 :D Aug 20 08:07:37 activity_apps_list is the one you showed before? Aug 20 08:08:28 (also why do you call loadApps twice?) Aug 20 08:08:31 http://pastebin.com/cidBqknN Aug 20 08:08:32 layouts Aug 20 08:08:37 i did Aug 20 08:08:37 ? Aug 20 08:09:00 well Aug 20 08:09:00 know your code! Aug 20 08:09:02 of course Aug 20 08:09:02 activity_apps_list != activity_apps Aug 20 08:09:04 just to make sure Aug 20 08:09:09 i really loaded those freakin apps Aug 20 08:09:10 lol Aug 20 08:09:11 jk Aug 20 08:09:14 i missed that Aug 20 08:09:18 enter isn't a punctuation key, please be more considerate Aug 20 08:09:23 ok sorry Aug 20 08:09:52 are you sure you're not touching the wrong file? Aug 20 08:10:22 oh Aug 20 08:10:24 my bad Aug 20 08:10:27 also for list_item you should use fill_parent for width Aug 20 08:10:33 in the pastebin i meant to write activity_apps_list Aug 20 08:10:36 ok Aug 20 08:11:20 try to change the width of the items, even though I wouldn't think that would cause your issue... but it makes more sense with fill_parent anyway do you agree? Aug 20 08:11:55 hm Aug 20 08:12:01 change the width of the items from fill_parent Aug 20 08:12:04 to a dp? Aug 20 08:12:06 no Aug 20 08:12:10 from wrap Aug 20 08:12:16 _content to fill_parent Aug 20 08:12:26 yep i tried that no apparent change Aug 20 08:12:34 ill try restarting avd Aug 20 08:12:41 very odd Aug 20 08:12:55 think its cause emulator? Aug 20 08:13:14 not sure but yeah maybe something is preventing your changes to be taken into account Aug 20 08:13:17 also im on a rather old version of android, 2.1 Aug 20 08:13:38 do you use ant? if yes try ant clean Aug 20 08:13:42 ok Aug 20 08:13:45 i do yes Aug 20 08:14:06 yeah you were right Aug 20 08:14:11 sometimes iffy with that Aug 20 08:14:36 iffy? Aug 20 08:14:45 yeah it changed when i did ant clean then rebuild Aug 20 08:14:48 wonder why Aug 20 08:14:55 I've seen this behavior in some apps, often times it has to do with enforcing a certain screen size Aug 20 08:15:00 possibly in manifest or something Aug 20 08:15:19 I guess your layout xmls were not recompiled Aug 20 08:15:23 weird Aug 20 08:15:31 it doesnt compile them each time? Aug 20 08:15:46 to be honest, on the command line I'm not sure how it works :) Aug 20 08:16:05 hm Aug 20 08:16:19 I mean it tries to be smart and only recompile them when needed Aug 20 08:16:24 but does it work well? Aug 20 08:16:39 it did change once i cleaned, but still cant get it to take up whole screen Aug 20 08:16:48 when I use ant it's only to make fresh builds (no incremental) Aug 20 08:17:00 whats the other option to compile besides ant debug Aug 20 08:17:03 just ant? Aug 20 08:17:27 just ant will list the available tasks Aug 20 08:17:33 oh Aug 20 08:17:46 how do i compile a non-debug Aug 20 08:17:54 ant release I think Aug 20 08:18:52 alright Aug 20 08:19:16 i was gonna try that to see if it made difference, but i cant install a 'unsigned' apk i think Aug 20 08:20:34 huh? Aug 20 08:20:39 release is just as signed Aug 20 08:20:51 if not even "more" signed Aug 20 08:21:05 im not sure it says: Aug 20 08:21:36 failure [INSTALL_PRASE_FAILED_NO_CERTIFICATES] Aug 20 08:22:00 when i tried to install release-unsigned Aug 20 08:22:05 ... Aug 20 08:22:22 PARSE* Aug 20 08:22:23 did anyone ever say you should use release-unsigned? Aug 20 08:22:39 logan0405, for a non-dev that claims he will develop no deeper interest in deving apps, you sure want to choose the most difficult and hardcore path to your goal Aug 20 08:22:48 haha Aug 20 08:23:09 the Android set of text sizes mentioned here - http://developer.android.com/design/style/typography.html - are the actually defined anywhere so I can use it in XML and Java? Aug 20 08:23:16 you must have a ton of spare time on your hands and nothing better to do with it Aug 20 08:23:17 im not saying i have no programming experience Aug 20 08:23:22 just not well versed Aug 20 08:23:48 nice got the menu on the left :D just like it suggested online :D although the first application android provided was a little confusing. Aug 20 08:24:03 had to do plenty more googling on a step by step to impliment it in a working application. Aug 20 08:24:03 if I were you, I'd try to go the IDE way first, and then eventually try to understand how it works under the hood, logan0405 Aug 20 08:24:14 ok ill give it a try Aug 20 08:24:21 i doubt the IDE will change my result in this app though Aug 20 08:24:36 it won't change the way your layout behaves, no Aug 20 08:24:52 so why should i use an ide? Aug 20 08:25:13 but it will rid you of all this fiddling with various kinds of builds and stuff Aug 20 08:25:15 ravilov: question before in the GUI of Android Studio i was able to move text around in the Design View and pick a spot, now it gives me only 8 options of where text can go, top 3 middle 3 bottom 3... Aug 20 08:25:18 is that normal? Aug 20 08:25:24 well i dont really mind it Aug 20 08:25:29 plus, it might report some obvious errors with your app Aug 20 08:25:39 'cause IDEs do that Aug 20 08:25:40 i just found eclipse confusing Aug 20 08:25:52 if you never worked with it before, it can be Aug 20 08:25:54 I also wonder if there are design guidelines for default margins / padding values anywhere in the docs - I can't seem to find it (except for button heights and diff. icon sizes) Aug 20 08:26:09 Psil0Cybin, um ok? Aug 20 08:26:16 Psil0Cybin, I don't know Aug 20 08:26:32 I never use any kind of visual editor except to check my manually created layout Aug 20 08:26:53 I always despised point-and-click UI design Aug 20 08:38:21 Psil0Cybin: it depends on the layout Aug 20 08:38:54 ravilov: that is what i am doing, it just wierd when i try to move the text from that layout after adding it manually it wont let me like free flowingly select Aug 20 08:38:58 it wants to give me just options lol Aug 20 08:39:17 clean Aug 20 08:42:21 I'm just wondering, what's an "end edge" of a view? (as opposed to "right edge") Aug 20 08:42:52 GrayShade: in some languages it would be the left edge like arabic and hebrew Aug 20 08:43:58 oh.. Aug 20 08:45:04 thanks, I tried to search for them, but I didn't find anything Aug 20 08:46:19 http://stackoverflow.com/questions/15827448/what-is-the-difference-between-androids-layout-alignright-and-layout-alignend now this is useful :D Aug 20 08:47:52 GrayShade: in the new AS editor rl rules are easier, I just joined but assume thats the topic :) Aug 20 08:51:00 StingRay_: right. I was wondering what are the start and end edges. AS gives me some tooltips about RTL languages Aug 20 08:51:04 so you're right Aug 20 08:52:01 well you have now, topBottom, BottomTop, RgihtLeft whichs is (source)(dest) Aug 20 08:53:09 I didn't notice those; anyway, I mostly want to educate myself a bit on android dev Aug 20 08:58:06 anyone wondering it worked when i tried on a android 4.1 emu Aug 20 08:58:13 4.4* Aug 20 09:03:59 hood to know Aug 20 09:04:03 *good Aug 20 09:07:55 I'm creating a Service that periodically gets a GPS fix. Is, in this case, using LocationManager's requestSingleUpdate better than using requestLocationUpdates? Aug 20 09:08:40 and, if that is the case, can NETWORK_PROVIDER and GPS_PROVIDER be specified for that request, depending on availability? Aug 20 09:09:38 have you thought of using Google Play Services? Aug 20 09:09:55 Yes, but I want to use this in case the device doesn't support them. Aug 20 09:10:51 what do you mean by "availability"? Aug 20 09:11:07 you mean in case the device doesn't have a GPS? Aug 20 09:11:45 in case the device doesn't have access to the internet, as a GPS takes up to 15 minutes for its first fix Aug 20 09:11:51 or mobile data Aug 20 09:12:29 I'm tring to be as fault-tolerant as possible Aug 20 09:13:08 well if you don't have internet the network provider won't work either will it? Aug 20 09:14:05 Yes, precisely. I was thinking I could use a boolean isNetworkEnabled from locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER) Aug 20 09:14:31 and avoid the rest to save battery life Aug 20 09:16:34 I think... you should use play services :) are you sure you need the case where it's not available? Aug 20 09:16:43 anybody have worked retrieving APN settings for MMS Aug 20 09:16:49 like... you target the kindle or something? Aug 20 09:17:13 min2 yes Aug 20 09:17:17 and no not possible Aug 20 09:17:26 hi i am getting an issue in kITKAT Aug 20 09:17:34 specially samsung galaxy S4 Aug 20 09:17:48 i am using default source code for sending an MMS Aug 20 09:17:49 I'm targetting old devices as well, and yes, I'd love to only use google play services, it'd make everything way easier :) Aug 20 09:18:10 min2: what kind of app is this, and what are you attempting to do ? Aug 20 09:18:18 there maybe another way :) Aug 20 09:18:22 like, older than the min of play services? which is 2.2 If i'm not mistaken Aug 20 09:18:30 i am trying to send MMS programmatically Aug 20 09:18:43 yes, but for what kind of app ? Aug 20 09:20:11 Sorry but i didnt get you! it just receive the last MMS in your phone and forward it to another mobile number Aug 20 09:20:32 ah ok, and does the user neet to be aware of this ? Aug 20 09:20:45 yes Aug 20 09:20:49 BoD, as old as possible, but that's a good thing to know, though. I think I'm inclined to ditch this idea and proceed as you recommend Aug 20 09:20:53 but without user interaction Aug 20 09:20:59 since 2.2 is old enough Aug 20 09:21:20 it should send in background Aug 20 09:21:23 then I maybe you could just read and inject to the content provider ? Aug 20 09:21:33 then let his/her native app deal with it Aug 20 09:21:44 although on kitkat you have to be the primary messaging app Aug 20 09:21:48 yes i am able to achieve everything Aug 20 09:22:04 only issue i am getting retrieving APN setting in S4 Aug 20 09:22:23 else its working on MOTO G same version Aug 20 09:22:24 you can get it from any other phones ? Aug 20 09:22:32 hi yall Aug 20 09:22:44 cause that is not guarenteed at all and will mostly fail Aug 20 09:23:03 min2: they took out the permissions to do it Aug 20 09:23:13 made it system only no ? Aug 20 09:23:17 BoD, what if there is no internet available or mobile data and I only have GPS available? Would Google Play Services still work? Aug 20 09:23:26 i have added all the permission Aug 20 09:23:31 I'm guessing in this case I do need to fallback on LocationManager Aug 20 09:23:36 if i hardcoded the apn setting in code then its working Aug 20 09:23:44 android does not give you the permissions unless you are a system app Aug 20 09:24:03 to read the apn list on the device Aug 20 09:24:18 then why it is working in MOTO G which is not rooted device Aug 20 09:24:41 pastebin the code that is reading the apn database Aug 20 09:24:55 cause to me there is no way to do it Aug 20 09:25:05 and I have spent quite a large amount of time on it Aug 20 09:25:14 ohh thats really great Aug 20 09:25:18 well sorry, there is no >75% way of doing it Aug 20 09:25:29 as in may work 25% of the time Aug 20 09:25:38 based on version/manuf./rom Aug 20 09:26:10 hey guys, how would i go about debugging native threads ? specifically C# threads from a unity app Aug 20 09:26:21 http://pastebin.com/Qxtmww7e Aug 20 09:27:42 min2: ah code you didn't write :) and yes it may work on a motoG old, but not on any newer phones/OS i dont think Aug 20 09:28:25 http://stackoverflow.com/questions/13453640/read-apns-in-android-4-2 Aug 20 09:29:04 not that there is no 100% way Aug 20 09:29:08 note* Aug 20 09:29:38 ok thanks i will try with this way Aug 20 09:31:15 http://pastebin.com/myMfttLm Aug 20 09:31:38 this is the actual query to database for getting APNs Aug 20 09:34:57 if I am creating a geofence this way: http://pastebin.com/imya6bGh Aug 20 09:35:12 how would I cancel that? Aug 20 09:36:16 min2: I know, and it will fail on 90% of devices Aug 20 09:36:30 okies Aug 20 09:36:46 it means there is no way to solve this issue Aug 20 09:36:48 ? Aug 20 09:36:52 there is Aug 20 09:36:58 what is that Aug 20 09:37:03 you have access to two numbers and a name Aug 20 09:37:14 the carrier op, the mnc and the mcc Aug 20 09:37:41 with a local store of APN's you can work it out what it is Aug 20 09:37:43 quite easy Aug 20 09:38:10 you mean user will input these data into the app Aug 20 09:38:12 or thats the way I do it Aug 20 09:38:22 user ? Aug 20 09:38:24 no Aug 20 09:38:30 database of APN's Aug 20 09:38:58 how can i achieve this? Aug 20 09:39:09 get a list of APN's and put them in a database Aug 20 09:39:18 then query with the columns that you can get Aug 20 09:39:27 presto, APN settings Aug 20 09:39:30 :) Aug 20 09:39:39 but how can i get the list of APNs ? Aug 20 09:39:49 it is not allowing me to get the list of APNs Aug 20 09:40:02 throwing error! is there any other way Aug 20 09:40:21 I know you dont have permissions Aug 20 09:40:26 they are not given to apps Aug 20 09:40:46 you get a list of apns from "insert google search here", then put them in a local database Aug 20 09:40:59 then using opnmae, mnc and mmc do lookups to get the settings Aug 20 09:41:05 opName* Aug 20 09:41:19 ohhh Aug 20 09:42:19 but my question is this, this is not a full app right ? Aug 20 09:42:36 Don't mean to interrupt, StingRay_, but do you think you can take a look at my question when you have time? Aug 20 09:42:51 min2 are you going to support kitkat ? Aug 20 09:42:51 yes Aug 20 09:43:00 oh it is a full app ? Aug 20 09:43:02 its also forwarding sms Aug 20 09:43:12 redirect sms and mms Aug 20 09:43:21 to another number Aug 20 09:43:28 mine can do that too Aug 20 09:43:34 with a filter/rule ;) Aug 20 09:43:42 yes Aug 20 09:44:09 i am not gonna support KITKAT :( Aug 20 09:44:18 really ? Aug 20 09:44:39 wow, thats targeting a decreasing market though Aug 20 09:44:48 not good Aug 20 09:44:52 there should be MMS api in next release Aug 20 09:45:00 no Aug 20 09:45:05 y Aug 20 09:45:06 ? Aug 20 09:45:20 cause it's not a unified thing and just bits of everything Aug 20 09:45:34 mms = content provider, http req, broadcast sms's Aug 20 09:45:37 means? Aug 20 09:45:40 so all there Aug 20 09:45:45 yes Aug 20 09:46:15 but carriers implement different things Aug 20 09:46:25 so cant really do a 1 fit solution I thin Aug 20 09:46:28 K Aug 20 09:47:07 yes it seems you are right Aug 20 09:47:21 but why no kitkat support ? Aug 20 09:47:21 i dont have much experience Aug 20 09:47:25 creating your own mms app is PITA, if you're trying to implement all features Aug 20 09:47:38 detachYo_: not really Aug 20 09:47:42 why do files show up in the "assets" folder in the eclipse package explorer, but not in my file system of OSX (and sometimes vice versa)? Aug 20 09:48:37 attach photos, files, audios, make sure things are right format, limit stuff Aug 20 09:48:42 StingRay ... detachYo is waiting for you :) Aug 20 09:48:45 by PITA i mean you can't do it in a day :) Aug 20 09:48:56 I did Aug 20 09:49:09 you're a badass then :) Aug 20 09:49:15 and I aint even half a dev of what some others are here Aug 20 09:49:22 I'm an art person Aug 20 09:49:26 yup, remember that Aug 20 09:49:50 coffee time Aug 20 09:50:02 good night yall Aug 20 10:00:59 is there any java syntax to check if a class implements a certain interface? something similar to "someObj instanceof SomeClass" but for classes instead of instance objects Aug 20 10:01:06 java construct* Aug 20 10:03:06 ravilov: http://alvinalexander.com/java/java-instanceof-interface-example Aug 20 10:03:23 anyone know what the gradlew file is used for in the directory of my project? Aug 20 10:03:28 ravilov: someObj instanceof SomeInterface should work Aug 20 10:03:48 er Aug 20 10:03:55 that's exactly what I *DON'T* need Aug 20 10:04:03 I have a Class Aug 20 10:04:07 not an instance Aug 20 10:04:16 ravilov: that works for both Aug 20 10:04:21 ravilov: otherwise use reflection Aug 20 10:04:24 it doesn't though Aug 20 10:04:40 that's what I was wondering, is there a nice way to check for this or do I have to resort to reflection Aug 20 10:04:43 guess I do Aug 20 10:04:53 ravilov: if you don't have an instance reflection is the ONLY option Aug 20 10:05:01 Hi, do we have someone working with the Google Fit API here? I have some questions... Aug 20 10:05:32 kgp: don't ask to ask, just ask! Aug 20 10:05:40 hi, i've got a question about slide-in-menus. i've found several tutorials on slide in menus and wanted to ask if its common to write them yourself? i mean. there is a standard implementation in android studio if im not mistaken. should i use this one or are there any tutorials you suggest to look at? Aug 20 10:06:45 defuex: if you mean the Navigation Drawer, definitely use the standard one Aug 20 10:07:50 We have linked one of our health sensor to the I2C interface of one of our phone. How do I expose this sensor to Google Fit in a clean way ;) ? Aug 20 10:10:50 CodePulsar, I just thought java *should* know if a certain class implements a certain interface, so there should be an easy way to check that without having to have instances Aug 20 10:10:59 how is the navigationDrawer better than any other slide in menu implementation? if i want to use it for min api lvl 13 up to newer apis would you use the standard implemented navigation drawer or would you write your own slide in menu? Aug 20 10:11:02 ravilov: no Aug 20 10:11:13 ravilov: Java doesn't do much at compile time, like C++ Aug 20 10:11:26 I don't need it to check at compile time Aug 20 10:11:33 I just need it to check Aug 20 10:11:35 ravilov: hence, reflection Aug 20 10:11:36 whenever it wants Aug 20 10:11:53 yeah I know... it's just, reflection seems ugly Aug 20 10:12:09 defuex: I would definitely, definitely use the standard one Aug 20 10:12:28 You want the standard hamburger, you want the standard animation durations etc. Aug 20 10:12:33 technically I can use reflection to check if an *instance* implements an interface, but I don't have to since there's the "instanceof" keyword Aug 20 10:12:41 but technically I can Aug 20 10:13:01 sounds delicious estel XD Aug 20 10:13:05 ravilov: I think you can do it easily Aug 20 10:13:12 ravilov: let me illustrate Aug 20 10:13:25 guys Aug 20 10:13:28 why am i getting this error Aug 20 10:13:30 uses-sdk:targetSdkVersion 19 cannot be different than version L declared in library com.android.support:support-v4:21.0.0-rc1 Aug 20 10:13:45 when i have this in my build.gradle compile 'com.android.support:support-v4:20.+' Aug 20 10:13:45 jvrodrigues: you're using too recent a versio nof the support library Aug 20 10:13:54 while asking Aug 20 10:13:56 Oh, a dependency is? Aug 20 10:14:00 i suddenly realized whats wrong Aug 20 10:14:27 i waste hours with the simplest stuff Aug 20 10:14:51 forgot to change the dependency of a lib gradle file -_- Aug 20 10:15:40 lovely Aug 20 10:19:28 so if I got this right... Eclipse is still the de-facto official standard, AS is in beta therefore not officially production-stable, while anything else (IDEA, Intellij, whatever else) is all third party and unofficial Aug 20 10:19:33 correct? Aug 20 10:20:25 intellij and idea is the same thing Aug 20 10:20:30 it's actually called intellij idea Aug 20 10:20:32 :p Aug 20 10:20:40 eh ok Aug 20 10:20:43 whatever :p Aug 20 10:21:00 point is, it's "aftermarket" and unofficial just like that genymotion thing Aug 20 10:21:36 well, with full google investment and support…so….yeah not at all like that :) Aug 20 10:21:37 (as opposed to the official qemu-based emulator) Aug 20 10:22:28 StingRay_, if I'm totally new to this and I know nothing and I go to d.android.com and want to download whatever I need to start developing for android... the only options offered are eclipse+adt and AS :) Aug 20 10:22:29 ravilov: http://ideone.com/WKB7bV Aug 20 10:23:09 CodePulsar, ah, .isAssignableFrom(), nice Aug 20 10:23:12 didn't know about that one Aug 20 10:23:15 ravilov: that's the easy way Aug 20 10:23:17 AS is fine Aug 20 10:23:40 StingRay_, I'm just saying, officialy it's "beta", not "stable" or "final" Aug 20 10:23:53 while it might be completely usable, it is still not deemed as such Aug 20 10:24:32 well dont use it then :) eclipse it is ;) Aug 20 10:24:36 CodePulsar, thanks Aug 20 10:25:16 StingRay_, I'm already using my preferred envorinment, I'm just being hypothetical, trying to understand the current world state :) Aug 20 10:25:31 state of the world* Aug 20 10:26:52 StingRay_, my eclipse+adt works remarkably well for me, but it's always good to refresh the knowledge about available options :) Aug 20 10:27:29 tis all opinion and speculation ….. use something else and see Aug 20 10:27:45 or you are driven by others opinions and never moving in your own direction ;) Aug 20 10:28:44 I know "which one is better/best" is all about personal preference, but before trying a different option first you have to know about it, no? ;) Aug 20 10:29:56 oh trust me, when it comes to this I'm definitely not driven by others' opinion, I've alreay been called a weirdo and a backward fool for sticking to eclipse, qemu and 32-bit linux, and wanting to do apps for older versions of android ;) Aug 20 10:31:37 Do you know when IDEA will replace Eclipse (I'm quite effective with eclipse as I know many shortcuts... so it's a bit boring to learn to use another SDK.) Aug 20 10:33:31 kgp: IDEA has plenty of keymaps, including an Eclipse one Aug 20 10:33:39 kgp: I think you can load Eclipse keymaps in IDEA Aug 20 10:33:41 didn't try it, but the VS one seems fine Aug 20 10:38:10 ravilov: Relevant: Be Awesome By Being Boring ~> https://www.youtube.com/watch?v=oJ1EgFV0P7Q Aug 20 10:38:37 hi guys Aug 20 10:38:56 Im using a listview adapter with recycling, and upon the click on any row, I set its textcolor to be RED Aug 20 10:39:14 upon scroll, its being reset back to its original color! Aug 20 10:39:28 so use a "state" and set it based of that Aug 20 10:39:35 I have a state Aug 20 10:39:41 stored ? Aug 20 10:39:46 and is it set everytime ? Aug 20 10:39:50 yes it's an array of objects, I get it through position Aug 20 10:40:03 it scrolls, loses the position, figures out that the item at that position is not "isSelected" Aug 20 10:40:07 sets it back to white Aug 20 10:40:30 and is that storing the correct info ? Aug 20 10:40:54 are you setting it correct in getView ? Aug 20 10:41:38 yea all its information primarily is correct, the labels are correct and when I select the row what I want happens Aug 20 10:42:23 so in getView you check this "isSelected" array ? and set accordingly ? Aug 20 10:42:42 http://pastie.org/9488608 Aug 20 10:42:59 i'm trying to implement https://developers.google.com/+/mobile/android/sign-in#sign_out_the_user Aug 20 10:43:09 is there any callback when the logout actually succeeds? Aug 20 10:43:16 MS.isSelected() is coming up false the second time around for this to have happened Aug 20 10:43:49 because MS is got through position Aug 20 10:44:05 well debug it …if it's a simple value problem Aug 20 10:44:13 where does that value change/not change Aug 20 10:46:22 it's as Im saying of course Aug 20 10:46:40 it's the position that is getting sent back wrong Aug 20 10:47:31 store them in seperate arraylist or map ? Aug 20 10:47:46 or sparsArray ? Aug 20 10:47:58 position,boolean Aug 20 10:48:11 have the adapter track it rather than object Aug 20 10:48:24 why the fuck, shouldn't the adapter take care of this Aug 20 10:48:33 opening a door with a fucking tank Aug 20 10:48:36 it does with view tags Aug 20 10:48:43 View.isSelected() Aug 20 10:48:47 iirc Aug 20 10:48:55 or is active or whatever Aug 20 10:49:07 cant remember…too little coffee and need a shower Aug 20 10:49:08 :) Aug 20 10:50:11 yea it's with isActivated, just checked it Aug 20 10:50:28 who tells it how its activated ... Aug 20 10:50:45 setActive i would think Aug 20 10:50:52 cant remember Aug 20 10:51:06 oh my god Aug 20 10:51:11 ..... Aug 20 10:51:21 from the listview click listener in the main activity Aug 20 10:51:33 yeah Aug 20 10:52:59 so when Im checking for it inside, do I check convertView or holder..? Aug 20 10:56:39 nah, holder isn't a view, convertView is a view Aug 20 10:57:12 well now all the views are getting activated, I havent set activated to false on previous ones, because where would you do that Aug 20 10:57:31 I dont care to deactivate the old ones, it should turn off everything but the current one! Aug 20 10:58:10 wait, Aug 20 10:59:04 nope, it keeps older ones activated Aug 20 11:05:54 thanks StingRay Aug 20 11:50:00 Is anyone familiar with GCM in here by any chance? Aug 20 11:51:08 VnM: don't ask to ask, just ask! Aug 20 11:51:46 How are the notification bubbles at the bottom of the screen in android called? Aug 20 11:52:52 I´m having issues with GCM registration in an app I´m working on, I know the settings and setup in my app are correct because I´ve used the same system before in previous apps. But at the moment I´m getting SERVICE_NOT_AVAILABLE errors returned to me when I attempt to sort the GCM registration Aug 20 11:53:54 So either the GCM service is borked at the moment or my device is being weird Aug 20 11:55:33 could any one help me compile android project i have Aug 20 11:55:33 MapMan: You mean the digits for example on a messenger app icon? Aug 20 11:55:49 VnM: When are you getting that error? Are you sending a push notification from your device through HTTP? Which body type? JSON or plain text? Aug 20 11:55:59 sm0keWarrior: what problem are you having? Aug 20 11:56:14 VnM: Found it, I was looking for Toasts Aug 20 11:57:40 leeds im sheffield :) Aug 20 11:57:59 basicly i dont no nothing about java but have all the files i just wanna edit somthing then compile the apk Aug 20 11:58:03 CodePulsar: I´m using Urban Airship, I´m not sending out anything yet Aug 20 11:58:05 i download eclispe but its been pain the ass Aug 20 11:58:13 any ideas? Aug 20 12:01:20 you don't need to use eclipse... are you new to the whole building software thing, or just to java/Android? Aug 20 12:01:37 well i can code in vb.net Aug 20 12:01:40 but when comes to java im new Aug 20 12:01:46 i just wanna compile the apk Aug 20 12:01:58 any one who helps i will tip with blackcoin Aug 20 12:02:06 you´ve installed eclipse with adt? Aug 20 12:02:11 yes Aug 20 12:02:22 and you managed to import your project as android project? Aug 20 12:02:40 i try to but when i try selecting the box it doesnt let me hit fininsh Aug 20 12:02:58 uhmmm... i want to build e-exam test application on android, please how can i achieve that? Aug 20 12:03:23 oh, vb.net? that means you're a windows person Aug 20 12:03:29 yeh windows haha Aug 20 12:03:50 that's window guy.. lol Aug 20 12:04:18 just thinking if viewpager will be okay to develop online exam(test) Aug 20 12:04:18 hackable: you start at the very beginning, a very good place to start - when you read you begin with a,b,c - when you code you begin with hello world... hello world... Aug 20 12:04:35 oh dont get me wrong i know bit of unix Aug 20 12:04:38 just prefere windows :) Aug 20 12:04:50 Leeds: ahahaa Aug 20 12:04:52 sm0keWarrior: probably, once you've got the sdk setup, you could just "adb update project -p . && ant debug" Aug 20 12:05:02 cant you just give me intro Aug 20 12:05:13 i think intro will help... Aug 20 12:05:16 i started with c++ when dcom started ;) Aug 20 12:05:18 2000 Aug 20 12:05:43 ill give it try Aug 20 12:05:53 sm0keWarrior: ah, a newbie ;) Aug 20 12:06:06 sm0keWarrior: keep trying++ Aug 20 12:06:25 hahaha Aug 20 12:06:35 thats the power of the internet i suppose ;) Aug 20 12:06:49 viewpager and catch the answer using preferences... is that a good idea? Aug 20 12:07:26 hackable: you're asking about specific implementation details - they're up to you, really, we don't know enough about your app design Aug 20 12:07:33 sm0keWarrior: I think I have had a similar issue before months ago, I believe I ended up ´fixing´ it by creating a new Android project in Eclipse and replacing the files with the ones I had manually Aug 20 12:07:44 okies.... Aug 20 12:07:52 thank you vnm i will give it try now Aug 20 12:07:56 Thats something to try if Leeds his suggestion doesnt work Aug 20 12:09:30 The gen folder will probably give issues with the way I suggested btw, but that folder is automatically generated, going to Project->Clean should sort that out Aug 20 12:27:04 Hello. What would guys suggest in this situation: In an expandable list, I need children that are like ListViews i.e. expandable. I've done children as ListViews before and it seemed like a poor way to go around. Is there any other liable solution? Aug 20 12:33:15 so.. a list of list of lists ? Aug 20 12:33:32 We heard you like expandable lists Aug 20 12:33:40 :)) yo dawg Aug 20 12:33:53 Windblows Aug 20 12:34:41 I would try to push the first list to the side of the screen, like a menu and show the exposed list full screen Aug 20 12:35:38 What's a good android "save" icon? Aug 20 12:35:49 a diskette Aug 20 12:35:50 Floppydisk! Aug 20 12:35:52 I need one for my action bar. I don't mind drawing it myself, but I don't know what imagery to use Aug 20 12:36:02 is that still current? I thought it might be a bit old-fashioned... Aug 20 12:36:29 irrelevent :) Aug 20 12:36:46 ok, thanks :D Aug 20 12:37:03 I'm going to try to draw one that matches the ICS dark holo icons Aug 20 12:37:10 wait Aug 20 12:37:15 they have this icon available Aug 20 12:37:31 https://developer.android.com/design/downloads/index.html Aug 20 12:38:54 oh hey, even better, thanks BoD! Aug 20 12:39:03 I had a look in the SDK but couldn't find a flat one like that Aug 20 12:39:04 nopb Aug 20 12:42:46 Unable to resolve target 'android-10' what this mean Aug 20 12:43:49 What about making a special list item that populates or "un-populates" the list? Would that be a bad idea? Aug 20 12:44:06 why do files show up in the "assets" folder in the eclipse package explorer, but not in my file system of OSX (and sometimes vice versa)? Aug 20 12:44:13 sm0keWarrior: your project targets android level 10 but it's not found on your system Aug 20 12:50:13 i am getting "HttpClient" error "Invalid cookie header:" can somebody help me ? Aug 20 12:50:55 i am google error but my httpclient no have .getcookiespace Aug 20 12:52:52 IMPERSONATOR! Aug 20 12:53:20 wat Aug 20 12:57:00 ravilov what you say ? Aug 20 12:57:20 BoD thanks i am waiting Aug 20 12:57:29 ? Aug 20 12:57:46 waiting for what? Aug 20 12:58:01 i am think you say me "wat" Aug 20 12:58:11 i am getting "HttpClient" error "Invalid cookie header:" can somebody help me ? Aug 20 12:58:15 for my help Aug 20 12:59:16 wtf? Aug 20 12:59:20 be origional Aug 20 12:59:22 jesus Aug 20 12:59:24 :) Aug 20 12:59:41 ahaha wtf :) Aug 20 12:59:53 that's pretty funny Aug 20 13:00:23 * VnM has renamed to StingRay- Aug 20 13:06:20 Is there a way to trigger Google Play Store when visiting a website? Aug 20 13:06:30 Like deep-linking to tell the user hey we got an app for that page? Aug 20 13:06:54 platzhirsch: you can detect mobile devices by their user-agent Aug 20 13:06:58 and then redirect Aug 20 13:07:47 christ Aug 20 13:08:48 platzhirsch, please don't do that. Aug 20 13:09:04 Mavrik: :D Aug 20 13:09:08 platzhirsch, use this: http://jasny.github.io/jquery.smartbanner/ Aug 20 13:09:21 iOS Safari actually has native support for those banners, on Android you can make it Aug 20 13:09:42 yep that's what I'm saying - imposter :) Aug 20 13:10:11 platzhirsch, you could try using the market:// url syntax Aug 20 13:10:25 LMAO Aug 20 13:10:53 i wonder what ur doing with that platzhirsch Aug 20 13:11:10 no, I agree. Mavrik has it right. Just display a smart banner Aug 20 13:11:45 also, I will personally stab you in the back if you do alert() like tapatalk sites do :P Aug 20 13:11:55 Hey guys silly question is parse what i would use for a database for like lets say user accounts and other information providded by the application? Aug 20 13:11:56 yeah, unless you want to make your users not want to install the app *and* never want to visit your site again :p Aug 20 13:11:58 * Mavrik glares as XDA-developers forum. Aug 20 13:11:59 That I want to be saved online? Aug 20 13:12:09 Yeah only use js alerts or forced redirects if you wanna annoy your users Aug 20 13:12:23 lol Aug 20 13:12:27 Mavrik, I've noticed sites lately do an overlay... can't decide which is worse Aug 20 13:12:46 yeah, neither can I Aug 20 13:13:12 I like the banners because they have a clear design and still clearly bring the person to the play store / iTunes store Aug 20 13:13:26 and they GO AWAY if you donćt want to download the app :P Aug 20 13:14:03 or they don't Aug 20 13:14:18 but either way they don't obstruct the ACTUAL content Aug 20 13:16:28 My application has a custom URI scheme for in app links i.e: “myapp://“ when sending receiving an email with the custom protocol the android email client seems to override the link to “email://“. Is there anyway to override this? Aug 20 13:16:44 Hello everyone, does android-studio support the NDK? Aug 20 13:16:52 beo6: yes Aug 20 13:17:08 Cool. Thanks Aug 20 13:18:01 andyland: maybe use an http link instead, and then redirect to myapp Aug 20 13:18:02 beo6, depends what do you mean by that Aug 20 13:18:03 Hey guys silly question is parse what i would use for a database for like lets say user accounts and other information providded by the application, that I would want to store in order to let people login etc? Aug 20 13:18:08 beo6, it has partial support. Aug 20 13:18:11 Or is that another library all together. Aug 20 13:18:31 Psil0Cybin, that very much depends on what kind of backend infrastructure do you want Aug 20 13:18:34 Just trying to figure out what to google, and learn how to use in order to create my app. Aug 20 13:18:50 Mavrik: kinda like fbook user logins and sees his information Aug 20 13:18:50 etc Aug 20 13:19:18 I am better with PHP than AndroidSDK I was thinking of making the back end with PHP and MySQL but someone suggested Parse Aug 20 13:19:22 would do the job, I just want o double check Aug 20 13:19:37 and would I incorporate the online aspect right away or can i do it at the end? Aug 20 13:19:43 Well. Developing in C++. What else is the NDK for? I just heard some time ago that it is not supported by android-studio, only by eclipse Aug 20 13:19:54 beo6, ugh... NDK is just gcc + build script Aug 20 13:20:07 yes, Android Studio can call NDK build script Aug 20 13:20:18 no Android Studio currently does not have GDB integration or C++ language support. Aug 20 13:20:29 so you can't do breakpoint debugging or stuff like that of native libraries Aug 20 13:22:03 That's enough. I can use a different IDE. As far as i know eclipse also did not support breakpoints for c++ Aug 20 13:22:19 Mavrik: what do you suggest for my situation can I use parse or do I need to create my own backend? Aug 20 13:23:02 you still haven't actually defined your "situation" at all, all you said is you want some terms and words to google Aug 20 13:23:31 the correct approach very much depends on the specifics of your system Aug 20 13:23:34 Psil0Cybin, can't really help you there, never used Parse since I've always worked with strict backend requirements :/ Aug 20 13:24:07 WHen I use the add method on an adapter it calls notify data set changed correct? So that should update the listView holding the adapter? Aug 20 13:24:44 Psil0Cybin, maybe you could try both solutions (at least halfway) and then see how they fit into your grand scheme of things Aug 20 13:24:45 Mavrik: What are some other backend systems I can look at? to compare? Or is parse the biggest one? Aug 20 13:24:55 ravilov: okay thanks. Aug 20 13:25:02 anything you write yourself? :) Aug 20 13:25:08 for the advice guys, this is my first android app :) so I just wanted to run this stuff by you guys Aug 20 13:25:12 as I said, i've always worked with custom developed backends :) Aug 20 13:25:24 custom , and have they been developed in php and mysql? Aug 20 13:25:29 or what other languages can be used? Aug 20 13:25:30 or methods Aug 20 13:25:30 Psil0Cybin, might not be the best first-app material there Aug 20 13:25:44 haha yes i bite off too much but i honestly hve this amazing idea Aug 20 13:25:48 and i need to push it out :D Aug 20 13:25:54 well Aug 20 13:25:57 good luck then ;) Aug 20 13:26:07 hahahahha well that is what people told me when i jumped into linux from windows Aug 20 13:26:14 and now 3 yrs later :D still on debian Aug 20 13:26:16 I have an activity with a fragment and a button in the fragment. To bind an action (a method) to the button I have to tightly couple fragment and activity. Doesn't this "kinda" defeat the point of fragments? Aug 20 13:26:30 cool, so I guess you have plenty of luck there, so this should be a breeze :p Aug 20 13:26:42 MapMan: use an Interface Aug 20 13:26:51 eghdk, it should, yes Aug 20 13:26:58 that the activity implements Aug 20 13:27:28 using an interface is a shitty work around Aug 20 13:27:50 and doesnt really solve the problem Aug 20 13:27:59 but looks like im not the only one to notice the problem... Aug 20 13:28:04 http://stackoverflow.com/questions/6091194/how-to-handle-button-clicks-using-the-xml-onclick-within-fragments Aug 20 13:28:56 MapMan: if your fragment has a button, then of course it will only "work" with activities that know how to react to this button click. I don't see how this is a "problem" Aug 20 13:29:22 using an interface makes it work with "activities that know how to react to this button" instead of just "MyFooActivity" Aug 20 13:29:32 * StingRay_ almost agrees with BoD in that this is a design issue, not a code problem Aug 20 13:29:35 :) Aug 20 13:30:05 but only almost :p Aug 20 13:30:19 ahah :) Aug 20 13:31:17 anyone here implemented IAP that are active and have users purchased etc ? I dont need help, I'm all done, just have a query Aug 20 13:31:18 MapMan: Inferfaces are great for that. And you can force the activity to implement it Aug 20 13:31:19 uhh Aug 20 13:31:35 yeah I'll end up using activity Aug 20 13:31:40 i mean interface Aug 20 13:31:49 StingRay_: yes Aug 20 13:31:51 but I was just disappointed Aug 20 13:32:02 ravilov: So how would I handle this for a database? Let's say the adapter is backed by a db. I'm adding a random.nextInt to the database, will that trigger the adapters add method? Aug 20 13:32:06 just use onAttach to check if the activity actually implements the infterface Aug 20 13:32:09 BoD: have you ever given a refund ? or had the user refund themself ? Aug 20 13:32:12 StingRay_, "I don't need help, I'm all done, I just want to brag"? :p Aug 20 13:32:35 I was just thinking "no, I must be wrong, surely there must be a way to implement event handling without coupling the view, the fragment or the activity" Aug 20 13:32:36 ravilov: no, I've noticed a serious flow bug that I think is google servers Aug 20 13:32:42 MapMan: I use this base class for my fragments: https://github.com/BoD/jraf-android-util/blob/master/library/src/main/java/org/jraf/android/util/app/base/BaseFragment.java Aug 20 13:33:02 BoD: thanks, I'll check it out Aug 20 13:33:25 BoD: and thats the best way of doing it Aug 20 13:33:26 just a little trick to be able to call getCallbacks and that's an interface Aug 20 13:33:47 but I need someone else to confirm this is an actual IAP bug that pretty much renders it pointless to use Aug 20 13:34:02 eghdk, wouldn't know really, so far I haven't used db-backed adapters, just simple array/object ones :) Aug 20 13:34:18 but I'm guessing that would depend solely on the implementation of the adapter Aug 20 13:34:29 dang. Aug 20 13:34:35 (here's probably where people will start telling you to just use BaseAdapter :p ) Aug 20 13:34:39 eghdk: whats the query ? Aug 20 13:34:46 and yes, baseAdapter Aug 20 13:34:49 with a cursor Aug 20 13:34:51 very easy Aug 20 13:34:52 just use baseadapter :p Aug 20 13:35:01 :D Aug 20 13:35:22 Why a baseAdapteR? Aug 20 13:35:40 Not some kind of CursorAdapter? Aug 20 13:35:54 BoD: the SO question I linked, the first answer, is that how you suggest using an interface? And what does the fragment class you linked do exactly? (I'm an android newbie). Aug 20 13:36:06 cause baseAdapter is used to make cursorAdapter Aug 20 13:36:11 BoD: Or maybe how do I utilize the class you linked. Aug 20 13:36:13 but better to do yourself Aug 20 13:36:52 MapMan: it's just a base class for your fragment. Exemple usage: public class MyFragment extends BaseFragment { Aug 20 13:37:00 eghdk, like I said I haven't used adapters much, but from what I understand, most the "derived" adapters (from baseadapter) are mostly good just for quite simple stuff Aug 20 13:37:07 then make your Activity implement MyCallbacks Aug 20 13:37:16 StingRay_: Got it. So if I have an AsyncTask that generates random ints, and then I want to add them to a DB. But when the DB has an item added I want the listView to refresh how would you handle that StingRay_ ? Aug 20 13:37:23 and then in your button onclick : getCallbacks().onMyButtonClick(); Aug 20 13:37:43 eghdk: thats same as anything, a re-query on the cursor Aug 20 13:38:06 So I have to re-querery the cursor every time? Aug 20 13:38:16 when you change data, erm yeah Aug 20 13:38:18 The entire thing? Aug 20 13:38:35 well unless you have 10000000 records dont see the issue Aug 20 13:38:49 a cursor is the result of a query Aug 20 13:39:02 that query result is not valid if the data is changed Aug 20 13:39:06 If i've got native code that decodes a video, how can, or what is the best way to get that video to play in a MediaPlayer? Aug 20 13:39:09 just like an ArrayAdapter Aug 20 13:39:21 I'm trying that every time I generate a random Int, I add to the DB and update the listView. I want to generate 1,000 ints. Aug 20 13:39:28 It's working kind of slow right now. Aug 20 13:39:30 eghdk, since a Cursor is bound to a specific result set, there's actually no easy way to just simply update the cursor Aug 20 13:39:33 sadly Aug 20 13:40:04 if that doesn't work for you, then you might want to consider a combination of a DB backend plus a different, not DB-bound adapter Aug 20 13:40:27 Is there some kind of replace method? Aug 20 13:40:36 in Cursor? Aug 20 13:40:42 dunno, but d.android.com surely knows Aug 20 13:41:00 a cursor is presentation of a query Aug 20 13:41:12 you would execute SQL to "do" something Aug 20 13:41:30 presentation of data from a query rather Aug 20 13:41:32 :) Aug 20 13:42:22 Gotcha. Well I'm thinking I can generate 1000 random ints (cuz thats pretty fast) and add it directly to an Adapter and then after the generation is done. Add it to the database? Does that sound more plausible? StingRay_ ? Aug 20 13:42:48 whats the point of these random ints ? Aug 20 13:42:58 StingRay_: sorry I missed your question. No I've never dealt with refunds. Aug 20 13:43:13 eghdk, isn't that pretty much exactly what I just suggested? :p Aug 20 13:43:24 BoD: issue is that if you refund some1, it never updates the purchaseState on googles server Aug 20 13:43:30 BoD: ever Aug 20 13:43:35 really! Aug 20 13:43:49 ravilov: I'm not sure. If you did. I am sorry. StingRay_ I'm just trying to performance test thing kind of scenario. Even though it's unlikely. Aug 20 13:43:51 BoD: and I think quite a few users are caching onto this with apps that use google managed purchases Aug 20 13:43:52 great :/ Aug 20 13:44:02 I'm trying to see what the best way to handle this would be. Aug 20 13:44:20 not sure a database and generate the number when needed Aug 20 13:44:26 since you mention no constats there :) Aug 20 13:44:37 So instead of 1,000 queries to get a cursor, which slows this down the process. Aug 20 13:44:57 wait Aug 20 13:45:05 this is just database practice 101 then Aug 20 13:45:12 no different to any other platform or system Aug 20 13:45:32 you would not requery 1000 times for 1000 records Aug 20 13:45:33 What does that mean? =) Aug 20 13:45:43 StingRay_: Aha. Aug 20 13:45:43 unless there is a need/point to have sub second updates Aug 20 13:45:45 lol Aug 20 13:45:49 it would be silly Aug 20 13:45:49 Okay. Got it. Aug 20 13:45:55 If anything I would batch the update. Aug 20 13:46:01 also you can ADD and cloalece many entries and updates Aug 20 13:46:07 using ON DUPLICATE too Aug 20 13:46:17 so single or adaptive sql statements can do lots Aug 20 13:46:25 Oh. I can batch add to a DB? Aug 20 13:46:28 not just 1 record but maybe sets of 100 Aug 20 13:46:46 BoD: both fragment and activity should implement, for example, IMyCallbacks interface? That's what you meant? Aug 20 13:46:51 eghdk: as far as I have tested the arg[] array on an android query has a 256 limit Aug 20 13:47:10 MapMan: nope, just the Activity Aug 20 13:47:22 Thanks this is what I was looking for. This is now inherently a DB problem and not an android cursor/adapter issue. Aug 20 13:47:37 eghdk: but a you can null it and build the query yourself….so you can add data that fits in a statement of String maxLenght Aug 20 13:47:40 :) Aug 20 13:48:06 MapMan: but because of generics, getCallbacks will return a IMyCallbacks Aug 20 13:48:19 (in effect it will return your Activity) Aug 20 13:49:01 yeah, I can see that in the base class you linked Aug 20 13:49:06 I just need to wrap my head around it Aug 20 13:49:43 StingRay_: Thanks. Big help. Can you expalin quickly what you meant by "cloalece many entries and updates" and "using ON DUPLICATE too"? Aug 20 13:50:26 well imagine I want to "add OR update" a "set" of 1000 records Aug 20 13:50:46 but based on a key. some may already exist, in that case I just want those updated Aug 20 13:50:59 but if not I want the inserted Aug 20 13:51:13 just various methods to do it in 1 statement Aug 20 13:51:28 rather than conditional tests and query many times over Aug 20 13:55:28 BoD: I can't really tell what benefit do I get from that. I still have to bind a button to a method in activity, inside of which I call the fragment to retrieve the same activity and call an event method on it. Did I just confuse some things? Aug 20 13:56:16 MapMan: In your interface, have a public abstract void onButtonClick() method Aug 20 13:56:34 then every activity can decide how to manage the click by overriding it Aug 20 13:58:38 MapMan: the best answer here is "learn what an interface is and look at examples" then you should all be clear Aug 20 13:58:52 i know what an interface is Aug 20 13:59:00 danijoo: ok, well Aug 20 13:59:07 danijoo: now I get it Aug 20 13:59:17 yw Aug 20 13:59:23 Is making a view static frowned upon? Aug 20 13:59:33 it's a way to try and decouple the activity and fragment Aug 20 13:59:36 thanks Aug 20 13:59:46 eghdk: the most evil thing you can do. Aug 20 14:00:31 danijoo: Because it holds onto a context? I know that it's bad... I'm mostly asking... "why?" Aug 20 14:01:27 eghdk: Because by holding a context in a static way or outside of an activity, you make it impossible to garbage collect Aug 20 14:01:36 memory leak in 3.. 2.. 1.. Aug 20 14:04:21 *poof* Aug 20 14:06:34 MapMan: you could look at Square's Otto for instance Aug 20 14:06:56 supposedly it's very good to avoid coupling. Never used it myself though Aug 20 14:07:02 danijoo: Thanks. But why is it impossible to garbage collect? context? Aug 20 14:07:17 Because a view needs a context is basically what I'm saying. Aug 20 14:07:30 Because an activity is a context Aug 20 14:08:02 and you may end up with the whole activity not being able to be gc'ed Aug 20 14:08:14 eghdk, learn some java memory management basics Aug 20 14:08:15 I dont know everything thats going on there behind the scenes Aug 20 14:08:39 but its bad, really bad :) Aug 20 14:09:08 * pfn is still disappointed that application contexts are not implicitly made static Aug 20 14:09:21 you have to go and do that explicitly Aug 20 14:09:29 its: GC can only occur if there is no more reference to that object Aug 20 14:09:40 danijoo, not quite correct Aug 20 14:09:44 but if you have a static view , there is a reference Aug 20 14:10:06 but static counts for preventing gc Aug 20 14:10:19 pfn: yeah not 100%. But the whole storry would need a boock Aug 20 14:10:23 -r Aug 20 14:10:26 book Aug 20 14:10:33 it wouldn't Aug 20 14:10:34 oh my good. my typing so bad today Aug 20 14:11:00 gc roots, there are 2, classloaders and threads Aug 20 14:11:20 if you are strongly reachable from either, you cannot gc Aug 20 14:11:35 that simple Aug 20 14:11:59 if cannot gc Aug 20 14:12:11 you heap size will keep on increasing Aug 20 14:12:17 until it’s exhausted Aug 20 14:12:23 “”Out of memory error Aug 20 14:12:25 " Aug 20 14:13:02 which is most annoying error #2. Right behind NPE :) Aug 20 14:13:15 that's not true, either Aug 20 14:13:26 a single static leak won't make you oom Aug 20 14:13:38 Hey dudes, anyone know about swapping out pngs for webp Aug 20 14:13:48 soecifically transparency support Aug 20 14:13:55 pfn: you’ll be surprise how it accumulates Aug 20 14:13:56 *specifically Aug 20 14:13:57 and bam Aug 20 14:14:03 that error comes out Aug 20 14:14:10 pfn: depends on the size (might not count for a view leak but yeah) Aug 20 14:14:26 i dont mean 1 leak alone, but here and there Aug 20 14:15:07 static leaks cans accumulate but its a beginning :/ Aug 20 14:16:44 static leaks are never a problem, they are easiest to solve Aug 20 14:16:54 so, no, they're not a beginning Aug 20 14:17:29 static variables introduce other bugs associated with global state, *those* are bad Aug 20 14:18:26 okay Aug 20 14:19:38 thanks! Aug 20 14:20:12 wsa the question if global value are good or not? Aug 20 14:21:54 Good morning everyone Aug 20 14:23:13 MikeWallaceDev: good afternoon Aug 20 14:23:31 the_fog: close enough ;) Aug 20 14:24:23 btw, the_fog, how do you highlight my name? Just write it at the begining of the line with a ":" ? Aug 20 14:25:01 MikeWallaceDev, irc clients do that... Aug 20 14:25:10 just a copy paste job. you're doing it to me :) Aug 20 14:25:31 Maziz, and that's basically what he asked Aug 20 14:25:46 pfft. ok.. Aug 20 14:25:52 ok, thanks :) Aug 20 14:26:21 My client does not highlight names Aug 20 14:26:49 your client sucks, beo6 Aug 20 14:26:53 :D Aug 20 14:27:00 hope i'm able to figure this app out. super simple idea. "share" or "open with" web intents. click my app, then the next screen is the end point: other android device, chrome browser :) Like Phone2Chrome with other adroid devices as well. I always use my phone in front of my pc and want links to open on my screen or open links on my mum's phone etc Aug 20 14:27:18 Yeah, well I figured that it was client side, but thought that it might be triggered by something special Aug 20 14:28:02 My client just makes the message green when my name is in it Aug 20 14:28:04 Didn't Koush make something that does that SoreGums? Aug 20 14:28:29 MikeWallaceDev: not aware, if it exists that would be ace Aug 20 14:28:30 beo6: mine makes the whole message orange, and beeps Aug 20 14:28:41 Sounds like what PushBullet does Aug 20 14:28:56 or PushBullet... right. Aug 20 14:29:06 * pfn <3 qicr ;-) Aug 20 14:30:13 Any ideas what could cause "D/GCAndroid(11679): (0x5863f2f0) deconstrcutor" (notice the mispelling) appear infinitely often in my logs? Aug 20 14:30:32 some random app Aug 20 14:30:40 Mine does even vibrate. ;) Aug 20 14:31:11 I'm on my box beo6, if it vibrated my desk would shake!! :D hahaha Aug 20 14:31:15 because android doesn't print that Aug 20 14:31:37 I'm on my android Aug 20 14:31:40 sounds like a job for www.google.com ralala :) Aug 20 14:31:47 I haven't bothered with vibration Aug 20 14:31:56 cannot find anything on google Aug 20 14:32:02 stupid google. Aug 20 14:33:11 jazper-: sweet difficult to find these apps cause the wording is not so simple - thanks for the pushbullet :) Aug 20 14:33:47 ralala, adb shell ps Aug 20 14:34:11 11679, uninstall Aug 20 14:34:19 done Aug 20 14:35:14 uninstalling an app because it calls Log?? Aug 20 14:44:15 hmm PushBullet is cool, however too many clicks. Wonder if there is another one then. Like I click the notification and then the "open with" menu pops up, I don't want to click the notification :) Aug 20 14:45:45 and want it in the "Complete action using" on the device when clicking links from Gmail app etc- probably going to have to make my own Aug 20 14:46:41 There are some items in a list which need to be parsed as html with Html.fromHtml() is it bad to skip the checks and just do fromHtml() on all the text? Aug 20 14:48:00 hi, I'm new to android development... Is there a better way to emulate older devices (say using froyo) than the ARM emulator? The ARM emulator never actually loads up for me and I just get a black screen (after 30min of waiting) Aug 20 14:49:15 I just started using Genymotion f00dWorksta I don't know if it works with older versions. Aug 20 14:49:17 check it out Aug 20 14:49:47 don't bother emulating froyo? Aug 20 14:49:53 <1% of devices doesn't matter Aug 20 14:49:53 or use a real device Aug 20 14:50:01 they can't even run android market anymore Aug 20 14:50:03 what's the point Aug 20 14:50:39 pfn : you don't know his use case... Aug 20 14:50:40 oh, I guess they can still Aug 20 14:50:52 that's why they're still at 0.7% Aug 20 14:51:33 it doesn't matter Aug 20 14:51:37 no reason to be emulating froyo Aug 20 14:51:56 :) Aug 20 14:53:28 I guess if you live in africa and your whole village is on froyo, maybe Aug 20 14:53:40 Maybe he lives in Africa... Aug 20 14:54:14 I don't set the requirements <_< but if not froyo, they will want at least gingerbread's 13% so the same question applies Aug 20 14:54:21 Maybe the 0.7% of devices are owned by his company :D Aug 20 14:55:00 f00dWorksta, 2.3 has an x86 image Aug 20 14:55:06 and I answered my own question for gingerbread, there is an atom image yay Aug 20 14:55:10 if your client wants 2.3, convince them otherwise Aug 20 14:55:13 yay! Aug 20 14:55:50 now maybe I should just ninja a commit and change minversion to 10 o.o Aug 20 14:55:50 2.3 users don't generate revenue Aug 20 14:55:55 13% is considerable. 0.7% not... :) And that % will dramatically fall in the next months too.... Most people I see here wanting to support 0.X% seem to more want to do it out of some sort of ill concieved conviction that its cleverer ... move with the times or spend your entire development cycle gritting your teeth and complaining that the API keeps changing.... :) Aug 20 14:55:57 15 Aug 20 14:56:22 api10-14 are negligible Aug 20 14:56:34 oh, 10 for 2.3 still Aug 20 14:56:40 the latest stats: 8=100%, 10=99%, 15=86%, 16=75%, 17=49%, 18=29%, 19=21% Aug 20 14:56:40 whatever, 11-14 are basically 0 Aug 20 14:57:03 (minsdk=percent of the devices you reach) Aug 20 14:57:08 the app targets older folks, who may either have cheaper or older devices... Aug 20 14:57:25 older folks can't use smartphones Aug 20 14:57:34 they can barely use dumbphones Aug 20 14:57:52 2 reasons, eyesight, and of course, familiarity Aug 20 14:58:01 I know a bunch that do Aug 20 14:58:24 they are mega slow at using it, but they do use it Aug 20 14:59:31 no need to explain f00dWorksta, that's your user base, just do your thing :) Aug 20 14:59:38 yea thx Aug 20 15:00:18 Anyone know why AS has stopped being able to find symbols for any Android classes? Building the app works fine, but Android Studio itself has stopped indexing something Aug 20 15:01:06 Damn, that reminds me, I should update to the latest version of AS now that I have some time Aug 20 15:01:14 Estel : how are you invoking the find? C-n? Aug 20 15:01:27 Alt-f7? Aug 20 15:02:07 rgr: I'm not, but everything is red lined Aug 20 15:02:34 "import android.os.Handler - cannot resolve symbol" kinda thing Aug 20 15:03:04 I have a feeling I might have pressed one of those helpful suggestions in the top right that might have done something, but I can't remember what Aug 20 15:03:31 Thats interesting. Out of curiosity your project directories aren't on a path using a symbolic link are they? AS/IJ simply cant cope and ends up with two entries in its file idnex causing all sorts of issues (the symbolic link path and the physical real path) Aug 20 15:04:11 nope, proper paths Aug 20 15:04:14 rgr: does that apply to projects too ? as in any sym link ? Aug 20 15:04:21 Try invalidating your cache. On IJ its file/invaildate caches or someting. Aug 20 15:04:51 I did that, didn't work Aug 20 15:04:53 StingRay_: project files yes as I said above. Aug 20 15:05:49 It sometime takes a while before errors creep in but its happened more than once. A real pain since I had to move my project off my ssd partition and back into my "home". Aug 20 15:05:50 ah sorry, just skimmed it, dam thats …erm… not good for me for my later plans :( Aug 20 15:08:54 how can I call asynctask from outer class, I have 2 fragment inside my activity with tab layout. and I want to refresh my data inside my fragment with inner class on the fragment class Aug 20 15:10:05 with java Aug 20 15:15:13 hi guys Aug 20 15:15:16 how can i use GSON with an arralist of an object, which has anothr arraylist of an object inside Aug 20 15:20:13 isn't that what JSON does ? nested data ? Aug 20 15:22:50 What is GSON? Aug 20 15:23:18 easier to use google beo6 Aug 20 15:23:25 there is but one Aug 20 15:24:36 beo6: it's Google's implementation of JSON Aug 20 15:25:09 Ah. I thought you might have misspelt json. Sorry Aug 20 15:25:14 better support for binary data. stick with json if you dont need it... Aug 20 15:33:30 does anybody here use brackets.io for editing? Would you know how to pass a file in from the command line? (It doesn't support it natively) Aug 20 15:35:16 Yeah, that was a weird question... Scratch that. I'll figure it out Aug 20 15:35:29 :)) Aug 20 15:40:10 MikeWallaceDev: use webstorm for html/js and android studio for java and you'll enjoy the same keybindings in essentially the same IDE Aug 20 15:41:02 snowpong: Thanks, but it's really for command line stuff. A replacement for Kate. I don't do HTML :) Aug 20 15:41:25 MikeWallaceDev: hehe, nevermind then :) Aug 20 15:42:20 Evening. I've build a custom toolchain using the $NDK/build/tools/make-standalone-toolchain.sh script (for integrating android with my build system, scons), but it seems that (even when selecting the highest API target) it doesn't copy over the android_native_app_glue.h/android_native_app_glue.c needed for native applications. Any hints on how to solve this issue? How bad of an idea would be to just copy it over manually? Aug 20 15:43:24 I'd prefer that my application could be build by using the android ndk to create a custom toolchain, and then the user is supposed to point the build system to that custom toolchain that was generated, and then it takes care of everything automatically -- without manually copying around any files additionally, if at all possible Aug 20 15:46:36 Hi there Aug 20 15:46:55 is there any framework to develop the typical infinite-scroll REST client app? Aug 20 15:47:05 because I am writing lots of boilerplate Aug 20 15:50:39 http://arstechnica.com/gadgets/2014/08/the-state-of-android-updates-whos-fast-whos-slow-and-why/ Aug 20 15:54:22 This might be a dumb question... I have an activity with a fragment that displays something. I have an action bar that has action overflow with "Settings" button. I have settings fragment. How do I wire it up to show the settings fragment? That's called "replacing" fragment? Fragment transactions? HALP! Aug 20 16:01:24 when you need to show / hide a fragment you build a FragmentTransaction and you commit it Aug 20 16:01:49 and replacing is the equivalent of hiding the previous fragment inside a container / showing the next one Aug 20 16:02:13 ok Aug 20 16:02:14 cool Aug 20 16:02:21 the terminology is new to me and I got a lil confused Aug 20 16:02:23 actually "remove" is the correct term, not "hide" Aug 20 16:02:40 ahah :) sorry maybe I'll confuse you even more then Aug 20 16:03:11 no, I was afraid that "removing" fragments might be deleting them permanently or something Aug 20 16:03:19 I just want to switch to settings and then go back Aug 20 16:03:28 and replacing a fragment with a transaction is what I want Aug 20 16:03:34 your answer cleared that up Aug 20 16:03:38 now I know what to google for Aug 20 16:03:41 thanks Aug 20 16:03:47 I have an actionbar button for mute and then unmute. LIke this: http://fs01.androidpit.info/a/8f/dc/mute-widget-mute-unmute-8fdc7d-w144.png Aug 20 16:03:54 the icon switches when it's tapped Aug 20 16:04:05 but I don't know which way round to put the icons Aug 20 16:04:15 When the sound is playing, should the button have a "speaker with sound" icon because the app is currently un-muted, or should it have a "speaker with a line through it" icon because tapping that icon will mute the sounds? Aug 20 16:05:18 d0de: that's a question as old as time :) Different people will give different answers :( Aug 20 16:05:37 :( I have having to make decisions Aug 20 16:05:43 hate* Aug 20 16:05:50 the icon is the action Aug 20 16:05:58 Personallly I would say "speaker with a line through it" Aug 20 16:06:05 so playing = speaker with line Aug 20 16:07:00 state is 'playing': action is 'mute' Aug 20 16:08:20 I agree with BoD Aug 20 16:10:01 nope. playing == speaker without line. The speaker with line through it indicates its muted... hence no sound. Aug 20 16:10:19 clicking it would normally bring up volume but thats another thing. Aug 20 16:10:37 (see? told ya :D ) Aug 20 16:10:51 if ti works for youtube then why break convention - and it is a convention... Aug 20 16:11:33 on my tv remote control, the button as the speaker with a line icon :) Aug 20 16:12:02 If there is one place that I would not look for convention, it's Google. They can't even follow their own UI Guidelines... Aug 20 16:12:14 *is Aug 20 16:13:41 thats a bit of a sweeping statement. Aug 20 16:13:59 you could avoid the problem by putting a volume slider instead Aug 20 16:14:05 sliding to 0 == mute Aug 20 16:14:12 it is, but it's also true :) Aug 20 16:14:47 it would be silly to have a speaker and there be no volume. The icon indicates its status : the line says its muted so no need to adjust volume. Just about every single video app use that too. Aug 20 16:15:02 BoD: volume != playback... sliding to 0 would mute but the sound would still be playing Aug 20 16:15:10 rgr: the icon on a button indicates the action of the button Aug 20 16:15:27 not the action of the previous time you clicked on it :)) Aug 20 16:15:43 yeah, I'm with BoD. The icon (and label) indicate action Aug 20 16:16:23 MikeWallaceDev: muting should also continue playback Aug 20 16:16:50 BoD: that's what I said :D Aug 20 16:17:08 ok we agree ;) Aug 20 16:17:54 oh, I see how my sentence could have been misread. Yeah, we agree :) Aug 20 16:18:39 ;) Aug 20 16:18:42 when using a library project or an apklib, if a resource (eg string) is defined in the base project that has the same name, which resource will be used? Aug 20 16:19:00 heater89: the one in the base project Aug 20 16:19:14 BoD: is there somewhere that that is documented? Aug 20 16:19:45 BoD: looking through the resource documentation i haven't run across it. Or is this just something that is known through trial and error? Aug 20 16:20:07 heater89: http://developer.android.com/tools/projects/index.html Aug 20 16:20:14 "Resource conflicts" Aug 20 16:20:54 hello people Aug 20 16:20:54 BoD: I was in the wrong section.... thank you sir/ma'am. Much appreciated Aug 20 16:21:04 you're welcome Aug 20 16:21:27 hey shmoon Aug 20 16:22:19 Hey guys, I have the following Data Structure ArrayList{String, int, ArrayList { int, date, string}}. Using GSON to deserialize only works when the ArrayList is empty. Is there a method of working around using GSON for nested ArrayLists? Aug 20 16:22:24 i have a method that returns a boolean, and have a click listener inside that method. How can i make the click listener return true on the parent method, if you can call it that Aug 20 16:24:19 jvrodrigues: you want your method to return something that depends on the user pressing a button? Aug 20 16:25:39 jvrodrigues: that one is a little tricky to understand , pastebin? Aug 20 16:27:06 BoD, MikeWallaceDev, i wanted a method to return either true or false depending on what the user clicks on an alert dialog that the method invokes. I dont want to assign a global variable, i cant return the method from the onclick action and i cant assign a final boolean inside the method. Any ideas? Aug 20 16:27:44 i mean if i assign a final boolean inside the method, the click listener cant change it Aug 20 16:27:57 is this one of those limitations that i will have to deal with_ Aug 20 16:27:58 use a field in your class Aug 20 16:28:25 and just return that field in your method Aug 20 16:28:45 BoD, thats what i meant by not wanting to use global, or class wide, variables Aug 20 16:28:45 This isn't a limitation jvrodrigues, it's just programming. Your method is synchronous, the alert dialog is not Aug 20 16:29:02 iSee Aug 20 16:29:18 well there are other ways to go at it, like BoD said, i can just use a class field Aug 20 16:29:24 was just intrigued by this problem Aug 20 16:29:46 Not really, no. Your variable won't be set when the method returns Aug 20 16:30:05 you can setup a listener though Aug 20 16:30:15 so many questions here invole manipulating some json datastructure Aug 20 16:30:30 are the apis that bad? i haven't used gson / jackson yet ... Aug 20 16:30:32 the difference is that the dialog will call you when it's done Aug 20 16:30:54 ofc. Aug 20 16:31:07 ? Aug 20 16:31:25 I think its more people are afraid of json. Yet when you realise its fundamentally so simple its all steam ahead. Aug 20 16:32:11 i guess java 9 is getting some native json libraries Aug 20 16:33:31 can anyone help me with my issue? :S Aug 20 16:33:54 which one? Aug 20 16:34:43 HelplessJub: gson has no issue when it's just a List, so unless it simply can't deserialize arraylists, that would work fine Aug 20 16:35:04 ah this issue... Aug 20 16:35:36 SimonVT: arralist should be fine, but the fact that there is a nested arraylist within the structure seems to be the issue Aug 20 16:36:20 Is there any way to get the user provided name of a bluetooth device? Aug 20 16:36:37 TheDracle ha! i couldn't find it the last time i tried Aug 20 16:36:40 I can use device.getName() to get the device's detected name, but I want to get the name the user provides. Aug 20 16:36:46 Ugh. Aug 20 16:37:09 at least for bt classic Aug 20 16:37:12 Maybe it's stuffed in device preferences or something? Aug 20 16:37:22 TheDracle: Oh, I thought that was the same name... crap, you just found a bug in my code :( Aug 20 16:37:54 Yeah.. device.getName() just provides the device name- not the name the user has decided to insert. Aug 20 16:38:02 Damn. Aug 20 16:38:03 Via settings. Aug 20 16:38:17 At least as I'm testing it on my Samsung Galaxy 4 Tab. Aug 20 16:38:30 To be honest all of this bluetooth shit makes me want to shoot myself. Aug 20 16:39:05 So, setting a name for the BT device will only set it on your local device. If you go on another device it won't see that newly provided name? Aug 20 16:39:24 Damn, this is not good... Aug 20 16:39:44 TheDracle BT on android has always been a mixed bag Aug 20 16:39:50 Well, it is... Because that company will have to give me another contract :D Aug 20 16:39:58 g00s, Yeah, it's unstable with the BTLE stuff. Aug 20 16:40:12 TheDracle i just started BLE Aug 20 16:40:30 HelplessJub: I know that nested Lists work, so if you're certain the issue is with it being arraylists, just use List instead.. Otherwise it's probably your data structure that's wrong Aug 20 16:40:39 g00s, So, the device doesn't have to be paired.. And my application does a scan, and intermittently the device just won't show up in the scan. Aug 20 16:40:44 works great on iOS, but you have to remember Apple actually pushed for BLE adoption so they made sure they had a reliable stack Aug 20 16:40:50 Right. Aug 20 16:41:00 BLE took off basically because apple said, we bless this Aug 20 16:41:01 As far as a protocol, it's way better that standard bluetooth. Aug 20 16:41:08 and it was the right technology for the right time Aug 20 16:41:10 It's simpler, and actually seems to have a more reliable and reasonable flow. Aug 20 16:41:16 yeah, it does Aug 20 16:41:20 If only it worked. Aug 20 16:41:48 now bt 4.1 came out in 2013, i have to see what devices are 4.1 Aug 20 16:41:51 My device manufacturer decided to ship all of their devices with the same device name, the same device class, and the same device ID. Aug 20 16:41:51 SimonVT: ok i will try list Aug 20 16:42:20 I.E: Indistinguishable. Aug 20 16:42:27 But with different protocols! :0 Aug 20 16:43:10 TheDracle any idea on what the shortest connection interval is on your hw ? Aug 20 16:43:29 theoretical is 7.5ms Aug 20 16:44:26 when i tried my sensortag on iOS vs android, the iOS app received data far quicker it seemed Aug 20 16:44:34 could be a problem with the stack on the host Aug 20 16:45:12 sorry if i'm not making sense, i just started BLE :) Aug 20 16:45:46 I think it's a lot longer than 7.5ms Aug 20 16:45:50 It's like in the seconds range. Aug 20 16:45:55 For my device at least. Aug 20 16:46:01 O.o Aug 20 16:46:25 Like, it acts as a server, and I've put a breakpoint on the device connection status callback. Aug 20 16:47:36 hi, while my app is running, I am getting the following warning/error: Not posting notification with icon==0: Notification(pri=0 contentView=com.example/0x1090064 vibrate=null sound=null defaults=0x0 flags=0xa kind=[null] Aug 20 16:48:00 and then in the next line: WARNING: In a future release this will crash the app: com.example Aug 20 16:48:07 is it normal for android studio to be complaining that it's out of memory when xmx is 2048? Aug 20 16:48:11 TheDracle btw, i haven't read up, but seems bt 4.1 ble has non-gatt profiles : l2cap connection-oriented channels Aug 20 16:48:15 my notifications are not firing, what am I missing? Aug 20 16:48:28 rsz: your icon is "0"? Aug 20 16:48:35 heater89, No.. I'd check your plugins. Aug 20 16:48:44 aka, no icon Aug 20 16:48:55 yeah i have all my plugins disabled except android / git, it takes about 1G Aug 20 16:48:55 g00s, Yeah, I'm only dealing with GATT stuff for now. Aug 20 16:49:14 but it starts a child java process that takes another 400-500mb (gradle) Aug 20 16:49:26 TheDracle: This happend right after i changed compile SDK to 'L' Aug 20 16:49:27 during builds at least. it can go away after some inactiity Aug 20 16:49:41 TheDracle: I can't even get Studio open to close projects now Aug 20 16:49:43 TheDracle yeah, its a nice technology all in all Aug 20 16:49:49 nice easy data model Aug 20 16:50:14 heater89, Yeah, clearly a bug.. I've never seen it take that much memory. Aug 20 16:50:40 Gradle is pretty bad ass, and lightweight. I have it running on my build nodes, and it works like a champ. Aug 20 16:50:42 TheDracle: sigh, alright is there a way to open studio w/ flags that won't open my previously opened projects? Aug 20 16:51:24 heater89, I'm not sure, it's probably stored in a temporary directory somewhere what projects were opened. Aug 20 16:51:25 heater89 its in preferences Aug 20 16:51:36 Yeah.. he can't even get into the IDE because it blows up. Aug 20 16:51:38 'open last project' in general or something Aug 20 16:51:46 g00s: preferences of Android Studio? Aug 20 16:51:49 yeah Aug 20 16:51:52 ooh Aug 20 16:51:55 g00s: ;) Aug 20 16:52:19 well, if you are in dire straights, just start deleting .idea files Aug 20 16:52:30 in your project dirs - assuming all the brains is in the gradle dirs Aug 20 16:52:35 gradle build, errr Aug 20 16:52:42 hi all- since i don't work with bluetooth devices.. is phone considered connected with a bt device when paired? Aug 20 16:52:49 g00s: closed the emulator, and force closed... seemed to open up fine now. thanks for the help :) Aug 20 16:52:57 heater89, You'd probably find some instructions for IDEA in general about this. Aug 20 16:52:58 g00s: spoke too soon Aug 20 16:53:31 * rsz bows to BoD! thank you so much!! :-) Aug 20 16:55:58 :) Aug 20 16:56:00 you're welcome Aug 20 16:56:15 TheDracle, g00s Thanks guys, i'll see what i can do. I just got some projects closed and it stopped Aug 20 16:56:21 had to increase to 4gb tho... Aug 20 16:56:33 heater89 i would also set that preference Aug 20 16:56:51 just in case, later - you restart it, and then it just presents a window with recent projects Aug 20 16:57:04 g00s: Yea i am going to do that, thanks for the suggestion Aug 20 17:02:03 i'm sorry all, got dc'd so i'll just ask again Aug 20 17:02:04 Btw, figured out how to get the user provided name. Aug 20 17:02:05 hi all- since i don't work with bluetooth devices.. is phone considered connected with a bt device when paired? Aug 20 17:02:05 It's a hack. Aug 20 17:02:20 lordgreg no ... Aug 20 17:02:37 But you can do: Method method = device.getClass().getMethod("getAliasName");method.invoke(device); Aug 20 17:02:55 ah yeah, i remember that. stupid that its private. wtf Aug 20 17:03:36 TheDracle might be time to file a bug Aug 20 17:05:28 TheDracle this is a great one just for humor https://code.google.com/p/android/issues/detail?id=67272 Aug 20 17:06:26 and yey https://code.google.com/p/android/issues/detail?id=63056 Aug 20 17:07:36 how do I run android studio in linux? Aug 20 17:12:30 smitzer, Use studio.sh Aug 20 17:21:24 So, has anyone else with bluetooth experienced conflicts between your Application, and the bluetooth system? Aug 20 17:21:38 Like, I'm seeing that when my Application is running, my device is invisible, and can't be seen. Aug 20 17:21:50 And when I force stop my application, then the bluetooth scans suddenly find my device. Aug 20 17:22:01 I'm thinking it's because my application runs startLeScan Aug 20 17:22:49 Or maybe it's just to drive me absolutely insane. Aug 20 17:23:50 I stilll say that it sounds like a french method : startLeScan. (Pepe le Piew accent) Aug 20 17:24:12 english version: startZeScan Aug 20 17:25:15 There is nothing remotely humorous about startLeScan... Other than it prematurely raises a white flag to scanning at the slightest hint of trouble. Aug 20 17:26:01 Fine! Then you obviously do not now Pepe Le Piew! Aug 20 17:26:05 ;) haha Aug 20 17:26:30 I do know it LeFuckingSucks. Aug 20 17:26:37 You actually made me want to dive into my BT code to get LE working... So I'm there now Aug 20 17:26:41 And is ruining my life. Aug 20 17:26:46 hahaha :D Aug 20 17:26:48 Lol. Aug 20 17:27:52 I wonder if somehow my program masks INTENTS that the main bluetooth scanner wants to listen to? Aug 20 17:29:17 nah Aug 20 17:29:34 you can't prevent other components from getting intents Aug 20 17:29:41 Intents, no. Receivers? Maybe... Aug 20 17:29:50 ordered receivers Aug 20 17:30:05 g00s, So, the behavior is, my application is running, the System Scanner from Settings does not see my device. Aug 20 17:30:09 that would probably be in your process though Aug 20 17:30:10 I 'Force Stop' my application. Aug 20 17:30:13 Click 'Scan'. Aug 20 17:30:13 the BT service is in another process Aug 20 17:30:17 And suddenly it pops up. Aug 20 17:30:32 I removed startLeScan- and it doesn't help. Aug 20 17:30:46 maybe your device can't be seen while it's scanning? Aug 20 17:30:51 oh. Aug 20 17:31:06 Well, the only difference is my app is running, or not. Aug 20 17:31:10 TheDracle i'm not sure. all i know is, when i use the 'official' BLE sample that comes with the SDK, it doesn't work half the time Aug 20 17:31:14 And it makes no difference. Aug 20 17:31:15 well... Give me a few hours... I will probably see the same thing Aug 20 17:31:38 Yeah, I've noticed drastic difference in behavior between slight version differences with 4.2 Aug 20 17:31:49 I.E: One device has a slightly newer build, and Bluetooth LE works better. Aug 20 17:32:03 Better being a relative term versus not working at all. Aug 20 17:32:52 this is why product dev startups using BLE just focused on iOS as their first market Aug 20 17:33:46 TheDracle check out the sample. i never had problem with scan, but i couldn't read characteristics often Aug 20 17:33:49 Yeah, iOS won't fly for me, I'm making a consumer device that runs Android. Aug 20 17:33:58 And there's no way I'm going to make a consumer device that runs iOS. Aug 20 17:34:27 TheDracle oh so your device runs android ? Aug 20 17:34:28 g00s, It's a problem with the entire system though. Aug 20 17:34:39 g00s, Yeah. Aug 20 17:34:43 i thought you were just connecting to a peripheral Aug 20 17:34:48 At the moment. Aug 20 17:34:54 Just using a consumer grade tablet. Aug 20 17:35:01 For development purposes. Aug 20 17:35:32 whats iron about all of this, is that compared to bt-classic, BLE is simple, low complexity, and cheap - should be easy to design for Aug 20 17:35:36 *ironic Aug 20 17:35:46 Right. Aug 20 17:35:53 I think it's just not ready for the limelight in Android yet. Aug 20 17:35:58 Obviously a lot of work going on with it. Aug 20 17:35:59 :-/ I updated my x86 images yesterday and now HAXM is crashing on my Mac. Anyone else have this issue? Aug 20 17:36:00 that nordic semi part is like $2 in low quantities Aug 20 17:36:16 jessie use genymotion if you can Aug 20 17:36:27 also haxm won't work on 10.10 betas, etc Aug 20 17:36:56 What part of the activity lifecycle should i load data Aug 20 17:37:01 g00s: This is for commercial stuff, so genymotion is currently out since I'd have to wait for someone to buy me a license. Aug 20 17:37:10 aw shit Aug 20 17:37:36 Not to mention, damn that's pricey. Aug 20 17:37:54 $412/yr per users. Aug 20 17:37:56 apparently great profit in making android tools that don't suck Aug 20 17:39:13 Great profit at making any dev tools that don't suck really :) Aug 20 17:39:30 Way harder than making skinner box IAP games tho Aug 20 17:39:35 Apparently so. I haven't had any issues with HAXM until today, so I was pretty happy. But now it just crashes. Aug 20 17:39:36 from what i heard, dev tools is a tough market to be in Aug 20 17:39:48 Yeah, getting momentum in the dev world can be tough. Aug 20 17:39:51 hard to get VC, etc Aug 20 17:40:14 Mavrik lol skinner box apps :) Aug 20 17:40:32 Honestly, I think the VC craze pretty much damages the whole industry. Aug 20 17:40:42 You have bunch of services and softwrae that dies after 2 years Aug 20 17:42:37 What part of the activity lifecycle should i save and load data from a file Aug 20 17:42:42 quick question Aug 20 17:42:56 onPause/onStart?? Aug 20 17:43:33 HelplessJub: thats a design question Aug 20 17:43:42 based on what you are doing, and how it all works Aug 20 17:43:55 doubt you will find an absolute answer :) Aug 20 17:43:59 heh, VZ is making their own Android App Store again Aug 20 17:44:05 yep, there are a few places where you can save/load Aug 20 17:44:25 ok, i think start/pause will work for me Aug 20 17:44:39 usually you should do it on pairs Aug 20 17:44:55 start/stop or pause/resume Aug 20 17:45:21 " it might not end up being exclusive to Verizon. The Information says big red is currently in talks with other carriers, along with phone OEMs, to try and get the platform off the ground" Aug 20 17:46:06 :-| Verizon just wants a chunk of the IAP fees. Aug 20 17:46:41 they want to give you the opportunity to pay for placement Aug 20 17:46:45 hehe Aug 20 17:51:17 Dear Member, I am done with learning how to develope an android game. Ok sure i will learn more but now i need some experience with drawing. And i am searching the right software for that. Which software is recommend when i want to draw things like clash of clan stuff or jetpack joyride stuff. Thanks before Aug 20 17:52:20 Math2568: real paper + Illustrator | Photoshop Aug 20 17:52:51 real paper :D how you mean ? ah Okay thanks Aug 20 17:53:06 erm, that white stuff made from trees Aug 20 17:53:20 and some fine grade pencils too ;) Aug 20 17:53:30 graphite ones Aug 20 17:54:16 hahaha :D Aug 20 17:54:24 okay thanks Aug 20 17:56:22 Math2568: tools are not the defining element with a task like that anyway Aug 20 17:57:30 hmm right but when i watch the graphics in these apps (clash of clans) then I dont believe that software is a important factor for this Aug 20 17:58:26 thats what I said :) Aug 20 18:00:10 Had to spend more time in learing english as in develope :D Aug 20 18:00:29 exist engines which support vector graphics ? Aug 20 18:01:32 yes, but expensive Aug 20 18:01:53 using android studio, using the wizard to create a project with a blank activity for L. Android studio cannot resolve any android.* packages. It will run the project, the SDK path is correct, the JDK path is correct. any suggestions? Aug 20 18:01:55 as in any vector paths etc are quite expensive Aug 20 18:38:32 how do i start the eclipse-sdk on ubuntu? Aug 20 18:38:48 click it Aug 20 18:38:48 i dont find the eclipse "exe" file Aug 20 18:39:02 there are no exe in unix.. Aug 20 18:39:35 nm Aug 20 18:43:09 sure there are.. Aug 20 18:43:43 echo "#!/usr/bin/sh" > blah.exe && echo "echo Hello!" >> blah.exe && chmod +x blah.exe Aug 20 18:44:50 /bin/sh, not /usr/bin/sh Aug 20 18:44:55 how do I run chrome without doing it from the shell? Aug 20 18:45:06 yeah, that :) Aug 20 18:45:23 smitzer ##ubuntu Aug 20 18:45:24 also, the redirects and && won't work. but whatever Aug 20 18:45:47 :) Aug 20 18:46:30 smitzer: it really depends on your distro and how you installed it Aug 20 18:46:44 typically, on ubuntu, there's an entry in the app drawer thingy Aug 20 18:52:18 My frag-stack tho- The initial fragment comes up blank when you pop off the top layer Aug 20 18:52:38 onSaveInstanceState never gets called, but that may be unrelated Aug 20 18:53:07 I am using similar code elsewhere and it works better than great, so I need a checklist of what I might've forgotten Aug 20 18:54:46 If anyone is interested, this is the relevant code for the initial ProfileFragment, and pushing of subsequent "following" and "followed by" fragments http://pastie.org/9489712 Aug 20 18:56:19 i want to have a span which shows the text entered over a background, and which is treated as a single character, in that you can't move the selection to the middle of it. i've looked into image span, but it always seems to erase the text that it spans. any other ideas? Aug 20 19:03:32 eclipse android-studio contradicts each other. https://developer.android.com/sdk/installing/migrate.html says export+import but when exporting ine clispe it warns that it is better to import directly... Aug 20 19:03:38 which should i choose? Aug 20 19:05:20 hm, Crashlytics is not offering a beta testing service Aug 20 19:05:25 *now Aug 20 19:05:57 yep Aug 20 19:06:05 the answers thing is even neater tho Aug 20 19:07:28 g00s, any ideas on the span question? Aug 20 19:07:36 no, i hate span Aug 20 19:07:48 le sigh Aug 20 19:18:04 would there be any way to take text from an edittext and place it into a drawable? like taking a bitmap of that text Aug 20 19:18:42 whomp: you can draw text to a canvas Aug 20 19:19:14 and on a canvas you can draw a bitmap Aug 20 19:19:23 so…errr.. yeah I guess :) Aug 20 19:20:09 Hey guys, I have an adapter that's used by two different activities. I'd like for the adapter's onclick behavior to be different depending on which activity it is running in. Can I do this using the context I pass to the adapter? Aug 20 19:20:48 thx guys :) Aug 20 19:21:37 helichopter: wouldn't the clicks behandled by the listview? Aug 20 19:21:46 helichopter: you mean onItemClick cause that is an interface for outside of an adapter, so makes your question quite…suspect :) Aug 20 19:22:45 someone stole my nick? Aug 20 19:23:05 canvs2321-: I'm populating the adapter with custom ListItem objects. These ListItems each have ImageViews which handle the clicks Aug 20 19:23:15 helichopter: join the club Aug 20 19:23:29 helicopter88: I mean…join the club :) Aug 20 19:23:54 helichopter: Can add a flag to specify from which adapter your listitem is currently being viewed and set acoordinly Aug 20 19:24:46 canvs2321-: okay cool, that definitely sounds like it'll work, thanks Aug 20 19:26:03 are intenservices the best way to handle calls to a rest api? Aug 20 19:26:08 intentservice* Aug 20 19:26:23 f00dWorksta: design decision and personal preference Aug 20 19:26:26 they are a way Aug 20 19:26:40 f00dWorksta: If you dont need a service, you can do them async without a service too Aug 20 19:27:23 danijoo: but I read that async causes problems when, say, device orientation changes, or the activity pauses/stops Aug 20 19:27:45 f00dWorksta: only if you dont know how to code it properly. Aug 20 19:29:34 danijoo: any pointers? or resources you can direct me towards? Aug 20 19:30:18 just google android async task configuration change Aug 20 19:30:25 plenty of guides out there. Aug 20 19:31:05 ok thanks Aug 20 19:32:06 does android-studio notice that i have a git repo or is it making its own? Aug 20 19:34:12 itll notice if you init'd already Aug 20 19:34:20 then it'll prompt you to add it to the config for the ide Aug 20 19:34:32 which itll auto add to tracked when you create new files, etc Aug 20 19:34:51 (unless you click no dont remind me again since you prefer to manage your git business from the comand line) Aug 20 19:35:15 smitzer go into prefs -> version control , look at the project root Aug 20 19:36:12 g00s: what irc client you using currently ? Aug 20 19:38:21 anyone know if analytic campaigns are working in the new android analytics v4 sdk? I keep getting No campagin data found in the log. Aug 20 19:51:07 Is there someway to hide tab title for chrome? Aug 20 19:55:35 wow, android-studio seems vastly superior to eclipse Aug 20 20:06:51 how do you calculate ALPHA for a discrete time filter? Aug 20 20:07:05 how is it related to the sampling time? Aug 20 20:13:03 Does android-studio not let you make standalone java applications? I have myproj/app/src/main/java/mypkg/Banana.java (public class Banana) that just does a system.out.println() and I can't find the results anywhere Aug 20 20:15:53 py0: android studio is for android, not java Aug 20 20:15:56 try intellij Aug 20 20:16:15 in material design, is drop shadow like you see here (http://stackoverflow.com/a/21445593/1747491) going to be discouraged do you think? Aug 20 20:16:23 that's crazy that I need an entirely new ide Aug 20 20:16:48 if i modify a float[] inside a function, will the parameter be changed then? Aug 20 20:17:29 py0: you can use intellij for android and java, then you dont need an entirely new one :p Aug 20 20:20:16 StingRay_ textual Aug 20 20:22:09 Hey Aug 20 20:24:42 TheDracle still there ? Aug 20 20:25:14 g00s, Back from lunch. Aug 20 20:25:32 TheDracle have you heard of iOS:lightblue or android:nRF Master Control Panel ? Aug 20 20:25:42 g00s, No, what are they? Aug 20 20:25:46 both from nordic semi Aug 20 20:25:52 nice little ble debugging tools Aug 20 20:26:04 Ah. I'll try them out. Aug 20 20:26:15 So, I had this device working really reliably. Aug 20 20:26:22 And now.. my device just doesn't appear... Aug 20 20:26:27 And the scan returns nothing. Aug 20 20:26:41 It's seriously schizophrenic. Aug 20 20:28:17 this nordic semiconductor tool is working very well with my BLE hw Aug 20 20:28:28 i guess the google devs don't know how to use their apis Aug 20 20:28:43 or maybe an intern wrote the ble sample :) Aug 20 20:30:00 TheDracle seems like some versions of these tools let you emulate / create a profile for a peripheral so you can dev without the HW present Aug 20 20:30:07 seriously cool ! Aug 20 20:30:17 and its free tool, holy crap. Aug 20 20:31:03 Yeah, I'll check it out. Aug 20 20:50:47 for a REST client, would you use syncadapter or some other approach? Aug 20 20:51:14 the typical app with lists/master-detail Aug 20 20:52:51 hello guys Aug 20 20:53:48 I'm trying to find if Android contacts have some kind of update field, but I can't find it, does anyone knows if it does have or any way to check the last updated time of a contact? Aug 20 20:58:56 I'm trying to strace an app to see why it's not receiving an INSTALL_REFERRER broadcast when it starts. But I think my strace is connecting after that happens. So I'm trying to strace zygote instead. But it gives me `strace: wait: Permission denied` Aug 20 20:59:18 I'm doing this in adb shell as root. Why would it not let me look at zygote? Aug 20 21:01:53 frem: is this somebody elses app? Aug 20 21:02:06 bankai_au what are you using rx onStart for ? Aug 20 21:02:09 canvs2321: this is my phonegap app. Aug 20 21:03:08 frem: your question is just very vague. if you've got code, why aren't you checking in there? Aug 20 21:05:32 "you can request reactive pull backpressure by calling Subscriber.request(n) in the Subscriber’s onStart() method " .. ah, i see Aug 20 21:06:31 canvs2321: Because none of the code in the process is mine. I pasted in the example intent receiver into AndroidManifest.xml (it uses stuff in Google's analytics library), and I sent the event using adb, and I got the "no campaign" error message in my log. Aug 20 21:06:50 canvs2321: That's why I've resorted to strace; I have no idea where in the process it's failing. Aug 20 21:11:32 g00s: nothing yet, there's just been a few situations where i've wanted to use it Aug 20 21:11:44 eg. start a 'progress' dialog, or disable a button etc. Aug 20 21:18:13 canvs2321: Oh, yeah. This is what I was actually trying to do, before yak shaving happened. :-) https://developers.google.com/analytics/devguides/collection/android/v3/campaigns#google-play-implement Aug 20 21:30:30 Would there be any "use case" for a full screen app like an android game using fragments? The basics I want with this little app are adequately covered switching views on and off and works perfectly well. No different layouts for phone vs tablet. Aug 20 21:31:42 rgr: huh? Aug 20 21:32:03 Cant write it in swahili I'm afraid. Aug 20 21:32:27 Im trying to figure out exactly when to use fragments and when not. It doesnt seem a clear cut thing. Aug 20 21:32:56 rgr if you dont need then dont use Aug 20 21:33:31 there isn't a …oh need to use fragments for this :) Aug 20 21:33:34 I can see this isnt working. Im trying to determine when you feel you "do need". A little broad ranging I admit. Aug 20 21:33:54 personal and subjective Aug 20 21:34:01 all the time cause I use re-usable segments Aug 20 21:34:09 as my app needs it Aug 20 21:34:16 (And just as an academix excercise I was thining of lifting out my game canvas and implementing it in a fragment. Aug 20 21:35:34 implementing it for what purpose Aug 20 21:36:52 Did you even read the Q before saying "huh?" and then asking that. I clearly stated "and just as an academic excercise". Aug 20 21:37:00 Cya. Aug 20 21:37:09 lol Aug 20 21:37:23 Oh i read everything, just couldn't understand where he was going with it Aug 20 21:37:26 g00s: govt forcing app stores to do remote wipes http://arstechnica.com/tech-policy/2014/08/brazil-court-to-apple-google-wipe-anonymous-sharing-app-off-users-phones/ Aug 20 21:37:44 canvs2321 dont feel too bad, dont think anyone did Aug 20 21:37:54 :) Aug 20 21:39:19 capella-s3 just a reminder, we're all just renting land on someone else's property Aug 20 21:39:26 oh yeah, android is open source so its ok Aug 20 21:40:37 damn it RMS keeps being right Aug 20 21:40:58 remove those links! delete their apps! Aug 20 21:41:17 all their stuff is ours Aug 20 21:42:18 I don't think there's a "remote delete" function for apps in Play Store Aug 20 21:42:35 capella-s3 did you see VZ want another stab at a Android App Store, along with other carriers and oems Aug 20 21:42:41 There are weird things with geographically-limited other content, but no "remote wipe" Aug 20 21:42:57 i'm pretty sure play services can remote delete Aug 20 21:43:15 for retroactive security reasons presumably Aug 20 21:43:22 i bet it can Aug 20 21:44:35 * capella-s3 needs to find a security channel to start hanging out on Aug 20 21:44:37 in fact i thought its already been demonstrated Aug 20 21:44:55 g00s: never seen it happen or be reported Aug 20 21:45:12 p_l first i heard of it, google removed malware downloaded from play Aug 20 21:45:27 I've seen people having issues with Books and the like, but not removing of files already installed Aug 20 21:45:34 hm Aug 20 21:45:43 why they started pushing apps to my phone that i didnt ask for I got worried Aug 20 21:46:16 if they can push they can pull Aug 20 21:47:00 Well, you can always uninstall Play Store ;) Aug 20 21:47:15 yep :) Aug 20 21:47:23 capella-s3 if you are interested there is a android security book coming out Aug 20 21:47:44 * capella-s3 wants realtime contacts Aug 20 21:48:51 well, here it is http://shop.oreilly.com/product/9781593275815.do Aug 20 21:49:05 i thought there was another one ... hm Aug 20 22:10:51 Hi guys, had a question. Other then AlertDialog.cancle();, are there any other ways to close an alertdialogue? Aug 20 22:17:31 whats wrong with .cancel() Aug 20 22:18:05 you can dismiss)_ Aug 20 22:18:09 dismiss() Aug 20 22:45:40 I accidentally selected the JDK as the SDK for my project in Android Studio. How do I add the Android SDK to my project? Aug 20 22:46:49 ctrl + alt + shift + s Aug 20 22:47:04 and change it in project settings Aug 20 22:59:40 Is there a SparseArray impl that accepts "long" as keys? Aug 20 23:00:28 can I set multiple filters for a broadcast receiver Aug 20 23:03:23 explodes: http://developer.android.com/reference/android/support/v4/util/LongSparseArray.html Aug 20 23:03:24 lol Aug 20 23:03:31 Oh damn Aug 20 23:04:16 Solid find thanks man Aug 20 23:14:15 Guys - judging by this http://developer.android.com/reference/android/app/LoaderManager.LoaderCallbacks.html Aug 20 23:14:33 I should be able to use public void onLoadFinished(Loader loader, Cursor data) { Aug 20 23:14:50 But it doesn't have a suitable override Aug 20 23:15:29 Oh retard moment Aug 20 23:15:39 LoaderManager.LoaderCallbacks becomes LoaderManager.LoaderCallbacks Aug 20 23:39:26 I'm having a really strange issue with setVisibility Aug 20 23:39:34 paste incoming Aug 20 23:39:57 I tried to call setVisibility(false), but then my device disappeared Aug 20 23:40:53 lol Aug 20 23:40:55 https://dpaste.de/BWA0 Aug 20 23:41:06 basically this works if you scroll fast Aug 20 23:41:17 the extraView appears right after you scroll past the header Aug 20 23:41:26 and disappears when you scroll back up over it Aug 20 23:41:40 but when you scroll slowly, it doesn't re-appear Aug 20 23:41:45 and the logger is still logging Aug 20 23:41:50 and the numbers are > 1 Aug 20 23:42:26 extraview? Where is that defined? Aug 20 23:42:38 don't you mean view? Aug 20 23:43:20 that's the view i'm hiding/showing Aug 20 23:43:29 it's elsewhere, irrelevant Aug 20 23:43:47 the view with the problem is irrelevant??? Aug 20 23:44:24 there's nothing special about it... Aug 20 23:47:07 I'm gonna try calling requestLayout() after setVisibility Aug 20 23:56:53 wow, i really like android studio so far. eclipse was pretty awful in comparisment Aug 20 23:58:06 smitzer yup Aug 20 23:58:12 very awful* Aug 21 00:00:27 JesusFreke: i used spot remover on my dog and now hes gone Aug 21 00:00:50 smitzer: welcome to the light side :) Aug 21 00:01:26 poor dog Aug 21 00:03:07 and now setting visibility="gone" in the XML causes a NPE that's not in my code >.> Aug 21 00:04:06 you know... Aug 21 00:04:30 maybe it's because when the extraView appears, it covers up one of the listview items, which throws off the count Aug 21 00:08:39 frankdrey-pc: i assume this is some sort of chatting app? Aug 21 00:09:52 i have a race condition between my MainActivity onCreate and my install broadcast receiver Aug 21 00:10:02 that doesnt sound good Aug 21 00:10:14 desmin88, not exactly :P Aug 21 00:10:28 its easy to handle the install broadcast comes first case, i write to shared prefs and check onCreate Aug 21 00:10:31 but this screen's ui is pretty much that Aug 21 00:10:33 check in onCreate* Aug 21 00:10:51 but i dunno for sure how to safely get from receiver to MainActivity? Aug 21 00:11:10 i guess i can make a static instance and accessor and try and grab it, just feels so clunky Aug 21 00:11:18 ok well is the view that pops up where you type some sort of text? Aug 21 00:12:33 sqpat: you want to communicate from the receiver to your activity? Aug 21 00:12:46 yeah if its not null Aug 21 00:12:49 http://square.github.io/otto/ Aug 21 00:12:50 event bus Aug 21 00:14:15 yup, that was pretty much the problem Aug 21 00:14:33 i'll use a relativelayout and give the listview enough bottom padding Aug 21 00:16:30 https://xkcd.com/323/ heh Aug 21 00:16:50 only issue with the ballmer peak Aug 21 00:17:05 you have no idea why or how what you coded works the next morning Aug 21 00:17:10 lol Aug 21 00:17:31 desmin88: that's easy to solve though Aug 21 00:17:42 you just have to get to the ballmer peak again Aug 21 00:17:46 lol Aug 21 00:19:07 holy shit it works now Aug 21 00:19:16 * frankdrey-pc scrolls up and down grinning like a maniac Aug 21 00:21:17 this is where I'll stop Aug 21 00:21:24 if I keep going, I'll just fuck stuff up :P Aug 21 00:22:23 JesusFreke: constant iv drip of alcohol and BAV monitoring Aug 21 00:22:47 thats the google engineer secret for dealing with the clusterfuck that android can be something Aug 21 00:23:41 sometimes* Aug 21 00:25:13 lol Aug 21 00:25:36 des mouseover tooltip on that xkcd ;) you will get more funny. Aug 21 00:29:41 hey guys Aug 21 00:30:13 hey guy Aug 21 00:31:05 im trying to get the height of a listview item in android 2.1 but i keep getting a null pointer exception Aug 21 00:31:28 no bueno Aug 21 00:31:40 i do: list.getChildAt(i).getMeasuredHeight() Aug 21 00:32:00 XXCoder: omg lol Aug 21 00:32:17 you never knew? heh Aug 21 00:32:37 nope Aug 21 00:32:39 o hey xxcoder Aug 21 00:32:46 remember me from nookdevs Aug 21 00:32:47 hey Aug 21 00:32:50 ye Aug 21 00:40:09 How can I best debug UI and a concurrency problem? I have a custom View from a library I'm using and sometimes it sets up and works correctly but other times zooming doesn't seem to work. Do I need to be updating or refreshing the rendered view perhaps? Aug 21 00:48:26 Why is my subscribed-to observable not firing the retrofit-request to which it is tied? Aug 21 00:49:18 u broke something Aug 21 00:49:32 Oh sweet Aug 21 00:50:08 I think its more related to an unretained reference or something, I've had this problem before but I forget where in particular that this is important Aug 21 00:54:33 One does not need to keep an instance of the Observable that one is subscribed to Aug 21 00:54:48 However, one must keep an instance of the Observer Aug 21 00:55:07 or subscription Aug 21 00:56:11 Must have retained either the Sub OR the Observer? Aug 21 00:58:51 I have the instance of Observer Aug 21 00:59:40 The subscription is kept in a CompositeSubscription, even Aug 21 00:59:46 so those bases are covered Aug 21 01:01:30 I'm gonna go home, I'll ask about this tomorrow Aug 21 01:01:34 Later Aug 21 01:46:46 When I upload a new APK, do both versionName and versionCode have to be changed or is it just versionCode? Aug 21 01:53:24 LuxuryMode i think just versionCode Aug 21 01:54:34 meh, I can't get this math right... Aug 21 01:55:24 for some reason, I can't get my interest approximation in my tvm formula to converge on an answer Aug 21 01:55:40 * pfn does too little math :( Aug 21 02:00:40 thanks g00s Aug 21 02:07:37 say it's 2 am and I'm using Calendar.get(Calendar.HOUR_OF_DAY), does that return 02, or just 2? Aug 21 02:10:08 Zylum: what difference do you think a leading zero would even make? Aug 21 02:10:59 well, that's kind of only relevant to my app.. do you know the answer? I was kind of hoping I don't have to wait until after midnight to find out. Aug 21 02:12:11 its gonna give you 2. Aug 21 02:12:12 Zylum for starters, avoid using Calendar like the plague. Prefer Joda. Aug 21 02:12:23 but yes joda time Aug 21 02:12:25 is best time Aug 21 02:12:39 never heard of Joda, thanks I'll look into it Aug 21 02:12:41 Zylum and the raw number should never be relevant. If it's for display purposes, then you'll want a formatter of some kind. Aug 21 02:12:53 Zylum Joda is the shiznit and should be in the standard lib tbh. Aug 21 02:13:08 I need to make my own formatter for my purpose Aug 21 02:13:26 I have built various alarms and calendars on android and it wouldnt be possible without joda, unless i didnt care to keep any of my hair Aug 21 02:13:44 lol LuxuryMode **** ENDING LOGGING AT Thu Aug 21 02:59:59 2014