**** BEGIN LOGGING AT Thu Aug 21 02:59:59 2014 Aug 21 03:05:37 hey guys anyone here use parse and can help me with ParseUI Android Login? Aug 21 03:22:49 hi, can i get usb device's idvendor value in vold ? Aug 21 03:43:07 p_l apparently possible for quite a long time http://www.androidpolice.com/2011/03/06/google-acknowledges-droiddream-remotely-wiping-apps-removing-exploit-making-changes-to-prevent-it-from-happening-again/ Aug 21 03:45:51 Any well known open source mature moible cms out there? I'm thinking of building a mobile app for my town. I would not be using the phone's native hardware (gps camera etc) so embedding the web app as a native app IS an option Aug 21 03:46:47 g00s: you mentioned a while ago about windows mobile and timeouts on the main thread, do you know what the timeout was ? Aug 21 03:46:51 half a second or something Aug 21 03:47:27 bankai_au windows mobile + timeouts ... i don't recall what i could have been thinking Aug 21 03:47:41 ummm something about forcing devs to use RX Aug 21 03:47:44 where can i find my applications.onCreate is it in the Java folder? Aug 21 03:48:18 bankai_au oh man, that mist have been when i was watching the channel 9 videos - a long time ago Aug 21 03:49:00 oh ok, doesn't matter, was hopind you'd have a link handy, but obviously not ;) Aug 21 04:05:26 BeWilled: generally web apps as android apps are frowned upon Aug 21 04:21:27 Woo figured it out :D now time to work on the ParseLoginUI :D Aug 21 04:22:02 I ned to find a better way of learning other than trial and error :o. Aug 21 04:29:54 Psil0Cybin: reading and following documentation and example code? Aug 21 04:30:35 you sick fuck Aug 21 04:30:40 who does any of that Aug 21 04:35:00 haha Aug 21 04:47:46 Real Men learn by Trial & Error... Ohh, what does this button do??? BANG Aug 21 04:47:48 <<>> Aug 21 04:47:49 CARRIER LOST ^%$#&%^&*(&)(_(^%%@@@@@@@@&^*(@@@@@@@@ Aug 21 05:41:00 Nivag: loll you guys make my night :P Aug 21 05:41:17 Sounds like someone had some coffee, jump of energy rush Aug 21 05:42:04 Have to say also setting a private git repo on my raspberry pi also helps to see the differences of my file, etc, what I change because i ue it for my own methods Aug 21 05:53:40 anyone here use parse login ui before? and can perhaps help me out, I am confused if it is ony located on the git hub Aug 21 05:55:48 what are you confused about Aug 21 06:00:46 it wants me to use git to clone it into a folder, how would i go about doing that i am new to using git, I clicked Download ZIP Aug 21 06:01:14 but it says I need to fetch a facebook package, but I found facebook-android-sd03.17 online Aug 21 06:02:29 pretty sure there's no need to clone. are you actually authenticating against facebook or is that just their example? Aug 21 06:02:59 It was the ReadMe step by step, they provided on git, that says all these things lol Aug 21 06:04:04 What I am really confused about is what needs to be placed within my libs folder from this ParseUI Aug 21 06:04:16 It said that the standard parse1.5.1 jar was not enough Aug 21 06:05:18 no idea, never used parse before, but I guess you need to apply some common sense to everything you read Aug 21 06:10:00 Well I am so confused because i thought it was a .jar i would import as a library within my own project Aug 21 06:12:17 not all libs come as precompiled jars Aug 21 06:12:38 do you use android studio Aug 21 06:12:53 Oh, see that is what confused me Aug 21 06:13:09 yes I am using android studio i tried to import the project but it has plenty of different errors in build.gradle Aug 21 06:13:33 you have to move it into your project directory and add it as a module Aug 21 06:13:57 Do I move the whole ParseUI-Android-master, folder? Aug 21 06:14:30 no Aug 21 06:14:47 parseloginui folder Aug 21 06:15:43 so within my main directory i have , app , build , gradle, libs, and now i added ParseLoginUI Aug 21 06:15:45 is that correct? Aug 21 06:15:47 yes Aug 21 06:15:53 Thank you btw desmin88 it does not explain this online! Aug 21 06:16:25 in your settings.gradle Aug 21 06:16:41 youll have include ':app' Aug 21 06:16:41 you need to add parseloginui Aug 21 06:17:38 Okay but you said first i go import > add model > select the parseloginui, from my project folder Aug 21 06:17:39 correct Aug 21 06:17:56 you can Aug 21 06:18:02 but if you just add it to settings.gradle Aug 21 06:18:08 then sync with the gradle files Aug 21 06:18:10 itll do it for you Aug 21 06:18:36 okay well it says Select modules to import and it Beside ParseLoginUI, it says Project already contains module with this name Aug 21 06:18:49 and facebook-sdk:Facebook says Module soure not found Aug 21 06:20:27 ah gotta add facebook as well into the root directory i think the facebook-android-sdk-3.17 let me try Aug 21 06:23:05 hmmm Aug 21 06:23:22 how do i know if I added ParseLoginUI succesfully, you said i can just add it into settings.gradle? Aug 21 06:28:00 yes Aug 21 06:28:04 then you have to sync the project Aug 21 06:28:06 to the gradlef iles Aug 21 06:29:09 well in settings all i see is include ':app' Aug 21 06:29:16 yes Aug 21 06:29:18 you have to add it Aug 21 06:29:20 yourself Aug 21 06:29:20 so do i add include ':ParseLoginUI:' Aug 21 06:30:06 "include ':app', ':ParseLoginUI' Aug 21 06:30:12 something like that Aug 21 06:30:39 oh all one line/ Aug 21 06:31:22 yes Aug 21 06:32:16 maybe you should look into working with gradle first :p Aug 21 06:32:53 Yes I need too I am confused it says Project with path ':facebook-sdk:facebook' could not be found in project ParseLoginUI Aug 21 06:33:10 parseuilogin Aug 21 06:33:14 needs that dependency Aug 21 06:33:37 https://github.com/ParsePlatform/ParseUI-Android/blob/master/ParseLoginUI/build.gradle#L4 Aug 21 06:33:39 look here Aug 21 06:34:36 so you also need to downoad the facebook sdk and add that to your project Aug 21 06:34:42 yes but within the folder they provided in the git, the Facebook folder is empty, unless I need to get it from somewhere else as well...its just like a treasure hunt xD Aug 21 06:34:57 okay so I would readd it the same way you guys suggested, copy it into the folder ... go to settings.gradle and add it as well? Aug 21 06:35:03 Or just add it into the folder and syncronize? Aug 21 06:35:10 since it is already being looked for. Aug 21 06:35:18 add it the same way you added the parse library Aug 21 06:35:26 okay Aug 21 06:38:25 Hello, I have a peculiar problem. When I export my android project with Eclipse and then extract the .apk with 7z, the AndroidManifest.xml is like this: http://pastie.org/private/vqmzbx4tuoitle4da5eva I don't think it's supposed to be like that? Aug 21 06:40:04 Temeez: Looks normal to me for an APK. Aug 21 06:40:37 So its supposed to be non-human readable after its inside apk? Aug 21 06:40:51 Yes. It gets compiled to an easily deserializable format. Aug 21 06:41:25 i honestly wonder why you even did that Aug 21 06:41:34 Ok. Then I wonder why google play says "requried android 1.6 and up" when I set the minsdk to api 8 Aug 21 06:41:36 ^thats why Aug 21 06:42:10 set you midsdk to api 15 Aug 21 06:42:25 Are you sure you set it to 8? Aug 21 06:42:36 Aug 21 06:42:40 Temeez, ever heard of precompiled XMLs? Aug 21 06:42:51 ravilov: nope Aug 21 06:42:58 android uses them ever since android existed Aug 21 06:43:02 Did you do a clean build? Aug 21 06:43:24 desmin88: but then it wouldn't work with 2.2 would it? Aug 21 06:43:29 Nilium: yup Aug 21 06:43:33 why do you need your app to work with 2.2 Aug 21 06:43:43 Because it can? Aug 21 06:43:46 desmin88: i added it the same way but it keeps saying Could not be found in project :ParseLoginUI: Aug 21 06:43:50 Don't know then, maybe you're just reading the wrong thing. Aug 21 06:43:56 so does that mean it needs to be placed inside that folder instead of the main folder? Aug 21 06:44:13 I added facebook-android-sdk-3.17.1 in the settings.gradle Aug 21 06:44:15 Or you've got something in your local/project properties overriding the minSDK. Aug 21 06:44:22 along side with ParseLoginUI and it keeps ssaying that Aug 21 06:44:27 Hi guys! Aug 21 06:44:32 Depending on your build system, anyway. Aug 21 06:44:41 Temeez: If you don't know why you need to support 2.2, set your minsdk to 15. Aug 21 06:44:45 desmin88, IMHO it's poor practice to simply decide on an arbitrary "min" version, an app should always declare as "min" the level on which it is capable of working Aug 21 06:45:15 if it can technically work on as low as 8, then why not use that? Aug 21 06:45:21 guys, I need a big advice Aug 21 06:45:37 lex93, sorry, out of those, can I offer a bunch of small advices? Aug 21 06:45:38 lex93: Ok, some big advice: use git. Aug 21 06:45:42 You're welcome. Aug 21 06:45:53 Nilium: I already use it ;) Aug 21 06:46:01 tell me a case where an app can work on both api 8 and api 15 with no code changes Aug 21 06:46:04 Secondary advice: use git add --patch. Aug 21 06:46:14 desmin88: Hello World. Aug 21 06:46:20 meaningful app. Aug 21 06:46:32 desmin88, all my apps work on both 8 and 15 with exactly zero code changes Aug 21 06:46:41 really Aug 21 06:46:43 they are all meaningful Aug 21 06:46:49 Meaning is dependent on the person. Aug 21 06:47:04 really Aug 21 06:47:05 if I make my app to work on 8, then it will obviously work on 15 too with no code changes Aug 21 06:47:09 yeah Aug 21 06:47:09 I built an app that works on API 8 and 15 without code changes. Aug 21 06:47:27 im more saying that what app built for 15 would work on 8 Aug 21 06:47:29 I don't see why it matters. It technically works on API 7. Aug 21 06:47:54 desmin88, maybe that's exactly why you *shouldn't* force it to 15 unless you really need api15 functionality Aug 21 06:47:56 Well his app isn't built for 15, it's built for 8, so why the hell does it matter? Aug 21 06:48:24 Why do you need _his_ app to have a minSDK of 15 when his app supports API 8? Aug 21 06:48:42 If his app supports API 8, why wouldn't it have that as a minSDK? Aug 21 06:48:46 does his app support 8 with no code changes Aug 21 06:48:55 that's what it looks like Aug 21 06:48:56 Apparently it does because he's using it Aug 21 06:49:01 or does his app support 8 because he uses support libraries Aug 21 06:49:09 does it matter? Aug 21 06:49:12 yes Aug 21 06:49:17 no it doesn't Aug 21 06:49:18 cost-benefit Aug 21 06:49:28 technically it WORKS on 8 Aug 21 06:49:30 This is completely irrelevant. ravilov's point is you should pick what it supports. Your argument is he should use API 15 because he should use API 15, which is stupid. Aug 21 06:49:48 At no point did anyone ask your advice on which API level it should be using. Aug 21 06:49:57 lol Aug 21 06:50:12 jokes apart, I need to buy a new laptop for my development work. currently I'm using a 2009 laptop with Kubuntu. I'm thinking to buy a Macbook Air 13", but I never had got a Mac. Is this a good choice for a developer? Can it run various compilations, vectorial graphics apps, gimp/photoshop, android studio, chrome etc all toghether without any problems? Enlighten me. Aug 21 06:50:16 what a pointless discussion for no good reason Aug 21 06:50:16 is there way to monitor/control network/data usage and power consumption for each app? Aug 21 06:50:20 my point is that he probably can set it to 15 and not have to deal with the fuckeries of support libraries Aug 21 06:50:24 If he'd asked "which API level is a good starting minimum?" then your statement would have some merit. Aug 21 06:50:46 As is, the only thing you're arguing for is pointlessly raising the minSDK when it's not necessary Aug 21 06:50:49 desmin88, your point is invalid if he's already dealing with support libraries (or does away without them altogether), which it seems he does Aug 21 06:50:53 so just quit Aug 21 06:51:01 you guys are really fired up Aug 21 06:51:05 for me just commenting on api level Aug 21 06:51:14 your "comment" was uncalled for Aug 21 06:51:17 Because you're arguing something stupid ಠ_ಠ Aug 21 06:51:37 Actually I'm not sure if I'm using a support libs :D http://i.imgur.com/DSXVf7H.png this is the only code which differst between pre and post api 11 Aug 21 06:51:45 it's like if I'm asking for an advice about eclipse and you say "just use android studio" or whatever Aug 21 06:52:01 I wasn't asking about what IDE I should use, I asked a specific question Aug 21 06:52:07 so such a comment would be pointless Aug 21 06:52:08 i was trying to save him the grief of building his app using support library code when he could just set it to api 15 and not have to deal with that Aug 21 06:52:26 then you've missed his point altogether Aug 21 06:52:26 ravilov: Well in that case it wouldn't be entirely pointless because eclipse is a bug. Aug 21 06:52:43 Nilium, I like it and I use it and it works flawlessly for me Aug 21 06:52:45 unless he specifically needs api 8, then just set api to 15 and you dont have to deal with coding an app around the support libraries Aug 21 06:52:52 Then you are a bug and must be eliminated. Aug 21 06:52:52 desmin88, the thing is you commonly have to include at least the v4 support lib as a dependency to something else, so that's not really such a huge bonus. Aug 21 06:53:05 desmin88: is "android-support-v7-appcompat" the thing what you are talking about? Aug 21 06:53:06 * Nilium files an Android issue for the removal of ravilov Aug 21 06:53:23 * ravilov is a stubborn one and sticks around anyway Aug 21 06:53:26 so guys, what do you think? Aug 21 06:53:30 Mavrik: thats not what im talking about Aug 21 06:53:42 lex93, depends on how much money you have and what do you want Aug 21 06:53:46 more talking about the extra code you have to write for things like action bar, v4 fragments etc Aug 21 06:53:53 just set api to 15 and you dont have to deal with that Aug 21 06:53:58 point is, it seems nobody can really see or appreciate your point, desmin88 Aug 21 06:54:00 we use 15" rMBPs for development work here and they work just fine Aug 21 06:54:05 lex93, just get enough RAM and SSD Aug 21 06:54:10 fuckit, set minSdk=19 you'll make the same amount of money Aug 21 06:54:13 ravilol: point, point. Aug 21 06:54:17 if you have to compromise on that due to the device having an Apple logo... take something else. Aug 21 06:54:21 Mavrik I want to buy the latest Macbook air 13" with 4gb ram and 128gb ssd + an external some teras hdd Aug 21 06:54:33 lex93 4G ram will be painful Aug 21 06:54:39 I use a 15" rMBP and mid-2011 27" iMac. Aug 21 06:54:51 lex93, yeah, don't buy a laptop with nonupgradable 4GB of RAM for development O.o Aug 21 06:54:51 The iMac's pretty nice 'cause the screen's enormous. Can fit like four walls of code on it. Aug 21 06:54:58 lex93 8G Aug 21 06:55:20 It's so nice being able to see four source files at once. Aug 21 06:55:25 Nilium, yeah, we use 27" Thunderbolt displays with rMBPs and it's rather nice working with that Aug 21 06:55:40 well, ignoring the fact that we regulary have to replace the displays due to shitty reliability Aug 21 06:55:52 lex93, 8GB is pretty much minimum in 2014, get 16 if you can. Aug 21 06:56:02 also seriously consider if 128G SSD is enough for you Aug 21 06:56:13 ok, and respect to ubuntu/kubuntu (I use it since 7-8 years), how is the mac os x experience? Aug 21 06:56:13 Don't have any Thunderbolt displays. Would like to get one, but I'm not really planning on it right now. Aug 21 06:56:25 wow Aug 21 06:56:37 lex93, some things will piss you off, some will work better... it's hard to really tell you anything because we don't know what you use / expect Aug 21 06:56:44 Nilium, yeah, don't get one Aug 21 06:56:47 I have 16gb of RAM and a 256gb SSD in my personal laptop. It's nice. Aug 21 06:56:49 * ravilov does all his work on 8GB RAM (which I just can't fill up no matter what) and a 64GB SSD Aug 21 06:57:05 it's stupidly expensive, you can get 2 27" Dell's with USB3 hubs and same IPS panel for that price Aug 21 06:57:13 at the cost of an additional USB cable plugged into the laptop Aug 21 06:57:17 I managed to get to nearly using the full 256gb by installing a Win8 partition. Aug 21 06:57:30 hmm, I currently use about 400GB / 512 Aug 21 06:57:31 oh right... my computer is not a mac, lol Aug 21 06:57:52 but then again I do video software development too, so I might not be representative Aug 21 06:57:52 Also, since you mention USB hubs, I want to point out that it's surprisingly hard to find a display that doubles as a USB hub now Aug 21 06:57:53 dell can be kinda stinker though. may find out some months down the line, the panel they use isn't the one you thought you bought via review Aug 21 06:57:59 Mavrik development development development, java, python, c++, lampp, etc, and some stupid random casual gaming (not crysis and like it, only little indie games) Aug 21 06:58:02 Nilium, isn't that standard now? Aug 21 06:58:21 and university Aug 21 06:58:37 Nope. I've had very little luck finding ones that don't cost a whole lot more for the benefit of having a powered USB hub stuck in the back. Aug 21 06:58:40 (also Thunderbolt displays won't do fast-charge on their USBs, so they're utterly useless for Android phones :/ ) Aug 21 06:59:13 I concur, we largely have screens with no built-in USB hubs Aug 21 06:59:15 lex93, as I said, especially since you're thinking of buying a laptop that cannot be upgraded, do not buy less than 8GB of RAM Aug 21 06:59:19 Obviously Thunderbolt displays have USB, but finding non-Apple ones that act as a hub and don't suck entirely is kind of oddly hard Aug 21 06:59:48 Also a bit harder to find glass displays like Apple's, or at least it was when I last checked (year ago) Aug 21 07:00:04 ok, and for the screen size? is not painful to develop with a 13"? (currently my laptop screen is 15") Aug 21 07:00:30 lex93 can you go to an apple store and play with one? Aug 21 07:00:38 well some other offices got those as an alterantive to thunderbolts: http://www.amazon.com/Dell-U2713HM-IPS-LED-CVN85-27-Inch-LED-lit/dp/B009H0XQQY/ref=sr_1_1?ie=UTF8&qid=1408604403&sr=8-1&keywords=U2713HM Aug 21 07:00:52 they have the same display panels and actually work with other computers than new macbooks Aug 21 07:01:16 I've never tried doing dev on anything smaller than 15". I think it's the best size you can get since you'll want to have a large enough screen with a high enough resolution 'cause otherwise most IDEs will have too many panels and you'll be unable to get much of any code on screen without the IDE cluttering up the screen. Aug 21 07:01:26 lex93, I've used a 13" through my university and yes, it is painful to develop on that... it's bearable for school work but you'll just have to add an external display layer Aug 21 07:01:29 *later Aug 21 07:01:38 g00s: yes, but 10 minutes with a mac can't been replaced with some years user experience :) Aug 21 07:01:45 (but note that it's painful to work on 15" for me too) Aug 21 07:01:55 i wish they still had the 17" Aug 21 07:02:12 The rMBP also has the benefit of being able to run at 1680x1050 and 1920x1200 (or 1080, I forget) as well. Aug 21 07:02:25 Hmm now i am getting a cause cannot get property compileSdkVersion on extra peroperties extention as it it does not exist when i change it to :facebook-sdk:facebook Aug 21 07:02:36 yeah, the original 1440 equivalient is stupid for 15" panel anyway Aug 21 07:02:49 So if necessary you can at least do that to minimize the amount of screen space dedicated to non-code and just increase the font size for code windows Aug 21 07:03:56 in my country the cost of MBA 13" with 8gb extension is of 984€, about $1303 Aug 21 07:04:41 what I want to know is if that cost justify the benefits Aug 21 07:04:50 yeah, 1k€ is about something you'll have to pay for any decent laptop Aug 21 07:05:42 * g00s still wonders if apple would move to arm for laptops Aug 21 07:05:45 * g00s ducks Aug 21 07:06:09 g00s is a quack Aug 21 07:06:10 :p Aug 21 07:06:57 g00s, *shrug* Aug 21 07:07:03 we'll just move to some other laptops then :P Aug 21 07:07:04 and if not, if anyone can suggest me a good laptop for development (and possibly a lower price) Aug 21 07:07:20 lex some lenovo Aug 21 07:07:25 I haven't bought non-Apple laptops in years so nope Aug 21 07:07:30 did we already have this conversation lex93 O.o Aug 21 07:07:45 lex93, you really really don't wanna go lower for a development laptop which will hold you awhile. Aug 21 07:07:48 but the more expensive lenovo's (business class) are the ones you want Aug 21 07:07:48 Anyone here know why when i add ParseLoginUI and add the facebook-sdk/facebook folders from the facebook sdk into that folder I get a compileSDKVersion does not exist, does it remove something? and cause these issues i thought it was working previously to adding the facebook library Aug 21 07:07:55 I have no plans to switch until Apple decides to lock out access to the shell and such Aug 21 07:08:06 * ravilov hates apple and is on lenovo, works really well Aug 21 07:08:11 g00s: no, is the second time I went in this irc channel, so not xd Aug 21 07:08:17 At which point I guess I'll start looking at Linux-friendly laptops. Aug 21 07:08:22 ASUS UX series is awesome, some Lenovos are apparently OK, high-end Vaios are nice as well Aug 21 07:08:27 And get back into Slackware. Aug 21 07:08:31 Dell XPS if they still exists are good Aug 21 07:08:32 Because screw Ubuntu. Aug 21 07:08:44 but anything decent still costs 1000€+ Aug 21 07:08:49 Nilium, that sounds like just a matter of time (re: locked shell) Aug 21 07:08:53 isn't sony giving up on Vao? Aug 21 07:08:53 Nilium, why would you do anything so dumb as that :D Aug 21 07:09:01 ravilov: Sounds unlikely. Aug 21 07:09:10 g00s, dunno, we lost a local representative here so it's impossible to buy them Aug 21 07:09:14 dunno, they're so good at locking down everything else... Aug 21 07:09:15 so I kinda stopped following Aug 21 07:09:16 It'd just screw the dev tools too hard. Aug 21 07:09:32 Also, unless you use an Apple OS, you probably shouldn't talk about how good they are at locking down stuff. Aug 21 07:09:47 OS X is, currently, pretty damn close to letting you do just about anything you want. Aug 21 07:09:58 Mavrik: my fears are that 1. mac os x don't satisfy me...has it got some open source software as inkscape and gimp? how it works on the mac? and 2. it doesn't last me some years, and become obsolescent in few time... Aug 21 07:10:00 why not? I don't have to use their products on a daily basis to be aware of the reality Aug 21 07:10:02 Within reason, anyway. Aug 21 07:10:14 Nilium, hmm, I wouldn't agree with that Aug 21 07:10:15 :P Aug 21 07:10:15 Woww adding that facebook plugin says that I do not have Android Support Repository installed, what the heck! why did they do it like this :P ohh laaaaaawrd Aug 21 07:10:22 Well, based on your statements, you're not aware of the reality, you're aware of the delusions. Aug 21 07:10:27 Nilium, try replacing Finder with something less brain damaged. Aug 21 07:10:43 and you quickly run up to the wall of how inflexible OS X can be Aug 21 07:10:44 Mavrik: I mean within reason. Obviously replacing bits of the OS itself aren't on my list of anything that matters. Aug 21 07:10:51 i replaced finder with some paid GUI shell, and it crashed and lost files Aug 21 07:11:01 Nilium, but that's a strange way to form an argument Aug 21 07:11:01 Nilium, sure if you want to stick to your patronizing interpretation Aug 21 07:11:05 E.g., I don't care about replacing the display server. Aug 21 07:11:13 this fucking thing http://cocoatech.com/pathfinder/ Aug 21 07:11:31 Nilium, or try persuading OS X not to shut down the laptop and power off internal LCD when runnig with external screen Aug 21 07:11:34 Kind of like how on Linux I could replace Xorg but honestly I'm not going to bother because there's no good alternative yet. Aug 21 07:11:37 also impossible. Aug 21 07:11:53 What? Aug 21 07:11:59 the point is *can* you, not *will* or *should* you Aug 21 07:12:03 Mavrik i did that somehow :| Aug 21 07:12:15 i remember it being weird though Aug 21 07:12:17 Yeah you have to decide if you want overheating laptop Aug 21 07:12:19 ravilov: I'm not concerned about what I can do if it's not something I will do. Aug 21 07:12:23 or mouse disappearing offscreen Aug 21 07:12:31 and some additional software hacks Aug 21 07:12:41 I haven't had any external screen issues Aug 21 07:12:46 Nilium, then that is your own view of the situation, certainly not a view that can be applied in general Aug 21 07:12:54 the only thing i didn't like about mac when i started was its antialiasing. maybe nowadays teh PPI is enough it looks great Aug 21 07:12:58 Might be the specific hardware there Aug 21 07:13:02 Nilium, what people can do define flexibility, not what what you personally want to do, right? Aug 21 07:13:08 ravilov: And your view can't be applied in general either. Aug 21 07:13:21 g00s, on external screens it still looks like shit Aug 21 07:13:25 unless you have 27" or so Aug 21 07:13:29 in effects I use ubuntu linux because I like open source software, and personally (don't kill me) I hate windows. The customization is a second part for me, because if the manufacturer of an operating system has done right its work, it can give me a functioning and pleasant for use system. Basing on your experience, is Mac Os x a good OS? Aug 21 07:13:32 In general, no view can be applied in general 'cause nobody is the general case and they should all decide based on their specific needs. Aug 21 07:13:33 on internal retina displays it looks very very well Aug 21 07:14:07 there is still this issue ... oracle's JVM doesn't use quartz backend for swing AA; so it looks like total shit. if you try to run AS with oracle JVM you'll notice right away Aug 21 07:14:17 Nilium, with no real usage experiene my view is exactly that - general, so yes it can Aug 21 07:14:28 (note that general is NOT uninformed) Aug 21 07:14:32 yeah, running AS/IDEA with Oracle VM looks terrible Aug 21 07:14:35 so i thikn we're all still using some shitty java 6 from apple Aug 21 07:14:47 ravilov: Your lack of usage experience just means your opinion isn't particularly well-informed . Aug 21 07:15:01 now read my note Aug 21 07:15:11 lex93, yes. Aug 21 07:15:17 It would be like an 80 year-old luddite telling you how Windows works without using Windows. Aug 21 07:15:29 sure, why not Aug 21 07:15:32 lex93, it has it's own stupidities like all of them do, but it's a rather good OS Aug 21 07:15:42 in 2014 we really don't have "bad" OSes anymore as such Aug 21 07:15:49 at least not between the big three Aug 21 07:16:16 Anyway, need to hit the hay because whoever decided waking up at 6am to go to work was a good idea was sadistic Aug 21 07:16:25 ^^ Aug 21 07:16:31 Sadistic and mean and cruel and probably some old, white puritan asshole Aug 21 07:16:33 I should probaby go to the office as well. Aug 21 07:16:45 *old, white and dead Aug 21 07:16:57 Also probably a farmer. Aug 21 07:17:10 it does beat sleeping the day away Aug 21 07:18:06 I suppose the upside is tomorrow/today technically is the company festivities day Aug 21 07:18:28 Which means I have no idea what my schedule's going to be like since I've only been here two weeks Aug 21 07:18:42 yesterday I seen a video on youtube of the new mac os x yosemite, and I personally liked the flat theme Aug 21 07:19:14 Nilium yahoo ? Aug 21 07:19:22 No. Aug 21 07:19:30 I doubt Yahoo has a keg of beer in the office. Aug 21 07:19:37 :D Aug 21 07:20:02 I haven't touched the beer, by the way. Kind of not the sort of person to drink at work. Aug 21 07:20:18 maybe I can do the "jump"...(paying in installments, I don't have an €k now LOL) :) Aug 21 07:20:30 Be wary of that. Aug 21 07:20:32 seems like a very responsible working environment, ha Aug 21 07:20:52 yeah, we have a pile of beer in our office as well Aug 21 07:21:01 people usually drink only on friday afternoons or so Aug 21 07:21:08 Pretty much. Aug 21 07:21:10 or after fixing a certain kind of bug :P Aug 21 07:21:25 It's not a common thing here, mostly for friday tea-time. Aug 21 07:21:26 Mavrik, alcohol-induced bug? Aug 21 07:21:32 Also http://i.imgur.com/Wba3ETd.jpg wet birds are adorable Aug 21 07:21:40 nop, the one you go "oh man. I need a beer" :P Aug 21 07:21:57 Also generally the end of the day when everyone's winding down I see people getting beer Aug 21 07:21:58 usually Samsung related in Android team :P Aug 21 07:22:31 For me, it's more that I just want to crash for an hour Aug 21 07:22:35 Mavrik, well makes sense I guess, they probably have to be on par with the team at samsung :p Aug 21 07:22:46 I keep debating whether it'd be considered bad manners to skip lunch and leave at 4pm Aug 21 07:23:09 ravilov, yeah, it requires a certain mindset to grok what sammy is doing. Aug 21 07:25:18 Probably not kosher to leave at 4pm. Plus I'd miss out on the fun stuff that happens at the end of the day. Aug 21 07:25:23 Like power outages. Aug 21 07:26:14 hmm Aug 21 07:26:21 I usually leave at around 4pm Aug 21 07:29:45 is there a way to quickly check if an array has a certain element? like String[] foo = { "1", "2", "3", "a", "b", "c" }; boolean bar = foo.contains("a"); Aug 21 07:29:51 except there is no .contains() Aug 21 07:31:15 is the array sorted? Aug 21 07:31:20 nevermind, found it - apparently I need to convert it to a list and then use Aug 21 07:31:23 Arrays.asList(...).contains(...) Aug 21 07:31:50 Mavrik, no, in my case it's actually an array of enums and they can come in any order Aug 21 07:31:53 ravilov, that will cause a full array copy Aug 21 07:31:58 don't do that :D Aug 21 07:32:04 just make a helper method that iterates Aug 21 07:32:07 it's a small array? :) Aug 21 07:32:09 bah Aug 21 07:32:37 well, still no point doing allocations for no reason right? Aug 21 07:32:56 yeah I suppose Aug 21 07:33:07 shame arrays in java don't have this functionality built in Aug 21 07:34:01 arrays are kinda... rudimentary in java Aug 21 07:34:12 the whole primitive type thing is kinda wierd and annoying to use Aug 21 07:34:43 yeah but arrays are not exactly primitive, they still come out of Object Aug 21 07:35:59 another question Aug 21 07:36:23 for (int i = 0; i < array.length; i++) vs. for (TYPE item : array) Aug 21 07:36:39 which is better/faster/nicer/more optimized/the right(er) way to go? Aug 21 07:36:59 (obviously suppose I don't really need the index, I just want to walk through entries) Aug 21 07:37:49 they're more or less equivalent, the second one is slightly easier to optimize for the compiler Aug 21 07:37:54 (since it knows what you're doing) Aug 21 07:38:11 good morning :) does anyone know where can I find the files that are related to the power menu? Aug 21 07:38:11 https://github.com/ParsePlatform/ParseUI-Android step #4, i do not have that file type..does not exist in my folder, what can i do because i cannot compile the project it says i am missing a SdkVersion i have installed Aug 21 07:38:34 personally I prefer the item : array syntax, just looks nicer :) Aug 21 07:39:08 but I know it's a fairly new thing (compared to standard for loop) so I was wondering if it's just decoration that has hidden performance penalties Aug 21 07:41:28 Mavrik, is this what you thought or is there a better/more efficient way to do this? http://pastebin.com/X2hu7WCS Aug 21 07:41:48 meant* Aug 21 07:49:59 ravilov, that's about the best you can do with those datastructures Aug 21 07:50:17 ok Aug 21 07:50:24 thanks Aug 21 07:55:27 hi everybody! Aug 21 07:55:55 do you know if there is any restriction that makes setting up 2 drawers in the same drawerlayout with the same layout_gravity? Aug 21 07:56:36 I'm experimenting problems with the drawer that's specified in the second place, in the drawerlayout xml file Aug 21 07:57:52 it's not a problem from the drawer itself, because if I switch the order between the problematic drawers (those with the same layout_gravity), the problems appear in the second one (i.e., the issues switch too) Aug 21 07:58:13 the problems are: hardware back button doesn't work Aug 21 07:58:46 and the tabs I have below the drawers (I've checked the height doesn't overlap them) don't work either Aug 21 07:59:21 I'm not sure if it's a bug from google Aug 21 07:59:47 but I cannot see anything in the docs that lets me know if it cannot be done, or is just a bug Aug 21 08:01:37 http://i.imgur.com/wsZKhIc.gif <-- what happens when you refactor Aug 21 08:02:43 :P Aug 21 08:03:46 my app is crashing, I try to add a value to arraylist defined in my class like this: ArrayList recognition_result; Aug 21 08:04:32 adding a value in public void like this: recognition_result.add(matches.get(i).toString()); Aug 21 08:05:06 EugenA, do you by any chance assume the object gets allocated just by declaring it? Aug 21 08:05:08 debugger sais recognition_result = null at the time of assigning Aug 21 08:05:19 EugenA: what's the exception you're experimenting? NullPointer? perhaps there are no matches Aug 21 08:05:37 matches really gives me a string Aug 21 08:05:40 EugenA, the debugger is right Aug 21 08:05:46 read my first line Aug 21 08:10:39 ok, thanks Aug 21 08:11:29 that was quick Aug 21 08:11:54 yes hahaha Aug 21 08:23:04 someone could help me here? http://goo.gl/Js6pNm Aug 21 08:25:18 mcmaur its just a link to a project :? Aug 21 08:31:23 hi there Aug 21 08:31:50 I have a question about architecturing application Aug 21 08:32:41 I created a class that extends AsyncTask, my goal is to centralise every AsyncTask from this class Aug 21 08:32:51 you can found the class in question here http://pastebin.com/Rsw7g8XK Aug 21 08:33:10 so every Fragment could use it to execute AsyncTAsk Aug 21 08:33:48 my problem is on the line 60 Aug 21 08:36:12 I created an Interface that every fragment implement it Aug 21 08:40:47 don't do that, it's never going to end well Aug 21 08:41:04 Hello. I'm wondering, should my search and content have different ContentProviders? The data is fetched from local sqlite db. Or should the ContentProvider be reused somehow? Aug 21 08:43:45 Whats the difference between getExternalStorageDirectory and getExternalStoragePublicDirectory ? Aug 21 08:46:07 given file:///storage/emulated/0/DCIM/TtManager/IMG_20140821_093741.jpg Aug 21 08:46:13 how can i get just /storage/emulated/0/... Aug 21 08:46:38 bankai_au, are you talking about my pb ? Aug 21 08:49:26 ah nvm Aug 21 08:52:33 zoraj_: yes Aug 21 08:54:32 bankai_au, will I have to stick with "private class MyAsyncTask extends AsyncTask< ...." Aug 21 08:54:50 on every fragment that need async task ? Aug 21 08:54:57 i don't really understand what you're trying to achieve there, but dynamically making fragments like that is not the answer Aug 21 08:55:53 bankai_au, my goal is to avoid on every fragmentActivity class (which I got lot of it on my code) Aug 21 08:56:03 this ""private class MyAsyncTask extends AsyncTask< ...." Aug 21 08:56:47 so I created a class that extends AsyncTask Aug 21 08:57:02 I am not sure if I was clear though :) Aug 21 09:03:30 I cannot wrap my head around this, lol adding facebook, and ParseLoginUI ad modules/libraries, makes it sthe support library v4:13 goes missing Aug 21 09:04:18 I cannot wrap my head around that sentence Aug 21 09:06:01 so Aug 21 09:06:30 I was wondering, I connected my nexus 4 to my mac. How can I access its file system through finder ? were is it mounter ? Aug 21 09:06:47 shmoon how is this a dev question ? Aug 21 09:07:15 the answer is with googles mtp file client that you download, but this is app development Aug 21 09:07:20 not android help :) Aug 21 09:07:48 fyi apple doesn't support MTP native, hence the need for the util Aug 21 09:07:56 <-- same boat Aug 21 09:09:24 StingRay_: so I'll tell you how. I want to fetch all the images from mobile into the app into a gallery. I was trying to work with getExternalStoragePublicDirectory and it gives /storage/emulated/0/Pictures - but I can't find that folder using this app called Android File Transfer Aug 21 09:09:38 so I wanted to directly look into the mobile's filesystem and don't find it in Finder Aug 21 09:09:54 because it's a logical location Aug 21 09:11:21 iirc es file manager shows/resolves all logical/mount points Aug 21 09:11:55 but yeah shmoon your second question was a dev question, and you have a better answer now :) Aug 21 09:13:44 I believe with something along the lines of Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) you´ll get the default folder on a device for photo storage Aug 21 09:15:39 StingRay_: Sorry I was trying to get ParseLoginUI working, but It says I needed Facebook SDK, I was following these instructions: https://github.com/ParsePlatform/ParseUI-Android but at the end of following them I get a wierd error that states Cannot get property compileSdkVersion, but I have the version that it is refering too. Aug 21 09:15:47 so I am very confused. Aug 21 09:16:23 Mavrik: sorry but what is a logical location ? Aug 21 09:16:29 my braid stops working when reading the word facebook in any paragraph or sentence Aug 21 09:17:40 You have odd hair StingRay_ are you Medusa IRL? Aug 21 09:21:49 StingRay_: cant find the google mtp file client Aug 21 09:21:52 any links? Aug 21 09:22:07 https://www.android.com/filetransfer/ Aug 21 09:22:17 top link for google search "android mtp mac" Aug 21 09:22:43 oh ok Aug 21 09:22:45 also, this will not aid you in your dev problem Aug 21 09:22:51 as mentioned previous Aug 21 09:23:02 :) Aug 21 09:23:19 hm Aug 21 09:23:36 what is a logical location ? is it something like a virtual location that is mapped to the physical location by the cpu or something ? Aug 21 09:23:38 but you have the help in the comments that fix your dilemma so remember that :) from Mavrik and VnM Aug 21 09:23:54 so /storage/emulated/0 gets mapped to some real folder in the device by the cpu Aug 21 09:41:39 2/51 Aug 21 09:41:57 by the cpu? lol Aug 21 09:45:04 Is there a way to figure out why a "java.lang.IllegalArgumentException: Unable to load native library" exception happened? It doesn't really seem to tell me if it's because the format/architecture was wrong, because the file was not found, ... Aug 21 09:46:47 or perhaps because it wants to load another .so that isn't present... Aug 21 09:47:45 http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html Aug 21 09:48:04 StingRay_, you're not really helping you know. Aug 21 09:48:27 Amadiro, that is usually accompanied by JNI errors in log (at least on Nexus devices) that tell you what's going on Aug 21 09:48:37 Amadiro, you can also enable CheckJNI that gives you slightly more information. Aug 21 09:48:45 Mavrik you didn't let me finish that was the start of a question I have Aug 21 09:49:04 Mavrik, I'll pastebin the surrounding logcat output in a second. CheckJNI sounds great, how do I enable that? Aug 21 09:51:13 Mavrik, http://dpaste.com/2SZRP6K here is the whole output of everything that happened during the app launch (and a bit before and after, for good measure) Aug 21 09:52:09 gonna try to rerun with CheckJNI Aug 21 09:52:09 shmoon: by the OS/file system. If you're messing with these things you really really should learn the basics before you hose your phone. Aug 21 09:55:01 Mavrik, no extra output with CheckJNI, apparently (I assume it's enabled, `adb shell setprop debug.checkjni 1` just returned without any errors) http://dpaste.com/0CSCKZW here is the output of the /data/anr/traces.txt, but that also doesn't seem to give any reason Aug 21 09:57:50 Is the dynamic linker even capable of outputting more information about what went wrong in general? Aug 21 09:57:58 or does it just always say "error" Aug 21 10:11:56 "pc load letter error" Aug 21 10:27:56 hi Aug 21 10:28:19 any idea why values-xxhdpi or valuex-xxhdpi are ignored? Aug 21 10:28:42 valuex-xxhdpi doesn't exist Aug 21 10:28:56 and what do you mean by ignored? Aug 21 10:29:01 Well, tried on a rooted phone w/ cyagenomod, and I don't get any better error messages from the linker that way either Aug 21 10:29:09 and the .so is definitely where it's trying to find it Aug 21 10:29:15 monsti: you dont have an xxhdpi device? Aug 21 10:32:09 yes ;) i don't have a xxhdpi device it's that simple Aug 21 10:32:41 BoD: i have a constant for valuex-xhdpi - for a wqxga i need a different value Aug 21 10:33:11 Are you intentionally saying valuex-xxhdpi? Aug 21 10:34:25 i just learned samsung calles tabpro a "xhdpi" device not a xxhdpi device Aug 21 10:36:09 out of interest and not being a professional so dont/cant comment, is most of android development done in india now ? I ask cause I just joined a group on linkedIn UK android developers and there all from india Aug 21 10:37:13 Can I somehow change an actionbar buttons (MenuItem) state? I'm using ActionBarSherlock and I want to set an ActionBar Button to "pressed" when a navigation drawer is opened. I found out that I could invalidate the OptionsMenu and thus change the Icon, but that wouldn't be the same as setting it to "pressed". Aug 21 10:37:38 << not from india Aug 21 10:39:33 Brb my 10 hour version of Tunak Tunak Tun just ended Aug 21 10:39:33 danijoo no but I was going to look see how the android freelance market is 'local' to me, and it just seems full of indian devs who will work for nothing, I just wondered is this the case everywhere Aug 21 10:40:05 Where are you from? USA? Aug 21 10:40:17 GB Aug 21 10:40:41 well just B really, Britain Aug 21 10:40:42 :) Aug 21 10:41:10 ^^ Aug 21 10:42:49 well I think this is more of a local "problem" (wow that sounds racist) because of the britain past in india. Aug 21 10:43:23 dont get me started on monarchy :) Aug 21 10:43:28 : D Aug 21 10:43:42 ugh, notice my use of Britain and not either UK or England Aug 21 10:43:48 :) Aug 21 10:44:31 danijoo but cheers for info, does seem a bit flooded here Aug 21 10:45:21 if I remember right from history class indians are the biggest minority in england. That might be the reason it looks like that for you :> Aug 21 10:45:43 is there a way to simulate a *long* press on the power button? Aug 21 10:47:55 meital, I think you can with an adb command Aug 21 10:48:09 meital: I dont think so Aug 21 10:48:18 VnM: "adb shell input keyevent 26" simulates a short press Aug 21 10:48:33 but you can bring up that shutdown dialog that is usually triggered with this longpress if this is your question Aug 21 10:48:49 danijoo: how? Aug 21 10:49:04 meital, http://stackoverflow.com/questions/11338022/simulating-power-button-press-to-display-switch-off-dialog-box Aug 21 10:49:18 Its Intent.ACTION_SHUTDOWN Aug 21 10:49:55 VnM: I tried that - the first 5 approaches aren't working, only the sixth one worked for me - but it's a short press Aug 21 10:50:08 What about the seventh? Aug 21 10:50:11 danijoo: thanks Aug 21 10:50:37 VnM: it's not /dev/input/event5 in my device, and I don't know how to find the correct one Aug 21 10:50:46 Ah right Aug 21 10:51:08 StingRay_: there's tonnes of freelance/contract Android work around Aug 21 10:51:34 Estel yes but here not sure anyone can compete with india Aug 21 10:51:39 well not on price Aug 21 10:51:56 Then that's the wrong market Aug 21 10:52:29 The market for Android devs in the UK is strong, they remain in demand Aug 21 10:52:56 But elance/odesk isn't where the people looking try to get their stuff done Aug 21 10:53:27 Last time I checked the demand for Android or mobile developers is pretty big, in Europe at least Aug 21 10:54:49 Estel where do they look then ? Aug 21 10:56:37 StingRay_: recruiters, local contacts, maintaining their own internal lists Aug 21 10:56:39 danijoo: it seems that this intent doesn't have an application to perform it (packageManager.queryIntentActivities is empty) Aug 21 10:56:57 meital: I got this from a quick google. no own experience, sorry Aug 21 10:57:02 (might be even wrong) Aug 21 10:57:54 Hmm weird: Nexus 7 with action bar tabs; why does the app icon overlap the stacked part of the action bar? :/ Aug 21 10:58:17 what is the "stacked" part? Aug 21 10:58:34 The bit where the tabs appear when the device is portrait Aug 21 10:58:53 Accidently gave it a negative margin? Aug 21 10:59:12 Ooh, maybe Aug 21 10:59:26 The background for the stacked bit had a negative inset Aug 21 11:01:08 The "Hide the Status Bar on Android 4.0 and Lower" method from the docs seems to work on newer devices (4.4.4), but not on older devices (2.3.6) Aug 21 11:01:33 Wonder if that's a typo Aug 21 11:02:49 What do you mean Amadiro, Immersive Mode? Aug 21 11:03:04 Immersive or getActionbar().hide() ? Aug 21 11:03:12 https://developer.android.com/training/system-ui/status.html this one Aug 21 11:03:22 the '...android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen" >' Aug 21 11:04:39 As far as I know that does work on Android 2.3 and the likes Aug 21 11:05:31 Personally I use the programmatical approach for these kind of things, so the getWindow().setFlags way Aug 21 11:05:31 For 2.3 you should use Theme.AppCompat Aug 21 11:07:01 I'm trying to figure out how to do it programmatically from the NDK right now Aug 21 11:07:29 yuck. status bars and the like are special and shouldnt be manipulated with getWindow() type things IMO. These things need to broadcast changes. Aug 21 11:12:27 I got a android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Aug 21 11:12:47 got on adapter.clear() in the onPostExecute() in an AsyncTask Aug 21 11:13:17 this doesn't make any sense at all, this exception is related to code being executed not in the UI thread, but that is was onPostExecute() guarantees Aug 21 11:13:49 Sounds like you´re trying to alter a view from a wrong thread, you´ll probably be able to fix it if you call the line thats giving you the exception in runOnUiThread() Aug 21 11:15:23 Hey , I can't figure out what is the purpose of target sdk (Min sdk was obvious) in the create new project option Aug 21 11:15:48 VnM: yes, but that shouldn't be needed with onPostExecute() Aug 21 11:15:56 onPostExecute(Result), invoked on the UI thread after the background computation finishes. Aug 21 11:18:28 ANativeActivity_setWindowFlags(engine->app->activity, AWINDOW_FLAG_FULLSCREEN, 0); seems to work on all android versions I've been able to test with Aug 21 11:19:46 killer: the target SDK version is the one that it's compiled with Aug 21 11:19:57 kinda Aug 21 11:21:00 Either way, just read http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Aug 21 11:24:20 thanx ,it helped Aug 21 11:34:32 Hello, i have a TableLayout where i redefined the onDraw method to draw rectangles on it. but the cell views are drawn after my TableLayout, hiding some of my rectangles. How can i say that the TableLayout should be drawn after the cells please? Aug 21 11:36:31 Morg0th, you need to override dispatchDraw() instead of onDraw() Aug 21 11:36:58 then you can call super at whichever point you want Aug 21 11:37:59 where are themes located, i finally got the login screen to work but i think what happen was it changed my theme because my top bar isnt light blue anymo ebut instead dark bluish gray, like a standard one? Perhaps...trying to figure out why it might have changed.. Aug 21 11:38:43 Psil0Cybin: the built in themes are stored on the phone and are part of android Aug 21 11:38:51 ravilov: great, thank you! Aug 21 11:38:54 your own one should be in your values folder Aug 21 11:43:31 Is it legal to have multiple Google Play Developer accounts? Aug 21 11:44:29 yes Aug 21 11:44:33 There's no law against it. Aug 21 11:46:05 Hi Aug 21 11:46:23 Well i mean is it allowed in google terms Aug 21 11:46:29 I have a simple program to get a Edittext programatically in linear layout Aug 21 11:46:50 http://pastebin.com/XuTU0ZWD Aug 21 11:47:09 But I see Nullpointer Exception on onCreate method.why is it so? Aug 21 11:47:20 I have the empty LinearLayout file also Aug 21 11:48:09 niru, how do you expect to find views by ID by using a *layout* resource? Aug 21 11:48:26 ouch Aug 21 11:48:29 sorry ravilov Aug 21 11:48:32 I missed that Aug 21 11:48:44 don't apologize to me, apologize to your code :p Aug 21 11:49:12 :)) Aug 21 11:49:42 give your code the respect it (he? she? they?) deserve Aug 21 11:49:48 I have a custom system service and need to change some settings via another app. Should I implement set/get via AIDL or should I put the settings into Settings.Global? Is there any harm in doing the latter? Aug 21 11:50:09 BoD: :) Aug 21 11:50:29 I apologize for asking a silly question:) Aug 21 11:50:54 niru: have you still not tried running with the debugger? Yet another silly obvious question that would show up in 1s using the debugger. Aug 21 11:51:18 rgr: I am already running a debugger full fledge Aug 21 11:57:34 Then set a break point in the onCreate and then see the null pointer. Then put your cursor on the ID you are retrieving and hit C-b (in AS/Intellij). If Ravilov can look at it in one second and diagnose the issue you can certainly do it in a little less time than doing a pastebin and asking here. Its all part of development too : spotting kinder errors. I say this because this is about the 100th time you've asked someone to find your Aug 21 11:57:34 null pointer problems. Aug 21 12:14:37 danijoo: yes my own one, should be but for some reason it is not being applied like It was working fine until I got the parse login working, so I think somewhere along the line I removed a silly line I do not see it any other way because my theme and all myfiles are still their Aug 21 12:14:55 Hi! I have an activity with a fragment and another fragment that is settings screen. I set up a button to enter the settings screen, I handle that with transactions. (code: http://pastebin.com/j7R2npkG) Now when I open the settings screen, press back, does the settings fragment get destroyed automatically or do I need to handle it manually? I'm asking because I wonder if going back and forth to settings screen will create me a lot of fragments. Aug 21 12:33:26 MapMan: when the backstack is popped, the fragment gets detached and can be GCed Aug 21 12:44:10 Estel: ok, thanks. Aug 21 12:44:39 Another question! I have action bar with a single menu item (Settings). How can I hide the menuitem when I'm in settings? Aug 21 12:50:14 Use onPrepareOptionsMenu to check if you're in settings or not and hide it there Aug 21 12:52:06 Estel: yeah, thats what im trying to do Aug 21 12:54:16 It's easier to use multiple activities :P Aug 21 12:55:41 yeah, probably Aug 21 12:57:25 Estel: it doesnt work, even if I call invalidateOptionsMenu in activity. Aug 21 12:57:53 How are you checking if it's the status fragment in the foreground? Aug 21 12:58:16 I override the fragments onPrepareOptionsMenu Aug 21 13:11:17 Where are you inflating the menu? Aug 21 13:12:39 in activity Aug 21 13:12:51 you need to do prepare() in the same place as the inflation Aug 21 13:12:59 if I use onPrepareOptionsMenu it gets called and hides the menuitem Aug 21 13:13:12 that explains that Aug 21 13:13:23 but I still dont know what to do Aug 21 13:14:01 if you only want to show the settings menu when you're in the other (non-settings) fragment, just inflate it there Aug 21 13:14:08 Here's my case. An activity with a main fragment and a settings fragment. I have actionbar with action overflow with a single MenuItem that leads to settings fragment. I want to hide the MenuItem for "Settings" when im in the settings fragment. Aug 21 13:15:21 Either inflate the menu in the activity and use prepareOptionsMenu there to check which fragment is visible and hide the menuitem or not Aug 21 13:15:31 Dont do that Aug 21 13:15:40 add the menu item to the first fragment Aug 21 13:15:41 Or only inflate the menu item in the main fragment Aug 21 13:15:43 and not to the activity Aug 21 13:15:52 then it is only shown when fragment1 is present Aug 21 13:16:37 In your fragments onCreate call setHasOptionsMenu(true); Aug 21 13:16:41 danijoo: ok, sounds sane. How do I accomplish that? I mean, should I change my menu.xml declaration? Should I add the menu item programatically? Aug 21 13:17:03 MapMan: at the moment you have onCreateOptionsMenu in the activity, right? Aug 21 13:17:11 then all you are doing in your fragments onCreateOptionsMenu will be appended to the activities option menu and disapear when your fragment disapears Aug 21 13:17:37 Estel: yes. It just inflates. Aug 21 13:17:37 http://developer.android.com/reference/android/app/Fragment.html#setHasOptionsMenu(boolean) Aug 21 13:17:57 MapMan: put that in the main fragment instead, and do what danijoo is saying Aug 21 13:18:03 this is the only correct way of doing it. Aug 21 13:18:27 or at least the most clean one Aug 21 13:19:04 danijoo: put the inflation in the main fragment, set hasoptionsmenu to true in the main fragmen in onCreate and do nothing in the other fragment? Is that correct? Aug 21 13:19:15 yep Aug 21 13:19:31 then when the fragment with menu is visible, you will have that actionbar icon Aug 21 13:19:42 and when it makes room for the settings fragment, that item will disapear Aug 21 13:23:24 danijoo: it works, thanks Aug 21 13:23:28 yw Aug 21 13:23:34 danijoo: but... how? :p Aug 21 13:23:44 danijoo: the code that handles menu clicks is still in activity. Aug 21 13:24:06 (you should move that to the fragment too) Aug 21 13:24:12 (derp) Aug 21 13:24:20 although it works, yeah ;) Aug 21 13:24:32 hi all, how would you recommend building a view from multiple cursors that contain different data? The data is not something I could use CursorJoiner or MatrixCursor on, because some of the lines in cursor form a one to many relationship in the other cursor Aug 21 13:24:40 menu items are kinda shared between the activity and the fragment, thats why it still work if the code is in the activity Aug 21 13:24:53 could not use CursorJoiner or MatrixCursor* Aug 21 13:25:39 with setHasOptionMenu you tell the activity to always call the fragments menu methods together with the activities one (i dont know in which order though) Aug 21 13:25:46 and then they can be handled in both Aug 21 13:26:27 but you should still keep the code that belongs to menuitem from fragment in the fragment because you know... could result in strange behaviour once you try to reuse it and dont remember Aug 21 13:26:59 danijoo: sure Aug 21 13:27:33 danijoo: so right now if I'd want to add another menu item to the other fragment, I'd have to set setHasOptionsMenu and inflate the new menu there? Both menus would be separate. Right? Aug 21 13:27:54 http://i.imgur.com/QuJCD3w.jpg Aug 21 13:28:12 : D Aug 21 13:28:26 yeah kinda seperate Aug 21 13:29:01 but still if one item is clicked, every visible fragment and activity will receive the onOptionsItemSelected call Aug 21 13:29:17 (if they have hasOptionMenu true) Aug 21 13:29:32 its your job to only process it in the correct spot :> Aug 21 13:29:34 yeah, that explains why it still worked when the code resided in the activity, not the fragment. Aug 21 13:30:12 when I want to develop on android using java, do I need to install x86 or x64 JDK on my Windows PC? Aug 21 13:30:18 *develop for android Aug 21 13:30:30 danijoo: thanks for the thorough explaination. Aug 21 13:32:13 Eren97: either ought to work, iirc Aug 21 13:32:27 okay good Aug 21 13:44:46 anyone have a good suggestion for loading multiple cursors used in a view in the background? Aug 21 13:46:00 Matulis: CursorLoader? Aug 21 13:46:35 CursorLoader with multiple cursors? What if I need all the cursors within an adapter? Aug 21 13:47:26 multiple cursorLoaders Aug 21 13:47:28 ::p Aug 21 13:47:46 well you could still do it with 1 :) Aug 21 13:47:48 MergeCursor? Aug 21 13:47:54 lol, and then just invalidate the adapter when it gets new data? Aug 21 13:47:59 1 loader for many cursors Aug 21 13:48:09 assuming you're pulling form different data sources and cant just JOIN the tables Aug 21 13:48:18 i can't do a merge, because the cursors are pretty different Aug 21 13:48:43 but i still need the data from both cursors to create the view, but some of the rows in one have a one to many in the other Aug 21 13:48:47 maybe its a database design problem.. Aug 21 13:48:56 ^ Aug 21 13:49:10 I had the same…erm…design problem Aug 21 13:49:31 slowly making my way to a solution, step by step with a live app :( Aug 21 13:49:39 well for instance, i have flights, which have their own info, and then i have lists of passengers and weight statistics, etc Aug 21 13:50:07 I'm not sure if i could return a single cursor without have a shit ton of redundant lines Aug 21 13:50:23 why redundant ? you select only what you want Aug 21 13:50:40 and that sounds like a 1 cursor job to me Aug 21 13:51:29 as in I have 1 cursor for a message, that has contacts attached, the message also has a media collection attached, media collection has attachments and they are all grouped by a message box name :) Aug 21 13:51:34 some of the fields have multiple values, how do you return an array in cursor? Aug 21 13:51:56 for a single column Aug 21 13:52:05 fields with multiple values in a sql table? : S Aug 21 13:52:20 using couchdb Aug 21 13:52:22 :P Aug 21 13:52:29 ah ^^ Aug 21 13:52:41 you make it more complicated with every line you write : D Aug 21 13:52:48 hahah Aug 21 13:53:18 Hi devs... Aug 21 13:53:26 hi Aug 21 13:53:27 Hi dev Aug 21 13:53:34 StingRay: what do you mean by message that has contacts attached?, etc? Aug 21 13:53:39 hi Aug 21 13:53:49 anyone know about customizing the lock screen? Aug 21 13:54:04 the_fog: in what way? Aug 21 13:54:05 there are no apis to do that Aug 21 13:54:15 Well, lock screen widgets Aug 21 13:54:17 Matulis I have a message as the centric element, to that I need to attach contacts via the number Aug 21 13:54:19 firing events when the user unlocks a device... Aug 21 13:54:30 like a dialog fragment... Aug 21 13:54:38 ah Aug 21 13:55:01 no apis for that? Aug 21 13:55:15 the_fog: Intent.ACTION_USER_PRESENT gets broadcast after the device is unlocked Aug 21 13:55:17 Hello all Aug 21 13:55:19 I am trying to import a library to my project called "ShowCaseView". However, when adding it as a library, the following error occurs: The import android.support.v4.app.NotificationCompat.InboxStyle cannot be resolved Aug 21 13:55:25 In my GCMIntentService.java... what am i doing wrong? Aug 21 13:55:57 the_fog: you can write your own lockscreen Aug 21 13:55:59 Estel: chhers... i'll look into that. Aug 21 13:56:12 *cheers Aug 21 14:00:36 I am trying to import a library to my project called "ShowCaseView". However, when adding it as a library, the following error occurs: The import android.support.v4.app.NotificationCompat.InboxStyle cannot be resolved Aug 21 14:00:53 Rakan: how did you add the library? Aug 21 14:01:19 It can't find the support-v4 library I guess. Maybe you're supposed to add it yourself? Aug 21 14:01:43 Estel: imported it into eclipse and then add it as a library from Android tab in my project's settings Aug 21 14:02:00 Rakan: does the library include support-v4? Aug 21 14:02:08 If not, have you included support-v4 youerself? Aug 21 14:02:11 Estel: Yes and i made sure both were the same Aug 21 14:02:23 I added support library to both project's build paths Aug 21 14:02:40 It's the latest one? Aug 21 14:03:16 Yup Aug 21 14:03:40 Good morning AndroidDevs, how goes? Aug 21 14:03:50 danijoo: thats what i want. i think the ACTION_USER_PRESENT that Estel: mentioned will not give me what i want. any ideas where to start with writing my own? Aug 21 14:04:14 the_fog: what are you actually trying to do? Aug 21 14:05:07 there are no apis to implement a lockscreen Aug 21 14:06:49 Estel: ok. when the user unlocks the device, a dialog fragment appears with a question, based on the result of said question, after they answer the question, the device unlocks wether the qestion was right or wrong Aug 21 14:07:41 so they still unlock the phone in the usual manner (swipe the lock to the right) Aug 21 14:07:53 Estel: i made sure it's the latest... still the same issue Aug 21 14:08:03 it just launches a dialog that delays unlocking until qestion gets answered Aug 21 14:08:50 the_fog: yeah, custom lock screen, good luck Aug 21 14:08:52 Btw, if i remove the showcaseview library... the errors go away Aug 21 14:08:54 the_fog: I don't think it can be done without hacks Aug 21 14:09:22 Rakan: contact the author of this library Aug 21 14:09:27 the_fog if google allowed that, that would be serious and bad!! Aug 21 14:11:57 You could probably do something in L with the device lock APIs, the USER_PRESENT broadcast and some general horribleness, but it still couldn't go on the store. Aug 21 14:12:00 but there are apps that customise the lock screen out there.... Aug 21 14:12:01 the_fog might be able to get it done if the app is a device admin, no? Aug 21 14:14:32 Estel: L what device lock APIs? Wondering if I missed something. Aug 21 14:14:50 *what L device lock APIs Aug 21 14:15:23 saik0: not sure TBH. just an idea that i had but unsure how to execute it and no apis seem available for this type of thing.... thinking on it more, there is no configuration options for the lockscreen on device so even enabling/disabling such a feature might be a problem Aug 21 14:17:03 BoD: the Task Locking stuff (wrong name, sorry) : https://developer.android.com/preview/api-overview.html#Enterprise Aug 21 14:18:43 the_fog: http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#lockNow() Aug 21 14:19:30 the_fog, custom lock screens start by looking at the source, not asking for help here Aug 21 14:19:40 the_fog, it's all in aosp Aug 21 14:20:42 there are no documented api for working with the lock screen Aug 21 14:21:33 device policy manager is not what you want Aug 21 14:22:58 Estel: ah yeah indeed :) thnx Aug 21 14:26:07 any idea why would Bitmap.extractAlpha(Paint, int[]) crash the app with a SIGSEGV? Aug 21 15:15:44 hello everyone Aug 21 15:16:12 is there any way to know when the android's contacts list has been changed? Aug 21 15:16:33 contentObserver Aug 21 15:16:43 thanks StingRay_ Aug 21 15:16:49 registered with the contacts Uri Aug 21 15:16:58 dont forget to unregister though ;) Aug 21 15:18:19 thanks StingRay_, I'm doing my first app on android and never been coding with java, so there's a lot of new stuff to understand/read/test Aug 21 15:23:47 I changed my action bar theme to dark, which is causing the searchview that I am using in my content area to change as well. Is there a way to set it back while keeping the dark theme of the action bar without having to change all the pieces of it? Aug 21 15:24:11 hello. was redirected here from ##java (: . i have a (supposedly) simple synchronization problem. i'm using ReentrantLock with its recommended practise (lock, then commands in try-block, then unlock in finally). and sometimes (very very rare) i'm having java.lang.IllegalMonitorStateException exception during unlock. why it happens? Aug 21 15:28:50 so you have a pure java question and they tell you to ask it at the android channel? Aug 21 15:29:01 makes sense! Aug 21 15:30:19 doing a lock()/try{ }? or a tryLock()/try{ } Aug 21 15:33:37 hi there Aug 21 15:33:52 I got a question about AsyncTask Aug 21 15:34:31 on every tutorial I see, I always see this code within my Activity class Aug 21 15:34:51 private class WhateverTheName extends AsyncTask<.... Aug 21 15:35:03 guess he no longer cares Aug 21 15:35:57 so hat I did is, to create a new file, then a new class that extends AsyncTask Aug 21 15:36:38 I also created an Interface with a method named "ProcessResult()" Aug 21 15:36:51 so every activity will implement this Interface Aug 21 15:37:05 zoraj__: www.pastebin.com is your friend :) Aug 21 15:39:57 MikeWallaceDev, here we are http://pastebin.com/1Csc21mB Aug 21 15:40:15 line 60 Aug 21 15:40:39 WSClient is supposed to be my Activity Aug 21 15:40:46 oki doki, now what's the problem? :D Aug 21 15:41:19 :) error casting IASyncWSResponse with Activity Aug 21 15:41:33 line 26 public IASyncWSResponse delegate = null; Aug 21 15:41:51 and does your Activity implement that interface? Aug 21 15:42:00 yes Aug 21 15:42:12 Hey guys, I'm loading a listview asynchronously so that it scrolls smoothly. I'm having two issues though: I'd like all of the visible images to be loaded before the activity starts, is there a way to do this part in sync with the ui thread? Also, I'm using convert views to manage memory, but the views often convert when they're partially visible. Can I make the pool of maximum views before converting larger? Aug 21 15:42:18 BoD: it's supposed to be related to JVM's implementation in android. Aug 21 15:42:26 zoraj__: but you are assigning a new value : delegate = new WSClient(); Aug 21 15:42:53 or is WSClient the type of your Activity? Aug 21 15:43:10 MikeWallaceDev, I had, otherwise I got a NPE Aug 21 15:43:45 ok. What you have to do is set delegate to point to your actual Activity, not a new one Aug 21 15:44:11 but I got many Activity that will be using this class Aug 21 15:44:18 so I"m assuming that you create an instance of this AsyncTask in your Activity, right? Aug 21 15:44:24 ah, ok Aug 21 15:44:25 yeah Aug 21 15:44:34 then make a list of delegates Aug 21 15:44:35 let me put here the call Aug 21 15:44:59 what do you mean ? I don't know how to do tthat Aug 21 15:45:12 A List. ArrayList Aug 21 15:45:58 actually, wait... will you have only one instance of the Task running? Or one per Activity? Aug 21 15:46:13 one per activity Aug 21 15:46:19 ok, forget the list then :D Aug 21 15:46:31 ok, so your delete is public Aug 21 15:46:40 just set it within your activity Aug 21 15:46:49 task.delegate = this; Aug 21 15:47:43 also: if ((httpsResults != null) && (delegate != null)) Aug 21 15:48:21 the call http://pastebin.com/gKnM9Wqj Aug 21 15:51:00 the WSClient http://pastebin.com/yQRbEK2K Aug 21 15:52:46 I hope my classes are clear Aug 21 16:01:16 zoraj__: sorry, I had to actually work for a minute :D I'm back Aug 21 16:01:36 MikeWallaceDev, np thx for your time Aug 21 16:01:55 can you take a look at my 3 classes Aug 21 16:02:10 doing that right now Aug 21 16:06:33 zoraj__: the WSClient class is throwing me off... Aug 21 16:06:44 ah ok, it's a member of your Activitys Aug 21 16:07:04 so each of your Activitys would have an instance of WSClient, right? Aug 21 16:07:18 yes Aug 21 16:07:59 ok... Aug 21 16:08:21 so in your activity, wsclient.delegate = this; Aug 21 16:08:46 when you initialize your wsclient Aug 21 16:09:53 then, in your WSCLient class, you also have to initialize your syncAdapter's delegate Aug 21 16:10:08 (you have two delegates :) ) Aug 21 16:10:23 yes, what I thought too Aug 21 16:10:56 My FragmentActivity is interfacing WSClient, this latter is interfacing AsyncTask Aug 21 16:13:36 Just noticed line 28 in your WSClient, delete that line. You're creating another fragment instead of pointing to the existing Fragment Aug 21 16:16:51 hi all- can anyone suggest any online service for localization of application for open source project? Aug 21 16:17:55 MikeWallaceDev, yes, it's a mistake, it works now, thanks a lot for your time Aug 21 16:18:17 My pleasure. What is your email so I can send you the bill? Aug 21 16:18:30 Ha! Gotcha! :D Aug 21 16:19:28 lol Aug 21 16:21:03 MikeWallaceDev, I'd pay a beer if you were here Aug 21 16:21:10 MikeWallaceDev, I'd pay you a beer if you were here Aug 21 16:21:22 hahaha :D Aug 21 16:21:41 Too bad there isn't a PayBeer site, instead of PayPal :D Aug 21 16:21:50 ^^^ Million dollar idea. Aug 21 16:21:52 that probably exists actually Aug 21 16:22:19 amazon :/ Aug 21 16:23:29 http://www.paybeer.com/ address exists, but is not accessible! Aug 21 16:23:59 My Observable is linked to a retrofit request, but even though the Oberservable gets subscribed to, the request is never sent out. http://pastie.org/9490348#32,30 Aug 21 16:24:34 MikeWallaceDev: It could be like dogecoin, "tip this man a beer!" Aug 21 16:24:52 :) Aug 21 16:25:20 there's been plenty of attempts at micropayment-tipping... none have really gained traction, or they're killed by transaction fees, etc. Aug 21 16:25:37 flattr? Aug 21 16:26:00 do you need to do anything to get dependencies added to build.gradle to show up in an aar? I am using http-request in a lib project, which is compiled in a libraries build.gradle, but then whenever I use that library in an application project (included as an aar), I get noclassdeffound errors Aug 21 16:26:08 BoD: yeah, that's the one I was thinking of Aug 21 16:26:14 Yes, but this is beer we're talking about. BEER, man!! Aug 21 16:26:47 benjamonajo: what does "included as an aar" mean? Aug 21 16:27:30 JakeWharton: I am building the library project, taking the aar file, and including that file in the application projects libs directory Aug 21 16:27:45 yeah that won't work Aug 21 16:27:49 aars don't carry dependency information Aug 21 16:28:07 Ah, what do people normally do? Aug 21 16:28:27 set up a local maven repo? Aug 21 16:28:38 wait what? Aug 21 16:28:44 you either need to use a project(':thelibrary') dependency if it's in the same project or deploy the project to a local or remote Maven repository Aug 21 16:28:57 Okay, thank you Aug 21 16:29:03 ") Aug 21 16:29:08 nevermind Aug 21 16:31:01 Hey everyone. Someone could be so kind to help me improving the graphics of this app? http://goo.gl/Js6pNm Aug 21 16:31:27 do you have screenshots? Aug 21 16:32:47 @BoD inside the wiki of the github project (if u are talking with me :) ) Aug 21 16:32:58 yes Aug 21 16:37:16 there is also a group on google group and an alpha apk in google play store. Aug 21 16:40:17 I'm making it my personal mission to convert everyone back to saying "Market" Aug 21 16:40:42 maybe they'll rebrand it at some point Aug 21 16:40:51 mcmaur: I just have to comment that "All rights belong to their respected owners." really is a tautology. Aug 21 16:40:52 that'd be funny :) Aug 21 16:42:13 @Thorboear do u think I should delete it? :D Aug 21 16:45:13 mcmaur: Either that or change it to something meaningful, like "The Unturned brand is a registered trademark of Unturned Inc" or whatever else Unturned would prefer (they probably either have guidelines available telling you how to attribute, or would be happy if you email them to ask). Aug 21 16:46:06 readme updated deleting the incriminated phrase :) Thanks @Thorbear Aug 21 16:51:32 Why is my Observer not being called Aug 21 16:52:24 he has no friends? Aug 21 16:52:49 He can't add friends until this Observer is called... Aug 21 16:52:53 catch-22 Aug 21 16:53:18 :) Aug 21 16:53:34 have you tried it without the ActivityObservable thing? Aug 21 16:54:20 I have not Aug 21 16:55:07 Actually, that works with one of the Observables. Aug 21 16:55:25 It is only the "follow" and "unfollow" ones that do not "call" the Observer Aug 21 16:55:54 i've never used ActivityObservable, but everything else looks good Aug 21 16:56:15 Retrofit makes the request when someone subscribes Aug 21 16:56:46 There is an initial GET request that does get sent out, subscribing on that same observer Aug 21 16:57:00 The observer in question is a sink for all 3 Observables Aug 21 16:58:06 Same behavior occurs after I remove ActivityObservable Aug 21 16:58:25 *AndroidObservable Aug 21 16:59:18 This had happened in another class before, I think you were the one who told me "it got garbage collected" Aug 21 17:05:21 JakeWharton: Does the position of .subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()) matter? Aug 21 17:05:42 Retrofit sets the .subscribeOn automatically so that's redundant Aug 21 17:05:54 it shouldn't affect the registration or execution though Aug 21 17:06:00 do you have the latest version of Retrofit? 1.6.1? Aug 21 17:06:38 no ._. Aug 21 17:06:40 1.5+ Aug 21 17:06:53 Looking at the changelog now Aug 21 17:06:57 is there a good resource to learn about LayoutManager? Aug 21 17:07:37 no changelog; Aug 21 17:08:18 interesting data, almost raises more questions than answered http://www.fiercedeveloper.com/story/evans-data-these-are-biggest-time-sinks-app-developers/2014-08-18 Aug 21 17:08:32 "Maintenance, updates or upgrades, meanwhile, took up single-digit percentages of time, suggesting that developers might want to allocate more resources toward continuing to improve or iterating versions of their app that substantially improve the end result for consumers" Aug 21 17:08:49 i wonder why, the product fails and devs see no ROI ? Aug 21 17:13:56 i have a gradle multiproject build, one of the subprojects uploads an artifact to a local maven repo, but the build fails because the dependency does not exist yet for one of the other subprojects Aug 21 17:14:07 how execute this project before the other subprojects start resolving dependencies? Aug 21 17:20:30 JakeWharton: After upgrading picasso, okhttp, adding okhttp-urlconnection, and upgrading retrofit, it works :P Aug 21 17:22:23 can anyone find out from this log: http://pastebin.com/mqcwMYuu why app "gpapez.sfen" is force closing? Aug 21 17:22:32 hello guys Aug 21 17:23:02 ho ho, my math error was caused by variable shadowing, heh Aug 21 17:23:24 I have this code: http://pastebin.ca/2834431, it sends a notification when a USB cable is plugged in or out, do you know how can I know when it was plugged in or out so I can show the correct status? Aug 21 17:24:26 Toerkeium: have two different receivers, one for disconnect and one for connect Aug 21 17:25:15 Toerkeium: Perhaps the intent has that data, which I'm sure it does, in getExtras() Aug 21 17:25:23 Toerkeium.. you have to create reciever that will listen on ACTION_BATTERY_CHANGED Aug 21 17:25:36 ah, I'll check that then explodes Aug 21 17:25:38 check this stackoverflow link http://stackoverflow.com/questions/8411846/android-usb-connection-charging-signals Aug 21 17:25:43 can anyone find out from this log: http://pastebin.com/mqcwMYuu why app "gpapez.sfen" is force closing? Aug 21 17:26:14 I saw that one lordgreg, it's for when you start the app with the cable plugged in, I saw it, it's interesting and I'll implement it later Aug 21 17:26:53 now I'm stack with this trying to show the status of the USB cable, if it's plugged in or not, I wanted to avoid having 2 receivers for the "same" task Aug 21 17:31:15 you only need 1 receiver Aug 21 17:31:39 and just check for action passed Aug 21 17:32:16 see the link again: int plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1); Aug 21 17:32:30 so if (plugged == 1) its plugged Aug 21 17:32:52 http://developer.android.com/reference/android/os/BatteryManager.html#BATTERY_PLUGGED_USB Aug 21 17:33:40 let me see it again, did see that Aug 21 17:33:58 Just used Retrofit two days ago for the first time. Ridiculous how easy it was compared to manually coding the http stuff Aug 21 17:41:13 When i go from FragmentA to FragmentB and then push the back button is FragmentA recreated or resumed? Aug 21 17:41:38 samsamsam: sadly, recreated... but! Aug 21 17:41:54 there's an option to store the fragment content Aug 21 17:42:03 i've been having the same problems with that... Aug 21 17:42:08 lemme find a link for you Aug 21 17:42:23 http://stackoverflow.com/questions/6787071/android-fragment-how-to-save-states-of-views-in-a-fragment-when-another-fragmen Aug 21 17:42:26 I guess you need to put it in backstack for it to resme Aug 21 17:43:00 actually, your activity Bundle savedInstanceState has all the info you need Aug 21 17:43:58 and you usually create new object of fragment when onCreate of your activity is called Aug 21 17:44:15 just add the condition in onCreate and check if savedInstanceState is null Aug 21 17:55:12 Guys I am loading emails from the user contact list Aug 21 17:55:16 in a app Aug 21 17:55:47 But its taking time to load…. I want to load some and show to user Aug 21 17:55:48 and then load the rest Aug 21 17:56:01 islazy lists what I need to implement ? Aug 21 17:56:37 I am using async task to get all emails of user Aug 21 17:57:05 you would rather use 1 call to retrieve "small data" Aug 21 17:57:14 then use asynctask to retrieve ALL in the meanwhile Aug 21 17:57:51 means load first 10 in direct call Aug 21 17:57:56 and load the rest in async Aug 21 17:58:26 exactly Aug 21 17:58:43 is that not bad design though ? Aug 21 17:58:47 lordgreg: it worked perfect! Aug 21 17:59:14 why would that be bad design? other option is to use asynctask to fetch all and show loader meanwhile Aug 21 17:59:27 user scrolls instantly on load, async not complete, then requires padding and adaptive adding to replace placeholders or user not happy in jerking or position reset Aug 21 17:59:40 I want to give best user exp Aug 21 17:59:48 better if it's an android content provider to grab the cursor in a loader Aug 21 18:00:24 ContentResolver cr = context.getContentResolver(); Aug 21 18:00:24 Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,null, null, null, null); Aug 21 18:00:27 using this Aug 21 18:00:33 ContentResolver Aug 21 18:00:54 neo3 please dont spam paste in channel Aug 21 18:00:59 use pastebin Aug 21 18:01:08 okay Aug 21 18:01:19 but yes that gets you a Cursor Aug 21 18:01:21 cur Aug 21 18:01:38 I am using the same Aug 21 18:01:49 but it takes lot of time… Aug 21 18:01:59 for users having lots of contacts Aug 21 18:02:00 Toerkeium: awesome ;) Aug 21 18:02:28 neo3 then you are doing something wrong :) Aug 21 18:02:36 cause that line does not take long at all Aug 21 18:02:38 :) Aug 21 18:02:51 yes it does... o_O Aug 21 18:03:00 he's fetching all data from all users in contacts list Aug 21 18:03:05 no Aug 21 18:03:12 he's getting a cursor of results Aug 21 18:03:18 in under maybe, 5ms Aug 21 18:03:24 maybe less Aug 21 18:03:36 maybe he meant the loop that shows data takes so long Aug 21 18:03:45 there should be no loop Aug 21 18:03:54 should be used in baseAdapter that uses the cursor Aug 21 18:04:05 or thats the normal way Aug 21 18:04:06 neo3: show us pastebin Aug 21 18:04:07 whaat? not a cursoradapter? :p Aug 21 18:04:20 I m using this function http://pastebin.com/mKVKd6sc Aug 21 18:04:47 yeah see Aug 21 18:04:47 neo3 you are adding a HUGE step there Aug 21 18:04:53 you're fetching the date yourself Aug 21 18:04:57 in putting into an arrayList Aug 21 18:05:00 whereas you could just let the adapter handle it for you Aug 21 18:05:06 you need to create and adapter that uses the cursor Aug 21 18:05:20 so that a getView = getRow on cursor Aug 21 18:05:35 getting it in arraylist and setting adapter Aug 21 18:05:43 are you not listening? Aug 21 18:05:47 means cutom rows in list view Aug 21 18:05:51 you saying Aug 21 18:05:58 basically, yes Aug 21 18:06:04 is that a problem? Aug 21 18:06:26 wait, don't you have "custom rows" right now anyway? Aug 21 18:06:48 neo3 solution is, use an adapter, that uses a cursor and not an arrayList Aug 21 18:07:02 Oh….okay Aug 21 18:07:22 like I said, define the dataset, but let the adapter handle the actual data Aug 21 18:07:29 neo3 then especially for contacts, instant load Aug 21 18:07:30 don't try to deal with it yourself Aug 21 18:07:47 (dataset = cursor) Aug 21 18:08:09 means arraylist is the problem….it is taking time Aug 21 18:08:14 cool ! Aug 21 18:08:18 I tested 40,000 records in 2 nested queries in a cursor list and takes 20ms to 30ms to load and display visible rows Aug 21 18:08:30 oh man Aug 21 18:08:43 and thats with 4 JOINs too, not that it should add that much Aug 21 18:09:11 2 nested selects = fugly though… when I learn more I will re-do it :) Aug 21 18:09:40 select * from (select * from (select * from (select * from (select * from ... Aug 21 18:12:02 THat is also taking time Aug 21 18:12:56 not sure what you're referring to, but what I said was a joke Aug 21 18:22:14 Is it true that some of the shared object files (e.g., libchromium_net.so) may not export all their symbols? Aug 21 18:22:21 I have an NDK application that requires IPEndpoint from libchromium_so and it cannot link against the so even though I know the code is in the source. Aug 21 18:22:32 how do you check if Android is exporting certains classes and symbols in the Makefiles. Aug 21 18:22:39 I know I can use nm on the so file, but I want to double check that the actual classes and symbols are not visible Aug 21 18:23:32 For instance I am trying to use net::IPEndPoint in my own code and I get Aug 21 18:23:34 error: undefined reference to 'net::IPEndPoint::IPEndPoint()' Aug 21 18:32:44 hello to everyone Aug 21 18:34:38 Hey everybody.. i'm building an android app that has 20+ different screens. Most of these will be seperate activities. I'm confused though as to where I can put my central application logic. Do i need to store this in local db and pull it out with every activity? Or is there an area where all my activities can access centralized data? Aug 21 18:36:15 dyoussi bound to a service ? Aug 21 18:37:17 I'm not using any services right now. Is that a pattern to use a service to persist data? Aug 21 18:37:40 depends on data I guess Aug 21 18:37:47 small and quite fixed probably not Aug 21 18:37:55 Hi all. N00bie question about using an Interface with an AsyncTask. Normally I use ( ( InterFaceName )getActivity() ).MethodName(); to run the interface, but in AsyncTask I can't seem to get a ref to the activity Aug 21 18:38:24 I tried passing it the Context and Activity, but that doesn't work (I'm probably using it wrong) Aug 21 18:39:01 I found some weird solutions on Stack that I can't get to work either Aug 21 18:39:14 For instance, i have a signup process, and the user has to fill out data in about 10 different screens and at the end all that data is submitted to our servers. So normall I would just create a singleton or static class that holds the signup data, and all my screens would just update that data. But i'm not sure where that data would reside in the android model Aug 21 18:40:09 well yeah sounds like the core of what you want would be a service, and each activity binds to it and unbinds based on transitioning Aug 21 18:40:21 but also maybe look at the design a bit more Aug 21 18:40:41 10 different screens…is that needed ? Aug 21 18:40:48 well, it's a large app Aug 21 18:40:53 i want to make https volley request. Should i use hurlstack? Aug 21 18:40:54 or 10 different sets of data that could be on the same flow ? Aug 21 18:43:40 hrmm.. after looking at my app a bit more.. most of the data it keeps in that global space is just being held in memory for easy reference. I could just as easily store most of that in sqlite and pull it with each activity Aug 21 18:44:07 or look at sharedPreferences Aug 21 18:45:39 will do. I think i should be able to find my answer here: http://developer.android.com/guide/topics/data/data-storage.html Aug 21 18:45:46 thanks for the help StingRay Aug 21 19:01:22 any thoughts on the shared object? Aug 21 19:02:39 ThomQ: yeah, you're probably doing it wrong, because that should work Aug 21 19:15:40 MikeWallaceDev: Yeah I found my problem. Pretty n00b of me :D Aug 21 19:17:17 coolies Aug 21 19:17:29 yes. I said coolies. Deal with it. Aug 21 19:18:51 can someone tell me which online service do developers use for localization of app? crowdin, getlocalization or other? Aug 21 19:18:55 I still use Coolio every now and then Aug 21 19:26:48 Hello, how can I log a double with full precision? Aug 21 19:34:39 anyone using tiled map editor? Aug 21 19:44:00 how do I decide what the "nbr" is that should represent a certain tileset? Aug 21 19:47:42 is there a norm for the amount of precision digits to use in the double returned by Location.getLatitude()? Aug 21 19:49:23 lordgreg: I just signed up at Crowdin.com thanks for that heads up :) Aug 21 19:58:36 Guys, I asked before about how to know when some contact in the android contact list changes, and someone told me to read about ContentObserver Aug 21 19:59:48 but I think this will let me know once when something changes, how can I remember that? I mean, what I would like to get is the most similar to a timestamp Aug 21 19:59:52 is that possible? Aug 21 20:01:17 Toerkeium: Its not clear what you want Aug 21 20:01:46 Toerkeium: You know when something changes when you're getting called back, and there you know the time Aug 21 20:02:02 Toerkeium: What you do with that is up to you Aug 21 20:02:28 CodePulsar: but imagine that at that time, I can't do nothing or the application gets closed for some reason Aug 21 20:02:31 Toerkeium: Store each time when some changes in preferences, database, backend, update some UI, etc. Aug 21 20:02:38 *something Aug 21 20:02:47 when I start the app again, I won't get noticed again Aug 21 20:03:30 Toerkeium: how i do it is keep a list of Long Int Aug 21 20:03:42 the long is the id, the int the version Aug 21 20:03:53 errr hashset Aug 21 20:04:02 each time you detect a change, compare the new hashset to the old one Aug 21 20:04:10 so there is not timestamp for contacts? odd isn't in? Aug 21 20:04:13 t Aug 21 20:04:33 by using addall(old).removeall(new) tthat leaves you with deletions, and then addall(new).removeall(old) that gives you additions Aug 21 20:04:42 there is a timestamp in one of them Aug 21 20:05:04 then save this list to disk eachtime your app ondestory gets called Aug 21 20:05:16 now you have an incremental snapshot you can use to always diff the contacts that changed Aug 21 20:05:45 (you can go a step further make a special class for the pair id/version and override equals/hashset to make it faster) Aug 21 20:05:46 let me try to understand what you wrote lasserix, I'm just starting with all this Aug 21 20:06:07 you iterate over the contact cursor, grabbing all ids and all matching versions and put into some pair type class Aug 21 20:06:14 this gives you a snapshot of the current database Aug 21 20:06:25 now when contentprovider change occurs, you iterate it again and compare these two lists Aug 21 20:06:26 what I pretend to do is to sync my contacts with a http backend Aug 21 20:06:29 using the addall/removeall Aug 21 20:06:31 You get the current timestamp when you get called back Aug 21 20:06:34 oh yeah you can use a sync adapter Aug 21 20:06:44 so I can change them on the phone or in my web app Aug 21 20:07:07 and later sync with gmail, facebook, etc Aug 21 20:07:09 Is an application allowed to do that? Aug 21 20:07:25 so far I could read yes CodePulsar Aug 21 20:07:26 Steal the contacts from the phone and store them in a backend database Aug 21 20:07:45 Scary Aug 21 20:07:48 why? Aug 21 20:08:20 many apps do it, but all of them just work with "some" apps, so I pretend to make my own to use it and learn in the process Aug 21 20:08:25 Because its easy for a bad developer to do bad things Aug 21 20:08:33 haha yes Aug 21 20:08:42 with that data Aug 21 20:08:55 but it warns you what data is the app going to ask for, I think Aug 21 20:09:26 I'm not familiar with nothing of this, java, android, it's all new stuff to me Aug 21 20:09:29 Only at install time, in which case most people ignore the message and click 'Install' Aug 21 20:09:54 Help guys my computer shutdown Aug 21 20:09:54 that's a bad habit Aug 21 20:09:58 and now android-studio cannot load anything!! Aug 21 20:10:05 how do i reset android-studio? Aug 21 20:10:05 On iOS there are also message through the application's lifecycle in matters of privacy Aug 21 20:10:09 *messages Aug 21 20:10:24 my projects Aug 21 20:10:24 are g one Aug 21 20:10:28 Psil0Cybin: delete its config directory from the $HOME directory Aug 21 20:10:29 missing files, and my theme to android studio is changed Aug 21 20:10:34 okay Aug 21 20:10:45 Psil0Cybin: 0) Calm down Aug 21 20:10:50 Psil0Cybin: 1) What OS are you using? Aug 21 20:10:55 CodePulsar: anyway, if you can develop apps for phones and you can't reach its contacts hmm.. that would be pointless Aug 21 20:10:58 Psil0Cybin: 2) What version of Android Studio are you using? Aug 21 20:11:03 so delete .AndroidStudioBeta Aug 21 20:11:03 ? Aug 21 20:11:14 0.8.6 Aug 21 20:11:19 Psil0Cybin: yes, .AndroidStudioBeta or .AndroidStudioPreview Aug 21 20:11:39 so now i do Aug 21 20:11:43 i do not want to import my settings? Aug 21 20:11:44 correct? Aug 21 20:11:45 Psil0Cybin: and possibly the .idea directory in the project your developing Aug 21 20:11:57 Psil0Cybin: if you didn't save them, no Aug 21 20:12:07 *you're Aug 21 20:12:33 Toerkeium: nope. it depends on the app Aug 21 20:12:34 lasserix: you said before there is a timestamp for "one of them", can you clarify the "one of them" please? Aug 21 20:12:51 Toerkeium: I can give countless examples of apps which request permissions they don't REALLY need Aug 21 20:13:30 CodePulsar: yes I understand your point, but that's more an user's education issue Aug 21 20:13:33 I think Aug 21 20:13:51 CodePulsar, my android program is still missing Aug 21 20:14:02 i cannot rebuild it, once i dleete my configs and readded the project Aug 21 20:14:20 its missing the app folder Aug 21 20:14:36 i have read a lot about global variables in android and i still can't decide if it is better to use a singleton or extends Application Aug 21 20:14:59 CodePulsar: I used to use Tinder for example, and once it "asked permission to reach my contacts on facebook", and hey, if I want to talk to my facebook's contacts, I would do it in facebook, not in Tinder, so.. the answer was "No" Aug 21 20:15:57 Hey y'all - anybody in here got any telemetry on Espresso? No new release or visible work since... January, I guess? Aug 21 20:16:13 resu01: Your class that extends from Application will be a singleton, so I think that's the best place to have "global" data, accessible through the application context Aug 21 20:16:21 in my case the user logs in the app and after that five activities in the app use the loginresult. Is it better to pass the loginResult via intent or set it as a global variable? Aug 21 20:16:51 omg CodePulsar so when i dewlete my config folder, it deleted my SDKS and all that? Aug 21 20:16:58 I cannot run my application now, i have to start from the beggining? Aug 21 20:17:05 Psil0Cybin: No. Aug 21 20:17:12 Psil0Cybin: You delete the config files for Android Studio only Aug 21 20:17:24 Psil0Cybin: the Android SDK/ Build Tools/ SDK Tools/ etc are placed in another folder Aug 21 20:17:35 CodePulsar, well i deleted the confgis for Android Studio only, and now when I opened a backup of my application Aug 21 20:17:40 the Arrow that was green for running the pplication Aug 21 20:17:41 is grayed out Aug 21 20:17:55 Psil0Cybin: Is the IDE indexing/scanning anything? Aug 21 20:18:31 Psil0Cybin: Any errors? Aug 21 20:18:46 yes it was sorry was not used to deleting the config folder and waiting for it to load for a while, Sorry just upset was working on something all night and thought i lost it... Aug 21 20:18:50 i was going a little bonkers. Aug 21 20:20:08 CodePulsar: you are right about this. Is it better for performance and safety to pass the data via intent or it will be better to keep store them in a global value? Aug 21 20:20:13 resu01: What is really 'loginresult' ? A true / false value ? If the user did what? Logged in inside your app Aug 21 20:20:32 It is an object Aug 21 20:21:49 resu01: it depends if the loginresult data can change between intermediaries Aug 21 20:21:50 the user just navigates through activities, which all use the loginResult object Aug 21 20:22:04 no it remains the same Aug 21 20:23:13 I'm creating a custom View by subclassing View. I have a layout file with a LinearLayout. I get a reference to that LinearLayout using the id, I create a new customView() and add that view to the linearlayout Aug 21 20:23:37 What happens is that the custom view takes all the width and height Aug 21 20:23:39 resu01: I'd store it in the class that extends from Application Aug 21 20:24:02 for convenience or for performance? Aug 21 20:24:03 even if I use: setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT)); Aug 21 20:24:34 resu01: both Aug 21 20:25:45 Anyone can help ?Why extending View takes all space defined by its container? Aug 21 20:26:06 thanks Aug 21 20:27:17 gottaGO: layout params width and height are set to fill parent? Aug 21 20:27:46 So any thoughts on why I cannot link against libchromium_net.so to instantiate an IPEndPoint or AddressList? Aug 21 20:28:07 benjamonajo, for the LinearLayout ? width = match_parent and height = wrap_content Aug 21 20:28:12 shahriyar: What error are you getting? Aug 21 20:29:25 undefined reference to 'net::IPEndPoint::IPEndPoint()' Aug 21 20:29:43 and also undefined reference to 'net::AddressList::AddressList()' Aug 21 20:30:37 note that I am already linking against libchromium_net.so and can instantiate net:HostPortPair net::SSLClientSocketOpenSSL Aug 21 20:30:41 I'm getting a 'cannot find symbol' error when compiling for SimpleCursorAdapter even though I have a 'import android.widget.SimpleCursorAdapter'. Same thing with MatrixCursor it seems. Anyone know what's going on? Aug 21 20:31:21 I did find SimpleCursorAdapter.java in the android sdk sources Aug 21 20:31:26 CodePulsar: also same errors for the destructors of those classes. Aug 21 20:31:55 sqwishy: clean and rebuild Aug 21 20:34:21 CodePulsar: As in `ant clean`? That didn't seem to fix it. Aug 21 20:34:30 sqwishy: Are you using Eclipse ? Aug 21 20:35:35 CodePulsar: No Aug 21 20:36:10 sqwishy: Check your log for something fishy, android.widget.SimpleCursorAdapter is available from Android SDK API Level 1 Aug 21 20:36:19 sqwishy: clean build and start over Aug 21 20:37:36 shahriyar: adb pull /system/lib/libchromium_net.so && nm -D libchromium_net.so | grep IPEndPoint Aug 21 20:37:41 sqwishy: doesn't find any symbol Aug 21 20:38:36 shahriyar: ^ Aug 21 20:38:42 shahriyar: you probably have to link to something else Aug 21 20:39:23 CodePulsar: doesn’t find any symbol for me other. I tried that. Aug 21 20:39:53 CodePulsar: but the source code for IPEndPoint and AddressList are actually part of the external/chromium/net/base package Aug 21 20:40:19 shahriyar: yes, but maybe the build system generates different/multiple libs Aug 21 20:40:27 unless external/chromium also creates other sos? Aug 21 20:41:01 do you think the so would still be put under /system/lib on the phone? Aug 21 20:41:39 also is it possible for the build process to make the IPEndPoint and AddressLess hidden (i.e., not visible to external code)? Even if the constructor and destructors for those classes are public? Aug 21 20:47:41 CodePulsar: I pull all so’s off /system/lib and did an nm -D doing a grep did not return anything for IPEndPoint and AddressList constructors. However, I did find another symbol that had address list as a part of its signature arguments. How is that possible if there is no symbol for AddressList? Aug 21 20:47:48 pulled* Aug 21 20:48:15 shahriyar: How do you include those classes in your code? Aug 21 20:48:28 shahriyar: where are the headers? Aug 21 20:48:36 shahriyar: maybe they're header only code Aug 21 20:48:53 I put the headers in jni from external/chromium Aug 21 20:50:13 i.e., I have copied the header files from the aosp for the image I am using and copied them directly into my jni folder. I also use the same path structure so “net/base/host_port_pair.h” maps directly to the chromium ones and similarly to my jni folder. Aug 21 20:51:19 hi folks Aug 21 20:51:40 I just downloaded Android source code, and was wondering how to compile stuff in frameworks/base/core/java only Aug 21 20:51:51 any idea how to do that? Aug 21 20:54:13 shahriyar: I don't think the build system can hide symbols somehow, if they're public and actually compiled in the target that creates the .so they should be there Aug 21 20:54:15 do you know why R.string.app_name shows me a number? it's a string Aug 21 20:54:36 Toerkeium: a hex number? Aug 21 20:54:40 Toerkeium it's a pointer to a value Aug 21 20:55:08 ahh, ok, get it, thank you, need more reading Aug 21 20:55:08 heh Aug 21 20:55:18 anyone encountered the black screen problem when using a map fragment with a view pager? Aug 21 20:55:21 mdim: 0) Understand how the build system works Aug 21 20:56:25 CodePulsar: do you maybe have a pointer to a resource where I could read about that? Aug 21 20:57:11 shahriyar: run ag ~> https://github.com/ggreer/the_silver_searcher#the-silver-searcher , over the code base, to see how / where IPEndPoint is referenced in the code or build system config files. Aug 21 20:58:30 CodePulsar: thanks. let me try that out Aug 21 20:59:02 CodePulsar: I see Google uses https://code.google.com/p/gyp/ gyp files for their builds. Would those be related somehow? Aug 21 21:02:03 shahriyar: Gyp (https://en.wikipedia.org/wiki/GYP_%28software%29) is the build automation tool used for Chromium which generates makefiles, or IDE specific config files. Aug 21 21:03:23 shahriyar: You have to look at .gyp files for targets that has as sources/include files or dirs the net::IPEndPoint class or the path to it Aug 21 21:03:29 CodePulsar: should I run ag over the entire android source code or external/chromium/ is fine? Aug 21 21:04:09 shahriyar: only inside the chromium code base, or even deeper if you know more specifically where is the stuff you're looking after Aug 21 21:07:02 CodePulsar: do you know what it means where there is a `class IPEndPoint;` inside another header file? Aug 21 21:07:17 for instance net/udp/datagram_socket.h ? Aug 21 21:07:45 shahriyar: yes, that means its forward declared. It tells the compiler that the class definition will be provided later in another translation unit Aug 21 21:08:08 mdim: http://source.android.com/source/building.html ~< left side Aug 21 21:10:52 CodePulsar: only place where I see a definition for IPEndPoint is in net/base/ip_endpoint.cc Aug 21 21:11:03 and I have already included net/base/ip_endpoint.h Aug 21 21:11:37 CodePulsar: Turns out I just forgot to use the `new` keyword ... Aug 21 21:11:43 mdim: You have to fiddle with it and see if there's a target already for building only that part of the code. You can see the code for various projects here: https://android.googlesource.com/ ; The code for only what you said is here: https://android.googlesource.com/platform/frameworks/base/ Aug 21 21:11:45 mdim: I got disconnected, in case you didn't see the previous message Aug 21 21:12:29 sqwishy: yeah, in Java you have to heap allocate stuff with new keyword ;) Aug 21 21:13:40 CodePulsar_: Yeah, I've done that before in C++ but I think if you forget the compiler error is a little bit different Aug 21 21:15:25 I also found out that ip_endpoint.h is referenced in net/net.gyp in the same fashion as host_pair_pair Aug 21 21:15:58 sqwishy: in C++ you don't have to use new all the time, you have static/global/stack storage, and heap storage; I've been having that problem myself forget to use new in Java after coding in C++ for a few months and no Java :-) Aug 21 21:16:08 *forgetting Aug 21 21:17:24 CodePulsar_: thx! I'm reading build files and trying to find something specific to what I need Aug 21 21:18:28 CodePulsar_: only place where I see a definition for IPEndPoint is in net/base/ip_endpoint.cc and I have already included net/base/ip_endpoint.h Aug 21 21:18:42 CodePulsar_: : I also found out that ip_endpoint.h is referenced in net/net.gyp in the same fashion as host_pair_pair Aug 21 21:19:35 can an app on a android wearable contact other BLE devices ? Aug 21 21:23:40 g00s: I think so. If they both speak Bluetooth as a communication's protocol, I don't see why not Aug 21 21:29:47 shahriyar: Is ip_endpoint.h or ip_endpoint.cc included in any .gyp file? or the net/base directory itself, if so, see what's the target name. Also I suggest you search for "libchromium_net.so" or "libchromium_net" in the chromium code base ; To search only in .gyp files use: ag -G "*.gyp" Aug 21 21:30:00 Does it matter whether I should download ndk 32 bit or 64 bit platform if I am running on emulator? Aug 21 21:30:04 shahriyar: ah, net/net.gyp Aug 21 21:31:57 shahriyar: it matters, if the emulator is running a 32 bit OS then you need the 32 bit target NDK otherwise the 64 bit target NDK Aug 21 21:32:12 4.2.2 Aug 21 21:32:16 CodePulsar_, what can i do if some hotkeys that used to work are not anymore ctrl + scroll up used to increase font, now it does nothign...I am so confused how all these problems started with a bad freeze in Ubuntu Aug 21 21:32:19 so android 4.2.2 Aug 21 21:33:31 Hi guys, it seems that my List Fragment is having problems using data loaded from a GSON. it crashes after calling notifyDataSetChanged(). Is there a way to see what part of the object is causing this? Aug 21 21:33:38 shahriyar: that doesn't matter, is you CPU based on one of the following architectures / ABIs ? arm64-v8a, x86_64, mips64 Aug 21 21:33:48 Code how can i increase my font in the coding menu of android -studio afer the restart my keys do not work Aug 21 21:33:57 i cannot figure out how to get the hot keys working again with in the application Aug 21 21:34:33 CodePulsar_: CPU on my actual machine? if on actual machine running the emulator, yes, it is x86_64. For the emulator, I am not so sure how it is selected. Aug 21 21:34:42 shahriyar: on your phone Aug 21 21:34:52 shahriyar: in this case , emulator. Aug 21 21:34:55 CodePulsar_: only running the code on an emulator Aug 21 21:35:02 shahriyar: you can have emulators for those 64 bit ABIs Aug 21 21:35:04 With Observables, what is the proper way to ignore the 404 and map that to a default object? .materialize().map(if it.isOnError() { return default; } else { return it.getValue(); }) ? Aug 21 21:35:10 shahriyar: in that case you need 64 bit NDK Aug 21 21:35:11 Oh, Observables and Retrofit. Aug 21 21:35:36 HelplessJub: A stacktrace is a great starting point. Aug 21 21:35:56 explodes: do you mean the error log? Aug 21 21:35:57 CodePulsar_: I am upgrading my NDK from r9 to r10 to see if that will have any difference. Do you think there is anything else I could look at? Should do? Aug 21 21:36:03 HelplessJub: Yes. Aug 21 21:36:27 shahriyar: can you pastebin the net/net.gyp file? Aug 21 21:36:44 k CodePulsar_ i have a problem!! I reloaded my project in android-studio after these issues tarted but now when i run my application it shows me a different APPLication not the one i am working on ?! Aug 21 21:36:48 what happened Aug 21 21:37:19 explodes: here is the error log...http://pastebin.com/PwU5GgcX Aug 21 21:37:25 CodePulsar_: here you go: http://pastebin.com/F8LtJbXF Aug 21 21:37:39 since we're sharing links... :D Aug 21 21:37:41 http://androiddevcorner.blogspot.ca/2014/08/automating-adb-over-wi-fi-for-multiple.html Aug 21 21:37:43 HelplessJub: Its missing the top line. That's the one you want Aug 21 21:37:47 shahriyar: I'll try to compile Chromium myself, but now I don't have the time and build it inside Android source tree Aug 21 21:38:15 explodes: sorry, http://pastebin.com/d93vnE0h Aug 21 21:39:01 In Keymap what is the default thing called that increases font when u scroll with the mouse? Aug 21 21:40:19 Psil0Cybin: http://georgik.sinusgear.com/2012/08/23/intellij-idea-how-to-enable-zoom-of-text-by-ctrl-mouse-wheel/ Aug 21 21:40:38 HelplessJub: that tells you exactly what went wrong Aug 21 21:40:48 HelplessJub: in the file "EntryListFragment.java" at line 75 there is some code Aug 21 21:41:00 HelplessJub: that code is essentially doing "null.doSomething()" Aug 21 21:41:01 shahriyar: can't help much without actually doing it myself Aug 21 21:41:05 hi there, I'm building an application with many activities, on the splashscreen, it fetches all data from the webservice, but those data are used elsewhere in another activities, how would you store it ? Aug 21 21:41:12 HelplessJub: that is called a NullPointerException. Aug 21 21:41:17 HelplessJub: Eliminate that Aug 21 21:41:21 CodePulsar_: :( Aug 21 21:42:06 MikeWallaceDev, hi buddy, I got a new question for you, I owe you two beers Aug 21 21:42:24 shahriyar: did you search for libchromium_net in the chromium code tree? Aug 21 21:42:48 zoraj__: https://plus.google.com/u/0/+MikeWallaceDev/posts/g7HxYLMvpJG Aug 21 21:42:54 explodes: that function is notifySetDataChanged, and the object in question is the same as a passing case... Aug 21 21:42:58 Psil0Cybin: You also have to define a build configuration target to specify which app to run Aug 21 21:43:24 HelplessJub: paste that WHOLE function Aug 21 21:43:34 CodePulsar_, how do i do that, sorry I Know i am being really needy at the moment, but this never happend to me...that i had a crash in my OS and cause major data loss! Aug 21 21:43:34 zoraj__: That depends on the type and quantity of data. Aug 21 21:43:46 CodePulsar_, Is this easy to do? Sorry I just cant figure out what is going wrong Aug 21 21:43:47 at the moment Aug 21 21:43:55 chromium/Android.mk Aug 21 21:43:55 2:# Build the libchromium_net library Aug 21 21:43:56 13:LOCAL_MODULE := libchromium_net Aug 21 21:44:37 MikeWallaceDev, we supposed it's not huge, just hundred of line of json Aug 21 21:44:48 explodes: i don't have the source for that function. It belongs to BaseAdapter http://developer.android.com/reference/android/widget/BaseAdapter.html#notifyDataSetChanged() Aug 21 21:45:03 MikeWallaceDev, you have just bought the domain paybeer.com ? Aug 21 21:45:07 zoraj__: in one string? Aug 21 21:45:17 zoraj__: hahaha no, it was a joke :) Aug 21 21:45:21 HelplessJub: Dude Aug 21 21:45:29 Listview row suggested height please ? Aug 21 21:45:42 MikeWallaceDev, yeah one string Aug 21 21:45:43 HelplessJub: The code at line 75, in file EntryListFragment. Paste the function that line is in. Aug 21 21:45:51 zoraj__: simplest way : keep a string in your App class. Aug 21 21:45:58 HelplessJub: Learning to read stack traces is crucial for debugging. Aug 21 21:46:12 MikeWallaceDev, I'm thinking of singleton class, but I 'm still wondering Aug 21 21:46:17 zoraj__: there are other ways though... Aug 21 21:46:20 HelplessJub: Most people won't help you without one because its a shot in the dark Aug 21 21:46:27 can i move the icon bar on the left to the top of the window instead? Aug 21 21:46:35 MikeWallaceDev, App class ? Aug 21 21:46:50 CodePulsar_, Before i had it so when i clicked the run button it played which ever project i was working on, did this change? Sorry I did not understand ur answer, maybe i am being too irratitional Aug 21 21:46:54 zoraj__: Yes, extend a class from Application. Aug 21 21:47:00 (mcmaur) Listview row suggested height please ? Aug 21 21:47:02 explodes: yea, i understand. I appreciate your help. http://pastebin.com/0F4Rpni9 Aug 21 21:47:15 zoraj__: then declare that in your manifest as yoru application class Aug 21 21:47:39 HelplessJub: ((ArrayAdapter) getListAdapter()) is evaluating to null Aug 21 21:47:46 I still have that kind of class for other need Aug 21 21:47:49 let me look Aug 21 21:47:53 HelplessJub: which means your function "getListAdapter" is returning null Aug 21 21:48:18 explodes: OH! Aug 21 21:48:31 HelplessJub: see? Aug 21 21:48:34 Anyone pls Listview row suggested height please ? Aug 21 21:48:46 mcmaur question dont make sense Aug 21 21:48:51 explodes: god damn i feel retarded. You're awesome Aug 21 21:48:59 mcmaur suggested ? Aug 21 21:49:17 mcmaur ?android:attr/listPreferredItemHeight Aug 21 21:49:44 CodePulsar_, it keeps displaying my other application instead of the project i am working on Aug 21 21:49:48 I need enough room for textview and imageicon Aug 21 21:50:07 MikeWallaceDev, so if I got it, it's kind of singleton ? since the class that extends Application ill always be unique Aug 21 21:50:09 ? Aug 21 21:50:15 mcmaur then all of that + padding is the height :) Aug 21 21:50:17 CodePulsar_: the only related thing I found was here: https://code.google.com/p/chromium/issues/detail?id=79573 but that seems to be for an actual build of android Aug 21 21:50:18 yep Aug 21 21:50:37 ok Aug 21 21:50:50 just remember that you are creating a global variable. Aug 21 21:51:14 Global variables are not the devil if you do them right :) Aug 21 21:51:37 ok, I come from iOS dev, will I need to set it to null when I quit the app ? Aug 21 21:52:52 zoraj__ you shouldn't need to set vars to nil when you quit ios apps either Aug 21 21:52:55 nipe Aug 21 21:52:59 the process ends.. Aug 21 21:53:06 nope Aug 21 21:53:17 shahriyar: hmm, CM external Chromium project has that file as part of the build https://github.com/CyanogenMod/android_external_chromium/blob/cm-10.2/Android.mk#L180 ... it should really be inside that shared lib Aug 21 21:53:23 sarbs, MikeWallaceDev, ok Aug 21 21:54:31 how can i skip a line of code in the debug mode Aug 21 21:54:37 CodePulsar_: I noticed that too. I am wondering if for some reason and or another somehow somewhere the constructors is disabled or not exposed? Aug 21 21:56:18 Hi guys, I have a question about LocationCLient. If I have Location disbabled in the OS settings, LocationClient.getLastLocation returns null. Are there any other ways off checking wheter or not Locations are enabled in the OS? Aug 21 21:56:33 Ive been googling a while, I think I'm looking in the wrong place :D Aug 21 21:57:03 ThomQ http://stackoverflow.com/questions/10311834/how-to-check-if-location-services-are-enabled ? Aug 21 21:57:30 that was first link in google search ? Aug 21 21:57:41 or is that not what you want Aug 21 22:00:02 Yeah I saw that one, but in the answer, they check wheter GPS is enabled, wheter or not they can get a location through a Network. I was more looking for the On/Off slider under Location Acces / Location in the OS settings Aug 21 22:00:28 shahriyar: that can't be possible afterwards Aug 21 22:00:30 just Curious, I already build a fix based on LocationClient.getLastLocation == null Aug 21 22:00:34 guys, do you use checkStyle for your Android Project ? Aug 21 22:03:16 zoraj__: yes, checkstyle, pmd, sonar, findbugs Aug 21 22:03:22 HelplessJub skip as in have the program not execute? you can't. if you simply want the debugger to run through the line and not stop, you can select a different line and choose "run to cursor", or set a breakpoint on it and hit "run" Aug 21 22:03:44 zoraj__: all the kitchen sink has to ofer Aug 21 22:03:46 sarbs: yes i see you can only skip a line of code in C Aug 21 22:04:14 CodePulsar_, I don't know all of that :-) , let me check that one by one Aug 21 22:04:28 i use checkstyle but i don't like it Aug 21 22:04:56 hrmmm I cannot think of anything else that would cause it Aug 21 22:05:25 sarbs, any reason ? Aug 21 22:06:15 it's cumbersome. not always smart enough to differentiate certain situations, so you end up turning off the rule instead Aug 21 22:06:25 or littering your code with @SuppressWarning Aug 21 22:07:46 :) really ! btw, do you use something like selenium for automating test ? Aug 21 22:09:04 i use an android-test-kit fork Aug 21 22:12:52 Anyone can perhaps help me in android studio when I run my application it is really running my other projects application! instead of letting me debug the application i am working on? Anyoen ever experience this and perhaos know how to set it up so it runs the application i am wroking on like default?! Aug 21 22:14:55 guys, I paid a google play developer registration fee of USD 25, is it easy to publish an app on google play? or better leave for tomorrow? :P I'm just doing it for curiosity Aug 21 22:15:07 and share a stupid app with a friend Aug 21 22:15:42 It's a fairly easy process. Just upload an apk and fill out all the required fields. Aug 21 22:16:07 vsg1990: how do you generate the apk? I can't do that Aug 21 22:16:14 Is ListView.setEmptyView() a lie, because that view ain't appearin' Aug 21 22:16:24 I'm using android studio Aug 21 22:17:13 Toerkeium: This looks like it covers the topic: http://www.techotopia.com/index.php/Generating_a_Signed_Release_APK_File_in_Android_Studio Aug 21 22:17:14 google play says that I'm trying to upload a debugable app, but I went to project structure and set it as "debugable" = false Aug 21 22:17:21 thanks vsg1990 Aug 21 22:17:25 np Aug 21 22:22:02 Anyone can perhaps help me in android studio when I run my application it is really running my other projects application! instead of letting me debug the application i am working on? Anyoen ever experience this and perhaos know how to set it up so it runs the application i am wroking on like default?! Aug 21 22:23:26 If you go under the run menu and select "Run..." it should ask you what you want to run. Aug 21 22:23:54 vsg1990: what about aligning the apk file? Aug 21 22:24:15 Toerkeium: what do you mean by aligning? Aug 21 22:24:53 I uploadad the apk file in google play, and it says I have to align it Aug 21 22:25:01 the file is called: app-release-unaligned.apk Aug 21 22:26:15 no idea really Aug 21 22:26:34 Toerkeium: In the build.gradle file you should be able to put 'zipAlign true' inside the release block Aug 21 22:26:55 Then rebuild it Aug 21 22:30:10 Hey all, this might be a stupid question, but how do I cancel an existing AsyncLoaderTask when its ContentObserver detects a change? Im seeing a pretty big lag in my application because i receive 5 change notifications in less than 100 ms, and it starts to process on the first one, and on the last one Aug 21 22:31:11 id like to cancel on any loadInBackground calls if i receive a notification, because obviously the data is fresher Aug 21 22:31:23 and boila! vsg1990 Aug 21 22:31:28 :D Aug 21 22:31:33 compatible devices: 915 :P Aug 21 22:31:40 not so popular eh Aug 21 22:31:41 lol Aug 21 22:31:49 What app did you write? Aug 21 22:31:57 Does /usr/local/android-ndk-r10/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: warning: hidden symbol '__cxa_pure_virtual' in /usr/local/android-ndk-r10/sources/cxx-stl/stlport/libs/armeabi/thumb/libstlport_static.a(cxxabi.o) is referenced by DSO /../../libs/libchromium_net.so ring any bells? Aug 21 22:32:12 vsg1990: it checks if you plugged in the USB cable and shows a notification heheh Aug 21 22:32:33 I'm just starting with all this, it's pretty enjoyable Aug 21 22:33:02 Toerkeium: It's about having fun. Aug 21 22:33:28 yea :) Aug 21 22:34:39 shahriyar: Sry shahriyar, no idea on that one. Aug 21 22:35:30 thanks vsg1990 :) Aug 21 22:35:41 Not a problem. Aug 21 22:40:15 If I use a pattern with an Activity that has a FrameLayout as a Fragment container, is it possible to start an asynchronous call, and then depenedent upon the data in the callback perform a FragmentTransaction? Aug 21 22:41:17 I'm trying to avoid performing FragmentTransactions in the callback of an asynchronous job because I won't be able to know about the state of the Activity lifecycle and I have been getting the typical IllegalStateException Aug 21 22:48:07 what's it called when you create a custom menu item? Aug 21 22:49:46 sorry to bump, how do I get my AsyncTaskLoader to respond to a rapid number of notifications in a short period of time? It seems like I can't cancel an existing load when a change notification comes in Aug 21 22:49:52 damn, after filling all forms, it said: your application will be ready in some hours :P Aug 21 22:50:05 Toerkeium: My first app took approx 4 hours to hit the store. Aug 21 22:50:13 hahah Aug 21 22:50:24 how did you handle ansiety? Aug 21 22:50:34 Toerkeium: I went for a long walk lol Aug 21 22:50:40 Anxiety Aug 21 22:50:44 hahaha Aug 21 22:51:57 Toerkeium: whats your app? Aug 21 22:53:13 desmin88: it's just for testing purposes, it does nothing, even I disabled the layout, it's a background service running to check USB cable conexion Aug 21 22:56:26 sorry i asked in the wrong channel Aug 21 22:58:54 AS 0.8.7 Aug 21 22:59:52 what a nice way to animate the size of a listView Aug 21 23:00:04 it's always a nice day for that. Aug 21 23:00:11 nothing like tweening on a summer day. Aug 21 23:00:24 I seem to remember it calling getView on all vis items every pixel Aug 21 23:00:49 hmmmm ... that could be. i never looked that far into it. Aug 21 23:01:26 Should one be using specific version of NDK if the code is based on specific version of Android 4.2.2 in particular? Aug 21 23:08:50 Working with json, i have a value but when i get it becomes <\/b> anyway to resolve this? Aug 21 23:10:55 hi guys, i have an app with fragment A switching to Fragment B. i am trying to implement a navigation up button that will switch from B to A in other words it will go to the last fragment on the backstack. I know something similar can be done with Activities using nagivateUpFromSameTask(), but how is it done with fragments? Aug 21 23:11:22 you can pop the fragment from the fragmentmanager Aug 21 23:12:12 http://developer.android.com/training/implementing-navigation/temporal.html Aug 21 23:12:41 actually http://developer.android.com/training/implementing-navigation/temporal.html#back-fragments Aug 21 23:12:52 lasserix: where do you get the json from Aug 21 23:13:02 ahh its just toString Aug 21 23:13:06 log forced error Aug 21 23:16:09 Matulis: yea i just did that anyways. Aug 21 23:16:12 thanks :) Aug 21 23:17:07 ugh, whats the method that calls the onClick listener in a view ? Aug 21 23:17:29 or rather whats the best way for me to play with said event and pause the click from inside the view Aug 21 23:29:06 StingRay_: pause the click?? Aug 21 23:29:28 like delay it? Aug 21 23:29:31 well yes, delay the call to the listener attached Aug 21 23:29:33 yeah Aug 21 23:30:04 how about adding the delay in the clickListener? Aug 21 23:30:42 since custom view and delay is known in the view, wanted to do it there Aug 21 23:31:15 youd be pausing the ui thread Aug 21 23:31:41 no, I would post a message with a tag Aug 21 23:32:22 oh i see what you mean Aug 21 23:33:39 Hey I am getting a build error of following type: Aug 21 23:33:40 unicode/regex.h: No such file or directory Aug 21 23:33:40 compilation terminated. Aug 21 23:33:47 anyone experience it before? Aug 21 23:35:28 StingRay_: Well, I don't know. sorry Aug 21 23:38:42 StingRay_: intercept the setListener and add a delay there, in your custom View Aug 21 23:40:09 so, your custom listener would be called immediately, and then post a message to call the other listener (i.e. Activity listener) Aug 21 23:40:41 Does that make sense? Aug 21 23:41:10 yeah, had thought of that, but it would create many listeners per view Aug 21 23:41:20 atm I just have one for the menu set Aug 21 23:41:48 well, one extra listener, yes. But you would have your encapsulation like you want Aug 21 23:42:00 one extra per view Aug 21 23:42:16 yes Aug 21 23:44:28 Then again, a listener is just an interface... You won't be keeping extra state Aug 21 23:44:32 i think I can do this in onTouchEvent Aug 21 23:48:47 MikeWallaceDev thats for the ideas, appreciated, fyi onTouchEvent fires everything, the source has switch for the press states … so I can do the evil here :) Aug 21 23:49:22 Cool :) Aug 21 23:51:57 So earlier today someone mentioned crowdin.com here, and now my application is available in Swedish. Aug 21 23:51:59 Crazy. Aug 21 23:53:14 I dont get the subs thing though Aug 21 23:53:28 subscription for 1 off things ? Aug 21 23:53:35 What subs thing? Aug 21 23:53:56 https://crowdin.com/pricing Aug 21 23:54:00 are you talking about crowdin or your listener? cause I'm lost Aug 21 23:54:03 oh. Aug 21 23:54:08 I didn't look at pricing :D Aug 21 23:54:23 I figure I will have all my translations in 10 days :D Aug 21 23:54:36 hmmm Aug 21 23:56:08 I read the whole page, didn't see anything about 1 off ? Aug 22 00:15:39 Hey guys i am trying to change the ActionBar colour, but it just disappears when i run the app. Did i do something wrong? http://pastebin.com/6NK2AH5H Aug 22 00:26:37 http://open.blogs.nytimes.com/2014/08/18/getting-groovy-with-reactive-android/?_php=true&_type=blogs&_php=true&_type=blogs&_r=1 Aug 22 00:26:40 gah Aug 22 00:26:49 http://open.blogs.nytimes.com/2014/08/18/getting-groovy-with-reactive-android Aug 22 00:26:52 ? can anyone help me with my issue? Aug 22 00:27:18 HelplessJub: sorry... will look at it now Aug 22 00:27:32 "We are undertaking a greenfield rebuild of our core Android app. This gives us the opportunity to reimagine the app from the ground up and to tailor the experience to the next version of Android, L. " Aug 22 00:27:38 thanks MikeWallaceDev Aug 22 00:27:42 oh man, the big re-write! Aug 22 00:30:19 g00s or u could just use java + lambda's Aug 22 00:30:54 "Despite that, we’re still writing Java code wherever possible and only using Groovy with closures." Aug 22 00:30:59 hmm, maybe thats a better way Aug 22 00:31:27 jug6ernaut they do mention retrolambda Aug 22 00:31:31 * jug6ernaut is still trying to figure out lamda's Aug 22 00:31:47 g00s the maven & gradle plugins make it super easy Aug 22 00:31:51 retrolambda that is Aug 22 00:31:56 HelplessJub: looks fine... Are you applying it? Aug 22 00:32:16 did you try it with just @android:style/Widget.Holo.Light.ActionBar Aug 22 00:32:18 ? Aug 22 00:32:47 MikeWallaceDev: yes i am , unless this is wrong http://pastebin.com/s1iDVHXK Aug 22 00:32:53 jug6ernaut question is, what more powerful: java 8 lambda or groovy lambda ? Aug 22 00:33:11 i dunno Aug 22 00:33:13 g00s not sure, I'm just learning lambda's myself. Aug 22 00:33:21 java lambda's Aug 22 00:33:26 MikeWallaceDev: yes i tried and it didnt help Aug 22 00:34:31 g00s regadless, rxjava is awesome Aug 22 00:34:40 yeah :) Aug 22 00:34:43 HelplessJub: Manifest looks good too... Only thing that I can think is... maybe the hard coded color? I'm comparing with my code, that's the only difference that I see.. Aug 22 00:35:38 MikeWallaceDev: what do you use? Aug 22 00:36:42 jug6ernaut FTA: "But wait, Android does not officially support Groovy and Java 8 support will undoubtedly show up eventually." i think thats a big assumption Aug 22 00:36:59 lol Aug 22 00:37:01 yeah Aug 22 00:37:03 i mean Aug 22 00:37:06 HelplessJub: @color/actionbar_text Aug 22 00:37:08 we are on java 6.1 Aug 22 00:37:10 so Aug 22 00:37:16 for...5 years? Aug 22 00:37:34 HelplessJub: (my background is actually a drawable, so I showed you the text color) Aug 22 00:38:13 HelplessJub: Aug 22 00:38:13 #FFFFFFFF Aug 22 00:38:54 HelplessJub: honestly, I don't think that will make a difference, but I don't see anything else. I will keep looking at it Aug 22 00:39:46 MikeWallaceDev: ........That fixed it.... Aug 22 00:40:01 wow... ok. :D Aug 22 00:40:04 MikeWallaceDev: aha that's awesome Aug 22 00:40:07 thanks Aug 22 00:40:19 No Problem :) Aug 22 00:40:31 Another customer for www.beerpal.com :D Aug 22 00:40:46 ooops, that's a real site :D Aug 22 00:40:49 scratch that Aug 22 00:41:00 please don't scratch ur screen Aug 22 00:41:02 back to the original joke : www.paybeer.com Aug 22 00:41:21 too late jug6ernaut :-/ Aug 22 00:41:29 :o Aug 22 00:45:46 another blog post : http://androiddevcorner.blogspot.ca/2014/08/localized-getstring-with-parameters.html Aug 22 00:48:15 Two in one month, I'm on fire!!! Aug 22 00:50:06 * Leeds throws a bucket of ice water over MikeWallaceDev Aug 22 00:50:18 boom Aug 22 00:50:25 One challenge down. Aug 22 00:51:12 I don't want to go off topic.. But I will. Did you guys see the video of the guy whose grandma, mother and him have ALS? Heart Breaking. :( Aug 22 00:51:52 yeah, I saw it... Aug 22 00:53:09 http://youtu.be/h07OT8p8Oik Aug 22 00:53:42 The begining is funny/lame... the part after that is a tear jerker Aug 22 01:06:19 good night all... Aug 22 01:09:40 JakeWharton have you guys at square ever considered using gradle for some of your android app ? Aug 22 01:09:46 ugh, groovy Aug 22 01:09:57 no Aug 22 01:11:30 i only heard recently there is some android compatibility; not too fond of the language but i'd be curious to see how people write an android app with java / groovy interop (but with most of the app in java) Aug 22 01:11:48 sounds messy Aug 22 01:12:05 jug6ernaut probably ... i just wonder what it looks like Aug 22 01:12:14 yeah Aug 22 01:14:03 jug6ernaut now one of the curious things about that NYT blog/article - is L so different they would consider a rewrite just from that - or did they accumulate crap up to this point and L + not using nifty mentioned libs precipitated rewrite Aug 22 01:15:46 the value add is too low Aug 22 01:16:02 Java isn't high up on Android's problem list Aug 22 01:17:17 :/ Aug 22 01:21:19 tho really with retrolambda im ok with java 6/7 on android Aug 22 01:32:52 lambas are nice, sure, but they're like #8 on my cool things from Java 8 list Aug 22 01:33:07 plus they have little actual value beyond a syntactical one Aug 22 01:34:02 JakeWharton do you have a list of android pain points that should be changed; beside fragments, emu / sim ... Aug 22 01:35:38 +1 for a list (= Aug 22 01:55:05 im about to punch a small child Aug 22 01:55:15 why make a game so difficult it cant even be enjoyable Aug 22 01:55:44 IJFG Aug 22 01:56:06 ? Aug 22 01:56:37 Its Just an Fing Game Aug 22 01:57:38 oh Aug 22 01:58:49 that may be true Aug 22 01:58:53 but it still gets me roiling Aug 22 01:59:46 only way to win is to not play i guess Aug 22 02:00:27 and just like that, desmin88 was enlightened Aug 22 02:01:03 haha Aug 22 02:04:11 when are we gonna get sub folders in res/xxx/ without gradle trickery Aug 22 02:10:57 desmin88: What is the problem with sub folders in res? As I am about to try and implement code which needs to read the contents of sub folders in res! Aug 22 02:11:35 i meant you cant have subfolders like such res/layout/activities Aug 22 02:11:39 or res/layout/fragments Aug 22 02:11:39 etc. Aug 22 02:12:13 its possible with gradle trickery but its Aug 22 02:12:14 complicated. Aug 22 02:15:36 keyboard API Aug 22 02:15:40 text rendering APIs Aug 22 02:16:46 there's probably more, i don't know. i'm going to dinner Aug 22 02:17:05 enjoy Aug 22 02:17:37 google just doesnt know how to write dev friendly apis Aug 22 02:18:21 android.animation is dev-friendly Aug 22 02:18:55 ok you got me Aug 22 02:19:07 they get it right in some places Aug 22 02:19:17 HI people. I create a filter to open an app by clicking in a link in browser. Is there a way to detect which browser? Aug 22 02:20:22 you want to know which browser was used to open your app Aug 22 02:21:11 desmin88: yes Aug 22 02:23:51 hey guys i have a question i am trying to make a login/signup form with parse, following this guide (http://www.androidbegin.com/tutorial/android-parse-com-simple-login-and-signup-tutorial/), I got it working on a stand alone project, but that project ruins my theme, so I had to start over...I am having trouble adding the welcome.java class file as I already have something that i am using for my drawer, If i have two public void on cre Aug 22 02:23:52 ate, slash its asking me to add code in their, but i already have something within my local file that I need i would add it to the bottom? Aug 22 02:25:15 whatWHAT Aug 22 02:29:48 Is anyone able to help me out with a couple of queries about... queries? Aug 22 02:30:08 hehe Aug 22 02:30:13 just ask Aug 22 02:30:17 dont ask about asking Aug 22 02:30:49 Alright. So I'm creating a cursor which represents the 'now playing' list of songs for my music player app (Shuttle Music Player if you're interested) Aug 22 02:31:15 The cursor used to just display the current queue, and there were no duplicates so I never had an issue. Aug 22 02:31:36 Now I want the cursor to display a history of played songs as well as a list of upcoming songs, and therefore duplicates are OK Aug 22 02:31:48 But I'm creating my cursor using a select "IN" query Aug 22 02:32:12 e.g. select audio_id in {1, 2, 3, 1, 2} Aug 22 02:32:25 This will return a cursor of size 3: {1,2,3} Aug 22 02:32:54 No amount of caffeine or eye twitching can help me overcome this Aug 22 02:33:59 So how can I create a cursor which creates a row for each entry in my IN clause? Aug 22 02:36:53 sounds like you're using the database incorrectly/inefficiently -- this should be handled by another layer Aug 22 02:37:13 Please elaborate Aug 22 02:38:11 yeah i agree with bankai_au Aug 22 02:38:25 me three Aug 22 02:38:26 the database contains the list of songs which are going to be played? Aug 22 02:38:38 The database contains a list of all songs available on the device Aug 22 02:38:59 In the MediaStore (MediaStore.Audio.Media.AudioColumns._ID) Aug 22 02:39:03 right Aug 22 02:39:21 my select IN query tries to constrain that to just the songs in the current queue Aug 22 02:39:48 desmin88: Do you know a way to do it? Aug 22 02:40:07 fedel: why do you care? Aug 22 02:40:24 wut Aug 22 02:40:31 hes talking about something else Aug 22 02:40:40 :fedel> HI people. I create a filter to open an app by clicking in a link in browser. Is there a way to detect which browser?: Aug 22 02:42:46 So, any ideas? Aug 22 02:42:52 desmin88: you can dermine if there is an app to handle an intent Aug 22 02:42:57 but nto determine what the intent is Aug 22 02:42:58 er Aug 22 02:43:00 app Aug 22 02:43:36 wut Aug 22 02:43:38 timusus: you have a) a collection of songs and b) a list of songs possibly including duplicates... I think it's up to you to reconcile those two things yourself Aug 22 02:44:09 I don't understand what you're saying Aug 22 02:44:40 I'm not entirely surprised by that Aug 22 02:44:44 lol Aug 22 02:45:06 which bit don't you understand? Aug 22 02:45:13 I feel like that's probably intended to be condescending, but I'm going to pretend I didn't read it. Aug 22 02:45:30 oh, it was Aug 22 02:46:11 May I ask why? Aug 22 02:46:16 the "not entirely surprised" was... the "which bit" was me asking you what you need me to explain further Aug 22 02:46:26 but I guess I'll just move on, instead Aug 22 02:46:30 OK Aug 22 02:46:30 So Aug 22 02:46:52 stackoverflow ? Aug 22 02:47:46 When you say I need to 'reconcile those two things', I don't understand. I'm trying to create a cursor which represents the items in a list. That list contains duplicates. Is it possible for the cursor to effectively mirror the items on the list, including the duplicates? Aug 22 02:50:32 its a design problem imo Aug 22 02:51:32 Can you please explain what is meant by "it's up to you to reconcile these things" without patronising me? Aug 22 02:51:41 fix the design problem Aug 22 02:52:02 Well that's what I'm here for. I'm not sure how to do that Aug 22 02:52:16 So you know, suggestions are welcome. Aug 22 02:52:50 one possible way would be to hold the played data in a stack, future data in another stack - pop and push, going to a caching layer, so you don't have to keep querying the db Aug 22 02:53:17 if its sqlite Aug 22 02:53:24 nvm Aug 22 02:53:26 disregard Aug 22 02:53:49 The query is only performed when the queue needs to be updated. Aug 22 02:54:56 I mean, it's simply a cursor being created to represent a 'queue' of songs. I don't understand why this is a flawed design. It's served me well until now. Aug 22 02:57:13 https://developer.android.com/reference/android/database/MergeCursor.html Aug 22 02:57:20 query the history and queue separately Aug 22 02:57:25 AWWW SHIET Aug 22 02:57:28 merge the two Aug 22 02:57:42 i was waiting for JakeWharton to drop in and lay down some awesomenes Aug 22 02:57:48 OK, but what happens if the history also contains duplicates? Aug 22 02:58:05 what does that matter? Aug 22 02:58:17 your history table shouldn't be enforcing uniqueness Aug 22 02:58:21 nor should the query into it Aug 22 02:58:50 Well my issue is that creating a cursor using a select query, it only returns one row per unique entry in the list it's selecting from Aug 22 02:59:13 So if my history looks like this {1, 1, 2} and my 'future' looks like this: {3, 4, 5, 1} Aug 22 02:59:16 you're talking about different things Aug 22 02:59:27 "query the history and queue separately" Aug 22 02:59:34 this is the whole reason he linked mergecursor Aug 22 02:59:37 I'll have a history cursot with {1, 2} and a future cursor with { 3, 4, 5, 1} Aug 22 02:59:45 Note the missing "1" **** ENDING LOGGING AT Fri Aug 22 02:59:58 2014